@treasuredata/tdx 2026.3.15 → 2026.3.17
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 +9 -0
- 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/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.js +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/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 +3 -3
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a187_0x3178(_0x5ad4bf,_0x1acd0a){_0x5ad4bf=_0x5ad4bf-0x16b;const _0x29aa16=a187_0x29aa();let _0x3178f7=_0x29aa16[_0x5ad4bf];return _0x3178f7;}(function(_0x4d8e7d,_0x33b68f){const _0xdddb2f=a187_0x3178,_0x35ce3c=_0x4d8e7d();while(!![]){try{const _0x26eafd=-parseInt(_0xdddb2f(0x172))/0x1+parseInt(_0xdddb2f(0x175))/0x2+parseInt(_0xdddb2f(0x170))/0x3*(-parseInt(_0xdddb2f(0x177))/0x4)+parseInt(_0xdddb2f(0x17a))/0x5*(-parseInt(_0xdddb2f(0x16e))/0x6)+parseInt(_0xdddb2f(0x16f))/0x7*(-parseInt(_0xdddb2f(0x178))/0x8)+-parseInt(_0xdddb2f(0x179))/0x9*(parseInt(_0xdddb2f(0x171))/0xa)+-parseInt(_0xdddb2f(0x16d))/0xb*(-parseInt(_0xdddb2f(0x174))/0xc);if(_0x26eafd===_0x33b68f)break;else _0x35ce3c['push'](_0x35ce3c['shift']());}catch(_0x4f0bbe){_0x35ce3c['push'](_0x35ce3c['shift']());}}}(a187_0x29aa,0xa187b));function a187_0x29aa(){const _0x212988=['11zmoKkI','38826ziURRO','1057lvzoGg','60RCkCbd','30cnLGDm','1037845AjiZTX','length','39672480LcZnxv','490598rDKTeV','all','248576wdGKau','12184cOyaWd','1020564gVThNP','30omRoro','map','push'];a187_0x29aa=function(){return _0x212988;};return a187_0x29aa();}export async function batchAsync(_0x1e1fbb,_0x2780fc,_0x371df2=0xa){const _0x3c2f22=a187_0x3178,_0x50ecb7=[];for(let _0x117b2b=0x0;_0x117b2b<_0x1e1fbb[_0x3c2f22(0x173)];_0x117b2b+=_0x371df2){const _0x31d05d=_0x1e1fbb['slice'](_0x117b2b,_0x117b2b+_0x371df2),_0x245b3e=await Promise[_0x3c2f22(0x176)](_0x31d05d[_0x3c2f22(0x16b)](_0x2780fc));_0x50ecb7[_0x3c2f22(0x16c)](..._0x245b3e);}return _0x50ecb7;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c761b,_0x31d63f){const _0x11db94=a188_0x2d1b,_0x3360e3=_0x4c761b();while(!![]){try{const _0x485745=-parseInt(_0x11db94(0x193))/0x1*(parseInt(_0x11db94(0x183))/0x2)+-parseInt(_0x11db94(0x192))/0x3*(parseInt(_0x11db94(0x179))/0x4)+parseInt(_0x11db94(0x189))/0x5+-parseInt(_0x11db94(0x17a))/0x6+parseInt(_0x11db94(0x191))/0x7*(parseInt(_0x11db94(0x17e))/0x8)+-parseInt(_0x11db94(0x186))/0x9*(parseInt(_0x11db94(0x18d))/0xa)+parseInt(_0x11db94(0x187))/0xb;if(_0x485745===_0x31d63f)break;else _0x3360e3['push'](_0x3360e3['shift']());}catch(_0x23f9a5){_0x3360e3['push'](_0x3360e3['shift']());}}}(a188_0x18c5,0xb21eb));import*as a188_0x224a09 from'chalk';function a188_0x2d1b(_0x32a97b,_0x194d11){_0x32a97b=_0x32a97b-0x179;const _0x18c59b=a188_0x18c5();let _0x2d1bb5=_0x18c59b[_0x32a97b];return _0x2d1bb5;}const Chalk=a188_0x224a09['Chalk'];export function shouldUseColor(_0x557bb3={}){const _0x833406=a188_0x2d1b;if(_0x557bb3[_0x833406(0x18c)]===!![])return![];if(_0x557bb3['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x833406(0x18b)]['isTTY']??![];}export function getChalk(_0xfd5d74={}){if(shouldUseColor(_0xfd5d74))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x286116,_0x46d698={}){const _0x51f5bb=a188_0x2d1b;return getChalk(_0x46d698)[_0x51f5bb(0x17b)](_0x286116);}export function colorHeader(_0x4d44c5,_0x567ce4={}){const _0x6abde5=a188_0x2d1b;return getChalk(_0x567ce4)[_0x6abde5(0x182)](_0x4d44c5);}export function colorType(_0x4fe8ae,_0x180725={}){const _0x4a6a99=a188_0x2d1b;return getChalk(_0x180725)[_0x4a6a99(0x17b)](_0x4fe8ae);}function a188_0x18c5(){const _0x1666eb=['map','stdout','noColor','10280cutSbV','isArray','entries','repeat','5033jsFnjD','9mpQdJr','1Aykqdg','106276zbaWPT','2410560AJfmDj','dim','string','null','1432wdRTmZ','length','stringify','object','cyan','2167996GcQQgS','number','join','5013PEJLYH','25153205gAeelT','boolean','2261420FTjRJP'];a188_0x18c5=function(){return _0x1666eb;};return a188_0x18c5();}export function colorJSONKey(_0x333e48,_0x3aa113={}){return getChalk(_0x3aa113)['blue'](_0x333e48);}export function colorJSONString(_0x111367,_0x21a6ae={}){return getChalk(_0x21a6ae)['green'](_0x111367);}export function colorJSONNumber(_0x252124,_0x22a28d={}){const _0x51beed=a188_0x2d1b;return getChalk(_0x22a28d)[_0x51beed(0x182)](_0x252124);}export function colorJSONBoolean(_0x1f4915,_0x4f06c7={}){return getChalk(_0x4f06c7)['yellow'](_0x1f4915);}export function colorJSONNull(_0x359de4,_0x55fa78={}){const _0xddb17a=a188_0x2d1b;return getChalk(_0x55fa78)[_0xddb17a(0x17b)](_0x359de4);}export function colorizeJSONCompact(_0x30de9b,_0x5e0301={}){const _0x4542b1=a188_0x2d1b;if(!shouldUseColor(_0x5e0301))return JSON['stringify'](_0x30de9b);if(_0x30de9b===null)return colorJSONNull(_0x4542b1(0x17d),_0x5e0301);if(typeof _0x30de9b===_0x4542b1(0x188))return colorJSONBoolean(String(_0x30de9b),_0x5e0301);if(typeof _0x30de9b===_0x4542b1(0x184))return colorJSONNumber(String(_0x30de9b),_0x5e0301);if(typeof _0x30de9b==='string')return colorJSONString(JSON[_0x4542b1(0x180)](_0x30de9b),_0x5e0301);if(Array[_0x4542b1(0x18e)](_0x30de9b)){if(_0x30de9b['length']===0x0)return'[]';const _0x1ddd04=_0x30de9b[_0x4542b1(0x18a)](_0x2e2636=>colorizeJSONCompact(_0x2e2636,_0x5e0301));return'['+_0x1ddd04[_0x4542b1(0x185)](',')+']';}if(typeof _0x30de9b===_0x4542b1(0x181)){const _0x499379=Object[_0x4542b1(0x18f)](_0x30de9b);if(_0x499379[_0x4542b1(0x17f)]===0x0)return'{}';const _0x2519f8=_0x499379[_0x4542b1(0x18a)](([_0x4232ac,_0xeed570])=>{const _0x11a2bd=_0x4542b1,_0x25ad23=colorJSONKey(JSON[_0x11a2bd(0x180)](_0x4232ac),_0x5e0301),_0x36d2d1=colorizeJSONCompact(_0xeed570,_0x5e0301);return _0x25ad23+':'+_0x36d2d1;});return'{'+_0x2519f8[_0x4542b1(0x185)](',')+'}';}return String(_0x30de9b);}export function colorizeJSON(_0x1267e6,_0x1f8747={},_0x4e7589=0x0){const _0x50d03b=a188_0x2d1b;if(!shouldUseColor(_0x1f8747))return JSON['stringify'](_0x1267e6,null,0x2);const _0x216e3a='\x20'[_0x50d03b(0x190)](_0x4e7589),_0x356b5f=_0x4e7589+0x2;if(_0x1267e6===null)return colorJSONNull('null',_0x1f8747);if(typeof _0x1267e6===_0x50d03b(0x188))return colorJSONBoolean(String(_0x1267e6),_0x1f8747);if(typeof _0x1267e6===_0x50d03b(0x184))return colorJSONNumber(String(_0x1267e6),_0x1f8747);if(typeof _0x1267e6===_0x50d03b(0x17c))return colorJSONString(JSON[_0x50d03b(0x180)](_0x1267e6),_0x1f8747);if(Array[_0x50d03b(0x18e)](_0x1267e6)){if(_0x1267e6[_0x50d03b(0x17f)]===0x0)return'[]';const _0x49e871=_0x1267e6[_0x50d03b(0x18a)](_0x32bb61=>{const _0x22227f=colorizeJSON(_0x32bb61,_0x1f8747,_0x356b5f);return''+'\x20'['repeat'](_0x356b5f)+_0x22227f;});return'[\x0a'+_0x49e871[_0x50d03b(0x185)](',\x0a')+('\x0a'+_0x216e3a+']');}if(typeof _0x1267e6===_0x50d03b(0x181)){const _0x3ad341=Object[_0x50d03b(0x18f)](_0x1267e6);if(_0x3ad341[_0x50d03b(0x17f)]===0x0)return'{}';const _0x3aa1cb=_0x3ad341['map'](([_0x4be524,_0x355205])=>{const _0xf80ac7=_0x50d03b,_0x3d03f8=colorJSONKey(JSON[_0xf80ac7(0x180)](_0x4be524),_0x1f8747),_0x32111a=colorizeJSON(_0x355205,_0x1f8747,_0x356b5f);return''+'\x20'[_0xf80ac7(0x190)](_0x356b5f)+_0x3d03f8+':\x20'+_0x32111a;});return'{\x0a'+_0x3aa1cb[_0x50d03b(0x185)](',\x0a')+('\x0a'+_0x216e3a+'}');}return String(_0x1267e6);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a189_0x2134(){const _0xeea4a3=['\x20-\x20','unchanged','some','new','red','2227934TOKBuM','6540844enRTqw','split','content','length','green','5hKEdLh','24DMgwFt','size','1212127JgAIEa','max','type','559441oiZCch','\x20\x20...','old','22231oiFOUK','removed','3062976xIaDHW','\x20\x20\x20','join','has','map','forEach','repeat','cyan','push','unshift','added','2910oThcCm','fill','add','16KadVYy','padStart','4909599gbIjXs'];a189_0x2134=function(){return _0xeea4a3;};return a189_0x2134();}(function(_0x318932,_0x477a6e){const _0x3c26c1=a189_0x1233,_0x4f8c48=_0x318932();while(!![]){try{const _0x2451ba=-parseInt(_0x3c26c1(0xae))/0x1+parseInt(_0x3c26c1(0xa2))/0x2+parseInt(_0x3c26c1(0xb3))/0x3+parseInt(_0x3c26c1(0xa3))/0x4*(parseInt(_0x3c26c1(0xa8))/0x5)+-parseInt(_0x3c26c1(0xa9))/0x6*(parseInt(_0x3c26c1(0xab))/0x7)+parseInt(_0x3c26c1(0xc1))/0x8*(-parseInt(_0x3c26c1(0xc3))/0x9)+parseInt(_0x3c26c1(0xbe))/0xa*(-parseInt(_0x3c26c1(0xb1))/0xb);if(_0x2451ba===_0x477a6e)break;else _0x4f8c48['push'](_0x4f8c48['shift']());}catch(_0x36cecd){_0x4f8c48['push'](_0x4f8c48['shift']());}}}(a189_0x2134,0xccd28));import a189_0x14b249 from'chalk';export function generateDiff(_0x1ca5ab,_0x29cc77){const _0x27798d=a189_0x1233,_0x5f4869=_0x1ca5ab[_0x27798d(0xa4)]('\x0a'),_0x9497e1=_0x29cc77[_0x27798d(0xa4)]('\x0a'),_0x206051=[],_0x36fb54=computeLCS(_0x5f4869,_0x9497e1);let _0x5a41a7=0x0,_0xf68cbd=0x0,_0x59a3e9=0x0;while(_0x5a41a7<_0x5f4869[_0x27798d(0xa6)]||_0xf68cbd<_0x9497e1['length']){if(_0x59a3e9<_0x36fb54[_0x27798d(0xa6)]&&_0x5a41a7<_0x5f4869['length']&&_0x5f4869[_0x5a41a7]===_0x36fb54[_0x59a3e9])_0xf68cbd<_0x9497e1[_0x27798d(0xa6)]&&_0x9497e1[_0xf68cbd]===_0x36fb54[_0x59a3e9]?(_0x206051[_0x27798d(0xbb)]({'type':_0x27798d(0xc5),'content':_0x5f4869[_0x5a41a7]}),_0x5a41a7++,_0xf68cbd++,_0x59a3e9++):(_0x206051['push']({'type':_0x27798d(0xbd),'content':_0x9497e1[_0xf68cbd]}),_0xf68cbd++);else{if(_0x59a3e9<_0x36fb54[_0x27798d(0xa6)]&&_0xf68cbd<_0x9497e1[_0x27798d(0xa6)]&&_0x9497e1[_0xf68cbd]===_0x36fb54[_0x59a3e9])_0x206051[_0x27798d(0xbb)]({'type':_0x27798d(0xb2),'content':_0x5f4869[_0x5a41a7]}),_0x5a41a7++;else{if(_0x5a41a7<_0x5f4869[_0x27798d(0xa6)]&&(_0x59a3e9>=_0x36fb54[_0x27798d(0xa6)]||_0x5f4869[_0x5a41a7]!==_0x36fb54[_0x59a3e9]))_0x206051[_0x27798d(0xbb)]({'type':_0x27798d(0xb2),'content':_0x5f4869[_0x5a41a7]}),_0x5a41a7++;else _0xf68cbd<_0x9497e1[_0x27798d(0xa6)]&&(_0x206051['push']({'type':_0x27798d(0xbd),'content':_0x9497e1[_0xf68cbd]}),_0xf68cbd++);}}}return _0x206051;}function computeLCS(_0x9c83c6,_0x2e5a93){const _0x432ca1=a189_0x1233,_0x230e75=_0x9c83c6[_0x432ca1(0xa6)],_0x3caf28=_0x2e5a93[_0x432ca1(0xa6)],_0x1df2f5=Array(_0x230e75+0x1)[_0x432ca1(0xbf)](null)[_0x432ca1(0xb7)](()=>Array(_0x3caf28+0x1)[_0x432ca1(0xbf)](0x0));for(let _0x2a49be=0x1;_0x2a49be<=_0x230e75;_0x2a49be++){for(let _0x10842c=0x1;_0x10842c<=_0x3caf28;_0x10842c++){_0x9c83c6[_0x2a49be-0x1]===_0x2e5a93[_0x10842c-0x1]?_0x1df2f5[_0x2a49be][_0x10842c]=_0x1df2f5[_0x2a49be-0x1][_0x10842c-0x1]+0x1:_0x1df2f5[_0x2a49be][_0x10842c]=Math[_0x432ca1(0xac)](_0x1df2f5[_0x2a49be-0x1][_0x10842c],_0x1df2f5[_0x2a49be][_0x10842c-0x1]);}}const _0xefe713=[];let _0x5a2c8d=_0x230e75,_0x436126=_0x3caf28;while(_0x5a2c8d>0x0&&_0x436126>0x0){if(_0x9c83c6[_0x5a2c8d-0x1]===_0x2e5a93[_0x436126-0x1])_0xefe713[_0x432ca1(0xbc)](_0x9c83c6[_0x5a2c8d-0x1]),_0x5a2c8d--,_0x436126--;else _0x1df2f5[_0x5a2c8d-0x1][_0x436126]>_0x1df2f5[_0x5a2c8d][_0x436126-0x1]?_0x5a2c8d--:_0x436126--;}return _0xefe713;}export function formatDiffWithColors(_0x926675,_0x1d5aed=0x3){const _0x27cec4=a189_0x1233,_0x46e521=new Set();_0x926675[_0x27cec4(0xb8)]((_0x155e2d,_0x22a454)=>{const _0x309a0c=_0x27cec4;_0x155e2d[_0x309a0c(0xad)]!==_0x309a0c(0xc5)&&_0x46e521[_0x309a0c(0xc0)](_0x22a454);});if(_0x46e521[_0x27cec4(0xaa)]===0x0)return'';const _0x445d69=new Set();for(const _0x5b32a7 of _0x46e521){for(let _0x9b9eba=Math[_0x27cec4(0xac)](0x0,_0x5b32a7-_0x1d5aed);_0x9b9eba<=Math['min'](_0x926675[_0x27cec4(0xa6)]-0x1,_0x5b32a7+_0x1d5aed);_0x9b9eba++){_0x445d69['add'](_0x9b9eba);}}const _0x55fcbe=[];let _0x7ab75f=-0x1;const _0x33d310=_0x926675[_0x27cec4(0xa6)],_0x5adbb8=Math[_0x27cec4(0xac)](0x3,String(_0x33d310)[_0x27cec4(0xa6)]),_0x2594ba=[];let _0x3b81a8=0x0,_0xd68952=0x0;for(const _0x55ca50 of _0x926675){if(_0x55ca50[_0x27cec4(0xad)]===_0x27cec4(0xb2))_0x3b81a8++,_0x2594ba[_0x27cec4(0xbb)]({'old':_0x3b81a8,'new':0x0});else _0x55ca50['type']===_0x27cec4(0xbd)?(_0xd68952++,_0x2594ba['push']({'old':0x0,'new':_0xd68952})):(_0x3b81a8++,_0xd68952++,_0x2594ba[_0x27cec4(0xbb)]({'old':_0x3b81a8,'new':_0xd68952}));}for(let _0x18875f=0x0;_0x18875f<_0x926675[_0x27cec4(0xa6)];_0x18875f++){if(!_0x445d69[_0x27cec4(0xb6)](_0x18875f))continue;_0x7ab75f!==-0x1&&_0x18875f>_0x7ab75f+0x1&&_0x55fcbe[_0x27cec4(0xbb)](a189_0x14b249[_0x27cec4(0xba)](_0x27cec4(0xaf)));_0x7ab75f=_0x18875f;const _0x34dde6=_0x926675[_0x18875f],_0xe0f4c3=_0x2594ba[_0x18875f],_0x37a34e=_0xe0f4c3[_0x27cec4(0xb0)]>0x0?String(_0xe0f4c3[_0x27cec4(0xb0)])['padStart'](_0x5adbb8):'\x20'['repeat'](_0x5adbb8),_0x2523df=_0xe0f4c3['new']>0x0?String(_0xe0f4c3[_0x27cec4(0xa0)])[_0x27cec4(0xc2)](_0x5adbb8):'\x20'[_0x27cec4(0xb9)](_0x5adbb8);switch(_0x34dde6['type']){case _0x27cec4(0xb2):_0x55fcbe[_0x27cec4(0xbb)](a189_0x14b249[_0x27cec4(0xa1)](_0x37a34e+'\x20'+_0x2523df+_0x27cec4(0xc4)+_0x34dde6[_0x27cec4(0xa5)]));break;case _0x27cec4(0xbd):_0x55fcbe[_0x27cec4(0xbb)](a189_0x14b249[_0x27cec4(0xa7)](_0x37a34e+'\x20'+_0x2523df+'\x20+\x20'+_0x34dde6[_0x27cec4(0xa5)]));break;default:_0x55fcbe[_0x27cec4(0xbb)](a189_0x14b249['dim'](_0x37a34e+'\x20'+_0x2523df+_0x27cec4(0xb4)+_0x34dde6['content']));break;}}return _0x55fcbe[_0x27cec4(0xb5)]('\x0a');}function a189_0x1233(_0x5020ab,_0x4d6f19){_0x5020ab=_0x5020ab-0xa0;const _0x213426=a189_0x2134();let _0x1233b0=_0x213426[_0x5020ab];return _0x1233b0;}export function hasChanges(_0x2d8f78){const _0x2a5980=a189_0x1233;return _0x2d8f78[_0x2a5980(0xc6)](_0x7cb60d=>_0x7cb60d[_0x2a5980(0xad)]!==_0x2a5980(0xc5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbb5845,_0x172b62){const _0x46aefd=a190_0x5a8d,_0x2053f6=_0xbb5845();while(!![]){try{const _0x28c1bf=parseInt(_0x46aefd(0x15f))/0x1+parseInt(_0x46aefd(0x164))/0x2+parseInt(_0x46aefd(0x16c))/0x3*(-parseInt(_0x46aefd(0x15c))/0x4)+-parseInt(_0x46aefd(0x16a))/0x5+parseInt(_0x46aefd(0x163))/0x6*(-parseInt(_0x46aefd(0x15a))/0x7)+parseInt(_0x46aefd(0x167))/0x8*(-parseInt(_0x46aefd(0x15d))/0x9)+parseInt(_0x46aefd(0x158))/0xa*(parseInt(_0x46aefd(0x16b))/0xb);if(_0x28c1bf===_0x172b62)break;else _0x2053f6['push'](_0x2053f6['shift']());}catch(_0x58847d){_0x2053f6['push'](_0x2053f6['shift']());}}}(a190_0x4b2b,0x85282));import*as a190_0x267aef from'node:fs';function a190_0x4b2b(){const _0x21e9b6=['8LlQZOv','statSync',').\x20','860840gmpcaF','11CLblcy','6kdAOKG','14547610JnqXKX','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','7NgFLXB','\x20has\x20insecure\x20permissions\x20(','1531252nqGpie','8414487voPjUP','chmodSync','484602qcfhGW','dirname','toString','warn','312522ajIkEI','1061742aoGfoi','existsSync','Warning:\x20'];a190_0x4b2b=function(){return _0x21e9b6;};return a190_0x4b2b();}import*as a190_0x5b75f0 from'node:path';export function setSecureFilePermissions(_0x40404a){const _0x3aa9ca=a190_0x5a8d;try{a190_0x267aef['chmodSync'](_0x40404a,0x180);}catch{console['warn'](_0x3aa9ca(0x159)+_0x40404a);}}function a190_0x5a8d(_0x58cfd7,_0x355ba3){_0x58cfd7=_0x58cfd7-0x158;const _0x4b2b16=a190_0x4b2b();let _0x5a8dd0=_0x4b2b16[_0x58cfd7];return _0x5a8dd0;}export function setSecureDirectoryPermissions(_0x5588cc){const _0x439728=a190_0x5a8d;try{a190_0x267aef[_0x439728(0x15e)](_0x5588cc,0x1c0);}catch{console[_0x439728(0x162)](_0x439728(0x159)+_0x5588cc);}}export function createSecureDirectory(_0x233bf0){const _0x46499b=a190_0x5a8d;!a190_0x267aef[_0x46499b(0x165)](_0x233bf0)&&(a190_0x267aef['mkdirSync'](_0x233bf0,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x233bf0));}export function validateSecureFilePermissions(_0x3b8460){const _0x21794e=a190_0x5a8d;try{const _0x2e8ce8=a190_0x267aef[_0x21794e(0x168)](_0x3b8460),_0x4d8dc0=_0x2e8ce8['mode']&0x1ff,_0x2c2607=(_0x4d8dc0&0x3f)!==0x0;if(_0x2c2607)return console[_0x21794e(0x162)](_0x21794e(0x166)+_0x3b8460+_0x21794e(0x15b)+_0x4d8dc0[_0x21794e(0x161)](0x8)+_0x21794e(0x169)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x28e3d4,_0x39a0e9){const _0x13022a=a190_0x5a8d,_0x1b7e2f=a190_0x5b75f0[_0x13022a(0x160)](_0x28e3d4);createSecureDirectory(_0x1b7e2f),a190_0x267aef['writeFileSync'](_0x28e3d4,_0x39a0e9,{'mode':0x180}),setSecureFilePermissions(_0x28e3d4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1041a6,_0x1449a5){const _0x11f1f8=a191_0x2b17,_0x1724c4=_0x1041a6();while(!![]){try{const _0x5cdb61=parseInt(_0x11f1f8(0x1f0))/0x1*(parseInt(_0x11f1f8(0x1e6))/0x2)+parseInt(_0x11f1f8(0x1e2))/0x3*(-parseInt(_0x11f1f8(0x1e3))/0x4)+-parseInt(_0x11f1f8(0x1ee))/0x5*(parseInt(_0x11f1f8(0x1ed))/0x6)+-parseInt(_0x11f1f8(0x1e4))/0x7+-parseInt(_0x11f1f8(0x1e8))/0x8+-parseInt(_0x11f1f8(0x1e5))/0x9+parseInt(_0x11f1f8(0x1e7))/0xa*(parseInt(_0x11f1f8(0x1ea))/0xb);if(_0x5cdb61===_0x1449a5)break;else _0x1724c4['push'](_0x1724c4['shift']());}catch(_0x588c1e){_0x1724c4['push'](_0x1724c4['shift']());}}}(a191_0x5ac2,0xad325));import{readFileSync}from'fs';function a191_0x5ac2(){const _0x54b9d5=['NOT_FOUND','Error\x20reading\x20file\x20\x27','message','Permission\x20denied\x20reading\x20file\x20\x27','67377qUUwha','244xORyTc','3649345nJWDBu','11801646KoJMZd','22iPzsfI','1230dnFGVi','10935152GUYtUH','ENOENT','476113ioqbHL','code','INTERNAL','12ssyOBa','1852055dvyvDo','PERMISSION_DENIED','63268FbOzXM','\x27\x20not\x20found'];a191_0x5ac2=function(){return _0x54b9d5;};return a191_0x5ac2();}function a191_0x2b17(_0x501c2e,_0x5cb8e3){_0x501c2e=_0x501c2e-0x1e0;const _0x5ac2fc=a191_0x5ac2();let _0x2b1701=_0x5ac2fc[_0x501c2e];return _0x2b1701;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x59cb0d){const _0x2d0b6f=a191_0x2b17;try{return readFileSync(_0x59cb0d,'utf-8');}catch(_0x34f60f){const _0x1fedb7=_0x34f60f[_0x2d0b6f(0x1eb)];if(_0x1fedb7===_0x2d0b6f(0x1e9))throw new SDKError(ErrorCode[_0x2d0b6f(0x1f2)],'File\x20\x27'+_0x59cb0d+_0x2d0b6f(0x1f1),_0x34f60f);else{if(_0x1fedb7==='EACCES')throw new SDKError(ErrorCode[_0x2d0b6f(0x1ef)],_0x2d0b6f(0x1e1)+_0x59cb0d+'\x27',_0x34f60f);else throw new SDKError(ErrorCode[_0x2d0b6f(0x1ec)],_0x2d0b6f(0x1f3)+_0x59cb0d+'\x27:\x20'+_0x34f60f[_0x2d0b6f(0x1e0)],_0x34f60f);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xba9b65,_0x78b31d){const _0x4d9d39=a192_0x256f,_0x256e66=_0xba9b65();while(!![]){try{const _0x70b241=-parseInt(_0x4d9d39(0x198))/0x1*(-parseInt(_0x4d9d39(0x184))/0x2)+-parseInt(_0x4d9d39(0x192))/0x3+parseInt(_0x4d9d39(0x181))/0x4+-parseInt(_0x4d9d39(0x194))/0x5+-parseInt(_0x4d9d39(0x188))/0x6*(-parseInt(_0x4d9d39(0x189))/0x7)+parseInt(_0x4d9d39(0x195))/0x8*(-parseInt(_0x4d9d39(0x17c))/0x9)+parseInt(_0x4d9d39(0x17f))/0xa*(parseInt(_0x4d9d39(0x191))/0xb);if(_0x70b241===_0x78b31d)break;else _0x256e66['push'](_0x256e66['shift']());}catch(_0xdde96a){_0x256e66['push'](_0x256e66['shift']());}}}(a192_0x4dfb,0x2a921));import*as a192_0x54610b from'node:https';function a192_0x256f(_0x2c781c,_0x5f3ed8){_0x2c781c=_0x2c781c-0x179;const _0x4dfbd2=a192_0x4dfb();let _0x256f7a=_0x4dfbd2[_0x2c781c];return _0x256f7a;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0xe8109c,_0x1a737b,_0x6c3772){const _0x301964=a192_0x256f,_0x2ed6db=_0xe8109c+'/'+_0x1a737b,_0x336baa=cache[_0x301964(0x183)](_0x2ed6db);if(_0x336baa&&Date[_0x301964(0x196)]()-_0x336baa[_0x301964(0x179)]<CACHE_TTL_MS)return Promise[_0x301964(0x18b)](_0x336baa['releases']);return new Promise((_0x263015,_0x168154)=>{const _0x25c581=_0x301964,_0x2e33e9={'hostname':_0x25c581(0x197),'path':_0x25c581(0x182)+_0xe8109c+'/'+_0x1a737b+_0x25c581(0x17a),'headers':{'User-Agent':_0x6c3772,'Accept':_0x25c581(0x18e)},'timeout':REQUEST_TIMEOUT_MS},_0xad8433=a192_0x54610b[_0x25c581(0x183)](_0x2e33e9,_0x41f800=>{const _0x2a41cd=_0x25c581;let _0x4f2d9c='';_0x41f800['on'](_0x2a41cd(0x18c),_0x5563e5=>{const _0x3161fa=_0x2a41cd;_0x4f2d9c+=_0x5563e5[_0x3161fa(0x18a)]();}),_0x41f800['on']('end',()=>{const _0x308535=_0x2a41cd;if(_0x41f800['statusCode']!==0xc8){_0x168154(new Error('GitHub\x20API\x20returned\x20'+_0x41f800[_0x308535(0x180)]+':\x20'+_0x4f2d9c['slice'](0x0,0xc8)));return;}try{const _0x57974b=JSON[_0x308535(0x18d)](_0x4f2d9c);cache[_0x308535(0x17b)](_0x2ed6db,{'releases':_0x57974b,'fetchedAt':Date[_0x308535(0x196)]()}),_0x263015(_0x57974b);}catch(_0x1ce6e3){_0x168154(_0x1ce6e3);}});});_0xad8433['on'](_0x25c581(0x186),()=>{const _0x1b277d=_0x25c581;_0xad8433[_0x1b277d(0x17d)](),_0x168154(new Error(_0x1b277d(0x190)+REQUEST_TIMEOUT_MS+'ms'));}),_0xad8433['on'](_0x25c581(0x17e),_0x168154);});}function a192_0x4dfb(){const _0x359108=['find','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','4891007PMeAAn','454980KCPnSb','tag_name','1436240YqDiSI','591352EAERbi','now','api.github.com','1982Cjbgac','next','fetchedAt','/releases?per_page=20','set','27WqgcRQ','destroy','error','10gaEOPD','statusCode','554552hYPuvT','/repos/','get','172QQEAMu','prerelease','timeout','length','487842LcZgnu','7FJPaHX','toString','resolve','data','parse','application/vnd.github+json'];a192_0x4dfb=function(){return _0x359108;};return a192_0x4dfb();}export async function resolveReleaseTag(_0x54f240,_0x1ac0bf,_0x21edda,_0x4bc7e6){const _0x1b2327=a192_0x256f,_0x2d4b66=await fetchGitHubReleases(_0x1ac0bf,_0x21edda,_0x4bc7e6);if(_0x2d4b66[_0x1b2327(0x187)]===0x0)return null;if(_0x54f240===_0x1b2327(0x199))return _0x2d4b66[0x0][_0x1b2327(0x193)];const _0x21c45e=_0x2d4b66[_0x1b2327(0x18f)](_0x5bdc44=>!_0x5bdc44[_0x1b2327(0x185)]);return _0x21c45e?_0x21c45e[_0x1b2327(0x193)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4fbbbc,_0x18d7d0){const _0xc7b811=a193_0x160d,_0x1c5d55=_0x4fbbbc();while(!![]){try{const _0x25c5a0=-parseInt(_0xc7b811(0xd0))/0x1*(parseInt(_0xc7b811(0xe2))/0x2)+parseInt(_0xc7b811(0xdd))/0x3*(parseInt(_0xc7b811(0xce))/0x4)+-parseInt(_0xc7b811(0xe0))/0x5+parseInt(_0xc7b811(0xde))/0x6+parseInt(_0xc7b811(0xd1))/0x7*(parseInt(_0xc7b811(0xcf))/0x8)+-parseInt(_0xc7b811(0xd3))/0x9*(parseInt(_0xc7b811(0xd5))/0xa)+-parseInt(_0xc7b811(0xd8))/0xb*(-parseInt(_0xc7b811(0xd6))/0xc);if(_0x25c5a0===_0x18d7d0)break;else _0x1c5d55['push'](_0x1c5d55['shift']());}catch(_0x203756){_0x1c5d55['push'](_0x1c5d55['shift']());}}}(a193_0x2085,0xb23ce));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x56b6f1,_0x9b3299){const _0x4554dd=a193_0x160d,_0x46eddf=registry[_0x4554dd(0xdc)](_0x56b6f1);if(_0x46eddf&&_0x46eddf!==_0x9b3299)throw new Error(_0x4554dd(0xe3)+_0x56b6f1+_0x4554dd(0xd2)+_0x46eddf+_0x4554dd(0xda)+_0x9b3299+'\x22');registry['set'](_0x56b6f1,_0x9b3299);}function a193_0x160d(_0x367b1f,_0x2079b0){_0x367b1f=_0x367b1f-0xcc;const _0x208518=a193_0x2085();let _0x160db0=_0x208518[_0x367b1f];return _0x160db0;}export function getGlobalCachePath(_0xaf0ece){return join(getGlobalCacheDir(),_0xaf0ece);}function ensureGlobalCacheDir(){const _0x4b9039=getGlobalCacheDir();!existsSync(_0x4b9039)&&mkdirSync(_0x4b9039,{'recursive':!![]});}function readCacheJson(_0x387148){const _0x38eb20=a193_0x160d,_0x47adc1=getGlobalCachePath(_0x387148);if(!existsSync(_0x47adc1))return undefined;try{const _0x5496f9=readFileSync(_0x47adc1,'utf-8');return JSON[_0x38eb20(0xe1)](_0x5496f9);}catch{return undefined;}}function writeCacheJson(_0x4ff0bd,_0x129520){const _0x234bbf=a193_0x160d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4ff0bd),JSON[_0x234bbf(0xcd)](_0x129520,null,0x2),_0x234bbf(0xd4));}function readCacheText(_0x124471){const _0xac3c2c=a193_0x160d,_0x203312=getGlobalCachePath(_0x124471);if(!existsSync(_0x203312))return undefined;try{return readFileSync(_0x203312,_0xac3c2c(0xd4));}catch{return undefined;}}function writeCacheText(_0x148ad2,_0x2a41c9){const _0x26b922=a193_0x160d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x148ad2),_0x2a41c9,_0x26b922(0xd4));}function clearCache(_0x25374f){const _0x4d99f3=getGlobalCachePath(_0x25374f);if(existsSync(_0x4d99f3))try{unlinkSync(_0x4d99f3);}catch{}}function cacheExists(_0x208b43){return existsSync(getGlobalCachePath(_0x208b43));}function a193_0x2085(){const _0x5d9686=['128lHATxV','Global\x20cache\x20key\x20\x22','{profile}','stringify','4UCnDDj','6509384QZBlOE','2733TLvVJf','7JjuiqO','\x22\x20already\x20registered\x20by\x20\x22','5798538ySlDPK','utf-8','20DBZvnr','2049108dGhstP','trim','44EpfaVw','clear','\x22,\x20cannot\x20register\x20for\x20\x22','default','get','2503101iBxxWS','7802202YUOYiR','replace','7189525pYFZJn','parse'];a193_0x2085=function(){return _0x5d9686;};return a193_0x2085();}export function createGlobalCache(_0x29d036,_0x9167cf){return registerGlobalCacheKey(_0x29d036,_0x9167cf),{'read':()=>readCacheJson(_0x29d036),'write':_0x535ad3=>writeCacheJson(_0x29d036,_0x535ad3),'clear':()=>clearCache(_0x29d036),'exists':()=>cacheExists(_0x29d036),'path':()=>getGlobalCachePath(_0x29d036)};}export function createGlobalTextCache(_0x191de2,_0x5192ed){const _0x1811ee=a193_0x160d;return registerGlobalCacheKey(_0x191de2,_0x5192ed),{'read':()=>readCacheText(_0x191de2)?.[_0x1811ee(0xd7)]()||undefined,'write':_0x4935bb=>writeCacheText(_0x191de2,_0x4935bb),'clear':()=>clearCache(_0x191de2),'exists':()=>cacheExists(_0x191de2),'path':()=>getGlobalCachePath(_0x191de2)};}export function createProfileCache(_0x3366e8,_0x3d4fe2){const _0x36fa75=_0x317612=>{const _0x27c75e=a193_0x160d,_0x21c4b0=_0x317612||_0x27c75e(0xdb);return _0x3366e8[_0x27c75e(0xdf)](_0x27c75e(0xcc),_0x21c4b0);};return{'read':_0x3d34bf=>{const _0x5a6526=_0x36fa75(_0x3d34bf);return registerGlobalCacheKey(_0x5a6526,_0x3d4fe2),readCacheJson(_0x5a6526);},'write':(_0x108bc3,_0x44fab8)=>{const _0x4ef0ff=_0x36fa75(_0x108bc3);registerGlobalCacheKey(_0x4ef0ff,_0x3d4fe2),writeCacheJson(_0x4ef0ff,_0x44fab8);},'clear':_0x2a7e4e=>{const _0x27b13d=_0x36fa75(_0x2a7e4e);clearCache(_0x27b13d);},'exists':_0x4dbd96=>{const _0x57c7c3=_0x36fa75(_0x4dbd96);return cacheExists(_0x57c7c3);},'path':_0x300efc=>{const _0x42eee3=_0x36fa75(_0x300efc);return getGlobalCachePath(_0x42eee3);}};}export function createOptionalProfileCache(_0x6670dc,_0x34da07,_0x2e4c26={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2e4c26,_0x2e61f5=_0x416864=>{return _0x416864?''+_0x6670dc+profileSeparator+_0x416864+suffix:''+_0x6670dc+suffix;};return{'read':_0xad9d1d=>{const _0x290711=_0x2e61f5(_0xad9d1d);return registerGlobalCacheKey(_0x290711,_0x34da07),readCacheJson(_0x290711);},'write':(_0x4809ec,_0x2ec194)=>{const _0x507166=_0x2e61f5(_0x2ec194);registerGlobalCacheKey(_0x507166,_0x34da07),writeCacheJson(_0x507166,_0x4809ec);},'clear':_0x22e5da=>{const _0x42bb99=_0x2e61f5(_0x22e5da);clearCache(_0x42bb99);},'exists':_0x53c4ce=>{const _0x5885b8=_0x2e61f5(_0x53c4ce);return cacheExists(_0x5885b8);},'path':_0x5b0ea8=>{const _0x5a5866=_0x2e61f5(_0x5b0ea8);return getGlobalCachePath(_0x5a5866);}};}export function clearGlobalRegistry(){const _0x4e4340=a193_0x160d;registry[_0x4e4340(0xd9)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d0ed1,_0x4ba264){const _0x3736a2=a194_0x4293,_0x55a645=_0x1d0ed1();while(!![]){try{const _0x26a092=parseInt(_0x3736a2(0x7b))/0x1+-parseInt(_0x3736a2(0x7a))/0x2*(-parseInt(_0x3736a2(0x7c))/0x3)+-parseInt(_0x3736a2(0x78))/0x4*(parseInt(_0x3736a2(0x84))/0x5)+-parseInt(_0x3736a2(0x7d))/0x6*(-parseInt(_0x3736a2(0x87))/0x7)+-parseInt(_0x3736a2(0x81))/0x8+-parseInt(_0x3736a2(0x86))/0x9+parseInt(_0x3736a2(0x75))/0xa;if(_0x26a092===_0x4ba264)break;else _0x55a645['push'](_0x55a645['shift']());}catch(_0xfa003e){_0x55a645['push'](_0x55a645['shift']());}}}(a194_0x5195,0x348b6));import{readFile}from'fs/promises';function a194_0x4293(_0x36ed05,_0x1f48b6){_0x36ed05=_0x36ed05-0x71;const _0x51955a=a194_0x5195();let _0x4293f8=_0x51955a[_0x36ed05];return _0x4293f8;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x495fa4,_0x578b94){const _0x2d874f=a194_0x4293;try{if(_0x578b94){const _0x5760ef=await readFile(_0x495fa4,_0x2d874f(0x76));try{return JSON[_0x2d874f(0x71)](_0x5760ef);}catch(_0x13ebad){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x2d874f(0x7f)+_0x495fa4+_0x2d874f(0x88)+(_0x13ebad instanceof Error?_0x13ebad['message']:String(_0x13ebad)));}}else try{return JSON[_0x2d874f(0x71)](_0x495fa4);}catch(_0x2f3bda){throw new SDKError(ErrorCode[_0x2d874f(0x73)],_0x2d874f(0x80)+(_0x2f3bda instanceof Error?_0x2f3bda[_0x2d874f(0x89)]:String(_0x2f3bda)));}}catch(_0x2e0ef4){if(_0x2e0ef4 instanceof SDKError)throw _0x2e0ef4;if(_0x2e0ef4 instanceof Error&&'code'in _0x2e0ef4){const _0xb05f2c=_0x2e0ef4;if(_0xb05f2c[_0x2d874f(0x79)]===_0x2d874f(0x85))throw new SDKError(ErrorCode['NOT_FOUND'],_0x2d874f(0x72)+_0x495fa4);else{if(_0xb05f2c[_0x2d874f(0x79)]===_0x2d874f(0x74))throw new SDKError(ErrorCode[_0x2d874f(0x83)],'Permission\x20denied\x20reading\x20file:\x20'+_0x495fa4);}}throw new SDKError(ErrorCode[_0x2d874f(0x82)],_0x2d874f(0x7e)+(_0x2e0ef4 instanceof Error?_0x2e0ef4[_0x2d874f(0x89)]:String(_0x2e0ef4)));}}export async function loadJSONFromOptions(_0x1ca116,_0x4b9e53){const _0x630908=a194_0x4293;if(_0x1ca116&&_0x4b9e53)throw new SDKError(ErrorCode[_0x630908(0x73)],_0x630908(0x77));if(_0x1ca116)return await loadJSON(_0x1ca116,![]);if(_0x4b9e53)return await loadJSON(_0x4b9e53,!![]);return undefined;}function a194_0x5195(){const _0x5d4134=['Invalid\x20JSON\x20string:\x20','2024384iLhsGs','INTERNAL','PERMISSION_DENIED','1496285CmCOtV','ENOENT','890865iycGjy','7jScTbh','\x27:\x20','message','parse','File\x20not\x20found:\x20','INVALID_ARGUMENT','EACCES','244140WZztLz','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4RNlXni','code','344228SzZwwd','315230RDNvCS','3TLSTjq','2128524QiBWnZ','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27'];a194_0x5195=function(){return _0x5d4134;};return a194_0x5195();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f63ef,_0x6b197c){const _0x1007cc=a195_0x2826,_0x3b93a8=_0x3f63ef();while(!![]){try{const _0x132fa3=-parseInt(_0x1007cc(0x180))/0x1*(parseInt(_0x1007cc(0x184))/0x2)+parseInt(_0x1007cc(0x189))/0x3*(parseInt(_0x1007cc(0x182))/0x4)+parseInt(_0x1007cc(0x183))/0x5+-parseInt(_0x1007cc(0x18a))/0x6+parseInt(_0x1007cc(0x188))/0x7*(parseInt(_0x1007cc(0x178))/0x8)+parseInt(_0x1007cc(0x177))/0x9*(-parseInt(_0x1007cc(0x187))/0xa)+parseInt(_0x1007cc(0x17f))/0xb;if(_0x132fa3===_0x6b197c)break;else _0x3b93a8['push'](_0x3b93a8['shift']());}catch(_0x539c9f){_0x3b93a8['push'](_0x3b93a8['shift']());}}}(a195_0x4a3a,0xd98c4));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x2984f1,_0x424063){const _0x3d26b2=a195_0x2826,_0x4aa735=registry[_0x3d26b2(0x17d)](_0x2984f1);if(_0x4aa735&&_0x4aa735!==_0x424063)throw new Error(_0x3d26b2(0x186)+_0x2984f1+_0x3d26b2(0x18b)+_0x4aa735+_0x3d26b2(0x181)+_0x424063+'\x22');registry[_0x3d26b2(0x18c)](_0x2984f1,_0x424063);}export function getCacheDir(){const _0xcd04de=a195_0x2826,_0xd56002=process[_0xcd04de(0x17c)](),_0x5a8a30=_0xd56002===parse(_0xd56002)['root']?homedir():_0xd56002;return join(_0x5a8a30,LOCAL_CACHE_DIR);}export function getCachePath(_0x4fcb40){return join(getCacheDir(),_0x4fcb40);}function ensureCacheDir(){const _0x1b3a6e=getCacheDir();!existsSync(_0x1b3a6e)&&mkdirSync(_0x1b3a6e,{'recursive':!![]});}function readCacheJson(_0x47de19){const _0x3d89d5=a195_0x2826,_0x49b70a=getCachePath(_0x47de19);if(!existsSync(_0x49b70a))return undefined;try{const _0x2464f7=readFileSync(_0x49b70a,'utf-8');return JSON[_0x3d89d5(0x185)](_0x2464f7);}catch{return undefined;}}function writeCacheJson(_0xfc3e9d,_0x45a390){const _0x3b9737=a195_0x2826;ensureCacheDir(),writeFileSync(getCachePath(_0xfc3e9d),JSON[_0x3b9737(0x17e)](_0x45a390,null,0x2),_0x3b9737(0x17b));}function readCacheText(_0x661d21){const _0x1e1644=a195_0x2826,_0x157095=getCachePath(_0x661d21);if(!existsSync(_0x157095))return undefined;try{return readFileSync(_0x157095,_0x1e1644(0x17b));}catch{return undefined;}}function writeCacheText(_0x5a58ea,_0x5dc467){const _0x36a7dc=a195_0x2826;ensureCacheDir(),writeFileSync(getCachePath(_0x5a58ea),_0x5dc467,_0x36a7dc(0x17b));}function a195_0x4a3a(){const _0x191711=['\x22,\x20cannot\x20register\x20for\x20\x22','489208KoQFZH','229215JmsLOd','11630IzahvR','parse','Cache\x20key\x20\x22','1630030QlWAqM','738899ciMWKc','24XuCeoM','7865112dbKvBD','\x22\x20already\x20registered\x20by\x20\x22','set','81JrWiIJ','56qsOGVG','clear','trim','utf-8','cwd','get','stringify','36827087DTUxlg','248KJtYPL'];a195_0x4a3a=function(){return _0x191711;};return a195_0x4a3a();}function clearCache(_0xc50756){const _0x3e867e=getCachePath(_0xc50756);if(existsSync(_0x3e867e))try{unlinkSync(_0x3e867e);}catch{}}function cacheExists(_0x4794c1){return existsSync(getCachePath(_0x4794c1));}export function createCache(_0x132994,_0xda46bd){return registerCacheKey(_0x132994,_0xda46bd),{'read':()=>readCacheJson(_0x132994),'write':_0x18b116=>writeCacheJson(_0x132994,_0x18b116),'clear':()=>clearCache(_0x132994),'exists':()=>cacheExists(_0x132994),'path':()=>getCachePath(_0x132994)};}export function createTextCache(_0x1c627e,_0x14be30){const _0x21ac69=a195_0x2826;return registerCacheKey(_0x1c627e,_0x14be30),{'read':()=>readCacheText(_0x1c627e)?.[_0x21ac69(0x17a)]()||undefined,'write':_0x517499=>writeCacheText(_0x1c627e,_0x517499),'clear':()=>clearCache(_0x1c627e),'exists':()=>cacheExists(_0x1c627e),'path':()=>getCachePath(_0x1c627e)};}function a195_0x2826(_0x47b514,_0x1b9dbf){_0x47b514=_0x47b514-0x177;const _0x4a3af9=a195_0x4a3a();let _0x28269e=_0x4a3af9[_0x47b514];return _0x28269e;}export function clearRegistry(){const _0x1a299a=a195_0x2826;registry[_0x1a299a(0x179)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a196_0x44bb37=a196_0x3494;(function(_0x3a3c4e,_0x71c2aa){const _0x4a1344=a196_0x3494,_0xa31c8=_0x3a3c4e();while(!![]){try{const _0x27c797=-parseInt(_0x4a1344(0x187))/0x1+parseInt(_0x4a1344(0x174))/0x2*(-parseInt(_0x4a1344(0x17c))/0x3)+parseInt(_0x4a1344(0x17d))/0x4*(-parseInt(_0x4a1344(0x16e))/0x5)+-parseInt(_0x4a1344(0x178))/0x6*(parseInt(_0x4a1344(0x16f))/0x7)+parseInt(_0x4a1344(0x179))/0x8+parseInt(_0x4a1344(0x17e))/0x9+parseInt(_0x4a1344(0x189))/0xa;if(_0x27c797===_0x71c2aa)break;else _0xa31c8['push'](_0xa31c8['shift']());}catch(_0x4e2a10){_0xa31c8['push'](_0xa31c8['shift']());}}}(a196_0xf0ea,0xcd680));function a196_0x3494(_0x2f10d9,_0x32f78c){_0x2f10d9=_0x2f10d9-0x16e;const _0xf0eadc=a196_0xf0ea();let _0x34941a=_0xf0eadc[_0x2f10d9];return _0x34941a;}function a196_0xf0ea(){const _0x4241b4=['timestamp','INFO','colors','default','colorLevel','green','level','component','1420416CPExoi','dim','57292540FArPaO','1715ebIqIF','7HNQOaf','ERROR','gray','red','chalk','6IAfErL',']\x20[','yellow','TRACE','7307046DMiWJk','2144304xGRdMG','cyan','Chalk','1579383jXpcJp','15948hJjVuZ','3863097WsabqW'];a196_0xf0ea=function(){return _0x4241b4;};return a196_0xf0ea();}import a196_0x55ff8e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x55ff8e,ChalkClass=chalkModule[a196_0x44bb37(0x17b)]||chalkModule[a196_0x44bb37(0x182)]?.[a196_0x44bb37(0x17b)];export class DefaultLogFormatter{[a196_0x44bb37(0x181)];['chalk'];constructor(_0x153949={}){const _0x4e2845=a196_0x44bb37;this[_0x4e2845(0x181)]=_0x153949[_0x4e2845(0x181)]??![],this[_0x4e2845(0x173)]=_0x153949['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x55ff8e;}['format'](_0x14f8d8){const _0x2c97bd=a196_0x44bb37,_0x5f5853=formatTimestamp(_0x14f8d8[_0x2c97bd(0x17f)]),_0x19b7b9=logLevelToString(_0x14f8d8[_0x2c97bd(0x185)]);if(!this[_0x2c97bd(0x181)])return _0x5f5853+'\x20['+_0x19b7b9+_0x2c97bd(0x175)+_0x14f8d8[_0x2c97bd(0x186)]+']\x20'+_0x14f8d8['message'];const _0x25e97e=this[_0x2c97bd(0x173)][_0x2c97bd(0x188)](_0x5f5853),_0x5027ec=this[_0x2c97bd(0x183)](_0x19b7b9,_0x14f8d8[_0x2c97bd(0x185)]),_0x27d8ee=this[_0x2c97bd(0x173)]['blue']('['+_0x14f8d8[_0x2c97bd(0x186)]+']');return _0x25e97e+'\x20'+_0x5027ec+'\x20'+_0x27d8ee+'\x20'+_0x14f8d8['message'];}[a196_0x44bb37(0x183)](_0x36ff7d,_0x111160){const _0x363bf3=a196_0x44bb37;switch(_0x111160){case LogLevel[_0x363bf3(0x177)]:return this[_0x363bf3(0x173)][_0x363bf3(0x171)]('['+_0x36ff7d+']');case LogLevel['DEBUG']:return this[_0x363bf3(0x173)][_0x363bf3(0x184)]('['+_0x36ff7d+']');case LogLevel[_0x363bf3(0x180)]:return this['chalk'][_0x363bf3(0x17a)]('['+_0x36ff7d+']');case LogLevel['WARN']:return this[_0x363bf3(0x173)][_0x363bf3(0x176)]('['+_0x36ff7d+']');case LogLevel[_0x363bf3(0x170)]:return this['chalk'][_0x363bf3(0x172)]('['+_0x36ff7d+']');default:return'['+_0x36ff7d+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a197_0x3756(){var _0x4df8e8=['148GAPVar','11555vodlwP','1968344pkvcoH','2476418xqMrBn','63WSNmeD','160780ryCjkt','12ptrtrp','1282872XNNDOP','946NWiaDh','1539057YefGQi','885603iPGpqN'];a197_0x3756=function(){return _0x4df8e8;};return a197_0x3756();}function a197_0x5139(_0x46e312,_0x173245){_0x46e312=_0x46e312-0x10c;var _0x375609=a197_0x3756();var _0x5139e4=_0x375609[_0x46e312];return _0x5139e4;}(function(_0x205851,_0x60b265){var _0x4c6ee2=a197_0x5139,_0x31456a=_0x205851();while(!![]){try{var _0x28043c=-parseInt(_0x4c6ee2(0x113))/0x1+-parseInt(_0x4c6ee2(0x116))/0x2+-parseInt(_0x4c6ee2(0x112))/0x3+-parseInt(_0x4c6ee2(0x114))/0x4*(-parseInt(_0x4c6ee2(0x115))/0x5)+-parseInt(_0x4c6ee2(0x10f))/0x6*(-parseInt(_0x4c6ee2(0x10c))/0x7)+parseInt(_0x4c6ee2(0x110))/0x8*(parseInt(_0x4c6ee2(0x10d))/0x9)+parseInt(_0x4c6ee2(0x10e))/0xa*(parseInt(_0x4c6ee2(0x111))/0xb);if(_0x28043c===_0x60b265)break;else _0x31456a['push'](_0x31456a['shift']());}catch(_0x4dfe06){_0x31456a['push'](_0x31456a['shift']());}}}(a197_0x3756,0xdf81a));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a198_0xf47d(_0x268637,_0x4ed81d){_0x268637=_0x268637-0xe0;const _0x11ca73=a198_0x11ca();let _0xf47db9=_0x11ca73[_0x268637];return _0xf47db9;}const a198_0x48da5f=a198_0xf47d;(function(_0x535564,_0x23bfe3){const _0x459353=a198_0xf47d,_0x15ab46=_0x535564();while(!![]){try{const _0x85d755=-parseInt(_0x459353(0xef))/0x1*(-parseInt(_0x459353(0xe7))/0x2)+-parseInt(_0x459353(0xed))/0x3+parseInt(_0x459353(0xea))/0x4*(-parseInt(_0x459353(0xeb))/0x5)+-parseInt(_0x459353(0xf2))/0x6*(-parseInt(_0x459353(0xe0))/0x7)+parseInt(_0x459353(0xf0))/0x8*(-parseInt(_0x459353(0xee))/0x9)+-parseInt(_0x459353(0xe4))/0xa+-parseInt(_0x459353(0xe6))/0xb*(-parseInt(_0x459353(0xe8))/0xc);if(_0x85d755===_0x23bfe3)break;else _0x15ab46['push'](_0x15ab46['shift']());}catch(_0x4750c7){_0x15ab46['push'](_0x15ab46['shift']());}}}(a198_0x11ca,0xef7e7));import{LogLevel as a198_0x1855da}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a198_0x48da5f(0xf1)];['useStderr'];['formatter'];constructor(_0x518726={}){const _0x122ae6=a198_0x48da5f;this['minLevel']=_0x518726['minLevel']??a198_0x1855da[_0x122ae6(0xf3)],this['useStderr']=_0x518726[_0x122ae6(0xe5)]??!![],this[_0x122ae6(0xe2)]=new DefaultLogFormatter({'colors':_0x518726[_0x122ae6(0xe1)]??!![]});}['handle'](_0x177baa){const _0x2c558c=a198_0x48da5f;if(_0x177baa[_0x2c558c(0xec)]<this[_0x2c558c(0xf1)])return;const _0x7636e6=this['formatter'][_0x2c558c(0xe3)](_0x177baa);this[_0x2c558c(0xe5)]&&_0x177baa['level']>=a198_0x1855da[_0x2c558c(0xf3)]?console['error'](_0x7636e6):console[_0x2c558c(0xe9)](_0x7636e6);}}function a198_0x11ca(){const _0x54ab61=['14YexHBF','colors','formatter','format','19532040BVibfB','useStderr','11YJOqcR','14wCVNuj','41854716JzlpkO','log','908kgNQCu','14755oxlFza','level','2346360ZnajBo','2115xtYeky','16187loaxqR','35536QpQiZU','minLevel','5486508gwrIMN','WARN'];a198_0x11ca=function(){return _0x54ab61;};return a198_0x11ca();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x4c1f93=a199_0x4cda;(function(_0x4c3a4e,_0x392793){const _0x58a5df=a199_0x4cda,_0x5f5a0f=_0x4c3a4e();while(!![]){try{const _0x2e7da3=-parseInt(_0x58a5df(0x1af))/0x1*(parseInt(_0x58a5df(0x1c7))/0x2)+-parseInt(_0x58a5df(0x1c8))/0x3+-parseInt(_0x58a5df(0x1b5))/0x4+parseInt(_0x58a5df(0x1be))/0x5*(parseInt(_0x58a5df(0x1ce))/0x6)+parseInt(_0x58a5df(0x1bd))/0x7*(parseInt(_0x58a5df(0x1ba))/0x8)+-parseInt(_0x58a5df(0x1b8))/0x9*(parseInt(_0x58a5df(0x1c1))/0xa)+parseInt(_0x58a5df(0x1cc))/0xb*(parseInt(_0x58a5df(0x1bb))/0xc);if(_0x2e7da3===_0x392793)break;else _0x5f5a0f['push'](_0x5f5a0f['shift']());}catch(_0x1a81c0){_0x5f5a0f['push'](_0x5f5a0f['shift']());}}}(a199_0xb141,0x24500));function a199_0xb141(){const _0x53fdd0=['7551qmjDnQ','logFileName','1543376OEFRcO','2877276vOyMFx','format','7DcCwHU','45ybpHhc','includes','Warning:\x20Error\x20writing\x20to\x20','1190TCrAdM','close','rotate','\x5c$&','logs','test','2lwoRid','180807zNiBlk','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','replace','mtime','11WlFuBo','init','80586AYinRP','toISOString','logStream','logDir','split','72509CPwOYf','error','logBaseName','message','logPath','handle','688876ONQmKZ','filePath','end'];a199_0xb141=function(){return _0x53fdd0;};return a199_0xb141();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a199_0x4cda(_0x423af1,_0xf907c6){_0x423af1=_0x423af1-0x1ad;const _0xb14117=a199_0xb141();let _0x4cda29=_0xb14117[_0x423af1];return _0x4cda29;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x4c1f93(0x1b3)];[a199_0x4c1f93(0x1ad)];[a199_0x4c1f93(0x1b9)];[a199_0x4c1f93(0x1b1)];['logStream']=null;[a199_0x4c1f93(0x1c3)];constructor(_0x449dfa={}){const _0x50fcdd=a199_0x4c1f93;this['logPath']=_0x449dfa[_0x50fcdd(0x1b6)]??join(getGlobalCacheDir(),_0x50fcdd(0x1c5),'tdx.log'),this[_0x50fcdd(0x1ad)]=dirname(this['logPath']),this['logFileName']=basename(this[_0x50fcdd(0x1b3)]),this[_0x50fcdd(0x1b1)]=this[_0x50fcdd(0x1b9)][_0x50fcdd(0x1ca)](/\.log$/,''),this[_0x50fcdd(0x1c3)]=_0x449dfa[_0x50fcdd(0x1c3)]??!![];}async[a199_0x4c1f93(0x1cd)](){const _0x3d766b=a199_0x4c1f93;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x3d766b(0x1c3)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3d766b(0x1d0)]['on']('error',_0x34d37e=>{const _0x27e7c3=_0x3d766b;console['error'](_0x27e7c3(0x1c0)+this[_0x27e7c3(0x1b9)]+':',_0x34d37e[_0x27e7c3(0x1b2)]);});}catch(_0x5ef76a){console[_0x3d766b(0x1b0)](_0x3d766b(0x1c9),_0x5ef76a);}}[a199_0x4c1f93(0x1b4)](_0x44e8b3){const _0x4d67bd=a199_0x4c1f93;if(!this[_0x4d67bd(0x1d0)])return;const _0x1c0fbf=Logger[_0x4d67bd(0x1bc)](_0x44e8b3);this[_0x4d67bd(0x1d0)]['write'](_0x1c0fbf+'\x0a');}async[a199_0x4c1f93(0x1c2)](){return new Promise(_0x4f4b32=>{const _0x1dfa62=a199_0x4cda;this[_0x1dfa62(0x1d0)]?this[_0x1dfa62(0x1d0)][_0x1dfa62(0x1b7)](()=>{const _0x4400cc=_0x1dfa62;this[_0x4400cc(0x1d0)]=null,_0x4f4b32();}):_0x4f4b32();});}['getLogPath'](){const _0x498f26=a199_0x4c1f93;return this[_0x498f26(0x1b3)];}async['rotateOldLogs'](){const _0x300450=a199_0x4c1f93;try{const _0x3c1074=await readdir(this['logDir']),_0x3da097=new Date()[_0x300450(0x1cf)]()['split']('T')[0x0];if(_0x3c1074[_0x300450(0x1bf)](this[_0x300450(0x1b9)])){const _0x4f365b=join(this[_0x300450(0x1ad)],this['logFileName']),_0x56292a=await stat(_0x4f365b),_0x414bdb=new Date(_0x56292a[_0x300450(0x1cb)])[_0x300450(0x1cf)]()[_0x300450(0x1ae)]('T')[0x0];if(_0x414bdb<_0x3da097){const _0x4440db=join(this['logDir'],this[_0x300450(0x1b1)]+'-'+_0x414bdb+'.log');await rename(_0x4f365b,_0x4440db);}}const _0xb5f1aa=await readdir(this[_0x300450(0x1ad)]),_0x4986f9=this[_0x300450(0x1b1)][_0x300450(0x1ca)](/[.*+?^${}()|[\]\\]/g,_0x300450(0x1c4)),_0xb7a39e=new RegExp('^'+_0x4986f9+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x24db7f=_0xb5f1aa['filter'](_0x564abd=>_0xb7a39e[_0x300450(0x1c6)](_0x564abd));for(const _0x4154ba of _0x24db7f){const _0x58fc46=join(this[_0x300450(0x1ad)],_0x4154ba),_0x3efbdf=join(this[_0x300450(0x1ad)],_0x4154ba+'.gz');try{await pipeline(createReadStream(_0x58fc46),createGzip(),createWriteStream(_0x3efbdf)),await unlink(_0x58fc46);}catch(_0x20439e){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x4154ba+':',_0x20439e);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x2316(){var _0x2cd7ee=['10yBccmv','1179741UrBnhv','16989144XoCifO','5915qjWKyX','2457037ZVpDbJ','986785JcahXr','32LYYZqM','3462SpducS','292LQKuUL','1311dfgGLx','124164EcHUOk','4SVuhfl'];a200_0x2316=function(){return _0x2cd7ee;};return a200_0x2316();}(function(_0x55a20c,_0x57bd9a){var _0x1da67d=a200_0x1867,_0x2a1456=_0x55a20c();while(!![]){try{var _0x3e5e94=parseInt(_0x1da67d(0x1ec))/0x1*(parseInt(_0x1da67d(0x1f7))/0x2)+-parseInt(_0x1da67d(0x1f0))/0x3*(parseInt(_0x1da67d(0x1ee))/0x4)+-parseInt(_0x1da67d(0x1f4))/0x5+-parseInt(_0x1da67d(0x1f6))/0x6*(parseInt(_0x1da67d(0x1f2))/0x7)+-parseInt(_0x1da67d(0x1f5))/0x8*(-parseInt(_0x1da67d(0x1ed))/0x9)+-parseInt(_0x1da67d(0x1ef))/0xa*(parseInt(_0x1da67d(0x1f3))/0xb)+parseInt(_0x1da67d(0x1f1))/0xc;if(_0x3e5e94===_0x57bd9a)break;else _0x2a1456['push'](_0x2a1456['shift']());}catch(_0x4584b3){_0x2a1456['push'](_0x2a1456['shift']());}}}(a200_0x2316,0x58170));function a200_0x1867(_0x208c3f,_0x471535){_0x208c3f=_0x208c3f-0x1ec;var _0x231661=a200_0x2316();var _0x186787=_0x231661[_0x208c3f];return _0x186787;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a201_0x335a98=a201_0x34c3;function a201_0x34c3(_0x14af7e,_0x952663){_0x14af7e=_0x14af7e-0x13b;var _0x14610d=a201_0x1461();var _0x34c3dd=_0x14610d[_0x14af7e];return _0x34c3dd;}function a201_0x1461(){var _0x12444d=['1903936vHCajf','558SMXCwt','1110864gxJrDA','9AiWLoJ','2637040FNxHAp','94389zclSWv','9595HfWgNs','2859670zkdiMr','264759bFnefT','handle','18PyOzTz'];a201_0x1461=function(){return _0x12444d;};return a201_0x1461();}(function(_0x66dffb,_0x223407){var _0x4182b=a201_0x34c3,_0x132f45=_0x66dffb();while(!![]){try{var _0x4ffb95=parseInt(_0x4182b(0x140))/0x1+parseInt(_0x4182b(0x142))/0x2*(-parseInt(_0x4182b(0x13d))/0x3)+-parseInt(_0x4182b(0x145))/0x4+parseInt(_0x4182b(0x13e))/0x5*(parseInt(_0x4182b(0x144))/0x6)+parseInt(_0x4182b(0x13c))/0x7+parseInt(_0x4182b(0x143))/0x8+-parseInt(_0x4182b(0x13b))/0x9*(parseInt(_0x4182b(0x13f))/0xa);if(_0x4ffb95===_0x223407)break;else _0x132f45['push'](_0x132f45['shift']());}catch(_0x186c4a){_0x132f45['push'](_0x132f45['shift']());}}}(a201_0x1461,0x33890));export class NullHandler{[a201_0x335a98(0x141)](_0xb30d44){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a202_0xe0d5(_0x12cd81,_0x479918){_0x12cd81=_0x12cd81-0x172;var _0x216955=a202_0x2169();var _0xe0d5ca=_0x216955[_0x12cd81];return _0xe0d5ca;}(function(_0x585984,_0x37d358){var _0x2e0935=a202_0xe0d5,_0x55b8e9=_0x585984();while(!![]){try{var _0x40f6e0=-parseInt(_0x2e0935(0x17b))/0x1*(-parseInt(_0x2e0935(0x17a))/0x2)+parseInt(_0x2e0935(0x177))/0x3*(-parseInt(_0x2e0935(0x175))/0x4)+-parseInt(_0x2e0935(0x178))/0x5+-parseInt(_0x2e0935(0x179))/0x6*(-parseInt(_0x2e0935(0x174))/0x7)+-parseInt(_0x2e0935(0x173))/0x8+-parseInt(_0x2e0935(0x176))/0x9+parseInt(_0x2e0935(0x172))/0xa;if(_0x40f6e0===_0x37d358)break;else _0x55b8e9['push'](_0x55b8e9['shift']());}catch(_0x4d4cf9){_0x55b8e9['push'](_0x55b8e9['shift']());}}}(a202_0x2169,0x3895e));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a202_0x2169(){var _0xb4eb32=['1102Tnsdck','9055750tlzncC','1762928BlXLDq','1496929lGNXBA','1076IKcuzX','796212CZWcBr','3051WFpuTV','2270055cXMZGm','6sDOyKz','270IjqOai'];a202_0x2169=function(){return _0xb4eb32;};return a202_0x2169();}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x1ac268=a203_0x3022;function a203_0xc93a(){const _0x49420e=['component','3318385iJnHUd','clearHandlers','function','init','debug','split','getEffectiveLevel','levelOverrides','length','38245ELcNqY','isInitialized','warn','message','map','get','set','getFormatter','clear','toISOString','9947538YVOWIO','54616TdUhVp','close','shouldLog','stack','defaultLevel','DEBUG','WARN','initialized','handle','142930ZAjDyh','cause','66zNjeAj','has','addHandler','1028476pWqemn','push','entries','5378KMkcvE','handlers','shutdown','log','loggers','reset','pendingRecords',']\x20[','format','formatter','201HnmDUN','name','INFO','TRACE','join','dispatch','stringify','info','ERROR'];a203_0xc93a=function(){return _0x49420e;};return a203_0xc93a();}(function(_0x17787c,_0x161370){const _0x14f24c=a203_0x3022,_0x3c0493=_0x17787c();while(!![]){try{const _0xb1182e=parseInt(_0x14f24c(0x1df))/0x1+parseInt(_0x14f24c(0x1c2))/0x2*(-parseInt(_0x14f24c(0x1cc))/0x3)+parseInt(_0x14f24c(0x1bf))/0x4+parseInt(_0x14f24c(0x1ba))/0x5*(-parseInt(_0x14f24c(0x1bc))/0x6)+-parseInt(_0x14f24c(0x1d6))/0x7+-parseInt(_0x14f24c(0x1ea))/0x8+parseInt(_0x14f24c(0x1e9))/0x9;if(_0xb1182e===_0x161370)break;else _0x3c0493['push'](_0x3c0493['shift']());}catch(_0x3f27cd){_0x3c0493['push'](_0x3c0493['shift']());}}}(a203_0xc93a,0x67cc3));import{LogLevel as a203_0x10d843,logLevelToString}from'./types.js';function a203_0x3022(_0x2ae569,_0x3807db){_0x2ae569=_0x2ae569-0x1b3;const _0xc93a73=a203_0xc93a();let _0x3022b9=_0xc93a73[_0x2ae569];return _0x3022b9;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x10d843[a203_0x1ac268(0x1ce)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4e56b4){const _0x3e6985=a203_0x1ac268;if(typeof _0x4e56b4==='string')return _0x4e56b4;if(_0x4e56b4 instanceof Error)return _0x4e56b4[_0x3e6985(0x1b4)]||_0x4e56b4[_0x3e6985(0x1cd)]+':\x20'+_0x4e56b4[_0x3e6985(0x1e2)];try{return JSON[_0x3e6985(0x1d2)](_0x4e56b4,(_0x5a3e7b,_0x581106)=>{const _0xd7a64c=_0x3e6985;if(_0x581106 instanceof Error)return{'name':_0x581106[_0xd7a64c(0x1cd)],'message':_0x581106[_0xd7a64c(0x1e2)],'stack':_0x581106[_0xd7a64c(0x1b4)],'cause':_0x581106[_0xd7a64c(0x1bb)]};return _0x581106;});}catch{return String(_0x4e56b4);}}export class Logger{[a203_0x1ac268(0x1d5)];constructor(_0x3bb828){const _0x35e038=a203_0x1ac268;this[_0x35e038(0x1d5)]=_0x3bb828;}static['of'](_0x2467f9){const _0x2a814b=a203_0x1ac268,_0x5df267=typeof _0x2467f9==='string'?_0x2467f9:_0x2467f9[_0x2a814b(0x1cd)];let _0x2eaa45=state[_0x2a814b(0x1c6)][_0x2a814b(0x1e4)](_0x5df267);return!_0x2eaa45&&(_0x2eaa45=new Logger(_0x5df267),state[_0x2a814b(0x1c6)][_0x2a814b(0x1e5)](_0x5df267,_0x2eaa45)),_0x2eaa45;}static async[a203_0x1ac268(0x1d9)](_0x2482b8={}){const _0x18f55f=a203_0x1ac268;state['defaultLevel']=_0x2482b8[_0x18f55f(0x1b5)]??a203_0x10d843[_0x18f55f(0x1ce)],state['handlers']=_0x2482b8['handlers']??[],state[_0x18f55f(0x1cb)]=_0x2482b8[_0x18f55f(0x1cb)]??null,state['levelOverrides'][_0x18f55f(0x1e7)]();if(_0x2482b8['levelOverrides'])for(const [_0x19ccbc,_0x4978f4]of Object[_0x18f55f(0x1c1)](_0x2482b8['levelOverrides'])){state[_0x18f55f(0x1dd)][_0x18f55f(0x1e5)](_0x19ccbc,_0x4978f4);}for(const _0x50e32c of state[_0x18f55f(0x1c3)]){_0x50e32c[_0x18f55f(0x1d9)]&&await _0x50e32c[_0x18f55f(0x1d9)]();}state[_0x18f55f(0x1b8)]=!![];for(const _0x3cb5eb of state[_0x18f55f(0x1c8)]){Logger[_0x18f55f(0x1d1)](_0x3cb5eb);}state[_0x18f55f(0x1c8)]=[];}static['setLogLevel'](_0x50bfe2,_0x504e95){const _0x5606bd=a203_0x1ac268;state['levelOverrides'][_0x5606bd(0x1e5)](_0x50bfe2,_0x504e95);}static['setDefaultLevel'](_0x5cd3e2){const _0x5544bb=a203_0x1ac268;state[_0x5544bb(0x1b5)]=_0x5cd3e2;}static[a203_0x1ac268(0x1be)](_0x2ab116){const _0x7a4d5f=a203_0x1ac268;state[_0x7a4d5f(0x1c3)][_0x7a4d5f(0x1c0)](_0x2ab116),state['initialized']&&_0x2ab116[_0x7a4d5f(0x1d9)]&&_0x2ab116[_0x7a4d5f(0x1d9)]();}static[a203_0x1ac268(0x1d7)](){const _0x2f6961=a203_0x1ac268;state[_0x2f6961(0x1c3)]=[];}static async[a203_0x1ac268(0x1c4)](){const _0x298997=a203_0x1ac268;for(const _0x412234 of state['handlers']){_0x412234[_0x298997(0x1eb)]&&await _0x412234['close']();}state[_0x298997(0x1c3)]=[],state[_0x298997(0x1b8)]=![],state[_0x298997(0x1c6)]['clear'](),state['pendingRecords']=[];}static[a203_0x1ac268(0x1c7)](){const _0xd27103=a203_0x1ac268;state[_0xd27103(0x1b8)]=![],state[_0xd27103(0x1b5)]=a203_0x10d843[_0xd27103(0x1ce)],state['levelOverrides']['clear'](),state[_0xd27103(0x1c3)]=[],state['formatter']=null,state[_0xd27103(0x1c6)][_0xd27103(0x1e7)](),state[_0xd27103(0x1c8)]=[];}static[a203_0x1ac268(0x1e0)](){const _0x519b17=a203_0x1ac268;return state[_0x519b17(0x1b8)];}static[a203_0x1ac268(0x1dc)](_0x31e965){const _0x524649=a203_0x1ac268;if(state[_0x524649(0x1dd)][_0x524649(0x1bd)](_0x31e965))return state[_0x524649(0x1dd)][_0x524649(0x1e4)](_0x31e965);const _0x281a18=_0x31e965[_0x524649(0x1db)]('.');for(let _0x446abe=_0x281a18['length']-0x1;_0x446abe>0x0;_0x446abe--){const _0x1b9b1c=_0x281a18['slice'](0x0,_0x446abe)[_0x524649(0x1d0)]('.');if(state[_0x524649(0x1dd)][_0x524649(0x1bd)](_0x1b9b1c))return state['levelOverrides'][_0x524649(0x1e4)](_0x1b9b1c);}return state[_0x524649(0x1b5)];}[a203_0x1ac268(0x1b3)](_0x5d36e1){const _0x325020=a203_0x1ac268,_0x44e96a=Logger[_0x325020(0x1dc)](this['component']);return _0x5d36e1>=_0x44e96a;}static[a203_0x1ac268(0x1d1)](_0xc9c035){const _0x408864=a203_0x1ac268;for(const _0x2a363e of state[_0x408864(0x1c3)]){_0x2a363e[_0x408864(0x1b9)](_0xc9c035);}}[a203_0x1ac268(0x1c5)](_0x48baea,_0x46f2be){const _0x93d84c=a203_0x1ac268;if(!this[_0x93d84c(0x1b3)](_0x48baea))return;const _0x56ad4e=_0x46f2be[_0x93d84c(0x1e3)](_0x45141d=>typeof _0x45141d===_0x93d84c(0x1d8)?_0x45141d():_0x45141d),_0x28cbb9=_0x56ad4e[_0x93d84c(0x1e3)](safeStringify)['join']('\x20'),_0x575b94={'timestamp':new Date(),'level':_0x48baea,'component':this['component'],'message':_0x28cbb9};if(!state[_0x93d84c(0x1b8)]){state[_0x93d84c(0x1c8)][_0x93d84c(0x1de)]<MAX_PENDING_RECORDS&&state['pendingRecords'][_0x93d84c(0x1c0)](_0x575b94);return;}Logger[_0x93d84c(0x1d1)](_0x575b94);}['trace'](..._0x424e93){const _0x3be869=a203_0x1ac268;this[_0x3be869(0x1c5)](a203_0x10d843[_0x3be869(0x1cf)],_0x424e93);}[a203_0x1ac268(0x1da)](..._0x2e6587){const _0x74ac75=a203_0x1ac268;this[_0x74ac75(0x1c5)](a203_0x10d843[_0x74ac75(0x1b6)],_0x2e6587);}[a203_0x1ac268(0x1d3)](..._0x5721b8){const _0x55c3ec=a203_0x1ac268;this['log'](a203_0x10d843[_0x55c3ec(0x1ce)],_0x5721b8);}[a203_0x1ac268(0x1e1)](..._0xf089cd){const _0xc195cb=a203_0x1ac268;this[_0xc195cb(0x1c5)](a203_0x10d843[_0xc195cb(0x1b7)],_0xf089cd);}['error'](..._0xfb7cd){const _0x29b30c=a203_0x1ac268;this[_0x29b30c(0x1c5)](a203_0x10d843[_0x29b30c(0x1d4)],_0xfb7cd);}static[a203_0x1ac268(0x1e6)](){const _0x37b115=a203_0x1ac268;return state[_0x37b115(0x1cb)];}static[a203_0x1ac268(0x1ca)](_0x515ac7){const _0x45009f=a203_0x1ac268;if(state[_0x45009f(0x1cb)])return state[_0x45009f(0x1cb)]['format'](_0x515ac7);return _0x515ac7['timestamp'][_0x45009f(0x1e8)]()+'\x20['+logLevelToString(_0x515ac7['level'])+_0x45009f(0x1c9)+_0x515ac7[_0x45009f(0x1d5)]+']\x20'+_0x515ac7['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a539f,_0x3c1f66){const _0x47c04c=a204_0x2b07,_0x37ddf4=_0x2a539f();while(!![]){try{const _0x5b7c4d=parseInt(_0x47c04c(0xd2))/0x1+parseInt(_0x47c04c(0xc9))/0x2+-parseInt(_0x47c04c(0xd5))/0x3+-parseInt(_0x47c04c(0xd0))/0x4+-parseInt(_0x47c04c(0xca))/0x5*(parseInt(_0x47c04c(0xd1))/0x6)+-parseInt(_0x47c04c(0xc7))/0x7+parseInt(_0x47c04c(0xc6))/0x8*(parseInt(_0x47c04c(0xc1))/0x9);if(_0x5b7c4d===_0x3c1f66)break;else _0x37ddf4['push'](_0x37ddf4['shift']());}catch(_0x158e7f){_0x37ddf4['push'](_0x37ddf4['shift']());}}}(a204_0x3e5a,0xb1737));export var LogLevel;function a204_0x2b07(_0x53befd,_0x424ac1){_0x53befd=_0x53befd-0xc0;const _0x3e5a24=a204_0x3e5a();let _0x2b079a=_0x3e5a24[_0x53befd];return _0x2b079a;}(function(_0x1c1226){const _0x3f5948=a204_0x2b07;_0x1c1226[_0x1c1226['TRACE']=-0x2]=_0x3f5948(0xcb),_0x1c1226[_0x1c1226['DEBUG']=-0x1]=_0x3f5948(0xd7),_0x1c1226[_0x1c1226['INFO']=0x0]=_0x3f5948(0xc0),_0x1c1226[_0x1c1226['WARN']=0x1]='WARN',_0x1c1226[_0x1c1226[_0x3f5948(0xc2)]=0x2]=_0x3f5948(0xc2);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x22e14d){const _0x149e2f=a204_0x2b07;switch(_0x22e14d['toUpperCase']()){case _0x149e2f(0xcb):return LogLevel[_0x149e2f(0xcb)];case _0x149e2f(0xd7):return LogLevel[_0x149e2f(0xd7)];case _0x149e2f(0xc0):return LogLevel[_0x149e2f(0xc0)];case'WARN':case'WARNING':return LogLevel[_0x149e2f(0xcf)];case'ERROR':return LogLevel[_0x149e2f(0xc2)];default:return LogLevel[_0x149e2f(0xc0)];}}function a204_0x3e5a(){const _0x3dbfdb=['48ymiZkG','5312580rwBJfR','getTimezoneOffset','2038808viJSQw','1905575ZrhZdE','TRACE','debug','getDate','error','WARN','1231728PfWCPg','6uSefAL','733882xeDrcq','abs','info','4314750ONdGrG','toString','DEBUG','getSeconds','padStart','INFO','2789685xdfyxw','ERROR','getMilliseconds','warn','trace'];a204_0x3e5a=function(){return _0x3dbfdb;};return a204_0x3e5a();}export function logLevelToString(_0x440f4b){const _0x4d4972=a204_0x2b07;switch(_0x440f4b){case LogLevel[_0x4d4972(0xcb)]:return _0x4d4972(0xc5);case LogLevel[_0x4d4972(0xd7)]:return _0x4d4972(0xcc);case LogLevel['INFO']:return _0x4d4972(0xd4);case LogLevel[_0x4d4972(0xcf)]:return _0x4d4972(0xc4);case LogLevel[_0x4d4972(0xc2)]:return _0x4d4972(0xce);default:return _0x4d4972(0xd4);}}export function formatTimestamp(_0x1541e3){const _0x4e58dd=a204_0x2b07,_0x1c677a=_0x1541e3['getFullYear'](),_0x3074be=(_0x1541e3['getMonth']()+0x1)[_0x4e58dd(0xd6)]()[_0x4e58dd(0xd9)](0x2,'0'),_0x5ba865=_0x1541e3[_0x4e58dd(0xcd)]()[_0x4e58dd(0xd6)]()[_0x4e58dd(0xd9)](0x2,'0'),_0x44b702=_0x1541e3['getHours']()[_0x4e58dd(0xd6)]()[_0x4e58dd(0xd9)](0x2,'0'),_0x40eb6e=_0x1541e3['getMinutes']()['toString']()[_0x4e58dd(0xd9)](0x2,'0'),_0x5dae8d=_0x1541e3[_0x4e58dd(0xd8)]()[_0x4e58dd(0xd6)]()['padStart'](0x2,'0'),_0xab9cfa=_0x1541e3[_0x4e58dd(0xc3)]()['toString']()['padStart'](0x3,'0'),_0x7f79b5=-_0x1541e3[_0x4e58dd(0xc8)](),_0x10f451=Math['floor'](Math[_0x4e58dd(0xd3)](_0x7f79b5)/0x3c),_0x2d3a4c=Math[_0x4e58dd(0xd3)](_0x7f79b5)%0x3c,_0x39caec=_0x7f79b5>=0x0?'+':'-',_0x321b70=''+_0x39caec+_0x10f451['toString']()[_0x4e58dd(0xd9)](0x2,'0')+_0x2d3a4c['toString']()['padStart'](0x2,'0');return _0x1c677a+'-'+_0x3074be+'-'+_0x5ba865+'\x20'+_0x44b702+':'+_0x40eb6e+':'+_0x5dae8d+'.'+_0xab9cfa+_0x321b70;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a205_0x421c(_0x440a2b,_0x154c21){_0x440a2b=_0x440a2b-0x7e;const _0x3b549f=a205_0x3b54();let _0x421c85=_0x3b549f[_0x440a2b];return _0x421c85;}(function(_0x445972,_0x36f89e){const _0x461668=a205_0x421c,_0x32b3c6=_0x445972();while(!![]){try{const _0x26dff0=-parseInt(_0x461668(0x8e))/0x1+parseInt(_0x461668(0x8c))/0x2*(parseInt(_0x461668(0x8b))/0x3)+-parseInt(_0x461668(0x8d))/0x4*(-parseInt(_0x461668(0x88))/0x5)+parseInt(_0x461668(0x82))/0x6+parseInt(_0x461668(0x7f))/0x7*(parseInt(_0x461668(0x87))/0x8)+parseInt(_0x461668(0x86))/0x9+-parseInt(_0x461668(0x85))/0xa*(parseInt(_0x461668(0x81))/0xb);if(_0x26dff0===_0x36f89e)break;else _0x32b3c6['push'](_0x32b3c6['shift']());}catch(_0x134aa0){_0x32b3c6['push'](_0x32b3c6['shift']());}}}(a205_0x3b54,0x79650));export function validateLimitOption(_0x5e8ec7){const _0x77284e=a205_0x421c;if(!Number['isInteger'](_0x5e8ec7))return{'isValid':![],'error':_0x77284e(0x8a)+_0x5e8ec7+_0x77284e(0x84)};if(_0x5e8ec7<=0x0)return{'isValid':![],'error':_0x77284e(0x8a)+_0x5e8ec7+_0x77284e(0x89)};return{'isValid':!![],'value':_0x5e8ec7};}export function validateTimeoutOption(_0x230da1,_0x5c5afe=0x1e){const _0x2c5da3=a205_0x421c;if(_0x230da1===undefined)return{'isValid':!![],'value':_0x5c5afe};const _0x5d574e=typeof _0x230da1===_0x2c5da3(0x83)?_0x230da1:parseFloat(_0x230da1);if(isNaN(_0x5d574e))return{'isValid':![],'error':_0x2c5da3(0x7e)+_0x230da1+_0x2c5da3(0x80)};if(_0x5d574e<=0x0)return{'isValid':![],'error':_0x2c5da3(0x7e)+_0x5d574e+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x5d574e};}function a205_0x3b54(){const _0x2c8481=['17804zbuqMp','592270EKjfhA','Invalid\x20timeout\x20value:\x20','1267GgGaJX','.\x20Must\x20be\x20a\x20number.','22SlGlzi','3434832xpkMmM','number','.\x20Must\x20be\x20an\x20integer.','5155620JYFZtE','525816uCkaZK','29592FsAmFr','45SfHdBQ','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20limit\x20value:\x20','2340456rxRTtO','2ZHFbdX'];a205_0x3b54=function(){return _0x2c8481;};return a205_0x3b54();}
|