@treasuredata/tdx 2026.3.4 → 2026.3.6
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.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +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.d.ts.map +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.d.ts +29 -0
- package/dist/commands/auth-login-command.d.ts.map +1 -0
- package/dist/commands/auth-login-command.js +1 -0
- package/dist/commands/auth-login-command.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/mcp-command.js.map +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.d.ts.map +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profile-command.js.map +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.d.ts.map +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/status-command.js.map +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.d.ts +11 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/constants.js.map +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.d.ts +32 -0
- package/dist/core/oauth-keychain.d.ts.map +1 -0
- package/dist/core/oauth-keychain.js +1 -0
- package/dist/core/oauth-keychain.js.map +1 -0
- package/dist/core/oauth.d.ts +112 -0
- package/dist/core/oauth.d.ts.map +1 -0
- package/dist/core/oauth.js +1 -0
- package/dist/core/oauth.js.map +1 -0
- 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/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 +16 -0
- package/dist/sdk/client/oauth-refresh.d.ts.map +1 -0
- package/dist/sdk/client/oauth-refresh.js +1 -0
- package/dist/sdk/client/oauth-refresh.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +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 +1 -1
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14f5f2,_0x2b6cac){const _0x42a9c6=a187_0x1624,_0x3cd045=_0x14f5f2();while(!![]){try{const _0x17423a=-parseInt(_0x42a9c6(0xb0))/0x1*(parseInt(_0x42a9c6(0xb3))/0x2)+parseInt(_0x42a9c6(0xaf))/0x3*(parseInt(_0x42a9c6(0xb1))/0x4)+-parseInt(_0x42a9c6(0xae))/0x5*(parseInt(_0x42a9c6(0xa8))/0x6)+-parseInt(_0x42a9c6(0xac))/0x7+-parseInt(_0x42a9c6(0xad))/0x8+parseInt(_0x42a9c6(0xaa))/0x9+parseInt(_0x42a9c6(0xa9))/0xa*(parseInt(_0x42a9c6(0xb4))/0xb);if(_0x17423a===_0x2b6cac)break;else _0x3cd045['push'](_0x3cd045['shift']());}catch(_0x1c65c8){_0x3cd045['push'](_0x3cd045['shift']());}}}(a187_0x474a,0x2c035));export async function batchAsync(_0x34873f,_0x41e76d,_0x2f63f1=0xa){const _0x456ad6=a187_0x1624,_0x26783e=[];for(let _0x57973e=0x0;_0x57973e<_0x34873f[_0x456ad6(0xab)];_0x57973e+=_0x2f63f1){const _0x4a7b4b=_0x34873f[_0x456ad6(0xb2)](_0x57973e,_0x57973e+_0x2f63f1),_0x2758ab=await Promise['all'](_0x4a7b4b[_0x456ad6(0xa7)](_0x41e76d));_0x26783e[_0x456ad6(0xb5)](..._0x2758ab);}return _0x26783e;}function a187_0x1624(_0x397dd8,_0x2c449d){_0x397dd8=_0x397dd8-0xa7;const _0x474aff=a187_0x474a();let _0x16240a=_0x474aff[_0x397dd8];return _0x16240a;}function a187_0x474a(){const _0x948f82=['232dksXDe','slice','239318lsaPVk','414777UraJHH','push','map','6lquXqv','60ooRyju','1590525vlFhqo','length','377979OwIffy','49856rpwfnb','256325CccgDT','6627zWFOUa','2lMkkIU'];a187_0x474a=function(){return _0x948f82;};return a187_0x474a();}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x1ac4ce=a188_0x16cf;function a188_0x5178(){const _0x2b6682=['null','repeat','stringify','string','112vBCAIN','isArray','green','60TIxpxz','93960ZyvvHk','map','1507554KtJqOP','2341560EZZAHF','boolean','object','920469phiAHB','2720plLjeA','5822550hIPqgh','563336bDGCbQ','noColor','20121wPzDVx','Chalk','length','blue','yellow','dim','join','cyan','number','stdout','entries'];a188_0x5178=function(){return _0x2b6682;};return a188_0x5178();}(function(_0x33fbfd,_0x129c17){const _0xa86380=a188_0x16cf,_0x26048d=_0x33fbfd();while(!![]){try{const _0x1ed4d4=parseInt(_0xa86380(0x1d3))/0x1+-parseInt(_0xa86380(0x1d0))/0x2+-parseInt(_0xa86380(0x1ba))/0x3*(-parseInt(_0xa86380(0x1cc))/0x4)+-parseInt(_0xa86380(0x1d5))/0x5+parseInt(_0xa86380(0x1cf))/0x6+-parseInt(_0xa86380(0x1c9))/0x7*(parseInt(_0xa86380(0x1d6))/0x8)+parseInt(_0xa86380(0x1cd))/0x9*(parseInt(_0xa86380(0x1d4))/0xa);if(_0x1ed4d4===_0x129c17)break;else _0x26048d['push'](_0x26048d['shift']());}catch(_0x55b79f){_0x26048d['push'](_0x26048d['shift']());}}}(a188_0x5178,0x9eb43));import*as a188_0x58a8b5 from'chalk';const Chalk=a188_0x58a8b5[a188_0x1ac4ce(0x1bb)];function a188_0x16cf(_0x2b53e1,_0x17b721){_0x2b53e1=_0x2b53e1-0x1ba;const _0x5178b6=a188_0x5178();let _0x16cf3a=_0x5178b6[_0x2b53e1];return _0x16cf3a;}export function shouldUseColor(_0x37cbd7={}){const _0x1f5bb2=a188_0x1ac4ce;if(_0x37cbd7[_0x1f5bb2(0x1d7)]===!![])return![];if(_0x37cbd7['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1f5bb2(0x1c3)]['isTTY']??![];}export function getChalk(_0x5353ac={}){if(shouldUseColor(_0x5353ac))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xf4f3aa,_0x4b0cec={}){return getChalk(_0x4b0cec)['dim'](_0xf4f3aa);}export function colorHeader(_0x21e3fb,_0x156949={}){const _0x2216a6=a188_0x1ac4ce;return getChalk(_0x156949)[_0x2216a6(0x1c1)](_0x21e3fb);}export function colorType(_0x18ae88,_0x49f539={}){const _0x40ff0f=a188_0x1ac4ce;return getChalk(_0x49f539)[_0x40ff0f(0x1bf)](_0x18ae88);}export function colorJSONKey(_0x44981d,_0x9ed1f9={}){const _0x504f55=a188_0x1ac4ce;return getChalk(_0x9ed1f9)[_0x504f55(0x1bd)](_0x44981d);}export function colorJSONString(_0x456628,_0x2f5c1b={}){const _0x44f3b2=a188_0x1ac4ce;return getChalk(_0x2f5c1b)[_0x44f3b2(0x1cb)](_0x456628);}export function colorJSONNumber(_0x1e9d6,_0x1e0912={}){const _0x3066e7=a188_0x1ac4ce;return getChalk(_0x1e0912)[_0x3066e7(0x1c1)](_0x1e9d6);}export function colorJSONBoolean(_0x36aa3a,_0x35db6b={}){const _0x1e84ac=a188_0x1ac4ce;return getChalk(_0x35db6b)[_0x1e84ac(0x1be)](_0x36aa3a);}export function colorJSONNull(_0x3388c1,_0x5386dc={}){const _0x22a2bf=a188_0x1ac4ce;return getChalk(_0x5386dc)[_0x22a2bf(0x1bf)](_0x3388c1);}export function colorizeJSONCompact(_0x3f0430,_0x5ddcf7={}){const _0x179c43=a188_0x1ac4ce;if(!shouldUseColor(_0x5ddcf7))return JSON[_0x179c43(0x1c7)](_0x3f0430);if(_0x3f0430===null)return colorJSONNull(_0x179c43(0x1c5),_0x5ddcf7);if(typeof _0x3f0430==='boolean')return colorJSONBoolean(String(_0x3f0430),_0x5ddcf7);if(typeof _0x3f0430===_0x179c43(0x1c2))return colorJSONNumber(String(_0x3f0430),_0x5ddcf7);if(typeof _0x3f0430===_0x179c43(0x1c8))return colorJSONString(JSON['stringify'](_0x3f0430),_0x5ddcf7);if(Array[_0x179c43(0x1ca)](_0x3f0430)){if(_0x3f0430[_0x179c43(0x1bc)]===0x0)return'[]';const _0x296511=_0x3f0430[_0x179c43(0x1ce)](_0x469ef3=>colorizeJSONCompact(_0x469ef3,_0x5ddcf7));return'['+_0x296511[_0x179c43(0x1c0)](',')+']';}if(typeof _0x3f0430===_0x179c43(0x1d2)){const _0x3a3aa9=Object[_0x179c43(0x1c4)](_0x3f0430);if(_0x3a3aa9['length']===0x0)return'{}';const _0x20bb65=_0x3a3aa9[_0x179c43(0x1ce)](([_0x17ced4,_0x590d0e])=>{const _0xa22ede=_0x179c43,_0x361a6f=colorJSONKey(JSON[_0xa22ede(0x1c7)](_0x17ced4),_0x5ddcf7),_0x1fd3f3=colorizeJSONCompact(_0x590d0e,_0x5ddcf7);return _0x361a6f+':'+_0x1fd3f3;});return'{'+_0x20bb65[_0x179c43(0x1c0)](',')+'}';}return String(_0x3f0430);}export function colorizeJSON(_0x3deb14,_0xce0b5e={},_0x4a8ef1=0x0){const _0x859761=a188_0x1ac4ce;if(!shouldUseColor(_0xce0b5e))return JSON['stringify'](_0x3deb14,null,0x2);const _0x29c8c0='\x20'['repeat'](_0x4a8ef1),_0x13e4e5=_0x4a8ef1+0x2;if(_0x3deb14===null)return colorJSONNull(_0x859761(0x1c5),_0xce0b5e);if(typeof _0x3deb14===_0x859761(0x1d1))return colorJSONBoolean(String(_0x3deb14),_0xce0b5e);if(typeof _0x3deb14===_0x859761(0x1c2))return colorJSONNumber(String(_0x3deb14),_0xce0b5e);if(typeof _0x3deb14===_0x859761(0x1c8))return colorJSONString(JSON[_0x859761(0x1c7)](_0x3deb14),_0xce0b5e);if(Array['isArray'](_0x3deb14)){if(_0x3deb14[_0x859761(0x1bc)]===0x0)return'[]';const _0x280d6a=_0x3deb14[_0x859761(0x1ce)](_0x1a74a0=>{const _0x440fd7=_0x859761,_0x28f41b=colorizeJSON(_0x1a74a0,_0xce0b5e,_0x13e4e5);return''+'\x20'[_0x440fd7(0x1c6)](_0x13e4e5)+_0x28f41b;});return'[\x0a'+_0x280d6a[_0x859761(0x1c0)](',\x0a')+('\x0a'+_0x29c8c0+']');}if(typeof _0x3deb14===_0x859761(0x1d2)){const _0x1d6c8c=Object[_0x859761(0x1c4)](_0x3deb14);if(_0x1d6c8c['length']===0x0)return'{}';const _0x2f77c3=_0x1d6c8c[_0x859761(0x1ce)](([_0x20d30d,_0x1204c4])=>{const _0x3c8862=_0x859761,_0x32291=colorJSONKey(JSON['stringify'](_0x20d30d),_0xce0b5e),_0x2047da=colorizeJSON(_0x1204c4,_0xce0b5e,_0x13e4e5);return''+'\x20'[_0x3c8862(0x1c6)](_0x13e4e5)+_0x32291+':\x20'+_0x2047da;});return'{\x0a'+_0x2f77c3[_0x859761(0x1c0)](',\x0a')+('\x0a'+_0x29c8c0+'}');}return String(_0x3deb14);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a189_0x72d0(_0x5d60eb,_0x1c73bb){_0x5d60eb=_0x5d60eb-0xd0;const _0x524b38=a189_0x524b();let _0x72d089=_0x524b38[_0x5d60eb];return _0x72d089;}function a189_0x524b(){const _0x4f817e=['type','some','1238046WUMmqF','cyan','\x20-\x20','add','\x20+\x20','fill','has','dim','padStart','10769857eyQQEA','added','removed','3347436GrjAbJ','content','876EwcSRk','779321LwiFPY','repeat','map','8TebQFo','green','length','new','old','push','1090622GrnGtN','9141453UkwrHy','\x20\x20\x20','unchanged','split','2405MvUMXW'];a189_0x524b=function(){return _0x4f817e;};return a189_0x524b();}(function(_0x171d06,_0x2b30da){const _0x498168=a189_0x72d0,_0x41c3bd=_0x171d06();while(!![]){try{const _0x1d568f=parseInt(_0x498168(0xe3))/0x1+parseInt(_0x498168(0xec))/0x2+-parseInt(_0x498168(0xe0))/0x3+-parseInt(_0x498168(0xe2))/0x4*(parseInt(_0x498168(0xd1))/0x5)+parseInt(_0x498168(0xd4))/0x6+parseInt(_0x498168(0xdd))/0x7+-parseInt(_0x498168(0xe6))/0x8*(parseInt(_0x498168(0xed))/0x9);if(_0x1d568f===_0x2b30da)break;else _0x41c3bd['push'](_0x41c3bd['shift']());}catch(_0x542164){_0x41c3bd['push'](_0x41c3bd['shift']());}}}(a189_0x524b,0xcb490));import a189_0x25ebbc from'chalk';export function generateDiff(_0xd324b3,_0x5606e6){const _0x27ac2a=a189_0x72d0,_0xa9f76d=_0xd324b3['split']('\x0a'),_0x54746c=_0x5606e6[_0x27ac2a(0xd0)]('\x0a'),_0x5ed69f=[],_0x108357=computeLCS(_0xa9f76d,_0x54746c);let _0x219c35=0x0,_0x593ce9=0x0,_0x2fdd7b=0x0;while(_0x219c35<_0xa9f76d[_0x27ac2a(0xe8)]||_0x593ce9<_0x54746c[_0x27ac2a(0xe8)]){if(_0x2fdd7b<_0x108357[_0x27ac2a(0xe8)]&&_0x219c35<_0xa9f76d['length']&&_0xa9f76d[_0x219c35]===_0x108357[_0x2fdd7b])_0x593ce9<_0x54746c[_0x27ac2a(0xe8)]&&_0x54746c[_0x593ce9]===_0x108357[_0x2fdd7b]?(_0x5ed69f[_0x27ac2a(0xeb)]({'type':'unchanged','content':_0xa9f76d[_0x219c35]}),_0x219c35++,_0x593ce9++,_0x2fdd7b++):(_0x5ed69f[_0x27ac2a(0xeb)]({'type':_0x27ac2a(0xde),'content':_0x54746c[_0x593ce9]}),_0x593ce9++);else{if(_0x2fdd7b<_0x108357[_0x27ac2a(0xe8)]&&_0x593ce9<_0x54746c[_0x27ac2a(0xe8)]&&_0x54746c[_0x593ce9]===_0x108357[_0x2fdd7b])_0x5ed69f['push']({'type':_0x27ac2a(0xdf),'content':_0xa9f76d[_0x219c35]}),_0x219c35++;else{if(_0x219c35<_0xa9f76d[_0x27ac2a(0xe8)]&&(_0x2fdd7b>=_0x108357[_0x27ac2a(0xe8)]||_0xa9f76d[_0x219c35]!==_0x108357[_0x2fdd7b]))_0x5ed69f[_0x27ac2a(0xeb)]({'type':_0x27ac2a(0xdf),'content':_0xa9f76d[_0x219c35]}),_0x219c35++;else _0x593ce9<_0x54746c[_0x27ac2a(0xe8)]&&(_0x5ed69f[_0x27ac2a(0xeb)]({'type':'added','content':_0x54746c[_0x593ce9]}),_0x593ce9++);}}}return _0x5ed69f;}function computeLCS(_0x5100eb,_0x1a2868){const _0x21e8c9=a189_0x72d0,_0x348734=_0x5100eb[_0x21e8c9(0xe8)],_0x2eee76=_0x1a2868[_0x21e8c9(0xe8)],_0x24d8b6=Array(_0x348734+0x1)['fill'](null)[_0x21e8c9(0xe5)](()=>Array(_0x2eee76+0x1)[_0x21e8c9(0xd9)](0x0));for(let _0x17f27e=0x1;_0x17f27e<=_0x348734;_0x17f27e++){for(let _0x1f1bd1=0x1;_0x1f1bd1<=_0x2eee76;_0x1f1bd1++){_0x5100eb[_0x17f27e-0x1]===_0x1a2868[_0x1f1bd1-0x1]?_0x24d8b6[_0x17f27e][_0x1f1bd1]=_0x24d8b6[_0x17f27e-0x1][_0x1f1bd1-0x1]+0x1:_0x24d8b6[_0x17f27e][_0x1f1bd1]=Math['max'](_0x24d8b6[_0x17f27e-0x1][_0x1f1bd1],_0x24d8b6[_0x17f27e][_0x1f1bd1-0x1]);}}const _0x12e372=[];let _0x1ce3ab=_0x348734,_0x84d612=_0x2eee76;while(_0x1ce3ab>0x0&&_0x84d612>0x0){if(_0x5100eb[_0x1ce3ab-0x1]===_0x1a2868[_0x84d612-0x1])_0x12e372['unshift'](_0x5100eb[_0x1ce3ab-0x1]),_0x1ce3ab--,_0x84d612--;else _0x24d8b6[_0x1ce3ab-0x1][_0x84d612]>_0x24d8b6[_0x1ce3ab][_0x84d612-0x1]?_0x1ce3ab--:_0x84d612--;}return _0x12e372;}export function formatDiffWithColors(_0x103687,_0x585624=0x3){const _0x5dd94c=a189_0x72d0,_0x200269=new Set();_0x103687['forEach']((_0x5a3d96,_0x3c1541)=>{const _0x21cd0a=a189_0x72d0;_0x5a3d96[_0x21cd0a(0xd2)]!==_0x21cd0a(0xef)&&_0x200269[_0x21cd0a(0xd7)](_0x3c1541);});if(_0x200269['size']===0x0)return'';const _0x333aaa=new Set();for(const _0x41da68 of _0x200269){for(let _0x29afde=Math['max'](0x0,_0x41da68-_0x585624);_0x29afde<=Math['min'](_0x103687[_0x5dd94c(0xe8)]-0x1,_0x41da68+_0x585624);_0x29afde++){_0x333aaa[_0x5dd94c(0xd7)](_0x29afde);}}const _0x1052ed=[];let _0x1bbded=-0x1;const _0xd5fd5f=_0x103687[_0x5dd94c(0xe8)],_0x108ac0=Math['max'](0x3,String(_0xd5fd5f)[_0x5dd94c(0xe8)]),_0x2bd7d4=[];let _0x5a0db1=0x0,_0x3359b6=0x0;for(const _0x4a3238 of _0x103687){if(_0x4a3238['type']===_0x5dd94c(0xdf))_0x5a0db1++,_0x2bd7d4[_0x5dd94c(0xeb)]({'old':_0x5a0db1,'new':0x0});else _0x4a3238[_0x5dd94c(0xd2)]===_0x5dd94c(0xde)?(_0x3359b6++,_0x2bd7d4['push']({'old':0x0,'new':_0x3359b6})):(_0x5a0db1++,_0x3359b6++,_0x2bd7d4[_0x5dd94c(0xeb)]({'old':_0x5a0db1,'new':_0x3359b6}));}for(let _0x3fafd7=0x0;_0x3fafd7<_0x103687[_0x5dd94c(0xe8)];_0x3fafd7++){if(!_0x333aaa[_0x5dd94c(0xda)](_0x3fafd7))continue;_0x1bbded!==-0x1&&_0x3fafd7>_0x1bbded+0x1&&_0x1052ed[_0x5dd94c(0xeb)](a189_0x25ebbc[_0x5dd94c(0xd5)]('\x20\x20...'));_0x1bbded=_0x3fafd7;const _0x3d6d5e=_0x103687[_0x3fafd7],_0x32b156=_0x2bd7d4[_0x3fafd7],_0x38cd87=_0x32b156[_0x5dd94c(0xea)]>0x0?String(_0x32b156[_0x5dd94c(0xea)])[_0x5dd94c(0xdc)](_0x108ac0):'\x20'[_0x5dd94c(0xe4)](_0x108ac0),_0x1eb4f7=_0x32b156['new']>0x0?String(_0x32b156[_0x5dd94c(0xe9)])['padStart'](_0x108ac0):'\x20'[_0x5dd94c(0xe4)](_0x108ac0);switch(_0x3d6d5e[_0x5dd94c(0xd2)]){case _0x5dd94c(0xdf):_0x1052ed['push'](a189_0x25ebbc['red'](_0x38cd87+'\x20'+_0x1eb4f7+_0x5dd94c(0xd6)+_0x3d6d5e[_0x5dd94c(0xe1)]));break;case _0x5dd94c(0xde):_0x1052ed[_0x5dd94c(0xeb)](a189_0x25ebbc[_0x5dd94c(0xe7)](_0x38cd87+'\x20'+_0x1eb4f7+_0x5dd94c(0xd8)+_0x3d6d5e[_0x5dd94c(0xe1)]));break;default:_0x1052ed[_0x5dd94c(0xeb)](a189_0x25ebbc[_0x5dd94c(0xdb)](_0x38cd87+'\x20'+_0x1eb4f7+_0x5dd94c(0xee)+_0x3d6d5e[_0x5dd94c(0xe1)]));break;}}return _0x1052ed['join']('\x0a');}export function hasChanges(_0x47f833){const _0x32205d=a189_0x72d0;return _0x47f833[_0x32205d(0xd3)](_0x1e9cd0=>_0x1e9cd0[_0x32205d(0xd2)]!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x41b12d,_0x5244b1){const _0x2c90d4=a190_0x130a,_0x3070dd=_0x41b12d();while(!![]){try{const _0x5dba17=parseInt(_0x2c90d4(0xeb))/0x1+parseInt(_0x2c90d4(0xfc))/0x2*(parseInt(_0x2c90d4(0xee))/0x3)+parseInt(_0x2c90d4(0xfa))/0x4+parseInt(_0x2c90d4(0xf3))/0x5*(-parseInt(_0x2c90d4(0xf5))/0x6)+parseInt(_0x2c90d4(0xf9))/0x7*(-parseInt(_0x2c90d4(0xef))/0x8)+parseInt(_0x2c90d4(0xfd))/0x9*(-parseInt(_0x2c90d4(0xf2))/0xa)+parseInt(_0x2c90d4(0xe8))/0xb;if(_0x5dba17===_0x5244b1)break;else _0x3070dd['push'](_0x3070dd['shift']());}catch(_0x3d443d){_0x3070dd['push'](_0x3070dd['shift']());}}}(a190_0x205f,0x5cff5));import*as a190_0x348c01 from'node:fs';import*as a190_0x373926 from'node:path';export function setSecureFilePermissions(_0x376719){const _0x5bd350=a190_0x130a;try{a190_0x348c01[_0x5bd350(0xe7)](_0x376719,0x180);}catch{console[_0x5bd350(0xf6)](_0x5bd350(0xf0)+_0x376719);}}export function setSecureDirectoryPermissions(_0x88f9a6){const _0x322314=a190_0x130a;try{a190_0x348c01[_0x322314(0xe7)](_0x88f9a6,0x1c0);}catch{console[_0x322314(0xf6)](_0x322314(0xf0)+_0x88f9a6);}}export function createSecureDirectory(_0x35d747){const _0x58850b=a190_0x130a;!a190_0x348c01[_0x58850b(0xe6)](_0x35d747)&&(a190_0x348c01[_0x58850b(0xf8)](_0x35d747,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x35d747));}function a190_0x130a(_0x30dc1d,_0x357b67){_0x30dc1d=_0x30dc1d-0xe5;const _0x205f0d=a190_0x205f();let _0x130ae9=_0x205f0d[_0x30dc1d];return _0x130ae9;}export function validateSecureFilePermissions(_0x355251){const _0x581960=a190_0x130a;try{const _0xe2c44e=a190_0x348c01[_0x581960(0xe9)](_0x355251),_0x4d8147=_0xe2c44e[_0x581960(0xec)]&0x1ff,_0x388d87=(_0x4d8147&0x3f)!==0x0;if(_0x388d87)return console[_0x581960(0xf6)](_0x581960(0xe5)+_0x355251+_0x581960(0xf1)+_0x4d8147[_0x581960(0xf4)](0x8)+_0x581960(0xf7)+_0x581960(0xea)),![];return!![];}catch{return!![];}}function a190_0x205f(){const _0x3a7f09=['1079877nmJUAZ','3437712NoXceS','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','\x20has\x20insecure\x20permissions\x20(','190jcKltH','5PNljnD','toString','3679458teHmHv','warn',').\x20','mkdirSync','7YNnsKQ','1867020oGFqZR','dirname','4osfevk','304317GQHNaH','Warning:\x20','existsSync','chmodSync','6269868UFJlid','statSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','309660ZYrjIc','mode','writeFileSync'];a190_0x205f=function(){return _0x3a7f09;};return a190_0x205f();}export function writeSecureFile(_0x359eff,_0x5985fd){const _0xbc1cd9=a190_0x130a,_0xea22c4=a190_0x373926[_0xbc1cd9(0xfb)](_0x359eff);createSecureDirectory(_0xea22c4),a190_0x348c01[_0xbc1cd9(0xed)](_0x359eff,_0x5985fd,{'mode':0x180}),setSecureFilePermissions(_0x359eff);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f4c47,_0x229e82){const _0x364ed=a191_0x9ee1,_0x1dddc3=_0x1f4c47();while(!![]){try{const _0x313021=parseInt(_0x364ed(0x1c7))/0x1+-parseInt(_0x364ed(0x1c3))/0x2+-parseInt(_0x364ed(0x1d1))/0x3*(parseInt(_0x364ed(0x1d0))/0x4)+-parseInt(_0x364ed(0x1cd))/0x5*(parseInt(_0x364ed(0x1cf))/0x6)+parseInt(_0x364ed(0x1c5))/0x7+-parseInt(_0x364ed(0x1c9))/0x8*(parseInt(_0x364ed(0x1cb))/0x9)+parseInt(_0x364ed(0x1c2))/0xa;if(_0x313021===_0x229e82)break;else _0x1dddc3['push'](_0x1dddc3['shift']());}catch(_0x1b89bb){_0x1dddc3['push'](_0x1dddc3['shift']());}}}(a191_0x54ed,0xad8b8));import{readFileSync}from'fs';function a191_0x54ed(){const _0x569635=['9281296mEvMBI','EACCES','9GVbuMr','Error\x20reading\x20file\x20\x27','419110byELAS','Permission\x20denied\x20reading\x20file\x20\x27','48AjFNUu','8sUwalt','1562163MRDcgQ','utf-8','PERMISSION_DENIED','File\x20\x27','24266960TtzfwT','833398YosSDs','\x27\x20not\x20found','8695428NORSPR','message','330819DOZneK','INTERNAL'];a191_0x54ed=function(){return _0x569635;};return a191_0x54ed();}import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x9ee1(_0x1532d3,_0x2cc02b){_0x1532d3=_0x1532d3-0x1c2;const _0x54ed1e=a191_0x54ed();let _0x9ee11=_0x54ed1e[_0x1532d3];return _0x9ee11;}export function readFileContent(_0x2b0eab){const _0x5bd4e6=a191_0x9ee1;try{return readFileSync(_0x2b0eab,_0x5bd4e6(0x1d2));}catch(_0x247f7e){const _0x5e5586=_0x247f7e['code'];if(_0x5e5586==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x5bd4e6(0x1d4)+_0x2b0eab+_0x5bd4e6(0x1c4),_0x247f7e);else{if(_0x5e5586===_0x5bd4e6(0x1ca))throw new SDKError(ErrorCode[_0x5bd4e6(0x1d3)],_0x5bd4e6(0x1ce)+_0x2b0eab+'\x27',_0x247f7e);else throw new SDKError(ErrorCode[_0x5bd4e6(0x1c8)],_0x5bd4e6(0x1cc)+_0x2b0eab+'\x27:\x20'+_0x247f7e[_0x5bd4e6(0x1c6)],_0x247f7e);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a192_0x2bde(){const _0x396b44=['4507223DpyWHJ','now','destroy','releases','slice','4508708XMaXRa','1319517PULzJs','prerelease','5EoAbOD','/releases?per_page=20','/repos/','345374mPlnpM','70TdrKRb','parse','3274216hKIYvt','timeout','4108749zNIPmD','find','7eAGqZy','set','next','error','get','tag_name','6giTyKM','application/vnd.github+json','length','50388272VxjZdU','toString','resolve','GitHub\x20API\x20returned\x20'];a192_0x2bde=function(){return _0x396b44;};return a192_0x2bde();}(function(_0x319e4e,_0x41103a){const _0x5163c5=a192_0x5813,_0x162812=_0x319e4e();while(!![]){try{const _0x4c9398=parseInt(_0x5163c5(0x11c))/0x1*(-parseInt(_0x5163c5(0x115))/0x2)+-parseInt(_0x5163c5(0x11a))/0x3+-parseInt(_0x5163c5(0x10f))/0x4*(parseInt(_0x5163c5(0x112))/0x5)+-parseInt(_0x5163c5(0x103))/0x6*(-parseInt(_0x5163c5(0x10a))/0x7)+parseInt(_0x5163c5(0x118))/0x8+parseInt(_0x5163c5(0x110))/0x9*(-parseInt(_0x5163c5(0x116))/0xa)+parseInt(_0x5163c5(0x106))/0xb;if(_0x4c9398===_0x41103a)break;else _0x162812['push'](_0x162812['shift']());}catch(_0x1bedae){_0x162812['push'](_0x162812['shift']());}}}(a192_0x2bde,0xdc3aa));import*as a192_0x2c6c89 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a192_0x5813(_0x49dde3,_0x49b932){_0x49dde3=_0x49dde3-0xfe;const _0x2bde1e=a192_0x2bde();let _0x5813c0=_0x2bde1e[_0x49dde3];return _0x5813c0;}export function fetchGitHubReleases(_0x3f40ab,_0x3eb890,_0x4bfa7c){const _0x4213f7=a192_0x5813,_0x1831e7=_0x3f40ab+'/'+_0x3eb890,_0x31ccfc=cache[_0x4213f7(0x101)](_0x1831e7);if(_0x31ccfc&&Date[_0x4213f7(0x10b)]()-_0x31ccfc['fetchedAt']<CACHE_TTL_MS)return Promise[_0x4213f7(0x108)](_0x31ccfc[_0x4213f7(0x10d)]);return new Promise((_0x27a3a8,_0x47232f)=>{const _0x1cf881=_0x4213f7,_0x28c2ae={'hostname':'api.github.com','path':_0x1cf881(0x114)+_0x3f40ab+'/'+_0x3eb890+_0x1cf881(0x113),'headers':{'User-Agent':_0x4bfa7c,'Accept':_0x1cf881(0x104)},'timeout':REQUEST_TIMEOUT_MS},_0x546264=a192_0x2c6c89[_0x1cf881(0x101)](_0x28c2ae,_0x41121d=>{let _0x5ebd50='';_0x41121d['on']('data',_0x4e70bf=>{const _0x6c81b4=a192_0x5813;_0x5ebd50+=_0x4e70bf[_0x6c81b4(0x107)]();}),_0x41121d['on']('end',()=>{const _0x6bd5c5=a192_0x5813;if(_0x41121d['statusCode']!==0xc8){_0x47232f(new Error(_0x6bd5c5(0x109)+_0x41121d['statusCode']+':\x20'+_0x5ebd50[_0x6bd5c5(0x10e)](0x0,0xc8)));return;}try{const _0xa02aa9=JSON[_0x6bd5c5(0x117)](_0x5ebd50);cache[_0x6bd5c5(0xfe)](_0x1831e7,{'releases':_0xa02aa9,'fetchedAt':Date[_0x6bd5c5(0x10b)]()}),_0x27a3a8(_0xa02aa9);}catch(_0x30f882){_0x47232f(_0x30f882);}});});_0x546264['on'](_0x1cf881(0x119),()=>{const _0x16bd0b=_0x1cf881;_0x546264[_0x16bd0b(0x10c)](),_0x47232f(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x546264['on'](_0x1cf881(0x100),_0x47232f);});}export async function resolveReleaseTag(_0x2bd82a,_0x126632,_0x7e3c38,_0x2b19b5){const _0x2f19e0=a192_0x5813,_0x40c376=await fetchGitHubReleases(_0x126632,_0x7e3c38,_0x2b19b5);if(_0x40c376[_0x2f19e0(0x105)]===0x0)return null;if(_0x2bd82a===_0x2f19e0(0xff))return _0x40c376[0x0][_0x2f19e0(0x102)];const _0x523a1c=_0x40c376[_0x2f19e0(0x11b)](_0x295b66=>!_0x295b66[_0x2f19e0(0x111)]);return _0x523a1c?_0x523a1c['tag_name']:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a193_0xba64(){const _0x1755a9=['parse','1323dqFIfe','.cache','1158530mwmPIs','replace','get','utf-8','set','tdx','347096EZwuBO','28160sdqJlD','166WDqhXP','clear','399hIorAq','stringify','18376OVqtqz','2555ePcEdF','\x22\x20already\x20registered\x20by\x20\x22','default','3237312rIubYy','Global\x20cache\x20key\x20\x22','6PKaGnq','7540918VlhTvE','trim'];a193_0xba64=function(){return _0x1755a9;};return a193_0xba64();}(function(_0x5c4b95,_0x246500){const _0x3beb73=a193_0x4fbf,_0x4a6fa5=_0x5c4b95();while(!![]){try{const _0x587d81=parseInt(_0x3beb73(0xc0))/0x1*(parseInt(_0x3beb73(0xbb))/0x2)+parseInt(_0x3beb73(0xad))/0x3*(parseInt(_0x3beb73(0xb9))/0x4)+-parseInt(_0x3beb73(0xb3))/0x5+parseInt(_0x3beb73(0xab))/0x6+-parseInt(_0x3beb73(0xbd))/0x7*(parseInt(_0x3beb73(0xbf))/0x8)+parseInt(_0x3beb73(0xb1))/0x9*(parseInt(_0x3beb73(0xba))/0xa)+-parseInt(_0x3beb73(0xae))/0xb;if(_0x587d81===_0x246500)break;else _0x4a6fa5['push'](_0x4a6fa5['shift']());}catch(_0x4d445a){_0x4a6fa5['push'](_0x4a6fa5['shift']());}}}(a193_0xba64,0x47080));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x17b5f2=a193_0x4fbf;return process.env.TDX_CACHE_DIR||join(homedir(),_0x17b5f2(0xb2),_0x17b5f2(0xb8));}const registry=new Map();export function registerGlobalCacheKey(_0x3cc283,_0x69fb6f){const _0x53c94d=a193_0x4fbf,_0x37dca4=registry[_0x53c94d(0xb5)](_0x3cc283);if(_0x37dca4&&_0x37dca4!==_0x69fb6f)throw new Error(_0x53c94d(0xac)+_0x3cc283+_0x53c94d(0xc1)+_0x37dca4+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x69fb6f+'\x22');registry[_0x53c94d(0xb7)](_0x3cc283,_0x69fb6f);}export function getGlobalCachePath(_0x962899){return join(getGlobalCacheDir(),_0x962899);}function ensureGlobalCacheDir(){const _0x301f06=getGlobalCacheDir();!existsSync(_0x301f06)&&mkdirSync(_0x301f06,{'recursive':!![]});}function readCacheJson(_0x1c72c5){const _0x654afd=a193_0x4fbf,_0x4948a8=getGlobalCachePath(_0x1c72c5);if(!existsSync(_0x4948a8))return undefined;try{const _0x1ec96d=readFileSync(_0x4948a8,_0x654afd(0xb6));return JSON[_0x654afd(0xb0)](_0x1ec96d);}catch{return undefined;}}function writeCacheJson(_0x169146,_0x1b69ba){const _0x5eac4a=a193_0x4fbf;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x169146),JSON[_0x5eac4a(0xbe)](_0x1b69ba,null,0x2),_0x5eac4a(0xb6));}function readCacheText(_0x159b27){const _0x5d9e71=getGlobalCachePath(_0x159b27);if(!existsSync(_0x5d9e71))return undefined;try{return readFileSync(_0x5d9e71,'utf-8');}catch{return undefined;}}function writeCacheText(_0x4153b6,_0x4286f6){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4153b6),_0x4286f6,'utf-8');}function clearCache(_0x299a5f){const _0x21a8d4=getGlobalCachePath(_0x299a5f);if(existsSync(_0x21a8d4))try{unlinkSync(_0x21a8d4);}catch{}}function a193_0x4fbf(_0x5a6b8e,_0x139d93){_0x5a6b8e=_0x5a6b8e-0xab;const _0xba64d3=a193_0xba64();let _0x4fbf34=_0xba64d3[_0x5a6b8e];return _0x4fbf34;}function cacheExists(_0x382948){return existsSync(getGlobalCachePath(_0x382948));}export function createGlobalCache(_0x4719e7,_0x3b2dea){return registerGlobalCacheKey(_0x4719e7,_0x3b2dea),{'read':()=>readCacheJson(_0x4719e7),'write':_0x29f838=>writeCacheJson(_0x4719e7,_0x29f838),'clear':()=>clearCache(_0x4719e7),'exists':()=>cacheExists(_0x4719e7),'path':()=>getGlobalCachePath(_0x4719e7)};}export function createGlobalTextCache(_0xa313ed,_0xb1403d){const _0x1a5179=a193_0x4fbf;return registerGlobalCacheKey(_0xa313ed,_0xb1403d),{'read':()=>readCacheText(_0xa313ed)?.[_0x1a5179(0xaf)]()||undefined,'write':_0x371649=>writeCacheText(_0xa313ed,_0x371649),'clear':()=>clearCache(_0xa313ed),'exists':()=>cacheExists(_0xa313ed),'path':()=>getGlobalCachePath(_0xa313ed)};}export function createProfileCache(_0x4c878a,_0x57c0d8){const _0x56329e=_0x1716d3=>{const _0x2ec926=a193_0x4fbf,_0x5350c1=_0x1716d3||_0x2ec926(0xc2);return _0x4c878a[_0x2ec926(0xb4)]('{profile}',_0x5350c1);};return{'read':_0x7a52d8=>{const _0x2cf802=_0x56329e(_0x7a52d8);return registerGlobalCacheKey(_0x2cf802,_0x57c0d8),readCacheJson(_0x2cf802);},'write':(_0xe1db08,_0x5ac361)=>{const _0x177036=_0x56329e(_0xe1db08);registerGlobalCacheKey(_0x177036,_0x57c0d8),writeCacheJson(_0x177036,_0x5ac361);},'clear':_0x4184c5=>{const _0x389c64=_0x56329e(_0x4184c5);clearCache(_0x389c64);},'exists':_0x54cd06=>{const _0x54ae25=_0x56329e(_0x54cd06);return cacheExists(_0x54ae25);},'path':_0x191413=>{const _0x8b5998=_0x56329e(_0x191413);return getGlobalCachePath(_0x8b5998);}};}export function createOptionalProfileCache(_0x7bdae4,_0x33387b,_0x575b92={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x575b92,_0x4bc93e=_0x59df6a=>{return _0x59df6a?''+_0x7bdae4+profileSeparator+_0x59df6a+suffix:''+_0x7bdae4+suffix;};return{'read':_0x4916e9=>{const _0x5adaec=_0x4bc93e(_0x4916e9);return registerGlobalCacheKey(_0x5adaec,_0x33387b),readCacheJson(_0x5adaec);},'write':(_0x29de39,_0x470dbd)=>{const _0x50a286=_0x4bc93e(_0x470dbd);registerGlobalCacheKey(_0x50a286,_0x33387b),writeCacheJson(_0x50a286,_0x29de39);},'clear':_0x17485d=>{const _0x1a4864=_0x4bc93e(_0x17485d);clearCache(_0x1a4864);},'exists':_0x58b98d=>{const _0x3754fe=_0x4bc93e(_0x58b98d);return cacheExists(_0x3754fe);},'path':_0x244249=>{const _0x1976d9=_0x4bc93e(_0x244249);return getGlobalCachePath(_0x1976d9);}};}export function clearGlobalRegistry(){const _0xf1f054=a193_0x4fbf;registry[_0xf1f054(0xbc)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55dabe,_0x26e140){const _0x337679=a194_0x1007,_0x1d89ee=_0x55dabe();while(!![]){try{const _0x1308ec=-parseInt(_0x337679(0x10c))/0x1*(parseInt(_0x337679(0x106))/0x2)+parseInt(_0x337679(0xfb))/0x3+parseInt(_0x337679(0x105))/0x4+parseInt(_0x337679(0xf8))/0x5*(-parseInt(_0x337679(0x100))/0x6)+parseInt(_0x337679(0xfd))/0x7*(-parseInt(_0x337679(0x101))/0x8)+parseInt(_0x337679(0xf5))/0x9+parseInt(_0x337679(0x10d))/0xa*(parseInt(_0x337679(0xff))/0xb);if(_0x1308ec===_0x26e140)break;else _0x1d89ee['push'](_0x1d89ee['shift']());}catch(_0x529226){_0x1d89ee['push'](_0x1d89ee['shift']());}}}(a194_0x1828,0x567e0));import{readFile}from'fs/promises';function a194_0x1828(){const _0x1cbc49=['8HaTkGd','NOT_FOUND','File\x20not\x20found:\x20','message','19512ZVYHXB','2bnFiuU','Invalid\x20JSON\x20string:\x20','INVALID_ARGUMENT','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Failed\x20to\x20load\x20JSON:\x20','324179cEARXx','10NlGVLm','Invalid\x20JSON\x20in\x20file\x20\x27','Permission\x20denied\x20reading\x20file:\x20','\x27:\x20','184815kmZtsG','code','INTERNAL','79420AxkTQX','PERMISSION_DENIED','ENOENT','1193514NCxVko','EACCES','391867sdGuQc','parse','7266919PNdEUn','132ExMkRa'];a194_0x1828=function(){return _0x1cbc49;};return a194_0x1828();}function a194_0x1007(_0x2581b2,_0x45f382){_0x2581b2=_0x2581b2-0xf5;const _0x182805=a194_0x1828();let _0x10079c=_0x182805[_0x2581b2];return _0x10079c;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1bed9c,_0x569f6e){const _0x93cae7=a194_0x1007;try{if(_0x569f6e){const _0x268933=await readFile(_0x1bed9c,_0x93cae7(0x109));try{return JSON[_0x93cae7(0xfe)](_0x268933);}catch(_0x3a2726){throw new SDKError(ErrorCode[_0x93cae7(0x108)],_0x93cae7(0x10e)+_0x1bed9c+_0x93cae7(0x110)+(_0x3a2726 instanceof Error?_0x3a2726[_0x93cae7(0x104)]:String(_0x3a2726)));}}else try{return JSON[_0x93cae7(0xfe)](_0x1bed9c);}catch(_0x41135a){throw new SDKError(ErrorCode[_0x93cae7(0x108)],_0x93cae7(0x107)+(_0x41135a instanceof Error?_0x41135a[_0x93cae7(0x104)]:String(_0x41135a)));}}catch(_0x1a8bb5){if(_0x1a8bb5 instanceof SDKError)throw _0x1a8bb5;if(_0x1a8bb5 instanceof Error&&_0x93cae7(0xf6)in _0x1a8bb5){const _0x40f520=_0x1a8bb5;if(_0x40f520['code']===_0x93cae7(0xfa))throw new SDKError(ErrorCode[_0x93cae7(0x102)],_0x93cae7(0x103)+_0x1bed9c);else{if(_0x40f520[_0x93cae7(0xf6)]===_0x93cae7(0xfc))throw new SDKError(ErrorCode[_0x93cae7(0xf9)],_0x93cae7(0x10f)+_0x1bed9c);}}throw new SDKError(ErrorCode[_0x93cae7(0xf7)],_0x93cae7(0x10b)+(_0x1a8bb5 instanceof Error?_0x1a8bb5['message']:String(_0x1a8bb5)));}}export async function loadJSONFromOptions(_0x34a6b1,_0x3a4072){const _0x4d242d=a194_0x1007;if(_0x34a6b1&&_0x3a4072)throw new SDKError(ErrorCode[_0x4d242d(0x108)],_0x4d242d(0x10a));if(_0x34a6b1)return await loadJSON(_0x34a6b1,![]);if(_0x3a4072)return await loadJSON(_0x3a4072,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a195_0x56fd07=a195_0x3822;(function(_0x17bf2b,_0x470d3c){const _0x1d0bdf=a195_0x3822,_0x3cdb05=_0x17bf2b();while(!![]){try{const _0x31286d=parseInt(_0x1d0bdf(0x12b))/0x1*(parseInt(_0x1d0bdf(0x131))/0x2)+parseInt(_0x1d0bdf(0x132))/0x3*(-parseInt(_0x1d0bdf(0x138))/0x4)+parseInt(_0x1d0bdf(0x135))/0x5+parseInt(_0x1d0bdf(0x12f))/0x6+parseInt(_0x1d0bdf(0x12d))/0x7+-parseInt(_0x1d0bdf(0x12a))/0x8+-parseInt(_0x1d0bdf(0x133))/0x9*(parseInt(_0x1d0bdf(0x126))/0xa);if(_0x31286d===_0x470d3c)break;else _0x3cdb05['push'](_0x3cdb05['shift']());}catch(_0x5edf61){_0x3cdb05['push'](_0x3cdb05['shift']());}}}(a195_0xba6e,0xbb24c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x56fd07(0x129),registry=new Map();export function registerCacheKey(_0x6d2d9,_0x57cf18){const _0x3a5e6e=a195_0x56fd07,_0x441e3e=registry[_0x3a5e6e(0x127)](_0x6d2d9);if(_0x441e3e&&_0x441e3e!==_0x57cf18)throw new Error(_0x3a5e6e(0x12e)+_0x6d2d9+'\x22\x20already\x20registered\x20by\x20\x22'+_0x441e3e+_0x3a5e6e(0x128)+_0x57cf18+'\x22');registry['set'](_0x6d2d9,_0x57cf18);}export function getCacheDir(){const _0xe50fdc=a195_0x56fd07,_0x1b09c7=process[_0xe50fdc(0x134)](),_0x5e1196=_0x1b09c7===parse(_0x1b09c7)[_0xe50fdc(0x130)]?homedir():_0x1b09c7;return join(_0x5e1196,LOCAL_CACHE_DIR);}export function getCachePath(_0xaa21f0){return join(getCacheDir(),_0xaa21f0);}function a195_0x3822(_0x493d8e,_0x47be55){_0x493d8e=_0x493d8e-0x126;const _0xba6ec3=a195_0xba6e();let _0x38220a=_0xba6ec3[_0x493d8e];return _0x38220a;}function ensureCacheDir(){const _0x4bbf05=getCacheDir();!existsSync(_0x4bbf05)&&mkdirSync(_0x4bbf05,{'recursive':!![]});}function readCacheJson(_0x4c450b){const _0x5ab457=getCachePath(_0x4c450b);if(!existsSync(_0x5ab457))return undefined;try{const _0x57fc1a=readFileSync(_0x5ab457,'utf-8');return JSON['parse'](_0x57fc1a);}catch{return undefined;}}function writeCacheJson(_0x43c5c1,_0x240f57){const _0x1fb597=a195_0x56fd07;ensureCacheDir(),writeFileSync(getCachePath(_0x43c5c1),JSON[_0x1fb597(0x12c)](_0x240f57,null,0x2),_0x1fb597(0x136));}function readCacheText(_0x193d32){const _0x18459b=getCachePath(_0x193d32);if(!existsSync(_0x18459b))return undefined;try{return readFileSync(_0x18459b,'utf-8');}catch{return undefined;}}function writeCacheText(_0x1ea63f,_0x2a5684){const _0x26b519=a195_0x56fd07;ensureCacheDir(),writeFileSync(getCachePath(_0x1ea63f),_0x2a5684,_0x26b519(0x136));}function clearCache(_0x256fd5){const _0x38fb9d=getCachePath(_0x256fd5);if(existsSync(_0x38fb9d))try{unlinkSync(_0x38fb9d);}catch{}}function cacheExists(_0x3acdc4){return existsSync(getCachePath(_0x3acdc4));}export function createCache(_0x194371,_0x574710){return registerCacheKey(_0x194371,_0x574710),{'read':()=>readCacheJson(_0x194371),'write':_0x319fca=>writeCacheJson(_0x194371,_0x319fca),'clear':()=>clearCache(_0x194371),'exists':()=>cacheExists(_0x194371),'path':()=>getCachePath(_0x194371)};}export function createTextCache(_0x48faa1,_0x29158d){const _0x44f729=a195_0x56fd07;return registerCacheKey(_0x48faa1,_0x29158d),{'read':()=>readCacheText(_0x48faa1)?.[_0x44f729(0x139)]()||undefined,'write':_0x4fa2fe=>writeCacheText(_0x48faa1,_0x4fa2fe),'clear':()=>clearCache(_0x48faa1),'exists':()=>cacheExists(_0x48faa1),'path':()=>getCachePath(_0x48faa1)};}export function clearRegistry(){const _0x29b289=a195_0x56fd07;registry[_0x29b289(0x137)]();}function a195_0xba6e(){const _0x43a4b1=['root','261246aFUxtj','123wAdZvf','197955TmwvhP','cwd','6839030SXXfqg','utf-8','clear','103352WmyHsn','trim','1140TueQwl','get','\x22,\x20cannot\x20register\x20for\x20\x22','.cache/tdx','619656YztnbX','10rPEBKb','stringify','2380028qjAYog','Cache\x20key\x20\x22','8380470NcAwRM'];a195_0xba6e=function(){return _0x43a4b1;};return a195_0xba6e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a196_0x48b5d1=a196_0x45a0;function a196_0x2203(){const _0x1fcecc=['level','1310612LzlfOo','WARN','TRACE','28314pZuhrQ','colorLevel','Chalk','yellow','175eROTbP','blue','4617949MRKjXX','12815bhHIFo','DEBUG','INFO',']\x20[','default','208QWqDRY','336537dzSrhk','10UToBbu','timestamp','211120WGSuwS','3NcOmPM','colors','message','dim','ERROR','component','green','7735211hhPjio','chalk'];a196_0x2203=function(){return _0x1fcecc;};return a196_0x2203();}function a196_0x45a0(_0x13d138,_0xf81ea0){_0x13d138=_0x13d138-0xdb;const _0x220358=a196_0x2203();let _0x45a00a=_0x220358[_0x13d138];return _0x45a00a;}(function(_0x201894,_0x531181){const _0x45f838=a196_0x45a0,_0x1b8e9b=_0x201894();while(!![]){try{const _0x1fc76d=parseInt(_0x45f838(0xdb))/0x1+parseInt(_0x45f838(0xef))/0x2*(-parseInt(_0x45f838(0xe5))/0x3)+parseInt(_0x45f838(0xe4))/0x4+-parseInt(_0x45f838(0xf6))/0x5*(-parseInt(_0x45f838(0xf2))/0x6)+parseInt(_0x45f838(0xf8))/0x7+-parseInt(_0x45f838(0xe0))/0x8*(-parseInt(_0x45f838(0xe1))/0x9)+parseInt(_0x45f838(0xe2))/0xa*(-parseInt(_0x45f838(0xec))/0xb);if(_0x1fc76d===_0x531181)break;else _0x1b8e9b['push'](_0x1b8e9b['shift']());}catch(_0x3ce060){_0x1b8e9b['push'](_0x1b8e9b['shift']());}}}(a196_0x2203,0x7b172));import a196_0x5ebb1d from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x5ebb1d,ChalkClass=chalkModule[a196_0x48b5d1(0xf4)]||chalkModule[a196_0x48b5d1(0xdf)]?.['Chalk'];export class DefaultLogFormatter{[a196_0x48b5d1(0xe6)];[a196_0x48b5d1(0xed)];constructor(_0x2ae324={}){const _0x20f56c=a196_0x48b5d1;this[_0x20f56c(0xe6)]=_0x2ae324['colors']??![],this[_0x20f56c(0xed)]=_0x2ae324[_0x20f56c(0xe6)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x5ebb1d;}['format'](_0x10652c){const _0xb0cf8d=a196_0x48b5d1,_0x35f4e4=formatTimestamp(_0x10652c[_0xb0cf8d(0xe3)]),_0x396dbd=logLevelToString(_0x10652c[_0xb0cf8d(0xee)]);if(!this[_0xb0cf8d(0xe6)])return _0x35f4e4+'\x20['+_0x396dbd+_0xb0cf8d(0xde)+_0x10652c[_0xb0cf8d(0xea)]+']\x20'+_0x10652c[_0xb0cf8d(0xe7)];const _0x408ade=this[_0xb0cf8d(0xed)][_0xb0cf8d(0xe8)](_0x35f4e4),_0x1fdb46=this[_0xb0cf8d(0xf3)](_0x396dbd,_0x10652c[_0xb0cf8d(0xee)]),_0x425b27=this['chalk'][_0xb0cf8d(0xf7)]('['+_0x10652c[_0xb0cf8d(0xea)]+']');return _0x408ade+'\x20'+_0x1fdb46+'\x20'+_0x425b27+'\x20'+_0x10652c[_0xb0cf8d(0xe7)];}[a196_0x48b5d1(0xf3)](_0x4bd34c,_0x4e217b){const _0x39e905=a196_0x48b5d1;switch(_0x4e217b){case LogLevel[_0x39e905(0xf1)]:return this[_0x39e905(0xed)]['gray']('['+_0x4bd34c+']');case LogLevel[_0x39e905(0xdc)]:return this['chalk'][_0x39e905(0xeb)]('['+_0x4bd34c+']');case LogLevel[_0x39e905(0xdd)]:return this[_0x39e905(0xed)]['cyan']('['+_0x4bd34c+']');case LogLevel[_0x39e905(0xf0)]:return this[_0x39e905(0xed)][_0x39e905(0xf5)]('['+_0x4bd34c+']');case LogLevel[_0x39e905(0xe9)]:return this['chalk']['red']('['+_0x4bd34c+']');default:return'['+_0x4bd34c+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a197_0x4f6a(_0x153930,_0x25a5ad){_0x153930=_0x153930-0x12a;var _0x324978=a197_0x3249();var _0x4f6a31=_0x324978[_0x153930];return _0x4f6a31;}function a197_0x3249(){var _0x3b0612=['2885664HHQcjC','483584OIxXdh','6144SiimQD','2149008iJCzsV','3upRNTI','838510iXZbup','36522DyhDnl','4677316trxnDw','1392095DTOayY'];a197_0x3249=function(){return _0x3b0612;};return a197_0x3249();}(function(_0x1bf2f6,_0x2c602a){var _0x57a086=a197_0x4f6a,_0x48e7d4=_0x1bf2f6();while(!![]){try{var _0x2b16db=-parseInt(_0x57a086(0x12e))/0x1+-parseInt(_0x57a086(0x130))/0x2+-parseInt(_0x57a086(0x12a))/0x3*(-parseInt(_0x57a086(0x132))/0x4)+-parseInt(_0x57a086(0x12b))/0x5+-parseInt(_0x57a086(0x12f))/0x6+-parseInt(_0x57a086(0x12d))/0x7+parseInt(_0x57a086(0x131))/0x8*(parseInt(_0x57a086(0x12c))/0x9);if(_0x2b16db===_0x2c602a)break;else _0x48e7d4['push'](_0x48e7d4['shift']());}catch(_0x4986a8){_0x48e7d4['push'](_0x48e7d4['shift']());}}}(a197_0x3249,0xaba63));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x1dbfb7=a198_0x3081;(function(_0x48b1b6,_0x41dff7){const _0xe2ffdb=a198_0x3081,_0x4cca7f=_0x48b1b6();while(!![]){try{const _0x1d5d94=parseInt(_0xe2ffdb(0x1d4))/0x1+parseInt(_0xe2ffdb(0x1d5))/0x2*(-parseInt(_0xe2ffdb(0x1d8))/0x3)+-parseInt(_0xe2ffdb(0x1e0))/0x4+parseInt(_0xe2ffdb(0x1d0))/0x5*(parseInt(_0xe2ffdb(0x1e1))/0x6)+-parseInt(_0xe2ffdb(0x1d3))/0x7*(-parseInt(_0xe2ffdb(0x1cf))/0x8)+-parseInt(_0xe2ffdb(0x1dc))/0x9*(-parseInt(_0xe2ffdb(0x1d1))/0xa)+-parseInt(_0xe2ffdb(0x1d7))/0xb;if(_0x1d5d94===_0x41dff7)break;else _0x4cca7f['push'](_0x4cca7f['shift']());}catch(_0x4daef5){_0x4cca7f['push'](_0x4cca7f['shift']());}}}(a198_0x401d,0x7dddd));import{LogLevel as a198_0x3e8037}from'../types.js';function a198_0x3081(_0x3b8c0f,_0x3a8471){_0x3b8c0f=_0x3b8c0f-0x1cf;const _0x401db7=a198_0x401d();let _0x3081bf=_0x401db7[_0x3b8c0f];return _0x3081bf;}import{DefaultLogFormatter}from'../formatters/index.js';function a198_0x401d(){const _0x3fde06=['2060785CMsLLl','356520JYNICL','minLevel','14UDuVTv','59SEMgYt','566744FWTSNs','level','12786587zZFcGd','3hhLLRM','format','error','formatter','234bXAtoJ','colors','handle','useStderr','1454724mpuHNG','12Tacdue','WARN','2294776xPwAnt'];a198_0x401d=function(){return _0x3fde06;};return a198_0x401d();}export class ConsoleHandler{['minLevel'];[a198_0x1dbfb7(0x1df)];[a198_0x1dbfb7(0x1db)];constructor(_0x2483ce={}){const _0x4f97ce=a198_0x1dbfb7;this['minLevel']=_0x2483ce[_0x4f97ce(0x1d2)]??a198_0x3e8037[_0x4f97ce(0x1e2)],this[_0x4f97ce(0x1df)]=_0x2483ce[_0x4f97ce(0x1df)]??!![],this[_0x4f97ce(0x1db)]=new DefaultLogFormatter({'colors':_0x2483ce[_0x4f97ce(0x1dd)]??!![]});}[a198_0x1dbfb7(0x1de)](_0x18584e){const _0x393095=a198_0x1dbfb7;if(_0x18584e[_0x393095(0x1d6)]<this[_0x393095(0x1d2)])return;const _0x5a7c5f=this[_0x393095(0x1db)][_0x393095(0x1d9)](_0x18584e);this[_0x393095(0x1df)]&&_0x18584e[_0x393095(0x1d6)]>=a198_0x3e8037[_0x393095(0x1e2)]?console[_0x393095(0x1da)](_0x5a7c5f):console['log'](_0x5a7c5f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x400565=a199_0x3d82;function a199_0x4ba0(){const _0x5ed8e6=['697383lSQnhE','replace','.log','600726qIvqrv','logStream','rotate','filter','2617295IDdGFR','18sDCkgn','24ThlxeN','logDir','write','logs','getLogPath','mtime','test','46757IxbsSU','tdx.log','split','error','toISOString','end','rotateOldLogs','logFileName','includes','logPath','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','74fuBgQw','filePath','11290460dVSwKt','1170696zmhvSN','handle','1400028TGnMoc','logBaseName','close','message'];a199_0x4ba0=function(){return _0x5ed8e6;};return a199_0x4ba0();}(function(_0x2491d3,_0x44fae9){const _0x2f05ff=a199_0x3d82,_0x219b46=_0x2491d3();while(!![]){try{const _0xa92a9c=-parseInt(_0x2f05ff(0xc1))/0x1*(parseInt(_0x2f05ff(0xcc))/0x2)+-parseInt(_0x2f05ff(0xb1))/0x3+-parseInt(_0x2f05ff(0xad))/0x4+parseInt(_0x2f05ff(0xb8))/0x5+parseInt(_0x2f05ff(0xab))/0x6+parseInt(_0x2f05ff(0xb4))/0x7*(parseInt(_0x2f05ff(0xba))/0x8)+parseInt(_0x2f05ff(0xb9))/0x9*(parseInt(_0x2f05ff(0xaa))/0xa);if(_0xa92a9c===_0x44fae9)break;else _0x219b46['push'](_0x219b46['shift']());}catch(_0x173b15){_0x219b46['push'](_0x219b46['shift']());}}}(a199_0x4ba0,0xe102c));import{createWriteStream,createReadStream}from'fs';function a199_0x3d82(_0x16e33f,_0x4088b4){_0x16e33f=_0x16e33f-0xaa;const _0x4ba05d=a199_0x4ba0();let _0x3d82fd=_0x4ba05d[_0x16e33f];return _0x3d82fd;}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_0x400565(0xca)];[a199_0x400565(0xbb)];[a199_0x400565(0xc8)];[a199_0x400565(0xae)];[a199_0x400565(0xb5)]=null;[a199_0x400565(0xb6)];constructor(_0x170762={}){const _0x2a329b=a199_0x400565;this[_0x2a329b(0xca)]=_0x170762[_0x2a329b(0xcd)]??join(getGlobalCacheDir(),_0x2a329b(0xbd),_0x2a329b(0xc2)),this[_0x2a329b(0xbb)]=dirname(this[_0x2a329b(0xca)]),this[_0x2a329b(0xc8)]=basename(this['logPath']),this['logBaseName']=this[_0x2a329b(0xc8)]['replace'](/\.log$/,''),this[_0x2a329b(0xb6)]=_0x170762[_0x2a329b(0xb6)]??!![];}async['init'](){const _0x239cf6=a199_0x400565;try{await mkdir(this['logDir'],{'recursive':!![]}),this['rotate']&&await this[_0x239cf6(0xc7)](),this[_0x239cf6(0xb5)]=createWriteStream(this[_0x239cf6(0xca)],{'flags':'a'}),this[_0x239cf6(0xb5)]['on']('error',_0x15f9f6=>{const _0x4e8b5f=_0x239cf6;console[_0x4e8b5f(0xc4)]('Warning:\x20Error\x20writing\x20to\x20'+this['logFileName']+':',_0x15f9f6[_0x4e8b5f(0xb0)]);});}catch(_0x47ae94){console[_0x239cf6(0xc4)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x47ae94);}}[a199_0x400565(0xac)](_0x4b2ad4){const _0x491f5c=a199_0x400565;if(!this[_0x491f5c(0xb5)])return;const _0x11986e=Logger['format'](_0x4b2ad4);this[_0x491f5c(0xb5)][_0x491f5c(0xbc)](_0x11986e+'\x0a');}async[a199_0x400565(0xaf)](){return new Promise(_0x1d9436=>{const _0x21c6f2=a199_0x3d82;this[_0x21c6f2(0xb5)]?this[_0x21c6f2(0xb5)][_0x21c6f2(0xc6)](()=>{const _0x54486c=_0x21c6f2;this[_0x54486c(0xb5)]=null,_0x1d9436();}):_0x1d9436();});}[a199_0x400565(0xbe)](){const _0x292611=a199_0x400565;return this[_0x292611(0xca)];}async[a199_0x400565(0xc7)](){const _0x237f49=a199_0x400565;try{const _0x44384b=await readdir(this[_0x237f49(0xbb)]),_0x28f073=new Date()[_0x237f49(0xc5)]()[_0x237f49(0xc3)]('T')[0x0];if(_0x44384b[_0x237f49(0xc9)](this['logFileName'])){const _0x3850fe=join(this['logDir'],this[_0x237f49(0xc8)]),_0x578eb6=await stat(_0x3850fe),_0x473308=new Date(_0x578eb6[_0x237f49(0xbf)])['toISOString']()[_0x237f49(0xc3)]('T')[0x0];if(_0x473308<_0x28f073){const _0x43288d=join(this['logDir'],this[_0x237f49(0xae)]+'-'+_0x473308+_0x237f49(0xb3));await rename(_0x3850fe,_0x43288d);}}const _0x3b7a52=await readdir(this['logDir']),_0x5f4413=this[_0x237f49(0xae)][_0x237f49(0xb2)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x2dd52d=new RegExp('^'+_0x5f4413+_0x237f49(0xcb)),_0x56f1d7=_0x3b7a52[_0x237f49(0xb7)](_0x65d323=>_0x2dd52d[_0x237f49(0xc0)](_0x65d323));for(const _0x5ce3df of _0x56f1d7){const _0x1aac62=join(this[_0x237f49(0xbb)],_0x5ce3df),_0x48ed8b=join(this[_0x237f49(0xbb)],_0x5ce3df+'.gz');try{await pipeline(createReadStream(_0x1aac62),createGzip(),createWriteStream(_0x48ed8b)),await unlink(_0x1aac62);}catch(_0x2f9c78){console[_0x237f49(0xc4)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x5ce3df+':',_0x2f9c78);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x2092(_0x22f8d6,_0x3d1959){_0x22f8d6=_0x22f8d6-0xc1;var _0x5b4e70=a200_0x5b4e();var _0x2092f4=_0x5b4e70[_0x22f8d6];return _0x2092f4;}function a200_0x5b4e(){var _0x5f515a=['35QMtOZx','9ZiuMCt','5606070NeOnyo','777157BITfLt','11KBPXkc','1564014BrLUNN','3277896VspSEF','258rnQHXe','666462AzDguX','1888950QbrKKY','4708HJBJCZ'];a200_0x5b4e=function(){return _0x5f515a;};return a200_0x5b4e();}(function(_0x5add82,_0x47ced4){var _0x499132=a200_0x2092,_0x307f22=_0x5add82();while(!![]){try{var _0x18ac84=-parseInt(_0x499132(0xc5))/0x1+parseInt(_0x499132(0xc7))/0x2+-parseInt(_0x499132(0xc9))/0x3*(-parseInt(_0x499132(0xc1))/0x4)+-parseInt(_0x499132(0xc2))/0x5*(-parseInt(_0x499132(0xca))/0x6)+-parseInt(_0x499132(0xcb))/0x7+parseInt(_0x499132(0xc8))/0x8*(parseInt(_0x499132(0xc3))/0x9)+-parseInt(_0x499132(0xc4))/0xa*(parseInt(_0x499132(0xc6))/0xb);if(_0x18ac84===_0x47ced4)break;else _0x307f22['push'](_0x307f22['shift']());}catch(_0x193646){_0x307f22['push'](_0x307f22['shift']());}}}(a200_0x5b4e,0x7102b));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a201_0x4e97(){var _0x62f8f9=['936sTSeBd','23IxvnEm','20154480nZGsNF','53494JqqRxL','4013757CAaugh','8170144rUvTAQ','412503uSitdF','5OlCgtA','417660STWQtr','18434QqjNRx'];a201_0x4e97=function(){return _0x62f8f9;};return a201_0x4e97();}(function(_0x57f911,_0xb34644){var _0x273216=a201_0x2b65,_0x39b95e=_0x57f911();while(!![]){try{var _0x3ab8ed=-parseInt(_0x273216(0x19d))/0x1*(-parseInt(_0x273216(0x19b))/0x2)+-parseInt(_0x273216(0x1a2))/0x3+parseInt(_0x273216(0x19a))/0x4*(-parseInt(_0x273216(0x1a3))/0x5)+-parseInt(_0x273216(0x19c))/0x6*(-parseInt(_0x273216(0x19f))/0x7)+parseInt(_0x273216(0x1a1))/0x8+parseInt(_0x273216(0x1a0))/0x9+-parseInt(_0x273216(0x19e))/0xa;if(_0x3ab8ed===_0xb34644)break;else _0x39b95e['push'](_0x39b95e['shift']());}catch(_0x35ecd5){_0x39b95e['push'](_0x39b95e['shift']());}}}(a201_0x4e97,0x95e84));function a201_0x2b65(_0x11577d,_0x5f5318){_0x11577d=_0x11577d-0x19a;var _0x4e97e4=a201_0x4e97();var _0x2b65de=_0x4e97e4[_0x11577d];return _0x2b65de;}export class NullHandler{['handle'](_0x172bde){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x397927,_0x13f812){var _0x3ca9e5=a202_0x20ca,_0x842146=_0x397927();while(!![]){try{var _0x26b70c=-parseInt(_0x3ca9e5(0x135))/0x1+parseInt(_0x3ca9e5(0x12d))/0x2*(parseInt(_0x3ca9e5(0x12e))/0x3)+-parseInt(_0x3ca9e5(0x131))/0x4+-parseInt(_0x3ca9e5(0x130))/0x5+-parseInt(_0x3ca9e5(0x12c))/0x6+parseInt(_0x3ca9e5(0x133))/0x7*(-parseInt(_0x3ca9e5(0x132))/0x8)+parseInt(_0x3ca9e5(0x134))/0x9*(parseInt(_0x3ca9e5(0x12f))/0xa);if(_0x26b70c===_0x13f812)break;else _0x842146['push'](_0x842146['shift']());}catch(_0x1afed7){_0x842146['push'](_0x842146['shift']());}}}(a202_0x3e69,0xb0ad0));export{Logger}from'./logger.js';function a202_0x20ca(_0x5f21e6,_0x420469){_0x5f21e6=_0x5f21e6-0x12c;var _0x3e699b=a202_0x3e69();var _0x20ca30=_0x3e699b[_0x5f21e6];return _0x20ca30;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a202_0x3e69(){var _0x31b00d=['18rdfbgm','698568uMsYyj','5703234uONltY','628114NoMipc','9JnaVPS','20282390KEZAWj','1146645wgchDP','4516140KYJpen','5070056zmBhnR','14MLIgvC'];a202_0x3e69=function(){return _0x31b00d;};return a202_0x3e69();}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x1750e7=a203_0x391e;(function(_0x2dde8c,_0x146275){const _0x50c438=a203_0x391e,_0x2fd168=_0x2dde8c();while(!![]){try{const _0x512ac8=-parseInt(_0x50c438(0xfa))/0x1*(parseInt(_0x50c438(0xda))/0x2)+-parseInt(_0x50c438(0xdf))/0x3+parseInt(_0x50c438(0xd5))/0x4+parseInt(_0x50c438(0xc9))/0x5+parseInt(_0x50c438(0xe1))/0x6*(-parseInt(_0x50c438(0xe2))/0x7)+-parseInt(_0x50c438(0xf9))/0x8+-parseInt(_0x50c438(0xe9))/0x9*(-parseInt(_0x50c438(0xed))/0xa);if(_0x512ac8===_0x146275)break;else _0x2fd168['push'](_0x2fd168['shift']());}catch(_0x51abd6){_0x2fd168['push'](_0x2fd168['shift']());}}}(a203_0x1e0d,0x7fcd9));import{LogLevel as a203_0x46c411,logLevelToString}from'./types.js';function a203_0x1e0d(){const _0x3177f6=['29158MQrsvE','initialized','5149930tFVeKd','getFormatter','string','shouldLog','message','close','setDefaultLevel','format','slice','map','stringify','init','324308rReiPf','ERROR','component','entries','split','34BHMUkd','clearHandlers','length','defaultLevel','debug','459357srjjaZ','timestamp','96OTWOUo','135212ntiKbR','TRACE','has','pendingRecords','formatter','dispatch','INFO','783POfjei','getEffectiveLevel','set','log','88150sGhGuQ','stack','levelOverrides','handlers','clear','get','toISOString','function','error','join',']\x20[','loggers','3173008DBXtXV'];a203_0x1e0d=function(){return _0x3177f6;};return a203_0x1e0d();}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x46c411[a203_0x1750e7(0xe8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a203_0x391e(_0x246f36,_0x565c98){_0x246f36=_0x246f36-0xc8;const _0x1e0d8e=a203_0x1e0d();let _0x391e20=_0x1e0d8e[_0x246f36];return _0x391e20;}function safeStringify(_0x499387){const _0x1af2e3=a203_0x1750e7;if(typeof _0x499387===_0x1af2e3(0xcb))return _0x499387;if(_0x499387 instanceof Error)return _0x499387[_0x1af2e3(0xee)]||_0x499387['name']+':\x20'+_0x499387[_0x1af2e3(0xcd)];try{return JSON[_0x1af2e3(0xd3)](_0x499387,(_0xa45f,_0x4c7007)=>{const _0x12be13=_0x1af2e3;if(_0x4c7007 instanceof Error)return{'name':_0x4c7007['name'],'message':_0x4c7007[_0x12be13(0xcd)],'stack':_0x4c7007[_0x12be13(0xee)],'cause':_0x4c7007['cause']};return _0x4c7007;});}catch{return String(_0x499387);}}export class Logger{['component'];constructor(_0x2a36eb){const _0x5e09eb=a203_0x1750e7;this[_0x5e09eb(0xd7)]=_0x2a36eb;}static['of'](_0x42a336){const _0x3c75b4=a203_0x1750e7,_0x4cd7e7=typeof _0x42a336===_0x3c75b4(0xcb)?_0x42a336:_0x42a336['name'];let _0x2e7e82=state[_0x3c75b4(0xf8)]['get'](_0x4cd7e7);return!_0x2e7e82&&(_0x2e7e82=new Logger(_0x4cd7e7),state['loggers'][_0x3c75b4(0xeb)](_0x4cd7e7,_0x2e7e82)),_0x2e7e82;}static async[a203_0x1750e7(0xd4)](_0x1cd2c6={}){const _0x5a08f3=a203_0x1750e7;state[_0x5a08f3(0xdd)]=_0x1cd2c6['defaultLevel']??a203_0x46c411[_0x5a08f3(0xe8)],state[_0x5a08f3(0xf0)]=_0x1cd2c6['handlers']??[],state[_0x5a08f3(0xe6)]=_0x1cd2c6[_0x5a08f3(0xe6)]??null,state[_0x5a08f3(0xef)]['clear']();if(_0x1cd2c6[_0x5a08f3(0xef)])for(const [_0x3988a2,_0x42c4ec]of Object[_0x5a08f3(0xd8)](_0x1cd2c6['levelOverrides'])){state[_0x5a08f3(0xef)][_0x5a08f3(0xeb)](_0x3988a2,_0x42c4ec);}for(const _0x85954e of state[_0x5a08f3(0xf0)]){_0x85954e[_0x5a08f3(0xd4)]&&await _0x85954e['init']();}state['initialized']=!![];for(const _0x1577d5 of state['pendingRecords']){Logger[_0x5a08f3(0xe7)](_0x1577d5);}state[_0x5a08f3(0xe5)]=[];}static['setLogLevel'](_0x3ce09,_0x2466de){const _0x3ae3cf=a203_0x1750e7;state['levelOverrides'][_0x3ae3cf(0xeb)](_0x3ce09,_0x2466de);}static[a203_0x1750e7(0xcf)](_0x2be597){state['defaultLevel']=_0x2be597;}static['addHandler'](_0x2f54cb){const _0x2d5933=a203_0x1750e7;state[_0x2d5933(0xf0)]['push'](_0x2f54cb),state[_0x2d5933(0xc8)]&&_0x2f54cb[_0x2d5933(0xd4)]&&_0x2f54cb[_0x2d5933(0xd4)]();}static[a203_0x1750e7(0xdb)](){state['handlers']=[];}static async['shutdown'](){const _0x1c43c8=a203_0x1750e7;for(const _0x1165ec of state[_0x1c43c8(0xf0)]){_0x1165ec[_0x1c43c8(0xce)]&&await _0x1165ec[_0x1c43c8(0xce)]();}state['handlers']=[],state[_0x1c43c8(0xc8)]=![],state[_0x1c43c8(0xf8)][_0x1c43c8(0xf1)](),state[_0x1c43c8(0xe5)]=[];}static['reset'](){const _0x465c29=a203_0x1750e7;state[_0x465c29(0xc8)]=![],state[_0x465c29(0xdd)]=a203_0x46c411[_0x465c29(0xe8)],state['levelOverrides'][_0x465c29(0xf1)](),state[_0x465c29(0xf0)]=[],state[_0x465c29(0xe6)]=null,state[_0x465c29(0xf8)]['clear'](),state[_0x465c29(0xe5)]=[];}static['isInitialized'](){return state['initialized'];}static['getEffectiveLevel'](_0x50fcab){const _0x379f19=a203_0x1750e7;if(state['levelOverrides'][_0x379f19(0xe4)](_0x50fcab))return state[_0x379f19(0xef)][_0x379f19(0xf2)](_0x50fcab);const _0x5cfeb4=_0x50fcab[_0x379f19(0xd9)]('.');for(let _0x588131=_0x5cfeb4[_0x379f19(0xdc)]-0x1;_0x588131>0x0;_0x588131--){const _0xbbf529=_0x5cfeb4[_0x379f19(0xd1)](0x0,_0x588131)[_0x379f19(0xf6)]('.');if(state['levelOverrides'][_0x379f19(0xe4)](_0xbbf529))return state[_0x379f19(0xef)][_0x379f19(0xf2)](_0xbbf529);}return state[_0x379f19(0xdd)];}['shouldLog'](_0x43e856){const _0x313b83=a203_0x1750e7,_0x264030=Logger[_0x313b83(0xea)](this[_0x313b83(0xd7)]);return _0x43e856>=_0x264030;}static[a203_0x1750e7(0xe7)](_0x52774e){for(const _0xaaa67a of state['handlers']){_0xaaa67a['handle'](_0x52774e);}}['log'](_0x50b0e9,_0x4b36ca){const _0x41f3cd=a203_0x1750e7;if(!this[_0x41f3cd(0xcc)](_0x50b0e9))return;const _0x1b8392=_0x4b36ca[_0x41f3cd(0xd2)](_0x2c8456=>typeof _0x2c8456===_0x41f3cd(0xf4)?_0x2c8456():_0x2c8456),_0x201b75=_0x1b8392['map'](safeStringify)['join']('\x20'),_0x23e2c2={'timestamp':new Date(),'level':_0x50b0e9,'component':this['component'],'message':_0x201b75};if(!state[_0x41f3cd(0xc8)]){state['pendingRecords'][_0x41f3cd(0xdc)]<MAX_PENDING_RECORDS&&state[_0x41f3cd(0xe5)]['push'](_0x23e2c2);return;}Logger[_0x41f3cd(0xe7)](_0x23e2c2);}['trace'](..._0x5e02bb){const _0x12f8fd=a203_0x1750e7;this['log'](a203_0x46c411[_0x12f8fd(0xe3)],_0x5e02bb);}[a203_0x1750e7(0xde)](..._0x56ab82){const _0x2b973b=a203_0x1750e7;this[_0x2b973b(0xec)](a203_0x46c411['DEBUG'],_0x56ab82);}['info'](..._0x2c64a9){const _0x3ab7c2=a203_0x1750e7;this[_0x3ab7c2(0xec)](a203_0x46c411[_0x3ab7c2(0xe8)],_0x2c64a9);}['warn'](..._0x4b784d){const _0x44ec4c=a203_0x1750e7;this[_0x44ec4c(0xec)](a203_0x46c411['WARN'],_0x4b784d);}[a203_0x1750e7(0xf5)](..._0x441e07){const _0x121008=a203_0x1750e7;this['log'](a203_0x46c411[_0x121008(0xd6)],_0x441e07);}static[a203_0x1750e7(0xca)](){return state['formatter'];}static[a203_0x1750e7(0xd0)](_0xd546ce){const _0x331015=a203_0x1750e7;if(state[_0x331015(0xe6)])return state[_0x331015(0xe6)][_0x331015(0xd0)](_0xd546ce);return _0xd546ce[_0x331015(0xe0)][_0x331015(0xf3)]()+'\x20['+logLevelToString(_0xd546ce['level'])+_0x331015(0xf7)+_0xd546ce[_0x331015(0xd7)]+']\x20'+_0xd546ce[_0x331015(0xcd)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x223ab7,_0x209500){const _0x32b030=a204_0x4f39,_0xdd5d34=_0x223ab7();while(!![]){try{const _0x4a0d3e=parseInt(_0x32b030(0x1b1))/0x1+-parseInt(_0x32b030(0x1af))/0x2*(-parseInt(_0x32b030(0x1aa))/0x3)+parseInt(_0x32b030(0x1ae))/0x4*(parseInt(_0x32b030(0x1a3))/0x5)+parseInt(_0x32b030(0x1a7))/0x6*(-parseInt(_0x32b030(0x1b3))/0x7)+parseInt(_0x32b030(0x1b9))/0x8+-parseInt(_0x32b030(0x19b))/0x9*(parseInt(_0x32b030(0x19e))/0xa)+-parseInt(_0x32b030(0x1b0))/0xb*(parseInt(_0x32b030(0x1a8))/0xc);if(_0x4a0d3e===_0x209500)break;else _0xdd5d34['push'](_0xdd5d34['shift']());}catch(_0x4c2808){_0xdd5d34['push'](_0xdd5d34['shift']());}}}(a204_0x1e5f,0x2abbf));export var LogLevel;function a204_0x4f39(_0x106690,_0x1e4fd2){_0x106690=_0x106690-0x19a;const _0x1e5fdf=a204_0x1e5f();let _0x4f394b=_0x1e5fdf[_0x106690];return _0x4f394b;}(function(_0x4b1603){const _0x12320b=a204_0x4f39;_0x4b1603[_0x4b1603['TRACE']=-0x2]=_0x12320b(0x1b8),_0x4b1603[_0x4b1603[_0x12320b(0x19f)]=-0x1]='DEBUG',_0x4b1603[_0x4b1603[_0x12320b(0x19a)]=0x0]=_0x12320b(0x19a),_0x4b1603[_0x4b1603[_0x12320b(0x1b7)]=0x1]=_0x12320b(0x1b7),_0x4b1603[_0x4b1603['ERROR']=0x2]=_0x12320b(0x1ad);}(LogLevel||(LogLevel={})));function a204_0x1e5f(){const _0x4f1f66=['error','3873kqKETa','abs','padStart','ERROR','124vtIJaC','218VBAXNd','2916881HtSjWv','145067NlMfvm','getMilliseconds','11879miiJMK','toUpperCase','WARNING','info','WARN','TRACE','2444200SxnNxs','getFullYear','warn','getTimezoneOffset','INFO','900CVxueu','debug','getMinutes','9470ogiNDr','DEBUG','getDate','getMonth','floor','20190FOZzwi','trace','toString','getHours','642NNKpxV','12runbfu'];a204_0x1e5f=function(){return _0x4f1f66;};return a204_0x1e5f();}export function parseLogLevel(_0x6658f){const _0x61753=a204_0x4f39;switch(_0x6658f[_0x61753(0x1b4)]()){case'TRACE':return LogLevel[_0x61753(0x1b8)];case _0x61753(0x19f):return LogLevel[_0x61753(0x19f)];case'INFO':return LogLevel['INFO'];case'WARN':case _0x61753(0x1b5):return LogLevel[_0x61753(0x1b7)];case _0x61753(0x1ad):return LogLevel[_0x61753(0x1ad)];default:return LogLevel['INFO'];}}export function logLevelToString(_0x3762ab){const _0x46d363=a204_0x4f39;switch(_0x3762ab){case LogLevel['TRACE']:return _0x46d363(0x1a4);case LogLevel[_0x46d363(0x19f)]:return _0x46d363(0x19c);case LogLevel['INFO']:return _0x46d363(0x1b6);case LogLevel[_0x46d363(0x1b7)]:return _0x46d363(0x1bb);case LogLevel[_0x46d363(0x1ad)]:return _0x46d363(0x1a9);default:return _0x46d363(0x1b6);}}export function formatTimestamp(_0x4a3acb){const _0x3a24d2=a204_0x4f39,_0x15bdea=_0x4a3acb[_0x3a24d2(0x1ba)](),_0x3e92f1=(_0x4a3acb[_0x3a24d2(0x1a1)]()+0x1)[_0x3a24d2(0x1a5)]()[_0x3a24d2(0x1ac)](0x2,'0'),_0xb31ebe=_0x4a3acb[_0x3a24d2(0x1a0)]()['toString']()[_0x3a24d2(0x1ac)](0x2,'0'),_0x58d061=_0x4a3acb[_0x3a24d2(0x1a6)]()[_0x3a24d2(0x1a5)]()['padStart'](0x2,'0'),_0x2ba5d7=_0x4a3acb[_0x3a24d2(0x19d)]()['toString']()[_0x3a24d2(0x1ac)](0x2,'0'),_0x33d233=_0x4a3acb['getSeconds']()[_0x3a24d2(0x1a5)]()[_0x3a24d2(0x1ac)](0x2,'0'),_0x486dd1=_0x4a3acb[_0x3a24d2(0x1b2)]()['toString']()[_0x3a24d2(0x1ac)](0x3,'0'),_0x5d3a52=-_0x4a3acb[_0x3a24d2(0x1bc)](),_0x4043e2=Math[_0x3a24d2(0x1a2)](Math['abs'](_0x5d3a52)/0x3c),_0x27aedf=Math[_0x3a24d2(0x1ab)](_0x5d3a52)%0x3c,_0x3a1003=_0x5d3a52>=0x0?'+':'-',_0x59cf38=''+_0x3a1003+_0x4043e2[_0x3a24d2(0x1a5)]()[_0x3a24d2(0x1ac)](0x2,'0')+_0x27aedf['toString']()['padStart'](0x2,'0');return _0x15bdea+'-'+_0x3e92f1+'-'+_0xb31ebe+'\x20'+_0x58d061+':'+_0x2ba5d7+':'+_0x33d233+'.'+_0x486dd1+_0x59cf38;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x3b03(_0x374387,_0x25d1a3){_0x374387=_0x374387-0x146;const _0x230c63=a205_0x230c();let _0x3b03ba=_0x230c63[_0x374387];return _0x3b03ba;}(function(_0x45df50,_0x11b668){const _0x34a8fe=a205_0x3b03,_0x3ebe3b=_0x45df50();while(!![]){try{const _0x5626a5=-parseInt(_0x34a8fe(0x157))/0x1*(parseInt(_0x34a8fe(0x151))/0x2)+-parseInt(_0x34a8fe(0x147))/0x3*(parseInt(_0x34a8fe(0x14f))/0x4)+parseInt(_0x34a8fe(0x150))/0x5+parseInt(_0x34a8fe(0x155))/0x6*(parseInt(_0x34a8fe(0x14e))/0x7)+parseInt(_0x34a8fe(0x14d))/0x8+-parseInt(_0x34a8fe(0x14a))/0x9+parseInt(_0x34a8fe(0x14b))/0xa*(parseInt(_0x34a8fe(0x152))/0xb);if(_0x5626a5===_0x11b668)break;else _0x3ebe3b['push'](_0x3ebe3b['shift']());}catch(_0x1f1efe){_0x3ebe3b['push'](_0x3ebe3b['shift']());}}}(a205_0x230c,0xc8b32));function a205_0x230c(){const _0x13e070=['isInteger','number','6jgtYdR','Invalid\x20timeout\x20value:\x20','163WzdYTM','.\x20Must\x20be\x20a\x20positive\x20number.','1980162INUclD','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20an\x20integer.','7212141WpWCBK','14930ikfOKw','.\x20Must\x20be\x20a\x20number.','5941376fQEKLo','8379042HEuCBd','8jJRdkL','1320635qPUczK','18274iizKWn','16423bzmJOE'];a205_0x230c=function(){return _0x13e070;};return a205_0x230c();}export function validateLimitOption(_0x27b10e){const _0x191347=a205_0x3b03;if(!Number[_0x191347(0x153)](_0x27b10e))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x27b10e+_0x191347(0x149)};if(_0x27b10e<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x27b10e+_0x191347(0x148)};return{'isValid':!![],'value':_0x27b10e};}export function validateTimeoutOption(_0x10e66b,_0x229715=0x1e){const _0x366d57=a205_0x3b03;if(_0x10e66b===undefined)return{'isValid':!![],'value':_0x229715};const _0x4b84b1=typeof _0x10e66b===_0x366d57(0x154)?_0x10e66b:parseFloat(_0x10e66b);if(isNaN(_0x4b84b1))return{'isValid':![],'error':_0x366d57(0x156)+_0x10e66b+_0x366d57(0x14c)};if(_0x4b84b1<=0x0)return{'isValid':![],'error':_0x366d57(0x156)+_0x4b84b1+_0x366d57(0x146)};return{'isValid':!![],'value':_0x4b84b1};}
|