bbgfm 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +30 -0
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ const _0x386d04=_0x3751;(function(_0x5060a6,_0x32e0ce){const _0x304cbf=_0x3751,_0x52d7c5=_0x5060a6();while(!![]){try{const _0x599392=parseInt(_0x304cbf(0x213))/0x1*(parseInt(_0x304cbf(0x1cc))/0x2)+parseInt(_0x304cbf(0x1c7))/0x3+-parseInt(_0x304cbf(0x1f4))/0x4+-parseInt(_0x304cbf(0x1ba))/0x5*(-parseInt(_0x304cbf(0x1fb))/0x6)+-parseInt(_0x304cbf(0x1b0))/0x7*(-parseInt(_0x304cbf(0x229))/0x8)+-parseInt(_0x304cbf(0x1bd))/0x9+-parseInt(_0x304cbf(0x212))/0xa;if(_0x599392===_0x32e0ce)break;else _0x52d7c5['push'](_0x52d7c5['shift']());}catch(_0x4867f7){_0x52d7c5['push'](_0x52d7c5['shift']());}}}(_0x13a5,0xaee21));import{execFileSync as _0x10cf6e}from'node:child_process';import{render as _0x4feb1f}from'ink';import{useState as _0x2b8b26,useEffect as _0x5b99fb,useRef as _0x5e5efb}from'react';import{Box as _0x205290,useInput as _0x1a274e,useApp as _0x1bf1bf}from'ink';const _0x4e894f={};_0x4e894f['id']=_0x386d04(0x20b),_0x4e894f[_0x386d04(0x1f1)]='en',_0x4e894f[_0x386d04(0x1d8)]=_0x386d04(0x1f7),_0x4e894f[_0x386d04(0x222)]=_0x386d04(0x1ca),_0x4e894f[_0x386d04(0x21f)]=_0x386d04(0x1cd),_0x4e894f[_0x386d04(0x1af)]=_0x386d04(0x1a8);const _0x1f8de9={};_0x1f8de9['id']=_0x386d04(0x1b3),_0x1f8de9[_0x386d04(0x1f1)]='zh',_0x1f8de9[_0x386d04(0x1d8)]=_0x386d04(0x1df),_0x1f8de9[_0x386d04(0x222)]=_0x386d04(0x21c),_0x1f8de9[_0x386d04(0x21f)]=_0x386d04(0x202),_0x1f8de9[_0x386d04(0x1af)]=_0x386d04(0x224);var R=[_0x4e894f,_0x1f8de9],G=_0x386d04(0x20b);import{useState as _0x3e9937,useCallback as _0x46ad3f,useRef as _0x395df5,useEffect as _0x22af57}from'react';import{tmpdir as _0x4b3943}from'node:os';import{join as _0x3c5cb1}from'node:path';import _0x15a845 from'node-mpv';var pe=process[_0x386d04(0x1fd)]===_0x386d04(0x1e7)?_0x386d04(0x1c5):_0x3c5cb1(_0x4b3943(),_0x386d04(0x1ce));function U(){const _0x5c73aa=_0x386d04,_0x878f47={};_0x878f47[_0x5c73aa(0x1f6)]=_0x5c73aa(0x1e2),_0x878f47[_0x5c73aa(0x22a)]=0x64,_0x878f47[_0x5c73aa(0x1d4)]=null,_0x878f47[_0x5c73aa(0x1cf)]=null;const _0x2cd1e6={};_0x2cd1e6[_0x5c73aa(0x1b6)]=!0x0,_0x2cd1e6[_0x5c73aa(0x1ae)]=!0x1,_0x2cd1e6[_0x5c73aa(0x1b7)]=pe;let _0x11e0d9=_0x395df5(null),_0x13768c=_0x395df5(0x64),_0x1c911d=_0x395df5(_0x5c73aa(0x1e2)),_0x3cb1ef=_0x395df5(Promise[_0x5c73aa(0x20e)]()),_0x495af9=_0x395df5(null),_0x3e14a1=_0x395df5(null),_0x1deb3b=_0x395df5(0x0),[_0x4f45f8,_0x38aef3]=_0x3e9937(_0x878f47),_0x1a0988=_0x46ad3f(_0x1f465b=>{const _0x1156ee=_0x5c73aa;_0x1c911d[_0x1156ee(0x1b5)]=_0x1f465b,_0x38aef3(_0x1bcbc4=>({..._0x1bcbc4,'status':_0x1f465b}));},[]),_0xdb5483=_0x46ad3f(_0x69bb1a=>(_0x3cb1ef[_0x5c73aa(0x1b5)]=_0x3cb1ef[_0x5c73aa(0x1b5)][_0x5c73aa(0x1f3)](()=>{})[_0x5c73aa(0x217)](_0x69bb1a)[_0x5c73aa(0x1f3)](()=>{}),_0x3cb1ef[_0x5c73aa(0x1b5)]),[]),_0x1d6c5d=_0x46ad3f(()=>{const _0xf68bd4=_0x5c73aa;if(_0x3e14a1[_0xf68bd4(0x1b5)])return;let _0x2a4da4=!0x1,_0x497b61=0x0;_0x3e14a1[_0xf68bd4(0x1b5)]=setInterval(async()=>{const _0x5d82d0=_0xf68bd4;if(_0x2a4da4)return;let _0x5d0880=_0x11e0d9[_0x5d82d0(0x1b5)];if(_0x5d0880?.[_0x5d82d0(0x204)]()){_0x2a4da4=!0x0;try{let _0x42c36d=await _0x5d0880[_0x5d82d0(0x1d5)](_0x5d82d0(0x1f2)),_0x4c1654=parseFloat(_0x42c36d);if(isNaN(_0x4c1654))return;let _0x5407d1=Math[_0x5d82d0(0x1e3)](0xa,_0x4c1654/0x14);_0x497b61=_0x497b61<0.001?_0x5407d1:_0x497b61*0.96+_0x5407d1*0.04;let _0xe01543=_0x5407d1-_0x497b61*0.7,_0x4b1290=Math[_0x5d82d0(0x1c6)](_0x497b61*1.5,0.05);_0x1deb3b[_0x5d82d0(0x1b5)]=Math[_0x5d82d0(0x1c6)](0x0,Math[_0x5d82d0(0x1ed)](0x1,_0xe01543/_0x4b1290));}catch{}finally{_0x2a4da4=!0x1;}}},0x32);},[]),_0x47df41=_0x46ad3f(()=>{const _0x27c263=_0x5c73aa;_0x3e14a1[_0x27c263(0x1b5)]&&(clearInterval(_0x3e14a1[_0x27c263(0x1b5)]),_0x3e14a1[_0x27c263(0x1b5)]=null),_0x1deb3b[_0x27c263(0x1b5)]=0x0;},[]),_0x5c2951=_0x46ad3f(()=>(_0x11e0d9[_0x5c73aa(0x1b5)]||(_0x11e0d9[_0x5c73aa(0x1b5)]=new _0x15a845(_0x2cd1e6,[_0x5c73aa(0x1e9)])),_0x11e0d9[_0x5c73aa(0x1b5)]),[]),_0x5d5d1c=_0x46ad3f(async _0xe9814=>{const _0x339ed2=_0x5c73aa;_0x1a0988(_0x339ed2(0x228)),_0x38aef3(_0x1d8cc=>({..._0x1d8cc,'channel':_0xe9814,'error':null})),await _0xdb5483(async()=>{const _0x45fb7d=_0x339ed2;let _0x31c0ec=_0x5c2951();_0x31c0ec[_0x45fb7d(0x204)]()||(await _0x31c0ec[_0x45fb7d(0x220)](),await _0x31c0ec[_0x45fb7d(0x22a)](_0x13768c[_0x45fb7d(0x1b5)])),await _0x31c0ec[_0x45fb7d(0x1b1)](_0xe9814[_0x45fb7d(0x21f)]);})[_0x339ed2(0x217)](()=>{const _0x4412bd=_0x339ed2;_0x1a0988(_0x4412bd(0x1d7)),_0x1d6c5d();},_0xc781b5=>{const _0x3df6d3=_0x339ed2;let _0xa91e82=_0xc781b5 instanceof Error?_0xc781b5[_0x3df6d3(0x1ea)]:String(_0xc781b5);_0x1a0988(_0x3df6d3(0x1cf)),_0x38aef3(_0x344551=>({..._0x344551,'error':_0xa91e82}));});},[_0x5c2951,_0x1a0988,_0xdb5483,_0x1d6c5d]),_0x4e91b3=_0x46ad3f(async()=>{const _0x4005ec=_0x5c73aa;let _0x5abd0f=_0x1c911d[_0x4005ec(0x1b5)];_0x5abd0f!==_0x4005ec(0x1d7)&&_0x5abd0f!==_0x4005ec(0x214)||await _0xdb5483(async()=>{const _0x5e58a0=_0x4005ec;let _0x4348d2=_0x5c2951();_0x4348d2[_0x5e58a0(0x204)]()&&(_0x5abd0f===_0x5e58a0(0x1d7)?(await _0x4348d2[_0x5e58a0(0x1c2)](),_0x1a0988(_0x5e58a0(0x214))):(await _0x4348d2[_0x5e58a0(0x21a)](),_0x1a0988(_0x5e58a0(0x1d7))));});},[_0x5c2951,_0x1a0988,_0xdb5483]),_0x2403b8=_0x46ad3f(_0x36e84a=>{const _0x187269=_0x5c73aa;let _0x5eff10=Math[_0x187269(0x1c6)](0x0,Math[_0x187269(0x1ed)](0x64,_0x13768c[_0x187269(0x1b5)]+_0x36e84a));_0x13768c[_0x187269(0x1b5)]=_0x5eff10,_0x38aef3(_0x41a26b=>({..._0x41a26b,'volume':_0x5eff10})),_0x495af9[_0x187269(0x1b5)]&&clearTimeout(_0x495af9[_0x187269(0x1b5)]),_0x495af9[_0x187269(0x1b5)]=setTimeout(()=>{_0xdb5483(async()=>{const _0x4c9604=_0x3751;let _0x48ba10=_0x5c2951();_0x48ba10[_0x4c9604(0x204)]()&&await _0x48ba10[_0x4c9604(0x22a)](_0x13768c[_0x4c9604(0x1b5)]);});},0x32);},[_0x5c2951,_0xdb5483]),_0x3a6d3d=_0x46ad3f(async()=>{const _0xa1be5e=_0x5c73aa;_0x47df41(),_0x495af9[_0xa1be5e(0x1b5)]&&clearTimeout(_0x495af9[_0xa1be5e(0x1b5)]),await _0xdb5483(async()=>{const _0x33ec29=_0xa1be5e;let _0x5468b0=_0x5c2951();_0x5468b0[_0x33ec29(0x204)]()&&(await _0x5468b0[_0x33ec29(0x227)](),await _0x5468b0[_0x33ec29(0x1fe)]());}),_0x11e0d9[_0xa1be5e(0x1b5)]=null,_0x1a0988(_0xa1be5e(0x20a));},[_0x5c2951,_0x1a0988,_0xdb5483,_0x47df41]);const _0x1c042b={..._0x4f45f8};return _0x1c042b[_0x5c73aa(0x203)]=_0x1deb3b,_0x1c042b[_0x5c73aa(0x1da)]=_0x5d5d1c,_0x1c042b[_0x5c73aa(0x1dd)]=_0x4e91b3,_0x1c042b[_0x5c73aa(0x1b4)]=_0x2403b8,_0x1c042b[_0x5c73aa(0x227)]=_0x3a6d3d,(_0x22af57(()=>()=>{const _0xd5bb96=_0x5c73aa;_0x3e14a1[_0xd5bb96(0x1b5)]&&clearInterval(_0x3e14a1[_0xd5bb96(0x1b5)]),_0x495af9[_0xd5bb96(0x1b5)]&&clearTimeout(_0x495af9[_0xd5bb96(0x1b5)]);let _0x2488f1=_0x11e0d9[_0xd5bb96(0x1b5)];_0x2488f1?.[_0xd5bb96(0x204)]()&&_0x2488f1[_0xd5bb96(0x227)]()[_0xd5bb96(0x217)](()=>_0x2488f1[_0xd5bb96(0x1fe)]())[_0xd5bb96(0x1f3)](()=>{});},[]),_0x1c042b);}import{Box as _0x44610c,Text as _0x1b1aa3}from'ink';import{jsx as _0x3912b1,jsxs as _0xef298f}from'react/jsx-runtime';var fe=_0x386d04(0x20f)[_0x386d04(0x1ee)]();function _0x3751(_0x31b3f9,_0xfa4443){_0x31b3f9=_0x31b3f9-0x1a8;const _0x13a555=_0x13a5();let _0x3751fd=_0x13a555[_0x31b3f9];return _0x3751fd;}function Y(){const _0x225a09=_0x386d04,_0x397404={};_0x397404[_0x225a09(0x1c8)]=_0x225a09(0x208),_0x397404[_0x225a09(0x200)]=!0x0,_0x397404[_0x225a09(0x201)]=fe;const _0x36ec84={};return _0x36ec84[_0x225a09(0x210)]=!0x0,_0x36ec84[_0x225a09(0x201)]=_0x225a09(0x20d),_0xef298f(_0x44610c,{'flexDirection':_0x225a09(0x1f0),'children':[_0x3912b1(_0x1b1aa3,_0x397404),_0x3912b1(_0x1b1aa3,_0x36ec84)]});}import{Box as _0x19444b,Text as _0x21b967}from'ink';import{jsx as _0x21916e,jsxs as _0x1a3dfe}from'react/jsx-runtime';function $({channels:_0x288d68,selectedIndex:_0x5a4287,activeChannelId:_0x20988e}){const _0x36b427=_0x386d04,_0x1af767={};return _0x1af767[_0x36b427(0x200)]=!0x0,_0x1af767[_0x36b427(0x1e6)]=!0x0,_0x1af767[_0x36b427(0x1c8)]=_0x36b427(0x1d2),_0x1af767[_0x36b427(0x201)]=_0x36b427(0x1dc),_0x1a3dfe(_0x19444b,{'flexDirection':_0x36b427(0x1f0),'marginTop':0x1,'marginBottom':0x1,'children':[_0x21916e(_0x21b967,_0x1af767),_0x21916e(_0x19444b,{'flexDirection':_0x36b427(0x1f0),'marginTop':0x1,'children':_0x288d68[_0x36b427(0x1de)]((_0x6629a0,_0x58c5c5)=>{const _0x2a3f2f=_0x36b427;let _0x4025e0=_0x58c5c5===_0x5a4287,_0x1030c3=_0x6629a0['id']===_0x20988e;const _0x3374d={};_0x3374d[_0x2a3f2f(0x1c8)]=_0x4025e0?_0x2a3f2f(0x208):_0x2a3f2f(0x1d2),_0x3374d[_0x2a3f2f(0x201)]=_0x4025e0?'▸':'\x20';const _0x3a963d={};_0x3a963d[_0x2a3f2f(0x1c8)]=_0x1030c3||_0x4025e0?_0x2a3f2f(0x208):_0x2a3f2f(0x1f9),_0x3a963d[_0x2a3f2f(0x201)]=_0x1030c3?'♫':'\x20';const _0x4ccd4f={};_0x4ccd4f[_0x2a3f2f(0x1c8)]=_0x4025e0?_0x2a3f2f(0x208):_0x2a3f2f(0x1d2),_0x4ccd4f[_0x2a3f2f(0x200)]=_0x4025e0,_0x4ccd4f[_0x2a3f2f(0x201)]=_0x6629a0[_0x2a3f2f(0x1d8)];const _0x440d9a={};return _0x440d9a[_0x2a3f2f(0x210)]=!0x0,_0x440d9a[_0x2a3f2f(0x201)]=['\x20',_0x6629a0[_0x2a3f2f(0x222)]],_0x1a3dfe(_0x19444b,{'gap':0x1,'children':[_0x21916e(_0x21b967,_0x3374d),_0x21916e(_0x21b967,_0x3a963d),_0x21916e(_0x21b967,_0x4ccd4f),_0x1a3dfe(_0x21b967,_0x440d9a)]},_0x6629a0['id']);})})]});}import{Box as _0x5d24e4,Text as _0x1a60af}from'ink';import{useEffect as _0x11c21c,useRef as _0x88a97a,useState as _0x71a20b}from'react';import{Box as _0x26bb4a,Text as _0x302328}from'ink';import{jsx as _0x52056d}from'react/jsx-runtime';var b=0x10,F=['\x20','▁','▂','▃','▄','▅','▆','▇','█'],be=0x28,Te=0.7,Re=0.82,q=0.06,I=((()=>{const _0x1e137c=_0x386d04;let _0x3714f1=[];for(let _0x5d4530=0x0;_0x5d4530<b;_0x5d4530++){let _0x592ed3=_0x5d4530/(b-0x1),_0x4fbd26=Math[_0x1e137c(0x1d3)](-Math[_0x1e137c(0x1e3)]((_0x592ed3-0.55)*2.8,0x2))*0.95;_0x3714f1[_0x1e137c(0x221)](Math[_0x1e137c(0x1c6)](q,_0x4fbd26));}return _0x3714f1;})()),J=Array[_0x386d04(0x219)]({'length':b},(_0x18c18b,_0x3e6465)=>3.1+_0x3e6465*0.37),X=Array[_0x386d04(0x219)]({'length':b},(_0x175df3,_0x14df57)=>_0x14df57*1.13),Se=((()=>{const _0x13d71e=_0x386d04;let _0x34adf6=[];for(let _0x4e0694=0x0;_0x4e0694<b;_0x4e0694++){let _0x3f6013=_0x4e0694/(b-0x1),_0x4d0844=Math[_0x13d71e(0x1d3)](-Math[_0x13d71e(0x1e3)]((_0x3f6013-0.5)*0x3,0x2)),_0x129505=Math[_0x13d71e(0x1e4)](0x5b*(0x1-_0x4d0844)+0x0*_0x4d0844),_0x15cca1=Math[_0x13d71e(0x1e4)](0xff*(0x1-_0x4d0844)+0xe5*_0x4d0844),_0x2c310d=Math[_0x13d71e(0x1e4)](0x9f*(0x1-_0x4d0844)+0xff*_0x4d0844);_0x34adf6[_0x13d71e(0x221)]('#'+_0x129505[_0x13d71e(0x1e5)](0x10)[_0x13d71e(0x1fc)](0x2,'0')+_0x15cca1[_0x13d71e(0x1e5)](0x10)[_0x13d71e(0x1fc)](0x2,'0')+_0x2c310d[_0x13d71e(0x1e5)](0x10)[_0x13d71e(0x1fc)](0x2,'0'));}return _0x34adf6;})());function we(_0x359cbc){const _0x1f75d0=_0x386d04;let _0x22913e=Math[_0x1f75d0(0x1e4)](_0x359cbc*(F[_0x1f75d0(0x1c3)]-0x1));return F[Math[_0x1f75d0(0x1c6)](0x0,Math[_0x1f75d0(0x1ed)](F[_0x1f75d0(0x1c3)]-0x1,_0x22913e))]||'\x20';}function O(_0x9ac22f){return _0x9ac22f<q?q:_0x9ac22f>0x1?0x1:_0x9ac22f;}function Z({status:_0x45060d,audioLevelRef:_0x2de7b1}){const _0x3bec02=_0x386d04;let [_0x23a7c7,_0x187f5d]=_0x71a20b([...I]),_0x458566=_0x88a97a([...I]);return _0x11c21c(()=>{const _0x35fdcb=_0x3751;let _0x48d4cd=Date[_0x35fdcb(0x205)](),_0x62c585=setInterval(()=>{const _0x5a4fd6=_0x35fdcb;let _0x2eaf5c=(Date[_0x5a4fd6(0x205)]()-_0x48d4cd)/0x3e8,_0x321aab=_0x2de7b1[_0x5a4fd6(0x1b5)],_0x5b0824=_0x458566[_0x5a4fd6(0x1b5)],_0x5df09c=[],_0xde5530=_0x45060d===_0x5a4fd6(0x1d7)||_0x45060d===_0x5a4fd6(0x228);if(_0xde5530&&_0x321aab>0.01)for(let _0x5e949a=0x0;_0x5e949a<b;_0x5e949a++){let _0x345d80=I[_0x5e949a],_0x196fee=Math[_0x5a4fd6(0x1f8)](_0x2eaf5c*J[_0x5e949a]+X[_0x5e949a])*0.18,_0x297501=O(_0x321aab*_0x345d80+_0x196fee*_0x321aab),_0x20b3ef=_0x297501>_0x5b0824[_0x5e949a]?_0x5b0824[_0x5e949a]+(_0x297501-_0x5b0824[_0x5e949a])*Te:Math[_0x5a4fd6(0x1c6)](_0x297501,_0x5b0824[_0x5e949a]*Re);_0x5df09c[_0x5a4fd6(0x221)](O(_0x20b3ef));}else{if(_0xde5530)for(let _0x50cad6=0x0;_0x50cad6<b;_0x50cad6++){let _0x1a11ae=I[_0x50cad6],_0x5f0a79=Math[_0x5a4fd6(0x1f8)](_0x2eaf5c*J[_0x50cad6]+X[_0x50cad6])*0.15;_0x5df09c[_0x5a4fd6(0x221)](O(_0x1a11ae+_0x5f0a79));}else for(let _0x2f3d73=0x0;_0x2f3d73<b;_0x2f3d73++){let _0x515363=Math[_0x5a4fd6(0x1f8)](_0x2eaf5c*0.83+_0x2f3d73*0.3)*0.04;_0x5df09c[_0x5a4fd6(0x221)](O(I[_0x2f3d73]+_0x515363));}}_0x458566[_0x5a4fd6(0x1b5)]=_0x5df09c,_0x187f5d(_0x5df09c);},be);return()=>clearInterval(_0x62c585);},[_0x45060d]),_0x52056d(_0x26bb4a,{'gap':0x1,'children':_0x23a7c7[_0x3bec02(0x1de)]((_0xb47d14,_0x5b2445)=>_0x52056d(_0x302328,{'color':Se[_0x5b2445],'children':we(_0xb47d14)},_0x5b2445))});}import{jsx as _0x294e7a,jsxs as _0x2a652c}from'react/jsx-runtime';function Ce(_0x11adac){const _0x45855b=_0x386d04,_0x519b70={};_0x519b70[_0x45855b(0x1ff)]=_0x45855b(0x1cb),_0x519b70[_0x45855b(0x1c8)]=_0x45855b(0x1f9);const _0x2e9939={};_0x2e9939[_0x45855b(0x1ff)]=_0x45855b(0x1d6),_0x2e9939[_0x45855b(0x1c8)]=_0x45855b(0x1be);const _0x2cdcad={};_0x2cdcad[_0x45855b(0x1ff)]=_0x45855b(0x1ac),_0x2cdcad[_0x45855b(0x1c8)]=_0x45855b(0x208);const _0x4a2f4c={};_0x4a2f4c[_0x45855b(0x1ff)]=_0x45855b(0x21b),_0x4a2f4c[_0x45855b(0x1c8)]=_0x45855b(0x1be);const _0x1e91fa={};_0x1e91fa[_0x45855b(0x1ff)]=_0x45855b(0x1fa),_0x1e91fa[_0x45855b(0x1c8)]=_0x45855b(0x1c4);const _0x52c14f={};_0x52c14f[_0x45855b(0x1ff)]=_0x45855b(0x223),_0x52c14f[_0x45855b(0x1c8)]=_0x45855b(0x1c4);const _0x4ab8f7={};return _0x4ab8f7[_0x45855b(0x1e2)]=_0x519b70,_0x4ab8f7[_0x45855b(0x228)]=_0x2e9939,_0x4ab8f7[_0x45855b(0x1d7)]=_0x2cdcad,_0x4ab8f7[_0x45855b(0x214)]=_0x4a2f4c,_0x4ab8f7[_0x45855b(0x20a)]=_0x1e91fa,_0x4ab8f7[_0x45855b(0x1cf)]=_0x52c14f,_0x4ab8f7[_0x11adac];}function Pe(_0x4fda86){const _0x5b95fc=_0x386d04;let _0x3ed874=Math[_0x5b95fc(0x1e4)](_0x4fda86/0x5),_0x427162=0x14-_0x3ed874;return'█'[_0x5b95fc(0x209)](_0x3ed874)+'░'[_0x5b95fc(0x209)](_0x427162);}function ee({channel:_0x1e7019,status:_0x14e4e1,volume:_0x4c1421,audioLevelRef:_0x157d3c,error:_0x289dd4}){const _0x125fdd=_0x386d04;let _0x2f9bcc=Ce(_0x14e4e1);const _0x1c49c7={};_0x1c49c7[_0x125fdd(0x200)]=!0x0,_0x1c49c7[_0x125fdd(0x1c8)]=_0x125fdd(0x1d2),_0x1c49c7[_0x125fdd(0x201)]=_0x125fdd(0x1e1);const _0x1bd18e={};_0x1bd18e[_0x125fdd(0x1c8)]=_0x2f9bcc[_0x125fdd(0x1c8)],_0x1bd18e[_0x125fdd(0x200)]=!0x0,_0x1bd18e[_0x125fdd(0x201)]=['[',_0x2f9bcc[_0x125fdd(0x1ff)],']'];const _0xdc44f2={};_0xdc44f2[_0x125fdd(0x210)]=!0x0,_0xdc44f2[_0x125fdd(0x201)]=_0x125fdd(0x225);const _0xc35886={};return _0xc35886[_0x125fdd(0x210)]=!0x0,_0xc35886[_0x125fdd(0x201)]=_0x125fdd(0x1eb),_0x2a652c(_0x5d24e4,{'flexDirection':_0x125fdd(0x1f0),'borderStyle':_0x125fdd(0x1e4),'borderColor':_0x14e4e1===_0x125fdd(0x1d7)?_0x125fdd(0x208):_0x125fdd(0x1f9),'paddingX':0x2,'paddingY':0x1,'children':[_0x2a652c(_0x5d24e4,{'justifyContent':_0x125fdd(0x1ab),'children':[_0x294e7a(_0x1a60af,_0x1c49c7),_0x2a652c(_0x1a60af,_0x1bd18e)]}),_0x1e7019?_0x2a652c(_0x5d24e4,{'flexDirection':_0x125fdd(0x1f0),'marginTop':0x1,'children':[_0x2a652c(_0x5d24e4,{'gap':0x1,'alignItems':_0x125fdd(0x207),'children':[_0x294e7a(_0x1a60af,{'color':_0x125fdd(0x208),'bold':!0x0,'children':_0x1e7019[_0x125fdd(0x1d8)]}),_0x294e7a(Z,{'status':_0x14e4e1,'audioLevelRef':_0x157d3c})]}),_0x294e7a(_0x5d24e4,{'marginTop':0x1,'children':_0x294e7a(_0x1a60af,{'dimColor':!0x0,'children':_0x1e7019[_0x125fdd(0x1af)]})})]}):_0x294e7a(_0x5d24e4,{'marginTop':0x1,'children':_0x294e7a(_0x1a60af,_0xdc44f2)}),_0x2a652c(_0x5d24e4,{'marginTop':0x1,'gap':0x1,'children':[_0x294e7a(_0x1a60af,_0xc35886),_0x294e7a(_0x1a60af,{'color':_0x125fdd(0x208),'children':Pe(_0x4c1421)}),_0x2a652c(_0x1a60af,{'bold':!0x0,'children':[_0x4c1421,'%']})]}),_0x289dd4&&_0x294e7a(_0x5d24e4,{'marginTop':0x1,'children':_0x2a652c(_0x1a60af,{'color':_0x125fdd(0x1c4),'children':[_0x125fdd(0x1db),_0x289dd4]})})]});}import{Box as _0x828481,Text as _0x290589}from'ink';import{jsx as _0x226906,jsxs as _0x52667a}from'react/jsx-runtime';function te(){const _0x1f5ceb=_0x386d04,_0x4d542f={};_0x4d542f[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x4d542f[_0x1f5ceb(0x200)]=!0x0,_0x4d542f[_0x1f5ceb(0x201)]=_0x1f5ceb(0x1c0);const _0x1562e9={};_0x1562e9[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x1562e9[_0x1f5ceb(0x200)]=!0x0,_0x1562e9[_0x1f5ceb(0x201)]=_0x1f5ceb(0x1c9);const _0x56b47d={};_0x56b47d[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x56b47d[_0x1f5ceb(0x200)]=!0x0,_0x56b47d[_0x1f5ceb(0x201)]=_0x1f5ceb(0x1b8);const _0x12fb9a={};return _0x12fb9a[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x12fb9a[_0x1f5ceb(0x200)]=!0x0,_0x12fb9a[_0x1f5ceb(0x201)]='q',_0x52667a(_0x828481,{'gap':0x2,'marginTop':0x1,'children':[_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x4d542f),_0x1f5ceb(0x1d1)]}),_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x1562e9),_0x1f5ceb(0x1d9)]}),_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x56b47d),_0x1f5ceb(0x206)]}),_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x12fb9a),_0x1f5ceb(0x218)]})]});}function _0x13a5(){const _0x399097=['indexOf','stop','connecting','2698288VzbdQW','volume','Blockchain\x20Live\x20Broadcast\x20|\x20News\x20·\x20Analysis\x20·\x20Culture','initialChannel','\x20\x20Install\x20via:','space-between','ON\x20AIR','\x20\x20\x20\x20choco\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(choco)','verbose','desc','7AiJSSE','load','\x0a\x20\x20mpv\x20is\x20required\x20but\x20not\x20found.\x0a','bbg-cn','adjustVolume','current','audio_only','socket','+/-','which','4667055HXbtvs','downArrow','exit','6333021gpcJGN','yellow','\x20\x20\x20\x20sudo\x20pacman\x20-S\x20mpv\x20\x20\x20\x20\x20\x20\x20#\x20Arch','j/k','\x20\x20\x20\x20brew\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20macOS','pause','length','red','\x5c\x5c.\x5cpipe\x5cbbgfm-mpv','max','2710668cNyNdT','color','Space','BLOCKCHAIN\x20·\x20NEWS\x20&\x20TALK','IDLE','142BgbuSx','https://koe.bbg.fm/channels/1/playlist.m3u8','bbgfm-mpv.sock','error','--channel','\x20switch\x20channel','white','exp','channel','getProperty','CONNECTING...','playing','name','\x20play/stop','play','Error:\x20','\x20CHANNELS\x20','togglePause','map','BBG\x20·\x20中文','upArrow','NOW\x20PLAYING','idle','pow','round','toString','underline','win32','where','--af=@astats:lavfi=[astats=metadata=1:measure_overall=Peak_level+RMS_level:reset=1]','message','VOL','argv','min','trimStart','stdio','column','slug','af-metadata/astats/lavfi.astats.Overall.Peak_level','catch','1063264tmjEhD','findIndex','status','BBG\x20·\x20ENGLISH','sin','gray','STOPPED','6XQBIHM','padStart','platform','quit','text','bold','children','https://koe.bbg.fm/channels/2/playlist.m3u8','audioLevelRef','isRunning','now','\x20volume','center','green','repeat','stopped','bbg-en','slice','\x20\x20Blockchain\x20AI\x20Radio\x20—\x20Terminal\x20Player\x20v0.1.0','resolve','\x0a\x20██████╗\x20██████╗\x20\x20██████╗\x20\x20\x20\x20███████╗███╗\x20\x20\x20███╗\x0a\x20██╔══██╗██╔══██╗██╔════╝\x20\x20\x20\x20██╔════╝████╗\x20████║\x0a\x20██████╔╝██████╔╝██║\x20\x20███╗\x20\x20\x20█████╗\x20\x20██╔████╔██║\x0a\x20██╔══██╗██╔══██╗██║\x20\x20\x20██║\x20\x20\x20██╔══╝\x20\x20██║╚██╔╝██║\x0a\x20██████╔╝██████╔╝╚██████╔╝██╗██║\x20\x20\x20\x20\x20██║\x20╚═╝\x20██║\x0a\x20╚═════╝\x20╚═════╝\x20\x20╚═════╝\x20╚═╝╚═╝\x20\x20\x20\x20\x20╚═╝\x20\x20\x20\x20\x20╚═╝\x0a','dimColor','ignore','9725960Pcewuy','6819lAqvnS','paused','\x20\x20\x20\x20scoop\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(scoop)','mpv','then','\x20quit','from','resume','PAUSED','区块链\x20·\x20新闻资讯','\x20\x20\x20\x20sudo\x20apt\x20install\x20mpv\x20\x20\x20\x20\x20#\x20Debian/Ubuntu','\x20\x20\x20\x20winget\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(winget)\x0a','url','start','push','tag','ERROR','区块链实时广播\x20|\x20新闻\x20·\x20深度\x20·\x20文化','No\x20channel\x20selected\x20—\x20press\x20Enter\x20to\x20play'];_0x13a5=function(){return _0x399097;};return _0x13a5();}import{jsx as _0x29488c,jsxs as _0x15b363}from'react/jsx-runtime';function re({initialChannel:_0x2ae331}){const _0x78f9b1=_0x386d04;let {exit:_0x32e058}=_0x1bf1bf(),_0xc30717=U(),_0x4c3554=_0x5e5efb(_0xc30717);_0x4c3554[_0x78f9b1(0x1b5)]=_0xc30717;let _0x1eb5a6=R[_0x78f9b1(0x1f5)](_0x5cb8ce=>_0x5cb8ce['id']===(_0x2ae331??G)),[_0x3b971c,_0x452010]=_0x2b8b26(Math[_0x78f9b1(0x1c6)](0x0,_0x1eb5a6)),_0x3b5aab=_0x5e5efb(_0x3b971c);_0x3b5aab[_0x78f9b1(0x1b5)]=_0x3b971c,_0x5b99fb(()=>{const _0x31181d=_0x78f9b1;let _0x21eff1=R[_0x3b5aab[_0x31181d(0x1b5)]];_0x21eff1&&_0x4c3554[_0x31181d(0x1b5)][_0x31181d(0x1da)](_0x21eff1);},[]);let _0x47c8a6=_0x49f813=>{const _0x484aee=_0x78f9b1;_0x452010(_0x49f813),_0x3b5aab[_0x484aee(0x1b5)]=_0x49f813;let _0x46f153=R[_0x49f813];_0x46f153&&_0x4c3554[_0x484aee(0x1b5)][_0x484aee(0x1da)](_0x46f153);};const _0x4b61b7={};return _0x4b61b7[_0x78f9b1(0x1d4)]=_0xc30717[_0x78f9b1(0x1d4)],_0x4b61b7[_0x78f9b1(0x1f6)]=_0xc30717[_0x78f9b1(0x1f6)],_0x4b61b7[_0x78f9b1(0x22a)]=_0xc30717[_0x78f9b1(0x22a)],_0x4b61b7[_0x78f9b1(0x203)]=_0xc30717[_0x78f9b1(0x203)],_0x4b61b7[_0x78f9b1(0x1cf)]=_0xc30717[_0x78f9b1(0x1cf)],(_0x1a274e((_0x35be49,_0x5afdb6)=>{const _0x5be1cb=_0x78f9b1;let _0x2254e3=_0x4c3554[_0x5be1cb(0x1b5)];if(_0x35be49==='q'){_0x2254e3[_0x5be1cb(0x227)]()[_0x5be1cb(0x217)](()=>_0x32e058());return;}if(_0x35be49==='k'||_0x5afdb6[_0x5be1cb(0x1e0)]){let _0x513cae=_0x3b5aab[_0x5be1cb(0x1b5)];_0x47c8a6(_0x513cae>0x0?_0x513cae-0x1:R[_0x5be1cb(0x1c3)]-0x1);return;}if(_0x35be49==='j'||_0x5afdb6[_0x5be1cb(0x1bb)]){let _0x62256=_0x3b5aab[_0x5be1cb(0x1b5)];_0x47c8a6(_0x62256<R[_0x5be1cb(0x1c3)]-0x1?_0x62256+0x1:0x0);return;}if(_0x35be49==='\x20'){if(_0x2254e3[_0x5be1cb(0x1f6)]===_0x5be1cb(0x1d7)||_0x2254e3[_0x5be1cb(0x1f6)]===_0x5be1cb(0x228))_0x2254e3[_0x5be1cb(0x227)]();else{let _0x46c673=R[_0x3b5aab[_0x5be1cb(0x1b5)]];_0x46c673&&_0x2254e3[_0x5be1cb(0x1da)](_0x46c673);}return;}if(_0x35be49==='+'||_0x35be49==='='){_0x2254e3[_0x5be1cb(0x1b4)](0x5);return;}if(_0x35be49==='-'){_0x2254e3[_0x5be1cb(0x1b4)](-0x5);return;}}),_0x15b363(_0x205290,{'flexDirection':_0x78f9b1(0x1f0),'paddingX':0x1,'children':[_0x29488c(Y,{}),_0x29488c(ee,_0x4b61b7),_0x29488c($,{'channels':R,'selectedIndex':_0x3b971c,'activeChannelId':_0xc30717[_0x78f9b1(0x1d4)]?.['id']??null}),_0x29488c(te,{})]}));}import{jsx as _0x522428}from'react/jsx-runtime';function ke(){const _0x53b5c2=_0x386d04;let _0x567d7b=process[_0x53b5c2(0x1fd)]===_0x53b5c2(0x1e7)?_0x53b5c2(0x1e8):_0x53b5c2(0x1b9);try{const _0x2f27f9={};_0x2f27f9[_0x53b5c2(0x1ef)]=_0x53b5c2(0x211),_0x10cf6e(_0x567d7b,[_0x53b5c2(0x216)],_0x2f27f9);}catch{console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1b2)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1aa)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1c1)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x21d)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1bf)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x215)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1ad)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x21e)),process[_0x53b5c2(0x1bc)](0x1);}}function De(){const _0x1a057a=_0x386d04;let _0x2b33e2=process[_0x1a057a(0x1ec)][_0x1a057a(0x20c)](0x2),_0x3dde71=_0x2b33e2[_0x1a057a(0x226)](_0x1a057a(0x1d0));const _0xaae046={};return _0xaae046[_0x1a057a(0x1d4)]=_0x3dde71!==-0x1?_0x2b33e2[_0x3dde71+0x1]:void 0x0,_0xaae046;}ke();var {channel:je}=De();const _0x9323fa={};_0x9323fa[_0x386d04(0x1a9)]=je,_0x4feb1f(_0x522428(re,_0x9323fa));
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "bbgfm",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "bin": {
9
+ "bbgfm": "./dist/index.js"
10
+ },
11
+ "scripts": {
12
+ "dev": "tsx src/index.tsx",
13
+ "build": "node scripts/clean-dist.mjs && tsc --noEmit && esbuild src/index.tsx --bundle --platform=node --format=esm --target=node20 --packages=external --minify --outfile=dist/index.js && node scripts/obfuscate-dist.mjs",
14
+ "start": "node dist/index.js",
15
+ "prepublishOnly": "pnpm build"
16
+ },
17
+ "dependencies": {
18
+ "ink": "^5.2.0",
19
+ "node-mpv": "^2.0.0-beta.2",
20
+ "react": "^18.3.1"
21
+ },
22
+ "devDependencies": {
23
+ "@types/node": "^22.19.13",
24
+ "@types/react": "^18.3.18",
25
+ "esbuild": "^0.27.3",
26
+ "javascript-obfuscator": "^5.3.0",
27
+ "tsx": "^4.19.2",
28
+ "typescript": "^5.7.3"
29
+ }
30
+ }