@nuvin/nuvin-cli 1.3.0 → 1.5.0
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/dist/UpdateChecker-KPQTYN7Z.js +1 -0
- package/dist/VERSION +2 -2
- package/dist/chunk-AJHDLTY3.js +1 -1
- package/dist/chunk-IDGBBBAT.js +1 -0
- package/dist/chunk-PTCSZTUW.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/clipboard-ZREGZN7K.js +1 -1
- package/dist/demo-mode-3LKNOS6S.js +1 -0
- package/dist/messageProcessor-AKCUZFGN.js +1 -1
- package/package.json +2 -2
- package/dist/UpdateChecker-F3NOHT7P.js +0 -1
- package/dist/chunk-7ALAQ5HX.js +0 -1
- package/dist/demo-mode-LAAZZLCW.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x502401,_0x20dcf6){const _0x1b4d0f={_0x461afa:0x22b,_0x2eda6e:0x232,_0x2f6037:0x231,_0x26acb0:0x229,_0x2e389e:0x22c,_0x1abaf6:0x246,_0x373134:0x22e,_0x13de38:0x23e,_0xf274d2:0x20b,_0x407a8d:0x223,_0x2eea1f:0x3f8,_0x5641a6:0x3e3,_0x3a7037:0x240,_0x5db203:0x236,_0x170a3b:0x242,_0x42e8e4:0x22b,_0x4cf10c:0x241,_0xf0b324:0x21f,_0x3eff89:0x214,_0x276b4e:0x22f,_0x398868:0x24c,_0x8f61:0x218};function _0x2581ef(_0x189e09,_0x281467,_0x482772,_0x1b4a5c){return _0x20f4(_0x482772- -0x2ba,_0x1b4a5c);}const _0x136a98=_0x502401();function _0x5e2d9d(_0x10292d,_0x2cbbc4,_0x2a2eb9,_0x438f86){return _0x20f4(_0x438f86-0x345,_0x2a2eb9);}while(!![]){try{const _0x483a10=parseInt(_0x2581ef(-_0x1b4d0f._0x461afa,-0x218,-0x21e,-_0x1b4d0f._0x2eda6e))/0x1+-parseInt(_0x2581ef(-_0x1b4d0f._0x2f6037,-_0x1b4d0f._0x26acb0,-_0x1b4d0f._0x2e389e,-_0x1b4d0f._0x1abaf6))/0x2*(-parseInt(_0x2581ef(-0x240,-0x223,-_0x1b4d0f._0x373134,-_0x1b4d0f._0x13de38))/0x3)+-parseInt(_0x2581ef(-_0x1b4d0f._0xf274d2,-0x22c,-_0x1b4d0f._0x407a8d,-0x238))/0x4+parseInt(_0x5e2d9d(_0x1b4d0f._0x2eea1f,0x3ed,0x3f4,_0x1b4d0f._0x5641a6))/0x5*(-parseInt(_0x2581ef(-_0x1b4d0f._0x3a7037,-0x227,-_0x1b4d0f._0x5db203,-_0x1b4d0f._0x13de38))/0x6)+-parseInt(_0x2581ef(-_0x1b4d0f._0x170a3b,-_0x1b4d0f._0x42e8e4,-_0x1b4d0f._0x4cf10c,-0x245))/0x7+-parseInt(_0x2581ef(-0x1fc,-_0x1b4d0f._0xf0b324,-_0x1b4d0f._0x3eff89,-0x213))/0x8*(parseInt(_0x2581ef(-_0x1b4d0f._0x276b4e,-0x251,-0x23c,-_0x1b4d0f._0x398868))/0x9)+parseInt(_0x2581ef(-0x225,-0x219,-0x22a,-_0x1b4d0f._0x8f61))/0xa;if(_0x483a10===_0x20dcf6)break;else _0x136a98['push'](_0x136a98['shift']());}catch(_0x3b0cb3){_0x136a98['push'](_0x136a98['shift']());}}}(_0x28d4,0x98179));import{exec as _0x163b18}from'child_process';import{promisify as _0x30a74d}from'util';import{platform as _0x3597f1}from'os';import{readFileSync as _0x5ce077,unlinkSync as _0x39cd8d}from'fs';import{tmpdir as _0x461fee}from'os';function _0x28d4(){const _0x49e84d=['Aw1Hz2uVDgLMzG','WQTJBgfZCYbiruLgWRS','Aw1Hz2uVz2LM','zNjVBq','WQTJBgfZCYbusuzgWRS','mJa0nJKZmNrmv213zW','Cg5NCgfZDguGiG','EgnSAxaGlxnLBgvJDgLVBIbJBgLWyM9HCMqGlxqG','cIaGicaGicaGC2v0igzPBgvszwyGDg8GB3bLBIbMB3iGywnJzxnZifbpu0LyigzPBguGxci','BM93','mtaXmtuZnNrXug1mBq','z2LM','nvPPuvvpBq','Aw1Hz2uVD2vICa','xciGD2L0Acb3CML0zsbWzxjTAxnZAw9UcIaGicaGicaGD3jPDguGAw1Hz2veyxrHihrVigzPBgvszwykicaGicaGicbJBg9ZzsbHy2nLC3mGzMLSzvjLzGOGicaGicaI','Aw5JBhvKzxm','ANbN','DgLMzG','yMfZzty0','jYWGw1n5C3rLBs5eCMf3Aw5NlKLTywDPBMCUsw1Hz2vgB3jTyxrDoJPqBMCPcIaGicaGicaGicaKAw1NlKrPC3bVC2uOkqOGicaGicaGih0kicaGicaGFqOGicaGiG','mte0nJy0mhjHyvvozW','tM8GC3vWCg9YDgvKigLTywDLigzVCM1HDcbMB3vUzcbPBIbJBgLWyM9HCMq','EgnSAxaGlxnLBgvJDgLVBIbJBgLWyM9HCMqGlxqGvefsr0vuuYaTBYaYpI9KzxyVBNvSBcb8FcbLy2HViciI','Aw1Hz2uVCg5N','B3nHC2nYAxb0ic1LicjJBgLWyM9HCMqGAw5MBYi','D2fYBG','CMvWBgfJzq','ic1VihWGyMfZzty0','mtm2odeZnNzKwgD0qq','lNbUzW','DhjPBq','y2XPCgjVyxjKlq','B3nHC2nYAxb0ic1LicikicaGicaGicbZzxqGAw1Hz2veyxrHihrVihrOzsbJBgLWyM9HCMqGyxmG','nJnwDxjRvva','Cg5N','yM1W','WQTJBgfZCYbqtKDMWRS','y2XPCgjVyxjKlwLTywDLlNbUzW','rMfPBgvKihrVigDLDcbJBgLWyM9HCMqGzMLSzxm6','mJKXndi5mhf0EKrLzW','Dhj1zq','BgLUDxG','D2LUmZi','Aw1Hz2uVANbLzW','Cg93zxjZAgvSBcaTy29TBwfUzcaIAwyGkfTtExn0zw0Uv2LUzg93CY5gB3jTCY5dBgLWyM9HCMrDoJPdB250ywLUC0LTywDLkcKPihSGj3rYDwuNih0GzwXZzsb7icDMywXZzsCGFsiGmJ4KBNvSBa','WQTJBgfZCYbkuevhWRS','Aw1Hz2uVyM1W','mJq5Ee9lq0Pr','y2XPCgjVyxjKlwLTywDLlG','mtboCun3sxe','WQTJBgfZCYbhsuzMWRS','mtGWnZiYndb5zg9gAM4','WQTJBgfZCYbctvbMWRS'];_0x28d4=function(){return _0x49e84d;};return _0x28d4();}import{join as _0xd4baf5}from'path';var a=_0x30a74d(_0x163b18);async function I(){const _0x2015a1={_0x25ef55:0x24f,_0x7265a5:0x22f,_0x4a1bef:0x21c,_0x5f48d8:0x21b,_0x46526c:0x224,_0x58aa3f:0x1fb,_0x41ac18:0x21f,_0x1e1c7a:0x20b,_0x53ccf5:0x1bf,_0x3c65f5:0x1a8,_0xdf2cea:0x1ac,_0x355bab:0x1b3,_0xa7e9c7:0x1a4,_0x256111:0x1a0,_0x490c2e:0x1b7,_0x5c3860:0x194,_0x3232b5:0x1a1,_0x4028a1:0x1b3,_0x55aee6:0x196,_0x8bac48:0x1a3,_0x2c0a8c:0x210,_0x2306ef:0x20f,_0xaccf4d:0x219,_0x5e40eb:0x20f,_0x1d08a7:0x216,_0x3f0a0d:0x1a0,_0x41ba76:0x181,_0x3dcdda:0x198,_0x4fed27:0x20e,_0x4f4da3:0x206,_0x554f3f:0x1a6,_0x41cd51:0x1b4,_0x316e63:0x1b3,_0x9cb316:0x1c5,_0x433f63:0x199,_0x19e1af:0x1c6,_0xb2002f:0x213,_0x21f5ea:0x225,_0x594cb2:0x22b,_0x18623d:0x223,_0x270045:0x24a,_0x435aa6:0x240,_0x500470:0x23f},_0x2f1fa1={_0x1913d6:0x2ac};function _0x291b3f(_0xdac78e,_0x4a1ee7,_0xe7ed3,_0x411253){return _0x20f4(_0x411253-0x112,_0xe7ed3);}function _0x10f3c0(_0x42b62d,_0x4383cc,_0x117464,_0x366a47){return _0x20f4(_0x366a47- -_0x2f1fa1._0x1913d6,_0x117464);}try{let _0x36b24e=_0x3597f1();if(_0x36b24e==='darwin'){let {stdout:_0x56f4b0}=await a(_0x10f3c0(-_0x2015a1._0x25ef55,-_0x2015a1._0x7265a5,-_0x2015a1._0x4a1bef,-0x237));return _0x56f4b0['includes'](_0x10f3c0(-_0x2015a1._0x5f48d8,-0x23a,-_0x2015a1._0x46526c,-0x22b))||_0x56f4b0[_0x10f3c0(-_0x2015a1._0x58aa3f,-0x220,-_0x2015a1._0x41ac18,-_0x2015a1._0x1e1c7a)](_0x291b3f(0x1b3,_0x2015a1._0x53ccf5,0x1be,_0x2015a1._0x3c65f5))||_0x56f4b0[_0x291b3f(0x1b1,_0x2015a1._0xdf2cea,0x1ae,_0x2015a1._0x355bab)](_0x10f3c0(-0x20b,-0x231,-0x220,-0x222))||_0x56f4b0[_0x291b3f(_0x2015a1._0xa7e9c7,_0x2015a1._0x256111,0x19d,0x1b3)](_0x291b3f(_0x2015a1._0x490c2e,_0x2015a1._0x5c3860,0x192,_0x2015a1._0x3232b5))||_0x56f4b0[_0x291b3f(0x1c8,0x1b6,0x1bc,_0x2015a1._0x4028a1)](_0x291b3f(0x1b2,_0x2015a1._0x55aee6,0x1af,_0x2015a1._0x8bac48))||_0x56f4b0[_0x10f3c0(-0x21f,-0x1fd,-0x1f4,-_0x2015a1._0x1e1c7a)](_0x10f3c0(-0x20c,-_0x2015a1._0x2c0a8c,-_0x2015a1._0x2306ef,-_0x2015a1._0xaccf4d))||_0x56f4b0[_0x10f3c0(-_0x2015a1._0x5e40eb,-_0x2015a1._0x1d08a7,-0x1f3,-_0x2015a1._0x1e1c7a)]('«class\x20WEBP»');}else{if(_0x36b24e===_0x291b3f(_0x2015a1._0x3f0a0d,_0x2015a1._0x41ba76,0x17e,_0x2015a1._0x3dcdda)){let {stdout:_0x170293}=await a(_0x10f3c0(-0x21a,-_0x2015a1._0x4fed27,-_0x2015a1._0x4f4da3,-0x204));return _0x170293['includes'](_0x291b3f(0x1b8,0x1a8,0x1d1,0x1bb))||_0x170293['includes'](_0x291b3f(_0x2015a1._0x554f3f,0x184,_0x2015a1._0x41cd51,0x19a))||_0x170293[_0x291b3f(0x1a5,0x1bf,0x1cd,_0x2015a1._0x316e63)]('image/gif')||_0x170293[_0x291b3f(0x19c,0x1c0,_0x2015a1._0x9cb316,0x1b3)]('image/bmp')||_0x170293[_0x291b3f(_0x2015a1._0x433f63,_0x2015a1._0x19e1af,0x1b1,0x1b3)]('image/tiff')||_0x170293['includes']('image/webp');}else{if(_0x36b24e===_0x10f3c0(-_0x2015a1._0xb2002f,-_0x2015a1._0xb2002f,-0x227,-_0x2015a1._0x21f5ea))try{let {stdout:_0x2ad9e2}=await a(_0x10f3c0(-0x20b,-_0x2015a1._0x594cb2,-0x22d,-_0x2015a1._0x18623d));return _0x2ad9e2[_0x10f3c0(-_0x2015a1._0x270045,-_0x2015a1._0x594cb2,-_0x2015a1._0x435aa6,-0x231)]()===_0x10f3c0(-0x226,-0x22f,-_0x2015a1._0x500470,-0x227);}catch{return!0x1;}}}return!0x1;}catch{return!0x1;}}async function S(){const _0x4e140e={_0xa0b603:0x338,_0x45c782:0x328,_0xa31b17:0x1d6,_0x34d585:0x1de,_0x590a8f:0x1e4,_0x189fad:0x1ba,_0x17de71:0x1e7,_0x374826:0x33b,_0x44c1e0:0x334,_0x50f789:0x34d},_0xf02273={_0xc13f70:0x3be};function _0x489a10(_0x585c5d,_0x449db2,_0x2d0b0a,_0x4f575b){return _0x20f4(_0x585c5d-0x156,_0x4f575b);}function _0x3e28ce(_0x23042c,_0x787e2e,_0x42256f,_0x30e43d){return _0x20f4(_0x23042c- -_0xf02273._0xc13f70,_0x42256f);}try{let _0x230ad7=_0x3597f1();return _0x230ad7==='darwin'?await d():_0x230ad7===_0x3e28ce(-_0x4e140e._0xa0b603,-0x322,-0x325,-_0x4e140e._0x45c782)?await u():_0x230ad7===_0x489a10(0x1dd,_0x4e140e._0xa31b17,_0x4e140e._0x34d585,0x1e2)?await b():[];}catch(_0x4d9685){return console[_0x489a10(0x1cc,_0x4e140e._0x590a8f,_0x4e140e._0x189fad,_0x4e140e._0x17de71)](_0x3e28ce(-_0x4e140e._0x374826,-_0x4e140e._0x44c1e0,-0x32e,-_0x4e140e._0x50f789),_0x4d9685),[];}}async function d(){const _0x1ba8d4={_0x2790ee:0x260,_0x3777c9:0x259,_0x39f130:0x14e,_0x43d077:0x15b,_0x2d9a97:0x136,_0x5323c5:0x275,_0xa0f80b:0x283,_0x3b0e64:0x261,_0x4dd95f:0x266,_0x5415c2:0x27a,_0x34465f:0x26b,_0x384277:0x26e,_0x3dfaa9:0x266,_0x41323f:0x25d,_0x14aa82:0x267,_0x52f0dd:0x142,_0x23aa0d:0x141,_0x8de943:0x139,_0x152af4:0x16c,_0x1fbac4:0x160,_0x4c24a5:0x240,_0x4690fb:0x144,_0x287aea:0x14a,_0x5cedcd:0x15d,_0x311ff0:0x160,_0x4cd192:0x14f,_0x2f559f:0x277,_0xd91b31:0x272,_0x5b6c09:0x276,_0x40d4de:0x27f,_0x2d6ed8:0x278,_0x196e6a:0x242,_0x3a3ef6:0x26d,_0x522ff6:0x254,_0xf97d19:0x148,_0x2fca90:0x252,_0x4e2be5:0x13d,_0x39bd32:0x164},_0x8aa776={_0x51d714:0x1df};function _0x3e7772(_0x5cacc3,_0x3f5531,_0x3e2f3c,_0x18d72e){return _0x20f4(_0x5cacc3- -_0x8aa776._0x51d714,_0x3f5531);}let _0x3e1711=[{'format':_0x5b558e(0x24d,_0x1ba8d4._0x2790ee,0x248,_0x1ba8d4._0x3777c9),'extension':_0x3e7772(-0x160,-_0x1ba8d4._0x39f130,-_0x1ba8d4._0x43d077,-0x175),'mimeType':_0x3e7772(-_0x1ba8d4._0x2d9a97,-0x11d,-0x147,-0x137)},{'format':_0x5b558e(0x25f,0x251,_0x1ba8d4._0x5323c5,0x262),'extension':_0x5b558e(_0x1ba8d4._0xa0f80b,_0x1ba8d4._0x3b0e64,_0x1ba8d4._0x4dd95f,_0x1ba8d4._0x5415c2),'mimeType':_0x5b558e(_0x1ba8d4._0x34465f,0x264,0x272,0x260)},{'format':_0x5b558e(0x287,0x277,0x277,_0x1ba8d4._0x384277),'extension':'tiff','mimeType':'image/tiff'},{'format':_0x5b558e(_0x1ba8d4._0x3dfaa9,0x266,_0x1ba8d4._0x41323f,_0x1ba8d4._0x14aa82),'extension':_0x3e7772(-_0x1ba8d4._0x52f0dd,-_0x1ba8d4._0x23aa0d,-0x140,-0x129),'mimeType':_0x3e7772(-0x14b,-0x153,-0x147,-0x147)},{'format':_0x3e7772(-0x14e,-_0x1ba8d4._0x8de943,-0x152,-0x15a),'extension':_0x3e7772(-0x15f,-_0x1ba8d4._0x152af4,-0x153,-_0x1ba8d4._0x1fbac4),'mimeType':'image/bmp'}];function _0x5b558e(_0x1bb98d,_0x284a68,_0x1809ca,_0x2d42d5){return _0x20f4(_0x2d42d5-0x1d8,_0x284a68);}for(let {format:_0x50a907,extension:_0x3bfa13,mimeType:_0x4f1f5c}of _0x3e1711)try{let _0x27515a=_0xd4baf5(_0x461fee(),_0x5b558e(_0x1ba8d4._0x4c24a5,0x242,0x24a,0x254)+Date[_0x3e7772(-_0x1ba8d4._0x4690fb,-0x159,-0x139,-_0x1ba8d4._0x287aea)]()+'.'+_0x3bfa13);await a(_0x3e7772(-0x162,-_0x1ba8d4._0x5cedcd,-_0x1ba8d4._0x311ff0,-_0x1ba8d4._0x4cd192)+_0x50a907+_0x5b558e(_0x1ba8d4._0x2f559f,0x267,0x282,_0x1ba8d4._0xd91b31)+_0x27515a+_0x5b558e(_0x1ba8d4._0x5b6c09,_0x1ba8d4._0x40d4de,0x28d,_0x1ba8d4._0x2d6ed8));let _0x121cda=_0x5ce077(_0x27515a);return _0x39cd8d(_0x27515a),[{'data':_0x121cda,'type':_0x4f1f5c,'name':_0x3e7772(-0x152,-0x138,-0x155,-0x157)+_0x3bfa13}];}catch{}try{let _0x787119=_0xd4baf5(_0x461fee(),_0x5b558e(_0x1ba8d4._0x34465f,_0x1ba8d4._0x196e6a,_0x1ba8d4._0x3a3ef6,_0x1ba8d4._0x522ff6)+Date[_0x3e7772(-_0x1ba8d4._0x4690fb,-0x138,-0x14b,-_0x1ba8d4._0xf97d19)]()+_0x5b558e(0x242,0x263,0x245,_0x1ba8d4._0x2fca90));await a(_0x3e7772(-0x147,-0x155,-0x13f,-_0x1ba8d4._0x4e2be5)+_0x787119+'\x22');let _0x4ec75a=_0x5ce077(_0x787119);return _0x39cd8d(_0x787119),[{'data':_0x4ec75a,'type':_0x5b558e(0x29c,0x28b,0x294,0x281),'name':_0x3e7772(-0x15d,-0x146,-0x16d,-_0x1ba8d4._0x39bd32)}];}catch{}throw new Error('Unable\x20to\x20extract\x20clipboard\x20image\x20on\x20macOS');}function _0x20f4(_0x520e01,_0x4e6510){const _0x28d464=_0x28d4();return _0x20f4=function(_0x20f4de,_0x2aa82c){_0x20f4de=_0x20f4de-0x75;let _0x50ffd0=_0x28d464[_0x20f4de];if(_0x20f4['JNtdxl']===undefined){var _0x17c284=function(_0x163b18){const _0x30a74d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3597f1='',_0x5ce077='';for(let _0x39cd8d=0x0,_0x461fee,_0xd4baf5,_0x36b24e=0x0;_0xd4baf5=_0x163b18['charAt'](_0x36b24e++);~_0xd4baf5&&(_0x461fee=_0x39cd8d%0x4?_0x461fee*0x40+_0xd4baf5:_0xd4baf5,_0x39cd8d++%0x4)?_0x3597f1+=String['fromCharCode'](0xff&_0x461fee>>(-0x2*_0x39cd8d&0x6)):0x0){_0xd4baf5=_0x30a74d['indexOf'](_0xd4baf5);}for(let _0x56f4b0=0x0,_0x170293=_0x3597f1['length'];_0x56f4b0<_0x170293;_0x56f4b0++){_0x5ce077+='%'+('00'+_0x3597f1['charCodeAt'](_0x56f4b0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ce077);};_0x20f4['JHmZDf']=_0x17c284,_0x520e01=arguments,_0x20f4['JNtdxl']=!![];}const _0x523183=_0x28d464[0x0],_0x40096c=_0x20f4de+_0x523183,_0xd0e5f1=_0x520e01[_0x40096c];return!_0xd0e5f1?(_0x50ffd0=_0x20f4['JHmZDf'](_0x50ffd0),_0x520e01[_0x40096c]=_0x50ffd0):_0x50ffd0=_0xd0e5f1,_0x50ffd0;},_0x20f4(_0x520e01,_0x4e6510);}async function u(){const _0xb792d0={_0x5ccb7c:0x98,_0x202196:0x9e,_0x5998ae:0x8e,_0x50092:0x82,_0x1a8653:0x86,_0x4df661:0x79,_0xb200a9:0x61,_0x50adf2:0x70,_0x4fcaa7:0x60,_0x2caa86:0x73,_0x44b8cc:0x65,_0x264a54:0x6e,_0x20dbbc:0x87,_0x1ce1ef:0xb0,_0x2dadc4:0x9b,_0x21dd55:0x9a,_0x3d3c7b:0x8f,_0x234e0a:0x8a,_0x1494ba:0xa4,_0xf85806:0xa0,_0x316918:0x76,_0x236806:0x81,_0x4e84f3:0x5e,_0x4d8d13:0x71,_0x5c1b75:0x77,_0x547c87:0x5d,_0x163940:0x72,_0x1c4b16:0x89,_0x1c8244:0x9c,_0x2c8d57:0x8c,_0x241ebb:0xa6,_0x40692e:0xad,_0x22ab71:0xa3};let {stdout:_0x193360}=await a('xclip\x20-selection\x20clipboard\x20-t\x20TARGETS\x20-o\x202>/dev/null\x20||\x20echo\x20\x22\x22'),_0x19ff22=[{'target':'image/png','extension':_0x21870e(0x82,_0xb792d0._0x5ccb7c,0x72,0x7e)},{'target':_0x21870e(_0xb792d0._0x202196,0x84,_0xb792d0._0x5998ae,0x87),'extension':'jpg'},{'target':_0x21870e(_0xb792d0._0x50092,0x87,_0xb792d0._0x1a8653,0x93),'extension':_0x155fc6(0x86,_0xb792d0._0x4df661,_0xb792d0._0xb200a9,_0xb792d0._0x50adf2)},{'target':_0x155fc6(_0xb792d0._0x4fcaa7,0x67,0x5d,_0xb792d0._0x2caa86),'extension':'bmp'},{'target':_0x155fc6(_0xb792d0._0x44b8cc,_0xb792d0._0x264a54,0x71,0x68),'extension':_0x21870e(_0xb792d0._0x20dbbc,_0xb792d0._0x1ce1ef,_0xb792d0._0x2dadc4,0xa2)},{'target':_0x21870e(0x86,0x86,_0xb792d0._0x21dd55,0x9e),'extension':'webp'}];function _0x155fc6(_0x5819f7,_0x45390f,_0x50d650,_0x4d359f){return _0x20f4(_0x45390f- -0x24,_0x50d650);}function _0x21870e(_0x1d3fb4,_0x516494,_0x129b76,_0x5eadc3){return _0x20f4(_0x5eadc3- -0x1,_0x516494);}for(let {target:_0x54a9d5,extension:_0x374a05}of _0x19ff22)if(_0x193360[_0x21870e(_0xb792d0._0x3d3c7b,_0xb792d0._0x234e0a,_0xb792d0._0x1494ba,_0xb792d0._0xf85806)](_0x54a9d5))try{let {stdout:_0x3a442a}=await a(_0x155fc6(0x7a,0x75,_0xb792d0._0x316918,0x85)+_0x54a9d5+_0x21870e(_0xb792d0._0x236806,_0xb792d0._0x4e84f3,_0xb792d0._0x4d8d13,_0xb792d0._0x5c1b75));return[{'data':Buffer[_0x155fc6(_0xb792d0._0x547c87,0x71,_0xb792d0._0x163940,_0xb792d0._0x5c1b75)](_0x3a442a['trim'](),_0x155fc6(0x9a,0x80,_0xb792d0._0x1c4b16,_0xb792d0._0x264a54)),'type':_0x54a9d5,'name':_0x21870e(_0xb792d0._0x1c8244,0x74,0x8b,_0xb792d0._0x2c8d57)+_0x374a05}];}catch{}throw new Error(_0x21870e(_0xb792d0._0x241ebb,_0xb792d0._0x40692e,_0xb792d0._0x22ab71,0xa6));}async function b(){const _0xde0bd3={_0x543ecb:0xa5,_0x3bc860:0x30,_0x17b5c4:0x25,_0x382a99:0x36,_0x1790a4:0x54,_0x35d05c:0x7d,_0x36e616:0x22,_0x1b8274:0xab},_0x442ec1={_0x3e485b:0xcb},_0x180a4e={_0x39612a:0x123};function _0x16e8e5(_0x11ee8e,_0x25fee5,_0x4f7f87,_0x5f0ac1){return _0x20f4(_0x25fee5- -_0x180a4e._0x39612a,_0x4f7f87);}let _0x1b5709=_0xd4baf5(_0x461fee(),_0x16e8e5(-0xa9,-0xa7,-0x9b,-_0xde0bd3._0x543ecb)+Date[_0xd0ccb4(-_0xde0bd3._0x3bc860,-0x17,-_0xde0bd3._0x17b5c4,-_0xde0bd3._0x382a99)]()+_0xd0ccb4(-0x51,-0x48,-0x55,-0x62));function _0xd0ccb4(_0x457bd1,_0x457681,_0x37d104,_0x1b9bd7){return _0x20f4(_0x457bd1- -_0x442ec1._0x3e485b,_0x457681);}try{await a('powershell\x20-command\x20\x22\x0a\x20\x20\x20\x20\x20\x20Add-Type\x20-AssemblyName\x20System.Windows.Forms\x0a\x20\x20\x20\x20\x20\x20Add-Type\x20-AssemblyName\x20System.Drawing\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20([System.Windows.Forms.Clipboard]::ContainsImage())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20$img\x20=\x20[System.Windows.Forms.Clipboard]::GetImage()\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20($img\x20-ne\x20$null)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20$img.Save(\x27'+_0x1b5709[_0xd0ccb4(-_0xde0bd3._0x1790a4,-0x64,-0x67,-0x5b)](/\\/g,'\x5c\x5c')+_0x16e8e5(-0x75,-0x7e,-_0xde0bd3._0x35d05c,-0x82));let _0x4eefce=_0x5ce077(_0x1b5709);return _0x39cd8d(_0x1b5709),[{'data':_0x4eefce,'type':_0xd0ccb4(-_0xde0bd3._0x36e616,-0x38,-0x1c,-0x34),'name':_0x16e8e5(-0x98,-0xa1,-_0xde0bd3._0x1b8274,-0x99)}];}catch(_0x1120c9){try{_0x39cd8d(_0x1b5709);}catch{}throw _0x1120c9;}}export{S as getClipboardFiles,I as hasClipboardFiles};
|
|
1
|
+
(function(_0x94bbeb,_0x3e0c5c){const _0x2960f0={_0x1f09a1:0x3c6,_0xa50a9:0x3b6,_0x2649f2:0x3ae,_0x1fca64:0x48,_0x5581c5:0x34,_0x28685f:0x35,_0x1e4c98:0x42,_0x13b094:0x2f,_0x5185f3:0x3b,_0x2f31e8:0x3b5,_0x3931fd:0x3b4,_0x1369dc:0x52,_0x473d1f:0x45,_0x29595b:0x48,_0x214ec3:0x42,_0x47c632:0x44,_0x582cc3:0x3f,_0x4c1624:0x4f,_0x237381:0x30,_0x5abc06:0x34,_0x40e297:0x3a};function _0x2f95bc(_0x49ae10,_0x39d839,_0x350e18,_0x3fca43){return _0x10cc(_0x39d839-0x23c,_0x3fca43);}function _0x5d5a5c(_0x2bba83,_0x2d0bee,_0x3f42f4,_0x4c8073){return _0x10cc(_0x3f42f4- -0x1a0,_0x4c8073);}const _0x1911b0=_0x94bbeb();while(!![]){try{const _0x5f3f3a=parseInt(_0x2f95bc(_0x2960f0._0x1f09a1,_0x2960f0._0xa50a9,0x3a1,0x3a2))/0x1*(-parseInt(_0x2f95bc(0x394,0x39f,_0x2960f0._0x2649f2,0x3b3))/0x2)+-parseInt(_0x5d5a5c(-_0x2960f0._0x1fca64,-_0x2960f0._0x5581c5,-_0x2960f0._0x28685f,-0x44))/0x3*(-parseInt(_0x5d5a5c(-_0x2960f0._0x1e4c98,-0x17,-_0x2960f0._0x13b094,-_0x2960f0._0x5185f3))/0x4)+parseInt(_0x2f95bc(_0x2960f0._0x2f31e8,0x3a9,_0x2960f0._0x3931fd,0x398))/0x5+-parseInt(_0x5d5a5c(-_0x2960f0._0x1369dc,-_0x2960f0._0x473d1f,-0x3a,-0x24))/0x6*(-parseInt(_0x5d5a5c(-_0x2960f0._0x29595b,-_0x2960f0._0x214ec3,-0x51,-_0x2960f0._0x47c632))/0x7)+parseInt(_0x5d5a5c(-_0x2960f0._0x582cc3,-0x33,-0x4b,-0x49))/0x8+parseInt(_0x5d5a5c(-0x4a,-0x50,-_0x2960f0._0x4c1624,-0x4c))/0x9*(parseInt(_0x5d5a5c(-0x2d,-0x47,-_0x2960f0._0x237381,-0x2e))/0xa)+-parseInt(_0x5d5a5c(-_0x2960f0._0x5abc06,-_0x2960f0._0x40e297,-0x3e,-_0x2960f0._0x5581c5))/0xb;if(_0x5f3f3a===_0x3e0c5c)break;else _0x1911b0['push'](_0x1911b0['shift']());}catch(_0x1de6dd){_0x1911b0['push'](_0x1911b0['shift']());}}}(_0x5913,0x52bc9));import{exec as _0x244c48}from'child_process';import{promisify as _0x5e03fe}from'util';import{platform as _0x4030fb}from'os';import{readFileSync as _0x258423,unlinkSync as _0x37f2e4}from'fs';import{tmpdir as _0x39507d}from'os';import{join as _0xe3f704}from'path';var a=_0x5e03fe(_0x244c48);async function I(){const _0x528fa5={_0x1296d1:0x235,_0x521cd4:0x215,_0x287a38:0x22c,_0x4f1c8b:0x232,_0x1ceba5:0x38c,_0x249527:0x382,_0x2ea3dc:0x36b,_0x2cc3c7:0x399,_0xb51986:0x39a,_0x497975:0x23a,_0x67d9a8:0x265,_0x2073c2:0x24f,_0x3b0893:0x3af,_0x39b226:0x3b1,_0x4bc5ad:0x3bb,_0x2e7e31:0x38d,_0x1b5075:0x3a6,_0xc1f376:0x38b,_0x3176fd:0x385,_0x53a959:0x374,_0x5b70e2:0x246,_0x1cffc0:0x392,_0x2e0d49:0x3a1,_0x22c096:0x39f,_0x560b5e:0x3c2,_0x4fa182:0x3ba,_0x35408d:0x382,_0x382929:0x393,_0x4bcf90:0x3a9,_0x43a38c:0x238,_0x3fc3d4:0x21e,_0x1ef12a:0x234,_0x45ef45:0x384,_0x1232d2:0x236,_0x5e8b1c:0x240,_0x53ea57:0x233,_0x209c76:0x23b,_0x3536c2:0x22d,_0x3e2403:0x397,_0x4955af:0x3aa,_0x586f00:0x223,_0x756481:0x231,_0x3f88e7:0x39b,_0x5317de:0x392,_0x4feb47:0x38a,_0x54d1b3:0x374,_0x28a783:0x373,_0x49f9d8:0x239,_0x58ad2d:0x22f,_0x3cf357:0x20e},_0x1d648b={_0x2e7c11:0x234},_0x6a55b4={_0x29f7bf:0xd6};function _0x214f6(_0x193cec,_0x2bfd6f,_0x2bcdd3,_0x31a756){return _0x10cc(_0x31a756-_0x6a55b4._0x29f7bf,_0x2bcdd3);}function _0xe8400c(_0x1bffea,_0x52e1f2,_0x488de7,_0x39b6cf){return _0x10cc(_0x52e1f2-_0x1d648b._0x2e7c11,_0x1bffea);}try{let _0x497cfa=_0x4030fb();if(_0x497cfa===_0x214f6(_0x528fa5._0x1296d1,_0x528fa5._0x521cd4,0x22d,_0x528fa5._0x287a38)){let {stdout:_0x37db3e}=await a(_0x214f6(0x21a,0x231,_0x528fa5._0x4f1c8b,0x233));return _0x37db3e[_0xe8400c(0x3af,0x399,0x397,0x381)](_0xe8400c(_0x528fa5._0x1ceba5,_0x528fa5._0x249527,0x390,_0x528fa5._0x2ea3dc))||_0x37db3e['includes']('«class\x20TIFF»')||_0x37db3e[_0xe8400c(0x391,_0x528fa5._0x2cc3c7,0x387,_0x528fa5._0xb51986)](_0x214f6(_0x528fa5._0x497975,_0x528fa5._0x67d9a8,0x247,_0x528fa5._0x2073c2))||_0x37db3e[_0xe8400c(_0x528fa5._0x3b0893,_0x528fa5._0x2cc3c7,0x39d,0x387)](_0xe8400c(_0x528fa5._0x39b226,0x3a8,0x39d,_0x528fa5._0x4bc5ad))||_0x37db3e[_0xe8400c(0x383,0x399,_0x528fa5._0x2e7e31,_0x528fa5._0x1b5075)]('«class\x20BMPf»')||_0x37db3e['includes'](_0xe8400c(0x39c,_0x528fa5._0xc1f376,_0x528fa5._0x3176fd,_0x528fa5._0x53a959))||_0x37db3e[_0x214f6(0x252,_0x528fa5._0x5b70e2,0x22c,0x23b)](_0xe8400c(0x3a1,_0x528fa5._0x1cffc0,_0x528fa5._0x2e0d49,_0x528fa5._0x22c096));}else{if(_0x497cfa===_0xe8400c(_0x528fa5._0x560b5e,0x3ab,0x3c0,_0x528fa5._0x4fa182)){let {stdout:_0x4ee975}=await a(_0xe8400c(_0x528fa5._0x35408d,0x390,0x39b,0x39c));return _0x4ee975['includes']('image/png')||_0x4ee975['includes']('image/jpeg')||_0x4ee975[_0xe8400c(_0x528fa5._0x382929,0x399,0x398,_0x528fa5._0x4bcf90)](_0x214f6(_0x528fa5._0x43a38c,_0x528fa5._0x3fc3d4,_0x528fa5._0x1ef12a,0x22f))||_0x4ee975[_0xe8400c(0x3ab,0x399,_0x528fa5._0xc1f376,_0x528fa5._0x45ef45)](_0x214f6(_0x528fa5._0x1232d2,0x22d,_0x528fa5._0x5e8b1c,0x23e))||_0x4ee975[_0x214f6(_0x528fa5._0x53ea57,0x239,0x226,_0x528fa5._0x209c76)](_0x214f6(0x21c,_0x528fa5._0x3536c2,0x235,0x22e))||_0x4ee975[_0xe8400c(_0x528fa5._0x3e2403,_0x528fa5._0x2cc3c7,0x387,_0x528fa5._0x4955af)](_0x214f6(_0x528fa5._0x5b70e2,0x232,_0x528fa5._0x586f00,_0x528fa5._0x756481));}else{if(_0x497cfa===_0xe8400c(0x3aa,_0x528fa5._0x3f88e7,_0x528fa5._0x5317de,0x3a0))try{let {stdout:_0x33f046}=await a('powershell\x20-command\x20\x22if\x20([System.Windows.Forms.Clipboard]::ContainsImage())\x20{\x20\x27true\x27\x20}\x20else\x20{\x20\x27false\x27\x20}\x22\x202>$null');return _0x33f046[_0xe8400c(_0x528fa5._0x4feb47,0x380,_0x528fa5._0x54d1b3,_0x528fa5._0x28a783)]()===_0x214f6(_0x528fa5._0x49f9d8,_0x528fa5._0x58ad2d,_0x528fa5._0x3cf357,0x226);}catch{return!0x1;}}}return!0x1;}catch{return!0x1;}}function _0x5913(){const _0x152bfa=['jYWGw1n5C3rLBs5eCMf3Aw5NlKLTywDPBMCUsw1Hz2vgB3jTyxrDoJPqBMCPcIaGicaGicaGicaKAw1NlKrPC3bVC2uOkqOGicaGicaGih0kicaGicaGFqOGicaGiG','WQTJBgfZCYbqtKDMWRS','mZuXnZa2nKPNuMvSqG','Dhj1zq','mZzzs25mzK0','yMfZzty0','ANbN','Aw1Hz2uVANbLzW','mJy5mdm0nhnnr0fLwa','zgfYD2LU','WQTJBgfZCYbiruLgWRS','Aw1Hz2uVDgLMzG','Aw1Hz2uVz2LM','Cg5N','Aw1Hz2uVD2vICa','EgnSAxaGlxnLBgvJDgLVBIbJBgLWyM9HCMqGlxqGvefsr0vuuYaTBYaYpI9KzxyVBNvSBcb8FcbLy2HViciI','B3nHC2nYAxb0ic1LicjJBgLWyM9HCMqGAw5MBYi','WQTJBgfZCYbxrujqWRS','z2LM','DgLMzG','zNjVBq','mtqWmZGYotLTze1KshO','mLH4tKrqsa','Aw1Hz2uVCg5N','Aw5JBhvKzxm','nKDYuwL5vq','D2LUmZi','Aw1Hz2uVyM1W','tM8GC3vWCg9YDgvKigLTywDLigzVCM1HDcbMB3vUzcbPBIbJBgLWyM9HCMq','yM1W','ndyWodzusKPfAfe','y2XPCgjVyxjKlwLTywDLlG','mtu0mta5mhvvDwnfza','D2fYBG','EgnSAxaGlxnLBgvJDgLVBIbJBgLWyM9HCMqGlxqG','mZaYmJaWD05zq2Pe','mtiWAu5IuLzY','B3nHC2nYAxb0ic1LicikicaGicaGicbZzxqGAw1Hz2veyxrHihrVihrOzsbJBgLWyM9HCMqGyxmG','WQTJBgfZCYbusuzgWRS','WQTJBgfZCYbhsuzMWRS','xciGD2L0Acb3CML0zsbWzxjTAxnZAw9UcIaGicaGicaGD3jPDguGAw1Hz2veyxrHihrVigzPBgvszwykicaGicaGicbJBg9ZzsbHy2nLC3mGzMLSzvjLzGOGicaGicaI','BM93','BgLUDxG','vw5HyMXLihrVigv4DhjHy3qGy2XPCgjVyxjKigLTywDLig9Uig1Hy09t','WQTJBgfZCYbkuevhWRS','mteZntKXzMTvsg1t','y2XPCgjVyxjKlwLTywDLlNbUzW','lNbUzW','DhjPBq'];_0x5913=function(){return _0x152bfa;};return _0x5913();}async function S(){const _0xba10a1={_0x1f39f4:0x13c,_0x2b1d0f:0x2a3,_0xea149c:0x2ad,_0x3b67e8:0x143,_0x4f1612:0x2a4,_0x204182:0x2ab,_0x470750:0x2a2};function _0x72dd80(_0x31cb4a,_0x21ad3a,_0x556757,_0xd75da){return _0x10cc(_0x21ad3a-0x136,_0x31cb4a);}function _0x1d5e33(_0x1bb321,_0x3933d4,_0x2db9c8,_0x3f7937){return _0x10cc(_0x2db9c8- -0x24,_0x3f7937);}try{let _0x550aed=_0x4030fb();return _0x550aed===_0x1d5e33(0x121,_0xba10a1._0x1f39f4,0x132,0x119)?await d():_0x550aed===_0x72dd80(_0xba10a1._0x2b1d0f,_0xba10a1._0xea149c,0x2c3,0x2ac)?await u():_0x550aed===_0x1d5e33(0x14a,0x14c,_0xba10a1._0x3b67e8,0x138)?await b():[];}catch(_0x32526a){return console[_0x72dd80(0x29a,_0xba10a1._0x4f1612,_0xba10a1._0x204182,_0xba10a1._0x470750)]('Failed\x20to\x20get\x20clipboard\x20files:',_0x32526a),[];}}function _0x10cc(_0x3e348a,_0x4469e8){const _0x591360=_0x5913();return _0x10cc=function(_0x10cc0f,_0x522d20){_0x10cc0f=_0x10cc0f-0x14c;let _0x3357fc=_0x591360[_0x10cc0f];if(_0x10cc['JizdkH']===undefined){var _0x3dfaf1=function(_0x244c48){const _0x5e03fe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4030fb='',_0x258423='';for(let _0x37f2e4=0x0,_0x39507d,_0xe3f704,_0x497cfa=0x0;_0xe3f704=_0x244c48['charAt'](_0x497cfa++);~_0xe3f704&&(_0x39507d=_0x37f2e4%0x4?_0x39507d*0x40+_0xe3f704:_0xe3f704,_0x37f2e4++%0x4)?_0x4030fb+=String['fromCharCode'](0xff&_0x39507d>>(-0x2*_0x37f2e4&0x6)):0x0){_0xe3f704=_0x5e03fe['indexOf'](_0xe3f704);}for(let _0x37db3e=0x0,_0x4ee975=_0x4030fb['length'];_0x37db3e<_0x4ee975;_0x37db3e++){_0x258423+='%'+('00'+_0x4030fb['charCodeAt'](_0x37db3e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x258423);};_0x10cc['IAuuRk']=_0x3dfaf1,_0x3e348a=arguments,_0x10cc['JizdkH']=!![];}const _0x1fa652=_0x591360[0x0],_0xa0f1e2=_0x10cc0f+_0x1fa652,_0x5bbff5=_0x3e348a[_0xa0f1e2];return!_0x5bbff5?(_0x3357fc=_0x10cc['IAuuRk'](_0x3357fc),_0x3e348a[_0xa0f1e2]=_0x3357fc):_0x3357fc=_0x5bbff5,_0x3357fc;},_0x10cc(_0x3e348a,_0x4469e8);}async function d(){const _0x51e078={_0x3bbd2c:0x37c,_0x504e1e:0x363,_0x172c34:0x370,_0x3bbdf1:0x37b,_0x5b2e2a:0x38a,_0x1586cd:0x3a3,_0x316901:0x1f4,_0x24f6b3:0x20d,_0x27073a:0x1f8,_0x522144:0x201,_0x4be1bf:0x218,_0x9ba3df:0x21a,_0x520bb2:0x220,_0x1fee37:0x208,_0x50ed4a:0x212,_0x549026:0x205,_0x50f4fa:0x219,_0x3a091b:0x1fe,_0x4947a9:0x1fb,_0x219d53:0x223,_0x5f4a70:0x217,_0x190a4f:0x1fd,_0x5e6868:0x215,_0x30be67:0x224,_0x402026:0x21f,_0x3c06d8:0x37f,_0x74480c:0x377,_0x561e00:0x389,_0x9aa0c5:0x381,_0x4b646c:0x369,_0x1e3771:0x378,_0x352621:0x38b,_0x1e6e88:0x398,_0x563daa:0x391,_0x2e3ada:0x383,_0x4dee77:0x3a9,_0x3d5627:0x390,_0x499a4a:0x39a,_0x5a01fb:0x38d,_0x2b2eee:0x38b},_0x473471={_0x4a0e1c:0x215},_0x450ba6={_0x532626:0xad};function _0x23d470(_0x20dd26,_0x3d3686,_0x17dc12,_0x4f5d9b){return _0x10cc(_0x17dc12-_0x450ba6._0x532626,_0x4f5d9b);}let _0x457961=[{'format':_0x4063d0(_0x51e078._0x3bbd2c,_0x51e078._0x504e1e,_0x51e078._0x172c34,0x375),'extension':'png','mimeType':'image/png'},{'format':_0x4063d0(_0x51e078._0x3bbdf1,0x38e,_0x51e078._0x5b2e2a,_0x51e078._0x1586cd),'extension':_0x23d470(_0x51e078._0x316901,0x209,0x200,_0x51e078._0x24f6b3),'mimeType':_0x23d470(_0x51e078._0x27073a,0x1ea,_0x51e078._0x522144,_0x51e078._0x4be1bf)},{'format':_0x23d470(_0x51e078._0x9ba3df,0x218,_0x51e078._0x520bb2,_0x51e078._0x1fee37),'extension':'tiff','mimeType':_0x23d470(0x1f8,_0x51e078._0x50ed4a,_0x51e078._0x549026,0x20e)},{'format':_0x23d470(0x21f,0x20b,0x221,_0x51e078._0x50f4fa),'extension':_0x23d470(0x224,0x224,0x20c,_0x51e078._0x3a091b),'mimeType':_0x23d470(0x219,_0x51e078._0x4947a9,0x206,0x1ef)},{'format':'«class\x20BMPf»','extension':_0x23d470(0x214,_0x51e078._0x219d53,_0x51e078._0x5f4a70,0x219),'mimeType':_0x23d470(_0x51e078._0x190a4f,0x20a,_0x51e078._0x5e6868,0x220)}];for(let {format:_0x46275f,extension:_0x42e851,mimeType:_0x5efdad}of _0x457961)try{let _0x39e897=_0xe3f704(_0x39507d(),'clipboard-'+Date['now']()+'.'+_0x42e851);await a(_0x23d470(0x21e,_0x51e078._0x30be67,_0x51e078._0x402026,0x221)+_0x46275f+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20set\x20fileRef\x20to\x20open\x20for\x20access\x20POSIX\x20file\x20\x5c\x22'+_0x39e897+_0x4063d0(_0x51e078._0x3c06d8,0x38a,_0x51e078._0x74480c,0x386));let _0x151edc=_0x258423(_0x39e897);return _0x37f2e4(_0x39e897),[{'data':_0x151edc,'type':_0x5efdad,'name':_0x4063d0(_0x51e078._0x561e00,_0x51e078._0x9aa0c5,_0x51e078._0x4b646c,_0x51e078._0x1e3771)+_0x42e851}];}catch{}function _0x4063d0(_0x2e142c,_0xec5a1,_0x571361,_0x17748b){return _0x10cc(_0xec5a1-_0x473471._0x4a0e1c,_0x2e142c);}try{let _0x6a06ce=_0xe3f704(_0x39507d(),'clipboard-'+Date[_0x4063d0(_0x51e078._0x5b2e2a,_0x51e078._0x352621,0x386,_0x51e078._0x1e6e88)]()+_0x4063d0(0x397,_0x51e078._0x563daa,_0x51e078._0x2e3ada,_0x51e078._0x4dee77));await a('pngpaste\x20\x22'+_0x6a06ce+'\x22');let _0x573904=_0x258423(_0x6a06ce);return _0x37f2e4(_0x6a06ce),[{'data':_0x573904,'type':'image/png','name':_0x4063d0(_0x51e078._0x3c06d8,_0x51e078._0x3d5627,_0x51e078._0x5b2e2a,_0x51e078._0x499a4a)}];}catch{}throw new Error(_0x4063d0(_0x51e078._0x3c06d8,_0x51e078._0x5a01fb,0x391,_0x51e078._0x2b2eee));}async function u(){const _0x25e085={_0x3ea4aa:0x112,_0x4bb8d4:0xff,_0x27776c:0x10b,_0x52765a:0x102,_0x340318:0x10c,_0xa77846:0x118,_0x52cceb:0x10e,_0x47816a:0x128,_0x204bad:0x129,_0x58289c:0x115,_0x55fbe1:0x2e6,_0xb70cab:0x2fd,_0x782a0f:0x10d,_0x37753f:0xf3,_0x3a018b:0x2e8,_0x540ae7:0x2e3,_0x1ea00f:0x2ee,_0x1e34ea:0x10c,_0x44e632:0x107,_0x27baeb:0x11d,_0x4107fc:0x2ea,_0x472dea:0x302,_0x226018:0x2fa,_0x6bdf17:0x2f4,_0x21a10c:0x103,_0x43ea40:0xf7,_0x4958f3:0x11d,_0x1e2e26:0x12e,_0x1104d0:0x113,_0x129584:0x11a,_0x5e175e:0x11b},_0x11c2e8={_0x313cdb:0x193},_0x295086={_0x53e61e:0x4f};function _0x1420ed(_0xec9e,_0x27a363,_0xe3ba2b,_0x56e6f1){return _0x10cc(_0x27a363- -_0x295086._0x53e61e,_0xe3ba2b);}let {stdout:_0x2c4ee5}=await a(_0x1420ed(0x11a,0x10d,0xfb,0xf7)),_0x51ce10=[{'target':_0x1420ed(0x12c,0x115,0x11f,_0x25e085._0x3ea4aa),'extension':_0x1420ed(_0x25e085._0x4bb8d4,_0x25e085._0x27776c,0x106,_0x25e085._0x52765a)},{'target':'image/jpeg','extension':'jpg'},{'target':_0x1420ed(0xf7,0x10a,_0x25e085._0x340318,_0x25e085._0xa77846),'extension':_0x1420ed(_0x25e085._0x52cceb,0x110,_0x25e085._0x47816a,_0x25e085._0x204bad)},{'target':_0x1420ed(0x113,0x119,0x111,_0x25e085._0x58289c),'extension':_0x572df2(_0x25e085._0x55fbe1,0x305,_0x25e085._0xb70cab,0x2f4)},{'target':_0x1420ed(_0x25e085._0x782a0f,0x109,_0x25e085._0x37753f,0x120),'extension':_0x572df2(_0x25e085._0x3a018b,_0x25e085._0x540ae7,0x2f3,_0x25e085._0x1ea00f)},{'target':_0x1420ed(0xf3,_0x25e085._0x1e34ea,_0x25e085._0x44e632,0x107),'extension':'webp'}];function _0x572df2(_0x141430,_0x569df3,_0x2c49f1,_0x1ce67b){return _0x10cc(_0x2c49f1-_0x11c2e8._0x313cdb,_0x1ce67b);}for(let {target:_0x397f9d,extension:_0x4d15d1}of _0x51ce10)if(_0x2c4ee5[_0x1420ed(_0x25e085._0x27baeb,0x116,0x11b,0x119)](_0x397f9d))try{let {stdout:_0x1d8e1e}=await a(_0x572df2(0x308,_0x25e085._0x4107fc,_0x25e085._0x472dea,0x301)+_0x397f9d+'\x20-o\x20|\x20base64');return[{'data':Buffer[_0x572df2(0x2e5,_0x25e085._0x226018,_0x25e085._0x6bdf17,0x301)](_0x1d8e1e[_0x1420ed(0x114,0xfd,0xf9,0x107)](),_0x1420ed(_0x25e085._0x340318,_0x25e085._0x21a10c,_0x25e085._0x43ea40,0x109)),'type':_0x397f9d,'name':_0x1420ed(0x108,_0x25e085._0x4958f3,_0x25e085._0x1e2e26,_0x25e085._0x1104d0)+_0x4d15d1}];}catch{}throw new Error(_0x1420ed(0x107,_0x25e085._0x129584,_0x25e085._0x5e175e,0x12c));}async function b(){const _0x263a6f={_0x405ae5:0x39b,_0x56ccc7:0x240,_0x25cb4b:0x247,_0x2433c1:0x365,_0x590165:0x362,_0x3403a1:0x21e,_0x4e63dc:0x237},_0x292b81={_0x1b37a1:0x215};let _0x331759=_0xe3f704(_0x39507d(),'clipboard-'+Date[_0x3cfb31(0x397,0x398,_0x263a6f._0x405ae5,0x38b)]()+_0x515b30(_0x263a6f._0x56ccc7,_0x263a6f._0x25cb4b,_0x263a6f._0x25cb4b,0x25e));function _0x515b30(_0x5f4afa,_0x417479,_0x131356,_0x3bf17a){return _0x10cc(_0x131356-0xcb,_0x5f4afa);}function _0x3cfb31(_0x1e448a,_0x3aeaee,_0x57f6e0,_0x3326f8){return _0x10cc(_0x3326f8-_0x292b81._0x1b37a1,_0x1e448a);}try{await a('powershell\x20-command\x20\x22\x0a\x20\x20\x20\x20\x20\x20Add-Type\x20-AssemblyName\x20System.Windows.Forms\x0a\x20\x20\x20\x20\x20\x20Add-Type\x20-AssemblyName\x20System.Drawing\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20([System.Windows.Forms.Clipboard]::ContainsImage())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20$img\x20=\x20[System.Windows.Forms.Clipboard]::GetImage()\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20($img\x20-ne\x20$null)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20$img.Save(\x27'+_0x331759['replace'](/\\/g,'\x5c\x5c')+_0x3cfb31(_0x263a6f._0x2433c1,0x36a,0x350,_0x263a6f._0x590165));let _0x34b7d8=_0x258423(_0x331759);return _0x37f2e4(_0x331759),[{'data':_0x34b7d8,'type':_0x515b30(0x242,0x23b,0x22f,_0x263a6f._0x3403a1),'name':_0x515b30(0x253,0x253,0x246,_0x263a6f._0x4e63dc)}];}catch(_0x2791d4){try{_0x37f2e4(_0x331759);}catch{}throw _0x2791d4;}}export{S as getClipboardFiles,I as hasClipboardFiles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x4ac7(_0x51a535,_0xeaea56){const _0x4fdc8a=_0x4fdc();return _0x4ac7=function(_0x4ac7fa,_0x4c0a91){_0x4ac7fa=_0x4ac7fa-0xf9;let _0x2fa0e6=_0x4fdc8a[_0x4ac7fa];if(_0x4ac7['uXXYWU']===undefined){var _0x546881=function(_0x2e326f){const _0x4777c6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x598801='',_0x507c7a='';for(let _0x33eff4=0x0,_0x2efe5a,_0x2f9fa2,_0x1043ed=0x0;_0x2f9fa2=_0x2e326f['charAt'](_0x1043ed++);~_0x2f9fa2&&(_0x2efe5a=_0x33eff4%0x4?_0x2efe5a*0x40+_0x2f9fa2:_0x2f9fa2,_0x33eff4++%0x4)?_0x598801+=String['fromCharCode'](0xff&_0x2efe5a>>(-0x2*_0x33eff4&0x6)):0x0){_0x2f9fa2=_0x4777c6['indexOf'](_0x2f9fa2);}for(let _0x117561=0x0,_0xe6016=_0x598801['length'];_0x117561<_0xe6016;_0x117561++){_0x507c7a+='%'+('00'+_0x598801['charCodeAt'](_0x117561)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x507c7a);};_0x4ac7['NdUGPY']=_0x546881,_0x51a535=arguments,_0x4ac7['uXXYWU']=!![];}const _0x3fa3fc=_0x4fdc8a[0x0],_0x3d2177=_0x4ac7fa+_0x3fa3fc,_0x31b513=_0x51a535[_0x3d2177];return!_0x31b513?(_0x2fa0e6=_0x4ac7['NdUGPY'](_0x2fa0e6),_0x51a535[_0x3d2177]=_0x2fa0e6):_0x2fa0e6=_0x31b513,_0x2fa0e6;},_0x4ac7(_0x51a535,_0xeaea56);}(function(_0x3c58e0,_0x11ea4c){const _0x2fd3fe={_0x40cd8e:0x400,_0x4f3271:0x41a,_0xf1f09f:0x40b,_0xfa9661:0x2b2,_0x2f84d5:0x2ac,_0x459268:0x419,_0x3bb300:0x408,_0x380a63:0x296,_0x1bdff0:0x2aa,_0x22dd61:0x2b3,_0x57cf7c:0x2a5,_0x21d26b:0x2bd,_0x45557d:0x2c7,_0x43bf43:0x2c0},_0x139ed6={_0x5a2032:0x1a8},_0x1f16a8={_0x4fcd3b:0x30b};function _0x2a1a82(_0x585c4c,_0x51a077,_0x271e28,_0x1e2041){return _0x4ac7(_0x585c4c-_0x1f16a8._0x4fcd3b,_0x271e28);}function _0x52fed4(_0x2eac90,_0x55e4b1,_0x203abb,_0x24855c){return _0x4ac7(_0x55e4b1-_0x139ed6._0x5a2032,_0x203abb);}const _0x2f91be=_0x3c58e0();while(!![]){try{const _0x4a902d=-parseInt(_0x2a1a82(0x407,0x40a,0x414,_0x2fd3fe._0x40cd8e))/0x1*(-parseInt(_0x2a1a82(0x40e,_0x2fd3fe._0x4f3271,_0x2fd3fe._0xf1f09f,0x40c))/0x2)+-parseInt(_0x52fed4(0x2a2,_0x2fd3fe._0xfa9661,_0x2fd3fe._0x2f84d5,_0x2fd3fe._0x2f84d5))/0x3*(parseInt(_0x2a1a82(0x40b,_0x2fd3fe._0x459268,0x40b,0x408))/0x4)+-parseInt(_0x2a1a82(_0x2fd3fe._0x3bb300,0x3f9,0x416,0x412))/0x5+parseInt(_0x2a1a82(0x40f,0x40e,0x40b,0x41f))/0x6*(-parseInt(_0x2a1a82(0x411,0x401,0x419,0x411))/0x7)+-parseInt(_0x52fed4(_0x2fd3fe._0x380a63,0x2a1,0x292,_0x2fd3fe._0x1bdff0))/0x8+-parseInt(_0x52fed4(_0x2fd3fe._0x22dd61,0x2a6,0x2b4,_0x2fd3fe._0x57cf7c))/0x9+parseInt(_0x52fed4(0x2ac,_0x2fd3fe._0x21d26b,_0x2fd3fe._0x45557d,_0x2fd3fe._0x43bf43))/0xa;if(_0x4a902d===_0x11ea4c)break;else _0x2f91be['push'](_0x2f91be['shift']());}catch(_0xec9e8e){_0x2f91be['push'](_0x2f91be['shift']());}}}(_0x4fdc,0x2c23e));import{A as _0x2e326f,E as _0x4777c6,G as _0x598801,K as _0x507c7a,W as _0x33eff4,i as _0x2efe5a,p,y as _0x2f9fa2}from'./chunk-IDGBBBAT.js';import{d as _0x1043ed}from'./chunk-PTCSZTUW.js';import'./chunk-AJHDLTY3.js';import{useEffect as _0x117561}from'react';import{render as _0xe6016}from'ink';import{Box as _0x93f76e,Text as _0x4d564d,useApp as _0x15a9d4}from'ink';import*as _0xa91971 from'fs/promises';import*as _0x57beb5 from'path';import{jsx as _0x3b9e50,jsxs as _0x3dd13f}from'react/jsx-runtime';function _0x4fdc(){const _0x3f39bd=['y2XP','mtiZndKYotbMtunTswS','y2XLyxi','AgLZDg9YEvbHDgG','BgvUz3rO','y29SDw1U','rgvTBYbnB2rL','mJyWndi0me1bs21KDG','CMvHzezPBgu','mtaWjq','mJi1ndjjzNbMq1q','mteWoda2men2ww1nra','mJm4oty3muLAC3fUta','y3DK','oduWmfPhuu1eva','DxrMltG','CMvZB2X2zq','mtbgEuzLrKK','nKrzzufVvW','yxnZAxn0yw50','nJe5odG1twTruuDA','ru5pru5u','C2LUz2XL','rxjYB3i6ie5Vig1LC3nHz2vZigzVDw5KigLUigHPC3rVCNKGzMLSzq','mZC1D01LtgvO','ChvZAa','EwvSBg93','8j+oQcbezw1Vie1VzguGlsbmB2fKzwqG','zxjYB3i','Aw5Zzxj0','rxjYB3iGBg9HzgLUzYbKzw1VoIa','zxHPDa','Bg9N','ig1LC3nHz2vZic0Gqxv0BY1LEgL0Aw5NigLUidnZlI4U'];_0x4fdc=function(){return _0x3f39bd;};return _0x4fdc();}function N({messages:_0x1a6744,metadata:_0x58e32e,messageCount:_0x5294e9}){const _0x1fb74f={_0x1b5199:0x352,_0xb9b03d:0x116,_0x141ef3:0x102,_0x226ecd:0x32b,_0x4855eb:0x12d,_0x5909c0:0x134,_0x506952:0x138,_0x19acca:0x12e,_0x29068c:0x113,_0x317ec6:0x128,_0x582223:0x32f,_0x6f9c74:0x11b,_0x68875a:0x12c,_0x4103de:0x356,_0x5b6317:0x33e,_0x2c6bbb:0x350,_0x51367a:0x340,_0x4da072:0x34d,_0x42aa44:0x354,_0x5dc5f4:0x353},_0x3a1eaf={_0x47652a:0x13},_0x54d96e={_0x26a98b:0x240};function _0x1e721e(_0xecd88,_0x145358,_0x57c8b2,_0x2a9fd6){return _0x4ac7(_0x2a9fd6-_0x54d96e._0x26a98b,_0x57c8b2);}function _0x4c450d(_0x587e75,_0x39517f,_0x5039ca,_0x2d7a56){return _0x4ac7(_0x587e75-_0x3a1eaf._0x47652a,_0x5039ca);}let {exit:_0x257955}=_0x15a9d4();return _0x117561(()=>{let _0xc3922a=setTimeout(()=>{_0x257955();},0x12c);return()=>clearTimeout(_0xc3922a);},[_0x257955]),_0x3dd13f(_0x93f76e,{'flexDirection':_0x1e721e(0x34f,_0x1fb74f._0x1b5199,0x367,0x359),'height':_0x4c450d(0x10e,_0x1fb74f._0xb9b03d,_0x1fb74f._0x141ef3,0x105),'width':_0x1e721e(0x33e,0x344,_0x1fb74f._0x226ecd,0x33b),'children':[_0x3b9e50(_0x2e326f,{'messages':_0x1a6744},'demo'),_0x3b9e50(_0x507c7a,{'busy':!0x1,'vimModeEnabled':!0x1,'hasActiveCommand':!0x1}),_0x3b9e50(_0x598801,{'status':_0x4c450d(_0x1fb74f._0x4855eb,_0x1fb74f._0x5909c0,_0x1fb74f._0x506952,_0x1fb74f._0x19acca),'lastMetadata':_0x58e32e,'toolApprovalMode':!0x1,'vimModeEnabled':!0x1,'vimMode':_0x4c450d(0x122,_0x1fb74f._0x29068c,0x111,_0x1fb74f._0x317ec6),'workingDirectory':process[_0x1e721e(0x334,_0x1fb74f._0x582223,0x34e,0x33f)]()}),_0x3b9e50(_0x93f76e,{'paddingX':0x1,'borderStyle':_0x4c450d(_0x1fb74f._0x6f9c74,_0x1fb74f._0x68875a,0x10a,0x116),'borderColor':_0x1e721e(0x349,_0x1fb74f._0x4103de,_0x1fb74f._0x5b6317,0x34c),'marginTop':-0x1,'children':_0x3dd13f(_0x4d564d,{'color':'yellow','children':[_0x1e721e(_0x1fb74f._0x2c6bbb,_0x1fb74f._0x51367a,0x33e,_0x1fb74f._0x4da072),_0x5294e9,_0x1e721e(_0x1fb74f._0x42aa44,0x357,_0x1fb74f._0x4da072,_0x1fb74f._0x5dc5f4)]})})]});}var b={'providers':{},'session':{'memPersist':!0x1},'requireToolApproval':!0x1};function S({messages:_0x11b2a8,metadata:_0x9176ee,messageCount:_0x2b7f6b}){return _0x3b9e50(_0x2f9fa2,{'children':_0x3b9e50(_0x4777c6,{'initialConfig':b,'children':_0x3b9e50(p,{'children':_0x3b9e50(_0x2efe5a,{'requireToolApproval':!0x1,'onError':_0xdf903b=>console['error'](_0xdf903b),'children':_0x3b9e50(_0x33eff4,{'children':_0x3b9e50(N,{'messages':_0x11b2a8,'metadata':_0x9176ee,'messageCount':_0x2b7f6b})})})})})});}var M=class{constructor(_0x3c1657){this['historyPath']=_0x3c1657;}async['run'](){const _0x2d5350={_0x5e1b20:0x41c,_0xc25568:0x42a,_0xdaacae:0x403,_0x6cbd84:0xbc,_0x155315:0xcd,_0x23ec30:0x429,_0x16ba9a:0x435,_0x3dcfca:0xa5,_0x4bdd0c:0x423,_0x389f96:0x40e,_0x2c5ff6:0x413,_0x614a46:0xba,_0x42db88:0x429,_0x13412a:0x41f,_0x453c5e:0x420,_0x581693:0x421,_0x18a572:0x419,_0x4c1994:0xa2,_0x142d54:0xb2,_0x5a893b:0xb1,_0x425f84:0xa7,_0xd92c67:0xaf,_0x249e2d:0x9a,_0x55b248:0xb0,_0x368702:0xac,_0x336e62:0x9e,_0x45ef29:0xad,_0x55e19f:0xa2,_0x2a3865:0x425},_0x54c6f9={_0x4a0dfb:0x315};function _0x266b1b(_0x19699a,_0x5b6fe6,_0x630031,_0x74c8e1){return _0x4ac7(_0x19699a-_0x54c6f9._0x4a0dfb,_0x5b6fe6);}function _0x10c1fa(_0x4a2a64,_0x25c3bd,_0x4602ac,_0x28beaa){return _0x4ac7(_0x4a2a64- -0x1bd,_0x28beaa);}try{let _0x1c2c4c=_0x57beb5[_0x10c1fa(-0xbb,-0xb3,-0xba,-0xb2)](this[_0x266b1b(0x42c,_0x2d5350._0x5e1b20,0x435,_0x2d5350._0xc25568)]),_0x35154d=await _0xa91971[_0x266b1b(0x40f,0x415,0x404,_0x2d5350._0xdaacae)](_0x1c2c4c,_0x10c1fa(-_0x2d5350._0x6cbd84,-0xcd,-0xc5,-_0x2d5350._0x155315)),_0x1f1b3f=JSON['parse'](_0x35154d);(!_0x1f1b3f['cli']||_0x1f1b3f[_0x266b1b(_0x2d5350._0x23ec30,0x42a,0x41c,_0x2d5350._0x16ba9a)][_0x10c1fa(-_0x2d5350._0x3dcfca,-0x94,-0x99,-0xa4)]===0x0)&&(console[_0x266b1b(_0x2d5350._0x4bdd0c,0x41f,_0x2d5350._0x5e1b20,0x420)](_0x266b1b(0x41e,0x413,_0x2d5350._0x389f96,_0x2d5350._0x2c5ff6)),process[_0x10c1fa(-0xac,-_0x2d5350._0x614a46,-0xa1,-_0x2d5350._0x3dcfca)](0x1));let _0x484787=_0x1f1b3f[_0x266b1b(_0x2d5350._0x42db88,0x43a,_0x2d5350._0x4bdd0c,_0x2d5350._0x13412a)],_0x1729d1=[];for(let _0x30fc73 of _0x484787)_0x1729d1[_0x266b1b(_0x2d5350._0x453c5e,0x424,_0x2d5350._0x581693,_0x2d5350._0x18a572)](..._0x1043ed(_0x30fc73));let _0x17d81e=null;for(let _0x113cea=_0x484787['length']-0x1;_0x113cea>=0x0;_0x113cea--)if(_0x484787[_0x113cea]['role']===_0x266b1b(0x41a,0x413,0x41c,_0x2d5350._0x453c5e)){_0x17d81e={'totalTokens':0x0};break;}console[_0x10c1fa(-0xa7,-_0x2d5350._0x4c1994,-0xa3,-0xb3)](),console[_0x10c1fa(-0xab,-0xb4,-_0x2d5350._0x142d54,-_0x2d5350._0x5a893b)]('\x1bc');let {waitUntilExit:_0xd1ae40}=_0xe6016(_0x3b9e50(S,{'messages':_0x1729d1,'metadata':_0x17d81e,'messageCount':_0x484787['length']}),{'exitOnCtrlC':!0x0,'patchConsole':!0x0,'maxFps':0x1e});await _0xd1ae40();}catch(_0x57d9c8){if(_0x57d9c8['code']===_0x10c1fa(-0xb6,-0xa9,-_0x2d5350._0x425f84,-0xc4))console[_0x10c1fa(-_0x2d5350._0xd92c67,-0xbb,-0xc0,-0xae)]('Error:\x20History\x20file\x20not\x20found:\x20'+this['historyPath']);else{if(_0x57d9c8 instanceof SyntaxError)console[_0x266b1b(0x423,0x431,0x41f,0x42e)]('Error:\x20Invalid\x20JSON\x20in\x20history\x20file:\x20'+this[_0x10c1fa(-0xa6,-_0x2d5350._0x249e2d,-_0x2d5350._0x55b248,-_0x2d5350._0x368702)]);else{let _0x386937=_0x57d9c8 instanceof Error?_0x57d9c8['message']:String(_0x57d9c8);console[_0x10c1fa(-_0x2d5350._0xd92c67,-_0x2d5350._0x336e62,-0xaf,-0xab)](_0x10c1fa(-_0x2d5350._0x45ef29,-0xb6,-0x9d,-_0x2d5350._0x55e19f)+_0x386937);}}process[_0x266b1b(0x426,_0x2d5350._0x2a3865,0x435,0x41c)](0x1);}}};export{M as DemoMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46e3fa,_0x10f9b7){var _0x123cfb={_0x20f856:0x101,_0xc42034:0x108,_0x5e0ded:0xfe,_0x3f80f1:0x3d3,_0x41a871:0x3d9,_0x227d59:0x3db,_0x390506:0x3ce,_0x5e572e:0x3d8,_0x2aaa12:0x3d1,_0x14a159:0x3d2,_0x1e9ffa:0x3d5,_0x4dbd41:0x3d4,_0x2ff24a:0x3cf,_0x13f859:0x3d5,_0x3cf415:0x3d6,_0x5807e1:0x3d4,_0x4ae6ff:0x101};function _0x13f430(_0x2a7ca2,_0x2a1072,_0x3f4c63,_0x57d3a6){return _0x3acb(_0x3f4c63-0x37,_0x57d3a6);}function _0x40132d(_0x411144,_0x28901a,_0x53c25e,_0x44d07d){return _0x3acb(_0x411144-0x303,_0x53c25e);}var _0x1093d0=_0x46e3fa();while(!![]){try{var _0x5b9f73=parseInt(_0x13f430(_0x123cfb._0x20f856,_0x123cfb._0xc42034,0x103,_0x123cfb._0x5e0ded))/0x1*(-parseInt(_0x40132d(0x3d2,_0x123cfb._0x3f80f1,0x3ce,0x3d3))/0x2)+parseInt(_0x13f430(0x10b,0x10d,0x10a,0x108))/0x3+parseInt(_0x40132d(_0x123cfb._0x41a871,0x3da,_0x123cfb._0x227d59,0x3df))/0x4+-parseInt(_0x40132d(0x3d3,0x3d3,_0x123cfb._0x390506,_0x123cfb._0x5e572e))/0x5+parseInt(_0x40132d(_0x123cfb._0x2aaa12,0x3ce,_0x123cfb._0x14a159,_0x123cfb._0x1e9ffa))/0x6*(-parseInt(_0x40132d(_0x123cfb._0x4dbd41,_0x123cfb._0x2ff24a,_0x123cfb._0x3f80f1,0x3d9))/0x7)+parseInt(_0x40132d(0x3d5,0x3d0,0x3da,_0x123cfb._0x13f859))/0x8*(-parseInt(_0x40132d(0x3d7,0x3db,_0x123cfb._0x3cf415,_0x123cfb._0x5807e1))/0x9)+-parseInt(_0x40132d(0x3d8,0x3d9,0x3da,0x3da))/0xa*(-parseInt(_0x13f430(0x108,0x10a,0x104,_0x123cfb._0x4ae6ff))/0xb);if(_0x5b9f73===_0x10f9b7)break;else _0x1093d0['push'](_0x1093d0['shift']());}catch(_0xf40f51){_0x1093d0['push'](_0x1093d0['shift']());}}}(_0x42e8,0xba7a5));function _0x3acb(_0x395530,_0x206f8c){var _0x42e8d3=_0x42e8();return _0x3acb=function(_0x3acb55,_0xab0925){_0x3acb55=_0x3acb55-0xcc;var _0x208eba=_0x42e8d3[_0x3acb55];if(_0x3acb['UedCls']===undefined){var _0x1e3c01=function(_0x4657b9){var _0xbbaaa6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3d912d='',_0x50f122='';for(var _0x24244a=0x0,_0xdfe6e5,_0x208fb7,_0x3bce95=0x0;_0x208fb7=_0x4657b9['charAt'](_0x3bce95++);~_0x208fb7&&(_0xdfe6e5=_0x24244a%0x4?_0xdfe6e5*0x40+_0x208fb7:_0x208fb7,_0x24244a++%0x4)?_0x3d912d+=String['fromCharCode'](0xff&_0xdfe6e5>>(-0x2*_0x24244a&0x6)):0x0){_0x208fb7=_0xbbaaa6['indexOf'](_0x208fb7);}for(var _0x30b167=0x0,_0x8c42fd=_0x3d912d['length'];_0x30b167<_0x8c42fd;_0x30b167++){_0x50f122+='%'+('00'+_0x3d912d['charCodeAt'](_0x30b167)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50f122);};_0x3acb['rUHHPc']=_0x1e3c01,_0x395530=arguments,_0x3acb['UedCls']=!![];}var _0x2aef2b=_0x42e8d3[0x0],_0x6fc341=_0x3acb55+_0x2aef2b,_0x2287cc=_0x395530[_0x6fc341];return!_0x2287cc?(_0x208eba=_0x3acb['rUHHPc'](_0x208eba),_0x395530[_0x6fc341]=_0x208eba):_0x208eba=_0x2287cc,_0x208eba;},_0x3acb(_0x395530,_0x206f8c);}function _0x42e8(){var _0x591c80=['ndi2mtC0nePdrvjgDW','mu92r2Xbwq','mtfIAu1XAgi','mti5ntq4nevZEMDsBG','mJmWndi2mMzYrurqyq','mtG0otC3nuz0t2LhAq','mZvMA2vnD0G','mJi4mdGWtujmqKPy','mtmZndaWn25gDgLNvq','mtuZrfzgqu1W','mJm0mdaZndbZEgDcELC'];_0x42e8=function(){return _0x591c80;};return _0x42e8();}import{a,b,c,d}from'./chunk-PTCSZTUW.js';export{a as flattenError,b as flattenObject,d as processMessageToUILines,c as renderToolCall};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvin/nuvin-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Interactive AI coding assistant CLI powered by Nuvin core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"supports-hyperlinks": "^3.1.0",
|
|
56
56
|
"type-fest": "^4.41.0",
|
|
57
57
|
"yaml": "^2.8.1",
|
|
58
|
-
"@nuvin/nuvin-core": "^1.1.
|
|
58
|
+
"@nuvin/nuvin-core": "^1.1.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@biomejs/biome": "^2.2.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _0x32b1(_0x67c897,_0x14318b){const _0x118642=_0x1186();return _0x32b1=function(_0x32b1b0,_0x578be1){_0x32b1b0=_0x32b1b0-0x1c8;let _0x188d57=_0x118642[_0x32b1b0];if(_0x32b1['wVXNzb']===undefined){var _0x248021=function(_0x29a85b){const _0x4d52e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x518d86='',_0x3f9b41='';for(let _0x4a968f=0x0,_0x1185f8,_0x53a41c,_0x36da03=0x0;_0x53a41c=_0x29a85b['charAt'](_0x36da03++);~_0x53a41c&&(_0x1185f8=_0x4a968f%0x4?_0x1185f8*0x40+_0x53a41c:_0x53a41c,_0x4a968f++%0x4)?_0x518d86+=String['fromCharCode'](0xff&_0x1185f8>>(-0x2*_0x4a968f&0x6)):0x0){_0x53a41c=_0x4d52e2['indexOf'](_0x53a41c);}for(let _0xc320e2=0x0,_0x149297=_0x518d86['length'];_0xc320e2<_0x149297;_0xc320e2++){_0x3f9b41+='%'+('00'+_0x518d86['charCodeAt'](_0xc320e2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f9b41);};_0x32b1['APHYKs']=_0x248021,_0x67c897=arguments,_0x32b1['wVXNzb']=!![];}const _0xef8dc7=_0x118642[0x0],_0x5579f7=_0x32b1b0+_0xef8dc7,_0x5e5527=_0x67c897[_0x5579f7];return!_0x5e5527?(_0x188d57=_0x32b1['APHYKs'](_0x188d57),_0x67c897[_0x5579f7]=_0x188d57):_0x188d57=_0x5e5527,_0x188d57;},_0x32b1(_0x67c897,_0x14318b);}(function(_0x2f0647,_0xb09ddc){const _0x5839c0={_0x38baa5:0x17e,_0x402ad7:0x182,_0x3f6fb0:0x174,_0x44711b:0x164,_0x58adde:0x175,_0x397299:0x162,_0x23af6d:0x17b,_0x296ad2:0x164,_0x15eff6:0x168,_0x8eb760:0x165,_0x52fce8:0x178,_0x75f9ed:0x173,_0x25784e:0x15e,_0xcf29fd:0x176,_0x296ed0:0x169,_0x370361:0x16d,_0x189ebe:0x154},_0x42d9a5={_0x1f03ef:0x7d};function _0x383acf(_0x40dc50,_0x117d1c,_0x39882f,_0x102759){return _0x32b1(_0x40dc50- -_0x42d9a5._0x1f03ef,_0x102759);}const _0x5d8e09=_0x2f0647();function _0x10e70b(_0x4fda17,_0x1a37d0,_0x41cd1a,_0xbef72e){return _0x32b1(_0x41cd1a- -0x67,_0xbef72e);}while(!![]){try{const _0xe1bce5=parseInt(_0x10e70b(_0x5839c0._0x38baa5,_0x5839c0._0x402ad7,_0x5839c0._0x3f6fb0,_0x5839c0._0x44711b))/0x1+-parseInt(_0x10e70b(_0x5839c0._0x58adde,0x15f,0x16b,0x173))/0x2*(-parseInt(_0x383acf(0x15a,_0x5839c0._0x397299,0x154,0x166))/0x3)+-parseInt(_0x10e70b(0x16f,_0x5839c0._0x23af6d,0x16e,0x168))/0x4+-parseInt(_0x10e70b(_0x5839c0._0x296ad2,0x15c,_0x5839c0._0x15eff6,0x15c))/0x5*(parseInt(_0x10e70b(_0x5839c0._0x8eb760,0x179,0x173,_0x5839c0._0x52fce8))/0x6)+-parseInt(_0x383acf(0x168,0x158,0x162,_0x5839c0._0x75f9ed))/0x7+-parseInt(_0x10e70b(_0x5839c0._0x25784e,_0x5839c0._0xcf29fd,_0x5839c0._0x296ed0,_0x5839c0._0x370361))/0x8+parseInt(_0x383acf(0x14c,_0x5839c0._0x189ebe,0x145,0x13f))/0x9;if(_0xe1bce5===_0xb09ddc)break;else _0x5d8e09['push'](_0x5d8e09['shift']());}catch(_0x106272){_0x5d8e09['push'](_0x5d8e09['shift']());}}}(_0x1186,0x56334));import{a as _0x29a85b}from'./chunk-AJHDLTY3.js';function _0x44005f(_0x1cb42f,_0x3705df,_0xc56f8e,_0x7aec8e){const _0x46f3f8={_0x4c0477:0x325};return _0x32b1(_0x3705df-_0x46f3f8._0x4c0477,_0x7aec8e);}import _0x4d52e2 from'https';function _0x22bc33(_0x1e0660,_0x378f46,_0x24d4c1,_0xa7e621){return _0x32b1(_0x24d4c1- -0x335,_0xa7e621);}var m=class i{static{this[_0x22bc33(-0x156,-0x16c,-0x162,-0x173)]=_0x44005f(0x4fc,0x508,0x50b,0x50e);}static{this['PACKAGE_NAME']=_0x44005f(0x511,0x503,0x507,0x4f9);}static{this[_0x22bc33(-0x149,-0x150,-0x14d,-0x144)]=0x1388;}static async[_0x44005f(0x511,0x509,0x518,0x50e)](){const _0x475ddf={_0x524c73:0x1eb,_0x2c7f9d:0x1ed},_0x4353b4={_0x425e47:0x115,_0x582295:0x1c5};function _0x551eab(_0x40e95a,_0x181335,_0x5d84f3,_0x327681){return _0x44005f(_0x40e95a-_0x4353b4._0x425e47,_0x327681- -0x2f4,_0x5d84f3-_0x4353b4._0x582295,_0x40e95a);}let _0x518d86=_0x29a85b();try{let _0x3f9b41=await i[_0x551eab(_0x475ddf._0x524c73,0x208,_0x475ddf._0x2c7f9d,0x1f9)](),_0x4a968f=i['compareVersions'](_0x518d86,_0x3f9b41)<0x0;return{'current':_0x518d86,'latest':_0x3f9b41,'hasUpdate':_0x4a968f};}catch{return{'current':_0x518d86,'latest':_0x518d86,'hasUpdate':!0x1};}}static[_0x22bc33(-0x17c,-0x168,-0x16d,-0x164)](){const _0x37afee={_0x3d34b2:0x3bf,_0x5b5391:0x3b4,_0x1bd419:0x3c1,_0x33c9d4:0xe8,_0x1eff84:0xce,_0x414c27:0x3dc,_0x20b08a:0x3d4,_0x5eb114:0xea,_0x45ad67:0xe5,_0x291225:0xf3,_0x29d61e:0x3c3,_0x416ec7:0x3ba,_0x496fc4:0x3bb,_0x444ce9:0xc3,_0x3aa704:0xd3,_0x3c6116:0xcd,_0x45b98e:0xd8,_0x4be419:0xc1,_0x3e8673:0x3c4,_0x327365:0x3ca,_0xdda21c:0xd2,_0x2ad966:0x3c1,_0x535047:0x3d1,_0x34047c:0x3d0},_0x195274={_0x216447:0x13c,_0x191b64:0x12c,_0xb2bf1d:0x130},_0x40e79a={_0x101963:0x12b,_0x757145:0x13a,_0x3e766e:0x135,_0x27639d:0x13e};return new Promise((_0x1185f8,_0x53a41c)=>{const _0x30a7f2={_0x46490d:0x11a,_0x5428a7:0x29c},_0x3abca3={_0x439d17:0x65d,_0x2b5ab5:0x1dc,_0x5383b1:0x1d8},_0x23dc7b={_0x2b3860:0x2b6},_0x4cd64c={_0x249f93:0x1ee},_0x28b34b={_0x5d1f1f:0x171,_0x416353:0x175,_0x5d8fbc:0x166,_0x4fa815:0x176,_0x24a035:0x163,_0x1b99fd:0x155,_0x310227:0x159,_0x12e92c:0x172,_0x1c1a45:0x380};let _0x36da03={'hostname':i[_0x4695bf(_0x37afee._0x3d34b2,_0x37afee._0x5b5391,0x3b2,_0x37afee._0x1bd419)],'path':'/'+encodeURIComponent(i[_0x4b7d34(-0xd6,-0xc8,-_0x37afee._0x33c9d4,-_0x37afee._0x1eff84)])+_0x4695bf(0x3cc,_0x37afee._0x414c27,0x3cb,_0x37afee._0x20b08a),'method':_0x4b7d34(-_0x37afee._0x5eb114,-_0x37afee._0x45ad67,-_0x37afee._0x291225,-0xfa),'headers':{'Accept':_0x4695bf(_0x37afee._0x29d61e,_0x37afee._0x416ec7,_0x37afee._0x496fc4,0x3c2)},'timeout':i[_0x4b7d34(-0xce,-_0x37afee._0x444ce9,-_0x37afee._0x3aa704,-0xd6)]},_0xc320e2=_0x4d52e2[_0x4b7d34(-_0x37afee._0x3c6116,-_0x37afee._0x45b98e,-0xda,-_0x37afee._0x4be419)](_0x36da03,_0x149297=>{const _0x39977f={_0xe05b73:0x61,_0x5468ec:0x1b2,_0x58e6c8:0x1f3};function _0x231201(_0x3a6cde,_0x215c3f,_0x17f4da,_0x51536c){return _0x4b7d34(_0x17f4da- -_0x39977f._0xe05b73,_0x215c3f-_0x39977f._0x5468ec,_0x17f4da-_0x39977f._0x58e6c8,_0x51536c);}let _0xc24a65='';_0x149297['on']('data',_0x5c418d=>{_0xc24a65+=_0x5c418d;}),_0x149297['on'](_0x231201(-_0x40e79a._0x101963,-_0x40e79a._0x757145,-_0x40e79a._0x3e766e,-_0x40e79a._0x27639d),()=>{const _0x53b0bc={_0x392312:0x25};function _0x2ca8bf(_0xe8b180,_0x15a385,_0x38cd81,_0x239f23){return _0x231201(_0xe8b180-0x1a5,_0x15a385-0xdf,_0x15a385-0x4cc,_0xe8b180);}function _0x65cc1(_0x3bc828,_0x456480,_0x18dd2b,_0x56bc80){return _0x231201(_0x3bc828-0x1d8,_0x456480-0xdb,_0x3bc828- -_0x53b0bc._0x392312,_0x18dd2b);}try{if(_0x149297[_0x65cc1(-_0x28b34b._0x5d1f1f,-_0x28b34b._0x416353,-0x16e,-0x172)]===0xc8){let _0x9698c6=JSON[_0x65cc1(-_0x28b34b._0x5d8fbc,-_0x28b34b._0x4fa815,-_0x28b34b._0x24a035,-0x15e)](_0xc24a65);_0x1185f8(_0x9698c6[_0x65cc1(-_0x28b34b._0x1b99fd,-0x161,-0x147,-_0x28b34b._0x310227)]);}else _0x53a41c(new Error(_0x65cc1(-_0x28b34b._0x12e92c,-0x17a,-0x175,-0x160)+_0x149297[_0x2ca8bf(_0x28b34b._0x1c1a45,0x380,0x374,0x38f)]));}catch(_0x1ae9b7){_0x53a41c(_0x1ae9b7);}});});function _0x4695bf(_0x253540,_0x286e2f,_0x8b81b5,_0x46fa62){return _0x32b1(_0x46fa62-_0x4cd64c._0x249f93,_0x286e2f);}function _0x4b7d34(_0x31e58a,_0x190ae4,_0x51979b,_0x2e091e){return _0x32b1(_0x31e58a- -_0x23dc7b._0x2b3860,_0x2e091e);}_0xc320e2['on'](_0x4695bf(0x3b8,0x3d4,_0x37afee._0x3e8673,_0x37afee._0x327365),_0x53a41c),_0xc320e2['on'](_0x4b7d34(-0xde,-_0x37afee._0xdda21c,-0xe8,-0xd9),()=>{function _0x75590e(_0x55835d,_0x2a0fbd,_0x23abaf,_0x1d8f24){return _0x4b7d34(_0x1d8f24-_0x3abca3._0x439d17,_0x2a0fbd-_0x3abca3._0x2b5ab5,_0x23abaf-_0x3abca3._0x5383b1,_0x55835d);}function _0x12f4ca(_0x3bd2cd,_0x63d75a,_0x351a05,_0x378d65){return _0x4695bf(_0x3bd2cd-0x2d,_0x351a05,_0x351a05-_0x30a7f2._0x46490d,_0x63d75a- -_0x30a7f2._0x5428a7);}_0xc320e2[_0x12f4ca(0x11d,0x12f,_0x195274._0x216447,0x124)](),_0x53a41c(new Error(_0x12f4ca(0x129,0x123,_0x195274._0x191b64,_0x195274._0xb2bf1d)));}),_0xc320e2[_0x4695bf(_0x37afee._0x2ad966,0x3d4,_0x37afee._0x535047,_0x37afee._0x34047c)]();});}static[_0x44005f(0x4e8,0x4f3,0x4e7,0x502)](_0x46f0f0,_0x38b6ff){const _0x3bb4c2={_0x363741:0x190,_0x11f72b:0x198,_0xdd39ae:0x1b0,_0x5e25c4:0x14d,_0x2ec267:0x13f,_0x5f0351:0x153,_0x39d9aa:0x184,_0x56b49f:0x14f,_0x4e8402:0x14b,_0x3dd741:0x150},_0x5f5c65={_0x313939:0x57};function _0x6ebdd4(_0x5f5ac1,_0x4babac,_0x4d5a85,_0x28a55c){return _0x22bc33(_0x5f5ac1-0x19d,_0x4babac-_0x5f5c65._0x313939,_0x5f5ac1-0x7,_0x28a55c);}let _0xaf847=_0x5d49d7=>_0x5d49d7[_0x6ebdd4(-0x155,-0x160,-0x14e,-0x164)](/^v/,'')[_0xb1232f(-0x18b,-0x17e,-0x199,-0x18d)]('-')[0x0],_0x1382f9=_0xaf847(_0x46f0f0)[_0xb1232f(-0x18d,-_0x3bb4c2._0x363741,-0x198,-0x18d)]('.')[_0xb1232f(-_0x3bb4c2._0x11f72b,-_0x3bb4c2._0xdd39ae,-0x194,-0x1a1)](Number),_0x506938=_0xaf847(_0x38b6ff)[_0x6ebdd4(-_0x3bb4c2._0x5e25c4,-0x15c,-_0x3bb4c2._0x2ec267,-0x158)]('.')[_0x6ebdd4(-0x161,-0x16e,-_0x3bb4c2._0x5f0351,-0x158)](Number);for(let _0x5c7fc0=0x0;_0x5c7fc0<Math[_0xb1232f(-0x196,-0x190,-0x176,-_0x3bb4c2._0x39d9aa)](_0x1382f9['length'],_0x506938[_0x6ebdd4(-_0x3bb4c2._0x56b49f,-_0x3bb4c2._0x4e8402,-0x150,-_0x3bb4c2._0x3dd741)]);_0x5c7fc0++){let _0x669e6a=_0x1382f9[_0x5c7fc0]||0x0,_0x1c3e8a=_0x506938[_0x5c7fc0]||0x0;if(_0x669e6a>_0x1c3e8a)return 0x1;if(_0x669e6a<_0x1c3e8a)return-0x1;}function _0xb1232f(_0x304463,_0x459c5b,_0x31dc63,_0xa44b6d){return _0x44005f(_0x304463-0xe8,_0xa44b6d- -0x693,_0x31dc63-0x15e,_0x459c5b);}return 0x0;}};export{m as UpdateChecker};function _0x1186(){const _0x1dc1b7=['CMvNAxn0CNKUBNbTANmUB3jN','y2HLy2TgB3jvCgrHDgu','mJGWnZy5m0jwuhHUsG','l2XHDgvZDa','DMvYC2LVBG','veLnru9vvf9nuW','CMvXDwvZDa','Bwf4','zMv0y2HmyxrLC3rwzxjZAw9U','otG0ntK4mKLWruTxrG','sfruuca','C3rHDhvZq29Kzq','r0vu','BwfW','y29TCgfYzvzLCNnPB25Z','nvLRB2fQsG','ntm1ntiWofnrzMTosq','uMvXDwvZDcb0Aw1LB3v0','mLjey0n4AW','tLbnx1jfr0Ltvfjz','yxbWBgLJyxrPB24VANnVBG','mZm1odG0tKX6v3zf','CgfYC2u','mtCYntC3muPxCKrmzG','DgLTzw91Da','CMvWBgfJzq','mZeZnti5ng1kCxP3rq','mZyWodqXCLjWA29U','zxjYB3i','zgvZDhjVEq','qg51DMLUl251DMLUlwnSAq','BgvUz3rO','uefds0fhrv9oqu1f','C3bSAxq','zw5K'];_0x1186=function(){return _0x1dc1b7;};return _0x1186();}
|