@treasuredata/tdx 2026.3.9 → 2026.3.11
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/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.d.ts +2 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/errors.js.map +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.d.ts +12 -0
- package/dist/sdk/workflow/index.d.ts.map +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/index.js.map +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
|
@@ -1 +1 @@
|
|
|
1
|
-
const a184_0x38170c=a184_0x18c9;(function(_0x5406f4,_0x26d305){const _0x51c497=a184_0x18c9,_0x369cfd=_0x5406f4();while(!![]){try{const _0x4f6c3b=parseInt(_0x51c497(0x249))/0x1*(parseInt(_0x51c497(0x21b))/0x2)+parseInt(_0x51c497(0x213))/0x3+-parseInt(_0x51c497(0x225))/0x4*(-parseInt(_0x51c497(0x1f3))/0x5)+-parseInt(_0x51c497(0x23c))/0x6*(-parseInt(_0x51c497(0x1f1))/0x7)+parseInt(_0x51c497(0x22a))/0x8*(parseInt(_0x51c497(0x250))/0x9)+-parseInt(_0x51c497(0x22c))/0xa*(parseInt(_0x51c497(0x1e7))/0xb)+-parseInt(_0x51c497(0x229))/0xc*(parseInt(_0x51c497(0x200))/0xd);if(_0x4f6c3b===_0x26d305)break;else _0x369cfd['push'](_0x369cfd['shift']());}catch(_0x8cb737){_0x369cfd['push'](_0x369cfd['shift']());}}}(a184_0x24aa,0x42660));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1e9),'permission':a184_0x38170c(0x22e)},'withTables':{'name':a184_0x38170c(0x1f7),'count':0x64,'created_at':a184_0x38170c(0x1ee),'updated_at':'2024-01-15T08:00:00Z','permission':a184_0x38170c(0x24f)}},'table':{'basic':{'id':0x3039,'name':'users','type':a184_0x38170c(0x231),'schema':JSON['stringify']([['id',a184_0x38170c(0x217)],[a184_0x38170c(0x1ef),a184_0x38170c(0x245)],[a184_0x38170c(0x1f4),a184_0x38170c(0x217)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1e9)},'events':{'id':0x303a,'name':'events','type':a184_0x38170c(0x231),'schema':JSON[a184_0x38170c(0x220)]([['event_id',a184_0x38170c(0x217)],[a184_0x38170c(0x1ef),a184_0x38170c(0x245)],['user_id',a184_0x38170c(0x217)],[a184_0x38170c(0x230),a184_0x38170c(0x217)],[a184_0x38170c(0x1e6),a184_0x38170c(0x234)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a184_0x38170c(0x1e9),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a184_0x38170c(0x202),'name':a184_0x38170c(0x208),'description':a184_0x38170c(0x21d),'status':a184_0x38170c(0x227),'master_table':{'database':a184_0x38170c(0x255),'table':'unified_customers'},'attributes':[{'name':a184_0x38170c(0x22f),'type':'string','key':!![]},{'name':a184_0x38170c(0x241),'type':a184_0x38170c(0x217)},{'name':a184_0x38170c(0x20b),'type':a184_0x38170c(0x222)}],'created_at':a184_0x38170c(0x1e9),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a184_0x38170c(0x233),'name':a184_0x38170c(0x238),'description':a184_0x38170c(0x201),'status':a184_0x38170c(0x227),'master_table':{'database':a184_0x38170c(0x255),'table':'customers'},'behaviors':[{'name':a184_0x38170c(0x254),'table':{'database':'events_db','table':a184_0x38170c(0x254)},'join_key':'customer_id'},{'name':'page_views','table':{'database':'events_db','table':'pageviews'},'join_key':a184_0x38170c(0x22f)}],'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1ec)}},'segment':{'basic':{'id':a184_0x38170c(0x253),'name':'Active\x20Users','description':a184_0x38170c(0x21f),'parent_segment_id':a184_0x38170c(0x202),'status':a184_0x38170c(0x227),'rules':[{'type':'attribute','field':a184_0x38170c(0x243),'operator':a184_0x38170c(0x23a),'value':a184_0x38170c(0x237)}],'count':0x1388,'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1ec)},'withMultipleRules':{'id':a184_0x38170c(0x1e8),'name':a184_0x38170c(0x219),'description':a184_0x38170c(0x24a),'parent_segment_id':a184_0x38170c(0x202),'status':a184_0x38170c(0x227),'rules':[{'type':'attribute','field':a184_0x38170c(0x243),'operator':a184_0x38170c(0x23a),'value':a184_0x38170c(0x237)},{'type':a184_0x38170c(0x21a),'field':a184_0x38170c(0x212),'operator':a184_0x38170c(0x24d),'value':0x3e8}],'count':0x5dc,'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1ec)}},'journey':{'basic':{'id':a184_0x38170c(0x24b),'name':'Welcome\x20Journey','description':'Onboarding\x20journey\x20for\x20new\x20users','status':'draft','version':0x1,'steps':[{'id':'step-1','type':a184_0x38170c(0x228),'duration':'1d'},{'id':a184_0x38170c(0x1f0),'type':a184_0x38170c(0x221),'activation_id':a184_0x38170c(0x23e)}],'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1ec)},'withDecision':{'id':a184_0x38170c(0x1fd),'name':a184_0x38170c(0x218),'description':'Journey\x20with\x20decision\x20point','status':'active','version':0x2,'steps':[{'id':a184_0x38170c(0x226),'type':a184_0x38170c(0x22d),'segment_id':a184_0x38170c(0x253),'yes_path':a184_0x38170c(0x1f0),'no_path':a184_0x38170c(0x21e)},{'id':a184_0x38170c(0x1f0),'type':a184_0x38170c(0x221),'activation_id':a184_0x38170c(0x207)},{'id':a184_0x38170c(0x21e),'type':'end'}],'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1ec)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a184_0x38170c(0x210)},{'name':a184_0x38170c(0x1f4),'type':a184_0x38170c(0x210)},{'name':'count','type':a184_0x38170c(0x216)}],'data':[[a184_0x38170c(0x20d),a184_0x38170c(0x24e),0x64],[a184_0x38170c(0x1f8),a184_0x38170c(0x236),0xc8],[a184_0x38170c(0x252),a184_0x38170c(0x223),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':a184_0x38170c(0x210)}],'data':[]},'singleRow':{'schema':[{'name':a184_0x38170c(0x1f5),'type':a184_0x38170c(0x216)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a184_0x38170c(0x1eb),'email':a184_0x38170c(0x209),'created_at':a184_0x38170c(0x1e9),'updated_at':a184_0x38170c(0x1ec),'administrator':![]},'admin':{'id':0x1,'name':a184_0x38170c(0x20c),'email':'admin@example.com','created_at':a184_0x38170c(0x23d),'updated_at':a184_0x38170c(0x1ec),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a184_0x38170c(0x224),'database':'test_db','status':a184_0x38170c(0x206),'query':a184_0x38170c(0x244),'start_at':a184_0x38170c(0x23b),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a184_0x38170c(0x224),'database':a184_0x38170c(0x1f6),'status':a184_0x38170c(0x1fc),'query':a184_0x38170c(0x1fb),'start_at':a184_0x38170c(0x251),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a184_0x38170c(0x224),'database':'test_db','status':a184_0x38170c(0x20a),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a184_0x38170c(0x256),'end_at':a184_0x38170c(0x214),'duration':0x1,'result_size':null,'error':a184_0x38170c(0x1f9)}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a184_0x38170c(0x1fa),'revision':'abc123','timezone':a184_0x38170c(0x211),'schedule':{'cron':a184_0x38170c(0x1ea)}},'withSessions':{'id':'wf-67890','name':a184_0x38170c(0x1ed),'project':'data_sync','revision':a184_0x38170c(0x232),'timezone':a184_0x38170c(0x242),'schedule':{'cron':a184_0x38170c(0x239)},'last_session':{'id':a184_0x38170c(0x20f),'status':a184_0x38170c(0x206),'started_at':a184_0x38170c(0x1fe),'finished_at':a184_0x38170c(0x1ff)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':a184_0x38170c(0x246),'severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a184_0x38170c(0x20e),'message':a184_0x38170c(0x235),'severity':a184_0x38170c(0x20a),'status_code':0x194}},'rateLimited':{'detail':a184_0x38170c(0x204)},'rfc9457':{'type':a184_0x38170c(0x247),'title':a184_0x38170c(0x1f2),'status':0x193,'detail':a184_0x38170c(0x23f),'instance':a184_0x38170c(0x215)}}};function a184_0x18c9(_0x3b4930,_0x1b40ed){_0x3b4930=_0x3b4930-0x1e6;const _0x24aa0c=a184_0x24aa();let _0x18c904=_0x24aa0c[_0x3b4930];return _0x18c904;}export function createDatabase(_0x2178f0){const _0x40745d=a184_0x38170c;return{...fixtures['database'][_0x40745d(0x248)],..._0x2178f0};}export function createTable(_0x411835){const _0x9fedef=a184_0x38170c;return{...fixtures[_0x9fedef(0x203)]['basic'],..._0x411835};}function a184_0x24aa(){const _0xd71518=['0\x200\x20*\x20*\x20*','Test\x20User','2024-01-15T00:00:00Z','hourly_sync','2023-06-15T10:30:00Z','time','step-2','162974tdeaUt','Forbidden','5rHeLsT','name','total','test_db','production_db','user-2','Table\x20does\x20not\x20exist:\x20nonexistent_table','data_pipeline','SELECT\x20COUNT(*)\x20FROM\x20events','running','j-def456','2024-01-15T09:00:00Z','2024-01-15T09:05:00Z','1624454wmherL','Parent\x20segment\x20with\x20behavioral\x20data','ps-123456','table','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','segment','success','act-email','Test\x20Parent\x20Segment','test@example.com','error','created_at','Admin\x20User','user-1','Resource\x20not\x20found','sess-111','varchar','UTC','lifetime_value','536547CwujTX','2024-01-15T10:10:01Z','/v3/database/list','bigint','string','Purchase\x20Reminder','High\x20Value\x20Active\x20Users','attribute','2TwYwQS','user','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','step-3','Users\x20active\x20in\x20the\x20last\x2030\x20days','stringify','activation','timestamp','Charlie','presto','137056DvdpqW','step-1','active','wait','60mLSMwM','3593232mMztyU','parentSegment','1570ZiwMpg','decision_point','administrator','customer_id','event_type','log','def456','ps-789012','map<string,string>','The\x20requested\x20resource\x20does\x20not\x20exist','Bob','30d','Customers\x20with\x20Behaviors','0\x20*\x20*\x20*\x20*','TimeWithinPast','2024-01-15T10:00:00Z','24rglPaL','2023-01-01T00:00:00Z','act-123','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','queryResult','email','America/Los_Angeles','last_login','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','long','Invalid\x20API\x20key','https://api.treasuredata.com/errors/forbidden','basic','158162emNGNZ','Active\x20users\x20with\x20high\x20lifetime\x20value','j-abc123','journey','Greater','Alice','full_access','9EqLvWK','2024-01-15T10:05:00Z','user-3','cs-456789','purchases','cdp_db','2024-01-15T10:10:00Z','properties','1177ArjGLs','cs-111222','2024-01-01T00:00:00Z'];a184_0x24aa=function(){return _0xd71518;};return a184_0x24aa();}export function createParentSegment(_0x46bd73){const _0x4bfd06=a184_0x38170c;return{...fixtures[_0x4bfd06(0x22b)][_0x4bfd06(0x248)],..._0x46bd73};}export function createSegment(_0xcd0080){const _0x16c0e9=a184_0x38170c;return{...fixtures[_0x16c0e9(0x205)]['basic'],..._0xcd0080};}export function createJourney(_0x2cf900){const _0x2be741=a184_0x38170c;return{...fixtures[_0x2be741(0x24c)][_0x2be741(0x248)],..._0x2cf900};}export function createQueryResult(_0x2afab3){const _0xa2ed69=a184_0x38170c;return{...fixtures[_0xa2ed69(0x240)][_0xa2ed69(0x248)],..._0x2afab3};}export function createUser(_0x4d74b7){const _0x1454f8=a184_0x38170c;return{...fixtures[_0x1454f8(0x21c)]['basic'],..._0x4d74b7};}export function createJob(_0x22428b){return{...fixtures['job']['completed'],..._0x22428b};}export function createWorkflow(_0x3714be){const _0x4d7428=a184_0x38170c;return{...fixtures['workflow'][_0x4d7428(0x248)],..._0x3714be};}
|
|
1
|
+
const a184_0x23b45a=a184_0x115a;(function(_0x6a94e5,_0x3af057){const _0x29e4d5=a184_0x115a,_0x51b1b2=_0x6a94e5();while(!![]){try{const _0x4f8b30=parseInt(_0x29e4d5(0xc2))/0x1+-parseInt(_0x29e4d5(0xb6))/0x2+-parseInt(_0x29e4d5(0x105))/0x3+parseInt(_0x29e4d5(0x120))/0x4+-parseInt(_0x29e4d5(0xec))/0x5+-parseInt(_0x29e4d5(0x10f))/0x6+parseInt(_0x29e4d5(0xeb))/0x7*(parseInt(_0x29e4d5(0xc6))/0x8);if(_0x4f8b30===_0x3af057)break;else _0x51b1b2['push'](_0x51b1b2['shift']());}catch(_0x4ddbf8){_0x51b1b2['push'](_0x51b1b2['shift']());}}}(a184_0x4ba4,0xa755e));export const fixtures={'database':{'basic':{'name':a184_0x23b45a(0xc1),'count':0x5,'created_at':a184_0x23b45a(0xe9),'updated_at':a184_0x23b45a(0xe9),'permission':'administrator'},'withTables':{'name':'production_db','count':0x64,'created_at':a184_0x23b45a(0xf3),'updated_at':a184_0x23b45a(0x11d),'permission':a184_0x23b45a(0x117)}},'table':{'basic':{'id':0x3039,'name':a184_0x23b45a(0xe2),'type':a184_0x23b45a(0x119),'schema':JSON[a184_0x23b45a(0xba)]([['id',a184_0x23b45a(0xd2)],['time',a184_0x23b45a(0xd0)],[a184_0x23b45a(0xff),a184_0x23b45a(0xd2)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x23b45a(0xe9)},'events':{'id':0x303a,'name':a184_0x23b45a(0x118),'type':'log','schema':JSON[a184_0x23b45a(0xba)]([[a184_0x23b45a(0xf0),a184_0x23b45a(0xd2)],['time','long'],[a184_0x23b45a(0x115),a184_0x23b45a(0xd2)],[a184_0x23b45a(0x116),a184_0x23b45a(0xd2)],[a184_0x23b45a(0xee),a184_0x23b45a(0xd1)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a184_0x23b45a(0xdd),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a184_0x23b45a(0x10b),'master_table':{'database':a184_0x23b45a(0xbc),'table':'unified_customers'},'attributes':[{'name':'customer_id','type':'string','key':!![]},{'name':a184_0x23b45a(0xd4),'type':a184_0x23b45a(0xd2)},{'name':a184_0x23b45a(0xb3),'type':a184_0x23b45a(0xe1)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x23b45a(0xc4)},'withBehaviors':{'id':a184_0x23b45a(0x102),'name':a184_0x23b45a(0x10c),'description':a184_0x23b45a(0xc9),'status':a184_0x23b45a(0x10b),'master_table':{'database':a184_0x23b45a(0xbc),'table':a184_0x23b45a(0xf1)},'behaviors':[{'name':a184_0x23b45a(0x110),'table':{'database':a184_0x23b45a(0x108),'table':a184_0x23b45a(0x110)},'join_key':a184_0x23b45a(0xf8)},{'name':a184_0x23b45a(0xc7),'table':{'database':a184_0x23b45a(0x108),'table':a184_0x23b45a(0xc8)},'join_key':'customer_id'}],'created_at':a184_0x23b45a(0xe9),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a184_0x23b45a(0xd8),'name':'Active\x20Users','description':a184_0x23b45a(0xf6),'parent_segment_id':a184_0x23b45a(0x111),'status':a184_0x23b45a(0x10b),'rules':[{'type':'attribute','field':a184_0x23b45a(0xca),'operator':a184_0x23b45a(0xd5),'value':a184_0x23b45a(0xd6)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x23b45a(0xc4)},'withMultipleRules':{'id':'cs-111222','name':a184_0x23b45a(0x114),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a184_0x23b45a(0x111),'status':a184_0x23b45a(0x10b),'rules':[{'type':'attribute','field':'last_login','operator':a184_0x23b45a(0xd5),'value':'30d'},{'type':a184_0x23b45a(0xcb),'field':a184_0x23b45a(0xb8),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a184_0x23b45a(0xe9),'updated_at':a184_0x23b45a(0xc4)}},'journey':{'basic':{'id':a184_0x23b45a(0xd3),'name':a184_0x23b45a(0xc0),'description':a184_0x23b45a(0x11b),'status':a184_0x23b45a(0xf2),'version':0x1,'steps':[{'id':a184_0x23b45a(0xef),'type':a184_0x23b45a(0x103),'duration':'1d'},{'id':a184_0x23b45a(0xfc),'type':a184_0x23b45a(0xde),'activation_id':a184_0x23b45a(0xfd)}],'created_at':a184_0x23b45a(0xe9),'updated_at':a184_0x23b45a(0xc4)},'withDecision':{'id':a184_0x23b45a(0xfe),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a184_0x23b45a(0x10b),'version':0x2,'steps':[{'id':'step-1','type':a184_0x23b45a(0x112),'segment_id':a184_0x23b45a(0xd8),'yes_path':a184_0x23b45a(0xfc),'no_path':a184_0x23b45a(0xc3)},{'id':a184_0x23b45a(0xfc),'type':a184_0x23b45a(0xde),'activation_id':a184_0x23b45a(0xe3)},{'id':a184_0x23b45a(0xc3),'type':a184_0x23b45a(0xe5)}],'created_at':a184_0x23b45a(0xe9),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a184_0x23b45a(0xed)},{'name':'name','type':a184_0x23b45a(0xed)},{'name':a184_0x23b45a(0x11c),'type':a184_0x23b45a(0xe8)}],'data':[[a184_0x23b45a(0xcd),a184_0x23b45a(0x10a),0x64],[a184_0x23b45a(0x10e),'Bob',0xc8],[a184_0x23b45a(0x104),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':a184_0x23b45a(0xed)}],'data':[]},'singleRow':{'schema':[{'name':a184_0x23b45a(0xb5),'type':a184_0x23b45a(0xe8)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a184_0x23b45a(0x107),'email':a184_0x23b45a(0xdb),'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x23b45a(0xc4),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a184_0x23b45a(0x109),'created_at':a184_0x23b45a(0xe6),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a184_0x23b45a(0xf4),'database':a184_0x23b45a(0xc1),'status':'success','query':a184_0x23b45a(0x101),'start_at':a184_0x23b45a(0xb9),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a184_0x23b45a(0xf4),'database':a184_0x23b45a(0xc1),'status':a184_0x23b45a(0x106),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a184_0x23b45a(0xf4),'database':a184_0x23b45a(0xc1),'status':a184_0x23b45a(0xbd),'query':a184_0x23b45a(0xf5),'start_at':a184_0x23b45a(0xcc),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a184_0x23b45a(0xda)}},'workflow':{'basic':{'id':a184_0x23b45a(0xce),'name':a184_0x23b45a(0xd9),'project':a184_0x23b45a(0xf7),'revision':a184_0x23b45a(0xea),'timezone':a184_0x23b45a(0xbf),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a184_0x23b45a(0xc5),'name':a184_0x23b45a(0xdc),'project':a184_0x23b45a(0xbb),'revision':a184_0x23b45a(0xbe),'timezone':a184_0x23b45a(0xfb),'schedule':{'cron':a184_0x23b45a(0x11a)},'last_session':{'id':a184_0x23b45a(0xb4),'status':a184_0x23b45a(0x100),'started_at':a184_0x23b45a(0xe4),'finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':a184_0x23b45a(0xd7),'message':'Invalid\x20API\x20key','severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a184_0x23b45a(0x11e),'message':a184_0x23b45a(0x113),'severity':a184_0x23b45a(0xbd),'status_code':0x194}},'rateLimited':{'detail':a184_0x23b45a(0xb7)},'rfc9457':{'type':a184_0x23b45a(0xe7),'title':a184_0x23b45a(0xdf),'status':0x193,'detail':a184_0x23b45a(0xe0),'instance':'/v3/database/list'}}};export function createDatabase(_0x3eb450){const _0x370eaf=a184_0x23b45a;return{...fixtures[_0x370eaf(0xfa)][_0x370eaf(0x10d)],..._0x3eb450};}export function createTable(_0x4d1cd4){return{...fixtures['table']['basic'],..._0x4d1cd4};}function a184_0x115a(_0x395973,_0x2eb5fe){_0x395973=_0x395973-0xb3;const _0x4ba4d6=a184_0x4ba4();let _0x115a52=_0x4ba4d6[_0x395973];return _0x115a52;}export function createParentSegment(_0x1f7f85){const _0x423fbe=a184_0x23b45a;return{...fixtures['parentSegment'][_0x423fbe(0x10d)],..._0x1f7f85};}export function createSegment(_0x57f128){const _0x46617d=a184_0x23b45a;return{...fixtures['segment'][_0x46617d(0x10d)],..._0x57f128};}export function createJourney(_0x2e6bf8){const _0x4a25ed=a184_0x23b45a;return{...fixtures[_0x4a25ed(0xcf)][_0x4a25ed(0x10d)],..._0x2e6bf8};}export function createQueryResult(_0xf1f98b){return{...fixtures['queryResult']['basic'],..._0xf1f98b};}export function createUser(_0x27516a){const _0x1caadd=a184_0x23b45a;return{...fixtures[_0x1caadd(0x11f)]['basic'],..._0x27516a};}export function createJob(_0x3e218a){const _0x44dcc2=a184_0x23b45a;return{...fixtures[_0x44dcc2(0xf9)]['completed'],..._0x3e218a};}function a184_0x4ba4(){const _0x42b0eb=['2768550LDCsjB','varchar','properties','step-1','event_id','customers','draft','2023-06-15T10:30:00Z','presto','SELECT\x20*\x20FROM\x20nonexistent_table','Users\x20active\x20in\x20the\x20last\x2030\x20days','data_pipeline','customer_id','job','database','America/Los_Angeles','step-2','act-123','j-def456','name','success','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','ps-789012','wait','user-3','811437Vffhxb','running','Test\x20User','events_db','admin@example.com','Alice','active','Customers\x20with\x20Behaviors','basic','user-2','2435232eqyOvF','purchases','ps-123456','decision_point','The\x20requested\x20resource\x20does\x20not\x20exist','High\x20Value\x20Active\x20Users','user_id','event_type','full_access','events','log','0\x20*\x20*\x20*\x20*','Onboarding\x20journey\x20for\x20new\x20users','count','2024-01-15T08:00:00Z','Resource\x20not\x20found','user','3596344KHswyp','created_at','sess-111','total','2457596ilVAZL','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','lifetime_value','2024-01-15T10:00:00Z','stringify','data_sync','cdp_db','error','def456','UTC','Welcome\x20Journey','test_db','201477khrprd','step-3','2024-01-15T00:00:00Z','wf-67890','5449872OYzgFo','page_views','pageviews','Parent\x20segment\x20with\x20behavioral\x20data','last_login','attribute','2024-01-15T10:10:00Z','user-1','wf-12345','journey','long','map<string,string>','string','j-abc123','email','TimeWithinPast','30d','Invalid\x20API\x20key','cs-456789','daily_etl','Table\x20does\x20not\x20exist:\x20nonexistent_table','test@example.com','hourly_sync','Test\x20Parent\x20Segment','activation','Forbidden','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','timestamp','users','act-email','2024-01-15T09:00:00Z','end','2023-01-01T00:00:00Z','https://api.treasuredata.com/errors/forbidden','bigint','2024-01-01T00:00:00Z','abc123','21DpickC'];a184_0x4ba4=function(){return _0x42b0eb;};return a184_0x4ba4();}export function createWorkflow(_0x2ae199){return{...fixtures['workflow']['basic'],..._0x2ae199};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a185_0x2089(){const _0x39bf98=['Not\x20Found','map','Registered\x20stubs:\x0a','error','\x20registered\x20at:\x0a','application/json','1660711WokVXI','body','registerWithInspector','Unauthorized','Unmatched\x20stub','length','Too\x20Many\x20Requests','errorResponse','searchParams','https://api.treasuredata.com/errors/','Internal\x20Server\x20Error','matched','url','host','string','wasCalled','entries','272152AwjaCH','22wwAHUl','Unprocessable\x20Entity','createFetch','description','push','No\x20Content','toLowerCase','3107490WwzrCy','12NkUwoX','matchCount','Service\x20Unavailable','mockImplementation','register','get','requests','withHost','Created','18087boGJPW','GET','Request\x20body:\x20','24FqrHyL','409696iZVfhp','responder','pathname','fetchMock','stringify','12BmPwzw','9WFnfyV','includes','98MSxtIq','fail','Conflict','textResponse','join','test','getMatchCount','every','networkError','getRequests','method','headers','toUpperCase','Unknown','function','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Bad\x20Request','1260264lMhWsd','reset','isArray','text/plain','Forbidden','jsonResponse','simple','verify','Bad\x20Gateway','255685obQhUX','2ZMTlIb','stubs','split','forEach','parseRequest','rfc9457','REST','No\x20stub\x20matched\x20request:\x20','stack'];a185_0x2089=function(){return _0x39bf98;};return a185_0x2089();}const a185_0x496245=a185_0x3759;function a185_0x3759(_0x5dcd2b,_0x445ebe){_0x5dcd2b=_0x5dcd2b-0xc1;const _0x2089c7=a185_0x2089();let _0x375988=_0x2089c7[_0x5dcd2b];return _0x375988;}(function(_0x2b9802,_0x25676d){const _0x3d1c0d=a185_0x3759,_0x30d5c5=_0x2b9802();while(!![]){try{const _0x4ae281=-parseInt(_0x3d1c0d(0x113))/0x1*(parseInt(_0x3d1c0d(0xe1))/0x2)+-parseInt(_0x3d1c0d(0x10a))/0x3*(parseInt(_0x3d1c0d(0x101))/0x4)+parseInt(_0x3d1c0d(0xe0))/0x5*(-parseInt(_0x3d1c0d(0xc3))/0x6)+-parseInt(_0x3d1c0d(0x117))/0x7*(-parseInt(_0x3d1c0d(0x116))/0x8)+parseInt(_0x3d1c0d(0xc4))/0x9*(-parseInt(_0x3d1c0d(0x109))/0xa)+parseInt(_0x3d1c0d(0x102))/0xb*(-parseInt(_0x3d1c0d(0xd7))/0xc)+parseInt(_0x3d1c0d(0xf0))/0xd*(parseInt(_0x3d1c0d(0xc6))/0xe);if(_0x4ae281===_0x25676d)break;else _0x30d5c5['push'](_0x30d5c5['shift']());}catch(_0x562d60){_0x30d5c5['push'](_0x30d5c5['shift']());}}}(a185_0x2089,0x2635b));import{vi}from'vitest';export class HTTPMockRegistry{[a185_0x496245(0xe2)]=[];['requests']=[];[a185_0x496245(0xc1)]=null;[a185_0x496245(0xe7)](_0x567b62,_0x572143){return _0x410147=>{const _0x13fad3=a185_0x3759;if(_0x410147[_0x13fad3(0xd0)][_0x13fad3(0xd2)]()!==_0x567b62[_0x13fad3(0xd2)]())return![];const _0x4e4db2=new URL(_0x410147[_0x13fad3(0xfc)]);if(typeof _0x572143===_0x13fad3(0xfe))return _0x4e4db2[_0x13fad3(0x119)]===_0x572143||_0x4e4db2[_0x13fad3(0x119)][_0x13fad3(0xc5)](_0x572143);return _0x572143[_0x13fad3(0xcb)](_0x4e4db2[_0x13fad3(0x119)]);};}['withQuery'](_0x2e48dd,_0x1699d2){return _0x1f7f1c=>{const _0x19ccee=a185_0x3759;if(!_0x2e48dd(_0x1f7f1c))return![];const _0x173ece=new URL(_0x1f7f1c['url']);return Object[_0x19ccee(0x100)](_0x1699d2)[_0x19ccee(0xcd)](([_0x42dc00,_0x7f35cc])=>_0x173ece[_0x19ccee(0xf8)][_0x19ccee(0x10f)](_0x42dc00)===_0x7f35cc);};}['withBody'](_0x1a1c0e,_0x7cb85d){return _0x13ff88=>{const _0x52c2df=a185_0x3759;if(!_0x1a1c0e(_0x13ff88))return![];if(typeof _0x7cb85d===_0x52c2df(0xd4))return _0x7cb85d(_0x13ff88[_0x52c2df(0xf1)]);return JSON[_0x52c2df(0xc2)](_0x13ff88[_0x52c2df(0xf1)])===JSON[_0x52c2df(0xc2)](_0x7cb85d);};}[a185_0x496245(0x111)](_0x44abb1,_0x5efe9f){return _0x38eb8e=>{const _0xb5a9ca=a185_0x3759;if(!_0x44abb1(_0x38eb8e))return![];const _0xd551db=new URL(_0x38eb8e['url']);return _0xd551db[_0xb5a9ca(0xfd)]===_0x5efe9f;};}[a185_0x496245(0x10e)](_0x5e924f,_0x1863b0,_0x2ccfeb){const _0x6a49ca=a185_0x496245;this[_0x6a49ca(0xe2)][_0x6a49ca(0x106)]({'matcher':_0x5e924f,'responder':_0x1863b0,'matched':![],'matchCount':0x0,'stack':new Error()[_0x6a49ca(0xe9)]??'','description':_0x2ccfeb?.['description']});}[a185_0x496245(0xf2)](_0x2fa923,_0x2e9f27,_0x4deeda){const _0xb02427=a185_0x496245,_0x42747f=_0x9cf402=>{const _0x1f232f=a185_0x3759;return _0x4deeda(_0x9cf402[_0x1f232f(0xf1)],_0x9cf402),_0x2e9f27(_0x9cf402);};this[_0xb02427(0x10e)](_0x2fa923,_0x42747f);}static[a185_0x496245(0xdc)](_0x385fcd,_0x55fa42=0xc8){const _0x4b5eab=a185_0x496245;return()=>new Response(JSON[_0x4b5eab(0xc2)](_0x385fcd),{'status':_0x55fa42,'headers':{'Content-Type':_0x4b5eab(0xef)}});}static[a185_0x496245(0xf7)](_0x53cc84,_0x3bd966,_0x2bb1b3=a185_0x496245(0xdd)){return()=>{const _0x83c1e2=a185_0x3759;let _0x4054f1;switch(_0x2bb1b3){case'td-api':_0x4054f1={'errors':{'error':_0x3bd966,'message':_0x3bd966,'severity':_0x83c1e2(0xed),'status_code':_0x53cc84}};break;case _0x83c1e2(0xe6):_0x4054f1={'type':_0x83c1e2(0xf9)+_0x53cc84,'title':HTTPMockRegistry['getStatusText'](_0x53cc84),'status':_0x53cc84,'detail':_0x3bd966};break;default:_0x4054f1={'error':_0x3bd966};}return new Response(JSON[_0x83c1e2(0xc2)](_0x4054f1),{'status':_0x53cc84,'headers':{'Content-Type':_0x83c1e2(0xef)}});};}static['jsonResponseWithHeaders'](_0x5f5e69,_0x81ccee,_0x157976=0xc8){const _0x6cf00a=a185_0x496245;return()=>new Response(JSON[_0x6cf00a(0xc2)](_0x5f5e69),{'status':_0x157976,'headers':{'Content-Type':_0x6cf00a(0xef),..._0x81ccee}});}static[a185_0x496245(0xc9)](_0x4d68ad,_0x569beb=0xc8){const _0x4b323e=a185_0x496245;return()=>new Response(_0x4d68ad,{'status':_0x569beb,'headers':{'Content-Type':_0x4b323e(0xda)}});}static[a185_0x496245(0xce)](_0x460dad){return()=>{throw new Error(_0x460dad);};}[a185_0x496245(0x104)](){const _0xad6c01=a185_0x496245;return this[_0xad6c01(0xc1)]=vi['fn']()[_0xad6c01(0x10d)](async(_0x597dd4,_0x4df55e)=>{const _0x5904e1=_0xad6c01,_0x16e75f=this[_0x5904e1(0xe5)](_0x597dd4,_0x4df55e);this[_0x5904e1(0x110)]['push'](_0x16e75f);for(const _0x1d54f5 of this[_0x5904e1(0xe2)]){if(_0x1d54f5['matcher'](_0x16e75f))return _0x1d54f5[_0x5904e1(0xfb)]=!![],_0x1d54f5['matchCount']++,_0x1d54f5[_0x5904e1(0x118)](_0x16e75f);}const _0x5e117c=this[_0x5904e1(0xe2)][_0x5904e1(0xeb)]((_0x5bc541,_0x296caf)=>'\x20\x20'+(_0x296caf+0x1)+'.\x20'+(_0x5bc541[_0x5904e1(0x105)]??'unnamed\x20stub'))[_0x5904e1(0xca)]('\x0a');throw new Error(_0x5904e1(0xe8)+_0x16e75f['method']+'\x20'+_0x16e75f[_0x5904e1(0xfc)]+'\x0a'+(_0x5904e1(0x115)+JSON[_0x5904e1(0xc2)](_0x16e75f['body'])+'\x0a')+(_0x5904e1(0xec)+(_0x5e117c||'\x20\x20(none)')));}),this[_0xad6c01(0xc1)];}['parseRequest'](_0x52b212,_0x340a6a){const _0x2cbc4e=a185_0x496245,_0x2da883={};if(_0x340a6a?.[_0x2cbc4e(0xd1)]){if(_0x340a6a[_0x2cbc4e(0xd1)]instanceof Headers)_0x340a6a[_0x2cbc4e(0xd1)][_0x2cbc4e(0xe4)]((_0x41d3d6,_0x3965ee)=>{const _0x236bf2=_0x2cbc4e;_0x2da883[_0x3965ee[_0x236bf2(0x108)]()]=_0x41d3d6;});else{if(Array[_0x2cbc4e(0xd9)](_0x340a6a[_0x2cbc4e(0xd1)]))for(const [_0x1bb2d3,_0x231cf3]of _0x340a6a['headers']){_0x2da883[_0x1bb2d3['toLowerCase']()]=_0x231cf3;}else for(const [_0x255ad6,_0x3f6e95]of Object['entries'](_0x340a6a[_0x2cbc4e(0xd1)])){_0x3f6e95!==undefined&&(_0x2da883[_0x255ad6[_0x2cbc4e(0x108)]()]=_0x3f6e95);}}}let _0x5af885;if(_0x340a6a?.[_0x2cbc4e(0xf1)])try{_0x5af885=JSON['parse'](_0x340a6a[_0x2cbc4e(0xf1)]);}catch{_0x5af885=_0x340a6a[_0x2cbc4e(0xf1)];}return{'method':_0x340a6a?.[_0x2cbc4e(0xd0)]??_0x2cbc4e(0x114),'url':_0x52b212,'headers':_0x2da883,'body':_0x5af885};}[a185_0x496245(0xde)](_0x337ea9){const _0x25e19d=a185_0x496245,_0x4fd7e9=this[_0x25e19d(0xe2)]['filter'](_0x2b92e6=>!_0x2b92e6[_0x25e19d(0xfb)]);if(_0x4fd7e9[_0x25e19d(0xf5)]>0x0){const _0xd54b8e=_0x4fd7e9['map'](_0x4f7349=>{const _0x4d86f5=_0x25e19d,_0x29c2ce=_0x4f7349[_0x4d86f5(0x105)]?'\x20('+_0x4f7349[_0x4d86f5(0x105)]+')':'',_0x7f47e8=_0x4f7349[_0x4d86f5(0xe9)][_0x4d86f5(0xe3)]('\x0a')['slice'](0x2,0x5)[_0x4d86f5(0xca)]('\x0a');return _0x4d86f5(0xf4)+_0x29c2ce+_0x4d86f5(0xee)+_0x7f47e8;});_0x337ea9[_0x25e19d(0xc7)](_0x4fd7e9[_0x25e19d(0xf5)]+_0x25e19d(0xd5)+_0xd54b8e['join']('\x0a\x0a'));}}[a185_0x496245(0xcf)](){const _0x528590=a185_0x496245;return[...this[_0x528590(0x110)]];}['getLastRequest'](){const _0x36316e=a185_0x496245;return this[_0x36316e(0x110)][this[_0x36316e(0x110)][_0x36316e(0xf5)]-0x1];}[a185_0x496245(0xff)](_0x4f7a08,_0x2605f2){const _0x20e9a8=a185_0x496245;return this[_0x20e9a8(0x110)]['some'](_0x468283=>{const _0x380050=_0x20e9a8;if(_0x468283[_0x380050(0xd0)]['toUpperCase']()!==_0x4f7a08[_0x380050(0xd2)]())return![];if(typeof _0x2605f2===_0x380050(0xfe))return _0x468283[_0x380050(0xfc)][_0x380050(0xc5)](_0x2605f2);return _0x2605f2[_0x380050(0xcb)](_0x468283['url']);});}[a185_0x496245(0xcc)](_0xabcb96){const _0x92dd4a=a185_0x496245;return this[_0x92dd4a(0xe2)][_0xabcb96]?.[_0x92dd4a(0x10b)]??0x0;}[a185_0x496245(0xd8)](){this['stubs']=[],this['requests']=[],this['fetchMock']=null;}static['getStatusText'](_0x56d60d){const _0x2b6693=a185_0x496245,_0x317386={0xc8:'OK',0xc9:_0x2b6693(0x112),0xcc:_0x2b6693(0x107),0x190:_0x2b6693(0xd6),0x191:_0x2b6693(0xf3),0x193:_0x2b6693(0xdb),0x194:_0x2b6693(0xea),0x199:_0x2b6693(0xc8),0x1a6:_0x2b6693(0x103),0x1ad:_0x2b6693(0xf6),0x1f4:_0x2b6693(0xfa),0x1f6:_0x2b6693(0xdf),0x1f7:_0x2b6693(0x10c)};return _0x317386[_0x56d60d]??_0x2b6693(0xd3);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5dcdd2,_0x41992b){var _0x270f85=a186_0x5be4,_0x26afd8=_0x5dcdd2();while(!![]){try{var _0xb8a5c7=parseInt(_0x270f85(0x7d))/0x1+-parseInt(_0x270f85(0x78))/0x2*(-parseInt(_0x270f85(0x7b))/0x3)+-parseInt(_0x270f85(0x7a))/0x4*(parseInt(_0x270f85(0x77))/0x5)+parseInt(_0x270f85(0x74))/0x6*(parseInt(_0x270f85(0x7c))/0x7)+-parseInt(_0x270f85(0x75))/0x8+-parseInt(_0x270f85(0x79))/0x9+parseInt(_0x270f85(0x76))/0xa;if(_0xb8a5c7===_0x41992b)break;else _0x26afd8['push'](_0x26afd8['shift']());}catch(_0x54c6f6){_0x26afd8['push'](_0x26afd8['shift']());}}}(a186_0x30a9,0x7ab1e));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a186_0x5be4(_0x5140b3,_0x5539a6){_0x5140b3=_0x5140b3-0x74;var _0x30a939=a186_0x30a9();var _0x5be4bf=_0x30a939[_0x5140b3];return _0x5be4bf;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';function a186_0x30a9(){var _0x418c70=['1113918FFXDIJ','7595888qBAQHt','9496110AMcHZD','39245GXpbaZ','28534gjpISc','7864551VCZESq','140WDCdYa','111ExMqBk','7ADAxiI','937455JJPcXm'];a186_0x30a9=function(){return _0x418c70;};return a186_0x30a9();}
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a187_0x248d(){const _0x5ca2eb=['7HgZvDK','5546574vsFIbm','length','111075ugIiqj','408441kFhvtc','all','4124504gIeCAK','55990gMRDOJ','1302558tBYJIK','map','24rNtUxT','1743950vvMPJF'];a187_0x248d=function(){return _0x5ca2eb;};return a187_0x248d();}function a187_0x4247(_0x26462c,_0x330b0a){_0x26462c=_0x26462c-0x181;const _0x248d34=a187_0x248d();let _0x424719=_0x248d34[_0x26462c];return _0x424719;}(function(_0x4cd70e,_0x498758){const _0x59e854=a187_0x4247,_0x2dfb8b=_0x4cd70e();while(!![]){try{const _0x2abd84=parseInt(_0x59e854(0x181))/0x1+parseInt(_0x59e854(0x185))/0x2+parseInt(_0x59e854(0x18a))/0x3*(-parseInt(_0x59e854(0x184))/0x4)+parseInt(_0x59e854(0x189))/0x5+parseInt(_0x59e854(0x182))/0x6+parseInt(_0x59e854(0x186))/0x7*(-parseInt(_0x59e854(0x18c))/0x8)+parseInt(_0x59e854(0x187))/0x9;if(_0x2abd84===_0x498758)break;else _0x2dfb8b['push'](_0x2dfb8b['shift']());}catch(_0x387f8d){_0x2dfb8b['push'](_0x2dfb8b['shift']());}}}(a187_0x248d,0x6e22a));export async function batchAsync(_0x4ea187,_0x31f0d4,_0x3c0496=0xa){const _0x35b8e4=a187_0x4247,_0x173ff4=[];for(let _0x168817=0x0;_0x168817<_0x4ea187[_0x35b8e4(0x188)];_0x168817+=_0x3c0496){const _0x348a94=_0x4ea187['slice'](_0x168817,_0x168817+_0x3c0496),_0x4c05ef=await Promise[_0x35b8e4(0x18b)](_0x348a94[_0x35b8e4(0x183)](_0x31f0d4));_0x173ff4['push'](..._0x4c05ef);}return _0x173ff4;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x21c62d=a188_0x9f85;(function(_0x324428,_0x1f8d3e){const _0x1e1cd9=a188_0x9f85,_0xf0e63b=_0x324428();while(!![]){try{const _0x44707b=parseInt(_0x1e1cd9(0xdf))/0x1+-parseInt(_0x1e1cd9(0xdb))/0x2*(-parseInt(_0x1e1cd9(0xe8))/0x3)+parseInt(_0x1e1cd9(0xd4))/0x4*(parseInt(_0x1e1cd9(0xda))/0x5)+parseInt(_0x1e1cd9(0xd3))/0x6*(parseInt(_0x1e1cd9(0xeb))/0x7)+-parseInt(_0x1e1cd9(0xee))/0x8*(-parseInt(_0x1e1cd9(0xd6))/0x9)+parseInt(_0x1e1cd9(0xf1))/0xa*(-parseInt(_0x1e1cd9(0xed))/0xb)+-parseInt(_0x1e1cd9(0xe1))/0xc;if(_0x44707b===_0x1f8d3e)break;else _0xf0e63b['push'](_0xf0e63b['shift']());}catch(_0x222cca){_0xf0e63b['push'](_0xf0e63b['shift']());}}}(a188_0x5f10,0x8febf));import*as a188_0x1afd30 from'chalk';const Chalk=a188_0x1afd30[a188_0x21c62d(0xd9)];export function shouldUseColor(_0x1a2f02={}){const _0x21cbed=a188_0x21c62d;if(_0x1a2f02[_0x21cbed(0xe3)]===!![])return![];if(_0x1a2f02['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x21cbed(0xd5)][_0x21cbed(0xdc)]??![];}function a188_0x5f10(){const _0x57a196=['28361496WwXlWn','map','noColor','dim','length','green','join','5043WGFuAr','string','stringify','4531331ZzJobh','null','2398xJgsaN','216312fOzZIP','isArray','repeat','7450OCmxcM','boolean','6voXYUm','113548abNOtV','stdout','117LahzUV','entries','yellow','Chalk','110prhfxT','1120qmspal','isTTY','number','cyan','550657ZJERFL','blue'];a188_0x5f10=function(){return _0x57a196;};return a188_0x5f10();}export function getChalk(_0x988bb5={}){if(shouldUseColor(_0x988bb5))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x242e27,_0x487e2e={}){return getChalk(_0x487e2e)['dim'](_0x242e27);}export function colorHeader(_0x31e0fd,_0x7727c0={}){const _0x6a763f=a188_0x21c62d;return getChalk(_0x7727c0)[_0x6a763f(0xde)](_0x31e0fd);}export function colorType(_0x50f568,_0x4fd90e={}){const _0x59ade0=a188_0x21c62d;return getChalk(_0x4fd90e)[_0x59ade0(0xe4)](_0x50f568);}export function colorJSONKey(_0x2f9916,_0x588a0f={}){const _0x37ee4a=a188_0x21c62d;return getChalk(_0x588a0f)[_0x37ee4a(0xe0)](_0x2f9916);}export function colorJSONString(_0x2a5c95,_0x49af46={}){const _0x215252=a188_0x21c62d;return getChalk(_0x49af46)[_0x215252(0xe6)](_0x2a5c95);}export function colorJSONNumber(_0x31c30e,_0x350f67={}){const _0x571717=a188_0x21c62d;return getChalk(_0x350f67)[_0x571717(0xde)](_0x31c30e);}export function colorJSONBoolean(_0x2ad383,_0x37ddd2={}){const _0x599b52=a188_0x21c62d;return getChalk(_0x37ddd2)[_0x599b52(0xd8)](_0x2ad383);}export function colorJSONNull(_0x279255,_0x4f0093={}){const _0x3b90b9=a188_0x21c62d;return getChalk(_0x4f0093)[_0x3b90b9(0xe4)](_0x279255);}export function colorizeJSONCompact(_0x52188f,_0x429d64={}){const _0x56f6e8=a188_0x21c62d;if(!shouldUseColor(_0x429d64))return JSON[_0x56f6e8(0xea)](_0x52188f);if(_0x52188f===null)return colorJSONNull('null',_0x429d64);if(typeof _0x52188f==='boolean')return colorJSONBoolean(String(_0x52188f),_0x429d64);if(typeof _0x52188f===_0x56f6e8(0xdd))return colorJSONNumber(String(_0x52188f),_0x429d64);if(typeof _0x52188f===_0x56f6e8(0xe9))return colorJSONString(JSON[_0x56f6e8(0xea)](_0x52188f),_0x429d64);if(Array[_0x56f6e8(0xef)](_0x52188f)){if(_0x52188f['length']===0x0)return'[]';const _0x19ae22=_0x52188f[_0x56f6e8(0xe2)](_0xf5c8e1=>colorizeJSONCompact(_0xf5c8e1,_0x429d64));return'['+_0x19ae22[_0x56f6e8(0xe7)](',')+']';}if(typeof _0x52188f==='object'){const _0x169bf7=Object['entries'](_0x52188f);if(_0x169bf7[_0x56f6e8(0xe5)]===0x0)return'{}';const _0x55174b=_0x169bf7[_0x56f6e8(0xe2)](([_0x2ea8b4,_0x39f282])=>{const _0x46190e=colorJSONKey(JSON['stringify'](_0x2ea8b4),_0x429d64),_0x1f83ee=colorizeJSONCompact(_0x39f282,_0x429d64);return _0x46190e+':'+_0x1f83ee;});return'{'+_0x55174b[_0x56f6e8(0xe7)](',')+'}';}return String(_0x52188f);}function a188_0x9f85(_0xf6b5b,_0x5f09b5){_0xf6b5b=_0xf6b5b-0xd2;const _0x5f10e1=a188_0x5f10();let _0x9f8561=_0x5f10e1[_0xf6b5b];return _0x9f8561;}export function colorizeJSON(_0x5f4f6a,_0x3ecbf4={},_0x316e27=0x0){const _0x4045df=a188_0x21c62d;if(!shouldUseColor(_0x3ecbf4))return JSON[_0x4045df(0xea)](_0x5f4f6a,null,0x2);const _0x5377d1='\x20'[_0x4045df(0xf0)](_0x316e27),_0x2a102f=_0x316e27+0x2;if(_0x5f4f6a===null)return colorJSONNull(_0x4045df(0xec),_0x3ecbf4);if(typeof _0x5f4f6a===_0x4045df(0xd2))return colorJSONBoolean(String(_0x5f4f6a),_0x3ecbf4);if(typeof _0x5f4f6a===_0x4045df(0xdd))return colorJSONNumber(String(_0x5f4f6a),_0x3ecbf4);if(typeof _0x5f4f6a===_0x4045df(0xe9))return colorJSONString(JSON['stringify'](_0x5f4f6a),_0x3ecbf4);if(Array[_0x4045df(0xef)](_0x5f4f6a)){if(_0x5f4f6a[_0x4045df(0xe5)]===0x0)return'[]';const _0x1d8103=_0x5f4f6a[_0x4045df(0xe2)](_0x43af03=>{const _0x1a88e7=colorizeJSON(_0x43af03,_0x3ecbf4,_0x2a102f);return''+'\x20'['repeat'](_0x2a102f)+_0x1a88e7;});return'[\x0a'+_0x1d8103[_0x4045df(0xe7)](',\x0a')+('\x0a'+_0x5377d1+']');}if(typeof _0x5f4f6a==='object'){const _0x20d094=Object[_0x4045df(0xd7)](_0x5f4f6a);if(_0x20d094[_0x4045df(0xe5)]===0x0)return'{}';const _0x5e400e=_0x20d094[_0x4045df(0xe2)](([_0x27f3cd,_0x224895])=>{const _0x29d1c6=_0x4045df,_0x52558e=colorJSONKey(JSON['stringify'](_0x27f3cd),_0x3ecbf4),_0x580f84=colorizeJSON(_0x224895,_0x3ecbf4,_0x2a102f);return''+'\x20'[_0x29d1c6(0xf0)](_0x2a102f)+_0x52558e+':\x20'+_0x580f84;});return'{\x0a'+_0x5e400e['join'](',\x0a')+('\x0a'+_0x5377d1+'}');}return String(_0x5f4f6a);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a189_0x21e5(_0x180fc5,_0xc4bffc){_0x180fc5=_0x180fc5-0x6c;const _0x3074e5=a189_0x3074();let _0x21e5e5=_0x3074e5[_0x180fc5];return _0x21e5e5;}(function(_0x1a923d,_0x4e05d3){const _0x94b2b=a189_0x21e5,_0x2562a6=_0x1a923d();while(!![]){try{const _0x566ca3=parseInt(_0x94b2b(0x8e))/0x1*(parseInt(_0x94b2b(0x8c))/0x2)+parseInt(_0x94b2b(0x7d))/0x3+parseInt(_0x94b2b(0x8f))/0x4+-parseInt(_0x94b2b(0x76))/0x5+-parseInt(_0x94b2b(0x85))/0x6+parseInt(_0x94b2b(0x79))/0x7+-parseInt(_0x94b2b(0x6e))/0x8;if(_0x566ca3===_0x4e05d3)break;else _0x2562a6['push'](_0x2562a6['shift']());}catch(_0xe37313){_0x2562a6['push'](_0x2562a6['shift']());}}}(a189_0x3074,0xbd68e));import a189_0x391d23 from'chalk';export function generateDiff(_0x3f4a75,_0x36b1f8){const _0x2586a8=a189_0x21e5,_0x35baca=_0x3f4a75[_0x2586a8(0x89)]('\x0a'),_0x2cdc44=_0x36b1f8[_0x2586a8(0x89)]('\x0a'),_0x577b2d=[],_0x45f74d=computeLCS(_0x35baca,_0x2cdc44);let _0x6ee390=0x0,_0x4c1a18=0x0,_0x183dba=0x0;while(_0x6ee390<_0x35baca[_0x2586a8(0x87)]||_0x4c1a18<_0x2cdc44[_0x2586a8(0x87)]){if(_0x183dba<_0x45f74d[_0x2586a8(0x87)]&&_0x6ee390<_0x35baca[_0x2586a8(0x87)]&&_0x35baca[_0x6ee390]===_0x45f74d[_0x183dba])_0x4c1a18<_0x2cdc44[_0x2586a8(0x87)]&&_0x2cdc44[_0x4c1a18]===_0x45f74d[_0x183dba]?(_0x577b2d[_0x2586a8(0x71)]({'type':_0x2586a8(0x7e),'content':_0x35baca[_0x6ee390]}),_0x6ee390++,_0x4c1a18++,_0x183dba++):(_0x577b2d[_0x2586a8(0x71)]({'type':_0x2586a8(0x7c),'content':_0x2cdc44[_0x4c1a18]}),_0x4c1a18++);else{if(_0x183dba<_0x45f74d[_0x2586a8(0x87)]&&_0x4c1a18<_0x2cdc44[_0x2586a8(0x87)]&&_0x2cdc44[_0x4c1a18]===_0x45f74d[_0x183dba])_0x577b2d['push']({'type':_0x2586a8(0x81),'content':_0x35baca[_0x6ee390]}),_0x6ee390++;else{if(_0x6ee390<_0x35baca[_0x2586a8(0x87)]&&(_0x183dba>=_0x45f74d[_0x2586a8(0x87)]||_0x35baca[_0x6ee390]!==_0x45f74d[_0x183dba]))_0x577b2d['push']({'type':_0x2586a8(0x81),'content':_0x35baca[_0x6ee390]}),_0x6ee390++;else _0x4c1a18<_0x2cdc44['length']&&(_0x577b2d[_0x2586a8(0x71)]({'type':_0x2586a8(0x7c),'content':_0x2cdc44[_0x4c1a18]}),_0x4c1a18++);}}}return _0x577b2d;}function a189_0x3074(){const _0x375d99=['some','removed','\x20\x20...','has','green','4281306jtrhZu','map','length','cyan','split','max','forEach','58XRPNWY','padStart','15245OohBFx','5431712epuhLc','red','type','15588632nalGgt','new','\x20-\x20','push','old','add','\x20+\x20','fill','2703035xXxwam','unshift','\x20\x20\x20','7780171QNFSxX','size','repeat','added','3201219bQlMNn','unchanged','content'];a189_0x3074=function(){return _0x375d99;};return a189_0x3074();}function computeLCS(_0x16aa3a,_0x1aab7e){const _0x4f57c5=a189_0x21e5,_0x131693=_0x16aa3a[_0x4f57c5(0x87)],_0x2021b3=_0x1aab7e[_0x4f57c5(0x87)],_0x39991a=Array(_0x131693+0x1)['fill'](null)[_0x4f57c5(0x86)](()=>Array(_0x2021b3+0x1)[_0x4f57c5(0x75)](0x0));for(let _0x566efe=0x1;_0x566efe<=_0x131693;_0x566efe++){for(let _0x1da15a=0x1;_0x1da15a<=_0x2021b3;_0x1da15a++){_0x16aa3a[_0x566efe-0x1]===_0x1aab7e[_0x1da15a-0x1]?_0x39991a[_0x566efe][_0x1da15a]=_0x39991a[_0x566efe-0x1][_0x1da15a-0x1]+0x1:_0x39991a[_0x566efe][_0x1da15a]=Math['max'](_0x39991a[_0x566efe-0x1][_0x1da15a],_0x39991a[_0x566efe][_0x1da15a-0x1]);}}const _0x2e374c=[];let _0x18e303=_0x131693,_0x52eac4=_0x2021b3;while(_0x18e303>0x0&&_0x52eac4>0x0){if(_0x16aa3a[_0x18e303-0x1]===_0x1aab7e[_0x52eac4-0x1])_0x2e374c[_0x4f57c5(0x77)](_0x16aa3a[_0x18e303-0x1]),_0x18e303--,_0x52eac4--;else _0x39991a[_0x18e303-0x1][_0x52eac4]>_0x39991a[_0x18e303][_0x52eac4-0x1]?_0x18e303--:_0x52eac4--;}return _0x2e374c;}export function formatDiffWithColors(_0x257aac,_0x2082b4=0x3){const _0x91926c=a189_0x21e5,_0x520f80=new Set();_0x257aac[_0x91926c(0x8b)]((_0x50bfbb,_0x57c57a)=>{const _0x40f443=_0x91926c;_0x50bfbb['type']!==_0x40f443(0x7e)&&_0x520f80[_0x40f443(0x73)](_0x57c57a);});if(_0x520f80[_0x91926c(0x7a)]===0x0)return'';const _0x25f237=new Set();for(const _0x406b22 of _0x520f80){for(let _0x3849f5=Math['max'](0x0,_0x406b22-_0x2082b4);_0x3849f5<=Math['min'](_0x257aac[_0x91926c(0x87)]-0x1,_0x406b22+_0x2082b4);_0x3849f5++){_0x25f237['add'](_0x3849f5);}}const _0x4382dd=[];let _0x345cfe=-0x1;const _0x1a34ed=_0x257aac[_0x91926c(0x87)],_0x245464=Math[_0x91926c(0x8a)](0x3,String(_0x1a34ed)[_0x91926c(0x87)]),_0x4ecd52=[];let _0x1456af=0x0,_0x17ba77=0x0;for(const _0xfc1471 of _0x257aac){if(_0xfc1471[_0x91926c(0x6d)]===_0x91926c(0x81))_0x1456af++,_0x4ecd52[_0x91926c(0x71)]({'old':_0x1456af,'new':0x0});else _0xfc1471[_0x91926c(0x6d)]===_0x91926c(0x7c)?(_0x17ba77++,_0x4ecd52[_0x91926c(0x71)]({'old':0x0,'new':_0x17ba77})):(_0x1456af++,_0x17ba77++,_0x4ecd52[_0x91926c(0x71)]({'old':_0x1456af,'new':_0x17ba77}));}for(let _0x4f83c3=0x0;_0x4f83c3<_0x257aac[_0x91926c(0x87)];_0x4f83c3++){if(!_0x25f237[_0x91926c(0x83)](_0x4f83c3))continue;_0x345cfe!==-0x1&&_0x4f83c3>_0x345cfe+0x1&&_0x4382dd['push'](a189_0x391d23[_0x91926c(0x88)](_0x91926c(0x82)));_0x345cfe=_0x4f83c3;const _0xc34b55=_0x257aac[_0x4f83c3],_0x51eaca=_0x4ecd52[_0x4f83c3],_0x5db8c9=_0x51eaca['old']>0x0?String(_0x51eaca[_0x91926c(0x72)])['padStart'](_0x245464):'\x20'[_0x91926c(0x7b)](_0x245464),_0xb393ef=_0x51eaca[_0x91926c(0x6f)]>0x0?String(_0x51eaca[_0x91926c(0x6f)])[_0x91926c(0x8d)](_0x245464):'\x20'[_0x91926c(0x7b)](_0x245464);switch(_0xc34b55[_0x91926c(0x6d)]){case _0x91926c(0x81):_0x4382dd[_0x91926c(0x71)](a189_0x391d23[_0x91926c(0x6c)](_0x5db8c9+'\x20'+_0xb393ef+_0x91926c(0x70)+_0xc34b55[_0x91926c(0x7f)]));break;case _0x91926c(0x7c):_0x4382dd['push'](a189_0x391d23[_0x91926c(0x84)](_0x5db8c9+'\x20'+_0xb393ef+_0x91926c(0x74)+_0xc34b55['content']));break;default:_0x4382dd[_0x91926c(0x71)](a189_0x391d23['dim'](_0x5db8c9+'\x20'+_0xb393ef+_0x91926c(0x78)+_0xc34b55[_0x91926c(0x7f)]));break;}}return _0x4382dd['join']('\x0a');}export function hasChanges(_0x4e6c00){const _0x4ff3a3=a189_0x21e5;return _0x4e6c00[_0x4ff3a3(0x80)](_0x599e69=>_0x599e69[_0x4ff3a3(0x6d)]!==_0x4ff3a3(0x7e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45e1fb,_0x9345d8){const _0xcaa3c4=a190_0x15d6,_0x48e0f8=_0x45e1fb();while(!![]){try{const _0x36ae11=parseInt(_0xcaa3c4(0x1bf))/0x1*(-parseInt(_0xcaa3c4(0x1cf))/0x2)+-parseInt(_0xcaa3c4(0x1d1))/0x3+-parseInt(_0xcaa3c4(0x1ca))/0x4*(-parseInt(_0xcaa3c4(0x1be))/0x5)+parseInt(_0xcaa3c4(0x1c7))/0x6+-parseInt(_0xcaa3c4(0x1cd))/0x7*(-parseInt(_0xcaa3c4(0x1c5))/0x8)+parseInt(_0xcaa3c4(0x1d0))/0x9*(-parseInt(_0xcaa3c4(0x1d2))/0xa)+parseInt(_0xcaa3c4(0x1c9))/0xb;if(_0x36ae11===_0x9345d8)break;else _0x48e0f8['push'](_0x48e0f8['shift']());}catch(_0x4bbf71){_0x48e0f8['push'](_0x48e0f8['shift']());}}}(a190_0x6f22,0xbf781));import*as a190_0x4e0da9 from'node:fs';function a190_0x15d6(_0x24a3aa,_0x8df93b){_0x24a3aa=_0x24a3aa-0x1be;const _0x6f2256=a190_0x6f22();let _0x15d643=_0x6f2256[_0x24a3aa];return _0x15d643;}import*as a190_0x3caa47 from'node:path';export function setSecureFilePermissions(_0x5ece32){const _0x1c3385=a190_0x15d6;try{a190_0x4e0da9['chmodSync'](_0x5ece32,0x180);}catch{console[_0x1c3385(0x1ce)](_0x1c3385(0x1d3)+_0x5ece32);}}export function setSecureDirectoryPermissions(_0x43cc64){const _0x258438=a190_0x15d6;try{a190_0x4e0da9[_0x258438(0x1c1)](_0x43cc64,0x1c0);}catch{console[_0x258438(0x1ce)](_0x258438(0x1d3)+_0x43cc64);}}function a190_0x6f22(){const _0x3e9d65=['9006558NrinLL','630172jdeuCl','mode',').\x20','10047149TpYwKn','warn','17854KDriqh','36ecjRDO','4416279mrtrlT','957720SuoVIs','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','toString','Should\x20be\x200600\x20or\x20more\x20restrictive.','5XlgyBq','117pYXugB','\x20has\x20insecure\x20permissions\x20(','chmodSync','writeFileSync','dirname','mkdirSync','8TMkHxg','statSync','7633614rMWJLN','existsSync'];a190_0x6f22=function(){return _0x3e9d65;};return a190_0x6f22();}export function createSecureDirectory(_0x281280){const _0x4da4f8=a190_0x15d6;!a190_0x4e0da9[_0x4da4f8(0x1c8)](_0x281280)&&(a190_0x4e0da9[_0x4da4f8(0x1c4)](_0x281280,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x281280));}export function validateSecureFilePermissions(_0x1e25e8){const _0x6cf260=a190_0x15d6;try{const _0x51bf69=a190_0x4e0da9[_0x6cf260(0x1c6)](_0x1e25e8),_0x24f13c=_0x51bf69[_0x6cf260(0x1cb)]&0x1ff,_0x2ee916=(_0x24f13c&0x3f)!==0x0;if(_0x2ee916)return console[_0x6cf260(0x1ce)]('Warning:\x20'+_0x1e25e8+_0x6cf260(0x1c0)+_0x24f13c[_0x6cf260(0x1d4)](0x8)+_0x6cf260(0x1cc)+_0x6cf260(0x1d5)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x38c80c,_0x3dba83){const _0x507891=a190_0x15d6,_0x21a198=a190_0x3caa47[_0x507891(0x1c3)](_0x38c80c);createSecureDirectory(_0x21a198),a190_0x4e0da9[_0x507891(0x1c2)](_0x38c80c,_0x3dba83,{'mode':0x180}),setSecureFilePermissions(_0x38c80c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a191_0x4b9a(){const _0x1d1f1b=['9EVyyRR','22906827EMYLRp','code','Error\x20reading\x20file\x20\x27','925915NKpsXK','1107784AHYytq','EACCES','22cCWwCp','INTERNAL','3669575ynCaud','message','6790640WslxUZ','PERMISSION_DENIED','55063RIJGXE','\x27\x20not\x20found','utf-8','Permission\x20denied\x20reading\x20file\x20\x27','NOT_FOUND','File\x20\x27','ENOENT','\x27:\x20','3570552uCAWwn'];a191_0x4b9a=function(){return _0x1d1f1b;};return a191_0x4b9a();}(function(_0x4e0901,_0xcf0262){const _0x5328a9=a191_0x8ff4,_0x3e6634=_0x4e0901();while(!![]){try{const _0x2f7143=parseInt(_0x5328a9(0x11c))/0x1*(-parseInt(_0x5328a9(0x116))/0x2)+parseInt(_0x5328a9(0x10f))/0x3*(-parseInt(_0x5328a9(0x114))/0x4)+parseInt(_0x5328a9(0x113))/0x5+parseInt(_0x5328a9(0x10e))/0x6+-parseInt(_0x5328a9(0x118))/0x7+-parseInt(_0x5328a9(0x11a))/0x8+parseInt(_0x5328a9(0x110))/0x9;if(_0x2f7143===_0xcf0262)break;else _0x3e6634['push'](_0x3e6634['shift']());}catch(_0x231a38){_0x3e6634['push'](_0x3e6634['shift']());}}}(a191_0x4b9a,0x7df34));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x8ff4(_0x27e03a,_0x59fba8){_0x27e03a=_0x27e03a-0x109;const _0x4b9aa9=a191_0x4b9a();let _0x8ff43=_0x4b9aa9[_0x27e03a];return _0x8ff43;}export function readFileContent(_0x122cc3){const _0x59c3d3=a191_0x8ff4;try{return readFileSync(_0x122cc3,_0x59c3d3(0x11e));}catch(_0x408f37){const _0x1eecc7=_0x408f37[_0x59c3d3(0x111)];if(_0x1eecc7===_0x59c3d3(0x10c))throw new SDKError(ErrorCode[_0x59c3d3(0x10a)],_0x59c3d3(0x10b)+_0x122cc3+_0x59c3d3(0x11d),_0x408f37);else{if(_0x1eecc7===_0x59c3d3(0x115))throw new SDKError(ErrorCode[_0x59c3d3(0x11b)],_0x59c3d3(0x109)+_0x122cc3+'\x27',_0x408f37);else throw new SDKError(ErrorCode[_0x59c3d3(0x117)],_0x59c3d3(0x112)+_0x122cc3+_0x59c3d3(0x10d)+_0x408f37[_0x59c3d3(0x119)],_0x408f37);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x212060,_0x3d08ad){const _0x4b3368=a192_0x921c,_0x427db4=_0x212060();while(!![]){try{const _0x4229ba=parseInt(_0x4b3368(0xf3))/0x1+-parseInt(_0x4b3368(0xef))/0x2*(-parseInt(_0x4b3368(0xf4))/0x3)+parseInt(_0x4b3368(0xdd))/0x4*(parseInt(_0x4b3368(0xe4))/0x5)+parseInt(_0x4b3368(0xf7))/0x6+-parseInt(_0x4b3368(0xed))/0x7*(-parseInt(_0x4b3368(0xe5))/0x8)+-parseInt(_0x4b3368(0xdc))/0x9*(-parseInt(_0x4b3368(0xe8))/0xa)+parseInt(_0x4b3368(0xf2))/0xb*(-parseInt(_0x4b3368(0xde))/0xc);if(_0x4229ba===_0x3d08ad)break;else _0x427db4['push'](_0x427db4['shift']());}catch(_0x414161){_0x427db4['push'](_0x427db4['shift']());}}}(a192_0x1af6,0xcb32f));import*as a192_0x108c7 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x3d1c2b,_0x2717e9,_0x260d0e){const _0x189925=a192_0x921c,_0x18b730=_0x3d1c2b+'/'+_0x2717e9,_0x108d97=cache[_0x189925(0xec)](_0x18b730);if(_0x108d97&&Date[_0x189925(0xf0)]()-_0x108d97[_0x189925(0xf1)]<CACHE_TTL_MS)return Promise[_0x189925(0xfb)](_0x108d97[_0x189925(0xee)]);return new Promise((_0x2fdd70,_0x2e80cc)=>{const _0x18a138=_0x189925,_0xfbe71f={'hostname':_0x18a138(0xdb),'path':_0x18a138(0xe6)+_0x3d1c2b+'/'+_0x2717e9+_0x18a138(0xf5),'headers':{'User-Agent':_0x260d0e,'Accept':_0x18a138(0xe2)},'timeout':REQUEST_TIMEOUT_MS},_0x5e9fb0=a192_0x108c7[_0x18a138(0xec)](_0xfbe71f,_0x14a4d9=>{const _0x2348d8=_0x18a138;let _0x1e5214='';_0x14a4d9['on'](_0x2348d8(0xe0),_0x1a0e8d=>{const _0x4807a9=_0x2348d8;_0x1e5214+=_0x1a0e8d[_0x4807a9(0xf6)]();}),_0x14a4d9['on'](_0x2348d8(0xd8),()=>{const _0x3aa042=_0x2348d8;if(_0x14a4d9[_0x3aa042(0xe9)]!==0xc8){_0x2e80cc(new Error(_0x3aa042(0xdf)+_0x14a4d9[_0x3aa042(0xe9)]+':\x20'+_0x1e5214[_0x3aa042(0xe7)](0x0,0xc8)));return;}try{const _0x36c7a6=JSON['parse'](_0x1e5214);cache[_0x3aa042(0xf9)](_0x18b730,{'releases':_0x36c7a6,'fetchedAt':Date[_0x3aa042(0xf0)]()}),_0x2fdd70(_0x36c7a6);}catch(_0x4ae46f){_0x2e80cc(_0x4ae46f);}});});_0x5e9fb0['on'](_0x18a138(0xf8),()=>{const _0x59a8e6=_0x18a138;_0x5e9fb0[_0x59a8e6(0xea)](),_0x2e80cc(new Error(_0x59a8e6(0xfa)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5e9fb0['on'](_0x18a138(0xd9),_0x2e80cc);});}function a192_0x921c(_0x1f2464,_0x7d10cf){_0x1f2464=_0x1f2464-0xd8;const _0x1af65b=a192_0x1af6();let _0x921ce7=_0x1af65b[_0x1f2464];return _0x921ce7;}function a192_0x1af6(){const _0x4e5e3b=['3678540osliNr','timeout','set','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','resolve','end','error','find','api.github.com','17811Ekkgst','60940TVocql','761112iEcMyN','GitHub\x20API\x20returned\x20','data','tag_name','application/vnd.github+json','prerelease','95EdIsbC','2255576xEWpho','/repos/','slice','5890WuLAGc','statusCode','destroy','next','get','28VleGKK','releases','2978NNhhaP','now','fetchedAt','814mfaRMO','910836JUQANT','2859cerKeN','/releases?per_page=20','toString'];a192_0x1af6=function(){return _0x4e5e3b;};return a192_0x1af6();}export async function resolveReleaseTag(_0x23ca0c,_0x1c4c51,_0x2b5de6,_0x1ff8d9){const _0x22384b=a192_0x921c,_0x448466=await fetchGitHubReleases(_0x1c4c51,_0x2b5de6,_0x1ff8d9);if(_0x448466['length']===0x0)return null;if(_0x23ca0c===_0x22384b(0xeb))return _0x448466[0x0][_0x22384b(0xe1)];const _0x50219c=_0x448466[_0x22384b(0xda)](_0x198816=>!_0x198816[_0x22384b(0xe3)]);return _0x50219c?_0x50219c[_0x22384b(0xe1)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52db28,_0x23929a){const _0x550ad4=a193_0x197a,_0x57d13d=_0x52db28();while(!![]){try{const _0x554e46=-parseInt(_0x550ad4(0x1ce))/0x1*(parseInt(_0x550ad4(0x1d2))/0x2)+parseInt(_0x550ad4(0x1ca))/0x3*(-parseInt(_0x550ad4(0x1c1))/0x4)+parseInt(_0x550ad4(0x1d1))/0x5+parseInt(_0x550ad4(0x1d0))/0x6+parseInt(_0x550ad4(0x1be))/0x7+-parseInt(_0x550ad4(0x1bf))/0x8*(-parseInt(_0x550ad4(0x1c0))/0x9)+parseInt(_0x550ad4(0x1c7))/0xa*(-parseInt(_0x550ad4(0x1c8))/0xb);if(_0x554e46===_0x23929a)break;else _0x57d13d['push'](_0x57d13d['shift']());}catch(_0x385b7e){_0x57d13d['push'](_0x57d13d['shift']());}}}(a193_0x4ab3,0x34760));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x106dcd=a193_0x197a;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x106dcd(0x1c5));}const registry=new Map();export function registerGlobalCacheKey(_0x492831,_0x2f2693){const _0x34422b=a193_0x197a,_0x31929c=registry[_0x34422b(0x1d3)](_0x492831);if(_0x31929c&&_0x31929c!==_0x2f2693)throw new Error(_0x34422b(0x1c6)+_0x492831+_0x34422b(0x1cc)+_0x31929c+_0x34422b(0x1cb)+_0x2f2693+'\x22');registry[_0x34422b(0x1c2)](_0x492831,_0x2f2693);}export function getGlobalCachePath(_0x44b6a2){return join(getGlobalCacheDir(),_0x44b6a2);}function ensureGlobalCacheDir(){const _0x467ac0=getGlobalCacheDir();!existsSync(_0x467ac0)&&mkdirSync(_0x467ac0,{'recursive':!![]});}function readCacheJson(_0x41fb29){const _0x5a4e77=a193_0x197a,_0x5a73b6=getGlobalCachePath(_0x41fb29);if(!existsSync(_0x5a73b6))return undefined;try{const _0x4a4ce9=readFileSync(_0x5a73b6,_0x5a4e77(0x1cd));return JSON['parse'](_0x4a4ce9);}catch{return undefined;}}function a193_0x197a(_0x1e2c6e,_0x331bbe){_0x1e2c6e=_0x1e2c6e-0x1be;const _0x4ab36e=a193_0x4ab3();let _0x197a47=_0x4ab36e[_0x1e2c6e];return _0x197a47;}function writeCacheJson(_0x44500b,_0x1a98c4){const _0x5a54d3=a193_0x197a;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x44500b),JSON[_0x5a54d3(0x1c4)](_0x1a98c4,null,0x2),'utf-8');}function readCacheText(_0x35647f){const _0x566571=a193_0x197a,_0x7bbaa6=getGlobalCachePath(_0x35647f);if(!existsSync(_0x7bbaa6))return undefined;try{return readFileSync(_0x7bbaa6,_0x566571(0x1cd));}catch{return undefined;}}function writeCacheText(_0x4d2fea,_0x4e0aab){const _0x273465=a193_0x197a;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4d2fea),_0x4e0aab,_0x273465(0x1cd));}function clearCache(_0xdfb20d){const _0x9a9dc5=getGlobalCachePath(_0xdfb20d);if(existsSync(_0x9a9dc5))try{unlinkSync(_0x9a9dc5);}catch{}}function cacheExists(_0x1d9086){return existsSync(getGlobalCachePath(_0x1d9086));}export function createGlobalCache(_0x25c2e0,_0x18aacb){return registerGlobalCacheKey(_0x25c2e0,_0x18aacb),{'read':()=>readCacheJson(_0x25c2e0),'write':_0x2578d5=>writeCacheJson(_0x25c2e0,_0x2578d5),'clear':()=>clearCache(_0x25c2e0),'exists':()=>cacheExists(_0x25c2e0),'path':()=>getGlobalCachePath(_0x25c2e0)};}export function createGlobalTextCache(_0x57e029,_0x275bcd){return registerGlobalCacheKey(_0x57e029,_0x275bcd),{'read':()=>readCacheText(_0x57e029)?.['trim']()||undefined,'write':_0x556fd8=>writeCacheText(_0x57e029,_0x556fd8),'clear':()=>clearCache(_0x57e029),'exists':()=>cacheExists(_0x57e029),'path':()=>getGlobalCachePath(_0x57e029)};}function a193_0x4ab3(){const _0x3e739f=['tdx','Global\x20cache\x20key\x20\x22','230GOhFHS','134222HwJron','default','90DngnHa','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22','utf-8','9hHTNcr','{profile}','851640ahaPbI','1366690XzQpMw','56886APHdAd','get','2574250rRUcUz','8424sHDYFJ','225PBLVvU','7712CIxxpB','set','clear','stringify'];a193_0x4ab3=function(){return _0x3e739f;};return a193_0x4ab3();}export function createProfileCache(_0x4510ea,_0x160d52){const _0x262fcd=_0x2d8b1f=>{const _0x17bb3=a193_0x197a,_0x9480f3=_0x2d8b1f||_0x17bb3(0x1c9);return _0x4510ea['replace'](_0x17bb3(0x1cf),_0x9480f3);};return{'read':_0x53b7f8=>{const _0x2b54aa=_0x262fcd(_0x53b7f8);return registerGlobalCacheKey(_0x2b54aa,_0x160d52),readCacheJson(_0x2b54aa);},'write':(_0xb2f125,_0x418a95)=>{const _0x4a63f3=_0x262fcd(_0xb2f125);registerGlobalCacheKey(_0x4a63f3,_0x160d52),writeCacheJson(_0x4a63f3,_0x418a95);},'clear':_0x38bb6f=>{const _0x203801=_0x262fcd(_0x38bb6f);clearCache(_0x203801);},'exists':_0x529303=>{const _0x208590=_0x262fcd(_0x529303);return cacheExists(_0x208590);},'path':_0x3a4f34=>{const _0x592fb7=_0x262fcd(_0x3a4f34);return getGlobalCachePath(_0x592fb7);}};}export function createOptionalProfileCache(_0x5165fe,_0x4091d5,_0x24eaec={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x24eaec,_0x470fae=_0x1221e2=>{return _0x1221e2?''+_0x5165fe+profileSeparator+_0x1221e2+suffix:''+_0x5165fe+suffix;};return{'read':_0x5f04fc=>{const _0x1cc0ef=_0x470fae(_0x5f04fc);return registerGlobalCacheKey(_0x1cc0ef,_0x4091d5),readCacheJson(_0x1cc0ef);},'write':(_0x33f89d,_0x5c244b)=>{const _0x23e820=_0x470fae(_0x5c244b);registerGlobalCacheKey(_0x23e820,_0x4091d5),writeCacheJson(_0x23e820,_0x33f89d);},'clear':_0x383860=>{const _0x4a5710=_0x470fae(_0x383860);clearCache(_0x4a5710);},'exists':_0x11dbca=>{const _0x4d11df=_0x470fae(_0x11dbca);return cacheExists(_0x4d11df);},'path':_0x4d8380=>{const _0x1a4e71=_0x470fae(_0x4d8380);return getGlobalCachePath(_0x1a4e71);}};}export function clearGlobalRegistry(){const _0xa62dde=a193_0x197a;registry[_0xa62dde(0x1c3)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3bfe8c,_0x290fdf){const _0x1a9ee1=a194_0x92b3,_0x8b43b3=_0x3bfe8c();while(!![]){try{const _0x2198dd=parseInt(_0x1a9ee1(0xdd))/0x1+parseInt(_0x1a9ee1(0xcb))/0x2*(parseInt(_0x1a9ee1(0xdc))/0x3)+-parseInt(_0x1a9ee1(0xc7))/0x4*(-parseInt(_0x1a9ee1(0xca))/0x5)+-parseInt(_0x1a9ee1(0xde))/0x6+-parseInt(_0x1a9ee1(0xd4))/0x7*(-parseInt(_0x1a9ee1(0xdf))/0x8)+-parseInt(_0x1a9ee1(0xc8))/0x9*(parseInt(_0x1a9ee1(0xe0))/0xa)+parseInt(_0x1a9ee1(0xd0))/0xb;if(_0x2198dd===_0x290fdf)break;else _0x8b43b3['push'](_0x8b43b3['shift']());}catch(_0x1f70a2){_0x8b43b3['push'](_0x8b43b3['shift']());}}}(a194_0x3708,0x7f737));function a194_0x3708(){const _0x597360=['25vDkZpG','18olGiSp','PERMISSION_DENIED','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','NOT_FOUND','ENOENT','6206948EqrIQr','Permission\x20denied\x20reading\x20file:\x20','utf-8','code','2368604EITuhW','parse','Invalid\x20JSON\x20in\x20file\x20\x27','\x27:\x20','File\x20not\x20found:\x20','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','message','45897TOEgpF','11947OYmtMe','4293396QHIFzv','8DUjmFJ','7989980QZlyce','787460QjtRSz','9wsgaSQ','INVALID_ARGUMENT'];a194_0x3708=function(){return _0x597360;};return a194_0x3708();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x92b3(_0x136576,_0x10b6a5){_0x136576=_0x136576-0xc7;const _0x370854=a194_0x3708();let _0x92b3ef=_0x370854[_0x136576];return _0x92b3ef;}export async function loadJSON(_0xc4568,_0x5de57d){const _0x83bac8=a194_0x92b3;try{if(_0x5de57d){const _0x5f0a6b=await readFile(_0xc4568,_0x83bac8(0xd2));try{return JSON[_0x83bac8(0xd5)](_0x5f0a6b);}catch(_0x5341aa){throw new SDKError(ErrorCode[_0x83bac8(0xc9)],_0x83bac8(0xd6)+_0xc4568+_0x83bac8(0xd7)+(_0x5341aa instanceof Error?_0x5341aa[_0x83bac8(0xdb)]:String(_0x5341aa)));}}else try{return JSON[_0x83bac8(0xd5)](_0xc4568);}catch(_0x12345a){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x83bac8(0xda)+(_0x12345a instanceof Error?_0x12345a['message']:String(_0x12345a)));}}catch(_0x5902e0){if(_0x5902e0 instanceof SDKError)throw _0x5902e0;if(_0x5902e0 instanceof Error&&_0x83bac8(0xd3)in _0x5902e0){const _0x1b036d=_0x5902e0;if(_0x1b036d['code']===_0x83bac8(0xcf))throw new SDKError(ErrorCode[_0x83bac8(0xce)],_0x83bac8(0xd8)+_0xc4568);else{if(_0x1b036d['code']==='EACCES')throw new SDKError(ErrorCode[_0x83bac8(0xcc)],_0x83bac8(0xd1)+_0xc4568);}}throw new SDKError(ErrorCode['INTERNAL'],_0x83bac8(0xd9)+(_0x5902e0 instanceof Error?_0x5902e0['message']:String(_0x5902e0)));}}export async function loadJSONFromOptions(_0x45dfb3,_0x2e4072){const _0x37b6c0=a194_0x92b3;if(_0x45dfb3&&_0x2e4072)throw new SDKError(ErrorCode[_0x37b6c0(0xc9)],_0x37b6c0(0xcd));if(_0x45dfb3)return await loadJSON(_0x45dfb3,![]);if(_0x2e4072)return await loadJSON(_0x2e4072,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a195_0x5aa0dc=a195_0x3947;(function(_0x5bdbbd,_0x260c80){const _0x225ba1=a195_0x3947,_0x43c626=_0x5bdbbd();while(!![]){try{const _0x279768=parseInt(_0x225ba1(0xe4))/0x1+parseInt(_0x225ba1(0xda))/0x2+parseInt(_0x225ba1(0xdc))/0x3+-parseInt(_0x225ba1(0xe7))/0x4*(parseInt(_0x225ba1(0xe1))/0x5)+parseInt(_0x225ba1(0xeb))/0x6+parseInt(_0x225ba1(0xdb))/0x7*(-parseInt(_0x225ba1(0xde))/0x8)+-parseInt(_0x225ba1(0xe8))/0x9*(parseInt(_0x225ba1(0xea))/0xa);if(_0x279768===_0x260c80)break;else _0x43c626['push'](_0x43c626['shift']());}catch(_0x548461){_0x43c626['push'](_0x43c626['shift']());}}}(a195_0x48a5,0xc9880));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';function a195_0x3947(_0x15f5bf,_0x5474cf){_0x15f5bf=_0x15f5bf-0xd7;const _0x48a5b8=a195_0x48a5();let _0x3947db=_0x48a5b8[_0x15f5bf];return _0x3947db;}const LOCAL_CACHE_DIR=a195_0x5aa0dc(0xdd),registry=new Map();export function registerCacheKey(_0x49f548,_0x4eb469){const _0xf02277=a195_0x5aa0dc,_0x29be8a=registry[_0xf02277(0xe2)](_0x49f548);if(_0x29be8a&&_0x29be8a!==_0x4eb469)throw new Error(_0xf02277(0xd9)+_0x49f548+_0xf02277(0xdf)+_0x29be8a+_0xf02277(0xd8)+_0x4eb469+'\x22');registry['set'](_0x49f548,_0x4eb469);}export function getCacheDir(){const _0x39806d=a195_0x5aa0dc,_0x57f86d=process['cwd'](),_0x5851cd=_0x57f86d===parse(_0x57f86d)[_0x39806d(0xe6)]?homedir():_0x57f86d;return join(_0x5851cd,LOCAL_CACHE_DIR);}export function getCachePath(_0x2b30af){return join(getCacheDir(),_0x2b30af);}function ensureCacheDir(){const _0x378888=getCacheDir();!existsSync(_0x378888)&&mkdirSync(_0x378888,{'recursive':!![]});}function readCacheJson(_0x5924e6){const _0x4b3557=a195_0x5aa0dc,_0x5e3ac9=getCachePath(_0x5924e6);if(!existsSync(_0x5e3ac9))return undefined;try{const _0x53b569=readFileSync(_0x5e3ac9,'utf-8');return JSON[_0x4b3557(0xe9)](_0x53b569);}catch{return undefined;}}function a195_0x48a5(){const _0x5b8ec0=['5nzNKko','get','clear','1071300oCLfZh','utf-8','root','3247404DbQTAW','9621OPfjaM','parse','9850vRuHoH','11634HvQMQP','stringify','\x22,\x20cannot\x20register\x20for\x20\x22','Cache\x20key\x20\x22','2475094ppUvKo','993734fLJQUa','1990278UCGlNj','.cache/tdx','16netiki','\x22\x20already\x20registered\x20by\x20\x22','trim'];a195_0x48a5=function(){return _0x5b8ec0;};return a195_0x48a5();}function writeCacheJson(_0x5309d1,_0x15934e){const _0x301ce1=a195_0x5aa0dc;ensureCacheDir(),writeFileSync(getCachePath(_0x5309d1),JSON[_0x301ce1(0xd7)](_0x15934e,null,0x2),_0x301ce1(0xe5));}function readCacheText(_0x1fce61){const _0x2daf89=a195_0x5aa0dc,_0x446f33=getCachePath(_0x1fce61);if(!existsSync(_0x446f33))return undefined;try{return readFileSync(_0x446f33,_0x2daf89(0xe5));}catch{return undefined;}}function writeCacheText(_0x69cbcc,_0x53f009){const _0x3218cd=a195_0x5aa0dc;ensureCacheDir(),writeFileSync(getCachePath(_0x69cbcc),_0x53f009,_0x3218cd(0xe5));}function clearCache(_0x1c5655){const _0x22acd2=getCachePath(_0x1c5655);if(existsSync(_0x22acd2))try{unlinkSync(_0x22acd2);}catch{}}function cacheExists(_0x50738c){return existsSync(getCachePath(_0x50738c));}export function createCache(_0x30757a,_0x148d7a){return registerCacheKey(_0x30757a,_0x148d7a),{'read':()=>readCacheJson(_0x30757a),'write':_0x830311=>writeCacheJson(_0x30757a,_0x830311),'clear':()=>clearCache(_0x30757a),'exists':()=>cacheExists(_0x30757a),'path':()=>getCachePath(_0x30757a)};}export function createTextCache(_0x336107,_0x1274b9){const _0x56f2d6=a195_0x5aa0dc;return registerCacheKey(_0x336107,_0x1274b9),{'read':()=>readCacheText(_0x336107)?.[_0x56f2d6(0xe0)]()||undefined,'write':_0x4fea54=>writeCacheText(_0x336107,_0x4fea54),'clear':()=>clearCache(_0x336107),'exists':()=>cacheExists(_0x336107),'path':()=>getCachePath(_0x336107)};}export function clearRegistry(){const _0x5d93cb=a195_0x5aa0dc;registry[_0x5d93cb(0xe3)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0xff8f8c=a196_0x5a44;(function(_0x164b9b,_0x57effc){const _0x164aab=a196_0x5a44,_0x4682fa=_0x164b9b();while(!![]){try{const _0x59ca93=parseInt(_0x164aab(0xc4))/0x1*(parseInt(_0x164aab(0xba))/0x2)+parseInt(_0x164aab(0xc0))/0x3+-parseInt(_0x164aab(0xb8))/0x4*(-parseInt(_0x164aab(0xa9))/0x5)+-parseInt(_0x164aab(0xaf))/0x6*(-parseInt(_0x164aab(0xb1))/0x7)+-parseInt(_0x164aab(0xb0))/0x8*(-parseInt(_0x164aab(0xa6))/0x9)+parseInt(_0x164aab(0xaa))/0xa+-parseInt(_0x164aab(0xc3))/0xb;if(_0x59ca93===_0x57effc)break;else _0x4682fa['push'](_0x4682fa['shift']());}catch(_0x774a8d){_0x4682fa['push'](_0x4682fa['shift']());}}}(a196_0xf698,0x7f793));import a196_0x177f13 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a196_0x5a44(_0x1f61ab,_0x17df95){_0x1f61ab=_0x1f61ab-0xa6;const _0xf69810=a196_0xf698();let _0x5a44e2=_0xf69810[_0x1f61ab];return _0x5a44e2;}const chalkModule=a196_0x177f13,ChalkClass=chalkModule[a196_0xff8f8c(0xbc)]||chalkModule[a196_0xff8f8c(0xbf)]?.[a196_0xff8f8c(0xbc)];export class DefaultLogFormatter{['colors'];['chalk'];constructor(_0x464837={}){const _0x5b050c=a196_0xff8f8c;this['colors']=_0x464837[_0x5b050c(0xb6)]??![],this['chalk']=_0x464837[_0x5b050c(0xb6)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x177f13;}[a196_0xff8f8c(0xb9)](_0xe5673b){const _0x1802b1=a196_0xff8f8c,_0x1cccfa=formatTimestamp(_0xe5673b[_0x1802b1(0xac)]),_0x35760b=logLevelToString(_0xe5673b['level']);if(!this[_0x1802b1(0xb6)])return _0x1cccfa+'\x20['+_0x35760b+_0x1802b1(0xb2)+_0xe5673b['component']+']\x20'+_0xe5673b[_0x1802b1(0xc2)];const _0x2c2c94=this[_0x1802b1(0xc5)][_0x1802b1(0xbb)](_0x1cccfa),_0x16eb7b=this[_0x1802b1(0xa7)](_0x35760b,_0xe5673b['level']),_0x420875=this[_0x1802b1(0xc5)][_0x1802b1(0xb3)]('['+_0xe5673b[_0x1802b1(0xa8)]+']');return _0x2c2c94+'\x20'+_0x16eb7b+'\x20'+_0x420875+'\x20'+_0xe5673b[_0x1802b1(0xc2)];}['colorLevel'](_0x30d693,_0x2b16a6){const _0x1075ab=a196_0xff8f8c;switch(_0x2b16a6){case LogLevel[_0x1075ab(0xad)]:return this[_0x1075ab(0xc5)][_0x1075ab(0xc1)]('['+_0x30d693+']');case LogLevel['DEBUG']:return this[_0x1075ab(0xc5)][_0x1075ab(0xb7)]('['+_0x30d693+']');case LogLevel[_0x1075ab(0xab)]:return this[_0x1075ab(0xc5)][_0x1075ab(0xb4)]('['+_0x30d693+']');case LogLevel[_0x1075ab(0xbe)]:return this[_0x1075ab(0xc5)][_0x1075ab(0xb5)]('['+_0x30d693+']');case LogLevel[_0x1075ab(0xbd)]:return this['chalk'][_0x1075ab(0xae)]('['+_0x30d693+']');default:return'['+_0x30d693+']';}}}function a196_0xf698(){const _0x17107c=['gray','message','24464275jEQIKX','245GSdXOm','chalk','18bsPbbb','colorLevel','component','374025JnsDxj','2476210RmLkdB','INFO','timestamp','TRACE','red','34128nLGlbC','3109528qlDQSK','427DheudP',']\x20[','blue','cyan','yellow','colors','green','32wjhKwM','format','1126XkAZcB','dim','Chalk','ERROR','WARN','default','1913430nsfnrq'];a196_0xf698=function(){return _0x17107c;};return a196_0xf698();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a197_0x5eaa(_0xf938ce,_0xc83aa){_0xf938ce=_0xf938ce-0xfe;var _0x4a67ae=a197_0x4a67();var _0x5eaae4=_0x4a67ae[_0xf938ce];return _0x5eaae4;}function a197_0x4a67(){var _0x429c7c=['1355KQmvmb','2944183PsXmsR','24OJhVnj','1226076CYJjCp','10IzSMgy','1153125JmbkPn','139092wWZyVw','26068YZoyNC','2118TwxABF','1538831gWCXpG','21CLBaNE'];a197_0x4a67=function(){return _0x429c7c;};return a197_0x4a67();}(function(_0x2e86bc,_0x46f452){var _0x3c4919=a197_0x5eaa,_0x254e9c=_0x2e86bc();while(!![]){try{var _0x32bd5a=parseInt(_0x3c4919(0x107))/0x1+parseInt(_0x3c4919(0x108))/0x2*(parseInt(_0x3c4919(0x100))/0x3)+-parseInt(_0x3c4919(0x104))/0x4+-parseInt(_0x3c4919(0x101))/0x5*(parseInt(_0x3c4919(0xfe))/0x6)+-parseInt(_0x3c4919(0xff))/0x7+parseInt(_0x3c4919(0x103))/0x8*(parseInt(_0x3c4919(0x106))/0x9)+parseInt(_0x3c4919(0x105))/0xa*(parseInt(_0x3c4919(0x102))/0xb);if(_0x32bd5a===_0x46f452)break;else _0x254e9c['push'](_0x254e9c['shift']());}catch(_0x4bcce0){_0x254e9c['push'](_0x254e9c['shift']());}}}(a197_0x4a67,0x3f8f7));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x171f19=a198_0x4611;(function(_0x5d79a7,_0x568cbf){const _0x5837a5=a198_0x4611,_0x516c6a=_0x5d79a7();while(!![]){try{const _0x49a185=-parseInt(_0x5837a5(0x1f0))/0x1+parseInt(_0x5837a5(0x1f5))/0x2+-parseInt(_0x5837a5(0x200))/0x3*(parseInt(_0x5837a5(0x1fa))/0x4)+-parseInt(_0x5837a5(0x1f7))/0x5*(-parseInt(_0x5837a5(0x1fd))/0x6)+-parseInt(_0x5837a5(0x1f3))/0x7+-parseInt(_0x5837a5(0x1f1))/0x8+parseInt(_0x5837a5(0x1fe))/0x9;if(_0x49a185===_0x568cbf)break;else _0x516c6a['push'](_0x516c6a['shift']());}catch(_0x11a356){_0x516c6a['push'](_0x516c6a['shift']());}}}(a198_0x373e,0xa8f67));import{LogLevel as a198_0x50436c}from'../types.js';function a198_0x373e(){const _0xe9bd34=['colors','2300218hLygOV','format','4475KNhCMv','minLevel','WARN','8gdMKJz','formatter','error','834iLViMv','16123545BAxkPz','log','816243JdgQAJ','level','handle','1138969fGOdHK','789008FgAJFE','useStderr','4145337VDUVxA'];a198_0x373e=function(){return _0xe9bd34;};return a198_0x373e();}import{DefaultLogFormatter}from'../formatters/index.js';function a198_0x4611(_0x58ead2,_0x4c3243){_0x58ead2=_0x58ead2-0x1f0;const _0x373eb5=a198_0x373e();let _0x4611e8=_0x373eb5[_0x58ead2];return _0x4611e8;}export class ConsoleHandler{[a198_0x171f19(0x1f8)];['useStderr'];[a198_0x171f19(0x1fb)];constructor(_0x97db9c={}){const _0x5b0f32=a198_0x171f19;this[_0x5b0f32(0x1f8)]=_0x97db9c[_0x5b0f32(0x1f8)]??a198_0x50436c[_0x5b0f32(0x1f9)],this[_0x5b0f32(0x1f2)]=_0x97db9c[_0x5b0f32(0x1f2)]??!![],this[_0x5b0f32(0x1fb)]=new DefaultLogFormatter({'colors':_0x97db9c[_0x5b0f32(0x1f4)]??!![]});}[a198_0x171f19(0x202)](_0x138e49){const _0x172e9e=a198_0x171f19;if(_0x138e49[_0x172e9e(0x201)]<this[_0x172e9e(0x1f8)])return;const _0x6ed975=this[_0x172e9e(0x1fb)][_0x172e9e(0x1f6)](_0x138e49);this[_0x172e9e(0x1f2)]&&_0x138e49[_0x172e9e(0x201)]>=a198_0x50436c[_0x172e9e(0x1f9)]?console[_0x172e9e(0x1fc)](_0x6ed975):console[_0x172e9e(0x1ff)](_0x6ed975);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a199_0x47d2(_0x7f676f,_0x18afd1){_0x7f676f=_0x7f676f-0x165;const _0x4fd85b=a199_0x4fd8();let _0x47d2ca=_0x4fd85b[_0x7f676f];return _0x47d2ca;}const a199_0x574a1a=a199_0x47d2;(function(_0x3ead0d,_0x5af06f){const _0x243c60=a199_0x47d2,_0x2c1e21=_0x3ead0d();while(!![]){try{const _0x52197c=parseInt(_0x243c60(0x174))/0x1+-parseInt(_0x243c60(0x179))/0x2+-parseInt(_0x243c60(0x176))/0x3*(parseInt(_0x243c60(0x16a))/0x4)+parseInt(_0x243c60(0x167))/0x5+-parseInt(_0x243c60(0x178))/0x6*(-parseInt(_0x243c60(0x17f))/0x7)+parseInt(_0x243c60(0x175))/0x8+parseInt(_0x243c60(0x16b))/0x9;if(_0x52197c===_0x5af06f)break;else _0x2c1e21['push'](_0x2c1e21['shift']());}catch(_0x331269){_0x2c1e21['push'](_0x2c1e21['shift']());}}}(a199_0x4fd8,0xc3bff));function a199_0x4fd8(){const _0xa0f857=['logPath','replace','.gz','logDir','rotate','test','443684xuywoD','6037352qqwdXX','249543ZRDtFl','Warning:\x20Failed\x20to\x20compress\x20','6iQyHTA','2830060KfmfST','logBaseName','\x5c$&','logStream','split','format','210056GpkPCE','logFileName','filter','logs','filePath','rotateOldLogs','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','init','6765390zofiUc','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','Warning:\x20Error\x20writing\x20to\x20','48wEQnSA','5701986AuWDpL','toISOString','error'];a199_0x4fd8=function(){return _0xa0f857;};return a199_0x4fd8();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];['logDir'];[a199_0x574a1a(0x180)];[a199_0x574a1a(0x17a)];[a199_0x574a1a(0x17c)]=null;[a199_0x574a1a(0x172)];constructor(_0xb06ae1={}){const _0x558262=a199_0x574a1a;this[_0x558262(0x16e)]=_0xb06ae1[_0x558262(0x183)]??join(getGlobalCacheDir(),_0x558262(0x182),'tdx.log'),this[_0x558262(0x171)]=dirname(this['logPath']),this[_0x558262(0x180)]=basename(this['logPath']),this['logBaseName']=this[_0x558262(0x180)][_0x558262(0x16f)](/\.log$/,''),this[_0x558262(0x172)]=_0xb06ae1[_0x558262(0x172)]??!![];}async[a199_0x574a1a(0x166)](){const _0x5d2519=a199_0x574a1a;try{await mkdir(this[_0x5d2519(0x171)],{'recursive':!![]}),this['rotate']&&await this[_0x5d2519(0x184)](),this[_0x5d2519(0x17c)]=createWriteStream(this[_0x5d2519(0x16e)],{'flags':'a'}),this['logStream']['on']('error',_0x4344f5=>{const _0x17f14c=_0x5d2519;console[_0x17f14c(0x16d)](_0x17f14c(0x169)+this[_0x17f14c(0x180)]+':',_0x4344f5['message']);});}catch(_0x36efe0){console[_0x5d2519(0x16d)](_0x5d2519(0x165),_0x36efe0);}}['handle'](_0x306212){const _0x4a99b7=a199_0x574a1a;if(!this[_0x4a99b7(0x17c)])return;const _0x855de6=Logger[_0x4a99b7(0x17e)](_0x306212);this['logStream']['write'](_0x855de6+'\x0a');}async['close'](){return new Promise(_0x34ac23=>{const _0x1c5662=a199_0x47d2;this[_0x1c5662(0x17c)]?this[_0x1c5662(0x17c)]['end'](()=>{const _0x5039c5=_0x1c5662;this[_0x5039c5(0x17c)]=null,_0x34ac23();}):_0x34ac23();});}['getLogPath'](){const _0x1f8d17=a199_0x574a1a;return this[_0x1f8d17(0x16e)];}async[a199_0x574a1a(0x184)](){const _0x9157b2=a199_0x574a1a;try{const _0x1d47b7=await readdir(this[_0x9157b2(0x171)]),_0x24eea5=new Date()[_0x9157b2(0x16c)]()[_0x9157b2(0x17d)]('T')[0x0];if(_0x1d47b7['includes'](this[_0x9157b2(0x180)])){const _0x6bd06a=join(this[_0x9157b2(0x171)],this[_0x9157b2(0x180)]),_0x3181e6=await stat(_0x6bd06a),_0xd195a3=new Date(_0x3181e6['mtime'])[_0x9157b2(0x16c)]()[_0x9157b2(0x17d)]('T')[0x0];if(_0xd195a3<_0x24eea5){const _0x2b8295=join(this[_0x9157b2(0x171)],this['logBaseName']+'-'+_0xd195a3+'.log');await rename(_0x6bd06a,_0x2b8295);}}const _0x3805fb=await readdir(this['logDir']),_0xc3621=this[_0x9157b2(0x17a)][_0x9157b2(0x16f)](/[.*+?^${}()|[\]\\]/g,_0x9157b2(0x17b)),_0x3c2738=new RegExp('^'+_0xc3621+_0x9157b2(0x168)),_0x388ea1=_0x3805fb[_0x9157b2(0x181)](_0x1fd3a0=>_0x3c2738[_0x9157b2(0x173)](_0x1fd3a0));for(const _0x7f634a of _0x388ea1){const _0x36e627=join(this[_0x9157b2(0x171)],_0x7f634a),_0x2ffd1b=join(this[_0x9157b2(0x171)],_0x7f634a+_0x9157b2(0x170));try{await pipeline(createReadStream(_0x36e627),createGzip(),createWriteStream(_0x2ffd1b)),await unlink(_0x36e627);}catch(_0x543983){console[_0x9157b2(0x16d)](_0x9157b2(0x177)+_0x7f634a+':',_0x543983);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x4054(){var _0x4e1ad5=['2028930pwDeWj','2549010iLSgJU','14DTHjoE','3771243vsmUNo','4QOZHMO','395604UxQLgg','1338632EiObGH','768228TuavmD','3FIsPGK','56382YblCzl'];a200_0x4054=function(){return _0x4e1ad5;};return a200_0x4054();}function a200_0x9969(_0x101338,_0x2b4f1e){_0x101338=_0x101338-0xda;var _0x405480=a200_0x4054();var _0x996954=_0x405480[_0x101338];return _0x996954;}(function(_0x4730c6,_0x300ae7){var _0x9d7f04=a200_0x9969,_0x6ab3a0=_0x4730c6();while(!![]){try{var _0x2e1a0e=parseInt(_0x9d7f04(0xda))/0x1+parseInt(_0x9d7f04(0xdc))/0x2*(parseInt(_0x9d7f04(0xdd))/0x3)+parseInt(_0x9d7f04(0xe3))/0x4*(parseInt(_0x9d7f04(0xdf))/0x5)+-parseInt(_0x9d7f04(0xde))/0x6*(parseInt(_0x9d7f04(0xe1))/0x7)+-parseInt(_0x9d7f04(0xdb))/0x8+-parseInt(_0x9d7f04(0xe2))/0x9+-parseInt(_0x9d7f04(0xe0))/0xa;if(_0x2e1a0e===_0x300ae7)break;else _0x6ab3a0['push'](_0x6ab3a0['shift']());}catch(_0x2eaa4c){_0x6ab3a0['push'](_0x6ab3a0['shift']());}}}(a200_0x4054,0x4f74d));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a201_0x430e88=a201_0x3dfe;function a201_0x3dfe(_0x297b7c,_0x24a255){_0x297b7c=_0x297b7c-0xc7;var _0xffd850=a201_0xffd8();var _0x3dfe09=_0xffd850[_0x297b7c];return _0x3dfe09;}function a201_0xffd8(){var _0x69329a=['handle','3216432wAZVJY','7729976vOdQRY','13564251BKHKEe','3099740SaBPsu','5eSRPTr','2FAxXEw','425232Bnjtiz','6838566TykxTm','6768McNein'];a201_0xffd8=function(){return _0x69329a;};return a201_0xffd8();}(function(_0x4a783e,_0x251d87){var _0x3a5fe0=a201_0x3dfe,_0x553fa3=_0x4a783e();while(!![]){try{var _0x5e8c06=parseInt(_0x3a5fe0(0xca))/0x1+parseInt(_0x3a5fe0(0xc9))/0x2*(parseInt(_0x3a5fe0(0xce))/0x3)+-parseInt(_0x3a5fe0(0xcc))/0x4+parseInt(_0x3a5fe0(0xc8))/0x5*(parseInt(_0x3a5fe0(0xcb))/0x6)+parseInt(_0x3a5fe0(0xc7))/0x7+-parseInt(_0x3a5fe0(0xcf))/0x8+-parseInt(_0x3a5fe0(0xd0))/0x9;if(_0x5e8c06===_0x251d87)break;else _0x553fa3['push'](_0x553fa3['shift']());}catch(_0x478c1a){_0x553fa3['push'](_0x553fa3['shift']());}}}(a201_0xffd8,0x93acf));export class NullHandler{[a201_0x430e88(0xcd)](_0x56e906){}}
|