@treasuredata/tdx 2026.3.7 → 2026.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.d.ts.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/profiles-command.js.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.d.ts.map +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/user-command.js.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.d.ts.map +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/oauth.js.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/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 a187_0x44d0(){const _0x31af26=['1767128Vsfuwf','length','3614215RliBEZ','all','41172HVzQxT','1940448WWcYsk','119eCGtQp','8197551nQKRZr','slice','99gpCYjF','20PzfpcM','8uduaKh','1026417kOQMDG','366968xsAqTo','map'];a187_0x44d0=function(){return _0x31af26;};return a187_0x44d0();}(function(_0x394535,_0x444a60){const _0x124337=a187_0x4d85,_0x25d3ef=_0x394535();while(!![]){try{const _0x5f01bb=parseInt(_0x124337(0x175))/0x1+parseInt(_0x124337(0x17c))/0x2*(-parseInt(_0x124337(0x172))/0x3)+parseInt(_0x124337(0x174))/0x4*(parseInt(_0x124337(0x17a))/0x5)+parseInt(_0x124337(0x17d))/0x6+parseInt(_0x124337(0x16f))/0x7*(-parseInt(_0x124337(0x176))/0x8)+-parseInt(_0x124337(0x170))/0x9+-parseInt(_0x124337(0x173))/0xa*(-parseInt(_0x124337(0x178))/0xb);if(_0x5f01bb===_0x444a60)break;else _0x25d3ef['push'](_0x25d3ef['shift']());}catch(_0x2cef2b){_0x25d3ef['push'](_0x25d3ef['shift']());}}}(a187_0x44d0,0xb6547));function a187_0x4d85(_0x351f57,_0x30cd16){_0x351f57=_0x351f57-0x16f;const _0x44d021=a187_0x44d0();let _0x4d853f=_0x44d021[_0x351f57];return _0x4d853f;}export async function batchAsync(_0xf86f8a,_0x501aec,_0x2b2c02=0xa){const _0x6b6385=a187_0x4d85,_0x522131=[];for(let _0x4d28ed=0x0;_0x4d28ed<_0xf86f8a[_0x6b6385(0x179)];_0x4d28ed+=_0x2b2c02){const _0x3acd23=_0xf86f8a[_0x6b6385(0x171)](_0x4d28ed,_0x4d28ed+_0x2b2c02),_0x551062=await Promise[_0x6b6385(0x17b)](_0x3acd23[_0x6b6385(0x177)](_0x501aec));_0x522131['push'](..._0x551062);}return _0x522131;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x23c45e=a188_0x1eed;(function(_0x3c8c38,_0x7b4435){const _0x1b68e0=a188_0x1eed,_0x10732e=_0x3c8c38();while(!![]){try{const _0x5c45d4=parseInt(_0x1b68e0(0x94))/0x1*(parseInt(_0x1b68e0(0x7c))/0x2)+parseInt(_0x1b68e0(0x96))/0x3+-parseInt(_0x1b68e0(0x83))/0x4*(parseInt(_0x1b68e0(0x7f))/0x5)+-parseInt(_0x1b68e0(0x7d))/0x6+parseInt(_0x1b68e0(0x84))/0x7+-parseInt(_0x1b68e0(0x93))/0x8*(parseInt(_0x1b68e0(0x87))/0x9)+-parseInt(_0x1b68e0(0x91))/0xa;if(_0x5c45d4===_0x7b4435)break;else _0x10732e['push'](_0x10732e['shift']());}catch(_0x395b12){_0x10732e['push'](_0x10732e['shift']());}}}(a188_0x2dde,0x39fc8));function a188_0x2dde(){const _0x5cbce2=['Chalk','78845mnbzCj','boolean','stringify','object','76kMGXBD','3258388TcnlMm','string','repeat','1513998mOiKnc','cyan','isArray','length','number','color','green','map','null','entries','1002500MtEksA','noColor','8FTYGYd','19457nfbAKd','yellow','443121baroJn','stdout','isTTY','join','dim','28qjcqzt','479964XhyIHm'];a188_0x2dde=function(){return _0x5cbce2;};return a188_0x2dde();}import*as a188_0xdd9f80 from'chalk';const Chalk=a188_0xdd9f80[a188_0x23c45e(0x7e)];export function shouldUseColor(_0x5b8bc0={}){const _0x36968d=a188_0x23c45e;if(_0x5b8bc0[_0x36968d(0x92)]===!![])return![];if(_0x5b8bc0[_0x36968d(0x8c)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x36968d(0x97)][_0x36968d(0x79)]??![];}export function getChalk(_0x30bc04={}){if(shouldUseColor(_0x30bc04))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4583a7,_0x4eefd8={}){return getChalk(_0x4eefd8)['dim'](_0x4583a7);}export function colorHeader(_0x55ca40,_0x277b6e={}){const _0x4b1741=a188_0x23c45e;return getChalk(_0x277b6e)[_0x4b1741(0x88)](_0x55ca40);}export function colorType(_0xe2a86e,_0x40add5={}){const _0x4af455=a188_0x23c45e;return getChalk(_0x40add5)[_0x4af455(0x7b)](_0xe2a86e);}export function colorJSONKey(_0x5637af,_0x5131e6={}){return getChalk(_0x5131e6)['blue'](_0x5637af);}export function colorJSONString(_0xeb8e1c,_0x2a71c={}){const _0x4b1bce=a188_0x23c45e;return getChalk(_0x2a71c)[_0x4b1bce(0x8d)](_0xeb8e1c);}export function colorJSONNumber(_0x3f7a16,_0x3be544={}){const _0x1817a7=a188_0x23c45e;return getChalk(_0x3be544)[_0x1817a7(0x88)](_0x3f7a16);}function a188_0x1eed(_0x4cc027,_0xc0f160){_0x4cc027=_0x4cc027-0x79;const _0x2dde1d=a188_0x2dde();let _0x1eed98=_0x2dde1d[_0x4cc027];return _0x1eed98;}export function colorJSONBoolean(_0x4a5355,_0x5cf0a5={}){const _0x224fe3=a188_0x23c45e;return getChalk(_0x5cf0a5)[_0x224fe3(0x95)](_0x4a5355);}export function colorJSONNull(_0x227500,_0x137f10={}){return getChalk(_0x137f10)['dim'](_0x227500);}export function colorizeJSONCompact(_0xebb932,_0x385268={}){const _0x2bd2d4=a188_0x23c45e;if(!shouldUseColor(_0x385268))return JSON[_0x2bd2d4(0x81)](_0xebb932);if(_0xebb932===null)return colorJSONNull(_0x2bd2d4(0x8f),_0x385268);if(typeof _0xebb932==='boolean')return colorJSONBoolean(String(_0xebb932),_0x385268);if(typeof _0xebb932==='number')return colorJSONNumber(String(_0xebb932),_0x385268);if(typeof _0xebb932==='string')return colorJSONString(JSON[_0x2bd2d4(0x81)](_0xebb932),_0x385268);if(Array[_0x2bd2d4(0x89)](_0xebb932)){if(_0xebb932['length']===0x0)return'[]';const _0x4ad98b=_0xebb932[_0x2bd2d4(0x8e)](_0x2a32c1=>colorizeJSONCompact(_0x2a32c1,_0x385268));return'['+_0x4ad98b[_0x2bd2d4(0x7a)](',')+']';}if(typeof _0xebb932==='object'){const _0x250547=Object[_0x2bd2d4(0x90)](_0xebb932);if(_0x250547[_0x2bd2d4(0x8a)]===0x0)return'{}';const _0x4f69f3=_0x250547[_0x2bd2d4(0x8e)](([_0x2e624a,_0x4d635a])=>{const _0x3dc970=_0x2bd2d4,_0x114be0=colorJSONKey(JSON[_0x3dc970(0x81)](_0x2e624a),_0x385268),_0x5f08d4=colorizeJSONCompact(_0x4d635a,_0x385268);return _0x114be0+':'+_0x5f08d4;});return'{'+_0x4f69f3['join'](',')+'}';}return String(_0xebb932);}export function colorizeJSON(_0x4a4091,_0x481ec7={},_0xc00d25=0x0){const _0x2a950c=a188_0x23c45e;if(!shouldUseColor(_0x481ec7))return JSON[_0x2a950c(0x81)](_0x4a4091,null,0x2);const _0x52c8c9='\x20'[_0x2a950c(0x86)](_0xc00d25),_0x589e76=_0xc00d25+0x2;if(_0x4a4091===null)return colorJSONNull(_0x2a950c(0x8f),_0x481ec7);if(typeof _0x4a4091===_0x2a950c(0x80))return colorJSONBoolean(String(_0x4a4091),_0x481ec7);if(typeof _0x4a4091===_0x2a950c(0x8b))return colorJSONNumber(String(_0x4a4091),_0x481ec7);if(typeof _0x4a4091===_0x2a950c(0x85))return colorJSONString(JSON['stringify'](_0x4a4091),_0x481ec7);if(Array['isArray'](_0x4a4091)){if(_0x4a4091['length']===0x0)return'[]';const _0x36ecc6=_0x4a4091[_0x2a950c(0x8e)](_0x4800ba=>{const _0x1ee9b8=_0x2a950c,_0x21a699=colorizeJSON(_0x4800ba,_0x481ec7,_0x589e76);return''+'\x20'[_0x1ee9b8(0x86)](_0x589e76)+_0x21a699;});return'[\x0a'+_0x36ecc6[_0x2a950c(0x7a)](',\x0a')+('\x0a'+_0x52c8c9+']');}if(typeof _0x4a4091===_0x2a950c(0x82)){const _0x1c7c7d=Object[_0x2a950c(0x90)](_0x4a4091);if(_0x1c7c7d[_0x2a950c(0x8a)]===0x0)return'{}';const _0x7b84a=_0x1c7c7d[_0x2a950c(0x8e)](([_0x2f5ddd,_0x4bfea6])=>{const _0x5e3d5e=_0x2a950c,_0x56d180=colorJSONKey(JSON[_0x5e3d5e(0x81)](_0x2f5ddd),_0x481ec7),_0x3ec5c3=colorizeJSON(_0x4bfea6,_0x481ec7,_0x589e76);return''+'\x20'[_0x5e3d5e(0x86)](_0x589e76)+_0x56d180+':\x20'+_0x3ec5c3;});return'{\x0a'+_0x7b84a[_0x2a950c(0x7a)](',\x0a')+('\x0a'+_0x52c8c9+'}');}return String(_0x4a4091);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a189_0x4196(){const _0x39c964=['new','unchanged','28386TlNVMW','\x20\x20\x20','\x20-\x20','length','old','forEach','join','push','84nXFGye','\x20+\x20','327215DxaHSG','3131584HOkxFl','type','\x20\x20...','102524OYDrBe','repeat','red','80EkJJVx','added','cyan','118146tXGNDI','content','2282076TSLUaL','fill','some','unshift','removed','2666695udlkJh','padStart','dim','66MMvgOy','max','split','min','green','add'];a189_0x4196=function(){return _0x39c964;};return a189_0x4196();}(function(_0x146885,_0x5f2f6f){const _0x12e73b=a189_0x1db8,_0x39b439=_0x146885();while(!![]){try{const _0x2bf956=-parseInt(_0x12e73b(0xf3))/0x1+parseInt(_0x12e73b(0x10f))/0x2+parseInt(_0x12e73b(0x107))/0x3*(-parseInt(_0x12e73b(0xf7))/0x4)+-parseInt(_0x12e73b(0x104))/0x5+-parseInt(_0x12e73b(0xfd))/0x6*(-parseInt(_0x12e73b(0x117))/0x7)+-parseInt(_0x12e73b(0xf4))/0x8+-parseInt(_0x12e73b(0xff))/0x9*(-parseInt(_0x12e73b(0xfa))/0xa);if(_0x2bf956===_0x5f2f6f)break;else _0x39b439['push'](_0x39b439['shift']());}catch(_0x4809ec){_0x39b439['push'](_0x39b439['shift']());}}}(a189_0x4196,0x71109));import a189_0x4f13f3 from'chalk';export function generateDiff(_0x2691cc,_0x58fa27){const _0x521f13=a189_0x1db8,_0xbef3de=_0x2691cc[_0x521f13(0x109)]('\x0a'),_0x16374d=_0x58fa27[_0x521f13(0x109)]('\x0a'),_0x2ae22e=[],_0x143a66=computeLCS(_0xbef3de,_0x16374d);let _0x58f926=0x0,_0x17eb14=0x0,_0x2f442a=0x0;while(_0x58f926<_0xbef3de[_0x521f13(0x112)]||_0x17eb14<_0x16374d[_0x521f13(0x112)]){if(_0x2f442a<_0x143a66[_0x521f13(0x112)]&&_0x58f926<_0xbef3de[_0x521f13(0x112)]&&_0xbef3de[_0x58f926]===_0x143a66[_0x2f442a])_0x17eb14<_0x16374d['length']&&_0x16374d[_0x17eb14]===_0x143a66[_0x2f442a]?(_0x2ae22e['push']({'type':_0x521f13(0x10e),'content':_0xbef3de[_0x58f926]}),_0x58f926++,_0x17eb14++,_0x2f442a++):(_0x2ae22e['push']({'type':_0x521f13(0xfb),'content':_0x16374d[_0x17eb14]}),_0x17eb14++);else{if(_0x2f442a<_0x143a66[_0x521f13(0x112)]&&_0x17eb14<_0x16374d[_0x521f13(0x112)]&&_0x16374d[_0x17eb14]===_0x143a66[_0x2f442a])_0x2ae22e['push']({'type':_0x521f13(0x103),'content':_0xbef3de[_0x58f926]}),_0x58f926++;else{if(_0x58f926<_0xbef3de[_0x521f13(0x112)]&&(_0x2f442a>=_0x143a66[_0x521f13(0x112)]||_0xbef3de[_0x58f926]!==_0x143a66[_0x2f442a]))_0x2ae22e['push']({'type':'removed','content':_0xbef3de[_0x58f926]}),_0x58f926++;else _0x17eb14<_0x16374d['length']&&(_0x2ae22e[_0x521f13(0x116)]({'type':_0x521f13(0xfb),'content':_0x16374d[_0x17eb14]}),_0x17eb14++);}}}return _0x2ae22e;}function a189_0x1db8(_0x3dfd77,_0x126510){_0x3dfd77=_0x3dfd77-0xf3;const _0x41962b=a189_0x4196();let _0x1db86=_0x41962b[_0x3dfd77];return _0x1db86;}function computeLCS(_0x1b92db,_0x4a8fc4){const _0x38cd4d=a189_0x1db8,_0x426e8d=_0x1b92db[_0x38cd4d(0x112)],_0xb36309=_0x4a8fc4[_0x38cd4d(0x112)],_0x38c02c=Array(_0x426e8d+0x1)['fill'](null)['map'](()=>Array(_0xb36309+0x1)[_0x38cd4d(0x100)](0x0));for(let _0x521896=0x1;_0x521896<=_0x426e8d;_0x521896++){for(let _0x1d8398=0x1;_0x1d8398<=_0xb36309;_0x1d8398++){_0x1b92db[_0x521896-0x1]===_0x4a8fc4[_0x1d8398-0x1]?_0x38c02c[_0x521896][_0x1d8398]=_0x38c02c[_0x521896-0x1][_0x1d8398-0x1]+0x1:_0x38c02c[_0x521896][_0x1d8398]=Math[_0x38cd4d(0x108)](_0x38c02c[_0x521896-0x1][_0x1d8398],_0x38c02c[_0x521896][_0x1d8398-0x1]);}}const _0x5eede8=[];let _0xb29914=_0x426e8d,_0x1816e9=_0xb36309;while(_0xb29914>0x0&&_0x1816e9>0x0){if(_0x1b92db[_0xb29914-0x1]===_0x4a8fc4[_0x1816e9-0x1])_0x5eede8[_0x38cd4d(0x102)](_0x1b92db[_0xb29914-0x1]),_0xb29914--,_0x1816e9--;else _0x38c02c[_0xb29914-0x1][_0x1816e9]>_0x38c02c[_0xb29914][_0x1816e9-0x1]?_0xb29914--:_0x1816e9--;}return _0x5eede8;}export function formatDiffWithColors(_0x4ecdb1,_0x18c5f9=0x3){const _0x15d603=a189_0x1db8,_0x55c7b5=new Set();_0x4ecdb1[_0x15d603(0x114)]((_0x231b5c,_0x14cad8)=>{const _0x3089d9=_0x15d603;_0x231b5c[_0x3089d9(0xf5)]!==_0x3089d9(0x10e)&&_0x55c7b5['add'](_0x14cad8);});if(_0x55c7b5['size']===0x0)return'';const _0x31beae=new Set();for(const _0x25111 of _0x55c7b5){for(let _0xc0013a=Math[_0x15d603(0x108)](0x0,_0x25111-_0x18c5f9);_0xc0013a<=Math[_0x15d603(0x10a)](_0x4ecdb1['length']-0x1,_0x25111+_0x18c5f9);_0xc0013a++){_0x31beae[_0x15d603(0x10c)](_0xc0013a);}}const _0x36127c=[];let _0x113bf7=-0x1;const _0xaf6b46=_0x4ecdb1[_0x15d603(0x112)],_0x450a79=Math[_0x15d603(0x108)](0x3,String(_0xaf6b46)[_0x15d603(0x112)]),_0x5af91c=[];let _0x42b2e5=0x0,_0xc8e846=0x0;for(const _0x1ace04 of _0x4ecdb1){if(_0x1ace04[_0x15d603(0xf5)]==='removed')_0x42b2e5++,_0x5af91c[_0x15d603(0x116)]({'old':_0x42b2e5,'new':0x0});else _0x1ace04[_0x15d603(0xf5)]==='added'?(_0xc8e846++,_0x5af91c[_0x15d603(0x116)]({'old':0x0,'new':_0xc8e846})):(_0x42b2e5++,_0xc8e846++,_0x5af91c[_0x15d603(0x116)]({'old':_0x42b2e5,'new':_0xc8e846}));}for(let _0x170d22=0x0;_0x170d22<_0x4ecdb1[_0x15d603(0x112)];_0x170d22++){if(!_0x31beae['has'](_0x170d22))continue;_0x113bf7!==-0x1&&_0x170d22>_0x113bf7+0x1&&_0x36127c[_0x15d603(0x116)](a189_0x4f13f3[_0x15d603(0xfc)](_0x15d603(0xf6)));_0x113bf7=_0x170d22;const _0x186534=_0x4ecdb1[_0x170d22],_0x50af13=_0x5af91c[_0x170d22],_0x6384e0=_0x50af13[_0x15d603(0x113)]>0x0?String(_0x50af13[_0x15d603(0x113)])[_0x15d603(0x105)](_0x450a79):'\x20'[_0x15d603(0xf8)](_0x450a79),_0x867bde=_0x50af13[_0x15d603(0x10d)]>0x0?String(_0x50af13[_0x15d603(0x10d)])[_0x15d603(0x105)](_0x450a79):'\x20'['repeat'](_0x450a79);switch(_0x186534[_0x15d603(0xf5)]){case'removed':_0x36127c['push'](a189_0x4f13f3[_0x15d603(0xf9)](_0x6384e0+'\x20'+_0x867bde+_0x15d603(0x111)+_0x186534[_0x15d603(0xfe)]));break;case _0x15d603(0xfb):_0x36127c['push'](a189_0x4f13f3[_0x15d603(0x10b)](_0x6384e0+'\x20'+_0x867bde+_0x15d603(0x118)+_0x186534[_0x15d603(0xfe)]));break;default:_0x36127c['push'](a189_0x4f13f3[_0x15d603(0x106)](_0x6384e0+'\x20'+_0x867bde+_0x15d603(0x110)+_0x186534[_0x15d603(0xfe)]));break;}}return _0x36127c[_0x15d603(0x115)]('\x0a');}export function hasChanges(_0x4f6c7e){const _0x2a7754=a189_0x1db8;return _0x4f6c7e[_0x2a7754(0x101)](_0x2deabe=>_0x2deabe[_0x2a7754(0xf5)]!==_0x2a7754(0x10e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ae80d,_0x3b1ac1){const _0x255fc1=a190_0x56b8,_0x47e272=_0x4ae80d();while(!![]){try{const _0x48968f=-parseInt(_0x255fc1(0x11c))/0x1*(-parseInt(_0x255fc1(0x10c))/0x2)+-parseInt(_0x255fc1(0x10f))/0x3+-parseInt(_0x255fc1(0x11d))/0x4+parseInt(_0x255fc1(0x11a))/0x5*(parseInt(_0x255fc1(0x117))/0x6)+parseInt(_0x255fc1(0x115))/0x7*(parseInt(_0x255fc1(0x113))/0x8)+-parseInt(_0x255fc1(0x10b))/0x9+parseInt(_0x255fc1(0x10a))/0xa;if(_0x48968f===_0x3b1ac1)break;else _0x47e272['push'](_0x47e272['shift']());}catch(_0xd2c809){_0x47e272['push'](_0x47e272['shift']());}}}(a190_0x5b88,0x93549));import*as a190_0x58f06a from'node:fs';import*as a190_0x43c602 from'node:path';export function setSecureFilePermissions(_0x4d783e){const _0x54119f=a190_0x56b8;try{a190_0x58f06a['chmodSync'](_0x4d783e,0x180);}catch{console[_0x54119f(0x111)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4d783e);}}export function setSecureDirectoryPermissions(_0x3a25b0){const _0x173178=a190_0x56b8;try{a190_0x58f06a[_0x173178(0x119)](_0x3a25b0,0x1c0);}catch{console[_0x173178(0x111)](_0x173178(0x114)+_0x3a25b0);}}export function createSecureDirectory(_0x45cfc8){const _0x4f0348=a190_0x56b8;!a190_0x58f06a[_0x4f0348(0x10d)](_0x45cfc8)&&(a190_0x58f06a[_0x4f0348(0x110)](_0x45cfc8,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x45cfc8));}function a190_0x5b88(){const _0x4a1691=['writeFileSync','statSync','13455110MYRxEZ','8074593aVosun','10sgUMAP','existsSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','2894031iOZmwq','mkdirSync','warn','Warning:\x20','42784IsOpXV','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1253SjBWKM','toString','6WEnoCM','mode','chmodSync','5523355UwbiJU','dirname','21016DEzpZI','4188940hAyHdN'];a190_0x5b88=function(){return _0x4a1691;};return a190_0x5b88();}function a190_0x56b8(_0x29dbd5,_0x526485){_0x29dbd5=_0x29dbd5-0x10a;const _0x5b88a6=a190_0x5b88();let _0x56b855=_0x5b88a6[_0x29dbd5];return _0x56b855;}export function validateSecureFilePermissions(_0xa84381){const _0x21e9be=a190_0x56b8;try{const _0x2b34ab=a190_0x58f06a[_0x21e9be(0x11f)](_0xa84381),_0x39dd2=_0x2b34ab[_0x21e9be(0x118)]&0x1ff,_0x3b7c0a=(_0x39dd2&0x3f)!==0x0;if(_0x3b7c0a)return console[_0x21e9be(0x111)](_0x21e9be(0x112)+_0xa84381+'\x20has\x20insecure\x20permissions\x20('+_0x39dd2[_0x21e9be(0x116)](0x8)+').\x20'+_0x21e9be(0x10e)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x517e8c,_0x86c4e7){const _0x3f0efb=a190_0x56b8,_0x212732=a190_0x43c602[_0x3f0efb(0x11b)](_0x517e8c);createSecureDirectory(_0x212732),a190_0x58f06a[_0x3f0efb(0x11e)](_0x517e8c,_0x86c4e7,{'mode':0x180}),setSecureFilePermissions(_0x517e8c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x25eb8b,_0x362c12){const _0x2e394c=a191_0x4fb0,_0x16e00e=_0x25eb8b();while(!![]){try{const _0x4e5025=-parseInt(_0x2e394c(0x13e))/0x1+parseInt(_0x2e394c(0x139))/0x2+parseInt(_0x2e394c(0x12f))/0x3+-parseInt(_0x2e394c(0x13d))/0x4*(parseInt(_0x2e394c(0x13f))/0x5)+parseInt(_0x2e394c(0x132))/0x6*(parseInt(_0x2e394c(0x136))/0x7)+-parseInt(_0x2e394c(0x130))/0x8+-parseInt(_0x2e394c(0x137))/0x9*(parseInt(_0x2e394c(0x12e))/0xa);if(_0x4e5025===_0x362c12)break;else _0x16e00e['push'](_0x16e00e['shift']());}catch(_0x41bc29){_0x16e00e['push'](_0x16e00e['shift']());}}}(a191_0x3f98,0xd755b));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x4fb0(_0x215381,_0x442417){_0x215381=_0x215381-0x12e;const _0x3f98ea=a191_0x3f98();let _0x4fb05f=_0x3f98ea[_0x215381];return _0x4fb05f;}function a191_0x3f98(){const _0x24222a=['code','3520292KSfwMt','File\x20\x27','EACCES','Error\x20reading\x20file\x20\x27','4SLzWga','423822ZHswDE','2743115TBVTso','\x27\x20not\x20found','INTERNAL','\x27:\x20','18444570pLnBRj','3903510pqmmYu','6491600eeDqaF','utf-8','606aUqPDI','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file\x20\x27','ENOENT','100429mToBkA','9FDvPsh'];a191_0x3f98=function(){return _0x24222a;};return a191_0x3f98();}export function readFileContent(_0x3ab1e0){const _0x17f70a=a191_0x4fb0;try{return readFileSync(_0x3ab1e0,_0x17f70a(0x131));}catch(_0x41ab66){const _0xfa6bbf=_0x41ab66[_0x17f70a(0x138)];if(_0xfa6bbf===_0x17f70a(0x135))throw new SDKError(ErrorCode['NOT_FOUND'],_0x17f70a(0x13a)+_0x3ab1e0+_0x17f70a(0x140),_0x41ab66);else{if(_0xfa6bbf===_0x17f70a(0x13b))throw new SDKError(ErrorCode[_0x17f70a(0x133)],_0x17f70a(0x134)+_0x3ab1e0+'\x27',_0x41ab66);else throw new SDKError(ErrorCode[_0x17f70a(0x141)],_0x17f70a(0x13c)+_0x3ab1e0+_0x17f70a(0x142)+_0x41ab66['message'],_0x41ab66);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1718ae,_0x2f6795){const _0x3ee8b1=a192_0x409c,_0x4ed562=_0x1718ae();while(!![]){try{const _0x5ca27e=-parseInt(_0x3ee8b1(0x108))/0x1*(parseInt(_0x3ee8b1(0x10e))/0x2)+parseInt(_0x3ee8b1(0x102))/0x3+parseInt(_0x3ee8b1(0x113))/0x4+parseInt(_0x3ee8b1(0x105))/0x5*(-parseInt(_0x3ee8b1(0x112))/0x6)+-parseInt(_0x3ee8b1(0x111))/0x7*(parseInt(_0x3ee8b1(0xfc))/0x8)+-parseInt(_0x3ee8b1(0x11a))/0x9*(parseInt(_0x3ee8b1(0x100))/0xa)+parseInt(_0x3ee8b1(0x10d))/0xb;if(_0x5ca27e===_0x2f6795)break;else _0x4ed562['push'](_0x4ed562['shift']());}catch(_0x3a8f46){_0x4ed562['push'](_0x4ed562['shift']());}}}(a192_0x19ad,0xbb344));function a192_0x19ad(){const _0x23499e=['toString','/releases?per_page=20','application/vnd.github+json','timeout','4929352nBrsbT','next','fetchedAt','resolve','10fEzGTJ','set','2475753lQUtSg','prerelease','api.github.com','1545205HSOzYO','/repos/','GitHub\x20API\x20returned\x20','51fUcUaj','tag_name','slice','parse','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','28494180UQeXLl','16194uDyvlp','destroy','end','7OYdaPF','24rxzBxF','2040380dUtEvQ','get','error','find','releases','statusCode','now','8042922kcyUJn'];a192_0x19ad=function(){return _0x23499e;};return a192_0x19ad();}function a192_0x409c(_0x199641,_0x258b6a){_0x199641=_0x199641-0xf9;const _0x19ad28=a192_0x19ad();let _0x409c75=_0x19ad28[_0x199641];return _0x409c75;}import*as a192_0x127ea3 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x11902c,_0x2ed9b6,_0x2830fd){const _0x18510d=a192_0x409c,_0x3d8813=_0x11902c+'/'+_0x2ed9b6,_0xee3399=cache[_0x18510d(0x114)](_0x3d8813);if(_0xee3399&&Date[_0x18510d(0x119)]()-_0xee3399[_0x18510d(0xfe)]<CACHE_TTL_MS)return Promise[_0x18510d(0xff)](_0xee3399[_0x18510d(0x117)]);return new Promise((_0x1faa09,_0xe72463)=>{const _0x3a7c0d=_0x18510d,_0x1ab57e={'hostname':_0x3a7c0d(0x104),'path':_0x3a7c0d(0x106)+_0x11902c+'/'+_0x2ed9b6+_0x3a7c0d(0xf9),'headers':{'User-Agent':_0x2830fd,'Accept':_0x3a7c0d(0xfa)},'timeout':REQUEST_TIMEOUT_MS},_0x5c5edb=a192_0x127ea3[_0x3a7c0d(0x114)](_0x1ab57e,_0x53e10f=>{const _0x2f218a=_0x3a7c0d;let _0x38629a='';_0x53e10f['on']('data',_0x567398=>{const _0x4be49c=a192_0x409c;_0x38629a+=_0x567398[_0x4be49c(0x11b)]();}),_0x53e10f['on'](_0x2f218a(0x110),()=>{const _0x314d70=_0x2f218a;if(_0x53e10f[_0x314d70(0x118)]!==0xc8){_0xe72463(new Error(_0x314d70(0x107)+_0x53e10f[_0x314d70(0x118)]+':\x20'+_0x38629a[_0x314d70(0x10a)](0x0,0xc8)));return;}try{const _0x2dfc3a=JSON[_0x314d70(0x10b)](_0x38629a);cache[_0x314d70(0x101)](_0x3d8813,{'releases':_0x2dfc3a,'fetchedAt':Date[_0x314d70(0x119)]()}),_0x1faa09(_0x2dfc3a);}catch(_0x343f37){_0xe72463(_0x343f37);}});});_0x5c5edb['on'](_0x3a7c0d(0xfb),()=>{const _0x4fb98d=_0x3a7c0d;_0x5c5edb[_0x4fb98d(0x10f)](),_0xe72463(new Error(_0x4fb98d(0x10c)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5c5edb['on'](_0x3a7c0d(0x115),_0xe72463);});}export async function resolveReleaseTag(_0x34e5be,_0x4587ee,_0x5cd1ce,_0x24dbb0){const _0x1d488b=a192_0x409c,_0x25d7e9=await fetchGitHubReleases(_0x4587ee,_0x5cd1ce,_0x24dbb0);if(_0x25d7e9['length']===0x0)return null;if(_0x34e5be===_0x1d488b(0xfd))return _0x25d7e9[0x0][_0x1d488b(0x109)];const _0x21e7ce=_0x25d7e9[_0x1d488b(0x116)](_0xf650d2=>!_0xf650d2[_0x1d488b(0x103)]);return _0x21e7ce?_0x21e7ce['tag_name']:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x318ee6,_0x3a2db9){const _0x1dae15=a193_0x5c6a,_0x4487c0=_0x318ee6();while(!![]){try{const _0x13da71=-parseInt(_0x1dae15(0xb4))/0x1*(parseInt(_0x1dae15(0xb1))/0x2)+parseInt(_0x1dae15(0xa9))/0x3+parseInt(_0x1dae15(0xb6))/0x4*(-parseInt(_0x1dae15(0xb5))/0x5)+-parseInt(_0x1dae15(0xb8))/0x6+-parseInt(_0x1dae15(0xb0))/0x7+-parseInt(_0x1dae15(0xaa))/0x8*(-parseInt(_0x1dae15(0xa4))/0x9)+parseInt(_0x1dae15(0xa5))/0xa*(parseInt(_0x1dae15(0xbb))/0xb);if(_0x13da71===_0x3a2db9)break;else _0x4487c0['push'](_0x4487c0['shift']());}catch(_0x56d059){_0x4487c0['push'](_0x4487c0['shift']());}}}(a193_0xe2b5,0x32aa7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a193_0x5c6a(_0x4e539d,_0x25bef4){_0x4e539d=_0x4e539d-0xa4;const _0xe2b52d=a193_0xe2b5();let _0x5c6aff=_0xe2b52d[_0x4e539d];return _0x5c6aff;}function a193_0xe2b5(){const _0x15b67a=['tdx','230NJpAzQ','23410EaEHzZ','156ODtRJo','clear','1832412DsbiaX','get','default','77BHSOtd','108nxwINE','1137930tZmsMz','Global\x20cache\x20key\x20\x22','{profile}','parse','713994jKvDWg','169384ZKFMCH','\x22,\x20cannot\x20register\x20for\x20\x22','trim','utf-8','set','\x22\x20already\x20registered\x20by\x20\x22','1733466QNSuzX','3004xqlHrl','replace'];a193_0xe2b5=function(){return _0x15b67a;};return a193_0xe2b5();}import{homedir}from'os';export function getGlobalCacheDir(){const _0x3acaa3=a193_0x5c6a;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x3acaa3(0xb3));}const registry=new Map();export function registerGlobalCacheKey(_0x4e1f28,_0x557004){const _0x3ff881=a193_0x5c6a,_0x21bce3=registry[_0x3ff881(0xb9)](_0x4e1f28);if(_0x21bce3&&_0x21bce3!==_0x557004)throw new Error(_0x3ff881(0xa6)+_0x4e1f28+_0x3ff881(0xaf)+_0x21bce3+_0x3ff881(0xab)+_0x557004+'\x22');registry[_0x3ff881(0xae)](_0x4e1f28,_0x557004);}export function getGlobalCachePath(_0x4a4f68){return join(getGlobalCacheDir(),_0x4a4f68);}function ensureGlobalCacheDir(){const _0x114711=getGlobalCacheDir();!existsSync(_0x114711)&&mkdirSync(_0x114711,{'recursive':!![]});}function readCacheJson(_0xf792b1){const _0x3d8956=a193_0x5c6a,_0xf5d438=getGlobalCachePath(_0xf792b1);if(!existsSync(_0xf5d438))return undefined;try{const _0x205386=readFileSync(_0xf5d438,'utf-8');return JSON[_0x3d8956(0xa8)](_0x205386);}catch{return undefined;}}function writeCacheJson(_0x58f5d4,_0x201876){const _0x30eb6b=a193_0x5c6a;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x58f5d4),JSON['stringify'](_0x201876,null,0x2),_0x30eb6b(0xad));}function readCacheText(_0x59a51a){const _0x7ff9f9=a193_0x5c6a,_0x22caa0=getGlobalCachePath(_0x59a51a);if(!existsSync(_0x22caa0))return undefined;try{return readFileSync(_0x22caa0,_0x7ff9f9(0xad));}catch{return undefined;}}function writeCacheText(_0x4e421d,_0xb382a7){const _0x434f33=a193_0x5c6a;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4e421d),_0xb382a7,_0x434f33(0xad));}function clearCache(_0x4dd0b9){const _0x37ebf8=getGlobalCachePath(_0x4dd0b9);if(existsSync(_0x37ebf8))try{unlinkSync(_0x37ebf8);}catch{}}function cacheExists(_0x1f40b1){return existsSync(getGlobalCachePath(_0x1f40b1));}export function createGlobalCache(_0x2105d3,_0x5b5dd7){return registerGlobalCacheKey(_0x2105d3,_0x5b5dd7),{'read':()=>readCacheJson(_0x2105d3),'write':_0x4e3d34=>writeCacheJson(_0x2105d3,_0x4e3d34),'clear':()=>clearCache(_0x2105d3),'exists':()=>cacheExists(_0x2105d3),'path':()=>getGlobalCachePath(_0x2105d3)};}export function createGlobalTextCache(_0x39b1a6,_0x596a8a){const _0x5a4d21=a193_0x5c6a;return registerGlobalCacheKey(_0x39b1a6,_0x596a8a),{'read':()=>readCacheText(_0x39b1a6)?.[_0x5a4d21(0xac)]()||undefined,'write':_0x117fe6=>writeCacheText(_0x39b1a6,_0x117fe6),'clear':()=>clearCache(_0x39b1a6),'exists':()=>cacheExists(_0x39b1a6),'path':()=>getGlobalCachePath(_0x39b1a6)};}export function createProfileCache(_0x1ec218,_0x8fc740){const _0x548a38=_0x424de1=>{const _0x39d4a5=a193_0x5c6a,_0x2f916b=_0x424de1||_0x39d4a5(0xba);return _0x1ec218[_0x39d4a5(0xb2)](_0x39d4a5(0xa7),_0x2f916b);};return{'read':_0x1d0f3e=>{const _0x40f83e=_0x548a38(_0x1d0f3e);return registerGlobalCacheKey(_0x40f83e,_0x8fc740),readCacheJson(_0x40f83e);},'write':(_0x4d6a1a,_0x229df7)=>{const _0x42bfbb=_0x548a38(_0x4d6a1a);registerGlobalCacheKey(_0x42bfbb,_0x8fc740),writeCacheJson(_0x42bfbb,_0x229df7);},'clear':_0x19c5a6=>{const _0x2a8409=_0x548a38(_0x19c5a6);clearCache(_0x2a8409);},'exists':_0x39547d=>{const _0x214554=_0x548a38(_0x39547d);return cacheExists(_0x214554);},'path':_0x1a66f6=>{const _0x434d5f=_0x548a38(_0x1a66f6);return getGlobalCachePath(_0x434d5f);}};}export function createOptionalProfileCache(_0x49d60c,_0xf0de6a,_0x2132aa={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2132aa,_0x19e04c=_0x549fae=>{return _0x549fae?''+_0x49d60c+profileSeparator+_0x549fae+suffix:''+_0x49d60c+suffix;};return{'read':_0x1aae05=>{const _0x2ac0b1=_0x19e04c(_0x1aae05);return registerGlobalCacheKey(_0x2ac0b1,_0xf0de6a),readCacheJson(_0x2ac0b1);},'write':(_0x28cc3e,_0x525592)=>{const _0x1952b8=_0x19e04c(_0x525592);registerGlobalCacheKey(_0x1952b8,_0xf0de6a),writeCacheJson(_0x1952b8,_0x28cc3e);},'clear':_0x4c6009=>{const _0x567770=_0x19e04c(_0x4c6009);clearCache(_0x567770);},'exists':_0x28b16f=>{const _0x470c94=_0x19e04c(_0x28b16f);return cacheExists(_0x470c94);},'path':_0x1cca12=>{const _0x4efd3c=_0x19e04c(_0x1cca12);return getGlobalCachePath(_0x4efd3c);}};}export function clearGlobalRegistry(){const _0x1e7020=a193_0x5c6a;registry[_0x1e7020(0xb7)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58b4e4,_0x2d956d){const _0x14df6b=a194_0x595f,_0x130179=_0x58b4e4();while(!![]){try{const _0x521083=-parseInt(_0x14df6b(0x95))/0x1+-parseInt(_0x14df6b(0x82))/0x2*(-parseInt(_0x14df6b(0x8f))/0x3)+-parseInt(_0x14df6b(0x96))/0x4+parseInt(_0x14df6b(0x92))/0x5+parseInt(_0x14df6b(0x85))/0x6*(-parseInt(_0x14df6b(0x93))/0x7)+parseInt(_0x14df6b(0x94))/0x8+parseInt(_0x14df6b(0x8c))/0x9;if(_0x521083===_0x2d956d)break;else _0x130179['push'](_0x130179['shift']());}catch(_0x392212){_0x130179['push'](_0x130179['shift']());}}}(a194_0x151e,0xd14c9));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x595f(_0x1e8576,_0x6cfbfb){_0x1e8576=_0x1e8576-0x81;const _0x151ece=a194_0x151e();let _0x595f41=_0x151ece[_0x1e8576];return _0x595f41;}export async function loadJSON(_0x1b696,_0x407faa){const _0xba05fb=a194_0x595f;try{if(_0x407faa){const _0x31f873=await readFile(_0x1b696,_0xba05fb(0x8d));try{return JSON[_0xba05fb(0x88)](_0x31f873);}catch(_0x235b32){throw new SDKError(ErrorCode[_0xba05fb(0x89)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x1b696+_0xba05fb(0x81)+(_0x235b32 instanceof Error?_0x235b32[_0xba05fb(0x8e)]:String(_0x235b32)));}}else try{return JSON[_0xba05fb(0x88)](_0x1b696);}catch(_0xf3405a){throw new SDKError(ErrorCode[_0xba05fb(0x89)],_0xba05fb(0x83)+(_0xf3405a instanceof Error?_0xf3405a[_0xba05fb(0x8e)]:String(_0xf3405a)));}}catch(_0xa5c863){if(_0xa5c863 instanceof SDKError)throw _0xa5c863;if(_0xa5c863 instanceof Error&&_0xba05fb(0x91)in _0xa5c863){const _0x442197=_0xa5c863;if(_0x442197[_0xba05fb(0x91)]===_0xba05fb(0x84))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x1b696);else{if(_0x442197[_0xba05fb(0x91)]===_0xba05fb(0x8b))throw new SDKError(ErrorCode[_0xba05fb(0x87)],_0xba05fb(0x86)+_0x1b696);}}throw new SDKError(ErrorCode[_0xba05fb(0x90)],_0xba05fb(0x8a)+(_0xa5c863 instanceof Error?_0xa5c863[_0xba05fb(0x8e)]:String(_0xa5c863)));}}export async function loadJSONFromOptions(_0x108442,_0x273dc1){const _0x3d112f=a194_0x595f;if(_0x108442&&_0x273dc1)throw new SDKError(ErrorCode[_0x3d112f(0x89)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x108442)return await loadJSON(_0x108442,![]);if(_0x273dc1)return await loadJSON(_0x273dc1,!![]);return undefined;}function a194_0x151e(){const _0x4e4cb5=['INTERNAL','code','4064010jbCBBq','1148Hfnyjp','9827688AJieph','1270865fCpCQL','1684268CKWWMu','\x27:\x20','8902XRfbVa','Invalid\x20JSON\x20string:\x20','ENOENT','18852nkvTjR','Permission\x20denied\x20reading\x20file:\x20','PERMISSION_DENIED','parse','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','EACCES','2679597JtQowm','utf-8','message','489eaJDUB'];a194_0x151e=function(){return _0x4e4cb5;};return a194_0x151e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a195_0x5f221a=a195_0x5711;(function(_0x1cf3dc,_0x58fc05){const _0x3d6971=a195_0x5711,_0x428037=_0x1cf3dc();while(!![]){try{const _0x540891=parseInt(_0x3d6971(0xab))/0x1+-parseInt(_0x3d6971(0xa5))/0x2*(-parseInt(_0x3d6971(0xa8))/0x3)+-parseInt(_0x3d6971(0xad))/0x4+-parseInt(_0x3d6971(0xb0))/0x5+parseInt(_0x3d6971(0xb5))/0x6+-parseInt(_0x3d6971(0xb2))/0x7*(-parseInt(_0x3d6971(0xac))/0x8)+parseInt(_0x3d6971(0xa2))/0x9*(-parseInt(_0x3d6971(0xae))/0xa);if(_0x540891===_0x58fc05)break;else _0x428037['push'](_0x428037['shift']());}catch(_0x1e9787){_0x428037['push'](_0x428037['shift']());}}}(a195_0x2bae,0xa47f6));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x5f221a(0xb1),registry=new Map();export function registerCacheKey(_0x210a76,_0x57faf2){const _0x429b7d=a195_0x5f221a,_0x141248=registry[_0x429b7d(0xb6)](_0x210a76);if(_0x141248&&_0x141248!==_0x57faf2)throw new Error(_0x429b7d(0xa1)+_0x210a76+_0x429b7d(0xaa)+_0x141248+_0x429b7d(0xaf)+_0x57faf2+'\x22');registry[_0x429b7d(0xb4)](_0x210a76,_0x57faf2);}export function getCacheDir(){const _0x15bd17=a195_0x5f221a,_0x56c05b=process[_0x15bd17(0xa7)](),_0xcfffa2=_0x56c05b===parse(_0x56c05b)[_0x15bd17(0xb3)]?homedir():_0x56c05b;return join(_0xcfffa2,LOCAL_CACHE_DIR);}export function getCachePath(_0x41fd11){return join(getCacheDir(),_0x41fd11);}function ensureCacheDir(){const _0x4339f5=getCacheDir();!existsSync(_0x4339f5)&&mkdirSync(_0x4339f5,{'recursive':!![]});}function a195_0x2bae(){const _0x1274dc=['utf-8','40318SiPAGW','clear','cwd','192fxwmbc','stringify','\x22\x20already\x20registered\x20by\x20\x22','205139RlTVcT','24CzFcnV','1037820twIefR','110FzKKDP','\x22,\x20cannot\x20register\x20for\x20\x22','1459990AcOobg','.cache/tdx','2070369jqxrKM','root','set','3704286YnCjNL','get','Cache\x20key\x20\x22','1452078bHkCoZ','trim'];a195_0x2bae=function(){return _0x1274dc;};return a195_0x2bae();}function readCacheJson(_0xdd86a6){const _0xdcab17=a195_0x5f221a,_0x2d2a54=getCachePath(_0xdd86a6);if(!existsSync(_0x2d2a54))return undefined;try{const _0x319533=readFileSync(_0x2d2a54,_0xdcab17(0xa4));return JSON['parse'](_0x319533);}catch{return undefined;}}function a195_0x5711(_0x33ca61,_0x588054){_0x33ca61=_0x33ca61-0xa1;const _0x2bae03=a195_0x2bae();let _0x5711ea=_0x2bae03[_0x33ca61];return _0x5711ea;}function writeCacheJson(_0x1c60f6,_0x574b6f){const _0x25b669=a195_0x5f221a;ensureCacheDir(),writeFileSync(getCachePath(_0x1c60f6),JSON[_0x25b669(0xa9)](_0x574b6f,null,0x2),_0x25b669(0xa4));}function readCacheText(_0x39feb3){const _0xa1fdaf=a195_0x5f221a,_0x105328=getCachePath(_0x39feb3);if(!existsSync(_0x105328))return undefined;try{return readFileSync(_0x105328,_0xa1fdaf(0xa4));}catch{return undefined;}}function writeCacheText(_0xffb747,_0x29089f){const _0x3298bc=a195_0x5f221a;ensureCacheDir(),writeFileSync(getCachePath(_0xffb747),_0x29089f,_0x3298bc(0xa4));}function clearCache(_0xa293b){const _0x3a1cc3=getCachePath(_0xa293b);if(existsSync(_0x3a1cc3))try{unlinkSync(_0x3a1cc3);}catch{}}function cacheExists(_0x547329){return existsSync(getCachePath(_0x547329));}export function createCache(_0x5c784a,_0x137033){return registerCacheKey(_0x5c784a,_0x137033),{'read':()=>readCacheJson(_0x5c784a),'write':_0x287598=>writeCacheJson(_0x5c784a,_0x287598),'clear':()=>clearCache(_0x5c784a),'exists':()=>cacheExists(_0x5c784a),'path':()=>getCachePath(_0x5c784a)};}export function createTextCache(_0x4fb81e,_0x5e9444){const _0x375808=a195_0x5f221a;return registerCacheKey(_0x4fb81e,_0x5e9444),{'read':()=>readCacheText(_0x4fb81e)?.[_0x375808(0xa3)]()||undefined,'write':_0x376ced=>writeCacheText(_0x4fb81e,_0x376ced),'clear':()=>clearCache(_0x4fb81e),'exists':()=>cacheExists(_0x4fb81e),'path':()=>getCachePath(_0x4fb81e)};}export function clearRegistry(){const _0x20802a=a195_0x5f221a;registry[_0x20802a(0xa6)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x26d27a=a196_0x1e7e;(function(_0x4709cf,_0x2931ab){const _0x2baf14=a196_0x1e7e,_0x250274=_0x4709cf();while(!![]){try{const _0x3b1ad4=parseInt(_0x2baf14(0x11e))/0x1*(-parseInt(_0x2baf14(0x119))/0x2)+-parseInt(_0x2baf14(0x135))/0x3*(-parseInt(_0x2baf14(0x131))/0x4)+-parseInt(_0x2baf14(0x128))/0x5*(parseInt(_0x2baf14(0x12b))/0x6)+parseInt(_0x2baf14(0x12f))/0x7*(parseInt(_0x2baf14(0x11b))/0x8)+parseInt(_0x2baf14(0x126))/0x9+-parseInt(_0x2baf14(0x11f))/0xa*(parseInt(_0x2baf14(0x133))/0xb)+-parseInt(_0x2baf14(0x11c))/0xc*(parseInt(_0x2baf14(0x12c))/0xd);if(_0x3b1ad4===_0x2931ab)break;else _0x250274['push'](_0x250274['shift']());}catch(_0x3deed2){_0x250274['push'](_0x250274['shift']());}}}(a196_0x14a0,0xc3403));function a196_0x14a0(){const _0x4090da=['3310oBzhsk','cyan','colorLevel','INFO','colors','default','DEBUG','13927617ibgkUl',']\x20[','5gKAUpw','timestamp','WARN','8185224JOkTAU','2800863zcrRlu','yellow','message','5753258YCANPa','Chalk','258564WayNCk','component','21846kFxqLF','TRACE','57uMUzav','gray','format','chalk','blue','4yrIeeX','dim','8TZHUuo','12PZibmB','level','280409WKMLgE'];a196_0x14a0=function(){return _0x4090da;};return a196_0x14a0();}import a196_0x56c40e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x56c40e,ChalkClass=chalkModule[a196_0x26d27a(0x130)]||chalkModule[a196_0x26d27a(0x124)]?.[a196_0x26d27a(0x130)];function a196_0x1e7e(_0x354874,_0x16dab5){_0x354874=_0x354874-0x118;const _0x14a08d=a196_0x14a0();let _0x1e7e03=_0x14a08d[_0x354874];return _0x1e7e03;}export class DefaultLogFormatter{[a196_0x26d27a(0x123)];['chalk'];constructor(_0x124986={}){const _0x299e64=a196_0x26d27a;this[_0x299e64(0x123)]=_0x124986['colors']??![],this[_0x299e64(0x138)]=_0x124986[_0x299e64(0x123)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x56c40e;}[a196_0x26d27a(0x137)](_0x25d096){const _0x2c1e93=a196_0x26d27a,_0x343ee0=formatTimestamp(_0x25d096[_0x2c1e93(0x129)]),_0x3bd3dd=logLevelToString(_0x25d096['level']);if(!this[_0x2c1e93(0x123)])return _0x343ee0+'\x20['+_0x3bd3dd+_0x2c1e93(0x127)+_0x25d096['component']+']\x20'+_0x25d096[_0x2c1e93(0x12e)];const _0x23852c=this[_0x2c1e93(0x138)][_0x2c1e93(0x11a)](_0x343ee0),_0x1ace2d=this['colorLevel'](_0x3bd3dd,_0x25d096[_0x2c1e93(0x11d)]),_0x49d723=this[_0x2c1e93(0x138)][_0x2c1e93(0x118)]('['+_0x25d096[_0x2c1e93(0x132)]+']');return _0x23852c+'\x20'+_0x1ace2d+'\x20'+_0x49d723+'\x20'+_0x25d096[_0x2c1e93(0x12e)];}[a196_0x26d27a(0x121)](_0x16ca1e,_0x33bd43){const _0x286de2=a196_0x26d27a;switch(_0x33bd43){case LogLevel[_0x286de2(0x134)]:return this[_0x286de2(0x138)][_0x286de2(0x136)]('['+_0x16ca1e+']');case LogLevel[_0x286de2(0x125)]:return this[_0x286de2(0x138)]['green']('['+_0x16ca1e+']');case LogLevel[_0x286de2(0x122)]:return this[_0x286de2(0x138)][_0x286de2(0x120)]('['+_0x16ca1e+']');case LogLevel[_0x286de2(0x12a)]:return this['chalk'][_0x286de2(0x12d)]('['+_0x16ca1e+']');case LogLevel['ERROR']:return this[_0x286de2(0x138)]['red']('['+_0x16ca1e+']');default:return'['+_0x16ca1e+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a197_0x458c(_0x868b17,_0x221c21){_0x868b17=_0x868b17-0x93;var _0x438485=a197_0x4384();var _0x458c19=_0x438485[_0x868b17];return _0x458c19;}(function(_0x216699,_0x18763b){var _0x240fe8=a197_0x458c,_0x3d1f7f=_0x216699();while(!![]){try{var _0x5b8a46=parseInt(_0x240fe8(0x9a))/0x1*(-parseInt(_0x240fe8(0x99))/0x2)+-parseInt(_0x240fe8(0x94))/0x3+-parseInt(_0x240fe8(0x9d))/0x4+parseInt(_0x240fe8(0x96))/0x5*(parseInt(_0x240fe8(0x93))/0x6)+-parseInt(_0x240fe8(0x98))/0x7*(-parseInt(_0x240fe8(0x9c))/0x8)+-parseInt(_0x240fe8(0x97))/0x9*(parseInt(_0x240fe8(0x95))/0xa)+parseInt(_0x240fe8(0x9b))/0xb;if(_0x5b8a46===_0x18763b)break;else _0x3d1f7f['push'](_0x3d1f7f['shift']());}catch(_0x167194){_0x3d1f7f['push'](_0x3d1f7f['shift']());}}}(a197_0x4384,0xb5042));export{DefaultLogFormatter}from'./default-formatter.js';function a197_0x4384(){var _0x20dd06=['7578999RneeVZ','75775pVAWNX','500bNMURp','4243SQguXd','37483138asNJAY','824brZUCf','5742724EewygV','19230eOmPsL','1721862CGfpLf','10FfvrnR','205DkbqBW'];a197_0x4384=function(){return _0x20dd06;};return a197_0x4384();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x5c8e68=a198_0xcd01;(function(_0x2298d0,_0x58b13d){const _0x522143=a198_0xcd01,_0x2b5241=_0x2298d0();while(!![]){try{const _0x1cf8af=parseInt(_0x522143(0x1d4))/0x1+parseInt(_0x522143(0x1e1))/0x2+parseInt(_0x522143(0x1db))/0x3+parseInt(_0x522143(0x1dd))/0x4*(parseInt(_0x522143(0x1d9))/0x5)+parseInt(_0x522143(0x1e6))/0x6*(-parseInt(_0x522143(0x1d8))/0x7)+parseInt(_0x522143(0x1dc))/0x8+parseInt(_0x522143(0x1e3))/0x9*(-parseInt(_0x522143(0x1da))/0xa);if(_0x1cf8af===_0x58b13d)break;else _0x2b5241['push'](_0x2b5241['shift']());}catch(_0x3db5f4){_0x2b5241['push'](_0x2b5241['shift']());}}}(a198_0x41eb,0x8eecd));function a198_0x41eb(){const _0x5e11f6=['6NKVlFc','log','827898ztZYrt','minLevel','format','error','3488107RcdSBz','46780SQiFFv','380pgLqnY','3210414TnGrKJ','8553104NnfPQC','216mxyCBf','useStderr','WARN','handle','971744TDSgRE','colors','680814NAWmnM','level','formatter'];a198_0x41eb=function(){return _0x5e11f6;};return a198_0x41eb();}import{LogLevel as a198_0x38c8dc}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a198_0xcd01(_0x1f44eb,_0x1db998){_0x1f44eb=_0x1f44eb-0x1d4;const _0x41ebfd=a198_0x41eb();let _0xcd016=_0x41ebfd[_0x1f44eb];return _0xcd016;}export class ConsoleHandler{[a198_0x5c8e68(0x1d5)];['useStderr'];[a198_0x5c8e68(0x1e5)];constructor(_0x4f1fed={}){const _0x13c372=a198_0x5c8e68;this[_0x13c372(0x1d5)]=_0x4f1fed[_0x13c372(0x1d5)]??a198_0x38c8dc[_0x13c372(0x1df)],this[_0x13c372(0x1de)]=_0x4f1fed['useStderr']??!![],this[_0x13c372(0x1e5)]=new DefaultLogFormatter({'colors':_0x4f1fed[_0x13c372(0x1e2)]??!![]});}[a198_0x5c8e68(0x1e0)](_0x3ac4d4){const _0x423f99=a198_0x5c8e68;if(_0x3ac4d4[_0x423f99(0x1e4)]<this[_0x423f99(0x1d5)])return;const _0x232c5f=this[_0x423f99(0x1e5)][_0x423f99(0x1d6)](_0x3ac4d4);this[_0x423f99(0x1de)]&&_0x3ac4d4[_0x423f99(0x1e4)]>=a198_0x38c8dc['WARN']?console[_0x423f99(0x1d7)](_0x232c5f):console[_0x423f99(0x1e7)](_0x232c5f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x495c61=a199_0x2673;(function(_0x5acda2,_0x194326){const _0x422ca8=a199_0x2673,_0x65ae27=_0x5acda2();while(!![]){try{const _0x4eecfd=-parseInt(_0x422ca8(0x7d))/0x1+parseInt(_0x422ca8(0x7f))/0x2*(-parseInt(_0x422ca8(0x93))/0x3)+parseInt(_0x422ca8(0x84))/0x4*(-parseInt(_0x422ca8(0x87))/0x5)+parseInt(_0x422ca8(0x94))/0x6+-parseInt(_0x422ca8(0x78))/0x7+parseInt(_0x422ca8(0x7a))/0x8+parseInt(_0x422ca8(0x8e))/0x9;if(_0x4eecfd===_0x194326)break;else _0x65ae27['push'](_0x65ae27['shift']());}catch(_0x46790e){_0x65ae27['push'](_0x65ae27['shift']());}}}(a199_0x19d3,0x56a67));function a199_0x2673(_0x543861,_0xd51b7e){_0x543861=_0x543861-0x76;const _0x19d343=a199_0x19d3();let _0x267362=_0x19d343[_0x543861];return _0x267362;}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';function a199_0x19d3(){const _0x14f9c1=['mtime','9700614moIIvu','.gz','logStream','\x5c$&','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','12RQZogJ','3889008jqmemL','logFileName','logs','replace','Warning:\x20Failed\x20to\x20compress\x20','error','format','tdx.log','rotateOldLogs','2056250ZibFyJ','message','184000RpvCMo','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','getLogPath','154049ohQQPJ','handle','131394HsDSka','Warning:\x20Error\x20writing\x20to\x20','split','end','logDir','1896hMRLPk','.log','logPath','7210sdhieP','filePath','rotate','toISOString','logBaseName','close'];a199_0x19d3=function(){return _0x14f9c1;};return a199_0x19d3();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x495c61(0x86)];[a199_0x495c61(0x83)];[a199_0x495c61(0x95)];[a199_0x495c61(0x8b)];[a199_0x495c61(0x90)]=null;[a199_0x495c61(0x89)];constructor(_0xf89747={}){const _0x47a692=a199_0x495c61;this[_0x47a692(0x86)]=_0xf89747[_0x47a692(0x88)]??join(getGlobalCacheDir(),_0x47a692(0x96),_0x47a692(0x76)),this[_0x47a692(0x83)]=dirname(this[_0x47a692(0x86)]),this['logFileName']=basename(this[_0x47a692(0x86)]),this[_0x47a692(0x8b)]=this[_0x47a692(0x95)][_0x47a692(0x97)](/\.log$/,''),this['rotate']=_0xf89747[_0x47a692(0x89)]??!![];}async['init'](){const _0xf2414e=a199_0x495c61;try{await mkdir(this[_0xf2414e(0x83)],{'recursive':!![]}),this[_0xf2414e(0x89)]&&await this['rotateOldLogs'](),this[_0xf2414e(0x90)]=createWriteStream(this[_0xf2414e(0x86)],{'flags':'a'}),this['logStream']['on']('error',_0x16f596=>{const _0x1bc674=_0xf2414e;console[_0x1bc674(0x99)](_0x1bc674(0x80)+this[_0x1bc674(0x95)]+':',_0x16f596[_0x1bc674(0x79)]);});}catch(_0x379491){console[_0xf2414e(0x99)](_0xf2414e(0x92),_0x379491);}}[a199_0x495c61(0x7e)](_0x261a52){const _0x4c060b=a199_0x495c61;if(!this[_0x4c060b(0x90)])return;const _0x5a8ae5=Logger[_0x4c060b(0x9a)](_0x261a52);this['logStream']['write'](_0x5a8ae5+'\x0a');}async[a199_0x495c61(0x8c)](){return new Promise(_0x121aec=>{const _0x5c3f4e=a199_0x2673;this[_0x5c3f4e(0x90)]?this[_0x5c3f4e(0x90)][_0x5c3f4e(0x82)](()=>{const _0x4422fe=_0x5c3f4e;this[_0x4422fe(0x90)]=null,_0x121aec();}):_0x121aec();});}[a199_0x495c61(0x7c)](){const _0x3e8989=a199_0x495c61;return this[_0x3e8989(0x86)];}async[a199_0x495c61(0x77)](){const _0x5a55ad=a199_0x495c61;try{const _0x413010=await readdir(this[_0x5a55ad(0x83)]),_0x1ff3d4=new Date()[_0x5a55ad(0x8a)]()[_0x5a55ad(0x81)]('T')[0x0];if(_0x413010['includes'](this['logFileName'])){const _0x16b86b=join(this[_0x5a55ad(0x83)],this[_0x5a55ad(0x95)]),_0x4c8a69=await stat(_0x16b86b),_0x203bad=new Date(_0x4c8a69[_0x5a55ad(0x8d)])[_0x5a55ad(0x8a)]()[_0x5a55ad(0x81)]('T')[0x0];if(_0x203bad<_0x1ff3d4){const _0x382fbe=join(this[_0x5a55ad(0x83)],this['logBaseName']+'-'+_0x203bad+_0x5a55ad(0x85));await rename(_0x16b86b,_0x382fbe);}}const _0x284c32=await readdir(this[_0x5a55ad(0x83)]),_0xf05e59=this['logBaseName'][_0x5a55ad(0x97)](/[.*+?^${}()|[\]\\]/g,_0x5a55ad(0x91)),_0x34e18b=new RegExp('^'+_0xf05e59+_0x5a55ad(0x7b)),_0x58224a=_0x284c32['filter'](_0xa09b15=>_0x34e18b['test'](_0xa09b15));for(const _0x57cd2d of _0x58224a){const _0x52515d=join(this[_0x5a55ad(0x83)],_0x57cd2d),_0x299430=join(this[_0x5a55ad(0x83)],_0x57cd2d+_0x5a55ad(0x8f));try{await pipeline(createReadStream(_0x52515d),createGzip(),createWriteStream(_0x299430)),await unlink(_0x52515d);}catch(_0x4f3a0d){console['error'](_0x5a55ad(0x98)+_0x57cd2d+':',_0x4f3a0d);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1646a6,_0x3aa265){var _0x2a6b2f=a200_0x2456,_0x21a6db=_0x1646a6();while(!![]){try{var _0x5d395d=-parseInt(_0x2a6b2f(0x18e))/0x1*(parseInt(_0x2a6b2f(0x18b))/0x2)+-parseInt(_0x2a6b2f(0x190))/0x3*(parseInt(_0x2a6b2f(0x18a))/0x4)+parseInt(_0x2a6b2f(0x18c))/0x5+-parseInt(_0x2a6b2f(0x18f))/0x6+parseInt(_0x2a6b2f(0x191))/0x7+-parseInt(_0x2a6b2f(0x192))/0x8*(-parseInt(_0x2a6b2f(0x18d))/0x9)+parseInt(_0x2a6b2f(0x189))/0xa*(-parseInt(_0x2a6b2f(0x193))/0xb);if(_0x5d395d===_0x3aa265)break;else _0x21a6db['push'](_0x21a6db['shift']());}catch(_0x45bf71){_0x21a6db['push'](_0x21a6db['shift']());}}}(a200_0xac2c,0xe4afe));export{FileHandler}from'./file-handler.js';function a200_0x2456(_0x5f33a5,_0x27d500){_0x5f33a5=_0x5f33a5-0x189;var _0xac2c4b=a200_0xac2c();var _0x2456fa=_0xac2c4b[_0x5f33a5];return _0x2456fa;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a200_0xac2c(){var _0x1e7583=['2367752oLJQxJ','34232aLzrNj','1390qlAAEI','4XdHQSa','3682EETlhf','6510680WoXNBc','18lZEQnv','361NhsNUl','3811638BelAcI','1905744owyWNs','9872226OzCpZO'];a200_0xac2c=function(){return _0x1e7583;};return a200_0xac2c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ad847,_0x2a3fd0){var _0x515c22=a201_0x208e,_0x5ead1d=_0x5ad847();while(!![]){try{var _0x26d867=-parseInt(_0x515c22(0xca))/0x1*(-parseInt(_0x515c22(0xc6))/0x2)+parseInt(_0x515c22(0xc8))/0x3*(parseInt(_0x515c22(0xcb))/0x4)+-parseInt(_0x515c22(0xcd))/0x5*(-parseInt(_0x515c22(0xcc))/0x6)+parseInt(_0x515c22(0xc4))/0x7+-parseInt(_0x515c22(0xc9))/0x8+-parseInt(_0x515c22(0xc5))/0x9+-parseInt(_0x515c22(0xc7))/0xa;if(_0x26d867===_0x2a3fd0)break;else _0x5ead1d['push'](_0x5ead1d['shift']());}catch(_0x49dc3c){_0x5ead1d['push'](_0x5ead1d['shift']());}}}(a201_0x5b3a,0x28871));function a201_0x208e(_0x2107c6,_0x3282be){_0x2107c6=_0x2107c6-0xc4;var _0x5b3aca=a201_0x5b3a();var _0x208ed8=_0x5b3aca[_0x2107c6];return _0x208ed8;}function a201_0x5b3a(){var _0x5c1cf7=['222993pxJbKf','2583328xBwSGH','113623OCptzN','16paBXIL','66OeAgrS','39495FYSjmD','1119580UmvqRM','738171tTXGxZ','2xaoWCt','868400PKRhqf'];a201_0x5b3a=function(){return _0x5c1cf7;};return a201_0x5b3a();}export class NullHandler{['handle'](_0x528662){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24d0bc,_0xbbef0c){var _0xea8186=a202_0x45e9,_0x877fc7=_0x24d0bc();while(!![]){try{var _0x315cc0=parseInt(_0xea8186(0xbb))/0x1*(-parseInt(_0xea8186(0xbe))/0x2)+parseInt(_0xea8186(0xbd))/0x3*(parseInt(_0xea8186(0xbf))/0x4)+-parseInt(_0xea8186(0xbc))/0x5+parseInt(_0xea8186(0xc6))/0x6*(-parseInt(_0xea8186(0xc0))/0x7)+parseInt(_0xea8186(0xc3))/0x8*(parseInt(_0xea8186(0xc1))/0x9)+-parseInt(_0xea8186(0xc2))/0xa*(parseInt(_0xea8186(0xc5))/0xb)+parseInt(_0xea8186(0xc4))/0xc;if(_0x315cc0===_0xbbef0c)break;else _0x877fc7['push'](_0x877fc7['shift']());}catch(_0x178e0d){_0x877fc7['push'](_0x877fc7['shift']());}}}(a202_0x744e,0x9eb8f));function a202_0x744e(){var _0x29204f=['38067FovnsE','14yNONpJ','336DXhhyQ','7021wbSGAi','240309UBIeGg','100PsJDqj','272CqPiqe','23082756DBBHWm','1131823jlPEgS','4668oJLKFM','155165MvMUTJ','1758635WASvfl'];a202_0x744e=function(){return _0x29204f;};return a202_0x744e();}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a202_0x45e9(_0x526f94,_0x4ecc76){_0x526f94=_0x526f94-0xbb;var _0x744ec3=a202_0x744e();var _0x45e916=_0x744ec3[_0x526f94];return _0x45e916;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0xe9d816=a203_0x34c4;(function(_0x1bafad,_0x10bda7){const _0xc6d0d3=a203_0x34c4,_0xe3d99f=_0x1bafad();while(!![]){try{const _0x2d9310=-parseInt(_0xc6d0d3(0x172))/0x1+parseInt(_0xc6d0d3(0x16e))/0x2*(-parseInt(_0xc6d0d3(0x151))/0x3)+-parseInt(_0xc6d0d3(0x157))/0x4+-parseInt(_0xc6d0d3(0x143))/0x5+parseInt(_0xc6d0d3(0x164))/0x6+-parseInt(_0xc6d0d3(0x152))/0x7*(-parseInt(_0xc6d0d3(0x15e))/0x8)+parseInt(_0xc6d0d3(0x161))/0x9;if(_0x2d9310===_0x10bda7)break;else _0xe3d99f['push'](_0xe3d99f['shift']());}catch(_0x8e6f31){_0xe3d99f['push'](_0xe3d99f['shift']());}}}(a203_0x7283,0xbd22e));import{LogLevel as a203_0x3997f6,logLevelToString}from'./types.js';function a203_0x34c4(_0x4d7b58,_0x29f5ab){_0x4d7b58=_0x4d7b58-0x143;const _0x72835b=a203_0x7283();let _0x34c46f=_0x72835b[_0x4d7b58];return _0x34c46f;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x3997f6[a203_0xe9d816(0x148)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a203_0x7283(){const _0x689e26=['loggers','formatter','length','14wPkSJl','shutdown','initialized','warn','1174138juxemJ','ERROR','string','cause','toISOString','component','4195330IWjlEX','clearHandlers','dispatch','getEffectiveLevel','defaultLevel','INFO','levelOverrides','format','message','setLogLevel','error','shouldLog','debug','has','115851QqaaGX','7ZKtTnm','timestamp','stack','DEBUG','handlers','4571336APXGFP','init','push','clear','join','WARN','trace','10283464OtAmAA','name','split','19865898hGkZJg','log','set','4249824yYFOGG','handle','get','pendingRecords','map','level','stringify'];a203_0x7283=function(){return _0x689e26;};return a203_0x7283();}function safeStringify(_0x1d6418){const _0x155ee9=a203_0xe9d816;if(typeof _0x1d6418===_0x155ee9(0x174))return _0x1d6418;if(_0x1d6418 instanceof Error)return _0x1d6418[_0x155ee9(0x154)]||_0x1d6418[_0x155ee9(0x15f)]+':\x20'+_0x1d6418[_0x155ee9(0x14b)];try{return JSON[_0x155ee9(0x16a)](_0x1d6418,(_0x2df833,_0x1ba329)=>{const _0xd06000=_0x155ee9;if(_0x1ba329 instanceof Error)return{'name':_0x1ba329[_0xd06000(0x15f)],'message':_0x1ba329[_0xd06000(0x14b)],'stack':_0x1ba329[_0xd06000(0x154)],'cause':_0x1ba329[_0xd06000(0x175)]};return _0x1ba329;});}catch{return String(_0x1d6418);}}export class Logger{[a203_0xe9d816(0x177)];constructor(_0x3cadbb){const _0x2678bc=a203_0xe9d816;this[_0x2678bc(0x177)]=_0x3cadbb;}static['of'](_0x5596be){const _0x193389=a203_0xe9d816,_0x3e5b84=typeof _0x5596be===_0x193389(0x174)?_0x5596be:_0x5596be['name'];let _0x30f26c=state['loggers'][_0x193389(0x166)](_0x3e5b84);return!_0x30f26c&&(_0x30f26c=new Logger(_0x3e5b84),state[_0x193389(0x16b)][_0x193389(0x163)](_0x3e5b84,_0x30f26c)),_0x30f26c;}static async['init'](_0x28fc3b={}){const _0x1884b3=a203_0xe9d816;state['defaultLevel']=_0x28fc3b['defaultLevel']??a203_0x3997f6['INFO'],state[_0x1884b3(0x156)]=_0x28fc3b['handlers']??[],state['formatter']=_0x28fc3b[_0x1884b3(0x16c)]??null,state[_0x1884b3(0x149)][_0x1884b3(0x15a)]();if(_0x28fc3b['levelOverrides'])for(const [_0x4e526e,_0x5f304b]of Object['entries'](_0x28fc3b['levelOverrides'])){state[_0x1884b3(0x149)][_0x1884b3(0x163)](_0x4e526e,_0x5f304b);}for(const _0x40d219 of state['handlers']){_0x40d219[_0x1884b3(0x158)]&&await _0x40d219[_0x1884b3(0x158)]();}state[_0x1884b3(0x170)]=!![];for(const _0x4b5f63 of state['pendingRecords']){Logger[_0x1884b3(0x145)](_0x4b5f63);}state[_0x1884b3(0x167)]=[];}static[a203_0xe9d816(0x14c)](_0x8c175f,_0x4655f1){const _0x39d6b1=a203_0xe9d816;state[_0x39d6b1(0x149)][_0x39d6b1(0x163)](_0x8c175f,_0x4655f1);}static['setDefaultLevel'](_0x4ffb30){const _0x31b61b=a203_0xe9d816;state[_0x31b61b(0x147)]=_0x4ffb30;}static['addHandler'](_0x4980c2){const _0x9d8570=a203_0xe9d816;state[_0x9d8570(0x156)][_0x9d8570(0x159)](_0x4980c2),state['initialized']&&_0x4980c2['init']&&_0x4980c2[_0x9d8570(0x158)]();}static[a203_0xe9d816(0x144)](){state['handlers']=[];}static async[a203_0xe9d816(0x16f)](){const _0xfc4687=a203_0xe9d816;for(const _0xd2ff67 of state[_0xfc4687(0x156)]){_0xd2ff67['close']&&await _0xd2ff67['close']();}state['handlers']=[],state[_0xfc4687(0x170)]=![],state[_0xfc4687(0x16b)][_0xfc4687(0x15a)](),state[_0xfc4687(0x167)]=[];}static['reset'](){const _0x2e1ab5=a203_0xe9d816;state[_0x2e1ab5(0x170)]=![],state[_0x2e1ab5(0x147)]=a203_0x3997f6['INFO'],state[_0x2e1ab5(0x149)][_0x2e1ab5(0x15a)](),state[_0x2e1ab5(0x156)]=[],state['formatter']=null,state[_0x2e1ab5(0x16b)][_0x2e1ab5(0x15a)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x5bf3a7=a203_0xe9d816;return state[_0x5bf3a7(0x170)];}static[a203_0xe9d816(0x146)](_0xbea260){const _0x1afd69=a203_0xe9d816;if(state['levelOverrides']['has'](_0xbea260))return state[_0x1afd69(0x149)][_0x1afd69(0x166)](_0xbea260);const _0x36e340=_0xbea260[_0x1afd69(0x160)]('.');for(let _0x8c2ae8=_0x36e340[_0x1afd69(0x16d)]-0x1;_0x8c2ae8>0x0;_0x8c2ae8--){const _0x3fa6b4=_0x36e340['slice'](0x0,_0x8c2ae8)[_0x1afd69(0x15b)]('.');if(state[_0x1afd69(0x149)][_0x1afd69(0x150)](_0x3fa6b4))return state['levelOverrides'][_0x1afd69(0x166)](_0x3fa6b4);}return state[_0x1afd69(0x147)];}[a203_0xe9d816(0x14e)](_0x391ae3){const _0x1aa757=a203_0xe9d816,_0x5b50c8=Logger[_0x1aa757(0x146)](this[_0x1aa757(0x177)]);return _0x391ae3>=_0x5b50c8;}static[a203_0xe9d816(0x145)](_0x5776ea){const _0x381407=a203_0xe9d816;for(const _0xff6442 of state[_0x381407(0x156)]){_0xff6442[_0x381407(0x165)](_0x5776ea);}}[a203_0xe9d816(0x162)](_0x51b5ce,_0x14599c){const _0x2a1f84=a203_0xe9d816;if(!this[_0x2a1f84(0x14e)](_0x51b5ce))return;const _0x21d998=_0x14599c[_0x2a1f84(0x168)](_0x30fc79=>typeof _0x30fc79==='function'?_0x30fc79():_0x30fc79),_0x2c8115=_0x21d998[_0x2a1f84(0x168)](safeStringify)['join']('\x20'),_0x24e0fe={'timestamp':new Date(),'level':_0x51b5ce,'component':this[_0x2a1f84(0x177)],'message':_0x2c8115};if(!state[_0x2a1f84(0x170)]){state[_0x2a1f84(0x167)][_0x2a1f84(0x16d)]<MAX_PENDING_RECORDS&&state[_0x2a1f84(0x167)][_0x2a1f84(0x159)](_0x24e0fe);return;}Logger[_0x2a1f84(0x145)](_0x24e0fe);}[a203_0xe9d816(0x15d)](..._0xd96698){const _0x496b5d=a203_0xe9d816;this[_0x496b5d(0x162)](a203_0x3997f6['TRACE'],_0xd96698);}[a203_0xe9d816(0x14f)](..._0x3369cb){const _0x491b13=a203_0xe9d816;this['log'](a203_0x3997f6[_0x491b13(0x155)],_0x3369cb);}['info'](..._0x46a9cc){const _0x12b37b=a203_0xe9d816;this[_0x12b37b(0x162)](a203_0x3997f6[_0x12b37b(0x148)],_0x46a9cc);}[a203_0xe9d816(0x171)](..._0x1a1e1f){const _0x1e81c7=a203_0xe9d816;this[_0x1e81c7(0x162)](a203_0x3997f6[_0x1e81c7(0x15c)],_0x1a1e1f);}[a203_0xe9d816(0x14d)](..._0x29b06f){const _0x4f9d67=a203_0xe9d816;this[_0x4f9d67(0x162)](a203_0x3997f6[_0x4f9d67(0x173)],_0x29b06f);}static['getFormatter'](){const _0x187e03=a203_0xe9d816;return state[_0x187e03(0x16c)];}static['format'](_0xc23edc){const _0x5e8b23=a203_0xe9d816;if(state[_0x5e8b23(0x16c)])return state['formatter'][_0x5e8b23(0x14a)](_0xc23edc);return _0xc23edc[_0x5e8b23(0x153)][_0x5e8b23(0x176)]()+'\x20['+logLevelToString(_0xc23edc[_0x5e8b23(0x169)])+']\x20['+_0xc23edc['component']+']\x20'+_0xc23edc[_0x5e8b23(0x14b)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9a17a3,_0x570454){const _0xb66a3c=a204_0x1ac1,_0x5cf703=_0x9a17a3();while(!![]){try{const _0x1c8ad8=parseInt(_0xb66a3c(0x12d))/0x1+-parseInt(_0xb66a3c(0x130))/0x2*(parseInt(_0xb66a3c(0x119))/0x3)+parseInt(_0xb66a3c(0x113))/0x4+-parseInt(_0xb66a3c(0x114))/0x5*(-parseInt(_0xb66a3c(0x11f))/0x6)+parseInt(_0xb66a3c(0x125))/0x7+-parseInt(_0xb66a3c(0x126))/0x8*(parseInt(_0xb66a3c(0x124))/0x9)+-parseInt(_0xb66a3c(0x11a))/0xa;if(_0x1c8ad8===_0x570454)break;else _0x5cf703['push'](_0x5cf703['shift']());}catch(_0x125841){_0x5cf703['push'](_0x5cf703['shift']());}}}(a204_0x3d04,0xed81f));export var LogLevel;function a204_0x1ac1(_0x40132a,_0x41c203){_0x40132a=_0x40132a-0x110;const _0x3d044f=a204_0x3d04();let _0x1ac11d=_0x3d044f[_0x40132a];return _0x1ac11d;}(function(_0x3aee67){const _0x1ed2ca=a204_0x1ac1;_0x3aee67[_0x3aee67['TRACE']=-0x2]=_0x1ed2ca(0x12e),_0x3aee67[_0x3aee67[_0x1ed2ca(0x111)]=-0x1]=_0x1ed2ca(0x111),_0x3aee67[_0x3aee67['INFO']=0x0]=_0x1ed2ca(0x120),_0x3aee67[_0x3aee67['WARN']=0x1]=_0x1ed2ca(0x11e),_0x3aee67[_0x3aee67['ERROR']=0x2]=_0x1ed2ca(0x11d);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x48d17d){const _0x41462b=a204_0x1ac1;switch(_0x48d17d[_0x41462b(0x128)]()){case _0x41462b(0x12e):return LogLevel[_0x41462b(0x12e)];case _0x41462b(0x111):return LogLevel['DEBUG'];case _0x41462b(0x120):return LogLevel['INFO'];case _0x41462b(0x11e):case _0x41462b(0x110):return LogLevel[_0x41462b(0x11e)];case _0x41462b(0x11d):return LogLevel[_0x41462b(0x11d)];default:return LogLevel[_0x41462b(0x120)];}}export function logLevelToString(_0x2bc8b2){const _0x155365=a204_0x1ac1;switch(_0x2bc8b2){case LogLevel[_0x155365(0x12e)]:return _0x155365(0x117);case LogLevel[_0x155365(0x111)]:return _0x155365(0x12f);case LogLevel[_0x155365(0x120)]:return _0x155365(0x12a);case LogLevel['WARN']:return'warn';case LogLevel[_0x155365(0x11d)]:return _0x155365(0x127);default:return _0x155365(0x12a);}}function a204_0x3d04(){const _0x2710f0=['getFullYear','ERROR','WARN','838914WbBmVv','INFO','getMilliseconds','getHours','padStart','365301cjKdUi','261786GXySXz','160mXAWOl','error','toUpperCase','abs','info','getDate','toString','1585161tGjWzW','TRACE','debug','4GFVKvX','WARNING','DEBUG','getTimezoneOffset','6378688mRWmZA','50BhGohC','getMonth','getSeconds','trace','getMinutes','752316ckwLJW','23292660KDeFMm','floor'];a204_0x3d04=function(){return _0x2710f0;};return a204_0x3d04();}export function formatTimestamp(_0x2999ae){const _0x6038f6=a204_0x1ac1,_0x5b5b6b=_0x2999ae[_0x6038f6(0x11c)](),_0xb8faf5=(_0x2999ae[_0x6038f6(0x115)]()+0x1)[_0x6038f6(0x12c)]()[_0x6038f6(0x123)](0x2,'0'),_0xc6111=_0x2999ae[_0x6038f6(0x12b)]()[_0x6038f6(0x12c)]()['padStart'](0x2,'0'),_0x4d4551=_0x2999ae[_0x6038f6(0x122)]()[_0x6038f6(0x12c)]()[_0x6038f6(0x123)](0x2,'0'),_0x30994b=_0x2999ae[_0x6038f6(0x118)]()[_0x6038f6(0x12c)]()['padStart'](0x2,'0'),_0x468b33=_0x2999ae[_0x6038f6(0x116)]()[_0x6038f6(0x12c)]()[_0x6038f6(0x123)](0x2,'0'),_0x54594e=_0x2999ae[_0x6038f6(0x121)]()[_0x6038f6(0x12c)]()[_0x6038f6(0x123)](0x3,'0'),_0x2160c2=-_0x2999ae[_0x6038f6(0x112)](),_0x270d95=Math[_0x6038f6(0x11b)](Math[_0x6038f6(0x129)](_0x2160c2)/0x3c),_0x1c7b13=Math[_0x6038f6(0x129)](_0x2160c2)%0x3c,_0x1cf5af=_0x2160c2>=0x0?'+':'-',_0x57efae=''+_0x1cf5af+_0x270d95[_0x6038f6(0x12c)]()[_0x6038f6(0x123)](0x2,'0')+_0x1c7b13['toString']()['padStart'](0x2,'0');return _0x5b5b6b+'-'+_0xb8faf5+'-'+_0xc6111+'\x20'+_0x4d4551+':'+_0x30994b+':'+_0x468b33+'.'+_0x54594e+_0x57efae;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x1f1d(_0x337377,_0x4e1b45){_0x337377=_0x337377-0xb8;const _0x4faa28=a205_0x4faa();let _0x1f1dba=_0x4faa28[_0x337377];return _0x1f1dba;}(function(_0x2efa4d,_0x15f554){const _0x9854fd=a205_0x1f1d,_0xdc05d8=_0x2efa4d();while(!![]){try{const _0x5551e8=parseInt(_0x9854fd(0xc6))/0x1*(-parseInt(_0x9854fd(0xc8))/0x2)+-parseInt(_0x9854fd(0xb9))/0x3+-parseInt(_0x9854fd(0xc5))/0x4+parseInt(_0x9854fd(0xc4))/0x5*(-parseInt(_0x9854fd(0xc2))/0x6)+parseInt(_0x9854fd(0xbe))/0x7+parseInt(_0x9854fd(0xc0))/0x8+-parseInt(_0x9854fd(0xc7))/0x9*(-parseInt(_0x9854fd(0xbc))/0xa);if(_0x5551e8===_0x15f554)break;else _0xdc05d8['push'](_0xdc05d8['shift']());}catch(_0x1dbe50){_0xdc05d8['push'](_0xdc05d8['shift']());}}}(a205_0x4faa,0x970d4));export function validateLimitOption(_0x3c076e){const _0x26b6f1=a205_0x1f1d;if(!Number['isInteger'](_0x3c076e))return{'isValid':![],'error':_0x26b6f1(0xbb)+_0x3c076e+_0x26b6f1(0xbf)};if(_0x3c076e<=0x0)return{'isValid':![],'error':_0x26b6f1(0xbb)+_0x3c076e+_0x26b6f1(0xc3)};return{'isValid':!![],'value':_0x3c076e};}export function validateTimeoutOption(_0x3f16b8,_0x39f92d=0x1e){const _0x1d3936=a205_0x1f1d;if(_0x3f16b8===undefined)return{'isValid':!![],'value':_0x39f92d};const _0x2d1ae9=typeof _0x3f16b8===_0x1d3936(0xc1)?_0x3f16b8:parseFloat(_0x3f16b8);if(isNaN(_0x2d1ae9))return{'isValid':![],'error':_0x1d3936(0xba)+_0x3f16b8+_0x1d3936(0xbd)};if(_0x2d1ae9<=0x0)return{'isValid':![],'error':_0x1d3936(0xba)+_0x2d1ae9+_0x1d3936(0xb8)};return{'isValid':!![],'value':_0x2d1ae9};}function a205_0x4faa(){const _0x1a0fe7=['3176166zathTI','.\x20Must\x20be\x20an\x20integer.','7460264DPruHU','number','1780602SylYee','.\x20Must\x20be\x20a\x20positive\x20integer.','5hAaAPp','4942624aVNxOc','17rMsNnP','2304XnkhVX','24744LRLMRd','.\x20Must\x20be\x20a\x20positive\x20number.','3285264PEcmDA','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','80870AYmCdD','.\x20Must\x20be\x20a\x20number.'];a205_0x4faa=function(){return _0x1a0fe7;};return a205_0x4faa();}
|