@treasuredata/tdx 2026.3.26 → 2026.3.27
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/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.d.ts.map +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/oauth.js.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a190_0x1493(){const _0x1f721c=['12NVpYyn','5126967dtkvJR','84997nkUqhd','2992064kXmNpw','1302049INVgWx','map','511422TpVbFZ','slice','8TvMMsQ','1469464WBMuoU','1419005hDpPJR','length','push'];a190_0x1493=function(){return _0x1f721c;};return a190_0x1493();}(function(_0x561c74,_0x4c0ad9){const _0x662eb6=a190_0x71c8,_0xc68f93=_0x561c74();while(!![]){try{const _0x2db4fe=-parseInt(_0x662eb6(0x1d3))/0x1*(-parseInt(_0x662eb6(0x1d9))/0x2)+-parseInt(_0x662eb6(0x1d7))/0x3+parseInt(_0x662eb6(0x1da))/0x4+parseInt(_0x662eb6(0x1db))/0x5+-parseInt(_0x662eb6(0x1d1))/0x6*(parseInt(_0x662eb6(0x1d5))/0x7)+parseInt(_0x662eb6(0x1d4))/0x8+-parseInt(_0x662eb6(0x1d2))/0x9;if(_0x2db4fe===_0x4c0ad9)break;else _0xc68f93['push'](_0xc68f93['shift']());}catch(_0x3e6422){_0xc68f93['push'](_0xc68f93['shift']());}}}(a190_0x1493,0x3dc54));function a190_0x71c8(_0x39ff9f,_0x33ee02){_0x39ff9f=_0x39ff9f-0x1d1;const _0x149325=a190_0x1493();let _0x71c8d=_0x149325[_0x39ff9f];return _0x71c8d;}export async function batchAsync(_0x1520f6,_0x1f01ec,_0xc949db=0xa){const _0x2572f3=a190_0x71c8,_0x1ed5a5=[];for(let _0x54d68c=0x0;_0x54d68c<_0x1520f6[_0x2572f3(0x1dc)];_0x54d68c+=_0xc949db){const _0x543f67=_0x1520f6[_0x2572f3(0x1d8)](_0x54d68c,_0x54d68c+_0xc949db),_0x34ec36=await Promise['all'](_0x543f67[_0x2572f3(0x1d6)](_0x1f01ec));_0x1ed5a5[_0x2572f3(0x1dd)](..._0x34ec36);}return _0x1ed5a5;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a191_0x34af(_0x254d71,_0x14ffed){_0x254d71=_0x254d71-0x8f;const _0x2c6464=a191_0x2c64();let _0x34afd3=_0x2c6464[_0x254d71];return _0x34afd3;}(function(_0x47f0ca,_0x2bb375){const _0xa721fb=a191_0x34af,_0x529c36=_0x47f0ca();while(!![]){try{const _0x24c47e=parseInt(_0xa721fb(0x95))/0x1+-parseInt(_0xa721fb(0xa3))/0x2+parseInt(_0xa721fb(0xa6))/0x3+-parseInt(_0xa721fb(0x99))/0x4*(-parseInt(_0xa721fb(0x91))/0x5)+parseInt(_0xa721fb(0xa1))/0x6+parseInt(_0xa721fb(0xa0))/0x7+-parseInt(_0xa721fb(0x9d))/0x8;if(_0x24c47e===_0x2bb375)break;else _0x529c36['push'](_0x529c36['shift']());}catch(_0x4dc1dc){_0x529c36['push'](_0x529c36['shift']());}}}(a191_0x2c64,0x6a8ca));import*as a191_0x2d0cd9 from'chalk';const Chalk=a191_0x2d0cd9['Chalk'];function a191_0x2c64(){const _0x26165d=['object','string','length','438659IPWUeU','join','map','yellow','796cXXYZa','green','boolean','entries','3370040WaUCDH','noColor','cyan','893011Ifkzgl','419226NhZsMM','isArray','1621626ojFStb','stringify','dim','816036rTxgbX','repeat','null','19105SaPgiH'];a191_0x2c64=function(){return _0x26165d;};return a191_0x2c64();}export function shouldUseColor(_0x494c79={}){const _0x36be58=a191_0x34af;if(_0x494c79[_0x36be58(0x9e)]===!![])return![];if(_0x494c79['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout']['isTTY']??![];}export function getChalk(_0x1b16d4={}){if(shouldUseColor(_0x1b16d4))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2c5bea,_0x571d00={}){return getChalk(_0x571d00)['dim'](_0x2c5bea);}export function colorHeader(_0x571051,_0x305768={}){const _0x53d915=a191_0x34af;return getChalk(_0x305768)[_0x53d915(0x9f)](_0x571051);}export function colorType(_0xd46f21,_0x5ca3d8={}){return getChalk(_0x5ca3d8)['dim'](_0xd46f21);}export function colorJSONKey(_0x253538,_0x5318f0={}){return getChalk(_0x5318f0)['blue'](_0x253538);}export function colorJSONString(_0x13ffa7,_0x1566cf={}){const _0x4613d2=a191_0x34af;return getChalk(_0x1566cf)[_0x4613d2(0x9a)](_0x13ffa7);}export function colorJSONNumber(_0x25f38c,_0x2706a1={}){const _0x4e8101=a191_0x34af;return getChalk(_0x2706a1)[_0x4e8101(0x9f)](_0x25f38c);}export function colorJSONBoolean(_0x31e3eb,_0x568329={}){const _0x250892=a191_0x34af;return getChalk(_0x568329)[_0x250892(0x98)](_0x31e3eb);}export function colorJSONNull(_0x1d6c31,_0x70f957={}){const _0x20439a=a191_0x34af;return getChalk(_0x70f957)[_0x20439a(0xa5)](_0x1d6c31);}export function colorizeJSONCompact(_0x57a752,_0x2eb8a0={}){const _0x704036=a191_0x34af;if(!shouldUseColor(_0x2eb8a0))return JSON[_0x704036(0xa4)](_0x57a752);if(_0x57a752===null)return colorJSONNull(_0x704036(0x90),_0x2eb8a0);if(typeof _0x57a752===_0x704036(0x9b))return colorJSONBoolean(String(_0x57a752),_0x2eb8a0);if(typeof _0x57a752==='number')return colorJSONNumber(String(_0x57a752),_0x2eb8a0);if(typeof _0x57a752===_0x704036(0x93))return colorJSONString(JSON[_0x704036(0xa4)](_0x57a752),_0x2eb8a0);if(Array[_0x704036(0xa2)](_0x57a752)){if(_0x57a752[_0x704036(0x94)]===0x0)return'[]';const _0x15541a=_0x57a752[_0x704036(0x97)](_0x414ac2=>colorizeJSONCompact(_0x414ac2,_0x2eb8a0));return'['+_0x15541a['join'](',')+']';}if(typeof _0x57a752===_0x704036(0x92)){const _0x13de36=Object[_0x704036(0x9c)](_0x57a752);if(_0x13de36[_0x704036(0x94)]===0x0)return'{}';const _0x5c1637=_0x13de36[_0x704036(0x97)](([_0x242260,_0x3e57a3])=>{const _0x12fdf7=colorJSONKey(JSON['stringify'](_0x242260),_0x2eb8a0),_0x5c2653=colorizeJSONCompact(_0x3e57a3,_0x2eb8a0);return _0x12fdf7+':'+_0x5c2653;});return'{'+_0x5c1637['join'](',')+'}';}return String(_0x57a752);}export function colorizeJSON(_0x4bca52,_0x547f60={},_0x58d1a=0x0){const _0x2e9c00=a191_0x34af;if(!shouldUseColor(_0x547f60))return JSON[_0x2e9c00(0xa4)](_0x4bca52,null,0x2);const _0x1355e0='\x20'[_0x2e9c00(0x8f)](_0x58d1a),_0x39b63e=_0x58d1a+0x2;if(_0x4bca52===null)return colorJSONNull('null',_0x547f60);if(typeof _0x4bca52===_0x2e9c00(0x9b))return colorJSONBoolean(String(_0x4bca52),_0x547f60);if(typeof _0x4bca52==='number')return colorJSONNumber(String(_0x4bca52),_0x547f60);if(typeof _0x4bca52===_0x2e9c00(0x93))return colorJSONString(JSON[_0x2e9c00(0xa4)](_0x4bca52),_0x547f60);if(Array['isArray'](_0x4bca52)){if(_0x4bca52[_0x2e9c00(0x94)]===0x0)return'[]';const _0x1529af=_0x4bca52[_0x2e9c00(0x97)](_0x16ef0a=>{const _0x25a130=_0x2e9c00,_0x4eb528=colorizeJSON(_0x16ef0a,_0x547f60,_0x39b63e);return''+'\x20'[_0x25a130(0x8f)](_0x39b63e)+_0x4eb528;});return'[\x0a'+_0x1529af[_0x2e9c00(0x96)](',\x0a')+('\x0a'+_0x1355e0+']');}if(typeof _0x4bca52===_0x2e9c00(0x92)){const _0x376fe7=Object[_0x2e9c00(0x9c)](_0x4bca52);if(_0x376fe7[_0x2e9c00(0x94)]===0x0)return'{}';const _0x5e14bd=_0x376fe7['map'](([_0x139bb7,_0xdfef0])=>{const _0x56faef=_0x2e9c00,_0x344c7b=colorJSONKey(JSON[_0x56faef(0xa4)](_0x139bb7),_0x547f60),_0x17a83c=colorizeJSON(_0xdfef0,_0x547f60,_0x39b63e);return''+'\x20'[_0x56faef(0x8f)](_0x39b63e)+_0x344c7b+':\x20'+_0x17a83c;});return'{\x0a'+_0x5e14bd['join'](',\x0a')+('\x0a'+_0x1355e0+'}');}return String(_0x4bca52);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b5597,_0x421273){const _0x3c1415=a192_0x1844,_0x361990=_0x1b5597();while(!![]){try{const _0x54c71a=-parseInt(_0x3c1415(0xbf))/0x1*(-parseInt(_0x3c1415(0xbe))/0x2)+-parseInt(_0x3c1415(0xca))/0x3*(parseInt(_0x3c1415(0xd9))/0x4)+parseInt(_0x3c1415(0xc3))/0x5*(-parseInt(_0x3c1415(0xc0))/0x6)+-parseInt(_0x3c1415(0xcc))/0x7+parseInt(_0x3c1415(0xc2))/0x8+-parseInt(_0x3c1415(0xce))/0x9*(parseInt(_0x3c1415(0xd4))/0xa)+parseInt(_0x3c1415(0xd1))/0xb;if(_0x54c71a===_0x421273)break;else _0x361990['push'](_0x361990['shift']());}catch(_0x2dce65){_0x361990['push'](_0x361990['shift']());}}}(a192_0xa4c2,0xd5987));import a192_0x5ac4fb from'chalk';export function generateDiff(_0x1359d2,_0x3d135a){const _0x4d4dc2=a192_0x1844,_0x55eed0=_0x1359d2[_0x4d4dc2(0xc1)]('\x0a'),_0x4ae745=_0x3d135a['split']('\x0a'),_0x39ef89=[],_0x1da78f=computeLCS(_0x55eed0,_0x4ae745);let _0x3288e7=0x0,_0x28a8a2=0x0,_0x15659b=0x0;while(_0x3288e7<_0x55eed0[_0x4d4dc2(0xc5)]||_0x28a8a2<_0x4ae745[_0x4d4dc2(0xc5)]){if(_0x15659b<_0x1da78f[_0x4d4dc2(0xc5)]&&_0x3288e7<_0x55eed0[_0x4d4dc2(0xc5)]&&_0x55eed0[_0x3288e7]===_0x1da78f[_0x15659b])_0x28a8a2<_0x4ae745[_0x4d4dc2(0xc5)]&&_0x4ae745[_0x28a8a2]===_0x1da78f[_0x15659b]?(_0x39ef89[_0x4d4dc2(0xd0)]({'type':_0x4d4dc2(0xd2),'content':_0x55eed0[_0x3288e7]}),_0x3288e7++,_0x28a8a2++,_0x15659b++):(_0x39ef89[_0x4d4dc2(0xd0)]({'type':'added','content':_0x4ae745[_0x28a8a2]}),_0x28a8a2++);else{if(_0x15659b<_0x1da78f[_0x4d4dc2(0xc5)]&&_0x28a8a2<_0x4ae745['length']&&_0x4ae745[_0x28a8a2]===_0x1da78f[_0x15659b])_0x39ef89[_0x4d4dc2(0xd0)]({'type':'removed','content':_0x55eed0[_0x3288e7]}),_0x3288e7++;else{if(_0x3288e7<_0x55eed0[_0x4d4dc2(0xc5)]&&(_0x15659b>=_0x1da78f[_0x4d4dc2(0xc5)]||_0x55eed0[_0x3288e7]!==_0x1da78f[_0x15659b]))_0x39ef89[_0x4d4dc2(0xd0)]({'type':_0x4d4dc2(0xbd),'content':_0x55eed0[_0x3288e7]}),_0x3288e7++;else _0x28a8a2<_0x4ae745[_0x4d4dc2(0xc5)]&&(_0x39ef89[_0x4d4dc2(0xd0)]({'type':_0x4d4dc2(0xdb),'content':_0x4ae745[_0x28a8a2]}),_0x28a8a2++);}}}return _0x39ef89;}function a192_0xa4c2(){const _0xa0504b=['join','red','4604yOUXqP','green','added','size','dim','new','add','old','\x20-\x20','removed','2364792rPdHrP','1lCnRsW','194304dxjUZD','split','13923784OvwERE','245GHfCEg','forEach','length','has','some','unshift','padStart','3228zFlGPe','fill','12203457zIcMIZ','repeat','720Hfrzte','\x20+\x20','push','29053431aRUbse','unchanged','max','15070QdXWcD','content','type'];a192_0xa4c2=function(){return _0xa0504b;};return a192_0xa4c2();}function computeLCS(_0x5890be,_0x5ac8d0){const _0x2868a6=a192_0x1844,_0x3616bb=_0x5890be[_0x2868a6(0xc5)],_0x45bb36=_0x5ac8d0['length'],_0x5b52b7=Array(_0x3616bb+0x1)[_0x2868a6(0xcb)](null)['map'](()=>Array(_0x45bb36+0x1)['fill'](0x0));for(let _0x27936c=0x1;_0x27936c<=_0x3616bb;_0x27936c++){for(let _0x3b1399=0x1;_0x3b1399<=_0x45bb36;_0x3b1399++){_0x5890be[_0x27936c-0x1]===_0x5ac8d0[_0x3b1399-0x1]?_0x5b52b7[_0x27936c][_0x3b1399]=_0x5b52b7[_0x27936c-0x1][_0x3b1399-0x1]+0x1:_0x5b52b7[_0x27936c][_0x3b1399]=Math[_0x2868a6(0xd3)](_0x5b52b7[_0x27936c-0x1][_0x3b1399],_0x5b52b7[_0x27936c][_0x3b1399-0x1]);}}const _0x581d78=[];let _0x5a48e7=_0x3616bb,_0x33905c=_0x45bb36;while(_0x5a48e7>0x0&&_0x33905c>0x0){if(_0x5890be[_0x5a48e7-0x1]===_0x5ac8d0[_0x33905c-0x1])_0x581d78[_0x2868a6(0xc8)](_0x5890be[_0x5a48e7-0x1]),_0x5a48e7--,_0x33905c--;else _0x5b52b7[_0x5a48e7-0x1][_0x33905c]>_0x5b52b7[_0x5a48e7][_0x33905c-0x1]?_0x5a48e7--:_0x33905c--;}return _0x581d78;}export function formatDiffWithColors(_0x3a6c51,_0x251baa=0x3){const _0x46e09f=a192_0x1844,_0x2b7724=new Set();_0x3a6c51[_0x46e09f(0xc4)]((_0x4ba7c3,_0x13a5a5)=>{const _0x1140ce=_0x46e09f;_0x4ba7c3[_0x1140ce(0xd6)]!=='unchanged'&&_0x2b7724[_0x1140ce(0xba)](_0x13a5a5);});if(_0x2b7724[_0x46e09f(0xdc)]===0x0)return'';const _0x237964=new Set();for(const _0x44218a of _0x2b7724){for(let _0x28f2bf=Math[_0x46e09f(0xd3)](0x0,_0x44218a-_0x251baa);_0x28f2bf<=Math['min'](_0x3a6c51[_0x46e09f(0xc5)]-0x1,_0x44218a+_0x251baa);_0x28f2bf++){_0x237964[_0x46e09f(0xba)](_0x28f2bf);}}const _0x41bef8=[];let _0x4b02ca=-0x1;const _0x386679=_0x3a6c51[_0x46e09f(0xc5)],_0x1c5fea=Math[_0x46e09f(0xd3)](0x3,String(_0x386679)[_0x46e09f(0xc5)]),_0x106a2b=[];let _0x49669f=0x0,_0x5ac5b4=0x0;for(const _0x1e714f of _0x3a6c51){if(_0x1e714f[_0x46e09f(0xd6)]==='removed')_0x49669f++,_0x106a2b[_0x46e09f(0xd0)]({'old':_0x49669f,'new':0x0});else _0x1e714f[_0x46e09f(0xd6)]===_0x46e09f(0xdb)?(_0x5ac5b4++,_0x106a2b['push']({'old':0x0,'new':_0x5ac5b4})):(_0x49669f++,_0x5ac5b4++,_0x106a2b[_0x46e09f(0xd0)]({'old':_0x49669f,'new':_0x5ac5b4}));}for(let _0x5ca1e6=0x0;_0x5ca1e6<_0x3a6c51['length'];_0x5ca1e6++){if(!_0x237964[_0x46e09f(0xc6)](_0x5ca1e6))continue;_0x4b02ca!==-0x1&&_0x5ca1e6>_0x4b02ca+0x1&&_0x41bef8[_0x46e09f(0xd0)](a192_0x5ac4fb['cyan']('\x20\x20...'));_0x4b02ca=_0x5ca1e6;const _0x44b485=_0x3a6c51[_0x5ca1e6],_0x174c88=_0x106a2b[_0x5ca1e6],_0x59a5e3=_0x174c88[_0x46e09f(0xbb)]>0x0?String(_0x174c88[_0x46e09f(0xbb)])[_0x46e09f(0xc9)](_0x1c5fea):'\x20'[_0x46e09f(0xcd)](_0x1c5fea),_0x3bd454=_0x174c88[_0x46e09f(0xde)]>0x0?String(_0x174c88[_0x46e09f(0xde)])[_0x46e09f(0xc9)](_0x1c5fea):'\x20'[_0x46e09f(0xcd)](_0x1c5fea);switch(_0x44b485[_0x46e09f(0xd6)]){case _0x46e09f(0xbd):_0x41bef8[_0x46e09f(0xd0)](a192_0x5ac4fb[_0x46e09f(0xd8)](_0x59a5e3+'\x20'+_0x3bd454+_0x46e09f(0xbc)+_0x44b485[_0x46e09f(0xd5)]));break;case _0x46e09f(0xdb):_0x41bef8[_0x46e09f(0xd0)](a192_0x5ac4fb[_0x46e09f(0xda)](_0x59a5e3+'\x20'+_0x3bd454+_0x46e09f(0xcf)+_0x44b485['content']));break;default:_0x41bef8[_0x46e09f(0xd0)](a192_0x5ac4fb[_0x46e09f(0xdd)](_0x59a5e3+'\x20'+_0x3bd454+'\x20\x20\x20'+_0x44b485[_0x46e09f(0xd5)]));break;}}return _0x41bef8[_0x46e09f(0xd7)]('\x0a');}function a192_0x1844(_0x48169e,_0x1c994f){_0x48169e=_0x48169e-0xba;const _0xa4c2e6=a192_0xa4c2();let _0x18449a=_0xa4c2e6[_0x48169e];return _0x18449a;}export function hasChanges(_0x2ee7f2){const _0x1f85d1=a192_0x1844;return _0x2ee7f2[_0x1f85d1(0xc7)](_0x2a1f3d=>_0x2a1f3d[_0x1f85d1(0xd6)]!==_0x1f85d1(0xd2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4efeaa,_0x3ce87a){const _0x526777=a193_0x2b46,_0x2276b6=_0x4efeaa();while(!![]){try{const _0x5bf79e=parseInt(_0x526777(0x118))/0x1+parseInt(_0x526777(0x115))/0x2*(parseInt(_0x526777(0x124))/0x3)+-parseInt(_0x526777(0x11c))/0x4+parseInt(_0x526777(0x126))/0x5*(parseInt(_0x526777(0x125))/0x6)+-parseInt(_0x526777(0x120))/0x7*(-parseInt(_0x526777(0x11f))/0x8)+-parseInt(_0x526777(0x11e))/0x9+-parseInt(_0x526777(0x113))/0xa;if(_0x5bf79e===_0x3ce87a)break;else _0x2276b6['push'](_0x2276b6['shift']());}catch(_0x2d6b24){_0x2276b6['push'](_0x2276b6['shift']());}}}(a193_0x3d21,0x69bac));import*as a193_0x26fa10 from'node:fs';import*as a193_0x399477 from'node:path';export function setSecureFilePermissions(_0xd56aa9){const _0xd128d1=a193_0x2b46;try{a193_0x26fa10[_0xd128d1(0x122)](_0xd56aa9,0x180);}catch{console[_0xd128d1(0x114)](_0xd128d1(0x119)+_0xd56aa9);}}export function setSecureDirectoryPermissions(_0x497abe){const _0x539eab=a193_0x2b46;try{a193_0x26fa10['chmodSync'](_0x497abe,0x1c0);}catch{console[_0x539eab(0x114)](_0x539eab(0x119)+_0x497abe);}}function a193_0x2b46(_0x99e2a7,_0x3ac5a2){_0x99e2a7=_0x99e2a7-0x113;const _0x3d2110=a193_0x3d21();let _0x2b46ef=_0x3d2110[_0x99e2a7];return _0x2b46ef;}export function createSecureDirectory(_0x3bee9d){const _0x156422=a193_0x2b46;!a193_0x26fa10['existsSync'](_0x3bee9d)&&(a193_0x26fa10[_0x156422(0x11a)](_0x3bee9d,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3bee9d));}export function validateSecureFilePermissions(_0x5a0e89){const _0x241b00=a193_0x2b46;try{const _0x29b8b0=a193_0x26fa10[_0x241b00(0x11b)](_0x5a0e89),_0x5173f2=_0x29b8b0[_0x241b00(0x117)]&0x1ff,_0x46ef8a=(_0x5173f2&0x3f)!==0x0;if(_0x46ef8a)return console[_0x241b00(0x114)]('Warning:\x20'+_0x5a0e89+'\x20has\x20insecure\x20permissions\x20('+_0x5173f2['toString'](0x8)+_0x241b00(0x123)+_0x241b00(0x11d)),![];return!![];}catch{return!![];}}function a193_0x3d21(){const _0x52a8bb=['2581520hDsOyi','Should\x20be\x200600\x20or\x20more\x20restrictive.','5641353YBzaKh','560EOdWVa','58394HBthgy','dirname','chmodSync',').\x20','105LUPyDd','64950jYjLhE','320QzChtp','1376020DZjGca','warn','11240aXYMka','writeFileSync','mode','369427IvbfrG','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mkdirSync','statSync'];a193_0x3d21=function(){return _0x52a8bb;};return a193_0x3d21();}export function writeSecureFile(_0x2dafa0,_0x184ba7){const _0xc069cd=a193_0x2b46,_0x3c0def=a193_0x399477[_0xc069cd(0x121)](_0x2dafa0);createSecureDirectory(_0x3c0def),a193_0x26fa10[_0xc069cd(0x116)](_0x2dafa0,_0x184ba7,{'mode':0x180}),setSecureFilePermissions(_0x2dafa0);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a194_0x1f8b(_0x5249e8,_0xcab97c){_0x5249e8=_0x5249e8-0x173;const _0x44990c=a194_0x4499();let _0x1f8ba1=_0x44990c[_0x5249e8];return _0x1f8ba1;}(function(_0x8f2b5a,_0x51b210){const _0x3a9b51=a194_0x1f8b,_0x12e77b=_0x8f2b5a();while(!![]){try{const _0x515632=-parseInt(_0x3a9b51(0x17d))/0x1+-parseInt(_0x3a9b51(0x17e))/0x2+parseInt(_0x3a9b51(0x174))/0x3+-parseInt(_0x3a9b51(0x185))/0x4+parseInt(_0x3a9b51(0x17a))/0x5+parseInt(_0x3a9b51(0x173))/0x6*(parseInt(_0x3a9b51(0x182))/0x7)+parseInt(_0x3a9b51(0x183))/0x8;if(_0x515632===_0x51b210)break;else _0x12e77b['push'](_0x12e77b['shift']());}catch(_0x4ad325){_0x12e77b['push'](_0x12e77b['shift']());}}}(a194_0x4499,0x58a69));import{readFileSync}from'fs';function a194_0x4499(){const _0x2b618c=['NOT_FOUND','1651728ByYlmi','ENOENT','2244120FspnUr','348987WQNuTu','code','\x27:\x20','PERMISSION_DENIED','\x27\x20not\x20found','utf-8','24880jBnrLu','INTERNAL','File\x20\x27','462120xtxEPF','934614oVYLTU','message','Permission\x20denied\x20reading\x20file\x20\x27','Error\x20reading\x20file\x20\x27','7rPTZWr','9681176pdJXcd'];a194_0x4499=function(){return _0x2b618c;};return a194_0x4499();}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x439ec0){const _0x53c6a4=a194_0x1f8b;try{return readFileSync(_0x439ec0,_0x53c6a4(0x179));}catch(_0x59a340){const _0x54657a=_0x59a340[_0x53c6a4(0x175)];if(_0x54657a===_0x53c6a4(0x186))throw new SDKError(ErrorCode[_0x53c6a4(0x184)],_0x53c6a4(0x17c)+_0x439ec0+_0x53c6a4(0x178),_0x59a340);else{if(_0x54657a==='EACCES')throw new SDKError(ErrorCode[_0x53c6a4(0x177)],_0x53c6a4(0x180)+_0x439ec0+'\x27',_0x59a340);else throw new SDKError(ErrorCode[_0x53c6a4(0x17b)],_0x53c6a4(0x181)+_0x439ec0+_0x53c6a4(0x176)+_0x59a340[_0x53c6a4(0x17f)],_0x59a340);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xd5fe1c,_0x364fc2){const _0x11aba4=a195_0x55e8,_0x1877e2=_0xd5fe1c();while(!![]){try{const _0x5aa6ed=-parseInt(_0x11aba4(0xaa))/0x1+-parseInt(_0x11aba4(0xb1))/0x2*(-parseInt(_0x11aba4(0xa6))/0x3)+-parseInt(_0x11aba4(0xbe))/0x4+-parseInt(_0x11aba4(0xb2))/0x5*(parseInt(_0x11aba4(0xc0))/0x6)+-parseInt(_0x11aba4(0xc1))/0x7+parseInt(_0x11aba4(0xb0))/0x8+-parseInt(_0x11aba4(0xa7))/0x9*(-parseInt(_0x11aba4(0xbf))/0xa);if(_0x5aa6ed===_0x364fc2)break;else _0x1877e2['push'](_0x1877e2['shift']());}catch(_0x322f8b){_0x1877e2['push'](_0x1877e2['shift']());}}}(a195_0x54d4,0x2da7d));import*as a195_0x2eb3a3 from'node:https';function a195_0x54d4(){const _0x320330=['4725ybAcEh','1026qOATfg','tag_name','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','339009BDIzlg','next','length','/repos/','now','destroy','693832Pydbem','310AHQixA','20pmwFtj','resolve','timeout','api.github.com','get','GitHub\x20API\x20returned\x20','slice','prerelease','find','end','releases','statusCode','18216xXOnTU','55360BDRWkJ','408594FRlTMd','1112958JMFWDj','fetchedAt','data','error','toString'];a195_0x54d4=function(){return _0x320330;};return a195_0x54d4();}function a195_0x55e8(_0x46c33,_0x4563ab){_0x46c33=_0x46c33-0xa3;const _0x54d4df=a195_0x54d4();let _0x55e837=_0x54d4df[_0x46c33];return _0x55e837;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x110f4c,_0x56ea94,_0x416bac){const _0x2860e1=a195_0x55e8,_0x3660d0=_0x110f4c+'/'+_0x56ea94,_0x32809a=cache['get'](_0x3660d0);if(_0x32809a&&Date[_0x2860e1(0xae)]()-_0x32809a[_0x2860e1(0xc2)]<CACHE_TTL_MS)return Promise[_0x2860e1(0xb3)](_0x32809a[_0x2860e1(0xbc)]);return new Promise((_0x3b7615,_0x3964fb)=>{const _0x3259f=_0x2860e1,_0x37ffa5={'hostname':_0x3259f(0xb5),'path':_0x3259f(0xad)+_0x110f4c+'/'+_0x56ea94+'/releases?per_page=20','headers':{'User-Agent':_0x416bac,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x194bdf=a195_0x2eb3a3[_0x3259f(0xb6)](_0x37ffa5,_0x3977b4=>{const _0x5dcb8b=_0x3259f;let _0x3accb4='';_0x3977b4['on'](_0x5dcb8b(0xa3),_0x3fc5c5=>{const _0x1cdd10=_0x5dcb8b;_0x3accb4+=_0x3fc5c5[_0x1cdd10(0xa5)]();}),_0x3977b4['on'](_0x5dcb8b(0xbb),()=>{const _0x55404a=_0x5dcb8b;if(_0x3977b4[_0x55404a(0xbd)]!==0xc8){_0x3964fb(new Error(_0x55404a(0xb7)+_0x3977b4[_0x55404a(0xbd)]+':\x20'+_0x3accb4[_0x55404a(0xb8)](0x0,0xc8)));return;}try{const _0x1ef0f0=JSON['parse'](_0x3accb4);cache['set'](_0x3660d0,{'releases':_0x1ef0f0,'fetchedAt':Date[_0x55404a(0xae)]()}),_0x3b7615(_0x1ef0f0);}catch(_0x17a3c0){_0x3964fb(_0x17a3c0);}});});_0x194bdf['on'](_0x3259f(0xb4),()=>{const _0x4327d5=_0x3259f;_0x194bdf[_0x4327d5(0xaf)](),_0x3964fb(new Error(_0x4327d5(0xa9)+REQUEST_TIMEOUT_MS+'ms'));}),_0x194bdf['on'](_0x3259f(0xa4),_0x3964fb);});}export async function resolveReleaseTag(_0x47962c,_0x9b0b16,_0x19aed5,_0xfaa1ca){const _0x9741b4=a195_0x55e8,_0x41c3e3=await fetchGitHubReleases(_0x9b0b16,_0x19aed5,_0xfaa1ca);if(_0x41c3e3[_0x9741b4(0xac)]===0x0)return null;if(_0x47962c===_0x9741b4(0xab))return _0x41c3e3[0x0]['tag_name'];const _0x438548=_0x41c3e3[_0x9741b4(0xba)](_0x37cd9c=>!_0x37cd9c[_0x9741b4(0xb9)]);return _0x438548?_0x438548[_0x9741b4(0xa8)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52cee3,_0x55eef0){const _0x1a9698=a196_0x4a02,_0x1e9e47=_0x52cee3();while(!![]){try{const _0x50ba41=parseInt(_0x1a9698(0xb7))/0x1*(parseInt(_0x1a9698(0xb4))/0x2)+parseInt(_0x1a9698(0xb8))/0x3*(-parseInt(_0x1a9698(0xb5))/0x4)+parseInt(_0x1a9698(0xbc))/0x5+parseInt(_0x1a9698(0xb6))/0x6+parseInt(_0x1a9698(0xc1))/0x7+-parseInt(_0x1a9698(0xc3))/0x8+-parseInt(_0x1a9698(0xc0))/0x9*(parseInt(_0x1a9698(0xb3))/0xa);if(_0x50ba41===_0x55eef0)break;else _0x1e9e47['push'](_0x1e9e47['shift']());}catch(_0x437ae6){_0x1e9e47['push'](_0x1e9e47['shift']());}}}(a196_0x2a27,0xc7a79));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';function a196_0x4a02(_0x520cf1,_0x2e4cce){_0x520cf1=_0x520cf1-0xb2;const _0x2a27e1=a196_0x2a27();let _0x4a028d=_0x2a27e1[_0x520cf1];return _0x4a028d;}function a196_0x2a27(){const _0x2f679d=['parse','{profile}','utf-8','clear','trim','10MeEPTu','21518bvECmM','144psicRg','5444610gTVbaC','8nAVXdx','79605bCsApO','replace','Global\x20cache\x20key\x20\x22','.cache','4696740bgArDq','get','default','\x22\x20already\x20registered\x20by\x20\x22','11469285gKusEQ','10717336iaJSGz','stringify','3331944stiJnH','\x22,\x20cannot\x20register\x20for\x20\x22'];a196_0x2a27=function(){return _0x2f679d;};return a196_0x2a27();}export function getGlobalCacheDir(){const _0x41c2b0=a196_0x4a02;return process.env.TDX_CACHE_DIR||join(homedir(),_0x41c2b0(0xbb),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0xc0e9a9,_0x373808){const _0x1fd16c=a196_0x4a02,_0x553bb4=registry[_0x1fd16c(0xbd)](_0xc0e9a9);if(_0x553bb4&&_0x553bb4!==_0x373808)throw new Error(_0x1fd16c(0xba)+_0xc0e9a9+_0x1fd16c(0xbf)+_0x553bb4+_0x1fd16c(0xc4)+_0x373808+'\x22');registry['set'](_0xc0e9a9,_0x373808);}export function getGlobalCachePath(_0x447d7d){return join(getGlobalCacheDir(),_0x447d7d);}function ensureGlobalCacheDir(){const _0x3a7b4b=getGlobalCacheDir();!existsSync(_0x3a7b4b)&&mkdirSync(_0x3a7b4b,{'recursive':!![]});}function readCacheJson(_0x2be1bb){const _0x54ca30=a196_0x4a02,_0x2bdb42=getGlobalCachePath(_0x2be1bb);if(!existsSync(_0x2bdb42))return undefined;try{const _0x97ad1a=readFileSync(_0x2bdb42,_0x54ca30(0xc7));return JSON[_0x54ca30(0xc5)](_0x97ad1a);}catch{return undefined;}}function writeCacheJson(_0x3bac19,_0x2f16c4){const _0x4d36d9=a196_0x4a02;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3bac19),JSON[_0x4d36d9(0xc2)](_0x2f16c4,null,0x2),_0x4d36d9(0xc7));}function readCacheText(_0x5beff5){const _0x41bbf2=a196_0x4a02,_0x33d954=getGlobalCachePath(_0x5beff5);if(!existsSync(_0x33d954))return undefined;try{return readFileSync(_0x33d954,_0x41bbf2(0xc7));}catch{return undefined;}}function writeCacheText(_0x5bead2,_0x90a205){const _0x33b674=a196_0x4a02;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5bead2),_0x90a205,_0x33b674(0xc7));}function clearCache(_0x57cbc9){const _0x451ea7=getGlobalCachePath(_0x57cbc9);if(existsSync(_0x451ea7))try{unlinkSync(_0x451ea7);}catch{}}function cacheExists(_0x120cdb){return existsSync(getGlobalCachePath(_0x120cdb));}export function createGlobalCache(_0x5d2513,_0x21fd3b){return registerGlobalCacheKey(_0x5d2513,_0x21fd3b),{'read':()=>readCacheJson(_0x5d2513),'write':_0x43d776=>writeCacheJson(_0x5d2513,_0x43d776),'clear':()=>clearCache(_0x5d2513),'exists':()=>cacheExists(_0x5d2513),'path':()=>getGlobalCachePath(_0x5d2513)};}export function createGlobalTextCache(_0x312e63,_0x4ae667){const _0x191c4b=a196_0x4a02;return registerGlobalCacheKey(_0x312e63,_0x4ae667),{'read':()=>readCacheText(_0x312e63)?.[_0x191c4b(0xb2)]()||undefined,'write':_0x2b479e=>writeCacheText(_0x312e63,_0x2b479e),'clear':()=>clearCache(_0x312e63),'exists':()=>cacheExists(_0x312e63),'path':()=>getGlobalCachePath(_0x312e63)};}export function createProfileCache(_0x273cae,_0x83d0a2){const _0x2e6f27=_0x183e25=>{const _0x3d1807=a196_0x4a02,_0x1b5c0c=_0x183e25||_0x3d1807(0xbe);return _0x273cae[_0x3d1807(0xb9)](_0x3d1807(0xc6),_0x1b5c0c);};return{'read':_0x20264d=>{const _0x50f839=_0x2e6f27(_0x20264d);return registerGlobalCacheKey(_0x50f839,_0x83d0a2),readCacheJson(_0x50f839);},'write':(_0x56d7b2,_0x5c1994)=>{const _0x81d49=_0x2e6f27(_0x56d7b2);registerGlobalCacheKey(_0x81d49,_0x83d0a2),writeCacheJson(_0x81d49,_0x5c1994);},'clear':_0x36c5e3=>{const _0xd86ac4=_0x2e6f27(_0x36c5e3);clearCache(_0xd86ac4);},'exists':_0x317fae=>{const _0x348037=_0x2e6f27(_0x317fae);return cacheExists(_0x348037);},'path':_0x268ff3=>{const _0x390682=_0x2e6f27(_0x268ff3);return getGlobalCachePath(_0x390682);}};}export function createOptionalProfileCache(_0xac2982,_0x1b78dc,_0x2937d3={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2937d3,_0x369be3=_0x977efa=>{return _0x977efa?''+_0xac2982+profileSeparator+_0x977efa+suffix:''+_0xac2982+suffix;};return{'read':_0x32d7de=>{const _0x141cbb=_0x369be3(_0x32d7de);return registerGlobalCacheKey(_0x141cbb,_0x1b78dc),readCacheJson(_0x141cbb);},'write':(_0x552f89,_0x541dfe)=>{const _0x586fd5=_0x369be3(_0x541dfe);registerGlobalCacheKey(_0x586fd5,_0x1b78dc),writeCacheJson(_0x586fd5,_0x552f89);},'clear':_0x51a8b9=>{const _0x44e0e1=_0x369be3(_0x51a8b9);clearCache(_0x44e0e1);},'exists':_0x67684c=>{const _0x240468=_0x369be3(_0x67684c);return cacheExists(_0x240468);},'path':_0x101ef9=>{const _0x503af7=_0x369be3(_0x101ef9);return getGlobalCachePath(_0x503af7);}};}export function clearGlobalRegistry(){const _0x3d1d27=a196_0x4a02;registry[_0x3d1d27(0xc8)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a197_0x314a(){const _0x57b08a=['\x27:\x20','Failed\x20to\x20load\x20JSON:\x20','3538425GznACw','INVALID_ARGUMENT','parse','1422wxbBms','EACCES','message','3118868zqweVM','Invalid\x20JSON\x20string:\x20','NOT_FOUND','utf-8','4btlHvs','Invalid\x20JSON\x20in\x20file\x20\x27','2335767xoFcrh','1466330omGACf','code','10166808NXYPJk','File\x20not\x20found:\x20','1365067hwcIea','45JPxXpx','35091izbCRg','10ExtHhZ','PERMISSION_DENIED'];a197_0x314a=function(){return _0x57b08a;};return a197_0x314a();}(function(_0x663596,_0x520839){const _0x1b640b=a197_0x24c4,_0x385bd7=_0x663596();while(!![]){try{const _0x87ae7b=parseInt(_0x1b640b(0x1f9))/0x1+parseInt(_0x1b640b(0x1f2))/0x2*(parseInt(_0x1b640b(0x1f4))/0x3)+-parseInt(_0x1b640b(0x1ee))/0x4*(-parseInt(_0x1b640b(0x1e4))/0x5)+-parseInt(_0x1b640b(0x1eb))/0x6*(parseInt(_0x1b640b(0x1e3))/0x7)+-parseInt(_0x1b640b(0x1f7))/0x8+-parseInt(_0x1b640b(0x1e2))/0x9*(parseInt(_0x1b640b(0x1f5))/0xa)+-parseInt(_0x1b640b(0x1e8))/0xb;if(_0x87ae7b===_0x520839)break;else _0x385bd7['push'](_0x385bd7['shift']());}catch(_0x306aa9){_0x385bd7['push'](_0x385bd7['shift']());}}}(a197_0x314a,0xec4e3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a197_0x24c4(_0x2ca70b,_0x3c8624){_0x2ca70b=_0x2ca70b-0x1e2;const _0x314aa8=a197_0x314a();let _0x24c486=_0x314aa8[_0x2ca70b];return _0x24c486;}export async function loadJSON(_0x540594,_0x41b43d){const _0x2ecf55=a197_0x24c4;try{if(_0x41b43d){const _0x46d54b=await readFile(_0x540594,_0x2ecf55(0x1f1));try{return JSON['parse'](_0x46d54b);}catch(_0x254e55){throw new SDKError(ErrorCode[_0x2ecf55(0x1e9)],_0x2ecf55(0x1f3)+_0x540594+_0x2ecf55(0x1e6)+(_0x254e55 instanceof Error?_0x254e55[_0x2ecf55(0x1ed)]:String(_0x254e55)));}}else try{return JSON[_0x2ecf55(0x1ea)](_0x540594);}catch(_0x1b5908){throw new SDKError(ErrorCode[_0x2ecf55(0x1e9)],_0x2ecf55(0x1ef)+(_0x1b5908 instanceof Error?_0x1b5908[_0x2ecf55(0x1ed)]:String(_0x1b5908)));}}catch(_0x19565c){if(_0x19565c instanceof SDKError)throw _0x19565c;if(_0x19565c instanceof Error&&_0x2ecf55(0x1f6)in _0x19565c){const _0x5cbbc9=_0x19565c;if(_0x5cbbc9[_0x2ecf55(0x1f6)]==='ENOENT')throw new SDKError(ErrorCode[_0x2ecf55(0x1f0)],_0x2ecf55(0x1f8)+_0x540594);else{if(_0x5cbbc9[_0x2ecf55(0x1f6)]===_0x2ecf55(0x1ec))throw new SDKError(ErrorCode[_0x2ecf55(0x1e5)],'Permission\x20denied\x20reading\x20file:\x20'+_0x540594);}}throw new SDKError(ErrorCode['INTERNAL'],_0x2ecf55(0x1e7)+(_0x19565c instanceof Error?_0x19565c[_0x2ecf55(0x1ed)]:String(_0x19565c)));}}export async function loadJSONFromOptions(_0x2e9aba,_0x22d467){const _0x149d94=a197_0x24c4;if(_0x2e9aba&&_0x22d467)throw new SDKError(ErrorCode[_0x149d94(0x1e9)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2e9aba)return await loadJSON(_0x2e9aba,![]);if(_0x22d467)return await loadJSON(_0x22d467,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a198_0x1de0ba=a198_0xf6e0;(function(_0x2629a3,_0x363a71){const _0x51e307=a198_0xf6e0,_0x38ef92=_0x2629a3();while(!![]){try{const _0x373684=parseInt(_0x51e307(0x1ef))/0x1*(-parseInt(_0x51e307(0x1f1))/0x2)+parseInt(_0x51e307(0x1f5))/0x3*(parseInt(_0x51e307(0x1fa))/0x4)+parseInt(_0x51e307(0x1f2))/0x5*(parseInt(_0x51e307(0x1eb))/0x6)+-parseInt(_0x51e307(0x1f3))/0x7+-parseInt(_0x51e307(0x1f6))/0x8+-parseInt(_0x51e307(0x1ec))/0x9+parseInt(_0x51e307(0x1ed))/0xa*(parseInt(_0x51e307(0x1f8))/0xb);if(_0x373684===_0x363a71)break;else _0x38ef92['push'](_0x38ef92['shift']());}catch(_0x457659){_0x38ef92['push'](_0x38ef92['shift']());}}}(a198_0x5bd7,0x51ec8));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a198_0x1de0ba(0x1fb),registry=new Map();export function registerCacheKey(_0x6dc43f,_0x4d0a37){const _0x217915=a198_0x1de0ba,_0x4eeb5a=registry[_0x217915(0x1fc)](_0x6dc43f);if(_0x4eeb5a&&_0x4eeb5a!==_0x4d0a37)throw new Error('Cache\x20key\x20\x22'+_0x6dc43f+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4eeb5a+_0x217915(0x1f0)+_0x4d0a37+'\x22');registry[_0x217915(0x1f4)](_0x6dc43f,_0x4d0a37);}export function getCacheDir(){const _0x5f27da=a198_0x1de0ba,_0x263d0e=process[_0x5f27da(0x1f7)](),_0x1f5c78=_0x263d0e===parse(_0x263d0e)[_0x5f27da(0x1f9)]?homedir():_0x263d0e;return join(_0x1f5c78,LOCAL_CACHE_DIR);}export function getCachePath(_0x17227f){return join(getCacheDir(),_0x17227f);}function ensureCacheDir(){const _0x5eb4e7=getCacheDir();!existsSync(_0x5eb4e7)&&mkdirSync(_0x5eb4e7,{'recursive':!![]});}function readCacheJson(_0x36990f){const _0x39b99b=a198_0x1de0ba,_0x5d9053=getCachePath(_0x36990f);if(!existsSync(_0x5d9053))return undefined;try{const _0xc5134c=readFileSync(_0x5d9053,_0x39b99b(0x1ea));return JSON[_0x39b99b(0x1ee)](_0xc5134c);}catch{return undefined;}}function a198_0x5bd7(){const _0x3b95de=['1913787vAhvyB','1223270TrUSFT','parse','519oqiloF','\x22,\x20cannot\x20register\x20for\x20\x22','298Pnovkx','5275bGQOdT','3772573stPfvH','set','3ggAVPP','3819000AxjQqx','cwd','132lJlHTB','root','590196LVtjJY','.cache/tdx','get','utf-8','150ycUGab'];a198_0x5bd7=function(){return _0x3b95de;};return a198_0x5bd7();}function a198_0xf6e0(_0x1db83b,_0x4a267b){_0x1db83b=_0x1db83b-0x1ea;const _0x5bd775=a198_0x5bd7();let _0xf6e0b8=_0x5bd775[_0x1db83b];return _0xf6e0b8;}function writeCacheJson(_0x38588c,_0x576c8a){const _0x47120d=a198_0x1de0ba;ensureCacheDir(),writeFileSync(getCachePath(_0x38588c),JSON['stringify'](_0x576c8a,null,0x2),_0x47120d(0x1ea));}function readCacheText(_0x416b7c){const _0x5da712=a198_0x1de0ba,_0x267386=getCachePath(_0x416b7c);if(!existsSync(_0x267386))return undefined;try{return readFileSync(_0x267386,_0x5da712(0x1ea));}catch{return undefined;}}function writeCacheText(_0x45328c,_0x37274a){const _0x1716db=a198_0x1de0ba;ensureCacheDir(),writeFileSync(getCachePath(_0x45328c),_0x37274a,_0x1716db(0x1ea));}function clearCache(_0x8d2a6f){const _0x567539=getCachePath(_0x8d2a6f);if(existsSync(_0x567539))try{unlinkSync(_0x567539);}catch{}}function cacheExists(_0x387527){return existsSync(getCachePath(_0x387527));}export function createCache(_0x2ace58,_0x5cba65){return registerCacheKey(_0x2ace58,_0x5cba65),{'read':()=>readCacheJson(_0x2ace58),'write':_0x39ddac=>writeCacheJson(_0x2ace58,_0x39ddac),'clear':()=>clearCache(_0x2ace58),'exists':()=>cacheExists(_0x2ace58),'path':()=>getCachePath(_0x2ace58)};}export function createTextCache(_0x19b0ac,_0x5bb97c){return registerCacheKey(_0x19b0ac,_0x5bb97c),{'read':()=>readCacheText(_0x19b0ac)?.['trim']()||undefined,'write':_0x7bb4e8=>writeCacheText(_0x19b0ac,_0x7bb4e8),'clear':()=>clearCache(_0x19b0ac),'exists':()=>cacheExists(_0x19b0ac),'path':()=>getCachePath(_0x19b0ac)};}export function clearRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x3d81a0=a199_0x2d02;function a199_0x2d02(_0x25babb,_0x493e1e){_0x25babb=_0x25babb-0x12b;const _0x11ee97=a199_0x11ee();let _0x2d02b3=_0x11ee97[_0x25babb];return _0x2d02b3;}(function(_0x4f93b5,_0x5bd8ac){const _0x2adfa2=a199_0x2d02,_0x57eb51=_0x4f93b5();while(!![]){try{const _0x4ae9b9=-parseInt(_0x2adfa2(0x141))/0x1*(parseInt(_0x2adfa2(0x136))/0x2)+-parseInt(_0x2adfa2(0x130))/0x3+-parseInt(_0x2adfa2(0x144))/0x4+parseInt(_0x2adfa2(0x12f))/0x5+parseInt(_0x2adfa2(0x133))/0x6*(parseInt(_0x2adfa2(0x13d))/0x7)+-parseInt(_0x2adfa2(0x12e))/0x8*(-parseInt(_0x2adfa2(0x137))/0x9)+-parseInt(_0x2adfa2(0x146))/0xa;if(_0x4ae9b9===_0x5bd8ac)break;else _0x57eb51['push'](_0x57eb51['shift']());}catch(_0x2f600a){_0x57eb51['push'](_0x57eb51['shift']());}}}(a199_0x11ee,0x66088));import a199_0x3012c3 from'chalk';function a199_0x11ee(){const _0x47b30a=['default','TRACE','format','5119iJwePg','Chalk','green','1326360APYMwX','cyan','1728330rhyGYL','colorLevel','colors','ERROR','8nJNjtA','3364085YywsAr','668370lesjIZ','blue','chalk','11724PETdAa',']\x20[','gray','28qeBgNs','3770406igXLzZ','component','red','INFO','level','WARN','448OTLBbt'];a199_0x11ee=function(){return _0x47b30a;};return a199_0x11ee();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x3012c3,ChalkClass=chalkModule[a199_0x3d81a0(0x142)]||chalkModule[a199_0x3d81a0(0x13e)]?.[a199_0x3d81a0(0x142)];export class DefaultLogFormatter{[a199_0x3d81a0(0x12c)];[a199_0x3d81a0(0x132)];constructor(_0x489530={}){const _0x145d7f=a199_0x3d81a0;this[_0x145d7f(0x12c)]=_0x489530[_0x145d7f(0x12c)]??![],this[_0x145d7f(0x132)]=_0x489530['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x3012c3;}[a199_0x3d81a0(0x140)](_0x3501ae){const _0x2ecabf=a199_0x3d81a0,_0x41e45b=formatTimestamp(_0x3501ae['timestamp']),_0xee3789=logLevelToString(_0x3501ae['level']);if(!this[_0x2ecabf(0x12c)])return _0x41e45b+'\x20['+_0xee3789+_0x2ecabf(0x134)+_0x3501ae[_0x2ecabf(0x138)]+']\x20'+_0x3501ae['message'];const _0x279e35=this[_0x2ecabf(0x132)]['dim'](_0x41e45b),_0x1d1f98=this[_0x2ecabf(0x12b)](_0xee3789,_0x3501ae[_0x2ecabf(0x13b)]),_0x25198c=this[_0x2ecabf(0x132)][_0x2ecabf(0x131)]('['+_0x3501ae[_0x2ecabf(0x138)]+']');return _0x279e35+'\x20'+_0x1d1f98+'\x20'+_0x25198c+'\x20'+_0x3501ae['message'];}[a199_0x3d81a0(0x12b)](_0xff8871,_0x51c25e){const _0x21f88c=a199_0x3d81a0;switch(_0x51c25e){case LogLevel[_0x21f88c(0x13f)]:return this[_0x21f88c(0x132)][_0x21f88c(0x135)]('['+_0xff8871+']');case LogLevel['DEBUG']:return this[_0x21f88c(0x132)][_0x21f88c(0x143)]('['+_0xff8871+']');case LogLevel[_0x21f88c(0x13a)]:return this[_0x21f88c(0x132)][_0x21f88c(0x145)]('['+_0xff8871+']');case LogLevel[_0x21f88c(0x13c)]:return this[_0x21f88c(0x132)]['yellow']('['+_0xff8871+']');case LogLevel[_0x21f88c(0x12d)]:return this['chalk'][_0x21f88c(0x139)]('['+_0xff8871+']');default:return'['+_0xff8871+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x44fcf3,_0x105227){var _0x110c68=a200_0x500c,_0x535db4=_0x44fcf3();while(!![]){try{var _0x1a9c49=-parseInt(_0x110c68(0xa6))/0x1*(-parseInt(_0x110c68(0x9f))/0x2)+-parseInt(_0x110c68(0x9e))/0x3*(parseInt(_0x110c68(0xa0))/0x4)+parseInt(_0x110c68(0x9c))/0x5*(-parseInt(_0x110c68(0xa7))/0x6)+parseInt(_0x110c68(0xa4))/0x7+-parseInt(_0x110c68(0xa3))/0x8*(-parseInt(_0x110c68(0x9d))/0x9)+-parseInt(_0x110c68(0xa1))/0xa+parseInt(_0x110c68(0xa5))/0xb*(parseInt(_0x110c68(0xa2))/0xc);if(_0x1a9c49===_0x105227)break;else _0x535db4['push'](_0x535db4['shift']());}catch(_0x1acc44){_0x535db4['push'](_0x535db4['shift']());}}}(a200_0x2bc9,0xe490d));function a200_0x2bc9(){var _0x2609be=['15770270QNOtgm','349368yhFOxd','8kezAnW','10223444NklTvO','407qbBnFS','961501ufotjf','30apbPft','1821920QIXAcX','10610487XkdUUD','46773wJsJIY','2KVyHEQ','88btJLYo'];a200_0x2bc9=function(){return _0x2609be;};return a200_0x2bc9();}function a200_0x500c(_0x196353,_0x13ffd2){_0x196353=_0x196353-0x9c;var _0x2bc90=a200_0x2bc9();var _0x500c0a=_0x2bc90[_0x196353];return _0x500c0a;}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a201_0x19ad(){const _0x28e341=['format','7346768RLjPqO','WARN','359856WklFXi','useStderr','2752119bUwbKj','level','293286MBuIAa','10JnobOR','354102xnRhTB','minLevel','5oHYUTB','handle','error','1144712PeNMVh','352456GXhNBa','24JaUGKw','colors','formatter','2BkwVkU'];a201_0x19ad=function(){return _0x28e341;};return a201_0x19ad();}const a201_0x59a864=a201_0x28cf;(function(_0x267327,_0x4a2415){const _0x4f22b4=a201_0x28cf,_0x3e5c9d=_0x267327();while(!![]){try{const _0x2cd881=parseInt(_0x4f22b4(0x184))/0x1*(parseInt(_0x4f22b4(0x178))/0x2)+-parseInt(_0x4f22b4(0x188))/0x3+parseInt(_0x4f22b4(0x180))/0x4*(parseInt(_0x4f22b4(0x17c))/0x5)+parseInt(_0x4f22b4(0x181))/0x6*(-parseInt(_0x4f22b4(0x17a))/0x7)+-parseInt(_0x4f22b4(0x17f))/0x8+parseInt(_0x4f22b4(0x18a))/0x9*(-parseInt(_0x4f22b4(0x179))/0xa)+parseInt(_0x4f22b4(0x186))/0xb;if(_0x2cd881===_0x4a2415)break;else _0x3e5c9d['push'](_0x3e5c9d['shift']());}catch(_0x5633c3){_0x3e5c9d['push'](_0x3e5c9d['shift']());}}}(a201_0x19ad,0x43e60));function a201_0x28cf(_0x3120ff,_0x76d1a7){_0x3120ff=_0x3120ff-0x177;const _0x19ad41=a201_0x19ad();let _0x28cfbf=_0x19ad41[_0x3120ff];return _0x28cfbf;}import{LogLevel as a201_0x4b3be6}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a201_0x59a864(0x189)];[a201_0x59a864(0x183)];constructor(_0x38c3b5={}){const _0x3862f6=a201_0x59a864;this[_0x3862f6(0x17b)]=_0x38c3b5['minLevel']??a201_0x4b3be6['WARN'],this[_0x3862f6(0x189)]=_0x38c3b5[_0x3862f6(0x189)]??!![],this[_0x3862f6(0x183)]=new DefaultLogFormatter({'colors':_0x38c3b5[_0x3862f6(0x182)]??!![]});}[a201_0x59a864(0x17d)](_0x4711c2){const _0x537e62=a201_0x59a864;if(_0x4711c2[_0x537e62(0x177)]<this[_0x537e62(0x17b)])return;const _0x390e8b=this[_0x537e62(0x183)][_0x537e62(0x185)](_0x4711c2);this['useStderr']&&_0x4711c2['level']>=a201_0x4b3be6[_0x537e62(0x187)]?console[_0x537e62(0x17e)](_0x390e8b):console['log'](_0x390e8b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x3df47f=a202_0x1608;(function(_0x179f8f,_0x478cf2){const _0x49c26a=a202_0x1608,_0xe491d9=_0x179f8f();while(!![]){try{const _0x21f3a7=-parseInt(_0x49c26a(0x1c2))/0x1+-parseInt(_0x49c26a(0x1a9))/0x2+-parseInt(_0x49c26a(0x1be))/0x3*(parseInt(_0x49c26a(0x1ae))/0x4)+parseInt(_0x49c26a(0x1b4))/0x5+-parseInt(_0x49c26a(0x1c4))/0x6+parseInt(_0x49c26a(0x1c6))/0x7*(-parseInt(_0x49c26a(0x1ab))/0x8)+parseInt(_0x49c26a(0x1af))/0x9;if(_0x21f3a7===_0x478cf2)break;else _0xe491d9['push'](_0xe491d9['shift']());}catch(_0x656e95){_0xe491d9['push'](_0xe491d9['shift']());}}}(a202_0x4e43,0x45113));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a202_0x1608(_0x166500,_0x44f8d9){_0x166500=_0x166500-0x1a7;const _0x4e432a=a202_0x4e43();let _0x160865=_0x4e432a[_0x166500];return _0x160865;}function a202_0x4e43(){const _0x13e28b=['write','rotate','split','mtime','error','Warning:\x20Error\x20writing\x20to\x20','end','tdx.log','handle','69KlqTyt','\x5c$&','format','.gz','406452WWFWRh','replace','1693026UBblRI','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','7VnktqH','filter','message','getLogPath','logDir','toISOString','logPath','.log','test','logBaseName','filePath','694830aAOerp','logs','2695736wgTmAx','logFileName','logStream','74224ONZZYF','17480088ZhmnIv','includes','rotateOldLogs','init','close','702300wlGrOS'];a202_0x4e43=function(){return _0x13e28b;};return a202_0x4e43();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a202_0x3df47f(0x1cc)];['logDir'];[a202_0x3df47f(0x1ac)];['logBaseName'];[a202_0x3df47f(0x1ad)]=null;['rotate'];constructor(_0x13b1b9={}){const _0x2b6ced=a202_0x3df47f;this[_0x2b6ced(0x1cc)]=_0x13b1b9[_0x2b6ced(0x1a8)]??join(getGlobalCacheDir(),_0x2b6ced(0x1aa),_0x2b6ced(0x1bc)),this[_0x2b6ced(0x1ca)]=dirname(this['logPath']),this[_0x2b6ced(0x1ac)]=basename(this[_0x2b6ced(0x1cc)]),this['logBaseName']=this[_0x2b6ced(0x1ac)][_0x2b6ced(0x1c3)](/\.log$/,''),this['rotate']=_0x13b1b9[_0x2b6ced(0x1b6)]??!![];}async[a202_0x3df47f(0x1b2)](){const _0x11155a=a202_0x3df47f;try{await mkdir(this[_0x11155a(0x1ca)],{'recursive':!![]}),this[_0x11155a(0x1b6)]&&await this[_0x11155a(0x1b1)](),this[_0x11155a(0x1ad)]=createWriteStream(this[_0x11155a(0x1cc)],{'flags':'a'}),this[_0x11155a(0x1ad)]['on'](_0x11155a(0x1b9),_0x409da6=>{const _0x2b5590=_0x11155a;console[_0x2b5590(0x1b9)](_0x2b5590(0x1ba)+this[_0x2b5590(0x1ac)]+':',_0x409da6[_0x2b5590(0x1c8)]);});}catch(_0x1f5f65){console[_0x11155a(0x1b9)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x1f5f65);}}[a202_0x3df47f(0x1bd)](_0x235f91){const _0x3ac404=a202_0x3df47f;if(!this[_0x3ac404(0x1ad)])return;const _0x54f6f3=Logger[_0x3ac404(0x1c0)](_0x235f91);this[_0x3ac404(0x1ad)][_0x3ac404(0x1b5)](_0x54f6f3+'\x0a');}async[a202_0x3df47f(0x1b3)](){return new Promise(_0x24a9d0=>{const _0x348c12=a202_0x1608;this[_0x348c12(0x1ad)]?this[_0x348c12(0x1ad)][_0x348c12(0x1bb)](()=>{const _0x139f60=_0x348c12;this[_0x139f60(0x1ad)]=null,_0x24a9d0();}):_0x24a9d0();});}[a202_0x3df47f(0x1c9)](){const _0x59d592=a202_0x3df47f;return this[_0x59d592(0x1cc)];}async[a202_0x3df47f(0x1b1)](){const _0x115e26=a202_0x3df47f;try{const _0x1becd5=await readdir(this[_0x115e26(0x1ca)]),_0x69a89b=new Date()[_0x115e26(0x1cb)]()['split']('T')[0x0];if(_0x1becd5[_0x115e26(0x1b0)](this[_0x115e26(0x1ac)])){const _0x48695e=join(this[_0x115e26(0x1ca)],this[_0x115e26(0x1ac)]),_0x180062=await stat(_0x48695e),_0x1e9b18=new Date(_0x180062[_0x115e26(0x1b8)])[_0x115e26(0x1cb)]()[_0x115e26(0x1b7)]('T')[0x0];if(_0x1e9b18<_0x69a89b){const _0x32dd82=join(this['logDir'],this[_0x115e26(0x1a7)]+'-'+_0x1e9b18+_0x115e26(0x1cd));await rename(_0x48695e,_0x32dd82);}}const _0x1f7c92=await readdir(this[_0x115e26(0x1ca)]),_0xd6a18f=this[_0x115e26(0x1a7)][_0x115e26(0x1c3)](/[.*+?^${}()|[\]\\]/g,_0x115e26(0x1bf)),_0x251f20=new RegExp('^'+_0xd6a18f+_0x115e26(0x1c5)),_0x20b10a=_0x1f7c92[_0x115e26(0x1c7)](_0x3e011d=>_0x251f20[_0x115e26(0x1ce)](_0x3e011d));for(const _0x317900 of _0x20b10a){const _0x20d6a5=join(this['logDir'],_0x317900),_0x4ef617=join(this[_0x115e26(0x1ca)],_0x317900+_0x115e26(0x1c1));try{await pipeline(createReadStream(_0x20d6a5),createGzip(),createWriteStream(_0x4ef617)),await unlink(_0x20d6a5);}catch(_0x363ccd){console[_0x115e26(0x1b9)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x317900+':',_0x363ccd);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x30953f,_0x12de9a){var _0x4bf5e2=a203_0x5065,_0x5a0122=_0x30953f();while(!![]){try{var _0x5abfc2=parseInt(_0x4bf5e2(0x1d7))/0x1*(-parseInt(_0x4bf5e2(0x1d2))/0x2)+parseInt(_0x4bf5e2(0x1d5))/0x3*(-parseInt(_0x4bf5e2(0x1d1))/0x4)+-parseInt(_0x4bf5e2(0x1d9))/0x5*(parseInt(_0x4bf5e2(0x1d3))/0x6)+parseInt(_0x4bf5e2(0x1d4))/0x7*(-parseInt(_0x4bf5e2(0x1cf))/0x8)+parseInt(_0x4bf5e2(0x1d6))/0x9+-parseInt(_0x4bf5e2(0x1d0))/0xa+parseInt(_0x4bf5e2(0x1d8))/0xb*(parseInt(_0x4bf5e2(0x1da))/0xc);if(_0x5abfc2===_0x12de9a)break;else _0x5a0122['push'](_0x5a0122['shift']());}catch(_0x100056){_0x5a0122['push'](_0x5a0122['shift']());}}}(a203_0x5d6f,0xe0ced));function a203_0x5065(_0x13f0a0,_0x4b1943){_0x13f0a0=_0x13f0a0-0x1cf;var _0x5d6f24=a203_0x5d6f();var _0x5065b1=_0x5d6f24[_0x13f0a0];return _0x5065b1;}function a203_0x5d6f(){var _0x2757bc=['14035GaNNBI','9PBFeCe','6549336NqorgX','234GrueAg','286WUbQwZ','5GJiHRo','1780788RPvOQb','3800Ykkpdy','14413350touXuu','239188LqiCdO','2890hbRtin','4524204uyyTrN'];a203_0x5d6f=function(){return _0x2757bc;};return a203_0x5d6f();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
var a204_0x45092f=a204_0x221f;(function(_0x3f1381,_0x2c666c){var _0x559c33=a204_0x221f,_0x2834b=_0x3f1381();while(!![]){try{var _0x2ff711=-parseInt(_0x559c33(0x132))/0x1*(parseInt(_0x559c33(0x130))/0x2)+-parseInt(_0x559c33(0x133))/0x3+parseInt(_0x559c33(0x136))/0x4+parseInt(_0x559c33(0x12e))/0x5*(parseInt(_0x559c33(0x12d))/0x6)+parseInt(_0x559c33(0x12f))/0x7*(-parseInt(_0x559c33(0x12c))/0x8)+parseInt(_0x559c33(0x134))/0x9*(parseInt(_0x559c33(0x131))/0xa)+-parseInt(_0x559c33(0x137))/0xb*(-parseInt(_0x559c33(0x135))/0xc);if(_0x2ff711===_0x2c666c)break;else _0x2834b['push'](_0x2834b['shift']());}catch(_0x1f0be7){_0x2834b['push'](_0x2834b['shift']());}}}(a204_0xa2f3,0xb259d));export class NullHandler{[a204_0x45092f(0x138)](_0x290ab4){}}function a204_0x221f(_0x325cca,_0x37732b){_0x325cca=_0x325cca-0x12c;var _0xa2f393=a204_0xa2f3();var _0x221f66=_0xa2f393[_0x325cca];return _0x221f66;}function a204_0xa2f3(){var _0x3aa430=['144cbLQgr','88190XhnNkn','7MCAsER','262AfuPOQ','160JIKQyB','10342uDpFjN','2561859cjHNtN','818919mpCyou','12LjZPfc','1725296rqKZXM','10701581KWcEgz','handle','2752664CbplEl'];a204_0xa2f3=function(){return _0x3aa430;};return a204_0xa2f3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19a679,_0x21ff42){var _0xa97598=a205_0x53d9,_0x1d40e1=_0x19a679();while(!![]){try{var _0x461c91=-parseInt(_0xa97598(0x1bd))/0x1+parseInt(_0xa97598(0x1ba))/0x2+parseInt(_0xa97598(0x1c1))/0x3*(parseInt(_0xa97598(0x1bb))/0x4)+parseInt(_0xa97598(0x1bf))/0x5+parseInt(_0xa97598(0x1be))/0x6*(parseInt(_0xa97598(0x1bc))/0x7)+-parseInt(_0xa97598(0x1c2))/0x8*(parseInt(_0xa97598(0x1c3))/0x9)+parseInt(_0xa97598(0x1c0))/0xa*(-parseInt(_0xa97598(0x1b9))/0xb);if(_0x461c91===_0x21ff42)break;else _0x1d40e1['push'](_0x1d40e1['shift']());}catch(_0x4ee7ed){_0x1d40e1['push'](_0x1d40e1['shift']());}}}(a205_0x4be0,0x98c86));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a205_0x4be0(){var _0x156f49=['16UvwfKW','63756ApFKeY','39908RETrBx','441268SjHGjH','37900BZKaCP','207494AwvNLp','1132629fenxZy','198TqYPya','835630lonYTh','420TRgrQY','177jyDjGK'];a205_0x4be0=function(){return _0x156f49;};return a205_0x4be0();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a205_0x53d9(_0x3bf5eb,_0x30489b){_0x3bf5eb=_0x3bf5eb-0x1b9;var _0x4be08a=a205_0x4be0();var _0x53d92e=_0x4be08a[_0x3bf5eb];return _0x53d92e;}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x226c7=a206_0x3841;function a206_0x3841(_0x1e4849,_0x202bbf){_0x1e4849=_0x1e4849-0xac;const _0x585ae1=a206_0x585a();let _0x38418d=_0x585ae1[_0x1e4849];return _0x38418d;}function a206_0x585a(){const _0x2e15fd=['reset','TRACE','setDefaultLevel','string','clear','dispatch','shouldLog','getFormatter','clearHandlers','format','INFO','shutdown','split','stack','name','56223mvFVXK','get','component','setLogLevel','timestamp','defaultLevel',']\x20[','884760IOSYQf','debug','pendingRecords','968590PLHoYF','DEBUG','error','7efgohY','join','set','isInitialized','level','has','getEffectiveLevel','push','initialized','length','levelOverrides','1233243QQoRks','map','832qYUPKf','244856LAoveP','init','78462GQNROx','ERROR','slice','entries','formatter','cause','loggers','message','WARN','log','close','stringify','toISOString','139326BfqhjJ','handlers','trace'];a206_0x585a=function(){return _0x2e15fd;};return a206_0x585a();}(function(_0x51b891,_0x5a072d){const _0x222c66=a206_0x3841,_0x5cdd0d=_0x51b891();while(!![]){try{const _0x433266=-parseInt(_0x222c66(0xad))/0x1+parseInt(_0x222c66(0xc9))/0x2+-parseInt(_0x222c66(0xd7))/0x3+-parseInt(_0x222c66(0xda))/0x4+-parseInt(_0x222c66(0xc6))/0x5+parseInt(_0x222c66(0xdc))/0x6*(parseInt(_0x222c66(0xcc))/0x7)+-parseInt(_0x222c66(0xd9))/0x8*(-parseInt(_0x222c66(0xbf))/0x9);if(_0x433266===_0x5a072d)break;else _0x5cdd0d['push'](_0x5cdd0d['shift']());}catch(_0x36ea17){_0x5cdd0d['push'](_0x5cdd0d['shift']());}}}(a206_0x585a,0x57857));import{LogLevel as a206_0x1dc359,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a206_0x1dc359[a206_0x226c7(0xba)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x2f86b2){const _0x7dd73a=a206_0x226c7;if(typeof _0x2f86b2===_0x7dd73a(0xb3))return _0x2f86b2;if(_0x2f86b2 instanceof Error)return _0x2f86b2[_0x7dd73a(0xbd)]||_0x2f86b2[_0x7dd73a(0xbe)]+':\x20'+_0x2f86b2['message'];try{return JSON[_0x7dd73a(0xe7)](_0x2f86b2,(_0xca4234,_0x356680)=>{const _0x461429=_0x7dd73a;if(_0x356680 instanceof Error)return{'name':_0x356680['name'],'message':_0x356680['message'],'stack':_0x356680['stack'],'cause':_0x356680[_0x461429(0xe1)]};return _0x356680;});}catch{return String(_0x2f86b2);}}export class Logger{[a206_0x226c7(0xc1)];constructor(_0x2364ca){const _0x7e91e9=a206_0x226c7;this[_0x7e91e9(0xc1)]=_0x2364ca;}static['of'](_0x475eaa){const _0x5688c9=a206_0x226c7,_0x177222=typeof _0x475eaa===_0x5688c9(0xb3)?_0x475eaa:_0x475eaa['name'];let _0x68ba7a=state['loggers'][_0x5688c9(0xc0)](_0x177222);return!_0x68ba7a&&(_0x68ba7a=new Logger(_0x177222),state[_0x5688c9(0xe2)]['set'](_0x177222,_0x68ba7a)),_0x68ba7a;}static async[a206_0x226c7(0xdb)](_0x32a571={}){const _0x35966b=a206_0x226c7;state[_0x35966b(0xc4)]=_0x32a571[_0x35966b(0xc4)]??a206_0x1dc359[_0x35966b(0xba)],state[_0x35966b(0xae)]=_0x32a571['handlers']??[],state['formatter']=_0x32a571['formatter']??null,state[_0x35966b(0xd6)][_0x35966b(0xb4)]();if(_0x32a571[_0x35966b(0xd6)])for(const [_0x3604a3,_0x2c9dbe]of Object[_0x35966b(0xdf)](_0x32a571[_0x35966b(0xd6)])){state['levelOverrides'][_0x35966b(0xce)](_0x3604a3,_0x2c9dbe);}for(const _0x59811b of state[_0x35966b(0xae)]){_0x59811b[_0x35966b(0xdb)]&&await _0x59811b[_0x35966b(0xdb)]();}state[_0x35966b(0xd4)]=!![];for(const _0x183d97 of state[_0x35966b(0xc8)]){Logger[_0x35966b(0xb5)](_0x183d97);}state[_0x35966b(0xc8)]=[];}static[a206_0x226c7(0xc2)](_0x3db7b9,_0x2e247a){const _0x4d0272=a206_0x226c7;state[_0x4d0272(0xd6)][_0x4d0272(0xce)](_0x3db7b9,_0x2e247a);}static[a206_0x226c7(0xb2)](_0x2470a3){const _0x332b82=a206_0x226c7;state[_0x332b82(0xc4)]=_0x2470a3;}static['addHandler'](_0x3aa20a){const _0x8f73ac=a206_0x226c7;state[_0x8f73ac(0xae)][_0x8f73ac(0xd3)](_0x3aa20a),state['initialized']&&_0x3aa20a[_0x8f73ac(0xdb)]&&_0x3aa20a[_0x8f73ac(0xdb)]();}static[a206_0x226c7(0xb8)](){state['handlers']=[];}static async[a206_0x226c7(0xbb)](){const _0xa8edfa=a206_0x226c7;for(const _0xa0c109 of state[_0xa8edfa(0xae)]){_0xa0c109['close']&&await _0xa0c109[_0xa8edfa(0xe6)]();}state[_0xa8edfa(0xae)]=[],state[_0xa8edfa(0xd4)]=![],state[_0xa8edfa(0xe2)][_0xa8edfa(0xb4)](),state[_0xa8edfa(0xc8)]=[];}static[a206_0x226c7(0xb0)](){const _0x3f1f10=a206_0x226c7;state[_0x3f1f10(0xd4)]=![],state[_0x3f1f10(0xc4)]=a206_0x1dc359[_0x3f1f10(0xba)],state['levelOverrides'][_0x3f1f10(0xb4)](),state['handlers']=[],state[_0x3f1f10(0xe0)]=null,state[_0x3f1f10(0xe2)][_0x3f1f10(0xb4)](),state['pendingRecords']=[];}static[a206_0x226c7(0xcf)](){return state['initialized'];}static[a206_0x226c7(0xd2)](_0x188f7d){const _0x1c36c1=a206_0x226c7;if(state['levelOverrides'][_0x1c36c1(0xd1)](_0x188f7d))return state[_0x1c36c1(0xd6)][_0x1c36c1(0xc0)](_0x188f7d);const _0x40b01a=_0x188f7d[_0x1c36c1(0xbc)]('.');for(let _0x128474=_0x40b01a[_0x1c36c1(0xd5)]-0x1;_0x128474>0x0;_0x128474--){const _0x39673a=_0x40b01a[_0x1c36c1(0xde)](0x0,_0x128474)[_0x1c36c1(0xcd)]('.');if(state[_0x1c36c1(0xd6)][_0x1c36c1(0xd1)](_0x39673a))return state[_0x1c36c1(0xd6)][_0x1c36c1(0xc0)](_0x39673a);}return state[_0x1c36c1(0xc4)];}[a206_0x226c7(0xb6)](_0x13ce95){const _0x3e85df=a206_0x226c7,_0x1c0cc1=Logger['getEffectiveLevel'](this[_0x3e85df(0xc1)]);return _0x13ce95>=_0x1c0cc1;}static[a206_0x226c7(0xb5)](_0x973491){for(const _0x3f3af1 of state['handlers']){_0x3f3af1['handle'](_0x973491);}}[a206_0x226c7(0xe5)](_0x1d7a8b,_0x461084){const _0x5c0a4f=a206_0x226c7;if(!this['shouldLog'](_0x1d7a8b))return;const _0x38ab49=_0x461084['map'](_0x1db3b9=>typeof _0x1db3b9==='function'?_0x1db3b9():_0x1db3b9),_0xc4c227=_0x38ab49[_0x5c0a4f(0xd8)](safeStringify)[_0x5c0a4f(0xcd)]('\x20'),_0x4c0579={'timestamp':new Date(),'level':_0x1d7a8b,'component':this['component'],'message':_0xc4c227};if(!state['initialized']){state[_0x5c0a4f(0xc8)][_0x5c0a4f(0xd5)]<MAX_PENDING_RECORDS&&state['pendingRecords'][_0x5c0a4f(0xd3)](_0x4c0579);return;}Logger[_0x5c0a4f(0xb5)](_0x4c0579);}[a206_0x226c7(0xaf)](..._0x1bcb8d){const _0x38a514=a206_0x226c7;this[_0x38a514(0xe5)](a206_0x1dc359[_0x38a514(0xb1)],_0x1bcb8d);}[a206_0x226c7(0xc7)](..._0x400ad7){const _0x4c0e0b=a206_0x226c7;this[_0x4c0e0b(0xe5)](a206_0x1dc359[_0x4c0e0b(0xca)],_0x400ad7);}['info'](..._0x573955){const _0x2d595a=a206_0x226c7;this[_0x2d595a(0xe5)](a206_0x1dc359[_0x2d595a(0xba)],_0x573955);}['warn'](..._0x6a5498){const _0x54fbec=a206_0x226c7;this['log'](a206_0x1dc359[_0x54fbec(0xe4)],_0x6a5498);}[a206_0x226c7(0xcb)](..._0xc423ad){const _0x29407d=a206_0x226c7;this[_0x29407d(0xe5)](a206_0x1dc359[_0x29407d(0xdd)],_0xc423ad);}static[a206_0x226c7(0xb7)](){const _0x2f76d8=a206_0x226c7;return state[_0x2f76d8(0xe0)];}static[a206_0x226c7(0xb9)](_0x4f3fee){const _0x69ba49=a206_0x226c7;if(state['formatter'])return state[_0x69ba49(0xe0)][_0x69ba49(0xb9)](_0x4f3fee);return _0x4f3fee[_0x69ba49(0xc3)][_0x69ba49(0xac)]()+'\x20['+logLevelToString(_0x4f3fee[_0x69ba49(0xd0)])+_0x69ba49(0xc5)+_0x4f3fee['component']+']\x20'+_0x4f3fee[_0x69ba49(0xe3)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a207_0x4af7(){const _0xf11852=['WARNING','debug','42XOmoZQ','getDate','getMinutes','toUpperCase','padStart','getMonth','floor','getMilliseconds','WARN','abs','501109ZZdwDW','80547LhVgcJ','error','DEBUG','ERROR','INFO','warn','getTimezoneOffset','TRACE','1648073UMEFhY','info','trace','6tUOwVk','4122rYBSUG','835420TUVmuH','54200nFtFFT','getFullYear','8673670IUxzWM','toString','9131248frSZMY'];a207_0x4af7=function(){return _0xf11852;};return a207_0x4af7();}(function(_0x240ae5,_0x1711d0){const _0x4a9ff0=a207_0x28f0,_0x57bc72=_0x240ae5();while(!![]){try{const _0x25837d=-parseInt(_0x4a9ff0(0x187))/0x1+parseInt(_0x4a9ff0(0x173))/0x2*(-parseInt(_0x4a9ff0(0x188))/0x3)+parseInt(_0x4a9ff0(0x175))/0x4+-parseInt(_0x4a9ff0(0x178))/0x5+parseInt(_0x4a9ff0(0x17d))/0x6*(parseInt(_0x4a9ff0(0x170))/0x7)+-parseInt(_0x4a9ff0(0x17a))/0x8+parseInt(_0x4a9ff0(0x174))/0x9*(parseInt(_0x4a9ff0(0x176))/0xa);if(_0x25837d===_0x1711d0)break;else _0x57bc72['push'](_0x57bc72['shift']());}catch(_0x473f96){_0x57bc72['push'](_0x57bc72['shift']());}}}(a207_0x4af7,0xd7354));export var LogLevel;(function(_0x416985){const _0x47811e=a207_0x28f0;_0x416985[_0x416985[_0x47811e(0x16f)]=-0x2]='TRACE',_0x416985[_0x416985[_0x47811e(0x18a)]=-0x1]=_0x47811e(0x18a),_0x416985[_0x416985['INFO']=0x0]='INFO',_0x416985[_0x416985[_0x47811e(0x185)]=0x1]=_0x47811e(0x185),_0x416985[_0x416985['ERROR']=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x164cb8){const _0x57c117=a207_0x28f0;switch(_0x164cb8[_0x57c117(0x180)]()){case'TRACE':return LogLevel['TRACE'];case _0x57c117(0x18a):return LogLevel['DEBUG'];case _0x57c117(0x16c):return LogLevel['INFO'];case _0x57c117(0x185):case _0x57c117(0x17b):return LogLevel['WARN'];case _0x57c117(0x18b):return LogLevel['ERROR'];default:return LogLevel[_0x57c117(0x16c)];}}function a207_0x28f0(_0x6d12d9,_0x42c7e4){_0x6d12d9=_0x6d12d9-0x16c;const _0x4af7de=a207_0x4af7();let _0x28f0ca=_0x4af7de[_0x6d12d9];return _0x28f0ca;}export function logLevelToString(_0x477fa4){const _0x10c2bc=a207_0x28f0;switch(_0x477fa4){case LogLevel['TRACE']:return _0x10c2bc(0x172);case LogLevel['DEBUG']:return _0x10c2bc(0x17c);case LogLevel[_0x10c2bc(0x16c)]:return _0x10c2bc(0x171);case LogLevel['WARN']:return _0x10c2bc(0x16d);case LogLevel['ERROR']:return _0x10c2bc(0x189);default:return'info';}}export function formatTimestamp(_0x2b4743){const _0x1c0697=a207_0x28f0,_0x513d77=_0x2b4743[_0x1c0697(0x177)](),_0x219f41=(_0x2b4743[_0x1c0697(0x182)]()+0x1)[_0x1c0697(0x179)]()['padStart'](0x2,'0'),_0x24887a=_0x2b4743[_0x1c0697(0x17e)]()[_0x1c0697(0x179)]()[_0x1c0697(0x181)](0x2,'0'),_0xe7aae2=_0x2b4743['getHours']()[_0x1c0697(0x179)]()[_0x1c0697(0x181)](0x2,'0'),_0x35cc00=_0x2b4743[_0x1c0697(0x17f)]()[_0x1c0697(0x179)]()['padStart'](0x2,'0'),_0x12c05b=_0x2b4743['getSeconds']()[_0x1c0697(0x179)]()['padStart'](0x2,'0'),_0x265f4d=_0x2b4743[_0x1c0697(0x184)]()['toString']()[_0x1c0697(0x181)](0x3,'0'),_0x4f78d2=-_0x2b4743[_0x1c0697(0x16e)](),_0x100213=Math[_0x1c0697(0x183)](Math[_0x1c0697(0x186)](_0x4f78d2)/0x3c),_0x5b3c07=Math[_0x1c0697(0x186)](_0x4f78d2)%0x3c,_0x4c7442=_0x4f78d2>=0x0?'+':'-',_0x1ea0dd=''+_0x4c7442+_0x100213[_0x1c0697(0x179)]()[_0x1c0697(0x181)](0x2,'0')+_0x5b3c07[_0x1c0697(0x179)]()[_0x1c0697(0x181)](0x2,'0');return _0x513d77+'-'+_0x219f41+'-'+_0x24887a+'\x20'+_0xe7aae2+':'+_0x35cc00+':'+_0x12c05b+'.'+_0x265f4d+_0x1ea0dd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a208_0x300c(_0x367ff2,_0x2b8cf9){_0x367ff2=_0x367ff2-0x96;const _0x330302=a208_0x3303();let _0x300c26=_0x330302[_0x367ff2];return _0x300c26;}(function(_0x50fccd,_0x54d0b1){const _0x294a02=a208_0x300c,_0x4ac784=_0x50fccd();while(!![]){try{const _0x1ddf75=-parseInt(_0x294a02(0x9d))/0x1+parseInt(_0x294a02(0x98))/0x2+parseInt(_0x294a02(0xa5))/0x3*(parseInt(_0x294a02(0xa2))/0x4)+parseInt(_0x294a02(0x9c))/0x5+parseInt(_0x294a02(0x9b))/0x6*(parseInt(_0x294a02(0x99))/0x7)+parseInt(_0x294a02(0x97))/0x8+-parseInt(_0x294a02(0x96))/0x9;if(_0x1ddf75===_0x54d0b1)break;else _0x4ac784['push'](_0x4ac784['shift']());}catch(_0x557b95){_0x4ac784['push'](_0x4ac784['shift']());}}}(a208_0x3303,0x853d5));export function validateLimitOption(_0xebfbac){const _0x2e8aa7=a208_0x300c;if(!Number[_0x2e8aa7(0xa1)](_0xebfbac))return{'isValid':![],'error':_0x2e8aa7(0x9f)+_0xebfbac+_0x2e8aa7(0xa3)};if(_0xebfbac<=0x0)return{'isValid':![],'error':_0x2e8aa7(0x9f)+_0xebfbac+_0x2e8aa7(0x9e)};return{'isValid':!![],'value':_0xebfbac};}export function validateTimeoutOption(_0x28520f,_0x12bc8c=0x1e){const _0x2ae760=a208_0x300c;if(_0x28520f===undefined)return{'isValid':!![],'value':_0x12bc8c};const _0x55ea14=typeof _0x28520f===_0x2ae760(0xa4)?_0x28520f:parseFloat(_0x28520f);if(isNaN(_0x55ea14))return{'isValid':![],'error':_0x2ae760(0xa0)+_0x28520f+'.\x20Must\x20be\x20a\x20number.'};if(_0x55ea14<=0x0)return{'isValid':![],'error':_0x2ae760(0xa0)+_0x55ea14+_0x2ae760(0x9a)};return{'isValid':!![],'value':_0x55ea14};}function a208_0x3303(){const _0xdaddde=['isInteger','604nODnAW','.\x20Must\x20be\x20an\x20integer.','number','6801lXiJNz','20979792tJnxqa','8244840JxdnTF','1661530bFmmqM','15757noOeFe','.\x20Must\x20be\x20a\x20positive\x20number.','2274OcSQaV','275020WtSAoD','234983bbWiDJ','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20'];a208_0x3303=function(){return _0xdaddde;};return a208_0x3303();}
|