@treasuredata/tdx 2026.3.36 → 2026.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.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/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.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/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x2b7445=a209_0x1e86;(function(_0x38aeb2,_0x56ad76){const _0x3eabe3=a209_0x1e86,_0x15d19b=_0x38aeb2();while(!![]){try{const _0x19d537=-parseInt(_0x3eabe3(0xc8))/0x1*(-parseInt(_0x3eabe3(0xc4))/0x2)+parseInt(_0x3eabe3(0xc5))/0x3+-parseInt(_0x3eabe3(0xcd))/0x4+parseInt(_0x3eabe3(0xc1))/0x5+parseInt(_0x3eabe3(0xd2))/0x6+parseInt(_0x3eabe3(0xd8))/0x7+-parseInt(_0x3eabe3(0xd3))/0x8;if(_0x19d537===_0x56ad76)break;else _0x15d19b['push'](_0x15d19b['shift']());}catch(_0x55020e){_0x15d19b['push'](_0x15d19b['shift']());}}}(a209_0x12af,0x90d84));import*as a209_0xf66ef3 from'chalk';const Chalk=a209_0xf66ef3[a209_0x2b7445(0xd9)];export function shouldUseColor(_0x45fa04={}){const _0x26341e=a209_0x2b7445;if(_0x45fa04['noColor']===!![])return![];if(_0x45fa04[_0x26341e(0xcc)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x26341e(0xc6)][_0x26341e(0xda)]??![];}export function getChalk(_0xb5f2a3={}){if(shouldUseColor(_0xb5f2a3))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x22f121,_0x12bea4={}){return getChalk(_0x12bea4)['dim'](_0x22f121);}export function colorHeader(_0x1d968e,_0x4cff0a={}){const _0x1e759b=a209_0x2b7445;return getChalk(_0x4cff0a)[_0x1e759b(0xdd)](_0x1d968e);}export function colorType(_0x30fe27,_0x17b6da={}){return getChalk(_0x17b6da)['dim'](_0x30fe27);}export function colorJSONKey(_0x55766a,_0x53127d={}){const _0x489dec=a209_0x2b7445;return getChalk(_0x53127d)[_0x489dec(0xce)](_0x55766a);}export function colorJSONString(_0x403c68,_0x403338={}){const _0x2d5b83=a209_0x2b7445;return getChalk(_0x403338)[_0x2d5b83(0xc2)](_0x403c68);}export function colorJSONNumber(_0x25b819,_0x313c45={}){const _0xf295dd=a209_0x2b7445;return getChalk(_0x313c45)[_0xf295dd(0xdd)](_0x25b819);}function a209_0x12af(){const _0x101abd=['join','6585438rzpcax','24561272wdrTKY','length','number','null','repeat','3208268AgWUkF','Chalk','isTTY','string','object','cyan','3667275HdTOBI','green','yellow','2TaYgbN','2470158GGVepc','stdout','dim','605999zogxUM','isArray','boolean','entries','color','221176HPnlyG','blue','stringify','map'];a209_0x12af=function(){return _0x101abd;};return a209_0x12af();}export function colorJSONBoolean(_0x5a9424,_0x39631a={}){const _0x370f1a=a209_0x2b7445;return getChalk(_0x39631a)[_0x370f1a(0xc3)](_0x5a9424);}export function colorJSONNull(_0x5270a8,_0x1fa33a={}){const _0x1cde7c=a209_0x2b7445;return getChalk(_0x1fa33a)[_0x1cde7c(0xc7)](_0x5270a8);}export function colorizeJSONCompact(_0x2d9723,_0x303d63={}){const _0x371fe9=a209_0x2b7445;if(!shouldUseColor(_0x303d63))return JSON[_0x371fe9(0xcf)](_0x2d9723);if(_0x2d9723===null)return colorJSONNull(_0x371fe9(0xd6),_0x303d63);if(typeof _0x2d9723===_0x371fe9(0xca))return colorJSONBoolean(String(_0x2d9723),_0x303d63);if(typeof _0x2d9723==='number')return colorJSONNumber(String(_0x2d9723),_0x303d63);if(typeof _0x2d9723==='string')return colorJSONString(JSON[_0x371fe9(0xcf)](_0x2d9723),_0x303d63);if(Array[_0x371fe9(0xc9)](_0x2d9723)){if(_0x2d9723[_0x371fe9(0xd4)]===0x0)return'[]';const _0x5a6df8=_0x2d9723[_0x371fe9(0xd0)](_0x220aea=>colorizeJSONCompact(_0x220aea,_0x303d63));return'['+_0x5a6df8[_0x371fe9(0xd1)](',')+']';}if(typeof _0x2d9723===_0x371fe9(0xdc)){const _0x357e07=Object[_0x371fe9(0xcb)](_0x2d9723);if(_0x357e07['length']===0x0)return'{}';const _0x3d662a=_0x357e07[_0x371fe9(0xd0)](([_0x5ebfff,_0x1179ab])=>{const _0x450b2f=_0x371fe9,_0x3ed8f8=colorJSONKey(JSON[_0x450b2f(0xcf)](_0x5ebfff),_0x303d63),_0x326292=colorizeJSONCompact(_0x1179ab,_0x303d63);return _0x3ed8f8+':'+_0x326292;});return'{'+_0x3d662a['join'](',')+'}';}return String(_0x2d9723);}function a209_0x1e86(_0x132c5a,_0x5405d0){_0x132c5a=_0x132c5a-0xc1;const _0x12aff3=a209_0x12af();let _0x1e8640=_0x12aff3[_0x132c5a];return _0x1e8640;}export function colorizeJSON(_0x4d3f62,_0x3ea62b={},_0x226d70=0x0){const _0x1b2817=a209_0x2b7445;if(!shouldUseColor(_0x3ea62b))return JSON[_0x1b2817(0xcf)](_0x4d3f62,null,0x2);const _0x1a1a4e='\x20'[_0x1b2817(0xd7)](_0x226d70),_0x1b21f7=_0x226d70+0x2;if(_0x4d3f62===null)return colorJSONNull(_0x1b2817(0xd6),_0x3ea62b);if(typeof _0x4d3f62===_0x1b2817(0xca))return colorJSONBoolean(String(_0x4d3f62),_0x3ea62b);if(typeof _0x4d3f62===_0x1b2817(0xd5))return colorJSONNumber(String(_0x4d3f62),_0x3ea62b);if(typeof _0x4d3f62===_0x1b2817(0xdb))return colorJSONString(JSON[_0x1b2817(0xcf)](_0x4d3f62),_0x3ea62b);if(Array[_0x1b2817(0xc9)](_0x4d3f62)){if(_0x4d3f62[_0x1b2817(0xd4)]===0x0)return'[]';const _0x518867=_0x4d3f62[_0x1b2817(0xd0)](_0x4dd1e7=>{const _0x4327ae=_0x1b2817,_0x14022c=colorizeJSON(_0x4dd1e7,_0x3ea62b,_0x1b21f7);return''+'\x20'[_0x4327ae(0xd7)](_0x1b21f7)+_0x14022c;});return'[\x0a'+_0x518867[_0x1b2817(0xd1)](',\x0a')+('\x0a'+_0x1a1a4e+']');}if(typeof _0x4d3f62===_0x1b2817(0xdc)){const _0x8bed1f=Object[_0x1b2817(0xcb)](_0x4d3f62);if(_0x8bed1f['length']===0x0)return'{}';const _0x271d14=_0x8bed1f[_0x1b2817(0xd0)](([_0x20d5ad,_0x4c44d4])=>{const _0x42bcf9=_0x1b2817,_0x2d0ee4=colorJSONKey(JSON[_0x42bcf9(0xcf)](_0x20d5ad),_0x3ea62b),_0x32763a=colorizeJSON(_0x4c44d4,_0x3ea62b,_0x1b21f7);return''+'\x20'[_0x42bcf9(0xd7)](_0x1b21f7)+_0x2d0ee4+':\x20'+_0x32763a;});return'{\x0a'+_0x271d14[_0x1b2817(0xd1)](',\x0a')+('\x0a'+_0x1a1a4e+'}');}return String(_0x4d3f62);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x292df3,_0x447fd3){const _0x48c371=a210_0x8fec,_0x434055=_0x292df3();while(!![]){try{const _0x5eb03e=parseInt(_0x48c371(0x1f6))/0x1+parseInt(_0x48c371(0x1e3))/0x2+parseInt(_0x48c371(0x1da))/0x3*(parseInt(_0x48c371(0x1f4))/0x4)+-parseInt(_0x48c371(0x1d5))/0x5+-parseInt(_0x48c371(0x1e0))/0x6*(-parseInt(_0x48c371(0x1e8))/0x7)+parseInt(_0x48c371(0x1d7))/0x8+parseInt(_0x48c371(0x1eb))/0x9*(-parseInt(_0x48c371(0x1de))/0xa);if(_0x5eb03e===_0x447fd3)break;else _0x434055['push'](_0x434055['shift']());}catch(_0x10acef){_0x434055['push'](_0x434055['shift']());}}}(a210_0x4f7f,0xa564d));function a210_0x4f7f(){const _0x3ca331=['size','old','4236092zifFfy','fill','unchanged','544662lCEGpl','new','map','forEach','repeat','\x20\x20...','content','add','push','200276GiKyPS','\x20-\x20','1143007diWWQj','max','cyan','added','removed','4685905YvFSYu','some','10473616LnPXhr','length','join','27UFZmfr','\x20+\x20','type','red','410ljqyNk','min','6PAiweT','split','dim','1175772IDbNyR','\x20\x20\x20','padStart'];a210_0x4f7f=function(){return _0x3ca331;};return a210_0x4f7f();}import a210_0xb3a139 from'chalk';export function generateDiff(_0x3a844d,_0x253e90){const _0x3c772b=a210_0x8fec,_0x4861c3=_0x3a844d[_0x3c772b(0x1e1)]('\x0a'),_0xc0d479=_0x253e90['split']('\x0a'),_0x1c4724=[],_0x537d33=computeLCS(_0x4861c3,_0xc0d479);let _0x445865=0x0,_0x595fce=0x0,_0x250df9=0x0;while(_0x445865<_0x4861c3[_0x3c772b(0x1d8)]||_0x595fce<_0xc0d479[_0x3c772b(0x1d8)]){if(_0x250df9<_0x537d33[_0x3c772b(0x1d8)]&&_0x445865<_0x4861c3['length']&&_0x4861c3[_0x445865]===_0x537d33[_0x250df9])_0x595fce<_0xc0d479[_0x3c772b(0x1d8)]&&_0xc0d479[_0x595fce]===_0x537d33[_0x250df9]?(_0x1c4724[_0x3c772b(0x1f3)]({'type':_0x3c772b(0x1ea),'content':_0x4861c3[_0x445865]}),_0x445865++,_0x595fce++,_0x250df9++):(_0x1c4724[_0x3c772b(0x1f3)]({'type':_0x3c772b(0x1d3),'content':_0xc0d479[_0x595fce]}),_0x595fce++);else{if(_0x250df9<_0x537d33[_0x3c772b(0x1d8)]&&_0x595fce<_0xc0d479[_0x3c772b(0x1d8)]&&_0xc0d479[_0x595fce]===_0x537d33[_0x250df9])_0x1c4724[_0x3c772b(0x1f3)]({'type':_0x3c772b(0x1d4),'content':_0x4861c3[_0x445865]}),_0x445865++;else{if(_0x445865<_0x4861c3[_0x3c772b(0x1d8)]&&(_0x250df9>=_0x537d33[_0x3c772b(0x1d8)]||_0x4861c3[_0x445865]!==_0x537d33[_0x250df9]))_0x1c4724[_0x3c772b(0x1f3)]({'type':'removed','content':_0x4861c3[_0x445865]}),_0x445865++;else _0x595fce<_0xc0d479['length']&&(_0x1c4724['push']({'type':_0x3c772b(0x1d3),'content':_0xc0d479[_0x595fce]}),_0x595fce++);}}}return _0x1c4724;}function computeLCS(_0x2fc8db,_0x5424e3){const _0x3238e7=a210_0x8fec,_0x239b2f=_0x2fc8db[_0x3238e7(0x1d8)],_0x2a5eff=_0x5424e3['length'],_0x4ca071=Array(_0x239b2f+0x1)['fill'](null)[_0x3238e7(0x1ed)](()=>Array(_0x2a5eff+0x1)[_0x3238e7(0x1e9)](0x0));for(let _0x3d5f41=0x1;_0x3d5f41<=_0x239b2f;_0x3d5f41++){for(let _0x2bae09=0x1;_0x2bae09<=_0x2a5eff;_0x2bae09++){_0x2fc8db[_0x3d5f41-0x1]===_0x5424e3[_0x2bae09-0x1]?_0x4ca071[_0x3d5f41][_0x2bae09]=_0x4ca071[_0x3d5f41-0x1][_0x2bae09-0x1]+0x1:_0x4ca071[_0x3d5f41][_0x2bae09]=Math[_0x3238e7(0x1d1)](_0x4ca071[_0x3d5f41-0x1][_0x2bae09],_0x4ca071[_0x3d5f41][_0x2bae09-0x1]);}}const _0x4c6d91=[];let _0x4f8e6e=_0x239b2f,_0x366aa8=_0x2a5eff;while(_0x4f8e6e>0x0&&_0x366aa8>0x0){if(_0x2fc8db[_0x4f8e6e-0x1]===_0x5424e3[_0x366aa8-0x1])_0x4c6d91['unshift'](_0x2fc8db[_0x4f8e6e-0x1]),_0x4f8e6e--,_0x366aa8--;else _0x4ca071[_0x4f8e6e-0x1][_0x366aa8]>_0x4ca071[_0x4f8e6e][_0x366aa8-0x1]?_0x4f8e6e--:_0x366aa8--;}return _0x4c6d91;}export function formatDiffWithColors(_0x3ce574,_0x189a19=0x3){const _0x56eec9=a210_0x8fec,_0x472c5f=new Set();_0x3ce574[_0x56eec9(0x1ee)]((_0xd7f153,_0x142a40)=>{const _0x1ffb99=_0x56eec9;_0xd7f153['type']!==_0x1ffb99(0x1ea)&&_0x472c5f[_0x1ffb99(0x1f2)](_0x142a40);});if(_0x472c5f[_0x56eec9(0x1e6)]===0x0)return'';const _0x4bf941=new Set();for(const _0x585572 of _0x472c5f){for(let _0x66ac1c=Math[_0x56eec9(0x1d1)](0x0,_0x585572-_0x189a19);_0x66ac1c<=Math[_0x56eec9(0x1df)](_0x3ce574[_0x56eec9(0x1d8)]-0x1,_0x585572+_0x189a19);_0x66ac1c++){_0x4bf941['add'](_0x66ac1c);}}const _0x405511=[];let _0x1a9a7a=-0x1;const _0x3aa3e6=_0x3ce574[_0x56eec9(0x1d8)],_0x860be7=Math[_0x56eec9(0x1d1)](0x3,String(_0x3aa3e6)['length']),_0x4de179=[];let _0x4e5b59=0x0,_0x4f83c6=0x0;for(const _0x5659d2 of _0x3ce574){if(_0x5659d2['type']===_0x56eec9(0x1d4))_0x4e5b59++,_0x4de179['push']({'old':_0x4e5b59,'new':0x0});else _0x5659d2[_0x56eec9(0x1dc)]===_0x56eec9(0x1d3)?(_0x4f83c6++,_0x4de179[_0x56eec9(0x1f3)]({'old':0x0,'new':_0x4f83c6})):(_0x4e5b59++,_0x4f83c6++,_0x4de179[_0x56eec9(0x1f3)]({'old':_0x4e5b59,'new':_0x4f83c6}));}for(let _0x5dd155=0x0;_0x5dd155<_0x3ce574[_0x56eec9(0x1d8)];_0x5dd155++){if(!_0x4bf941['has'](_0x5dd155))continue;_0x1a9a7a!==-0x1&&_0x5dd155>_0x1a9a7a+0x1&&_0x405511['push'](a210_0xb3a139[_0x56eec9(0x1d2)](_0x56eec9(0x1f0)));_0x1a9a7a=_0x5dd155;const _0x23d42e=_0x3ce574[_0x5dd155],_0xd790be=_0x4de179[_0x5dd155],_0x59f9ef=_0xd790be[_0x56eec9(0x1e7)]>0x0?String(_0xd790be[_0x56eec9(0x1e7)])[_0x56eec9(0x1e5)](_0x860be7):'\x20'[_0x56eec9(0x1ef)](_0x860be7),_0xea453c=_0xd790be['new']>0x0?String(_0xd790be[_0x56eec9(0x1ec)])[_0x56eec9(0x1e5)](_0x860be7):'\x20'['repeat'](_0x860be7);switch(_0x23d42e[_0x56eec9(0x1dc)]){case _0x56eec9(0x1d4):_0x405511[_0x56eec9(0x1f3)](a210_0xb3a139[_0x56eec9(0x1dd)](_0x59f9ef+'\x20'+_0xea453c+_0x56eec9(0x1f5)+_0x23d42e[_0x56eec9(0x1f1)]));break;case _0x56eec9(0x1d3):_0x405511['push'](a210_0xb3a139['green'](_0x59f9ef+'\x20'+_0xea453c+_0x56eec9(0x1db)+_0x23d42e[_0x56eec9(0x1f1)]));break;default:_0x405511['push'](a210_0xb3a139[_0x56eec9(0x1e2)](_0x59f9ef+'\x20'+_0xea453c+_0x56eec9(0x1e4)+_0x23d42e['content']));break;}}return _0x405511[_0x56eec9(0x1d9)]('\x0a');}function a210_0x8fec(_0x468c9a,_0x426868){_0x468c9a=_0x468c9a-0x1d1;const _0x4f7f28=a210_0x4f7f();let _0x8fec16=_0x4f7f28[_0x468c9a];return _0x8fec16;}export function hasChanges(_0xf44794){const _0x5cac53=a210_0x8fec;return _0xf44794[_0x5cac53(0x1d6)](_0x38a1d4=>_0x38a1d4['type']!==_0x5cac53(0x1ea));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a211_0x2783(){const _0x59146f=['7CgCKqr','dirname','958503vFNIXi','3229185lknBLT','5330428kUAkmR','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','mode','556wgnlBt','toString','statSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','warn','22904028IhNlRE','1969578PuVnWO','13641SFHMHr','chmodSync','1078880qzYzoM'];a211_0x2783=function(){return _0x59146f;};return a211_0x2783();}(function(_0x573c13,_0x5d7c17){const _0x4a60d9=a211_0xbdbe,_0x12d344=_0x573c13();while(!![]){try{const _0x181562=-parseInt(_0x4a60d9(0x169))/0x1+parseInt(_0x4a60d9(0x170))/0x2*(parseInt(_0x4a60d9(0x177))/0x3)+-parseInt(_0x4a60d9(0x16b))/0x4+-parseInt(_0x4a60d9(0x16a))/0x5+-parseInt(_0x4a60d9(0x176))/0x6*(parseInt(_0x4a60d9(0x17a))/0x7)+parseInt(_0x4a60d9(0x179))/0x8+parseInt(_0x4a60d9(0x175))/0x9;if(_0x181562===_0x5d7c17)break;else _0x12d344['push'](_0x12d344['shift']());}catch(_0x51aade){_0x12d344['push'](_0x12d344['shift']());}}}(a211_0x2783,0xa5ad0));import*as a211_0xa7b4df from'node:fs';import*as a211_0xbb551c from'node:path';function a211_0xbdbe(_0x50ee6c,_0x3ce5a2){_0x50ee6c=_0x50ee6c-0x169;const _0x278330=a211_0x2783();let _0xbdbed7=_0x278330[_0x50ee6c];return _0xbdbed7;}export function setSecureFilePermissions(_0x41530f){const _0x4a3d84=a211_0xbdbe;try{a211_0xa7b4df['chmodSync'](_0x41530f,0x180);}catch{console[_0x4a3d84(0x174)](_0x4a3d84(0x16d)+_0x41530f);}}export function setSecureDirectoryPermissions(_0x4c263b){const _0x54322d=a211_0xbdbe;try{a211_0xa7b4df[_0x54322d(0x178)](_0x4c263b,0x1c0);}catch{console[_0x54322d(0x174)](_0x54322d(0x16d)+_0x4c263b);}}export function createSecureDirectory(_0x2fb28d){const _0x33f39a=a211_0xbdbe;!a211_0xa7b4df['existsSync'](_0x2fb28d)&&(a211_0xa7b4df[_0x33f39a(0x16c)](_0x2fb28d,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2fb28d));}export function validateSecureFilePermissions(_0x42db9a){const _0x28df11=a211_0xbdbe;try{const _0x14439a=a211_0xa7b4df[_0x28df11(0x172)](_0x42db9a),_0x44a22f=_0x14439a[_0x28df11(0x16f)]&0x1ff,_0x3b330e=(_0x44a22f&0x3f)!==0x0;if(_0x3b330e)return console['warn']('Warning:\x20'+_0x42db9a+'\x20has\x20insecure\x20permissions\x20('+_0x44a22f[_0x28df11(0x171)](0x8)+').\x20'+_0x28df11(0x173)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2ac736,_0x419f07){const _0x37307a=a211_0xbdbe,_0x29e433=a211_0xbb551c[_0x37307a(0x17b)](_0x2ac736);createSecureDirectory(_0x29e433),a211_0xa7b4df[_0x37307a(0x16e)](_0x2ac736,_0x419f07,{'mode':0x180}),setSecureFilePermissions(_0x2ac736);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x410dec,_0x3870e4){const _0x3da188=a212_0x1280,_0x3ab221=_0x410dec();while(!![]){try{const _0x5cf407=-parseInt(_0x3da188(0x1ab))/0x1+-parseInt(_0x3da188(0x1b8))/0x2+parseInt(_0x3da188(0x1b1))/0x3*(-parseInt(_0x3da188(0x1b6))/0x4)+-parseInt(_0x3da188(0x1ac))/0x5*(-parseInt(_0x3da188(0x1b3))/0x6)+parseInt(_0x3da188(0x1b0))/0x7+parseInt(_0x3da188(0x1ae))/0x8*(parseInt(_0x3da188(0x1b2))/0x9)+parseInt(_0x3da188(0x1b4))/0xa;if(_0x5cf407===_0x3870e4)break;else _0x3ab221['push'](_0x3ab221['shift']());}catch(_0x56ea1e){_0x3ab221['push'](_0x3ab221['shift']());}}}(a212_0x1e3c,0xab9d5));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a212_0x1e3c(){const _0x250191=['Error\x20reading\x20file\x20\x27','ENOENT','1359126hijjTx','3195165wAtzEs','utf-8','24bOrrvo','File\x20\x27','829822fjWxqs','944967eZQPvP','3681siKrjD','12nlDOwX','16592820flrlQU','\x27:\x20','4hWvEkU','EACCES','1360146dLkcca'];a212_0x1e3c=function(){return _0x250191;};return a212_0x1e3c();}function a212_0x1280(_0x32b0fd,_0x5d71a8){_0x32b0fd=_0x32b0fd-0x1aa;const _0x1e3c20=a212_0x1e3c();let _0x1280f2=_0x1e3c20[_0x32b0fd];return _0x1280f2;}export function readFileContent(_0x4242a7){const _0x7a315d=a212_0x1280;try{return readFileSync(_0x4242a7,_0x7a315d(0x1ad));}catch(_0x1d7f35){const _0x919070=_0x1d7f35['code'];if(_0x919070===_0x7a315d(0x1aa))throw new SDKError(ErrorCode['NOT_FOUND'],_0x7a315d(0x1af)+_0x4242a7+'\x27\x20not\x20found',_0x1d7f35);else{if(_0x919070===_0x7a315d(0x1b7))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x4242a7+'\x27',_0x1d7f35);else throw new SDKError(ErrorCode['INTERNAL'],_0x7a315d(0x1b9)+_0x4242a7+_0x7a315d(0x1b5)+_0x1d7f35['message'],_0x1d7f35);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc87856,_0x31a6e3){const _0x4d33d7=a213_0x5204,_0xc02618=_0xc87856();while(!![]){try{const _0x111e64=-parseInt(_0x4d33d7(0x10e))/0x1*(-parseInt(_0x4d33d7(0x11d))/0x2)+parseInt(_0x4d33d7(0x11f))/0x3+-parseInt(_0x4d33d7(0x112))/0x4+-parseInt(_0x4d33d7(0x122))/0x5+parseInt(_0x4d33d7(0x129))/0x6+parseInt(_0x4d33d7(0x124))/0x7+parseInt(_0x4d33d7(0x114))/0x8*(-parseInt(_0x4d33d7(0x128))/0x9);if(_0x111e64===_0x31a6e3)break;else _0xc02618['push'](_0xc02618['shift']());}catch(_0x253afc){_0xc02618['push'](_0xc02618['shift']());}}}(a213_0x120d,0x3f78e));import*as a213_0x1fb2b8 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a213_0x120d(){const _0x42df4d=['/releases?per_page=20','2033632yXLkhJ','statusCode','8fWzLrQ','timeout','fetchedAt','prerelease','slice','next','tag_name','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','parse','2QXXYYl','set','480513oKAwsW','end','application/vnd.github+json','144905NMRvYG','error','759465bUTOFR','api.github.com','data','length','196569sXMOHY','2176818lWNcMV','toString','get','187743VCPOYT','now','releases'];a213_0x120d=function(){return _0x42df4d;};return a213_0x120d();}export function fetchGitHubReleases(_0x4aa713,_0x485f97,_0x30e845){const _0x1cb661=a213_0x5204,_0x15c1db=_0x4aa713+'/'+_0x485f97,_0x43cb67=cache[_0x1cb661(0x10d)](_0x15c1db);if(_0x43cb67&&Date[_0x1cb661(0x10f)]()-_0x43cb67[_0x1cb661(0x116)]<CACHE_TTL_MS)return Promise['resolve'](_0x43cb67[_0x1cb661(0x110)]);return new Promise((_0x1e5166,_0x7c6fdb)=>{const _0x297b06=_0x1cb661,_0x18e76b={'hostname':_0x297b06(0x125),'path':'/repos/'+_0x4aa713+'/'+_0x485f97+_0x297b06(0x111),'headers':{'User-Agent':_0x30e845,'Accept':_0x297b06(0x121)},'timeout':REQUEST_TIMEOUT_MS},_0x4b6c9e=a213_0x1fb2b8['get'](_0x18e76b,_0x535471=>{const _0x2dcf31=_0x297b06;let _0x58eecd='';_0x535471['on'](_0x2dcf31(0x126),_0x263c20=>{const _0x2bbfb5=_0x2dcf31;_0x58eecd+=_0x263c20[_0x2bbfb5(0x12a)]();}),_0x535471['on'](_0x2dcf31(0x120),()=>{const _0x32bfa1=_0x2dcf31;if(_0x535471[_0x32bfa1(0x113)]!==0xc8){_0x7c6fdb(new Error('GitHub\x20API\x20returned\x20'+_0x535471[_0x32bfa1(0x113)]+':\x20'+_0x58eecd[_0x32bfa1(0x118)](0x0,0xc8)));return;}try{const _0x2c1956=JSON[_0x32bfa1(0x11c)](_0x58eecd);cache[_0x32bfa1(0x11e)](_0x15c1db,{'releases':_0x2c1956,'fetchedAt':Date['now']()}),_0x1e5166(_0x2c1956);}catch(_0x2cf903){_0x7c6fdb(_0x2cf903);}});});_0x4b6c9e['on'](_0x297b06(0x115),()=>{const _0x4c2cf1=_0x297b06;_0x4b6c9e['destroy'](),_0x7c6fdb(new Error(_0x4c2cf1(0x11b)+REQUEST_TIMEOUT_MS+'ms'));}),_0x4b6c9e['on'](_0x297b06(0x123),_0x7c6fdb);});}function a213_0x5204(_0x1c6d92,_0x2f5935){_0x1c6d92=_0x1c6d92-0x10d;const _0x120d6a=a213_0x120d();let _0x520463=_0x120d6a[_0x1c6d92];return _0x520463;}export async function resolveReleaseTag(_0x1aaa64,_0x2d222f,_0x4f7fa9,_0x5319ca){const _0x213ba9=a213_0x5204,_0x510fd9=await fetchGitHubReleases(_0x2d222f,_0x4f7fa9,_0x5319ca);if(_0x510fd9[_0x213ba9(0x127)]===0x0)return null;if(_0x1aaa64===_0x213ba9(0x119))return _0x510fd9[0x0]['tag_name'];const _0x56b155=_0x510fd9['find'](_0x41019e=>!_0x41019e[_0x213ba9(0x117)]);return _0x56b155?_0x56b155[_0x213ba9(0x11a)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17504c,_0xf5a6d1){const _0x31a187=a214_0x2ce1,_0x3dac18=_0x17504c();while(!![]){try{const _0x516060=-parseInt(_0x31a187(0x1aa))/0x1+-parseInt(_0x31a187(0x1b7))/0x2+parseInt(_0x31a187(0x1b0))/0x3+parseInt(_0x31a187(0x1b3))/0x4*(-parseInt(_0x31a187(0x1b8))/0x5)+-parseInt(_0x31a187(0x1ad))/0x6+parseInt(_0x31a187(0x1b4))/0x7+-parseInt(_0x31a187(0x1ba))/0x8*(-parseInt(_0x31a187(0x1af))/0x9);if(_0x516060===_0xf5a6d1)break;else _0x3dac18['push'](_0x3dac18['shift']());}catch(_0x671032){_0x3dac18['push'](_0x3dac18['shift']());}}}(a214_0x55b7,0x75cd0));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a214_0x55b7(){const _0x1035fc=['1066206YKsWCG','\x22,\x20cannot\x20register\x20for\x20\x22','101313awFPjE','2420769vJcCEs','clear','trim','962620snSsxD','3174675rdpPdj','get','default','1485838WYLgfp','10qoisxA','tdx','712pBjaop','\x22\x20already\x20registered\x20by\x20\x22','.cache','stringify','377879iDaaVI','utf-8','Global\x20cache\x20key\x20\x22'];a214_0x55b7=function(){return _0x1035fc;};return a214_0x55b7();}import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5e7919=a214_0x2ce1;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5e7919(0x1bc),_0x5e7919(0x1b9));}const registry=new Map();export function registerGlobalCacheKey(_0x48d47d,_0xd64714){const _0x910ff=a214_0x2ce1,_0x34a575=registry[_0x910ff(0x1b5)](_0x48d47d);if(_0x34a575&&_0x34a575!==_0xd64714)throw new Error(_0x910ff(0x1ac)+_0x48d47d+_0x910ff(0x1bb)+_0x34a575+_0x910ff(0x1ae)+_0xd64714+'\x22');registry['set'](_0x48d47d,_0xd64714);}export function getGlobalCachePath(_0x40d80d){return join(getGlobalCacheDir(),_0x40d80d);}function ensureGlobalCacheDir(){const _0x52f11e=getGlobalCacheDir();!existsSync(_0x52f11e)&&mkdirSync(_0x52f11e,{'recursive':!![]});}function readCacheJson(_0x1c8ac8){const _0x4010be=a214_0x2ce1,_0x4dade8=getGlobalCachePath(_0x1c8ac8);if(!existsSync(_0x4dade8))return undefined;try{const _0x8dabb6=readFileSync(_0x4dade8,_0x4010be(0x1ab));return JSON['parse'](_0x8dabb6);}catch{return undefined;}}function writeCacheJson(_0x1953ad,_0x5b1409){const _0x2dc0dd=a214_0x2ce1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1953ad),JSON[_0x2dc0dd(0x1bd)](_0x5b1409,null,0x2),_0x2dc0dd(0x1ab));}function a214_0x2ce1(_0x479315,_0x2b1fd4){_0x479315=_0x479315-0x1aa;const _0x55b702=a214_0x55b7();let _0x2ce1cc=_0x55b702[_0x479315];return _0x2ce1cc;}function readCacheText(_0x216b5c){const _0x5c0521=a214_0x2ce1,_0x2bf6a3=getGlobalCachePath(_0x216b5c);if(!existsSync(_0x2bf6a3))return undefined;try{return readFileSync(_0x2bf6a3,_0x5c0521(0x1ab));}catch{return undefined;}}function writeCacheText(_0x5366a3,_0x3de32b){const _0xfa9db=a214_0x2ce1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5366a3),_0x3de32b,_0xfa9db(0x1ab));}function clearCache(_0xa3396c){const _0x3412ad=getGlobalCachePath(_0xa3396c);if(existsSync(_0x3412ad))try{unlinkSync(_0x3412ad);}catch{}}function cacheExists(_0x42bbae){return existsSync(getGlobalCachePath(_0x42bbae));}export function createGlobalCache(_0x3c9c30,_0x134266){return registerGlobalCacheKey(_0x3c9c30,_0x134266),{'read':()=>readCacheJson(_0x3c9c30),'write':_0x1678c2=>writeCacheJson(_0x3c9c30,_0x1678c2),'clear':()=>clearCache(_0x3c9c30),'exists':()=>cacheExists(_0x3c9c30),'path':()=>getGlobalCachePath(_0x3c9c30)};}export function createGlobalTextCache(_0x1b4d68,_0xd4e9f2){const _0x1cab93=a214_0x2ce1;return registerGlobalCacheKey(_0x1b4d68,_0xd4e9f2),{'read':()=>readCacheText(_0x1b4d68)?.[_0x1cab93(0x1b2)]()||undefined,'write':_0x4a9175=>writeCacheText(_0x1b4d68,_0x4a9175),'clear':()=>clearCache(_0x1b4d68),'exists':()=>cacheExists(_0x1b4d68),'path':()=>getGlobalCachePath(_0x1b4d68)};}export function createProfileCache(_0x3f012e,_0x85daa){const _0x5d131c=_0x22b235=>{const _0x143f71=a214_0x2ce1,_0xc907b3=_0x22b235||_0x143f71(0x1b6);return _0x3f012e['replace']('{profile}',_0xc907b3);};return{'read':_0x494101=>{const _0x5f290a=_0x5d131c(_0x494101);return registerGlobalCacheKey(_0x5f290a,_0x85daa),readCacheJson(_0x5f290a);},'write':(_0xde4eab,_0x316dcf)=>{const _0xbdabdb=_0x5d131c(_0xde4eab);registerGlobalCacheKey(_0xbdabdb,_0x85daa),writeCacheJson(_0xbdabdb,_0x316dcf);},'clear':_0x2df04e=>{const _0x14843f=_0x5d131c(_0x2df04e);clearCache(_0x14843f);},'exists':_0x45ea8f=>{const _0x18dadc=_0x5d131c(_0x45ea8f);return cacheExists(_0x18dadc);},'path':_0x5d2773=>{const _0x29fb68=_0x5d131c(_0x5d2773);return getGlobalCachePath(_0x29fb68);}};}export function createOptionalProfileCache(_0x128a8b,_0x304b7c,_0xd4b044={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0xd4b044,_0x524525=_0x9bccce=>{return _0x9bccce?''+_0x128a8b+profileSeparator+_0x9bccce+suffix:''+_0x128a8b+suffix;};return{'read':_0x2d87df=>{const _0x2ef72c=_0x524525(_0x2d87df);return registerGlobalCacheKey(_0x2ef72c,_0x304b7c),readCacheJson(_0x2ef72c);},'write':(_0x2feb44,_0x51d4ba)=>{const _0x14a6c6=_0x524525(_0x51d4ba);registerGlobalCacheKey(_0x14a6c6,_0x304b7c),writeCacheJson(_0x14a6c6,_0x2feb44);},'clear':_0x4a992e=>{const _0x2f5e36=_0x524525(_0x4a992e);clearCache(_0x2f5e36);},'exists':_0x1e949c=>{const _0xd82915=_0x524525(_0x1e949c);return cacheExists(_0xd82915);},'path':_0x50ec15=>{const _0x14d848=_0x524525(_0x50ec15);return getGlobalCachePath(_0x14d848);}};}export function clearGlobalRegistry(){const _0xe5f7d6=a214_0x2ce1;registry[_0xe5f7d6(0x1b1)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a5fa4,_0x119057){const _0xbd2b3d=a215_0x5d9f,_0x394dc1=_0x1a5fa4();while(!![]){try{const _0x5f470b=parseInt(_0xbd2b3d(0x79))/0x1*(parseInt(_0xbd2b3d(0x7d))/0x2)+-parseInt(_0xbd2b3d(0x6f))/0x3*(parseInt(_0xbd2b3d(0x80))/0x4)+-parseInt(_0xbd2b3d(0x6e))/0x5+-parseInt(_0xbd2b3d(0x78))/0x6+-parseInt(_0xbd2b3d(0x7c))/0x7+-parseInt(_0xbd2b3d(0x74))/0x8*(parseInt(_0xbd2b3d(0x6c))/0x9)+-parseInt(_0xbd2b3d(0x77))/0xa*(-parseInt(_0xbd2b3d(0x81))/0xb);if(_0x5f470b===_0x119057)break;else _0x394dc1['push'](_0x394dc1['shift']());}catch(_0x104af0){_0x394dc1['push'](_0x394dc1['shift']());}}}(a215_0x524f,0xa6f3d));function a215_0x524f(){const _0x32cb5b=['58157eCFrbX','INTERNAL','Invalid\x20JSON\x20string:\x20','6664490xXfDIN','6mmdEwZ','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','EACCES','4853972fPasxp','220vUjpta','message','utf-8','Failed\x20to\x20load\x20JSON:\x20','NOT_FOUND','INVALID_ARGUMENT','9pDReaz','Permission\x20denied\x20reading\x20file:\x20','4010880GlQMtX','3CVWCDd','parse','code','Invalid\x20JSON\x20in\x20file\x20\x27','PERMISSION_DENIED','3170736eoViXh','File\x20not\x20found:\x20','ENOENT','2343350bNfWZr','4879518DzbKVj'];a215_0x524f=function(){return _0x32cb5b;};return a215_0x524f();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x5d9f(_0x4f0f79,_0x253ccb){_0x4f0f79=_0x4f0f79-0x69;const _0x524fa6=a215_0x524f();let _0x5d9f93=_0x524fa6[_0x4f0f79];return _0x5d9f93;}export async function loadJSON(_0x4fecd5,_0x514da4){const _0xfd2a23=a215_0x5d9f;try{if(_0x514da4){const _0x8576b2=await readFile(_0x4fecd5,_0xfd2a23(0x83));try{return JSON[_0xfd2a23(0x70)](_0x8576b2);}catch(_0x3fc41d){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xfd2a23(0x72)+_0x4fecd5+'\x27:\x20'+(_0x3fc41d instanceof Error?_0x3fc41d[_0xfd2a23(0x82)]:String(_0x3fc41d)));}}else try{return JSON[_0xfd2a23(0x70)](_0x4fecd5);}catch(_0x596eca){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xfd2a23(0x7b)+(_0x596eca instanceof Error?_0x596eca[_0xfd2a23(0x82)]:String(_0x596eca)));}}catch(_0x136ee4){if(_0x136ee4 instanceof SDKError)throw _0x136ee4;if(_0x136ee4 instanceof Error&&_0xfd2a23(0x71)in _0x136ee4){const _0x36f7c1=_0x136ee4;if(_0x36f7c1[_0xfd2a23(0x71)]===_0xfd2a23(0x76))throw new SDKError(ErrorCode[_0xfd2a23(0x6a)],_0xfd2a23(0x75)+_0x4fecd5);else{if(_0x36f7c1['code']===_0xfd2a23(0x7f))throw new SDKError(ErrorCode[_0xfd2a23(0x73)],_0xfd2a23(0x6d)+_0x4fecd5);}}throw new SDKError(ErrorCode[_0xfd2a23(0x7a)],_0xfd2a23(0x69)+(_0x136ee4 instanceof Error?_0x136ee4[_0xfd2a23(0x82)]:String(_0x136ee4)));}}export async function loadJSONFromOptions(_0x377a0c,_0x3be760){const _0x1c2948=a215_0x5d9f;if(_0x377a0c&&_0x3be760)throw new SDKError(ErrorCode[_0x1c2948(0x6b)],_0x1c2948(0x7e));if(_0x377a0c)return await loadJSON(_0x377a0c,![]);if(_0x3be760)return await loadJSON(_0x3be760,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x3deed4=a216_0x4e29;(function(_0x10d47f,_0x114578){const _0x12b273=a216_0x4e29,_0xd58b6e=_0x10d47f();while(!![]){try{const _0x1b75bb=-parseInt(_0x12b273(0x16d))/0x1*(parseInt(_0x12b273(0x171))/0x2)+parseInt(_0x12b273(0x176))/0x3+-parseInt(_0x12b273(0x173))/0x4*(-parseInt(_0x12b273(0x16f))/0x5)+parseInt(_0x12b273(0x16e))/0x6*(-parseInt(_0x12b273(0x175))/0x7)+-parseInt(_0x12b273(0x170))/0x8+parseInt(_0x12b273(0x168))/0x9+-parseInt(_0x12b273(0x177))/0xa*(parseInt(_0x12b273(0x178))/0xb);if(_0x1b75bb===_0x114578)break;else _0xd58b6e['push'](_0xd58b6e['shift']());}catch(_0x301160){_0xd58b6e['push'](_0xd58b6e['shift']());}}}(a216_0x54d8,0x5e929));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0x3deed4(0x16c),registry=new Map();export function registerCacheKey(_0x2839bc,_0x1d1bc3){const _0x341f1d=a216_0x3deed4,_0x54c072=registry[_0x341f1d(0x165)](_0x2839bc);if(_0x54c072&&_0x54c072!==_0x1d1bc3)throw new Error('Cache\x20key\x20\x22'+_0x2839bc+_0x341f1d(0x16b)+_0x54c072+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x1d1bc3+'\x22');registry[_0x341f1d(0x174)](_0x2839bc,_0x1d1bc3);}export function getCacheDir(){const _0x53fa0e=a216_0x3deed4,_0x530ace=process[_0x53fa0e(0x166)](),_0x4a59d9=_0x530ace===parse(_0x530ace)['root']?homedir():_0x530ace;return join(_0x4a59d9,LOCAL_CACHE_DIR);}function a216_0x4e29(_0x17b2a3,_0x1df4dd){_0x17b2a3=_0x17b2a3-0x165;const _0x54d822=a216_0x54d8();let _0x4e2955=_0x54d822[_0x17b2a3];return _0x4e2955;}export function getCachePath(_0x21cc39){return join(getCacheDir(),_0x21cc39);}function ensureCacheDir(){const _0x5163ad=getCacheDir();!existsSync(_0x5163ad)&&mkdirSync(_0x5163ad,{'recursive':!![]});}function readCacheJson(_0x4aa315){const _0x589a10=a216_0x3deed4,_0x52dd5d=getCachePath(_0x4aa315);if(!existsSync(_0x52dd5d))return undefined;try{const _0x585016=readFileSync(_0x52dd5d,_0x589a10(0x169));return JSON[_0x589a10(0x172)](_0x585016);}catch{return undefined;}}function writeCacheJson(_0x1bf05c,_0x4d70d6){const _0x3834e0=a216_0x3deed4;ensureCacheDir(),writeFileSync(getCachePath(_0x1bf05c),JSON[_0x3834e0(0x16a)](_0x4d70d6,null,0x2),_0x3834e0(0x169));}function readCacheText(_0x2a6458){const _0x2cfc76=getCachePath(_0x2a6458);if(!existsSync(_0x2cfc76))return undefined;try{return readFileSync(_0x2cfc76,'utf-8');}catch{return undefined;}}function writeCacheText(_0x33ff74,_0x444675){const _0xda1cea=a216_0x3deed4;ensureCacheDir(),writeFileSync(getCachePath(_0x33ff74),_0x444675,_0xda1cea(0x169));}function clearCache(_0x22e51d){const _0x446e6a=getCachePath(_0x22e51d);if(existsSync(_0x446e6a))try{unlinkSync(_0x446e6a);}catch{}}function cacheExists(_0x23cdf6){return existsSync(getCachePath(_0x23cdf6));}function a216_0x54d8(){const _0x3e3997=['utf-8','stringify','\x22\x20already\x20registered\x20by\x20\x22','.cache/tdx','61KOrUfB','18276WjCWzB','1255255rLxKlR','557864onWEZX','3320IDcTpY','parse','12BTXwvf','set','1533DYJVdj','2264739oXGcpr','20yrkzyz','3160619kGyPwk','get','cwd','clear','2628252DaWPrp'];a216_0x54d8=function(){return _0x3e3997;};return a216_0x54d8();}export function createCache(_0x355e62,_0x35ef60){return registerCacheKey(_0x355e62,_0x35ef60),{'read':()=>readCacheJson(_0x355e62),'write':_0x48717c=>writeCacheJson(_0x355e62,_0x48717c),'clear':()=>clearCache(_0x355e62),'exists':()=>cacheExists(_0x355e62),'path':()=>getCachePath(_0x355e62)};}export function createTextCache(_0x31ef41,_0x481785){return registerCacheKey(_0x31ef41,_0x481785),{'read':()=>readCacheText(_0x31ef41)?.['trim']()||undefined,'write':_0x5df683=>writeCacheText(_0x31ef41,_0x5df683),'clear':()=>clearCache(_0x31ef41),'exists':()=>cacheExists(_0x31ef41),'path':()=>getCachePath(_0x31ef41)};}export function clearRegistry(){const _0x53560a=a216_0x3deed4;registry[_0x53560a(0x167)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a217_0x14ce(_0x58cb3e,_0x3da368){_0x58cb3e=_0x58cb3e-0x13f;const _0x1b6d85=a217_0x1b6d();let _0x14ce18=_0x1b6d85[_0x58cb3e];return _0x14ce18;}function a217_0x1b6d(){const _0x58aef0=['1986992UlVAcm','dim','2211411RnUIts','format','level','DEBUG','colorLevel','6099820IvqoUn','Chalk','17790591hRKDfp','component','red','timestamp','cyan','green','ERROR','colors','message','INFO','chalk','default','3272370eZzHWM','101026vWPKti','yellow','1240582VBesQR'];a217_0x1b6d=function(){return _0x58aef0;};return a217_0x1b6d();}const a217_0x3d6203=a217_0x14ce;(function(_0x521ee5,_0x12295f){const _0x338c1e=a217_0x14ce,_0x300a92=_0x521ee5();while(!![]){try{const _0x1288f5=parseInt(_0x338c1e(0x14b))/0x1+parseInt(_0x338c1e(0x149))/0x2+parseInt(_0x338c1e(0x14e))/0x3+parseInt(_0x338c1e(0x14c))/0x4+parseInt(_0x338c1e(0x153))/0x5+-parseInt(_0x338c1e(0x148))/0x6+-parseInt(_0x338c1e(0x155))/0x7;if(_0x1288f5===_0x12295f)break;else _0x300a92['push'](_0x300a92['shift']());}catch(_0x3ba7fb){_0x300a92['push'](_0x300a92['shift']());}}}(a217_0x1b6d,0xa0a74));import a217_0xf9baf1 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0xf9baf1,ChalkClass=chalkModule['Chalk']||chalkModule[a217_0x3d6203(0x147)]?.[a217_0x3d6203(0x154)];export class DefaultLogFormatter{[a217_0x3d6203(0x143)];[a217_0x3d6203(0x146)];constructor(_0x5a22a4={}){const _0x157522=a217_0x3d6203;this[_0x157522(0x143)]=_0x5a22a4['colors']??![],this['chalk']=_0x5a22a4['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a217_0xf9baf1;}[a217_0x3d6203(0x14f)](_0x1ade08){const _0x292d24=a217_0x3d6203,_0xc2f44a=formatTimestamp(_0x1ade08[_0x292d24(0x13f)]),_0x4c2d04=logLevelToString(_0x1ade08[_0x292d24(0x150)]);if(!this[_0x292d24(0x143)])return _0xc2f44a+'\x20['+_0x4c2d04+']\x20['+_0x1ade08['component']+']\x20'+_0x1ade08['message'];const _0x416e74=this[_0x292d24(0x146)][_0x292d24(0x14d)](_0xc2f44a),_0x1d7faf=this[_0x292d24(0x152)](_0x4c2d04,_0x1ade08['level']),_0x143a2a=this['chalk']['blue']('['+_0x1ade08[_0x292d24(0x156)]+']');return _0x416e74+'\x20'+_0x1d7faf+'\x20'+_0x143a2a+'\x20'+_0x1ade08[_0x292d24(0x144)];}['colorLevel'](_0x739953,_0x591489){const _0x342be8=a217_0x3d6203;switch(_0x591489){case LogLevel['TRACE']:return this['chalk']['gray']('['+_0x739953+']');case LogLevel[_0x342be8(0x151)]:return this[_0x342be8(0x146)][_0x342be8(0x141)]('['+_0x739953+']');case LogLevel[_0x342be8(0x145)]:return this[_0x342be8(0x146)][_0x342be8(0x140)]('['+_0x739953+']');case LogLevel['WARN']:return this[_0x342be8(0x146)][_0x342be8(0x14a)]('['+_0x739953+']');case LogLevel[_0x342be8(0x142)]:return this[_0x342be8(0x146)][_0x342be8(0x157)]('['+_0x739953+']');default:return'['+_0x739953+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a218_0x5ec3(_0x970764,_0x14eef4){_0x970764=_0x970764-0x8f;var _0x441070=a218_0x4410();var _0x5ec351=_0x441070[_0x970764];return _0x5ec351;}(function(_0x54885a,_0x1770aa){var _0x16ad0d=a218_0x5ec3,_0x398e8b=_0x54885a();while(!![]){try{var _0x4a9948=-parseInt(_0x16ad0d(0x96))/0x1+parseInt(_0x16ad0d(0x92))/0x2*(parseInt(_0x16ad0d(0x94))/0x3)+-parseInt(_0x16ad0d(0x97))/0x4*(-parseInt(_0x16ad0d(0x98))/0x5)+-parseInt(_0x16ad0d(0x93))/0x6+-parseInt(_0x16ad0d(0x8f))/0x7*(-parseInt(_0x16ad0d(0x91))/0x8)+-parseInt(_0x16ad0d(0x95))/0x9+-parseInt(_0x16ad0d(0x90))/0xa;if(_0x4a9948===_0x1770aa)break;else _0x398e8b['push'](_0x398e8b['shift']());}catch(_0x2f37cd){_0x398e8b['push'](_0x398e8b['shift']());}}}(a218_0x4410,0x2165c));function a218_0x4410(){var _0x217219=['12082Mmpfkq','696804eWAIMq','51LvAhsT','85428grSiLX','103354Xihkfv','154892RltrHm','15rfQZFG','259MYrDZD','156310LXXPjO','35144DeFLOS'];a218_0x4410=function(){return _0x217219;};return a218_0x4410();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a219_0x49b9b9=a219_0x52ce;(function(_0x557384,_0x4aef2e){const _0x5b91de=a219_0x52ce,_0x4bb4e3=_0x557384();while(!![]){try{const _0x34bf63=-parseInt(_0x5b91de(0xff))/0x1*(-parseInt(_0x5b91de(0x10b))/0x2)+-parseInt(_0x5b91de(0x101))/0x3*(-parseInt(_0x5b91de(0x10a))/0x4)+parseInt(_0x5b91de(0x104))/0x5+parseInt(_0x5b91de(0x10d))/0x6*(-parseInt(_0x5b91de(0x10f))/0x7)+-parseInt(_0x5b91de(0x10c))/0x8*(parseInt(_0x5b91de(0xfb))/0x9)+parseInt(_0x5b91de(0x103))/0xa+parseInt(_0x5b91de(0x108))/0xb*(-parseInt(_0x5b91de(0x107))/0xc);if(_0x34bf63===_0x4aef2e)break;else _0x4bb4e3['push'](_0x4bb4e3['shift']());}catch(_0x122716){_0x4bb4e3['push'](_0x4bb4e3['shift']());}}}(a219_0x4440,0xb114c));function a219_0x4440(){const _0x184369=['7YFBlLt','90972Cpsvop','format','useStderr','formatter','1DVJenb','minLevel','3jIUzdh','handle','6521440XUmvBs','5926905tmVJuV','WARN','level','31132896TRUCpn','11lzBOwL','error','4618580nymeYK','2227358oyrKzo','496OWHKjf','956526MzuaRQ','colors'];a219_0x4440=function(){return _0x184369;};return a219_0x4440();}import{LogLevel as a219_0x459d51}from'../types.js';function a219_0x52ce(_0x2af237,_0x31a30a){_0x2af237=_0x2af237-0xfb;const _0x4440f3=a219_0x4440();let _0x52cec0=_0x4440f3[_0x2af237];return _0x52cec0;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];['useStderr'];[a219_0x49b9b9(0xfe)];constructor(_0x5475f6={}){const _0x5d1f43=a219_0x49b9b9;this[_0x5d1f43(0x100)]=_0x5475f6[_0x5d1f43(0x100)]??a219_0x459d51[_0x5d1f43(0x105)],this[_0x5d1f43(0xfd)]=_0x5475f6['useStderr']??!![],this[_0x5d1f43(0xfe)]=new DefaultLogFormatter({'colors':_0x5475f6[_0x5d1f43(0x10e)]??!![]});}[a219_0x49b9b9(0x102)](_0x2418f6){const _0x25ed86=a219_0x49b9b9;if(_0x2418f6['level']<this['minLevel'])return;const _0x3a0d1f=this[_0x25ed86(0xfe)][_0x25ed86(0xfc)](_0x2418f6);this[_0x25ed86(0xfd)]&&_0x2418f6[_0x25ed86(0x106)]>=a219_0x459d51[_0x25ed86(0x105)]?console[_0x25ed86(0x109)](_0x3a0d1f):console['log'](_0x3a0d1f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x28c047=a220_0x5686;(function(_0x93235f,_0x64e27b){const _0x173372=a220_0x5686,_0x5178c8=_0x93235f();while(!![]){try{const _0x2480a7=-parseInt(_0x173372(0x138))/0x1+-parseInt(_0x173372(0x139))/0x2*(parseInt(_0x173372(0x148))/0x3)+-parseInt(_0x173372(0x143))/0x4+-parseInt(_0x173372(0x151))/0x5*(parseInt(_0x173372(0x145))/0x6)+-parseInt(_0x173372(0x13e))/0x7+-parseInt(_0x173372(0x14a))/0x8*(parseInt(_0x173372(0x13f))/0x9)+parseInt(_0x173372(0x144))/0xa;if(_0x2480a7===_0x64e27b)break;else _0x5178c8['push'](_0x5178c8['shift']());}catch(_0x8e6b4a){_0x5178c8['push'](_0x5178c8['shift']());}}}(a220_0x2a8c,0x293e3));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';function a220_0x2a8c(){const _0x44a11f=['302FFfTkl','.gz','close','logBaseName','logPath','1457078Biitkb','45cKrDxf','write','error','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','148844XkDVQM','13037910uqjHFS','42hKwBKq','getLogPath','includes','3063nQnSyf','\x5c$&','240800diCrUW','test','format','filePath','.log','replace','toISOString','220130pdmKQH','Warning:\x20Failed\x20to\x20compress\x20','end','rotateOldLogs','rotate','split','logStream','logFileName','tdx.log','handle','logDir','mtime','276642XEDEen'];a220_0x2a8c=function(){return _0x44a11f;};return a220_0x2a8c();}function a220_0x5686(_0x1e83b7,_0x261349){_0x1e83b7=_0x1e83b7-0x12f;const _0x2a8c50=a220_0x2a8c();let _0x568678=_0x2a8c50[_0x1e83b7];return _0x568678;}export class FileHandler{[a220_0x28c047(0x13d)];[a220_0x28c047(0x136)];[a220_0x28c047(0x133)];[a220_0x28c047(0x13c)];[a220_0x28c047(0x132)]=null;[a220_0x28c047(0x130)];constructor(_0x146086={}){const _0x1fd5e5=a220_0x28c047;this[_0x1fd5e5(0x13d)]=_0x146086[_0x1fd5e5(0x14d)]??join(getGlobalCacheDir(),'logs',_0x1fd5e5(0x134)),this['logDir']=dirname(this[_0x1fd5e5(0x13d)]),this[_0x1fd5e5(0x133)]=basename(this[_0x1fd5e5(0x13d)]),this[_0x1fd5e5(0x13c)]=this[_0x1fd5e5(0x133)][_0x1fd5e5(0x14f)](/\.log$/,''),this[_0x1fd5e5(0x130)]=_0x146086[_0x1fd5e5(0x130)]??!![];}async['init'](){const _0x56423b=a220_0x28c047;try{await mkdir(this[_0x56423b(0x136)],{'recursive':!![]}),this[_0x56423b(0x130)]&&await this[_0x56423b(0x12f)](),this[_0x56423b(0x132)]=createWriteStream(this[_0x56423b(0x13d)],{'flags':'a'}),this[_0x56423b(0x132)]['on']('error',_0x48d78c=>{const _0x277753=_0x56423b;console[_0x277753(0x141)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x277753(0x133)]+':',_0x48d78c['message']);});}catch(_0x43d98d){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x43d98d);}}[a220_0x28c047(0x135)](_0x5c5760){const _0x5adffe=a220_0x28c047;if(!this[_0x5adffe(0x132)])return;const _0x30f4ec=Logger[_0x5adffe(0x14c)](_0x5c5760);this[_0x5adffe(0x132)][_0x5adffe(0x140)](_0x30f4ec+'\x0a');}async[a220_0x28c047(0x13b)](){return new Promise(_0x45f671=>{const _0x373d64=a220_0x5686;this[_0x373d64(0x132)]?this[_0x373d64(0x132)][_0x373d64(0x153)](()=>{const _0x255ef0=_0x373d64;this[_0x255ef0(0x132)]=null,_0x45f671();}):_0x45f671();});}[a220_0x28c047(0x146)](){const _0x1088f2=a220_0x28c047;return this[_0x1088f2(0x13d)];}async[a220_0x28c047(0x12f)](){const _0x15f04b=a220_0x28c047;try{const _0x8d3995=await readdir(this[_0x15f04b(0x136)]),_0xe43a3b=new Date()[_0x15f04b(0x150)]()[_0x15f04b(0x131)]('T')[0x0];if(_0x8d3995[_0x15f04b(0x147)](this[_0x15f04b(0x133)])){const _0x366fc2=join(this[_0x15f04b(0x136)],this[_0x15f04b(0x133)]),_0x1a5b38=await stat(_0x366fc2),_0x18c7d9=new Date(_0x1a5b38[_0x15f04b(0x137)])[_0x15f04b(0x150)]()['split']('T')[0x0];if(_0x18c7d9<_0xe43a3b){const _0x383269=join(this['logDir'],this[_0x15f04b(0x13c)]+'-'+_0x18c7d9+_0x15f04b(0x14e));await rename(_0x366fc2,_0x383269);}}const _0x42a4a8=await readdir(this[_0x15f04b(0x136)]),_0x3ec581=this[_0x15f04b(0x13c)][_0x15f04b(0x14f)](/[.*+?^${}()|[\]\\]/g,_0x15f04b(0x149)),_0x21272f=new RegExp('^'+_0x3ec581+_0x15f04b(0x142)),_0x2906c3=_0x42a4a8['filter'](_0x3bed7a=>_0x21272f[_0x15f04b(0x14b)](_0x3bed7a));for(const _0x34e955 of _0x2906c3){const _0x1be085=join(this[_0x15f04b(0x136)],_0x34e955),_0x568b31=join(this[_0x15f04b(0x136)],_0x34e955+_0x15f04b(0x13a));try{await pipeline(createReadStream(_0x1be085),createGzip(),createWriteStream(_0x568b31)),await unlink(_0x1be085);}catch(_0x43f32e){console[_0x15f04b(0x141)](_0x15f04b(0x152)+_0x34e955+':',_0x43f32e);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a221_0x1df6(_0x2920c5,_0x2af7ec){_0x2920c5=_0x2920c5-0x1c2;var _0x4dcbe9=a221_0x4dcb();var _0x1df675=_0x4dcbe9[_0x2920c5];return _0x1df675;}(function(_0x569652,_0x461c1c){var _0x9b97b2=a221_0x1df6,_0x4835c4=_0x569652();while(!![]){try{var _0x29af04=parseInt(_0x9b97b2(0x1c3))/0x1*(-parseInt(_0x9b97b2(0x1c5))/0x2)+parseInt(_0x9b97b2(0x1c2))/0x3+-parseInt(_0x9b97b2(0x1c4))/0x4*(-parseInt(_0x9b97b2(0x1cb))/0x5)+parseInt(_0x9b97b2(0x1c9))/0x6+-parseInt(_0x9b97b2(0x1c8))/0x7+parseInt(_0x9b97b2(0x1c6))/0x8*(parseInt(_0x9b97b2(0x1ca))/0x9)+-parseInt(_0x9b97b2(0x1c7))/0xa;if(_0x29af04===_0x461c1c)break;else _0x4835c4['push'](_0x4835c4['shift']());}catch(_0x425aa3){_0x4835c4['push'](_0x4835c4['shift']());}}}(a221_0x4dcb,0x65f0b));export{FileHandler}from'./file-handler.js';function a221_0x4dcb(){var _0x332f9e=['22986pkFxEX','2515WLeLvh','1884855idacbX','481lCGWtS','1296OoDybo','3394ffsyqI','1072YFKhRK','3234960qjLKBp','2048704dBAfnr','4298874sIUAkM'];a221_0x4dcb=function(){return _0x332f9e;};return a221_0x4dcb();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa1e618,_0x5a753f){var _0x519418=a222_0x57b5,_0x433b41=_0xa1e618();while(!![]){try{var _0x571c3c=parseInt(_0x519418(0x1bd))/0x1*(-parseInt(_0x519418(0x1b8))/0x2)+parseInt(_0x519418(0x1b4))/0x3+parseInt(_0x519418(0x1b3))/0x4*(parseInt(_0x519418(0x1b6))/0x5)+-parseInt(_0x519418(0x1bc))/0x6*(-parseInt(_0x519418(0x1bb))/0x7)+-parseInt(_0x519418(0x1b5))/0x8*(parseInt(_0x519418(0x1b2))/0x9)+-parseInt(_0x519418(0x1b7))/0xa+parseInt(_0x519418(0x1ba))/0xb*(-parseInt(_0x519418(0x1b9))/0xc);if(_0x571c3c===_0x5a753f)break;else _0x433b41['push'](_0x433b41['shift']());}catch(_0x4028ea){_0x433b41['push'](_0x433b41['shift']());}}}(a222_0x1183,0x6dff9));function a222_0x1183(){var _0x6148dc=['52OJIjRs','1946583cxOsxI','824RRiPEA','90895YOowRS','823550eIKOBo','886Ypofnd','46788PfSIHE','2596QLiwEz','7DOkIvv','5127648yctlYl','647aLHmcm','9GWmYvH'];a222_0x1183=function(){return _0x6148dc;};return a222_0x1183();}function a222_0x57b5(_0x181384,_0x29a1ff){_0x181384=_0x181384-0x1b2;var _0x1183bb=a222_0x1183();var _0x57b580=_0x1183bb[_0x181384];return _0x57b580;}export class NullHandler{['handle'](_0x3e7991){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c939d,_0x205245){var _0x19eab8=a223_0xae35,_0x2c6a89=_0x5c939d();while(!![]){try{var _0x5a9bb5=parseInt(_0x19eab8(0x19f))/0x1+-parseInt(_0x19eab8(0x19d))/0x2+parseInt(_0x19eab8(0x198))/0x3*(-parseInt(_0x19eab8(0x19e))/0x4)+parseInt(_0x19eab8(0x19c))/0x5*(-parseInt(_0x19eab8(0x197))/0x6)+parseInt(_0x19eab8(0x1a0))/0x7+-parseInt(_0x19eab8(0x19a))/0x8*(parseInt(_0x19eab8(0x19b))/0x9)+parseInt(_0x19eab8(0x196))/0xa*(parseInt(_0x19eab8(0x199))/0xb);if(_0x5a9bb5===_0x205245)break;else _0x2c6a89['push'](_0x2c6a89['shift']());}catch(_0x398f05){_0x2c6a89['push'](_0x2c6a89['shift']());}}}(a223_0x13e5,0x71830));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a223_0xae35(_0x326f78,_0x477936){_0x326f78=_0x326f78-0x196;var _0x13e59e=a223_0x13e5();var _0xae35c=_0x13e59e[_0x326f78];return _0xae35c;}function a223_0x13e5(){var _0x25a2f1=['5YybKfi','861334SZDmzh','17660OoDgYj','746113jCRAzH','4169648VoLsSK','4888580SxdXsA','3791874PGKmDM','27sNLbdo','11VOQdWH','15720oLtpvF','1206dPpfFR'];a223_0x13e5=function(){return _0x25a2f1;};return a223_0x13e5();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x33778c=a224_0x176b;function a224_0x176b(_0x587027,_0x1eab7e){_0x587027=_0x587027-0x1cf;const _0xaaac63=a224_0xaaac();let _0x176bda=_0xaaac63[_0x587027];return _0x176bda;}(function(_0x2a6e49,_0x56c36f){const _0x25375c=a224_0x176b,_0x39625f=_0x2a6e49();while(!![]){try{const _0x5d4127=parseInt(_0x25375c(0x1ed))/0x1*(parseInt(_0x25375c(0x1cf))/0x2)+parseInt(_0x25375c(0x1fd))/0x3+parseInt(_0x25375c(0x1fc))/0x4+parseInt(_0x25375c(0x1fe))/0x5+parseInt(_0x25375c(0x1e9))/0x6+-parseInt(_0x25375c(0x1e3))/0x7+parseInt(_0x25375c(0x1d3))/0x8*(-parseInt(_0x25375c(0x1d4))/0x9);if(_0x5d4127===_0x56c36f)break;else _0x39625f['push'](_0x39625f['shift']());}catch(_0xbb1eb2){_0x39625f['push'](_0x39625f['shift']());}}}(a224_0xaaac,0x68df3));import{LogLevel as a224_0x210625,logLevelToString}from'./types.js';function a224_0xaaac(){const _0x1eead6=['ERROR','set','name','dispatch','debug','2810374uvVNGG','close','string','stack','WARN','error','4634328KFPbue','reset','message','initialized','1FPPNLF','DEBUG','clear','INFO','push','formatter','handle','isInitialized','defaultLevel','get','info','getEffectiveLevel','function','split','toISOString','828144ECnlle','2416371wVOohm','1952335wXYzqB','level','warn','levelOverrides','pendingRecords','35308VNbIZr','cause','clearHandlers','setDefaultLevel','40CyVPwW','2451537EdlyPf','entries','component','map','stringify','init','loggers','log','shouldLog','handlers'];a224_0xaaac=function(){return _0x1eead6;};return a224_0xaaac();}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a224_0x210625[a224_0x33778c(0x1f0)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x12938c){const _0x1dac3c=a224_0x33778c;if(typeof _0x12938c===_0x1dac3c(0x1e5))return _0x12938c;if(_0x12938c instanceof Error)return _0x12938c[_0x1dac3c(0x1e6)]||_0x12938c[_0x1dac3c(0x1e0)]+':\x20'+_0x12938c[_0x1dac3c(0x1eb)];try{return JSON[_0x1dac3c(0x1d8)](_0x12938c,(_0x17a11b,_0x4975b4)=>{const _0x2944d2=_0x1dac3c;if(_0x4975b4 instanceof Error)return{'name':_0x4975b4[_0x2944d2(0x1e0)],'message':_0x4975b4[_0x2944d2(0x1eb)],'stack':_0x4975b4[_0x2944d2(0x1e6)],'cause':_0x4975b4[_0x2944d2(0x1d0)]};return _0x4975b4;});}catch{return String(_0x12938c);}}export class Logger{['component'];constructor(_0x238005){const _0x2523e3=a224_0x33778c;this[_0x2523e3(0x1d6)]=_0x238005;}static['of'](_0x3759a6){const _0x2b00f4=a224_0x33778c,_0x7dd734=typeof _0x3759a6==='string'?_0x3759a6:_0x3759a6['name'];let _0x3cda6b=state['loggers'][_0x2b00f4(0x1f6)](_0x7dd734);return!_0x3cda6b&&(_0x3cda6b=new Logger(_0x7dd734),state['loggers'][_0x2b00f4(0x1df)](_0x7dd734,_0x3cda6b)),_0x3cda6b;}static async['init'](_0x293de7={}){const _0x23cd14=a224_0x33778c;state['defaultLevel']=_0x293de7[_0x23cd14(0x1f5)]??a224_0x210625[_0x23cd14(0x1f0)],state[_0x23cd14(0x1dd)]=_0x293de7['handlers']??[],state['formatter']=_0x293de7['formatter']??null,state[_0x23cd14(0x201)][_0x23cd14(0x1ef)]();if(_0x293de7['levelOverrides'])for(const [_0x556048,_0x4e2e69]of Object[_0x23cd14(0x1d5)](_0x293de7[_0x23cd14(0x201)])){state[_0x23cd14(0x201)][_0x23cd14(0x1df)](_0x556048,_0x4e2e69);}for(const _0x1b0e39 of state[_0x23cd14(0x1dd)]){_0x1b0e39[_0x23cd14(0x1d9)]&&await _0x1b0e39[_0x23cd14(0x1d9)]();}state[_0x23cd14(0x1ec)]=!![];for(const _0x26b650 of state['pendingRecords']){Logger[_0x23cd14(0x1e1)](_0x26b650);}state[_0x23cd14(0x202)]=[];}static['setLogLevel'](_0x2078e2,_0x43fce1){const _0x1ee6d6=a224_0x33778c;state[_0x1ee6d6(0x201)][_0x1ee6d6(0x1df)](_0x2078e2,_0x43fce1);}static[a224_0x33778c(0x1d2)](_0x28316e){const _0x11f2be=a224_0x33778c;state[_0x11f2be(0x1f5)]=_0x28316e;}static['addHandler'](_0x582b6f){const _0x1cf286=a224_0x33778c;state[_0x1cf286(0x1dd)][_0x1cf286(0x1f1)](_0x582b6f),state[_0x1cf286(0x1ec)]&&_0x582b6f[_0x1cf286(0x1d9)]&&_0x582b6f[_0x1cf286(0x1d9)]();}static[a224_0x33778c(0x1d1)](){state['handlers']=[];}static async['shutdown'](){const _0x1b6c2b=a224_0x33778c;for(const _0x10a0c6 of state[_0x1b6c2b(0x1dd)]){_0x10a0c6['close']&&await _0x10a0c6[_0x1b6c2b(0x1e4)]();}state[_0x1b6c2b(0x1dd)]=[],state[_0x1b6c2b(0x1ec)]=![],state['loggers'][_0x1b6c2b(0x1ef)](),state[_0x1b6c2b(0x202)]=[];}static[a224_0x33778c(0x1ea)](){const _0x1b1e2f=a224_0x33778c;state[_0x1b1e2f(0x1ec)]=![],state[_0x1b1e2f(0x1f5)]=a224_0x210625[_0x1b1e2f(0x1f0)],state[_0x1b1e2f(0x201)][_0x1b1e2f(0x1ef)](),state[_0x1b1e2f(0x1dd)]=[],state[_0x1b1e2f(0x1f2)]=null,state[_0x1b1e2f(0x1da)]['clear'](),state[_0x1b1e2f(0x202)]=[];}static[a224_0x33778c(0x1f4)](){return state['initialized'];}static[a224_0x33778c(0x1f8)](_0x2578f4){const _0x4de42c=a224_0x33778c;if(state[_0x4de42c(0x201)]['has'](_0x2578f4))return state[_0x4de42c(0x201)][_0x4de42c(0x1f6)](_0x2578f4);const _0x1de6c0=_0x2578f4[_0x4de42c(0x1fa)]('.');for(let _0x1b0907=_0x1de6c0['length']-0x1;_0x1b0907>0x0;_0x1b0907--){const _0x3c9f12=_0x1de6c0['slice'](0x0,_0x1b0907)['join']('.');if(state['levelOverrides']['has'](_0x3c9f12))return state['levelOverrides'][_0x4de42c(0x1f6)](_0x3c9f12);}return state[_0x4de42c(0x1f5)];}[a224_0x33778c(0x1dc)](_0x2137cc){const _0x3d6ccc=a224_0x33778c,_0x39606d=Logger['getEffectiveLevel'](this[_0x3d6ccc(0x1d6)]);return _0x2137cc>=_0x39606d;}static[a224_0x33778c(0x1e1)](_0x307217){const _0x3a1142=a224_0x33778c;for(const _0x4a80af of state['handlers']){_0x4a80af[_0x3a1142(0x1f3)](_0x307217);}}[a224_0x33778c(0x1db)](_0x9ca0d0,_0x46f5bb){const _0x3f6f2f=a224_0x33778c;if(!this['shouldLog'](_0x9ca0d0))return;const _0x21613a=_0x46f5bb[_0x3f6f2f(0x1d7)](_0x3bfc99=>typeof _0x3bfc99===_0x3f6f2f(0x1f9)?_0x3bfc99():_0x3bfc99),_0x7f00d4=_0x21613a[_0x3f6f2f(0x1d7)](safeStringify)['join']('\x20'),_0x44779e={'timestamp':new Date(),'level':_0x9ca0d0,'component':this[_0x3f6f2f(0x1d6)],'message':_0x7f00d4};if(!state['initialized']){state['pendingRecords']['length']<MAX_PENDING_RECORDS&&state[_0x3f6f2f(0x202)][_0x3f6f2f(0x1f1)](_0x44779e);return;}Logger['dispatch'](_0x44779e);}['trace'](..._0x4a6517){const _0x38a5f5=a224_0x33778c;this[_0x38a5f5(0x1db)](a224_0x210625['TRACE'],_0x4a6517);}[a224_0x33778c(0x1e2)](..._0x31d207){const _0xc06be2=a224_0x33778c;this[_0xc06be2(0x1db)](a224_0x210625[_0xc06be2(0x1ee)],_0x31d207);}[a224_0x33778c(0x1f7)](..._0x3a124b){const _0x1d8389=a224_0x33778c;this[_0x1d8389(0x1db)](a224_0x210625[_0x1d8389(0x1f0)],_0x3a124b);}[a224_0x33778c(0x200)](..._0x5937aa){const _0x33458d=a224_0x33778c;this[_0x33458d(0x1db)](a224_0x210625[_0x33458d(0x1e7)],_0x5937aa);}[a224_0x33778c(0x1e8)](..._0x5d5c29){const _0x2dfcfc=a224_0x33778c;this[_0x2dfcfc(0x1db)](a224_0x210625[_0x2dfcfc(0x1de)],_0x5d5c29);}static['getFormatter'](){const _0xebe074=a224_0x33778c;return state[_0xebe074(0x1f2)];}static['format'](_0xc3327d){const _0x567a64=a224_0x33778c;if(state[_0x567a64(0x1f2)])return state[_0x567a64(0x1f2)]['format'](_0xc3327d);return _0xc3327d['timestamp'][_0x567a64(0x1fb)]()+'\x20['+logLevelToString(_0xc3327d[_0x567a64(0x1ff)])+']\x20['+_0xc3327d[_0x567a64(0x1d6)]+']\x20'+_0xc3327d[_0x567a64(0x1eb)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x156300,_0x56f231){const _0x55f10b=a225_0x1144,_0x137fb6=_0x156300();while(!![]){try{const _0x579400=-parseInt(_0x55f10b(0x150))/0x1+-parseInt(_0x55f10b(0x157))/0x2*(parseInt(_0x55f10b(0x154))/0x3)+-parseInt(_0x55f10b(0x14b))/0x4+-parseInt(_0x55f10b(0x146))/0x5*(parseInt(_0x55f10b(0x15f))/0x6)+parseInt(_0x55f10b(0x14d))/0x7+parseInt(_0x55f10b(0x151))/0x8*(-parseInt(_0x55f10b(0x152))/0x9)+parseInt(_0x55f10b(0x15a))/0xa;if(_0x579400===_0x56f231)break;else _0x137fb6['push'](_0x137fb6['shift']());}catch(_0x3f100a){_0x137fb6['push'](_0x137fb6['shift']());}}}(a225_0x5087,0x1acf6));function a225_0x1144(_0x47b49c,_0x28b96c){_0x47b49c=_0x47b49c-0x146;const _0x50871e=a225_0x5087();let _0x11449a=_0x50871e[_0x47b49c];return _0x11449a;}function a225_0x5087(){const _0x53033c=['WARNING','ERROR','19220whIDMw','info','829395qEfHiI','getMinutes','error','164657azWQDO','92648fcVIFC','9XtGets','getMonth','71835zfSdal','getMilliseconds','TRACE','8ldWnLW','debug','getTimezoneOffset','4219740iyoHsj','toUpperCase','DEBUG','getDate','padStart','153822bJRoIO','toString','WARN','30AfYyOv','getHours','INFO'];a225_0x5087=function(){return _0x53033c;};return a225_0x5087();}export var LogLevel;(function(_0x423918){const _0x477489=a225_0x1144;_0x423918[_0x423918[_0x477489(0x156)]=-0x2]=_0x477489(0x156),_0x423918[_0x423918[_0x477489(0x15c)]=-0x1]=_0x477489(0x15c),_0x423918[_0x423918[_0x477489(0x148)]=0x0]=_0x477489(0x148),_0x423918[_0x423918[_0x477489(0x161)]=0x1]='WARN',_0x423918[_0x423918[_0x477489(0x14a)]=0x2]=_0x477489(0x14a);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x2270d9){const _0x21d3f2=a225_0x1144;switch(_0x2270d9[_0x21d3f2(0x15b)]()){case _0x21d3f2(0x156):return LogLevel[_0x21d3f2(0x156)];case'DEBUG':return LogLevel[_0x21d3f2(0x15c)];case _0x21d3f2(0x148):return LogLevel[_0x21d3f2(0x148)];case _0x21d3f2(0x161):case _0x21d3f2(0x149):return LogLevel[_0x21d3f2(0x161)];case _0x21d3f2(0x14a):return LogLevel['ERROR'];default:return LogLevel[_0x21d3f2(0x148)];}}export function logLevelToString(_0x4e231c){const _0x171d46=a225_0x1144;switch(_0x4e231c){case LogLevel[_0x171d46(0x156)]:return'trace';case LogLevel[_0x171d46(0x15c)]:return _0x171d46(0x158);case LogLevel[_0x171d46(0x148)]:return _0x171d46(0x14c);case LogLevel[_0x171d46(0x161)]:return'warn';case LogLevel[_0x171d46(0x14a)]:return _0x171d46(0x14f);default:return _0x171d46(0x14c);}}export function formatTimestamp(_0x22c560){const _0xe38f39=a225_0x1144,_0x3866ca=_0x22c560['getFullYear'](),_0x30fbce=(_0x22c560[_0xe38f39(0x153)]()+0x1)[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x2,'0'),_0x51349d=_0x22c560[_0xe38f39(0x15d)]()[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x2,'0'),_0x5569a4=_0x22c560[_0xe38f39(0x147)]()[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x2,'0'),_0x357b33=_0x22c560[_0xe38f39(0x14e)]()[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x2,'0'),_0x18ba34=_0x22c560['getSeconds']()['toString']()[_0xe38f39(0x15e)](0x2,'0'),_0x472faf=_0x22c560[_0xe38f39(0x155)]()[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x3,'0'),_0x1d1226=-_0x22c560[_0xe38f39(0x159)](),_0x3e5b71=Math['floor'](Math['abs'](_0x1d1226)/0x3c),_0xf74b20=Math['abs'](_0x1d1226)%0x3c,_0x4016aa=_0x1d1226>=0x0?'+':'-',_0xe62741=''+_0x4016aa+_0x3e5b71[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x2,'0')+_0xf74b20[_0xe38f39(0x160)]()[_0xe38f39(0x15e)](0x2,'0');return _0x3866ca+'-'+_0x30fbce+'-'+_0x51349d+'\x20'+_0x5569a4+':'+_0x357b33+':'+_0x18ba34+'.'+_0x472faf+_0xe62741;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x422699,_0x346499){const _0x2bdb99=a226_0x3f10,_0x5cdb61=_0x422699();while(!![]){try{const _0x17d4df=parseInt(_0x2bdb99(0x141))/0x1*(parseInt(_0x2bdb99(0x13e))/0x2)+-parseInt(_0x2bdb99(0x137))/0x3+parseInt(_0x2bdb99(0x142))/0x4*(-parseInt(_0x2bdb99(0x139))/0x5)+parseInt(_0x2bdb99(0x144))/0x6+parseInt(_0x2bdb99(0x138))/0x7+parseInt(_0x2bdb99(0x13f))/0x8*(-parseInt(_0x2bdb99(0x143))/0x9)+parseInt(_0x2bdb99(0x145))/0xa;if(_0x17d4df===_0x346499)break;else _0x5cdb61['push'](_0x5cdb61['shift']());}catch(_0x20ab0e){_0x5cdb61['push'](_0x5cdb61['shift']());}}}(a226_0x354d,0x3aac8));function a226_0x3f10(_0x3bfb24,_0x4eea96){_0x3bfb24=_0x3bfb24-0x137;const _0x354d19=a226_0x354d();let _0x3f102e=_0x354d19[_0x3bfb24];return _0x3f102e;}export function validateLimitOption(_0x4f6a59){const _0x1bb3c6=a226_0x3f10;if(!Number[_0x1bb3c6(0x13c)](_0x4f6a59))return{'isValid':![],'error':_0x1bb3c6(0x13a)+_0x4f6a59+'.\x20Must\x20be\x20an\x20integer.'};if(_0x4f6a59<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x4f6a59+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x4f6a59};}export function validateTimeoutOption(_0x49041b,_0x3ab281=0x1e){const _0x196748=a226_0x3f10;if(_0x49041b===undefined)return{'isValid':!![],'value':_0x3ab281};const _0x711b22=typeof _0x49041b===_0x196748(0x13d)?_0x49041b:parseFloat(_0x49041b);if(isNaN(_0x711b22))return{'isValid':![],'error':_0x196748(0x13b)+_0x49041b+'.\x20Must\x20be\x20a\x20number.'};if(_0x711b22<=0x0)return{'isValid':![],'error':_0x196748(0x13b)+_0x711b22+_0x196748(0x140)};return{'isValid':!![],'value':_0x711b22};}function a226_0x354d(){const _0x1da2e8=['1155264zSYrET','3682720QbtxWo','930510xyFpmO','648760yYtRXs','355LvsXTr','Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','isInteger','number','8198CFjnzY','43696LdHZbW','.\x20Must\x20be\x20a\x20positive\x20number.','79hGmGTU','13276aylKON','315CfgLZB'];a226_0x354d=function(){return _0x1da2e8;};return a226_0x354d();}
|