@treasuredata/tdx 2026.3.7 → 2026.3.9
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-command.js.map +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.d.ts.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/profiles-command.js.map +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.d.ts.map +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/user-command.js.map +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 +2 -2
- 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/profile.js.map +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/endpoints.js.map +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.d.ts +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.d.ts.map +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-utils.js.map +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +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
|
-
|
|
1
|
+
(function(_0x3f5e09,_0xf7a590){const _0x67ceb0=a187_0x9fa1,_0x18143d=_0x3f5e09();while(!![]){try{const _0x55c4cc=parseInt(_0x67ceb0(0x161))/0x1*(parseInt(_0x67ceb0(0x168))/0x2)+parseInt(_0x67ceb0(0x169))/0x3+-parseInt(_0x67ceb0(0x166))/0x4+parseInt(_0x67ceb0(0x15f))/0x5*(-parseInt(_0x67ceb0(0x160))/0x6)+parseInt(_0x67ceb0(0x167))/0x7+parseInt(_0x67ceb0(0x165))/0x8*(parseInt(_0x67ceb0(0x15b))/0x9)+-parseInt(_0x67ceb0(0x15c))/0xa;if(_0x55c4cc===_0xf7a590)break;else _0x18143d['push'](_0x18143d['shift']());}catch(_0x3a9183){_0x18143d['push'](_0x18143d['shift']());}}}(a187_0x5733,0xa7958));function a187_0x5733(){const _0x2f8954=['length','slice','push','3883792itWiYJ','238164tivENp','1796172dPEqeI','1948290LyxUgs','3051300khnPlg','18GuPHBe','16430070jggJyY','all','map','4149085vTBxZH','6oXPMOJ','1GxHKFu'];a187_0x5733=function(){return _0x2f8954;};return a187_0x5733();}function a187_0x9fa1(_0x465bfe,_0x3ad1c2){_0x465bfe=_0x465bfe-0x15b;const _0x57337e=a187_0x5733();let _0x9fa183=_0x57337e[_0x465bfe];return _0x9fa183;}export async function batchAsync(_0x115580,_0x5a317e,_0x1e634e=0xa){const _0x20c6c6=a187_0x9fa1,_0x2b2500=[];for(let _0x4b7e22=0x0;_0x4b7e22<_0x115580[_0x20c6c6(0x162)];_0x4b7e22+=_0x1e634e){const _0x27edf8=_0x115580[_0x20c6c6(0x163)](_0x4b7e22,_0x4b7e22+_0x1e634e),_0x20f08c=await Promise[_0x20c6c6(0x15d)](_0x27edf8[_0x20c6c6(0x15e)](_0x5a317e));_0x2b2500[_0x20c6c6(0x164)](..._0x20f08c);}return _0x2b2500;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x430cf3=a188_0x4cef;function a188_0x1e76(){const _0x2e594d=['172837uNDSZh','35vgoOrc','17636uHGqdf','join','map','5628051QLlvym','noColor','null','9greGpw','entries','boolean','1476355IkonVQ','dim','stringify','2xTCjYB','green','repeat','Chalk','string','isArray','blue','4470430iMruFx','color','yellow','9314552zSSmMu','object','number','456lsUfpZ','length','38750228NMqprN'];a188_0x1e76=function(){return _0x2e594d;};return a188_0x1e76();}(function(_0x18be3b,_0x427888){const _0x3649eb=a188_0x4cef,_0x342113=_0x18be3b();while(!![]){try{const _0x2acaa8=-parseInt(_0x3649eb(0xf1))/0x1*(-parseInt(_0x3649eb(0xf4))/0x2)+parseInt(_0x3649eb(0x109))/0x3+-parseInt(_0x3649eb(0x106))/0x4*(parseInt(_0x3649eb(0x105))/0x5)+-parseInt(_0x3649eb(0x101))/0x6*(-parseInt(_0x3649eb(0x104))/0x7)+-parseInt(_0x3649eb(0xfe))/0x8+-parseInt(_0x3649eb(0xee))/0x9*(-parseInt(_0x3649eb(0xfb))/0xa)+-parseInt(_0x3649eb(0x103))/0xb;if(_0x2acaa8===_0x427888)break;else _0x342113['push'](_0x342113['shift']());}catch(_0x52afee){_0x342113['push'](_0x342113['shift']());}}}(a188_0x1e76,0xe9e31));import*as a188_0x102b4b from'chalk';const Chalk=a188_0x102b4b[a188_0x430cf3(0xf7)];export function shouldUseColor(_0x275b37={}){const _0x3aca0f=a188_0x430cf3;if(_0x275b37[_0x3aca0f(0xec)]===!![])return![];if(_0x275b37[_0x3aca0f(0xfc)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout']['isTTY']??![];}export function getChalk(_0x2105ac={}){if(shouldUseColor(_0x2105ac))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x281870,_0x253911={}){const _0x52359c=a188_0x430cf3;return getChalk(_0x253911)[_0x52359c(0xf2)](_0x281870);}export function colorHeader(_0x4e36bd,_0x7c9d60={}){return getChalk(_0x7c9d60)['cyan'](_0x4e36bd);}export function colorType(_0x15c49b,_0x233142={}){const _0x3d2372=a188_0x430cf3;return getChalk(_0x233142)[_0x3d2372(0xf2)](_0x15c49b);}export function colorJSONKey(_0x46dc7a,_0x2c6118={}){const _0x1cc80b=a188_0x430cf3;return getChalk(_0x2c6118)[_0x1cc80b(0xfa)](_0x46dc7a);}export function colorJSONString(_0x3fb4c2,_0x114a03={}){const _0x170119=a188_0x430cf3;return getChalk(_0x114a03)[_0x170119(0xf5)](_0x3fb4c2);}export function colorJSONNumber(_0x26aa33,_0x306c48={}){return getChalk(_0x306c48)['cyan'](_0x26aa33);}export function colorJSONBoolean(_0x4cd0c0,_0x23ed6e={}){const _0x42d9a3=a188_0x430cf3;return getChalk(_0x23ed6e)[_0x42d9a3(0xfd)](_0x4cd0c0);}function a188_0x4cef(_0xf08af8,_0x1f4d0f){_0xf08af8=_0xf08af8-0xec;const _0x1e7644=a188_0x1e76();let _0x4cef46=_0x1e7644[_0xf08af8];return _0x4cef46;}export function colorJSONNull(_0x19beb4,_0x220de5={}){const _0x581d18=a188_0x430cf3;return getChalk(_0x220de5)[_0x581d18(0xf2)](_0x19beb4);}export function colorizeJSONCompact(_0x4db8de,_0xdd5190={}){const _0x2e2b29=a188_0x430cf3;if(!shouldUseColor(_0xdd5190))return JSON['stringify'](_0x4db8de);if(_0x4db8de===null)return colorJSONNull('null',_0xdd5190);if(typeof _0x4db8de===_0x2e2b29(0xf0))return colorJSONBoolean(String(_0x4db8de),_0xdd5190);if(typeof _0x4db8de==='number')return colorJSONNumber(String(_0x4db8de),_0xdd5190);if(typeof _0x4db8de==='string')return colorJSONString(JSON['stringify'](_0x4db8de),_0xdd5190);if(Array[_0x2e2b29(0xf9)](_0x4db8de)){if(_0x4db8de[_0x2e2b29(0x102)]===0x0)return'[]';const _0x9a2c09=_0x4db8de['map'](_0x26f434=>colorizeJSONCompact(_0x26f434,_0xdd5190));return'['+_0x9a2c09[_0x2e2b29(0x107)](',')+']';}if(typeof _0x4db8de==='object'){const _0xdf3a7f=Object[_0x2e2b29(0xef)](_0x4db8de);if(_0xdf3a7f[_0x2e2b29(0x102)]===0x0)return'{}';const _0x294828=_0xdf3a7f[_0x2e2b29(0x108)](([_0x17d1a1,_0x402c89])=>{const _0x39f0f3=_0x2e2b29,_0xb864fd=colorJSONKey(JSON[_0x39f0f3(0xf3)](_0x17d1a1),_0xdd5190),_0x216b20=colorizeJSONCompact(_0x402c89,_0xdd5190);return _0xb864fd+':'+_0x216b20;});return'{'+_0x294828[_0x2e2b29(0x107)](',')+'}';}return String(_0x4db8de);}export function colorizeJSON(_0x5ca7d6,_0x24636a={},_0x212f01=0x0){const _0x1fab14=a188_0x430cf3;if(!shouldUseColor(_0x24636a))return JSON['stringify'](_0x5ca7d6,null,0x2);const _0x5d9bd6='\x20'[_0x1fab14(0xf6)](_0x212f01),_0x37b32a=_0x212f01+0x2;if(_0x5ca7d6===null)return colorJSONNull(_0x1fab14(0xed),_0x24636a);if(typeof _0x5ca7d6===_0x1fab14(0xf0))return colorJSONBoolean(String(_0x5ca7d6),_0x24636a);if(typeof _0x5ca7d6===_0x1fab14(0x100))return colorJSONNumber(String(_0x5ca7d6),_0x24636a);if(typeof _0x5ca7d6===_0x1fab14(0xf8))return colorJSONString(JSON[_0x1fab14(0xf3)](_0x5ca7d6),_0x24636a);if(Array['isArray'](_0x5ca7d6)){if(_0x5ca7d6[_0x1fab14(0x102)]===0x0)return'[]';const _0x550fae=_0x5ca7d6[_0x1fab14(0x108)](_0x45b102=>{const _0x33748e=_0x1fab14,_0x5d42a8=colorizeJSON(_0x45b102,_0x24636a,_0x37b32a);return''+'\x20'[_0x33748e(0xf6)](_0x37b32a)+_0x5d42a8;});return'[\x0a'+_0x550fae[_0x1fab14(0x107)](',\x0a')+('\x0a'+_0x5d9bd6+']');}if(typeof _0x5ca7d6===_0x1fab14(0xff)){const _0x445388=Object[_0x1fab14(0xef)](_0x5ca7d6);if(_0x445388[_0x1fab14(0x102)]===0x0)return'{}';const _0x533ce9=_0x445388[_0x1fab14(0x108)](([_0x26ea16,_0x3d7b67])=>{const _0x51e9a5=_0x1fab14,_0x38780b=colorJSONKey(JSON[_0x51e9a5(0xf3)](_0x26ea16),_0x24636a),_0x4bb98a=colorizeJSON(_0x3d7b67,_0x24636a,_0x37b32a);return''+'\x20'[_0x51e9a5(0xf6)](_0x37b32a)+_0x38780b+':\x20'+_0x4bb98a;});return'{\x0a'+_0x533ce9[_0x1fab14(0x107)](',\x0a')+('\x0a'+_0x5d9bd6+'}');}return String(_0x5ca7d6);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xeb0d95,_0x2f4135){const _0x4ed475=a189_0x491e,_0x1a909b=_0xeb0d95();while(!![]){try{const _0x27c5d8=parseInt(_0x4ed475(0x1e1))/0x1+-parseInt(_0x4ed475(0x1ca))/0x2*(parseInt(_0x4ed475(0x1da))/0x3)+parseInt(_0x4ed475(0x1d0))/0x4+-parseInt(_0x4ed475(0x1c9))/0x5*(parseInt(_0x4ed475(0x1d5))/0x6)+-parseInt(_0x4ed475(0x1c2))/0x7+-parseInt(_0x4ed475(0x1e6))/0x8*(parseInt(_0x4ed475(0x1d2))/0x9)+-parseInt(_0x4ed475(0x1dd))/0xa*(-parseInt(_0x4ed475(0x1dc))/0xb);if(_0x27c5d8===_0x2f4135)break;else _0x1a909b['push'](_0x1a909b['shift']());}catch(_0x1e6b5f){_0x1a909b['push'](_0x1a909b['shift']());}}}(a189_0x39b0,0x323da));function a189_0x39b0(){const _0x2633b6=['added','green','add','121496QFmQxf','\x20\x20...','1592847ZSlnlG','map','push','30798FiAYrL','\x20-\x20','length','removed','dim','5343GJRary','min','1306151nEIKXU','90DriwHW','split','new','size','260794EAViui','content','type','unshift','fill','8tLDdRq','2655905DkgXpp','repeat','max','has','\x20+\x20','padStart','unchanged','315LpeFqD','308uIwngC','red','cyan'];a189_0x39b0=function(){return _0x2633b6;};return a189_0x39b0();}function a189_0x491e(_0x53e63a,_0x24a31a){_0x53e63a=_0x53e63a-0x1c2;const _0x39b0c8=a189_0x39b0();let _0x491eda=_0x39b0c8[_0x53e63a];return _0x491eda;}import a189_0x219600 from'chalk';export function generateDiff(_0x33764f,_0xd3599c){const _0x5565e5=a189_0x491e,_0x21d446=_0x33764f['split']('\x0a'),_0xf8bf3b=_0xd3599c[_0x5565e5(0x1de)]('\x0a'),_0x3008d9=[],_0x510ad1=computeLCS(_0x21d446,_0xf8bf3b);let _0x4d023a=0x0,_0x8f07c9=0x0,_0x401f54=0x0;while(_0x4d023a<_0x21d446[_0x5565e5(0x1d7)]||_0x8f07c9<_0xf8bf3b[_0x5565e5(0x1d7)]){if(_0x401f54<_0x510ad1[_0x5565e5(0x1d7)]&&_0x4d023a<_0x21d446['length']&&_0x21d446[_0x4d023a]===_0x510ad1[_0x401f54])_0x8f07c9<_0xf8bf3b['length']&&_0xf8bf3b[_0x8f07c9]===_0x510ad1[_0x401f54]?(_0x3008d9['push']({'type':'unchanged','content':_0x21d446[_0x4d023a]}),_0x4d023a++,_0x8f07c9++,_0x401f54++):(_0x3008d9[_0x5565e5(0x1d4)]({'type':_0x5565e5(0x1cd),'content':_0xf8bf3b[_0x8f07c9]}),_0x8f07c9++);else{if(_0x401f54<_0x510ad1[_0x5565e5(0x1d7)]&&_0x8f07c9<_0xf8bf3b[_0x5565e5(0x1d7)]&&_0xf8bf3b[_0x8f07c9]===_0x510ad1[_0x401f54])_0x3008d9[_0x5565e5(0x1d4)]({'type':_0x5565e5(0x1d8),'content':_0x21d446[_0x4d023a]}),_0x4d023a++;else{if(_0x4d023a<_0x21d446['length']&&(_0x401f54>=_0x510ad1[_0x5565e5(0x1d7)]||_0x21d446[_0x4d023a]!==_0x510ad1[_0x401f54]))_0x3008d9[_0x5565e5(0x1d4)]({'type':_0x5565e5(0x1d8),'content':_0x21d446[_0x4d023a]}),_0x4d023a++;else _0x8f07c9<_0xf8bf3b[_0x5565e5(0x1d7)]&&(_0x3008d9[_0x5565e5(0x1d4)]({'type':_0x5565e5(0x1cd),'content':_0xf8bf3b[_0x8f07c9]}),_0x8f07c9++);}}}return _0x3008d9;}function computeLCS(_0xd9bc19,_0x47ed2a){const _0x3b2281=a189_0x491e,_0x22998f=_0xd9bc19[_0x3b2281(0x1d7)],_0x238462=_0x47ed2a[_0x3b2281(0x1d7)],_0x373e40=Array(_0x22998f+0x1)[_0x3b2281(0x1e5)](null)[_0x3b2281(0x1d3)](()=>Array(_0x238462+0x1)[_0x3b2281(0x1e5)](0x0));for(let _0x32c68e=0x1;_0x32c68e<=_0x22998f;_0x32c68e++){for(let _0x21e1cb=0x1;_0x21e1cb<=_0x238462;_0x21e1cb++){_0xd9bc19[_0x32c68e-0x1]===_0x47ed2a[_0x21e1cb-0x1]?_0x373e40[_0x32c68e][_0x21e1cb]=_0x373e40[_0x32c68e-0x1][_0x21e1cb-0x1]+0x1:_0x373e40[_0x32c68e][_0x21e1cb]=Math[_0x3b2281(0x1c4)](_0x373e40[_0x32c68e-0x1][_0x21e1cb],_0x373e40[_0x32c68e][_0x21e1cb-0x1]);}}const _0x1e13e4=[];let _0x2a3440=_0x22998f,_0xeb26cc=_0x238462;while(_0x2a3440>0x0&&_0xeb26cc>0x0){if(_0xd9bc19[_0x2a3440-0x1]===_0x47ed2a[_0xeb26cc-0x1])_0x1e13e4[_0x3b2281(0x1e4)](_0xd9bc19[_0x2a3440-0x1]),_0x2a3440--,_0xeb26cc--;else _0x373e40[_0x2a3440-0x1][_0xeb26cc]>_0x373e40[_0x2a3440][_0xeb26cc-0x1]?_0x2a3440--:_0xeb26cc--;}return _0x1e13e4;}export function formatDiffWithColors(_0x47804b,_0x598f24=0x3){const _0x480bd4=a189_0x491e,_0x3eb4d6=new Set();_0x47804b['forEach']((_0x28978e,_0xa6bdf8)=>{const _0x4e86ed=a189_0x491e;_0x28978e['type']!=='unchanged'&&_0x3eb4d6[_0x4e86ed(0x1cf)](_0xa6bdf8);});if(_0x3eb4d6[_0x480bd4(0x1e0)]===0x0)return'';const _0x13ef53=new Set();for(const _0x247691 of _0x3eb4d6){for(let _0x2c40b5=Math[_0x480bd4(0x1c4)](0x0,_0x247691-_0x598f24);_0x2c40b5<=Math[_0x480bd4(0x1db)](_0x47804b[_0x480bd4(0x1d7)]-0x1,_0x247691+_0x598f24);_0x2c40b5++){_0x13ef53[_0x480bd4(0x1cf)](_0x2c40b5);}}const _0xd74bd=[];let _0x48f995=-0x1;const _0x4e879b=_0x47804b[_0x480bd4(0x1d7)],_0x34c19f=Math['max'](0x3,String(_0x4e879b)['length']),_0x33b981=[];let _0x563716=0x0,_0x19545e=0x0;for(const _0x6bc8b3 of _0x47804b){if(_0x6bc8b3[_0x480bd4(0x1e3)]===_0x480bd4(0x1d8))_0x563716++,_0x33b981['push']({'old':_0x563716,'new':0x0});else _0x6bc8b3[_0x480bd4(0x1e3)]==='added'?(_0x19545e++,_0x33b981[_0x480bd4(0x1d4)]({'old':0x0,'new':_0x19545e})):(_0x563716++,_0x19545e++,_0x33b981[_0x480bd4(0x1d4)]({'old':_0x563716,'new':_0x19545e}));}for(let _0x423a28=0x0;_0x423a28<_0x47804b[_0x480bd4(0x1d7)];_0x423a28++){if(!_0x13ef53[_0x480bd4(0x1c5)](_0x423a28))continue;_0x48f995!==-0x1&&_0x423a28>_0x48f995+0x1&&_0xd74bd[_0x480bd4(0x1d4)](a189_0x219600[_0x480bd4(0x1cc)](_0x480bd4(0x1d1)));_0x48f995=_0x423a28;const _0x259dc7=_0x47804b[_0x423a28],_0x87991b=_0x33b981[_0x423a28],_0x90a68=_0x87991b['old']>0x0?String(_0x87991b['old'])['padStart'](_0x34c19f):'\x20'[_0x480bd4(0x1c3)](_0x34c19f),_0x25817e=_0x87991b[_0x480bd4(0x1df)]>0x0?String(_0x87991b[_0x480bd4(0x1df)])[_0x480bd4(0x1c7)](_0x34c19f):'\x20'['repeat'](_0x34c19f);switch(_0x259dc7[_0x480bd4(0x1e3)]){case'removed':_0xd74bd['push'](a189_0x219600[_0x480bd4(0x1cb)](_0x90a68+'\x20'+_0x25817e+_0x480bd4(0x1d6)+_0x259dc7['content']));break;case _0x480bd4(0x1cd):_0xd74bd[_0x480bd4(0x1d4)](a189_0x219600[_0x480bd4(0x1ce)](_0x90a68+'\x20'+_0x25817e+_0x480bd4(0x1c6)+_0x259dc7['content']));break;default:_0xd74bd['push'](a189_0x219600[_0x480bd4(0x1d9)](_0x90a68+'\x20'+_0x25817e+'\x20\x20\x20'+_0x259dc7[_0x480bd4(0x1e2)]));break;}}return _0xd74bd['join']('\x0a');}export function hasChanges(_0x53db27){const _0x4a309f=a189_0x491e;return _0x53db27['some'](_0x1cba5c=>_0x1cba5c['type']!==_0x4a309f(0x1c8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2afc77,_0x986729){const _0x5588e5=a190_0x1999,_0x5873ce=_0x2afc77();while(!![]){try{const _0x36a465=parseInt(_0x5588e5(0x1d4))/0x1+-parseInt(_0x5588e5(0x1e2))/0x2*(-parseInt(_0x5588e5(0x1df))/0x3)+parseInt(_0x5588e5(0x1e8))/0x4+-parseInt(_0x5588e5(0x1e7))/0x5*(parseInt(_0x5588e5(0x1d5))/0x6)+parseInt(_0x5588e5(0x1d7))/0x7*(parseInt(_0x5588e5(0x1e6))/0x8)+-parseInt(_0x5588e5(0x1da))/0x9*(parseInt(_0x5588e5(0x1db))/0xa)+parseInt(_0x5588e5(0x1e5))/0xb*(-parseInt(_0x5588e5(0x1d6))/0xc);if(_0x36a465===_0x986729)break;else _0x5873ce['push'](_0x5873ce['shift']());}catch(_0x3fbd13){_0x5873ce['push'](_0x5873ce['shift']());}}}(a190_0x18d1,0xae5ff));import*as a190_0x587f65 from'node:fs';import*as a190_0x2a7838 from'node:path';export function setSecureFilePermissions(_0xc8cf39){const _0x6417cc=a190_0x1999;try{a190_0x587f65[_0x6417cc(0x1dd)](_0xc8cf39,0x180);}catch{console[_0x6417cc(0x1e3)](_0x6417cc(0x1d9)+_0xc8cf39);}}function a190_0x18d1(){const _0x57f469=['dirname','275ubhBuf','182312ptlenL','8945qfdLop','1760932ygqlMi','mode','1375755vjbkxl','2784oTKkQh','610404IcQstv','287iRZYmb','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1692Xvjzba','66730YmQCUj','toString','chmodSync','\x20has\x20insecure\x20permissions\x20(','127761TwjuQA','writeFileSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','62IDzPJR','warn'];a190_0x18d1=function(){return _0x57f469;};return a190_0x18d1();}export function setSecureDirectoryPermissions(_0x5cd724){const _0x17dc5b=a190_0x1999;try{a190_0x587f65[_0x17dc5b(0x1dd)](_0x5cd724,0x1c0);}catch{console['warn'](_0x17dc5b(0x1d9)+_0x5cd724);}}function a190_0x1999(_0x4e2ef8,_0x338cac){_0x4e2ef8=_0x4e2ef8-0x1d4;const _0x18d1bb=a190_0x18d1();let _0x1999b9=_0x18d1bb[_0x4e2ef8];return _0x1999b9;}export function createSecureDirectory(_0x154fea){const _0xa515fe=a190_0x1999;!a190_0x587f65['existsSync'](_0x154fea)&&(a190_0x587f65[_0xa515fe(0x1d8)](_0x154fea,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x154fea));}export function validateSecureFilePermissions(_0xc7eab9){const _0xda5d33=a190_0x1999;try{const _0x424ec2=a190_0x587f65['statSync'](_0xc7eab9),_0x2ccc49=_0x424ec2[_0xda5d33(0x1e9)]&0x1ff,_0x21a121=(_0x2ccc49&0x3f)!==0x0;if(_0x21a121)return console['warn']('Warning:\x20'+_0xc7eab9+_0xda5d33(0x1de)+_0x2ccc49[_0xda5d33(0x1dc)](0x8)+').\x20'+_0xda5d33(0x1e1)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x34570d,_0x49ba27){const _0x5c7727=a190_0x1999,_0x4c971c=a190_0x2a7838[_0x5c7727(0x1e4)](_0x34570d);createSecureDirectory(_0x4c971c),a190_0x587f65[_0x5c7727(0x1e0)](_0x34570d,_0x49ba27,{'mode':0x180}),setSecureFilePermissions(_0x34570d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a191_0x3b32(_0x18ff05,_0x120b12){_0x18ff05=_0x18ff05-0x1b0;const _0x3ee6ad=a191_0x3ee6();let _0x3b3267=_0x3ee6ad[_0x18ff05];return _0x3b3267;}(function(_0x52939e,_0x594dbf){const _0x4951f1=a191_0x3b32,_0xcf967b=_0x52939e();while(!![]){try{const _0x58d12e=-parseInt(_0x4951f1(0x1ba))/0x1*(-parseInt(_0x4951f1(0x1b5))/0x2)+-parseInt(_0x4951f1(0x1bd))/0x3+parseInt(_0x4951f1(0x1b6))/0x4+-parseInt(_0x4951f1(0x1c5))/0x5+parseInt(_0x4951f1(0x1b4))/0x6*(-parseInt(_0x4951f1(0x1b7))/0x7)+parseInt(_0x4951f1(0x1b9))/0x8*(parseInt(_0x4951f1(0x1bc))/0x9)+parseInt(_0x4951f1(0x1b2))/0xa*(-parseInt(_0x4951f1(0x1bb))/0xb);if(_0x58d12e===_0x594dbf)break;else _0xcf967b['push'](_0xcf967b['shift']());}catch(_0x579f73){_0xcf967b['push'](_0xcf967b['shift']());}}}(a191_0x3ee6,0x5b77b));function a191_0x3ee6(){const _0x5b65cf=['ENOENT','PERMISSION_DENIED','1587700gFptOp','Permission\x20denied\x20reading\x20file\x20\x27','\x27\x20not\x20found','40hKJXSI','utf-8','3090486dXSpoJ','2RjvOaX','1792860HIFOdb','7DElFCM','EACCES','4948208dEYrQW','548213byNSOO','652949pnJJsA','9QBaDfh','510738aKhHWK','File\x20\x27','NOT_FOUND','\x27:\x20','INTERNAL','code'];a191_0x3ee6=function(){return _0x5b65cf;};return a191_0x3ee6();}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x29f785){const _0x111d18=a191_0x3b32;try{return readFileSync(_0x29f785,_0x111d18(0x1b3));}catch(_0x29a3b7){const _0xb14cb9=_0x29a3b7[_0x111d18(0x1c2)];if(_0xb14cb9===_0x111d18(0x1c3))throw new SDKError(ErrorCode[_0x111d18(0x1bf)],_0x111d18(0x1be)+_0x29f785+_0x111d18(0x1b1),_0x29a3b7);else{if(_0xb14cb9===_0x111d18(0x1b8))throw new SDKError(ErrorCode[_0x111d18(0x1c4)],_0x111d18(0x1b0)+_0x29f785+'\x27',_0x29a3b7);else throw new SDKError(ErrorCode[_0x111d18(0x1c1)],'Error\x20reading\x20file\x20\x27'+_0x29f785+_0x111d18(0x1c0)+_0x29a3b7['message'],_0x29a3b7);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b6737,_0x512503){const _0x26828e=a192_0x4c61,_0x56edda=_0x1b6737();while(!![]){try{const _0x21814a=parseInt(_0x26828e(0xd7))/0x1*(-parseInt(_0x26828e(0xd8))/0x2)+-parseInt(_0x26828e(0xd3))/0x3+parseInt(_0x26828e(0xc4))/0x4+parseInt(_0x26828e(0xcf))/0x5*(parseInt(_0x26828e(0xd9))/0x6)+parseInt(_0x26828e(0xc7))/0x7*(parseInt(_0x26828e(0xc9))/0x8)+parseInt(_0x26828e(0xbc))/0x9*(parseInt(_0x26828e(0xc3))/0xa)+parseInt(_0x26828e(0xc0))/0xb;if(_0x21814a===_0x512503)break;else _0x56edda['push'](_0x56edda['shift']());}catch(_0xd42204){_0x56edda['push'](_0x56edda['shift']());}}}(a192_0x3fcb,0xb86da));import*as a192_0x4224d4 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a192_0x4c61(_0x2d561d,_0x1bf58f){_0x2d561d=_0x2d561d-0xbc;const _0x3fcbdb=a192_0x3fcb();let _0x4c61b9=_0x3fcbdb[_0x2d561d];return _0x4c61b9;}export function fetchGitHubReleases(_0x2178ed,_0x47819e,_0x5cc94e){const _0x415746=a192_0x4c61,_0x2306b4=_0x2178ed+'/'+_0x47819e,_0x477d69=cache[_0x415746(0xca)](_0x2306b4);if(_0x477d69&&Date['now']()-_0x477d69[_0x415746(0xce)]<CACHE_TTL_MS)return Promise['resolve'](_0x477d69[_0x415746(0xbd)]);return new Promise((_0x5cec84,_0x2b14b9)=>{const _0x5100dd=_0x415746,_0xeacc92={'hostname':_0x5100dd(0xd5),'path':_0x5100dd(0xda)+_0x2178ed+'/'+_0x47819e+_0x5100dd(0xc2),'headers':{'User-Agent':_0x5cc94e,'Accept':_0x5100dd(0xcc)},'timeout':REQUEST_TIMEOUT_MS},_0xede9d5=a192_0x4224d4[_0x5100dd(0xca)](_0xeacc92,_0x3c6d5f=>{const _0x248351=_0x5100dd;let _0x12ec61='';_0x3c6d5f['on'](_0x248351(0xd4),_0xe38396=>{const _0x5c5a06=_0x248351;_0x12ec61+=_0xe38396[_0x5c5a06(0xd0)]();}),_0x3c6d5f['on']('end',()=>{const _0x391130=_0x248351;if(_0x3c6d5f[_0x391130(0xd6)]!==0xc8){_0x2b14b9(new Error(_0x391130(0xd1)+_0x3c6d5f[_0x391130(0xd6)]+':\x20'+_0x12ec61['slice'](0x0,0xc8)));return;}try{const _0x365e36=JSON[_0x391130(0xd2)](_0x12ec61);cache[_0x391130(0xc5)](_0x2306b4,{'releases':_0x365e36,'fetchedAt':Date[_0x391130(0xc8)]()}),_0x5cec84(_0x365e36);}catch(_0x37d3bb){_0x2b14b9(_0x37d3bb);}});});_0xede9d5['on']('timeout',()=>{const _0x2723c6=_0x5100dd;_0xede9d5[_0x2723c6(0xc6)](),_0x2b14b9(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0xede9d5['on'](_0x5100dd(0xcb),_0x2b14b9);});}function a192_0x3fcb(){const _0x19c4d4=['1009176MErJsg','set','destroy','14rrPLKL','now','3109992IlhBdq','get','error','application/vnd.github+json','find','fetchedAt','248135KHLyfS','toString','GitHub\x20API\x20returned\x20','parse','3866490GYnZTx','data','api.github.com','statusCode','8MVajNL','157538gurfHe','66GnVOkR','/repos/','117729APtdnq','releases','length','tag_name','11798039minorG','prerelease','/releases?per_page=20','20eqzwLl'];a192_0x3fcb=function(){return _0x19c4d4;};return a192_0x3fcb();}export async function resolveReleaseTag(_0x157eec,_0x3487fa,_0x145b77,_0x520fa8){const _0x2908a0=a192_0x4c61,_0x499741=await fetchGitHubReleases(_0x3487fa,_0x145b77,_0x520fa8);if(_0x499741[_0x2908a0(0xbe)]===0x0)return null;if(_0x157eec==='next')return _0x499741[0x0][_0x2908a0(0xbf)];const _0x2c4d67=_0x499741[_0x2908a0(0xcd)](_0x3250c7=>!_0x3250c7[_0x2908a0(0xc1)]);return _0x2c4d67?_0x2c4d67[_0x2908a0(0xbf)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38b49d,_0x390e7a){const _0x3e3879=a193_0x1a39,_0x572025=_0x38b49d();while(!![]){try{const _0xca527e=parseInt(_0x3e3879(0x122))/0x1+parseInt(_0x3e3879(0x119))/0x2*(parseInt(_0x3e3879(0x116))/0x3)+-parseInt(_0x3e3879(0x126))/0x4+parseInt(_0x3e3879(0x121))/0x5+-parseInt(_0x3e3879(0x125))/0x6+parseInt(_0x3e3879(0x128))/0x7*(-parseInt(_0x3e3879(0x11b))/0x8)+parseInt(_0x3e3879(0x127))/0x9*(parseInt(_0x3e3879(0x123))/0xa);if(_0xca527e===_0x390e7a)break;else _0x572025['push'](_0x572025['shift']());}catch(_0x37351f){_0x572025['push'](_0x572025['shift']());}}}(a193_0x4240,0x5a633));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0xdb8696=a193_0x1a39;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0xdb8696(0x11a));}const registry=new Map();function a193_0x4240(){const _0x3ceb84=['tdx','409352yvCoOO','get','\x22,\x20cannot\x20register\x20for\x20\x22','replace','parse','{profile}','1688715dXvpEL','600418iwDivm','550570Odzvov','stringify','3140202qmdXJa','1040216TQgJlA','45JuDfrH','14xpsdgu','utf-8','Global\x20cache\x20key\x20\x22','180Brkqgu','set','clear','1418vAlyjN'];a193_0x4240=function(){return _0x3ceb84;};return a193_0x4240();}export function registerGlobalCacheKey(_0x955e80,_0x51511f){const _0x2df221=a193_0x1a39,_0x535d81=registry[_0x2df221(0x11c)](_0x955e80);if(_0x535d81&&_0x535d81!==_0x51511f)throw new Error(_0x2df221(0x115)+_0x955e80+'\x22\x20already\x20registered\x20by\x20\x22'+_0x535d81+_0x2df221(0x11d)+_0x51511f+'\x22');registry[_0x2df221(0x117)](_0x955e80,_0x51511f);}export function getGlobalCachePath(_0x1fd88e){return join(getGlobalCacheDir(),_0x1fd88e);}function ensureGlobalCacheDir(){const _0x1e431d=getGlobalCacheDir();!existsSync(_0x1e431d)&&mkdirSync(_0x1e431d,{'recursive':!![]});}function readCacheJson(_0x119f3c){const _0x4ec02d=a193_0x1a39,_0x1477d6=getGlobalCachePath(_0x119f3c);if(!existsSync(_0x1477d6))return undefined;try{const _0x22118d=readFileSync(_0x1477d6,_0x4ec02d(0x129));return JSON[_0x4ec02d(0x11f)](_0x22118d);}catch{return undefined;}}function writeCacheJson(_0x540a34,_0x55f0f0){const _0x4f53e7=a193_0x1a39;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x540a34),JSON[_0x4f53e7(0x124)](_0x55f0f0,null,0x2),_0x4f53e7(0x129));}function readCacheText(_0x523b74){const _0x5afcad=getGlobalCachePath(_0x523b74);if(!existsSync(_0x5afcad))return undefined;try{return readFileSync(_0x5afcad,'utf-8');}catch{return undefined;}}function writeCacheText(_0x30fb2e,_0x4b8547){const _0x43645e=a193_0x1a39;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x30fb2e),_0x4b8547,_0x43645e(0x129));}function clearCache(_0x1ccc23){const _0x1790cf=getGlobalCachePath(_0x1ccc23);if(existsSync(_0x1790cf))try{unlinkSync(_0x1790cf);}catch{}}function cacheExists(_0x58356b){return existsSync(getGlobalCachePath(_0x58356b));}export function createGlobalCache(_0x1b3197,_0x448c92){return registerGlobalCacheKey(_0x1b3197,_0x448c92),{'read':()=>readCacheJson(_0x1b3197),'write':_0x4e492b=>writeCacheJson(_0x1b3197,_0x4e492b),'clear':()=>clearCache(_0x1b3197),'exists':()=>cacheExists(_0x1b3197),'path':()=>getGlobalCachePath(_0x1b3197)};}function a193_0x1a39(_0xf1d661,_0x45fdaa){_0xf1d661=_0xf1d661-0x115;const _0x4240ba=a193_0x4240();let _0x1a3983=_0x4240ba[_0xf1d661];return _0x1a3983;}export function createGlobalTextCache(_0x2b8bf9,_0x169d2a){return registerGlobalCacheKey(_0x2b8bf9,_0x169d2a),{'read':()=>readCacheText(_0x2b8bf9)?.['trim']()||undefined,'write':_0x379582=>writeCacheText(_0x2b8bf9,_0x379582),'clear':()=>clearCache(_0x2b8bf9),'exists':()=>cacheExists(_0x2b8bf9),'path':()=>getGlobalCachePath(_0x2b8bf9)};}export function createProfileCache(_0x44c5c5,_0x59de32){const _0xa9eab6=_0x463839=>{const _0x377cfa=a193_0x1a39,_0x3be2bc=_0x463839||'default';return _0x44c5c5[_0x377cfa(0x11e)](_0x377cfa(0x120),_0x3be2bc);};return{'read':_0x110e75=>{const _0x381630=_0xa9eab6(_0x110e75);return registerGlobalCacheKey(_0x381630,_0x59de32),readCacheJson(_0x381630);},'write':(_0x4eefeb,_0x173cf6)=>{const _0x241a0c=_0xa9eab6(_0x4eefeb);registerGlobalCacheKey(_0x241a0c,_0x59de32),writeCacheJson(_0x241a0c,_0x173cf6);},'clear':_0x45d7a8=>{const _0x3dc7a1=_0xa9eab6(_0x45d7a8);clearCache(_0x3dc7a1);},'exists':_0xc245e0=>{const _0xaddb34=_0xa9eab6(_0xc245e0);return cacheExists(_0xaddb34);},'path':_0x4a8a07=>{const _0x57d9f5=_0xa9eab6(_0x4a8a07);return getGlobalCachePath(_0x57d9f5);}};}export function createOptionalProfileCache(_0x5ce7f9,_0x934f94,_0x4686eb={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4686eb,_0x3406c1=_0xa7568e=>{return _0xa7568e?''+_0x5ce7f9+profileSeparator+_0xa7568e+suffix:''+_0x5ce7f9+suffix;};return{'read':_0xc0926b=>{const _0x47429=_0x3406c1(_0xc0926b);return registerGlobalCacheKey(_0x47429,_0x934f94),readCacheJson(_0x47429);},'write':(_0x3def5b,_0x119091)=>{const _0x58623b=_0x3406c1(_0x119091);registerGlobalCacheKey(_0x58623b,_0x934f94),writeCacheJson(_0x58623b,_0x3def5b);},'clear':_0x52fb57=>{const _0x287586=_0x3406c1(_0x52fb57);clearCache(_0x287586);},'exists':_0x5b2576=>{const _0x1fcb3b=_0x3406c1(_0x5b2576);return cacheExists(_0x1fcb3b);},'path':_0x129fe1=>{const _0x507630=_0x3406c1(_0x129fe1);return getGlobalCachePath(_0x507630);}};}export function clearGlobalRegistry(){const _0x266402=a193_0x1a39;registry[_0x266402(0x118)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c8975,_0x21bb4e){const _0x2243ea=a194_0x2f55,_0x2e2222=_0x1c8975();while(!![]){try{const _0x495b2e=parseInt(_0x2243ea(0x97))/0x1*(-parseInt(_0x2243ea(0x90))/0x2)+parseInt(_0x2243ea(0x8a))/0x3+-parseInt(_0x2243ea(0x86))/0x4*(-parseInt(_0x2243ea(0x93))/0x5)+-parseInt(_0x2243ea(0x8b))/0x6*(-parseInt(_0x2243ea(0x8d))/0x7)+-parseInt(_0x2243ea(0x99))/0x8*(-parseInt(_0x2243ea(0x88))/0x9)+-parseInt(_0x2243ea(0x8e))/0xa+parseInt(_0x2243ea(0x85))/0xb*(-parseInt(_0x2243ea(0x87))/0xc);if(_0x495b2e===_0x21bb4e)break;else _0x2e2222['push'](_0x2e2222['shift']());}catch(_0x57311b){_0x2e2222['push'](_0x2e2222['shift']());}}}(a194_0x3012,0xeb86d));function a194_0x2f55(_0xeb400b,_0x28d447){_0xeb400b=_0xeb400b-0x85;const _0x301218=a194_0x3012();let _0x2f55b5=_0x301218[_0xeb400b];return _0x2f55b5;}function a194_0x3012(){const _0x2e41a8=['code','2755490CzBSiP','parse','message','INTERNAL','2gdhGNY','ENOENT','3616dhqrWL','Failed\x20to\x20load\x20JSON:\x20','INVALID_ARGUMENT','22GuZSnA','8VAcEbZ','4728132kuvwdO','31536JVXlaf','Permission\x20denied\x20reading\x20file:\x20','34182EmBABg','2573178xyXiGQ','Invalid\x20JSON\x20in\x20file\x20\x27','14MSBxNE','5666330OraaKU','File\x20not\x20found:\x20','1235752xYGdMX','NOT_FOUND'];a194_0x3012=function(){return _0x2e41a8;};return a194_0x3012();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x501273,_0x5802d2){const _0x5d7ccc=a194_0x2f55;try{if(_0x5802d2){const _0xff5c3f=await readFile(_0x501273,'utf-8');try{return JSON[_0x5d7ccc(0x94)](_0xff5c3f);}catch(_0x486cec){throw new SDKError(ErrorCode[_0x5d7ccc(0x9b)],_0x5d7ccc(0x8c)+_0x501273+'\x27:\x20'+(_0x486cec instanceof Error?_0x486cec[_0x5d7ccc(0x95)]:String(_0x486cec)));}}else try{return JSON['parse'](_0x501273);}catch(_0x475302){throw new SDKError(ErrorCode[_0x5d7ccc(0x9b)],'Invalid\x20JSON\x20string:\x20'+(_0x475302 instanceof Error?_0x475302['message']:String(_0x475302)));}}catch(_0x5a1c73){if(_0x5a1c73 instanceof SDKError)throw _0x5a1c73;if(_0x5a1c73 instanceof Error&&'code'in _0x5a1c73){const _0xe36414=_0x5a1c73;if(_0xe36414[_0x5d7ccc(0x92)]===_0x5d7ccc(0x98))throw new SDKError(ErrorCode[_0x5d7ccc(0x91)],_0x5d7ccc(0x8f)+_0x501273);else{if(_0xe36414['code']==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5d7ccc(0x89)+_0x501273);}}throw new SDKError(ErrorCode[_0x5d7ccc(0x96)],_0x5d7ccc(0x9a)+(_0x5a1c73 instanceof Error?_0x5a1c73['message']:String(_0x5a1c73)));}}export async function loadJSONFromOptions(_0x19875a,_0x1f10f0){const _0x78a9ab=a194_0x2f55;if(_0x19875a&&_0x1f10f0)throw new SDKError(ErrorCode[_0x78a9ab(0x9b)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x19875a)return await loadJSON(_0x19875a,![]);if(_0x1f10f0)return await loadJSON(_0x1f10f0,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1821b8,_0x581471){const _0x414f73=a195_0x1d06,_0x5ab36e=_0x1821b8();while(!![]){try{const _0xd87273=-parseInt(_0x414f73(0x118))/0x1*(-parseInt(_0x414f73(0x111))/0x2)+-parseInt(_0x414f73(0x11b))/0x3+-parseInt(_0x414f73(0x11e))/0x4*(parseInt(_0x414f73(0x116))/0x5)+-parseInt(_0x414f73(0x10d))/0x6*(-parseInt(_0x414f73(0x110))/0x7)+-parseInt(_0x414f73(0x11d))/0x8*(parseInt(_0x414f73(0x113))/0x9)+-parseInt(_0x414f73(0x112))/0xa+parseInt(_0x414f73(0x11a))/0xb;if(_0xd87273===_0x581471)break;else _0x5ab36e['push'](_0x5ab36e['shift']());}catch(_0x22db66){_0x5ab36e['push'](_0x5ab36e['shift']());}}}(a195_0x1ee9,0x48c69));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(_0x169a16,_0xc471a){const _0xd82841=a195_0x1d06,_0xd51e71=registry['get'](_0x169a16);if(_0xd51e71&&_0xd51e71!==_0xc471a)throw new Error('Cache\x20key\x20\x22'+_0x169a16+_0xd82841(0x11c)+_0xd51e71+_0xd82841(0x10e)+_0xc471a+'\x22');registry[_0xd82841(0x117)](_0x169a16,_0xc471a);}function a195_0x1d06(_0x3ac879,_0x271c03){_0x3ac879=_0x3ac879-0x10b;const _0x1ee94e=a195_0x1ee9();let _0x1d06ae=_0x1ee94e[_0x3ac879];return _0x1d06ae;}export function getCacheDir(){const _0xd99f33=a195_0x1d06,_0x180363=process[_0xd99f33(0x114)](),_0x1e03bf=_0x180363===parse(_0x180363)[_0xd99f33(0x10c)]?homedir():_0x180363;return join(_0x1e03bf,LOCAL_CACHE_DIR);}export function getCachePath(_0xbda89e){return join(getCacheDir(),_0xbda89e);}function ensureCacheDir(){const _0x38a6a9=getCacheDir();!existsSync(_0x38a6a9)&&mkdirSync(_0x38a6a9,{'recursive':!![]});}function readCacheJson(_0x87b44d){const _0x7407c=a195_0x1d06,_0x393980=getCachePath(_0x87b44d);if(!existsSync(_0x393980))return undefined;try{const _0x911ad7=readFileSync(_0x393980,_0x7407c(0x115));return JSON[_0x7407c(0x119)](_0x911ad7);}catch{return undefined;}}function writeCacheJson(_0x1b3cb4,_0x54be5c){const _0x13311f=a195_0x1d06;ensureCacheDir(),writeFileSync(getCachePath(_0x1b3cb4),JSON[_0x13311f(0x10b)](_0x54be5c,null,0x2),_0x13311f(0x115));}function readCacheText(_0x59b8b0){const _0x6636f=getCachePath(_0x59b8b0);if(!existsSync(_0x6636f))return undefined;try{return readFileSync(_0x6636f,'utf-8');}catch{return undefined;}}function writeCacheText(_0x48f0b1,_0x3736f1){const _0x99143f=a195_0x1d06;ensureCacheDir(),writeFileSync(getCachePath(_0x48f0b1),_0x3736f1,_0x99143f(0x115));}function clearCache(_0x15f667){const _0x265447=getCachePath(_0x15f667);if(existsSync(_0x265447))try{unlinkSync(_0x265447);}catch{}}function cacheExists(_0x3484e2){return existsSync(getCachePath(_0x3484e2));}function a195_0x1ee9(){const _0x1d2416=['\x22,\x20cannot\x20register\x20for\x20\x22','clear','485821CfZMpy','1492oyQAjB','2149210kjaxXY','126UPrFRJ','cwd','utf-8','1995kdvQtC','set','2ezpyKa','parse','17772370AOIKOv','822858QZvQZE','\x22\x20already\x20registered\x20by\x20\x22','317104Qxwsuj','3452kqFlAx','stringify','root','6JGbZWI'];a195_0x1ee9=function(){return _0x1d2416;};return a195_0x1ee9();}export function createCache(_0xe0be79,_0x5ccde6){return registerCacheKey(_0xe0be79,_0x5ccde6),{'read':()=>readCacheJson(_0xe0be79),'write':_0x34764c=>writeCacheJson(_0xe0be79,_0x34764c),'clear':()=>clearCache(_0xe0be79),'exists':()=>cacheExists(_0xe0be79),'path':()=>getCachePath(_0xe0be79)};}export function createTextCache(_0x2f087c,_0x5e3046){return registerCacheKey(_0x2f087c,_0x5e3046),{'read':()=>readCacheText(_0x2f087c)?.['trim']()||undefined,'write':_0x58626e=>writeCacheText(_0x2f087c,_0x58626e),'clear':()=>clearCache(_0x2f087c),'exists':()=>cacheExists(_0x2f087c),'path':()=>getCachePath(_0x2f087c)};}export function clearRegistry(){const _0x4c3ebf=a195_0x1d06;registry[_0x4c3ebf(0x10f)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x442b11=a196_0xe738;(function(_0x19aa5e,_0x6751ba){const _0x35d021=a196_0xe738,_0xbdf9e4=_0x19aa5e();while(!![]){try{const _0x32dac8=-parseInt(_0x35d021(0x86))/0x1*(-parseInt(_0x35d021(0x94))/0x2)+-parseInt(_0x35d021(0x99))/0x3*(parseInt(_0x35d021(0x9b))/0x4)+-parseInt(_0x35d021(0x8b))/0x5+-parseInt(_0x35d021(0x9d))/0x6*(parseInt(_0x35d021(0x91))/0x7)+-parseInt(_0x35d021(0x90))/0x8*(parseInt(_0x35d021(0x87))/0x9)+parseInt(_0x35d021(0x81))/0xa*(-parseInt(_0x35d021(0x97))/0xb)+-parseInt(_0x35d021(0x98))/0xc*(-parseInt(_0x35d021(0x9a))/0xd);if(_0x32dac8===_0x6751ba)break;else _0xbdf9e4['push'](_0xbdf9e4['shift']());}catch(_0x16e17b){_0xbdf9e4['push'](_0xbdf9e4['shift']());}}}(a196_0xfac6,0x9061a));function a196_0xe738(_0x5a7486,_0x2137e6){_0x5a7486=_0x5a7486-0x81;const _0xfac626=a196_0xfac6();let _0xe73857=_0xfac626[_0x5a7486];return _0xe73857;}import a196_0x1fb1de from'chalk';function a196_0xfac6(){const _0xc3d5a9=['TRACE','4876630bgeVnM','cyan','chalk','dim','colors','232ULuwZF','4249308kPzNfN','gray',']\x20[','2dkOCYM','ERROR','INFO','662717UZUanH','312FgcOfH','39vfjvpc','1721707KZzisI','107816bVNwRM','WARN','6QXGRns','Chalk','130KnIWRe','colorLevel','level','DEBUG','component','1002234SyUmgb','353259NThIds','message','yellow'];a196_0xfac6=function(){return _0xc3d5a9;};return a196_0xfac6();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x1fb1de,ChalkClass=chalkModule['Chalk']||chalkModule['default']?.[a196_0x442b11(0x9e)];export class DefaultLogFormatter{[a196_0x442b11(0x8f)];[a196_0x442b11(0x8d)];constructor(_0x469839={}){const _0x2dc925=a196_0x442b11;this[_0x2dc925(0x8f)]=_0x469839['colors']??![],this[_0x2dc925(0x8d)]=_0x469839[_0x2dc925(0x8f)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x1fb1de;}['format'](_0x2607b4){const _0xa9366c=a196_0x442b11,_0x3e0887=formatTimestamp(_0x2607b4['timestamp']),_0x3199f1=logLevelToString(_0x2607b4[_0xa9366c(0x83)]);if(!this['colors'])return _0x3e0887+'\x20['+_0x3199f1+_0xa9366c(0x93)+_0x2607b4[_0xa9366c(0x85)]+']\x20'+_0x2607b4['message'];const _0x2b1c23=this[_0xa9366c(0x8d)][_0xa9366c(0x8e)](_0x3e0887),_0x18c121=this[_0xa9366c(0x82)](_0x3199f1,_0x2607b4['level']),_0x2086d5=this[_0xa9366c(0x8d)]['blue']('['+_0x2607b4[_0xa9366c(0x85)]+']');return _0x2b1c23+'\x20'+_0x18c121+'\x20'+_0x2086d5+'\x20'+_0x2607b4[_0xa9366c(0x88)];}['colorLevel'](_0x57a212,_0x44ba92){const _0x1cfb45=a196_0x442b11;switch(_0x44ba92){case LogLevel[_0x1cfb45(0x8a)]:return this[_0x1cfb45(0x8d)][_0x1cfb45(0x92)]('['+_0x57a212+']');case LogLevel[_0x1cfb45(0x84)]:return this[_0x1cfb45(0x8d)]['green']('['+_0x57a212+']');case LogLevel[_0x1cfb45(0x96)]:return this[_0x1cfb45(0x8d)][_0x1cfb45(0x8c)]('['+_0x57a212+']');case LogLevel[_0x1cfb45(0x9c)]:return this[_0x1cfb45(0x8d)][_0x1cfb45(0x89)]('['+_0x57a212+']');case LogLevel[_0x1cfb45(0x95)]:return this['chalk']['red']('['+_0x57a212+']');default:return'['+_0x57a212+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a197_0x3377(){var _0x106b74=['8VGvJMs','659768PvbOpw','508320QHMMII','42503ZHNSoZ','58723XeyASA','5701221PmTOsA','18eGHSdd','512745UymUuk','768036incVVX'];a197_0x3377=function(){return _0x106b74;};return a197_0x3377();}function a197_0x302b(_0x29c2dc,_0x4df74c){_0x29c2dc=_0x29c2dc-0xe6;var _0x3377a7=a197_0x3377();var _0x302bf7=_0x3377a7[_0x29c2dc];return _0x302bf7;}(function(_0x29cff4,_0x4381c4){var _0x2b7331=a197_0x302b,_0x27059d=_0x29cff4();while(!![]){try{var _0x458fcf=-parseInt(_0x2b7331(0xea))/0x1*(parseInt(_0x2b7331(0xe7))/0x2)+-parseInt(_0x2b7331(0xe9))/0x3+-parseInt(_0x2b7331(0xe6))/0x4+-parseInt(_0x2b7331(0xee))/0x5+-parseInt(_0x2b7331(0xed))/0x6*(-parseInt(_0x2b7331(0xeb))/0x7)+parseInt(_0x2b7331(0xe8))/0x8+parseInt(_0x2b7331(0xec))/0x9;if(_0x458fcf===_0x4381c4)break;else _0x27059d['push'](_0x27059d['shift']());}catch(_0x27c74b){_0x27059d['push'](_0x27059d['shift']());}}}(a197_0x3377,0x1a259));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x4f52ea=a198_0x5d1a;function a198_0x5d1a(_0x4aedbf,_0x1e3fd4){_0x4aedbf=_0x4aedbf-0x198;const _0x8a5921=a198_0x8a59();let _0x5d1a13=_0x8a5921[_0x4aedbf];return _0x5d1a13;}(function(_0x2f3625,_0x18edb2){const _0xa6b269=a198_0x5d1a,_0x111b87=_0x2f3625();while(!![]){try{const _0x30f4eb=parseInt(_0xa6b269(0x1aa))/0x1*(-parseInt(_0xa6b269(0x1a3))/0x2)+parseInt(_0xa6b269(0x1a2))/0x3*(parseInt(_0xa6b269(0x198))/0x4)+parseInt(_0xa6b269(0x19b))/0x5*(-parseInt(_0xa6b269(0x1a5))/0x6)+parseInt(_0xa6b269(0x1ab))/0x7*(parseInt(_0xa6b269(0x1a4))/0x8)+parseInt(_0xa6b269(0x1a9))/0x9*(-parseInt(_0xa6b269(0x1a1))/0xa)+parseInt(_0xa6b269(0x1ad))/0xb+-parseInt(_0xa6b269(0x19e))/0xc*(-parseInt(_0xa6b269(0x19f))/0xd);if(_0x30f4eb===_0x18edb2)break;else _0x111b87['push'](_0x111b87['shift']());}catch(_0x57805c){_0x111b87['push'](_0x111b87['shift']());}}}(a198_0x8a59,0x3842a));import{LogLevel as a198_0x3790fc}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a198_0x8a59(){const _0x589bd5=['formatter','90RUUrIX','2gMmHhe','9527GOOycf','colors','801757pkULRk','52GWUOOg','handle','WARN','4580kdEYLr','useStderr','error','156OhqIob','405964mVEjVY','log','381700OkQcnX','85071NRcSVT','231068bOOqJV','944TrHedl','1080SyUfxO','format','minLevel'];a198_0x8a59=function(){return _0x589bd5;};return a198_0x8a59();}export class ConsoleHandler{[a198_0x4f52ea(0x1a7)];['useStderr'];[a198_0x4f52ea(0x1a8)];constructor(_0x1d0488={}){const _0x5621fc=a198_0x4f52ea;this[_0x5621fc(0x1a7)]=_0x1d0488[_0x5621fc(0x1a7)]??a198_0x3790fc[_0x5621fc(0x19a)],this[_0x5621fc(0x19c)]=_0x1d0488[_0x5621fc(0x19c)]??!![],this[_0x5621fc(0x1a8)]=new DefaultLogFormatter({'colors':_0x1d0488[_0x5621fc(0x1ac)]??!![]});}[a198_0x4f52ea(0x199)](_0x3b13ef){const _0x286ddc=a198_0x4f52ea;if(_0x3b13ef['level']<this[_0x286ddc(0x1a7)])return;const _0x1e0ab5=this['formatter'][_0x286ddc(0x1a6)](_0x3b13ef);this['useStderr']&&_0x3b13ef['level']>=a198_0x3790fc[_0x286ddc(0x19a)]?console[_0x286ddc(0x19d)](_0x1e0ab5):console[_0x286ddc(0x1a0)](_0x1e0ab5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x19779f=a199_0x57f9;(function(_0x270aa6,_0x4f74fc){const _0x3742e0=a199_0x57f9,_0x48cd07=_0x270aa6();while(!![]){try{const _0x4ffa71=parseInt(_0x3742e0(0xf4))/0x1*(parseInt(_0x3742e0(0xea))/0x2)+parseInt(_0x3742e0(0xd6))/0x3+parseInt(_0x3742e0(0xf1))/0x4*(parseInt(_0x3742e0(0xe5))/0x5)+parseInt(_0x3742e0(0xf3))/0x6+-parseInt(_0x3742e0(0xf5))/0x7+parseInt(_0x3742e0(0xe1))/0x8*(-parseInt(_0x3742e0(0xf6))/0x9)+parseInt(_0x3742e0(0xee))/0xa;if(_0x4ffa71===_0x4f74fc)break;else _0x48cd07['push'](_0x48cd07['shift']());}catch(_0x426d92){_0x48cd07['push'](_0x48cd07['shift']());}}}(a199_0x56ed,0x2f6b9));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';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x19779f(0xf0)];[a199_0x19779f(0xe6)];[a199_0x19779f(0xdf)];[a199_0x19779f(0xd7)];['logStream']=null;[a199_0x19779f(0xf9)];constructor(_0xba8bb7={}){const _0x34a355=a199_0x19779f;this[_0x34a355(0xf0)]=_0xba8bb7[_0x34a355(0xe7)]??join(getGlobalCacheDir(),'logs',_0x34a355(0xe4)),this['logDir']=dirname(this[_0x34a355(0xf0)]),this['logFileName']=basename(this['logPath']),this[_0x34a355(0xd7)]=this['logFileName'][_0x34a355(0xf2)](/\.log$/,''),this['rotate']=_0xba8bb7[_0x34a355(0xf9)]??!![];}async[a199_0x19779f(0xeb)](){const _0x39dce0=a199_0x19779f;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x39dce0(0xf9)]&&await this['rotateOldLogs'](),this[_0x39dce0(0xd8)]=createWriteStream(this[_0x39dce0(0xf0)],{'flags':'a'}),this[_0x39dce0(0xd8)]['on'](_0x39dce0(0xe8),_0xfa6c3b=>{console['error']('Warning:\x20Error\x20writing\x20to\x20'+this['logFileName']+':',_0xfa6c3b['message']);});}catch(_0x45942d){console['error'](_0x39dce0(0xe3),_0x45942d);}}[a199_0x19779f(0xed)](_0x1fe72a){const _0x3c0376=a199_0x19779f;if(!this[_0x3c0376(0xd8)])return;const _0x1f5af4=Logger[_0x3c0376(0xdb)](_0x1fe72a);this[_0x3c0376(0xd8)][_0x3c0376(0xf8)](_0x1f5af4+'\x0a');}async[a199_0x19779f(0xd4)](){return new Promise(_0x4fe12e=>{const _0x44f728=a199_0x57f9;this[_0x44f728(0xd8)]?this[_0x44f728(0xd8)][_0x44f728(0xdc)](()=>{const _0x1d3730=_0x44f728;this[_0x1d3730(0xd8)]=null,_0x4fe12e();}):_0x4fe12e();});}[a199_0x19779f(0xec)](){const _0x5b5ec7=a199_0x19779f;return this[_0x5b5ec7(0xf0)];}async[a199_0x19779f(0xda)](){const _0x5a84c7=a199_0x19779f;try{const _0x341bd2=await readdir(this[_0x5a84c7(0xe6)]),_0x2e0ff9=new Date()[_0x5a84c7(0xfa)]()[_0x5a84c7(0xdd)]('T')[0x0];if(_0x341bd2[_0x5a84c7(0xde)](this['logFileName'])){const _0xa431b3=join(this['logDir'],this[_0x5a84c7(0xdf)]),_0x34795a=await stat(_0xa431b3),_0x1aecfd=new Date(_0x34795a[_0x5a84c7(0xf7)])[_0x5a84c7(0xfa)]()['split']('T')[0x0];if(_0x1aecfd<_0x2e0ff9){const _0x11f124=join(this[_0x5a84c7(0xe6)],this['logBaseName']+'-'+_0x1aecfd+_0x5a84c7(0xe0));await rename(_0xa431b3,_0x11f124);}}const _0x596bcc=await readdir(this['logDir']),_0x308d70=this['logBaseName']['replace'](/[.*+?^${}()|[\]\\]/g,_0x5a84c7(0xe9)),_0x52f2b6=new RegExp('^'+_0x308d70+_0x5a84c7(0xef)),_0x4ea4e2=_0x596bcc[_0x5a84c7(0xd5)](_0x304af2=>_0x52f2b6[_0x5a84c7(0xe2)](_0x304af2));for(const _0x59a7a5 of _0x4ea4e2){const _0x1c7ebe=join(this[_0x5a84c7(0xe6)],_0x59a7a5),_0x2dfaa5=join(this[_0x5a84c7(0xe6)],_0x59a7a5+_0x5a84c7(0xd9));try{await pipeline(createReadStream(_0x1c7ebe),createGzip(),createWriteStream(_0x2dfaa5)),await unlink(_0x1c7ebe);}catch(_0x1ba8df){console['error'](_0x5a84c7(0xd3)+_0x59a7a5+':',_0x1ba8df);}}}catch{}}}function a199_0x57f9(_0x507936,_0x33951d){_0x507936=_0x507936-0xd3;const _0x56edd2=a199_0x56ed();let _0x57f970=_0x56edd2[_0x507936];return _0x57f970;}function a199_0x56ed(){const _0x274dba=['logStream','.gz','rotateOldLogs','format','end','split','includes','logFileName','.log','16hvavol','test','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','tdx.log','15XhzVKb','logDir','filePath','error','\x5c$&','232986BLVGIX','init','getLogPath','handle','1381170yvUPZV','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logPath','284264JlUrlV','replace','659628vgnacM','1VhTwuo','1710275RumLsw','1496106CJLgwD','mtime','write','rotate','toISOString','Warning:\x20Failed\x20to\x20compress\x20','close','filter','579840NCLuJK','logBaseName'];a199_0x56ed=function(){return _0x274dba;};return a199_0x56ed();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x3c32(){var _0xc8d2d6=['1001DrlDVo','13994470hhQHdi','2XuORgp','437073dQClDC','35sHvrbS','5856capvPU','1771736gMogrc','4758039RsEiZc','330288wbuNLJ','426613lkMnqj'];a200_0x3c32=function(){return _0xc8d2d6;};return a200_0x3c32();}function a200_0x38d6(_0x443611,_0x1640b7){_0x443611=_0x443611-0x1cc;var _0x3c3214=a200_0x3c32();var _0x38d6ab=_0x3c3214[_0x443611];return _0x38d6ab;}(function(_0x2d696e,_0x1b7e1e){var _0x561032=a200_0x38d6,_0x111115=_0x2d696e();while(!![]){try{var _0x33eaa8=parseInt(_0x561032(0x1cf))/0x1*(-parseInt(_0x561032(0x1d2))/0x2)+-parseInt(_0x561032(0x1d3))/0x3+-parseInt(_0x561032(0x1cc))/0x4+parseInt(_0x561032(0x1d4))/0x5*(parseInt(_0x561032(0x1ce))/0x6)+-parseInt(_0x561032(0x1d0))/0x7*(-parseInt(_0x561032(0x1d5))/0x8)+-parseInt(_0x561032(0x1cd))/0x9+parseInt(_0x561032(0x1d1))/0xa;if(_0x33eaa8===_0x1b7e1e)break;else _0x111115['push'](_0x111115['shift']());}catch(_0x54a723){_0x111115['push'](_0x111115['shift']());}}}(a200_0x3c32,0x545ce));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
var a201_0x1422d3=a201_0xa64e;function a201_0x5f47(){var _0xc0fba1=['90qEehHc','3412jCbaqK','682697qwYQwf','4024BnYSqf','handle','2410380vJrSTy','2387IIvGIy','679010VVVFqb','3909846rCxPAp','1176130fbwwyC','867QLOsgd'];a201_0x5f47=function(){return _0xc0fba1;};return a201_0x5f47();}function a201_0xa64e(_0x4b6ef7,_0x1483fc){_0x4b6ef7=_0x4b6ef7-0x77;var _0x5f476e=a201_0x5f47();var _0xa64e95=_0x5f476e[_0x4b6ef7];return _0xa64e95;}(function(_0x172f1f,_0x3e24bc){var _0x3a1946=a201_0xa64e,_0x1dd96d=_0x172f1f();while(!![]){try{var _0x21d28f=parseInt(_0x3a1946(0x7a))/0x1+parseInt(_0x3a1946(0x81))/0x2+-parseInt(_0x3a1946(0x77))/0x3*(parseInt(_0x3a1946(0x79))/0x4)+-parseInt(_0x3a1946(0x7d))/0x5+parseInt(_0x3a1946(0x80))/0x6+-parseInt(_0x3a1946(0x7e))/0x7*(parseInt(_0x3a1946(0x7b))/0x8)+-parseInt(_0x3a1946(0x78))/0x9*(parseInt(_0x3a1946(0x7f))/0xa);if(_0x21d28f===_0x3e24bc)break;else _0x1dd96d['push'](_0x1dd96d['shift']());}catch(_0x20232f){_0x1dd96d['push'](_0x1dd96d['shift']());}}}(a201_0x5f47,0x53ced));export class NullHandler{[a201_0x1422d3(0x7c)](_0x29e22b){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a202_0x4303(){var _0x489267=['5620780VTQWCK','206zyKCBl','224448ySOMuR','7836144TbLODL','9MkmjUl','822OfnPWD','12301UQLDPO','11837250owLpTp','28DzwiuH','59996640gMagxR','73598USVJgk'];a202_0x4303=function(){return _0x489267;};return a202_0x4303();}(function(_0x3fdef3,_0x1233f3){var _0x31e122=a202_0x34b6,_0x321bc5=_0x3fdef3();while(!![]){try{var _0x1fabc2=-parseInt(_0x31e122(0xd4))/0x1*(parseInt(_0x31e122(0xda))/0x2)+parseInt(_0x31e122(0xdb))/0x3*(-parseInt(_0x31e122(0xd6))/0x4)+-parseInt(_0x31e122(0xd9))/0x5+-parseInt(_0x31e122(0xd3))/0x6*(parseInt(_0x31e122(0xd8))/0x7)+parseInt(_0x31e122(0xdc))/0x8+-parseInt(_0x31e122(0xdd))/0x9*(parseInt(_0x31e122(0xd5))/0xa)+parseInt(_0x31e122(0xd7))/0xb;if(_0x1fabc2===_0x1233f3)break;else _0x321bc5['push'](_0x321bc5['shift']());}catch(_0x328836){_0x321bc5['push'](_0x321bc5['shift']());}}}(a202_0x4303,0xda718));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a202_0x34b6(_0x328bec,_0x55cc6a){_0x328bec=_0x328bec-0xd3;var _0x4303f2=a202_0x4303();var _0x34b6e2=_0x4303f2[_0x328bec];return _0x34b6e2;}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x26a89d=a203_0x3602;function a203_0x218d(){const _0x4f5e8a=['message','WARN','levelOverrides','toISOString','stack','33vTfQzK','push','map','57212aszbYi','getEffectiveLevel','formatter','set','7amTwZN','name','2046376cjnoyA','cause','120535JlmlID','error','stringify','handlers','debug','initialized','INFO','TRACE','format','timestamp','string','clearHandlers','addHandler','getFormatter',']\x20[','DEBUG','231536rTKFDF','pendingRecords','565974oMQxNP','init','close','defaultLevel','component','has','setDefaultLevel','reset','40yafIzz','log','381447xHboOJ','get','setLogLevel','clear','6TCuDvv','39888YttOfz','join','dispatch','level','shouldLog','function','slice','loggers'];a203_0x218d=function(){return _0x4f5e8a;};return a203_0x218d();}(function(_0x29ee76,_0x17d914){const _0x5570a8=a203_0x3602,_0x2be9d2=_0x29ee76();while(!![]){try{const _0x5f2c5e=-parseInt(_0x5570a8(0xea))/0x1+-parseInt(_0x5570a8(0xda))/0x2*(-parseInt(_0x5570a8(0xe7))/0x3)+-parseInt(_0x5570a8(0xc9))/0x4+parseInt(_0x5570a8(0xf2))/0x5*(-parseInt(_0x5570a8(0xd9))/0x6)+-parseInt(_0x5570a8(0xee))/0x7*(-parseInt(_0x5570a8(0xf0))/0x8)+-parseInt(_0x5570a8(0xcb))/0x9+parseInt(_0x5570a8(0xd3))/0xa*(-parseInt(_0x5570a8(0xd5))/0xb);if(_0x5f2c5e===_0x17d914)break;else _0x2be9d2['push'](_0x2be9d2['shift']());}catch(_0x56abce){_0x2be9d2['push'](_0x2be9d2['shift']());}}}(a203_0x218d,0x20cf0));import{LogLevel as a203_0x2c8c50,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x2c8c50[a203_0x26a89d(0xf8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x3bb8fa){const _0x34355a=a203_0x26a89d;if(typeof _0x3bb8fa===_0x34355a(0xfc))return _0x3bb8fa;if(_0x3bb8fa instanceof Error)return _0x3bb8fa['stack']||_0x3bb8fa[_0x34355a(0xef)]+':\x20'+_0x3bb8fa['message'];try{return JSON[_0x34355a(0xf4)](_0x3bb8fa,(_0xea47ad,_0x4beee0)=>{const _0x3fead7=_0x34355a;if(_0x4beee0 instanceof Error)return{'name':_0x4beee0[_0x3fead7(0xef)],'message':_0x4beee0[_0x3fead7(0xe2)],'stack':_0x4beee0[_0x3fead7(0xe6)],'cause':_0x4beee0[_0x3fead7(0xf1)]};return _0x4beee0;});}catch{return String(_0x3bb8fa);}}function a203_0x3602(_0x59839c,_0x34b336){_0x59839c=_0x59839c-0xc8;const _0x218d10=a203_0x218d();let _0x360210=_0x218d10[_0x59839c];return _0x360210;}export class Logger{['component'];constructor(_0x52cfef){const _0x4cd4e4=a203_0x26a89d;this[_0x4cd4e4(0xcf)]=_0x52cfef;}static['of'](_0x3d06d6){const _0x2762dd=a203_0x26a89d,_0x5f3326=typeof _0x3d06d6===_0x2762dd(0xfc)?_0x3d06d6:_0x3d06d6[_0x2762dd(0xef)];let _0x27364e=state[_0x2762dd(0xe1)][_0x2762dd(0xd6)](_0x5f3326);return!_0x27364e&&(_0x27364e=new Logger(_0x5f3326),state[_0x2762dd(0xe1)][_0x2762dd(0xed)](_0x5f3326,_0x27364e)),_0x27364e;}static async[a203_0x26a89d(0xcc)](_0x250e1b={}){const _0x7280e3=a203_0x26a89d;state[_0x7280e3(0xce)]=_0x250e1b[_0x7280e3(0xce)]??a203_0x2c8c50[_0x7280e3(0xf8)],state['handlers']=_0x250e1b[_0x7280e3(0xf5)]??[],state[_0x7280e3(0xec)]=_0x250e1b[_0x7280e3(0xec)]??null,state[_0x7280e3(0xe4)][_0x7280e3(0xd8)]();if(_0x250e1b[_0x7280e3(0xe4)])for(const [_0x3bb232,_0x561720]of Object['entries'](_0x250e1b[_0x7280e3(0xe4)])){state[_0x7280e3(0xe4)][_0x7280e3(0xed)](_0x3bb232,_0x561720);}for(const _0x5945bc of state[_0x7280e3(0xf5)]){_0x5945bc['init']&&await _0x5945bc[_0x7280e3(0xcc)]();}state['initialized']=!![];for(const _0x3f94b7 of state[_0x7280e3(0xca)]){Logger[_0x7280e3(0xdc)](_0x3f94b7);}state['pendingRecords']=[];}static[a203_0x26a89d(0xd7)](_0x996e71,_0x20e096){const _0x54fdfe=a203_0x26a89d;state[_0x54fdfe(0xe4)][_0x54fdfe(0xed)](_0x996e71,_0x20e096);}static[a203_0x26a89d(0xd1)](_0x26b4a0){state['defaultLevel']=_0x26b4a0;}static[a203_0x26a89d(0xfe)](_0x397d02){const _0x5963d6=a203_0x26a89d;state[_0x5963d6(0xf5)]['push'](_0x397d02),state['initialized']&&_0x397d02[_0x5963d6(0xcc)]&&_0x397d02['init']();}static[a203_0x26a89d(0xfd)](){state['handlers']=[];}static async['shutdown'](){const _0x3aff19=a203_0x26a89d;for(const _0x5cfdf3 of state[_0x3aff19(0xf5)]){_0x5cfdf3['close']&&await _0x5cfdf3[_0x3aff19(0xcd)]();}state[_0x3aff19(0xf5)]=[],state[_0x3aff19(0xf7)]=![],state['loggers'][_0x3aff19(0xd8)](),state[_0x3aff19(0xca)]=[];}static[a203_0x26a89d(0xd2)](){const _0x2f0016=a203_0x26a89d;state[_0x2f0016(0xf7)]=![],state[_0x2f0016(0xce)]=a203_0x2c8c50[_0x2f0016(0xf8)],state[_0x2f0016(0xe4)]['clear'](),state[_0x2f0016(0xf5)]=[],state['formatter']=null,state['loggers'][_0x2f0016(0xd8)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x44d694=a203_0x26a89d;return state[_0x44d694(0xf7)];}static[a203_0x26a89d(0xeb)](_0x2181f1){const _0x5d8eba=a203_0x26a89d;if(state[_0x5d8eba(0xe4)]['has'](_0x2181f1))return state[_0x5d8eba(0xe4)][_0x5d8eba(0xd6)](_0x2181f1);const _0x12b311=_0x2181f1['split']('.');for(let _0x32bbd3=_0x12b311['length']-0x1;_0x32bbd3>0x0;_0x32bbd3--){const _0x2d20b5=_0x12b311[_0x5d8eba(0xe0)](0x0,_0x32bbd3)['join']('.');if(state[_0x5d8eba(0xe4)][_0x5d8eba(0xd0)](_0x2d20b5))return state[_0x5d8eba(0xe4)]['get'](_0x2d20b5);}return state['defaultLevel'];}[a203_0x26a89d(0xde)](_0x50fb1c){const _0x1437f3=a203_0x26a89d,_0x228b24=Logger[_0x1437f3(0xeb)](this[_0x1437f3(0xcf)]);return _0x50fb1c>=_0x228b24;}static[a203_0x26a89d(0xdc)](_0x27f3a8){const _0x274d51=a203_0x26a89d;for(const _0x28da8b of state[_0x274d51(0xf5)]){_0x28da8b['handle'](_0x27f3a8);}}[a203_0x26a89d(0xd4)](_0x425813,_0x3f1379){const _0x4b790d=a203_0x26a89d;if(!this[_0x4b790d(0xde)](_0x425813))return;const _0xb86e2f=_0x3f1379[_0x4b790d(0xe9)](_0x5908ca=>typeof _0x5908ca===_0x4b790d(0xdf)?_0x5908ca():_0x5908ca),_0x397cff=_0xb86e2f[_0x4b790d(0xe9)](safeStringify)[_0x4b790d(0xdb)]('\x20'),_0x55774b={'timestamp':new Date(),'level':_0x425813,'component':this[_0x4b790d(0xcf)],'message':_0x397cff};if(!state[_0x4b790d(0xf7)]){state[_0x4b790d(0xca)]['length']<MAX_PENDING_RECORDS&&state[_0x4b790d(0xca)][_0x4b790d(0xe8)](_0x55774b);return;}Logger[_0x4b790d(0xdc)](_0x55774b);}['trace'](..._0x143726){const _0x178af7=a203_0x26a89d;this[_0x178af7(0xd4)](a203_0x2c8c50[_0x178af7(0xf9)],_0x143726);}[a203_0x26a89d(0xf6)](..._0x121e76){const _0x7ed452=a203_0x26a89d;this[_0x7ed452(0xd4)](a203_0x2c8c50[_0x7ed452(0xc8)],_0x121e76);}['info'](..._0xd41825){const _0x34a620=a203_0x26a89d;this[_0x34a620(0xd4)](a203_0x2c8c50[_0x34a620(0xf8)],_0xd41825);}['warn'](..._0x4ff900){const _0x41a771=a203_0x26a89d;this[_0x41a771(0xd4)](a203_0x2c8c50[_0x41a771(0xe3)],_0x4ff900);}[a203_0x26a89d(0xf3)](..._0x49b782){this['log'](a203_0x2c8c50['ERROR'],_0x49b782);}static[a203_0x26a89d(0xff)](){return state['formatter'];}static[a203_0x26a89d(0xfa)](_0x27ecfd){const _0x1b472a=a203_0x26a89d;if(state[_0x1b472a(0xec)])return state['formatter'][_0x1b472a(0xfa)](_0x27ecfd);return _0x27ecfd[_0x1b472a(0xfb)][_0x1b472a(0xe5)]()+'\x20['+logLevelToString(_0x27ecfd[_0x1b472a(0xdd)])+_0x1b472a(0x100)+_0x27ecfd['component']+']\x20'+_0x27ecfd['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x568b(){const _0x28663d=['getDate','warn','29704KsZfwJ','error','2930790jebcmd','544656PdwEDg','floor','DEBUG','14JrTxFl','padStart','abs','debug','ERROR','WARNING','INFO','WARN','2mOkQSH','1151634dsXyCN','getMonth','691172obpVJF','getSeconds','1467uAHnrK','getMilliseconds','toString','11pzMZhd','toUpperCase','getFullYear','trace','getMinutes','24nnJVLA','13431588jGqkDi','getTimezoneOffset','422755XTObiO','TRACE'];a204_0x568b=function(){return _0x28663d;};return a204_0x568b();}(function(_0x176915,_0x3f74bd){const _0xf21f7b=a204_0x99ff,_0x1132d9=_0x176915();while(!![]){try{const _0x4caa43=-parseInt(_0xf21f7b(0x1c9))/0x1+-parseInt(_0xf21f7b(0x1c6))/0x2*(-parseInt(_0xf21f7b(0x1dd))/0x3)+-parseInt(_0xf21f7b(0x1d3))/0x4*(parseInt(_0xf21f7b(0x1d6))/0x5)+parseInt(_0xf21f7b(0x1c7))/0x6*(-parseInt(_0xf21f7b(0x1e0))/0x7)+-parseInt(_0xf21f7b(0x1da))/0x8*(-parseInt(_0xf21f7b(0x1cb))/0x9)+parseInt(_0xf21f7b(0x1dc))/0xa+parseInt(_0xf21f7b(0x1ce))/0xb*(parseInt(_0xf21f7b(0x1d4))/0xc);if(_0x4caa43===_0x3f74bd)break;else _0x1132d9['push'](_0x1132d9['shift']());}catch(_0x1f16af){_0x1132d9['push'](_0x1132d9['shift']());}}}(a204_0x568b,0x96959));export var LogLevel;(function(_0xba0bc4){const _0x2352cd=a204_0x99ff;_0xba0bc4[_0xba0bc4[_0x2352cd(0x1d7)]=-0x2]='TRACE',_0xba0bc4[_0xba0bc4[_0x2352cd(0x1df)]=-0x1]=_0x2352cd(0x1df),_0xba0bc4[_0xba0bc4[_0x2352cd(0x1e6)]=0x0]='INFO',_0xba0bc4[_0xba0bc4['WARN']=0x1]=_0x2352cd(0x1e7),_0xba0bc4[_0xba0bc4[_0x2352cd(0x1e4)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x4272a9){const _0x125d8b=a204_0x99ff;switch(_0x4272a9[_0x125d8b(0x1cf)]()){case _0x125d8b(0x1d7):return LogLevel['TRACE'];case _0x125d8b(0x1df):return LogLevel[_0x125d8b(0x1df)];case _0x125d8b(0x1e6):return LogLevel[_0x125d8b(0x1e6)];case _0x125d8b(0x1e7):case _0x125d8b(0x1e5):return LogLevel['WARN'];case _0x125d8b(0x1e4):return LogLevel[_0x125d8b(0x1e4)];default:return LogLevel[_0x125d8b(0x1e6)];}}export function logLevelToString(_0x5e7d14){const _0x26e6be=a204_0x99ff;switch(_0x5e7d14){case LogLevel[_0x26e6be(0x1d7)]:return _0x26e6be(0x1d1);case LogLevel[_0x26e6be(0x1df)]:return _0x26e6be(0x1e3);case LogLevel[_0x26e6be(0x1e6)]:return'info';case LogLevel[_0x26e6be(0x1e7)]:return _0x26e6be(0x1d9);case LogLevel[_0x26e6be(0x1e4)]:return _0x26e6be(0x1db);default:return'info';}}function a204_0x99ff(_0x1c12e2,_0x26f592){_0x1c12e2=_0x1c12e2-0x1c6;const _0x568ba8=a204_0x568b();let _0x99fff4=_0x568ba8[_0x1c12e2];return _0x99fff4;}export function formatTimestamp(_0xf31a9d){const _0xe689c6=a204_0x99ff,_0x13329f=_0xf31a9d[_0xe689c6(0x1d0)](),_0xd438b5=(_0xf31a9d[_0xe689c6(0x1c8)]()+0x1)[_0xe689c6(0x1cd)]()[_0xe689c6(0x1e1)](0x2,'0'),_0x5b272f=_0xf31a9d[_0xe689c6(0x1d8)]()[_0xe689c6(0x1cd)]()[_0xe689c6(0x1e1)](0x2,'0'),_0x29f870=_0xf31a9d['getHours']()['toString']()[_0xe689c6(0x1e1)](0x2,'0'),_0x18d8ce=_0xf31a9d[_0xe689c6(0x1d2)]()['toString']()[_0xe689c6(0x1e1)](0x2,'0'),_0x1d893e=_0xf31a9d[_0xe689c6(0x1ca)]()[_0xe689c6(0x1cd)]()['padStart'](0x2,'0'),_0x102af3=_0xf31a9d[_0xe689c6(0x1cc)]()[_0xe689c6(0x1cd)]()[_0xe689c6(0x1e1)](0x3,'0'),_0x543eb7=-_0xf31a9d[_0xe689c6(0x1d5)](),_0x507238=Math[_0xe689c6(0x1de)](Math['abs'](_0x543eb7)/0x3c),_0x5a8b17=Math[_0xe689c6(0x1e2)](_0x543eb7)%0x3c,_0x2c800c=_0x543eb7>=0x0?'+':'-',_0x1ed50a=''+_0x2c800c+_0x507238['toString']()['padStart'](0x2,'0')+_0x5a8b17[_0xe689c6(0x1cd)]()['padStart'](0x2,'0');return _0x13329f+'-'+_0xd438b5+'-'+_0x5b272f+'\x20'+_0x29f870+':'+_0x18d8ce+':'+_0x1d893e+'.'+_0x102af3+_0x1ed50a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x123d(_0x19272d,_0x1a293b){_0x19272d=_0x19272d-0xa6;const _0x531795=a205_0x5317();let _0x123d0b=_0x531795[_0x19272d];return _0x123d0b;}function a205_0x5317(){const _0x57d334=['4mjUKVp','Invalid\x20limit\x20value:\x20','46465QKdxts','3360213feiLRF','117627kCwwqf','isInteger','354maDcuF','number','114812wDJMgH','.\x20Must\x20be\x20an\x20integer.','600096ArBUvI','.\x20Must\x20be\x20a\x20positive\x20integer.','101544bzVydu','Invalid\x20timeout\x20value:\x20','11886WSmqDu','10bvjYJI','.\x20Must\x20be\x20a\x20positive\x20number.'];a205_0x5317=function(){return _0x57d334;};return a205_0x5317();}(function(_0x563f3c,_0x13f14f){const _0x48df0f=a205_0x123d,_0x6d0387=_0x563f3c();while(!![]){try{const _0x148afe=-parseInt(_0x48df0f(0xa8))/0x1+parseInt(_0x48df0f(0xac))/0x2+-parseInt(_0x48df0f(0xb5))/0x3*(parseInt(_0x48df0f(0xb1))/0x4)+parseInt(_0x48df0f(0xb3))/0x5+-parseInt(_0x48df0f(0xa6))/0x6*(parseInt(_0x48df0f(0xae))/0x7)+-parseInt(_0x48df0f(0xaa))/0x8+-parseInt(_0x48df0f(0xb4))/0x9*(-parseInt(_0x48df0f(0xaf))/0xa);if(_0x148afe===_0x13f14f)break;else _0x6d0387['push'](_0x6d0387['shift']());}catch(_0xed1897){_0x6d0387['push'](_0x6d0387['shift']());}}}(a205_0x5317,0x1970f));export function validateLimitOption(_0x2eac33){const _0x1165d8=a205_0x123d;if(!Number[_0x1165d8(0xb6)](_0x2eac33))return{'isValid':![],'error':_0x1165d8(0xb2)+_0x2eac33+_0x1165d8(0xa9)};if(_0x2eac33<=0x0)return{'isValid':![],'error':_0x1165d8(0xb2)+_0x2eac33+_0x1165d8(0xab)};return{'isValid':!![],'value':_0x2eac33};}export function validateTimeoutOption(_0xa06fc4,_0x432a02=0x1e){const _0x7b34ec=a205_0x123d;if(_0xa06fc4===undefined)return{'isValid':!![],'value':_0x432a02};const _0x284b6d=typeof _0xa06fc4===_0x7b34ec(0xa7)?_0xa06fc4:parseFloat(_0xa06fc4);if(isNaN(_0x284b6d))return{'isValid':![],'error':_0x7b34ec(0xad)+_0xa06fc4+'.\x20Must\x20be\x20a\x20number.'};if(_0x284b6d<=0x0)return{'isValid':![],'error':_0x7b34ec(0xad)+_0x284b6d+_0x7b34ec(0xb0)};return{'isValid':!![],'value':_0x284b6d};}
|