UNPKG

trakk-js

Version:

Automatic Documentation Generation - Real-Time Code Execution Flow - Testing / Debugging - Onboarding - for Front-End Applications

1 lines 3.79 kB
const _0x27c253=_0x3d3f;(function(_0xde7cca,_0x3e4c5e){const _0x18db27=_0x3d3f,_0x4cb7f5=_0xde7cca();while(!![]){try{const _0x107ebe=-parseInt(_0x18db27(0x1ce))/0x1*(parseInt(_0x18db27(0x1bf))/0x2)+-parseInt(_0x18db27(0x1cb))/0x3*(parseInt(_0x18db27(0x1c5))/0x4)+parseInt(_0x18db27(0x1c7))/0x5*(parseInt(_0x18db27(0x1cc))/0x6)+-parseInt(_0x18db27(0x1c8))/0x7+parseInt(_0x18db27(0x1be))/0x8*(-parseInt(_0x18db27(0x1c3))/0x9)+-parseInt(_0x18db27(0x1cd))/0xa*(-parseInt(_0x18db27(0x1d4))/0xb)+parseInt(_0x18db27(0x1c6))/0xc*(parseInt(_0x18db27(0x1ca))/0xd);if(_0x107ebe===_0x3e4c5e)break;else _0x4cb7f5['push'](_0x4cb7f5['shift']());}catch(_0x24e2e8){_0x4cb7f5['push'](_0x4cb7f5['shift']());}}}(_0x3d8b,0xd64f0));function _0x3d8b(){const _0x5de68c=['2139672gfyHZy','light','true','window.______trkkjslfse','9WAWRNm','join','1384756grqZLC','189516LXwiXx','235SVySAw','7801535myZhBN','readFileSync','1963MLGkgv','9dLBDMS','201252lAkwMJ','10Tpylmb','1JLTKtJ','\x20=\x20\x22','./trkc/load-trakk-ui-app.js','\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20','utf8','url','2496670EVjHjE','\x0a\x20\x20\x20\x20})();\x0a\x20\x20','?key=','false','699768YEXVqC'];_0x3d8b=function(){return _0x5de68c;};return _0x3d8b();}function _0x3d3f(_0x55f885,_0x4d0a28){const _0x3d8b52=_0x3d8b();return _0x3d3f=function(_0x3d3f96,_0x1a3fc1){_0x3d3f96=_0x3d3f96-0x1bc;let _0x3ecd18=_0x3d8b52[_0x3d3f96];return _0x3ecd18;},_0x3d3f(_0x55f885,_0x4d0a28);}import _0x3be93d from'fs';import _0x5ecac3 from'path';import{fileURLToPath}from'url';import{dirname}from'path';const __filename=fileURLToPath(import.meta[_0x27c253(0x1d3)]),__dirname=dirname(__filename);function _getCodeFrom(_0x4c0ec0,_0xc91b82){const _0x213e3e=_0x27c253,_0x202ae9={'iUHmS':_0x213e3e(0x1d2)},_0xf5d2b5=_0x3be93d[_0x213e3e(0x1c9)](_0x5ecac3[_0x213e3e(0x1c4)](__dirname,_0x4c0ec0),_0x202ae9['iUHmS']);let _0x2d9427=_0xf5d2b5;return _0xc91b82?.['forEach']?.(_0x31ab35=>{_0x2d9427=_0x2d9427['replace'](_0x31ab35['replace'],_0x31ab35['with']);}),_0x2d9427;}export default function ({trakkUiAppJsFileSrc,trakkListArrayName,trakkLineFunctionName,localFilerServerEndpoint,config}){const _0x5c8e6c=_0x27c253,[,apiKey]=trakkUiAppJsFileSrc['split'](_0x5c8e6c(0x1bc)),loadTrakkUiAppCode=_getCodeFrom(_0x5c8e6c(0x1d0),[{'replace':/{TRAKK_UI_APP_SCRIPT_LOADER_SRC_PLACEHOLDER}/g,'with':trakkUiAppJsFileSrc},{'replace':/{API_KEY_PLACEHOLDER}/g,'with':apiKey},{'replace':/{MINI_BOOLEAN_PLACEHOLDER}/g,'with':config?.[_0x5c8e6c(0x1c0)]===!![]?_0x5c8e6c(0x1c1):_0x5c8e6c(0x1bd)}]),trakkUserInteractionCode=_getCodeFrom('./trkc/trku.js',[{'replace':/{API_KEY_PLACEHOLDER}/g,'with':apiKey},{'replace':/{TRAKKLIST_ARRAY_NAME_PLACEHOLDER}/g,'with':trakkListArrayName},{'replace':/{TRAKK_FUNCTION_NAME_PLACEHOLDER}/g,'with':trakkLineFunctionName}]),trakkRequestsCode=_getCodeFrom('./trkc/trkr.js',[{'replace':/{API_KEY_PLACEHOLDER}/g,'with':apiKey},{'replace':/{TRAKKLIST_ARRAY_NAME_PLACEHOLDER}/g,'with':trakkListArrayName},{'replace':/{TRAKK_FUNCTION_NAME_PLACEHOLDER}/g,'with':trakkLineFunctionName}]),defineTrakkLineFunctionCode=_getCodeFrom('./trkc/trkdlf.js',[{'replace':/{TRAKKLIST_ARRAY_NAME_PLACEHOLDER}/g,'with':trakkListArrayName},{'replace':/{TRAKK_FUNCTION_NAME_PLACEHOLDER}/g,'with':trakkLineFunctionName},{'replace':/{LOCAL_FILE_SERVER_ENDPOINT}/g,'with':localFilerServerEndpoint}]),localServerEndpoint=_0x5c8e6c(0x1c2);return'\x0a\x20\x20\x20\x20;(function()\x20{\x0a\x20\x20\x20\x20\x20\x20if\x20(window)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+localServerEndpoint+_0x5c8e6c(0x1cf)+localFilerServerEndpoint+'\x22;\x0a\x20\x20\x20\x20\x20\x20};\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20'+defineTrakkLineFunctionCode+'\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20'+trakkRequestsCode+_0x5c8e6c(0x1d1)+trakkUserInteractionCode+_0x5c8e6c(0x1d1)+loadTrakkUiAppCode+_0x5c8e6c(0x1d5);}