@claudiolabs/claudio 0.1.12 → 0.1.13
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/bin/claudio +7 -0
- package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +1 -0
- package/dist/chunks/App-0.1.13-45tpe56w.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +1 -0
- package/dist/chunks/{AssistantSessionChooser-0.1.12-x3zt5579.mjs → AssistantSessionChooser-0.1.13-tcg2ckh4.mjs} +1 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +1 -0
- package/dist/chunks/{ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs → ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.12-tzjdg5ys.mjs → DiffDialog-0.1.13-3a9b1b48.mjs} +1 -1
- package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +1 -0
- package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +1 -0
- package/dist/chunks/{InProcessTransport-0.1.12-xnrc78z1.mjs → InProcessTransport-0.1.13-k5mkjvww.mjs} +1 -1
- package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +1 -0
- package/dist/chunks/{Onboarding-0.1.12-tc4trc3y.mjs → Onboarding-0.1.13-j8d7hwbe.mjs} +1 -1
- package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +1 -0
- package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +1 -0
- package/dist/chunks/{SnapshotUpdateDialog-0.1.12-f1byjres.mjs → SnapshotUpdateDialog-0.1.13-has41zv0.mjs} +1 -1
- package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +1 -0
- package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +1 -0
- package/dist/chunks/{agents-0.1.12-vfwpnn0d.mjs → agents-0.1.13-a0aj4df9.mjs} +2 -2
- package/dist/chunks/agents-0.1.13-phdd6357.mjs +3 -0
- package/dist/chunks/api-0.1.13-vmdan95h.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.12-nwzfr5gz.mjs → asciicast-0.1.13-d6ce2h4r.mjs} +1 -1
- package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +1 -0
- package/dist/chunks/{auth-0.1.12-vhdwtwhb.mjs → auth-0.1.13-fwdmg15h.mjs} +1 -1
- package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +1 -0
- package/dist/chunks/{autoMode-0.1.12-xjr5qd6q.mjs → autoMode-0.1.13-4xh49kt4.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +1 -0
- package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +4 -0
- package/dist/chunks/{bridgePointer-0.1.12-vdj4j4ke.mjs → bridgePointer-0.1.13-s1qw0857.mjs} +1 -1
- package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +1 -0
- package/dist/chunks/{buddy-0.1.12-4q50s2x4.mjs → buddy-0.1.13-2wvpbqx1.mjs} +1 -1
- package/dist/chunks/{cacache-0.1.12-mtaw8981.mjs → cacache-0.1.13-sy5bqn6j.mjs} +1 -1
- package/dist/chunks/{cache-probe-0.1.12-4s8cc2km.mjs → cache-probe-0.1.13-ze8mf958.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.12-qqcw6b5n.mjs → cacheStats-0.1.13-jtrw4rdj.mjs} +1 -1
- package/dist/chunks/caches-0.1.13-0swwryxr.mjs +1 -0
- package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +1 -0
- package/dist/chunks/{chromeNativeHost-0.1.12-7e2jv2nr.mjs → chromeNativeHost-0.1.13-96ex7t46.mjs} +1 -1
- package/dist/chunks/{claude-for-chrome-mcp-0.1.12-2q97mema.mjs → claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs} +1 -1
- package/dist/chunks/{claudeDesktop-0.1.12-1yrkynq4.mjs → claudeDesktop-0.1.13-fs8rre9b.mjs} +1 -1
- package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +1 -0
- package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +1 -0
- package/dist/chunks/{cli-0.1.12-830kqdpq.mjs → cli-0.1.13-00qdyz6f.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-0b728dvh.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-8qvgy8xr.mjs → cli-0.1.13-0gfnmq08.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-0gyt273r.mjs +2 -0
- package/dist/chunks/cli-0.1.13-0hyneh5t.mjs +9 -0
- package/dist/chunks/{cli-0.1.12-ps94e9y5.mjs → cli-0.1.13-0p3b9j40.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-d8m01qtm.mjs → cli-0.1.13-0xy8k6yv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qsh4sj4y.mjs → cli-0.1.13-0zpmhn2j.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-a5h71tt8.mjs → cli-0.1.13-13fh0g36.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-rzpc0tr9.mjs → cli-0.1.13-144gn3fd.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ra3sby5b.mjs → cli-0.1.13-1g6bgaa6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-756ngehz.mjs → cli-0.1.13-1gbn4dgj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-sxxpysy8.mjs → cli-0.1.13-1hw65avy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-af1r644n.mjs → cli-0.1.13-1pxg82cx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-g1yp7kdf.mjs → cli-0.1.13-1y21vq1h.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-6238zg7k.mjs → cli-0.1.13-2c7g6rpx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qn20n18h.mjs → cli-0.1.13-2cdtdhek.mjs} +5 -5
- package/dist/chunks/{cli-0.1.12-kg8gb6e3.mjs → cli-0.1.13-2sx61wcx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-c23pyffx.mjs → cli-0.1.13-2vrh3n9y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-f0x1y6nn.mjs → cli-0.1.13-30j4h365.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-hsw67esw.mjs → cli-0.1.13-3k1n20ra.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-7da43cy1.mjs → cli-0.1.13-3pctg5zc.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-2sqxe53a.mjs → cli-0.1.13-3rr4fg79.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-h248m986.mjs → cli-0.1.13-4prgqshq.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-nv2m8kgk.mjs → cli-0.1.13-5061js0h.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-pm5cwtxh.mjs → cli-0.1.13-52f40ba4.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-579v6j6d.mjs +4 -0
- package/dist/chunks/{cli-0.1.12-2yy1nw3s.mjs → cli-0.1.13-5b7hgn91.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-trdq9d6x.mjs → cli-0.1.13-5c4fyghf.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ybm1kvwy.mjs → cli-0.1.13-5d4ke9a2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-ae3e3ffp.mjs → cli-0.1.13-5j5bg3t2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-vxej5jdm.mjs → cli-0.1.13-5krmz4nd.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-pnh4t8c3.mjs → cli-0.1.13-5rnhv49w.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-vpnp7x5c.mjs → cli-0.1.13-5s4m8qj9.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-erggrdth.mjs → cli-0.1.13-5ydypzty.mjs} +3 -3
- package/dist/chunks/cli-0.1.13-6gmqjyv9.mjs +2 -0
- package/dist/chunks/cli-0.1.13-6p0jxfnp.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-6rjh20wh.mjs → cli-0.1.13-6q3wa261.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +3 -0
- package/dist/chunks/{cli-0.1.12-rqedb88a.mjs → cli-0.1.13-73yztj5x.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-ytxphavm.mjs → cli-0.1.13-79vtnprb.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-84tbx1nf.mjs +3 -0
- package/dist/chunks/{cli-0.1.12-0x3cd401.mjs → cli-0.1.13-85w0nxy9.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-z8eybrhz.mjs → cli-0.1.13-87xfe2f3.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-q63qrz06.mjs → cli-0.1.13-8gd1x101.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-k2164g7e.mjs → cli-0.1.13-8ppsn0an.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-34gqc6yf.mjs → cli-0.1.13-8pw4n94k.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-g728hcdr.mjs → cli-0.1.13-8snyqhjj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-0vf5f6qn.mjs → cli-0.1.13-8sszxge2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-0kqx19vz.mjs → cli-0.1.13-9043n2e8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-5qhkbp8w.mjs → cli-0.1.13-91b1h8ww.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-37ezy1qg.mjs → cli-0.1.13-9a1hzdsv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-0eznapyf.mjs → cli-0.1.13-9jajvw4r.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-0xzdygm2.mjs → cli-0.1.13-a4xga299.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-ajsw8n7h.mjs +5 -0
- package/dist/chunks/{cli-0.1.12-8znn9f50.mjs → cli-0.1.13-apjxy5tn.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-238c85zt.mjs → cli-0.1.13-asrdd8dh.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-b24n1wvw.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-mr41yjpw.mjs → cli-0.1.13-b3xc1r3k.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-3ywnr2v1.mjs → cli-0.1.13-b40skdsz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-1hv04bp7.mjs → cli-0.1.13-bj67mp7n.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-4qedbzt3.mjs → cli-0.1.13-bkg3sva7.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +16 -0
- package/dist/chunks/{cli-0.1.12-19as1myk.mjs → cli-0.1.13-c5b4ygdq.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-faa9mx3m.mjs → cli-0.1.13-cjmpc9q5.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-04jw23rj.mjs → cli-0.1.13-ck28msre.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-xfqkrd5x.mjs → cli-0.1.13-crcgrfse.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-86nmrm6g.mjs → cli-0.1.13-ct9m5223.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-c28bme4j.mjs → cli-0.1.13-ctjpk124.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-y04asmqh.mjs → cli-0.1.13-cyj5snev.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-vwcas8f6.mjs → cli-0.1.13-d66pryf3.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-7xsa2bcp.mjs → cli-0.1.13-d6tr2j76.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-d85aba8r.mjs +2 -0
- package/dist/chunks/cli-0.1.13-d8wkcw90.mjs +25 -0
- package/dist/chunks/{cli-0.1.12-vzga2are.mjs → cli-0.1.13-dag38tkx.mjs} +6 -6
- package/dist/chunks/{cli-0.1.12-cxn1ke77.mjs → cli-0.1.13-dak36ez8.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ds2mn8zn.mjs → cli-0.1.13-dmgp48vg.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-wdmxm11z.mjs → cli-0.1.13-e58n0k16.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-t8712dbc.mjs → cli-0.1.13-eh7dqeqt.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-2v18rdhk.mjs → cli-0.1.13-f6gfa426.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-9pq0gse0.mjs → cli-0.1.13-fabrrwqa.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-242der7s.mjs → cli-0.1.13-fh5dndvp.mjs} +1021 -1014
- package/dist/chunks/{cli-0.1.12-bmtahtv7.mjs → cli-0.1.13-ft5k86va.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-rwhrpb6w.mjs → cli-0.1.13-fwd5b6q8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-sgtpyf6y.mjs → cli-0.1.13-fz5dm31h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-h0d833vg.mjs → cli-0.1.13-fzb4yx18.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-5b3j1c9c.mjs → cli-0.1.13-g2v4avcv.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-tyt09z73.mjs → cli-0.1.13-g654740k.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qrx9nssg.mjs → cli-0.1.13-ga4mmwbc.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-bhxgr018.mjs → cli-0.1.13-gd3nndc7.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-1x06khjr.mjs → cli-0.1.13-gvz2qezh.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-h3vb5402.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-jqrk975g.mjs → cli-0.1.13-h7a36dnk.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-hgkwnhwv.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-bddm1g1s.mjs → cli-0.1.13-hjqn3n5a.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-j6hwb68p.mjs → cli-0.1.13-hyvpn2ht.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-q8k1zvhb.mjs → cli-0.1.13-hzdj03rn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-37ga9zc2.mjs → cli-0.1.13-j7796v8f.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-nfvtmt75.mjs → cli-0.1.13-jakv6e7b.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-g2s9mjr6.mjs → cli-0.1.13-jeyjdb2m.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-j6gjfwh5.mjs → cli-0.1.13-jz57znb6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-2zqgfhrb.mjs → cli-0.1.13-ks4x4cct.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-ky4z1s1h.mjs +20 -0
- package/dist/chunks/{cli-0.1.12-7ehqw1dk.mjs → cli-0.1.13-kzn9sspk.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-nnyca8nb.mjs → cli-0.1.13-m5aaczvd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-zs5rpqmb.mjs → cli-0.1.13-m61dhxfs.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-xekep4qg.mjs → cli-0.1.13-mahtf0ay.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-5exp787z.mjs → cli-0.1.13-mezw1vk8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-6ddq5n4e.mjs → cli-0.1.13-mkw72mxc.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-352pjhkh.mjs → cli-0.1.13-myd004mr.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-mywk7e49.mjs +134 -0
- package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +2 -0
- package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-s0cwq66w.mjs → cli-0.1.13-nc3ce357.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-817sd5bc.mjs → cli-0.1.13-nc8ww3rn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-2fajd44n.mjs → cli-0.1.13-njvp7vtc.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-a2frnpdd.mjs → cli-0.1.13-nsbk0w3b.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-4sh0f4y1.mjs → cli-0.1.13-nwt2jc8b.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-04v3yab2.mjs → cli-0.1.13-p2wyk6z7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-v0510w04.mjs → cli-0.1.13-p4nz8zmd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-9gs0g8yb.mjs → cli-0.1.13-p625yxtg.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-b01yrner.mjs → cli-0.1.13-p84ry3q5.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-7mjpbm22.mjs → cli-0.1.13-pqk4c7m7.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-4wwhk7dc.mjs → cli-0.1.13-pw5dks39.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-bnss4rxn.mjs → cli-0.1.13-q93vqpjh.mjs} +28 -28
- package/dist/chunks/{cli-0.1.12-v8j9zstg.mjs → cli-0.1.13-qdtwrf9z.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-5k9mfnz0.mjs → cli-0.1.13-qxtrzerx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-e4zeaahk.mjs → cli-0.1.13-r09724ac.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-bh7jp3zk.mjs → cli-0.1.13-rftgy1b8.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-rjjyq9ej.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-024a8zz7.mjs → cli-0.1.13-rkaxch5j.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-awb2yac7.mjs → cli-0.1.13-s6w3ej6f.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-zk49aaxv.mjs → cli-0.1.13-s90a26ca.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-a2qh6gjr.mjs → cli-0.1.13-s928gjab.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-w0qbr98a.mjs → cli-0.1.13-s9fgd2dx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-d0es0fxd.mjs → cli-0.1.13-saz6qetz.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-kea0zcje.mjs → cli-0.1.13-sgxk7d0h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-5p9g1vcm.mjs → cli-0.1.13-sr9axhrw.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-e262snmb.mjs → cli-0.1.13-ss1k5gqk.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +4 -0
- package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-mevh0dza.mjs → cli-0.1.13-t34z5r3c.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-xj3mv67x.mjs → cli-0.1.13-t5w452fj.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-tknwgkgp.mjs +17 -0
- package/dist/chunks/{cli-0.1.12-fqpxr3qb.mjs → cli-0.1.13-tq3dqmem.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-6zryzryc.mjs → cli-0.1.13-v1b9yhsy.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-r6f9sy54.mjs → cli-0.1.13-v32xwe08.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-bjzb0sjt.mjs → cli-0.1.13-v467fj8c.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-3d2xpvk2.mjs → cli-0.1.13-v56n2wqm.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-m6jeef2z.mjs → cli-0.1.13-v6z41645.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-vdz792pb.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-wcdh3m4s.mjs → cli-0.1.13-vj532g9m.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-c47ape20.mjs → cli-0.1.13-vn7ckv16.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-5pw10pf8.mjs → cli-0.1.13-vwt4hc0t.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-8qm558mj.mjs → cli-0.1.13-w08qr05m.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-mwp84gtr.mjs → cli-0.1.13-w8h6wdez.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-rwzav5h1.mjs → cli-0.1.13-wh68ve92.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-baxk5jyy.mjs → cli-0.1.13-wpsqhe6v.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-52dbx2x6.mjs → cli-0.1.13-wr0c9hyh.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-g3ycbjxk.mjs → cli-0.1.13-wwnez3j0.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-5ye0t0xd.mjs → cli-0.1.13-wxdmc1dd.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ktpqrbjc.mjs → cli-0.1.13-wz7v1tqx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-m3q5r7wd.mjs → cli-0.1.13-x3zt8q8r.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-actnmgw5.mjs → cli-0.1.13-x461rxn2.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ryycx3v6.mjs → cli-0.1.13-x4n4my99.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-v000x470.mjs → cli-0.1.13-xde08pkt.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-yk12dgnx.mjs → cli-0.1.13-xkdwvsg9.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-vgbc3g9x.mjs → cli-0.1.13-xv6wh44y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-kys514qx.mjs → cli-0.1.13-xvvtja1h.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-sd72y750.mjs → cli-0.1.13-xwkys72y.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +4 -0
- package/dist/chunks/{cli-0.1.12-strz382t.mjs → cli-0.1.13-y3e5jkh7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-9v01t95v.mjs → cli-0.1.13-y7aqqca1.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-73k5qd97.mjs → cli-0.1.13-yd536yw4.mjs} +7 -10
- package/dist/chunks/{cli-0.1.12-g4sdgt8h.mjs → cli-0.1.13-yeb03vme.mjs} +2 -2
- package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +2 -0
- package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-zwyec6tj.mjs → cli-0.1.13-z0jm6xd0.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-jjza3gz9.mjs → cli-0.1.13-z387wpj9.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-4syxz3pe.mjs → cli-0.1.13-zgnanj3x.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-kzd4y6yq.mjs → cli-0.1.13-zm2zgw7m.mjs} +1 -1
- package/dist/chunks/cli-0.1.13-zmft0mps.mjs +2 -0
- package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +1 -0
- package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +1 -0
- package/dist/chunks/compact-0.1.13-603r2t03.mjs +3 -0
- package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +1 -0
- package/dist/chunks/{config-0.1.12-ryxz4stj.mjs → config-0.1.13-q8fcew9w.mjs} +1 -1
- package/dist/chunks/context-0.1.13-5fz212w3.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +1 -0
- package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +1 -0
- package/dist/chunks/{copy-0.1.12-w6tabpy0.mjs → copy-0.1.13-03jy5tfn.mjs} +1 -1
- package/dist/chunks/cost-0.1.13-zch21h6x.mjs +1 -0
- package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +1 -0
- package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +1 -0
- package/dist/chunks/detection-0.1.13-k001d88v.mjs +1 -0
- package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +1 -0
- package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +1 -0
- package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +1 -0
- package/dist/chunks/environments-0.1.13-x1xw45es.mjs +1 -0
- package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +1 -0
- package/dist/chunks/export-0.1.13-sq3jk66f.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +1 -0
- package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +1 -0
- package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +14 -0
- package/dist/chunks/{firstPartyEventLogger-0.1.12-95kzm3md.mjs → firstPartyEventLogger-0.1.13-6m3fvkcj.mjs} +1 -1
- package/dist/chunks/git-0.1.13-2rp45xgd.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +1 -0
- package/dist/chunks/{growthbook-0.1.12-4phnr6b3.mjs → growthbook-0.1.13-sramqmzv.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.12-m49qs4r7.mjs → heapdump-0.1.13-3n7hv372.mjs} +1 -1
- package/dist/chunks/help-0.1.13-knrgw1dq.mjs +1 -0
- package/dist/chunks/{hookChains-0.1.12-brq8x7f7.mjs → hookChains-0.1.13-te9q466p.mjs} +2 -2
- package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +1 -0
- package/dist/chunks/hooks-0.1.13-g6kx1mk3.mjs +79 -0
- package/dist/chunks/{ide-0.1.12-553mazfs.mjs → ide-0.1.13-ke3v5mb7.mjs} +1 -1
- package/dist/chunks/{mcpb-0.1.12-mcbd7ywh.mjs → image-processor-napi-0.1.13-h7fg935p.mjs} +1 -1
- package/dist/chunks/{index-0.1.12-rhj8dsvk.mjs → index-0.1.13-018yhz6j.mjs} +1 -1
- package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +1 -0
- package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +1 -0
- package/dist/chunks/{index-0.1.12-3nbh75ta.mjs → index-0.1.13-3zjrdjrv.mjs} +1 -1
- package/dist/chunks/index-0.1.13-4cjfx282.mjs +1 -0
- package/dist/chunks/index-0.1.13-5g9shrc4.mjs +9 -0
- package/dist/chunks/index-0.1.13-7c5y7cbf.mjs +2 -0
- package/dist/chunks/index-0.1.13-7fm7tk25.mjs +1 -0
- package/dist/chunks/index-0.1.13-98j8cxkv.mjs +1 -0
- package/dist/chunks/index-0.1.13-9meb2pab.mjs +1 -0
- package/dist/chunks/index-0.1.13-a06q9ad9.mjs +2 -0
- package/dist/chunks/index-0.1.13-bc4sh2m1.mjs +1 -0
- package/dist/chunks/index-0.1.13-c29wq5dx.mjs +5 -0
- package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +1 -0
- package/dist/chunks/index-0.1.13-h4wytk4z.mjs +1 -0
- package/dist/chunks/index-0.1.13-j9c4bjzh.mjs +1 -0
- package/dist/chunks/index-0.1.13-m9m61529.mjs +1 -0
- package/dist/chunks/index-0.1.13-mc5ag4wj.mjs +1 -0
- package/dist/chunks/index-0.1.13-nm8pkj0f.mjs +9 -0
- package/dist/chunks/index-0.1.13-psynrf7p.mjs +10 -0
- package/dist/chunks/index-0.1.13-qjt3h799.mjs +1 -0
- package/dist/chunks/index-0.1.13-tvt8fxrq.mjs +1 -0
- package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +1 -0
- package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +1 -0
- package/dist/chunks/{insights-0.1.12-93mz1f1d.mjs → insights-0.1.13-t81417ej.mjs} +3 -3
- package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.12-qd8g81v4.mjs → install-github-app-0.1.13-yvnx16za.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.13-bvt39wrk.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +1 -0
- package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +2 -0
- package/dist/chunks/{knowledge-0.1.12-1zq0qj6h.mjs → knowledge-0.1.13-9a2md3fm.mjs} +1 -1
- package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +1 -0
- package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +1 -0
- package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +1 -0
- package/dist/chunks/main-0.1.13-e5tbkphz.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +1 -0
- package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +4 -0
- package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +1 -0
- package/dist/chunks/{mcp-0.1.12-vm3tpth6.mjs → mcp-0.1.13-x9twbpqk.mjs} +3 -3
- package/dist/chunks/{mcpServer-0.1.12-zwsas6ss.mjs → mcpServer-0.1.13-jf5dhyys.mjs} +1 -1
- package/dist/chunks/{plist-0.1.12-65r770yt.mjs → mcpb-0.1.13-e55321kr.mjs} +1 -1
- package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +3 -0
- package/dist/chunks/{mobile-0.1.12-qdtxwz76.mjs → mobile-0.1.13-pzekbte3.mjs} +1 -1
- package/dist/chunks/model-0.1.13-a42465ep.mjs +1 -0
- package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +2 -0
- package/dist/chunks/{oauth-0.1.12-3aky0v8n.mjs → oauth-0.1.13-bk91rvfd.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.12-p458t1q6.mjs → openaiShim-0.1.13-c9z5r4zj.mjs} +2 -2
- package/dist/chunks/{output-style-0.1.12-cahkbh9x.mjs → output-style-0.1.13-c4ah6hc0.mjs} +1 -1
- package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +1 -0
- package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +1 -0
- package/dist/chunks/{passes-0.1.12-7vmawmvq.mjs → passes-0.1.13-bcbvjdzs.mjs} +1 -1
- package/dist/chunks/permissions-0.1.13-c03934ka.mjs +3 -0
- package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +1 -0
- package/dist/chunks/{image-processor-napi-0.1.12-3mrm0vts.mjs → plist-0.1.13-f3bfg2tf.mjs} +1 -1
- package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +1 -0
- package/dist/chunks/{plugins-0.1.12-sm87b8fm.mjs → plugins-0.1.13-1nvjxkbc.mjs} +2 -2
- package/dist/chunks/{print-0.1.12-8mgqmx4k.mjs → print-0.1.13-g2dmfpmq.mjs} +10 -10
- package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +1 -0
- package/dist/chunks/{process-0.1.12-t401v84c.mjs → process-0.1.13-ycxbd26n.mjs} +1 -1
- package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.13-16gwwvqz.mjs +9 -0
- package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +1 -0
- package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +1 -0
- package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +1 -0
- package/dist/chunks/{provider-0.1.12-wrfpbx8a.mjs → provider-0.1.13-e9ayet7n.mjs} +1 -1
- package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +1 -0
- package/dist/chunks/registry-0.1.13-e33aasxk.mjs +1 -0
- package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +2 -0
- package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +1 -0
- package/dist/chunks/{remoteBridgeCore-0.1.12-c0y46zw8.mjs → remoteBridgeCore-0.1.13-sq5rr5x0.mjs} +1 -1
- package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +1 -0
- package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +1 -0
- package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +2 -0
- package/dist/chunks/{rewind-0.1.12-707se5pz.mjs → rewind-0.1.13-zxcfrje2.mjs} +1 -1
- package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +1 -0
- package/dist/chunks/session-0.1.13-cjn060z1.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +1 -0
- package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +5 -0
- package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +1 -0
- package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +1 -0
- package/dist/chunks/{state-0.1.12-e374v6h8.mjs → state-0.1.13-cv8jd04r.mjs} +1 -1
- package/dist/chunks/{stats-0.1.12-5pj1c6sr.mjs → stats-0.1.13-yrtt99gr.mjs} +1 -1
- package/dist/chunks/status-0.1.13-4x7h3dec.mjs +1 -0
- package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +1 -0
- package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +1 -0
- package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +1 -0
- package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +1 -0
- package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +1 -0
- package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.12-9525v010.mjs → turndown.cjs-0.1.13-2wbn8j6y.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.12-d5c4096k.mjs → ultrareviewCommand-0.1.13-sj6asgpk.mjs} +1 -1
- package/dist/chunks/{update-0.1.12-hwx0e6fq.mjs → update-0.1.13-sx7hc0kj.mjs} +11 -11
- package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.12-yhnqfcyb.mjs → upstreamproxy-0.1.13-pwxv6kww.mjs} +1 -1
- package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +1 -0
- package/dist/chunks/util-0.1.13-ef9r7w41.mjs +1 -0
- package/dist/chunks/utils-0.1.13-03dvz81t.mjs +1 -0
- package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +1 -0
- package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +1 -0
- package/dist/chunks/{wiki-0.1.12-vecp82xq.mjs → wiki-0.1.13-regg8ff2.mjs} +1 -1
- package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +1 -0
- package/dist/chunks/{wrapper-0.1.12-bpewypaz.mjs → wrapper-0.1.13-8nsef109.mjs} +1 -1
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +2 -19
- package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +0 -1
- package/dist/chunks/App-0.1.12-t1g68ag4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +0 -1
- package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +0 -1
- package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +0 -1
- package/dist/chunks/REPL-0.1.12-4750qvss.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +0 -1
- package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +0 -1
- package/dist/chunks/agents-0.1.12-1dz073e3.mjs +0 -3
- package/dist/chunks/api-0.1.12-e314x4g9.mjs +0 -1
- package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +0 -1
- package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +0 -1
- package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +0 -4
- package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +0 -1
- package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +0 -1
- package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +0 -1
- package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +0 -1
- package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +0 -1
- package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-4gj8p030.mjs +0 -22
- package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +0 -2
- package/dist/chunks/cli-0.1.12-4ys47rex.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +0 -16
- package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +0 -2
- package/dist/chunks/cli-0.1.12-74tt2500.mjs +0 -2
- package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +0 -2
- package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +0 -2
- package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dc4e6688.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dqynn0at.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +0 -8
- package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g604mknq.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g8mny195.mjs +0 -2
- package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +0 -2
- package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +0 -4
- package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +0 -3
- package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +0 -2
- package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +0 -4
- package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +0 -2
- package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +0 -2
- package/dist/chunks/cli-0.1.12-taqfqnag.mjs +0 -4
- package/dist/chunks/cli-0.1.12-v79j5ced.mjs +0 -2
- package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +0 -3
- package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +0 -134
- package/dist/chunks/cli-0.1.12-xanhpra7.mjs +0 -2
- package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +0 -2
- package/dist/chunks/cli-0.1.12-y9598sy3.mjs +0 -16
- package/dist/chunks/client-0.1.12-f54egbjx.mjs +0 -1
- package/dist/chunks/color-0.1.12-jss6svg8.mjs +0 -1
- package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +0 -3
- package/dist/chunks/config-0.1.12-1pyte6wv.mjs +0 -1
- package/dist/chunks/context-0.1.12-mnwn2xss.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +0 -1
- package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +0 -1
- package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +0 -1
- package/dist/chunks/createSession-0.1.12-117q0efg.mjs +0 -1
- package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +0 -1
- package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +0 -1
- package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +0 -1
- package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +0 -1
- package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +0 -1
- package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +0 -1
- package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +0 -1
- package/dist/chunks/export-0.1.12-s6ag6jke.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +0 -1
- package/dist/chunks/fast-0.1.12-9x69m50c.mjs +0 -1
- package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +0 -14
- package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +0 -1
- package/dist/chunks/help-0.1.12-f02ce11x.mjs +0 -1
- package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +0 -1
- package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +0 -79
- package/dist/chunks/index-0.1.12-218arkqe.mjs +0 -9
- package/dist/chunks/index-0.1.12-2ykt90tn.mjs +0 -1
- package/dist/chunks/index-0.1.12-34ew4zjx.mjs +0 -1
- package/dist/chunks/index-0.1.12-41g5mvtk.mjs +0 -7
- package/dist/chunks/index-0.1.12-77szwkm6.mjs +0 -1
- package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +0 -1
- package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +0 -1
- package/dist/chunks/index-0.1.12-d5w1w05d.mjs +0 -1
- package/dist/chunks/index-0.1.12-d7j83tkh.mjs +0 -1
- package/dist/chunks/index-0.1.12-hvf65cbr.mjs +0 -1
- package/dist/chunks/index-0.1.12-m0e193t8.mjs +0 -1
- package/dist/chunks/index-0.1.12-nc3z95ph.mjs +0 -5
- package/dist/chunks/index-0.1.12-r92p75vh.mjs +0 -1
- package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +0 -1
- package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +0 -1
- package/dist/chunks/index-0.1.12-v53nbtdb.mjs +0 -2
- package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +0 -1
- package/dist/chunks/index-0.1.12-z0brwe1k.mjs +0 -2
- package/dist/chunks/index-0.1.12-zc2ayczg.mjs +0 -1
- package/dist/chunks/index-0.1.12-zqrp5tve.mjs +0 -9
- package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +0 -1
- package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +0 -1
- package/dist/chunks/install-0.1.12-11xkk6vf.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +0 -1
- package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +0 -1
- package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +0 -1
- package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +0 -1
- package/dist/chunks/main-0.1.12-47ck3kj2.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +0 -1
- package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +0 -1
- package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +0 -4
- package/dist/chunks/memory-0.1.12-7x2msczw.mjs +0 -3
- package/dist/chunks/model-0.1.12-15e9c8j0.mjs +0 -2
- package/dist/chunks/model-0.1.12-z2qjscwh.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +0 -1
- package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +0 -1
- package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +0 -3
- package/dist/chunks/plan-0.1.12-waed49m8.mjs +0 -1
- package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +0 -9
- package/dist/chunks/prompt-0.1.12-786vk11a.mjs +0 -1
- package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +0 -1
- package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +0 -1
- package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +0 -1
- package/dist/chunks/registry-0.1.12-btwd6z61.mjs +0 -1
- package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +0 -2
- package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +0 -1
- package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +0 -1
- package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +0 -2
- package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +0 -1
- package/dist/chunks/session-0.1.12-2xgt0x74.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +0 -1
- package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +0 -5
- package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +0 -1
- package/dist/chunks/skills-0.1.12-sh637gsv.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +0 -1
- package/dist/chunks/status-0.1.12-qphx08h4.mjs +0 -1
- package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +0 -1
- package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +0 -1
- package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +0 -1
- package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +0 -1
- package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +0 -1
- package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +0 -1
- package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +0 -1
- package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +0 -1
- package/dist/chunks/util-0.1.12-qdejkkj5.mjs +0 -1
- package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +0 -1
- package/dist/chunks/vim-0.1.12-z78k9k65.mjs +0 -1
- package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +0 -1
- package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +0 -1
- /package/dist/chunks/{cli-0.1.12-41zq3gv6.mjs → cli-0.1.13-fdmvysv0.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.12-tvawkeks.mjs → cli-0.1.13-gs7rcvne.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.12-ng34ay3g.mjs → cli-0.1.13-m5c2efjx.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{CV as __,xV as mj}from"./cli-0.1.12-4sh0f4y1.mjs";import{DV as q_,FV as d1,IV as B_}from"./cli-0.1.12-5ye0t0xd.mjs";import{rX as Q0,sX as e6,tX as m0}from"./cli-0.1.12-04jw23rj.mjs";import{uX as n0}from"./cli-0.1.12-ytxphavm.mjs";import{$0 as Z9,A0 as c4,B0 as qQ,C0 as M8,D0 as Ez,E0 as W6,F0 as kB,G0 as _K,H0 as gB,I0 as HQ,J0 as qZ,K0 as OH,L0 as HH,M0 as yU,N0 as r2,O0 as vU,P0 as UJ,Q0 as AQ,R0 as kG,S0 as e2,T0 as cj,U0 as lj,V0 as dj,W0 as aj,X0 as dB,Y0 as aB,Z0 as Pj,_0 as yj,a1 as zJ,b1 as J9,c1 as Q9,d1 as _8,e1 as Zj,g1 as U_,y0 as k4,z0 as C4}from"./cli-0.1.12-qsh4sj4y.mjs";import{G5 as lO,H5 as K0,I5 as Lz}from"./cli-0.1.12-m6jeef2z.mjs";import{P6 as IF,Q6 as PF}from"./cli-0.1.12-y04asmqh.mjs";import{B_ as DQ,Cba as t3,D_ as c1,Fba as QK,I7 as L8,N7 as M1,Q7 as gO,R7 as XF,V7 as U4,X7 as PB,Yba as o3}from"./cli-0.1.12-vzga2are.mjs";import{rfa as eN,sfa as mY,tfa as fY,ufa as pY,vfa as wY,wfa as UQ,xfa as U1,yfa as X7,zfa as KQ}from"./cli-0.1.12-bhxgr018.mjs";import{$fa as bG,fga as GO}from"./cli-0.1.12-v000x470.mjs";import{eha as KZ,hha as G5}from"./cli-0.1.12-rzpc0tr9.mjs";import{Bha as Rz,rha as N8,sha as IB}from"./cli-0.1.12-ra3sby5b.mjs";import{Eia as UB,Fia as hA,Nja as Ij,Oja as kO,Tka as bB,Yma as $z}from"./cli-0.1.12-pm5cwtxh.mjs";import{$ma as ZB,ana as yA,fna as p5,gna as Bz}from"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as U0,Sna as g5,Una as P}from"./cli-0.1.12-1hv04bp7.mjs";var R7=g5((fW,l3)=>{var RA=U0(n0()),XA=Object.create,r9=Object.defineProperty,zA=Object.getOwnPropertyDescriptor,UA=Object.getOwnPropertyNames,qA=Object.getPrototypeOf,BA=Object.prototype.hasOwnProperty,YA=(Z,K)=>{for(var G in K)r9(Z,G,{get:K[G],enumerable:!0})},p3=(Z,K,G,z)=>{if(K&&typeof K==="object"||typeof K==="function"){for(let q of UA(K))if(!BA.call(Z,q)&&q!==G)r9(Z,q,{get:()=>K[q],enumerable:!(z=zA(K,q))||z.enumerable})}return Z},jA=(Z,K,G)=>(G=Z!=null?XA(qA(Z)):{},p3(K||!Z||!Z.__esModule?r9(G,"default",{value:Z,enumerable:!0}):G,Z)),OA=(Z)=>p3(r9({},"__esModule",{value:!0}),Z),c3={};YA(c3,{$dispatcherGuard:()=>AA,$makeReadOnly:()=>MA,$reset:()=>NA,$structuralCheck:()=>$A,c:()=>VA,clearRenderCounterRegistry:()=>_A,renderCounterRegistry:()=>j6,useRenderCounter:()=>LA});l3.exports=OA(c3);var nJ=jA(RA),{useRef:HA,useEffect:DA,isValidElement:iJ}=nJ,g3,Kz=(g3=nJ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?g3:nJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gz=Symbol.for("react.memo_cache_sentinel"),h3,VA=typeof((h3=nJ.__COMPILER_RUNTIME)==null?void 0:h3.c)==="function"?nJ.__COMPILER_RUNTIME.c:function(K){return nJ.useMemo(()=>{let G=Array(K);for(let z=0;z<K;z++)G[z]=Gz;return G[Gz]=!0,G},[])},o9={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach((Z)=>{o9[Z]=()=>{throw Error(`[React] Unexpected React hook call (${Z}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var Y6=null;o9.useMemoCache=(Z)=>{if(Y6==null)throw Error("React Compiler internal invariant violation: unexpected null dispatcher");else return Y6.useMemoCache(Z)};function t9(Z){return Kz.ReactCurrentDispatcher.current=Z,Kz.ReactCurrentDispatcher.current}var sJ=[];function AA(Z){let K=Kz.ReactCurrentDispatcher.current;if(Z===0){if(sJ.push(K),sJ.length===1)Y6=K;if(K===o9)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");t9(o9)}else if(Z===1){let G=sJ.pop();if(G==null)throw Error("React Compiler internal error: unexpected null in guard stack");if(sJ.length===0)Y6=null;t9(G)}else if(Z===2)sJ.push(K),t9(Y6);else if(Z===3){let G=sJ.pop();if(G==null)throw Error("React Compiler internal error: unexpected null in guard stack");t9(G)}else throw Error("React Compiler internal error: unreachable block"+Z)}function NA(Z){for(let K=0;K<Z.length;K++)Z[K]=Gz}function MA(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var j6=new Map;function _A(){for(let Z of j6.values())Z.forEach((K)=>{K.count=0})}function FA(Z,K){let G=j6.get(Z);if(G==null)G=new Set,j6.set(Z,G);G.add(K)}function WA(Z,K){let G=j6.get(Z);if(G==null)return;G.delete(K)}function LA(Z){let K=HA(null);if(K.current!=null)K.current.count+=1;DA(()=>{if(K.current==null){let G={count:0};FA(Z,G),K.current=G}return()=>{if(K.current!==null)WA(Z,K.current)}})}var u3=new Set;function $A(Z,K,G,z,q,Y){function j(V,A,M,F){let _=`${z}:${Y} [${q}] ${G}${M} changed from ${V} to ${A} at depth ${F}`;if(u3.has(_))return;u3.add(_),console.error(_)}let H=2;function D(V,A,M,F){if(F>H)return;else if(V===A)return;else if(typeof V!==typeof A)j(`type ${typeof V}`,`type ${typeof A}`,M,F);else if(typeof V==="object"){let _=Array.isArray(V),R=Array.isArray(A);if(V===null&&A!==null)j("null",`type ${typeof A}`,M,F);else if(A===null)j(`type ${typeof V}`,"null",M,F);else if(V instanceof Map)if(!(A instanceof Map))j("Map instance","other value",M,F);else if(V.size!==A.size)j(`Map instance with size ${V.size}`,`Map instance with size ${A.size}`,M,F);else for(let[W,E]of V)if(!A.has(W))j(`Map instance with key ${W}`,`Map instance without key ${W}`,M,F);else D(E,A.get(W),`${M}.get(${W})`,F+1);else if(A instanceof Map)j("other value","Map instance",M,F);else if(V instanceof Set){if(!(A instanceof Set))j("Set instance","other value",M,F);else if(V.size!==A.size)j(`Set instance with size ${V.size}`,`Set instance with size ${A.size}`,M,F);else for(let W of A)if(!V.has(W))j(`Set instance without element ${W}`,`Set instance with element ${W}`,M,F)}else if(A instanceof Set)j("other value","Set instance",M,F);else if(_||R)if(_!==R)j(`type ${_?"array":"object"}`,`type ${R?"array":"object"}`,M,F);else if(V.length!==A.length)j(`array with length ${V.length}`,`array with length ${A.length}`,M,F);else for(let W=0;W<V.length;W++)D(V[W],A[W],`${M}[${W}]`,F+1);else if(iJ(V)||iJ(A))if(iJ(V)!==iJ(A))j(`type ${iJ(V)?"React element":"object"}`,`type ${iJ(A)?"React element":"object"}`,M,F);else if(V.type!==A.type)j(`React element of type ${V.type}`,`React element of type ${A.type}`,M,F);else D(V.props,A.props,`[props of ${M}]`,F+1);else{for(let W in A)if(!(W in V))j(`object without key ${W}`,`object with key ${W}`,M,F);for(let W in V)if(!(W in A))j(`object with key ${W}`,`object without key ${W}`,M,F);else D(V[W],A[W],`${M}.${W}`,F+1)}}else if(typeof V==="function")return;else if(isNaN(V)||isNaN(A)){if(isNaN(V)!==isNaN(A))j(`${isNaN(V)?"NaN":"non-NaN value"}`,`${isNaN(A)?"NaN":"non-NaN value"}`,M,F)}else if(V!==A)j(V,A,M,F)}D(Z,K,"",0)}});class G4{_didStopImmediatePropagation=!1;didStopImmediatePropagation(){return this._didStopImmediatePropagation}stopImmediatePropagation(){this._didStopImmediatePropagation=!0}}var h5=()=>{};import{EventEmitter as EA}from"events";var tJ;var e9=P(()=>{h5();tJ=class tJ extends EA{constructor(){super();this.setMaxListeners(0)}emit(Z,...K){if(Z==="error")return super.emit(Z,...K);let G=this.rawListeners(Z);if(G.length===0)return!1;let z=K[0]instanceof G4?K[0]:null;for(let q of G)if(q.apply(this,K),z?.didStopImmediatePropagation())break;return!0}}});var d3,a3,u5;var ZK=P(()=>{e9();d3=U0(n0(),1),a3=d3.createContext({stdin:process.stdin,internal_eventEmitter:new tJ,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0,internal_querier:null});a3.displayName="InternalStdinContext";u5=a3});var i3,TA=()=>i3.useContext(u5),O6;var JK=P(()=>{ZK();i3=U0(n0(),1),O6=TA});function H6(){if(Xz===void 0)Xz=CA()??"dark";return Xz}function dW(Z){if(Z==="auto")return H6();return Z}function CA(){let Z=process.env.COLORFGBG;if(!Z)return;let K=Z.split(";"),G=K[K.length-1];if(G===void 0||G==="")return;let z=Number(G);if(!Number.isInteger(z)||z<0||z>15)return;return z<=6||z===8?"dark":"light"}var Xz;var s3=()=>{};function SA(){return QK().theme}function vA(Z){t3((K)=>({...K,theme:Z}))}function Uz({children:Z,initialState:K,onThemeSave:G=vA}){let[z,q]=f7.useState(K??SA),[Y,j]=f7.useState(null),[H,D]=f7.useState(()=>(K??z)==="auto"?H6():"dark"),V=Y??z,{internal_querier:A}=O6();f7.useEffect(()=>{},[V,A]);let M=V==="auto"?H:V,F=f7.useMemo(()=>({themeSetting:z,setThemeSetting:(_)=>{if(q(_),j(null),_==="auto")D(H6());G?.(_)},setPreviewTheme:(_)=>{if(j(_),_==="auto")D(H6())},savePreview:()=>{if(Y!==null)q(Y),j(null),G?.(Y)},cancelPreview:()=>{if(Y!==null)j(null)},currentTheme:M}),[z,Y,M,G]);return Q0(KK.Provider,{value:F,children:Z})}function D6(){let Z=zz.c(3),{currentTheme:K,setThemeSetting:G}=f7.useContext(KK),z;if(Z[0]!==K||Z[1]!==G)z=[K,G],Z[0]=K,Z[1]=G,Z[2]=z;else z=Z[2];return z}function xA(){return f7.useContext(KK).themeSetting}function bA(){let Z=zz.c(4),{setPreviewTheme:K,savePreview:G,cancelPreview:z}=f7.useContext(KK),q;if(Z[0]!==z||Z[1]!==G||Z[2]!==K)q={setPreviewTheme:K,savePreview:G,cancelPreview:z},Z[0]=z,Z[1]=G,Z[2]=K,Z[3]=q;else q=Z[3];return q}var zz,f7,n3="dark",KK;var V6=P(()=>{JK();o3();s3();m0();zz=U0(R7(),1),f7=U0(n0(),1),KK=f7.createContext({themeSetting:n3,setThemeSetting:()=>{},setPreviewTheme:()=>{},savePreview:()=>{},cancelPreview:()=>{},currentTheme:n3})});function qz(Z,{include:K,exclude:G}={}){let z=(q)=>{let Y=(j)=>typeof j==="string"?q===j:j.test(q);if(K)return K.some(Y);if(G)return!G.some(Y);return!0};for(let[q,Y]of IA(Z.constructor.prototype)){if(Y==="constructor"||!z(Y))continue;let j=Reflect.getOwnPropertyDescriptor(q,Y);if(j&&typeof j.value==="function")Z[Y]=Z[Y].bind(Z)}return Z}var IA=(Z)=>{let K=new Set;do for(let G of Reflect.ownKeys(Z))K.add([Z,G]);while((Z=Reflect.getPrototypeOf(Z))&&Z!==Object.prototype);return K};var r3=()=>{};function PA(){}var GK;var e3=P(()=>{GK=PA});var mA=function(){return ZB.Date.now()},XK;var JB=P(()=>{yA();XK=mA});function wA(Z){var K=Z.length;while(K--&&fA.test(Z.charAt(K)));return K}var fA,QB;var KB=P(()=>{fA=/\s/;QB=wA});function gA(Z){return Z?Z.slice(0,QB(Z)+1).replace(kA,""):Z}var kA,GB;var XB=P(()=>{KB();kA=/^\s+/;GB=gA});function dA(Z){if(typeof Z=="number")return Z;if(UB(Z))return zB;if(p5(Z)){var K=typeof Z.valueOf=="function"?Z.valueOf():Z;Z=p5(K)?K+"":K}if(typeof Z!="string")return Z===0?Z:+Z;Z=GB(Z);var G=pA.test(Z);return G||cA.test(Z)?lA(Z.slice(2),G?2:8):uA.test(Z)?zB:+Z}var zB=NaN,uA,pA,cA,lA,Yz;var qB=P(()=>{XB();Bz();hA();uA=/^[-+]0x[0-9a-f]+$/i,pA=/^0b[01]+$/i,cA=/^0o[0-7]+$/i,lA=parseInt;Yz=dA});function nA(Z,K,G){var z,q,Y,j,H,D,V=0,A=!1,M=!1,F=!0;if(typeof Z!="function")throw TypeError(aA);if(K=Yz(K)||0,p5(G))A=!!G.leading,M="maxWait"in G,Y=M?iA(Yz(G.maxWait)||0,K):Y,F="trailing"in G?!!G.trailing:F;function _(b){var u=z,f=q;return z=q=void 0,V=b,j=Z.apply(f,u),j}function R(b){return V=b,H=setTimeout(T,K),A?_(b):j}function W(b){var u=b-D,f=b-V,w=K-u;return M?sA(w,Y-f):w}function E(b){var u=b-D,f=b-V;return D===void 0||u>=K||u<0||M&&f>=Y}function T(){var b=XK();if(E(b))return $(b);H=setTimeout(T,W(b))}function $(b){if(H=void 0,F&&z)return _(b);return z=q=void 0,j}function I(){if(H!==void 0)clearTimeout(H);V=0,z=D=q=H=void 0}function y(){return H===void 0?j:$(XK())}function m(){var b=XK(),u=E(b);if(z=arguments,q=this,D=b,u){if(H===void 0)return R(D);if(M)return clearTimeout(H),H=setTimeout(T,K),_(D)}if(H===void 0)H=setTimeout(T,K);return j}return m.cancel=I,m.flush=y,m}var aA="Expected a function",iA,sA,BB;var YB=P(()=>{Bz();JB();qB();iA=Math.max,sA=Math.min;BB=nA});function oA(Z,K,G){var z=!0,q=!0;if(typeof Z!="function")throw TypeError(tA);if(p5(G))z="leading"in G?!!G.leading:z,q="trailing"in G?!!G.trailing:q;return BB(Z,K,{leading:z,maxWait:K,trailing:q})}var tA="Expected a function",jB;var OB=P(()=>{YB();Bz();jB=oA});var zK=8,UK=32,jz=2,qK=0;var BK=()=>{};var V0,YK,H8,r0,HB,TZ,f4,G7,F0,c5,l5,tZ,D8;var DB=P(()=>{V0={Auto:0,FlexStart:1,Center:2,FlexEnd:3,Stretch:4,Baseline:5,SpaceBetween:6,SpaceAround:7,SpaceEvenly:8},YK={Inherit:0,LTR:1,RTL:2},H8={Flex:0,None:1,Contents:2},r0={Left:0,Top:1,Right:2,Bottom:3,Start:4,End:5,Horizontal:6,Vertical:7,All:8},HB={None:0,StretchFlexBasis:1,AbsolutePositionWithoutInsetsExcludesPadding:2,AbsolutePercentAgainstInnerSize:4,All:2147483647,Classic:2147483646},TZ={Column:0,ColumnReverse:1,Row:2,RowReverse:3},f4={Column:0,Row:1,All:2},G7={FlexStart:0,Center:1,FlexEnd:2,SpaceBetween:3,SpaceAround:4,SpaceEvenly:5},F0={Undefined:0,Exactly:1,AtMost:2},c5={Visible:0,Hidden:1,Scroll:2},l5={Static:0,Relative:1,Absolute:2},tZ={Undefined:0,Point:1,Percent:2,Auto:3},D8={NoWrap:0,Wrap:1,WrapReverse:2}});function VK(Z){return{unit:tZ.Point,value:Z}}function X4(Z){return{unit:tZ.Percent,value:Z}}function DZ(Z,K){switch(Z.unit){case tZ.Point:return Z.value;case tZ.Percent:return isNaN(K)?NaN:Z.value*K/100;default:return NaN}}function D0(Z){return!isNaN(Z)}function D7(Z,K){return Z===K||Z!==Z&&K!==K}function VB(){return{direction:YK.Inherit,flexDirection:TZ.Column,justifyContent:G7.FlexStart,alignItems:V0.Stretch,alignSelf:V0.Auto,alignContent:V0.FlexStart,flexWrap:D8.NoWrap,overflow:c5.Visible,display:H8.Flex,positionType:l5.Relative,flexGrow:0,flexShrink:0,flexBasis:V8,margin:[,,,,,,,,,].fill(i7),padding:[,,,,,,,,,].fill(i7),border:[,,,,,,,,,].fill(i7),position:[,,,,,,,,,].fill(i7),gap:[,,,].fill(i7),width:V8,height:V8,minWidth:i7,minHeight:i7,maxWidth:i7,maxHeight:i7}}function J5(Z,K,G,z=!1){let q=Z[K];if(q.unit===tZ.Undefined)if(K===E7||K===z4)q=Z[r0.Horizontal];else q=Z[r0.Vertical];if(q.unit===tZ.Undefined)q=Z[r0.All];if(q.unit===tZ.Undefined){if(K===E7)q=Z[r0.Start];if(K===z4)q=Z[r0.End]}if(q.unit===tZ.Undefined)return 0;if(q.unit===tZ.Auto)return z?NaN:0;return DZ(q,G)}function R4(Z,K){let G=Z[K];if(G.unit===tZ.Undefined)if(K===E7||K===z4)G=Z[r0.Horizontal];else G=Z[r0.Vertical];if(G.unit===tZ.Undefined)G=Z[r0.All];if(G.unit===tZ.Undefined){if(K===E7)G=Z[r0.Start];if(K===z4)G=Z[r0.End]}return G}function w4(Z,K){return R4(Z,K).unit===tZ.Auto}function AB(Z){for(let K=0;K<9;K++)if(Z[K].unit===3)return!0;return!1}function jK(Z){for(let K=0;K<9;K++)if(Z[K].unit!==0)return!0;return!1}function Oz(Z,K,G){let z=Z[6],q=Z[7],Y=Z[8],j=Z[4],H=Z[5],D=isNaN(K)?NaN:K/100,V=Z[0];if(V.unit===0)V=z;if(V.unit===0)V=Y;if(V.unit===0)V=j;if(G[0]=V.unit===1?V.value:V.unit===2?V.value*D:0,V=Z[1],V.unit===0)V=q;if(V.unit===0)V=Y;if(G[1]=V.unit===1?V.value:V.unit===2?V.value*D:0,V=Z[2],V.unit===0)V=z;if(V.unit===0)V=Y;if(V.unit===0)V=H;if(G[2]=V.unit===1?V.value:V.unit===2?V.value*D:0,V=Z[3],V.unit===0)V=q;if(V.unit===0)V=Y;G[3]=V.unit===1?V.value:V.unit===2?V.value*D:0}function M6(Z){return Z===TZ.Row||Z===TZ.RowReverse}function WB(Z){return Z===TZ.RowReverse||Z===TZ.ColumnReverse}function rA(Z){return M6(Z)?TZ.Column:TZ.Row}function Az(Z){switch(Z){case TZ.Row:return E7;case TZ.RowReverse:return z4;case TZ.Column:return $4;case TZ.ColumnReverse:return A8}}function Nz(Z){switch(Z){case TZ.Row:return z4;case TZ.RowReverse:return E7;case TZ.Column:return A8;case TZ.ColumnReverse:return $4}}function LB(){let Z={pointScaleFactor:1,errata:HB.None,useWebDefaults:!1,free(){},isExperimentalFeatureEnabled(){return!1},setExperimentalFeatureEnabled(){},setPointScaleFactor(K){Z.pointScaleFactor=K},getErrata(){return Z.errata},setErrata(K){Z.errata=K},setUseWebDefaults(K){Z.useWebDefaults=K}};return Z}class DK{style;layout;parent;children;measureFunc;config;isDirty_;isReferenceBaseline_;_flexBasis=0;_mainSize=0;_crossSize=0;_lineIndex=0;_hasAutoMargin=!1;_hasPosition=!1;_hasPadding=!1;_hasBorder=!1;_hasMargin=!1;_lW=NaN;_lH=NaN;_lWM=0;_lHM=0;_lOW=NaN;_lOH=NaN;_lFW=!1;_lFH=!1;_lOutW=NaN;_lOutH=NaN;_hasL=!1;_mW=NaN;_mH=NaN;_mWM=0;_mHM=0;_mOW=NaN;_mOH=NaN;_mOutW=NaN;_mOutH=NaN;_hasM=!1;_fbBasis=NaN;_fbOwnerW=NaN;_fbOwnerH=NaN;_fbAvailMain=NaN;_fbAvailCross=NaN;_fbCrossMode=0;_fbGen=-1;_cIn=null;_cOut=null;_cGen=-1;_cN=0;_cWr=0;constructor(Z){this.style=VB(),this.layout={left:0,top:0,width:0,height:0,border:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0]},this.parent=null,this.children=[],this.measureFunc=null,this.config=Z??eA,this.isDirty_=!0,this.isReferenceBaseline_=!1,Mz++}insertChild(Z,K){Z.parent=this,this.children.splice(K,0,Z),this.markDirty()}removeChild(Z){let K=this.children.indexOf(Z);if(K>=0)this.children.splice(K,1),Z.parent=null,this.markDirty()}getChild(Z){return this.children[Z]}getChildCount(){return this.children.length}getParent(){return this.parent}free(){this.parent=null,this.children=[],this.measureFunc=null,this._cIn=null,this._cOut=null,Mz--}freeRecursive(){for(let Z of this.children)Z.freeRecursive();this.free()}reset(){this.style=VB(),this.children=[],this.parent=null,this.measureFunc=null,this.isDirty_=!0,this._hasAutoMargin=!1,this._hasPosition=!1,this._hasPadding=!1,this._hasBorder=!1,this._hasMargin=!1,this._hasL=!1,this._hasM=!1,this._cN=0,this._cWr=0,this._fbBasis=NaN}markDirty(){if(this.isDirty_=!0,this.parent&&!this.parent.isDirty_)this.parent.markDirty()}isDirty(){return this.isDirty_}hasNewLayout(){return!0}markLayoutSeen(){}setMeasureFunc(Z){this.measureFunc=Z,this.markDirty()}unsetMeasureFunc(){this.measureFunc=null,this.markDirty()}getComputedLeft(){return this.layout.left}getComputedTop(){return this.layout.top}getComputedWidth(){return this.layout.width}getComputedHeight(){return this.layout.height}getComputedRight(){let Z=this.parent;return Z?Z.layout.width-this.layout.left-this.layout.width:0}getComputedBottom(){let Z=this.parent;return Z?Z.layout.height-this.layout.top-this.layout.height:0}getComputedLayout(){return{left:this.layout.left,top:this.layout.top,right:this.getComputedRight(),bottom:this.getComputedBottom(),width:this.layout.width,height:this.layout.height}}getComputedBorder(Z){return this.layout.border[Vz(Z)]}getComputedPadding(Z){return this.layout.padding[Vz(Z)]}getComputedMargin(Z){return this.layout.margin[Vz(Z)]}setWidth(Z){this.style.width=W4(Z),this.markDirty()}setWidthPercent(Z){this.style.width=X4(Z),this.markDirty()}setWidthAuto(){this.style.width=V8,this.markDirty()}setHeight(Z){this.style.height=W4(Z),this.markDirty()}setHeightPercent(Z){this.style.height=X4(Z),this.markDirty()}setHeightAuto(){this.style.height=V8,this.markDirty()}setMinWidth(Z){this.style.minWidth=W4(Z),this.markDirty()}setMinWidthPercent(Z){this.style.minWidth=X4(Z),this.markDirty()}setMinHeight(Z){this.style.minHeight=W4(Z),this.markDirty()}setMinHeightPercent(Z){this.style.minHeight=X4(Z),this.markDirty()}setMaxWidth(Z){this.style.maxWidth=W4(Z),this.markDirty()}setMaxWidthPercent(Z){this.style.maxWidth=X4(Z),this.markDirty()}setMaxHeight(Z){this.style.maxHeight=W4(Z),this.markDirty()}setMaxHeightPercent(Z){this.style.maxHeight=X4(Z),this.markDirty()}setFlexDirection(Z){this.style.flexDirection=Z,this.markDirty()}setFlexGrow(Z){this.style.flexGrow=Z??0,this.markDirty()}setFlexShrink(Z){this.style.flexShrink=Z??0,this.markDirty()}setFlex(Z){if(Z===void 0||isNaN(Z))this.style.flexGrow=0,this.style.flexShrink=0;else if(Z>0)this.style.flexGrow=Z,this.style.flexShrink=1,this.style.flexBasis=VK(0);else if(Z<0)this.style.flexGrow=0,this.style.flexShrink=-Z;else this.style.flexGrow=0,this.style.flexShrink=0;this.markDirty()}setFlexBasis(Z){this.style.flexBasis=W4(Z),this.markDirty()}setFlexBasisPercent(Z){this.style.flexBasis=X4(Z),this.markDirty()}setFlexBasisAuto(){this.style.flexBasis=V8,this.markDirty()}setFlexWrap(Z){this.style.flexWrap=Z,this.markDirty()}setAlignItems(Z){this.style.alignItems=Z,this.markDirty()}setAlignSelf(Z){this.style.alignSelf=Z,this.markDirty()}setAlignContent(Z){this.style.alignContent=Z,this.markDirty()}setJustifyContent(Z){this.style.justifyContent=Z,this.markDirty()}setDisplay(Z){this.style.display=Z,this.markDirty()}getDisplay(){return this.style.display}setPositionType(Z){this.style.positionType=Z,this.markDirty()}setPosition(Z,K){this.style.position[Z]=W4(K),this._hasPosition=jK(this.style.position),this.markDirty()}setPositionPercent(Z,K){this.style.position[Z]=X4(K),this._hasPosition=!0,this.markDirty()}setPositionAuto(Z){this.style.position[Z]=V8,this._hasPosition=!0,this.markDirty()}setOverflow(Z){this.style.overflow=Z,this.markDirty()}setDirection(Z){this.style.direction=Z,this.markDirty()}setBoxSizing(Z){}setMargin(Z,K){let G=W4(K);if(this.style.margin[Z]=G,G.unit===tZ.Auto)this._hasAutoMargin=!0;else this._hasAutoMargin=AB(this.style.margin);this._hasMargin=this._hasAutoMargin||jK(this.style.margin),this.markDirty()}setMarginPercent(Z,K){this.style.margin[Z]=X4(K),this._hasAutoMargin=AB(this.style.margin),this._hasMargin=!0,this.markDirty()}setMarginAuto(Z){this.style.margin[Z]=V8,this._hasAutoMargin=!0,this._hasMargin=!0,this.markDirty()}setPadding(Z,K){this.style.padding[Z]=W4(K),this._hasPadding=jK(this.style.padding),this.markDirty()}setPaddingPercent(Z,K){this.style.padding[Z]=X4(K),this._hasPadding=!0,this.markDirty()}setBorder(Z,K){this.style.border[Z]=K===void 0?i7:VK(K),this._hasBorder=jK(this.style.border),this.markDirty()}setGap(Z,K){this.style.gap[Z]=W4(K),this.markDirty()}setGapPercent(Z,K){this.style.gap[Z]=X4(K),this.markDirty()}getFlexDirection(){return this.style.flexDirection}getJustifyContent(){return this.style.justifyContent}getAlignItems(){return this.style.alignItems}getAlignSelf(){return this.style.alignSelf}getAlignContent(){return this.style.alignContent}getFlexGrow(){return this.style.flexGrow}getFlexShrink(){return this.style.flexShrink}getFlexBasis(){return this.style.flexBasis}getFlexWrap(){return this.style.flexWrap}getWidth(){return this.style.width}getHeight(){return this.style.height}getOverflow(){return this.style.overflow}getPositionType(){return this.style.positionType}getDirection(){return this.style.direction}copyStyle(Z){}setDirtiedFunc(Z){}unsetDirtiedFunc(){}setIsReferenceBaseline(Z){this.isReferenceBaseline_=Z,this.markDirty()}isReferenceBaseline(){return this.isReferenceBaseline_}setAspectRatio(Z){}getAspectRatio(){return NaN}setAlwaysFormsContainingBlock(Z){}calculateLayout(Z,K,G){Fz=0,Wz=0,A6=0,Q5++;let z=Z===void 0?NaN:Z,q=K===void 0?NaN:K;N6(this,z,q,D0(z)?F0.Exactly:F0.Undefined,D0(q)?F0.Exactly:F0.Undefined,z,q,!0);let Y=this.layout.margin,j=DZ(R4(this.style.position,E7),D0(z)?z:0),H=DZ(R4(this.style.position,$4),D0(z)?z:0);this.layout.left=Y[E7]+(D0(j)?j:0),this.layout.top=Y[$4]+(D0(H)?H:0),CB(this,this.config.pointScaleFactor,0,0)}}function Hz(Z,K,G,z,q,Y,j,H,D,V){if(!Z._cIn)Z._cIn=new Float64Array(OK*8),Z._cOut=new Float64Array(OK*2);if(V&&Z._cGen!==Q5)Z._cN=0,Z._cWr=0;let A=Z._cWr++%OK;if(Z._cN<OK)Z._cN=Z._cWr;let M=A*8,F=Z._cIn;F[M]=K,F[M+1]=G,F[M+2]=z,F[M+3]=q,F[M+4]=Y,F[M+5]=j,F[M+6]=H?1:0,F[M+7]=D?1:0,Z._cOut[A*2]=Z.layout.width,Z._cOut[A*2+1]=Z.layout.height,Z._cGen=Q5}function Dz(Z,K){if(K)Z._lOutW=Z.layout.width,Z._lOutH=Z.layout.height;else Z._mOutW=Z.layout.width,Z._mOutH=Z.layout.height}function AK(){return{visited:Fz,measured:Wz,cacheHits:A6,live:Mz}}function N6(Z,K,G,z,q,Y,j,H,D=!1,V=!1){Fz++;let{style:A,layout:M}=Z,F=Z._cGen===Q5&&!H;if(!Z.isDirty_||F){if(!Z.isDirty_&&Z._hasL&&Z._lWM===z&&Z._lHM===q&&Z._lFW===D&&Z._lFH===V&&D7(Z._lW,K)&&D7(Z._lH,G)&&D7(Z._lOW,Y)&&D7(Z._lOH,j)){A6++,M.width=Z._lOutW,M.height=Z._lOutH;return}if(Z._cN>0&&(F||!Z.isDirty_)){let a=Z._cIn;for(let W0=0;W0<Z._cN;W0++){let j0=W0*8;if(a[j0+2]===z&&a[j0+3]===q&&a[j0+6]===(D?1:0)&&a[j0+7]===(V?1:0)&&D7(a[j0],K)&&D7(a[j0+1],G)&&D7(a[j0+4],Y)&&D7(a[j0+5],j)){M.width=Z._cOut[W0*2],M.height=Z._cOut[W0*2+1],A6++;return}}}if(!Z.isDirty_&&!H&&Z._hasM&&Z._mWM===z&&Z._mHM===q&&D7(Z._mW,K)&&D7(Z._mH,G)&&D7(Z._mOW,Y)&&D7(Z._mOH,j)){M.width=Z._mOutW,M.height=Z._mOutH,A6++;return}}let _=Z.isDirty_;if(H){if(Z._lW=K,Z._lH=G,Z._lWM=z,Z._lHM=q,Z._lOW=Y,Z._lOH=j,Z._lFW=D,Z._lFH=V,Z._hasL=!0,Z.isDirty_=!1,_)Z._hasM=!1}else if(Z._mW=K,Z._mH=G,Z._mWM=z,Z._mHM=q,Z._mOW=Y,Z._mOH=j,Z._hasM=!0,_)Z._hasL=!1;let{padding:R,border:W,margin:E}=M;if(Z._hasPadding)Oz(A.padding,Y,R);else R[0]=R[1]=R[2]=R[3]=0;if(Z._hasBorder)Oz(A.border,Y,W);else W[0]=W[1]=W[2]=W[3]=0;if(Z._hasMargin)Oz(A.margin,Y,E);else E[0]=E[1]=E[2]=E[3]=0;let T=R[0]+R[2]+W[0]+W[2],$=R[1]+R[3]+W[1]+W[3],I=D?NaN:DZ(A.width,Y),y=V?NaN:DZ(A.height,j),m=K,b=G,u=z,f=q;if(D0(I))m=I,u=F0.Exactly;if(D0(y))b=y,f=F0.Exactly;if(m=L4(A,!0,m,Y,j),b=L4(A,!1,b,Y,j),Z.measureFunc&&Z.children.length===0){let a=u===F0.Undefined?NaN:Math.max(0,m-T),W0=f===F0.Undefined?NaN:Math.max(0,b-$);Wz++;let j0=Z.measureFunc(a,u,W0,f);Z.layout.width=u===F0.Exactly?m:L4(A,!0,(j0.width??0)+T,Y,j),Z.layout.height=f===F0.Exactly?b:L4(A,!1,(j0.height??0)+$,Y,j),Dz(Z,H),Hz(Z,K,G,z,q,Y,j,D,V,_);return}if(Z.children.length===0){Z.layout.width=u===F0.Exactly?m:L4(A,!0,T,Y,j),Z.layout.height=f===F0.Exactly?b:L4(A,!1,$,Y,j),Dz(Z,H),Hz(Z,K,G,z,q,Y,j,D,V,_);return}let w=A.flexDirection,i=rA(w),h=M6(w),l=h?m:b,s=h?b:m,n=h?u:f,N0=h?f:u,ZZ=h?T:$,u0=h?$:T,d0=D0(l)?Math.max(0,l-ZZ):NaN,p0=D0(s)?Math.max(0,s-u0):NaN,oZ=_B(A,h?f4.Column:f4.Row,d0),AZ=[],N7=[];TB(Z,AZ,N7);let JZ=D0(m)?m:NaN,_Z=D0(b)?b:NaN,NZ=A.flexWrap!==D8.NoWrap,q7=_B(A,h?f4.Row:f4.Column,p0);for(let a of AZ)a._flexBasis=JN(a,w,d0,p0,N0,JZ,_Z);let fZ=[];if(!NZ||!D0(d0)||AZ.length===0){for(let a of AZ)a._lineIndex=0;fZ.push(AZ)}else{let a=0,W0=0;for(let j0=0;j0<AZ.length;j0++){let YZ=AZ[j0],L0=L4(YZ.style,h,YZ._flexBasis,JZ,_Z),O0=Math.max(0,L0)+HK(YZ,w,JZ),_7=j0>a?oZ:0;if(j0>a&&W0+_7+O0>d0)fZ.push(AZ.slice(a,j0)),a=j0,W0=O0;else W0+=_7+O0;YZ._lineIndex=fZ.length}fZ.push(AZ.slice(a))}let x0=fZ.length,rZ=GN(Z,AZ),uZ=Array(x0),M7=Array(x0),g0=rZ?Array(x0).fill(0):[],c0=0,FZ=0;for(let a=0;a<x0;a++){let W0=fZ[a],j0=W0.length>1?oZ*(W0.length-1):0,YZ=j0;for(let $0 of W0)YZ+=$0._flexBasis+HK($0,w,JZ);let L0=d0;if(!D0(L0)){let $0=h?Y:j,I0=DZ(h?A.minWidth:A.minHeight,$0),a0=DZ(h?A.maxWidth:A.maxHeight,$0);if(D0(a0)&&YZ>a0-ZZ)L0=Math.max(0,a0-ZZ);else if(D0(I0)&&YZ<I0-ZZ)L0=Math.max(0,I0-ZZ)}QN(W0,L0,YZ,h,JZ,_Z);let O0=0;for(let $0 of W0){let I0=$0.style,a0=I0.alignSelf===V0.Auto?A.alignItems:I0.alignSelf,LZ=HK($0,i,JZ),q0=NaN,h0=F0.Undefined,zZ=DZ(h?I0.height:I0.width,h?_Z:JZ),O4=h?$4:E7,W7=h?A8:z4,lZ=$0._hasAutoMargin&&(w4(I0.margin,O4)||w4(I0.margin,W7));if(D0(zZ))q0=zZ,h0=F0.Exactly;else if(a0===V0.Stretch&&!lZ&&!NZ&&D0(p0)&&N0===F0.Exactly)q0=Math.max(0,p0-LZ),h0=F0.Exactly;else if(!NZ&&D0(p0))q0=Math.max(0,p0-LZ),h0=F0.AtMost;let xZ=h?$0._mainSize:q0,$Z=h?q0:$0._mainSize;N6($0,xZ,$Z,h?F0.Exactly:h0,h?h0:F0.Exactly,JZ,_Z,H,h,!h),$0._crossSize=h?$0.layout.height:$0.layout.width,O0=Math.max(O0,$0._crossSize+LZ)}if(rZ){let $0=0,I0=0;for(let a0 of W0){if(RB(Z,a0)!==V0.Baseline)continue;let LZ=J5(a0.style.margin,$4,JZ),q0=J5(a0.style.margin,A8,JZ),h0=_z(a0)+LZ,zZ=a0.layout.height+LZ+q0-h0;if(h0>$0)$0=h0;if(zZ>I0)I0=zZ}if(g0[a]=$0,$0+I0>O0)O0=$0+I0}let _7=Az(w),F7=Nz(w),w7=j0;for(let $0 of W0){let I0=$0.layout.margin;w7+=$0._mainSize+I0[_7]+I0[F7]}uZ[a]=w7,M7[a]=O0,c0=Math.max(c0,w7),FZ+=O0}let vZ=x0>1?q7*(x0-1):0;FZ+=vZ;let pZ=A.overflow===c5.Scroll,S4=c0+ZZ,t7=n===F0.Exactly?l:n===F0.AtMost&&pZ?Math.max(Math.min(l,S4),ZZ):NZ&&x0>1&&n===F0.AtMost?l:S4,o=FZ+u0,H0=N0===F0.Exactly?s:N0===F0.AtMost&&pZ?Math.max(Math.min(s,o),u0):o;if(Z.layout.width=L4(A,!0,h?t7:H0,Y,j),Z.layout.height=L4(A,!1,h?H0:t7,Y,j),Dz(Z,H),Hz(Z,K,G,z,q,Y,j,D,V,_),!H)return;let z0=(h?Z.layout.width:Z.layout.height)-ZZ,g=(h?Z.layout.height:Z.layout.width)-u0,E0=Az(w),e=Nz(w),Z0=h?$4:E7,J0=h?A8:z4,t0=WB(w),M0=h?Z.layout.width:Z.layout.height,b0=R[Z0]+W[Z0],BZ=q7,cZ=g-FZ;if(x0===1&&!NZ&&!rZ)M7[0]=g;else{let a=Math.max(0,cZ);switch(A.alignContent){case V0.FlexStart:break;case V0.Center:b0+=cZ/2;break;case V0.FlexEnd:b0+=cZ;break;case V0.Stretch:if(x0>0&&a>0){let W0=a/x0;for(let j0=0;j0<x0;j0++)M7[j0]+=W0}break;case V0.SpaceBetween:if(x0>1)BZ+=a/(x0-1);break;case V0.SpaceAround:if(x0>0)BZ+=a/x0,b0+=a/x0/2;break;case V0.SpaceEvenly:if(x0>0)BZ+=a/(x0+1),b0+=a/(x0+1);break;default:break}}let WZ=A.flexWrap===D8.WrapReverse,eZ=h?Z.layout.height:Z.layout.width,T0=b0;for(let a=0;a<x0;a++){let W0=fZ[a],j0=M7[a],YZ=uZ[a],L0=W0.length;if(NZ||N0!==F0.Exactly)for(let q0 of W0){let h0=q0.style,zZ=h0.alignSelf===V0.Auto?A.alignItems:h0.alignSelf,O4=D0(DZ(h?h0.height:h0.width,h?_Z:JZ)),W7=q0._hasAutoMargin&&(w4(h0.margin,Z0)||w4(h0.margin,J0));if(zZ===V0.Stretch&&!O4&&!W7){let lZ=HK(q0,i,JZ),xZ=Math.max(0,j0-lZ);if(q0._crossSize!==xZ){let $Z=h?q0._mainSize:xZ,H4=h?xZ:q0._mainSize;N6(q0,$Z,H4,F0.Exactly,F0.Exactly,JZ,_Z,H,h,!h),q0._crossSize=xZ}}}let O0=R[E0]+W[E0],_7=oZ,F7=0;for(let q0 of W0){if(!q0._hasAutoMargin)continue;if(w4(q0.style.margin,E0))F7++;if(w4(q0.style.margin,e))F7++}let w7=z0-YZ,$0=Math.max(0,w7),I0=F7>0&&$0>0?$0/F7:0;if(F7===0)switch(A.justifyContent){case G7.FlexStart:break;case G7.Center:O0+=w7/2;break;case G7.FlexEnd:O0+=w7;break;case G7.SpaceBetween:if(L0>1)_7+=$0/(L0-1);break;case G7.SpaceAround:if(L0>0)_7+=$0/L0,O0+=$0/L0/2;break;case G7.SpaceEvenly:if(L0>0)_7+=$0/(L0+1),O0+=$0/(L0+1);break}let a0=WZ?eZ-T0-j0:T0,LZ=O0;for(let q0 of W0){let h0=q0.style.margin,zZ=q0.layout.margin,O4=!1,W7=!1,lZ=!1,xZ=!1,$Z,H4,C7,S7;if(q0._hasAutoMargin)O4=w4(h0,E0),W7=w4(h0,e),lZ=w4(h0,Z0),xZ=w4(h0,J0),$Z=O4?I0:zZ[E0],H4=W7?I0:zZ[e],C7=lZ?0:zZ[Z0],S7=xZ?0:zZ[J0];else $Z=zZ[E0],H4=zZ[e],C7=zZ[Z0],S7=zZ[J0];let v4=t0?M0-(LZ+$Z)-q0._mainSize:LZ+$Z,k7=q0.style.alignSelf===V0.Auto?A.alignItems:q0.style.alignSelf,RZ=a0+C7,g7=j0-q0._crossSize-C7-S7;if(lZ&&xZ)RZ+=Math.max(0,g7)/2;else if(lZ)RZ+=Math.max(0,g7);else if(xZ);else switch(k7){case V0.FlexStart:case V0.Stretch:if(WZ)RZ+=g7;break;case V0.Center:RZ+=g7/2;break;case V0.FlexEnd:if(!WZ)RZ+=g7;break;case V0.Baseline:if(rZ)RZ=a0+g0[a]-_z(q0);break;default:break}let x4=0,v7=0;if(q0._hasPosition){let o7=DZ(R4(q0.style.position,E7),JZ),j5=DZ(R4(q0.style.position,z4),JZ),b8=DZ(R4(q0.style.position,$4),JZ),b4=DZ(R4(q0.style.position,A8),JZ);x4=D0(o7)?o7:D0(j5)?-j5:0,v7=D0(b8)?b8:D0(b4)?-b4:0}if(h)q0.layout.left=v4+x4,q0.layout.top=RZ+v7;else q0.layout.left=RZ+x4,q0.layout.top=v4+v7;LZ+=q0._mainSize+$Z+H4+_7}T0+=j0+BZ}for(let a of N7)ZN(Z,a,Z.layout.width,Z.layout.height,R,W)}function ZN(Z,K,G,z,q,Y){let j=K.style,H=R4(j.position,E7),D=R4(j.position,z4),V=R4(j.position,$4),A=R4(j.position,A8),M=DZ(H,G),F=DZ(D,G),_=DZ(V,z),R=DZ(A,z),W=G-Y[0]-Y[2],E=z-Y[1]-Y[3],T=DZ(j.width,W),$=DZ(j.height,E);if(!D0(T)&&D0(M)&&D0(F))T=W-M-F;if(!D0($)&&D0(_)&&D0(R))$=E-_-R;N6(K,T,$,D0(T)?F0.Exactly:F0.Undefined,D0($)?F0.Exactly:F0.Undefined,W,E,!0);let I=J5(j.margin,E7,G),y=J5(j.margin,$4,G),m=J5(j.margin,z4,G),b=J5(j.margin,A8,G),u=Z.style.flexDirection,f=WB(u),w=M6(u),i=Z.style.flexWrap===D8.WrapReverse,h=j.alignSelf===V0.Auto?Z.style.alignItems:j.alignSelf,l;if(D0(M))l=Y[0]+M+I;else if(D0(F))l=G-Y[2]-F-K.layout.width-m;else if(w){let n=q[0]+Y[0],N0=G-q[2]-Y[2];l=f?N0-K.layout.width-m:NB(Z.style.justifyContent,n,N0,K.layout.width)+I}else l=MB(h,q[0]+Y[0],G-q[2]-Y[2],K.layout.width,i)+I;let s;if(D0(_))s=Y[1]+_+y;else if(D0(R))s=z-Y[3]-R-K.layout.height-b;else if(w)s=MB(h,q[1]+Y[1],z-q[3]-Y[3],K.layout.height,i)+y;else{let n=q[1]+Y[1],N0=z-q[3]-Y[3];s=f?N0-K.layout.height-b:NB(Z.style.justifyContent,n,N0,K.layout.height)+y}K.layout.left=l,K.layout.top=s}function NB(Z,K,G,z){switch(Z){case G7.Center:return K+(G-K-z)/2;case G7.FlexEnd:return G-z;default:return K}}function MB(Z,K,G,z,q){switch(Z){case V0.Center:return K+(G-K-z)/2;case V0.FlexEnd:return q?K:G-z;default:return q?G-z:K}}function JN(Z,K,G,z,q,Y,j){if((Z._fbGen===Q5||!Z.isDirty_)&&Z._fbCrossMode===q&&D7(Z._fbOwnerW,Y)&&D7(Z._fbOwnerH,j)&&D7(Z._fbAvailMain,G)&&D7(Z._fbAvailCross,z))return Z._fbBasis;let D=Z.style,V=M6(K),A=DZ(D.flexBasis,G);if(D0(A)){let w=Math.max(0,A);return Z._fbBasis=w,Z._fbOwnerW=Y,Z._fbOwnerH=j,Z._fbAvailMain=G,Z._fbAvailCross=z,Z._fbCrossMode=q,Z._fbGen=Q5,w}let M=V?D.width:D.height,_=DZ(M,V?Y:j);if(D0(_)){let w=Math.max(0,_);return Z._fbBasis=w,Z._fbOwnerW=Y,Z._fbOwnerH=j,Z._fbAvailMain=G,Z._fbAvailCross=z,Z._fbCrossMode=q,Z._fbGen=Q5,w}let R=V?D.height:D.width,E=DZ(R,V?j:Y),T=D0(E)?F0.Exactly:F0.Undefined;if(!D0(E)&&D0(z))E=z,T=q===F0.Exactly&&KN(Z)?F0.Exactly:F0.AtMost;let $=NaN,I=F0.Undefined;if(V&&D0(G)&&$B(Z))$=G,I=F0.AtMost;N6(Z,V?$:E,V?E:$,V?I:T,V?T:I,Y,j,!1);let f=V?Z.layout.width:Z.layout.height;return Z._fbBasis=f,Z._fbOwnerW=Y,Z._fbOwnerH=j,Z._fbAvailMain=G,Z._fbAvailCross=z,Z._fbCrossMode=q,Z._fbGen=Q5,f}function $B(Z){if(Z.measureFunc)return!0;for(let K of Z.children)if($B(K))return!0;return!1}function QN(Z,K,G,z,q,Y){let j=Z.length,H=Array(j).fill(!1),D=D0(K)?K-G:0;for(let A=0;A<j;A++){let M=Z[A],F=L4(M.style,z,M._flexBasis,q,Y);if(!D0(K)||(D>=0?M.style.flexGrow===0:M.style.flexShrink===0))M._mainSize=Math.max(0,F),H[A]=!0;else M._mainSize=M._flexBasis}let V=Array(j);for(let A=0;A<=j;A++){let M=0,F=0,_=0,R=0;for(let $=0;$<j;$++){let I=Z[$];if(H[$])M+=I._mainSize-I._flexBasis;else F+=I.style.flexGrow,_+=I.style.flexShrink*I._flexBasis,R++}if(R===0)break;let W=D-M;if(W>0&&F>0&&F<1){let $=D*F;if($<W)W=$}else if(W<0&&_>0){let $=0;for(let I=0;I<j;I++)if(!H[I])$+=Z[I].style.flexShrink;if($<1){let I=D*$;if(I>W)W=I}}let E=0;for(let $=0;$<j;$++){if(H[$])continue;let I=Z[$],y=I._flexBasis;if(W>0&&F>0)y+=W*I.style.flexGrow/F;else if(W<0&&_>0)y+=W*(I.style.flexShrink*I._flexBasis)/_;V[$]=y;let m=Math.max(0,L4(I.style,z,y,q,Y));I._mainSize=m,E+=m-y}if(E===0)break;let T=!1;for(let $=0;$<j;$++){if(H[$])continue;let I=Z[$]._mainSize-V[$];if(E>0&&I>0||E<0&&I<0)H[$]=!0,T=!0}if(!T)break}}function KN(Z){let K=Z.parent;if(!K)return!1;return(Z.style.alignSelf===V0.Auto?K.style.alignItems:Z.style.alignSelf)===V0.Stretch}function RB(Z,K){return K.style.alignSelf===V0.Auto?Z.style.alignItems:K.style.alignSelf}function _z(Z){let K=null;for(let G of Z.children){if(G._lineIndex>0)break;if(G.style.positionType===l5.Absolute)continue;if(G.style.display===H8.None)continue;if(RB(Z,G)===V0.Baseline||G.isReferenceBaseline_){K=G;break}if(K===null)K=G}if(K===null)return Z.layout.height;return _z(K)+K.layout.top}function GN(Z,K){if(!M6(Z.style.flexDirection))return!1;if(Z.style.alignItems===V0.Baseline)return!0;for(let G of K)if(G.style.alignSelf===V0.Baseline)return!0;return!1}function HK(Z,K,G){if(!Z._hasMargin)return 0;let z=J5(Z.style.margin,Az(K),G),q=J5(Z.style.margin,Nz(K),G);return z+q}function _B(Z,K,G){let z=Z.gap[K];if(z.unit===tZ.Undefined)z=Z.gap[f4.All];let q=DZ(z,G);return D0(q)?Math.max(0,q):0}function L4(Z,K,G,z,q){let Y=K?Z.minWidth:Z.minHeight,j=K?Z.maxWidth:Z.maxHeight,H=Y.unit,D=j.unit;if(H===0&&D===0)return G;let V=K?z:q,A=G;if(D===1){if(A>j.value)A=j.value}else if(D===2){let M=j.value*V/100;if(M===M&&A>M)A=M}if(H===1){if(A<Y.value)A=Y.value}else if(H===2){let M=Y.value*V/100;if(M===M&&A<M)A=M}return A}function EB(Z){for(let K of Z.children)K.layout.left=0,K.layout.top=0,K.layout.width=0,K.layout.height=0,K.isDirty_=!0,K._hasL=!1,K._hasM=!1,EB(K)}function TB(Z,K,G){for(let z of Z.children){let q=z.style.display;if(q===H8.None)z.layout.left=0,z.layout.top=0,z.layout.width=0,z.layout.height=0,EB(z);else if(q===H8.Contents)z.layout.left=0,z.layout.top=0,z.layout.width=0,z.layout.height=0,TB(z,K,G);else if(z.style.positionType===l5.Absolute)G.push(z);else K.push(z)}}function CB(Z,K,G,z){if(K===0)return;let q=Z.layout,Y=q.left,j=q.top,H=q.width,D=q.height,V=G+Y,A=z+j,M=Z.measureFunc!==null;q.left=oJ(Y,K,!1,M),q.top=oJ(j,K,!1,M);let F=V+H,_=A+D,R=!FB(H*K),W=!FB(D*K);q.width=oJ(F,K,M&&R,M&&!R)-oJ(V,K,!1,M),q.height=oJ(_,K,M&&W,M&&!W)-oJ(A,K,!1,M);for(let E of Z.children)CB(E,K,V,A)}function FB(Z){let K=Z-Math.floor(Z);return K<0.0001||K>0.9999}function oJ(Z,K,G,z){let q=Z*K,Y=q-Math.floor(q);if(Y<0)Y+=1;if(Y<0.0001)q=Math.floor(q);else if(Y>0.9999)q=Math.ceil(q);else if(G)q=Math.ceil(q);else if(z)q=Math.floor(q);else q=Math.floor(q)+(Y>=0.4999?1:0);return q/K}function W4(Z){if(Z===void 0)return i7;if(Z==="auto")return V8;if(typeof Z==="number")return Number.isFinite(Z)?VK(Z):i7;if(typeof Z==="string"&&Z.endsWith("%"))return X4(parseFloat(Z));let K=parseFloat(Z);return isNaN(K)?i7:VK(K)}function Vz(Z){switch(Z){case r0.Left:case r0.Start:return E7;case r0.Top:return $4;case r0.Right:case r0.End:return z4;case r0.Bottom:return A8;default:return E7}}var i7,V8,E7=0,$4=1,z4=2,A8=3,eA,OK=4,Q5=0,Fz=0,Wz=0,A6=0,Mz=0,XN,SB;var NK=P(()=>{DB();i7={unit:tZ.Undefined,value:NaN},V8={unit:tZ.Auto,value:NaN};eA=LB();XN={Config:{create:LB,destroy(){}},Node:{create:(Z)=>new DK(Z),createDefault:()=>new DK,createWithConfig:(Z)=>new DK(Z),destroy(){}}},SB=XN});function zN(){if(process.env.TERM_PROGRAM==="vscode"&&K0.level===2)return K0.level=3,!0;return!1}function UN(){if(process.env.CLAUDE_CODE_TMUX_TRUECOLOR)return!1;if(process.env.TMUX&&K0.level>2)return K0.level=2,!0;return!1}function rJ(Z,K){let G=Z;if(K.inverse)G=K0.inverse(G);if(K.strikethrough)G=K0.strikethrough(G);if(K.underline)G=K0.underline(G);if(K.italic)G=K0.italic(G);if(K.bold)G=K0.bold(G);if(K.dim)G=K0.dim(G);if(K.color)G=K5(G,K.color,"foreground");if(K.backgroundColor)G=K5(G,K.backgroundColor,"background");return G}function MK(Z,K){if(!K)return Z;return K5(Z,K,"foreground")}var EL,TL,qN,BN,K5=(Z,K,G)=>{if(!K)return Z;if(K.startsWith("ansi:"))switch(K.substring(5)){case"black":return G==="foreground"?K0.black(Z):K0.bgBlack(Z);case"red":return G==="foreground"?K0.red(Z):K0.bgRed(Z);case"green":return G==="foreground"?K0.green(Z):K0.bgGreen(Z);case"yellow":return G==="foreground"?K0.yellow(Z):K0.bgYellow(Z);case"blue":return G==="foreground"?K0.blue(Z):K0.bgBlue(Z);case"magenta":return G==="foreground"?K0.magenta(Z):K0.bgMagenta(Z);case"cyan":return G==="foreground"?K0.cyan(Z):K0.bgCyan(Z);case"white":return G==="foreground"?K0.white(Z):K0.bgWhite(Z);case"blackBright":return G==="foreground"?K0.blackBright(Z):K0.bgBlackBright(Z);case"redBright":return G==="foreground"?K0.redBright(Z):K0.bgRedBright(Z);case"greenBright":return G==="foreground"?K0.greenBright(Z):K0.bgGreenBright(Z);case"yellowBright":return G==="foreground"?K0.yellowBright(Z):K0.bgYellowBright(Z);case"blueBright":return G==="foreground"?K0.blueBright(Z):K0.bgBlueBright(Z);case"magentaBright":return G==="foreground"?K0.magentaBright(Z):K0.bgMagentaBright(Z);case"cyanBright":return G==="foreground"?K0.cyanBright(Z):K0.bgCyanBright(Z);case"whiteBright":return G==="foreground"?K0.whiteBright(Z):K0.bgWhiteBright(Z)}if(K.startsWith("#"))return G==="foreground"?K0.hex(K)(Z):K0.bgHex(K)(Z);if(K.startsWith("ansi256")){let z=BN.exec(K);if(!z)return Z;let q=Number(z[1]);return G==="foreground"?K0.ansi256(q)(Z):K0.bgAnsi256(q)(Z)}if(K.startsWith("rgb")){let z=qN.exec(K);if(!z)return Z;let q=Number(z[1]),Y=Number(z[2]),j=Number(z[3]);return G==="foreground"?K0.rgb(q,Y,j)(Z):K0.bgRgb(q,Y,j)(Z)}return Z};var _6=P(()=>{Lz();EL=zN(),TL=UN(),qN=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,BN=/^ansi256\(\s?(\d+)\s?\)$/});import{spawnSync as YN}from"child_process";function jN(){if(!process.env.TMUX)return!1;if(process.env.TERM_PROGRAM!=="iTerm.app")return!1;let Z=process.env.TERM??"";return!Z.startsWith("screen")&&!Z.startsWith("tmux")}function ON(){if(F6=jN(),F6)return;if(!process.env.TMUX)return;if(process.env.TERM_PROGRAM)return;let Z;try{Z=YN("tmux",["display-message","-p","#{client_control_mode}"],{encoding:"utf8",timeout:2000})}catch{return}if(Z.status!==0)return;F6=Z.stdout.trim()==="1"}function yB(){if(F6===void 0)ON();return F6??!1}function HN(){if(IB(process.env.CLAUDE_CODE_NO_FLICKER))return!1;if(N8(process.env.CLAUDE_CODE_NO_FLICKER))return!0;if(yB()){if(!vB)vB=!0,KZ("fullscreen disabled: tmux -CC (iTerm2 integration mode) detected · set CLAUDE_CODE_NO_FLICKER=1 to override");return!1}let Z=QK().flickerFreeMode;if(Z!==void 0)return Z;return!1}function yL(){return!N8(process.env.CLAUDE_CODE_DISABLE_MOUSE)}function mB(){return N8(process.env.CLAUDE_CODE_DISABLE_MOUSE_CLICKS)}function DN(){return bB()&&HN()}async function mL(){if(!process.env.TMUX)return null;if(!DN()||yB())return null;if(xB)return null;xB=!0;let{stdout:Z,code:K}=await U4("tmux",["show","-Av","mouse"],{useCwd:!1,timeout:2000});if(K!==0||Z.trim()==="on")return null;return"tmux detected · scroll with PgUp/PgDn · or add 'set -g mouse on' to ~/.tmux.conf for wheel scroll"}var vB=!1,xB=!1,F6;var fB=P(()=>{$z();o3();G5();Rz();PB()});function eJ(Z){let K="ground",G="",z=Z?.x10Mouse??!1;return{feed(q){let Y=wB(q,K,G,!1,z);return K=Y.state.state,G=Y.state.buffer,Y.tokens},flush(){let q=wB("",K,G,!0,z);return K=q.state.state,G=q.state.buffer,q.tokens},reset(){K="ground",G=""},buffer(){return G}}}function wB(Z,K,G,z,q){let Y=[],j={state:K,buffer:""},H=G+Z,D=0,V=0,A=0,M=()=>{if(D>V){let _=H.slice(V,D);if(_)Y.push({type:"text",value:_})}V=D},F=(_)=>{if(_)Y.push({type:"sequence",value:_});j.state="ground",V=D};while(D<H.length){let _=H.charCodeAt(D);switch(j.state){case"ground":if(_===k4.ESC)M(),A=D,j.state="escape",D++;else D++;break;case"escape":if(_===M8.CSI)j.state="csi",D++;else if(_===M8.OSC)j.state="osc",D++;else if(_===M8.DCS)j.state="dcs",D++;else if(_===M8.APC)j.state="apc",D++;else if(_===79)j.state="ss3",D++;else if(_K(_))j.state="escapeIntermediate",D++;else if(Ez(_))D++,F(H.slice(A,D));else if(_===k4.ESC)F(H.slice(A,D)),A=D,j.state="escape",D++;else j.state="ground",V=A;break;case"escapeIntermediate":if(_K(_))D++;else if(Ez(_))D++,F(H.slice(A,D));else j.state="ground",V=A;break;case"csi":if(q&&_===77&&D-A===2&&(D+1>=H.length||H.charCodeAt(D+1)>=32)&&(D+2>=H.length||H.charCodeAt(D+2)>=32)&&(D+3>=H.length||H.charCodeAt(D+3)>=32)){if(D+4<=H.length)D+=4,F(H.slice(A,D));else D=H.length;break}if(gB(_))D++,F(H.slice(A,D));else if(kB(_)||_K(_))D++;else j.state="ground",V=A;break;case"ss3":if(_>=64&&_<=126)D++,F(H.slice(A,D));else j.state="ground",V=A;break;case"osc":if(_===k4.BEL)D++,F(H.slice(A,D));else if(_===k4.ESC&&D+1<H.length&&H.charCodeAt(D+1)===M8.ST)D+=2,F(H.slice(A,D));else D++;break;case"dcs":case"apc":if(_===k4.BEL)D++,F(H.slice(A,D));else if(_===k4.ESC&&D+1<H.length&&H.charCodeAt(D+1)===M8.ST)D+=2,F(H.slice(A,D));else D++;break}}if(j.state==="ground")M();else if(z){let _=H.slice(A);if(_)Y.push({type:"sequence",value:_});j.state="ground"}else j.buffer=H.slice(A);return{tokens:Y,state:j}}var FK=P(()=>{W6();_8()});import{Buffer as VN}from"buffer";function hB(Z){return{kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,super:!1,sequence:Z,raw:Z,isPasted:!0}}function CN(Z){if(Z.startsWith("\x1B[")){let K;if(K=FN.exec(Z))return{type:"decrpm",mode:parseInt(K[1],10),status:parseInt(K[2],10)};if(K=WN.exec(Z))return{type:"da1",params:uB(K[1])};if(K=LN.exec(Z))return{type:"da2",params:uB(K[1])};if(K=$N.exec(Z))return{type:"kittyKeyboard",flags:parseInt(K[1],10)};if(K=RN.exec(Z))return{type:"cursorPosition",row:parseInt(K[1],10),col:parseInt(K[2],10)};return null}if(Z.startsWith("\x1B]")){let K=EN.exec(Z);if(K)return{type:"osc",code:parseInt(K[1],10),data:K[2]}}if(Z.startsWith("\x1BP")){let K=TN.exec(Z);if(K)return{type:"xtversion",name:K[1]}}return null}function uB(Z){if(!Z)return[];return Z.split(";").map((K)=>parseInt(K,10))}function SN(Z){if(VN.isBuffer(Z))if(Z[0]>127&&Z[1]===void 0)return Z[0]-=128,"\x1B"+String(Z);else return String(Z);else if(Z!==void 0&&typeof Z!=="string")return String(Z);else if(!Z)return"";else return Z}function nB(Z,K=""){let G=K===null,z=G?"":SN(K),q=Z._tokenizer??eJ({x10Mouse:!0}),Y=G?q.flush():q.feed(z),j=[],H=Z.mode==="IN_PASTE",D=Z.pasteBuffer;for(let A of Y)if(A.type==="sequence")if(A.value===dB)H=!0,D="";else if(A.value===aB)j.push(hB(D)),H=!1,D="";else if(H)D+=A.value;else{let M=CN(A.value);if(M)j.push({kind:"response",sequence:A.value,response:M});else{let F=lB(A.value);if(F)j.push(F);else j.push(Tz(A.value))}}else if(A.type==="text")if(H)D+=A.value;else if(/^\[<\d+;\d+;\d+[Mm]$/.test(A.value)||/^\[M[\x60-\x7f][\x20-\uffff]{2}$/.test(A.value)){let M="\x1B"+A.value,F=lB(M);j.push(F??Tz(M))}else j.push(Tz(A.value));if(G&&H&&D)j.push(hB(D)),H=!1,D="";let V={mode:H?"IN_PASTE":"NORMAL",incomplete:q.buffer(),pasteBuffer:D,_tokenizer:q};return[j,V]}function pB(Z){let K=Math.max(Z,1)-1;return{shift:!!(K&1),meta:!!(K&2),ctrl:!!(K&4),super:!!(K&8)}}function bN(Z){return Z>=57344&&Z<=63743||Z>=983040&&Z<=1048573||Z>=1048576&&Z<=1114109}function cB(Z){switch(Z){case 9:return"tab";case 13:return"return";case 27:return"escape";case 32:return"space";case 127:return"backspace";case 57399:return"0";case 57400:return"1";case 57401:return"2";case 57402:return"3";case 57403:return"4";case 57404:return"5";case 57405:return"6";case 57406:return"7";case 57407:return"8";case 57408:return"9";case 57409:return".";case 57410:return"/";case 57411:return"*";case 57412:return"-";case 57413:return"+";case 57414:return"return";case 57415:return"=";default:if(Z>=32&&Z<=126)return String.fromCharCode(Z).toLowerCase();if(Z>31&&Z!==127&&(Z<128||Z>159)&&Z<=1114111&&(Z<55296||Z>57343)&&!bN(Z))return String.fromCodePoint(Z);return}}function lB(Z){let K=iB.exec(Z);if(!K)return null;let G=parseInt(K[1],10);if((G&64)!==0)return null;return{kind:"mouse",button:G,action:K[4]==="M"?"press":"release",col:parseInt(K[2],10),row:parseInt(K[3],10),sequence:Z}}function Tz(Z=""){let K,G={kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,super:!1,sequence:Z,raw:Z,isPasted:!1};G.sequence=G.sequence||Z||G.name;let z;if(z=MN.exec(Z)){let q=parseInt(z[1],10),Y=z[2]?parseInt(z[2],10):1,j=pB(Y);return{kind:"key",name:cB(q),fn:!1,ctrl:j.ctrl,meta:j.meta,shift:j.shift,option:!1,super:j.super,sequence:Z,raw:Z,isPasted:!1}}if(z=_N.exec(Z)){let q=pB(parseInt(z[1],10));return{kind:"key",name:cB(parseInt(z[2],10)),fn:!1,ctrl:q.ctrl,meta:q.meta,shift:q.shift,option:!1,super:q.super,sequence:Z,raw:Z,isPasted:!1}}if(z=iB.exec(Z)){let q=parseInt(z[1],10);if((q&67)===64)return q4(Z,"wheelup",!1);if((q&67)===65)return q4(Z,"wheeldown",!1);return q4(Z,"mouse",!1)}if(Z.length===6&&Z.startsWith("\x1B[M")){let q=Z.charCodeAt(3)-32;if((q&67)===64)return q4(Z,"wheelup",!1);if((q&67)===65)return q4(Z,"wheeldown",!1);return q4(Z,"mouse",!1)}if(Z==="\r")G.raw=void 0,G.name="return";else if(Z===`
|
|
1
|
+
import{CV as mj,HV as __}from"./cli-0.1.13-nwt2jc8b.mjs";import{IV as q_,KV as d1,NV as B_}from"./cli-0.1.13-wxdmc1dd.mjs";import{wX as Q0,xX as e6,yX as m0}from"./cli-0.1.13-ck28msre.mjs";import{zX as n0}from"./cli-0.1.13-79vtnprb.mjs";import{$0 as aj,D0 as k4,E0 as C4,F0 as c4,G0 as qQ,H0 as M8,I0 as Ez,J0 as W6,K0 as kB,L0 as _K,M0 as gB,N0 as HQ,O0 as qZ,P0 as OH,Q0 as HH,R0 as yU,S0 as r2,T0 as vU,U0 as UJ,V0 as AQ,W0 as kG,X0 as e2,Y0 as cj,Z0 as lj,_0 as dj,a1 as dB,b1 as aB,c1 as Pj,d1 as yj,e1 as Z9,f1 as zJ,g1 as J9,h1 as Q9,i1 as _8,j1 as Zj,l1 as U_}from"./cli-0.1.13-0zpmhn2j.mjs";import{L5 as lO,M5 as K0,N5 as Lz}from"./cli-0.1.13-v6z41645.mjs";import{Z6 as IF,_6 as PF}from"./cli-0.1.13-cyj5snev.mjs";import{$7 as XF,L_ as DQ,Mba as t3,N_ as c1,Pba as QK,S7 as L8,X7 as M1,_7 as gO,d8 as U4,f8 as PB,gca as o3}from"./cli-0.1.13-dag38tkx.mjs";import{Bfa as eN,Cfa as mY,Dfa as fY,Efa as pY,Ffa as wY,Gfa as UQ,Hfa as U1,Ifa as X7,Jfa as KQ}from"./cli-0.1.13-gd3nndc7.mjs";import{jga as bG,pga as GO}from"./cli-0.1.13-xde08pkt.mjs";import{oha as KZ,rha as G5}from"./cli-0.1.13-144gn3fd.mjs";import{Bha as N8,Cha as IB,Lha as Rz}from"./cli-0.1.13-1g6bgaa6.mjs";import{Oia as UB,Pia as hA,Xja as Ij,Yja as kO,bla as bB,gna as $z}from"./cli-0.1.13-52f40ba4.mjs";import{jna as ZB,kna as yA,pna as p5,qna as Bz}from"./cli-0.1.13-xv6wh44y.mjs";import{Tna as U0,Vna as g5,Xna as P}from"./cli-0.1.13-bj67mp7n.mjs";var R7=g5((fW,l3)=>{var RA=U0(n0()),XA=Object.create,r9=Object.defineProperty,zA=Object.getOwnPropertyDescriptor,UA=Object.getOwnPropertyNames,qA=Object.getPrototypeOf,BA=Object.prototype.hasOwnProperty,YA=(Z,K)=>{for(var G in K)r9(Z,G,{get:K[G],enumerable:!0})},p3=(Z,K,G,z)=>{if(K&&typeof K==="object"||typeof K==="function"){for(let q of UA(K))if(!BA.call(Z,q)&&q!==G)r9(Z,q,{get:()=>K[q],enumerable:!(z=zA(K,q))||z.enumerable})}return Z},jA=(Z,K,G)=>(G=Z!=null?XA(qA(Z)):{},p3(K||!Z||!Z.__esModule?r9(G,"default",{value:Z,enumerable:!0}):G,Z)),OA=(Z)=>p3(r9({},"__esModule",{value:!0}),Z),c3={};YA(c3,{$dispatcherGuard:()=>AA,$makeReadOnly:()=>MA,$reset:()=>NA,$structuralCheck:()=>$A,c:()=>VA,clearRenderCounterRegistry:()=>_A,renderCounterRegistry:()=>j6,useRenderCounter:()=>LA});l3.exports=OA(c3);var nJ=jA(RA),{useRef:HA,useEffect:DA,isValidElement:iJ}=nJ,g3,Kz=(g3=nJ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?g3:nJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gz=Symbol.for("react.memo_cache_sentinel"),h3,VA=typeof((h3=nJ.__COMPILER_RUNTIME)==null?void 0:h3.c)==="function"?nJ.__COMPILER_RUNTIME.c:function(K){return nJ.useMemo(()=>{let G=Array(K);for(let z=0;z<K;z++)G[z]=Gz;return G[Gz]=!0,G},[])},o9={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach((Z)=>{o9[Z]=()=>{throw Error(`[React] Unexpected React hook call (${Z}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var Y6=null;o9.useMemoCache=(Z)=>{if(Y6==null)throw Error("React Compiler internal invariant violation: unexpected null dispatcher");else return Y6.useMemoCache(Z)};function t9(Z){return Kz.ReactCurrentDispatcher.current=Z,Kz.ReactCurrentDispatcher.current}var sJ=[];function AA(Z){let K=Kz.ReactCurrentDispatcher.current;if(Z===0){if(sJ.push(K),sJ.length===1)Y6=K;if(K===o9)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");t9(o9)}else if(Z===1){let G=sJ.pop();if(G==null)throw Error("React Compiler internal error: unexpected null in guard stack");if(sJ.length===0)Y6=null;t9(G)}else if(Z===2)sJ.push(K),t9(Y6);else if(Z===3){let G=sJ.pop();if(G==null)throw Error("React Compiler internal error: unexpected null in guard stack");t9(G)}else throw Error("React Compiler internal error: unreachable block"+Z)}function NA(Z){for(let K=0;K<Z.length;K++)Z[K]=Gz}function MA(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var j6=new Map;function _A(){for(let Z of j6.values())Z.forEach((K)=>{K.count=0})}function FA(Z,K){let G=j6.get(Z);if(G==null)G=new Set,j6.set(Z,G);G.add(K)}function WA(Z,K){let G=j6.get(Z);if(G==null)return;G.delete(K)}function LA(Z){let K=HA(null);if(K.current!=null)K.current.count+=1;DA(()=>{if(K.current==null){let G={count:0};FA(Z,G),K.current=G}return()=>{if(K.current!==null)WA(Z,K.current)}})}var u3=new Set;function $A(Z,K,G,z,q,Y){function j(V,A,M,F){let _=`${z}:${Y} [${q}] ${G}${M} changed from ${V} to ${A} at depth ${F}`;if(u3.has(_))return;u3.add(_),console.error(_)}let H=2;function D(V,A,M,F){if(F>H)return;else if(V===A)return;else if(typeof V!==typeof A)j(`type ${typeof V}`,`type ${typeof A}`,M,F);else if(typeof V==="object"){let _=Array.isArray(V),R=Array.isArray(A);if(V===null&&A!==null)j("null",`type ${typeof A}`,M,F);else if(A===null)j(`type ${typeof V}`,"null",M,F);else if(V instanceof Map)if(!(A instanceof Map))j("Map instance","other value",M,F);else if(V.size!==A.size)j(`Map instance with size ${V.size}`,`Map instance with size ${A.size}`,M,F);else for(let[W,E]of V)if(!A.has(W))j(`Map instance with key ${W}`,`Map instance without key ${W}`,M,F);else D(E,A.get(W),`${M}.get(${W})`,F+1);else if(A instanceof Map)j("other value","Map instance",M,F);else if(V instanceof Set){if(!(A instanceof Set))j("Set instance","other value",M,F);else if(V.size!==A.size)j(`Set instance with size ${V.size}`,`Set instance with size ${A.size}`,M,F);else for(let W of A)if(!V.has(W))j(`Set instance without element ${W}`,`Set instance with element ${W}`,M,F)}else if(A instanceof Set)j("other value","Set instance",M,F);else if(_||R)if(_!==R)j(`type ${_?"array":"object"}`,`type ${R?"array":"object"}`,M,F);else if(V.length!==A.length)j(`array with length ${V.length}`,`array with length ${A.length}`,M,F);else for(let W=0;W<V.length;W++)D(V[W],A[W],`${M}[${W}]`,F+1);else if(iJ(V)||iJ(A))if(iJ(V)!==iJ(A))j(`type ${iJ(V)?"React element":"object"}`,`type ${iJ(A)?"React element":"object"}`,M,F);else if(V.type!==A.type)j(`React element of type ${V.type}`,`React element of type ${A.type}`,M,F);else D(V.props,A.props,`[props of ${M}]`,F+1);else{for(let W in A)if(!(W in V))j(`object without key ${W}`,`object with key ${W}`,M,F);for(let W in V)if(!(W in A))j(`object with key ${W}`,`object without key ${W}`,M,F);else D(V[W],A[W],`${M}.${W}`,F+1)}}else if(typeof V==="function")return;else if(isNaN(V)||isNaN(A)){if(isNaN(V)!==isNaN(A))j(`${isNaN(V)?"NaN":"non-NaN value"}`,`${isNaN(A)?"NaN":"non-NaN value"}`,M,F)}else if(V!==A)j(V,A,M,F)}D(Z,K,"",0)}});class G4{_didStopImmediatePropagation=!1;didStopImmediatePropagation(){return this._didStopImmediatePropagation}stopImmediatePropagation(){this._didStopImmediatePropagation=!0}}var h5=()=>{};import{EventEmitter as EA}from"events";var tJ;var e9=P(()=>{h5();tJ=class tJ extends EA{constructor(){super();this.setMaxListeners(0)}emit(Z,...K){if(Z==="error")return super.emit(Z,...K);let G=this.rawListeners(Z);if(G.length===0)return!1;let z=K[0]instanceof G4?K[0]:null;for(let q of G)if(q.apply(this,K),z?.didStopImmediatePropagation())break;return!0}}});var d3,a3,u5;var ZK=P(()=>{e9();d3=U0(n0(),1),a3=d3.createContext({stdin:process.stdin,internal_eventEmitter:new tJ,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0,internal_querier:null});a3.displayName="InternalStdinContext";u5=a3});var i3,TA=()=>i3.useContext(u5),O6;var JK=P(()=>{ZK();i3=U0(n0(),1),O6=TA});function H6(){if(Xz===void 0)Xz=CA()??"dark";return Xz}function dW(Z){if(Z==="auto")return H6();return Z}function CA(){let Z=process.env.COLORFGBG;if(!Z)return;let K=Z.split(";"),G=K[K.length-1];if(G===void 0||G==="")return;let z=Number(G);if(!Number.isInteger(z)||z<0||z>15)return;return z<=6||z===8?"dark":"light"}var Xz;var s3=()=>{};function SA(){return QK().theme}function vA(Z){t3((K)=>({...K,theme:Z}))}function Uz({children:Z,initialState:K,onThemeSave:G=vA}){let[z,q]=f7.useState(K??SA),[Y,j]=f7.useState(null),[H,D]=f7.useState(()=>(K??z)==="auto"?H6():"dark"),V=Y??z,{internal_querier:A}=O6();f7.useEffect(()=>{},[V,A]);let M=V==="auto"?H:V,F=f7.useMemo(()=>({themeSetting:z,setThemeSetting:(_)=>{if(q(_),j(null),_==="auto")D(H6());G?.(_)},setPreviewTheme:(_)=>{if(j(_),_==="auto")D(H6())},savePreview:()=>{if(Y!==null)q(Y),j(null),G?.(Y)},cancelPreview:()=>{if(Y!==null)j(null)},currentTheme:M}),[z,Y,M,G]);return Q0(KK.Provider,{value:F,children:Z})}function D6(){let Z=zz.c(3),{currentTheme:K,setThemeSetting:G}=f7.useContext(KK),z;if(Z[0]!==K||Z[1]!==G)z=[K,G],Z[0]=K,Z[1]=G,Z[2]=z;else z=Z[2];return z}function xA(){return f7.useContext(KK).themeSetting}function bA(){let Z=zz.c(4),{setPreviewTheme:K,savePreview:G,cancelPreview:z}=f7.useContext(KK),q;if(Z[0]!==z||Z[1]!==G||Z[2]!==K)q={setPreviewTheme:K,savePreview:G,cancelPreview:z},Z[0]=z,Z[1]=G,Z[2]=K,Z[3]=q;else q=Z[3];return q}var zz,f7,n3="dark",KK;var V6=P(()=>{JK();o3();s3();m0();zz=U0(R7(),1),f7=U0(n0(),1),KK=f7.createContext({themeSetting:n3,setThemeSetting:()=>{},setPreviewTheme:()=>{},savePreview:()=>{},cancelPreview:()=>{},currentTheme:n3})});function qz(Z,{include:K,exclude:G}={}){let z=(q)=>{let Y=(j)=>typeof j==="string"?q===j:j.test(q);if(K)return K.some(Y);if(G)return!G.some(Y);return!0};for(let[q,Y]of IA(Z.constructor.prototype)){if(Y==="constructor"||!z(Y))continue;let j=Reflect.getOwnPropertyDescriptor(q,Y);if(j&&typeof j.value==="function")Z[Y]=Z[Y].bind(Z)}return Z}var IA=(Z)=>{let K=new Set;do for(let G of Reflect.ownKeys(Z))K.add([Z,G]);while((Z=Reflect.getPrototypeOf(Z))&&Z!==Object.prototype);return K};var r3=()=>{};function PA(){}var GK;var e3=P(()=>{GK=PA});var mA=function(){return ZB.Date.now()},XK;var JB=P(()=>{yA();XK=mA});function wA(Z){var K=Z.length;while(K--&&fA.test(Z.charAt(K)));return K}var fA,QB;var KB=P(()=>{fA=/\s/;QB=wA});function gA(Z){return Z?Z.slice(0,QB(Z)+1).replace(kA,""):Z}var kA,GB;var XB=P(()=>{KB();kA=/^\s+/;GB=gA});function dA(Z){if(typeof Z=="number")return Z;if(UB(Z))return zB;if(p5(Z)){var K=typeof Z.valueOf=="function"?Z.valueOf():Z;Z=p5(K)?K+"":K}if(typeof Z!="string")return Z===0?Z:+Z;Z=GB(Z);var G=pA.test(Z);return G||cA.test(Z)?lA(Z.slice(2),G?2:8):uA.test(Z)?zB:+Z}var zB=NaN,uA,pA,cA,lA,Yz;var qB=P(()=>{XB();Bz();hA();uA=/^[-+]0x[0-9a-f]+$/i,pA=/^0b[01]+$/i,cA=/^0o[0-7]+$/i,lA=parseInt;Yz=dA});function nA(Z,K,G){var z,q,Y,j,H,D,V=0,A=!1,M=!1,F=!0;if(typeof Z!="function")throw TypeError(aA);if(K=Yz(K)||0,p5(G))A=!!G.leading,M="maxWait"in G,Y=M?iA(Yz(G.maxWait)||0,K):Y,F="trailing"in G?!!G.trailing:F;function _(b){var u=z,f=q;return z=q=void 0,V=b,j=Z.apply(f,u),j}function R(b){return V=b,H=setTimeout(T,K),A?_(b):j}function W(b){var u=b-D,f=b-V,w=K-u;return M?sA(w,Y-f):w}function E(b){var u=b-D,f=b-V;return D===void 0||u>=K||u<0||M&&f>=Y}function T(){var b=XK();if(E(b))return $(b);H=setTimeout(T,W(b))}function $(b){if(H=void 0,F&&z)return _(b);return z=q=void 0,j}function I(){if(H!==void 0)clearTimeout(H);V=0,z=D=q=H=void 0}function y(){return H===void 0?j:$(XK())}function m(){var b=XK(),u=E(b);if(z=arguments,q=this,D=b,u){if(H===void 0)return R(D);if(M)return clearTimeout(H),H=setTimeout(T,K),_(D)}if(H===void 0)H=setTimeout(T,K);return j}return m.cancel=I,m.flush=y,m}var aA="Expected a function",iA,sA,BB;var YB=P(()=>{Bz();JB();qB();iA=Math.max,sA=Math.min;BB=nA});function oA(Z,K,G){var z=!0,q=!0;if(typeof Z!="function")throw TypeError(tA);if(p5(G))z="leading"in G?!!G.leading:z,q="trailing"in G?!!G.trailing:q;return BB(Z,K,{leading:z,maxWait:K,trailing:q})}var tA="Expected a function",jB;var OB=P(()=>{YB();Bz();jB=oA});var zK=8,UK=32,jz=2,qK=0;var BK=()=>{};var V0,YK,H8,r0,HB,TZ,f4,G7,F0,c5,l5,tZ,D8;var DB=P(()=>{V0={Auto:0,FlexStart:1,Center:2,FlexEnd:3,Stretch:4,Baseline:5,SpaceBetween:6,SpaceAround:7,SpaceEvenly:8},YK={Inherit:0,LTR:1,RTL:2},H8={Flex:0,None:1,Contents:2},r0={Left:0,Top:1,Right:2,Bottom:3,Start:4,End:5,Horizontal:6,Vertical:7,All:8},HB={None:0,StretchFlexBasis:1,AbsolutePositionWithoutInsetsExcludesPadding:2,AbsolutePercentAgainstInnerSize:4,All:2147483647,Classic:2147483646},TZ={Column:0,ColumnReverse:1,Row:2,RowReverse:3},f4={Column:0,Row:1,All:2},G7={FlexStart:0,Center:1,FlexEnd:2,SpaceBetween:3,SpaceAround:4,SpaceEvenly:5},F0={Undefined:0,Exactly:1,AtMost:2},c5={Visible:0,Hidden:1,Scroll:2},l5={Static:0,Relative:1,Absolute:2},tZ={Undefined:0,Point:1,Percent:2,Auto:3},D8={NoWrap:0,Wrap:1,WrapReverse:2}});function VK(Z){return{unit:tZ.Point,value:Z}}function X4(Z){return{unit:tZ.Percent,value:Z}}function DZ(Z,K){switch(Z.unit){case tZ.Point:return Z.value;case tZ.Percent:return isNaN(K)?NaN:Z.value*K/100;default:return NaN}}function D0(Z){return!isNaN(Z)}function D7(Z,K){return Z===K||Z!==Z&&K!==K}function VB(){return{direction:YK.Inherit,flexDirection:TZ.Column,justifyContent:G7.FlexStart,alignItems:V0.Stretch,alignSelf:V0.Auto,alignContent:V0.FlexStart,flexWrap:D8.NoWrap,overflow:c5.Visible,display:H8.Flex,positionType:l5.Relative,flexGrow:0,flexShrink:0,flexBasis:V8,margin:[,,,,,,,,,].fill(i7),padding:[,,,,,,,,,].fill(i7),border:[,,,,,,,,,].fill(i7),position:[,,,,,,,,,].fill(i7),gap:[,,,].fill(i7),width:V8,height:V8,minWidth:i7,minHeight:i7,maxWidth:i7,maxHeight:i7}}function J5(Z,K,G,z=!1){let q=Z[K];if(q.unit===tZ.Undefined)if(K===E7||K===z4)q=Z[r0.Horizontal];else q=Z[r0.Vertical];if(q.unit===tZ.Undefined)q=Z[r0.All];if(q.unit===tZ.Undefined){if(K===E7)q=Z[r0.Start];if(K===z4)q=Z[r0.End]}if(q.unit===tZ.Undefined)return 0;if(q.unit===tZ.Auto)return z?NaN:0;return DZ(q,G)}function R4(Z,K){let G=Z[K];if(G.unit===tZ.Undefined)if(K===E7||K===z4)G=Z[r0.Horizontal];else G=Z[r0.Vertical];if(G.unit===tZ.Undefined)G=Z[r0.All];if(G.unit===tZ.Undefined){if(K===E7)G=Z[r0.Start];if(K===z4)G=Z[r0.End]}return G}function w4(Z,K){return R4(Z,K).unit===tZ.Auto}function AB(Z){for(let K=0;K<9;K++)if(Z[K].unit===3)return!0;return!1}function jK(Z){for(let K=0;K<9;K++)if(Z[K].unit!==0)return!0;return!1}function Oz(Z,K,G){let z=Z[6],q=Z[7],Y=Z[8],j=Z[4],H=Z[5],D=isNaN(K)?NaN:K/100,V=Z[0];if(V.unit===0)V=z;if(V.unit===0)V=Y;if(V.unit===0)V=j;if(G[0]=V.unit===1?V.value:V.unit===2?V.value*D:0,V=Z[1],V.unit===0)V=q;if(V.unit===0)V=Y;if(G[1]=V.unit===1?V.value:V.unit===2?V.value*D:0,V=Z[2],V.unit===0)V=z;if(V.unit===0)V=Y;if(V.unit===0)V=H;if(G[2]=V.unit===1?V.value:V.unit===2?V.value*D:0,V=Z[3],V.unit===0)V=q;if(V.unit===0)V=Y;G[3]=V.unit===1?V.value:V.unit===2?V.value*D:0}function M6(Z){return Z===TZ.Row||Z===TZ.RowReverse}function WB(Z){return Z===TZ.RowReverse||Z===TZ.ColumnReverse}function rA(Z){return M6(Z)?TZ.Column:TZ.Row}function Az(Z){switch(Z){case TZ.Row:return E7;case TZ.RowReverse:return z4;case TZ.Column:return $4;case TZ.ColumnReverse:return A8}}function Nz(Z){switch(Z){case TZ.Row:return z4;case TZ.RowReverse:return E7;case TZ.Column:return A8;case TZ.ColumnReverse:return $4}}function LB(){let Z={pointScaleFactor:1,errata:HB.None,useWebDefaults:!1,free(){},isExperimentalFeatureEnabled(){return!1},setExperimentalFeatureEnabled(){},setPointScaleFactor(K){Z.pointScaleFactor=K},getErrata(){return Z.errata},setErrata(K){Z.errata=K},setUseWebDefaults(K){Z.useWebDefaults=K}};return Z}class DK{style;layout;parent;children;measureFunc;config;isDirty_;isReferenceBaseline_;_flexBasis=0;_mainSize=0;_crossSize=0;_lineIndex=0;_hasAutoMargin=!1;_hasPosition=!1;_hasPadding=!1;_hasBorder=!1;_hasMargin=!1;_lW=NaN;_lH=NaN;_lWM=0;_lHM=0;_lOW=NaN;_lOH=NaN;_lFW=!1;_lFH=!1;_lOutW=NaN;_lOutH=NaN;_hasL=!1;_mW=NaN;_mH=NaN;_mWM=0;_mHM=0;_mOW=NaN;_mOH=NaN;_mOutW=NaN;_mOutH=NaN;_hasM=!1;_fbBasis=NaN;_fbOwnerW=NaN;_fbOwnerH=NaN;_fbAvailMain=NaN;_fbAvailCross=NaN;_fbCrossMode=0;_fbGen=-1;_cIn=null;_cOut=null;_cGen=-1;_cN=0;_cWr=0;constructor(Z){this.style=VB(),this.layout={left:0,top:0,width:0,height:0,border:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0]},this.parent=null,this.children=[],this.measureFunc=null,this.config=Z??eA,this.isDirty_=!0,this.isReferenceBaseline_=!1,Mz++}insertChild(Z,K){Z.parent=this,this.children.splice(K,0,Z),this.markDirty()}removeChild(Z){let K=this.children.indexOf(Z);if(K>=0)this.children.splice(K,1),Z.parent=null,this.markDirty()}getChild(Z){return this.children[Z]}getChildCount(){return this.children.length}getParent(){return this.parent}free(){this.parent=null,this.children=[],this.measureFunc=null,this._cIn=null,this._cOut=null,Mz--}freeRecursive(){for(let Z of this.children)Z.freeRecursive();this.free()}reset(){this.style=VB(),this.children=[],this.parent=null,this.measureFunc=null,this.isDirty_=!0,this._hasAutoMargin=!1,this._hasPosition=!1,this._hasPadding=!1,this._hasBorder=!1,this._hasMargin=!1,this._hasL=!1,this._hasM=!1,this._cN=0,this._cWr=0,this._fbBasis=NaN}markDirty(){if(this.isDirty_=!0,this.parent&&!this.parent.isDirty_)this.parent.markDirty()}isDirty(){return this.isDirty_}hasNewLayout(){return!0}markLayoutSeen(){}setMeasureFunc(Z){this.measureFunc=Z,this.markDirty()}unsetMeasureFunc(){this.measureFunc=null,this.markDirty()}getComputedLeft(){return this.layout.left}getComputedTop(){return this.layout.top}getComputedWidth(){return this.layout.width}getComputedHeight(){return this.layout.height}getComputedRight(){let Z=this.parent;return Z?Z.layout.width-this.layout.left-this.layout.width:0}getComputedBottom(){let Z=this.parent;return Z?Z.layout.height-this.layout.top-this.layout.height:0}getComputedLayout(){return{left:this.layout.left,top:this.layout.top,right:this.getComputedRight(),bottom:this.getComputedBottom(),width:this.layout.width,height:this.layout.height}}getComputedBorder(Z){return this.layout.border[Vz(Z)]}getComputedPadding(Z){return this.layout.padding[Vz(Z)]}getComputedMargin(Z){return this.layout.margin[Vz(Z)]}setWidth(Z){this.style.width=W4(Z),this.markDirty()}setWidthPercent(Z){this.style.width=X4(Z),this.markDirty()}setWidthAuto(){this.style.width=V8,this.markDirty()}setHeight(Z){this.style.height=W4(Z),this.markDirty()}setHeightPercent(Z){this.style.height=X4(Z),this.markDirty()}setHeightAuto(){this.style.height=V8,this.markDirty()}setMinWidth(Z){this.style.minWidth=W4(Z),this.markDirty()}setMinWidthPercent(Z){this.style.minWidth=X4(Z),this.markDirty()}setMinHeight(Z){this.style.minHeight=W4(Z),this.markDirty()}setMinHeightPercent(Z){this.style.minHeight=X4(Z),this.markDirty()}setMaxWidth(Z){this.style.maxWidth=W4(Z),this.markDirty()}setMaxWidthPercent(Z){this.style.maxWidth=X4(Z),this.markDirty()}setMaxHeight(Z){this.style.maxHeight=W4(Z),this.markDirty()}setMaxHeightPercent(Z){this.style.maxHeight=X4(Z),this.markDirty()}setFlexDirection(Z){this.style.flexDirection=Z,this.markDirty()}setFlexGrow(Z){this.style.flexGrow=Z??0,this.markDirty()}setFlexShrink(Z){this.style.flexShrink=Z??0,this.markDirty()}setFlex(Z){if(Z===void 0||isNaN(Z))this.style.flexGrow=0,this.style.flexShrink=0;else if(Z>0)this.style.flexGrow=Z,this.style.flexShrink=1,this.style.flexBasis=VK(0);else if(Z<0)this.style.flexGrow=0,this.style.flexShrink=-Z;else this.style.flexGrow=0,this.style.flexShrink=0;this.markDirty()}setFlexBasis(Z){this.style.flexBasis=W4(Z),this.markDirty()}setFlexBasisPercent(Z){this.style.flexBasis=X4(Z),this.markDirty()}setFlexBasisAuto(){this.style.flexBasis=V8,this.markDirty()}setFlexWrap(Z){this.style.flexWrap=Z,this.markDirty()}setAlignItems(Z){this.style.alignItems=Z,this.markDirty()}setAlignSelf(Z){this.style.alignSelf=Z,this.markDirty()}setAlignContent(Z){this.style.alignContent=Z,this.markDirty()}setJustifyContent(Z){this.style.justifyContent=Z,this.markDirty()}setDisplay(Z){this.style.display=Z,this.markDirty()}getDisplay(){return this.style.display}setPositionType(Z){this.style.positionType=Z,this.markDirty()}setPosition(Z,K){this.style.position[Z]=W4(K),this._hasPosition=jK(this.style.position),this.markDirty()}setPositionPercent(Z,K){this.style.position[Z]=X4(K),this._hasPosition=!0,this.markDirty()}setPositionAuto(Z){this.style.position[Z]=V8,this._hasPosition=!0,this.markDirty()}setOverflow(Z){this.style.overflow=Z,this.markDirty()}setDirection(Z){this.style.direction=Z,this.markDirty()}setBoxSizing(Z){}setMargin(Z,K){let G=W4(K);if(this.style.margin[Z]=G,G.unit===tZ.Auto)this._hasAutoMargin=!0;else this._hasAutoMargin=AB(this.style.margin);this._hasMargin=this._hasAutoMargin||jK(this.style.margin),this.markDirty()}setMarginPercent(Z,K){this.style.margin[Z]=X4(K),this._hasAutoMargin=AB(this.style.margin),this._hasMargin=!0,this.markDirty()}setMarginAuto(Z){this.style.margin[Z]=V8,this._hasAutoMargin=!0,this._hasMargin=!0,this.markDirty()}setPadding(Z,K){this.style.padding[Z]=W4(K),this._hasPadding=jK(this.style.padding),this.markDirty()}setPaddingPercent(Z,K){this.style.padding[Z]=X4(K),this._hasPadding=!0,this.markDirty()}setBorder(Z,K){this.style.border[Z]=K===void 0?i7:VK(K),this._hasBorder=jK(this.style.border),this.markDirty()}setGap(Z,K){this.style.gap[Z]=W4(K),this.markDirty()}setGapPercent(Z,K){this.style.gap[Z]=X4(K),this.markDirty()}getFlexDirection(){return this.style.flexDirection}getJustifyContent(){return this.style.justifyContent}getAlignItems(){return this.style.alignItems}getAlignSelf(){return this.style.alignSelf}getAlignContent(){return this.style.alignContent}getFlexGrow(){return this.style.flexGrow}getFlexShrink(){return this.style.flexShrink}getFlexBasis(){return this.style.flexBasis}getFlexWrap(){return this.style.flexWrap}getWidth(){return this.style.width}getHeight(){return this.style.height}getOverflow(){return this.style.overflow}getPositionType(){return this.style.positionType}getDirection(){return this.style.direction}copyStyle(Z){}setDirtiedFunc(Z){}unsetDirtiedFunc(){}setIsReferenceBaseline(Z){this.isReferenceBaseline_=Z,this.markDirty()}isReferenceBaseline(){return this.isReferenceBaseline_}setAspectRatio(Z){}getAspectRatio(){return NaN}setAlwaysFormsContainingBlock(Z){}calculateLayout(Z,K,G){Fz=0,Wz=0,A6=0,Q5++;let z=Z===void 0?NaN:Z,q=K===void 0?NaN:K;N6(this,z,q,D0(z)?F0.Exactly:F0.Undefined,D0(q)?F0.Exactly:F0.Undefined,z,q,!0);let Y=this.layout.margin,j=DZ(R4(this.style.position,E7),D0(z)?z:0),H=DZ(R4(this.style.position,$4),D0(z)?z:0);this.layout.left=Y[E7]+(D0(j)?j:0),this.layout.top=Y[$4]+(D0(H)?H:0),CB(this,this.config.pointScaleFactor,0,0)}}function Hz(Z,K,G,z,q,Y,j,H,D,V){if(!Z._cIn)Z._cIn=new Float64Array(OK*8),Z._cOut=new Float64Array(OK*2);if(V&&Z._cGen!==Q5)Z._cN=0,Z._cWr=0;let A=Z._cWr++%OK;if(Z._cN<OK)Z._cN=Z._cWr;let M=A*8,F=Z._cIn;F[M]=K,F[M+1]=G,F[M+2]=z,F[M+3]=q,F[M+4]=Y,F[M+5]=j,F[M+6]=H?1:0,F[M+7]=D?1:0,Z._cOut[A*2]=Z.layout.width,Z._cOut[A*2+1]=Z.layout.height,Z._cGen=Q5}function Dz(Z,K){if(K)Z._lOutW=Z.layout.width,Z._lOutH=Z.layout.height;else Z._mOutW=Z.layout.width,Z._mOutH=Z.layout.height}function AK(){return{visited:Fz,measured:Wz,cacheHits:A6,live:Mz}}function N6(Z,K,G,z,q,Y,j,H,D=!1,V=!1){Fz++;let{style:A,layout:M}=Z,F=Z._cGen===Q5&&!H;if(!Z.isDirty_||F){if(!Z.isDirty_&&Z._hasL&&Z._lWM===z&&Z._lHM===q&&Z._lFW===D&&Z._lFH===V&&D7(Z._lW,K)&&D7(Z._lH,G)&&D7(Z._lOW,Y)&&D7(Z._lOH,j)){A6++,M.width=Z._lOutW,M.height=Z._lOutH;return}if(Z._cN>0&&(F||!Z.isDirty_)){let a=Z._cIn;for(let W0=0;W0<Z._cN;W0++){let j0=W0*8;if(a[j0+2]===z&&a[j0+3]===q&&a[j0+6]===(D?1:0)&&a[j0+7]===(V?1:0)&&D7(a[j0],K)&&D7(a[j0+1],G)&&D7(a[j0+4],Y)&&D7(a[j0+5],j)){M.width=Z._cOut[W0*2],M.height=Z._cOut[W0*2+1],A6++;return}}}if(!Z.isDirty_&&!H&&Z._hasM&&Z._mWM===z&&Z._mHM===q&&D7(Z._mW,K)&&D7(Z._mH,G)&&D7(Z._mOW,Y)&&D7(Z._mOH,j)){M.width=Z._mOutW,M.height=Z._mOutH,A6++;return}}let _=Z.isDirty_;if(H){if(Z._lW=K,Z._lH=G,Z._lWM=z,Z._lHM=q,Z._lOW=Y,Z._lOH=j,Z._lFW=D,Z._lFH=V,Z._hasL=!0,Z.isDirty_=!1,_)Z._hasM=!1}else if(Z._mW=K,Z._mH=G,Z._mWM=z,Z._mHM=q,Z._mOW=Y,Z._mOH=j,Z._hasM=!0,_)Z._hasL=!1;let{padding:R,border:W,margin:E}=M;if(Z._hasPadding)Oz(A.padding,Y,R);else R[0]=R[1]=R[2]=R[3]=0;if(Z._hasBorder)Oz(A.border,Y,W);else W[0]=W[1]=W[2]=W[3]=0;if(Z._hasMargin)Oz(A.margin,Y,E);else E[0]=E[1]=E[2]=E[3]=0;let T=R[0]+R[2]+W[0]+W[2],$=R[1]+R[3]+W[1]+W[3],I=D?NaN:DZ(A.width,Y),y=V?NaN:DZ(A.height,j),m=K,b=G,u=z,f=q;if(D0(I))m=I,u=F0.Exactly;if(D0(y))b=y,f=F0.Exactly;if(m=L4(A,!0,m,Y,j),b=L4(A,!1,b,Y,j),Z.measureFunc&&Z.children.length===0){let a=u===F0.Undefined?NaN:Math.max(0,m-T),W0=f===F0.Undefined?NaN:Math.max(0,b-$);Wz++;let j0=Z.measureFunc(a,u,W0,f);Z.layout.width=u===F0.Exactly?m:L4(A,!0,(j0.width??0)+T,Y,j),Z.layout.height=f===F0.Exactly?b:L4(A,!1,(j0.height??0)+$,Y,j),Dz(Z,H),Hz(Z,K,G,z,q,Y,j,D,V,_);return}if(Z.children.length===0){Z.layout.width=u===F0.Exactly?m:L4(A,!0,T,Y,j),Z.layout.height=f===F0.Exactly?b:L4(A,!1,$,Y,j),Dz(Z,H),Hz(Z,K,G,z,q,Y,j,D,V,_);return}let w=A.flexDirection,i=rA(w),h=M6(w),l=h?m:b,s=h?b:m,n=h?u:f,N0=h?f:u,ZZ=h?T:$,u0=h?$:T,d0=D0(l)?Math.max(0,l-ZZ):NaN,p0=D0(s)?Math.max(0,s-u0):NaN,oZ=_B(A,h?f4.Column:f4.Row,d0),AZ=[],N7=[];TB(Z,AZ,N7);let JZ=D0(m)?m:NaN,_Z=D0(b)?b:NaN,NZ=A.flexWrap!==D8.NoWrap,q7=_B(A,h?f4.Row:f4.Column,p0);for(let a of AZ)a._flexBasis=JN(a,w,d0,p0,N0,JZ,_Z);let fZ=[];if(!NZ||!D0(d0)||AZ.length===0){for(let a of AZ)a._lineIndex=0;fZ.push(AZ)}else{let a=0,W0=0;for(let j0=0;j0<AZ.length;j0++){let YZ=AZ[j0],L0=L4(YZ.style,h,YZ._flexBasis,JZ,_Z),O0=Math.max(0,L0)+HK(YZ,w,JZ),_7=j0>a?oZ:0;if(j0>a&&W0+_7+O0>d0)fZ.push(AZ.slice(a,j0)),a=j0,W0=O0;else W0+=_7+O0;YZ._lineIndex=fZ.length}fZ.push(AZ.slice(a))}let x0=fZ.length,rZ=GN(Z,AZ),uZ=Array(x0),M7=Array(x0),g0=rZ?Array(x0).fill(0):[],c0=0,FZ=0;for(let a=0;a<x0;a++){let W0=fZ[a],j0=W0.length>1?oZ*(W0.length-1):0,YZ=j0;for(let $0 of W0)YZ+=$0._flexBasis+HK($0,w,JZ);let L0=d0;if(!D0(L0)){let $0=h?Y:j,I0=DZ(h?A.minWidth:A.minHeight,$0),a0=DZ(h?A.maxWidth:A.maxHeight,$0);if(D0(a0)&&YZ>a0-ZZ)L0=Math.max(0,a0-ZZ);else if(D0(I0)&&YZ<I0-ZZ)L0=Math.max(0,I0-ZZ)}QN(W0,L0,YZ,h,JZ,_Z);let O0=0;for(let $0 of W0){let I0=$0.style,a0=I0.alignSelf===V0.Auto?A.alignItems:I0.alignSelf,LZ=HK($0,i,JZ),q0=NaN,h0=F0.Undefined,zZ=DZ(h?I0.height:I0.width,h?_Z:JZ),O4=h?$4:E7,W7=h?A8:z4,lZ=$0._hasAutoMargin&&(w4(I0.margin,O4)||w4(I0.margin,W7));if(D0(zZ))q0=zZ,h0=F0.Exactly;else if(a0===V0.Stretch&&!lZ&&!NZ&&D0(p0)&&N0===F0.Exactly)q0=Math.max(0,p0-LZ),h0=F0.Exactly;else if(!NZ&&D0(p0))q0=Math.max(0,p0-LZ),h0=F0.AtMost;let xZ=h?$0._mainSize:q0,$Z=h?q0:$0._mainSize;N6($0,xZ,$Z,h?F0.Exactly:h0,h?h0:F0.Exactly,JZ,_Z,H,h,!h),$0._crossSize=h?$0.layout.height:$0.layout.width,O0=Math.max(O0,$0._crossSize+LZ)}if(rZ){let $0=0,I0=0;for(let a0 of W0){if(RB(Z,a0)!==V0.Baseline)continue;let LZ=J5(a0.style.margin,$4,JZ),q0=J5(a0.style.margin,A8,JZ),h0=_z(a0)+LZ,zZ=a0.layout.height+LZ+q0-h0;if(h0>$0)$0=h0;if(zZ>I0)I0=zZ}if(g0[a]=$0,$0+I0>O0)O0=$0+I0}let _7=Az(w),F7=Nz(w),w7=j0;for(let $0 of W0){let I0=$0.layout.margin;w7+=$0._mainSize+I0[_7]+I0[F7]}uZ[a]=w7,M7[a]=O0,c0=Math.max(c0,w7),FZ+=O0}let vZ=x0>1?q7*(x0-1):0;FZ+=vZ;let pZ=A.overflow===c5.Scroll,S4=c0+ZZ,t7=n===F0.Exactly?l:n===F0.AtMost&&pZ?Math.max(Math.min(l,S4),ZZ):NZ&&x0>1&&n===F0.AtMost?l:S4,o=FZ+u0,H0=N0===F0.Exactly?s:N0===F0.AtMost&&pZ?Math.max(Math.min(s,o),u0):o;if(Z.layout.width=L4(A,!0,h?t7:H0,Y,j),Z.layout.height=L4(A,!1,h?H0:t7,Y,j),Dz(Z,H),Hz(Z,K,G,z,q,Y,j,D,V,_),!H)return;let z0=(h?Z.layout.width:Z.layout.height)-ZZ,g=(h?Z.layout.height:Z.layout.width)-u0,E0=Az(w),e=Nz(w),Z0=h?$4:E7,J0=h?A8:z4,t0=WB(w),M0=h?Z.layout.width:Z.layout.height,b0=R[Z0]+W[Z0],BZ=q7,cZ=g-FZ;if(x0===1&&!NZ&&!rZ)M7[0]=g;else{let a=Math.max(0,cZ);switch(A.alignContent){case V0.FlexStart:break;case V0.Center:b0+=cZ/2;break;case V0.FlexEnd:b0+=cZ;break;case V0.Stretch:if(x0>0&&a>0){let W0=a/x0;for(let j0=0;j0<x0;j0++)M7[j0]+=W0}break;case V0.SpaceBetween:if(x0>1)BZ+=a/(x0-1);break;case V0.SpaceAround:if(x0>0)BZ+=a/x0,b0+=a/x0/2;break;case V0.SpaceEvenly:if(x0>0)BZ+=a/(x0+1),b0+=a/(x0+1);break;default:break}}let WZ=A.flexWrap===D8.WrapReverse,eZ=h?Z.layout.height:Z.layout.width,T0=b0;for(let a=0;a<x0;a++){let W0=fZ[a],j0=M7[a],YZ=uZ[a],L0=W0.length;if(NZ||N0!==F0.Exactly)for(let q0 of W0){let h0=q0.style,zZ=h0.alignSelf===V0.Auto?A.alignItems:h0.alignSelf,O4=D0(DZ(h?h0.height:h0.width,h?_Z:JZ)),W7=q0._hasAutoMargin&&(w4(h0.margin,Z0)||w4(h0.margin,J0));if(zZ===V0.Stretch&&!O4&&!W7){let lZ=HK(q0,i,JZ),xZ=Math.max(0,j0-lZ);if(q0._crossSize!==xZ){let $Z=h?q0._mainSize:xZ,H4=h?xZ:q0._mainSize;N6(q0,$Z,H4,F0.Exactly,F0.Exactly,JZ,_Z,H,h,!h),q0._crossSize=xZ}}}let O0=R[E0]+W[E0],_7=oZ,F7=0;for(let q0 of W0){if(!q0._hasAutoMargin)continue;if(w4(q0.style.margin,E0))F7++;if(w4(q0.style.margin,e))F7++}let w7=z0-YZ,$0=Math.max(0,w7),I0=F7>0&&$0>0?$0/F7:0;if(F7===0)switch(A.justifyContent){case G7.FlexStart:break;case G7.Center:O0+=w7/2;break;case G7.FlexEnd:O0+=w7;break;case G7.SpaceBetween:if(L0>1)_7+=$0/(L0-1);break;case G7.SpaceAround:if(L0>0)_7+=$0/L0,O0+=$0/L0/2;break;case G7.SpaceEvenly:if(L0>0)_7+=$0/(L0+1),O0+=$0/(L0+1);break}let a0=WZ?eZ-T0-j0:T0,LZ=O0;for(let q0 of W0){let h0=q0.style.margin,zZ=q0.layout.margin,O4=!1,W7=!1,lZ=!1,xZ=!1,$Z,H4,C7,S7;if(q0._hasAutoMargin)O4=w4(h0,E0),W7=w4(h0,e),lZ=w4(h0,Z0),xZ=w4(h0,J0),$Z=O4?I0:zZ[E0],H4=W7?I0:zZ[e],C7=lZ?0:zZ[Z0],S7=xZ?0:zZ[J0];else $Z=zZ[E0],H4=zZ[e],C7=zZ[Z0],S7=zZ[J0];let v4=t0?M0-(LZ+$Z)-q0._mainSize:LZ+$Z,k7=q0.style.alignSelf===V0.Auto?A.alignItems:q0.style.alignSelf,RZ=a0+C7,g7=j0-q0._crossSize-C7-S7;if(lZ&&xZ)RZ+=Math.max(0,g7)/2;else if(lZ)RZ+=Math.max(0,g7);else if(xZ);else switch(k7){case V0.FlexStart:case V0.Stretch:if(WZ)RZ+=g7;break;case V0.Center:RZ+=g7/2;break;case V0.FlexEnd:if(!WZ)RZ+=g7;break;case V0.Baseline:if(rZ)RZ=a0+g0[a]-_z(q0);break;default:break}let x4=0,v7=0;if(q0._hasPosition){let o7=DZ(R4(q0.style.position,E7),JZ),j5=DZ(R4(q0.style.position,z4),JZ),b8=DZ(R4(q0.style.position,$4),JZ),b4=DZ(R4(q0.style.position,A8),JZ);x4=D0(o7)?o7:D0(j5)?-j5:0,v7=D0(b8)?b8:D0(b4)?-b4:0}if(h)q0.layout.left=v4+x4,q0.layout.top=RZ+v7;else q0.layout.left=RZ+x4,q0.layout.top=v4+v7;LZ+=q0._mainSize+$Z+H4+_7}T0+=j0+BZ}for(let a of N7)ZN(Z,a,Z.layout.width,Z.layout.height,R,W)}function ZN(Z,K,G,z,q,Y){let j=K.style,H=R4(j.position,E7),D=R4(j.position,z4),V=R4(j.position,$4),A=R4(j.position,A8),M=DZ(H,G),F=DZ(D,G),_=DZ(V,z),R=DZ(A,z),W=G-Y[0]-Y[2],E=z-Y[1]-Y[3],T=DZ(j.width,W),$=DZ(j.height,E);if(!D0(T)&&D0(M)&&D0(F))T=W-M-F;if(!D0($)&&D0(_)&&D0(R))$=E-_-R;N6(K,T,$,D0(T)?F0.Exactly:F0.Undefined,D0($)?F0.Exactly:F0.Undefined,W,E,!0);let I=J5(j.margin,E7,G),y=J5(j.margin,$4,G),m=J5(j.margin,z4,G),b=J5(j.margin,A8,G),u=Z.style.flexDirection,f=WB(u),w=M6(u),i=Z.style.flexWrap===D8.WrapReverse,h=j.alignSelf===V0.Auto?Z.style.alignItems:j.alignSelf,l;if(D0(M))l=Y[0]+M+I;else if(D0(F))l=G-Y[2]-F-K.layout.width-m;else if(w){let n=q[0]+Y[0],N0=G-q[2]-Y[2];l=f?N0-K.layout.width-m:NB(Z.style.justifyContent,n,N0,K.layout.width)+I}else l=MB(h,q[0]+Y[0],G-q[2]-Y[2],K.layout.width,i)+I;let s;if(D0(_))s=Y[1]+_+y;else if(D0(R))s=z-Y[3]-R-K.layout.height-b;else if(w)s=MB(h,q[1]+Y[1],z-q[3]-Y[3],K.layout.height,i)+y;else{let n=q[1]+Y[1],N0=z-q[3]-Y[3];s=f?N0-K.layout.height-b:NB(Z.style.justifyContent,n,N0,K.layout.height)+y}K.layout.left=l,K.layout.top=s}function NB(Z,K,G,z){switch(Z){case G7.Center:return K+(G-K-z)/2;case G7.FlexEnd:return G-z;default:return K}}function MB(Z,K,G,z,q){switch(Z){case V0.Center:return K+(G-K-z)/2;case V0.FlexEnd:return q?K:G-z;default:return q?G-z:K}}function JN(Z,K,G,z,q,Y,j){if((Z._fbGen===Q5||!Z.isDirty_)&&Z._fbCrossMode===q&&D7(Z._fbOwnerW,Y)&&D7(Z._fbOwnerH,j)&&D7(Z._fbAvailMain,G)&&D7(Z._fbAvailCross,z))return Z._fbBasis;let D=Z.style,V=M6(K),A=DZ(D.flexBasis,G);if(D0(A)){let w=Math.max(0,A);return Z._fbBasis=w,Z._fbOwnerW=Y,Z._fbOwnerH=j,Z._fbAvailMain=G,Z._fbAvailCross=z,Z._fbCrossMode=q,Z._fbGen=Q5,w}let M=V?D.width:D.height,_=DZ(M,V?Y:j);if(D0(_)){let w=Math.max(0,_);return Z._fbBasis=w,Z._fbOwnerW=Y,Z._fbOwnerH=j,Z._fbAvailMain=G,Z._fbAvailCross=z,Z._fbCrossMode=q,Z._fbGen=Q5,w}let R=V?D.height:D.width,E=DZ(R,V?j:Y),T=D0(E)?F0.Exactly:F0.Undefined;if(!D0(E)&&D0(z))E=z,T=q===F0.Exactly&&KN(Z)?F0.Exactly:F0.AtMost;let $=NaN,I=F0.Undefined;if(V&&D0(G)&&$B(Z))$=G,I=F0.AtMost;N6(Z,V?$:E,V?E:$,V?I:T,V?T:I,Y,j,!1);let f=V?Z.layout.width:Z.layout.height;return Z._fbBasis=f,Z._fbOwnerW=Y,Z._fbOwnerH=j,Z._fbAvailMain=G,Z._fbAvailCross=z,Z._fbCrossMode=q,Z._fbGen=Q5,f}function $B(Z){if(Z.measureFunc)return!0;for(let K of Z.children)if($B(K))return!0;return!1}function QN(Z,K,G,z,q,Y){let j=Z.length,H=Array(j).fill(!1),D=D0(K)?K-G:0;for(let A=0;A<j;A++){let M=Z[A],F=L4(M.style,z,M._flexBasis,q,Y);if(!D0(K)||(D>=0?M.style.flexGrow===0:M.style.flexShrink===0))M._mainSize=Math.max(0,F),H[A]=!0;else M._mainSize=M._flexBasis}let V=Array(j);for(let A=0;A<=j;A++){let M=0,F=0,_=0,R=0;for(let $=0;$<j;$++){let I=Z[$];if(H[$])M+=I._mainSize-I._flexBasis;else F+=I.style.flexGrow,_+=I.style.flexShrink*I._flexBasis,R++}if(R===0)break;let W=D-M;if(W>0&&F>0&&F<1){let $=D*F;if($<W)W=$}else if(W<0&&_>0){let $=0;for(let I=0;I<j;I++)if(!H[I])$+=Z[I].style.flexShrink;if($<1){let I=D*$;if(I>W)W=I}}let E=0;for(let $=0;$<j;$++){if(H[$])continue;let I=Z[$],y=I._flexBasis;if(W>0&&F>0)y+=W*I.style.flexGrow/F;else if(W<0&&_>0)y+=W*(I.style.flexShrink*I._flexBasis)/_;V[$]=y;let m=Math.max(0,L4(I.style,z,y,q,Y));I._mainSize=m,E+=m-y}if(E===0)break;let T=!1;for(let $=0;$<j;$++){if(H[$])continue;let I=Z[$]._mainSize-V[$];if(E>0&&I>0||E<0&&I<0)H[$]=!0,T=!0}if(!T)break}}function KN(Z){let K=Z.parent;if(!K)return!1;return(Z.style.alignSelf===V0.Auto?K.style.alignItems:Z.style.alignSelf)===V0.Stretch}function RB(Z,K){return K.style.alignSelf===V0.Auto?Z.style.alignItems:K.style.alignSelf}function _z(Z){let K=null;for(let G of Z.children){if(G._lineIndex>0)break;if(G.style.positionType===l5.Absolute)continue;if(G.style.display===H8.None)continue;if(RB(Z,G)===V0.Baseline||G.isReferenceBaseline_){K=G;break}if(K===null)K=G}if(K===null)return Z.layout.height;return _z(K)+K.layout.top}function GN(Z,K){if(!M6(Z.style.flexDirection))return!1;if(Z.style.alignItems===V0.Baseline)return!0;for(let G of K)if(G.style.alignSelf===V0.Baseline)return!0;return!1}function HK(Z,K,G){if(!Z._hasMargin)return 0;let z=J5(Z.style.margin,Az(K),G),q=J5(Z.style.margin,Nz(K),G);return z+q}function _B(Z,K,G){let z=Z.gap[K];if(z.unit===tZ.Undefined)z=Z.gap[f4.All];let q=DZ(z,G);return D0(q)?Math.max(0,q):0}function L4(Z,K,G,z,q){let Y=K?Z.minWidth:Z.minHeight,j=K?Z.maxWidth:Z.maxHeight,H=Y.unit,D=j.unit;if(H===0&&D===0)return G;let V=K?z:q,A=G;if(D===1){if(A>j.value)A=j.value}else if(D===2){let M=j.value*V/100;if(M===M&&A>M)A=M}if(H===1){if(A<Y.value)A=Y.value}else if(H===2){let M=Y.value*V/100;if(M===M&&A<M)A=M}return A}function EB(Z){for(let K of Z.children)K.layout.left=0,K.layout.top=0,K.layout.width=0,K.layout.height=0,K.isDirty_=!0,K._hasL=!1,K._hasM=!1,EB(K)}function TB(Z,K,G){for(let z of Z.children){let q=z.style.display;if(q===H8.None)z.layout.left=0,z.layout.top=0,z.layout.width=0,z.layout.height=0,EB(z);else if(q===H8.Contents)z.layout.left=0,z.layout.top=0,z.layout.width=0,z.layout.height=0,TB(z,K,G);else if(z.style.positionType===l5.Absolute)G.push(z);else K.push(z)}}function CB(Z,K,G,z){if(K===0)return;let q=Z.layout,Y=q.left,j=q.top,H=q.width,D=q.height,V=G+Y,A=z+j,M=Z.measureFunc!==null;q.left=oJ(Y,K,!1,M),q.top=oJ(j,K,!1,M);let F=V+H,_=A+D,R=!FB(H*K),W=!FB(D*K);q.width=oJ(F,K,M&&R,M&&!R)-oJ(V,K,!1,M),q.height=oJ(_,K,M&&W,M&&!W)-oJ(A,K,!1,M);for(let E of Z.children)CB(E,K,V,A)}function FB(Z){let K=Z-Math.floor(Z);return K<0.0001||K>0.9999}function oJ(Z,K,G,z){let q=Z*K,Y=q-Math.floor(q);if(Y<0)Y+=1;if(Y<0.0001)q=Math.floor(q);else if(Y>0.9999)q=Math.ceil(q);else if(G)q=Math.ceil(q);else if(z)q=Math.floor(q);else q=Math.floor(q)+(Y>=0.4999?1:0);return q/K}function W4(Z){if(Z===void 0)return i7;if(Z==="auto")return V8;if(typeof Z==="number")return Number.isFinite(Z)?VK(Z):i7;if(typeof Z==="string"&&Z.endsWith("%"))return X4(parseFloat(Z));let K=parseFloat(Z);return isNaN(K)?i7:VK(K)}function Vz(Z){switch(Z){case r0.Left:case r0.Start:return E7;case r0.Top:return $4;case r0.Right:case r0.End:return z4;case r0.Bottom:return A8;default:return E7}}var i7,V8,E7=0,$4=1,z4=2,A8=3,eA,OK=4,Q5=0,Fz=0,Wz=0,A6=0,Mz=0,XN,SB;var NK=P(()=>{DB();i7={unit:tZ.Undefined,value:NaN},V8={unit:tZ.Auto,value:NaN};eA=LB();XN={Config:{create:LB,destroy(){}},Node:{create:(Z)=>new DK(Z),createDefault:()=>new DK,createWithConfig:(Z)=>new DK(Z),destroy(){}}},SB=XN});function zN(){if(process.env.TERM_PROGRAM==="vscode"&&K0.level===2)return K0.level=3,!0;return!1}function UN(){if(process.env.CLAUDE_CODE_TMUX_TRUECOLOR)return!1;if(process.env.TMUX&&K0.level>2)return K0.level=2,!0;return!1}function rJ(Z,K){let G=Z;if(K.inverse)G=K0.inverse(G);if(K.strikethrough)G=K0.strikethrough(G);if(K.underline)G=K0.underline(G);if(K.italic)G=K0.italic(G);if(K.bold)G=K0.bold(G);if(K.dim)G=K0.dim(G);if(K.color)G=K5(G,K.color,"foreground");if(K.backgroundColor)G=K5(G,K.backgroundColor,"background");return G}function MK(Z,K){if(!K)return Z;return K5(Z,K,"foreground")}var EL,TL,qN,BN,K5=(Z,K,G)=>{if(!K)return Z;if(K.startsWith("ansi:"))switch(K.substring(5)){case"black":return G==="foreground"?K0.black(Z):K0.bgBlack(Z);case"red":return G==="foreground"?K0.red(Z):K0.bgRed(Z);case"green":return G==="foreground"?K0.green(Z):K0.bgGreen(Z);case"yellow":return G==="foreground"?K0.yellow(Z):K0.bgYellow(Z);case"blue":return G==="foreground"?K0.blue(Z):K0.bgBlue(Z);case"magenta":return G==="foreground"?K0.magenta(Z):K0.bgMagenta(Z);case"cyan":return G==="foreground"?K0.cyan(Z):K0.bgCyan(Z);case"white":return G==="foreground"?K0.white(Z):K0.bgWhite(Z);case"blackBright":return G==="foreground"?K0.blackBright(Z):K0.bgBlackBright(Z);case"redBright":return G==="foreground"?K0.redBright(Z):K0.bgRedBright(Z);case"greenBright":return G==="foreground"?K0.greenBright(Z):K0.bgGreenBright(Z);case"yellowBright":return G==="foreground"?K0.yellowBright(Z):K0.bgYellowBright(Z);case"blueBright":return G==="foreground"?K0.blueBright(Z):K0.bgBlueBright(Z);case"magentaBright":return G==="foreground"?K0.magentaBright(Z):K0.bgMagentaBright(Z);case"cyanBright":return G==="foreground"?K0.cyanBright(Z):K0.bgCyanBright(Z);case"whiteBright":return G==="foreground"?K0.whiteBright(Z):K0.bgWhiteBright(Z)}if(K.startsWith("#"))return G==="foreground"?K0.hex(K)(Z):K0.bgHex(K)(Z);if(K.startsWith("ansi256")){let z=BN.exec(K);if(!z)return Z;let q=Number(z[1]);return G==="foreground"?K0.ansi256(q)(Z):K0.bgAnsi256(q)(Z)}if(K.startsWith("rgb")){let z=qN.exec(K);if(!z)return Z;let q=Number(z[1]),Y=Number(z[2]),j=Number(z[3]);return G==="foreground"?K0.rgb(q,Y,j)(Z):K0.bgRgb(q,Y,j)(Z)}return Z};var _6=P(()=>{Lz();EL=zN(),TL=UN(),qN=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,BN=/^ansi256\(\s?(\d+)\s?\)$/});import{spawnSync as YN}from"child_process";function jN(){if(!process.env.TMUX)return!1;if(process.env.TERM_PROGRAM!=="iTerm.app")return!1;let Z=process.env.TERM??"";return!Z.startsWith("screen")&&!Z.startsWith("tmux")}function ON(){if(F6=jN(),F6)return;if(!process.env.TMUX)return;if(process.env.TERM_PROGRAM)return;let Z;try{Z=YN("tmux",["display-message","-p","#{client_control_mode}"],{encoding:"utf8",timeout:2000})}catch{return}if(Z.status!==0)return;F6=Z.stdout.trim()==="1"}function yB(){if(F6===void 0)ON();return F6??!1}function HN(){if(IB(process.env.CLAUDE_CODE_NO_FLICKER))return!1;if(N8(process.env.CLAUDE_CODE_NO_FLICKER))return!0;if(yB()){if(!vB)vB=!0,KZ("fullscreen disabled: tmux -CC (iTerm2 integration mode) detected · set CLAUDE_CODE_NO_FLICKER=1 to override");return!1}let Z=QK().flickerFreeMode;if(Z!==void 0)return Z;return!1}function yL(){return!N8(process.env.CLAUDE_CODE_DISABLE_MOUSE)}function mB(){return N8(process.env.CLAUDE_CODE_DISABLE_MOUSE_CLICKS)}function DN(){return bB()&&HN()}async function mL(){if(!process.env.TMUX)return null;if(!DN()||yB())return null;if(xB)return null;xB=!0;let{stdout:Z,code:K}=await U4("tmux",["show","-Av","mouse"],{useCwd:!1,timeout:2000});if(K!==0||Z.trim()==="on")return null;return"tmux detected · scroll with PgUp/PgDn · or add 'set -g mouse on' to ~/.tmux.conf for wheel scroll"}var vB=!1,xB=!1,F6;var fB=P(()=>{$z();o3();G5();Rz();PB()});function eJ(Z){let K="ground",G="",z=Z?.x10Mouse??!1;return{feed(q){let Y=wB(q,K,G,!1,z);return K=Y.state.state,G=Y.state.buffer,Y.tokens},flush(){let q=wB("",K,G,!0,z);return K=q.state.state,G=q.state.buffer,q.tokens},reset(){K="ground",G=""},buffer(){return G}}}function wB(Z,K,G,z,q){let Y=[],j={state:K,buffer:""},H=G+Z,D=0,V=0,A=0,M=()=>{if(D>V){let _=H.slice(V,D);if(_)Y.push({type:"text",value:_})}V=D},F=(_)=>{if(_)Y.push({type:"sequence",value:_});j.state="ground",V=D};while(D<H.length){let _=H.charCodeAt(D);switch(j.state){case"ground":if(_===k4.ESC)M(),A=D,j.state="escape",D++;else D++;break;case"escape":if(_===M8.CSI)j.state="csi",D++;else if(_===M8.OSC)j.state="osc",D++;else if(_===M8.DCS)j.state="dcs",D++;else if(_===M8.APC)j.state="apc",D++;else if(_===79)j.state="ss3",D++;else if(_K(_))j.state="escapeIntermediate",D++;else if(Ez(_))D++,F(H.slice(A,D));else if(_===k4.ESC)F(H.slice(A,D)),A=D,j.state="escape",D++;else j.state="ground",V=A;break;case"escapeIntermediate":if(_K(_))D++;else if(Ez(_))D++,F(H.slice(A,D));else j.state="ground",V=A;break;case"csi":if(q&&_===77&&D-A===2&&(D+1>=H.length||H.charCodeAt(D+1)>=32)&&(D+2>=H.length||H.charCodeAt(D+2)>=32)&&(D+3>=H.length||H.charCodeAt(D+3)>=32)){if(D+4<=H.length)D+=4,F(H.slice(A,D));else D=H.length;break}if(gB(_))D++,F(H.slice(A,D));else if(kB(_)||_K(_))D++;else j.state="ground",V=A;break;case"ss3":if(_>=64&&_<=126)D++,F(H.slice(A,D));else j.state="ground",V=A;break;case"osc":if(_===k4.BEL)D++,F(H.slice(A,D));else if(_===k4.ESC&&D+1<H.length&&H.charCodeAt(D+1)===M8.ST)D+=2,F(H.slice(A,D));else D++;break;case"dcs":case"apc":if(_===k4.BEL)D++,F(H.slice(A,D));else if(_===k4.ESC&&D+1<H.length&&H.charCodeAt(D+1)===M8.ST)D+=2,F(H.slice(A,D));else D++;break}}if(j.state==="ground")M();else if(z){let _=H.slice(A);if(_)Y.push({type:"sequence",value:_});j.state="ground"}else j.buffer=H.slice(A);return{tokens:Y,state:j}}var FK=P(()=>{W6();_8()});import{Buffer as VN}from"buffer";function hB(Z){return{kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,super:!1,sequence:Z,raw:Z,isPasted:!0}}function CN(Z){if(Z.startsWith("\x1B[")){let K;if(K=FN.exec(Z))return{type:"decrpm",mode:parseInt(K[1],10),status:parseInt(K[2],10)};if(K=WN.exec(Z))return{type:"da1",params:uB(K[1])};if(K=LN.exec(Z))return{type:"da2",params:uB(K[1])};if(K=$N.exec(Z))return{type:"kittyKeyboard",flags:parseInt(K[1],10)};if(K=RN.exec(Z))return{type:"cursorPosition",row:parseInt(K[1],10),col:parseInt(K[2],10)};return null}if(Z.startsWith("\x1B]")){let K=EN.exec(Z);if(K)return{type:"osc",code:parseInt(K[1],10),data:K[2]}}if(Z.startsWith("\x1BP")){let K=TN.exec(Z);if(K)return{type:"xtversion",name:K[1]}}return null}function uB(Z){if(!Z)return[];return Z.split(";").map((K)=>parseInt(K,10))}function SN(Z){if(VN.isBuffer(Z))if(Z[0]>127&&Z[1]===void 0)return Z[0]-=128,"\x1B"+String(Z);else return String(Z);else if(Z!==void 0&&typeof Z!=="string")return String(Z);else if(!Z)return"";else return Z}function nB(Z,K=""){let G=K===null,z=G?"":SN(K),q=Z._tokenizer??eJ({x10Mouse:!0}),Y=G?q.flush():q.feed(z),j=[],H=Z.mode==="IN_PASTE",D=Z.pasteBuffer;for(let A of Y)if(A.type==="sequence")if(A.value===dB)H=!0,D="";else if(A.value===aB)j.push(hB(D)),H=!1,D="";else if(H)D+=A.value;else{let M=CN(A.value);if(M)j.push({kind:"response",sequence:A.value,response:M});else{let F=lB(A.value);if(F)j.push(F);else j.push(Tz(A.value))}}else if(A.type==="text")if(H)D+=A.value;else if(/^\[<\d+;\d+;\d+[Mm]$/.test(A.value)||/^\[M[\x60-\x7f][\x20-\uffff]{2}$/.test(A.value)){let M="\x1B"+A.value,F=lB(M);j.push(F??Tz(M))}else j.push(Tz(A.value));if(G&&H&&D)j.push(hB(D)),H=!1,D="";let V={mode:H?"IN_PASTE":"NORMAL",incomplete:q.buffer(),pasteBuffer:D,_tokenizer:q};return[j,V]}function pB(Z){let K=Math.max(Z,1)-1;return{shift:!!(K&1),meta:!!(K&2),ctrl:!!(K&4),super:!!(K&8)}}function bN(Z){return Z>=57344&&Z<=63743||Z>=983040&&Z<=1048573||Z>=1048576&&Z<=1114109}function cB(Z){switch(Z){case 9:return"tab";case 13:return"return";case 27:return"escape";case 32:return"space";case 127:return"backspace";case 57399:return"0";case 57400:return"1";case 57401:return"2";case 57402:return"3";case 57403:return"4";case 57404:return"5";case 57405:return"6";case 57406:return"7";case 57407:return"8";case 57408:return"9";case 57409:return".";case 57410:return"/";case 57411:return"*";case 57412:return"-";case 57413:return"+";case 57414:return"return";case 57415:return"=";default:if(Z>=32&&Z<=126)return String.fromCharCode(Z).toLowerCase();if(Z>31&&Z!==127&&(Z<128||Z>159)&&Z<=1114111&&(Z<55296||Z>57343)&&!bN(Z))return String.fromCodePoint(Z);return}}function lB(Z){let K=iB.exec(Z);if(!K)return null;let G=parseInt(K[1],10);if((G&64)!==0)return null;return{kind:"mouse",button:G,action:K[4]==="M"?"press":"release",col:parseInt(K[2],10),row:parseInt(K[3],10),sequence:Z}}function Tz(Z=""){let K,G={kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,super:!1,sequence:Z,raw:Z,isPasted:!1};G.sequence=G.sequence||Z||G.name;let z;if(z=MN.exec(Z)){let q=parseInt(z[1],10),Y=z[2]?parseInt(z[2],10):1,j=pB(Y);return{kind:"key",name:cB(q),fn:!1,ctrl:j.ctrl,meta:j.meta,shift:j.shift,option:!1,super:j.super,sequence:Z,raw:Z,isPasted:!1}}if(z=_N.exec(Z)){let q=pB(parseInt(z[1],10));return{kind:"key",name:cB(parseInt(z[2],10)),fn:!1,ctrl:q.ctrl,meta:q.meta,shift:q.shift,option:!1,super:q.super,sequence:Z,raw:Z,isPasted:!1}}if(z=iB.exec(Z)){let q=parseInt(z[1],10);if((q&67)===64)return q4(Z,"wheelup",!1);if((q&67)===65)return q4(Z,"wheeldown",!1);return q4(Z,"mouse",!1)}if(Z.length===6&&Z.startsWith("\x1B[M")){let q=Z.charCodeAt(3)-32;if((q&67)===64)return q4(Z,"wheelup",!1);if((q&67)===65)return q4(Z,"wheeldown",!1);return q4(Z,"mouse",!1)}if(Z==="\r")G.raw=void 0,G.name="return";else if(Z===`
|
|
2
2
|
`)G.name="enter";else if(Z==="\t")G.name="tab";else if(Z==="\b"||Z==="\x1B\b")G.name="backspace",G.meta=Z.charAt(0)==="\x1B";else if(Z===""||Z==="\x1B")G.name="backspace",G.meta=Z.charAt(0)==="\x1B";else if(Z==="\x1B"||Z==="\x1B\x1B")G.name="escape",G.meta=Z.length===2;else if(Z===" "||Z==="\x1B ")G.name="space",G.meta=Z.length===2;else if(Z==="\x1F")G.name="_",G.ctrl=!0;else if(Z<="\x1A"&&Z.length===1)G.name=String.fromCharCode(Z.charCodeAt(0)+97-1),G.ctrl=!0;else if(Z.length===1&&Z>="0"&&Z<="9")G.name="number";else if(Z.length===1&&Z>="a"&&Z<="z")G.name=Z;else if(Z.length===1&&Z>="A"&&Z<="Z")G.name=Z.toLowerCase(),G.shift=!0;else if(K=AN.exec(Z))G.meta=!0,G.shift=/^[A-Z]$/.test(K[1]);else if(K=NN.exec(Z)){let q=[...Z];if(q[0]==="\x1B"&&q[1]==="\x1B")G.option=!0;let Y=[K[1],K[2],K[4],K[6]].filter(Boolean).join(""),j=(K[3]||K[5]||1)-1;G.ctrl=!!(j&4),G.meta=!!(j&2),G.super=!!(j&8),G.shift=!!(j&1),G.code=Y,G.name=tB[Y],G.shift=vN(Y)||G.shift,G.ctrl=xN(Y)||G.ctrl}if(G.raw==="\x1Bb")G.meta=!0,G.name="left";else if(G.raw==="\x1Bf")G.meta=!0,G.name="right";switch(Z){case"\x1B[1~":return q4(Z,"home",!1);case"\x1B[4~":return q4(Z,"end",!1);case"\x1B[5~":return q4(Z,"pageup",!1);case"\x1B[6~":return q4(Z,"pagedown",!1);case"\x1B[1;5D":return q4(Z,"left",!0);case"\x1B[1;5C":return q4(Z,"right",!0)}return G}function q4(Z,K,G){return{kind:"key",name:K,ctrl:G,meta:!1,shift:!1,option:!1,super:!1,fn:!1,sequence:Z,raw:Z,isPasted:!1}}var AN,NN,MN,_N,FN,WN,LN,$N,RN,EN,TN,iB,sB,tB,oB,vN=(Z)=>{return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(Z)},xN=(Z)=>{return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(Z)};var Cz=P(()=>{_8();FK();AN=/^(?:\x1b)([a-zA-Z0-9])$/,NN=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,MN=/^\x1b\[(\d+)(?:;(\d+))?u/,_N=/^\x1b\[27;(\d+);(\d+)~/,FN=/^\x1b\[\?(\d+);(\d+)\$y$/,WN=/^\x1b\[\?([\d;]*)c$/,LN=/^\x1b\[>([\d;]*)c$/,$N=/^\x1b\[\?(\d+)u$/,RN=/^\x1b\[\?(\d+);(\d+)R$/,EN=/^\x1b\](\d+);(.*?)(?:\x07|\x1b\\)$/s,TN=/^\x1bP>\|(.*?)(?:\x07|\x1b\\)$/s,iB=/^\x1b\[<(\d+);(\d+);(\d+)([Mm])$/;sB={mode:"NORMAL",incomplete:"",pasteBuffer:""};tB={OP:"f1",OQ:"f2",OR:"f3",OS:"f4",Op:"0",Oq:"1",Or:"2",Os:"3",Ot:"4",Ou:"5",Ov:"6",Ow:"7",Ox:"8",Oy:"9",Oj:"*",Ok:"+",Ol:",",Om:"-",On:".",Oo:"/",OM:"return","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},oB=[...Object.values(tB).filter((Z)=>Z.length>1),"escape","backspace","wheelup","wheeldown","mouse"]});function IN(Z){let K={upArrow:Z.name==="up",downArrow:Z.name==="down",leftArrow:Z.name==="left",rightArrow:Z.name==="right",pageDown:Z.name==="pagedown",pageUp:Z.name==="pageup",wheelUp:Z.name==="wheelup",wheelDown:Z.name==="wheeldown",home:Z.name==="home",end:Z.name==="end",return:Z.name==="return",escape:Z.name==="escape",fn:Z.fn,ctrl:Z.ctrl,shift:Z.shift,tab:Z.name==="tab",backspace:Z.name==="backspace",delete:Z.name==="delete",meta:Z.meta||Z.name==="escape"||Z.option,super:Z.super},G=Z.ctrl?Z.name:Z.sequence;if(G===void 0)G="";if(Z.ctrl&&G==="space")G=" ";if(Z.code&&!Z.name)G="";if(!Z.name&&/^\[<\d+;\d+;\d+[Mm]/.test(G))G="";if(G.startsWith("\x1B"))G=G.slice(1);let z=!1;if(/^\[\d/.test(G)&&G.endsWith("u")){if(!Z.name)G="";else G=Z.name==="space"?" ":Z.name==="escape"?"":Z.name;z=!0}if(G.startsWith("[27;")&&G.endsWith("~")){if(!Z.name)G="";else G=Z.name==="space"?" ":Z.name==="escape"?"":Z.name;z=!0}if(G.startsWith("O")&&G.length===2&&Z.name&&Z.name.length===1)G=Z.name,z=!0;if(!z&&Z.name&&oB.includes(Z.name))G="";if(G.length===1&&typeof G[0]==="string"&&G[0]>="A"&&G[0]<="Z")K.shift=!0;return[K,G]}var WK;var Sz=P(()=>{Cz();h5();WK=class WK extends G4{keypress;key;input;constructor(Z){super();let[K,G]=IN(Z);this.keypress=Z,this.key=K,this.input=G}}});var L6;var vz=P(()=>{h5();L6=class L6 extends G4{type;constructor(Z){super();this.type=Z}}});function Iz(Z,K){var G=Z.length;Z.push(K);Z:for(;0<G;){var z=G-1>>>1,q=Z[z];if(0<LK(q,K))Z[z]=K,Z[G]=q,G=z;else break Z}}function g4(Z){return Z.length===0?null:Z[0]}function TK(Z){if(Z.length===0)return null;var K=Z[0],G=Z.pop();if(G!==K){Z[0]=G;Z:for(var z=0,q=Z.length,Y=q>>>1;z<Y;){var j=2*(z+1)-1,H=Z[j],D=j+1,V=Z[D];if(0>LK(H,G))D<q&&0>LK(V,H)?(Z[z]=V,Z[D]=G,z=D):(Z[z]=H,Z[j]=G,z=j);else if(D<q&&0>LK(V,G))Z[z]=V,Z[D]=G,z=D;else break Z}}return K}function LK(Z,K){var G=Z.sortIndex-K.sortIndex;return G!==0?G:Z.id-K.id}function RK(Z){for(var K=g4(X5);K!==null;){if(K.callback===null)TK(X5);else if(K.startTime<=Z)TK(X5),K.sortIndex=K.expirationTime,Iz(F8,K);else break;K=g4(X5)}}function kz(Z){if(R6=!1,RK(Z),!$6)if(g4(F8)!==null)$6=!0,JQ||(JQ=!0,ZQ());else{var K=g4(X5);K!==null&&gz(kz,K.startTime-Z)}}function QY(){return wz?!0:h4()-JY<yN?!1:!0}function bz(){if(wz=!1,JQ){var Z=h4();JY=Z;var K=!0;try{Z:{$6=!1,R6&&(R6=!1,ZY(E6),E6=-1),mz=!0;var G=xz;try{J:{RK(Z);for(B4=g4(F8);B4!==null&&!(B4.expirationTime>Z&&QY());){var z=B4.callback;if(typeof z==="function"){B4.callback=null,xz=B4.priorityLevel;var q=z(B4.expirationTime<=Z);if(Z=h4(),typeof q==="function"){B4.callback=q,RK(Z),K=!0;break J}B4===g4(F8)&&TK(F8),RK(Z)}else TK(F8);B4=g4(F8)}if(B4!==null)K=!0;else{var Y=g4(X5);Y!==null&&gz(kz,Y.startTime-Z),K=!1}}break Z}finally{B4=null,xz=G,mz=!1}K=void 0}}finally{K?ZQ():JQ=!1}}}function gz(Z,K){E6=eB(function(){Z(h4())},K)}var h4=void 0,Pz,$K,yz,F8,X5,PN=1,B4=null,xz=3,mz=!1,$6=!1,R6=!1,wz=!1,eB,ZY,rB,JQ=!1,E6=-1,yN=5,JY=-1,ZQ,EK,fz,hz=5,uz=1,CK=3,pz=2,cz=function(Z){Z.callback=null},lz=function(){wz=!0},SK=function(Z,K,G){var z=h4();switch(typeof G==="object"&&G!==null?(G=G.delay,G=typeof G==="number"&&0<G?z+G:z):G=z,Z){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5000}return q=G+q,Z={id:PN++,callback:K,priorityLevel:Z,startTime:G,expirationTime:q,sortIndex:-1},G>z?(Z.sortIndex=G,Iz(X5,Z),g4(F8)===null&&Z===g4(X5)&&(R6?(ZY(E6),E6=-1):R6=!0,gz(kz,G-z))):(Z.sortIndex=q,Iz(F8,Z),$6||mz||($6=!0,JQ||(JQ=!0,ZQ()))),Z},dz;var GY=P(()=>{if(typeof performance==="object"&&typeof performance.now==="function")Pz=performance,h4=function(){return Pz.now()};else $K=Date,yz=$K.now(),h4=function(){return $K.now()-yz};F8=[],X5=[],eB=typeof setTimeout==="function"?setTimeout:null,ZY=typeof clearTimeout==="function"?clearTimeout:null,rB=typeof setImmediate<"u"?setImmediate:null;if(typeof rB==="function")ZQ=function(){rB(bz)};else if(typeof MessageChannel<"u")EK=new MessageChannel,fz=EK.port2,EK.port1.onmessage=bz,ZQ=function(){fz.postMessage(null)};else ZQ=function(){eB(bz,0)};dz=QY});var XY=g5((nL,T6)=>{GY();var az=U0(n0());T6.exports=function(Z){function K(J,Q,X,U){return new jD(J,Q,X,U)}function G(){}function z(J){var Q="https://react.dev/errors/"+J;if(1<arguments.length){Q+="?args[]="+encodeURIComponent(arguments[1]);for(var X=2;X<arguments.length;X++)Q+="&args[]="+encodeURIComponent(arguments[X])}return"Minified React error #"+J+"; visit "+Q+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function q(J){var Q=J,X=J;if(J.alternate)for(;Q.return;)Q=Q.return;else{J=Q;do Q=J,(Q.flags&4098)!==0&&(X=Q.return),J=Q.return;while(J)}return Q.tag===3?X:null}function Y(J){if(q(J)!==J)throw Error(z(188))}function j(J){var Q=J.alternate;if(!Q){if(Q=q(J),Q===null)throw Error(z(188));return Q!==J?null:J}for(var X=J,U=Q;;){var B=X.return;if(B===null)break;var O=B.alternate;if(O===null){if(U=B.return,U!==null){X=U;continue}break}if(B.child===O.child){for(O=B.child;O;){if(O===X)return Y(B),J;if(O===U)return Y(B),Q;O=O.sibling}throw Error(z(188))}if(X.return!==U.return)X=B,U=O;else{for(var N=!1,L=B.child;L;){if(L===X){N=!0,X=B,U=O;break}if(L===U){N=!0,U=B,X=O;break}L=L.sibling}if(!N){for(L=O.child;L;){if(L===X){N=!0,X=O,U=B;break}if(L===U){N=!0,U=O,X=B;break}L=L.sibling}if(!N)throw Error(z(189))}}if(X.alternate!==U)throw Error(z(190))}if(X.tag!==3)throw Error(z(188));return X.stateNode.current===X?J:Q}function H(J){var Q=J.tag;if(Q===5||Q===26||Q===27||Q===6)return J;for(J=J.child;J!==null;){if(Q=H(J),Q!==null)return Q;J=J.sibling}return null}function D(J){var Q=J.tag;if(Q===5||Q===26||Q===27||Q===6)return J;for(J=J.child;J!==null;){if(J.tag!==4&&(Q=D(J),Q!==null))return Q;J=J.sibling}return null}function V(J){if(J===null||typeof J!=="object")return null;return J=G3&&J[G3]||J["@@iterator"],typeof J==="function"?J:null}function A(J){if(J==null)return null;if(typeof J==="function")return J.$$typeof===VD?null:J.displayName||J.name||null;if(typeof J==="string")return J;switch(J){case CJ:return"Fragment";case $X:return"Profiler";case Q3:return"StrictMode";case EX:return"Suspense";case TX:return"SuspenseList";case SX:return"Activity"}if(typeof J==="object")switch(J.$$typeof){case TJ:return"Portal";case l8:return J.displayName||"Context";case K3:return(J._context.displayName||"Context")+".Consumer";case RX:var Q=J.render;return J=J.displayName,J||(J=Q.displayName||Q.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case CX:return Q=J.displayName||null,Q!==null?Q:A(J.type)||"Memo";case d8:Q=J._payload,J=J._init;try{return A(J(Q))}catch(X){}}return null}function M(J){return{current:J}}function F(J){0>xJ||(J.current=yX[xJ],yX[xJ]=null,xJ--)}function _(J,Q){xJ++,yX[xJ]=J.current,J.current=Q}function R(J){return J>>>=0,J===0?32:31-(cV(J)/lV|0)|0}function W(J){var Q=J&42;if(Q!==0)return Q;switch(J&-J){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return J&261888;case 262144:case 524288:case 1048576:case 2097152:return J&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return J&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return J}}function E(J,Q,X){var U=J.pendingLanes;if(U===0)return 0;var B=0,O=J.suspendedLanes,N=J.pingedLanes;J=J.warmLanes;var L=U&134217727;return L!==0?(U=L&~O,U!==0?B=W(U):(N&=L,N!==0?B=W(N):X||(X=L&~J,X!==0&&(B=W(X))))):(L=U&~O,L!==0?B=W(L):N!==0?B=W(N):X||(X=U&~J,X!==0&&(B=W(X)))),B===0?0:Q!==0&&Q!==B&&(Q&O)===0&&(O=B&-B,X=Q&-Q,O>=X||O===32&&(X&4194048)!==0)?Q:B}function T(J,Q){return(J.pendingLanes&~(J.suspendedLanes&~J.pingedLanes)&Q)===0}function $(J,Q){switch(J){case 1:case 2:case 4:case 8:case 64:return Q+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Q+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function I(){var J=b9;return b9<<=1,(b9&62914560)===0&&(b9=4194304),J}function y(J){for(var Q=[],X=0;31>X;X++)Q.push(J);return Q}function m(J,Q){J.pendingLanes|=Q,Q!==268435456&&(J.suspendedLanes=0,J.pingedLanes=0,J.warmLanes=0)}function b(J,Q,X,U,B,O){var N=J.pendingLanes;J.pendingLanes=X,J.suspendedLanes=0,J.pingedLanes=0,J.warmLanes=0,J.expiredLanes&=X,J.entangledLanes&=X,J.errorRecoveryDisabledLanes&=X,J.shellSuspendCounter=0;var{entanglements:L,expirationTimes:x,hiddenUpdates:k}=J;for(X=N&~X;0<X;){var d=31-u7(X),p=1<<d;L[d]=0,x[d]=-1;var t=k[d];if(t!==null)for(k[d]=null,d=0;d<t.length;d++){var A0=t[d];A0!==null&&(A0.lane&=-536870913)}X&=~p}U!==0&&u(J,U,0),O!==0&&B===0&&J.tag!==0&&(J.suspendedLanes|=O&~(N&~Q))}function u(J,Q,X){J.pendingLanes|=Q,J.suspendedLanes&=~Q;var U=31-u7(Q);J.entangledLanes|=Q,J.entanglements[U]=J.entanglements[U]|1073741824|X&261930}function f(J,Q){var X=J.entangledLanes|=Q;for(J=J.entanglements;X;){var U=31-u7(X),B=1<<U;B&Q|J[U]&Q&&(J[U]|=Q),X&=~B}}function w(J,Q){var X=Q&-Q;return X=(X&42)!==0?1:i(X),(X&(J.suspendedLanes|Q))!==0?0:X}function i(J){switch(J){case 2:J=1;break;case 8:J=4;break;case 32:J=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:J=128;break;case 268435456:J=134217728;break;default:J=0}return J}function h(J){return J&=-J,2<J?8<J?(J&134217727)!==0?32:268435456:8:2}function l(J){if(typeof nV==="function"&&tV(J),p7&&typeof p7.setStrictMode==="function")try{p7.setStrictMode(rQ,J)}catch(Q){}}function s(J,Q){return J===Q&&(J!==0||1/J===1/Q)||J!==J&&Q!==Q}function n(J){if(wX===void 0)try{throw Error()}catch(X){var Q=X.stack.trim().match(/\n( *(at )?)/);wX=Q&&Q[1]||"",x3=-1<X.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+wX+J+x3}function N0(J,Q){if(!J||kX)return"";kX=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var U={DetermineComponentFrameRoot:function(){try{if(Q){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(A0){var t=A0}Reflect.construct(J,[],p)}else{try{p.call()}catch(A0){t=A0}J.call(p.prototype)}}else{try{throw Error()}catch(A0){t=A0}(p=J())&&typeof p.catch==="function"&&p.catch(function(){})}}catch(A0){if(A0&&t&&typeof A0.stack==="string")return[A0.stack,t.stack]}return[null,null]}};U.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(U.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(U.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=U.DetermineComponentFrameRoot(),N=O[0],L=O[1];if(N&&L){var x=N.split(`
|
|
@@ -56,4 +56,4 @@ ${D}`)))},[Z]),G=j4.useCallback(({message:j,title:H,id:D})=>{Z(A7(hZ(XZ.KITTY,`i
|
|
|
56
56
|
culprit: ${n.length?n.join(" < "):"(no owner chain captured)"}`,{level:"warn"})}}let R=performance.now(),W=HU(M),E=performance.now()-R,T=W.length>0;if(this.altScreenActive&&T){if(this.needsEraseBeforePaint)this.needsEraseBeforePaint=!1,W.unshift(jF);else W.unshift(YF);W.push(this.altScreenParkPatch)}let $=this.cursorDeclaration,I=$!==null?CZ.get($.node):void 0,y=$!==null&&I!==void 0?{x:I.x+$.relativeX,y:I.y+$.relativeY}:null,m=this.displayCursor,b=y!==null&&(m===null||m.x!==y.x||m.y!==y.y);if(T||b||y===null&&m!==null){if(m!==null&&!this.altScreenActive&&T){let s=D.cursor.x-m.x,n=D.cursor.y-m.y;if(s!==0||n!==0)W.unshift({type:"stdout",content:AQ(s,n)})}if(y!==null){if(this.altScreenActive){let s=Math.min(Math.max(y.y+1,1),G),n=Math.min(Math.max(y.x+1,1),K);W.push({type:"stdout",content:vU(s,n)})}else{let s=!T&&m!==null?m:{x:z.cursor.x,y:z.cursor.y},n=y.x-s.x,N0=y.y-s.y;if(n!==0||N0!==0)W.push({type:"stdout",content:AQ(n,N0)})}this.displayCursor=y}else{if(m!==null&&!this.altScreenActive&&!T){let s=z.cursor.x-m.x,n=z.cursor.y-m.y;if(s!==0||n!==0)W.push({type:"stdout",content:AQ(s,n)})}this.displayCursor=null}}let u=performance.now(),f=this.altScreenActive?!a1:A||Xj();i1(this.terminal,W,f);let w=performance.now()-u;if(this.prevFrameContaminated=j||H,z.scrollDrainPending)this.drainTimer=setTimeout(()=>this.onRender(),GJ>>2);let i=D2(),h=V2(),l=this.lastYogaCounters;A2(),this.lastYogaCounters={ms:0,visited:0,measured:0,cacheHits:0,live:0},this.options.onFrame?.({durationMs:performance.now()-Z,phases:{renderer:q,diff:F,optimize:E,write:w,patches:M.length,yoga:i,commit:h,yogaVisited:l.visited,yogaMeasured:l.measured,yogaCacheHits:l.cacheHits,yogaLive:l.live},flickers:_})}pause(){p4.flushSyncFromReconciler(),this.onRender(),this.isPaused=!0}resume(){this.isPaused=!1,this.onRender()}repaint(){this.frontFrame=B5(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=B5(this.backFrame.viewport.height,this.backFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset(),this.displayCursor=null}forceRedraw(){if(!this.options.stdout.isTTY||this.isUnmounted||this.isPaused)return;if(this.options.stdout.write(kG+UJ),this.altScreenActive)this.resetFramesForAltScreen();else this.repaint(),this.prevFrameContaminated=!0;this.onRender()}invalidatePrevFrame(){this.prevFrameContaminated=!0}setAltScreenActive(Z,K=!1){if(this.altScreenActive===Z)return;if(this.altScreenActive=Z,this.altScreenMouseTracking=Z&&K,Z)this.resetFramesForAltScreen();else this.repaint()}get isAltScreenActive(){return this.altScreenActive}reassertTerminalModes=(Z=!1)=>{if(!this.options.stdout.isTTY)return;if(this.isPaused)return;if(t6())this.options.stdout.write(zJ+Z9+J9);if(!this.altScreenActive)return;if(this.altScreenMouseTracking)this.options.stdout.write(i6);if(Z)this.reenterAltScreen()};detachForShutdown(){this.isUnmounted=!0,this.scheduleRender.cancel?.();let Z=this.options.stdin;if(this.drainStdin(),Z.isTTY&&Z.isRaw&&Z.setRawMode)Z.setRawMode(!1)}drainStdin(){OF(this.options.stdin)}reenterAltScreen(){this.options.stdout.write(p1+kG+UJ+(this.altScreenMouseTracking?i6:"")),this.resetFramesForAltScreen()}resetFramesForAltScreen(){let Z=this.terminalRows,K=this.terminalColumns,G=()=>({screen:R8(K,Z,this.stylePool,this.charPool,this.hyperlinkPool),viewport:{width:K,height:Z+1},cursor:{x:0,y:0,visible:!0}});this.frontFrame=G(),this.backFrame=G(),this.log.reset(),this.displayCursor=null,this.prevFrameContaminated=!0}copySelectionNoClear(){if(!Y4(this.selection))return"";let Z=k2(this.selection,this.frontFrame.screen);if(Z)s2(Z).then((K)=>{if(K)this.options.stdout.write(K)});return Z}copySelection(){if(!Y4(this.selection))return"";let Z=this.copySelectionNoClear();return l6(this.selection),this.notifySelectionChange(),Z}clearTextSelection(){if(!Y4(this.selection))return;l6(this.selection),this.notifySelectionChange()}setSearchHighlight(Z){if(this.searchHighlightQuery===Z)return;this.searchHighlightQuery=Z,this.scheduleRender()}scanElementSubtree(Z){if(!this.searchHighlightQuery||!Z.yogaNode)return[];let K=Math.ceil(Z.yogaNode.getComputedWidth()),G=Math.ceil(Z.yogaNode.getComputedHeight());if(K<=0||G<=0)return[];let z=Z.yogaNode.getComputedLeft(),q=Z.yogaNode.getComputedTop(),Y=R8(K,G,this.stylePool,this.charPool,this.hyperlinkPool),j=new qJ({width:K,height:G,stylePool:this.stylePool,screen:Y});U9(Z,j,{offsetX:-z,offsetY:-q,prevScreen:void 0});let H=j.get();T7(Z);let D=SO(H,this.searchHighlightQuery);return KZ(`scanElementSubtree: q='${this.searchHighlightQuery}' el=${K}x${G}@(${z},${q}) n=${D.length} [${D.slice(0,10).map((V)=>`${V.row}:${V.col}`).join(",")}${D.length>10?",…":""}]`),D}setSearchPositions(Z){this.searchPositions=Z,this.scheduleRender()}setSelectionBgColor(Z){let K=K5("\x00",Z,"background"),G=K.indexOf("\x00");if(G<=0||G===K.length-1){this.stylePool.setSelectionBg(null);return}this.stylePool.setSelectionBg({type:"ansi",code:K.slice(0,G),endCode:K.slice(G+1)})}captureScrolledRows(Z,K,G){jG(this.selection,this.frontFrame.screen,Z,K,G)}shiftSelectionForScroll(Z,K,G){let z=Y4(this.selection);if(m2(this.selection,Z,K,G,this.frontFrame.screen.width),z&&!Y4(this.selection))this.notifySelectionChange()}moveSelectionFocus(Z){if(!this.altScreenActive)return;let{focus:K}=this.selection;if(!K)return;let{width:G,height:z}=this.frontFrame.screen,q=G-1,Y=z-1,{col:j,row:H}=K;switch(Z){case"left":if(j>0)j--;else if(H>0)j=q,H--;break;case"right":if(j<q)j++;else if(H<Y)j=0,H++;break;case"up":if(H>0)H--;break;case"down":if(H<Y)H++;break;case"lineStart":j=0;break;case"lineEnd":j=q;break}if(j===K.col&&H===K.row)return;y2(this.selection,j,H),this.notifySelectionChange()}hasTextSelection(){return Y4(this.selection)}subscribeToSelectionChange(Z){return this.selectionListeners.add(Z),()=>this.selectionListeners.delete(Z)}notifySelectionChange(){this.onRender();for(let Z of this.selectionListeners)Z()}dispatchClick(Z,K){if(!this.altScreenActive)return!1;let G=XG(this.frontFrame.screen,Z,K);return hj(this.rootNode,Z,K,G)}dispatchHover(Z,K){if(!this.altScreenActive)return;uj(this.rootNode,Z,K,this.hoveredNodes)}dispatchKeyboardEvent(Z){let K=this.focusManager.activeElement??this.rootNode,G=new qU(Z);if($8.dispatchDiscrete(K,G),!G.defaultPrevented&&Z.name==="tab"&&!Z.ctrl&&!Z.meta)if(Z.shift)this.focusManager.focusPrevious(this.rootNode);else this.focusManager.focusNext(this.rootNode)}getHyperlinkAt(Z,K){if(!this.altScreenActive)return;let G=this.frontFrame.screen,z=z7(G,Z,K),q=z?.hyperlink;if(!q&&z?.width===2&&Z>0)q=z7(G,Z-1,K)?.hyperlink;return q??b2(G,Z,K)}onHyperlinkClick;openHyperlink(Z){this.onHyperlinkClick?.(Z)}handleMultiClick(Z,K,G){if(!this.altScreenActive)return;let z=this.frontFrame.screen;if(BG(this.selection,Z,K),G===2)x2(this.selection,z,Z,K);else I2(this.selection,z,K);if(!this.selection.focus)this.selection.focus=this.selection.anchor;this.notifySelectionChange()}handleSelectionDrag(Z,K){if(!this.altScreenActive)return;let G=this.selection;if(G.anchorSpan)P2(G,this.frontFrame.screen,Z,K);else S2(G,Z,K);this.notifySelectionChange()}stdinListeners=[];wasRawMode=!1;suspendStdin(){let Z=this.options.stdin;if(!Z.isTTY)return;let K=Z.listeners("readable");KZ(`[stdin] suspendStdin: removing ${K.length} readable listener(s), wasRawMode=${Z.isRaw??!1}`),K.forEach((z)=>{this.stdinListeners.push({event:"readable",listener:z}),Z.removeListener("readable",z)});let G=Z;if(G.isRaw&&G.setRawMode)G.setRawMode(!1),this.wasRawMode=!0}resumeStdin(){let Z=this.options.stdin;if(!Z.isTTY)return;if(this.stdinListeners.length===0&&!this.wasRawMode)KZ("[stdin] resumeStdin: called with no stored listeners and wasRawMode=false (possible desync)",{level:"warn"});if(KZ(`[stdin] resumeStdin: re-attaching ${this.stdinListeners.length} listener(s), wasRawMode=${this.wasRawMode}`),this.stdinListeners.forEach(({event:K,listener:G})=>{Z.addListener(K,G)}),this.stdinListeners=[],this.wasRawMode){let K=Z;if(K.setRawMode)K.setRawMode(!0);this.wasRawMode=!1}}writeRaw(Z){this.options.stdout.write(Z)}setCursorDeclaration=(Z,K)=>{if(Z===null&&K!==void 0&&this.cursorDeclaration?.node!==K)return;this.cursorDeclaration=Z};render(Z){KZ("[Ink:render] start"),this.currentNode=Z;let K=Q0($G,{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,selection:this.selection,onSelectionChange:this.notifySelectionChange,onClickAt:this.dispatchClick,onHoverAt:this.dispatchHover,getHyperlinkAt:this.getHyperlinkAt,onOpenHyperlink:this.openHyperlink,onMultiClick:this.handleMultiClick,onSelectionDrag:this.handleSelectionDrag,onStdinResume:this.reassertTerminalModes,onCursorDeclaration:this.setCursorDeclaration,dispatchKeyboardEvent:this.dispatchKeyboardEvent,children:Q0(yO,{value:this.writeRaw,children:Z})});p4.updateContainerSync(K,this.container,null,GK),p4.flushSyncWork(),KZ("[Ink:render] updateContainer complete")}unmount(Z){if(this.isUnmounted)return;if(this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole==="function")this.restoreConsole();this.restoreStderr?.(),this.unsubscribeTTYHandlers?.();let K=this.log.renderPreviousOutput_DEPRECATED(this.frontFrame);if(i1(this.terminal,HU(K)),this.options.stdout.isTTY){if(this.altScreenActive)v8(1,c2);if(v8(1,s6),this.drainStdin(),v8(1,Q9),v8(1,zJ),v8(1,d6),v8(1,HG),v8(1,ZJ),v8(1,t2),VQ())v8(1,A7(AG))}if(this.isUnmounted=!0,this.scheduleRender.cancel?.(),this.drainTimer!==null)clearTimeout(this.drainTimer),this.drainTimer=null;if(p4.updateContainerSync(null,this.container,null,GK),p4.flushSyncWork(),d4.delete(this.options.stdout),this.rootNode.yogaNode?.free(),this.rootNode.yogaNode=void 0,Z instanceof Error)this.rejectExitPromise(Z);else this.resolveExitPromise()}async waitUntilExit(){return this.exitPromise||=new Promise((Z,K)=>{this.resolveExitPromise=Z,this.rejectExitPromise=K}),this.exitPromise}resetLineCount(){if(this.options.stdout.isTTY)this.backFrame=this.frontFrame,this.frontFrame=B5(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset(),this.displayCursor=null}resetPools(){this.charPool=new g6,this.hyperlinkPool=new h6,F2(this.frontFrame.screen,this.charPool,this.hyperlinkPool),this.backFrame.screen.charPool=this.charPool,this.backFrame.screen.hyperlinkPool=this.hyperlinkPool}patchConsole(){let Z=console,K={},G=(...q)=>KZ(`console.log: ${fO(...q)}`),z=(...q)=>L8(Error(`console.error: ${fO(...q)}`));for(let q of HF)K[q]=Z[q],Z[q]=G;for(let q of DF)K[q]=Z[q],Z[q]=z;return K.assert=Z.assert,Z.assert=(q,...Y)=>{if(!q)z(...Y)},()=>Object.assign(Z,K)}patchStderr(){let Z=process.stderr,K=Z.write,G=!1,z=(q,Y,j)=>{let H=typeof Y==="function"?Y:j;if(G){let D=typeof Y==="string"?Y:void 0;return K.call(Z,q,D,H)}G=!0;try{let D=typeof q==="string"?q:Buffer.from(q).toString("utf8");if(KZ(`[stderr] ${D}`,{level:"warn"}),this.altScreenActive&&!this.isUnmounted&&!this.isPaused)this.prevFrameContaminated=!0,this.scheduleRender()}finally{G=!1,H?.()}return!0};return Z.write=z,()=>{if(Z.write===z)Z.write=K}}}function OF(Z=process.stdin){if(!Z.isTTY)return;try{while(Z.read()!==null);}catch{}if(process.platform==="win32")return;let K=Z,G=K.isRaw===!0,z=-1;try{if(!G)K.setRawMode?.(!0);z=UF("/dev/tty",mO.O_RDONLY|mO.O_NONBLOCK);let q=Buffer.alloc(1024);for(let Y=0;Y<64;Y++)if(qF(z,q,0,q.length,null)<=0)break}catch{}finally{if(z>=0)try{zF(z)}catch{}if(!G)try{K.setRawMode?.(!1)}catch{}}}var BF,YF,jF,HF,DF;var hO=P(()=>{r3();e3();OB();BK();XF();$z();NK();G5();M1();_6();wj();JU();y6();kj();w6();gj();pj();EG();nj();GQ();tj();IG();ZG();fG();xO();bO();T8();PO();OG();o6();_8();n6();l4();wG();m0();BF=Object.freeze({x:0,y:0,visible:!1}),YF=Object.freeze({type:"stdout",content:UJ}),jF=Object.freeze({type:"stdout",content:kG+UJ});HF=["log","info","debug","dir","dirxml","count","countReset","group","groupCollapsed","groupEnd","table","time","timeEnd","timeLog"],DF=["warn","error","trace"]});import{Stream as VF}from"stream";async function uO({stdout:Z=process.stdout,stdin:K=process.stdin,stderr:G=process.stderr,exitOnCtrlC:z=!0,patchConsole:q=!0,onFrame:Y}={}){await Promise.resolve();let j=new q9({stdout:Z,stdin:K,stderr:G,exitOnCtrlC:z,patchConsole:q,onFrame:Y});return d4.set(Z,j),{render:(H)=>j.render(H),unmount:()=>j.unmount(),waitUntilExit:()=>j.waitUntilExit()}}var AF=(Z,K)=>{let G=MF(K),z={stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,exitOnCtrlC:!0,patchConsole:!0,...G},q=_F(z.stdout,()=>new q9(z));return q.render(Z),{rerender:q.render,unmount(){q.unmount()},waitUntilExit:q.waitUntilExit,cleanup:()=>d4.delete(z.stdout)}},NF=async(Z,K)=>{await Promise.resolve();let G=AF(Z,K);return KZ(`[render] first ink render: ${Math.round(process.uptime()*1000)}ms since process start`),G},pO,MF=(Z={})=>{if(Z instanceof VF)return{stdout:Z,stdin:process.stdin};return Z},_F=(Z,K)=>{let G=d4.get(Z);if(!G)G=K(),d4.set(Z,G);return G};var cO=P(()=>{G5();hO();EG();pO=NF});function EQ(Z){switch(Z){case"light":return WF;case"light-ansi":return LF;case"dark-ansi":return $F;case"light-daltonized":return RF;case"dark-daltonized":return TF;default:return EF}}function vS(Z){let K=Z.match(/rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)/);if(K){let G=parseInt(K[1],10),z=parseInt(K[2],10),q=parseInt(K[3],10),Y=CF.rgb(G,z,q)("X");return Y.slice(0,Y.indexOf("X"))}return"\x1B[35m"}var FF,SS,WF,LF,$F,RF,EF,TF,CF;var gG=P(()=>{Lz();c1();FF=["dark","light","light-daltonized","dark-daltonized","light-ansi","dark-ansi"],SS=["auto",...FF],WF={autoAccept:"rgb(135,0,255)",bashBorder:"rgb(255,0,135)",claude:"rgb(215,119,87)",claudeShimmer:"rgb(245,149,117)",claudeBlue_FOR_SYSTEM_SPINNER:"rgb(87,105,247)",claudeBlueShimmer_FOR_SYSTEM_SPINNER:"rgb(117,135,255)",permission:"rgb(87,105,247)",permissionShimmer:"rgb(137,155,255)",planMode:"rgb(0,102,102)",ide:"rgb(71,130,200)",promptBorder:"rgb(153,153,153)",promptBorderShimmer:"rgb(183,183,183)",text:"rgb(0,0,0)",inverseText:"rgb(255,255,255)",inactive:"rgb(102,102,102)",inactiveShimmer:"rgb(142,142,142)",subtle:"rgb(175,175,175)",suggestion:"rgb(87,105,247)",remember:"rgb(0,0,255)",background:"rgb(0,153,153)",success:"rgb(44,122,57)",error:"rgb(171,43,63)",warning:"rgb(150,108,30)",merged:"rgb(135,0,255)",warningShimmer:"rgb(200,158,80)",diffAdded:"rgb(105,219,124)",diffRemoved:"rgb(255,168,180)",diffAddedDimmed:"rgb(199,225,203)",diffRemovedDimmed:"rgb(253,210,216)",diffAddedWord:"rgb(47,157,68)",diffRemovedWord:"rgb(209,69,75)",red_FOR_SUBAGENTS_ONLY:"rgb(220,38,38)",blue_FOR_SUBAGENTS_ONLY:"rgb(37,99,235)",green_FOR_SUBAGENTS_ONLY:"rgb(22,163,74)",yellow_FOR_SUBAGENTS_ONLY:"rgb(202,138,4)",purple_FOR_SUBAGENTS_ONLY:"rgb(147,51,234)",orange_FOR_SUBAGENTS_ONLY:"rgb(234,88,12)",pink_FOR_SUBAGENTS_ONLY:"rgb(219,39,119)",cyan_FOR_SUBAGENTS_ONLY:"rgb(8,145,178)",professionalBlue:"rgb(106,155,204)",chromeYellow:"rgb(251,188,4)",clawd_body:"rgb(215,119,87)",clawd_background:"rgb(0,0,0)",userMessageBackground:"rgb(240, 240, 240)",userMessageBackgroundHover:"rgb(252, 252, 252)",messageActionsBackground:"rgb(232, 236, 244)",selectionBg:"rgb(180, 213, 255)",bashMessageBackgroundColor:"rgb(250, 245, 250)",memoryBackgroundColor:"rgb(230, 245, 250)",rate_limit_fill:"rgb(87,105,247)",rate_limit_empty:"rgb(39,47,111)",fastMode:"rgb(255,106,0)",fastModeShimmer:"rgb(255,150,50)",briefLabelYou:"rgb(37,99,235)",briefLabelClaude:"rgb(215,119,87)",rainbow_red:"rgb(235,95,87)",rainbow_orange:"rgb(245,139,87)",rainbow_yellow:"rgb(250,195,95)",rainbow_green:"rgb(145,200,130)",rainbow_blue:"rgb(130,170,220)",rainbow_indigo:"rgb(155,130,200)",rainbow_violet:"rgb(200,130,180)",rainbow_red_shimmer:"rgb(250,155,147)",rainbow_orange_shimmer:"rgb(255,185,137)",rainbow_yellow_shimmer:"rgb(255,225,155)",rainbow_green_shimmer:"rgb(185,230,180)",rainbow_blue_shimmer:"rgb(180,205,240)",rainbow_indigo_shimmer:"rgb(195,180,230)",rainbow_violet_shimmer:"rgb(230,180,210)"},LF={autoAccept:"ansi:magenta",bashBorder:"ansi:magenta",claude:"ansi:redBright",claudeShimmer:"ansi:yellowBright",claudeBlue_FOR_SYSTEM_SPINNER:"ansi:blue",claudeBlueShimmer_FOR_SYSTEM_SPINNER:"ansi:blueBright",permission:"ansi:blue",permissionShimmer:"ansi:blueBright",planMode:"ansi:cyan",ide:"ansi:blueBright",promptBorder:"ansi:white",promptBorderShimmer:"ansi:whiteBright",text:"ansi:black",inverseText:"ansi:white",inactive:"ansi:blackBright",inactiveShimmer:"ansi:white",subtle:"ansi:blackBright",suggestion:"ansi:blue",remember:"ansi:blue",background:"ansi:cyan",success:"ansi:green",error:"ansi:red",warning:"ansi:yellow",merged:"ansi:magenta",warningShimmer:"ansi:yellowBright",diffAdded:"ansi:green",diffRemoved:"ansi:red",diffAddedDimmed:"ansi:green",diffRemovedDimmed:"ansi:red",diffAddedWord:"ansi:greenBright",diffRemovedWord:"ansi:redBright",red_FOR_SUBAGENTS_ONLY:"ansi:red",blue_FOR_SUBAGENTS_ONLY:"ansi:blue",green_FOR_SUBAGENTS_ONLY:"ansi:green",yellow_FOR_SUBAGENTS_ONLY:"ansi:yellow",purple_FOR_SUBAGENTS_ONLY:"ansi:magenta",orange_FOR_SUBAGENTS_ONLY:"ansi:redBright",pink_FOR_SUBAGENTS_ONLY:"ansi:magentaBright",cyan_FOR_SUBAGENTS_ONLY:"ansi:cyan",professionalBlue:"ansi:blueBright",chromeYellow:"ansi:yellow",clawd_body:"ansi:redBright",clawd_background:"ansi:black",userMessageBackground:"ansi:white",userMessageBackgroundHover:"ansi:whiteBright",messageActionsBackground:"ansi:white",selectionBg:"ansi:cyan",bashMessageBackgroundColor:"ansi:whiteBright",memoryBackgroundColor:"ansi:white",rate_limit_fill:"ansi:yellow",rate_limit_empty:"ansi:black",fastMode:"ansi:red",fastModeShimmer:"ansi:redBright",briefLabelYou:"ansi:blue",briefLabelClaude:"ansi:redBright",rainbow_red:"ansi:red",rainbow_orange:"ansi:redBright",rainbow_yellow:"ansi:yellow",rainbow_green:"ansi:green",rainbow_blue:"ansi:cyan",rainbow_indigo:"ansi:blue",rainbow_violet:"ansi:magenta",rainbow_red_shimmer:"ansi:redBright",rainbow_orange_shimmer:"ansi:yellow",rainbow_yellow_shimmer:"ansi:yellowBright",rainbow_green_shimmer:"ansi:greenBright",rainbow_blue_shimmer:"ansi:cyanBright",rainbow_indigo_shimmer:"ansi:blueBright",rainbow_violet_shimmer:"ansi:magentaBright"},$F={autoAccept:"ansi:magentaBright",bashBorder:"ansi:magentaBright",claude:"ansi:redBright",claudeShimmer:"ansi:yellowBright",claudeBlue_FOR_SYSTEM_SPINNER:"ansi:blueBright",claudeBlueShimmer_FOR_SYSTEM_SPINNER:"ansi:blueBright",permission:"ansi:blueBright",permissionShimmer:"ansi:blueBright",planMode:"ansi:cyanBright",ide:"ansi:blue",promptBorder:"ansi:white",promptBorderShimmer:"ansi:whiteBright",text:"ansi:whiteBright",inverseText:"ansi:black",inactive:"ansi:white",inactiveShimmer:"ansi:whiteBright",subtle:"ansi:white",suggestion:"ansi:blueBright",remember:"ansi:blueBright",background:"ansi:cyanBright",success:"ansi:greenBright",error:"ansi:redBright",warning:"ansi:yellowBright",merged:"ansi:magentaBright",warningShimmer:"ansi:yellowBright",diffAdded:"ansi:green",diffRemoved:"ansi:red",diffAddedDimmed:"ansi:green",diffRemovedDimmed:"ansi:red",diffAddedWord:"ansi:greenBright",diffRemovedWord:"ansi:redBright",red_FOR_SUBAGENTS_ONLY:"ansi:redBright",blue_FOR_SUBAGENTS_ONLY:"ansi:blueBright",green_FOR_SUBAGENTS_ONLY:"ansi:greenBright",yellow_FOR_SUBAGENTS_ONLY:"ansi:yellowBright",purple_FOR_SUBAGENTS_ONLY:"ansi:magentaBright",orange_FOR_SUBAGENTS_ONLY:"ansi:redBright",pink_FOR_SUBAGENTS_ONLY:"ansi:magentaBright",cyan_FOR_SUBAGENTS_ONLY:"ansi:cyanBright",professionalBlue:"rgb(106,155,204)",chromeYellow:"ansi:yellowBright",clawd_body:"ansi:redBright",clawd_background:"ansi:black",userMessageBackground:"ansi:blackBright",userMessageBackgroundHover:"ansi:white",messageActionsBackground:"ansi:blackBright",selectionBg:"ansi:blue",bashMessageBackgroundColor:"ansi:black",memoryBackgroundColor:"ansi:blackBright",rate_limit_fill:"ansi:yellow",rate_limit_empty:"ansi:white",fastMode:"ansi:redBright",fastModeShimmer:"ansi:redBright",briefLabelYou:"ansi:blueBright",briefLabelClaude:"ansi:redBright",rainbow_red:"ansi:red",rainbow_orange:"ansi:redBright",rainbow_yellow:"ansi:yellow",rainbow_green:"ansi:green",rainbow_blue:"ansi:cyan",rainbow_indigo:"ansi:blue",rainbow_violet:"ansi:magenta",rainbow_red_shimmer:"ansi:redBright",rainbow_orange_shimmer:"ansi:yellow",rainbow_yellow_shimmer:"ansi:yellowBright",rainbow_green_shimmer:"ansi:greenBright",rainbow_blue_shimmer:"ansi:cyanBright",rainbow_indigo_shimmer:"ansi:blueBright",rainbow_violet_shimmer:"ansi:magentaBright"},RF={autoAccept:"rgb(135,0,255)",bashBorder:"rgb(0,102,204)",claude:"rgb(255,153,51)",claudeShimmer:"rgb(255,183,101)",claudeBlue_FOR_SYSTEM_SPINNER:"rgb(51,102,255)",claudeBlueShimmer_FOR_SYSTEM_SPINNER:"rgb(101,152,255)",permission:"rgb(51,102,255)",permissionShimmer:"rgb(101,152,255)",planMode:"rgb(51,102,102)",ide:"rgb(71,130,200)",promptBorder:"rgb(153,153,153)",promptBorderShimmer:"rgb(183,183,183)",text:"rgb(0,0,0)",inverseText:"rgb(255,255,255)",inactive:"rgb(102,102,102)",inactiveShimmer:"rgb(142,142,142)",subtle:"rgb(175,175,175)",suggestion:"rgb(51,102,255)",remember:"rgb(51,102,255)",background:"rgb(0,153,153)",success:"rgb(0,102,153)",error:"rgb(204,0,0)",warning:"rgb(255,153,0)",merged:"rgb(135,0,255)",warningShimmer:"rgb(255,183,50)",diffAdded:"rgb(153,204,255)",diffRemoved:"rgb(255,204,204)",diffAddedDimmed:"rgb(209,231,253)",diffRemovedDimmed:"rgb(255,233,233)",diffAddedWord:"rgb(51,102,204)",diffRemovedWord:"rgb(153,51,51)",red_FOR_SUBAGENTS_ONLY:"rgb(204,0,0)",blue_FOR_SUBAGENTS_ONLY:"rgb(0,102,204)",green_FOR_SUBAGENTS_ONLY:"rgb(0,204,0)",yellow_FOR_SUBAGENTS_ONLY:"rgb(255,204,0)",purple_FOR_SUBAGENTS_ONLY:"rgb(128,0,128)",orange_FOR_SUBAGENTS_ONLY:"rgb(255,128,0)",pink_FOR_SUBAGENTS_ONLY:"rgb(255,102,178)",cyan_FOR_SUBAGENTS_ONLY:"rgb(0,178,178)",professionalBlue:"rgb(106,155,204)",chromeYellow:"rgb(251,188,4)",clawd_body:"rgb(215,119,87)",clawd_background:"rgb(0,0,0)",userMessageBackground:"rgb(220, 220, 220)",userMessageBackgroundHover:"rgb(232, 232, 232)",messageActionsBackground:"rgb(210, 216, 226)",selectionBg:"rgb(180, 213, 255)",bashMessageBackgroundColor:"rgb(250, 245, 250)",memoryBackgroundColor:"rgb(230, 245, 250)",rate_limit_fill:"rgb(51,102,255)",rate_limit_empty:"rgb(23,46,114)",fastMode:"rgb(255,106,0)",fastModeShimmer:"rgb(255,150,50)",briefLabelYou:"rgb(37,99,235)",briefLabelClaude:"rgb(255,153,51)",rainbow_red:"rgb(235,95,87)",rainbow_orange:"rgb(245,139,87)",rainbow_yellow:"rgb(250,195,95)",rainbow_green:"rgb(145,200,130)",rainbow_blue:"rgb(130,170,220)",rainbow_indigo:"rgb(155,130,200)",rainbow_violet:"rgb(200,130,180)",rainbow_red_shimmer:"rgb(250,155,147)",rainbow_orange_shimmer:"rgb(255,185,137)",rainbow_yellow_shimmer:"rgb(255,225,155)",rainbow_green_shimmer:"rgb(185,230,180)",rainbow_blue_shimmer:"rgb(180,205,240)",rainbow_indigo_shimmer:"rgb(195,180,230)",rainbow_violet_shimmer:"rgb(230,180,210)"},EF={autoAccept:"rgb(175,135,255)",bashBorder:"rgb(253,93,177)",claude:"rgb(215,119,87)",claudeShimmer:"rgb(235,159,127)",claudeBlue_FOR_SYSTEM_SPINNER:"rgb(147,165,255)",claudeBlueShimmer_FOR_SYSTEM_SPINNER:"rgb(177,195,255)",permission:"rgb(177,185,249)",permissionShimmer:"rgb(207,215,255)",planMode:"rgb(72,150,140)",ide:"rgb(71,130,200)",promptBorder:"rgb(136,136,136)",promptBorderShimmer:"rgb(166,166,166)",text:"rgb(255,255,255)",inverseText:"rgb(0,0,0)",inactive:"rgb(153,153,153)",inactiveShimmer:"rgb(193,193,193)",subtle:"rgb(80,80,80)",suggestion:"rgb(177,185,249)",remember:"rgb(177,185,249)",background:"rgb(0,204,204)",success:"rgb(78,186,101)",error:"rgb(255,107,128)",warning:"rgb(255,193,7)",merged:"rgb(175,135,255)",warningShimmer:"rgb(255,223,57)",diffAdded:"rgb(34,92,43)",diffRemoved:"rgb(122,41,54)",diffAddedDimmed:"rgb(71,88,74)",diffRemovedDimmed:"rgb(105,72,77)",diffAddedWord:"rgb(56,166,96)",diffRemovedWord:"rgb(179,89,107)",red_FOR_SUBAGENTS_ONLY:"rgb(220,38,38)",blue_FOR_SUBAGENTS_ONLY:"rgb(37,99,235)",green_FOR_SUBAGENTS_ONLY:"rgb(22,163,74)",yellow_FOR_SUBAGENTS_ONLY:"rgb(202,138,4)",purple_FOR_SUBAGENTS_ONLY:"rgb(147,51,234)",orange_FOR_SUBAGENTS_ONLY:"rgb(234,88,12)",pink_FOR_SUBAGENTS_ONLY:"rgb(219,39,119)",cyan_FOR_SUBAGENTS_ONLY:"rgb(8,145,178)",professionalBlue:"rgb(106,155,204)",chromeYellow:"rgb(251,188,4)",clawd_body:"rgb(215,119,87)",clawd_background:"rgb(0,0,0)",userMessageBackground:"rgb(55, 55, 55)",userMessageBackgroundHover:"rgb(70, 70, 70)",messageActionsBackground:"rgb(44, 50, 62)",selectionBg:"rgb(38, 79, 120)",bashMessageBackgroundColor:"rgb(65, 60, 65)",memoryBackgroundColor:"rgb(55, 65, 70)",rate_limit_fill:"rgb(177,185,249)",rate_limit_empty:"rgb(80,83,112)",fastMode:"rgb(255,120,20)",fastModeShimmer:"rgb(255,165,70)",briefLabelYou:"rgb(122,180,232)",briefLabelClaude:"rgb(215,119,87)",rainbow_red:"rgb(235,95,87)",rainbow_orange:"rgb(245,139,87)",rainbow_yellow:"rgb(250,195,95)",rainbow_green:"rgb(145,200,130)",rainbow_blue:"rgb(130,170,220)",rainbow_indigo:"rgb(155,130,200)",rainbow_violet:"rgb(200,130,180)",rainbow_red_shimmer:"rgb(250,155,147)",rainbow_orange_shimmer:"rgb(255,185,137)",rainbow_yellow_shimmer:"rgb(255,225,155)",rainbow_green_shimmer:"rgb(185,230,180)",rainbow_blue_shimmer:"rgb(180,205,240)",rainbow_indigo_shimmer:"rgb(195,180,230)",rainbow_violet_shimmer:"rgb(230,180,210)"},TF={autoAccept:"rgb(175,135,255)",bashBorder:"rgb(51,153,255)",claude:"rgb(255,153,51)",claudeShimmer:"rgb(255,183,101)",claudeBlue_FOR_SYSTEM_SPINNER:"rgb(153,204,255)",claudeBlueShimmer_FOR_SYSTEM_SPINNER:"rgb(183,224,255)",permission:"rgb(153,204,255)",permissionShimmer:"rgb(183,224,255)",planMode:"rgb(102,153,153)",ide:"rgb(71,130,200)",promptBorder:"rgb(136,136,136)",promptBorderShimmer:"rgb(166,166,166)",text:"rgb(255,255,255)",inverseText:"rgb(0,0,0)",inactive:"rgb(153,153,153)",inactiveShimmer:"rgb(193,193,193)",subtle:"rgb(80,80,80)",suggestion:"rgb(153,204,255)",remember:"rgb(153,204,255)",background:"rgb(0,204,204)",success:"rgb(51,153,255)",error:"rgb(255,102,102)",warning:"rgb(255,204,0)",merged:"rgb(175,135,255)",warningShimmer:"rgb(255,234,50)",diffAdded:"rgb(0,68,102)",diffRemoved:"rgb(102,0,0)",diffAddedDimmed:"rgb(62,81,91)",diffRemovedDimmed:"rgb(62,44,44)",diffAddedWord:"rgb(0,119,179)",diffRemovedWord:"rgb(179,0,0)",red_FOR_SUBAGENTS_ONLY:"rgb(255,102,102)",blue_FOR_SUBAGENTS_ONLY:"rgb(102,178,255)",green_FOR_SUBAGENTS_ONLY:"rgb(102,255,102)",yellow_FOR_SUBAGENTS_ONLY:"rgb(255,255,102)",purple_FOR_SUBAGENTS_ONLY:"rgb(178,102,255)",orange_FOR_SUBAGENTS_ONLY:"rgb(255,178,102)",pink_FOR_SUBAGENTS_ONLY:"rgb(255,153,204)",cyan_FOR_SUBAGENTS_ONLY:"rgb(102,204,204)",professionalBlue:"rgb(106,155,204)",chromeYellow:"rgb(251,188,4)",clawd_body:"rgb(215,119,87)",clawd_background:"rgb(0,0,0)",userMessageBackground:"rgb(55, 55, 55)",userMessageBackgroundHover:"rgb(70, 70, 70)",messageActionsBackground:"rgb(44, 50, 62)",selectionBg:"rgb(38, 79, 120)",bashMessageBackgroundColor:"rgb(65, 60, 65)",memoryBackgroundColor:"rgb(55, 65, 70)",rate_limit_fill:"rgb(153,204,255)",rate_limit_empty:"rgb(69,92,115)",fastMode:"rgb(255,120,20)",fastModeShimmer:"rgb(255,165,70)",briefLabelYou:"rgb(122,180,232)",briefLabelClaude:"rgb(255,153,51)",rainbow_red:"rgb(235,95,87)",rainbow_orange:"rgb(245,139,87)",rainbow_yellow:"rgb(250,195,95)",rainbow_green:"rgb(145,200,130)",rainbow_blue:"rgb(130,170,220)",rainbow_indigo:"rgb(155,130,200)",rainbow_violet:"rgb(200,130,180)",rainbow_red_shimmer:"rgb(250,155,147)",rainbow_orange_shimmer:"rgb(255,185,137)",rainbow_yellow_shimmer:"rgb(255,225,155)",rainbow_green_shimmer:"rgb(185,230,180)",rainbow_blue_shimmer:"rgb(180,205,240)",rainbow_indigo_shimmer:"rgb(195,180,230)",rainbow_violet_shimmer:"rgb(230,180,210)"};CF=DQ.terminal==="Apple_Terminal"?new lO({level:2}):K0});function SF(Z,K,G="foreground"){return(z)=>{if(!Z)return z;if(Z.startsWith("rgb(")||Z.startsWith("#")||Z.startsWith("ansi256(")||Z.startsWith("ansi:"))return K5(z,Z,G);return K5(z,EQ(K)[Z],G)}}var dO=P(()=>{_6();gG()});function TQ(Z,K){if(!Z)return;if(Z.startsWith("rgb(")||Z.startsWith("#")||Z.startsWith("ansi256(")||Z.startsWith("ansi:"))return Z;return K[Z]}function vF(Z,K){let G=aO.c(33),z,q,Y,j,H,D,V,A;if(G[0]!==Z)({borderColor:Y,borderTopColor:D,borderBottomColor:q,borderLeftColor:j,borderRightColor:H,backgroundColor:z,children:V,...A}=Z),G[0]=Z,G[1]=z,G[2]=q,G[3]=Y,G[4]=j,G[5]=H,G[6]=D,G[7]=V,G[8]=A;else z=G[1],q=G[2],Y=G[3],j=G[4],H=G[5],D=G[6],V=G[7],A=G[8];let[M]=D6(),F,_,R,W,E,T;if(G[10]!==z||G[11]!==q||G[12]!==Y||G[13]!==j||G[14]!==H||G[15]!==D||G[16]!==M){let y=EQ(M);_=TQ(Y,y),E=TQ(D,y),F=TQ(q,y),R=TQ(j,y),W=TQ(H,y),T=TQ(z,y),G[10]=z,G[11]=q,G[12]=Y,G[13]=j,G[14]=H,G[15]=D,G[16]=M,G[17]=F,G[18]=_,G[19]=R,G[20]=W,G[21]=E,G[22]=T}else F=G[17],_=G[18],R=G[19],W=G[20],E=G[21],T=G[22];let $=T,I;if(G[23]!==V||G[24]!==K||G[25]!==$||G[26]!==F||G[27]!==_||G[28]!==R||G[29]!==W||G[30]!==E||G[31]!==A)I=Q0(n7,{ref:K,borderColor:_,borderTopColor:E,borderBottomColor:F,borderLeftColor:R,borderRightColor:W,backgroundColor:$,...A,children:V}),G[23]=V,G[24]=K,G[25]=$,G[26]=F,G[27]=_,G[28]=R,G[29]=W,G[30]=E,G[31]=A,G[32]=I;else I=G[32];return I}var aO,iO,sO,xF;var nO=P(()=>{XJ();gG();V6();m0();aO=U0(R7(),1),iO=U0(n0(),1);sO=iO.default.forwardRef(vF);sO.displayName="ThemedBox";xF=sO});function tO(Z,K){if(!Z)return;if(Z.startsWith("rgb(")||Z.startsWith("#")||Z.startsWith("ansi256(")||Z.startsWith("ansi:"))return Z;return K[Z]}function rO(Z){let K=oO.c(10),{color:G,backgroundColor:z,dimColor:q,bold:Y,italic:j,underline:H,strikethrough:D,inverse:V,wrap:A,children:M}=Z,F=q===void 0?!1:q,_=Y===void 0?!1:Y,R=j===void 0?!1:j,W=H===void 0?!1:H,E=D===void 0?!1:D,T=V===void 0?!1:V,$=A===void 0?"wrap":A,[I]=D6(),y=EQ(I),m=hG.useContext(bF),b=!G&&m?tO(m,y):F?y.inactive:tO(G,y),u=z?y[z]:void 0,f;if(K[0]!==_||K[1]!==M||K[2]!==T||K[3]!==R||K[4]!==u||K[5]!==b||K[6]!==E||K[7]!==W||K[8]!==$)f=Q0(SZ,{color:b,backgroundColor:u,bold:_,italic:R,underline:W,strikethrough:E,inverse:T,wrap:$,children:M}),K[0]=_,K[1]=M,K[2]=T,K[3]=R,K[4]=u,K[5]=b,K[6]=E,K[7]=W,K[8]=$,K[9]=f;else f=K[9];return f}var oO,hG,bF;var eO=P(()=>{_Q();gG();V6();m0();oO=U0(R7(),1),hG=U0(n0(),1),bF=hG.default.createContext(void 0)});var QH=g5((lS,JH)=>{var yF=PF(),CQ=IF();function ZH(Z){if(/^\d{3,4}$/.test(Z)){let G=/(\d{1,2})(\d{2})/.exec(Z)||[];return{major:0,minor:parseInt(G[1],10),patch:parseInt(G[2],10)}}let K=(Z||"").split(".").map((G)=>parseInt(G,10));return{major:K[0],minor:K[1],patch:K[2]}}function xU(Z){let{CI:K,FORCE_HYPERLINK:G,NETLIFY:z,TEAMCITY_VERSION:q,TERM_PROGRAM:Y,TERM_PROGRAM_VERSION:j,VTE_VERSION:H,TERM:D}=process.env;if(G)return!(G.length>0&&parseInt(G,10)===0);if(CQ("no-hyperlink")||CQ("no-hyperlinks")||CQ("hyperlink=false")||CQ("hyperlink=never"))return!1;if(CQ("hyperlink=true")||CQ("hyperlink=always"))return!0;if(z)return!0;if(!yF.supportsColor(Z))return!1;if(Z&&!Z.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32")return!1;if(K)return!1;if(q)return!1;if(Y){let V=ZH(j||"");switch(Y){case"iTerm.app":if(V.major===3)return V.minor>=1;return V.major>3;case"WezTerm":return V.major>=20200620;case"vscode":return V.major>1||V.major===1&&V.minor>=72;case"ghostty":return!0}}if(H){if(H==="0.50.0")return!1;let V=ZH(H);return V.major>0||V.minor>=50}switch(D){case"alacritty":return!0}return!1}JH.exports={supportsHyperlink:xU,stdout:xU(process.stdout),stderr:xU(process.stderr)}});function GH(Z){if(Z?.stdoutSupported??bU.default.stdout)return!0;let G=Z?.env??process.env,z=G.TERM_PROGRAM;if(z&&KH.includes(z))return!0;let q=G.LC_TERMINAL;if(q&&KH.includes(q))return!0;if(G.TERM?.includes("kitty"))return!0;return!1}var bU,KH;var XH=P(()=>{bU=U0(QH(),1),KH=["ghostty","Hyper","kitty","alacritty","iTerm.app","iTerm2"]});function B9(Z){let K=zH.c(5),{children:G,url:z,fallback:q}=Z,Y=G??z;if(GH()){let D;if(K[0]!==Y||K[1]!==z)D=Q0(SZ,{children:Q0("ink-link",{href:z,children:Y})}),K[0]=Y,K[1]=z,K[2]=D;else D=K[2];return D}let j=q??Y,H;if(K[3]!==j)H=Q0(SZ,{children:j}),K[3]=j,K[4]=H;else H=K[4];return H}var zH;var IU=P(()=>{XH();_Q();m0();zH=U0(R7(),1)});function UH(Z){if(Z.length===0)return null;let K=Z[0];if(K==="c")return{type:"reset"};if(K==="7")return{type:"cursor",action:{type:"save"}};if(K==="8")return{type:"cursor",action:{type:"restore"}};if(K==="D")return{type:"cursor",action:{type:"move",direction:"down",count:1}};if(K==="M")return{type:"cursor",action:{type:"move",direction:"up",count:1}};if(K==="E")return{type:"cursor",action:{type:"nextLine",count:1}};if(K==="H")return null;if("()".includes(K)&&Z.length>=2)return null;return{type:"unknown",sequence:`\x1B${Z}`}}var qH=()=>{};function SQ(){return{bold:!1,dim:!1,italic:!1,underline:"none",blink:!1,inverse:!1,hidden:!1,strikethrough:!1,overline:!1,fg:{type:"default"},bg:{type:"default"},underlineColor:{type:"default"}}}var uG=()=>{};function fF(Z){if(Z==="")return[{value:0,subparams:[],colon:!1}];let K=[],G={value:null,subparams:[],colon:!1},z="",q=!1;for(let Y=0;Y<=Z.length;Y++){let j=Z[Y];if(j===";"||j===void 0){let H=z===""?null:parseInt(z,10);if(q){if(H!==null)G.subparams.push(H)}else G.value=H;K.push(G),G={value:null,subparams:[],colon:!1},z="",q=!1}else if(j===":"){let H=z===""?null:parseInt(z,10);if(!q)G.value=H,G.colon=!0,q=!0;else if(H!==null)G.subparams.push(H);z=""}else if(j>="0"&&j<="9")z+=j}return K}function PU(Z,K){let G=Z[K];if(!G)return null;if(G.colon&&G.subparams.length>=1){if(G.subparams[0]===5&&G.subparams.length>=2)return{index:G.subparams[1]};if(G.subparams[0]===2&&G.subparams.length>=4){let q=G.subparams.length>=5?1:0;return{r:G.subparams[1+q],g:G.subparams[2+q],b:G.subparams[3+q]}}}let z=Z[K+1];if(!z)return null;if(z.value===5&&Z[K+2]?.value!==null&&Z[K+2]?.value!==void 0)return{index:Z[K+2].value};if(z.value===2){let q=Z[K+2]?.value,Y=Z[K+3]?.value,j=Z[K+4]?.value;if(q!==null&&q!==void 0&&Y!==null&&Y!==void 0&&j!==null&&j!==void 0)return{r:q,g:Y,b:j}}return null}function BH(Z,K){let G=fF(Z),z={...K},q=0;while(q<G.length){let Y=G[q],j=Y.value??0;if(j===0){z=SQ(),q++;continue}if(j===1){z.bold=!0,q++;continue}if(j===2){z.dim=!0,q++;continue}if(j===3){z.italic=!0,q++;continue}if(j===4){z.underline=Y.colon?mF[Y.subparams[0]]??"single":"single",q++;continue}if(j===5||j===6){z.blink=!0,q++;continue}if(j===7){z.inverse=!0,q++;continue}if(j===8){z.hidden=!0,q++;continue}if(j===9){z.strikethrough=!0,q++;continue}if(j===21){z.underline="double",q++;continue}if(j===22){z.bold=!1,z.dim=!1,q++;continue}if(j===23){z.italic=!1,q++;continue}if(j===24){z.underline="none",q++;continue}if(j===25){z.blink=!1,q++;continue}if(j===27){z.inverse=!1,q++;continue}if(j===28){z.hidden=!1,q++;continue}if(j===29){z.strikethrough=!1,q++;continue}if(j===53){z.overline=!0,q++;continue}if(j===55){z.overline=!1,q++;continue}if(j>=30&&j<=37){z.fg={type:"named",name:pG[j-30]},q++;continue}if(j===39){z.fg={type:"default"},q++;continue}if(j>=40&&j<=47){z.bg={type:"named",name:pG[j-40]},q++;continue}if(j===49){z.bg={type:"default"},q++;continue}if(j>=90&&j<=97){z.fg={type:"named",name:pG[j-90+8]},q++;continue}if(j>=100&&j<=107){z.bg={type:"named",name:pG[j-100+8]},q++;continue}if(j===38){let H=PU(G,q);if(H){z.fg="index"in H?{type:"indexed",index:H.index}:{type:"rgb",...H},q+=Y.colon?1:("index"in H)?3:5;continue}}if(j===48){let H=PU(G,q);if(H){z.bg="index"in H?{type:"indexed",index:H.index}:{type:"rgb",...H},q+=Y.colon?1:("index"in H)?3:5;continue}}if(j===58){let H=PU(G,q);if(H){z.underlineColor="index"in H?{type:"indexed",index:H.index}:{type:"rgb",...H},q+=Y.colon?1:("index"in H)?3:5;continue}}if(j===59){z.underlineColor={type:"default"},q++;continue}q++}return z}var pG,mF;var YH=P(()=>{uG();pG=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],mF=["none","single","double","curly","dotted","dashed"]});function wF(Z){return Z>=9728&&Z<=9983||Z>=9984&&Z<=10175||Z>=127744&&Z<=129535||Z>=129536&&Z<=129791||Z>=127456&&Z<=127487}function kF(Z){return Z>=4352&&Z<=4447||Z>=11904&&Z<=40959||Z>=44032&&Z<=55203||Z>=63744&&Z<=64255||Z>=65040&&Z<=65055||Z>=65072&&Z<=65135||Z>=65280&&Z<=65376||Z>=65504&&Z<=65510||Z>=131072&&Z<=196605||Z>=196608&&Z<=262141}function gF(Z){let K=0;for(let G of Z)if(K++,K>1)return!0;return!1}function hF(Z){if(gF(Z))return 2;let K=Z.codePointAt(0);if(K===void 0)return 1;if(wF(K)||kF(K))return 2;return 1}function*jH(Z){for(let{segment:K}of bG().segment(Z))yield{value:K,width:hF(K)}}function uF(Z){if(Z==="")return[];return Z.split(/[;:]/).map((K)=>K===""?0:parseInt(K,10))}function pF(Z){let K=Z.slice(2);if(K.length===0)return null;let G=K.charCodeAt(K.length-1),z=K.slice(0,-1),q="",Y=z,j="";if(z.length>0&&"?>=".includes(z[0]))q=z[0],Y=z.slice(1);let H=Y.match(/([^0-9;:]+)$/);if(H)j=H[1],Y=Y.slice(0,-j.length);let D=uF(Y),V=D[0]??1,A=D[1]??1;if(G===qZ.SGR&&q==="")return{type:"sgr",params:Y};if(G===qZ.CUU)return{type:"cursor",action:{type:"move",direction:"up",count:V}};if(G===qZ.CUD)return{type:"cursor",action:{type:"move",direction:"down",count:V}};if(G===qZ.CUF)return{type:"cursor",action:{type:"move",direction:"forward",count:V}};if(G===qZ.CUB)return{type:"cursor",action:{type:"move",direction:"back",count:V}};if(G===qZ.CNL)return{type:"cursor",action:{type:"nextLine",count:V}};if(G===qZ.CPL)return{type:"cursor",action:{type:"prevLine",count:V}};if(G===qZ.CHA)return{type:"cursor",action:{type:"column",col:V}};if(G===qZ.CUP||G===qZ.HVP)return{type:"cursor",action:{type:"position",row:V,col:A}};if(G===qZ.VPA)return{type:"cursor",action:{type:"row",row:V}};if(G===qZ.ED)return{type:"erase",action:{type:"display",region:OH[D[0]??0]??"toEnd"}};if(G===qZ.EL)return{type:"erase",action:{type:"line",region:HH[D[0]??0]??"toEnd"}};if(G===qZ.ECH)return{type:"erase",action:{type:"chars",count:V}};if(G===qZ.SU)return{type:"scroll",action:{type:"up",count:V}};if(G===qZ.SD)return{type:"scroll",action:{type:"down",count:V}};if(G===qZ.DECSTBM)return{type:"scroll",action:{type:"setRegion",top:V,bottom:A}};if(G===qZ.SCOSC)return{type:"cursor",action:{type:"save"}};if(G===qZ.SCORC)return{type:"cursor",action:{type:"restore"}};if(G===qZ.DECSCUSR&&j===" ")return{type:"cursor",action:{type:"style",...yU[V]??yU[0]}};if(q==="?"&&(G===qZ.SM||G===qZ.RM)){let M=G===qZ.SM;if(V===e0.CURSOR_VISIBLE)return{type:"cursor",action:M?{type:"show"}:{type:"hide"}};if(V===e0.ALT_SCREEN_CLEAR||V===e0.ALT_SCREEN)return{type:"mode",action:{type:"alternateScreen",enabled:M}};if(V===e0.BRACKETED_PASTE)return{type:"mode",action:{type:"bracketedPaste",enabled:M}};if(V===e0.MOUSE_NORMAL)return{type:"mode",action:{type:"mouseTracking",mode:M?"normal":"off"}};if(V===e0.MOUSE_BUTTON)return{type:"mode",action:{type:"mouseTracking",mode:M?"button":"off"}};if(V===e0.MOUSE_ANY)return{type:"mode",action:{type:"mouseTracking",mode:M?"any":"off"}};if(V===e0.FOCUS_EVENTS)return{type:"mode",action:{type:"focusEvents",enabled:M}}}return{type:"unknown",sequence:Z}}function cF(Z){if(Z.length<2)return"unknown";if(Z.charCodeAt(0)!==k4.ESC)return"unknown";let K=Z.charCodeAt(1);if(K===91)return"csi";if(K===93)return"osc";if(K===79)return"ss3";return"esc"}class cG{tokenizer=eJ();style=SQ();inLink=!1;linkUrl;reset(){this.tokenizer.reset(),this.style=SQ(),this.inLink=!1,this.linkUrl=void 0}feed(Z){let K=this.tokenizer.feed(Z),G=[];for(let z of K){let q=this.processToken(z);G.push(...q)}return G}processToken(Z){switch(Z.type){case"text":return this.processText(Z.value);case"sequence":return this.processSequence(Z.value)}}processText(Z){let K=[],G="";for(let z of Z)if(z.charCodeAt(0)===k4.BEL){if(G){let q=[...jH(G)];if(q.length>0)K.push({type:"text",graphemes:q,style:{...this.style}});G=""}K.push({type:"bell"})}else G+=z;if(G){let z=[...jH(G)];if(z.length>0)K.push({type:"text",graphemes:z,style:{...this.style}})}return K}processSequence(Z){switch(cF(Z)){case"csi":{let G=pF(Z);if(!G)return[];if(G.type==="sgr")return this.style=BH(G.params,this.style),[];return[G]}case"osc":{let G=Z.slice(2);if(G.endsWith("\x07"))G=G.slice(0,-1);else if(G.endsWith("\x1B\\"))G=G.slice(0,-2);let z=n2(G);if(z){if(z.type==="link")if(z.action.type==="start")this.inLink=!0,this.linkUrl=z.action.url;else this.inLink=!1,this.linkUrl=void 0;return[z]}return[]}case"esc":{let G=Z.slice(1),z=UH(G);return z?[z]:[]}case"ss3":return[{type:"unknown",sequence:Z}];default:return[{type:"unknown",sequence:Z}]}}}var DH=P(()=>{GO();W6();_8();n6();qH();l4();YH();FK();uG()});var VH=P(()=>{DH();uG()});function dF(Z){let G=new cG().feed(Z),z=[],q;for(let Y of G){if(Y.type==="link"){if(Y.action.type==="start")q=Y.action.url;else q=void 0;continue}if(Y.type==="text"){let j=Y.graphemes.map((V)=>V.value).join("");if(!j)continue;let H=aF(Y.style);if(q)H.hyperlink=q;let D=z[z.length-1];if(D&&sF(D.props,H))D.text+=j;else z.push({text:j,props:H})}}return z}function aF(Z){let K={};if(Z.bold)K.bold=!0;if(Z.dim)K.dim=!0;if(Z.italic)K.italic=!0;if(Z.underline!=="none")K.underline=!0;if(Z.strikethrough)K.strikethrough=!0;if(Z.inverse)K.inverse=!0;let G=AH(Z.fg);if(G)K.color=G;let z=AH(Z.bg);if(z)K.backgroundColor=z;return K}function AH(Z){switch(Z.type){case"named":return iF[Z.name];case"indexed":return`ansi256(${Z.index})`;case"rgb":return`rgb(${Z.r},${Z.g},${Z.b})`;case"default":return}}function sF(Z,K){return Z.color===K.color&&Z.backgroundColor===K.backgroundColor&&Z.bold===K.bold&&Z.dim===K.dim&&Z.italic===K.italic&&Z.underline===K.underline&&Z.strikethrough===K.strikethrough&&Z.inverse===K.inverse&&Z.hyperlink===K.hyperlink}function nF(Z){return Z.color!==void 0||Z.backgroundColor!==void 0||Z.dim===!0||Z.bold===!0||Z.italic===!0||Z.underline===!0||Z.strikethrough===!0||Z.inverse===!0||Z.hyperlink!==void 0}function tF(Z){return Z.color!==void 0||Z.backgroundColor!==void 0||Z.dim===!0||Z.bold===!0||Z.italic===!0||Z.underline===!0||Z.strikethrough===!0||Z.inverse===!0}function NH(Z){let K=mU.c(14),G,z,q,Y;if(K[0]!==Z)({bold:G,dim:q,children:z,...Y}=Z),K[0]=Z,K[1]=G,K[2]=z,K[3]=q,K[4]=Y;else G=K[1],z=K[2],q=K[3],Y=K[4];if(q){let H;if(K[5]!==z||K[6]!==Y)H=Q0(SZ,{...Y,dim:!0,children:z}),K[5]=z,K[6]=Y,K[7]=H;else H=K[7];return H}if(G){let H;if(K[8]!==z||K[9]!==Y)H=Q0(SZ,{...Y,bold:!0,children:z}),K[8]=z,K[9]=Y,K[10]=H;else H=K[10];return H}let j;if(K[11]!==z||K[12]!==Y)j=Q0(SZ,{...Y,children:z}),K[11]=z,K[12]=Y,K[13]=j;else j=K[13];return j}var mU,MH,lF,iF;var _H=P(()=>{IU();_Q();VH();m0();mU=U0(R7(),1),MH=U0(n0(),1),lF=MH.default.memo(function(K){let G=mU.c(12),{children:z,dimColor:q}=K;if(typeof z!=="string"){let V;if(G[0]!==z||G[1]!==q)V=q?Q0(SZ,{dim:!0,children:String(z)}):Q0(SZ,{children:String(z)}),G[0]=z,G[1]=q,G[2]=V;else V=G[2];return V}if(z==="")return null;let Y,j;if(G[3]!==z||G[4]!==q){j=Symbol.for("react.early_return_sentinel");Z:{let V=dF(z);if(V.length===0){j=null;break Z}if(V.length===1&&!nF(V[0].props)){j=q?Q0(SZ,{dim:!0,children:V[0].text}):Q0(SZ,{children:V[0].text});break Z}let A;if(G[7]!==q)A=(M,F)=>{let _=M.props.hyperlink;if(q)M.props.dim=!0;let R=tF(M.props);if(_)return R?Q0(B9,{url:_,children:Q0(NH,{color:M.props.color,backgroundColor:M.props.backgroundColor,dim:M.props.dim,bold:M.props.bold,italic:M.props.italic,underline:M.props.underline,strikethrough:M.props.strikethrough,inverse:M.props.inverse,children:M.text})},F):Q0(B9,{url:_,children:M.text},F);return R?Q0(NH,{color:M.props.color,backgroundColor:M.props.backgroundColor,dim:M.props.dim,bold:M.props.bold,italic:M.props.italic,underline:M.props.underline,strikethrough:M.props.strikethrough,inverse:M.props.inverse,children:M.text},F):M.text},G[7]=q,G[8]=A;else A=G[8];Y=V.map(A)}G[3]=z,G[4]=q,G[5]=Y,G[6]=j}else Y=G[5],j=G[6];if(j!==Symbol.for("react.early_return_sentinel"))return j;let H=Y,D;if(G[9]!==H||G[10]!==q)D=q?Q0(SZ,{dim:!0,children:H}):Q0(SZ,{children:H}),G[9]=H,G[10]=q,G[11]=D;else D=G[11];return D});iF={black:"ansi:black",red:"ansi:red",green:"ansi:green",yellow:"ansi:yellow",blue:"ansi:blue",magenta:"ansi:magenta",cyan:"ansi:cyan",white:"ansi:white",brightBlack:"ansi:blackBright",brightRed:"ansi:redBright",brightGreen:"ansi:greenBright",brightYellow:"ansi:yellowBright",brightBlue:"ansi:blueBright",brightMagenta:"ansi:magentaBright",brightCyan:"ansi:cyanBright",brightWhite:"ansi:whiteBright"}});function oF(Z){let K=FH.c(30),G,z,q,Y,j,H;if(K[0]!==Z)({onAction:q,tabIndex:H,autoFocus:G,children:z,ref:Y,...j}=Z),K[0]=Z,K[1]=G,K[2]=z,K[3]=q,K[4]=Y,K[5]=j,K[6]=H;else G=K[1],z=K[2],q=K[3],Y=K[4],j=K[5],H=K[6];let D=H===void 0?0:H,[V,A]=Y5.useState(!1),[M,F]=Y5.useState(!1),[_,R]=Y5.useState(!1),W=Y5.useRef(null),E,T;if(K[7]===Symbol.for("react.memo_cache_sentinel"))E=()=>()=>{if(W.current)clearTimeout(W.current)},T=[],K[7]=E,K[8]=T;else E=K[7],T=K[8];Y5.useEffect(E,T);let $;if(K[9]!==q)$=(u0)=>{if(u0.key==="return"||u0.key===" "){if(u0.preventDefault(),R(!0),q(),W.current)clearTimeout(W.current);W.current=setTimeout(rF,100,R)}},K[9]=q,K[10]=$;else $=K[10];let I=$,y;if(K[11]!==q)y=(u0)=>{q()},K[11]=q,K[12]=y;else y=K[12];let m=y,b;if(K[13]===Symbol.for("react.memo_cache_sentinel"))b=(u0)=>A(!0),K[13]=b;else b=K[13];let u=b,f;if(K[14]===Symbol.for("react.memo_cache_sentinel"))f=(u0)=>A(!1),K[14]=f;else f=K[14];let w=f,i;if(K[15]===Symbol.for("react.memo_cache_sentinel"))i=()=>F(!0),K[15]=i;else i=K[15];let h=i,l;if(K[16]===Symbol.for("react.memo_cache_sentinel"))l=()=>F(!1),K[16]=l;else l=K[16];let s=l,n;if(K[17]!==z||K[18]!==_||K[19]!==V||K[20]!==M)n=typeof z==="function"?z({focused:V,hovered:M,active:_}):z,K[17]=z,K[18]=_,K[19]=V,K[20]=M,K[21]=n;else n=K[21];let N0=n,ZZ;if(K[22]!==G||K[23]!==N0||K[24]!==m||K[25]!==I||K[26]!==Y||K[27]!==j||K[28]!==D)ZZ=Q0(n7,{ref:Y,tabIndex:D,autoFocus:G,onKeyDown:I,onClick:m,onFocus:u,onBlur:w,onMouseEnter:h,onMouseLeave:s,...j,children:N0}),K[22]=G,K[23]=N0,K[24]=m,K[25]=I,K[26]=Y,K[27]=j,K[28]=D,K[29]=ZZ;else ZZ=K[29];return ZZ}function rF(Z){return Z(!1)}var FH,Y5,eF;var WH=P(()=>{XJ();m0();FH=U0(R7(),1),Y5=U0(n0(),1);eF=oF});function $H(Z){let K=LH.c(4),{count:G}=Z,z=G===void 0?1:G,q;if(K[0]!==z)q=`
|
|
57
57
|
`.repeat(z),K[0]=z,K[1]=q;else q=K[1];let Y;if(K[2]!==q)Y=Q0("ink-text",{children:q}),K[2]=q,K[3]=Y;else Y=K[3];return Y}var LH;var RH=P(()=>{m0();LH=U0(R7(),1)});function ZW(Z){let K=EH.c(8),G,z,q;if(K[0]!==Z)({children:z,fromLeftEdge:q,...G}=Z),K[0]=Z,K[1]=G,K[2]=z,K[3]=q;else G=K[1],z=K[2],q=K[3];let Y=q?"from-left-edge":!0,j;if(K[4]!==G||K[5]!==z||K[6]!==Y)j=Q0(n7,{...G,noSelect:Y,children:z}),K[4]=G,K[5]=z,K[6]=Y,K[7]=j;else j=K[7];return j}var EH;var TH=P(()=>{XJ();m0();EH=U0(R7(),1)});function JW(Z){let K=CH.c(6),{lines:G,width:z}=Z;if(G.length===0)return null;let q;if(K[0]!==G)q=G.join(`
|
|
58
58
|
`),K[0]=G,K[1]=q;else q=K[1];let Y;if(K[2]!==G.length||K[3]!==q||K[4]!==z)Y=Q0("ink-raw-ansi",{rawText:q,rawWidth:z,rawHeight:G.length}),K[2]=G.length,K[3]=q,K[4]=z,K[5]=Y;else Y=K[5];return Y}var CH;var SH=P(()=>{m0();CH=U0(R7(),1)});function xH(){let Z=vH.c(1),K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=Q0(n7,{flexGrow:1}),Z[0]=K;else K=Z[0];return K}var vH;var bH=P(()=>{XJ();m0();vH=U0(R7(),1)});function fU(){let Z=x8.useContext(LG),K=x8.useRef(null),G=x8.useRef({isVisible:!0}),z=x8.useCallback((q)=>{K.current=q},[]);return x8.useLayoutEffect(()=>{let q=K.current;if(!q?.yogaNode||!Z)return;let Y=q.yogaNode.getComputedHeight(),j=Z.rows,H=q.yogaNode.getComputedTop(),D=q.parentNode,V=q.yogaNode;while(D){if(D.yogaNode)H+=D.yogaNode.getComputedTop(),V=D.yogaNode;if(D.scrollTop)H-=D.scrollTop;D=D.parentNode}let A=V.getComputedHeight(),M=H+Y,F=A>j?1:0,_=Math.max(0,A-j)+F,R=_+j,W=M>_&&H<R;if(W!==G.current.isVisible)G.current={isVisible:W}}),[z,G.current]}var x8;var wU=P(()=>{UU();x8=U0(n0(),1)});function QW(Z=16){let K=vQ.useContext(MQ),[G,{isVisible:z}]=fU(),[q,Y]=vQ.useState(()=>K?.now()??0),j=z&&Z!==null;return vQ.useEffect(()=>{if(!K||!j)return;let H=K.now(),D=()=>{let V=K.now();if(V-H>=Z)H=V,Y(V)};return K.subscribe(D,!0)},[K,Z,j]),[G,q]}var vQ;var IH=P(()=>{WG();wU();vQ=U0(n0(),1)});var PH,KW=()=>PH.useContext(FG),GW;var yH=P(()=>{ZU();PH=U0(n0(),1),GW=KW});var kH=g5((pv,wH)=>{var XW="Expected a function",mH=NaN,zW="[object Symbol]",UW=/^\s+|\s+$/g,qW=/^[-+]0x[0-9a-f]+$/i,BW=/^0b[01]+$/i,YW=/^0o[0-7]+$/i,jW=parseInt,OW=typeof global=="object"&&global&&global.Object===Object&&global,HW=typeof self=="object"&&self&&self.Object===Object&&self,DW=OW||HW||Function("return this")(),VW=Object.prototype,AW=VW.toString,NW=Math.max,MW=Math.min,kU=function(){return DW.Date.now()};function _W(Z,K,G){var z,q,Y,j,H,D,V=0,A=!1,M=!1,F=!0;if(typeof Z!="function")throw TypeError(XW);if(K=fH(K)||0,gU(G))A=!!G.leading,M="maxWait"in G,Y=M?NW(fH(G.maxWait)||0,K):Y,F="trailing"in G?!!G.trailing:F;function _(b){var u=z,f=q;return z=q=void 0,V=b,j=Z.apply(f,u),j}function R(b){return V=b,H=setTimeout(T,K),A?_(b):j}function W(b){var u=b-D,f=b-V,w=K-u;return M?MW(w,Y-f):w}function E(b){var u=b-D,f=b-V;return D===void 0||u>=K||u<0||M&&f>=Y}function T(){var b=kU();if(E(b))return $(b);H=setTimeout(T,W(b))}function $(b){if(H=void 0,F&&z)return _(b);return z=q=void 0,j}function I(){if(H!==void 0)clearTimeout(H);V=0,z=D=q=H=void 0}function y(){return H===void 0?j:$(kU())}function m(){var b=kU(),u=E(b);if(z=arguments,q=this,D=b,u){if(H===void 0)return R(D);if(M)return H=setTimeout(T,K),_(D)}if(H===void 0)H=setTimeout(T,K);return j}return m.cancel=I,m.flush=y,m}function gU(Z){var K=typeof Z;return!!Z&&(K=="object"||K=="function")}function FW(Z){return!!Z&&typeof Z=="object"}function WW(Z){return typeof Z=="symbol"||FW(Z)&&AW.call(Z)==zW}function fH(Z){if(typeof Z=="number")return Z;if(WW(Z))return mH;if(gU(Z)){var K=typeof Z.valueOf=="function"?Z.valueOf():Z;Z=gU(K)?K+"":K}if(typeof Z!="string")return Z===0?Z:+Z;Z=Z.replace(UW,"");var G=BW.test(Z);return G||YW.test(Z)?jW(Z.slice(2),G?2:8):qW.test(Z)?mH:+Z}wH.exports=_W});function cv(Z,K){let G=U7.useRef(Z);gH(()=>{G.current=Z},[Z]),U7.useEffect(()=>{if(K===null)return;let z=setInterval(()=>{G.current()},K);return()=>{clearInterval(z)}},[K])}function hH(Z){let K=U7.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return gH(()=>{K.current=Z},[Z]),U7.useCallback((...G)=>{var z;return(z=K.current)==null?void 0:z.call(K,...G)},[K])}function LW(Z){let K=U7.useRef(Z);K.current=Z,U7.useEffect(()=>()=>{K.current()},[])}function lv(Z,K=500,G){let z=U7.useRef();LW(()=>{if(z.current)z.current.cancel()});let q=U7.useMemo(()=>{let Y=hU.default(Z,K,G),j=(...H)=>{return Y(...H)};return j.cancel=()=>{Y.cancel()},j.isPending=()=>{return!!z.current},j.flush=()=>{return Y.flush()},j},[Z,K,G]);return U7.useEffect(()=>{z.current=hU.default(Z,K,G)},[Z,K,G]),q}var U7,hU,gH;var uH=P(()=>{U7=U0(n0(),1),hU=U0(kH(),1),gH=typeof window<"u"?U7.useLayoutEffect:U7.useEffect});var lG,$W=(Z,K={})=>{let{setRawMode:G,internal_exitOnCtrlC:z,internal_eventEmitter:q}=O6();lG.useLayoutEffect(()=>{if(K.isActive===!1)return;return G(!0),()=>{G(!1)}},[K.isActive,G]);let Y=hH((j)=>{if(K.isActive===!1)return;let{input:H,key:D}=j;if(!(H==="c"&&D.ctrl)||!z)Z(H,D,j)});lG.useEffect(()=>{return q?.on("input",Y),()=>{q?.removeListener("input",Y)}},[q,Y])},RW;var pH=P(()=>{uH();JK();lG=U0(n0(),1),RW=$W});function EW(Z){let K=a4.useContext(MQ),[G,z]=a4.useState(()=>K?.now()??0);return a4.useEffect(()=>{if(!K)return;let q=K.now(),Y=()=>{let j=K.now();if(j-q>=Z)q=j,z(j)};return K.subscribe(Y,!1)},[K,Z]),G}function TW(Z,K){let G=a4.useRef(Z);G.current=Z;let z=a4.useContext(MQ);a4.useEffect(()=>{if(!z||K===null)return;let q=z.now(),Y=()=>{let j=z.now();if(j-q>=K)q=j,G.current()};return z.subscribe(Y,!1)},[z,K])}var a4;var cH=P(()=>{WG();a4=U0(n0(),1)});function CW(){BJ.useContext(u5);let Z=d4.get(process.stdout);return BJ.useMemo(()=>{if(!Z)return{copySelection:()=>"",copySelectionNoClear:()=>"",clearSelection:()=>{},hasSelection:()=>!1,getState:()=>null,subscribe:()=>()=>{},shiftAnchor:()=>{},shiftSelection:()=>{},moveFocus:()=>{},captureScrolledRows:()=>{},setSelectionBgColor:()=>{}};return{copySelection:()=>Z.copySelection(),copySelectionNoClear:()=>Z.copySelectionNoClear(),clearSelection:()=>Z.clearTextSelection(),hasSelection:()=>Z.hasTextSelection(),getState:()=>Z.selection,subscribe:(K)=>Z.subscribeToSelectionChange(K),shiftAnchor:(K,G,z)=>YG(Z.selection,K,G,z),shiftSelection:(K,G,z)=>Z.shiftSelectionForScroll(K,G,z),moveFocus:(K)=>Z.moveSelectionFocus(K),captureScrolledRows:(K,G,z)=>Z.captureScrolledRows(K,G,z),setSelectionBgColor:(K)=>Z.setSelectionBgColor(K)}},[Z])}function Zx(){BJ.useContext(u5);let Z=d4.get(process.stdout);return BJ.useSyncExternalStore(Z?Z.subscribeToSelectionChange:SW,Z?Z.hasTextSelection:vW)}var BJ,SW=()=>()=>{},vW=()=>!1;var lH=P(()=>{ZK();EG();OG();BJ=U0(n0(),1)});function bW(Z){let K=bQ.useContext(RQ),G=bQ.useRef(null);bQ.useEffect(()=>{if(Z===null){if(G.current!==null&&K&&VQ())K(A7(AG));G.current=null;return}if(G.current=Z,!K||!VQ())return;K(A7(o2(xW[Z])))},[Z,K])}var bQ,xQ=(Z,K,G)=>({type:"rgb",r:Z,g:K,b:G}),xW;var dH=P(()=>{l4();wG();bQ=U0(n0(),1),xW={idle:{indicator:xQ(0,215,95),status:"Idle",statusColor:xQ(136,136,136)},busy:{indicator:xQ(255,149,0),status:"Working…",statusColor:xQ(255,149,0)},waiting:{indicator:xQ(95,135,255),status:"Waiting",statusColor:xQ(95,135,255)}}});function IW(Z){let K=dG.useContext(RQ);dG.useEffect(()=>{if(Z===null||!K)return;let G=UQ(Z);if(process.platform==="win32")process.title=G;else K(hZ(XZ.SET_TITLE_AND_ICON,G))},[Z,K])}var dG;var aH=P(()=>{U1();l4();wG();dG=U0(n0(),1)});var PW=(Z)=>({width:Z.yogaNode?.getComputedWidth()??0,height:Z.yogaNode?.getComputedHeight()??0}),yW;var iH=P(()=>{yW=PW});function nH(Z){return sH.createElement(Uz,null,Z)}async function Ox(Z,K){return pO(nH(Z),K)}async function Hx(Z){let K=await uO(Z);return{...K,render:(G)=>K.render(nH(G))}}var sH;var mW=P(()=>{V6();cO();dO();nO();eO();V6();_H();XJ();WH();IU();RH();TH();SH();bH();_Q();BU();e9();h5();Sz();vz();w6();IH();yH();pH();cH();lH();JK();dH();XU();aH();wU();iH();l4();iK();sH=U0(n0(),1)});
|
|
59
|
-
export{R7 as
|
|
59
|
+
export{R7 as jT,G4 as kT,tJ as lT,u5 as mT,ZK as nT,O6 as oT,dW as pT,s3 as qT,Uz as rT,D6 as sT,xA as tT,bA as uT,V6 as vT,GK as wT,e3 as xT,MK as yT,_6 as zT,HN as AT,yL as BT,DN as CT,mL as DT,fB as ET,WK as FT,L6 as GT,u4 as HT,zQ as IT,v6 as JT,pK as KT,x6 as LT,n5 as MT,z1 as NT,j1 as OT,tY as PT,o5 as QT,T7 as RT,VR as ST,y6 as TT,f6 as UT,kR as VT,ZG as WT,e5 as XT,JG as YT,HG as ZT,d6 as _T,ZJ as $T,p1 as aU,c2 as bU,i6 as cU,s6 as dU,n6 as eU,l2 as fU,d2 as gU,A7 as hU,UE as iU,s2 as jU,t2 as kU,qE as lU,AG as mU,VQ as nU,l4 as oU,Y_ as pU,MG as qU,AE as rU,o6 as sU,_G as tU,qj as uU,o1 as vU,r1 as wU,GU as xU,XU as yU,Fj as zU,Wj as AU,Lj as BU,n7 as CU,XJ as DU,SZ as EU,_Q as FU,LG as GU,UU as HU,qU as IU,kj as JU,RG as KU,d4 as LU,EG as MU,RQ as NU,fC as OU,wG as PU,EQ as QU,vS as RU,gG as SU,SF as TU,dO as UU,xF as VU,bF as WU,rO as XU,eO as YU,GH as ZU,XH as _U,B9 as $U,IU as aV,lF as bV,eF as cV,$H as dV,ZW as eV,JW as fV,xH as gV,fU as hV,wU as iV,QW as jV,GW as kV,yH as lV,cv as mV,lv as nV,uH as oV,RW as pV,EW as qV,TW as rV,CW as sV,Zx as tV,lH as uV,bW as vV,IW as wV,yW as xV,Ox as yV,Hx as zV,mW as AV};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{de as BY,ee as Bz}from"./cli-0.1.12-4syxz3pe.mjs";import{jf as qY,kf as qz}from"./cli-0.1.12-zk49aaxv.mjs";import{Kf as $Y,Lf as yz,Mf as cY,Nf as mz}from"./cli-0.1.12-a2frnpdd.mjs";import{Ao as Zz,Ay as uY,Bo as KK,By as wz,Co as eY,DK as hY,Do as JK,EK as Tz,HM as XJ,IM as GZ,JM as X0,OC as GY,PL as lY,SC as Gz,UK as gY,VK as Lz,gN as V0,jM as dY,ov as B0,pv as MY,qM as nY}from"./cli-0.1.12-242der7s.mjs";import{DP as UJ,EP as KY,FP as AJ,GP as XY,HP as NJ,IP as VY}from"./cli-0.1.12-vpnp7x5c.mjs";import{aS as SY,bS as jz}from"./cli-0.1.12-2v18rdhk.mjs";import{GS as _Y,HS as Az,US as $J,WS as UY,aT as pY,bT as Fz}from"./cli-0.1.12-tyt09z73.mjs";import{LU as fY,NU as Ez,QU as b,SU as N,eT as f0,kV as xY,nT as LY,sU as bY,tT as IY,uT as Rz,vV as U0}from"./cli-0.1.12-bddm1g1s.mjs";import{rX as U,sX as m,tX as bJ}from"./cli-0.1.12-04jw23rj.mjs";import{uX as b0}from"./cli-0.1.12-ytxphavm.mjs";import{$2 as tY,A3 as ez}from"./cli-0.1.12-y9598sy3.mjs";import{H5 as $0,I5 as Mz}from"./cli-0.1.12-m6jeef2z.mjs";import{F7 as fJ,I7 as r0,N7 as yY,Q8 as Nz,w9 as l0,y8 as mY,y9 as tz}from"./cli-0.1.12-vzga2are.mjs";import{Bfa as G0,Mfa as zY,Nfa as c0,Qfa as I0,yfa as S0,zfa as Hz}from"./cli-0.1.12-bhxgr018.mjs";import{gga as $,hga as Cz}from"./cli-0.1.12-6x2mnahn.mjs";import{Pga as oY,Sga as sz,eha as CJ,hha as oz}from"./cli-0.1.12-rzpc0tr9.mjs";import{Yma as TY,dja as wY,jja as H0}from"./cli-0.1.12-pm5cwtxh.mjs";import{Qna as UZ,Una as XZ}from"./cli-0.1.12-1hv04bp7.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();UY();Gz();I0();V0();XY();VY();KY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=lY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{mY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
|
|
1
|
+
import{de as BY,ee as Bz}from"./cli-0.1.13-zgnanj3x.mjs";import{jf as qY,kf as qz}from"./cli-0.1.13-s90a26ca.mjs";import{Kf as $Y,Lf as yz,Mf as cY,Nf as mz}from"./cli-0.1.13-nsbk0w3b.mjs";import{$K as gY,Fo as Zz,Fy as uY,Go as KK,Gy as wz,Ho as eY,Io as JK,KK as hY,LK as Tz,OM as XJ,PM as GZ,QM as X0,TC as GY,WL as lY,XC as Gz,aL as Lz,nN as V0,qM as dY,tv as B0,uv as MY,xM as nY}from"./cli-0.1.13-fh5dndvp.mjs";import{IP as UJ,JP as KY,KP as AJ,LP as XY,MP as NJ,NP as VY}from"./cli-0.1.13-5s4m8qj9.mjs";import{fS as SY,gS as jz}from"./cli-0.1.13-f6gfa426.mjs";import{$S as UY,LS as _Y,MS as Az,ZS as $J,fT as pY,gT as Fz}from"./cli-0.1.13-g654740k.mjs";import{AV as U0,QU as fY,SU as Ez,VU as b,XU as N,jT as f0,pV as xY,sT as LY,xU as bY,yT as IY,zT as Rz}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as U,xX as m,yX as bJ}from"./cli-0.1.13-ck28msre.mjs";import{zX as b0}from"./cli-0.1.13-79vtnprb.mjs";import{F3 as ez,e3 as tY}from"./cli-0.1.13-bzgpcgdt.mjs";import{M5 as $0,N5 as Mz}from"./cli-0.1.13-v6z41645.mjs";import{G9 as l0,I8 as mY,I9 as tz,P7 as fJ,S7 as r0,X7 as yY,_8 as Nz}from"./cli-0.1.13-dag38tkx.mjs";import{Ifa as S0,Jfa as Hz,Lfa as G0,Wfa as zY,Xfa as c0,_fa as I0}from"./cli-0.1.13-gd3nndc7.mjs";import{qga as $,rga as Cz}from"./cli-0.1.13-45hjhcbc.mjs";import{Zga as oY,aha as sz,oha as CJ,rha as oz}from"./cli-0.1.13-144gn3fd.mjs";import{gna as TY,nja as wY,tja as H0}from"./cli-0.1.13-52f40ba4.mjs";import{Tna as UZ,Xna as XZ}from"./cli-0.1.13-bj67mp7n.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();UY();Gz();I0();V0();XY();VY();KY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=lY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{mY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
|
|
2
2
|
${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
|
|
3
3
|
${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
|
|
4
4
|
${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=rY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{P as
|
|
1
|
+
import{Pba as B,S7 as A,X7 as L,gca as N}from"./cli-0.1.13-dag38tkx.mjs";import{oha as z,rha as K}from"./cli-0.1.13-144gn3fd.mjs";import{Wna as I,Xna as J}from"./cli-0.1.13-bj67mp7n.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
|
|
2
|
+
export{P as zP,Q as AP,R as BP,H as CP,U as DP,V as EP,W as FP};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Nl as Q,Ol as I,bq as W,eq as P,lI as U,xH as Y}from"./cli-0.1.13-fh5dndvp.mjs";import{Sea as f,vea as B,wea as H}from"./cli-0.1.13-wwnez3j0.mjs";import{Gfa as J,Hfa as F}from"./cli-0.1.13-gd3nndc7.mjs";import{gna as $,nja as v}from"./cli-0.1.13-52f40ba4.mjs";import{Xna as Z}from"./cli-0.1.13-bj67mp7n.mjs";import{randomUUID as V}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??V(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:w(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function X(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function w(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:G(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:X(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[z(h.content,h.uuid)];return[];default:return[]}})}function z(j,h){let x=J(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function G(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var R=Z(()=>{$();f();I();F();U();P()});
|
|
2
2
|
export{S as qd,X as rd,w as sd,r as td,z as ud,T as vd,R as wd};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{th as p}from"./cli-0.1.
|
|
1
|
+
import{th as p}from"./cli-0.1.13-gtgqh4bn.mjs";import{MK as I,NK as P,QK as t,Rk as W,Sk as l}from"./cli-0.1.13-fh5dndvp.mjs";import{tX as J}from"./cli-0.1.13-4prgqshq.mjs";import{EX as H,FX as i}from"./cli-0.1.13-d6tr2j76.mjs";import{GX as C,IX as n}from"./cli-0.1.13-0xy8k6yv.mjs";import{D1 as m,S4 as R,Y4 as V,q5 as c,r4 as v,y1 as S}from"./cli-0.1.13-bzgpcgdt.mjs";import{C6 as Q,T6 as u}from"./cli-0.1.13-wh68ve92.mjs";import{Mba as T,N7 as Z,O7 as M,Pba as X,S7 as _,X7 as f,dda as k,eda as Y,gca as O,kda as y,nda as D,qda as g}from"./cli-0.1.13-dag38tkx.mjs";import{jea as $,kea as h}from"./cli-0.1.13-jz57znb6.mjs";import{$ea as E,Wea as q,afa as A}from"./cli-0.1.13-pw5dks39.mjs";import{oha as x,rha as b}from"./cli-0.1.13-144gn3fd.mjs";import{Xna as U}from"./cli-0.1.13-bj67mp7n.mjs";async function s(){if(Z())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let G=`${E().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":q};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(G,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=k(),G=await P({baseUrl:F,apiKey:D()?.apiKey});if(G===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:G.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:G,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,G)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),T((B)=>({...B,clientDataCache:G,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){_(w)}}var d;var r=U(()=>{u();l();c();p();A();O();b();i();h();f();m();M();t();n();g();y();d=$(()=>J.object({client_data:J.record(J.unknown()).nullish(),additional_model_options:J.array(J.object({model:J.string(),name:J.string(),description:J.string()}).transform(({model:w,name:F,description:G})=>({value:w,label:F,description:G}))).nullish()}))});
|
|
2
2
|
export{Yj as xb,r as yb};
|