@qoder-ai/qodercli 0.2.2-beta.12 → 0.2.2-beta.14
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.
- package/bundle/qodercli.js +3 -2
- package/package.json +2 -3
- package/bin/qodercli.cjs +0 -26
package/bundle/qodercli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const __origEmit=process.emit;process.emit=function(e,w){if(e==="warning"&&w&&typeof w.message==="string"&&w.message.includes("unsettled top-level await"))return false;return __origEmit.apply(this,arguments)};const __origStderrWrite=process.stderr.write.bind(process.stderr);process.stderr.write=function(c,...a){if(typeof c==="string"&&c.includes("unsettled top-level await"))return true;return __origStderrWrite(c,...a)};
|
|
3
|
+
import { createRequire as __banner_createRequire } from 'node:module'; import { fileURLToPath as __banner_fileURLToPath } from 'node:url'; import { dirname as __banner_dirname } from 'node:path'; const require = __banner_createRequire(import.meta.url); const __chunk_filename = __banner_fileURLToPath(import.meta.url); const __chunk_dirname = __banner_dirname(__chunk_filename);
|
|
3
4
|
var NCo=Object.create;var AGe=Object.defineProperty;var MCo=Object.getOwnPropertyDescriptor;var OCo=Object.getOwnPropertyNames;var PCo=Object.getPrototypeOf,QCo=Object.prototype.hasOwnProperty;var Se=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var b=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ro=(t,e)=>{for(var r in e)AGe(t,r,{get:e[r],enumerable:!0})},GUr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of OCo(e))!QCo.call(t,o)&&o!==r&&AGe(t,o,{get:()=>e[o],enumerable:!(n=MCo(e,o))||n.enumerable});return t};var V=(t,e,r)=>(r=t!=null?NCo(PCo(t)):{},GUr(e||!t||!t.__esModule?AGe(r,"default",{value:t,enumerable:!0}):r,t)),Fr=t=>GUr(AGe({},"__esModule",{value:!0}),t);var fGe=t=>new Uint8Array(Buffer.from(t,"base64"));var Tne,$Ur=b(()=>{"use strict";Tne={}});function LCo(){return process.versions.bun!==void 0}function OL(){return typeof Bun<"u"&&Array.isArray(Bun.embeddedFiles)&&Bun.embeddedFiles.length>0}function jUr(){return process.env.IS_BINARY==="true"&&!OL()}function qw(){return OL()||jUr()}var gGe=b(()=>{"use strict";});import{createHash as FCo}from"node:crypto";import{chmodSync as UCo,existsSync as YUr,mkdirSync as HUr,readFileSync as zUr,renameSync as GCo,rmSync as mGe,statSync as $Co,writeFileSync as qUr}from"node:fs";import{createRequire as Vwt}from"node:module";import{tmpdir as jCo,userInfo as HCo}from"node:os";import VE from"node:path";function VUr(t){return(t||"unknown").toString().replace(/[^a-zA-Z0-9.-]/g,"_")}function qCo(){let t=FCo("sha256"),e=Object.keys(Tne).sort();for(let r of e){let n=Tne[r];t.update(`${r}\0${n.path}\0${n.mode}
|
|
4
5
|
`)}return t.digest("hex").slice(0,16)}function VCo(t,e){try{let r=$Co(t);return!(!r.isDirectory()||e!=="unknown"&&r.uid!==e||process.platform!=="win32"&&(r.mode&511)!==448)}catch{return!1}}function WCo(t,e){let r=VE.dirname(t),n=VE.join(r,`.setup-${VE.basename(t)}-${process.pid}-${Date.now()}`);HUr(n,{recursive:!0,mode:448});try{for(let[o,s]of Object.entries(Tne)){let a=VE.join(n,o);HUr(VE.dirname(a),{recursive:!0,mode:448});let l=zUr(s.path);qUr(a,l,{mode:s.mode}),process.platform!=="win32"&&UCo(a,s.mode)}qUr(VE.join(n,qwt),e,{mode:384});try{GCo(n,t)}catch(o){let s=VE.join(t,qwt);if(YUr(s)&&KUr(s)===e){mGe(n,{recursive:!0,force:!0});return}throw o}}catch(o){try{mGe(n,{recursive:!0,force:!0})}catch{}throw o}}function KUr(t){try{return zUr(t,"utf8")}catch{return null}}function YCo(t,e){let r=Vwt(import.meta.url)("node:fs"),n=t.split("/"),o,s;if(t.startsWith("@")){if(n.length<2)return null;o=`${n[0]}/${n[1]}`,s=n.slice(2).join("/")||void 0}else o=n[0],s=n.slice(1).join("/")||void 0;let a=VE.join(e,o);if(!r.existsSync(a))return null;let l={};try{l=JSON.parse(r.readFileSync(VE.join(a,"package.json"),"utf8"))}catch{}if(!s){let u=l.main||"index.js",d=VE.join(a,u);return r.existsSync(d)?d:null}if(l.exports&&typeof l.exports=="object"){let u=`./${s}`,d=l.exports[u];if(typeof d=="string"){let p=VE.join(a,d);if(r.existsSync(p))return p}}let c=VE.join(a,s);if(r.existsSync(c)&&r.statSync(c).isFile())return c;for(let u of[".js",".json",".node"]){let d=c+u;if(r.existsSync(d))return d}return null}function WUr(t){let e=!!process.env.QODERCLI_DEBUG_NATIVES,r=s=>{e&&process.stderr.write(`[natives-debug] ${s}
|
|
5
6
|
`)};process.env.NODE_PATH=process.env.NODE_PATH?`${t}${VE.delimiter}${process.env.NODE_PATH}`:t;let n=null;try{n=Vwt(import.meta.url)("node:module")}catch(s){r(`node:module load failed: ${s?.message}`);return}typeof n._initPaths=="function"&&n._initPaths();let o=n._resolveFilename;if(typeof o!="function"){r("no _resolveFilename to patch");return}n._resolveFilename=function(a,l,c,u){if(typeof a=="string"&&(a.startsWith("@img/")||a.startsWith("@lydell/"))){let d=YCo(a,t);if(d)return r(`resolved ${a} -> ${d}`),d;r(`could not resolve ${a} in extracted tree`)}return o.call(this,a,l,c,u)}}function Wwt(){if(!OL()||Object.keys(Tne).length===0)return null;let t="0.2.0",e=typeof process.getuid=="function"?process.getuid():"unknown",r=HCo().username||process.env.USER||String(e);return VE.join(jCo(),`qodercli-natives-v${VUr(t)}-${VUr(r)}`)}function zCo(){let t=Wwt();if(!t)return;let e=typeof process.getuid=="function"?process.getuid():"unknown",r=qCo();if(VCo(t,e)){if(KUr(VE.join(t,qwt))===r){WUr(VE.join(t,"node_modules"));return}try{mGe(t,{recursive:!0,force:!0})}catch{}}else if(YUr(t))try{mGe(t,{recursive:!0,force:!0})}catch{}try{WCo(t,r)}catch(n){let o=n instanceof Error?n.message:String(n);process.stderr.write(`[qodercli] Warning: failed to extract native modules: ${o}
|
|
@@ -4255,7 +4256,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
4255
4256
|
`),m=0,h=0,E=l.at(-1);if(E){let S=typeof E?.x1=="number"&&typeof E?.x2=="number",v=typeof E?.y1=="number"&&typeof E?.y2=="number";if(S){let x=E0t(d);if(A+x<=E.x1||A>=E.x2)continue}if(v){let x=g.length;if(f+x<=E.y1||f>=E.y2)continue}if(S&&(g=g.map(x=>{let R=A<E.x1?E.x1-A:0,M=af(x),D=A+M>E.x2?E.x2-A:M,P=TC(x,R,D);return af(P)>D-R&&(P=TC(x,R,D-1)),P}),A<E.x1&&(A=E.x1)),v){let x=f<E.y1?E.y1-f:0,R=g.length,M=f+R>E.y2?E.y2-f:R;p&&x>0&&p[x]===!0&&(h=A+af(g[x-1])),g=g.slice(x,M),m=x,f<E.y1&&(f=E.y1)}}let y=e.softWrap,_=0;for(let S of g){let v=f+_;if(v>=n)break;let x=Ipl(e,S,A,v,r,this.stylePool,this.charCache);if(s+=x-A,p){let R=p[m+_]===!0;y[v]=R?h:0,h=x}_++}continue}}for(let u of this.operations)if(u.type==="noSelect"){let{x:d,y:p,width:A,height:f}=u.region;S4i(e,d,p,A,f)}let c=o+s;return c>1e3&&s>o&&yA(`High write ratio: blit=${o}, write=${s} (${(s/c*100).toFixed(1)}% writes), screen=${n}x${r}`),e}}});function IMr(t,e){let r;return n=>{let{frontFrame:o,backFrame:s,isTTY:a,terminalWidth:l,terminalRows:c}=n,u=o.screen,d=s.screen,p=d.charPool,A=d.hyperlinkPool,f=t.yogaNode?.getComputedHeight(),g=t.yogaNode?.getComputedWidth(),m=f===void 0||!Number.isFinite(f)||f<0,h=g===void 0||!Number.isFinite(g)||g<0;if(!t.yogaNode||m||h)return t.yogaNode&&(m||h)&&yA(`Invalid yoga dimensions: width=${g}, height=${f}, childNodes=${t.childNodes.length}, terminalWidth=${l}, terminalRows=${c}`),{screen:pte(l,0,e,p,A),viewport:{width:l,height:c},cursor:{x:0,y:0,visible:!0}};let E=Math.floor(t.yogaNode.getComputedWidth()),y=Math.floor(t.yogaNode.getComputedHeight()),_=n.altScreen?c:y;n.altScreen&&y>c&&yA(`alt-screen: yoga height ${y} > terminalRows ${c} \u2014 something is rendering outside <AlternateScreen>. Overflow clipped.`,{level:"warn"});let S=d??pte(E,_,e,p,A);r?r.reset(E,_,S):r=new cFe({width:E,height:_,stylePool:e,screen:S}),$4i(),H4i(),V4i();let v=V3i();z4i(t,r,{prevScreen:v||n.prevFrameContaminated?void 0:u});let x=r.get(),R=W4i();return R&&uw(R),{scrollHint:n.altScreen?q4i():null,scrollDrainPending:R!==null,screen:x,viewport:{width:l,height:n.altScreen?c+1:c},cursor:{x:0,y:n.altScreen?Math.max(0,Math.min(S.height,c)-1):S.height,visible:!a||S.height===0}}}}var iji=b(async()=>{"use strict";o9();await $Ct();PCt();nji();EMr();wEe()});import{closeSync as bpl,constants as oji,openSync as Tpl,readSync as vpl,writeSync as o3}from"fs";import{format as sji}from"util";function aji(t){return Object.freeze({type:"stdout",content:WUi(t,1)})}function Bpl(t=process.stdin){if(!t.isTTY)return;try{for(;t.read()!==null;);}catch{}if(process.platform==="win32")return;let e=t,r=e.isRaw===!0,n=-1;try{r||e.setRawMode?.(!0),n=Tpl("/dev/tty",oji.O_RDONLY|oji.O_NONBLOCK);let o=Buffer.alloc(1024);for(let s=0;s<64&&!(vpl(n,o,0,o.length,null)<=0);s++);}catch{}finally{if(n>=0)try{bpl(n)}catch{}if(!r)try{e.setRawMode?.(!1)}catch{}}}var H8u,lji,cji,wpl,xpl,Rpl,uFe,kpl,Dpl,uji=b(async()=>{"use strict";mGi();hGi();$Gi();H8u=V(et(),1),lji=V(qNr(),1);oTr();VNr();KNr();JNr();o9();vCt();await L$i();G1r();await $Ct();I4i();oFe();v4i();w4i();await k1r();EMr();await iji();wEe();YCt();m1();iEe();oEe();BNr();cji=V(Te(),1),wpl=Object.freeze({x:0,y:0,visible:!1}),xpl=Object.freeze({type:"stdout",content:g1}),Rpl=Object.freeze({type:"stdout",content:zG+g1});uFe=class{constructor(e){this.options=e;GNr(this),this.options.patchConsole&&(this.restoreConsole=this.patchConsole(),this.restoreStderr=this.patchStderr()),this.terminal={stdout:e.stdout,stderr:e.stderr},this.terminalColumns=e.stdout.columns||80,this.terminalRows=e.stdout.rows||24,this.altScreenParkPatch=aji(this.terminalRows),this.stylePool=new o0t,this.charPool=new tFe,this.hyperlinkPool=new rFe,this.frontFrame=m9(this.terminalRows,this.terminalColumns,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=m9(this.terminalRows,this.terminalColumns,this.stylePool,this.charPool,this.hyperlinkPool),e.stdout.isTTY&&e.stdout.write(zG+g1),this.log=new d0t({isTTY:e.stdout.isTTY||!1,stylePool:this.stylePool});let r=()=>queueMicrotask(this.onRender);this.scheduleRender=GGi(r,16,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.unsubscribeExit=umt(this.unmount,{alwaysLast:!1}),e.stdout.isTTY&&(e.stdout.on("resize",this.handleResize),process.on("SIGCONT",this.handleResume),this.unsubscribeTTYHandlers=()=>{e.stdout.off("resize",this.handleResize),process.off("SIGCONT",this.handleResume)}),this.rootNode=UCt("ink-root"),this.rootNode.focusManager=new bCt(()=>!1),this.renderer=IMr(this.rootNode,this.stylePool),this.rootNode.onRender=this.scheduleRender,this.rootNode.onImmediateRender=this.onRender.bind(this),this.rootNode.onComputeLayout=()=>{if(!this.isUnmounted&&this.rootNode.yogaNode){let n=performance.now();this.rootNode.yogaNode.setWidth(this.terminalColumns),this.rootNode.yogaNode.calculateLayout(this.terminalColumns);let o=performance.now()-n;A$i(o);let s=TCt();this.lastYogaCounters={ms:o,...s},J6i()}},this.container=i3.createContainer(this.rootNode,lji.ConcurrentRoot,null,!1,null,"id",Zee,Zee,Zee,Zee)}log;terminal;scheduleRender;isUnmounted=!1;isPaused=!1;container;rootNode;renderer;stylePool;charPool;hyperlinkPool;exitPromise;restoreConsole;restoreStderr;unsubscribeTTYHandlers;terminalColumns;terminalRows;currentNode=null;frontFrame;backFrame;lastPoolResetTime=performance.now();drainTimer=null;lastYogaCounters={ms:0,visited:0,measured:0,cacheHits:0,live:0};altScreenParkPatch;altScreenActive=!1;altScreenMouseTracking=!1;prevFrameContaminated=!1;needsEraseBeforePaint=!1;handleResume=()=>{if(this.options.stdout.isTTY){if(this.altScreenActive){this.reenterAltScreen();return}this.frontFrame=m9(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=m9(this.backFrame.viewport.height,this.backFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset()}};handleResize=()=>{let e=this.options.stdout.columns||80,r=this.options.stdout.rows||24;e===this.terminalColumns&&r===this.terminalRows||(this.terminalColumns=e,this.terminalRows=r,this.altScreenParkPatch=aji(this.terminalRows),this.altScreenActive&&!this.isPaused&&this.options.stdout.isTTY&&(this.altScreenMouseTracking&&this.options.stdout.write(qee),this.resetFramesForAltScreen(),this.needsEraseBeforePaint=!0),this.currentNode!==null&&this.render(this.currentNode))};resolveExitPromise=()=>{};rejectExitPromise=()=>{};unsubscribeExit=()=>{};enterAlternateScreen(){this.pause(),this.suspendStdin(),this.options.stdout.write(jee+TLe+(this.altScreenMouseTracking?Vee:"")+(this.altScreenActive?"":"\x1B[?1049h")+"\x1B[?1004l\x1B[0m\x1B[?25h\x1B[2J\x1B[H")}exitAlternateScreen(){this.options.stdout.write((this.altScreenActive?xLe:"")+"\x1B[2J\x1B[H"+(this.altScreenMouseTracking?qee:"")+(this.altScreenActive?"":"\x1B[?1049l")+"\x1B[?25l"),this.resumeStdin(),this.altScreenActive?this.resetFramesForAltScreen():this.repaint(),this.resume(),this.options.stdout.write("\x1B[?1004h"+(KLe()?jee+ILe+bLe:""))}onRender(){if(this.isUnmounted||this.isPaused)return;this.drainTimer!==null&&(clearTimeout(this.drainTimer),this.drainTimer=null),WGi();let e=performance.now(),r=this.options.stdout.columns||80,n=this.options.stdout.rows||24,o=this.renderer({frontFrame:this.frontFrame,backFrame:this.backFrame,isTTY:this.options.stdout.isTTY,terminalWidth:r,terminalRows:n,altScreen:this.altScreenActive,prevFrameContaminated:this.prevFrameContaminated}),s=performance.now()-e;(j4i()||this.prevFrameContaminated)&&(o.screen.damage={x:0,y:0,width:o.screen.width,height:o.screen.height});let a=this.frontFrame;this.altScreenActive&&(a={...this.frontFrame,cursor:wpl});let l=performance.now(),c=this.log.render(a,o,this.altScreenActive,M1r),u=performance.now()-l;this.backFrame=this.frontFrame,this.frontFrame=o,e-this.lastPoolResetTime>5*60*1e3&&(this.resetPools(),this.lastPoolResetTime=e);let d=[];for(let S of c)if(S.type==="clearTerminal"&&(d.push({desiredHeight:o.screen.height,availableHeight:o.viewport.height,reason:S.reason}),x1r()&&S.debug)){let v=n$i(this.rootNode,S.debug.triggerY);yA(`[REPAINT] full reset \xB7 ${S.reason} \xB7 row ${S.debug.triggerY}
|
|
4256
4257
|
prev: "${S.debug.prevLine}"
|
|
4257
4258
|
next: "${S.debug.nextLine}"
|
|
4258
|
-
culprit: ${v.length?v.join(" < "):"(no owner chain captured)"}`,{level:"warn"})}let p=performance.now(),A=cMr(c),f=performance.now()-p,g=A.length>0;this.altScreenActive&&g&&(this.needsEraseBeforePaint?(this.needsEraseBeforePaint=!1,A.unshift(Rpl)):A.unshift(xpl),A.push(this.altScreenParkPatch));let m=performance.now();O1r(this.terminal,A,this.altScreenActive&&!M1r);let h=performance.now()-m;this.prevFrameContaminated=!1,o.scrollDrainPending&&(this.drainTimer=setTimeout(()=>this.onRender(),4));let E=f$i(),y=g$i(),_=this.lastYogaCounters;m$i(),this.lastYogaCounters={ms:0,visited:0,measured:0,cacheHits:0,live:0},this.options.onFrame?.({durationMs:performance.now()-e,phases:{renderer:s,diff:u,optimize:f,write:h,patches:c.length,yoga:E,commit:y,yogaVisited:_.visited,yogaMeasured:_.measured,yogaCacheHits:_.cacheHits,yogaLive:_.live},flickers:d})}pause(){i3.flushSyncFromReconciler(),this.onRender(),this.isPaused=!0}resume(){this.isPaused=!1,this.onRender()}repaint(){this.frontFrame=m9(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=m9(this.backFrame.viewport.height,this.backFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset()}forceRedraw(){!this.options.stdout.isTTY||this.isUnmounted||this.isPaused||(this.options.stdout.write(zG+g1),this.altScreenActive?this.resetFramesForAltScreen():(this.repaint(),this.prevFrameContaminated=!0),this.onRender())}invalidatePrevFrame(){this.prevFrameContaminated=!0}setAltScreenActive(e,r=!1){this.altScreenActive!==e&&(this.altScreenActive=e,this.altScreenMouseTracking=e&&r,e?this.resetFramesForAltScreen():this.repaint())}get isAltScreenActive(){return this.altScreenActive}reassertTerminalModes=(e=!1)=>{this.options.stdout.isTTY&&(this.isPaused||(KLe()&&this.options.stdout.write(jee+ILe+bLe),this.altScreenActive&&(this.altScreenMouseTracking&&this.options.stdout.write(qee),e&&this.reenterAltScreen())))};detachForShutdown(){this.isUnmounted=!0,this.scheduleRender.cancel?.();let e=this.options.stdin;this.drainStdin(),e.isTTY&&e.isRaw&&e.setRawMode&&e.setRawMode(!1)}drainStdin(){Bpl(this.options.stdin)}reenterAltScreen(){this.options.stdout.write(xLe+zG+g1+(this.altScreenMouseTracking?qee:"")),this.resetFramesForAltScreen()}resetFramesForAltScreen(){let e=this.terminalRows,r=this.terminalColumns,n=()=>({screen:pte(r,e,this.stylePool,this.charPool,this.hyperlinkPool),viewport:{width:r,height:e+1},cursor:{x:0,y:0,visible:!0}});this.frontFrame=n(),this.backFrame=n(),this.log.reset(),this.prevFrameContaminated=!0}stdinListeners=[];wasRawMode=!1;suspendStdin(){let e=this.options.stdin;if(!e.isTTY)return;let r=e.listeners("readable");yA(`[stdin] suspendStdin: removing ${r.length} readable listener(s), wasRawMode=${e.isRaw??!1}`),r.forEach(o=>{this.stdinListeners.push({event:"readable",listener:o}),e.removeListener("readable",o)});let n=e;n.isRaw&&n.setRawMode&&(n.setRawMode(!1),this.wasRawMode=!0)}resumeStdin(){let e=this.options.stdin;if(e.isTTY&&(this.stdinListeners.length===0&&!this.wasRawMode&&yA("[stdin] resumeStdin: called with no stored listeners and wasRawMode=false (possible desync)",{level:"warn"}),yA(`[stdin] resumeStdin: re-attaching ${this.stdinListeners.length} listener(s), wasRawMode=${this.wasRawMode}`),this.stdinListeners.forEach(({event:r,listener:n})=>{e.addListener(r,n)}),this.stdinListeners=[],this.wasRawMode)){let r=e;r.setRawMode&&r.setRawMode(!0),this.wasRawMode=!1}}render(e){this.currentNode=e;let r=(0,cji.jsx)(XLe,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount,terminalColumns:this.terminalColumns,terminalRows:this.terminalRows,onStdinResume:this.reassertTerminalModes,scheduleRender:this.scheduleRender,forceRedraw:this.forceRedraw,children:e});i3.updateContainerSync(r,this.container,null,Zee),i3.flushSyncWork()}unmount(e){if(this.isUnmounted)return;this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),this.restoreStderr?.(),this.unsubscribeTTYHandlers?.();let r=this.log.renderPreviousOutput_DEPRECATED(this.frontFrame);O1r(this.terminal,cMr(r)),this.options.stdout.isTTY&&(this.altScreenActive&&o3(1,K_t),o3(1,Vee),this.drainStdin(),o3(1,TLe),o3(1,jee),o3(1,vLe),o3(1,z_t),o3(1,Hee),o3(1,A6i),g6i()&&o3(1,d6i(f6i))),this.isUnmounted=!0,this.scheduleRender.cancel?.(),this.drainTimer!==null&&(clearTimeout(this.drainTimer),this.drainTimer=null),i3.updateContainerSync(null,this.container,null,Zee),i3.flushSyncWork(),kb.delete(this.options.stdout),this.rootNode.yogaNode?.free(),this.rootNode.yogaNode=void 0,e instanceof Error?this.rejectExitPromise(e):this.resolveExitPromise()}async waitUntilExit(){return this.exitPromise||=new Promise((e,r)=>{this.resolveExitPromise=e,this.rejectExitPromise=r}),this.exitPromise}resetLineCount(){this.options.stdout.isTTY&&(this.backFrame=this.frontFrame,this.frontFrame=m9(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset())}resetPools(){this.charPool=new tFe,this.hyperlinkPool=new rFe,g4i(this.frontFrame.screen,this.charPool,this.hyperlinkPool),this.backFrame.screen.charPool=this.charPool,this.backFrame.screen.hyperlinkPool=this.hyperlinkPool}patchConsole(){let e=console,r={},n=(...s)=>yA(`console.log: ${sji(...s)}`),o=(...s)=>pEe(new Error(`console.error: ${sji(...s)}`));for(let s of kpl)r[s]=e[s],e[s]=n;for(let s of Dpl)r[s]=e[s],e[s]=o;return r.assert=e.assert,e.assert=(s,...a)=>{s||o(...a)},()=>Object.assign(e,r)}patchStderr(){let e=process.stderr,r=e.write,n=!1,o=(s,a,l)=>{let c=typeof a=="function"?a:l;if(n){let u=typeof a=="string"?a:void 0;return r.call(e,s,u,c)}n=!0;try{let u=typeof s=="string"?s:Buffer.from(s).toString("utf8");yA(`[stderr] ${u}`,{level:"warn"}),this.altScreenActive&&!this.isUnmounted&&!this.isPaused&&(this.prevFrameContaminated=!0,this.scheduleRender())}finally{n=!1,c?.()}return!0};return e.write=o,()=>{e.write===o&&(e.write=r)}}};kpl=["log","info","debug","dir","dirxml","count","countReset","group","groupCollapsed","groupEnd","table","time","timeEnd","timeLog"],Dpl=["warn","error","trace"]});import{Stream as Npl}from"stream";var dFe,Mpl,Opl,bMr=b(async()=>{"use strict";o9();await uji();oFe();dFe=(t,e)=>{let r=Mpl(e),n={stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,exitOnCtrlC:!0,patchConsole:!0,...r},o=Opl(n.stdout,()=>new uFe(n));return n.stdout!==process.stdout&&!kb.has(process.stdout)&&kb.set(process.stdout,o),o.render(t),{rerender:o.render,unmount(){o.unmount()},waitUntilExit:o.waitUntilExit,cleanup:()=>kb.delete(n.stdout)}},Mpl=(t={})=>t instanceof Npl?{stdout:t,stdin:process.stdin}:t,Opl=(t,e)=>{let r=kb.get(t);return r||(r=e(),kb.set(t,r)),r}});function TMr(t,e){let r=Ppl(e);return dFe(t,r)}function Ppl(t){if(!t)return{};let e={};if(t.stdout&&(e.stdout=t.stdout),t.stdin&&(e.stdin=t.stdin),t.stderr&&(e.stderr=t.stderr),t.exitOnCtrlC!==void 0&&(e.exitOnCtrlC=t.exitOnCtrlC),t.patchConsole!==void 0&&(e.patchConsole=t.patchConsole),t.onRender){let r=t.onRender;e.onFrame=n=>{r({renderTime:n.durationMs})}}return e}var dji=b(async()=>{"use strict";await bMr()});var ft=b(async()=>{"use strict";V_t();pNr();FUi();UUi();b6i();w6i();R6i();B6i();M6i();L6i();H6i();V6i();W6i();cEe();Y6i();z6i();K6i();BNr();pCt();gGi();await dji();await bMr();oFe()});function E9(t){let e=Sb(t)||t;if(e==="black"||e==="#000000"||e==="#000")return"#1c1c1c";if(e==="white"||e==="#ffffff"||e==="#fff")return"#eeeeee";if(e.startsWith("#")&&e.length>=4){let r=gQe(e),n=r>128?.15:.2;return ys(e,r>128?"#000000":"#ffffff",n)||void 0}}function pji(t,e,r,n){let o=t===r||t===void 0,s=t===n;if(e>Qpl&&o)return n;if(e<Lpl&&s)return r}function S0t(t,e,r){let n=c=>{let u=parseInt(c,16);return c.length===1?u/15*255:c.length===2?u:c.length===3?u/4095*255:c.length===4?u/65535*255:u},o=n(t),s=n(e),a=n(r),l=c=>Math.round(c).toString(16).padStart(2,"0");return`#${l(o)}${l(s)}${l(a)}`}var Qpl,Lpl,lf=b(()=>{"use strict";Pp();Qpl=140,Lpl=110});var CA,Aji,fji=b(()=>{"use strict";Pp();lf();CA={type:"dark",Background:"#0b0e14",Foreground:"#aeaca6",LightBlue:"#59C2FF",AccentBlue:"#39BAE6",AccentPurple:"#D2A6FF",AccentCyan:"#95E6CB",AccentGreen:"#AAD94C",AccentYellow:"#FFB454",AccentRed:"#F26D78",DiffAdded:"#293022",DiffRemoved:"#3D1215",Comment:"#646A71",Gray:"#3D4149",DarkGray:ys("#3D4149","#0b0e14",.5),GradientColors:["#FFB454","#F26D78"]},Aji=new _a("Ayu","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:CA.Background,color:CA.Foreground},"hljs-keyword":{color:CA.AccentYellow},"hljs-literal":{color:CA.AccentPurple},"hljs-symbol":{color:CA.AccentCyan},"hljs-name":{color:CA.LightBlue},"hljs-link":{color:CA.AccentBlue},"hljs-function .hljs-keyword":{color:CA.AccentYellow},"hljs-subst":{color:CA.Foreground},"hljs-string":{color:CA.AccentGreen},"hljs-title":{color:CA.AccentYellow},"hljs-type":{color:CA.AccentBlue},"hljs-attribute":{color:CA.AccentYellow},"hljs-bullet":{color:CA.AccentYellow},"hljs-addition":{color:CA.AccentGreen},"hljs-variable":{color:CA.Foreground},"hljs-template-tag":{color:CA.AccentYellow},"hljs-template-variable":{color:CA.AccentYellow},"hljs-comment":{color:CA.Comment,fontStyle:"italic"},"hljs-quote":{color:CA.AccentCyan,fontStyle:"italic"},"hljs-deletion":{color:CA.AccentRed},"hljs-meta":{color:CA.AccentYellow},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},CA)});var fc,gji,mji=b(()=>{"use strict";Pp();lf();fc={type:"light",Background:"#f8f9fa",Foreground:"#5c6166",LightBlue:"#55b4d4",AccentBlue:"#399ee6",AccentPurple:"#a37acc",AccentCyan:"#4cbf99",AccentGreen:"#86b300",AccentYellow:"#f2ae49",AccentRed:"#f07171",DiffAdded:"#C6EAD8",DiffRemoved:"#FFCCCC",Comment:"#ABADB1",Gray:"#a6aaaf",DarkGray:ys("#a6aaaf","#f8f9fa",.5),GradientColors:["#399ee6","#86b300"]},gji=new _a("Ayu Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:fc.Background,color:fc.Foreground},"hljs-comment":{color:fc.Comment,fontStyle:"italic"},"hljs-quote":{color:fc.AccentCyan,fontStyle:"italic"},"hljs-string":{color:fc.AccentGreen},"hljs-constant":{color:fc.AccentCyan},"hljs-number":{color:fc.AccentPurple},"hljs-keyword":{color:fc.AccentYellow},"hljs-selector-tag":{color:fc.AccentYellow},"hljs-attribute":{color:fc.AccentYellow},"hljs-variable":{color:fc.Foreground},"hljs-variable.language":{color:fc.LightBlue,fontStyle:"italic"},"hljs-title":{color:fc.AccentBlue},"hljs-section":{color:fc.AccentGreen,fontWeight:"bold"},"hljs-type":{color:fc.LightBlue},"hljs-class .hljs-title":{color:fc.AccentBlue},"hljs-tag":{color:fc.LightBlue},"hljs-name":{color:fc.AccentBlue},"hljs-builtin-name":{color:fc.AccentYellow},"hljs-meta":{color:fc.AccentYellow},"hljs-symbol":{color:fc.AccentRed},"hljs-bullet":{color:fc.AccentYellow},"hljs-regexp":{color:fc.AccentCyan},"hljs-link":{color:fc.LightBlue},"hljs-deletion":{color:fc.AccentRed},"hljs-addition":{color:fc.AccentGreen},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-literal":{color:fc.AccentCyan},"hljs-built_in":{color:fc.AccentRed},"hljs-doctag":{color:fc.AccentRed},"hljs-template-variable":{color:fc.AccentCyan},"hljs-selector-id":{color:fc.AccentRed}},fc)});var pl,hji,Eji=b(()=>{"use strict";Pp();lf();pl={type:"dark",Background:"#282c34",Foreground:"#abb2bf",LightBlue:"#61aeee",AccentBlue:"#61aeee",AccentPurple:"#c678dd",AccentCyan:"#56b6c2",AccentGreen:"#98c379",AccentYellow:"#e6c07b",AccentRed:"#e06c75",DiffAdded:"#39544E",DiffRemoved:"#562B2F",Comment:"#5c6370",Gray:"#5c6370",DarkGray:ys("#5c6370","#282c34",.5),GradientColors:["#61aeee","#98c379"]},hji=new _a("Atom One","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:pl.Foreground,background:pl.Background},"hljs-comment":{color:pl.Comment,fontStyle:"italic"},"hljs-quote":{color:pl.Comment,fontStyle:"italic"},"hljs-doctag":{color:pl.AccentPurple},"hljs-keyword":{color:pl.AccentPurple},"hljs-formula":{color:pl.AccentPurple},"hljs-section":{color:pl.AccentRed},"hljs-name":{color:pl.AccentRed},"hljs-selector-tag":{color:pl.AccentRed},"hljs-deletion":{color:pl.AccentRed},"hljs-subst":{color:pl.AccentRed},"hljs-literal":{color:pl.AccentCyan},"hljs-string":{color:pl.AccentGreen},"hljs-regexp":{color:pl.AccentGreen},"hljs-addition":{color:pl.AccentGreen},"hljs-attribute":{color:pl.AccentGreen},"hljs-meta-string":{color:pl.AccentGreen},"hljs-built_in":{color:pl.AccentYellow},"hljs-class .hljs-title":{color:pl.AccentYellow},"hljs-attr":{color:pl.AccentYellow},"hljs-variable":{color:pl.AccentYellow},"hljs-template-variable":{color:pl.AccentYellow},"hljs-type":{color:pl.AccentYellow},"hljs-selector-class":{color:pl.AccentYellow},"hljs-selector-attr":{color:pl.AccentYellow},"hljs-selector-pseudo":{color:pl.AccentYellow},"hljs-number":{color:pl.AccentYellow},"hljs-symbol":{color:pl.AccentBlue},"hljs-bullet":{color:pl.AccentBlue},"hljs-link":{color:pl.AccentBlue,textDecoration:"underline"},"hljs-meta":{color:pl.AccentBlue},"hljs-selector-id":{color:pl.AccentBlue},"hljs-title":{color:pl.AccentBlue},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},pl)});var fp,yji,_ji=b(()=>{"use strict";Pp();lf();fp={type:"dark",Background:"#282a36",Foreground:"#a3afb7",LightBlue:"#8be9fd",AccentBlue:"#8be9fd",AccentPurple:"#ff79c6",AccentCyan:"#8be9fd",AccentGreen:"#50fa7b",AccentYellow:"#fff783",AccentRed:"#ff5555",DiffAdded:"#11431d",DiffRemoved:"#6e1818",Comment:"#6272a4",Gray:"#6272a4",DarkGray:ys("#6272a4","#282a36",.5),GradientColors:["#ff79c6","#8be9fd"]},yji=new _a("Dracula","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:fp.Background,color:fp.Foreground},"hljs-keyword":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-selector-tag":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-literal":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-section":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-link":{color:fp.AccentBlue},"hljs-function .hljs-keyword":{color:fp.AccentPurple},"hljs-subst":{color:fp.Foreground},"hljs-string":{color:fp.AccentYellow},"hljs-title":{color:fp.AccentYellow,fontWeight:"bold"},"hljs-name":{color:fp.AccentYellow,fontWeight:"bold"},"hljs-type":{color:fp.AccentYellow,fontWeight:"bold"},"hljs-attribute":{color:fp.AccentYellow},"hljs-symbol":{color:fp.AccentYellow},"hljs-bullet":{color:fp.AccentYellow},"hljs-addition":{color:fp.AccentGreen},"hljs-variable":{color:fp.AccentYellow},"hljs-template-tag":{color:fp.AccentYellow},"hljs-template-variable":{color:fp.AccentYellow},"hljs-comment":{color:fp.Comment},"hljs-quote":{color:fp.Comment},"hljs-deletion":{color:fp.AccentRed},"hljs-meta":{color:fp.Comment},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},fp)});var gc,Cji,Sji=b(()=>{"use strict";Pp();lf();gc={type:"dark",Background:"#24292e",Foreground:"#c0c4c8",LightBlue:"#79B8FF",AccentBlue:"#79B8FF",AccentPurple:"#B392F0",AccentCyan:"#9ECBFF",AccentGreen:"#85E89D",AccentYellow:"#FFAB70",AccentRed:"#F97583",DiffAdded:"#3C4636",DiffRemoved:"#502125",Comment:"#6A737D",Gray:"#6A737D",DarkGray:ys("#6A737D","#24292e",.5),GradientColors:["#79B8FF","#85E89D"]},Cji=new _a("GitHub","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:gc.Foreground,background:gc.Background},"hljs-comment":{color:gc.Comment,fontStyle:"italic"},"hljs-quote":{color:gc.Comment,fontStyle:"italic"},"hljs-keyword":{color:gc.AccentRed,fontWeight:"bold"},"hljs-selector-tag":{color:gc.AccentRed,fontWeight:"bold"},"hljs-subst":{color:gc.Foreground},"hljs-number":{color:gc.LightBlue},"hljs-literal":{color:gc.LightBlue},"hljs-variable":{color:gc.AccentYellow},"hljs-template-variable":{color:gc.AccentYellow},"hljs-tag .hljs-attr":{color:gc.AccentYellow},"hljs-string":{color:gc.AccentCyan},"hljs-doctag":{color:gc.AccentCyan},"hljs-title":{color:gc.AccentPurple,fontWeight:"bold"},"hljs-section":{color:gc.AccentPurple,fontWeight:"bold"},"hljs-selector-id":{color:gc.AccentPurple,fontWeight:"bold"},"hljs-type":{color:gc.AccentGreen,fontWeight:"bold"},"hljs-class .hljs-title":{color:gc.AccentGreen,fontWeight:"bold"},"hljs-tag":{color:gc.AccentGreen},"hljs-name":{color:gc.AccentGreen},"hljs-attribute":{color:gc.LightBlue},"hljs-regexp":{color:gc.AccentCyan},"hljs-link":{color:gc.AccentCyan},"hljs-symbol":{color:gc.AccentPurple},"hljs-bullet":{color:gc.AccentPurple},"hljs-built_in":{color:gc.LightBlue},"hljs-builtin-name":{color:gc.LightBlue},"hljs-meta":{color:gc.LightBlue,fontWeight:"bold"},"hljs-deletion":{background:"#86181D",color:gc.AccentRed},"hljs-addition":{background:"#144620",color:gc.AccentGreen},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},gc)});var Hc,Iji,bji=b(()=>{"use strict";Pp();lf();Hc={type:"light",Background:"#f8f8f8",Foreground:"#24292E",LightBlue:"#0086b3",AccentBlue:"#458",AccentPurple:"#900",AccentCyan:"#009926",AccentGreen:"#008080",AccentYellow:"#990073",AccentRed:"#d14",DiffAdded:"#C6EAD8",DiffRemoved:"#FFCCCC",Comment:"#998",Gray:"#999",DarkGray:ys("#999","#f8f8f8",.5),FocusColor:"#458",GradientColors:["#458","#008080"]},Iji=new _a("GitHub Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:Hc.Foreground,background:Hc.Background},"hljs-comment":{color:Hc.Comment,fontStyle:"italic"},"hljs-quote":{color:Hc.Comment,fontStyle:"italic"},"hljs-keyword":{color:Hc.Foreground,fontWeight:"bold"},"hljs-selector-tag":{color:Hc.Foreground,fontWeight:"bold"},"hljs-subst":{color:Hc.Foreground,fontWeight:"normal"},"hljs-number":{color:Hc.AccentGreen},"hljs-literal":{color:Hc.AccentGreen},"hljs-variable":{color:Hc.AccentGreen},"hljs-template-variable":{color:Hc.AccentGreen},"hljs-tag .hljs-attr":{color:Hc.AccentGreen},"hljs-string":{color:Hc.AccentRed},"hljs-doctag":{color:Hc.AccentRed},"hljs-title":{color:Hc.AccentPurple,fontWeight:"bold"},"hljs-section":{color:Hc.AccentPurple,fontWeight:"bold"},"hljs-selector-id":{color:Hc.AccentPurple,fontWeight:"bold"},"hljs-type":{color:Hc.AccentBlue,fontWeight:"bold"},"hljs-class .hljs-title":{color:Hc.AccentBlue,fontWeight:"bold"},"hljs-tag":{color:Hc.AccentBlue,fontWeight:"normal"},"hljs-name":{color:Hc.AccentBlue,fontWeight:"normal"},"hljs-attribute":{color:Hc.AccentBlue,fontWeight:"normal"},"hljs-regexp":{color:Hc.AccentCyan},"hljs-link":{color:Hc.AccentCyan},"hljs-symbol":{color:Hc.AccentYellow},"hljs-bullet":{color:Hc.AccentYellow},"hljs-built_in":{color:Hc.LightBlue},"hljs-builtin-name":{color:Hc.LightBlue},"hljs-meta":{color:Hc.Gray,fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},Hc)});var mc,Tji,vji=b(()=>{"use strict";Pp();lf();mc={type:"light",Background:"white",Foreground:"#444",LightBlue:"#066",AccentBlue:"#008",AccentPurple:"#606",AccentCyan:"#066",AccentGreen:"#080",AccentYellow:"#660",AccentRed:"#800",DiffAdded:"#C6EAD8",DiffRemoved:"#FEDEDE",Comment:"#5f6368",Gray:hn.Gray,DarkGray:ys(hn.Gray,"#ffffff",.5),GradientColors:["#066","#606"]},Tji=new _a("Google Code","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:mc.Background,color:mc.Foreground},"hljs-comment":{color:mc.AccentRed},"hljs-quote":{color:mc.AccentRed},"hljs-keyword":{color:mc.AccentBlue},"hljs-selector-tag":{color:mc.AccentBlue},"hljs-section":{color:mc.AccentBlue},"hljs-title":{color:mc.AccentPurple},"hljs-name":{color:mc.AccentBlue},"hljs-variable":{color:mc.AccentYellow},"hljs-template-variable":{color:mc.AccentYellow},"hljs-string":{color:mc.AccentGreen},"hljs-selector-attr":{color:mc.AccentGreen},"hljs-selector-pseudo":{color:mc.AccentGreen},"hljs-regexp":{color:mc.AccentGreen},"hljs-literal":{color:mc.AccentCyan},"hljs-symbol":{color:mc.AccentCyan},"hljs-bullet":{color:mc.AccentCyan},"hljs-meta":{color:mc.AccentCyan},"hljs-number":{color:mc.AccentCyan},"hljs-link":{color:mc.AccentCyan},"hljs-doctag":{color:mc.AccentPurple,fontWeight:"bold"},"hljs-type":{color:mc.AccentPurple},"hljs-attr":{color:mc.AccentPurple},"hljs-built_in":{color:mc.AccentPurple},"hljs-builtin-name":{color:mc.AccentPurple},"hljs-params":{color:mc.AccentPurple},"hljs-attribute":{color:mc.Foreground},"hljs-subst":{color:mc.Foreground},"hljs-formula":{backgroundColor:"#eee",fontStyle:"italic"},"hljs-selector-id":{color:mc.AccentYellow},"hljs-selector-class":{color:mc.AccentYellow},"hljs-addition":{backgroundColor:"#baeeba"},"hljs-deletion":{backgroundColor:"#ffc8bd"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},mc)});var Ks,wji,xji=b(()=>{"use strict";Pp();lf();Ks={type:"dark",Background:"#00210e",Foreground:"#F0F8FF",LightBlue:"#B0E0E6",AccentBlue:"#3CB371",AccentPurple:"#FF9999",AccentCyan:"#33F9FF",AccentGreen:"#3CB371",AccentYellow:"#FFEE8C",AccentRed:"#FF6347",DiffAdded:"#2E8B57",DiffRemoved:"#CD5C5C",Comment:"#8FBC8F",Gray:"#D7F5D3",DarkGray:ys("#D7F5D3","#151B18",.5),FocusColor:"#33F9FF",GradientColors:["#FF0000","#FFFFFF","#008000"]},wji=new _a("Holiday","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Ks.Background,color:Ks.Foreground},"hljs-keyword":{color:Ks.AccentBlue},"hljs-literal":{color:Ks.AccentBlue},"hljs-symbol":{color:Ks.AccentBlue},"hljs-name":{color:Ks.AccentBlue},"hljs-link":{color:Ks.AccentBlue,textDecoration:"underline"},"hljs-built_in":{color:Ks.AccentCyan},"hljs-type":{color:Ks.AccentCyan},"hljs-number":{color:Ks.AccentGreen},"hljs-class":{color:Ks.AccentGreen},"hljs-string":{color:Ks.AccentYellow},"hljs-meta-string":{color:Ks.AccentYellow},"hljs-regexp":{color:Ks.AccentRed},"hljs-template-tag":{color:Ks.AccentRed},"hljs-subst":{color:Ks.Foreground},"hljs-function":{color:Ks.Foreground},"hljs-title":{color:Ks.Foreground},"hljs-params":{color:Ks.Foreground},"hljs-formula":{color:Ks.Foreground},"hljs-comment":{color:Ks.Comment,fontStyle:"italic"},"hljs-quote":{color:Ks.Comment,fontStyle:"italic"},"hljs-doctag":{color:Ks.Comment},"hljs-meta":{color:Ks.Gray},"hljs-meta-keyword":{color:Ks.Gray},"hljs-tag":{color:Ks.Gray},"hljs-variable":{color:Ks.AccentPurple},"hljs-template-variable":{color:Ks.AccentPurple},"hljs-attr":{color:Ks.LightBlue},"hljs-attribute":{color:Ks.LightBlue},"hljs-builtin-name":{color:Ks.LightBlue},"hljs-section":{color:Ks.AccentYellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:Ks.AccentYellow},"hljs-selector-tag":{color:Ks.AccentYellow},"hljs-selector-id":{color:Ks.AccentYellow},"hljs-selector-class":{color:Ks.AccentYellow},"hljs-selector-attr":{color:Ks.AccentYellow},"hljs-selector-pseudo":{color:Ks.AccentYellow},"hljs-addition":{backgroundColor:Ks.DiffAdded,display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:Ks.DiffRemoved,display:"inline-block",width:"100%"}},Ks)});var ls,Zm,Rji,Bji=b(()=>{"use strict";Pp();lf();ls={type:"dark",Background:"#1e1e3f",Foreground:"#e3dfff",LightBlue:"#847ace",AccentBlue:"#a599e9",AccentPurple:"#ac65ff",AccentCyan:"#a1feff",AccentGreen:"#A5FF90",AccentYellow:"#fad000",AccentRed:"#ff628c",DiffAdded:"#383E45",DiffRemoved:"#572244",Comment:"#B362FF",Gray:"#726c86",DarkGray:ys("#726c86","#2d2b57",.5),GradientColors:["#4d21fc","#847ace","#ff628c"]},Zm={AccentYellowAlt:"#f8d000",AccentOrange:"#fb9e00",AccentPink:"#fa658d",AccentLightPurple:"#c991ff",AccentDarkPurple:"#6943ff",AccentTeal:"#2ee2fa"},Rji=new _a("Shades Of Purple","dark",{hljs:{display:"block",overflowX:"auto",background:ls.Background,color:ls.Foreground},"hljs-title":{color:ls.AccentYellow,fontWeight:"normal"},"hljs-name":{color:ls.AccentCyan,fontWeight:"normal"},"hljs-tag":{color:ls.Foreground},"hljs-attr":{color:Zm.AccentYellowAlt,fontStyle:"italic"},"hljs-built_in":{color:Zm.AccentOrange},"hljs-selector-tag":{color:Zm.AccentOrange,fontWeight:"normal"},"hljs-section":{color:Zm.AccentOrange},"hljs-keyword":{color:Zm.AccentOrange,fontWeight:"normal"},"hljs-subst":{color:ls.Foreground},"hljs-string":{color:ls.AccentGreen},"hljs-attribute":{color:ls.AccentGreen},"hljs-symbol":{color:ls.AccentGreen},"hljs-bullet":{color:ls.AccentGreen},"hljs-addition":{color:ls.AccentGreen},"hljs-code":{color:ls.AccentGreen},"hljs-regexp":{color:ls.AccentGreen},"hljs-selector-class":{color:ls.AccentGreen},"hljs-selector-attr":{color:ls.AccentGreen},"hljs-selector-pseudo":{color:ls.AccentGreen},"hljs-template-tag":{color:ls.AccentGreen},"hljs-quote":{color:ls.AccentGreen},"hljs-deletion":{color:ls.AccentRed},"hljs-meta":{color:Zm.AccentOrange},"hljs-meta-string":{color:Zm.AccentOrange},"hljs-comment":{color:ls.AccentPurple},"hljs-literal":{color:Zm.AccentPink,fontWeight:"normal"},"hljs-number":{color:Zm.AccentPink},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-diff":{color:ls.Foreground},"hljs-meta.hljs-diff":{color:ls.AccentBlue},"hljs-ln":{color:ls.Gray},"hljs-type":{color:ls.AccentYellow,fontWeight:"normal"},"hljs-variable":{color:ls.AccentYellow},"hljs-template-variable":{color:ls.AccentGreen},"hljs-function .hljs-keyword":{color:Zm.AccentOrange},"hljs-link":{color:ls.LightBlue},"hljs-doctag":{fontWeight:"bold"},"hljs-params":{color:Zm.AccentLightPurple,fontStyle:"italic"},"hljs-class":{color:ls.AccentCyan,fontWeight:"bold"},"hljs-function":{color:ls.AccentCyan},"hljs-property":{color:ls.AccentBlue},"hljs-operator":{color:Zm.AccentDarkPurple},"hljs-punctuation":{color:ls.Gray},"hljs-selector-id":{color:ls.AccentYellow,fontWeight:"bold"},"hljs-char":{color:ls.AccentGreen},"hljs-escape":{color:Zm.AccentPink,fontWeight:"bold"},"hljs-meta-keyword":{color:Zm.AccentOrange,fontWeight:"bold"},"hljs-builtin-name":{color:Zm.AccentTeal},"hljs-module":{color:ls.AccentCyan},"hljs-namespace":{color:ls.LightBlue},"hljs-important":{color:ls.AccentRed,fontWeight:"bold"},"hljs-formula":{color:ls.AccentCyan,fontStyle:"italic"},"hljs-decorator":{color:Zm.AccentTeal,fontWeight:"bold"},"hljs-symbol.ruby":{color:Zm.AccentPink},"hljs-keyword.sql":{color:Zm.AccentOrange,textTransform:"uppercase"},"hljs-section.markdown":{color:ls.AccentYellow,fontWeight:"bold"},"hljs-attr.json":{color:ls.AccentCyan},"hljs-tag .hljs-name":{color:ls.AccentRed},"hljs-tag .hljs-attr":{color:Zm.AccentYellowAlt},"hljs.hljs-line-numbers":{borderRight:`1px solid ${ls.Gray}`},"hljs.hljs-line-numbers .hljs-ln-numbers":{color:ls.Gray,paddingRight:"1em"},"hljs.hljs-line-numbers .hljs-ln-code":{paddingLeft:"1em"},"hljs::selection":{background:ls.AccentBlue+"40"},"hljs ::-moz-selection":{background:ls.AccentBlue+"40"},"hljs .hljs-highlight":{background:ls.AccentPurple+"20",display:"block",width:"100%"}},ls)});var kji,Dji,pFe=b(()=>{"use strict";Pp();kji={text:{primary:hn.Foreground,secondary:hn.Gray,link:hn.AccentBlue,accent:hn.AccentPurple,response:hn.Foreground},background:{primary:hn.Background,message:hn.MessageBackground,input:hn.InputBackground,focus:hn.FocusBackground,diff:{added:hn.DiffAdded,removed:hn.DiffRemoved}},border:{default:hn.DarkGray},ui:{comment:hn.Comment,symbol:hn.Gray,active:hn.AccentBlue,dark:hn.DarkGray,focus:hn.AccentGreen,gradient:hn.GradientColors},status:{error:hn.AccentRed,success:hn.AccentGreen,warning:hn.AccentYellow},agent:{red:hn.AgentRed,blue:hn.AgentBlue,green:hn.AgentGreen,yellow:hn.AgentYellow,purple:hn.AgentPurple,orange:hn.AgentOrange,pink:hn.AgentPink,cyan:hn.AgentCyan,badgeText:"#FFFFFF"}},Dji={text:{primary:gr.Foreground,secondary:gr.Gray,link:gr.AccentBlue,accent:gr.AccentPurple,response:gr.Foreground},background:{primary:gr.Background,message:gr.MessageBackground,input:gr.InputBackground,focus:gr.FocusBackground,diff:{added:gr.DiffAdded,removed:gr.DiffRemoved}},border:{default:gr.DarkGray},ui:{comment:gr.Comment,symbol:gr.Gray,active:gr.AccentBlue,dark:gr.DarkGray,focus:gr.AccentGreen,gradient:gr.GradientColors},status:{error:gr.AccentRed,success:gr.AccentGreen,warning:gr.AccentYellow},agent:{red:gr.AgentRed,blue:gr.AgentBlue,green:gr.AgentGreen,yellow:gr.AgentYellow,purple:gr.AgentPurple,orange:gr.AgentOrange,pink:gr.AgentPink,cyan:gr.AgentCyan,badgeText:"#000000"}}});var Ca,Fpl,Nji,Mji=b(()=>{"use strict";Pp();pFe();wd();Ca={type:"dark",Background:"#002b36",Foreground:"#839496",LightBlue:"#268bd2",AccentBlue:"#268bd2",AccentPurple:"#6c71c4",AccentCyan:"#2aa198",AccentGreen:"#859900",AccentYellow:"#d0b000",AccentRed:"#dc322f",DiffAdded:"#859900",DiffRemoved:"#dc322f",Comment:"#586e75",Gray:"#586e75",DarkGray:"#073642",GradientColors:["#268bd2","#2aa198"]},Fpl={text:{primary:"#839496",secondary:"#586e75",link:"#268bd2",accent:"#268bd2",response:"#839496"},background:{primary:"#002b36",message:"#073642",input:"#073642",focus:ys("#002b36","#859900",CG),diff:{added:"#00382f",removed:"#3d0115"}},border:{default:"#073642"},ui:{comment:"#586e75",symbol:"#93a1a1",active:"#268bd2",dark:"#073642",focus:"#859900",gradient:["#268bd2","#2aa198","#859900"]},status:{success:"#859900",warning:"#d0b000",error:"#dc322f"},agent:{red:"#EA4335",blue:"#669DF6",green:"#34A853",yellow:"#FBBC04",purple:"#AF5CF7",orange:"#E8710A",pink:"#FF63B8",cyan:"#24C1E0",badgeText:"#000000"}},Nji=new _a("Solarized Dark","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Ca.Background,color:Ca.Foreground},"hljs-keyword":{color:Ca.AccentBlue},"hljs-literal":{color:Ca.AccentBlue},"hljs-symbol":{color:Ca.AccentBlue},"hljs-name":{color:Ca.AccentBlue},"hljs-link":{color:Ca.AccentBlue,textDecoration:"underline"},"hljs-built_in":{color:Ca.AccentCyan},"hljs-type":{color:Ca.AccentCyan},"hljs-number":{color:Ca.AccentGreen},"hljs-class":{color:Ca.AccentGreen},"hljs-string":{color:Ca.AccentYellow},"hljs-meta-string":{color:Ca.AccentYellow},"hljs-regexp":{color:Ca.AccentRed},"hljs-template-tag":{color:Ca.AccentRed},"hljs-subst":{color:Ca.Foreground},"hljs-function":{color:Ca.Foreground},"hljs-title":{color:Ca.Foreground},"hljs-params":{color:Ca.Foreground},"hljs-formula":{color:Ca.Foreground},"hljs-comment":{color:Ca.Comment,fontStyle:"italic"},"hljs-quote":{color:Ca.Comment,fontStyle:"italic"},"hljs-doctag":{color:Ca.Comment},"hljs-meta":{color:Ca.Gray},"hljs-meta-keyword":{color:Ca.Gray},"hljs-tag":{color:Ca.Gray},"hljs-variable":{color:Ca.AccentPurple},"hljs-template-variable":{color:Ca.AccentPurple},"hljs-attr":{color:Ca.LightBlue},"hljs-attribute":{color:Ca.LightBlue},"hljs-builtin-name":{color:Ca.LightBlue},"hljs-section":{color:Ca.AccentYellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:Ca.AccentYellow},"hljs-selector-tag":{color:Ca.AccentYellow},"hljs-selector-id":{color:Ca.AccentYellow},"hljs-selector-class":{color:Ca.AccentYellow},"hljs-selector-attr":{color:Ca.AccentYellow},"hljs-selector-pseudo":{color:Ca.AccentYellow},"hljs-addition":{backgroundColor:"#00382f",display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:"#3d0115",display:"inline-block",width:"100%"}},Ca,Fpl)});var Sa,Upl,Oji,Pji=b(()=>{"use strict";Pp();pFe();wd();Sa={type:"light",Background:"#fdf6e3",Foreground:"#657b83",LightBlue:"#268bd2",AccentBlue:"#268bd2",AccentPurple:"#6c71c4",AccentCyan:"#2aa198",AccentGreen:"#859900",AccentYellow:"#d0b000",AccentRed:"#dc322f",DiffAdded:"#859900",DiffRemoved:"#dc322f",Comment:"#93a1a1",Gray:"#93a1a1",DarkGray:"#eee8d5",GradientColors:["#268bd2","#2aa198"]},Upl={text:{primary:"#657b83",secondary:"#93a1a1",link:"#268bd2",accent:"#268bd2",response:"#657b83"},background:{primary:"#fdf6e3",message:"#eee8d5",input:"#eee8d5",focus:ys("#fdf6e3","#859900",CG),diff:{added:"#d7f2d7",removed:"#f2d7d7"}},border:{default:"#eee8d5"},ui:{comment:"#93a1a1",symbol:"#586e75",active:"#268bd2",dark:"#eee8d5",focus:"#859900",gradient:["#268bd2","#2aa198","#859900"]},status:{success:"#859900",warning:"#d0b000",error:"#dc322f"},agent:{red:"#D93025",blue:"#1A73E8",green:"#188038",yellow:"#E37400",purple:"#8430CE",orange:"#C5621C",pink:"#D01884",cyan:"#007B83",badgeText:"#FFFFFF"}},Oji=new _a("Solarized Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Sa.Background,color:Sa.Foreground},"hljs-keyword":{color:Sa.AccentBlue},"hljs-literal":{color:Sa.AccentBlue},"hljs-symbol":{color:Sa.AccentBlue},"hljs-name":{color:Sa.AccentBlue},"hljs-link":{color:Sa.AccentBlue,textDecoration:"underline"},"hljs-built_in":{color:Sa.AccentCyan},"hljs-type":{color:Sa.AccentCyan},"hljs-number":{color:Sa.AccentGreen},"hljs-class":{color:Sa.AccentGreen},"hljs-string":{color:Sa.AccentYellow},"hljs-meta-string":{color:Sa.AccentYellow},"hljs-regexp":{color:Sa.AccentRed},"hljs-template-tag":{color:Sa.AccentRed},"hljs-subst":{color:Sa.Foreground},"hljs-function":{color:Sa.Foreground},"hljs-title":{color:Sa.Foreground},"hljs-params":{color:Sa.Foreground},"hljs-formula":{color:Sa.Foreground},"hljs-comment":{color:Sa.Comment,fontStyle:"italic"},"hljs-quote":{color:Sa.Comment,fontStyle:"italic"},"hljs-doctag":{color:Sa.Comment},"hljs-meta":{color:Sa.Gray},"hljs-meta-keyword":{color:Sa.Gray},"hljs-tag":{color:Sa.Gray},"hljs-variable":{color:Sa.AccentPurple},"hljs-template-variable":{color:Sa.AccentPurple},"hljs-attr":{color:Sa.LightBlue},"hljs-attribute":{color:Sa.LightBlue},"hljs-builtin-name":{color:Sa.LightBlue},"hljs-section":{color:Sa.AccentYellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:Sa.AccentYellow},"hljs-selector-tag":{color:Sa.AccentYellow},"hljs-selector-id":{color:Sa.AccentYellow},"hljs-selector-class":{color:Sa.AccentYellow},"hljs-selector-attr":{color:Sa.AccentYellow},"hljs-selector-pseudo":{color:Sa.AccentYellow},"hljs-addition":{backgroundColor:"#d7f2d7",display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:"#f2d7d7",display:"inline-block",width:"100%"}},Sa,Upl)});var Ll,Qji,Lji=b(()=>{"use strict";Pp();lf();Ll={type:"light",Background:"#fff",Foreground:"#444",LightBlue:"#0E0EFF",AccentBlue:"#1c00cf",AccentPurple:"#aa0d91",AccentCyan:"#3F6E74",AccentGreen:"#007400",AccentYellow:"#836C28",AccentRed:"#c41a16",DiffAdded:"#C6EAD8",DiffRemoved:"#FEDEDE",Comment:"#007400",Gray:"#c0c0c0",DarkGray:ys("#c0c0c0","#fff",.5),FocusColor:"#1c00cf",GradientColors:["#1c00cf","#007400"]},Qji=new _a("Xcode","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Ll.Background,color:Ll.Foreground},"xml .hljs-meta":{color:Ll.Gray},"hljs-comment":{color:Ll.Comment},"hljs-quote":{color:Ll.Comment},"hljs-tag":{color:Ll.AccentPurple},"hljs-attribute":{color:Ll.AccentPurple},"hljs-keyword":{color:Ll.AccentPurple},"hljs-selector-tag":{color:Ll.AccentPurple},"hljs-literal":{color:Ll.AccentPurple},"hljs-name":{color:Ll.AccentPurple},"hljs-variable":{color:Ll.AccentCyan},"hljs-template-variable":{color:Ll.AccentCyan},"hljs-code":{color:Ll.AccentRed},"hljs-string":{color:Ll.AccentRed},"hljs-meta-string":{color:Ll.AccentRed},"hljs-regexp":{color:Ll.LightBlue},"hljs-link":{color:Ll.LightBlue},"hljs-title":{color:Ll.AccentBlue},"hljs-symbol":{color:Ll.AccentBlue},"hljs-bullet":{color:Ll.AccentBlue},"hljs-number":{color:Ll.AccentBlue},"hljs-section":{color:Ll.AccentYellow},"hljs-meta":{color:Ll.AccentYellow},"hljs-class .hljs-title":{color:Ll.AccentPurple},"hljs-type":{color:Ll.AccentPurple},"hljs-built_in":{color:Ll.AccentPurple},"hljs-builtin-name":{color:Ll.AccentPurple},"hljs-params":{color:Ll.AccentPurple},"hljs-attr":{color:Ll.AccentYellow},"hljs-subst":{color:Ll.Foreground},"hljs-formula":{backgroundColor:"#eee",fontStyle:"italic"},"hljs-addition":{backgroundColor:"#baeeba"},"hljs-deletion":{backgroundColor:"#ffc8bd"},"hljs-selector-id":{color:Ll.AccentYellow},"hljs-selector-class":{color:Ll.AccentYellow},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},Ll)});var yn,Gpl,Fji,Uji=b(()=>{"use strict";Pp();lf();yn={bg:"#1a1b26",bg_dark:"#16161e",bg_dark1:"#0C0E14",bg_highlight:"#292e42",blue:"#7aa2f7",blue0:"#3d59a1",blue1:"#2ac3de",blue2:"#0db9d7",blue5:"#89ddff",blue6:"#b4f9f8",blue7:"#394b70",comment:"#565f89",cyan:"#7dcfff",fg:"#c0caf5",fg_dark:"#a9b1d6",fg_gutter:"#3b4261",green:"#9ece6a",green1:"#73daca",green2:"#41a6b5",magenta:"#bb9af7",magenta2:"#ff007c",orange:"#ff9e64",purple:"#9d7cd8",red:"#f7768e",red1:"#db4b4b",teal:"#1abc9c",yellow:"#e0af68",diff:{add:"#243e4a",change:"#1f2231",delete:"#4a272f"}},Gpl={type:"dark",Background:yn.bg,Foreground:yn.fg,LightBlue:yn.purple,AccentBlue:yn.magenta,AccentPurple:yn.blue,AccentCyan:yn.cyan,AccentGreen:yn.teal,AccentYellow:yn.yellow,AccentRed:yn.red1,DiffAdded:yn.diff.add,DiffRemoved:yn.diff.delete,Comment:yn.comment,Gray:yn.fg_dark,DarkGray:yn.fg_gutter,FocusColor:yn.blue,GradientColors:[yn.blue,yn.magenta,yn.cyan]},Fji=new _a("Tokyo Night","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:yn.bg,color:yn.fg},"hljs-addition":{background:yn.diff.add},"hljs-attr":{color:yn.green1},"hljs-attribute":{color:yn.green1},"hljs-brace":{color:yn.fg_dark},"hljs-built_in":{color:yn.blue1},"hljs-builtin-symbol":{color:yn.blue1},"hljs-bullet":{color:yn.orange,fontWeight:"bold"},"hljs-char":{color:yn.green},"hljs-char-escape":{color:yn.magenta},"hljs-character":{color:yn.green},"hljs-class":{color:yn.blue1},"hljs-class-title":{color:yn.blue1},"hljs-code":{color:yn.green},"hljs-comment":{color:yn.comment,fontStyle:"italic"},"hljs-computation-expression":{color:yn.cyan},"hljs-deletion":{background:yn.diff.delete},"hljs-doctag":{color:yn.yellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-function":{color:yn.blue},"hljs-function-dispatch":{color:yn.blue},"hljs-keyword":{color:yn.magenta,fontStyle:"italic"},"hljs-label":{color:yn.blue},"hljs-link":{color:yn.teal},"hljs-literal":{color:yn.orange},"hljs-message-name":{color:yn.blue},"hljs-meta":{color:yn.cyan},"hljs-meta-prompt":{color:yn.fg_dark},"hljs-name":{color:yn.magenta},"hljs-named-character":{color:yn.blue1},"hljs-number":{color:yn.orange},"hljs-operator":{color:yn.blue5},"hljs-params":{color:yn.yellow},"hljs-property":{color:yn.green1},"hljs-punctuation":{color:yn.fg_dark},"hljs-quote":{color:yn.comment,fontStyle:"italic"},"hljs-regex":{color:yn.blue6},"hljs-regexp":{color:yn.blue6},"hljs-rest_arg":{color:ys(yn.yellow,yn.fg,.8)},"hljs-section":{color:yn.blue,fontWeight:"bold"},"hljs-selector-attr":{color:yn.cyan},"hljs-selector-class":{color:yn.green1},"hljs-selector-id":{color:yn.green1},"hljs-selector-pseudo":{color:yn.cyan},"hljs-selector-tag":{color:yn.magenta},"hljs-string":{color:yn.green},"hljs-strong":{fontWeight:"bold"},"hljs-subst":{color:yn.blue5},"hljs-symbol":{color:yn.magenta},"hljs-tag":{color:yn.blue1},"hljs-template-tag":{color:yn.blue5},"hljs-template-variable":{color:yn.fg},"hljs-title":{color:yn.blue},"hljs-title-class":{color:yn.blue1},"hljs-title-class-inherited":{color:yn.blue1},"hljs-title-function":{color:yn.blue},"hljs-title-function-invoke":{color:yn.blue},"hljs-type":{color:yn.blue1},"hljs-variable":{color:yn.fg},"hljs-variable-constant":{color:yn.orange},"hljs-variable-language":{color:yn.red}},Gpl)});var $pl,Gji,$ji=b(()=>{"use strict";Pp();pFe();$pl={type:"dark",Background:"black",Foreground:"",LightBlue:"bluebright",AccentBlue:"blue",AccentPurple:"magenta",AccentCyan:"cyan",AccentGreen:"green",AccentYellow:"yellow",AccentRed:"red",DiffAdded:"#003300",DiffRemoved:"#4D0000",Comment:"gray",Gray:"gray",DarkGray:"gray",FocusBackground:"black",GradientColors:["cyan","green"]},Gji=new _a("ANSI","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"black",color:"white"},"hljs-keyword":{color:"blue"},"hljs-literal":{color:"blue"},"hljs-symbol":{color:"blue"},"hljs-name":{color:"blue"},"hljs-link":{color:"blue"},"hljs-built_in":{color:"cyan"},"hljs-type":{color:"cyan"},"hljs-number":{color:"green"},"hljs-class":{color:"green"},"hljs-string":{color:"yellow"},"hljs-meta-string":{color:"yellow"},"hljs-regexp":{color:"red"},"hljs-template-tag":{color:"red"},"hljs-subst":{color:"white"},"hljs-function":{color:"white"},"hljs-title":{color:"white"},"hljs-params":{color:"white"},"hljs-formula":{color:"white"},"hljs-comment":{color:"green"},"hljs-quote":{color:"green"},"hljs-doctag":{color:"green"},"hljs-meta":{color:"gray"},"hljs-meta-keyword":{color:"gray"},"hljs-tag":{color:"gray"},"hljs-variable":{color:"magenta"},"hljs-template-variable":{color:"magenta"},"hljs-attr":{color:"bluebright"},"hljs-attribute":{color:"bluebright"},"hljs-builtin-name":{color:"bluebright"},"hljs-section":{color:"yellow"},"hljs-emphasis":{},"hljs-strong":{},"hljs-bullet":{color:"yellow"},"hljs-selector-tag":{color:"yellow"},"hljs-selector-id":{color:"yellow"},"hljs-selector-class":{color:"yellow"},"hljs-selector-attr":{color:"yellow"},"hljs-selector-pseudo":{color:"yellow"}},$pl,Dji)});var jpl,jji,Hji=b(()=>{"use strict";Pp();pFe();jpl={type:"light",Background:"white",Foreground:"",LightBlue:"blue",AccentBlue:"blue",AccentPurple:"magenta",AccentCyan:"cyan",AccentGreen:"green",AccentYellow:"yellow",AccentRed:"red",DiffAdded:"#E5F2E5",DiffRemoved:"#FFE5E5",Comment:"gray",Gray:"gray",DarkGray:"gray",GradientColors:["blue","green"]},jji=new _a("ANSI Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"white",color:"black"},"hljs-keyword":{color:"blue"},"hljs-literal":{color:"blue"},"hljs-symbol":{color:"blue"},"hljs-name":{color:"blue"},"hljs-link":{color:"blue"},"hljs-built_in":{color:"cyan"},"hljs-type":{color:"cyan"},"hljs-number":{color:"green"},"hljs-class":{color:"green"},"hljs-string":{color:"red"},"hljs-meta-string":{color:"red"},"hljs-regexp":{color:"magenta"},"hljs-template-tag":{color:"magenta"},"hljs-subst":{color:"black"},"hljs-function":{color:"black"},"hljs-title":{color:"black"},"hljs-params":{color:"black"},"hljs-formula":{color:"black"},"hljs-comment":{color:"gray"},"hljs-quote":{color:"gray"},"hljs-doctag":{color:"gray"},"hljs-meta":{color:"gray"},"hljs-meta-keyword":{color:"gray"},"hljs-tag":{color:"gray"},"hljs-variable":{color:"purple"},"hljs-template-variable":{color:"purple"},"hljs-attr":{color:"blue"},"hljs-attribute":{color:"blue"},"hljs-builtin-name":{color:"blue"},"hljs-section":{color:"orange"},"hljs-bullet":{color:"orange"},"hljs-selector-tag":{color:"orange"},"hljs-selector-id":{color:"orange"},"hljs-selector-class":{color:"orange"},"hljs-selector-attr":{color:"orange"},"hljs-selector-pseudo":{color:"orange"}},jpl,kji)});var Hpl,qpl,qji,Vji=b(()=>{"use strict";Pp();Hpl={type:"ansi",Background:"",Foreground:"",LightBlue:"",AccentBlue:"",AccentPurple:"",AccentCyan:"",AccentGreen:"",AccentYellow:"",AccentRed:"",DiffAdded:"",DiffRemoved:"",Comment:"",Gray:"",DarkGray:"",InputBackground:"",MessageBackground:"",FocusBackground:""},qpl={text:{primary:"",secondary:"",link:"",accent:"",response:""},background:{primary:"",message:"",input:"",focus:"",diff:{added:"",removed:""}},border:{default:""},ui:{comment:"",symbol:"",active:"",dark:"",focus:"",gradient:[]},status:{error:"",success:"",warning:""},agent:{red:"",blue:"",green:"",yellow:"",purple:"",orange:"",pink:"",cyan:"",badgeText:""}},qji=new _a("NoColor","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em"},"hljs-keyword":{},"hljs-literal":{},"hljs-symbol":{},"hljs-name":{},"hljs-link":{textDecoration:"underline"},"hljs-built_in":{},"hljs-type":{},"hljs-number":{},"hljs-class":{},"hljs-string":{},"hljs-meta-string":{},"hljs-regexp":{},"hljs-template-tag":{},"hljs-subst":{},"hljs-function":{},"hljs-title":{},"hljs-params":{},"hljs-formula":{},"hljs-comment":{fontStyle:"italic"},"hljs-quote":{fontStyle:"italic"},"hljs-doctag":{},"hljs-meta":{},"hljs-meta-keyword":{},"hljs-tag":{},"hljs-variable":{},"hljs-template-variable":{},"hljs-attr":{},"hljs-attribute":{},"hljs-builtin-name":{},"hljs-section":{},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{},"hljs-selector-tag":{},"hljs-selector-id":{},"hljs-selector-class":{},"hljs-selector-attr":{},"hljs-selector-pseudo":{},"hljs-addition":{display:"inline-block",width:"100%"},"hljs-deletion":{display:"inline-block",width:"100%"}},Hpl,qpl)});import*as Vpl from"node:fs";import*as AFe from"node:path";import Wpl from"node:process";var vC,vMr,ro,E2=b(()=>{"use strict";fji();mji();Eji();_ji();Sji();bji();vji();xji();Lmt();YTr();Bji();Mji();Pji();Lji();Uji();Pp();wd();$ji();Hji();Vji();Ue();vC=_me,vMr=class{availableThemes;activeTheme;settingsThemes=new Map;pluginThemes=new Map;fileThemes=new Map;terminalBackground;cachedColors;cachedSemanticColors;lastCacheKey;fs;homedir;constructor(e){this.fs=e?.fs??Vpl,this.homedir=e?.homedir??gs,this.availableThemes=[Aji,gji,hji,yji,A5,_me,Cji,Iji,Tji,wji,Rji,Nji,Oji,Qji,Fji,Gji,jji],this.activeTheme=vC}setTerminalBackground(e){this.terminalBackground!==e&&(this.terminalBackground=e,this.clearCache())}getTerminalBackground(){return this.terminalBackground}clearCache(){this.cachedColors=void 0,this.cachedSemanticColors=void 0,this.lastCacheKey=void 0}isDefaultTheme(e){return e===void 0||e===vC.name||e===A5.name}loadCustomThemes(e){if(this.settingsThemes.clear(),!!e){for(let[r,n]of Object.entries(e)){let o=Pmt(n);if(o.isValid){o.warning&&T.warn(`Theme "${r}": ${o.warning}`);let s={...vC.colors,...n,name:n.name||r,type:"custom"};try{let a=Omt(s);this.settingsThemes.set(r,a)}catch(a){T.warn(`Failed to load custom theme "${r}":`,a)}}else T.warn(`Invalid custom theme "${r}": ${o.error}`)}this.activeTheme&&this.activeTheme.type==="custom"&&this.settingsThemes.has(this.activeTheme.name)&&(this.activeTheme=this.settingsThemes.get(this.activeTheme.name))}}registerPluginThemes(e,r){if(r)for(let n of r){let o=`${n.name} (${e})`;if(this.availableThemes.some(a=>a.name===o)){T.warn(`Theme name collision: "${o}" is a built-in theme. Skipping.`);continue}let s=Pmt(n);if(s.isValid){s.warning&&T.warn(`Theme "${o}": ${s.warning}`);let a={...vC.colors,...n,name:o,type:"custom"};try{let l=Omt(a);this.pluginThemes.set(o,l),T.log(`Registered theme: ${o}`)}catch(l){T.warn(`Failed to load custom theme "${o}":`,l)}}else T.warn(`Invalid custom theme "${o}": ${s.error}`)}}unregisterPluginThemes(e,r){if(r)for(let n of r){let o=`${n.name} (${e})`;this.pluginThemes.delete(o),T.log(`Unregistered theme: ${o}`)}}hasPluginThemes(e){return Array.from(this.pluginThemes.keys()).some(r=>r.endsWith(`(${e})`))}clearPluginThemes(){this.pluginThemes.clear()}clearFileThemes(){this.fileThemes.clear()}reinitialize(e){e.fs&&(this.fs=e.fs),e.homedir&&(this.homedir=e.homedir)}resetForTesting(e){e&&this.reinitialize(e),this.settingsThemes.clear(),this.pluginThemes.clear(),this.fileThemes.clear(),this.activeTheme=vC,this.terminalBackground=void 0,this.clearCache()}setActiveTheme(e){let r=this.findThemeByName(e);return r?(this.activeTheme!==r&&(this.activeTheme=r,this.clearCache()),!0):!1}getActiveTheme(){if(Wpl.env.NO_COLOR)return qji;if(this.activeTheme){let e=this.availableThemes.some(o=>o.name===this.activeTheme.name),r=[...this.settingsThemes.values()].includes(this.activeTheme)||[...this.pluginThemes.values()].includes(this.activeTheme)||[...this.fileThemes.values()].includes(this.activeTheme);if(e||r)return this.activeTheme;let n=this.findThemeByName(this.activeTheme.name);if(n)return this.activeTheme=n,this.activeTheme}return this.activeTheme=vC,this.activeTheme}getThemeType(){return this.getActiveTheme().type}getThemeName(){return this.getActiveTheme().name}getColors(){let e=this.getActiveTheme(),r=`${e.name}:${this.terminalBackground}`;if(this.cachedColors&&this.lastCacheKey===r)return this.cachedColors;let n=e.colors;return this.terminalBackground&&this.isThemeCompatible(e,this.terminalBackground)?this.cachedColors={...n,Background:this.terminalBackground,DarkGray:ys(this.terminalBackground,n.Gray,Rmt),InputBackground:ys(this.terminalBackground,n.Gray,TZ),MessageBackground:ys(this.terminalBackground,n.Gray,mIi),FocusBackground:ys(this.terminalBackground,e.colors.FocusColor??e.colors.AccentGreen,CG)}:this.cachedColors=n,this.lastCacheKey=r,this.cachedColors}getSemanticColors(){let e=this.getActiveTheme(),r=`${e.name}:${this.terminalBackground}`;if(this.cachedSemanticColors&&this.lastCacheKey===r)return this.cachedSemanticColors;let n=e.semanticColors;if(this.terminalBackground&&this.isThemeCompatible(e,this.terminalBackground)){let o=this.getColors();this.cachedSemanticColors={...n,background:{...n.background,primary:this.terminalBackground,message:o.MessageBackground,input:o.InputBackground,focus:o.FocusBackground},border:{...n.border,default:o.DarkGray},ui:{...n.ui,dark:o.DarkGray,focus:o.FocusColor??o.AccentGreen}}}else this.cachedSemanticColors=n;return this.lastCacheKey=r,this.cachedSemanticColors}isThemeCompatible(e,r){if(e.type==="ansi")return!0;let n=p5(r);return n?(e.type==="custom"?p5(Sb(e.colors.Background)||e.colors.Background):e.type)===n:!0}_getAllCustomThemes(){return[...Array.from(this.settingsThemes.values()),...Array.from(this.pluginThemes.values()),...Array.from(this.fileThemes.values())]}getCustomThemeNames(){return this._getAllCustomThemes().map(e=>e.name)}isCustomTheme(e){return this.settingsThemes.has(e)||this.pluginThemes.has(e)||this.fileThemes.has(e)}getAvailableThemes(){let e=this.availableThemes.map(s=>({name:s.name,type:s.type,isCustom:!1})),r=this._getAllCustomThemes().map(s=>({name:s.name,type:s.type,isCustom:!0}));return[...e,...r].sort((s,a)=>{let l=p=>{switch(p){case"dark":return 1;case"light":return 2;case"ansi":return 3;case"custom":return 4;default:return 5}},c=l(s.type)-l(a.type);if(c!==0)return c;let u=s.name==="Default"||s.name==="Default Light",d=a.name==="Default"||a.name==="Default Light";return u&&!d?-1:!u&&d?1:s.name.localeCompare(a.name)})}getTheme(e){return this.findThemeByName(e)}getAllThemes(){return[...this.availableThemes,...this._getAllCustomThemes()]}isPath(e){return e.endsWith(".json")||e.startsWith(".")||AFe.isAbsolute(e)}loadThemeFromFile(e){try{let r=this.fs.realpathSync(AFe.resolve(e));if(this.fileThemes.has(r))return this.fileThemes.get(r);let n=AFe.resolve(this.homedir());if(!r.startsWith(n)){T.warn(`Theme file at "${e}" is outside your home directory. Only load themes from trusted sources.`);return}let o=this.fs.readFileSync(r,"utf-8"),s=JSON.parse(o),a=Pmt(s);if(!a.isValid){T.warn(`Invalid custom theme from file "${e}": ${a.error}`);return}a.warning&&T.warn(`Theme from "${e}": ${a.warning}`);let l={...vC.colors,...s,name:s.name||r,type:"custom"},c=Omt(l);return this.fileThemes.set(r,c),c}catch(r){r instanceof Error&&"code"in r&&r.code==="ENOENT"||T.warn(`Could not load theme from file "${e}":`,r);return}}findThemeByName(e){if(!e)return vC;let r=this.availableThemes.find(n=>n.name===e);if(r)return r;if(this.isPath(e))return this.loadThemeFromFile(e);if(this.settingsThemes.has(e))return this.settingsThemes.get(e);if(this.pluginThemes.has(e))return this.pluginThemes.get(e);if(this.fileThemes.has(e))return this.fileThemes.get(e)}},ro=new vMr});function Wji(){return ro.getThemeType()}function Yji(){return ro.getThemeName()}function MEe(t){let[e,r]=t.split("."),n=L[e];return n&&typeof n=="object"&&r in n?n[r]??"":""}var L,Ft=b(()=>{"use strict";E2();L={get text(){return ro.getSemanticColors().text},get background(){return ro.getSemanticColors().background},get border(){return ro.getSemanticColors().border},get ui(){return ro.getSemanticColors().ui},get status(){return ro.getSemanticColors().status},get agent(){return ro.getSemanticColors().agent}}});var zji=w((yVu,Ypl)=>{Ypl.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Xji=w((_Vu,Jji)=>{"use strict";var I0t=Object.assign({},zji()),Kji=Object.keys(I0t);Object.defineProperty(I0t,"random",{get(){let t=Math.floor(Math.random()*Kji.length),e=Kji[t];return I0t[e]}});Jji.exports=I0t});function zpl({type:t="dots"}){let[e,r]=(0,OEe.useState)(0),n=Zji.default[t];return(0,OEe.useEffect)(()=>{let o=setInterval(()=>{r(s=>s===n.frames.length-1?0:s+1)},n.interval);return()=>{clearInterval(o)}},[n]),OEe.default.createElement(B,null,n.frames[e])}var OEe,Zji,S1,fFe=b(async()=>{OEe=V(et(),1);await ft();Zji=V(Xji(),1);S1=zpl});var y9,b0t=b(()=>{"use strict";y9={debugNumAnimatedComponents:0}});function Kpl(t){if(t==null||Array.isArray(t))return"object";let e=typeof t;return e==="string"||e==="boolean"||e==="number"?e:"object"}function Jpl(t,e){let r=t;for(let n of e.split(".")){if(r===null||typeof r!="object")return;r=r[n]}return r}function Xpl(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null||Array.isArray(t)!==Array.isArray(e))return!1;let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o of r)if(t[o]!==e[o])return!1;return!0}var y2,PEe,_s,_9,iu=b(()=>{"use strict";y2=V(et(),1);Ue();Qo();PEe=y2.default.createContext(void 0),_s=()=>{let t=(0,y2.useContext)(PEe);if(t===void 0)throw new Error("useSettings must be used within a SettingsProvider");return t},_9=()=>{let t=(0,y2.useContext)(PEe);if(t===void 0)throw new Error("useSettingsStore must be used within a SettingsProvider");let e=(0,y2.useSyncExternalStore)(n=>t.subscribe(n),()=>t.getSnapshot()),r=(0,y2.useMemo)(()=>({...e,forScope:n=>{switch(n){case"User":return e.user;case"Workspace":return e.workspace;case"WorkspaceLocal":return e.local;default:{let o=n;throw new Error(`Unexpected scope: ${o}`)}}}}),[e]);return(0,y2.useMemo)(()=>({settings:r,setSetting:(n,o,s)=>{let a=Jpl(e.merged,o);!Xpl(a,s)&&(jn($n.CONFIG_CHANGED,{key_path:o,changed_via:"slash_settings",value_type:Kpl(s)}),o==="general.vimMode"&&typeof s=="boolean"&&jn($n.MODE_TOGGLED,{mode:"vim",enabled:s})),t.setValue(n,o,s)}}),[r,t,e.merged])}});var eHi,tHi,cf,I1=b(async()=>{"use strict";await fFe();eHi=V(et(),1);b0t();iu();tHi=V(Te(),1);cf=t=>{let r=_s().merged.ui?.showSpinner!==!1;return(0,eHi.useEffect)(()=>{if(r)return y9.debugNumAnimatedComponents++,()=>{y9.debugNumAnimatedComponents--}},[r]),r?(0,tHi.jsx)(S1,{...t}):null}});function QEe(t){return t===Zn||t===Hi}function v0t(t){return t?.type===Zn?"Answer Questions":t?.type===Hi?"Ready to start implementation?":"Permission Required"}function rHi(t,e){return t===GM&&Zpl.has(e)}var Zpl,gFe=b(()=>{"use strict";Ue();ei();Zpl=new Set(["Success","Error","Canceled"])});function s3(t){return t===wmt||t===pIi||t===Ln}var nHi,SA,LEe,fte,wMr,iHi,oHi,C9=b(async()=>{"use strict";nHi=V(et(),1);await ft();ei();await I1();wd();Ft();Ue();gFe();SA=V(Te(),1);LEe=3;fte=({status:t,name:e,isFocused:r})=>{let n=qG(t),o=s3(e),s=r?L.ui.focus:o?L.ui.active:L.status.warning;return(0,SA.jsxs)(Q,{minWidth:LEe,children:[n==="Pending"&&(0,SA.jsx)(B,{color:L.status.success,children:UQ.PENDING}),n==="Executing"&&(0,SA.jsx)(B,{color:s,children:(0,SA.jsx)(cf,{type:"toggle"})}),n==="Success"&&(0,SA.jsx)(B,{color:L.status.success,"aria-label":"Success:",children:UQ.SUCCESS}),n==="Confirming"&&(0,SA.jsx)(B,{color:s,"aria-label":"Confirming:",children:UQ.CONFIRMING}),n==="Canceled"&&(0,SA.jsx)(B,{color:s,"aria-label":"Canceled:",bold:!0,children:UQ.CANCELED}),n==="Error"&&(0,SA.jsx)(B,{color:L.status.error,"aria-label":"Error:",bold:!0,children:UQ.ERROR})]})},wMr=({name:t,description:e,status:r,emphasis:n,progressMessage:o,originalRequestName:s})=>{let a=qG(r),l=nHi.default.useMemo(()=>{switch(n){case"high":return L.text.primary;case"medium":return L.text.primary;case"low":return L.text.secondary;default:return n}},[n]),c=rHi(t,a);return(0,SA.jsx)(Q,{overflow:"hidden",height:1,flexGrow:1,flexShrink:1,children:(0,SA.jsxs)(B,{strikethrough:a==="Canceled",wrap:"truncate",children:[(0,SA.jsx)(B,{color:l,bold:!0,children:t}),s&&s!==t&&(0,SA.jsxs)(B,{color:L.text.secondary,italic:!0,children:[" ","(redirection from ",s,")"]}),!c&&(0,SA.jsxs)(SA.Fragment,{children:[" ",(0,SA.jsx)(B,{color:L.text.secondary,children:e})]})]})})},iHi=({progress:t,total:e,message:r,barWidth:n})=>{let o=e&&e>0?Math.min(100,Math.round(t/e*100)):null,s;e&&e>0?s=Math.round(t/e*n):s=Math.floor(t)%(n+1);let a=Math.max(0,Math.min(Number.isFinite(s)?s:0,n)),l=Math.max(0,n-a),c="\u2588".repeat(a)+"\u2591".repeat(l);return(0,SA.jsxs)(Q,{flexDirection:"column",children:[(0,SA.jsx)(Q,{children:(0,SA.jsxs)(B,{color:L.text.accent,children:[c," ",o!==null?`${o}%`:`${t}`]})}),r&&(0,SA.jsx)(B,{color:L.text.secondary,wrap:"truncate",children:r})]})},oHi=()=>(0,SA.jsxs)(B,{color:L.text.primary,wrap:"truncate",children:[" ","\u2190"]})});function Mi(t){return(kEe()?eAl:tAl)[t]}function sHi(t){return"request"in t}function mFe(t,e,r=[],n=new Map){if(t.type!=="tool_group")return{borderColor:"",borderDimColor:!1};let o=t.tools.length>0?t.tools:r.filter(A=>A!=null&&A.type==="tool_group"&&A.tools.length>0).slice(-1).flatMap(A=>A.tools),s=o.some(A=>sHi(A)?A.status!=="success"&&A.status!=="error"&&A.status!=="cancelled":A.status!=="success"&&A.status!=="error"&&A.status!=="cancelled"),a=o.some(A=>sHi(A)?s3(A.request.name):s3(A.name)),l=!!e&&!n.has(e),c=a||t.tools.length===0&&l,u=s||t.tools.length===0&&l;return{borderColor:c&&u?L.ui.active:u?L.status.warning:L.border.default,borderDimColor:u}}var eAl,tAl,kd=b(async()=>{"use strict";Ue();await C9();Ft();h2();eAl={dialog:"round",panel:"single",emphasis:"double",focused:"bold",tool:"round",input:"round"},tAl={dialog:"classic",panel:"single",emphasis:"double",focused:"classic",tool:"classic",input:"classic"}});function S9(){return(0,xB.useContext)(aHi)}function ui(t,e,r=!0){let n=S9(),o=(0,xB.useRef)(e);o.current=e;let s=(0,xB.useRef)(null);(0,xB.useEffect)(()=>{if(!n||!r)return;let a=l=>o.current(l);return s.current=a,n.registerFallback(t,a),()=>{n.unregisterFallback(t,a),s.current=null}},[n,t,r])}function Wr(t,e,r=!0,n){let o=S9(),s=(0,xB.useRef)(e);s.current=e;let a=Object.keys(e).sort().join(","),l=n?.prepend??!1;(0,xB.useEffect)(()=>{if(!o||!r)return;let c=s.current,d=Object.keys(c).map(p=>[p,A=>s.current[p]?.(A)]);for(let[p,A]of d)o.registerHandler(t,p,A,{prepend:l});return()=>{for(let[p,A]of d)o.unregisterHandler(t,p,A)}},[o,t,r,a,l])}var xB,cHi,xMr,aHi,lHi,zo=b(()=>{"use strict";xB=V(et(),1),cHi=V(Te(),1);xMr=class{_handlers=new Map;_fallbacks=new Map;registerHandler(e,r,n,o){let s=this._handlers.get(e);s||(s=new Map,this._handlers.set(e,s));let a=s.get(r);a||(a=[],s.set(r,a)),o?.prepend?a.unshift(n):a.push(n)}unregisterHandler(e,r,n){let o=this._handlers.get(e);if(o){if(!n)o.delete(r);else{let s=o.get(r);if(s){let a=s.indexOf(n);a!==-1&&s.splice(a,1),s.length===0&&o.delete(r)}}o.size===0&&this._handlers.delete(e)}}registerFallback(e,r){let n=this._fallbacks.get(e);n||(n=[],this._fallbacks.set(e,n)),n.push(r)}unregisterFallback(e,r){if(!r){this._fallbacks.delete(e);return}let n=this._fallbacks.get(e);if(n){let o=n.indexOf(r);o!==-1&&n.splice(o,1),n.length===0&&this._fallbacks.delete(e)}}invokeAction(e,r,n){let o=this._handlers.get(e);if(o){let s=o.get(r);if(s){for(let a of s)if(a(n)===!0)return!0}}return!1}invokeFallback(e,r){let n=this._fallbacks.get(e);if(n){for(let o of n)if(o(r)===!0)return!0}return!1}hasHandler(e,r){let n=this._handlers.get(e)?.get(r);return n!=null&&n.length>0}hasFallback(e){let r=this._fallbacks.get(e);return r!=null&&r.length>0}getActionsForContext(e){let r=this._handlers.get(e);return r?Array.from(r.keys()):[]}clear(){this._handlers.clear(),this._fallbacks.clear()}},aHi=(0,xB.createContext)(null),lHi=({children:t,registry:e})=>{let r=(0,xB.useRef)(e??new xMr),n=e??r.current;return(0,cHi.jsx)(aHi.Provider,{value:n,children:t})}});function UEe(){return(0,RB.useContext)(uHi)}function uf(t,e){let r=UEe();(0,RB.useEffect)(()=>{if(r){if(e)return r.registerContext(t),()=>{r.unregisterContext(t)};r.unregisterContext(t)}},[r,t,e])}function w0t(){let t=UEe(),[,e]=(0,RB.useState)(0),r=(0,RB.useRef)(new Set);return(0,RB.useEffect)(()=>{if(t)return t.subscribe(()=>{e(n=>n+1)})},[t]),t?t.getActiveContexts():r.current}var RB,pHi,FEe,_2,RMr,uHi,dHi,_E=b(()=>{"use strict";RB=V(et(),1),pHi=V(Te(),1);FEe=["Global","Chat","Shell","BackgroundTask","Autocomplete","HistorySearch","CommandSearch","VimNormal","Dialog","Fullscreen","CopyMode","Select","Tabs","Confirmation","Notification"],_2=Object.fromEntries(FEe.map((t,e)=>[t,e])),RMr=class{_refCounts=new Map;_listeners=new Set;registerContext(e){let r=this._refCounts.get(e)??0;this._refCounts.set(e,r+1),r===0&&this._notify()}unregisterContext(e){let r=this._refCounts.get(e)??0;r<=1?(this._refCounts.delete(e),r===1&&this._notify()):this._refCounts.set(e,r-1)}getActiveContexts(){return new Set(this._refCounts.keys())}isActive(e){return(this._refCounts.get(e)??0)>0}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_notify(){for(let e of this._listeners)e()}},uHi=(0,RB.createContext)(null),dHi=({children:t,registry:e})=>{let r=(0,RB.useRef)(e??new RMr),n=e??r.current;return(0,pHi.jsx)(uHi.Provider,{value:n,children:t})}});function AHi({children:t}){let e=(0,eh.useRef)(new Map),r=(0,eh.useRef)(new Set),n=(0,eh.useRef)([]),o=(0,eh.useCallback)(()=>{let u=[];for(let d of e.current.values())u.push(...d);n.current=u.sort((d,p)=>d.order-p.order);for(let d of r.current)d()},[]),s=(0,eh.useCallback)((u,d)=>(e.current.set(u,d),o(),()=>{e.current.delete(u),o()}),[o]),a=(0,eh.useCallback)(u=>(r.current.add(u),()=>{r.current.delete(u)}),[]),l=(0,eh.useCallback)(()=>n.current,[]),c=(0,eh.useRef)({register:s,subscribe:a,getSnapshot:l});return(0,gHi.jsx)(BMr.Provider,{value:c.current,children:t})}function GEe(t,e){let r=(0,eh.useContext)(BMr),n=JSON.stringify(e);eh.default.useEffect(()=>r?r.register(t,e):void 0,[r,t,n])}function fHi(){let t=(0,eh.useContext)(BMr);return(0,eh.useSyncExternalStore)(t?.subscribe??(()=>()=>{}),t?.getSnapshot??(()=>[]))}var eh,gHi,BMr,hFe=b(()=>{"use strict";eh=V(et(),1),gHi=V(Te(),1);BMr=(0,eh.createContext)(null)});import*as kMr from"node:fs";function I9(){try{if(process.stdout?.fd!==void 0){kMr.writeSync(process.stdout.fd,rAl);return}}catch(t){T.warn("Failed to synchronously cleanup terminal modes:",t)}MSr(),PSr(),LSr(),sB()}var rAl,gte,ig,b1=b(()=>{"use strict";Ue();lf();rAl="\x1B[<u\x1B[>4;0m\x1B[?2004l\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l";gte=class t{static instance;static KITTY_QUERY="\x1B[?u";static OSC_11_QUERY="\x1B]11;?\x1B\\";static TERMINAL_NAME_QUERY="\x1B[>q";static DEVICE_ATTRIBUTES_QUERY="\x1B[c";static MODIFY_OTHER_KEYS_QUERY="\x1B[>4;?m";static HIDDEN_MODE="\x1B[8m";static CLEAR_LINE_AND_RETURN="\x1B[2K\r";static RESET_ATTRIBUTES="\x1B[0m";static queryBackgroundColor(e){e.write(t.OSC_11_QUERY)}static KITTY_REGEX=/\x1b\[\?(\d+)u/;static TERMINAL_NAME_REGEX=/\x1bP>\|(.+?)(\x1b\\|\x07)/;static DEVICE_ATTRIBUTES_REGEX=/\x1b\[\?(\d+)(;\d+)*c/;static OSC_11_REGEX=/\x1b\]11;rgb:([0-9a-fA-F]{1,4})\/([0-9a-fA-F]{1,4})\/([0-9a-fA-F]{1,4})(\x1b\\|\x07)/;static MODIFY_OTHER_KEYS_REGEX=/\x1b\[>4;(\d+)m/;static ANSI_BG_COLORS={0:"#000000",1:"#800000",2:"#008000",3:"#808000",4:"#000080",5:"#800080",6:"#008080",7:"#c0c0c0",8:"#808080",9:"#ff0000",10:"#00ff00",11:"#ffff00",12:"#0000ff",13:"#ff00ff",14:"#00ffff",15:"#ffffff"};detectionComplete=!1;terminalBackgroundColor;kittySupported=!1;kittyEnabled=!1;modifyOtherKeysSupported=!1;terminalName;constructor(){this.terminalBackgroundColor=t.detectFromColorFgBg(),this.terminalBackgroundColor&&T.log(`Seeded terminal background from $COLORFGBG: ${this.terminalBackgroundColor}`)}static detectFromColorFgBg(){let e=process.env.COLORFGBG;if(!e)return;let r=e.split(";"),n=r[r.length-1];if(n===void 0||n==="")return;let o=Number(n);if(!(!Number.isInteger(o)||o<0||o>15))return t.ANSI_BG_COLORS[o]}static getInstance(){return this.instance||(this.instance=new t),this.instance}static resetInstanceForTesting(){this.instance=void 0}async detectCapabilities(){if(!this.detectionComplete){if(!process.stdin.isTTY||!process.stdout.isTTY){this.detectionComplete=!0;return}return process.off("exit",I9),process.off("SIGTERM",I9),process.off("SIGINT",I9),process.on("exit",I9),process.on("SIGTERM",I9),process.on("SIGINT",I9),new Promise(e=>{let r=process.stdin.isRaw;r||process.stdin.setRawMode(!0);let n="",o=!1,s=!1,a=!1,l=!1,c=!1,u,d=()=>{u&&clearTimeout(u),process.stdin.removeListener("data",p),r||process.stdin.setRawMode(!1),this.detectionComplete=!0,e()};u=setTimeout(d,1e3);let p=A=>{if(n+=A.toString(),!l){let f=n.match(t.OSC_11_REGEX);f&&(l=!0,this.terminalBackgroundColor=S0t(f[1],f[2],f[3]),T.log(`Detected terminal background color: ${this.terminalBackgroundColor}`))}if(!o&&t.KITTY_REGEX.test(n)&&(o=!0,this.kittySupported=!0),!c){let f=n.match(t.MODIFY_OTHER_KEYS_REGEX);if(f){c=!0;let g=parseInt(f[1],10);this.modifyOtherKeysSupported=g>=2,T.log(`Detected modifyOtherKeys support: ${this.modifyOtherKeysSupported} (level ${g})`)}}if(!s){let f=n.match(t.TERMINAL_NAME_REGEX);f&&(s=!0,this.terminalName=f[1],T.log(`Detected terminal name: ${this.terminalName}`))}a||n.match(t.DEVICE_ATTRIBUTES_REGEX)&&(a=!0,d())};process.stdin.on("data",p);try{kMr.writeSync(process.stdout.fd,t.HIDDEN_MODE+t.KITTY_QUERY+t.OSC_11_QUERY+t.TERMINAL_NAME_QUERY+t.MODIFY_OTHER_KEYS_QUERY+t.DEVICE_ATTRIBUTES_QUERY+t.CLEAR_LINE_AND_RETURN+t.RESET_ATTRIBUTES)}catch(A){T.warn("Failed to write terminal capability queries:",A),d()}})}}enableSupportedModes(){try{this.kittySupported?(T.log("Enabling Kitty keyboard protocol"),NSr(),this.kittyEnabled=!0):this.modifyOtherKeysSupported&&(T.log("Enabling modifyOtherKeys"),OSr()),QSr()}catch(e){T.warn("Failed to enable keyboard protocols:",e)}}getTerminalBackgroundColor(){return this.terminalBackgroundColor}getTerminalName(){return this.terminalName}isKittyProtocolEnabled(){return this.kittyEnabled}canDistinguishModifiedEnter(){return this.kittyEnabled||this.modifyOtherKeysSupported}isGhosttyTerminal(e=process.env){let r=e.TERM_PROGRAM?.toLowerCase(),n=e.TERM?.toLowerCase();return!!(this.getTerminalName()?.toLowerCase()?.includes("ghostty")||r?.includes("ghostty")||n?.includes("ghostty"))}supportsOsc9Notifications(e=process.env){return e.WT_SESSION?!1:this.hasOsc9TerminalSignature(this.getTerminalName())||this.hasOsc9TerminalSignature(e.TERM_PROGRAM)||this.hasOsc9TerminalSignature(e.TERM)}hasOsc9TerminalSignature(e){if(!e)return!1;let r=e.toLowerCase();return r.includes("wezterm")||r.includes("ghostty")||r.includes("iterm")||r.includes("kitty")}},ig=gte.getInstance()});function C2(...t){return t.map(e=>ct[e]).join(" \xB7 ")}function mHi(){let t=process.platform==="darwin";return ig.canDistinguishModifiedEnter()?t?"Shift+\u23CE for newline":"Shift+Enter for newline":t&&aFe()?"Shift+\u23CE or Ctrl+J for newline":t?"Ctrl+J or \\\u23CE for newline":"Ctrl+J or \\+Enter for newline"}var ct,ki=b(()=>{"use strict";h2();b1();ct={TAB_SWITCH:"Tab/\u2190\u2192 switch",TAB_ONLY_SWITCH:"Tab switch",ARROW_SWITCH:"\u2190\u2192 switch",ARROW_CYCLE:"\u2190\u2192 cycle",TAB_SWITCH_FOCUS:"Tab switch focus",TAB_SWITCH_MODE:"Tab switch mode",NAVIGATE:"\u2191\u2193 navigate",SCROLL:"\u2191\u2193 scroll",SELECT:"Enter select",CONFIRM:"Enter confirm",SUBMIT:"Enter submit",ENTER_CLOSE:"Enter close",ENTER_OPEN:"Enter open in browser",ENTER_DETAILS:"Enter details",ENTER_VIEW_DIFF:"Enter view diff",ENTER_EDIT:"Enter edit",ENTER_OUTPUT:"Enter output",ENTER_TOGGLE:"Enter toggle",ENTER_CHOOSE:"Enter choose",ENTER_SAVE:"Enter save",ENTER_FILES_AND_CONVERSATION:"Enter files and conversation",ENTER_NEXT_CONFIRM:"Enter next/confirm",CANCEL:"Esc cancel",CLOSE:"Esc close",GO_BACK:"Esc back",ESC_CANCEL_SEARCH:"Esc cancel search",TOGGLE:"c toggle",DELETE:"d delete",X_DELETE:"x delete",SEARCH:"/ search",RESET:"Ctrl+L reset",BACKSPACE_RESET:"Backspace reset",Y_CONFIRM:"Y confirm",N_CANCEL:"N cancel",N_ESC_CANCEL:"n / Esc cancel",SPACE_TOGGLE:"\u2423 toggle",R_RESTART:"r restart",A_TOGGLE_AUTO_MEMORY:"a toggle auto-memory",ARROW_REORDER:"\u2190/\u2192 reorder",S_SORT_R_REVERSE:"s sort \xB7 r reverse",G_FIRST_LAST:"g/G first/last",U_D_HALF_PAGE:"u/d half-page",SPACE_TOGGLE_MCP:"Space toggle",QUICK_SELECT:"1-9 quick select",C_CONVERSATION_ONLY:"c conversation only",F_FILES_ONLY:"f files only",K_KILL:"k kill",ENTER_DELETE_ITEM:"Enter delete",ENTER_AUTHENTICATE:"Enter authenticate",ENTER_VIEW_TOOLS:"Enter view tools",ENTER_INSTALL:"Enter install",ENTER_VERIFY:"Enter verify",ENTER_RUN:"Enter run",TAB_TOGGLE:"Tab toggle",TAB_FOCUS:"Tab focus",CTRL_S_COPY_MODE:"Ctrl+S copy mode",SHIFT_TAB_UNFOCUS:"Shift+Tab to unfocus",CTRL_O_EXPAND:"Ctrl+O expand/collapse",CTRL_O_KEY:"Ctrl+O",CTRL_C_EXIT:"Ctrl+C exit",CTRL_D_EXIT:"Ctrl+D exit",PAGE_UP_DOWN_SCROLL:"PgUp/PgDn scroll",R_EXIT_APPLY:"r exit and apply",TAB_TWICE_MORE:"press tab twice for more",QUESTION_SHORTCUTS:"? for shortcuts",ESC_NORMAL_MODE:"Esc for NORMAL mode",I_INSERT_MODE:"i for INSERT mode",CTRL_S_SELECTION:"Ctrl-S to enter selection mode to copy text",CTRL_B_VIEW:"Ctrl+B to view"}});var hHi,$Ee,x0t=b(async()=>{"use strict";await ft();Ft();await kd();hHi=V(Te(),1);$Ee=({color:t=L.border.default,dim:e=!1})=>(0,hHi.jsx)(Q,{width:"100%",borderStyle:Mi("panel"),borderTop:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderColor:t,borderDimColor:e})});function Lt({title:t,tabs:e=[],activeKey:r="",onTabChange:n=()=>{},children:o,footer:s,isActive:a=!0,showSeparator:l=!0,showContent:c=!0,equalizeTabHeight:u=!1,tabPanels:d,onClose:p,titleSeparator:A,orderedTabs:f,extraHints:g,borderColor:m}){return(0,ou.jsx)(AHi,{children:(0,ou.jsx)(oAl,{title:t,tabs:e,activeKey:r,onTabChange:n,footer:s,isActive:a,showSeparator:l,showContent:c,equalizeTabHeight:u,tabPanels:d,onClose:p,titleSeparator:A,orderedTabs:f,extraHints:g,borderColor:m,children:o})})}function nAl(t,e){switch(e.type){case"NEXT_TAB":{let{tabCount:r,currentIndex:n}=t;if(r===0)return t;let o=(n+1)%r;return o===n?t:{...t,currentIndex:o,pendingTabChange:!0}}case"PREV_TAB":{let{tabCount:r,currentIndex:n}=t;if(r===0)return t;let o=(n-1+r)%r;return o===n?t:{...t,currentIndex:o,pendingTabChange:!0}}case"INITIALIZE":{let{tabCount:r,initialIndex:n}=e.payload,o=Math.max(0,Math.min(n,r-1));return{...t,tabCount:r,currentIndex:r>0?o:0,pendingTabChange:!1}}case"CLEAR_PENDING":return{...t,pendingTabChange:!1};default:return t}}function iAl({tabs:t,onClose:e,tabNavActions:r,isActive:n}){uf("Dialog",n);let o=(0,gp.useMemo)(()=>{let a={};return e&&(a["dialog:escape"]=()=>(e(),!0)),t.length>1&&(a["dialog:tab:next"]=()=>(r.goToNextTab(),!0),a["dialog:tab:previous"]=()=>(r.goToPrevTab(),!0),a["dialog:navigate:left"]=()=>(r.goToPrevTab(),!0),a["dialog:navigate:right"]=()=>(r.goToNextTab(),!0)),a},[e,t.length,r]);return Wr("Dialog",o,n),{tabNavHints:(0,gp.useMemo)(()=>{let a=[];return e&&a.push({label:ct.GO_BACK,order:100}),t.length>1&&a.push({label:ct.TAB_SWITCH,order:10}),a},[e,t.length])}}function oAl({title:t,tabs:e=[],activeKey:r="",onTabChange:n=()=>{},children:o,footer:s,isActive:a=!0,showSeparator:l=!0,showContent:c=!0,equalizeTabHeight:u=!1,tabPanels:d,onClose:p,titleSeparator:A="\xB7",orderedTabs:f=!1,extraHints:g,borderColor:m}){let[h,E]=(0,gp.useState)({}),[y,_]=(0,gp.useState)(!1),S=Object.values(h).length>0?Math.max(...Object.values(h)):void 0,v=(0,gp.useCallback)(ee=>{E(ee),_(!0)},[]),x=u&&d!=null&&e.length>1,R=Math.max(0,e.findIndex(ee=>ee.key===r)),[M,D]=(0,gp.useReducer)(nAl,{currentIndex:Math.max(0,Math.min(R,e.length-1)),tabCount:e.length,pendingTabChange:!1}),P=(0,gp.useRef)(e.length),O=(0,gp.useRef)(R);(0,gp.useEffect)(()=>{(P.current!==e.length||O.current!==R)&&(D({type:"INITIALIZE",payload:{tabCount:e.length,initialIndex:R}}),P.current=e.length,O.current=R)},[e.length,R]),(0,gp.useEffect)(()=>{if(M.pendingTabChange){let ee=e[M.currentIndex];ee&&n(ee.key),D({type:"CLEAR_PENDING"})}},[M.pendingTabChange,M.currentIndex,e,n]);let z=(0,gp.useCallback)(()=>{D({type:"NEXT_TAB"})},[]),j=(0,gp.useCallback)(()=>{D({type:"PREV_TAB"})},[]),k=(0,gp.useMemo)(()=>({goToNextTab:z,goToPrevTab:j}),[z,j]),{tabNavHints:F}=iAl({tabs:e,onClose:p,tabNavActions:k,isActive:a}),q=fHi(),Y=(0,gp.useMemo)(()=>{if(s)return s;let ee=[...F,...q,...g??[]].sort((he,X)=>he.order-X.order);if(ee.length===0)return;let ge=new Set,_e=[];for(let he of ee)ge.has(he.label)||(ge.add(he.label),_e.push(he));return _e.map(he=>he.label).join(" \xB7 ")},[s,F,q,g]),W=(0,ou.jsxs)(Q,{flexDirection:"column",children:[(0,ou.jsxs)(Q,{flexDirection:"row",gap:1,children:[t&&e.length>0&&(0,ou.jsxs)(ou.Fragment,{children:[(0,ou.jsx)(B,{color:L.text.primary,bold:!0,children:` ${t}`}),(0,ou.jsx)(B,{color:L.text.secondary,children:A})]}),t&&e.length===0&&(0,ou.jsx)(B,{color:L.text.primary,bold:!0,children:` ${t}`}),e.map((ee,ge)=>{let _e=ee.key===r;return(0,ou.jsxs)(gp.Fragment,{children:[f&&ge>0&&(0,ou.jsx)(B,{color:L.text.secondary,children:">"}),_e?(0,ou.jsx)(Q,{children:(0,ou.jsx)(B,{color:L.ui.focus,bold:!0,backgroundColor:L.background.focus,children:` ${ee.label} `})}):(0,ou.jsx)(Q,{children:(0,ou.jsx)(B,{color:L.text.secondary,children:` ${ee.label} `})})]},ee.key)})]}),l&&(0,ou.jsx)($Ee,{}),c&&(0,ou.jsx)(Q,{flexDirection:"column",paddingLeft:1,paddingRight:1,...x&&y&&S!==void 0?{height:S}:{},children:x?(0,ou.jsx)(sAl,{tabs:e,activeKey:r,tabPanels:d,measured:y,reportHeights:v}):o}),Y&&(0,ou.jsx)(Q,{marginTop:1,marginLeft:1,children:(0,ou.jsx)(B,{color:L.text.secondary,dimColor:!0,italic:!0,children:Y})})]});return m?(0,ou.jsx)(Q,{flexDirection:"column",width:"100%",children:(0,ou.jsx)(Q,{flexDirection:"column",borderStyle:Mi("dialog"),borderColor:m,padding:1,marginLeft:1,marginRight:1,children:W})}):(0,ou.jsx)(Q,{flexDirection:"column",width:"100%",children:W})}function sAl({tabs:t,activeKey:e,tabPanels:r,measured:n,reportHeights:o}){let s=(0,gp.useRef)({});return(0,gp.useLayoutEffect)(()=>{if(n)return;let a={},l=!0;for(let c of t){let u=s.current[c.key];u?a[c.key]=Kee(u).height:l=!1}l&&o(a)},[n,t,r,o]),n?(0,ou.jsx)(Q,{flexDirection:"column",children:r[e]}):(0,ou.jsx)(Q,{flexDirection:"column",children:t.map(a=>(0,ou.jsx)(Q,{ref:l=>{s.current[a.key]=l},flexDirection:"column",children:r[a.key]},a.key))})}var gp,ou,qn=b(async()=>{"use strict";gp=V(et(),1);await ft();Ft();await kd();zo();_E();hFe();ki();await x0t();ou=V(Te(),1);});var R0t,B0t,k0t=b(()=>{"use strict";R0t="0e824e45",B0t="0.2.0"});function a3({label:t,value:e}){return(0,th.jsxs)(Q,{flexDirection:"row",children:[(0,th.jsx)(Q,{width:"20%",children:(0,th.jsx)(B,{bold:!0,color:L.text.secondary,children:t})}),(0,th.jsx)(Q,{children:(0,th.jsx)(B,{color:L.text.primary,children:e})})]})}var th,D0t,DMr=b(async()=>{"use strict";await ft();Ft();await qn();k0t();iu();Ue();th=V(Te(),1);D0t=({cliVersion:t,osVersion:e,sandboxEnv:r,modelVersion:n,selectedAuthType:o,gcpProject:s,ideClient:a,userEmail:l,tier:c,onClose:u})=>{let p=_s().merged.ui.showUserIdentity;return(0,th.jsxs)(Lt,{title:`About - ${Zr}`,tabs:[],activeKey:"",onTabChange:()=>{},onClose:u,children:[(0,th.jsx)(Q,{marginBottom:1,children:(0,th.jsx)(B,{color:L.text.secondary,children:dRt})}),(0,th.jsx)(a3,{label:"CLI Version",value:t}),R0t&&!["N/A"].includes(R0t)&&(0,th.jsx)(a3,{label:"Git Commit",value:R0t}),(0,th.jsx)(a3,{label:"Model",value:sy(n)}),(0,th.jsx)(a3,{label:"Sandbox",value:r}),(0,th.jsx)(a3,{label:"OS",value:e}),p&&(0,th.jsx)(a3,{label:"Auth Method",value:o.startsWith("oauth")?l?`Signed in with Google (${l})`:"Signed in with Google":o}),p&&c&&(0,th.jsx)(a3,{label:"Tier",value:c}),s&&(0,th.jsx)(a3,{label:"GCP Project",value:s}),a&&(0,th.jsx)(a3,{label:"IDE Client",value:a})]})}});import mte from"node:process";async function aAl(t){return t.services.agentContext?.config.getIdeMode()?(await Ly.getInstance())?.getDetectedIdeDisplayName()??"":""}var yHi,EHi,_Hi=b(async()=>{"use strict";ci();Ue();await DMr();yHi=V(Te(),1);EHi={name:"about",description:"Show version info",kind:"built-in",autoExecute:!0,isSafeConcurrent:!0,action:async t=>{let e=mte.platform,r="no sandbox";mte.env.SANDBOX&&mte.env.SANDBOX!=="sandbox-exec"?r=mte.env.SANDBOX:mte.env.SANDBOX==="sandbox-exec"&&(r=`sandbox-exec (${mte.env.SEATBELT_PROFILE||"unknown"})`);let n=t.services.agentContext?.config.getModel()||"Unknown",o=await mo(),s=t.services.settings.merged.security.auth.selectedType||"",a=mte.env.GOOGLE_CLOUD_PROJECT||"",l=await aAl(t),u=new LT().getCachedGoogleAccount();T.log("AboutCommand: Retrieved cached Google account",{cachedAccount:u});let d=u??void 0,p=t.services.agentContext?.config.getUserTierName();return{type:"custom_dialog",component:(0,yHi.jsx)(D0t,{cliVersion:o,osVersion:e,sandboxEnv:r,modelVersion:n,selectedAuthType:s,gcpProject:a,ideClient:l,userEmail:d,tier:p,onClose:()=>t.ui.removeComponent()})}}}});var CHi,SHi,IHi=b(()=>{"use strict";ei();ci();i9();CHi={name:"reload",altNames:["refresh"],description:"Reload agents from disk and refresh tools & system prompt",kind:"built-in",autoExecute:!0,action:async t=>{let e=t.services.agentContext?.config;if(!e){t.ui.addItem({type:"error",text:"Agent context is not available."});return}t.ui.addItem({type:"info",text:"Reloading agents..."},Date.now());try{let r=e.getAgentRegistry();await r.reload();let n=r.getAllDiscoveredAgentNames();t.ui.addItem({type:"info",text:`Agents reloaded successfully. ${n.length} agent(s) discovered.`},Date.now())}catch(r){t.ui.addItem({type:"error",text:`Failed to reload agents: ${r instanceof Error?r.message:String(r)}`},Date.now())}}},SHi={name:"agents",description:"Manage agents",kind:"built-in",autoExecute:!1,subCommands:[CHi],action:async(t,e)=>{if(e){let r=Rb(`/${e}`,[CHi]);if(r.commandToExecute?.action)return r.commandToExecute.action(t,r.args)}return{type:"dialog",dialog:"agentBrowser"}}}});var bHi,THi,vHi=b(()=>{"use strict";ci();bHi={name:"login",altNames:["signin"],description:"Sign in or change the authentication method",kind:"built-in",autoExecute:!0,action:(t,e)=>({type:"dialog",dialog:"auth"})},THi={name:"logout",altNames:["signout"],description:"Sign out and clear all cached credentials",kind:"built-in",action:async(t,e)=>({type:"logout"})}});var wHi,lAl,cAl,xHi,RHi,BHi=b(()=>{"use strict";wHi="\x1B",lAl=`${wHi}[<`,cAl=`${wHi}[M`,xHi=/^\x1b\[<(\d+);(\d+);(\d+)([mM])/,RHi=/^\x1b\[M([\s\S]{3})/});function uAl(t,e){let r=(t&32)!==0;if(t===66)return"scroll-left";if(t===67)return"scroll-right";if((t&64)===64)return(t&1)===0?"scroll-up":"scroll-down";if(r)return"move";{let n=t&3,o=e?"release":"press";switch(n){case 0:return`left-${o}`;case 1:return`middle-${o}`;case 2:return`right-${o}`;default:return null}}}function kHi(t){switch(t&3){case 0:return"left";case 1:return"middle";case 2:return"right";default:return"none"}}function dAl(t){let e=t.match(xHi);if(e){let r=parseInt(e[1],10),n=parseInt(e[2],10),o=parseInt(e[3],10),a=e[4]==="m",l=(r&4)!==0,c=(r&8)!==0,u=(r&16)!==0,d=uAl(r,a);return d?{event:{name:d,ctrl:u,meta:c,shift:l,col:n,row:o,button:kHi(r)},length:e[0].length}:null}return null}function pAl(t){let e=t.match(RHi);if(!e)return null;let r=e[1].charCodeAt(0)-32,n=e[1].charCodeAt(1)-32,o=e[1].charCodeAt(2)-32,s=(r&4)!==0,a=(r&8)!==0,l=(r&16)!==0,c=(r&32)!==0,u=(r&64)!==0,d=null;if(u)switch(r&3){case 0:d="scroll-up";break;case 1:d="scroll-down";break;default:break}else if(c)d="move";else{let p=r&3;if(p===3)d="left-release";else switch(p){case 0:d="left-press";break;case 1:d="middle-press";break;case 2:d="right-press";break;default:break}}if(d){let p=kHi(r);return d==="left-release"&&p==="none"&&(p="left"),{event:{name:d,ctrl:l,meta:a,shift:s,col:n,row:o,button:p},length:e[0].length}}return null}function DHi(t){return dAl(t)||pAl(t)}var NMr=b(()=>{"use strict";Ue();BHi();});var b9,AAl,fAl,MMr,OMr,NHi,PMr=b(async()=>{"use strict";await ft();b9=V(et(),1);await EFe();AAl="\x1B[?1004h",fAl="\x1B[?1004l",MMr="\x1B[I",OMr="\x1B[O",NHi=()=>{let{stdin:t}=Ap(),{stdout:e}=rg(),[r,n]=(0,b9.useState)(!0),[o,s]=(0,b9.useState)(!1);(0,b9.useEffect)(()=>{let u=d=>{let p=d.toString(),A=p.lastIndexOf(MMr),f=p.lastIndexOf(OMr);A>f?(s(!0),n(!0)):f>A&&(s(!0),n(!1))};return e?.write(AAl),t?.on("data",u),()=>{e?.write(fAl),t?.removeListener("data",u)}},[t,e]);let{registerOnAnyKeypress:a,unregisterOnAnyKeypress:l}=jEe(),c=(0,b9.useCallback)(()=>{r||n(!0)},[r]);return(0,b9.useEffect)(()=>(a(c),()=>{l(c)}),[c,a,l]),{isFocused:r,hasReceivedFocusEvent:o}}});import{execFileSync as gAl}from"node:child_process";function hAl(){QMr||(QMr=!0,process.nextTick(()=>{N0t=null,QMr=!1}))}function EAl(){if(N0t!==null)return N0t;try{let t=gAl("/usr/bin/osascript",["-l","JavaScript","-e",'ObjC.import("CoreGraphics"); Number($.CGEventSourceFlagsState(0))'],{encoding:"utf-8",timeout:100,stdio:["pipe","pipe","pipe"]}).trim(),e=parseInt(t,10);return Number.isFinite(e)?(N0t=e,hAl(),e):null}catch(t){return T.debug("nativeModifierDetector: osascript query failed:",t),null}}function M0t(t){if(process.platform!=="darwin")return!1;let e=EAl();return e===null?!1:(e&mAl[t])!==0}var mAl,N0t,QMr,MHi=b(()=>{"use strict";Ue();mAl={shift:1<<17,ctrl:1<<18,alt:1<<19,cmd:1<<20},N0t=null,QMr=!1});function CAl(t,e){return t==="return"||e.return?"enter":e.upArrow?"up":e.downArrow?"down":e.leftArrow?"left":e.rightArrow?"right":e.pageUp?"pageup":e.pageDown?"pagedown":e.home?"home":e.end?"end":e.backspace?"backspace":e.delete?"delete":e.escape?"escape":e.tab?"tab":t}function SAl(t){return e=>{!DHi(e.sequence)&&e.sequence!==MMr&&e.sequence!==OMr&&t(e)}}function IAl(t){let e=0;return r=>{let n=Date.now();r.name==="enter"&&n-e<=_Al?t({...r,name:"enter",shift:!0,alt:!1,ctrl:!1,cmd:!1,sequence:"\r",insertable:!0}):t(r),e=r.insertable?n:0}}function bAl(t){return process.platform==="darwin"&&aFe()&&!ig.canDistinguishModifiedEnter()?r=>{if(r.name==="enter"&&!r.shift&&!r.alt&&!r.ctrl){if(M0t("shift")){t({...r,shift:!0,insertable:!0});return}if(M0t("alt")){t({...r,alt:!0,insertable:!1});return}if(M0t("ctrl")){t({...r,ctrl:!0,insertable:!1});return}}t(r)}:t}function vAl(t){if(!!!(process.env.SSH_TTY||process.env.SSH_CONNECTION||process.env.SSH_CLIENT)||ig.canDistinguishModifiedEnter())return t;let r=0;return n=>{if(n.name==="escape"&&(r=Date.now()),n.name==="enter"&&!n.shift&&!n.alt&&!n.ctrl&&Date.now()-r<=TAl){r=0,t({...n,alt:!0});return}t(n)}}function wAl(t){let e=function*(){for(;;){let r=yield;if(r==null)continue;if(r.sequence!=="\\"){t(r);continue}let n=setTimeout(()=>e.next(null),yAl),o=yield;clearTimeout(n),o===null?t(r):o.name==="enter"?t({...o,shift:!0,sequence:"\r"}):(t(r),t(o))}}();return e.next(),r=>{e.next(r)}}function jEe(){let t=(0,CE.useContext)(OHi);if(!t)throw new Error("useKeypressContext must be used within a KeypressProvider");return t}function PHi({children:t,config:e}){let{settings:r}=_9(),n=r.merged.general.debugKeystrokeLogging,{stdin:o,setRawMode:s}=Ap(),{internal_eventEmitter:a}=(0,CE.useContext)(ZG),l=(0,CE.useRef)(new Set).current,c=(0,CE.useCallback)(m=>{l.add(m)},[l]),u=(0,CE.useCallback)(m=>{l.delete(m)},[l]),d=(0,CE.useRef)(new Set).current,p=(0,CE.useCallback)(m=>{d.add(m)},[d]),A=(0,CE.useCallback)(m=>{d.delete(m)},[d]),f=(0,CE.useCallback)(m=>{for(let E of d)E();n&&T.log("[DEBUG] Keystroke:",JSON.stringify(m));let h=Array.from(l).reverse();for(let E of h)if(E(m)===!0)return},[l,d,n]);(0,CE.useEffect)(()=>{ig.enableSupportedModes(),s(!0);let m=SAl(f);m=bAl(m),m=vAl(m),ig.isKittyProtocolEnabled()||(m=IAl(m)),m=wAl(m);let h=E=>{let y=E.keypress;if(n&&T.log(`[DEBUG] CC Ink InputEvent: input=${JSON.stringify(E.input)} name=${y.name} ctrl=${y.ctrl} shift=${y.shift} meta=${y.meta} isPasted=${y.isPasted} seq=${JSON.stringify(y.sequence)}`),y.isPasted){y.sequence&&y.sequence.length>0&&m({name:"paste",shift:!1,alt:!1,ctrl:!1,cmd:!1,insertable:!0,sequence:y.sequence});return}let _=y.name||"",S=!y.ctrl&&!y.meta&&!y.option&&E.input.length>0&&!E.key.upArrow&&!E.key.downArrow&&!E.key.leftArrow&&!E.key.rightArrow&&!E.key.pageUp&&!E.key.pageDown&&!E.key.home&&!E.key.end&&!E.key.escape&&!E.key.tab&&!E.key.backspace&&!E.key.delete&&!E.key.return,v={name:CAl(_,E.key),shift:y.shift,alt:y.meta||y.option,ctrl:y.ctrl,cmd:y.super,insertable:S,sequence:y.sequence||""};v.sequence===`
|
|
4259
|
+
culprit: ${v.length?v.join(" < "):"(no owner chain captured)"}`,{level:"warn"})}let p=performance.now(),A=cMr(c),f=performance.now()-p,g=A.length>0;this.altScreenActive&&g&&(this.needsEraseBeforePaint?(this.needsEraseBeforePaint=!1,A.unshift(Rpl)):A.unshift(xpl),A.push(this.altScreenParkPatch));let m=performance.now();O1r(this.terminal,A,this.altScreenActive&&!M1r);let h=performance.now()-m;this.prevFrameContaminated=!1,o.scrollDrainPending&&(this.drainTimer=setTimeout(()=>this.onRender(),4));let E=f$i(),y=g$i(),_=this.lastYogaCounters;m$i(),this.lastYogaCounters={ms:0,visited:0,measured:0,cacheHits:0,live:0},this.options.onFrame?.({durationMs:performance.now()-e,phases:{renderer:s,diff:u,optimize:f,write:h,patches:c.length,yoga:E,commit:y,yogaVisited:_.visited,yogaMeasured:_.measured,yogaCacheHits:_.cacheHits,yogaLive:_.live},flickers:d})}pause(){i3.flushSyncFromReconciler(),this.onRender(),this.isPaused=!0}resume(){this.isPaused=!1,this.onRender()}repaint(){this.frontFrame=m9(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=m9(this.backFrame.viewport.height,this.backFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset()}forceRedraw(){!this.options.stdout.isTTY||this.isUnmounted||this.isPaused||(this.options.stdout.write(zG+g1),this.altScreenActive?this.resetFramesForAltScreen():(this.repaint(),this.prevFrameContaminated=!0),this.onRender())}invalidatePrevFrame(){this.prevFrameContaminated=!0}setAltScreenActive(e,r=!1){this.altScreenActive!==e&&(this.altScreenActive=e,this.altScreenMouseTracking=e&&r,e?this.resetFramesForAltScreen():this.repaint())}get isAltScreenActive(){return this.altScreenActive}reassertTerminalModes=(e=!1)=>{this.options.stdout.isTTY&&(this.isPaused||(KLe()&&this.options.stdout.write(jee+ILe+bLe),this.altScreenActive&&(this.altScreenMouseTracking&&this.options.stdout.write(qee),e&&this.reenterAltScreen())))};detachForShutdown(){this.isUnmounted=!0,this.scheduleRender.cancel?.();let e=this.options.stdin;this.drainStdin(),e.isTTY&&e.isRaw&&e.setRawMode&&e.setRawMode(!1)}drainStdin(){Bpl(this.options.stdin)}reenterAltScreen(){this.options.stdout.write(xLe+zG+g1+(this.altScreenMouseTracking?qee:"")),this.resetFramesForAltScreen()}resetFramesForAltScreen(){let e=this.terminalRows,r=this.terminalColumns,n=()=>({screen:pte(r,e,this.stylePool,this.charPool,this.hyperlinkPool),viewport:{width:r,height:e+1},cursor:{x:0,y:0,visible:!0}});this.frontFrame=n(),this.backFrame=n(),this.log.reset(),this.prevFrameContaminated=!0}stdinListeners=[];wasRawMode=!1;suspendStdin(){let e=this.options.stdin;if(!e.isTTY)return;let r=e.listeners("readable");yA(`[stdin] suspendStdin: removing ${r.length} readable listener(s), wasRawMode=${e.isRaw??!1}`),r.forEach(o=>{this.stdinListeners.push({event:"readable",listener:o}),e.removeListener("readable",o)});let n=e;n.isRaw&&n.setRawMode&&(n.setRawMode(!1),this.wasRawMode=!0)}resumeStdin(){let e=this.options.stdin;if(e.isTTY&&(this.stdinListeners.length===0&&!this.wasRawMode&&yA("[stdin] resumeStdin: called with no stored listeners and wasRawMode=false (possible desync)",{level:"warn"}),yA(`[stdin] resumeStdin: re-attaching ${this.stdinListeners.length} listener(s), wasRawMode=${this.wasRawMode}`),this.stdinListeners.forEach(({event:r,listener:n})=>{e.addListener(r,n)}),this.stdinListeners=[],this.wasRawMode)){let r=e;r.setRawMode&&r.setRawMode(!0),this.wasRawMode=!1}}render(e){this.currentNode=e;let r=(0,cji.jsx)(XLe,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount,terminalColumns:this.terminalColumns,terminalRows:this.terminalRows,onStdinResume:this.reassertTerminalModes,scheduleRender:this.scheduleRender,forceRedraw:this.forceRedraw,children:e});i3.updateContainerSync(r,this.container,null,Zee),i3.flushSyncWork()}unmount(e){if(this.isUnmounted)return;this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),this.restoreStderr?.(),this.unsubscribeTTYHandlers?.();let r=this.log.renderPreviousOutput_DEPRECATED(this.frontFrame);O1r(this.terminal,cMr(r)),this.options.stdout.isTTY&&(this.altScreenActive&&o3(1,K_t),o3(1,Vee),this.drainStdin(),o3(1,TLe),o3(1,jee),o3(1,vLe),o3(1,z_t),o3(1,Hee),o3(1,A6i),g6i()&&o3(1,d6i(f6i))),this.isUnmounted=!0,this.scheduleRender.cancel?.(),this.drainTimer!==null&&(clearTimeout(this.drainTimer),this.drainTimer=null),i3.updateContainerSync(null,this.container,null,Zee),i3.flushSyncWork(),kb.delete(this.options.stdout),this.rootNode.yogaNode?.free(),this.rootNode.yogaNode=void 0,e instanceof Error?this.rejectExitPromise(e):this.resolveExitPromise()}async waitUntilExit(){return this.exitPromise||=new Promise((e,r)=>{this.resolveExitPromise=e,this.rejectExitPromise=r}),this.exitPromise}resetLineCount(){this.options.stdout.isTTY&&(this.backFrame=this.frontFrame,this.frontFrame=m9(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset())}resetPools(){this.charPool=new tFe,this.hyperlinkPool=new rFe,g4i(this.frontFrame.screen,this.charPool,this.hyperlinkPool),this.backFrame.screen.charPool=this.charPool,this.backFrame.screen.hyperlinkPool=this.hyperlinkPool}patchConsole(){let e=console,r={},n=(...s)=>yA(`console.log: ${sji(...s)}`),o=(...s)=>pEe(new Error(`console.error: ${sji(...s)}`));for(let s of kpl)r[s]=e[s],e[s]=n;for(let s of Dpl)r[s]=e[s],e[s]=o;return r.assert=e.assert,e.assert=(s,...a)=>{s||o(...a)},()=>Object.assign(e,r)}patchStderr(){let e=process.stderr,r=e.write,n=!1,o=(s,a,l)=>{let c=typeof a=="function"?a:l;if(n){let u=typeof a=="string"?a:void 0;return r.call(e,s,u,c)}n=!0;try{let u=typeof s=="string"?s:Buffer.from(s).toString("utf8");yA(`[stderr] ${u}`,{level:"warn"}),this.altScreenActive&&!this.isUnmounted&&!this.isPaused&&(this.prevFrameContaminated=!0,this.scheduleRender())}finally{n=!1,c?.()}return!0};return e.write=o,()=>{e.write===o&&(e.write=r)}}};kpl=["log","info","debug","dir","dirxml","count","countReset","group","groupCollapsed","groupEnd","table","time","timeEnd","timeLog"],Dpl=["warn","error","trace"]});import{Stream as Npl}from"stream";var dFe,Mpl,Opl,bMr=b(async()=>{"use strict";o9();await uji();oFe();dFe=(t,e)=>{let r=Mpl(e),n={stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,exitOnCtrlC:!0,patchConsole:!0,...r},o=Opl(n.stdout,()=>new uFe(n));return n.stdout!==process.stdout&&!kb.has(process.stdout)&&kb.set(process.stdout,o),o.render(t),{rerender:o.render,unmount(){o.unmount()},waitUntilExit:o.waitUntilExit,cleanup:()=>kb.delete(n.stdout)}},Mpl=(t={})=>t instanceof Npl?{stdout:t,stdin:process.stdin}:t,Opl=(t,e)=>{let r=kb.get(t);return r||(r=e(),kb.set(t,r)),r}});function TMr(t,e){let r=Ppl(e);return dFe(t,r)}function Ppl(t){if(!t)return{};let e={};if(t.stdout&&(e.stdout=t.stdout),t.stdin&&(e.stdin=t.stdin),t.stderr&&(e.stderr=t.stderr),t.exitOnCtrlC!==void 0&&(e.exitOnCtrlC=t.exitOnCtrlC),t.patchConsole!==void 0&&(e.patchConsole=t.patchConsole),t.onRender){let r=t.onRender;e.onFrame=n=>{r({renderTime:n.durationMs})}}return e}var dji=b(async()=>{"use strict";await bMr()});var ft=b(async()=>{"use strict";V_t();pNr();FUi();UUi();b6i();w6i();R6i();B6i();M6i();L6i();H6i();V6i();W6i();cEe();Y6i();z6i();K6i();BNr();pCt();gGi();await dji();await bMr();oFe()});function E9(t){let e=Sb(t)||t;if(e==="black"||e==="#000000"||e==="#000")return"#1c1c1c";if(e==="white"||e==="#ffffff"||e==="#fff")return"#eeeeee";if(e.startsWith("#")&&e.length>=4){let r=gQe(e),n=r>128?.15:.2;return ys(e,r>128?"#000000":"#ffffff",n)||void 0}}function pji(t,e,r,n){let o=t===r||t===void 0,s=t===n;if(e>Qpl&&o)return n;if(e<Lpl&&s)return r}function S0t(t,e,r){let n=c=>{let u=parseInt(c,16);return c.length===1?u/15*255:c.length===2?u:c.length===3?u/4095*255:c.length===4?u/65535*255:u},o=n(t),s=n(e),a=n(r),l=c=>Math.round(c).toString(16).padStart(2,"0");return`#${l(o)}${l(s)}${l(a)}`}var Qpl,Lpl,lf=b(()=>{"use strict";Pp();Qpl=140,Lpl=110});var CA,Aji,fji=b(()=>{"use strict";Pp();lf();CA={type:"dark",Background:"#0b0e14",Foreground:"#aeaca6",LightBlue:"#59C2FF",AccentBlue:"#39BAE6",AccentPurple:"#D2A6FF",AccentCyan:"#95E6CB",AccentGreen:"#AAD94C",AccentYellow:"#FFB454",AccentRed:"#F26D78",DiffAdded:"#293022",DiffRemoved:"#3D1215",Comment:"#646A71",Gray:"#3D4149",DarkGray:ys("#3D4149","#0b0e14",.5),GradientColors:["#FFB454","#F26D78"]},Aji=new _a("Ayu","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:CA.Background,color:CA.Foreground},"hljs-keyword":{color:CA.AccentYellow},"hljs-literal":{color:CA.AccentPurple},"hljs-symbol":{color:CA.AccentCyan},"hljs-name":{color:CA.LightBlue},"hljs-link":{color:CA.AccentBlue},"hljs-function .hljs-keyword":{color:CA.AccentYellow},"hljs-subst":{color:CA.Foreground},"hljs-string":{color:CA.AccentGreen},"hljs-title":{color:CA.AccentYellow},"hljs-type":{color:CA.AccentBlue},"hljs-attribute":{color:CA.AccentYellow},"hljs-bullet":{color:CA.AccentYellow},"hljs-addition":{color:CA.AccentGreen},"hljs-variable":{color:CA.Foreground},"hljs-template-tag":{color:CA.AccentYellow},"hljs-template-variable":{color:CA.AccentYellow},"hljs-comment":{color:CA.Comment,fontStyle:"italic"},"hljs-quote":{color:CA.AccentCyan,fontStyle:"italic"},"hljs-deletion":{color:CA.AccentRed},"hljs-meta":{color:CA.AccentYellow},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},CA)});var fc,gji,mji=b(()=>{"use strict";Pp();lf();fc={type:"light",Background:"#f8f9fa",Foreground:"#5c6166",LightBlue:"#55b4d4",AccentBlue:"#399ee6",AccentPurple:"#a37acc",AccentCyan:"#4cbf99",AccentGreen:"#86b300",AccentYellow:"#f2ae49",AccentRed:"#f07171",DiffAdded:"#C6EAD8",DiffRemoved:"#FFCCCC",Comment:"#ABADB1",Gray:"#a6aaaf",DarkGray:ys("#a6aaaf","#f8f9fa",.5),GradientColors:["#399ee6","#86b300"]},gji=new _a("Ayu Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:fc.Background,color:fc.Foreground},"hljs-comment":{color:fc.Comment,fontStyle:"italic"},"hljs-quote":{color:fc.AccentCyan,fontStyle:"italic"},"hljs-string":{color:fc.AccentGreen},"hljs-constant":{color:fc.AccentCyan},"hljs-number":{color:fc.AccentPurple},"hljs-keyword":{color:fc.AccentYellow},"hljs-selector-tag":{color:fc.AccentYellow},"hljs-attribute":{color:fc.AccentYellow},"hljs-variable":{color:fc.Foreground},"hljs-variable.language":{color:fc.LightBlue,fontStyle:"italic"},"hljs-title":{color:fc.AccentBlue},"hljs-section":{color:fc.AccentGreen,fontWeight:"bold"},"hljs-type":{color:fc.LightBlue},"hljs-class .hljs-title":{color:fc.AccentBlue},"hljs-tag":{color:fc.LightBlue},"hljs-name":{color:fc.AccentBlue},"hljs-builtin-name":{color:fc.AccentYellow},"hljs-meta":{color:fc.AccentYellow},"hljs-symbol":{color:fc.AccentRed},"hljs-bullet":{color:fc.AccentYellow},"hljs-regexp":{color:fc.AccentCyan},"hljs-link":{color:fc.LightBlue},"hljs-deletion":{color:fc.AccentRed},"hljs-addition":{color:fc.AccentGreen},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-literal":{color:fc.AccentCyan},"hljs-built_in":{color:fc.AccentRed},"hljs-doctag":{color:fc.AccentRed},"hljs-template-variable":{color:fc.AccentCyan},"hljs-selector-id":{color:fc.AccentRed}},fc)});var pl,hji,Eji=b(()=>{"use strict";Pp();lf();pl={type:"dark",Background:"#282c34",Foreground:"#abb2bf",LightBlue:"#61aeee",AccentBlue:"#61aeee",AccentPurple:"#c678dd",AccentCyan:"#56b6c2",AccentGreen:"#98c379",AccentYellow:"#e6c07b",AccentRed:"#e06c75",DiffAdded:"#39544E",DiffRemoved:"#562B2F",Comment:"#5c6370",Gray:"#5c6370",DarkGray:ys("#5c6370","#282c34",.5),GradientColors:["#61aeee","#98c379"]},hji=new _a("Atom One","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:pl.Foreground,background:pl.Background},"hljs-comment":{color:pl.Comment,fontStyle:"italic"},"hljs-quote":{color:pl.Comment,fontStyle:"italic"},"hljs-doctag":{color:pl.AccentPurple},"hljs-keyword":{color:pl.AccentPurple},"hljs-formula":{color:pl.AccentPurple},"hljs-section":{color:pl.AccentRed},"hljs-name":{color:pl.AccentRed},"hljs-selector-tag":{color:pl.AccentRed},"hljs-deletion":{color:pl.AccentRed},"hljs-subst":{color:pl.AccentRed},"hljs-literal":{color:pl.AccentCyan},"hljs-string":{color:pl.AccentGreen},"hljs-regexp":{color:pl.AccentGreen},"hljs-addition":{color:pl.AccentGreen},"hljs-attribute":{color:pl.AccentGreen},"hljs-meta-string":{color:pl.AccentGreen},"hljs-built_in":{color:pl.AccentYellow},"hljs-class .hljs-title":{color:pl.AccentYellow},"hljs-attr":{color:pl.AccentYellow},"hljs-variable":{color:pl.AccentYellow},"hljs-template-variable":{color:pl.AccentYellow},"hljs-type":{color:pl.AccentYellow},"hljs-selector-class":{color:pl.AccentYellow},"hljs-selector-attr":{color:pl.AccentYellow},"hljs-selector-pseudo":{color:pl.AccentYellow},"hljs-number":{color:pl.AccentYellow},"hljs-symbol":{color:pl.AccentBlue},"hljs-bullet":{color:pl.AccentBlue},"hljs-link":{color:pl.AccentBlue,textDecoration:"underline"},"hljs-meta":{color:pl.AccentBlue},"hljs-selector-id":{color:pl.AccentBlue},"hljs-title":{color:pl.AccentBlue},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},pl)});var fp,yji,_ji=b(()=>{"use strict";Pp();lf();fp={type:"dark",Background:"#282a36",Foreground:"#a3afb7",LightBlue:"#8be9fd",AccentBlue:"#8be9fd",AccentPurple:"#ff79c6",AccentCyan:"#8be9fd",AccentGreen:"#50fa7b",AccentYellow:"#fff783",AccentRed:"#ff5555",DiffAdded:"#11431d",DiffRemoved:"#6e1818",Comment:"#6272a4",Gray:"#6272a4",DarkGray:ys("#6272a4","#282a36",.5),GradientColors:["#ff79c6","#8be9fd"]},yji=new _a("Dracula","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:fp.Background,color:fp.Foreground},"hljs-keyword":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-selector-tag":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-literal":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-section":{color:fp.AccentBlue,fontWeight:"bold"},"hljs-link":{color:fp.AccentBlue},"hljs-function .hljs-keyword":{color:fp.AccentPurple},"hljs-subst":{color:fp.Foreground},"hljs-string":{color:fp.AccentYellow},"hljs-title":{color:fp.AccentYellow,fontWeight:"bold"},"hljs-name":{color:fp.AccentYellow,fontWeight:"bold"},"hljs-type":{color:fp.AccentYellow,fontWeight:"bold"},"hljs-attribute":{color:fp.AccentYellow},"hljs-symbol":{color:fp.AccentYellow},"hljs-bullet":{color:fp.AccentYellow},"hljs-addition":{color:fp.AccentGreen},"hljs-variable":{color:fp.AccentYellow},"hljs-template-tag":{color:fp.AccentYellow},"hljs-template-variable":{color:fp.AccentYellow},"hljs-comment":{color:fp.Comment},"hljs-quote":{color:fp.Comment},"hljs-deletion":{color:fp.AccentRed},"hljs-meta":{color:fp.Comment},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},fp)});var gc,Cji,Sji=b(()=>{"use strict";Pp();lf();gc={type:"dark",Background:"#24292e",Foreground:"#c0c4c8",LightBlue:"#79B8FF",AccentBlue:"#79B8FF",AccentPurple:"#B392F0",AccentCyan:"#9ECBFF",AccentGreen:"#85E89D",AccentYellow:"#FFAB70",AccentRed:"#F97583",DiffAdded:"#3C4636",DiffRemoved:"#502125",Comment:"#6A737D",Gray:"#6A737D",DarkGray:ys("#6A737D","#24292e",.5),GradientColors:["#79B8FF","#85E89D"]},Cji=new _a("GitHub","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:gc.Foreground,background:gc.Background},"hljs-comment":{color:gc.Comment,fontStyle:"italic"},"hljs-quote":{color:gc.Comment,fontStyle:"italic"},"hljs-keyword":{color:gc.AccentRed,fontWeight:"bold"},"hljs-selector-tag":{color:gc.AccentRed,fontWeight:"bold"},"hljs-subst":{color:gc.Foreground},"hljs-number":{color:gc.LightBlue},"hljs-literal":{color:gc.LightBlue},"hljs-variable":{color:gc.AccentYellow},"hljs-template-variable":{color:gc.AccentYellow},"hljs-tag .hljs-attr":{color:gc.AccentYellow},"hljs-string":{color:gc.AccentCyan},"hljs-doctag":{color:gc.AccentCyan},"hljs-title":{color:gc.AccentPurple,fontWeight:"bold"},"hljs-section":{color:gc.AccentPurple,fontWeight:"bold"},"hljs-selector-id":{color:gc.AccentPurple,fontWeight:"bold"},"hljs-type":{color:gc.AccentGreen,fontWeight:"bold"},"hljs-class .hljs-title":{color:gc.AccentGreen,fontWeight:"bold"},"hljs-tag":{color:gc.AccentGreen},"hljs-name":{color:gc.AccentGreen},"hljs-attribute":{color:gc.LightBlue},"hljs-regexp":{color:gc.AccentCyan},"hljs-link":{color:gc.AccentCyan},"hljs-symbol":{color:gc.AccentPurple},"hljs-bullet":{color:gc.AccentPurple},"hljs-built_in":{color:gc.LightBlue},"hljs-builtin-name":{color:gc.LightBlue},"hljs-meta":{color:gc.LightBlue,fontWeight:"bold"},"hljs-deletion":{background:"#86181D",color:gc.AccentRed},"hljs-addition":{background:"#144620",color:gc.AccentGreen},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},gc)});var Hc,Iji,bji=b(()=>{"use strict";Pp();lf();Hc={type:"light",Background:"#f8f8f8",Foreground:"#24292E",LightBlue:"#0086b3",AccentBlue:"#458",AccentPurple:"#900",AccentCyan:"#009926",AccentGreen:"#008080",AccentYellow:"#990073",AccentRed:"#d14",DiffAdded:"#C6EAD8",DiffRemoved:"#FFCCCC",Comment:"#998",Gray:"#999",DarkGray:ys("#999","#f8f8f8",.5),FocusColor:"#458",GradientColors:["#458","#008080"]},Iji=new _a("GitHub Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:Hc.Foreground,background:Hc.Background},"hljs-comment":{color:Hc.Comment,fontStyle:"italic"},"hljs-quote":{color:Hc.Comment,fontStyle:"italic"},"hljs-keyword":{color:Hc.Foreground,fontWeight:"bold"},"hljs-selector-tag":{color:Hc.Foreground,fontWeight:"bold"},"hljs-subst":{color:Hc.Foreground,fontWeight:"normal"},"hljs-number":{color:Hc.AccentGreen},"hljs-literal":{color:Hc.AccentGreen},"hljs-variable":{color:Hc.AccentGreen},"hljs-template-variable":{color:Hc.AccentGreen},"hljs-tag .hljs-attr":{color:Hc.AccentGreen},"hljs-string":{color:Hc.AccentRed},"hljs-doctag":{color:Hc.AccentRed},"hljs-title":{color:Hc.AccentPurple,fontWeight:"bold"},"hljs-section":{color:Hc.AccentPurple,fontWeight:"bold"},"hljs-selector-id":{color:Hc.AccentPurple,fontWeight:"bold"},"hljs-type":{color:Hc.AccentBlue,fontWeight:"bold"},"hljs-class .hljs-title":{color:Hc.AccentBlue,fontWeight:"bold"},"hljs-tag":{color:Hc.AccentBlue,fontWeight:"normal"},"hljs-name":{color:Hc.AccentBlue,fontWeight:"normal"},"hljs-attribute":{color:Hc.AccentBlue,fontWeight:"normal"},"hljs-regexp":{color:Hc.AccentCyan},"hljs-link":{color:Hc.AccentCyan},"hljs-symbol":{color:Hc.AccentYellow},"hljs-bullet":{color:Hc.AccentYellow},"hljs-built_in":{color:Hc.LightBlue},"hljs-builtin-name":{color:Hc.LightBlue},"hljs-meta":{color:Hc.Gray,fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},Hc)});var mc,Tji,vji=b(()=>{"use strict";Pp();lf();mc={type:"light",Background:"white",Foreground:"#444",LightBlue:"#066",AccentBlue:"#008",AccentPurple:"#606",AccentCyan:"#066",AccentGreen:"#080",AccentYellow:"#660",AccentRed:"#800",DiffAdded:"#C6EAD8",DiffRemoved:"#FEDEDE",Comment:"#5f6368",Gray:hn.Gray,DarkGray:ys(hn.Gray,"#ffffff",.5),GradientColors:["#066","#606"]},Tji=new _a("Google Code","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:mc.Background,color:mc.Foreground},"hljs-comment":{color:mc.AccentRed},"hljs-quote":{color:mc.AccentRed},"hljs-keyword":{color:mc.AccentBlue},"hljs-selector-tag":{color:mc.AccentBlue},"hljs-section":{color:mc.AccentBlue},"hljs-title":{color:mc.AccentPurple},"hljs-name":{color:mc.AccentBlue},"hljs-variable":{color:mc.AccentYellow},"hljs-template-variable":{color:mc.AccentYellow},"hljs-string":{color:mc.AccentGreen},"hljs-selector-attr":{color:mc.AccentGreen},"hljs-selector-pseudo":{color:mc.AccentGreen},"hljs-regexp":{color:mc.AccentGreen},"hljs-literal":{color:mc.AccentCyan},"hljs-symbol":{color:mc.AccentCyan},"hljs-bullet":{color:mc.AccentCyan},"hljs-meta":{color:mc.AccentCyan},"hljs-number":{color:mc.AccentCyan},"hljs-link":{color:mc.AccentCyan},"hljs-doctag":{color:mc.AccentPurple,fontWeight:"bold"},"hljs-type":{color:mc.AccentPurple},"hljs-attr":{color:mc.AccentPurple},"hljs-built_in":{color:mc.AccentPurple},"hljs-builtin-name":{color:mc.AccentPurple},"hljs-params":{color:mc.AccentPurple},"hljs-attribute":{color:mc.Foreground},"hljs-subst":{color:mc.Foreground},"hljs-formula":{backgroundColor:"#eee",fontStyle:"italic"},"hljs-selector-id":{color:mc.AccentYellow},"hljs-selector-class":{color:mc.AccentYellow},"hljs-addition":{backgroundColor:"#baeeba"},"hljs-deletion":{backgroundColor:"#ffc8bd"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},mc)});var Ks,wji,xji=b(()=>{"use strict";Pp();lf();Ks={type:"dark",Background:"#00210e",Foreground:"#F0F8FF",LightBlue:"#B0E0E6",AccentBlue:"#3CB371",AccentPurple:"#FF9999",AccentCyan:"#33F9FF",AccentGreen:"#3CB371",AccentYellow:"#FFEE8C",AccentRed:"#FF6347",DiffAdded:"#2E8B57",DiffRemoved:"#CD5C5C",Comment:"#8FBC8F",Gray:"#D7F5D3",DarkGray:ys("#D7F5D3","#151B18",.5),FocusColor:"#33F9FF",GradientColors:["#FF0000","#FFFFFF","#008000"]},wji=new _a("Holiday","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Ks.Background,color:Ks.Foreground},"hljs-keyword":{color:Ks.AccentBlue},"hljs-literal":{color:Ks.AccentBlue},"hljs-symbol":{color:Ks.AccentBlue},"hljs-name":{color:Ks.AccentBlue},"hljs-link":{color:Ks.AccentBlue,textDecoration:"underline"},"hljs-built_in":{color:Ks.AccentCyan},"hljs-type":{color:Ks.AccentCyan},"hljs-number":{color:Ks.AccentGreen},"hljs-class":{color:Ks.AccentGreen},"hljs-string":{color:Ks.AccentYellow},"hljs-meta-string":{color:Ks.AccentYellow},"hljs-regexp":{color:Ks.AccentRed},"hljs-template-tag":{color:Ks.AccentRed},"hljs-subst":{color:Ks.Foreground},"hljs-function":{color:Ks.Foreground},"hljs-title":{color:Ks.Foreground},"hljs-params":{color:Ks.Foreground},"hljs-formula":{color:Ks.Foreground},"hljs-comment":{color:Ks.Comment,fontStyle:"italic"},"hljs-quote":{color:Ks.Comment,fontStyle:"italic"},"hljs-doctag":{color:Ks.Comment},"hljs-meta":{color:Ks.Gray},"hljs-meta-keyword":{color:Ks.Gray},"hljs-tag":{color:Ks.Gray},"hljs-variable":{color:Ks.AccentPurple},"hljs-template-variable":{color:Ks.AccentPurple},"hljs-attr":{color:Ks.LightBlue},"hljs-attribute":{color:Ks.LightBlue},"hljs-builtin-name":{color:Ks.LightBlue},"hljs-section":{color:Ks.AccentYellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:Ks.AccentYellow},"hljs-selector-tag":{color:Ks.AccentYellow},"hljs-selector-id":{color:Ks.AccentYellow},"hljs-selector-class":{color:Ks.AccentYellow},"hljs-selector-attr":{color:Ks.AccentYellow},"hljs-selector-pseudo":{color:Ks.AccentYellow},"hljs-addition":{backgroundColor:Ks.DiffAdded,display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:Ks.DiffRemoved,display:"inline-block",width:"100%"}},Ks)});var ls,Zm,Rji,Bji=b(()=>{"use strict";Pp();lf();ls={type:"dark",Background:"#1e1e3f",Foreground:"#e3dfff",LightBlue:"#847ace",AccentBlue:"#a599e9",AccentPurple:"#ac65ff",AccentCyan:"#a1feff",AccentGreen:"#A5FF90",AccentYellow:"#fad000",AccentRed:"#ff628c",DiffAdded:"#383E45",DiffRemoved:"#572244",Comment:"#B362FF",Gray:"#726c86",DarkGray:ys("#726c86","#2d2b57",.5),GradientColors:["#4d21fc","#847ace","#ff628c"]},Zm={AccentYellowAlt:"#f8d000",AccentOrange:"#fb9e00",AccentPink:"#fa658d",AccentLightPurple:"#c991ff",AccentDarkPurple:"#6943ff",AccentTeal:"#2ee2fa"},Rji=new _a("Shades Of Purple","dark",{hljs:{display:"block",overflowX:"auto",background:ls.Background,color:ls.Foreground},"hljs-title":{color:ls.AccentYellow,fontWeight:"normal"},"hljs-name":{color:ls.AccentCyan,fontWeight:"normal"},"hljs-tag":{color:ls.Foreground},"hljs-attr":{color:Zm.AccentYellowAlt,fontStyle:"italic"},"hljs-built_in":{color:Zm.AccentOrange},"hljs-selector-tag":{color:Zm.AccentOrange,fontWeight:"normal"},"hljs-section":{color:Zm.AccentOrange},"hljs-keyword":{color:Zm.AccentOrange,fontWeight:"normal"},"hljs-subst":{color:ls.Foreground},"hljs-string":{color:ls.AccentGreen},"hljs-attribute":{color:ls.AccentGreen},"hljs-symbol":{color:ls.AccentGreen},"hljs-bullet":{color:ls.AccentGreen},"hljs-addition":{color:ls.AccentGreen},"hljs-code":{color:ls.AccentGreen},"hljs-regexp":{color:ls.AccentGreen},"hljs-selector-class":{color:ls.AccentGreen},"hljs-selector-attr":{color:ls.AccentGreen},"hljs-selector-pseudo":{color:ls.AccentGreen},"hljs-template-tag":{color:ls.AccentGreen},"hljs-quote":{color:ls.AccentGreen},"hljs-deletion":{color:ls.AccentRed},"hljs-meta":{color:Zm.AccentOrange},"hljs-meta-string":{color:Zm.AccentOrange},"hljs-comment":{color:ls.AccentPurple},"hljs-literal":{color:Zm.AccentPink,fontWeight:"normal"},"hljs-number":{color:Zm.AccentPink},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-diff":{color:ls.Foreground},"hljs-meta.hljs-diff":{color:ls.AccentBlue},"hljs-ln":{color:ls.Gray},"hljs-type":{color:ls.AccentYellow,fontWeight:"normal"},"hljs-variable":{color:ls.AccentYellow},"hljs-template-variable":{color:ls.AccentGreen},"hljs-function .hljs-keyword":{color:Zm.AccentOrange},"hljs-link":{color:ls.LightBlue},"hljs-doctag":{fontWeight:"bold"},"hljs-params":{color:Zm.AccentLightPurple,fontStyle:"italic"},"hljs-class":{color:ls.AccentCyan,fontWeight:"bold"},"hljs-function":{color:ls.AccentCyan},"hljs-property":{color:ls.AccentBlue},"hljs-operator":{color:Zm.AccentDarkPurple},"hljs-punctuation":{color:ls.Gray},"hljs-selector-id":{color:ls.AccentYellow,fontWeight:"bold"},"hljs-char":{color:ls.AccentGreen},"hljs-escape":{color:Zm.AccentPink,fontWeight:"bold"},"hljs-meta-keyword":{color:Zm.AccentOrange,fontWeight:"bold"},"hljs-builtin-name":{color:Zm.AccentTeal},"hljs-module":{color:ls.AccentCyan},"hljs-namespace":{color:ls.LightBlue},"hljs-important":{color:ls.AccentRed,fontWeight:"bold"},"hljs-formula":{color:ls.AccentCyan,fontStyle:"italic"},"hljs-decorator":{color:Zm.AccentTeal,fontWeight:"bold"},"hljs-symbol.ruby":{color:Zm.AccentPink},"hljs-keyword.sql":{color:Zm.AccentOrange,textTransform:"uppercase"},"hljs-section.markdown":{color:ls.AccentYellow,fontWeight:"bold"},"hljs-attr.json":{color:ls.AccentCyan},"hljs-tag .hljs-name":{color:ls.AccentRed},"hljs-tag .hljs-attr":{color:Zm.AccentYellowAlt},"hljs.hljs-line-numbers":{borderRight:`1px solid ${ls.Gray}`},"hljs.hljs-line-numbers .hljs-ln-numbers":{color:ls.Gray,paddingRight:"1em"},"hljs.hljs-line-numbers .hljs-ln-code":{paddingLeft:"1em"},"hljs::selection":{background:ls.AccentBlue+"40"},"hljs ::-moz-selection":{background:ls.AccentBlue+"40"},"hljs .hljs-highlight":{background:ls.AccentPurple+"20",display:"block",width:"100%"}},ls)});var kji,Dji,pFe=b(()=>{"use strict";Pp();kji={text:{primary:hn.Foreground,secondary:hn.Gray,link:hn.AccentBlue,accent:hn.AccentPurple,response:hn.Foreground},background:{primary:hn.Background,message:hn.MessageBackground,input:hn.InputBackground,focus:hn.FocusBackground,diff:{added:hn.DiffAdded,removed:hn.DiffRemoved}},border:{default:hn.DarkGray},ui:{comment:hn.Comment,symbol:hn.Gray,active:hn.AccentBlue,dark:hn.DarkGray,focus:hn.AccentGreen,gradient:hn.GradientColors},status:{error:hn.AccentRed,success:hn.AccentGreen,warning:hn.AccentYellow},agent:{red:hn.AgentRed,blue:hn.AgentBlue,green:hn.AgentGreen,yellow:hn.AgentYellow,purple:hn.AgentPurple,orange:hn.AgentOrange,pink:hn.AgentPink,cyan:hn.AgentCyan,badgeText:"#FFFFFF"}},Dji={text:{primary:gr.Foreground,secondary:gr.Gray,link:gr.AccentBlue,accent:gr.AccentPurple,response:gr.Foreground},background:{primary:gr.Background,message:gr.MessageBackground,input:gr.InputBackground,focus:gr.FocusBackground,diff:{added:gr.DiffAdded,removed:gr.DiffRemoved}},border:{default:gr.DarkGray},ui:{comment:gr.Comment,symbol:gr.Gray,active:gr.AccentBlue,dark:gr.DarkGray,focus:gr.AccentGreen,gradient:gr.GradientColors},status:{error:gr.AccentRed,success:gr.AccentGreen,warning:gr.AccentYellow},agent:{red:gr.AgentRed,blue:gr.AgentBlue,green:gr.AgentGreen,yellow:gr.AgentYellow,purple:gr.AgentPurple,orange:gr.AgentOrange,pink:gr.AgentPink,cyan:gr.AgentCyan,badgeText:"#000000"}}});var Ca,Fpl,Nji,Mji=b(()=>{"use strict";Pp();pFe();wd();Ca={type:"dark",Background:"#002b36",Foreground:"#839496",LightBlue:"#268bd2",AccentBlue:"#268bd2",AccentPurple:"#6c71c4",AccentCyan:"#2aa198",AccentGreen:"#859900",AccentYellow:"#d0b000",AccentRed:"#dc322f",DiffAdded:"#859900",DiffRemoved:"#dc322f",Comment:"#586e75",Gray:"#586e75",DarkGray:"#073642",GradientColors:["#268bd2","#2aa198"]},Fpl={text:{primary:"#839496",secondary:"#586e75",link:"#268bd2",accent:"#268bd2",response:"#839496"},background:{primary:"#002b36",message:"#073642",input:"#073642",focus:ys("#002b36","#859900",CG),diff:{added:"#00382f",removed:"#3d0115"}},border:{default:"#073642"},ui:{comment:"#586e75",symbol:"#93a1a1",active:"#268bd2",dark:"#073642",focus:"#859900",gradient:["#268bd2","#2aa198","#859900"]},status:{success:"#859900",warning:"#d0b000",error:"#dc322f"},agent:{red:"#EA4335",blue:"#669DF6",green:"#34A853",yellow:"#FBBC04",purple:"#AF5CF7",orange:"#E8710A",pink:"#FF63B8",cyan:"#24C1E0",badgeText:"#000000"}},Nji=new _a("Solarized Dark","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Ca.Background,color:Ca.Foreground},"hljs-keyword":{color:Ca.AccentBlue},"hljs-literal":{color:Ca.AccentBlue},"hljs-symbol":{color:Ca.AccentBlue},"hljs-name":{color:Ca.AccentBlue},"hljs-link":{color:Ca.AccentBlue,textDecoration:"underline"},"hljs-built_in":{color:Ca.AccentCyan},"hljs-type":{color:Ca.AccentCyan},"hljs-number":{color:Ca.AccentGreen},"hljs-class":{color:Ca.AccentGreen},"hljs-string":{color:Ca.AccentYellow},"hljs-meta-string":{color:Ca.AccentYellow},"hljs-regexp":{color:Ca.AccentRed},"hljs-template-tag":{color:Ca.AccentRed},"hljs-subst":{color:Ca.Foreground},"hljs-function":{color:Ca.Foreground},"hljs-title":{color:Ca.Foreground},"hljs-params":{color:Ca.Foreground},"hljs-formula":{color:Ca.Foreground},"hljs-comment":{color:Ca.Comment,fontStyle:"italic"},"hljs-quote":{color:Ca.Comment,fontStyle:"italic"},"hljs-doctag":{color:Ca.Comment},"hljs-meta":{color:Ca.Gray},"hljs-meta-keyword":{color:Ca.Gray},"hljs-tag":{color:Ca.Gray},"hljs-variable":{color:Ca.AccentPurple},"hljs-template-variable":{color:Ca.AccentPurple},"hljs-attr":{color:Ca.LightBlue},"hljs-attribute":{color:Ca.LightBlue},"hljs-builtin-name":{color:Ca.LightBlue},"hljs-section":{color:Ca.AccentYellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:Ca.AccentYellow},"hljs-selector-tag":{color:Ca.AccentYellow},"hljs-selector-id":{color:Ca.AccentYellow},"hljs-selector-class":{color:Ca.AccentYellow},"hljs-selector-attr":{color:Ca.AccentYellow},"hljs-selector-pseudo":{color:Ca.AccentYellow},"hljs-addition":{backgroundColor:"#00382f",display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:"#3d0115",display:"inline-block",width:"100%"}},Ca,Fpl)});var Sa,Upl,Oji,Pji=b(()=>{"use strict";Pp();pFe();wd();Sa={type:"light",Background:"#fdf6e3",Foreground:"#657b83",LightBlue:"#268bd2",AccentBlue:"#268bd2",AccentPurple:"#6c71c4",AccentCyan:"#2aa198",AccentGreen:"#859900",AccentYellow:"#d0b000",AccentRed:"#dc322f",DiffAdded:"#859900",DiffRemoved:"#dc322f",Comment:"#93a1a1",Gray:"#93a1a1",DarkGray:"#eee8d5",GradientColors:["#268bd2","#2aa198"]},Upl={text:{primary:"#657b83",secondary:"#93a1a1",link:"#268bd2",accent:"#268bd2",response:"#657b83"},background:{primary:"#fdf6e3",message:"#eee8d5",input:"#eee8d5",focus:ys("#fdf6e3","#859900",CG),diff:{added:"#d7f2d7",removed:"#f2d7d7"}},border:{default:"#eee8d5"},ui:{comment:"#93a1a1",symbol:"#586e75",active:"#268bd2",dark:"#eee8d5",focus:"#859900",gradient:["#268bd2","#2aa198","#859900"]},status:{success:"#859900",warning:"#d0b000",error:"#dc322f"},agent:{red:"#D93025",blue:"#1A73E8",green:"#188038",yellow:"#E37400",purple:"#8430CE",orange:"#C5621C",pink:"#D01884",cyan:"#007B83",badgeText:"#FFFFFF"}},Oji=new _a("Solarized Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Sa.Background,color:Sa.Foreground},"hljs-keyword":{color:Sa.AccentBlue},"hljs-literal":{color:Sa.AccentBlue},"hljs-symbol":{color:Sa.AccentBlue},"hljs-name":{color:Sa.AccentBlue},"hljs-link":{color:Sa.AccentBlue,textDecoration:"underline"},"hljs-built_in":{color:Sa.AccentCyan},"hljs-type":{color:Sa.AccentCyan},"hljs-number":{color:Sa.AccentGreen},"hljs-class":{color:Sa.AccentGreen},"hljs-string":{color:Sa.AccentYellow},"hljs-meta-string":{color:Sa.AccentYellow},"hljs-regexp":{color:Sa.AccentRed},"hljs-template-tag":{color:Sa.AccentRed},"hljs-subst":{color:Sa.Foreground},"hljs-function":{color:Sa.Foreground},"hljs-title":{color:Sa.Foreground},"hljs-params":{color:Sa.Foreground},"hljs-formula":{color:Sa.Foreground},"hljs-comment":{color:Sa.Comment,fontStyle:"italic"},"hljs-quote":{color:Sa.Comment,fontStyle:"italic"},"hljs-doctag":{color:Sa.Comment},"hljs-meta":{color:Sa.Gray},"hljs-meta-keyword":{color:Sa.Gray},"hljs-tag":{color:Sa.Gray},"hljs-variable":{color:Sa.AccentPurple},"hljs-template-variable":{color:Sa.AccentPurple},"hljs-attr":{color:Sa.LightBlue},"hljs-attribute":{color:Sa.LightBlue},"hljs-builtin-name":{color:Sa.LightBlue},"hljs-section":{color:Sa.AccentYellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:Sa.AccentYellow},"hljs-selector-tag":{color:Sa.AccentYellow},"hljs-selector-id":{color:Sa.AccentYellow},"hljs-selector-class":{color:Sa.AccentYellow},"hljs-selector-attr":{color:Sa.AccentYellow},"hljs-selector-pseudo":{color:Sa.AccentYellow},"hljs-addition":{backgroundColor:"#d7f2d7",display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:"#f2d7d7",display:"inline-block",width:"100%"}},Sa,Upl)});var Ll,Qji,Lji=b(()=>{"use strict";Pp();lf();Ll={type:"light",Background:"#fff",Foreground:"#444",LightBlue:"#0E0EFF",AccentBlue:"#1c00cf",AccentPurple:"#aa0d91",AccentCyan:"#3F6E74",AccentGreen:"#007400",AccentYellow:"#836C28",AccentRed:"#c41a16",DiffAdded:"#C6EAD8",DiffRemoved:"#FEDEDE",Comment:"#007400",Gray:"#c0c0c0",DarkGray:ys("#c0c0c0","#fff",.5),FocusColor:"#1c00cf",GradientColors:["#1c00cf","#007400"]},Qji=new _a("Xcode","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:Ll.Background,color:Ll.Foreground},"xml .hljs-meta":{color:Ll.Gray},"hljs-comment":{color:Ll.Comment},"hljs-quote":{color:Ll.Comment},"hljs-tag":{color:Ll.AccentPurple},"hljs-attribute":{color:Ll.AccentPurple},"hljs-keyword":{color:Ll.AccentPurple},"hljs-selector-tag":{color:Ll.AccentPurple},"hljs-literal":{color:Ll.AccentPurple},"hljs-name":{color:Ll.AccentPurple},"hljs-variable":{color:Ll.AccentCyan},"hljs-template-variable":{color:Ll.AccentCyan},"hljs-code":{color:Ll.AccentRed},"hljs-string":{color:Ll.AccentRed},"hljs-meta-string":{color:Ll.AccentRed},"hljs-regexp":{color:Ll.LightBlue},"hljs-link":{color:Ll.LightBlue},"hljs-title":{color:Ll.AccentBlue},"hljs-symbol":{color:Ll.AccentBlue},"hljs-bullet":{color:Ll.AccentBlue},"hljs-number":{color:Ll.AccentBlue},"hljs-section":{color:Ll.AccentYellow},"hljs-meta":{color:Ll.AccentYellow},"hljs-class .hljs-title":{color:Ll.AccentPurple},"hljs-type":{color:Ll.AccentPurple},"hljs-built_in":{color:Ll.AccentPurple},"hljs-builtin-name":{color:Ll.AccentPurple},"hljs-params":{color:Ll.AccentPurple},"hljs-attr":{color:Ll.AccentYellow},"hljs-subst":{color:Ll.Foreground},"hljs-formula":{backgroundColor:"#eee",fontStyle:"italic"},"hljs-addition":{backgroundColor:"#baeeba"},"hljs-deletion":{backgroundColor:"#ffc8bd"},"hljs-selector-id":{color:Ll.AccentYellow},"hljs-selector-class":{color:Ll.AccentYellow},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},Ll)});var yn,Gpl,Fji,Uji=b(()=>{"use strict";Pp();lf();yn={bg:"#1a1b26",bg_dark:"#16161e",bg_dark1:"#0C0E14",bg_highlight:"#292e42",blue:"#7aa2f7",blue0:"#3d59a1",blue1:"#2ac3de",blue2:"#0db9d7",blue5:"#89ddff",blue6:"#b4f9f8",blue7:"#394b70",comment:"#565f89",cyan:"#7dcfff",fg:"#c0caf5",fg_dark:"#a9b1d6",fg_gutter:"#3b4261",green:"#9ece6a",green1:"#73daca",green2:"#41a6b5",magenta:"#bb9af7",magenta2:"#ff007c",orange:"#ff9e64",purple:"#9d7cd8",red:"#f7768e",red1:"#db4b4b",teal:"#1abc9c",yellow:"#e0af68",diff:{add:"#243e4a",change:"#1f2231",delete:"#4a272f"}},Gpl={type:"dark",Background:yn.bg,Foreground:yn.fg,LightBlue:yn.purple,AccentBlue:yn.magenta,AccentPurple:yn.blue,AccentCyan:yn.cyan,AccentGreen:yn.teal,AccentYellow:yn.yellow,AccentRed:yn.red1,DiffAdded:yn.diff.add,DiffRemoved:yn.diff.delete,Comment:yn.comment,Gray:yn.fg_dark,DarkGray:yn.fg_gutter,FocusColor:yn.blue,GradientColors:[yn.blue,yn.magenta,yn.cyan]},Fji=new _a("Tokyo Night","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:yn.bg,color:yn.fg},"hljs-addition":{background:yn.diff.add},"hljs-attr":{color:yn.green1},"hljs-attribute":{color:yn.green1},"hljs-brace":{color:yn.fg_dark},"hljs-built_in":{color:yn.blue1},"hljs-builtin-symbol":{color:yn.blue1},"hljs-bullet":{color:yn.orange,fontWeight:"bold"},"hljs-char":{color:yn.green},"hljs-char-escape":{color:yn.magenta},"hljs-character":{color:yn.green},"hljs-class":{color:yn.blue1},"hljs-class-title":{color:yn.blue1},"hljs-code":{color:yn.green},"hljs-comment":{color:yn.comment,fontStyle:"italic"},"hljs-computation-expression":{color:yn.cyan},"hljs-deletion":{background:yn.diff.delete},"hljs-doctag":{color:yn.yellow},"hljs-emphasis":{fontStyle:"italic"},"hljs-function":{color:yn.blue},"hljs-function-dispatch":{color:yn.blue},"hljs-keyword":{color:yn.magenta,fontStyle:"italic"},"hljs-label":{color:yn.blue},"hljs-link":{color:yn.teal},"hljs-literal":{color:yn.orange},"hljs-message-name":{color:yn.blue},"hljs-meta":{color:yn.cyan},"hljs-meta-prompt":{color:yn.fg_dark},"hljs-name":{color:yn.magenta},"hljs-named-character":{color:yn.blue1},"hljs-number":{color:yn.orange},"hljs-operator":{color:yn.blue5},"hljs-params":{color:yn.yellow},"hljs-property":{color:yn.green1},"hljs-punctuation":{color:yn.fg_dark},"hljs-quote":{color:yn.comment,fontStyle:"italic"},"hljs-regex":{color:yn.blue6},"hljs-regexp":{color:yn.blue6},"hljs-rest_arg":{color:ys(yn.yellow,yn.fg,.8)},"hljs-section":{color:yn.blue,fontWeight:"bold"},"hljs-selector-attr":{color:yn.cyan},"hljs-selector-class":{color:yn.green1},"hljs-selector-id":{color:yn.green1},"hljs-selector-pseudo":{color:yn.cyan},"hljs-selector-tag":{color:yn.magenta},"hljs-string":{color:yn.green},"hljs-strong":{fontWeight:"bold"},"hljs-subst":{color:yn.blue5},"hljs-symbol":{color:yn.magenta},"hljs-tag":{color:yn.blue1},"hljs-template-tag":{color:yn.blue5},"hljs-template-variable":{color:yn.fg},"hljs-title":{color:yn.blue},"hljs-title-class":{color:yn.blue1},"hljs-title-class-inherited":{color:yn.blue1},"hljs-title-function":{color:yn.blue},"hljs-title-function-invoke":{color:yn.blue},"hljs-type":{color:yn.blue1},"hljs-variable":{color:yn.fg},"hljs-variable-constant":{color:yn.orange},"hljs-variable-language":{color:yn.red}},Gpl)});var $pl,Gji,$ji=b(()=>{"use strict";Pp();pFe();$pl={type:"dark",Background:"black",Foreground:"",LightBlue:"bluebright",AccentBlue:"blue",AccentPurple:"magenta",AccentCyan:"cyan",AccentGreen:"green",AccentYellow:"yellow",AccentRed:"red",DiffAdded:"#003300",DiffRemoved:"#4D0000",Comment:"gray",Gray:"gray",DarkGray:"gray",FocusBackground:"black",GradientColors:["cyan","green"]},Gji=new _a("ANSI","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"black",color:"white"},"hljs-keyword":{color:"blue"},"hljs-literal":{color:"blue"},"hljs-symbol":{color:"blue"},"hljs-name":{color:"blue"},"hljs-link":{color:"blue"},"hljs-built_in":{color:"cyan"},"hljs-type":{color:"cyan"},"hljs-number":{color:"green"},"hljs-class":{color:"green"},"hljs-string":{color:"yellow"},"hljs-meta-string":{color:"yellow"},"hljs-regexp":{color:"red"},"hljs-template-tag":{color:"red"},"hljs-subst":{color:"white"},"hljs-function":{color:"white"},"hljs-title":{color:"white"},"hljs-params":{color:"white"},"hljs-formula":{color:"white"},"hljs-comment":{color:"green"},"hljs-quote":{color:"green"},"hljs-doctag":{color:"green"},"hljs-meta":{color:"gray"},"hljs-meta-keyword":{color:"gray"},"hljs-tag":{color:"gray"},"hljs-variable":{color:"magenta"},"hljs-template-variable":{color:"magenta"},"hljs-attr":{color:"bluebright"},"hljs-attribute":{color:"bluebright"},"hljs-builtin-name":{color:"bluebright"},"hljs-section":{color:"yellow"},"hljs-emphasis":{},"hljs-strong":{},"hljs-bullet":{color:"yellow"},"hljs-selector-tag":{color:"yellow"},"hljs-selector-id":{color:"yellow"},"hljs-selector-class":{color:"yellow"},"hljs-selector-attr":{color:"yellow"},"hljs-selector-pseudo":{color:"yellow"}},$pl,Dji)});var jpl,jji,Hji=b(()=>{"use strict";Pp();pFe();jpl={type:"light",Background:"white",Foreground:"",LightBlue:"blue",AccentBlue:"blue",AccentPurple:"magenta",AccentCyan:"cyan",AccentGreen:"green",AccentYellow:"yellow",AccentRed:"red",DiffAdded:"#E5F2E5",DiffRemoved:"#FFE5E5",Comment:"gray",Gray:"gray",DarkGray:"gray",GradientColors:["blue","green"]},jji=new _a("ANSI Light","light",{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"white",color:"black"},"hljs-keyword":{color:"blue"},"hljs-literal":{color:"blue"},"hljs-symbol":{color:"blue"},"hljs-name":{color:"blue"},"hljs-link":{color:"blue"},"hljs-built_in":{color:"cyan"},"hljs-type":{color:"cyan"},"hljs-number":{color:"green"},"hljs-class":{color:"green"},"hljs-string":{color:"red"},"hljs-meta-string":{color:"red"},"hljs-regexp":{color:"magenta"},"hljs-template-tag":{color:"magenta"},"hljs-subst":{color:"black"},"hljs-function":{color:"black"},"hljs-title":{color:"black"},"hljs-params":{color:"black"},"hljs-formula":{color:"black"},"hljs-comment":{color:"gray"},"hljs-quote":{color:"gray"},"hljs-doctag":{color:"gray"},"hljs-meta":{color:"gray"},"hljs-meta-keyword":{color:"gray"},"hljs-tag":{color:"gray"},"hljs-variable":{color:"purple"},"hljs-template-variable":{color:"purple"},"hljs-attr":{color:"blue"},"hljs-attribute":{color:"blue"},"hljs-builtin-name":{color:"blue"},"hljs-section":{color:"orange"},"hljs-bullet":{color:"orange"},"hljs-selector-tag":{color:"orange"},"hljs-selector-id":{color:"orange"},"hljs-selector-class":{color:"orange"},"hljs-selector-attr":{color:"orange"},"hljs-selector-pseudo":{color:"orange"}},jpl,kji)});var Hpl,qpl,qji,Vji=b(()=>{"use strict";Pp();Hpl={type:"ansi",Background:"",Foreground:"",LightBlue:"",AccentBlue:"",AccentPurple:"",AccentCyan:"",AccentGreen:"",AccentYellow:"",AccentRed:"",DiffAdded:"",DiffRemoved:"",Comment:"",Gray:"",DarkGray:"",InputBackground:"",MessageBackground:"",FocusBackground:""},qpl={text:{primary:"",secondary:"",link:"",accent:"",response:""},background:{primary:"",message:"",input:"",focus:"",diff:{added:"",removed:""}},border:{default:""},ui:{comment:"",symbol:"",active:"",dark:"",focus:"",gradient:[]},status:{error:"",success:"",warning:""},agent:{red:"",blue:"",green:"",yellow:"",purple:"",orange:"",pink:"",cyan:"",badgeText:""}},qji=new _a("NoColor","dark",{hljs:{display:"block",overflowX:"auto",padding:"0.5em"},"hljs-keyword":{},"hljs-literal":{},"hljs-symbol":{},"hljs-name":{},"hljs-link":{textDecoration:"underline"},"hljs-built_in":{},"hljs-type":{},"hljs-number":{},"hljs-class":{},"hljs-string":{},"hljs-meta-string":{},"hljs-regexp":{},"hljs-template-tag":{},"hljs-subst":{},"hljs-function":{},"hljs-title":{},"hljs-params":{},"hljs-formula":{},"hljs-comment":{fontStyle:"italic"},"hljs-quote":{fontStyle:"italic"},"hljs-doctag":{},"hljs-meta":{},"hljs-meta-keyword":{},"hljs-tag":{},"hljs-variable":{},"hljs-template-variable":{},"hljs-attr":{},"hljs-attribute":{},"hljs-builtin-name":{},"hljs-section":{},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{},"hljs-selector-tag":{},"hljs-selector-id":{},"hljs-selector-class":{},"hljs-selector-attr":{},"hljs-selector-pseudo":{},"hljs-addition":{display:"inline-block",width:"100%"},"hljs-deletion":{display:"inline-block",width:"100%"}},Hpl,qpl)});import*as Vpl from"node:fs";import*as AFe from"node:path";import Wpl from"node:process";var vC,vMr,ro,E2=b(()=>{"use strict";fji();mji();Eji();_ji();Sji();bji();vji();xji();Lmt();YTr();Bji();Mji();Pji();Lji();Uji();Pp();wd();$ji();Hji();Vji();Ue();vC=_me,vMr=class{availableThemes;activeTheme;settingsThemes=new Map;pluginThemes=new Map;fileThemes=new Map;terminalBackground;cachedColors;cachedSemanticColors;lastCacheKey;fs;homedir;constructor(e){this.fs=e?.fs??Vpl,this.homedir=e?.homedir??gs,this.availableThemes=[Aji,gji,hji,yji,A5,_me,Cji,Iji,Tji,wji,Rji,Nji,Oji,Qji,Fji,Gji,jji],this.activeTheme=vC}setTerminalBackground(e){this.terminalBackground!==e&&(this.terminalBackground=e,this.clearCache())}getTerminalBackground(){return this.terminalBackground}clearCache(){this.cachedColors=void 0,this.cachedSemanticColors=void 0,this.lastCacheKey=void 0}isDefaultTheme(e){return e===void 0||e===vC.name||e===A5.name}loadCustomThemes(e){if(this.settingsThemes.clear(),!!e){for(let[r,n]of Object.entries(e)){let o=Pmt(n);if(o.isValid){o.warning&&T.warn(`Theme "${r}": ${o.warning}`);let s={...vC.colors,...n,name:n.name||r,type:"custom"};try{let a=Omt(s);this.settingsThemes.set(r,a)}catch(a){T.warn(`Failed to load custom theme "${r}":`,a)}}else T.warn(`Invalid custom theme "${r}": ${o.error}`)}this.activeTheme&&this.activeTheme.type==="custom"&&this.settingsThemes.has(this.activeTheme.name)&&(this.activeTheme=this.settingsThemes.get(this.activeTheme.name))}}registerPluginThemes(e,r){if(r)for(let n of r){let o=`${n.name} (${e})`;if(this.availableThemes.some(a=>a.name===o)){T.warn(`Theme name collision: "${o}" is a built-in theme. Skipping.`);continue}let s=Pmt(n);if(s.isValid){s.warning&&T.warn(`Theme "${o}": ${s.warning}`);let a={...vC.colors,...n,name:o,type:"custom"};try{let l=Omt(a);this.pluginThemes.set(o,l),T.log(`Registered theme: ${o}`)}catch(l){T.warn(`Failed to load custom theme "${o}":`,l)}}else T.warn(`Invalid custom theme "${o}": ${s.error}`)}}unregisterPluginThemes(e,r){if(r)for(let n of r){let o=`${n.name} (${e})`;this.pluginThemes.delete(o),T.log(`Unregistered theme: ${o}`)}}hasPluginThemes(e){return Array.from(this.pluginThemes.keys()).some(r=>r.endsWith(`(${e})`))}clearPluginThemes(){this.pluginThemes.clear()}clearFileThemes(){this.fileThemes.clear()}reinitialize(e){e.fs&&(this.fs=e.fs),e.homedir&&(this.homedir=e.homedir)}resetForTesting(e){e&&this.reinitialize(e),this.settingsThemes.clear(),this.pluginThemes.clear(),this.fileThemes.clear(),this.activeTheme=vC,this.terminalBackground=void 0,this.clearCache()}setActiveTheme(e){let r=this.findThemeByName(e);return r?(this.activeTheme!==r&&(this.activeTheme=r,this.clearCache()),!0):!1}getActiveTheme(){if(Wpl.env.NO_COLOR)return qji;if(this.activeTheme){let e=this.availableThemes.some(o=>o.name===this.activeTheme.name),r=[...this.settingsThemes.values()].includes(this.activeTheme)||[...this.pluginThemes.values()].includes(this.activeTheme)||[...this.fileThemes.values()].includes(this.activeTheme);if(e||r)return this.activeTheme;let n=this.findThemeByName(this.activeTheme.name);if(n)return this.activeTheme=n,this.activeTheme}return this.activeTheme=vC,this.activeTheme}getThemeType(){return this.getActiveTheme().type}getThemeName(){return this.getActiveTheme().name}getColors(){let e=this.getActiveTheme(),r=`${e.name}:${this.terminalBackground}`;if(this.cachedColors&&this.lastCacheKey===r)return this.cachedColors;let n=e.colors;return this.terminalBackground&&this.isThemeCompatible(e,this.terminalBackground)?this.cachedColors={...n,Background:this.terminalBackground,DarkGray:ys(this.terminalBackground,n.Gray,Rmt),InputBackground:ys(this.terminalBackground,n.Gray,TZ),MessageBackground:ys(this.terminalBackground,n.Gray,mIi),FocusBackground:ys(this.terminalBackground,e.colors.FocusColor??e.colors.AccentGreen,CG)}:this.cachedColors=n,this.lastCacheKey=r,this.cachedColors}getSemanticColors(){let e=this.getActiveTheme(),r=`${e.name}:${this.terminalBackground}`;if(this.cachedSemanticColors&&this.lastCacheKey===r)return this.cachedSemanticColors;let n=e.semanticColors;if(this.terminalBackground&&this.isThemeCompatible(e,this.terminalBackground)){let o=this.getColors();this.cachedSemanticColors={...n,background:{...n.background,primary:this.terminalBackground,message:o.MessageBackground,input:o.InputBackground,focus:o.FocusBackground},border:{...n.border,default:o.DarkGray},ui:{...n.ui,dark:o.DarkGray,focus:o.FocusColor??o.AccentGreen}}}else this.cachedSemanticColors=n;return this.lastCacheKey=r,this.cachedSemanticColors}isThemeCompatible(e,r){if(e.type==="ansi")return!0;let n=p5(r);return n?(e.type==="custom"?p5(Sb(e.colors.Background)||e.colors.Background):e.type)===n:!0}_getAllCustomThemes(){return[...Array.from(this.settingsThemes.values()),...Array.from(this.pluginThemes.values()),...Array.from(this.fileThemes.values())]}getCustomThemeNames(){return this._getAllCustomThemes().map(e=>e.name)}isCustomTheme(e){return this.settingsThemes.has(e)||this.pluginThemes.has(e)||this.fileThemes.has(e)}getAvailableThemes(){let e=this.availableThemes.map(s=>({name:s.name,type:s.type,isCustom:!1})),r=this._getAllCustomThemes().map(s=>({name:s.name,type:s.type,isCustom:!0}));return[...e,...r].sort((s,a)=>{let l=p=>{switch(p){case"dark":return 1;case"light":return 2;case"ansi":return 3;case"custom":return 4;default:return 5}},c=l(s.type)-l(a.type);if(c!==0)return c;let u=s.name==="Default"||s.name==="Default Light",d=a.name==="Default"||a.name==="Default Light";return u&&!d?-1:!u&&d?1:s.name.localeCompare(a.name)})}getTheme(e){return this.findThemeByName(e)}getAllThemes(){return[...this.availableThemes,...this._getAllCustomThemes()]}isPath(e){return e.endsWith(".json")||e.startsWith(".")||AFe.isAbsolute(e)}loadThemeFromFile(e){try{let r=this.fs.realpathSync(AFe.resolve(e));if(this.fileThemes.has(r))return this.fileThemes.get(r);let n=AFe.resolve(this.homedir());if(!r.startsWith(n)){T.warn(`Theme file at "${e}" is outside your home directory. Only load themes from trusted sources.`);return}let o=this.fs.readFileSync(r,"utf-8"),s=JSON.parse(o),a=Pmt(s);if(!a.isValid){T.warn(`Invalid custom theme from file "${e}": ${a.error}`);return}a.warning&&T.warn(`Theme from "${e}": ${a.warning}`);let l={...vC.colors,...s,name:s.name||r,type:"custom"},c=Omt(l);return this.fileThemes.set(r,c),c}catch(r){r instanceof Error&&"code"in r&&r.code==="ENOENT"||T.warn(`Could not load theme from file "${e}":`,r);return}}findThemeByName(e){if(!e)return vC;let r=this.availableThemes.find(n=>n.name===e);if(r)return r;if(this.isPath(e))return this.loadThemeFromFile(e);if(this.settingsThemes.has(e))return this.settingsThemes.get(e);if(this.pluginThemes.has(e))return this.pluginThemes.get(e);if(this.fileThemes.has(e))return this.fileThemes.get(e)}},ro=new vMr});function Wji(){return ro.getThemeType()}function Yji(){return ro.getThemeName()}function MEe(t){let[e,r]=t.split("."),n=L[e];return n&&typeof n=="object"&&r in n?n[r]??"":""}var L,Ft=b(()=>{"use strict";E2();L={get text(){return ro.getSemanticColors().text},get background(){return ro.getSemanticColors().background},get border(){return ro.getSemanticColors().border},get ui(){return ro.getSemanticColors().ui},get status(){return ro.getSemanticColors().status},get agent(){return ro.getSemanticColors().agent}}});var zji=w((yVu,Ypl)=>{Ypl.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Xji=w((_Vu,Jji)=>{"use strict";var I0t=Object.assign({},zji()),Kji=Object.keys(I0t);Object.defineProperty(I0t,"random",{get(){let t=Math.floor(Math.random()*Kji.length),e=Kji[t];return I0t[e]}});Jji.exports=I0t});function zpl({type:t="dots"}){let[e,r]=(0,OEe.useState)(0),n=Zji.default[t];return(0,OEe.useEffect)(()=>{let o=setInterval(()=>{r(s=>s===n.frames.length-1?0:s+1)},n.interval);return()=>{clearInterval(o)}},[n]),OEe.default.createElement(B,null,n.frames[e])}var OEe,Zji,S1,fFe=b(async()=>{OEe=V(et(),1);await ft();Zji=V(Xji(),1);S1=zpl});var y9,b0t=b(()=>{"use strict";y9={debugNumAnimatedComponents:0}});function Kpl(t){if(t==null||Array.isArray(t))return"object";let e=typeof t;return e==="string"||e==="boolean"||e==="number"?e:"object"}function Jpl(t,e){let r=t;for(let n of e.split(".")){if(r===null||typeof r!="object")return;r=r[n]}return r}function Xpl(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null||Array.isArray(t)!==Array.isArray(e))return!1;let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o of r)if(t[o]!==e[o])return!1;return!0}var y2,PEe,_s,_9,iu=b(()=>{"use strict";y2=V(et(),1);Ue();Qo();PEe=y2.default.createContext(void 0),_s=()=>{let t=(0,y2.useContext)(PEe);if(t===void 0)throw new Error("useSettings must be used within a SettingsProvider");return t},_9=()=>{let t=(0,y2.useContext)(PEe);if(t===void 0)throw new Error("useSettingsStore must be used within a SettingsProvider");let e=(0,y2.useSyncExternalStore)(n=>t.subscribe(n),()=>t.getSnapshot()),r=(0,y2.useMemo)(()=>({...e,forScope:n=>{switch(n){case"User":return e.user;case"Workspace":return e.workspace;case"WorkspaceLocal":return e.local;default:{let o=n;throw new Error(`Unexpected scope: ${o}`)}}}}),[e]);return(0,y2.useMemo)(()=>({settings:r,setSetting:(n,o,s)=>{let a=Jpl(e.merged,o);!Xpl(a,s)&&(jn($n.CONFIG_CHANGED,{key_path:o,changed_via:"slash_settings",value_type:Kpl(s)}),o==="general.vimMode"&&typeof s=="boolean"&&jn($n.MODE_TOGGLED,{mode:"vim",enabled:s})),t.setValue(n,o,s)}}),[r,t,e.merged])}});var eHi,tHi,cf,I1=b(async()=>{"use strict";await fFe();eHi=V(et(),1);b0t();iu();tHi=V(Te(),1);cf=t=>{let r=_s().merged.ui?.showSpinner!==!1;return(0,eHi.useEffect)(()=>{if(r)return y9.debugNumAnimatedComponents++,()=>{y9.debugNumAnimatedComponents--}},[r]),r?(0,tHi.jsx)(S1,{...t}):null}});function QEe(t){return t===Zn||t===Hi}function v0t(t){return t?.type===Zn?"Answer Questions":t?.type===Hi?"Ready to start implementation?":"Permission Required"}function rHi(t,e){return t===GM&&Zpl.has(e)}var Zpl,gFe=b(()=>{"use strict";Ue();ei();Zpl=new Set(["Success","Error","Canceled"])});function s3(t){return t===wmt||t===pIi||t===Ln}var nHi,SA,LEe,fte,wMr,iHi,oHi,C9=b(async()=>{"use strict";nHi=V(et(),1);await ft();ei();await I1();wd();Ft();Ue();gFe();SA=V(Te(),1);LEe=3;fte=({status:t,name:e,isFocused:r})=>{let n=qG(t),o=s3(e),s=r?L.ui.focus:o?L.ui.active:L.status.warning;return(0,SA.jsxs)(Q,{minWidth:LEe,children:[n==="Pending"&&(0,SA.jsx)(B,{color:L.status.success,children:UQ.PENDING}),n==="Executing"&&(0,SA.jsx)(B,{color:s,children:(0,SA.jsx)(cf,{type:"toggle"})}),n==="Success"&&(0,SA.jsx)(B,{color:L.status.success,"aria-label":"Success:",children:UQ.SUCCESS}),n==="Confirming"&&(0,SA.jsx)(B,{color:s,"aria-label":"Confirming:",children:UQ.CONFIRMING}),n==="Canceled"&&(0,SA.jsx)(B,{color:s,"aria-label":"Canceled:",bold:!0,children:UQ.CANCELED}),n==="Error"&&(0,SA.jsx)(B,{color:L.status.error,"aria-label":"Error:",bold:!0,children:UQ.ERROR})]})},wMr=({name:t,description:e,status:r,emphasis:n,progressMessage:o,originalRequestName:s})=>{let a=qG(r),l=nHi.default.useMemo(()=>{switch(n){case"high":return L.text.primary;case"medium":return L.text.primary;case"low":return L.text.secondary;default:return n}},[n]),c=rHi(t,a);return(0,SA.jsx)(Q,{overflow:"hidden",height:1,flexGrow:1,flexShrink:1,children:(0,SA.jsxs)(B,{strikethrough:a==="Canceled",wrap:"truncate",children:[(0,SA.jsx)(B,{color:l,bold:!0,children:t}),s&&s!==t&&(0,SA.jsxs)(B,{color:L.text.secondary,italic:!0,children:[" ","(redirection from ",s,")"]}),!c&&(0,SA.jsxs)(SA.Fragment,{children:[" ",(0,SA.jsx)(B,{color:L.text.secondary,children:e})]})]})})},iHi=({progress:t,total:e,message:r,barWidth:n})=>{let o=e&&e>0?Math.min(100,Math.round(t/e*100)):null,s;e&&e>0?s=Math.round(t/e*n):s=Math.floor(t)%(n+1);let a=Math.max(0,Math.min(Number.isFinite(s)?s:0,n)),l=Math.max(0,n-a),c="\u2588".repeat(a)+"\u2591".repeat(l);return(0,SA.jsxs)(Q,{flexDirection:"column",children:[(0,SA.jsx)(Q,{children:(0,SA.jsxs)(B,{color:L.text.accent,children:[c," ",o!==null?`${o}%`:`${t}`]})}),r&&(0,SA.jsx)(B,{color:L.text.secondary,wrap:"truncate",children:r})]})},oHi=()=>(0,SA.jsxs)(B,{color:L.text.primary,wrap:"truncate",children:[" ","\u2190"]})});function Mi(t){return(kEe()?eAl:tAl)[t]}function sHi(t){return"request"in t}function mFe(t,e,r=[],n=new Map){if(t.type!=="tool_group")return{borderColor:"",borderDimColor:!1};let o=t.tools.length>0?t.tools:r.filter(A=>A!=null&&A.type==="tool_group"&&A.tools.length>0).slice(-1).flatMap(A=>A.tools),s=o.some(A=>sHi(A)?A.status!=="success"&&A.status!=="error"&&A.status!=="cancelled":A.status!=="success"&&A.status!=="error"&&A.status!=="cancelled"),a=o.some(A=>sHi(A)?s3(A.request.name):s3(A.name)),l=!!e&&!n.has(e),c=a||t.tools.length===0&&l,u=s||t.tools.length===0&&l;return{borderColor:c&&u?L.ui.active:u?L.status.warning:L.border.default,borderDimColor:u}}var eAl,tAl,kd=b(async()=>{"use strict";Ue();await C9();Ft();h2();eAl={dialog:"round",panel:"single",emphasis:"double",focused:"bold",tool:"round",input:"round"},tAl={dialog:"classic",panel:"single",emphasis:"double",focused:"classic",tool:"classic",input:"classic"}});function S9(){return(0,xB.useContext)(aHi)}function ui(t,e,r=!0){let n=S9(),o=(0,xB.useRef)(e);o.current=e;let s=(0,xB.useRef)(null);(0,xB.useEffect)(()=>{if(!n||!r)return;let a=l=>o.current(l);return s.current=a,n.registerFallback(t,a),()=>{n.unregisterFallback(t,a),s.current=null}},[n,t,r])}function Wr(t,e,r=!0,n){let o=S9(),s=(0,xB.useRef)(e);s.current=e;let a=Object.keys(e).sort().join(","),l=n?.prepend??!1;(0,xB.useEffect)(()=>{if(!o||!r)return;let c=s.current,d=Object.keys(c).map(p=>[p,A=>s.current[p]?.(A)]);for(let[p,A]of d)o.registerHandler(t,p,A,{prepend:l});return()=>{for(let[p,A]of d)o.unregisterHandler(t,p,A)}},[o,t,r,a,l])}var xB,cHi,xMr,aHi,lHi,zo=b(()=>{"use strict";xB=V(et(),1),cHi=V(Te(),1);xMr=class{_handlers=new Map;_fallbacks=new Map;registerHandler(e,r,n,o){let s=this._handlers.get(e);s||(s=new Map,this._handlers.set(e,s));let a=s.get(r);a||(a=[],s.set(r,a)),o?.prepend?a.unshift(n):a.push(n)}unregisterHandler(e,r,n){let o=this._handlers.get(e);if(o){if(!n)o.delete(r);else{let s=o.get(r);if(s){let a=s.indexOf(n);a!==-1&&s.splice(a,1),s.length===0&&o.delete(r)}}o.size===0&&this._handlers.delete(e)}}registerFallback(e,r){let n=this._fallbacks.get(e);n||(n=[],this._fallbacks.set(e,n)),n.push(r)}unregisterFallback(e,r){if(!r){this._fallbacks.delete(e);return}let n=this._fallbacks.get(e);if(n){let o=n.indexOf(r);o!==-1&&n.splice(o,1),n.length===0&&this._fallbacks.delete(e)}}invokeAction(e,r,n){let o=this._handlers.get(e);if(o){let s=o.get(r);if(s){for(let a of s)if(a(n)===!0)return!0}}return!1}invokeFallback(e,r){let n=this._fallbacks.get(e);if(n){for(let o of n)if(o(r)===!0)return!0}return!1}hasHandler(e,r){let n=this._handlers.get(e)?.get(r);return n!=null&&n.length>0}hasFallback(e){let r=this._fallbacks.get(e);return r!=null&&r.length>0}getActionsForContext(e){let r=this._handlers.get(e);return r?Array.from(r.keys()):[]}clear(){this._handlers.clear(),this._fallbacks.clear()}},aHi=(0,xB.createContext)(null),lHi=({children:t,registry:e})=>{let r=(0,xB.useRef)(e??new xMr),n=e??r.current;return(0,cHi.jsx)(aHi.Provider,{value:n,children:t})}});function UEe(){return(0,RB.useContext)(uHi)}function uf(t,e){let r=UEe();(0,RB.useEffect)(()=>{if(r){if(e)return r.registerContext(t),()=>{r.unregisterContext(t)};r.unregisterContext(t)}},[r,t,e])}function w0t(){let t=UEe(),[,e]=(0,RB.useState)(0),r=(0,RB.useRef)(new Set);return(0,RB.useEffect)(()=>{if(t)return t.subscribe(()=>{e(n=>n+1)})},[t]),t?t.getActiveContexts():r.current}var RB,pHi,FEe,_2,RMr,uHi,dHi,_E=b(()=>{"use strict";RB=V(et(),1),pHi=V(Te(),1);FEe=["Global","Chat","Shell","BackgroundTask","Autocomplete","HistorySearch","CommandSearch","VimNormal","Dialog","Fullscreen","CopyMode","Select","Tabs","Confirmation","Notification"],_2=Object.fromEntries(FEe.map((t,e)=>[t,e])),RMr=class{_refCounts=new Map;_listeners=new Set;registerContext(e){let r=this._refCounts.get(e)??0;this._refCounts.set(e,r+1),r===0&&this._notify()}unregisterContext(e){let r=this._refCounts.get(e)??0;r<=1?(this._refCounts.delete(e),r===1&&this._notify()):this._refCounts.set(e,r-1)}getActiveContexts(){return new Set(this._refCounts.keys())}isActive(e){return(this._refCounts.get(e)??0)>0}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_notify(){for(let e of this._listeners)e()}},uHi=(0,RB.createContext)(null),dHi=({children:t,registry:e})=>{let r=(0,RB.useRef)(e??new RMr),n=e??r.current;return(0,pHi.jsx)(uHi.Provider,{value:n,children:t})}});function AHi({children:t}){let e=(0,eh.useRef)(new Map),r=(0,eh.useRef)(new Set),n=(0,eh.useRef)([]),o=(0,eh.useCallback)(()=>{let u=[];for(let d of e.current.values())u.push(...d);n.current=u.sort((d,p)=>d.order-p.order);for(let d of r.current)d()},[]),s=(0,eh.useCallback)((u,d)=>(e.current.set(u,d),o(),()=>{e.current.delete(u),o()}),[o]),a=(0,eh.useCallback)(u=>(r.current.add(u),()=>{r.current.delete(u)}),[]),l=(0,eh.useCallback)(()=>n.current,[]),c=(0,eh.useRef)({register:s,subscribe:a,getSnapshot:l});return(0,gHi.jsx)(BMr.Provider,{value:c.current,children:t})}function GEe(t,e){let r=(0,eh.useContext)(BMr),n=JSON.stringify(e);eh.default.useEffect(()=>r?r.register(t,e):void 0,[r,t,n])}function fHi(){let t=(0,eh.useContext)(BMr);return(0,eh.useSyncExternalStore)(t?.subscribe??(()=>()=>{}),t?.getSnapshot??(()=>[]))}var eh,gHi,BMr,hFe=b(()=>{"use strict";eh=V(et(),1),gHi=V(Te(),1);BMr=(0,eh.createContext)(null)});import*as kMr from"node:fs";function I9(){try{if(process.stdout?.fd!==void 0){kMr.writeSync(process.stdout.fd,rAl);return}}catch(t){T.warn("Failed to synchronously cleanup terminal modes:",t)}MSr(),PSr(),LSr(),sB()}var rAl,gte,ig,b1=b(()=>{"use strict";Ue();lf();rAl="\x1B[<u\x1B[>4;0m\x1B[?2004l\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l";gte=class t{static instance;static KITTY_QUERY="\x1B[?u";static OSC_11_QUERY="\x1B]11;?\x1B\\";static TERMINAL_NAME_QUERY="\x1B[>q";static DEVICE_ATTRIBUTES_QUERY="\x1B[c";static MODIFY_OTHER_KEYS_QUERY="\x1B[>4;?m";static HIDDEN_MODE="\x1B[8m";static CLEAR_LINE_AND_RETURN="\x1B[2K\r";static RESET_ATTRIBUTES="\x1B[0m";static queryBackgroundColor(e){e.write(t.OSC_11_QUERY)}static KITTY_REGEX=/\x1b\[\?(\d+)u/;static TERMINAL_NAME_REGEX=/\x1bP>\|(.+?)(\x1b\\|\x07)/;static DEVICE_ATTRIBUTES_REGEX=/\x1b\[\?(\d+)(;\d+)*c/;static OSC_11_REGEX=/\x1b\]11;rgb:([0-9a-fA-F]{1,4})\/([0-9a-fA-F]{1,4})\/([0-9a-fA-F]{1,4})(\x1b\\|\x07)/;static MODIFY_OTHER_KEYS_REGEX=/\x1b\[>4;(\d+)m/;static ANSI_BG_COLORS={0:"#000000",1:"#800000",2:"#008000",3:"#808000",4:"#000080",5:"#800080",6:"#008080",7:"#c0c0c0",8:"#808080",9:"#ff0000",10:"#00ff00",11:"#ffff00",12:"#0000ff",13:"#ff00ff",14:"#00ffff",15:"#ffffff"};detectionComplete=!1;terminalBackgroundColor;kittySupported=!1;kittyEnabled=!1;modifyOtherKeysSupported=!1;terminalName;constructor(){this.terminalBackgroundColor=t.detectFromColorFgBg(),this.terminalBackgroundColor&&T.log(`Seeded terminal background from $COLORFGBG: ${this.terminalBackgroundColor}`)}static detectFromColorFgBg(){let e=process.env.COLORFGBG;if(!e)return;let r=e.split(";"),n=r[r.length-1];if(n===void 0||n==="")return;let o=Number(n);if(!(!Number.isInteger(o)||o<0||o>15))return t.ANSI_BG_COLORS[o]}static getInstance(){return this.instance||(this.instance=new t),this.instance}static resetInstanceForTesting(){this.instance=void 0}async detectCapabilities(){if(!this.detectionComplete){if(!process.stdin.isTTY||!process.stdout.isTTY){this.detectionComplete=!0;return}return process.off("exit",I9),process.off("SIGTERM",I9),process.off("SIGINT",I9),process.on("exit",I9),process.on("SIGTERM",I9),process.on("SIGINT",I9),new Promise(e=>{let r=process.stdin.isRaw;r||process.stdin.setRawMode(!0);let n="",o=!1,s=!1,a=!1,l=!1,c=!1,u,d=()=>{u&&clearTimeout(u),process.stdin.removeListener("data",p),r||process.stdin.setRawMode(!1),this.detectionComplete=!0,e()};u=setTimeout(d,1e3);let p=A=>{if(n+=A.toString(),!l){let f=n.match(t.OSC_11_REGEX);f&&(l=!0,this.terminalBackgroundColor=S0t(f[1],f[2],f[3]),T.log(`Detected terminal background color: ${this.terminalBackgroundColor}`))}if(!o&&t.KITTY_REGEX.test(n)&&(o=!0,this.kittySupported=!0),!c){let f=n.match(t.MODIFY_OTHER_KEYS_REGEX);if(f){c=!0;let g=parseInt(f[1],10);this.modifyOtherKeysSupported=g>=2,T.log(`Detected modifyOtherKeys support: ${this.modifyOtherKeysSupported} (level ${g})`)}}if(!s){let f=n.match(t.TERMINAL_NAME_REGEX);f&&(s=!0,this.terminalName=f[1],T.log(`Detected terminal name: ${this.terminalName}`))}a||n.match(t.DEVICE_ATTRIBUTES_REGEX)&&(a=!0,d())};process.stdin.on("data",p);try{kMr.writeSync(process.stdout.fd,t.HIDDEN_MODE+t.KITTY_QUERY+t.OSC_11_QUERY+t.TERMINAL_NAME_QUERY+t.MODIFY_OTHER_KEYS_QUERY+t.DEVICE_ATTRIBUTES_QUERY+t.CLEAR_LINE_AND_RETURN+t.RESET_ATTRIBUTES)}catch(A){T.warn("Failed to write terminal capability queries:",A),d()}})}}enableSupportedModes(){try{this.kittySupported?(T.log("Enabling Kitty keyboard protocol"),NSr(),this.kittyEnabled=!0):this.modifyOtherKeysSupported&&(T.log("Enabling modifyOtherKeys"),OSr()),QSr()}catch(e){T.warn("Failed to enable keyboard protocols:",e)}}getTerminalBackgroundColor(){return this.terminalBackgroundColor}getTerminalName(){return this.terminalName}isKittyProtocolEnabled(){return this.kittyEnabled}canDistinguishModifiedEnter(){return this.kittyEnabled||this.modifyOtherKeysSupported}isGhosttyTerminal(e=process.env){let r=e.TERM_PROGRAM?.toLowerCase(),n=e.TERM?.toLowerCase();return!!(this.getTerminalName()?.toLowerCase()?.includes("ghostty")||r?.includes("ghostty")||n?.includes("ghostty"))}supportsOsc9Notifications(e=process.env){return e.WT_SESSION?!1:this.hasOsc9TerminalSignature(this.getTerminalName())||this.hasOsc9TerminalSignature(e.TERM_PROGRAM)||this.hasOsc9TerminalSignature(e.TERM)}hasOsc9TerminalSignature(e){if(!e)return!1;let r=e.toLowerCase();return r.includes("wezterm")||r.includes("ghostty")||r.includes("iterm")||r.includes("kitty")}},ig=gte.getInstance()});function C2(...t){return t.map(e=>ct[e]).join(" \xB7 ")}function mHi(){let t=process.platform==="darwin";return ig.canDistinguishModifiedEnter()?t?"Shift+\u23CE for newline":"Shift+Enter for newline":t&&aFe()?"Shift+\u23CE or Ctrl+J for newline":t?"Ctrl+J or \\\u23CE for newline":"Ctrl+J or \\+Enter for newline"}var ct,ki=b(()=>{"use strict";h2();b1();ct={TAB_SWITCH:"Tab/\u2190\u2192 switch",TAB_ONLY_SWITCH:"Tab switch",ARROW_SWITCH:"\u2190\u2192 switch",ARROW_CYCLE:"\u2190\u2192 cycle",TAB_SWITCH_FOCUS:"Tab switch focus",TAB_SWITCH_MODE:"Tab switch mode",NAVIGATE:"\u2191\u2193 navigate",SCROLL:"\u2191\u2193 scroll",SELECT:"Enter select",CONFIRM:"Enter confirm",SUBMIT:"Enter submit",ENTER_CLOSE:"Enter close",ENTER_OPEN:"Enter open in browser",ENTER_DETAILS:"Enter details",ENTER_VIEW_DIFF:"Enter view diff",ENTER_EDIT:"Enter edit",ENTER_OUTPUT:"Enter output",ENTER_TOGGLE:"Enter toggle",ENTER_CHOOSE:"Enter choose",ENTER_SAVE:"Enter save",ENTER_FILES_AND_CONVERSATION:"Enter files and conversation",ENTER_NEXT_CONFIRM:"Enter next/confirm",CANCEL:"Esc cancel",CLOSE:"Esc close",GO_BACK:"Esc back",ESC_CANCEL_SEARCH:"Esc cancel search",TOGGLE:"c toggle",DELETE:"d delete",X_DELETE:"x delete",SEARCH:"/ search",RESET:"Ctrl+L reset",BACKSPACE_RESET:"Backspace reset",Y_CONFIRM:"Y confirm",N_CANCEL:"N cancel",N_ESC_CANCEL:"n / Esc cancel",SPACE_TOGGLE:"\u2423 toggle",R_RESTART:"r restart",A_TOGGLE_AUTO_MEMORY:"a toggle auto-memory",ARROW_REORDER:"\u2190/\u2192 reorder",S_SORT_R_REVERSE:"s sort \xB7 r reverse",G_FIRST_LAST:"g/G first/last",U_D_HALF_PAGE:"u/d half-page",SPACE_TOGGLE_MCP:"Space toggle",QUICK_SELECT:"1-9 quick select",C_CONVERSATION_ONLY:"c conversation only",F_FILES_ONLY:"f files only",K_KILL:"k kill",ENTER_DELETE_ITEM:"Enter delete",ENTER_AUTHENTICATE:"Enter authenticate",ENTER_VIEW_TOOLS:"Enter view tools",ENTER_INSTALL:"Enter install",ENTER_VERIFY:"Enter verify",ENTER_RUN:"Enter run",TAB_TOGGLE:"Tab toggle",TAB_FOCUS:"Tab focus",CTRL_S_COPY_MODE:"Ctrl+S copy mode",SHIFT_TAB_UNFOCUS:"Shift+Tab to unfocus",CTRL_O_EXPAND:"Ctrl+O expand/collapse",CTRL_O_KEY:"Ctrl+O",CTRL_C_EXIT:"Ctrl+C exit",CTRL_D_EXIT:"Ctrl+D exit",PAGE_UP_DOWN_SCROLL:"PgUp/PgDn scroll",R_EXIT_APPLY:"r exit and apply",TAB_TWICE_MORE:"press tab twice for more",QUESTION_SHORTCUTS:"? for shortcuts",ESC_NORMAL_MODE:"Esc for NORMAL mode",I_INSERT_MODE:"i for INSERT mode",CTRL_S_SELECTION:"Ctrl-S to enter selection mode to copy text",CTRL_B_VIEW:"Ctrl+B to view"}});var hHi,$Ee,x0t=b(async()=>{"use strict";await ft();Ft();await kd();hHi=V(Te(),1);$Ee=({color:t=L.border.default,dim:e=!1})=>(0,hHi.jsx)(Q,{width:"100%",borderStyle:Mi("panel"),borderTop:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderColor:t,borderDimColor:e})});function Lt({title:t,tabs:e=[],activeKey:r="",onTabChange:n=()=>{},children:o,footer:s,isActive:a=!0,showSeparator:l=!0,showContent:c=!0,equalizeTabHeight:u=!1,tabPanels:d,onClose:p,titleSeparator:A,orderedTabs:f,extraHints:g,borderColor:m}){return(0,ou.jsx)(AHi,{children:(0,ou.jsx)(oAl,{title:t,tabs:e,activeKey:r,onTabChange:n,footer:s,isActive:a,showSeparator:l,showContent:c,equalizeTabHeight:u,tabPanels:d,onClose:p,titleSeparator:A,orderedTabs:f,extraHints:g,borderColor:m,children:o})})}function nAl(t,e){switch(e.type){case"NEXT_TAB":{let{tabCount:r,currentIndex:n}=t;if(r===0)return t;let o=(n+1)%r;return o===n?t:{...t,currentIndex:o,pendingTabChange:!0}}case"PREV_TAB":{let{tabCount:r,currentIndex:n}=t;if(r===0)return t;let o=(n-1+r)%r;return o===n?t:{...t,currentIndex:o,pendingTabChange:!0}}case"INITIALIZE":{let{tabCount:r,initialIndex:n}=e.payload,o=Math.max(0,Math.min(n,r-1));return{...t,tabCount:r,currentIndex:r>0?o:0,pendingTabChange:!1}}case"CLEAR_PENDING":return{...t,pendingTabChange:!1};default:return t}}function iAl({tabs:t,onClose:e,tabNavActions:r,isActive:n}){uf("Dialog",n);let o=(0,gp.useMemo)(()=>{let a={};return e&&(a["dialog:escape"]=()=>(e(),!0)),t.length>1&&(a["dialog:tab:next"]=()=>(r.goToNextTab(),!0),a["dialog:tab:previous"]=()=>(r.goToPrevTab(),!0),a["dialog:navigate:left"]=()=>(r.goToPrevTab(),!0),a["dialog:navigate:right"]=()=>(r.goToNextTab(),!0)),a},[e,t.length,r]);return Wr("Dialog",o,n),{tabNavHints:(0,gp.useMemo)(()=>{let a=[];return e&&a.push({label:ct.GO_BACK,order:100}),t.length>1&&a.push({label:ct.TAB_SWITCH,order:10}),a},[e,t.length])}}function oAl({title:t,tabs:e=[],activeKey:r="",onTabChange:n=()=>{},children:o,footer:s,isActive:a=!0,showSeparator:l=!0,showContent:c=!0,equalizeTabHeight:u=!1,tabPanels:d,onClose:p,titleSeparator:A="\xB7",orderedTabs:f=!1,extraHints:g,borderColor:m}){let[h,E]=(0,gp.useState)({}),[y,_]=(0,gp.useState)(!1),S=Object.values(h).length>0?Math.max(...Object.values(h)):void 0,v=(0,gp.useCallback)(ee=>{E(ee),_(!0)},[]),x=u&&d!=null&&e.length>1,R=Math.max(0,e.findIndex(ee=>ee.key===r)),[M,D]=(0,gp.useReducer)(nAl,{currentIndex:Math.max(0,Math.min(R,e.length-1)),tabCount:e.length,pendingTabChange:!1}),P=(0,gp.useRef)(e.length),O=(0,gp.useRef)(R);(0,gp.useEffect)(()=>{(P.current!==e.length||O.current!==R)&&(D({type:"INITIALIZE",payload:{tabCount:e.length,initialIndex:R}}),P.current=e.length,O.current=R)},[e.length,R]),(0,gp.useEffect)(()=>{if(M.pendingTabChange){let ee=e[M.currentIndex];ee&&n(ee.key),D({type:"CLEAR_PENDING"})}},[M.pendingTabChange,M.currentIndex,e,n]);let z=(0,gp.useCallback)(()=>{D({type:"NEXT_TAB"})},[]),j=(0,gp.useCallback)(()=>{D({type:"PREV_TAB"})},[]),k=(0,gp.useMemo)(()=>({goToNextTab:z,goToPrevTab:j}),[z,j]),{tabNavHints:F}=iAl({tabs:e,onClose:p,tabNavActions:k,isActive:a}),q=fHi(),Y=(0,gp.useMemo)(()=>{if(s)return s;let ee=[...F,...q,...g??[]].sort((he,X)=>he.order-X.order);if(ee.length===0)return;let ge=new Set,_e=[];for(let he of ee)ge.has(he.label)||(ge.add(he.label),_e.push(he));return _e.map(he=>he.label).join(" \xB7 ")},[s,F,q,g]),W=(0,ou.jsxs)(Q,{flexDirection:"column",children:[(0,ou.jsxs)(Q,{flexDirection:"row",gap:1,children:[t&&e.length>0&&(0,ou.jsxs)(ou.Fragment,{children:[(0,ou.jsx)(B,{color:L.text.primary,bold:!0,children:` ${t}`}),(0,ou.jsx)(B,{color:L.text.secondary,children:A})]}),t&&e.length===0&&(0,ou.jsx)(B,{color:L.text.primary,bold:!0,children:` ${t}`}),e.map((ee,ge)=>{let _e=ee.key===r;return(0,ou.jsxs)(gp.Fragment,{children:[f&&ge>0&&(0,ou.jsx)(B,{color:L.text.secondary,children:">"}),_e?(0,ou.jsx)(Q,{children:(0,ou.jsx)(B,{color:L.ui.focus,bold:!0,backgroundColor:L.background.focus,children:` ${ee.label} `})}):(0,ou.jsx)(Q,{children:(0,ou.jsx)(B,{color:L.text.secondary,children:` ${ee.label} `})})]},ee.key)})]}),l&&(0,ou.jsx)($Ee,{}),c&&(0,ou.jsx)(Q,{flexDirection:"column",paddingLeft:1,paddingRight:1,...x&&y&&S!==void 0?{height:S}:{},children:x?(0,ou.jsx)(sAl,{tabs:e,activeKey:r,tabPanels:d,measured:y,reportHeights:v}):o}),Y&&(0,ou.jsx)(Q,{marginTop:1,marginLeft:1,children:(0,ou.jsx)(B,{color:L.text.secondary,dimColor:!0,italic:!0,children:Y})})]});return m?(0,ou.jsx)(Q,{flexDirection:"column",width:"100%",children:(0,ou.jsx)(Q,{flexDirection:"column",borderStyle:Mi("dialog"),borderColor:m,padding:1,marginLeft:1,marginRight:1,children:W})}):(0,ou.jsx)(Q,{flexDirection:"column",width:"100%",children:W})}function sAl({tabs:t,activeKey:e,tabPanels:r,measured:n,reportHeights:o}){let s=(0,gp.useRef)({});return(0,gp.useLayoutEffect)(()=>{if(n)return;let a={},l=!0;for(let c of t){let u=s.current[c.key];u?a[c.key]=Kee(u).height:l=!1}l&&o(a)},[n,t,r,o]),n?(0,ou.jsx)(Q,{flexDirection:"column",children:r[e]}):(0,ou.jsx)(Q,{flexDirection:"column",children:t.map(a=>(0,ou.jsx)(Q,{ref:l=>{s.current[a.key]=l},flexDirection:"column",children:r[a.key]},a.key))})}var gp,ou,qn=b(async()=>{"use strict";gp=V(et(),1);await ft();Ft();await kd();zo();_E();hFe();ki();await x0t();ou=V(Te(),1);});var R0t,B0t,k0t=b(()=>{"use strict";R0t="0e9d25a1",B0t="0.2.0"});function a3({label:t,value:e}){return(0,th.jsxs)(Q,{flexDirection:"row",children:[(0,th.jsx)(Q,{width:"20%",children:(0,th.jsx)(B,{bold:!0,color:L.text.secondary,children:t})}),(0,th.jsx)(Q,{children:(0,th.jsx)(B,{color:L.text.primary,children:e})})]})}var th,D0t,DMr=b(async()=>{"use strict";await ft();Ft();await qn();k0t();iu();Ue();th=V(Te(),1);D0t=({cliVersion:t,osVersion:e,sandboxEnv:r,modelVersion:n,selectedAuthType:o,gcpProject:s,ideClient:a,userEmail:l,tier:c,onClose:u})=>{let p=_s().merged.ui.showUserIdentity;return(0,th.jsxs)(Lt,{title:`About - ${Zr}`,tabs:[],activeKey:"",onTabChange:()=>{},onClose:u,children:[(0,th.jsx)(Q,{marginBottom:1,children:(0,th.jsx)(B,{color:L.text.secondary,children:dRt})}),(0,th.jsx)(a3,{label:"CLI Version",value:t}),R0t&&!["N/A"].includes(R0t)&&(0,th.jsx)(a3,{label:"Git Commit",value:R0t}),(0,th.jsx)(a3,{label:"Model",value:sy(n)}),(0,th.jsx)(a3,{label:"Sandbox",value:r}),(0,th.jsx)(a3,{label:"OS",value:e}),p&&(0,th.jsx)(a3,{label:"Auth Method",value:o.startsWith("oauth")?l?`Signed in with Google (${l})`:"Signed in with Google":o}),p&&c&&(0,th.jsx)(a3,{label:"Tier",value:c}),s&&(0,th.jsx)(a3,{label:"GCP Project",value:s}),a&&(0,th.jsx)(a3,{label:"IDE Client",value:a})]})}});import mte from"node:process";async function aAl(t){return t.services.agentContext?.config.getIdeMode()?(await Ly.getInstance())?.getDetectedIdeDisplayName()??"":""}var yHi,EHi,_Hi=b(async()=>{"use strict";ci();Ue();await DMr();yHi=V(Te(),1);EHi={name:"about",description:"Show version info",kind:"built-in",autoExecute:!0,isSafeConcurrent:!0,action:async t=>{let e=mte.platform,r="no sandbox";mte.env.SANDBOX&&mte.env.SANDBOX!=="sandbox-exec"?r=mte.env.SANDBOX:mte.env.SANDBOX==="sandbox-exec"&&(r=`sandbox-exec (${mte.env.SEATBELT_PROFILE||"unknown"})`);let n=t.services.agentContext?.config.getModel()||"Unknown",o=await mo(),s=t.services.settings.merged.security.auth.selectedType||"",a=mte.env.GOOGLE_CLOUD_PROJECT||"",l=await aAl(t),u=new LT().getCachedGoogleAccount();T.log("AboutCommand: Retrieved cached Google account",{cachedAccount:u});let d=u??void 0,p=t.services.agentContext?.config.getUserTierName();return{type:"custom_dialog",component:(0,yHi.jsx)(D0t,{cliVersion:o,osVersion:e,sandboxEnv:r,modelVersion:n,selectedAuthType:s,gcpProject:a,ideClient:l,userEmail:d,tier:p,onClose:()=>t.ui.removeComponent()})}}}});var CHi,SHi,IHi=b(()=>{"use strict";ei();ci();i9();CHi={name:"reload",altNames:["refresh"],description:"Reload agents from disk and refresh tools & system prompt",kind:"built-in",autoExecute:!0,action:async t=>{let e=t.services.agentContext?.config;if(!e){t.ui.addItem({type:"error",text:"Agent context is not available."});return}t.ui.addItem({type:"info",text:"Reloading agents..."},Date.now());try{let r=e.getAgentRegistry();await r.reload();let n=r.getAllDiscoveredAgentNames();t.ui.addItem({type:"info",text:`Agents reloaded successfully. ${n.length} agent(s) discovered.`},Date.now())}catch(r){t.ui.addItem({type:"error",text:`Failed to reload agents: ${r instanceof Error?r.message:String(r)}`},Date.now())}}},SHi={name:"agents",description:"Manage agents",kind:"built-in",autoExecute:!1,subCommands:[CHi],action:async(t,e)=>{if(e){let r=Rb(`/${e}`,[CHi]);if(r.commandToExecute?.action)return r.commandToExecute.action(t,r.args)}return{type:"dialog",dialog:"agentBrowser"}}}});var bHi,THi,vHi=b(()=>{"use strict";ci();bHi={name:"login",altNames:["signin"],description:"Sign in or change the authentication method",kind:"built-in",autoExecute:!0,action:(t,e)=>({type:"dialog",dialog:"auth"})},THi={name:"logout",altNames:["signout"],description:"Sign out and clear all cached credentials",kind:"built-in",action:async(t,e)=>({type:"logout"})}});var wHi,lAl,cAl,xHi,RHi,BHi=b(()=>{"use strict";wHi="\x1B",lAl=`${wHi}[<`,cAl=`${wHi}[M`,xHi=/^\x1b\[<(\d+);(\d+);(\d+)([mM])/,RHi=/^\x1b\[M([\s\S]{3})/});function uAl(t,e){let r=(t&32)!==0;if(t===66)return"scroll-left";if(t===67)return"scroll-right";if((t&64)===64)return(t&1)===0?"scroll-up":"scroll-down";if(r)return"move";{let n=t&3,o=e?"release":"press";switch(n){case 0:return`left-${o}`;case 1:return`middle-${o}`;case 2:return`right-${o}`;default:return null}}}function kHi(t){switch(t&3){case 0:return"left";case 1:return"middle";case 2:return"right";default:return"none"}}function dAl(t){let e=t.match(xHi);if(e){let r=parseInt(e[1],10),n=parseInt(e[2],10),o=parseInt(e[3],10),a=e[4]==="m",l=(r&4)!==0,c=(r&8)!==0,u=(r&16)!==0,d=uAl(r,a);return d?{event:{name:d,ctrl:u,meta:c,shift:l,col:n,row:o,button:kHi(r)},length:e[0].length}:null}return null}function pAl(t){let e=t.match(RHi);if(!e)return null;let r=e[1].charCodeAt(0)-32,n=e[1].charCodeAt(1)-32,o=e[1].charCodeAt(2)-32,s=(r&4)!==0,a=(r&8)!==0,l=(r&16)!==0,c=(r&32)!==0,u=(r&64)!==0,d=null;if(u)switch(r&3){case 0:d="scroll-up";break;case 1:d="scroll-down";break;default:break}else if(c)d="move";else{let p=r&3;if(p===3)d="left-release";else switch(p){case 0:d="left-press";break;case 1:d="middle-press";break;case 2:d="right-press";break;default:break}}if(d){let p=kHi(r);return d==="left-release"&&p==="none"&&(p="left"),{event:{name:d,ctrl:l,meta:a,shift:s,col:n,row:o,button:p},length:e[0].length}}return null}function DHi(t){return dAl(t)||pAl(t)}var NMr=b(()=>{"use strict";Ue();BHi();});var b9,AAl,fAl,MMr,OMr,NHi,PMr=b(async()=>{"use strict";await ft();b9=V(et(),1);await EFe();AAl="\x1B[?1004h",fAl="\x1B[?1004l",MMr="\x1B[I",OMr="\x1B[O",NHi=()=>{let{stdin:t}=Ap(),{stdout:e}=rg(),[r,n]=(0,b9.useState)(!0),[o,s]=(0,b9.useState)(!1);(0,b9.useEffect)(()=>{let u=d=>{let p=d.toString(),A=p.lastIndexOf(MMr),f=p.lastIndexOf(OMr);A>f?(s(!0),n(!0)):f>A&&(s(!0),n(!1))};return e?.write(AAl),t?.on("data",u),()=>{e?.write(fAl),t?.removeListener("data",u)}},[t,e]);let{registerOnAnyKeypress:a,unregisterOnAnyKeypress:l}=jEe(),c=(0,b9.useCallback)(()=>{r||n(!0)},[r]);return(0,b9.useEffect)(()=>(a(c),()=>{l(c)}),[c,a,l]),{isFocused:r,hasReceivedFocusEvent:o}}});import{execFileSync as gAl}from"node:child_process";function hAl(){QMr||(QMr=!0,process.nextTick(()=>{N0t=null,QMr=!1}))}function EAl(){if(N0t!==null)return N0t;try{let t=gAl("/usr/bin/osascript",["-l","JavaScript","-e",'ObjC.import("CoreGraphics"); Number($.CGEventSourceFlagsState(0))'],{encoding:"utf-8",timeout:100,stdio:["pipe","pipe","pipe"]}).trim(),e=parseInt(t,10);return Number.isFinite(e)?(N0t=e,hAl(),e):null}catch(t){return T.debug("nativeModifierDetector: osascript query failed:",t),null}}function M0t(t){if(process.platform!=="darwin")return!1;let e=EAl();return e===null?!1:(e&mAl[t])!==0}var mAl,N0t,QMr,MHi=b(()=>{"use strict";Ue();mAl={shift:1<<17,ctrl:1<<18,alt:1<<19,cmd:1<<20},N0t=null,QMr=!1});function CAl(t,e){return t==="return"||e.return?"enter":e.upArrow?"up":e.downArrow?"down":e.leftArrow?"left":e.rightArrow?"right":e.pageUp?"pageup":e.pageDown?"pagedown":e.home?"home":e.end?"end":e.backspace?"backspace":e.delete?"delete":e.escape?"escape":e.tab?"tab":t}function SAl(t){return e=>{!DHi(e.sequence)&&e.sequence!==MMr&&e.sequence!==OMr&&t(e)}}function IAl(t){let e=0;return r=>{let n=Date.now();r.name==="enter"&&n-e<=_Al?t({...r,name:"enter",shift:!0,alt:!1,ctrl:!1,cmd:!1,sequence:"\r",insertable:!0}):t(r),e=r.insertable?n:0}}function bAl(t){return process.platform==="darwin"&&aFe()&&!ig.canDistinguishModifiedEnter()?r=>{if(r.name==="enter"&&!r.shift&&!r.alt&&!r.ctrl){if(M0t("shift")){t({...r,shift:!0,insertable:!0});return}if(M0t("alt")){t({...r,alt:!0,insertable:!1});return}if(M0t("ctrl")){t({...r,ctrl:!0,insertable:!1});return}}t(r)}:t}function vAl(t){if(!!!(process.env.SSH_TTY||process.env.SSH_CONNECTION||process.env.SSH_CLIENT)||ig.canDistinguishModifiedEnter())return t;let r=0;return n=>{if(n.name==="escape"&&(r=Date.now()),n.name==="enter"&&!n.shift&&!n.alt&&!n.ctrl&&Date.now()-r<=TAl){r=0,t({...n,alt:!0});return}t(n)}}function wAl(t){let e=function*(){for(;;){let r=yield;if(r==null)continue;if(r.sequence!=="\\"){t(r);continue}let n=setTimeout(()=>e.next(null),yAl),o=yield;clearTimeout(n),o===null?t(r):o.name==="enter"?t({...o,shift:!0,sequence:"\r"}):(t(r),t(o))}}();return e.next(),r=>{e.next(r)}}function jEe(){let t=(0,CE.useContext)(OHi);if(!t)throw new Error("useKeypressContext must be used within a KeypressProvider");return t}function PHi({children:t,config:e}){let{settings:r}=_9(),n=r.merged.general.debugKeystrokeLogging,{stdin:o,setRawMode:s}=Ap(),{internal_eventEmitter:a}=(0,CE.useContext)(ZG),l=(0,CE.useRef)(new Set).current,c=(0,CE.useCallback)(m=>{l.add(m)},[l]),u=(0,CE.useCallback)(m=>{l.delete(m)},[l]),d=(0,CE.useRef)(new Set).current,p=(0,CE.useCallback)(m=>{d.add(m)},[d]),A=(0,CE.useCallback)(m=>{d.delete(m)},[d]),f=(0,CE.useCallback)(m=>{for(let E of d)E();n&&T.log("[DEBUG] Keystroke:",JSON.stringify(m));let h=Array.from(l).reverse();for(let E of h)if(E(m)===!0)return},[l,d,n]);(0,CE.useEffect)(()=>{ig.enableSupportedModes(),s(!0);let m=SAl(f);m=bAl(m),m=vAl(m),ig.isKittyProtocolEnabled()||(m=IAl(m)),m=wAl(m);let h=E=>{let y=E.keypress;if(n&&T.log(`[DEBUG] CC Ink InputEvent: input=${JSON.stringify(E.input)} name=${y.name} ctrl=${y.ctrl} shift=${y.shift} meta=${y.meta} isPasted=${y.isPasted} seq=${JSON.stringify(y.sequence)}`),y.isPasted){y.sequence&&y.sequence.length>0&&m({name:"paste",shift:!1,alt:!1,ctrl:!1,cmd:!1,insertable:!0,sequence:y.sequence});return}let _=y.name||"",S=!y.ctrl&&!y.meta&&!y.option&&E.input.length>0&&!E.key.upArrow&&!E.key.downArrow&&!E.key.leftArrow&&!E.key.rightArrow&&!E.key.pageUp&&!E.key.pageDown&&!E.key.home&&!E.key.end&&!E.key.escape&&!E.key.tab&&!E.key.backspace&&!E.key.delete&&!E.key.return,v={name:CAl(_,E.key),shift:y.shift,alt:y.meta||y.option,ctrl:y.ctrl,cmd:y.super,insertable:S,sequence:y.sequence||""};v.sequence===`
|
|
4259
4260
|
`&&v.name==="enter"&&!v.ctrl&&!v.shift&&!v.alt&&(v={...v,name:"j",ctrl:!0,insertable:!1}),m(v)};return a.on("input",h),()=>{a.removeListener("input",h),s(!1)}},[o,s,e,n,f,a]);let g=(0,CE.useMemo)(()=>({subscribe:c,unsubscribe:u,registerOnAnyKeypress:p,unregisterOnAnyKeypress:A}),[c,u,p,A]);return(0,QHi.jsx)(OHi.Provider,{value:g,children:t})}var CE,QHi,yAl,_Al,TAl,OHi,EFe=b(async()=>{"use strict";Ue();await ft();CE=V(et(),1);NMr();await PMr();b1();h2();MHi();iu();QHi=V(Te(),1);yAl=5,_Al=30;TAl=50;OHi=(0,CE.createContext)(void 0)});function T9(t,{isActive:e}){let{subscribe:r,unsubscribe:n}=jEe();(0,LHi.useEffect)(()=>{if(e)return r(t),()=>{n(t)}},[e,t,r,n])}var LHi,S2=b(async()=>{"use strict";LHi=V(et(),1);await EFe();});import{stripVTControlCharacters as xAl}from"node:util";function FMr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function cs(t){if(FMr(t))return t.split("");if(t.length<=FHi){let r=UHi.get(t);if(r!==void 0)return r}let e=Array.from(t);return t.length<=FHi&&UHi.set(t,e),e}function Hr(t){return FMr(t)?t.length:cs(t).length}function HEe(t,e){return ko(t,0,e).length}function ko(t,e,r){return FMr(t)?t.slice(e,r):cs(t).slice(e,r).join("")}function rh(t){let e=wa(t);return xAl(e).replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F\u200E\u200F\u202A-\u202E\u2066-\u2069\u200B\uFEFF]/g,"")}function wC(t,e){if(!t)return"";let r=rh(t).replace(/\s+/g," ");return e&&r.length>e&&(r=r.substring(0,e-3)+"..."),r}function UMr(t){return t.replace(/\\r\\n/g,`
|
|
4260
4261
|
`).replace(/\\n/g,`
|
|
4261
4262
|
`)}function O0t(t){if(typeof t=="string")return t.search(LMr)===-1?t:(LMr.lastIndex=0,t.replace(LMr,n=>JSON.stringify(n).slice(1,-1)));if(t===null||typeof t!="object")return t;if(Array.isArray(t)){let n=null;for(let o=0;o<t.length;o++){let s=t[o],a=O0t(s);a!==s&&(n===null&&(n=[...t]),n[o]=a)}return n!==null?n:t}let e=null,r=Object.keys(t);for(let n of r){let o=t[n],s=O0t(o);s!==o&&(e===null&&(e={...t}),e[n]=s)}return e!==null?e:t}var FHi,UHi,GHi,hte,LMr,og=b(()=>{"use strict";wI();zqt();kee();NW();wd();FHi=1e3,UHi=new o0.default(d5);GHi=new o0.default(d5),hte=t=>{if(t.length===1){let n=t.charCodeAt(0);if(n>=32&&n<=126)return 1}let e=GHi.get(t);if(e!==void 0)return e;let r;try{r=tg(t)}catch{r=cs(wa(t)).length}return GHi.set(t,r),r},LMr=_we()});import*as Db from"node:fs/promises";import{createWriteStream as RAl,existsSync as BAl,statSync as kAl}from"node:fs";import{execSync as DAl,spawn as NAl}from"node:child_process";import*as v9 from"node:path";function jHi(){if(GMr!==null)return GMr;let t=process.env.XDG_SESSION_TYPE,e=t==="wayland"?["wl-paste","xclip"]:t==="x11"?["xclip","wl-paste"]:["xclip","wl-paste"];for(let r of e)try{return DAl(`command -v ${r}`,{stdio:"ignore"}),GMr=r,r}catch{}return T.warn("No clipboard tool found. Please install xclip or wl-paste."),null}async function HHi(t,e,r){return new Promise(n=>{let o=NAl(t,e),s=RAl(r),a=!1,l=c=>{a||(a=!0,n(c))};o.stdout.pipe(s),o.on("error",c=>{T.debug(`Failed to spawn ${t}:`,c),l(!1)}),s.on("error",c=>{T.debug(`File stream error for ${r}:`,c),l(!1)}),o.on("close",async c=>{if(a)return;if(c!==0){T.debug(`${t} exited with code ${c}. Args: ${e.join(" ")}`),l(!1);return}let u=async()=>{try{let d=await Db.stat(r);l(d.size>0)}catch(d){T.debug(`Failed to stat output file ${r}:`,d),l(!1)}};s.writableFinished?await u():(s.on("finish",u),s.on("close",async()=>{a||await u()}))})})}async function PAl(){try{let{stdout:t}=await al("wl-paste",["--list-types"]);return t.includes("image/")}catch(t){T.warn("Error checking wl-clipboard for image:",t)}return!1}async function QAl(){try{let{stdout:t}=await al("xclip",["-selection","clipboard","-t","TARGETS","-o"]);return t.includes("image/")}catch(t){T.warn("Error checking xclip for image:",t)}return!1}async function qHi(){if(process.platform==="linux"){let t=jHi();if(t==="wl-paste"){if(await PAl())return!0}else if(t==="xclip"&&await QAl())return!0;return!1}if(process.platform==="win32")try{let{stdout:t}=await al("powershell",["-NoProfile","-Command",'$img = $null; if (Get-Command Get-Clipboard -ErrorAction SilentlyContinue) { $img = Get-Clipboard -Format Image }; if ($img) { "True" } else { Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.Clipboard]::ContainsImage() }']);return t.trim()==="True"}catch(t){return T.warn("Error checking clipboard for image:",t),!1}if(process.platform!=="darwin")return!1;try{let{stdout:t}=await al("osascript",["-e","clipboard info"]);return/«class PNGf»|TIFF picture|JPEG picture|GIF picture|«class JPEG»|«class TIFF»/.test(t)}catch(t){return T.warn("Error checking clipboard for image:",t),!1}}async function VHi(){try{let{stdout:t}=await al("powershell",["-NoProfile","-Command",'$t = Get-Clipboard -Raw -ErrorAction SilentlyContinue; if ($null -eq $t) { "" } else { [Console]::Out.Write($t) }']);return t}catch(t){return T.warn("Error reading clipboard text via PowerShell:",t),null}}async function LAl(t){let e=["image/png","image/bmp","image/jpeg"];for(let r of e)if(await HHi("wl-paste",["--no-newline","--type",r],t))return!0;try{await Db.unlink(t)}catch{}return!1}async function WHi(t){let e=new Pr(t);await e.initialize();let r=e.getProjectTempDir();return v9.join(r,"images")}async function YHi(t){try{let e=await WHi(t);await Db.mkdir(e,{recursive:!0});let r=new Date().getTime();if(process.platform==="linux"){let o=v9.join(e,`clipboard-${r}.png`),s=jHi();return s==="wl-paste"?await LAl(o)?o:null:s==="xclip"&&await FAl(o)?o:null}if(process.platform==="win32"){let o=v9.join(e,`clipboard-${r}.png`),s=o.replace(/'/g,"''"),a=`
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qoder-ai/qodercli",
|
|
3
|
-
"version": "0.2.2-beta.
|
|
3
|
+
"version": "0.2.2-beta.14",
|
|
4
4
|
"description": "Qoder AI CLI - AI-powered coding assistant",
|
|
5
5
|
"author": "Qoder AI",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"qodercli": "
|
|
9
|
+
"qodercli": "bundle/qodercli.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
-
"bin/",
|
|
13
12
|
"bundle/",
|
|
14
13
|
"README.md",
|
|
15
14
|
"LICENSE"
|
package/bin/qodercli.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
// Suppress Node.js "unsettled top-level await" warning that fires when
|
|
5
|
-
// process.exit() is called while the bundled ESM top-level await is pending.
|
|
6
|
-
const origEmit = process.emit;
|
|
7
|
-
process.emit = function (event, warning) {
|
|
8
|
-
if (
|
|
9
|
-
event === "warning" &&
|
|
10
|
-
warning &&
|
|
11
|
-
typeof warning.message === "string" &&
|
|
12
|
-
warning.message.includes("unsettled top-level await")
|
|
13
|
-
) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
return origEmit.apply(this, arguments);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const { pathToFileURL } = require("node:url");
|
|
20
|
-
const { join } = require("node:path");
|
|
21
|
-
|
|
22
|
-
const bundlePath = join(__dirname, "..", "bundle", "qodercli.js");
|
|
23
|
-
import(pathToFileURL(bundlePath).href).catch((err) => {
|
|
24
|
-
console.error("Failed to start qodercli:", err);
|
|
25
|
-
process.exit(1);
|
|
26
|
-
});
|