@profoundlogic/codermake 3.1.1 → 3.1.2
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/README.md +41 -0
- package/dist/bin/index.js +1 -1
- package/dist/bin/preprocess-rpg-copy.js +1 -1
- package/dist/bin/rdf-to-dds.js +1 -1
- package/dist/lib/config.js +1 -1
- package/dist/lib/discovery.js +1 -1
- package/dist/lib/ejs-to-dds.js +1 -1
- package/dist/lib/ent.js +1 -0
- package/dist/lib/executor.js +1 -1
- package/dist/lib/flv.js +1 -0
- package/dist/lib/generate-rdf-dds.js +1 -1
- package/dist/lib/license.js +1 -1
- package/dist/lib/makefile-generator.js +1 -1
- package/dist/lib/platform.js +1 -1
- package/dist/lib/preprocessor.js +1 -1
- package/dist/lib/rdf-to-post-data.js +1 -1
- package/dist/lib/rpg-copy-preprocessor.js +1 -1
- package/dist/lib/ssh.js +1 -1
- package/dist/lib/target-listing.js +1 -1
- package/dist/lib/writer.js +1 -1
- package/package.json +3 -2
- package/skills/codermake/SKILL.md +31 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1a954f,_0x40e431){const _0x153698=_0x36d3,_0x3d61da=_0x1a954f();while(!![]){try{const _0x3c659f=parseInt(_0x153698(0xed))/0x1*(-parseInt(_0x153698(0xe7))/0x2)+-parseInt(_0x153698(0x107))/0x3*(-parseInt(_0x153698(0x10b))/0x4)+-parseInt(_0x153698(0x100))/0x5*(-parseInt(_0x153698(0x11b))/0x6)+parseInt(_0x153698(0xec))/0x7+-parseInt(_0x153698(0x12f))/0x8*(-parseInt(_0x153698(0xf2))/0x9)+parseInt(_0x153698(0x120))/0xa+parseInt(_0x153698(0x10c))/0xb*(-parseInt(_0x153698(0x11f))/0xc);if(_0x3c659f===_0x40e431)break;else _0x3d61da['push'](_0x3d61da['shift']());}catch(_0x552b96){_0x3d61da['push'](_0x3d61da['shift']());}}}(_0x104a,0xf1b67));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x59fb97){const _0x4310de=_0x36d3,_0x246fa3={};_0x246fa3['cOkzo']=_0x4310de(0x106);const _0x22b438=_0x246fa3;if(/^\*\*free$/i[_0x4310de(0xf6)](_0x59fb97[_0x4310de(0xf3)]()))return _0x4310de(0x111);return _0x22b438[_0x4310de(0x11d)];}function _0x104a(){const _0x196bce=['u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','jYbMB3vUzcbPBIbTDwX0AxbSzsbSAwjYyxjPzxm6ia','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','A1nHuhi','igLUia','mZjey0XLtfC','BMvAvKC','BwvTyMvY','y2XkyuW','yu1tt3a','yw5wteu','zxjYB3i','C1vzs2q','BwvTyMvYtMfTzq','wxjjAue','B3bLCMfUza','EwrQvKW','BwvZC2fNzq','v25qAwq','jdfgAwXLoIa','mLvgshDWwq','zMLUza','BgLICMfYEq','DhLWzq','CMvZDwX0','mteYodG2oujvqvfquG','mtyWodu1n09lvM96yG','Aw5JBhvKzxm','lNnXBhjWz2XL','zMLSzu5HBwu','CxjWz2XLC3jJ','mZe3odG5v0DiAwDk','DhjPBuvUza','ChvZAa','A2v5D29Yza','DgvZDa','vNHvz3i','DhjPBq','DhjPBvn0yxj0','AwzZ','icbeAxjLy3rPDMu6ia','D3zouw8','Aw5KzxG','C291CMnLuM9VDa','C3rHCNrZv2L0Aa','mJq1me5orufuyW','Aw5KzxHpzG','uM9zr2S','CMvJDxjZAxzL','Bwf0y2G','sMzkuhu','zML4zwq','m0TSEgLmta','Cer0zxm','wKzmu1C','BwfW','mJq3nJa3nK9uyvjyBq','mJq3nJq2m3HUuwzssW','icbgAwXLoIbSAw5Lia','C3bSAxq','icHSB29RAw5NigzVCIaN','AM9PBG','zNjLzq','s2jfrfG','yM9Ws2i','C2rcvMO','l3fYCgDSzxnYyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','C3vIC3rYAw5N','lIbvC2LUzYa','q1bOtwS','EgrOsu8','mtK0mJHWwg92swe','Dg9mB3DLCKnHC2u','y09REM8','lIbtzxqGq09ervjnquTfx0Loq0XvrevFuefuscb0BYbJB250CM9SihnLyxjJAcbVCMrLCI4','mtjRrhbYswe','mZe1ntu1mefMs2D4tW','D1LMueS','vvrYzg4','y29UDgvUDa','EuXtqMe','v2fYBMLUzZOGtwvTyMvYicC','BgLIrgLY','BgvUz3rO','CxPtDvm','Bw9KAwzPzwq'];_0x104a=function(){return _0x196bce;};return _0x104a();}export function extractDirective(_0x4d917b,_0x1df104){const _0x584610=_0x36d3,_0x558d7a={};_0x558d7a[_0x584610(0xe3)]=function(_0x4f3623,_0x29ecde){return _0x4f3623===_0x29ecde;},_0x558d7a[_0x584610(0x109)]='free',_0x558d7a[_0x584610(0x119)]=function(_0x46f4bc,_0xca03c9){return _0x46f4bc-_0xca03c9;},_0x558d7a[_0x584610(0x121)]=function(_0xac189b,_0x344a40){return _0xac189b+_0x344a40;},_0x558d7a[_0x584610(0x113)]=function(_0x356439,_0x3bbf89){return _0x356439<_0x3bbf89;},_0x558d7a['qHweP']=function(_0x4793b3,_0x4587bd){return _0x4793b3+_0x4587bd;};const _0x584390=_0x558d7a;let _0x116602,_0x4afb8d;if(_0x584390[_0x584610(0xe3)](_0x1df104,_0x584390[_0x584610(0x109)])){const _0x2705b8=_0x4d917b['match'](/^\s*\/(copy|include) (\S)/i);if(!_0x2705b8)return null;const _0x84451a=_0x4d917b[_0x584610(0xf9)]();if(_0x84451a[_0x584610(0xff)]('//'))return null;_0x116602=_0x2705b8[0x1][_0x584610(0x11c)](),_0x4afb8d=_0x4d917b[_0x584610(0x117)](_0x584390[_0x584610(0x119)](_0x584390[_0x584610(0x121)](_0x2705b8[_0x584610(0xfd)],_0x2705b8[0x0][_0x584610(0x127)]),0x1));}else{if(_0x584390['bopKb'](_0x4d917b[_0x584610(0x127)],0x7))return null;if(_0x4d917b[0x6]!=='/')return null;const _0x1ebf71=_0x4d917b['substring'](0x7),_0xb9daea=_0x1ebf71[_0x584610(0x104)](/^(copy|include) (\S)/i);if(!_0xb9daea)return null;_0x116602=_0xb9daea[0x1]['toLowerCase'](),_0x4afb8d=_0x1ebf71[_0x584610(0x117)](_0xb9daea[0x0][_0x584610(0x127)]-0x1);}let _0x3f3e8c;if(_0x4afb8d['startsWith']('\x27')){const _0x272407=_0x4afb8d[_0x584610(0x101)]('\x27',0x1);_0x3f3e8c=_0x272407===-0x1?_0x4afb8d[_0x584610(0xf8)]():_0x4afb8d[_0x584610(0x117)](0x0,_0x272407+0x1);}else{if(_0x4afb8d['startsWith']('\x22')){const _0x13432c=_0x4afb8d[_0x584610(0x101)]('\x22',0x1);_0x3f3e8c=_0x584390[_0x584610(0xe3)](_0x13432c,-0x1)?_0x4afb8d[_0x584610(0xf8)]():_0x4afb8d[_0x584610(0x117)](0x0,_0x584390['qHweP'](_0x13432c,0x1));}else _0x3f3e8c=_0x4afb8d[_0x584610(0x10e)](/\s/)[0x0];}const _0x767310={};return _0x767310[_0x584610(0xf5)]=_0x116602,_0x767310[_0x584610(0xe2)]=_0x3f3e8c,_0x767310;}export function classifyDirectiveOperand(_0x567399){const _0x2fc102=_0x36d3,_0x1682f2={};_0x1682f2[_0x2fc102(0x112)]=function(_0x24f556,_0x2f0587){return _0x24f556!==_0x2f0587;},_0x1682f2[_0x2fc102(0x114)]=function(_0x3f99ed,_0x584990){return _0x3f99ed+_0x584990;};const _0x3de986=_0x1682f2;if(_0x567399[_0x2fc102(0xff)]('\x27')||_0x567399[_0x2fc102(0xff)]('\x22')){const _0x4067a3={};return _0x4067a3[_0x2fc102(0xea)]=_0x2fc102(0xfa),_0x4067a3;}if(_0x567399[_0x2fc102(0xee)](',')){const _0x3dedbe=_0x567399['indexOf'](','),_0x6ec30a=_0x567399[_0x2fc102(0x117)](0x0,_0x3dedbe),_0x5580e3=_0x567399[_0x2fc102(0x117)](_0x3dedbe+0x1),_0x5482c2=_0x6ec30a['indexOf']('/');if(_0x3de986[_0x2fc102(0x112)](_0x5482c2,-0x1)){const _0x2a5493=_0x6ec30a[_0x2fc102(0x117)](0x0,_0x5482c2),_0x4be942=/^\*libl$/i[_0x2fc102(0xf6)](_0x2a5493)?null:_0x2a5493;return{'type':_0x2fc102(0x131),'library':_0x4be942,'fileName':_0x6ec30a[_0x2fc102(0x117)](_0x3de986[_0x2fc102(0x114)](_0x5482c2,0x1)),'memberName':_0x5580e3};}const _0x1b3409={};return _0x1b3409[_0x2fc102(0xea)]=_0x2fc102(0x131),_0x1b3409[_0x2fc102(0xe9)]=null,_0x1b3409[_0x2fc102(0xf0)]=_0x6ec30a,_0x1b3409[_0x2fc102(0xe0)]=_0x5580e3,_0x1b3409;}if(_0x567399[_0x2fc102(0xee)]('/')){const _0x27a042={};return _0x27a042[_0x2fc102(0xea)]=_0x2fc102(0xfa),_0x27a042;}if(/\.rpgle$/i[_0x2fc102(0xf6)](_0x567399)||/\.sqlrpgle$/i[_0x2fc102(0xf6)](_0x567399)){const _0x2815c1={};return _0x2815c1['type']='ifs',_0x2815c1;}const _0x597aec={};return _0x597aec[_0x2fc102(0xea)]=_0x2fc102(0x131),_0x597aec[_0x2fc102(0xe9)]=null,_0x597aec['fileName']=null,_0x597aec[_0x2fc102(0xe0)]=_0x567399,_0x597aec;}function findFileInsensitive(_0x54bb2e,_0x2c8f83){const _0x492d70=_0x36d3;let _0x838608;try{_0x838608=readdirSync(_0x54bb2e);}catch{return null;}if(_0x838608[_0x492d70(0xee)](_0x2c8f83))return _0x2c8f83;const _0x2ec479=_0x2c8f83['toLowerCase']();return _0x838608[_0x492d70(0xe8)](_0x22866d=>_0x22866d['toLowerCase']()===_0x2ec479)||null;}function findDirInsensitive(_0x46b1ec,_0x27fbc5){const _0x147a9b=_0x36d3,_0x2e9f9e={'qzSuS':function(_0x516581,_0x281c8c){return _0x516581(_0x281c8c);}};let _0x3c42a5;try{_0x3c42a5=_0x2e9f9e[_0x147a9b(0x128)](readdirSync,_0x46b1ec);}catch{return null;}if(_0x3c42a5['includes'](_0x27fbc5))return _0x27fbc5;const _0x2824bb=_0x27fbc5[_0x147a9b(0x11c)]();return _0x3c42a5[_0x147a9b(0xe8)](_0x2c32a3=>_0x2c32a3[_0x147a9b(0x11c)]()===_0x2824bb)||null;}function _0x36d3(_0x4b46c6,_0x224d63){_0x4b46c6=_0x4b46c6-0xdf;const _0x104a6a=_0x104a();let _0x36d382=_0x104a6a[_0x4b46c6];if(_0x36d3['TSfmsG']===undefined){var _0x38199b=function(_0x1a9f9d){const _0x37d77a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37f33f='',_0x215192='';for(let _0x5bac18=0x0,_0x901766,_0x1ed8a7,_0x402738=0x0;_0x1ed8a7=_0x1a9f9d['charAt'](_0x402738++);~_0x1ed8a7&&(_0x901766=_0x5bac18%0x4?_0x901766*0x40+_0x1ed8a7:_0x1ed8a7,_0x5bac18++%0x4)?_0x37f33f+=String['fromCharCode'](0xff&_0x901766>>(-0x2*_0x5bac18&0x6)):0x0){_0x1ed8a7=_0x37d77a['indexOf'](_0x1ed8a7);}for(let _0x3ffa3f=0x0,_0x35c288=_0x37f33f['length'];_0x3ffa3f<_0x35c288;_0x3ffa3f++){_0x215192+='%'+('00'+_0x37f33f['charCodeAt'](_0x3ffa3f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x215192);};_0x36d3['jXCTBn']=_0x38199b,_0x36d3['mxahhs']={},_0x36d3['TSfmsG']=!![];}const _0x2a7a31=_0x104a6a[0x0],_0x2057b1=_0x4b46c6+_0x2a7a31,_0x1423fa=_0x36d3['mxahhs'][_0x2057b1];return!_0x1423fa?(_0x36d382=_0x36d3['jXCTBn'](_0x36d382),_0x36d3['mxahhs'][_0x2057b1]=_0x36d382):_0x36d382=_0x1423fa,_0x36d382;}function tryResolveInDir(_0x5f26fc,_0x35ff18,_0xe395ac){const _0x304bcf=_0x36d3,_0x552c8d={'WnPid':function(_0x12fd04,_0x38fcd5,_0x2e4669){return _0x12fd04(_0x38fcd5,_0x2e4669);},'wvNQo':function(_0x29649d,_0x37b21f,_0xd5ac62){return _0x29649d(_0x37b21f,_0xd5ac62);},'RoYGk':'.rpgle','clJaL':_0x304bcf(0xef),'VxUgr':function(_0x3fe206,_0x43fad6){return _0x3fe206+_0x43fad6;}},_0x5433c2=_0x5f26fc['split']('/');let _0x44e67e=_0xe395ac;const _0x55f5d9=[];for(const _0x59a458 of _0x5433c2){const _0x16c502=_0x552c8d[_0x304bcf(0xe5)](findDirInsensitive,_0x44e67e,_0x59a458);if(!_0x16c502)return null;_0x55f5d9['push'](_0x16c502),_0x44e67e=_0x552c8d[_0x304bcf(0xfc)](join,_0x44e67e,_0x16c502);}const _0x30acbe=_0x55f5d9[_0x304bcf(0x110)]('/'),_0x327d74=[_0x552c8d[_0x304bcf(0x102)],_0x552c8d[_0x304bcf(0x132)]];for(const _0x154a35 of _0x327d74){const _0x3d9045=_0x552c8d[_0x304bcf(0xf7)](_0x35ff18,_0x154a35),_0x650441=findFileInsensitive(join(_0xe395ac,_0x30acbe),_0x3d9045);if(_0x650441)return _0x30acbe+'/'+_0x650441;}return null;}export function resolveSourceMember(_0x34ed42,_0x470093,_0x3c2004={}){const _0xaec768=_0x36d3,_0x5d8738={'kSaPr':function(_0xb03a7a,_0x2fef8c){return _0xb03a7a===_0x2fef8c;},'xdhIO':function(_0x4a9bbd,_0x42430a,_0x24cbb2,_0x5d7178){return _0x4a9bbd(_0x42430a,_0x24cbb2,_0x5d7178);},'JfJPu':_0xaec768(0xf1),'anVLE':function(_0x462a42,_0x49d2e2,_0x25052c){return _0x462a42(_0x49d2e2,_0x25052c);}},{library:_0x8a1ada,fileName:_0x554b29,memberName:_0x1c160f}=_0x34ed42,{librarySearchPath:_0x495156,searchPathExplicit:_0x9f92df}=_0x3c2004;if(_0x8a1ada!==null){const _0x2c9d48=_0x8a1ada+'/'+_0x554b29,_0x1532f6=tryResolveInDir(_0x2c9d48,_0x1c160f,_0x470093);if(_0x1532f6)return _0x1532f6;throw new Error(_0xaec768(0x12a)+_0x1c160f+'\x20in\x20'+_0x2c9d48+_0xaec768(0x12c));}if(_0x495156&&_0x495156[_0xaec768(0x127)]>0x0){const _0x508ac0=[];for(const _0x18aa57 of _0x495156){let _0x345613;_0x5d8738[_0xaec768(0x12d)](_0x554b29,null)?_0x345613=_0x18aa57+_0xaec768(0x115):_0x345613=_0x18aa57+'/'+_0x554b29;const _0x2dac0d=_0x5d8738[_0xaec768(0x11a)](tryResolveInDir,_0x345613,_0x1c160f,_0x470093);if(_0x2dac0d){const _0x5d4cec={};_0x5d4cec[_0xaec768(0x126)]=_0x18aa57,_0x5d4cec[_0xaec768(0xeb)]=_0x2dac0d,_0x508ac0[_0xaec768(0xf4)](_0x5d4cec);}}if(_0x508ac0[_0xaec768(0x127)]===0x1)return _0x508ac0[0x0]['result'];if(_0x508ac0[_0xaec768(0x127)]>0x1){if(!_0x9f92df){const _0x4b2fa2=_0x508ac0[_0xaec768(0x10a)](_0x3655dc=>_0x3655dc[_0xaec768(0x126)])[_0xaec768(0x110)](',\x20');console[_0xaec768(0x135)](_0xaec768(0x125)+_0x1c160f+_0xaec768(0x12b)+_0x4b2fa2+_0xaec768(0x118)+_0x508ac0[0x0][_0xaec768(0x126)]+_0xaec768(0x11e));}return _0x508ac0[0x0][_0xaec768(0xeb)];}}let _0x2181c6;_0x554b29===null?_0x2181c6=_0x5d8738[_0xaec768(0x105)]:_0x2181c6=_0x554b29;const _0x3e6c37=_0x2181c6[_0xaec768(0x10e)]('/');let _0x1c631e=_0x470093;for(const _0xa1d09b of _0x3e6c37){const _0x21f0f6=_0x5d8738[_0xaec768(0x134)](findDirInsensitive,_0x1c631e,_0xa1d09b);if(!_0x21f0f6)throw new Error(_0xaec768(0x116)+_0x2181c6+_0xaec768(0x10f)+_0xa1d09b+'\x27\x20in\x20\x27'+_0x1c631e+'\x27)');_0x1c631e=join(_0x1c631e,_0x21f0f6);}const _0x254db4=tryResolveInDir(_0x2181c6,_0x1c160f,_0x470093);if(_0x254db4)return _0x254db4;throw new Error(_0xaec768(0x12a)+_0x1c160f+_0xaec768(0x12e)+_0x2181c6+_0xaec768(0x12c));}export function preprocessFileContent(_0x65fc04,_0xd89eab,_0x58da47={}){const _0x1c0af7=_0x36d3,_0xbc23f={'yLSBa':function(_0x507fc6,_0x3f8691){return _0x507fc6===_0x3f8691;},'neZVG':function(_0x474a7f,_0x1b9cee){return _0x474a7f(_0x1b9cee);},'Eqway':function(_0xc6150e,_0x4b7bb1){return _0xc6150e+_0x4b7bb1;},'aMSOp':function(_0x512ff6,_0x4df3d7){return _0x512ff6+_0x4df3d7;}},_0x2ae4f9=_0x65fc04[_0x1c0af7(0x10e)]('\x0a'),_0x2b1c97={};_0x2b1c97[_0x1c0af7(0x123)]=_0x65fc04,_0x2b1c97[_0x1c0af7(0x129)]=![];if(_0xbc23f[_0x1c0af7(0x124)](_0x2ae4f9[_0x1c0af7(0x127)],0x0))return _0x2b1c97;const _0x204b4d=detectFormat(_0x2ae4f9[0x0]);let _0x24b42e=![];const _0x40e662=[];for(let _0x5c5ae9=0x0;_0x5c5ae9<_0x2ae4f9['length'];_0x5c5ae9++){const _0x369207=_0x2ae4f9[_0x5c5ae9],_0x17827a=extractDirective(_0x369207,_0x204b4d);if(!_0x17827a){_0x40e662[_0x1c0af7(0xf4)](_0x369207);continue;}const _0x1dd4a8=_0xbc23f[_0x1c0af7(0x130)](classifyDirectiveOperand,_0x17827a[_0x1c0af7(0xe2)]);if(_0x1dd4a8[_0x1c0af7(0xea)]==='ifs'){_0x40e662[_0x1c0af7(0xf4)](_0x369207);continue;}let _0x490314;try{_0x490314=resolveSourceMember(_0x1dd4a8,_0xd89eab,_0x58da47);}catch(_0x726291){const _0x45054a=_0x5c5ae9+0x1;throw new Error(_0xbc23f['Eqway'](_0xbc23f[_0x1c0af7(0x133)](_0x726291['message']+'\x0a',_0x1c0af7(0x10d)+_0x45054a+'\x0a'),_0x1c0af7(0xfb)+_0x369207[_0x1c0af7(0xf9)]()));}let _0x5de805;if(_0x204b4d==='free'){const _0x1796f1=_0x369207[_0x1c0af7(0x104)](/^(\s*\/)(copy|include) /i),_0x57192d=_0x1796f1[0x1],_0x2322cc=_0x1796f1[0x2],_0x218590=_0x369207[_0x1c0af7(0x117)](_0x1796f1[0x0][_0x1c0af7(0x127)]+_0x17827a[_0x1c0af7(0xe2)]['length']);_0x5de805=''+_0x57192d+_0x2322cc+'\x20'+_0x490314+_0x218590;}else{const _0x376fdb=_0x369207[_0x1c0af7(0x117)](0x0,0x6),_0x5e8f46=_0x369207['substring'](0x7)[_0x1c0af7(0x104)](/^(copy|include) /i),_0x3f787e=_0x5e8f46[0x1],_0x20b742=0x7+_0x5e8f46[0x0][_0x1c0af7(0x127)],_0x922ac8=_0x369207[_0x1c0af7(0x117)](_0x20b742+_0x17827a['operand'][_0x1c0af7(0x127)]);_0x5de805=_0x376fdb+'/'+_0x3f787e+'\x20'+_0x490314+_0x922ac8;}_0x40e662[_0x1c0af7(0xf4)](_0x5de805),_0x24b42e=!![];}return{'content':_0x40e662['join']('\x0a'),'modified':_0x24b42e};}export function preprocessFile(_0x3e4187,_0x420fe4,_0x629ad9={}){const _0xa9af0f=_0x36d3,_0x29618d={'sUYKd':function(_0x5eda33,_0x410d86,_0x6e810a){return _0x5eda33(_0x410d86,_0x6e810a);}};if(!/\.(rpgle|sqlrpgle)$/i['test'](_0x3e4187)){const _0x110d39={};return _0x110d39[_0xa9af0f(0x129)]=![],_0x110d39;}const _0x583b40=_0x29618d[_0xa9af0f(0xdf)](readFileSync,_0x3e4187,'utf8');try{return preprocessFileContent(_0x583b40,_0x420fe4,_0x629ad9);}catch(_0x2800c8){const _0x7e8225=_0x2800c8[_0xa9af0f(0xe4)]['replace'](/^(.*\n {2})File: /,_0xa9af0f(0xe6)+_0x3e4187+',\x20');throw new Error(_0x7e8225);}}export function preprocessFiles(_0x6d941,_0x3f8b4e,_0x397667,_0x2f809f={}){const _0x255199=_0x36d3,_0x15bb02={'YrIiA':function(_0x197000,_0x10c15c,_0x12633c,_0x397fab){return _0x197000(_0x10c15c,_0x12633c,_0x397fab);},'pDtes':function(_0x25036b,_0x3bf728,_0x162cb9){return _0x25036b(_0x3bf728,_0x162cb9);},'UTrdn':function(_0x2da77f,_0x45f378){return _0x2da77f(_0x45f378);},'IPIXR':function(_0x511d88,_0x5ad2db,_0x2d1590){return _0x511d88(_0x5ad2db,_0x2d1590);}},_0x182541=[];let _0x4c4ab5=![];for(const _0x239648 of _0x6d941){const _0xb1d9d4=join(_0x3f8b4e,_0x239648),_0x528f91=_0x15bb02[_0x255199(0xe1)](preprocessFile,_0xb1d9d4,_0x3f8b4e,_0x2f809f),_0x4af1ad={'filePath':_0x239648,..._0x528f91};_0x182541['push'](_0x4af1ad);if(_0x528f91[_0x255199(0x129)])_0x4c4ab5=!![];}if(!_0x4c4ab5){const _0x29e3ae={};return _0x29e3ae['needed']=![],_0x29e3ae[_0x255199(0xfe)]='.',_0x29e3ae;}const _0x5ea1a0=_0x397667+'-'+randomUUID();for(let _0x1a5ef9=0x0;_0x1a5ef9<_0x6d941[_0x255199(0x127)];_0x1a5ef9++){const _0x40e1e=_0x6d941[_0x1a5ef9],_0x4f7315=_0x182541[_0x1a5ef9],_0x1e7f61=join(_0x5ea1a0,_0x40e1e),_0xdc81ab={};_0xdc81ab[_0x255199(0x103)]=!![],_0x15bb02['pDtes'](mkdirSync,_0x15bb02[_0x255199(0x122)](dirname,_0x1e7f61),_0xdc81ab),_0x4f7315[_0x255199(0x129)]?_0x15bb02[_0x255199(0x108)](writeFileSync,_0x1e7f61,_0x4f7315[_0x255199(0x123)]):_0x15bb02['IPIXR'](copyFileSync,join(_0x3f8b4e,_0x40e1e),_0x1e7f61);}const _0x4d6476={};return _0x4d6476['needed']=!![],_0x4d6476[_0x255199(0xfe)]=_0x5ea1a0,_0x4d6476;}
|
|
1
|
+
(function(_0x3a8438,_0x2d8cdb){const _0x41ddff=_0x5b4e,_0x156273=_0x3a8438();while(!![]){try{const _0x261d7c=-parseInt(_0x41ddff(0x19d))/0x1*(-parseInt(_0x41ddff(0x1a6))/0x2)+-parseInt(_0x41ddff(0x1a2))/0x3+-parseInt(_0x41ddff(0x19f))/0x4*(parseInt(_0x41ddff(0x1b7))/0x5)+parseInt(_0x41ddff(0x17b))/0x6+-parseInt(_0x41ddff(0x173))/0x7+-parseInt(_0x41ddff(0x197))/0x8+parseInt(_0x41ddff(0x18d))/0x9;if(_0x261d7c===_0x2d8cdb)break;else _0x156273['push'](_0x156273['shift']());}catch(_0x45f81d){_0x156273['push'](_0x156273['shift']());}}}(_0x5bf4,0x5e6b1));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';function _0x5b4e(_0x594996,_0xebcaf9){_0x594996=_0x594996-0x16d;const _0x5bf415=_0x5bf4();let _0x5b4e7d=_0x5bf415[_0x594996];if(_0x5b4e['KfTjMK']===undefined){var _0x4c302d=function(_0x5d7308){const _0x4b44ae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xdec6ff='',_0x52c7a6='';for(let _0x3a1de9=0x0,_0x121d9f,_0x597c88,_0x3cf170=0x0;_0x597c88=_0x5d7308['charAt'](_0x3cf170++);~_0x597c88&&(_0x121d9f=_0x3a1de9%0x4?_0x121d9f*0x40+_0x597c88:_0x597c88,_0x3a1de9++%0x4)?_0xdec6ff+=String['fromCharCode'](0xff&_0x121d9f>>(-0x2*_0x3a1de9&0x6)):0x0){_0x597c88=_0x4b44ae['indexOf'](_0x597c88);}for(let _0x494be8=0x0,_0x13674d=_0xdec6ff['length'];_0x494be8<_0x13674d;_0x494be8++){_0x52c7a6+='%'+('00'+_0xdec6ff['charCodeAt'](_0x494be8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52c7a6);};_0x5b4e['OoNPuL']=_0x4c302d,_0x5b4e['JzNEDF']={},_0x5b4e['KfTjMK']=!![];}const _0x3314d6=_0x5bf415[0x0],_0x3f0b2a=_0x594996+_0x3314d6,_0x5e4abd=_0x5b4e['JzNEDF'][_0x3f0b2a];return!_0x5e4abd?(_0x5b4e7d=_0x5b4e['OoNPuL'](_0x5b4e7d),_0x5b4e['JzNEDF'][_0x3f0b2a]=_0x5b4e7d):_0x5b4e7d=_0x5e4abd,_0x5b4e7d;}export function detectFormat(_0xb5afda){const _0x4b3c62=_0x5b4e,_0x4df1ef={};_0x4df1ef[_0x4b3c62(0x1a4)]=_0x4b3c62(0x1ae);const _0x44db22=_0x4df1ef;if(/^\*\*free$/i['test'](_0xb5afda[_0x4b3c62(0x1a8)]()))return'free';return _0x44db22['SAFhp'];}export function extractDirective(_0x196d60,_0xe8ba01){const _0x4013ce=_0x5b4e,_0x582222={};_0x582222[_0x4013ce(0x183)]=_0x4013ce(0x1ba),_0x582222['LZnWS']=function(_0xebef60,_0x2f16da){return _0xebef60-_0x2f16da;},_0x582222[_0x4013ce(0x1bc)]=function(_0x56efaf,_0x49453a){return _0x56efaf+_0x49453a;};const _0xcd39c7=_0x582222;let _0x483f86,_0x5efef3;if(_0xe8ba01===_0xcd39c7['EbrDv']){const _0xaf413d=_0x196d60['match'](/^\s*\/(copy|include) (\S)/i);if(!_0xaf413d)return null;const _0x134bf0=_0x196d60[_0x4013ce(0x1bf)]();if(_0x134bf0[_0x4013ce(0x1bb)]('//'))return null;_0x483f86=_0xaf413d[0x1][_0x4013ce(0x1c1)](),_0x5efef3=_0x196d60[_0x4013ce(0x193)](_0xcd39c7[_0x4013ce(0x1ad)](_0xaf413d[_0x4013ce(0x181)]+_0xaf413d[0x0][_0x4013ce(0x1b0)],0x1));}else{if(_0x196d60[_0x4013ce(0x1b0)]<0x7)return null;if(_0x196d60[0x6]!=='/')return null;const _0x2b5856=_0x196d60[_0x4013ce(0x193)](0x7),_0x2675ad=_0x2b5856[_0x4013ce(0x1bd)](/^(copy|include) (\S)/i);if(!_0x2675ad)return null;_0x483f86=_0x2675ad[0x1][_0x4013ce(0x1c1)](),_0x5efef3=_0x2b5856[_0x4013ce(0x193)](_0x2675ad[0x0]['length']-0x1);}let _0x560787;if(_0x5efef3[_0x4013ce(0x1bb)]('\x27')){const _0x5b6dec=_0x5efef3[_0x4013ce(0x1af)]('\x27',0x1);_0x560787=_0x5b6dec===-0x1?_0x5efef3[_0x4013ce(0x1c5)]():_0x5efef3[_0x4013ce(0x193)](0x0,_0xcd39c7['WeVWV'](_0x5b6dec,0x1));}else{if(_0x5efef3['startsWith']('\x22')){const _0x586e07=_0x5efef3[_0x4013ce(0x1af)]('\x22',0x1);_0x560787=_0x586e07===-0x1?_0x5efef3[_0x4013ce(0x1c5)]():_0x5efef3['substring'](0x0,_0x586e07+0x1);}else _0x560787=_0x5efef3[_0x4013ce(0x184)](/\s/)[0x0];}const _0x19c521={};return _0x19c521[_0x4013ce(0x19e)]=_0x483f86,_0x19c521['operand']=_0x560787,_0x19c521;}export function classifyDirectiveOperand(_0x34a713){const _0x599359=_0x5b4e,_0x37c089={};_0x37c089[_0x599359(0x17e)]=function(_0x9c505e,_0x1cd627){return _0x9c505e!==_0x1cd627;},_0x37c089[_0x599359(0x171)]=_0x599359(0x1c4);const _0x50f375=_0x37c089;if(_0x34a713[_0x599359(0x1bb)]('\x27')||_0x34a713[_0x599359(0x1bb)]('\x22')){const _0x4b84b3={};return _0x4b84b3[_0x599359(0x18b)]=_0x599359(0x191),_0x4b84b3;}if(_0x34a713[_0x599359(0x174)](',')){const _0x2b1085=_0x34a713['indexOf'](','),_0x2c0663=_0x34a713[_0x599359(0x193)](0x0,_0x2b1085),_0x456a31=_0x34a713['substring'](_0x2b1085+0x1),_0x1c3c80=_0x2c0663[_0x599359(0x1af)]('/');if(_0x50f375[_0x599359(0x17e)](_0x1c3c80,-0x1)){const _0x57c2dc=_0x2c0663[_0x599359(0x193)](0x0,_0x1c3c80),_0x125110=/^\*libl$/i[_0x599359(0x179)](_0x57c2dc)?null:_0x57c2dc;return{'type':_0x50f375[_0x599359(0x171)],'library':_0x125110,'fileName':_0x2c0663[_0x599359(0x193)](_0x1c3c80+0x1),'memberName':_0x456a31};}const _0x4c782f={};return _0x4c782f[_0x599359(0x18b)]=_0x50f375['XbrlU'],_0x4c782f[_0x599359(0x176)]=null,_0x4c782f['fileName']=_0x2c0663,_0x4c782f[_0x599359(0x172)]=_0x456a31,_0x4c782f;}if(_0x34a713[_0x599359(0x174)]('/')){const _0x3ecb42={};return _0x3ecb42[_0x599359(0x18b)]=_0x599359(0x191),_0x3ecb42;}if(/\.rpgle$/i[_0x599359(0x179)](_0x34a713)||/\.sqlrpgle$/i[_0x599359(0x179)](_0x34a713)){const _0xddc2b9={};return _0xddc2b9[_0x599359(0x18b)]='ifs',_0xddc2b9;}const _0x38d692={};return _0x38d692[_0x599359(0x18b)]=_0x50f375[_0x599359(0x171)],_0x38d692[_0x599359(0x176)]=null,_0x38d692[_0x599359(0x19c)]=null,_0x38d692['memberName']=_0x34a713,_0x38d692;}function findFileInsensitive(_0x593769,_0x1f8836){const _0x578b01=_0x5b4e;let _0x30a564;try{_0x30a564=readdirSync(_0x593769);}catch{return null;}if(_0x30a564['includes'](_0x1f8836))return _0x1f8836;const _0x72b59=_0x1f8836[_0x578b01(0x1c1)]();return _0x30a564[_0x578b01(0x1a3)](_0x44270d=>_0x44270d[_0x578b01(0x1c1)]()===_0x72b59)||null;}function findDirInsensitive(_0x27b5a5,_0x4c4984){const _0x5e9dcb=_0x5b4e,_0x29e8e3={'yvdHE':function(_0xeaeafa,_0x59f620){return _0xeaeafa(_0x59f620);}};let _0x1e9b18;try{_0x1e9b18=_0x29e8e3[_0x5e9dcb(0x17a)](readdirSync,_0x27b5a5);}catch{return null;}if(_0x1e9b18[_0x5e9dcb(0x174)](_0x4c4984))return _0x4c4984;const _0x5493d1=_0x4c4984[_0x5e9dcb(0x1c1)]();return _0x1e9b18[_0x5e9dcb(0x1a3)](_0x4e1c2b=>_0x4e1c2b[_0x5e9dcb(0x1c1)]()===_0x5493d1)||null;}function _0x5bf4(){const _0xf97901=['BgvUz3rO','wg5fuxq','ChvZAa','icHSB29RAw5NigzVCIaN','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','zxDprwm','qM9pquG','odG1ndvrww5xuKK','l3fYCgDSzxnYyW','BMvLzgvK','zNjLzq','C3rHCNrZv2L0Aa','v2vwv1y','Bwf0y2G','uNvQtvO','DhjPBvn0yxj0','icbeAxjLy3rPDMu6ia','Dg9mB3DLCKnHC2u','DxrMoa','CMvZDwX0','BwvTyMvY','DhjPBq','y0fnAuK','lNnXBhjWz2XL','CxjWz2XLC3jJ','B3bLCMfUza','tMnqwNm','wgjYBfu','BwvTyMvYtMfTzq','ndi0ndy1m0PtsgThAW','Aw5JBhvKzxm','C291CMnLuM9VDa','BgLICMfYEq','v2fYBMLUzZOGtwvTyMvYicC','tNHAq0K','DgvZDa','ExzKseu','mtm3nJKXmgfnyKHhCW','Cuzlq00','igLUia','AwzRDuC','wMPWyNq','zgLeBK0','Aw5KzxG','BgLIrgLY','rwjYrhy','C3bSAxq','zxjYB3i','u2Puz0e','sNrozeC','ywXOzeS','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','jdfgAwXLoIa','DhLWzq','icbgAwXLoIbSAw5Lia','mtq4mdC3nJnQDeDlq3y','lIbtzxqGq09ervjnquTfx0Loq0XvrevFuefuscb0BYbJB250CM9SihnLyxjJAcbVCMrLCI4','AuT5A24','Bw9KAwzPzwq','AwzZ','y2fbz3q','C3vIC3rYAw5N','B1fXv1K','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','CMvJDxjZAxzL','mtmYmJmYofreyLDIua','lIbvC2LUzYa','BK1YBxO','u3vKC1G','BwfW','zMLSzu5HBwu','mwzQDvPWDq','A2v5D29Yza','mteYEhnuBw5w','AM9PBG','y29UDgvUDa','mtKXmda1ofvTCMTHqq','zMLUza','u0fgAha','BwvZC2fNzq','odmYmZa2vffwtMjk','jYbPBIaN','DhjPBuvUza','jYbMB3vUzcbPBIbTDwX0AxbSzsbSAwjYyxjPzxm6ia','lNjWz2XL','qwXyywS','vxjhD1q','tfPUv1m','zML4zwq','Aw5KzxHpzG'];_0x5bf4=function(){return _0xf97901;};return _0x5bf4();}function tryResolveInDir(_0x3bd44f,_0x5a09cb,_0x397e77){const _0x5541b8=_0x5b4e,_0x30288b={'qFKCM':function(_0x13472a,_0xdb366d,_0x33fde3){return _0x13472a(_0xdb366d,_0x33fde3);},'nMrmz':function(_0x1d1459,_0x49553d,_0x251a51){return _0x1d1459(_0x49553d,_0x251a51);},'ewOEc':function(_0x53c943,_0x128131){return _0x53c943+_0x128131;},'BoOAH':function(_0x4dd4f2,_0x3a0406,_0x135795){return _0x4dd4f2(_0x3a0406,_0x135795);}},_0x3d733a=_0x3bd44f[_0x5541b8(0x184)]('/');let _0x536c8f=_0x397e77;const _0x5efabf=[];for(const _0x15e50c of _0x3d733a){const _0x46fbd2=_0x30288b[_0x5541b8(0x17c)](findDirInsensitive,_0x536c8f,_0x15e50c);if(!_0x46fbd2)return null;_0x5efabf['push'](_0x46fbd2),_0x536c8f=_0x30288b[_0x5541b8(0x199)](join,_0x536c8f,_0x46fbd2);}const _0x5f2ad0=_0x5efabf[_0x5541b8(0x1a0)]('/'),_0x5c038c=[_0x5541b8(0x1aa),_0x5541b8(0x16d)];for(const _0x47d284 of _0x5c038c){const _0x2cc286=_0x30288b[_0x5541b8(0x1b5)](_0x5a09cb,_0x47d284),_0x169131=_0x30288b[_0x5541b8(0x1b6)](findFileInsensitive,join(_0x397e77,_0x5f2ad0),_0x2cc286);if(_0x169131)return _0x5f2ad0+'/'+_0x169131;}return null;}export function resolveSourceMember(_0x17714e,_0x2fe123,_0x5c4cde={}){const _0x4655e5=_0x5b4e,_0x3c4137={'alhdK':function(_0x7061fb,_0x41ad7c){return _0x7061fb!==_0x41ad7c;},'EEHyh':function(_0x103e1d,_0x588389,_0xa003a0,_0x16bb00){return _0x103e1d(_0x588389,_0xa003a0,_0x16bb00);},'xUrjB':function(_0x2a18ba,_0x4f371d){return _0x2a18ba===_0x4f371d;},'oQqWY':function(_0x4d0c80,_0x1dcec2,_0x57fdf7,_0x5792e1){return _0x4d0c80(_0x1dcec2,_0x57fdf7,_0x5792e1);},'SudsX':function(_0x2353ba,_0x521df2){return _0x2353ba===_0x521df2;},'AlXak':_0x4655e5(0x16e),'AbHwf':function(_0x372491,_0x20b317,_0x2cce1b){return _0x372491(_0x20b317,_0x2cce1b);}},{library:_0x47ff2b,fileName:_0x14c7b6,memberName:_0x57436c}=_0x17714e,{librarySearchPath:_0xa9da15,searchPathExplicit:_0x43aa22}=_0x5c4cde;if(_0x3c4137[_0x4655e5(0x188)](_0x47ff2b,null)){const _0x4ee680=_0x47ff2b+'/'+_0x14c7b6,_0x155145=_0x3c4137['EEHyh'](tryResolveInDir,_0x4ee680,_0x57436c,_0x2fe123);if(_0x155145)return _0x155145;throw new Error(_0x4655e5(0x195)+_0x57436c+_0x4655e5(0x17d)+_0x4ee680+_0x4655e5(0x189));}if(_0xa9da15&&_0xa9da15['length']>0x0){const _0x6d70ec=[];for(const _0x61f906 of _0xa9da15){let _0x4bb738;_0x3c4137['xUrjB'](_0x14c7b6,null)?_0x4bb738=_0x61f906+_0x4655e5(0x1b8):_0x4bb738=_0x61f906+'/'+_0x14c7b6;const _0x4345cc=_0x3c4137[_0x4655e5(0x194)](tryResolveInDir,_0x4bb738,_0x57436c,_0x2fe123);if(_0x4345cc){const _0x3447f1={};_0x3447f1[_0x4655e5(0x182)]=_0x61f906,_0x3447f1[_0x4655e5(0x1c3)]=_0x4345cc,_0x6d70ec['push'](_0x3447f1);}}if(_0x3c4137[_0x4655e5(0x19a)](_0x6d70ec[_0x4655e5(0x1b0)],0x1))return _0x6d70ec[0x0]['result'];if(_0x6d70ec[_0x4655e5(0x1b0)]>0x1){if(!_0x43aa22){const _0xf960c9=_0x6d70ec[_0x4655e5(0x19b)](_0x9a350f=>_0x9a350f[_0x4655e5(0x182)])[_0x4655e5(0x1a0)](',\x20');console[_0x4655e5(0x185)](_0x4655e5(0x177)+_0x57436c+_0x4655e5(0x1a9)+_0xf960c9+_0x4655e5(0x198)+_0x6d70ec[0x0][_0x4655e5(0x182)]+_0x4655e5(0x18e));}return _0x6d70ec[0x0]['result'];}}let _0x517523;_0x3c4137[_0x4655e5(0x19a)](_0x14c7b6,null)?_0x517523=_0x3c4137[_0x4655e5(0x1ab)]:_0x517523=_0x14c7b6;const _0x3305b4=_0x517523['split']('/');let _0x13b85d=_0x2fe123;for(const _0x510c57 of _0x3305b4){const _0x3a0479=_0x3c4137['AbHwf'](findDirInsensitive,_0x13b85d,_0x510c57);if(!_0x3a0479)throw new Error(_0x4655e5(0x1b4)+_0x517523+_0x4655e5(0x1b3)+_0x510c57+_0x4655e5(0x1a7)+_0x13b85d+'\x27)');_0x13b85d=join(_0x13b85d,_0x3a0479);}const _0x179b75=tryResolveInDir(_0x517523,_0x57436c,_0x2fe123);if(_0x179b75)return _0x179b75;throw new Error('Source\x20member\x20not\x20found:\x20'+_0x57436c+_0x4655e5(0x17d)+_0x517523+_0x4655e5(0x189));}export function preprocessFileContent(_0x44cfe3,_0x557079,_0x438782={}){const _0x2453aa=_0x5b4e,_0x44a55c={'cJhip':function(_0x5788ca,_0x20ff89){return _0x5788ca(_0x20ff89);},'SjTgA':function(_0x3f2015,_0x42afe5){return _0x3f2015<_0x42afe5;},'Zjpbt':function(_0x17f3a5,_0x138819,_0x1f9773){return _0x17f3a5(_0x138819,_0x1f9773);},'JtNdG':function(_0x35a8a6,_0x37fcff){return _0x35a8a6(_0x37fcff);},'RujMZ':_0x2453aa(0x191),'NxZCI':function(_0x42cd21,_0x36a28c,_0x18b90c,_0x9ec90){return _0x42cd21(_0x36a28c,_0x18b90c,_0x9ec90);},'diDnM':function(_0x415617,_0x2355d1){return _0x415617+_0x2355d1;},'XnEQt':function(_0x3fccf6,_0x57daf3){return _0x3fccf6+_0x57daf3;},'NcPZs':_0x2453aa(0x1ba)},_0x546f23=_0x44cfe3[_0x2453aa(0x184)]('\x0a'),_0x591234={};_0x591234[_0x2453aa(0x1a1)]=_0x44cfe3,_0x591234[_0x2453aa(0x190)]=![];if(_0x546f23[_0x2453aa(0x1b0)]===0x0)return _0x591234;const _0x16ed8=_0x44a55c['cJhip'](detectFormat,_0x546f23[0x0]);let _0x203202=![];const _0xc1854a=[];for(let _0x32bbe2=0x0;_0x44a55c[_0x2453aa(0x186)](_0x32bbe2,_0x546f23[_0x2453aa(0x1b0)]);_0x32bbe2++){const _0x4f1420=_0x546f23[_0x32bbe2],_0x282c63=_0x44a55c[_0x2453aa(0x17f)](extractDirective,_0x4f1420,_0x16ed8);if(!_0x282c63){_0xc1854a[_0x2453aa(0x1b2)](_0x4f1420);continue;}const _0x23e608=_0x44a55c[_0x2453aa(0x187)](classifyDirectiveOperand,_0x282c63['operand']);if(_0x23e608[_0x2453aa(0x18b)]===_0x44a55c[_0x2453aa(0x1be)]){_0xc1854a[_0x2453aa(0x1b2)](_0x4f1420);continue;}let _0x9f702c;try{_0x9f702c=_0x44a55c[_0x2453aa(0x178)](resolveSourceMember,_0x23e608,_0x557079,_0x438782);}catch(_0x543e45){const _0x1b300d=_0x44a55c[_0x2453aa(0x180)](_0x32bbe2,0x1);throw new Error(_0x44a55c[_0x2453aa(0x1b1)](_0x543e45[_0x2453aa(0x1a5)]+'\x0a'+(_0x2453aa(0x18c)+_0x1b300d+'\x0a'),_0x2453aa(0x1c0)+_0x4f1420[_0x2453aa(0x1bf)]()));}let _0x161a9b;if(_0x16ed8===_0x44a55c[_0x2453aa(0x170)]){const _0x1c09fa=_0x4f1420[_0x2453aa(0x1bd)](/^(\s*\/)(copy|include) /i),_0x2a04ba=_0x1c09fa[0x1],_0x39fc53=_0x1c09fa[0x2],_0x5618a9=_0x4f1420[_0x2453aa(0x193)](_0x1c09fa[0x0][_0x2453aa(0x1b0)]+_0x282c63[_0x2453aa(0x16f)]['length']);_0x161a9b=''+_0x2a04ba+_0x39fc53+'\x20'+_0x9f702c+_0x5618a9;}else{const _0x5ba206=_0x4f1420[_0x2453aa(0x193)](0x0,0x6),_0x4445eb=_0x4f1420[_0x2453aa(0x193)](0x7)['match'](/^(copy|include) /i),_0x21f118=_0x4445eb[0x1],_0x2d0532=0x7+_0x4445eb[0x0][_0x2453aa(0x1b0)],_0x4479f8=_0x4f1420[_0x2453aa(0x193)](_0x2d0532+_0x282c63[_0x2453aa(0x16f)][_0x2453aa(0x1b0)]);_0x161a9b=_0x5ba206+'/'+_0x21f118+'\x20'+_0x9f702c+_0x4479f8;}_0xc1854a[_0x2453aa(0x1b2)](_0x161a9b),_0x203202=!![];}return{'content':_0xc1854a['join']('\x0a'),'modified':_0x203202};}export function preprocessFile(_0x1c389f,_0x59c7b5,_0x110f43={}){const _0x3d55e4=_0x5b4e;if(!/\.(rpgle|sqlrpgle)$/i[_0x3d55e4(0x179)](_0x1c389f)){const _0x474e2c={};return _0x474e2c['modified']=![],_0x474e2c;}const _0x49e753=readFileSync(_0x1c389f,_0x3d55e4(0x1c2));try{return preprocessFileContent(_0x49e753,_0x59c7b5,_0x110f43);}catch(_0x1d67f7){const _0xc2d478=_0x1d67f7[_0x3d55e4(0x1a5)]['replace'](/^(.*\n {2})File: /,_0x3d55e4(0x18a)+_0x1c389f+',\x20');throw new Error(_0xc2d478);}}export function preprocessFiles(_0x3559eb,_0x13bac3,_0x7b73ed,_0x36fa2b={}){const _0x13f440=_0x5b4e,_0x485648={'caAgt':function(_0x4c1d73){return _0x4c1d73();},'UrGwT':function(_0x3857a0,_0x5e43b8){return _0x3857a0<_0x5e43b8;},'cAMiI':function(_0x5a4a05,_0x1b8860,_0x143d14){return _0x5a4a05(_0x1b8860,_0x143d14);},'iKykn':function(_0x4304e6,_0x3ba4f5){return _0x4304e6(_0x3ba4f5);}},_0x3c7227=[];let _0x2abe41=![];for(const _0x521a49 of _0x3559eb){const _0x219db7=join(_0x13bac3,_0x521a49),_0x551a09=preprocessFile(_0x219db7,_0x13bac3,_0x36fa2b),_0x7244f2={'filePath':_0x521a49,..._0x551a09};_0x3c7227[_0x13f440(0x1b2)](_0x7244f2);if(_0x551a09[_0x13f440(0x190)])_0x2abe41=!![];}if(!_0x2abe41){const _0x1105d0={};return _0x1105d0[_0x13f440(0x1b9)]=![],_0x1105d0['sourceRoot']='.',_0x1105d0;}const _0x4b27cd=_0x7b73ed+'-'+_0x485648[_0x13f440(0x192)](randomUUID);for(let _0xc0b6e6=0x0;_0x485648[_0x13f440(0x1ac)](_0xc0b6e6,_0x3559eb[_0x13f440(0x1b0)]);_0xc0b6e6++){const _0xf380e7=_0x3559eb[_0xc0b6e6],_0x55e7a9=_0x3c7227[_0xc0b6e6],_0x59241d=_0x485648[_0x13f440(0x1c6)](join,_0x4b27cd,_0xf380e7),_0x14b7cc={};_0x14b7cc[_0x13f440(0x196)]=!![],mkdirSync(_0x485648[_0x13f440(0x18f)](dirname,_0x59241d),_0x14b7cc),_0x55e7a9['modified']?writeFileSync(_0x59241d,_0x55e7a9['content']):_0x485648[_0x13f440(0x1c6)](copyFileSync,join(_0x13bac3,_0xf380e7),_0x59241d);}const _0x560901={};return _0x560901[_0x13f440(0x1b9)]=!![],_0x560901[_0x13f440(0x175)]=_0x4b27cd,_0x560901;}
|
package/dist/lib/ssh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35d580,_0x1fb281){const _0x36771c=_0x5721,_0x2f9579=_0x35d580();while(!![]){try{const _0x36e59d=parseInt(_0x36771c(0xf6))/0x1+parseInt(_0x36771c(0xf3))/0x2*(parseInt(_0x36771c(0xec))/0x3)+-parseInt(_0x36771c(0x103))/0x4*(parseInt(_0x36771c(0xdf))/0x5)+parseInt(_0x36771c(0xe3))/0x6+parseInt(_0x36771c(0xfb))/0x7+-parseInt(_0x36771c(0xff))/0x8*(parseInt(_0x36771c(0xf1))/0x9)+-parseInt(_0x36771c(0xde))/0xa*(-parseInt(_0x36771c(0x101))/0xb);if(_0x36e59d===_0x1fb281)break;else _0x2f9579['push'](_0x2f9579['shift']());}catch(_0x187e5d){_0x2f9579['push'](_0x2f9579['shift']());}}}(_0xfba4,0x97ab9));import{spawn}from'child_process';import{readdirSync}from'fs';function _0xfba4(){const _0x14807c=['ifntscbTyxn0zxiGywXYzwfKEsbLEgLZDhmSihjLDxnPBMC','vMzqEKW','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','mtH5tffKtgO','Bg9N','mNzsALjeEq','BM93','AwDUB3jL','nda5nta0BhLgverg','v2TYAuy','DgXVuMq','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','C3rHCNrZv2L0Aa','ndaWmda4B3LbB3Ln','C3nOlq','q29UDhjVBfbLCNnPC3q9mtbT','zgv0ywnOzwq','mtmYmZuYofLwyxzSAW','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','mtfJt25dveW','AfnXDgO','mZm3ntjxwLDVvwu','w3nZAf0','C29Tzq','nJe4nteWCuPlvuPZ','mZm1vuPkwKr3','u2vYDMvYqwXPDMvdB3vUDe1HEd0Z','ChvZAa','u2vYDMvYqwXPDMvjBNrLCNzHBd02ma','ntu0mdaYmMvdEwrkCG','wgnwCfG','BMHTC1i','r1jWyMC','CMrPzw0','icHWCM9JzxnZigv4AxrLzcb3AxrOignVzguG','q29UDhjVBfbHDgG9','Dw5Yzwy','l3nZAc0LqW','mtK2odK5qLfhzM9P','q29UDhjVBe1HC3rLCJ15zxm'];_0xfba4=function(){return _0x14807c;};return _0xfba4();}function _0x5721(_0x34f64d,_0x5c9434){_0x34f64d=_0x34f64d-0xdd;const _0xfba4f=_0xfba4();let _0x5721ec=_0xfba4f[_0x34f64d];if(_0x5721['zmjyfS']===undefined){var _0xcaeb39=function(_0x329ba3){const _0x48ca25='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5f2bbb='',_0x6ddc49='';for(let _0x535607=0x0,_0x499930,_0x4dc8d6,_0x48f04b=0x0;_0x4dc8d6=_0x329ba3['charAt'](_0x48f04b++);~_0x4dc8d6&&(_0x499930=_0x535607%0x4?_0x499930*0x40+_0x4dc8d6:_0x4dc8d6,_0x535607++%0x4)?_0x5f2bbb+=String['fromCharCode'](0xff&_0x499930>>(-0x2*_0x535607&0x6)):0x0){_0x4dc8d6=_0x48ca25['indexOf'](_0x4dc8d6);}for(let _0x2d6c02=0x0,_0x2168cd=_0x5f2bbb['length'];_0x2d6c02<_0x2168cd;_0x2d6c02++){_0x6ddc49+='%'+('00'+_0x5f2bbb['charCodeAt'](_0x2d6c02)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6ddc49);};_0x5721['AMMHtW']=_0xcaeb39,_0x5721['mQLUZs']={},_0x5721['zmjyfS']=!![];}const _0xb46fda=_0xfba4f[0x0],_0x58b9cd=_0x34f64d+_0xb46fda,_0x2a31d1=_0x5721['mQLUZs'][_0x58b9cd];return!_0x2a31d1?(_0x5721ec=_0x5721['AMMHtW'](_0x5721ec),_0x5721['mQLUZs'][_0x58b9cd]=_0x5721ec):_0x5721ec=_0x2a31d1,_0x5721ec;}async function waitForSSHSocket(_0x27e9e,_0x36e589,_0x55d55c=0x3a98){const _0x4ac5ae={'nhmsR':function(_0xac2637,_0x121025){return _0xac2637!==_0x121025;},'GRpbg':function(_0x15b263,_0x29eb07){return _0x15b263(_0x29eb07);},'WkriF':function(_0x46fb99,_0x120d4b){return _0x46fb99!==_0x120d4b;},'hSqtj':function(_0x378092,_0x436566,_0x418a7b){return _0x378092(_0x436566,_0x418a7b);}};return new Promise((_0x35b707,_0x51690a)=>{const _0x56fff3=_0x5721;let _0x5cc398=![],_0x42ff99=null;_0x36e589['on']('exit',_0x53e433=>{const _0x5c0771=_0x5721;_0x42ff99=_0x53e433,!_0x5cc398&&_0x4ac5ae[_0x5c0771(0xe5)](_0x53e433,0x0)&&(_0x5cc398=!![],_0x4ac5ae['GRpbg'](_0x51690a,new Error('SSH\x20master\x20exited\x20with\x20code\x20'+_0x53e433)));});const _0x24c63c=Date[_0x56fff3(0xf4)](),_0x663098=()=>{const _0x2ac198=_0x56fff3;if(_0x5cc398)return;const _0x4119ac=readdirSync(_0x27e9e);if(_0x4119ac[_0x2ac198(0xdd)](_0x24dfd8=>_0x24dfd8['startsWith'](_0x2ac198(0xfc)))){_0x5cc398=!![],_0x35b707();return;}if(Date['now']()-_0x24c63c>=_0x55d55c){_0x5cc398=!![];const _0x19fc1a=_0x4ac5ae[_0x2ac198(0xf7)](_0x42ff99,null)?_0x2ac198(0xe8)+_0x42ff99+')':'';_0x4ac5ae[_0x2ac198(0xe6)](_0x51690a,new Error(_0x2ac198(0x100)+_0x55d55c+'ms'+_0x19fc1a));return;}_0x4ac5ae[_0x2ac198(0x102)](setTimeout,_0x663098,0x64);};_0x663098();});}export async function establishSSHMaster(_0x40bc78,_0x4fc818={}){const _0x234ffb=_0x5721,_0x1604a3={};_0x1604a3['XcVpX']=_0x234ffb(0xfd),_0x1604a3[_0x234ffb(0xef)]=_0x234ffb(0xf0),_0x1604a3[_0x234ffb(0xf8)]=_0x234ffb(0xe2),_0x1604a3[_0x234ffb(0xe7)]='ssh';const _0x3361a4=_0x1604a3,{host:_0x13045b,user:_0x46b789,sshKey:_0x4ab92c,debug:debug=![],debugPrefix:debugPrefix=_0x234ffb(0x104)}=_0x4fc818;if(!_0x13045b||!_0x46b789)return;const _0x1c176d=readdirSync(_0x40bc78);if(_0x1c176d[_0x234ffb(0xdd)](_0x3b1c5d=>_0x3b1c5d[_0x234ffb(0xfa)](_0x234ffb(0xfc)))){if(debug)console['log'](debugPrefix+_0x234ffb(0xee));return;}if(debug)console[_0x234ffb(0xf2)](debugPrefix+'\x20Pre-establishing\x20SSH\x20master\x20connection...');const _0x15d752=['-o',_0x234ffb(0xed),'-o',_0x234ffb(0xe9)+_0x40bc78+_0x234ffb(0xeb),'-o',_0x3361a4[_0x234ffb(0xe4)],'-o',_0x3361a4[_0x234ffb(0xef)],'-o','PasswordAuthentication=no','-o',_0x3361a4[_0x234ffb(0xf8)],'-o',_0x234ffb(0xe0),'-N','-f'];_0x4ab92c&&_0x15d752['push']('-i',_0x4ab92c);_0x15d752[_0x234ffb(0xe1)](_0x46b789+'@'+_0x13045b);const _0x172068={};_0x172068[_0x234ffb(0xfe)]=!![],_0x172068['stdio']=_0x234ffb(0xf5);const _0x3e1a5f=spawn(_0x3361a4['rdiem'],_0x15d752,_0x172068);_0x3e1a5f[_0x234ffb(0xea)](),await waitForSSHSocket(_0x40bc78,_0x3e1a5f,0x3a98);if(debug)console[_0x234ffb(0xf2)](debugPrefix+_0x234ffb(0xf9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x29e9(){const _0x2c3d3c=['qLvjterFtu9evuXfx1rpx1bhtq','qLvjterFuLbhmZHFueDn','t0jkrunu','lM1Zz2y','y3j0yM5Ky2jS','nJK3mdy4ogn2tu5NCW','m0XjAMDrBG','zw50CMLLCW','zM9YrwfJAa','lM1LBNu','kMjUzgrPCG','CMvWBgfJzq','sLrdEwG','y3j0yM5Ky2W','y3j0C3j2CgDT','Dgv4Da','qLvjterFq0jmtevFueDn','DgfYz2v0uMvSzwfZzq','qLvjterFueyZof9ut19gsuXf','Dhn2','lMzPBgu','ChvZAa','Cxn5CZm4l2nYDhjWz3bNBq','y3j0zhnWzG','Cxn5CZm4l2nYDhbM','lM1VzhvSzq','AgfZ','qLvjterFufjurL9ut19gsuXf','BgLICMfYEq','mtfHqLLXq1G','qLvjterFteyZof9ut19gsuXf','AM9PBG','ANnVBG','qLvjterFtvnhrG','jcHdt0rfuK1bs0vFteLtvf9sruftt04P','B2jQzwn0','C3bSAxq','DhLWzq','BwfW','mZK2DffPs1z5','CMvHC29U','Bwf4','lMjUzgrPCG','DgfYz2v0','mJG5nZC4m2vQquDNrG','qLvjterFu1fmsu5ervHFve9FrKLmrq','qLvjterFtu9evuXfx1rpx1nsvLbhtv9bteW','y3j0CNbNBw9K','igfMzMvJDgvKicHKzxbLBMrLBMn5ig9YzgvYkq','kM1LBNu','qLvjterFu1fmvefctevFve9FrKLmrq','C291CMnL','nLnHzfjcDq','Cxn5CZm4l2nYDgnSCgDT','y3j0CNbNCgDT','kMzPBgu','qLvjterFuLbhtevFtu9evuXf','qLvjterFu1fmvKLfv19ut19gsuXf','q2fUBM90igXPC3qGDgfYz2v0icC','kNnYDNbNBq','C3rHCNrZv2L0Aa','vfLqrq','y3j0CgDT','vw5RBM93BIb0yxjNzxqGBgLZDgLUzYbMB3jTyxq6ia','CgfKrw5K','cua6ia','qLvjterFu1fmuLbhtevFtu9evuXf','uKvbu09o','mZa3nda5nxnWAM5rDa','kNbNBq','kM1VzhvSzq','DgfYz2v0CW','Dw1xv2C','vefsr0vu','twfSzM9YBwvKihrHCMDLDcbSAxn0Aw5NihjLy29YzcaOzxHWzwn0zwqG','Cxn5CZm4l2nYDgXM','DMvYC2LVBG','jZOGAxrZia','y3j0y2XWz20','qLvjterFq0Xmrv9qr00','teLcuKfswq','lNbNBq','qLvjterFu1fmufjpq19ut19qr00','qLvjterFq0Xqx1bhtq','y3j0C3fSCNbNAq','qLvjterFq0Xmrv9nt0rvteu','y3j0y2XTB2q','ntG4nti0B1vVz0js','BLbhBfG','qLvjterFu1fmufjpq19ut19tuLzqr00','wKHIsfu','qLvjterFuLbhx1bhtq','D2HPy2GGDgHLihjLy29YzcbMB3jTyxqGDxnLCYbHCYbZzxbHCMf0B3jZlG','DgvZDa','qLvjterFq0XqmZHFueDn','ndu5mtCZn2zzzw56Ba','qLvjterFtu9evuXfx1rpx1nsvLbhtq','qLvjterFrfnqrL9ut19gsuXf','qLvjterFu1fmuLbhtevFueDn','Berjtxu','Cxn5CZm4l2nYDhbYDgy','nZu0mZKZmhPrv0zizq','BgvUz3rO','CNvUC3fSC3rT','y3j0Bw51','qLvjterFq0jmtevFtu9evuXf','y3j0y2jSBw9K','Cxn5CZm4l2nYDgrZCgy','y3j0Chj0zG','ktOG','mJKZEKDcuuTJ'];_0x29e9=function(){return _0x2c3d3c;};return _0x29e9();}const _0x5084c2=_0x2efc;(function(_0x1ffc6c,_0x6adbb3){const _0xc9b571=_0x2efc,_0x3ccfc2=_0x1ffc6c();while(!![]){try{const _0xa749e4=parseInt(_0xc9b571(0x1ba))/0x1*(parseInt(_0xc9b571(0x1e2))/0x2)+-parseInt(_0xc9b571(0x1c1))/0x3*(-parseInt(_0xc9b571(0x1a3))/0x4)+parseInt(_0xc9b571(0x1ff))/0x5*(-parseInt(_0xc9b571(0x1ef))/0x6)+parseInt(_0xc9b571(0x1e7))/0x7+parseInt(_0xc9b571(0x1c0))/0x8+parseInt(_0xc9b571(0x1ab))/0x9+parseInt(_0xc9b571(0x1b1))/0xa*(-parseInt(_0xc9b571(0x1d8))/0xb);if(_0xa749e4===_0x6adbb3)break;else _0x3ccfc2['push'](_0x3ccfc2['shift']());}catch(_0x2ac639){_0x3ccfc2['push'](_0x3ccfc2['shift']());}}}(_0x29e9,0x9a287));import{COMMANDS,TGTRLS_COMMANDS}from'./config.js';const RECORD_SENTINEL='CODERMAKE_TARGET',RECORD_LINE_PREFIX=':\x20'+RECORD_SENTINEL+'\x09';export const RECORD_FIELDS=[_0x5084c2(0x1e6),'library',_0x5084c2(0x1de),_0x5084c2(0x1e0),_0x5084c2(0x1ee),_0x5084c2(0x1cc),_0x5084c2(0x1e3)];export const LIST_FORMATS=[_0x5084c2(0x1ca),'json',_0x5084c2(0x1ce)];const _0x5c849a={};_0x5c849a[_0x5084c2(0x20c)]=_0x5084c2(0x200),_0x5c849a[_0x5084c2(0x1d4)]=_0x5084c2(0x201),_0x5c849a['.srvpgm']=_0x5084c2(0x1f6),_0x5c849a[_0x5084c2(0x1cf)]=_0x5084c2(0x1f2),_0x5c849a[_0x5084c2(0x1c4)]=_0x5084c2(0x1ec),_0x5c849a[_0x5084c2(0x1be)]='*msgf',_0x5c849a[_0x5084c2(0x1e5)]=_0x5084c2(0x1c5);const OBJECT_TYPES=_0x5c849a,_0x3dbe0d={};_0x3dbe0d[_0x5084c2(0x1e6)]=_0x5084c2(0x204),_0x3dbe0d[_0x5084c2(0x1d7)]=_0x5084c2(0x20b),_0x3dbe0d[_0x5084c2(0x1de)]=_0x5084c2(0x1bd),_0x3dbe0d[_0x5084c2(0x1e0)]=_0x5084c2(0x1f8),_0x3dbe0d[_0x5084c2(0x1ee)]='SOURCE',_0x3dbe0d[_0x5084c2(0x1cc)]='TGTRLS',_0x3dbe0d[_0x5084c2(0x1e3)]=_0x5084c2(0x1fe);const TEXT_HEADINGS=_0x3dbe0d,_0x2ef1b9={};_0x2ef1b9[_0x5084c2(0x1ae)]=_0x5084c2(0x1a0),_0x2ef1b9['BUILD_RPGLE_PGM']='crtbndrpg',_0x2ef1b9[_0x5084c2(0x1cb)]=_0x5084c2(0x1bf),_0x2ef1b9[_0x5084c2(0x20a)]=_0x5084c2(0x1c8),_0x2ef1b9[_0x5084c2(0x20e)]=_0x5084c2(0x209),_0x2ef1b9[_0x5084c2(0x1aa)]=_0x5084c2(0x1f0),_0x2ef1b9[_0x5084c2(0x1a7)]=_0x5084c2(0x1f1),_0x2ef1b9[_0x5084c2(0x1bc)]=_0x5084c2(0x1d1),_0x2ef1b9[_0x5084c2(0x20d)]=_0x5084c2(0x1b3),_0x2ef1b9['BUILD_SQLTRIGGER_TO_PGM']=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1bb)]=_0x5084c2(0x1f9),_0x2ef1b9[_0x5084c2(0x1fd)]='crtsqlrpgi',_0x2ef1b9[_0x5084c2(0x1f3)]=_0x5084c2(0x1ea),_0x2ef1b9[_0x5084c2(0x1b5)]=_0x5084c2(0x1b6),_0x2ef1b9[_0x5084c2(0x1a1)]=_0x5084c2(0x1a2),_0x2ef1b9[_0x5084c2(0x1ac)]=_0x5084c2(0x1c9),_0x2ef1b9[_0x5084c2(0x1e9)]=_0x5084c2(0x1c9),_0x2ef1b9[_0x5084c2(0x1a5)]='runsqlstm',_0x2ef1b9['BUILD_SQLUDF_TO_SRVPGM']=_0x5084c2(0x1b3),_0x2ef1b9['BUILD_RDF_TO_FILE']=_0x5084c2(0x1d2),_0x2ef1b9[_0x5084c2(0x1ad)]='crtdspf',_0x2ef1b9['BUILD_PF_TO_FILE']='crtpf',_0x2ef1b9['BUILD_LF_TO_FILE']='crtlf',_0x2ef1b9[_0x5084c2(0x1d6)]=_0x5084c2(0x1b8),_0x2ef1b9['BUILD_DSPF38_TO_FILE']=_0x5084c2(0x1b7),_0x2ef1b9[_0x5084c2(0x1cd)]=_0x5084c2(0x1d3),_0x2ef1b9[_0x5084c2(0x1d9)]=_0x5084c2(0x206),_0x2ef1b9['BUILD_PRTF38_TO_FILE']=_0x5084c2(0x1b0),_0x2ef1b9[_0x5084c2(0x1ed)]=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1e8)]=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1f4)]=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1dc)]='',_0x2ef1b9['BUILD_BNDDIR']='',_0x2ef1b9['BUILD_MENU']=_0x5084c2(0x1b4);const RECIPE_COMMANDS=_0x2ef1b9;export function objectTypeForExtension(_0x26dd5b){return OBJECT_TYPES[_0x26dd5b]||null;}export function recipeAcceptsTargetRelease(_0xd27481){const _0x3cd01e=_0x5084c2,_0x30ed19=RECIPE_COMMANDS[_0xd27481];return!!_0x30ed19&&TGTRLS_COMMANDS[_0x3cd01e(0x1d5)](_0x30ed19);}export function commandForRecipe(_0x223248){return RECIPE_COMMANDS[_0x223248];}export const KNOWN_COMMANDS=COMMANDS;export function renderRecordRecipe({target:_0x2a572e,library:_0x4f5923,object:_0x5af79f,type:_0x175bc7,source:_0x465779,withTargetRelease:_0x4e0162}){const _0x52fffc=_0x5084c2,_0x1217a4={};_0x1217a4[_0x52fffc(0x1c7)]=_0x52fffc(0x1dd);const _0x561f18=_0x1217a4,_0x10709c={};_0x10709c['target']=_0x2a572e,_0x10709c[_0x52fffc(0x1d7)]=_0x4f5923,_0x10709c[_0x52fffc(0x1de)]=_0x5af79f,_0x10709c['type']=_0x175bc7,_0x10709c[_0x52fffc(0x1ee)]=_0x465779||'',_0x10709c['targetRelease']=_0x4e0162?'$(CODERMAKE_TGTRLS)':'',_0x10709c[_0x52fffc(0x1e3)]=_0x561f18[_0x52fffc(0x1c7)];const _0x186ebb=_0x10709c;for(const [_0x79c85e,_0x2af34b]of Object[_0x52fffc(0x1c2)](_0x186ebb)){if(/[\t\n]/[_0x52fffc(0x1a9)](_0x2af34b))throw new Error(_0x52fffc(0x1f5)+_0x2a572e+_0x52fffc(0x208)+_0x79c85e+'\x20contains\x20a\x20tab\x20or\x20newline,\x20'+_0x52fffc(0x1a8));}const _0x24aa27=RECORD_FIELDS[_0x52fffc(0x1e1)](_0x456e15=>_0x186ebb[_0x456e15]);return _0x52fffc(0x1fc)+RECORD_SENTINEL+'\x09'+_0x24aa27[_0x52fffc(0x1da)]('\x09');}export function isRecordLine(_0x58435f){const _0x36cd60=_0x5084c2;return _0x58435f[_0x36cd60(0x1f7)](RECORD_LINE_PREFIX);}export function parseRecords(_0x50138b){const _0x8e2ccd=_0x5084c2,_0x1deff0=[];for(const _0x42b8cc of _0x50138b[_0x8e2ccd(0x1df)]('\x0a')){const _0x1bcfc3=_0x42b8cc[_0x8e2ccd(0x1c6)](/\r$/,'');if(!isRecordLine(_0x1bcfc3))continue;const _0x5b2839=_0x1bcfc3['substring'](RECORD_LINE_PREFIX[_0x8e2ccd(0x1b2)])[_0x8e2ccd(0x1df)]('\x09');if(_0x5b2839[_0x8e2ccd(0x1b2)]!==RECORD_FIELDS[_0x8e2ccd(0x1b2)])throw new Error(_0x8e2ccd(0x205)+RECORD_FIELDS[_0x8e2ccd(0x1b2)]+'\x20fields,\x20got\x20'+_0x5b2839['length']+_0x8e2ccd(0x1b9)+_0x1bcfc3);const _0x3ecb04={};RECORD_FIELDS[_0x8e2ccd(0x1c3)]((_0x2c6e72,_0x454d6f)=>{_0x3ecb04[_0x2c6e72]=_0x5b2839[_0x454d6f];}),_0x1deff0[_0x8e2ccd(0x1d0)](_0x3ecb04);}return _0x1deff0;}function formatTsv(_0x2302d5){const _0x158ecc=_0x5084c2;return _0x2302d5[_0x158ecc(0x1e1)](_0x2bcbcb=>RECORD_FIELDS[_0x158ecc(0x1e1)](_0x3efba4=>_0x2bcbcb[_0x3efba4])['join']('\x09'))[_0x158ecc(0x1da)]('\x0a');}function _0x2efc(_0x3143a3,_0x5836e0){_0x3143a3=_0x3143a3-0x1a0;const _0x29e9ec=_0x29e9();let _0x2efc5b=_0x29e9ec[_0x3143a3];if(_0x2efc['yxrWFO']===undefined){var _0xd6a0b5=function(_0x1368f4){const _0x1ba687='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c1a51='',_0x20b822='';for(let _0x345585=0x0,_0x555f18,_0xe05399,_0x320e05=0x0;_0xe05399=_0x1368f4['charAt'](_0x320e05++);~_0xe05399&&(_0x555f18=_0x345585%0x4?_0x555f18*0x40+_0xe05399:_0xe05399,_0x345585++%0x4)?_0x1c1a51+=String['fromCharCode'](0xff&_0x555f18>>(-0x2*_0x345585&0x6)):0x0){_0xe05399=_0x1ba687['indexOf'](_0xe05399);}for(let _0x3ee4b7=0x0,_0x286423=_0x1c1a51['length'];_0x3ee4b7<_0x286423;_0x3ee4b7++){_0x20b822+='%'+('00'+_0x1c1a51['charCodeAt'](_0x3ee4b7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20b822);};_0x2efc['WCFeEs']=_0xd6a0b5,_0x2efc['saWXrR']={},_0x2efc['yxrWFO']=!![];}const _0x229ff0=_0x29e9ec[0x0],_0x124e02=_0x3143a3+_0x229ff0,_0x5a8e8c=_0x2efc['saWXrR'][_0x124e02];return!_0x5a8e8c?(_0x2efc5b=_0x2efc['WCFeEs'](_0x2efc5b),_0x2efc['saWXrR'][_0x124e02]=_0x2efc5b):_0x2efc5b=_0x5a8e8c,_0x2efc5b;}function formatJson(_0x2cfac6){const _0x56fb6b=_0x5084c2,_0x3822b0=_0x2cfac6[_0x56fb6b(0x1e1)](_0x441589=>{const _0x5862a7={};for(const _0x4cb87b of RECORD_FIELDS){_0x5862a7[_0x4cb87b]=_0x441589[_0x4cb87b]===''?null:_0x441589[_0x4cb87b];}return _0x5862a7;}),_0x109a71={};return _0x109a71[_0x56fb6b(0x207)]=0x1,_0x109a71['count']=_0x3822b0['length'],_0x109a71[_0x56fb6b(0x202)]=_0x3822b0,JSON['stringify'](_0x109a71,null,0x2);}function formatText(_0x150a92){const _0x20e41c=_0x5084c2,_0x149211={'nPGlX':function(_0x465672,_0xdbe719){return _0x465672===_0xdbe719;},'ZHbHU':_0x20e41c(0x1e6),'FWQCW':function(_0x2fc15b,_0x3bcb51){return _0x2fc15b(_0x3bcb51);}};if(_0x149211[_0x20e41c(0x1a4)](_0x150a92[_0x20e41c(0x1b2)],0x0))return'No\x20targets\x20affected\x20(everything\x20is\x20up\x20to\x20date).';const _0x509e4f=RECORD_FIELDS[_0x20e41c(0x1e1)](_0x1f9420=>Math[_0x20e41c(0x1e4)](TEXT_HEADINGS[_0x1f9420]['length'],..._0x150a92[_0x20e41c(0x1e1)](_0x3e6283=>_0x3e6283[_0x1f9420][_0x20e41c(0x1b2)]))),_0x29fd06=_0x5cc9e6=>_0x5cc9e6['map']((_0x3b53a1,_0x6284ca)=>_0x6284ca===_0x5cc9e6['length']-0x1?_0x3b53a1:_0x3b53a1[_0x20e41c(0x1fb)](_0x509e4f[_0x6284ca]))[_0x20e41c(0x1da)]('\x20\x20')['trimEnd'](),_0x9fd8bb=_0x150a92['length']===0x1?_0x149211[_0x20e41c(0x1a6)]:_0x20e41c(0x202);return[_0x150a92['length']+'\x20'+_0x9fd8bb+_0x20e41c(0x1eb),'',_0x149211['FWQCW'](_0x29fd06,RECORD_FIELDS['map'](_0x344281=>TEXT_HEADINGS[_0x344281])),..._0x150a92[_0x20e41c(0x1e1)](_0x38abd9=>_0x29fd06(RECORD_FIELDS['map'](_0x1471a5=>_0x38abd9[_0x1471a5])))]['join']('\x0a');}export function formatRecords(_0x5b40fb,_0x34dd83){const _0x1854c2=_0x5084c2,_0x5c58b1={'umWWg':_0x1854c2(0x1ce),'lDIMu':function(_0xc9133d,_0x1e0e1a){return _0xc9133d(_0x1e0e1a);},'BKLiC':function(_0x4eab92,_0x4ae9b4){return _0x4eab92(_0x4ae9b4);}};switch(_0x34dd83){case _0x5c58b1[_0x1854c2(0x203)]:return _0x5c58b1[_0x1854c2(0x1af)](formatTsv,_0x5b40fb);case _0x1854c2(0x1db):return formatJson(_0x5b40fb);case _0x1854c2(0x1ca):return _0x5c58b1['BKLiC'](formatText,_0x5b40fb);default:throw new Error(_0x1854c2(0x1fa)+_0x34dd83);}}
|
|
1
|
+
const _0x49600f=_0x34bb;(function(_0x10c006,_0x394e56){const _0x411dd7=_0x34bb,_0x28fa39=_0x10c006();while(!![]){try{const _0x5efb18=-parseInt(_0x411dd7(0xc7))/0x1+-parseInt(_0x411dd7(0x79))/0x2+-parseInt(_0x411dd7(0x75))/0x3*(-parseInt(_0x411dd7(0xb0))/0x4)+parseInt(_0x411dd7(0x76))/0x5*(-parseInt(_0x411dd7(0xb2))/0x6)+parseInt(_0x411dd7(0x6d))/0x7*(-parseInt(_0x411dd7(0x8b))/0x8)+parseInt(_0x411dd7(0x81))/0x9+parseInt(_0x411dd7(0xa1))/0xa*(parseInt(_0x411dd7(0x88))/0xb);if(_0x5efb18===_0x394e56)break;else _0x28fa39['push'](_0x28fa39['shift']());}catch(_0x5ca7ec){_0x28fa39['push'](_0x28fa39['shift']());}}}(_0x16c2,0xecf22));import{COMMANDS,TGTRLS_COMMANDS}from'./config.js';const RECORD_SENTINEL=_0x49600f(0x92),RECORD_LINE_PREFIX=':\x20'+RECORD_SENTINEL+'\x09';export const RECORD_FIELDS=['target',_0x49600f(0xbf),_0x49600f(0xa4),_0x49600f(0xca),_0x49600f(0xae),_0x49600f(0xb5),'reason'];export const LIST_FORMATS=[_0x49600f(0xc5),_0x49600f(0x65),_0x49600f(0xb8)];const _0x41d237={};function _0x16c2(){const _0x188c51=['y3j0y2XWz20','qLvjterFueyZof9ut19gsuXf','tM8GDgfYz2v0CYbHzMzLy3rLzcaOzxzLCNL0AgLUzYbPCYb1Ccb0BYbKyxrLks4','EgP3uxq','mta2mJK1DLrvruHA','qLvjterFuLbhtevFueDn','DgfYz2v0CW','lMzPBgu','qLvjterFtvnhrG','qLvjterFu1fmufjpq19ut19tuLzqr00','qLvjterFu1fmufjpq19ut19qr00','qLvjterFq0Xmrv9qr00','mtjWD1fwyvu','mJy0nu9ICLbsBq','kMjUzgrPCG','kNbNBq','mti1nZi3ofvkAwHWqG','lM1VzhvSzq','kNnYDNbNBq','veDuuKXt','AgfZ','kMzPBgu','Cxn5CZm4l2nYDhbM','C3vIC3rYAw5N','ndi1ody5mNjmAK55Bq','C3bSAxq','y291BNq','lNbNBq','C3rYAw5NAwz5','AxPiveW','lM1LBNu','mJCWotu2nJjmDuzXsem','qLvjterFq0Xqx1bhtq','y3j0CNbNBw9K','nJGWz3vVtMTh','Cxn5CZm4l2nYDgXM','y3j0CgDT','qLvjterFu1fmuLbhtevFueDn','ChvZAa','zKHcuLy','ktOG','q09ervjnquTfx1rbuKDfva','CMvWBgfJzq','qLvjterFuezFve9FrKLmrq','qLvjterFu1fmsu5ervHFve9FrKLmrq','y3j0y2jSBw9K','C3rHCNrZv2L0Aa','thLLvhO','cua6ia','BgvUz3rO','qLvjterFu1fmvefctevFve9FrKLmrq','igfMzMvJDgvKicHKzxbLBMrLBMn5ig9YzgvYkq','jcHdt0rfuK1bs0vFveDuuKXtkq','CNvUC3fSC3rT','y3j0Bw51','qLvjterFufjurL9ut19gsuXf','mtbRBM1HsKe','qLvjterFtuvovq','y3j0CNbNCgDT','B2jQzwn0','qLvjterFuLbhx1bhtq','CgfKrw5K','teLcuKfswq','qLvjterFu1fmvurgx1rpx1nsvLbhtq','y3j0yM5Ky2jS','y3j0yM5Ky2W','jcHdt0rfuK1bs0vFteLtvf9sruftt04P','zw50CMLLCW','twfSzM9YBwvKihrHCMDLDcbSAxn0Aw5NihjLy29YzcaOzxHWzwn0zwqG','C291CMnL','vefsr0vu','mtq4mtyZmKHPCwTdwa','qLvjterFq0XqmZHFueDn','mtm1mtHiv2LxvgS','igzPzwXKCYWGz290ia','qLvjterFq0Xmrv9nt0rvteu','DgfYz2v0uMvSzwfZzq','qLvjterFu1fmuLbhtevFtu9evuXf','y3j0Chj0zG','Dhn2','qLvjterFteyZof9ut19gsuXf','Bwf4','rNvbru8','D2HPy2GGDgHLihjLy29YzcbMB3jTyxqGDxnLCYbHCYbZzxbHCMf0B3jZlG','qLvjterFtezFve9FrKLmrq','kM1VzhvSzq','BgLICMfYEq','y3j0C3fSCNbNAq','q2fUBM90igXPC3qGDgfYz2v0icC','Cxn5CZm4l2nYDgrZCgy','wLDPreK','DgfYz2v0','Dgv4Da','DMvYC2LVBG','mZm2mZmXB1DtsKTO','Cxn5CZm4l2nYDgnSCgDT','AM9PBG','DhLWzq','y3j0C3j2CgDT','y3j0yM5KCNbN','u09vuKnf','uKvbu09o','BwfW','qLvjterFuLbhtevFtu9evuXf','zM9YrwfJAa','vw5RBM93BIb0yxjNzxqGBgLZDgLUzYbMB3jTyxq6ia','ANnVBG','CMvHC29U','qLvjterFqK5ereLs','qLvjterFuKrgx1rpx0zjteu'];_0x16c2=function(){return _0x188c51;};return _0x16c2();}_0x41d237[_0x49600f(0x84)]=_0x49600f(0x78),_0x41d237[_0x49600f(0x7a)]=_0x49600f(0xbe),_0x41d237['.srvpgm']=_0x49600f(0x7b),_0x41d237[_0x49600f(0x70)]=_0x49600f(0x7e),_0x41d237[_0x49600f(0x87)]='*menu',_0x41d237['.msgf']='*msgf',_0x41d237['.bnddir']=_0x49600f(0x77);const OBJECT_TYPES=_0x41d237,_0x49aa4e={};_0x49aa4e['target']=_0x49600f(0xaf),_0x49aa4e[_0x49600f(0xbf)]=_0x49600f(0xa7),_0x49aa4e[_0x49600f(0xa4)]='OBJECT',_0x49aa4e[_0x49600f(0xca)]='TYPE',_0x49aa4e[_0x49600f(0xae)]=_0x49600f(0xcd),_0x49aa4e[_0x49600f(0xb5)]=_0x49600f(0x7c),_0x49aa4e[_0x49600f(0x66)]=_0x49600f(0xce);const TEXT_HEADINGS=_0x49aa4e,_0x4fa10b={};_0x4fa10b[_0x49600f(0x8e)]=_0x49600f(0xc0),_0x4fa10b[_0x49600f(0x6e)]=_0x49600f(0xcc),_0x4fa10b['BUILD_CBLLE_PGM']=_0x49600f(0xa9),_0x4fa10b[_0x49600f(0x74)]=_0x49600f(0xaa),_0x4fa10b[_0x49600f(0x89)]=_0x49600f(0x69),_0x4fa10b[_0x49600f(0xb1)]=_0x49600f(0xc8),_0x4fa10b[_0x49600f(0xa5)]=_0x49600f(0xa3),_0x4fa10b['BUILD_RPG38_PGM']='qsys38/crtrpgpgm',_0x4fa10b[_0x49600f(0x73)]='runsqlstm',_0x4fa10b['BUILD_SQLTRIGGER_TO_PGM']=_0x49600f(0x9e),_0x4fa10b['BUILD_MODULE_TO_PGM']=_0x49600f(0x8d),_0x4fa10b[_0x49600f(0xb6)]=_0x49600f(0xc0),_0x4fa10b[_0x49600f(0xd0)]=_0x49600f(0x8a),_0x4fa10b['BUILD_CBLLE_MODULE']=_0x49600f(0x96),_0x4fa10b[_0x49600f(0xb4)]='crtclmod',_0x4fa10b['BUILD_MODULE_TO_SRVPGM']=_0x49600f(0xcb),_0x4fa10b['BUILD_MODULE_TO_SRVPGM_ALL']='crtsrvpgm',_0x4fa10b[_0x49600f(0x72)]='runsqlstm',_0x4fa10b[_0x49600f(0xa8)]=_0x49600f(0x9e),_0x4fa10b[_0x49600f(0x68)]='crtdspf',_0x4fa10b['BUILD_DSPF_TO_FILE']='crtdspf',_0x4fa10b[_0x49600f(0x94)]='crtpf',_0x4fa10b[_0x49600f(0xbd)]='crtlf',_0x4fa10b[_0x49600f(0xa0)]=_0x49600f(0xb7),_0x4fa10b['BUILD_DSPF38_TO_FILE']=_0x49600f(0xc2),_0x4fa10b[_0x49600f(0x6a)]=_0x49600f(0x7f),_0x4fa10b[_0x49600f(0xb9)]=_0x49600f(0x8c),_0x4fa10b['BUILD_PRTF38_TO_FILE']='qsys38/crtprtf',_0x4fa10b[_0x49600f(0x9b)]=_0x49600f(0x9e),_0x4fa10b[_0x49600f(0x95)]=_0x49600f(0x9e),_0x4fa10b['BUILD_SQLVIEW_TO_FILE']=_0x49600f(0x9e),_0x4fa10b[_0x49600f(0x71)]='',_0x4fa10b[_0x49600f(0x67)]='',_0x4fa10b[_0x49600f(0xa2)]=_0x49600f(0x9f);const RECIPE_COMMANDS=_0x4fa10b;function _0x34bb(_0x4d4648,_0x4ccd8f){_0x4d4648=_0x4d4648-0x65;const _0x16c267=_0x16c2();let _0x34bbb3=_0x16c267[_0x4d4648];if(_0x34bb['AiCLGc']===undefined){var _0x31ffff=function(_0xcb7ec6){const _0x5b6406='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x141f77='',_0x3bb6cc='';for(let _0x27f134=0x0,_0x12a319,_0x292927,_0x404ad1=0x0;_0x292927=_0xcb7ec6['charAt'](_0x404ad1++);~_0x292927&&(_0x12a319=_0x27f134%0x4?_0x12a319*0x40+_0x292927:_0x292927,_0x27f134++%0x4)?_0x141f77+=String['fromCharCode'](0xff&_0x12a319>>(-0x2*_0x27f134&0x6)):0x0){_0x292927=_0x5b6406['indexOf'](_0x292927);}for(let _0x495903=0x0,_0x28d328=_0x141f77['length'];_0x495903<_0x28d328;_0x495903++){_0x3bb6cc+='%'+('00'+_0x141f77['charCodeAt'](_0x495903)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bb6cc);};_0x34bb['nddOdT']=_0x31ffff,_0x34bb['ULRlkZ']={},_0x34bb['AiCLGc']=!![];}const _0x3440fa=_0x16c267[0x0],_0x2b60bc=_0x4d4648+_0x3440fa,_0x567db3=_0x34bb['ULRlkZ'][_0x2b60bc];return!_0x567db3?(_0x34bbb3=_0x34bb['nddOdT'](_0x34bbb3),_0x34bb['ULRlkZ'][_0x2b60bc]=_0x34bbb3):_0x34bbb3=_0x567db3,_0x34bbb3;}export function objectTypeForExtension(_0xe98675){return OBJECT_TYPES[_0xe98675]||null;}export function recipeAcceptsTargetRelease(_0x24c8f7){const _0xe4d9f3=_0x49600f,_0x55ea45=RECIPE_COMMANDS[_0x24c8f7];return!!_0x55ea45&&TGTRLS_COMMANDS[_0xe4d9f3(0x7d)](_0x55ea45);}export function commandForRecipe(_0x16911f){return RECIPE_COMMANDS[_0x16911f];}export const KNOWN_COMMANDS=COMMANDS;export function renderRecordRecipe({target:_0x28b780,library:_0x137ea3,object:_0x4ae7ae,type:_0x1a2ad1,source:_0x420d89,withTargetRelease:_0x434314}){const _0x430722=_0x49600f,_0x317469={};_0x317469['HRCCl']=function(_0x185284,_0x31bd2d){return _0x185284||_0x31bd2d;},_0x317469[_0x430722(0xbb)]=_0x430722(0x9d),_0x317469[_0x430722(0x86)]=function(_0x33487b,_0x93e525){return _0x33487b+_0x93e525;};const _0x4ba9da=_0x317469,_0x128b1e={'target':_0x28b780,'library':_0x137ea3,'object':_0x4ae7ae,'type':_0x1a2ad1,'source':_0x4ba9da['HRCCl'](_0x420d89,''),'targetRelease':_0x434314?_0x4ba9da[_0x430722(0xbb)]:'','reason':_0x430722(0xab)};for(const [_0x36bf84,_0x158058]of Object[_0x430722(0xac)](_0x128b1e)){if(/[\t\n]/['test'](_0x158058))throw new Error(_0x4ba9da[_0x430722(0x86)](_0x430722(0xc1)+_0x28b780+'\x27:\x20its\x20'+_0x36bf84+'\x20contains\x20a\x20tab\x20or\x20newline,\x20',_0x430722(0xbc)));}const _0x254f2a=RECORD_FIELDS[_0x430722(0xcf)](_0x4d3cc5=>_0x128b1e[_0x4d3cc5]);return _0x430722(0x99)+RECORD_SENTINEL+'\x09'+_0x254f2a['join']('\x09');}export function isRecordLine(_0x24060d){const _0x3c67c0=_0x49600f;return _0x24060d[_0x3c67c0(0x97)](RECORD_LINE_PREFIX);}export function parseRecords(_0x5680e3){const _0x32ec8f=_0x49600f,_0x34df5b={'vAhue':function(_0x4bf8df,_0x594958){return _0x4bf8df(_0x594958);}},_0x3b4491=[];for(const _0x474187 of _0x5680e3[_0x32ec8f(0x82)]('\x0a')){const _0x390ab3=_0x474187[_0x32ec8f(0x93)](/\r$/,'');if(!_0x34df5b['vAhue'](isRecordLine,_0x390ab3))continue;const _0x48e3f0=_0x390ab3[_0x32ec8f(0x80)](RECORD_LINE_PREFIX[_0x32ec8f(0x9a)])[_0x32ec8f(0x82)]('\x09');if(_0x48e3f0[_0x32ec8f(0x9a)]!==RECORD_FIELDS[_0x32ec8f(0x9a)])throw new Error(_0x32ec8f(0xad)+RECORD_FIELDS[_0x32ec8f(0x9a)]+_0x32ec8f(0xb3)+_0x48e3f0[_0x32ec8f(0x9a)]+_0x32ec8f(0x91)+_0x390ab3);const _0x192286={};RECORD_FIELDS[_0x32ec8f(0xd1)]((_0x5ce876,_0x55dda7)=>{_0x192286[_0x5ce876]=_0x48e3f0[_0x55dda7];}),_0x3b4491[_0x32ec8f(0x8f)](_0x192286);}return _0x3b4491;}function formatTsv(_0xd0eb49){const _0x4fc353=_0x49600f;return _0xd0eb49[_0x4fc353(0xcf)](_0x384e36=>RECORD_FIELDS[_0x4fc353(0xcf)](_0x3046d7=>_0x384e36[_0x3046d7])[_0x4fc353(0xc9)]('\x09'))[_0x4fc353(0xc9)]('\x0a');}function formatJson(_0x355993){const _0x1c4969=_0x49600f,_0x3c9f27={};_0x3c9f27[_0x1c4969(0x90)]=function(_0x3dde22,_0xef2a71){return _0x3dde22===_0xef2a71;};const _0x50e7ed=_0x3c9f27,_0x3bbe70=_0x355993[_0x1c4969(0xcf)](_0x2ce52a=>{const _0x434570=_0x1c4969,_0x23757f={};for(const _0x2bf12c of RECORD_FIELDS){_0x23757f[_0x2bf12c]=_0x50e7ed[_0x434570(0x90)](_0x2ce52a[_0x2bf12c],'')?null:_0x2ce52a[_0x2bf12c];}return _0x23757f;}),_0x283906={};return _0x283906[_0x1c4969(0xc6)]=0x1,_0x283906[_0x1c4969(0x83)]=_0x3bbe70['length'],_0x283906[_0x1c4969(0x6f)]=_0x3bbe70,JSON[_0x1c4969(0x85)](_0x283906,null,0x2);}function formatText(_0x2670f7){const _0x3a280c=_0x49600f,_0x583b2e={'LyeTz':_0x3a280c(0x6b),'ZWiDI':'targets','fcmeL':function(_0x9ee4c9,_0x1e982b){return _0x9ee4c9(_0x1e982b);}};if(_0x2670f7[_0x3a280c(0x9a)]===0x0)return _0x583b2e[_0x3a280c(0x98)];const _0x1769b8=RECORD_FIELDS[_0x3a280c(0xcf)](_0x1bd6d2=>Math[_0x3a280c(0xba)](TEXT_HEADINGS[_0x1bd6d2]['length'],..._0x2670f7[_0x3a280c(0xcf)](_0x3acde2=>_0x3acde2[_0x1bd6d2][_0x3a280c(0x9a)]))),_0x3fae06=_0x58a868=>_0x58a868[_0x3a280c(0xcf)]((_0x553e50,_0x49b568)=>_0x49b568===_0x58a868[_0x3a280c(0x9a)]-0x1?_0x553e50:_0x553e50[_0x3a280c(0xa6)](_0x1769b8[_0x49b568]))[_0x3a280c(0xc9)]('\x20\x20')['trimEnd'](),_0xaf3fce=_0x2670f7[_0x3a280c(0x9a)]===0x1?_0x3a280c(0xc4):_0x583b2e[_0x3a280c(0xc3)];return[_0x2670f7['length']+'\x20'+_0xaf3fce+_0x3a280c(0x9c),'',_0x583b2e['fcmeL'](_0x3fae06,RECORD_FIELDS['map'](_0x5d5b9e=>TEXT_HEADINGS[_0x5d5b9e])),..._0x2670f7[_0x3a280c(0xcf)](_0x156a7e=>_0x3fae06(RECORD_FIELDS[_0x3a280c(0xcf)](_0x399fa1=>_0x156a7e[_0x399fa1])))]['join']('\x0a');}export function formatRecords(_0x15ed56,_0x5bdbc2){const _0x359ab7=_0x49600f,_0x38f65f={'vnmzw':_0x359ab7(0xb8),'xjwQt':function(_0x10bada,_0x45abc7){return _0x10bada(_0x45abc7);}};switch(_0x5bdbc2){case _0x38f65f['vnmzw']:return formatTsv(_0x15ed56);case _0x359ab7(0x65):return formatJson(_0x15ed56);case _0x359ab7(0xc5):return _0x38f65f[_0x359ab7(0x6c)](formatText,_0x15ed56);default:throw new Error(_0x359ab7(0xd2)+_0x5bdbc2);}}
|
package/dist/lib/writer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43e921,_0x2c854f){const _0x5adcec=_0x1770,_0x2991ba=_0x43e921();while(!![]){try{const _0x4e37c9=-parseInt(_0x5adcec(0x1c3))/0x1*(parseInt(_0x5adcec(0x1da))/0x2)+parseInt(_0x5adcec(0x1d0))/0x3+parseInt(_0x5adcec(0x1c7))/0x4+parseInt(_0x5adcec(0x1cb))/0x5*(-parseInt(_0x5adcec(0x1dd))/0x6)+parseInt(_0x5adcec(0x1d2))/0x7+parseInt(_0x5adcec(0x1ce))/0x8*(parseInt(_0x5adcec(0x1dc))/0x9)+-parseInt(_0x5adcec(0x1d9))/0xa;if(_0x4e37c9===_0x2c854f)break;else _0x2991ba['push'](_0x2991ba['shift']());}catch(_0x1dfb51){_0x2991ba['push'](_0x2991ba['shift']());}}}(_0x31c8,0x9f19e));import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';function _0x31c8(){const _0x380ee6=['CMvJDxjZAxzL','Dg1WrgLY','y1zwC1e','mtqYDxPcy3fM','CNvSzxmUBwS','yMjotgC','CvPUz3G','mte0ndi1mKz2EfHQCa','q09ervjnquTfx0vnufrzidO9','DgfYz2v0C0zPBgu','AM9PBG','mJe1yMXmDvDs','y29UzMLNlM1R','DgfYz2v0CY5TAW','mtzyrxPyvge','tufgzNm','mJKZmtmYngvrwgzeDG','C2L6zq','mZCXmZiZnfLytMDvqW','CvHhDg0','Ag1QD1a','z09AuLi','idO9ia','yxH4yMS','vefsr0vuuYa6psa','mti5otG1otb1uxLvrKG','mtC4CfDVDNr5','DM5Qu2G','ntaYnJC2muj5renwva','mtmYmdCYs1DmtvjJ','BwfWCgLUz0zPBgu','ChvZAa','DxrMoa','v2vbyLa','CMvWBgfJzq','C3rYAw5NAwz5'];_0x31c8=function(){return _0x380ee6;};return _0x31c8();}function _0x1770(_0x3b002e,_0x563c17){_0x3b002e=_0x3b002e-0x1bb;const _0x31c85c=_0x31c8();let _0x177073=_0x31c85c[_0x3b002e];if(_0x1770['CKezjp']===undefined){var _0x346fdf=function(_0x83ed9f){const _0x4785e8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d39ac='',_0x2c4e4f='';for(let _0x265160=0x0,_0x3e5593,_0x3988b4,_0x3b3263=0x0;_0x3988b4=_0x83ed9f['charAt'](_0x3b3263++);~_0x3988b4&&(_0x3e5593=_0x265160%0x4?_0x3e5593*0x40+_0x3988b4:_0x3988b4,_0x265160++%0x4)?_0x4d39ac+=String['fromCharCode'](0xff&_0x3e5593>>(-0x2*_0x265160&0x6)):0x0){_0x3988b4=_0x4785e8['indexOf'](_0x3988b4);}for(let _0x369e5e=0x0,_0x47fdbd=_0x4d39ac['length'];_0x369e5e<_0x47fdbd;_0x369e5e++){_0x2c4e4f+='%'+('00'+_0x4d39ac['charCodeAt'](_0x369e5e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c4e4f);};_0x1770['lKEXjZ']=_0x346fdf,_0x1770['KmCUAv']={},_0x1770['CKezjp']=!![];}const _0x24e8e8=_0x31c85c[0x0],_0x7bf8ad=_0x3b002e+_0x24e8e8,_0x4b63c5=_0x1770['KmCUAv'][_0x7bf8ad];return!_0x4b63c5?(_0x177073=_0x1770['lKEXjZ'](_0x177073),_0x1770['KmCUAv'][_0x7bf8ad]=_0x177073):_0x177073=_0x4b63c5,_0x177073;}import{randomUUID}from'crypto';import{tmpdir}from'os';function ensureDir(_0x472598){const _0x6a8e1f=_0x1770;if(!existsSync(_0x472598)){const _0x227215={};_0x227215[_0x6a8e1f(0x1c0)]=!![],mkdirSync(_0x472598,_0x227215);}}export function writeRules(_0x14c224,_0x1dd4d7,_0x2f17bb={},_0x1093a3=null){const _0x5f033e=_0x1770,_0x3bb140={'qZngx':function(_0x32bcf1){return _0x32bcf1();},'qXGtm':function(_0x598623,_0x4dc280,_0x2d6ad3){return _0x598623(_0x4dc280,_0x2d6ad3);},'WeAbP':_0x5f033e(0x1cd),'cVVsQ':'target-mapping.json','sYXFF':function(_0x6bf81b,_0x5899ef,_0x2ecd1b,_0x32d1e2){return _0x6bf81b(_0x5899ef,_0x2ecd1b,_0x32d1e2);},'hmjwP':_0x5f033e(0x1bc),'bbNLg':function(_0x83bbc9,_0x34f72b,_0x59bf1e,_0x1d6b98){return _0x83bbc9(_0x34f72b,_0x59bf1e,_0x1d6b98);}};if(!_0x1093a3){const _0x5db420=_0x3bb140[_0x5f033e(0x1c6)](randomUUID)[_0x5f033e(0x1be)](/-/g,'');_0x1093a3=_0x3bb140[_0x5f033e(0x1d3)](join,tmpdir(),'cm-'+_0x5db420);}ensureDir(_0x1093a3);const _0x1a87ee=_0x3bb140[_0x5f033e(0x1d3)](join,_0x1093a3,_0x5f033e(0x1c4)),_0x2e1837=join(_0x1093a3,_0x3bb140[_0x5f033e(0x1bd)]),_0x2bf143=join(_0x1093a3,_0x3bb140[_0x5f033e(0x1c2)]),_0x491565=_0x14c224[_0x5f033e(0x1ca)]('\x0a')+'\x0a';_0x3bb140['sYXFF'](writeFileSync,_0x1a87ee,_0x491565,_0x3bb140[_0x5f033e(0x1d4)]);const _0x14677d=_0x5f033e(0x1d8)+_0x1dd4d7[_0x5f033e(0x1ca)]('\x20')+'\x0a';writeFileSync(_0x2e1837,_0x14677d,_0x5f033e(0x1bc));const _0x487233=JSON[_0x5f033e(0x1bf)](_0x2f17bb,null,0x2);_0x3bb140[_0x5f033e(0x1c5)](writeFileSync,_0x2bf143,_0x487233,'utf8');const _0x5e480a={};return _0x5e480a['rulesFile']=_0x1a87ee,_0x5e480a[_0x5f033e(0x1c9)]=_0x2e1837,_0x5e480a[_0x5f033e(0x1de)]=_0x2bf143,_0x5e480a[_0x5f033e(0x1c1)]=_0x1093a3,_0x5e480a;}export function writeConfigMk(_0x129e93,_0x499a32){const _0x15327a=_0x1770,_0x18ada1={'vnjSh':function(_0xb9b0fe,_0x500a42,_0x447bae){return _0xb9b0fe(_0x500a42,_0x447bae);},'MAFfs':_0x15327a(0x1cc),'axxbk':_0x15327a(0x1c8),'gOZRR':function(_0x28fd3a,_0xb0f9ab){return _0x28fd3a+_0xb0f9ab;},'FgcfY':_0x15327a(0x1bc)};if(!_0x499a32||_0x499a32[_0x15327a(0x1d1)]===0x0)return null;ensureDir(_0x129e93);const _0x2a4767=_0x18ada1[_0x15327a(0x1db)](join,_0x129e93,_0x18ada1[_0x15327a(0x1cf)]),_0x1fa912=[_0x18ada1[_0x15327a(0x1d7)]];for(const [_0x2b4d91,_0x147e04]of _0x499a32){_0x1fa912[_0x15327a(0x1bb)](_0x2b4d91+_0x15327a(0x1d6)+_0x147e04);}return writeFileSync(_0x2a4767,_0x18ada1[_0x15327a(0x1d5)](_0x1fa912[_0x15327a(0x1ca)]('\x0a'),'\x0a'),_0x18ada1['FgcfY']),_0x2a4767;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@profoundlogic/codermake",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Make wrapper framework for IBM i development that simplifies build rules",
|
|
5
5
|
"main": "dist/bin/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
"test": "npm run test:unit && npm run test:integration",
|
|
15
15
|
"test:unit": "node --test test/unit/**/*.test.js",
|
|
16
16
|
"test:integration": "CODERMAKE_E2E_TEST=true node --test --test-concurrency=1 test/integration/**/*.test.js",
|
|
17
|
+
"bootstrap": "git submodule update --init --recursive && git config submodule.recurse true && git config push.recurseSubmodules check",
|
|
17
18
|
"build": "node scripts/build.js",
|
|
18
19
|
"clean": "rm -rf dist/",
|
|
19
20
|
"test:dist": "npm run build && npm run test:dist:unit && npm run test:dist:integration",
|
|
20
21
|
"test:dist:unit": "node --test dist/test/unit/**/*.test.js",
|
|
21
22
|
"test:dist:integration": "CODERMAKE_E2E_TEST=true node --test --test-concurrency=1 dist/test/integration/**/*.test.js",
|
|
22
|
-
"lint": "eslint . --ignore-pattern dist/",
|
|
23
|
+
"lint": "eslint . --ignore-pattern dist/ --ignore-pattern vendor/",
|
|
23
24
|
"start": "./bin/index.js",
|
|
24
25
|
"check:multi-library-env": "node -e \"import('dotenv/config').then(() => { if (!process.env.CODERMAKE_E2E_LIBRARY_MAP || !process.env.CODERMAKE_E2E_LIBRARY_MAP.trim()) { console.error('CODERMAKE_E2E_LIBRARY_MAP must be set for prepublish (e.g. \\\"LIBA=DEVLIBA LIBB=DEVLIBB\\\"). Gates the multi-library output integration tests.'); process.exit(1); } })\"",
|
|
25
26
|
"prepublishOnly": "npm run check:multi-library-env && npm run lint && npm test && npm run build && npm run test:dist"
|
|
@@ -83,6 +83,8 @@ custdata.file: custdata.pf
|
|
|
83
83
|
setup.pgm: setup.clle
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
+
**The first normal prerequisite is the source** that creates the object, and it is what selects the compile command. Normal prerequisites after it are dependencies: they force a rebuild when they change but never change the command.
|
|
87
|
+
|
|
86
88
|
### Order-only prerequisites
|
|
87
89
|
|
|
88
90
|
Use `|` for objects that must exist before building the target but should not trigger a rebuild when they change. This is typical for binding directories and database files.
|
|
@@ -91,6 +93,35 @@ Use `|` for objects that must exist before building the target but should not tr
|
|
|
91
93
|
mypgm.pgm: mypgm.rpgle mysrvpgm.srvpgm | mybnddir.bnddir mytable.file
|
|
92
94
|
```
|
|
93
95
|
|
|
96
|
+
### File objects that depend on other files
|
|
97
|
+
|
|
98
|
+
IBM i `*FILE` objects often depend on other files, and often on more than one: a logical file is based on one or more physical files, and a file of any type can take its field definitions from a field reference physical file (DDS `REF`/`REFFLD`). List the dependency's **source** as a normal prerequisite (so a change to it rebuilds the dependent file), and the dependency's **file object** as an order-only prerequisite (so it exists on IBM i at compile time):
|
|
99
|
+
|
|
100
|
+
```makefile
|
|
101
|
+
# Field reference physical file
|
|
102
|
+
fldref.file: fldref.pf
|
|
103
|
+
|
|
104
|
+
# Physical files whose fields come from the field reference file (REF)
|
|
105
|
+
custp.file: custp.pf fldref.pf | fldref.file
|
|
106
|
+
ordp.file: ordp.pf fldref.pf | fldref.file
|
|
107
|
+
|
|
108
|
+
# Logical file over one physical file
|
|
109
|
+
custl.file: custl.lf custp.pf | custp.file
|
|
110
|
+
|
|
111
|
+
# Join logical file over two physical files
|
|
112
|
+
custjoin.file: custjoin.lf custp.pf ordp.pf | custp.file ordp.file
|
|
113
|
+
|
|
114
|
+
# Display file with field references to two physical files (REF and REFFLD)
|
|
115
|
+
custd.file: custd.dspf fldref.pf ordp.pf | fldref.file ordp.file
|
|
116
|
+
|
|
117
|
+
# SQL view over a DDS physical file in another source directory
|
|
118
|
+
custvw.file: custvw.view.sql qddssrc/custp.pf | custp.file
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Keep the creating source first: `custl.file` compiles with `CRTLF` because `custl.lf` is the first prerequisite, not because of where `.pf` appears. This works for every source type that can create a `*FILE` (`.dspf`, `.pf`, `.lf`, `.prtf`, their System/38 `*38` variants, `.json`, and `.table.sql`/`.index.sql`/`.view.sql`).
|
|
122
|
+
|
|
123
|
+
`CRTPF`/`CRTLF`/`CRTDSPF`/`CRTPRTF` have no `REPLACE` parameter, so rebuilding a file whose object already exists fails with `CPF5813` — delete the object or run `codermake clean` first.
|
|
124
|
+
|
|
94
125
|
### Cross-directory references
|
|
95
126
|
|
|
96
127
|
Files with a path separator are treated as relative to the project root (not the Rules.mk directory):
|