@treasuredata/tdx 0.27.3 → 0.28.0

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.
Files changed (214) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.d.ts.map +1 -1
  9. package/dist/commands/agent-command.js +1 -1
  10. package/dist/commands/agent-command.js.map +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/profile-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/schedule-command.d.ts.map +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/schedule-command.js.map +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/profile.js +1 -1
  64. package/dist/core/project-config.js +1 -1
  65. package/dist/core/session.js +1 -1
  66. package/dist/core/user-cache.js +1 -1
  67. package/dist/core/version.js +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/mcp/server.js +1 -1
  70. package/dist/mcp/tools/index.js +1 -1
  71. package/dist/mcp/tools/tdx-run.js +1 -1
  72. package/dist/mcp/tools/tdx-search.js +1 -1
  73. package/dist/mcp/utils.js +1 -1
  74. package/dist/proxy/claude-usage-tracker.js +1 -1
  75. package/dist/proxy/passthrough-server.js +1 -1
  76. package/dist/proxy/sse-usage-parser.js +1 -1
  77. package/dist/sdk/agent/agent-config.d.ts +48 -0
  78. package/dist/sdk/agent/agent-config.d.ts.map +1 -1
  79. package/dist/sdk/agent/agent-config.js +1 -1
  80. package/dist/sdk/agent/agent-config.js.map +1 -1
  81. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  82. package/dist/sdk/agent/agent-yaml.js +1 -1
  83. package/dist/sdk/agent/test/evaluator.js +1 -1
  84. package/dist/sdk/agent/test/executor.js +1 -1
  85. package/dist/sdk/agent/test/index.js +1 -1
  86. package/dist/sdk/agent/test/output.js +1 -1
  87. package/dist/sdk/agent/test/parser.js +1 -1
  88. package/dist/sdk/agent/tool-target-registry.d.ts.map +1 -1
  89. package/dist/sdk/agent/tool-target-registry.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js.map +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/client/cdp-api-client.js +1 -1
  93. package/dist/sdk/client/delivery-api-client.js +1 -1
  94. package/dist/sdk/client/endpoints.js +1 -1
  95. package/dist/sdk/client/engage-api-client.js +1 -1
  96. package/dist/sdk/client/http-client.js +1 -1
  97. package/dist/sdk/client/llm-api-client.js +1 -1
  98. package/dist/sdk/client/rate-limiter.js +1 -1
  99. package/dist/sdk/client/td-api-client.js +1 -1
  100. package/dist/sdk/client/trino-api-client.js +1 -1
  101. package/dist/sdk/client/workflow-client.js +1 -1
  102. package/dist/sdk/connection-validator.js +1 -1
  103. package/dist/sdk/connection.js +1 -1
  104. package/dist/sdk/delivery.js +1 -1
  105. package/dist/sdk/engage/campaign-pull.js +1 -1
  106. package/dist/sdk/engage/campaign-push.js +1 -1
  107. package/dist/sdk/engage/campaign-validator.js +1 -1
  108. package/dist/sdk/engage/campaign-validator.js.map +1 -1
  109. package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
  110. package/dist/sdk/engage/campaign-yaml.js +1 -1
  111. package/dist/sdk/engage/campaign-yaml.js.map +1 -1
  112. package/dist/sdk/engage/types/campaign-def.js +1 -1
  113. package/dist/sdk/engage/types/campaign-schema.d.ts +2 -2
  114. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  115. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  116. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  117. package/dist/sdk/engage.js +1 -1
  118. package/dist/sdk/errors.js +1 -1
  119. package/dist/sdk/index.js +1 -1
  120. package/dist/sdk/io/index.js +1 -1
  121. package/dist/sdk/io/node-filesystem.js +1 -1
  122. package/dist/sdk/job.js +1 -1
  123. package/dist/sdk/journey.js +1 -1
  124. package/dist/sdk/llm/chat-cache.js +1 -1
  125. package/dist/sdk/llm/index.d.ts.map +1 -1
  126. package/dist/sdk/llm/index.js +1 -1
  127. package/dist/sdk/llm/index.js.map +1 -1
  128. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  129. package/dist/sdk/llm/model-factors.js +1 -1
  130. package/dist/sdk/personalization.js +1 -1
  131. package/dist/sdk/query/index.js +1 -1
  132. package/dist/sdk/query/sql-parser.js +1 -1
  133. package/dist/sdk/realtime.js +1 -1
  134. package/dist/sdk/schedule.js +1 -1
  135. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  136. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  137. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  138. package/dist/sdk/segment/fields-display.d.ts +6 -1
  139. package/dist/sdk/segment/fields-display.d.ts.map +1 -1
  140. package/dist/sdk/segment/fields-display.js +1 -1
  141. package/dist/sdk/segment/fields-display.js.map +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/target-resolution.js +1 -1
  155. package/dist/sdk/segment/tdx-config.js +1 -1
  156. package/dist/sdk/segment/types/segment-def.d.ts +12 -3
  157. package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
  158. package/dist/sdk/segment/validate-files.js +1 -1
  159. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  160. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  161. package/dist/sdk/segment/yaml-validator.js +1 -1
  162. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  163. package/dist/sdk/segment.d.ts.map +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/segment.js.map +1 -1
  166. package/dist/sdk/types/cdp.d.ts +22 -3
  167. package/dist/sdk/types/cdp.d.ts.map +1 -1
  168. package/dist/sdk/types/engage.d.ts +7 -3
  169. package/dist/sdk/types/engage.d.ts.map +1 -1
  170. package/dist/sdk/types/index.js +1 -1
  171. package/dist/sdk/types/progress.js +1 -1
  172. package/dist/sdk/user.js +1 -1
  173. package/dist/sdk/util/format-detector.js +1 -1
  174. package/dist/sdk/util/formatters.js +1 -1
  175. package/dist/sdk/util/index.js +1 -1
  176. package/dist/sdk/util/tree-formatter.js +1 -1
  177. package/dist/sdk/workflow/archive-validation.js +1 -1
  178. package/dist/sdk/workflow/clone-workflow.js +1 -1
  179. package/dist/sdk/workflow/index.js +1 -1
  180. package/dist/sdk/workflow/pull-workflow.js +1 -1
  181. package/dist/sdk/workflow/push-workflow.js +1 -1
  182. package/dist/sdk/workflow/tdx-config.js +1 -1
  183. package/dist/sdk/workflow/workflow-utils.js +1 -1
  184. package/dist/test-utils/command-runner.js +1 -1
  185. package/dist/test-utils/factories.js +1 -1
  186. package/dist/test-utils/fixtures.js +1 -1
  187. package/dist/test-utils/http-mock.js +1 -1
  188. package/dist/test-utils/index.js +1 -1
  189. package/dist/utils/async.js +1 -1
  190. package/dist/utils/colors.js +1 -1
  191. package/dist/utils/diff.js +1 -1
  192. package/dist/utils/file-permissions.js +1 -1
  193. package/dist/utils/global-cache.js +1 -1
  194. package/dist/utils/json-loader.js +1 -1
  195. package/dist/utils/local-cache.js +1 -1
  196. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  197. package/dist/utils/logger/formatters/index.js +1 -1
  198. package/dist/utils/logger/handlers/console-handler.js +1 -1
  199. package/dist/utils/logger/handlers/file-handler.js +1 -1
  200. package/dist/utils/logger/handlers/index.js +1 -1
  201. package/dist/utils/logger/handlers/null-handler.js +1 -1
  202. package/dist/utils/logger/index.js +1 -1
  203. package/dist/utils/logger/logger.js +1 -1
  204. package/dist/utils/logger/types.js +1 -1
  205. package/dist/utils/option-validation.js +1 -1
  206. package/dist/utils/process.js +1 -1
  207. package/dist/utils/prompt.js +1 -1
  208. package/dist/utils/spinner.js +1 -1
  209. package/dist/utils/sse-parser.js +1 -1
  210. package/dist/utils/string-utils.js +1 -1
  211. package/dist/utils/table-ref-parser.js +1 -1
  212. package/dist/utils/tdx-logger.js +1 -1
  213. package/dist/utils/version-check.js +1 -1
  214. package/package.json +1 -1
@@ -1 +1 @@
1
- function a169_0x4f9f(_0x20ae4d,_0x348bf2){_0x20ae4d=_0x20ae4d-0xe9;const _0x325a20=a169_0x325a();let _0x4f9fdf=_0x325a20[_0x20ae4d];return _0x4f9fdf;}(function(_0x33d8c8,_0x8a6019){const _0xce3988=a169_0x4f9f,_0xf0de69=_0x33d8c8();while(!![]){try{const _0x13c670=-parseInt(_0xce3988(0xf2))/0x1*(-parseInt(_0xce3988(0xe9))/0x2)+-parseInt(_0xce3988(0xed))/0x3+parseInt(_0xce3988(0xef))/0x4+-parseInt(_0xce3988(0xf6))/0x5*(-parseInt(_0xce3988(0xf0))/0x6)+-parseInt(_0xce3988(0xec))/0x7*(parseInt(_0xce3988(0xea))/0x8)+-parseInt(_0xce3988(0xee))/0x9+parseInt(_0xce3988(0xf1))/0xa*(-parseInt(_0xce3988(0xf4))/0xb);if(_0x13c670===_0x8a6019)break;else _0xf0de69['push'](_0xf0de69['shift']());}catch(_0x28d78d){_0xf0de69['push'](_0xf0de69['shift']());}}}(a169_0x325a,0x6069a));function a169_0x325a(){const _0x304033=['length','push','64gVWuKO','40360JqRdbk','all','63XglUmX','2204706XtzmVN','4017213RoIAmv','1889456irlwuR','134460wcuKqX','880LiafNe','17645mXkfnF','slice','2563gtcjxf','map','135HLDbyi'];a169_0x325a=function(){return _0x304033;};return a169_0x325a();}export async function batchAsync(_0x35f84b,_0x1907d3,_0xdfd17f=0xa){const _0x90c5ad=a169_0x4f9f,_0x2cdd78=[];for(let _0x19db57=0x0;_0x19db57<_0x35f84b[_0x90c5ad(0xf7)];_0x19db57+=_0xdfd17f){const _0x431321=_0x35f84b[_0x90c5ad(0xf3)](_0x19db57,_0x19db57+_0xdfd17f),_0x344db7=await Promise[_0x90c5ad(0xeb)](_0x431321[_0x90c5ad(0xf5)](_0x1907d3));_0x2cdd78[_0x90c5ad(0xf8)](..._0x344db7);}return _0x2cdd78;}
1
+ function a169_0x4003(_0x2207f1,_0xb50a4b){_0x2207f1=_0x2207f1-0xc8;const _0x309de6=a169_0x309d();let _0x4003cd=_0x309de6[_0x2207f1];return _0x4003cd;}(function(_0x95a9c4,_0x4960b4){const _0x4170e1=a169_0x4003,_0xd81fe0=_0x95a9c4();while(!![]){try{const _0x21bfa6=parseInt(_0x4170e1(0xcd))/0x1*(parseInt(_0x4170e1(0xcc))/0x2)+-parseInt(_0x4170e1(0xca))/0x3+parseInt(_0x4170e1(0xd2))/0x4*(-parseInt(_0x4170e1(0xce))/0x5)+-parseInt(_0x4170e1(0xd0))/0x6*(parseInt(_0x4170e1(0xcf))/0x7)+-parseInt(_0x4170e1(0xcb))/0x8*(-parseInt(_0x4170e1(0xc9))/0x9)+-parseInt(_0x4170e1(0xd4))/0xa+parseInt(_0x4170e1(0xc8))/0xb;if(_0x21bfa6===_0x4960b4)break;else _0xd81fe0['push'](_0xd81fe0['shift']());}catch(_0x192b15){_0xd81fe0['push'](_0xd81fe0['shift']());}}}(a169_0x309d,0x99f7f));export async function batchAsync(_0x24564d,_0x118a43,_0x3a446c=0xa){const _0x4c3e0a=a169_0x4003,_0x2c4f90=[];for(let _0xb08135=0x0;_0xb08135<_0x24564d[_0x4c3e0a(0xd3)];_0xb08135+=_0x3a446c){const _0x3db0aa=_0x24564d['slice'](_0xb08135,_0xb08135+_0x3a446c),_0x375562=await Promise[_0x4c3e0a(0xd5)](_0x3db0aa['map'](_0x118a43));_0x2c4f90[_0x4c3e0a(0xd1)](..._0x375562);}return _0x2c4f90;}function a169_0x309d(){const _0xdfad06=['6744akMhjv','6xtGRGz','96357Hochff','215045YvmABC','3100139rurOpH','6XtuoBg','push','112oddrsH','length','11610200KzgDAx','all','27531031zyKniV','9333AzsDRP','681837cfJnam'];a169_0x309d=function(){return _0xdfad06;};return a169_0x309d();}
@@ -1 +1 @@
1
- const a170_0x715236=a170_0x20dd;(function(_0x38036d,_0x422fd4){const _0x448e3c=a170_0x20dd,_0x1ad87e=_0x38036d();while(!![]){try{const _0x76620f=-parseInt(_0x448e3c(0xa8))/0x1+-parseInt(_0x448e3c(0xa3))/0x2+-parseInt(_0x448e3c(0xb7))/0x3+-parseInt(_0x448e3c(0xb0))/0x4*(-parseInt(_0x448e3c(0xbb))/0x5)+parseInt(_0x448e3c(0xa9))/0x6+parseInt(_0x448e3c(0xb4))/0x7*(parseInt(_0x448e3c(0xba))/0x8)+parseInt(_0x448e3c(0xa5))/0x9*(parseInt(_0x448e3c(0xb2))/0xa);if(_0x76620f===_0x422fd4)break;else _0x1ad87e['push'](_0x1ad87e['shift']());}catch(_0x325ed7){_0x1ad87e['push'](_0x1ad87e['shift']());}}}(a170_0x3742,0xede8d));import*as a170_0x72c416 from'chalk';const Chalk=a170_0x72c416[a170_0x715236(0xb1)];export function shouldUseColor(_0x229022={}){const _0x42e890=a170_0x715236;if(_0x229022['noColor']===!![])return![];if(_0x229022[_0x42e890(0xab)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x42e890(0xb3)]??![];}export function getChalk(_0xdb0fb0={}){if(shouldUseColor(_0xdb0fb0))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x121696,_0x1bc99={}){const _0x56b704=a170_0x715236;return getChalk(_0x1bc99)[_0x56b704(0xa6)](_0x121696);}export function colorHeader(_0x23d0e8,_0x2c0bc8={}){const _0x3a35e5=a170_0x715236;return getChalk(_0x2c0bc8)[_0x3a35e5(0xb8)](_0x23d0e8);}export function colorType(_0x4aa915,_0x459c32={}){const _0x5215a2=a170_0x715236;return getChalk(_0x459c32)[_0x5215a2(0xa6)](_0x4aa915);}export function colorJSONKey(_0x55fe31,_0x177bd3={}){const _0x37870d=a170_0x715236;return getChalk(_0x177bd3)[_0x37870d(0xb6)](_0x55fe31);}export function colorJSONString(_0x12d26a,_0x914afe={}){const _0x4aa6d9=a170_0x715236;return getChalk(_0x914afe)[_0x4aa6d9(0xbf)](_0x12d26a);}export function colorJSONNumber(_0x305232,_0x3470c6={}){const _0x3afde5=a170_0x715236;return getChalk(_0x3470c6)[_0x3afde5(0xb8)](_0x305232);}export function colorJSONBoolean(_0x94998f,_0x34cde8={}){const _0x1d2e64=a170_0x715236;return getChalk(_0x34cde8)[_0x1d2e64(0xb9)](_0x94998f);}export function colorJSONNull(_0xb1f65e,_0x459234={}){const _0x38d860=a170_0x715236;return getChalk(_0x459234)[_0x38d860(0xa6)](_0xb1f65e);}function a170_0x3742(){const _0x267ccb=['dim','null','1056827YwRuOA','9618078JPUIoi','number','color','length','isArray','entries','map','2816724nNDuRS','Chalk','10LnPYBz','isTTY','5936eMiOjw','join','blue','5512950piRake','cyan','yellow','18288fQAQwt','5LCXkVe','string','stringify','repeat','green','3013760RAWdYz','object','10171008Ypwxjh'];a170_0x3742=function(){return _0x267ccb;};return a170_0x3742();}function a170_0x20dd(_0x3ff4ff,_0x220b48){_0x3ff4ff=_0x3ff4ff-0xa3;const _0x37423d=a170_0x3742();let _0x20ddd9=_0x37423d[_0x3ff4ff];return _0x20ddd9;}export function colorizeJSONCompact(_0x3cd662,_0x26f018={}){const _0x5831bb=a170_0x715236;if(!shouldUseColor(_0x26f018))return JSON[_0x5831bb(0xbd)](_0x3cd662);if(_0x3cd662===null)return colorJSONNull('null',_0x26f018);if(typeof _0x3cd662==='boolean')return colorJSONBoolean(String(_0x3cd662),_0x26f018);if(typeof _0x3cd662===_0x5831bb(0xaa))return colorJSONNumber(String(_0x3cd662),_0x26f018);if(typeof _0x3cd662===_0x5831bb(0xbc))return colorJSONString(JSON[_0x5831bb(0xbd)](_0x3cd662),_0x26f018);if(Array[_0x5831bb(0xad)](_0x3cd662)){if(_0x3cd662[_0x5831bb(0xac)]===0x0)return'[]';const _0x4395c7=_0x3cd662[_0x5831bb(0xaf)](_0x158ae8=>colorizeJSONCompact(_0x158ae8,_0x26f018));return'['+_0x4395c7['join'](',')+']';}if(typeof _0x3cd662===_0x5831bb(0xa4)){const _0x10dab9=Object['entries'](_0x3cd662);if(_0x10dab9['length']===0x0)return'{}';const _0x8591c2=_0x10dab9['map'](([_0x382d5e,_0x91a302])=>{const _0x1750d7=_0x5831bb,_0xf2c2ab=colorJSONKey(JSON[_0x1750d7(0xbd)](_0x382d5e),_0x26f018),_0x56f1e5=colorizeJSONCompact(_0x91a302,_0x26f018);return _0xf2c2ab+':'+_0x56f1e5;});return'{'+_0x8591c2[_0x5831bb(0xb5)](',')+'}';}return String(_0x3cd662);}export function colorizeJSON(_0x418ec1,_0xaf363c={},_0x1c901d=0x0){const _0xf7a107=a170_0x715236;if(!shouldUseColor(_0xaf363c))return JSON['stringify'](_0x418ec1,null,0x2);const _0x5799bb='\x20'['repeat'](_0x1c901d),_0x6ce678=_0x1c901d+0x2;if(_0x418ec1===null)return colorJSONNull(_0xf7a107(0xa7),_0xaf363c);if(typeof _0x418ec1==='boolean')return colorJSONBoolean(String(_0x418ec1),_0xaf363c);if(typeof _0x418ec1==='number')return colorJSONNumber(String(_0x418ec1),_0xaf363c);if(typeof _0x418ec1===_0xf7a107(0xbc))return colorJSONString(JSON[_0xf7a107(0xbd)](_0x418ec1),_0xaf363c);if(Array[_0xf7a107(0xad)](_0x418ec1)){if(_0x418ec1['length']===0x0)return'[]';const _0x339d71=_0x418ec1[_0xf7a107(0xaf)](_0x12a5f4=>{const _0x25eacf=_0xf7a107,_0x161f3c=colorizeJSON(_0x12a5f4,_0xaf363c,_0x6ce678);return''+'\x20'[_0x25eacf(0xbe)](_0x6ce678)+_0x161f3c;});return'[\x0a'+_0x339d71[_0xf7a107(0xb5)](',\x0a')+('\x0a'+_0x5799bb+']');}if(typeof _0x418ec1===_0xf7a107(0xa4)){const _0x558acc=Object[_0xf7a107(0xae)](_0x418ec1);if(_0x558acc[_0xf7a107(0xac)]===0x0)return'{}';const _0x4db269=_0x558acc['map'](([_0xdf1000,_0x47f471])=>{const _0x2c32de=_0xf7a107,_0x4038bf=colorJSONKey(JSON['stringify'](_0xdf1000),_0xaf363c),_0x1562a1=colorizeJSON(_0x47f471,_0xaf363c,_0x6ce678);return''+'\x20'[_0x2c32de(0xbe)](_0x6ce678)+_0x4038bf+':\x20'+_0x1562a1;});return'{\x0a'+_0x4db269[_0xf7a107(0xb5)](',\x0a')+('\x0a'+_0x5799bb+'}');}return String(_0x418ec1);}
1
+ const a170_0x4a6ac0=a170_0x9780;(function(_0x26017e,_0xe1d36d){const _0x1258fa=a170_0x9780,_0x5a8dce=_0x26017e();while(!![]){try{const _0x2152ac=parseInt(_0x1258fa(0x128))/0x1*(parseInt(_0x1258fa(0x133))/0x2)+-parseInt(_0x1258fa(0x137))/0x3+-parseInt(_0x1258fa(0x125))/0x4*(parseInt(_0x1258fa(0x129))/0x5)+parseInt(_0x1258fa(0x122))/0x6*(parseInt(_0x1258fa(0x124))/0x7)+-parseInt(_0x1258fa(0x13c))/0x8*(-parseInt(_0x1258fa(0x121))/0x9)+-parseInt(_0x1258fa(0x12b))/0xa+-parseInt(_0x1258fa(0x13e))/0xb*(-parseInt(_0x1258fa(0x135))/0xc);if(_0x2152ac===_0xe1d36d)break;else _0x5a8dce['push'](_0x5a8dce['shift']());}catch(_0x547f5a){_0x5a8dce['push'](_0x5a8dce['shift']());}}}(a170_0xc8b3,0xe7ff3));import*as a170_0x4ab8d9 from'chalk';const Chalk=a170_0x4ab8d9[a170_0x4a6ac0(0x132)];function a170_0xc8b3(){const _0x167cef=['164559FalLcr','5zAKhql','blue','6694610SHjjwa','null','boolean','object','yellow','color','dim','Chalk','4BjnFZB','join','3890676nRgrjc','length','456255RIfMzW','string','green','number','noColor','9512VcyNHR','isTTY','66tPigTb','entries','isArray','stringify','1935hhKCWp','4539378ubwFmN','repeat','7NCgTDI','6059396fTAIaH','cyan','map'];a170_0xc8b3=function(){return _0x167cef;};return a170_0xc8b3();}function a170_0x9780(_0x157620,_0x3d0bf5){_0x157620=_0x157620-0x11f;const _0xc8b319=a170_0xc8b3();let _0x9780d6=_0xc8b319[_0x157620];return _0x9780d6;}export function shouldUseColor(_0x155547={}){const _0x5833e9=a170_0x4a6ac0;if(_0x155547[_0x5833e9(0x13b)]===!![])return![];if(_0x155547[_0x5833e9(0x130)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x5833e9(0x13d)]??![];}export function getChalk(_0x24f89e={}){if(shouldUseColor(_0x24f89e))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1943d6,_0x2f42fe={}){const _0x17dd55=a170_0x4a6ac0;return getChalk(_0x2f42fe)[_0x17dd55(0x131)](_0x1943d6);}export function colorHeader(_0x502753,_0x598258={}){const _0x2bddb9=a170_0x4a6ac0;return getChalk(_0x598258)[_0x2bddb9(0x126)](_0x502753);}export function colorType(_0x4aa6d8,_0x1d0e42={}){const _0x13d050=a170_0x4a6ac0;return getChalk(_0x1d0e42)[_0x13d050(0x131)](_0x4aa6d8);}export function colorJSONKey(_0x453dcf,_0x1faca0={}){const _0x27d6f5=a170_0x4a6ac0;return getChalk(_0x1faca0)[_0x27d6f5(0x12a)](_0x453dcf);}export function colorJSONString(_0x37c663,_0x1e7568={}){const _0x148488=a170_0x4a6ac0;return getChalk(_0x1e7568)[_0x148488(0x139)](_0x37c663);}export function colorJSONNumber(_0xec209b,_0x4f8c39={}){return getChalk(_0x4f8c39)['cyan'](_0xec209b);}export function colorJSONBoolean(_0x46723a,_0x1bf976={}){const _0x396576=a170_0x4a6ac0;return getChalk(_0x1bf976)[_0x396576(0x12f)](_0x46723a);}export function colorJSONNull(_0x5b9319,_0x21e5d9={}){return getChalk(_0x21e5d9)['dim'](_0x5b9319);}export function colorizeJSONCompact(_0x256335,_0x132c08={}){const _0x5d64d0=a170_0x4a6ac0;if(!shouldUseColor(_0x132c08))return JSON[_0x5d64d0(0x120)](_0x256335);if(_0x256335===null)return colorJSONNull(_0x5d64d0(0x12c),_0x132c08);if(typeof _0x256335===_0x5d64d0(0x12d))return colorJSONBoolean(String(_0x256335),_0x132c08);if(typeof _0x256335===_0x5d64d0(0x13a))return colorJSONNumber(String(_0x256335),_0x132c08);if(typeof _0x256335===_0x5d64d0(0x138))return colorJSONString(JSON['stringify'](_0x256335),_0x132c08);if(Array['isArray'](_0x256335)){if(_0x256335[_0x5d64d0(0x136)]===0x0)return'[]';const _0x43f89a=_0x256335['map'](_0x411115=>colorizeJSONCompact(_0x411115,_0x132c08));return'['+_0x43f89a[_0x5d64d0(0x134)](',')+']';}if(typeof _0x256335==='object'){const _0x3d53b8=Object[_0x5d64d0(0x13f)](_0x256335);if(_0x3d53b8[_0x5d64d0(0x136)]===0x0)return'{}';const _0xebd350=_0x3d53b8[_0x5d64d0(0x127)](([_0x3fb6fc,_0x5e9e28])=>{const _0x4c3317=_0x5d64d0,_0xf8f9f0=colorJSONKey(JSON[_0x4c3317(0x120)](_0x3fb6fc),_0x132c08),_0x54ab3a=colorizeJSONCompact(_0x5e9e28,_0x132c08);return _0xf8f9f0+':'+_0x54ab3a;});return'{'+_0xebd350[_0x5d64d0(0x134)](',')+'}';}return String(_0x256335);}export function colorizeJSON(_0x395d55,_0x554bb8={},_0x2593aa=0x0){const _0x5779cd=a170_0x4a6ac0;if(!shouldUseColor(_0x554bb8))return JSON[_0x5779cd(0x120)](_0x395d55,null,0x2);const _0x45cb3a='\x20'[_0x5779cd(0x123)](_0x2593aa),_0x5eb725=_0x2593aa+0x2;if(_0x395d55===null)return colorJSONNull(_0x5779cd(0x12c),_0x554bb8);if(typeof _0x395d55===_0x5779cd(0x12d))return colorJSONBoolean(String(_0x395d55),_0x554bb8);if(typeof _0x395d55===_0x5779cd(0x13a))return colorJSONNumber(String(_0x395d55),_0x554bb8);if(typeof _0x395d55===_0x5779cd(0x138))return colorJSONString(JSON['stringify'](_0x395d55),_0x554bb8);if(Array[_0x5779cd(0x11f)](_0x395d55)){if(_0x395d55[_0x5779cd(0x136)]===0x0)return'[]';const _0x3e119e=_0x395d55['map'](_0x3a2bcf=>{const _0x353972=colorizeJSON(_0x3a2bcf,_0x554bb8,_0x5eb725);return''+'\x20'['repeat'](_0x5eb725)+_0x353972;});return'[\x0a'+_0x3e119e['join'](',\x0a')+('\x0a'+_0x45cb3a+']');}if(typeof _0x395d55===_0x5779cd(0x12e)){const _0x58d0bd=Object[_0x5779cd(0x13f)](_0x395d55);if(_0x58d0bd['length']===0x0)return'{}';const _0x4e45c4=_0x58d0bd['map'](([_0x11d782,_0x2d736b])=>{const _0x5a35b5=_0x5779cd,_0x4834b1=colorJSONKey(JSON[_0x5a35b5(0x120)](_0x11d782),_0x554bb8),_0x3465b5=colorizeJSON(_0x2d736b,_0x554bb8,_0x5eb725);return''+'\x20'[_0x5a35b5(0x123)](_0x5eb725)+_0x4834b1+':\x20'+_0x3465b5;});return'{\x0a'+_0x4e45c4[_0x5779cd(0x134)](',\x0a')+('\x0a'+_0x45cb3a+'}');}return String(_0x395d55);}
@@ -1 +1 @@
1
- function a171_0x2806(){const _0x28c770=['\x20+\x20','24yjOzly','\x20\x20\x20','added','3000ihGLuk','forEach','push','1959177aCzSZL','586369lirEoG','max','red','unchanged','fill','1425964eZNiUU','type','8QvESgF','length','44050GNpNLi','3093wsHKGw','map','621zAqNil','1945FUUrbL','new','padStart','dim','old','split','102933RDqwOY','316VyrHjs','has','add','content','repeat','removed'];a171_0x2806=function(){return _0x28c770;};return a171_0x2806();}(function(_0x4ebdcc,_0x26bb9c){const _0x4d06c8=a171_0x133b,_0xa057bd=_0x4ebdcc();while(!![]){try{const _0x45ddf0=parseInt(_0x4d06c8(0x1f5))/0x1+parseInt(_0x4d06c8(0x1f6))/0x2*(-parseInt(_0x4d06c8(0x1ec))/0x3)+parseInt(_0x4d06c8(0x1e7))/0x4+parseInt(_0x4d06c8(0x1ef))/0x5*(parseInt(_0x4d06c8(0x1de))/0x6)+-parseInt(_0x4d06c8(0x1e2))/0x7*(parseInt(_0x4d06c8(0x1e9))/0x8)+-parseInt(_0x4d06c8(0x1ee))/0x9*(-parseInt(_0x4d06c8(0x1eb))/0xa)+-parseInt(_0x4d06c8(0x1e1))/0xb*(parseInt(_0x4d06c8(0x1db))/0xc);if(_0x45ddf0===_0x26bb9c)break;else _0xa057bd['push'](_0xa057bd['shift']());}catch(_0x3ff425){_0xa057bd['push'](_0xa057bd['shift']());}}}(a171_0x2806,0x56aae));function a171_0x133b(_0x4637a1,_0x150268){_0x4637a1=_0x4637a1-0x1da;const _0x28069f=a171_0x2806();let _0x133bb0=_0x28069f[_0x4637a1];return _0x133bb0;}import a171_0x436d61 from'chalk';export function generateDiff(_0x27cf85,_0x5f0bac){const _0x4c4c01=a171_0x133b,_0x4d4be1=_0x27cf85[_0x4c4c01(0x1f4)]('\x0a'),_0x562d7b=_0x5f0bac[_0x4c4c01(0x1f4)]('\x0a'),_0x408362=[],_0xeb90dc=computeLCS(_0x4d4be1,_0x562d7b);let _0x5db137=0x0,_0xc9061a=0x0,_0x140fbb=0x0;while(_0x5db137<_0x4d4be1[_0x4c4c01(0x1ea)]||_0xc9061a<_0x562d7b[_0x4c4c01(0x1ea)]){if(_0x140fbb<_0xeb90dc[_0x4c4c01(0x1ea)]&&_0x5db137<_0x4d4be1[_0x4c4c01(0x1ea)]&&_0x4d4be1[_0x5db137]===_0xeb90dc[_0x140fbb])_0xc9061a<_0x562d7b[_0x4c4c01(0x1ea)]&&_0x562d7b[_0xc9061a]===_0xeb90dc[_0x140fbb]?(_0x408362['push']({'type':_0x4c4c01(0x1e5),'content':_0x4d4be1[_0x5db137]}),_0x5db137++,_0xc9061a++,_0x140fbb++):(_0x408362[_0x4c4c01(0x1e0)]({'type':_0x4c4c01(0x1dd),'content':_0x562d7b[_0xc9061a]}),_0xc9061a++);else{if(_0x140fbb<_0xeb90dc[_0x4c4c01(0x1ea)]&&_0xc9061a<_0x562d7b[_0x4c4c01(0x1ea)]&&_0x562d7b[_0xc9061a]===_0xeb90dc[_0x140fbb])_0x408362[_0x4c4c01(0x1e0)]({'type':_0x4c4c01(0x1fb),'content':_0x4d4be1[_0x5db137]}),_0x5db137++;else{if(_0x5db137<_0x4d4be1[_0x4c4c01(0x1ea)]&&(_0x140fbb>=_0xeb90dc['length']||_0x4d4be1[_0x5db137]!==_0xeb90dc[_0x140fbb]))_0x408362['push']({'type':_0x4c4c01(0x1fb),'content':_0x4d4be1[_0x5db137]}),_0x5db137++;else _0xc9061a<_0x562d7b[_0x4c4c01(0x1ea)]&&(_0x408362['push']({'type':_0x4c4c01(0x1dd),'content':_0x562d7b[_0xc9061a]}),_0xc9061a++);}}}return _0x408362;}function computeLCS(_0x32af93,_0x101a49){const _0x3e9839=a171_0x133b,_0x258e87=_0x32af93[_0x3e9839(0x1ea)],_0x3a8db3=_0x101a49[_0x3e9839(0x1ea)],_0x33adbf=Array(_0x258e87+0x1)['fill'](null)[_0x3e9839(0x1ed)](()=>Array(_0x3a8db3+0x1)[_0x3e9839(0x1e6)](0x0));for(let _0x305576=0x1;_0x305576<=_0x258e87;_0x305576++){for(let _0x23d9e5=0x1;_0x23d9e5<=_0x3a8db3;_0x23d9e5++){_0x32af93[_0x305576-0x1]===_0x101a49[_0x23d9e5-0x1]?_0x33adbf[_0x305576][_0x23d9e5]=_0x33adbf[_0x305576-0x1][_0x23d9e5-0x1]+0x1:_0x33adbf[_0x305576][_0x23d9e5]=Math[_0x3e9839(0x1e3)](_0x33adbf[_0x305576-0x1][_0x23d9e5],_0x33adbf[_0x305576][_0x23d9e5-0x1]);}}const _0x1b6ba9=[];let _0x2d6c64=_0x258e87,_0x24762b=_0x3a8db3;while(_0x2d6c64>0x0&&_0x24762b>0x0){if(_0x32af93[_0x2d6c64-0x1]===_0x101a49[_0x24762b-0x1])_0x1b6ba9['unshift'](_0x32af93[_0x2d6c64-0x1]),_0x2d6c64--,_0x24762b--;else _0x33adbf[_0x2d6c64-0x1][_0x24762b]>_0x33adbf[_0x2d6c64][_0x24762b-0x1]?_0x2d6c64--:_0x24762b--;}return _0x1b6ba9;}export function formatDiffWithColors(_0x19ae44,_0x3fb58e=0x3){const _0x3b7053=a171_0x133b,_0x523fab=new Set();_0x19ae44[_0x3b7053(0x1df)]((_0x59ce2d,_0x3968cc)=>{const _0x113adc=_0x3b7053;_0x59ce2d[_0x113adc(0x1e8)]!=='unchanged'&&_0x523fab[_0x113adc(0x1f8)](_0x3968cc);});if(_0x523fab['size']===0x0)return'';const _0x21be62=new Set();for(const _0x410b60 of _0x523fab){for(let _0x53948f=Math['max'](0x0,_0x410b60-_0x3fb58e);_0x53948f<=Math['min'](_0x19ae44['length']-0x1,_0x410b60+_0x3fb58e);_0x53948f++){_0x21be62['add'](_0x53948f);}}const _0x1097d0=[];let _0x10a440=-0x1;const _0x5ac467=_0x19ae44[_0x3b7053(0x1ea)],_0x14a742=Math[_0x3b7053(0x1e3)](0x3,String(_0x5ac467)[_0x3b7053(0x1ea)]),_0x39bfe5=[];let _0x463969=0x0,_0x1bd483=0x0;for(const _0x5a4b70 of _0x19ae44){if(_0x5a4b70[_0x3b7053(0x1e8)]===_0x3b7053(0x1fb))_0x463969++,_0x39bfe5[_0x3b7053(0x1e0)]({'old':_0x463969,'new':0x0});else _0x5a4b70['type']===_0x3b7053(0x1dd)?(_0x1bd483++,_0x39bfe5[_0x3b7053(0x1e0)]({'old':0x0,'new':_0x1bd483})):(_0x463969++,_0x1bd483++,_0x39bfe5[_0x3b7053(0x1e0)]({'old':_0x463969,'new':_0x1bd483}));}for(let _0x592049=0x0;_0x592049<_0x19ae44[_0x3b7053(0x1ea)];_0x592049++){if(!_0x21be62[_0x3b7053(0x1f7)](_0x592049))continue;_0x10a440!==-0x1&&_0x592049>_0x10a440+0x1&&_0x1097d0['push'](a171_0x436d61['cyan']('\x20\x20...'));_0x10a440=_0x592049;const _0x2aa93c=_0x19ae44[_0x592049],_0x573f16=_0x39bfe5[_0x592049],_0x874eba=_0x573f16[_0x3b7053(0x1f3)]>0x0?String(_0x573f16[_0x3b7053(0x1f3)])['padStart'](_0x14a742):'\x20'[_0x3b7053(0x1fa)](_0x14a742),_0x121757=_0x573f16[_0x3b7053(0x1f0)]>0x0?String(_0x573f16[_0x3b7053(0x1f0)])[_0x3b7053(0x1f1)](_0x14a742):'\x20'[_0x3b7053(0x1fa)](_0x14a742);switch(_0x2aa93c[_0x3b7053(0x1e8)]){case'removed':_0x1097d0['push'](a171_0x436d61[_0x3b7053(0x1e4)](_0x874eba+'\x20'+_0x121757+'\x20-\x20'+_0x2aa93c[_0x3b7053(0x1f9)]));break;case _0x3b7053(0x1dd):_0x1097d0[_0x3b7053(0x1e0)](a171_0x436d61['green'](_0x874eba+'\x20'+_0x121757+_0x3b7053(0x1da)+_0x2aa93c[_0x3b7053(0x1f9)]));break;default:_0x1097d0['push'](a171_0x436d61[_0x3b7053(0x1f2)](_0x874eba+'\x20'+_0x121757+_0x3b7053(0x1dc)+_0x2aa93c[_0x3b7053(0x1f9)]));break;}}return _0x1097d0['join']('\x0a');}export function hasChanges(_0x433eb5){const _0x338106=a171_0x133b;return _0x433eb5['some'](_0x161fb1=>_0x161fb1[_0x338106(0x1e8)]!=='unchanged');}
1
+ function a171_0x4396(_0x13db92,_0x4eaf3e){_0x13db92=_0x13db92-0x1b3;const _0x4bdd31=a171_0x4bdd();let _0x4396dc=_0x4bdd31[_0x13db92];return _0x4396dc;}(function(_0x1a1690,_0x15f22c){const _0x4efd6e=a171_0x4396,_0x383dae=_0x1a1690();while(!![]){try{const _0x2a2749=parseInt(_0x4efd6e(0x1c8))/0x1*(-parseInt(_0x4efd6e(0x1c7))/0x2)+parseInt(_0x4efd6e(0x1c1))/0x3+parseInt(_0x4efd6e(0x1b7))/0x4+-parseInt(_0x4efd6e(0x1cf))/0x5+parseInt(_0x4efd6e(0x1b3))/0x6+parseInt(_0x4efd6e(0x1ca))/0x7*(-parseInt(_0x4efd6e(0x1c2))/0x8)+parseInt(_0x4efd6e(0x1b9))/0x9;if(_0x2a2749===_0x15f22c)break;else _0x383dae['push'](_0x383dae['shift']());}catch(_0x492d2b){_0x383dae['push'](_0x383dae['shift']());}}}(a171_0x4bdd,0x2ae2e));import a171_0x5b009b from'chalk';export function generateDiff(_0x1e067c,_0x2bc04a){const _0x3bcdf4=a171_0x4396,_0x4b2f24=_0x1e067c['split']('\x0a'),_0x260dab=_0x2bc04a[_0x3bcdf4(0x1d3)]('\x0a'),_0x35a206=[],_0x58320d=computeLCS(_0x4b2f24,_0x260dab);let _0x3e87b2=0x0,_0x1848ee=0x0,_0x148b5d=0x0;while(_0x3e87b2<_0x4b2f24[_0x3bcdf4(0x1d2)]||_0x1848ee<_0x260dab['length']){if(_0x148b5d<_0x58320d['length']&&_0x3e87b2<_0x4b2f24[_0x3bcdf4(0x1d2)]&&_0x4b2f24[_0x3e87b2]===_0x58320d[_0x148b5d])_0x1848ee<_0x260dab['length']&&_0x260dab[_0x1848ee]===_0x58320d[_0x148b5d]?(_0x35a206[_0x3bcdf4(0x1ba)]({'type':_0x3bcdf4(0x1cd),'content':_0x4b2f24[_0x3e87b2]}),_0x3e87b2++,_0x1848ee++,_0x148b5d++):(_0x35a206[_0x3bcdf4(0x1ba)]({'type':_0x3bcdf4(0x1c9),'content':_0x260dab[_0x1848ee]}),_0x1848ee++);else{if(_0x148b5d<_0x58320d[_0x3bcdf4(0x1d2)]&&_0x1848ee<_0x260dab[_0x3bcdf4(0x1d2)]&&_0x260dab[_0x1848ee]===_0x58320d[_0x148b5d])_0x35a206['push']({'type':_0x3bcdf4(0x1d0),'content':_0x4b2f24[_0x3e87b2]}),_0x3e87b2++;else{if(_0x3e87b2<_0x4b2f24['length']&&(_0x148b5d>=_0x58320d['length']||_0x4b2f24[_0x3e87b2]!==_0x58320d[_0x148b5d]))_0x35a206[_0x3bcdf4(0x1ba)]({'type':_0x3bcdf4(0x1d0),'content':_0x4b2f24[_0x3e87b2]}),_0x3e87b2++;else _0x1848ee<_0x260dab['length']&&(_0x35a206['push']({'type':_0x3bcdf4(0x1c9),'content':_0x260dab[_0x1848ee]}),_0x1848ee++);}}}return _0x35a206;}function a171_0x4bdd(){const _0x89158d=['56ulllSU','new','content','unchanged','max','639970lCVaVz','removed','green','length','split','red','\x20\x20\x20','old','968826fupdWT','padStart','unshift','forEach','892848ZilRna','\x20-\x20','965295egwCDx','push','dim','repeat','fill','map','cyan','add','810015DDnqkY','233176YZkXeT','\x20+\x20','type','min','some','6YADmMp','75037UVThpW','added'];a171_0x4bdd=function(){return _0x89158d;};return a171_0x4bdd();}function computeLCS(_0x597767,_0x62c6a5){const _0x21ce4c=a171_0x4396,_0x2450ce=_0x597767[_0x21ce4c(0x1d2)],_0x520918=_0x62c6a5[_0x21ce4c(0x1d2)],_0x33ab2a=Array(_0x2450ce+0x1)[_0x21ce4c(0x1bd)](null)[_0x21ce4c(0x1be)](()=>Array(_0x520918+0x1)[_0x21ce4c(0x1bd)](0x0));for(let _0x3006a5=0x1;_0x3006a5<=_0x2450ce;_0x3006a5++){for(let _0x47a876=0x1;_0x47a876<=_0x520918;_0x47a876++){_0x597767[_0x3006a5-0x1]===_0x62c6a5[_0x47a876-0x1]?_0x33ab2a[_0x3006a5][_0x47a876]=_0x33ab2a[_0x3006a5-0x1][_0x47a876-0x1]+0x1:_0x33ab2a[_0x3006a5][_0x47a876]=Math[_0x21ce4c(0x1ce)](_0x33ab2a[_0x3006a5-0x1][_0x47a876],_0x33ab2a[_0x3006a5][_0x47a876-0x1]);}}const _0x4c942d=[];let _0x55de0a=_0x2450ce,_0xf5a0ac=_0x520918;while(_0x55de0a>0x0&&_0xf5a0ac>0x0){if(_0x597767[_0x55de0a-0x1]===_0x62c6a5[_0xf5a0ac-0x1])_0x4c942d[_0x21ce4c(0x1b5)](_0x597767[_0x55de0a-0x1]),_0x55de0a--,_0xf5a0ac--;else _0x33ab2a[_0x55de0a-0x1][_0xf5a0ac]>_0x33ab2a[_0x55de0a][_0xf5a0ac-0x1]?_0x55de0a--:_0xf5a0ac--;}return _0x4c942d;}export function formatDiffWithColors(_0x4f9ec4,_0x14b7c4=0x3){const _0x4f70c5=a171_0x4396,_0x46fd9c=new Set();_0x4f9ec4[_0x4f70c5(0x1b6)]((_0xcc76a8,_0x28e5d8)=>{const _0x2f92aa=_0x4f70c5;_0xcc76a8[_0x2f92aa(0x1c4)]!==_0x2f92aa(0x1cd)&&_0x46fd9c['add'](_0x28e5d8);});if(_0x46fd9c['size']===0x0)return'';const _0x20093b=new Set();for(const _0x1a4332 of _0x46fd9c){for(let _0xd66c49=Math[_0x4f70c5(0x1ce)](0x0,_0x1a4332-_0x14b7c4);_0xd66c49<=Math[_0x4f70c5(0x1c5)](_0x4f9ec4[_0x4f70c5(0x1d2)]-0x1,_0x1a4332+_0x14b7c4);_0xd66c49++){_0x20093b[_0x4f70c5(0x1c0)](_0xd66c49);}}const _0x38d807=[];let _0x1945ee=-0x1;const _0x5970f0=_0x4f9ec4[_0x4f70c5(0x1d2)],_0x53695c=Math[_0x4f70c5(0x1ce)](0x3,String(_0x5970f0)[_0x4f70c5(0x1d2)]),_0x217e07=[];let _0x16d6ac=0x0,_0x1c7d59=0x0;for(const _0x2e8814 of _0x4f9ec4){if(_0x2e8814[_0x4f70c5(0x1c4)]===_0x4f70c5(0x1d0))_0x16d6ac++,_0x217e07[_0x4f70c5(0x1ba)]({'old':_0x16d6ac,'new':0x0});else _0x2e8814[_0x4f70c5(0x1c4)]==='added'?(_0x1c7d59++,_0x217e07[_0x4f70c5(0x1ba)]({'old':0x0,'new':_0x1c7d59})):(_0x16d6ac++,_0x1c7d59++,_0x217e07['push']({'old':_0x16d6ac,'new':_0x1c7d59}));}for(let _0x5e1860=0x0;_0x5e1860<_0x4f9ec4[_0x4f70c5(0x1d2)];_0x5e1860++){if(!_0x20093b['has'](_0x5e1860))continue;_0x1945ee!==-0x1&&_0x5e1860>_0x1945ee+0x1&&_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1bf)]('\x20\x20...'));_0x1945ee=_0x5e1860;const _0x49f9ad=_0x4f9ec4[_0x5e1860],_0x131249=_0x217e07[_0x5e1860],_0x3d65aa=_0x131249[_0x4f70c5(0x1d6)]>0x0?String(_0x131249['old'])[_0x4f70c5(0x1b4)](_0x53695c):'\x20'[_0x4f70c5(0x1bc)](_0x53695c),_0x50b75b=_0x131249[_0x4f70c5(0x1cb)]>0x0?String(_0x131249[_0x4f70c5(0x1cb)])[_0x4f70c5(0x1b4)](_0x53695c):'\x20'['repeat'](_0x53695c);switch(_0x49f9ad[_0x4f70c5(0x1c4)]){case _0x4f70c5(0x1d0):_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1d4)](_0x3d65aa+'\x20'+_0x50b75b+_0x4f70c5(0x1b8)+_0x49f9ad[_0x4f70c5(0x1cc)]));break;case _0x4f70c5(0x1c9):_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1d1)](_0x3d65aa+'\x20'+_0x50b75b+_0x4f70c5(0x1c3)+_0x49f9ad['content']));break;default:_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1bb)](_0x3d65aa+'\x20'+_0x50b75b+_0x4f70c5(0x1d5)+_0x49f9ad[_0x4f70c5(0x1cc)]));break;}}return _0x38d807['join']('\x0a');}export function hasChanges(_0x5ac630){const _0x31e50b=a171_0x4396;return _0x5ac630[_0x31e50b(0x1c6)](_0x44aad9=>_0x44aad9[_0x31e50b(0x1c4)]!==_0x31e50b(0x1cd));}
@@ -1 +1 @@
1
- function a172_0x2c23(){const _0x12a742=['\x20has\x20insecure\x20permissions\x20(','Should\x20be\x200600\x20or\x20more\x20restrictive.','15540180zqbuuK','1230TUsqEH','toString','14833aufPRt','45232ZAyBrH','78297mcKSaz','56qnNWlV','statSync','warn','1701640klyxVa','existsSync','260651zUdGaB','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1761066xvpXAZ','441SmbTyr','dirname','chmodSync','writeFileSync'];a172_0x2c23=function(){return _0x12a742;};return a172_0x2c23();}(function(_0x517cdf,_0x3d8be7){const _0x2767b4=a172_0x4357,_0x1a48d1=_0x517cdf();while(!![]){try{const _0x50f75f=parseInt(_0x2767b4(0xe6))/0x1+-parseInt(_0x2767b4(0xe9))/0x2+parseInt(_0x2767b4(0xe0))/0x3*(-parseInt(_0x2767b4(0xe1))/0x4)+parseInt(_0x2767b4(0xe4))/0x5+parseInt(_0x2767b4(0xdc))/0x6*(-parseInt(_0x2767b4(0xde))/0x7)+parseInt(_0x2767b4(0xdf))/0x8*(parseInt(_0x2767b4(0xea))/0x9)+parseInt(_0x2767b4(0xf0))/0xa;if(_0x50f75f===_0x3d8be7)break;else _0x1a48d1['push'](_0x1a48d1['shift']());}catch(_0xb03c3b){_0x1a48d1['push'](_0x1a48d1['shift']());}}}(a172_0x2c23,0xb7871));import*as a172_0x34aef8 from'node:fs';function a172_0x4357(_0xb061f2,_0x2312c6){_0xb061f2=_0xb061f2-0xdc;const _0x2c235e=a172_0x2c23();let _0x4357a0=_0x2c235e[_0xb061f2];return _0x4357a0;}import*as a172_0x4f29cb from'node:path';export function setSecureFilePermissions(_0x2a0b87){const _0x53a6dc=a172_0x4357;try{a172_0x34aef8[_0x53a6dc(0xec)](_0x2a0b87,0x180);}catch{console[_0x53a6dc(0xe3)](_0x53a6dc(0xe8)+_0x2a0b87);}}export function setSecureDirectoryPermissions(_0x1401a8){const _0x5de322=a172_0x4357;try{a172_0x34aef8['chmodSync'](_0x1401a8,0x1c0);}catch{console[_0x5de322(0xe3)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1401a8);}}export function createSecureDirectory(_0x430bd7){const _0x1254c8=a172_0x4357;!a172_0x34aef8[_0x1254c8(0xe5)](_0x430bd7)&&(a172_0x34aef8[_0x1254c8(0xe7)](_0x430bd7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x430bd7));}export function validateSecureFilePermissions(_0x22db17){const _0x73a020=a172_0x4357;try{const _0x353648=a172_0x34aef8[_0x73a020(0xe2)](_0x22db17),_0x19876b=_0x353648['mode']&0x1ff,_0x1ebe79=(_0x19876b&0x3f)!==0x0;if(_0x1ebe79)return console['warn']('Warning:\x20'+_0x22db17+_0x73a020(0xee)+_0x19876b[_0x73a020(0xdd)](0x8)+').\x20'+_0x73a020(0xef)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x25b11b,_0xe16718){const _0x47abd0=a172_0x4357,_0x269a5c=a172_0x4f29cb[_0x47abd0(0xeb)](_0x25b11b);createSecureDirectory(_0x269a5c),a172_0x34aef8[_0x47abd0(0xed)](_0x25b11b,_0xe16718,{'mode':0x180}),setSecureFilePermissions(_0x25b11b);}
1
+ function a172_0x4b94(){const _0x725c06=['warn','8pHGJjn','Warning:\x20','dirname','writeFileSync','804332qgwgXF',').\x20','mkdirSync','\x20has\x20insecure\x20permissions\x20(','256649LmmfPK','toString','16eWiIQO','3965544jQvWnU','existsSync','mode','chmodSync','1969446vRfNHO','Should\x20be\x200600\x20or\x20more\x20restrictive.','911065fyGfsE','1156246yYBEnk','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1231578oXLXVc','statSync'];a172_0x4b94=function(){return _0x725c06;};return a172_0x4b94();}(function(_0xff15a6,_0x48f4a3){const _0x569002=a172_0xe2c6,_0x53afe7=_0xff15a6();while(!![]){try{const _0x4a01a5=-parseInt(_0x569002(0x121))/0x1+-parseInt(_0x569002(0x11d))/0x2+parseInt(_0x569002(0x128))/0x3+-parseInt(_0x569002(0x123))/0x4*(-parseInt(_0x569002(0x12a))/0x5)+-parseInt(_0x569002(0x124))/0x6+-parseInt(_0x569002(0x12b))/0x7*(-parseInt(_0x569002(0x130))/0x8)+parseInt(_0x569002(0x12d))/0x9;if(_0x4a01a5===_0x48f4a3)break;else _0x53afe7['push'](_0x53afe7['shift']());}catch(_0x2adee3){_0x53afe7['push'](_0x53afe7['shift']());}}}(a172_0x4b94,0x59bff));import*as a172_0x3b0918 from'node:fs';import*as a172_0x162fa6 from'node:path';export function setSecureFilePermissions(_0x496d33){const _0x22a609=a172_0xe2c6;try{a172_0x3b0918[_0x22a609(0x127)](_0x496d33,0x180);}catch{console['warn'](_0x22a609(0x12c)+_0x496d33);}}export function setSecureDirectoryPermissions(_0x57f03e){const _0x1e8217=a172_0xe2c6;try{a172_0x3b0918['chmodSync'](_0x57f03e,0x1c0);}catch{console['warn'](_0x1e8217(0x12c)+_0x57f03e);}}function a172_0xe2c6(_0x533b5c,_0x1f1107){_0x533b5c=_0x533b5c-0x11a;const _0x4b94a9=a172_0x4b94();let _0xe2c65f=_0x4b94a9[_0x533b5c];return _0xe2c65f;}export function createSecureDirectory(_0x2956c6){const _0x557806=a172_0xe2c6;!a172_0x3b0918[_0x557806(0x125)](_0x2956c6)&&(a172_0x3b0918[_0x557806(0x11f)](_0x2956c6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2956c6));}export function validateSecureFilePermissions(_0x47523b){const _0x42630b=a172_0xe2c6;try{const _0x24e4a8=a172_0x3b0918[_0x42630b(0x12e)](_0x47523b),_0x15dcd6=_0x24e4a8[_0x42630b(0x126)]&0x1ff,_0x56c01a=(_0x15dcd6&0x3f)!==0x0;if(_0x56c01a)return console[_0x42630b(0x12f)](_0x42630b(0x11a)+_0x47523b+_0x42630b(0x120)+_0x15dcd6[_0x42630b(0x122)](0x8)+_0x42630b(0x11e)+_0x42630b(0x129)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x356c59,_0x1a4340){const _0x211a28=a172_0xe2c6,_0x5ad299=a172_0x162fa6[_0x211a28(0x11b)](_0x356c59);createSecureDirectory(_0x5ad299),a172_0x3b0918[_0x211a28(0x11c)](_0x356c59,_0x1a4340,{'mode':0x180}),setSecureFilePermissions(_0x356c59);}
@@ -1 +1 @@
1
- (function(_0x1a45e2,_0x2080f5){const _0x434458=a173_0x1956,_0x340a42=_0x1a45e2();while(!![]){try{const _0x3903b7=-parseInt(_0x434458(0x8c))/0x1+-parseInt(_0x434458(0x81))/0x2*(-parseInt(_0x434458(0x86))/0x3)+-parseInt(_0x434458(0x8b))/0x4*(parseInt(_0x434458(0x83))/0x5)+-parseInt(_0x434458(0x80))/0x6*(-parseInt(_0x434458(0x7d))/0x7)+parseInt(_0x434458(0x7e))/0x8+parseInt(_0x434458(0x87))/0x9*(parseInt(_0x434458(0x8a))/0xa)+parseInt(_0x434458(0x8d))/0xb*(-parseInt(_0x434458(0x82))/0xc);if(_0x3903b7===_0x2080f5)break;else _0x340a42['push'](_0x340a42['shift']());}catch(_0xe20439){_0x340a42['push'](_0x340a42['shift']());}}}(a173_0x16f5,0x9c7d9));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';function a173_0x1956(_0x2aea42,_0x55d80b){_0x2aea42=_0x2aea42-0x75;const _0x16f54b=a173_0x16f5();let _0x1956fa=_0x16f54b[_0x2aea42];return _0x1956fa;}export function getGlobalCacheDir(){const _0x1f82d0=a173_0x1956;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x1f82d0(0x75));}const registry=new Map();export function registerGlobalCacheKey(_0x910612,_0x28f7c7){const _0x777202=a173_0x1956,_0x1a8941=registry[_0x777202(0x7a)](_0x910612);if(_0x1a8941&&_0x1a8941!==_0x28f7c7)throw new Error(_0x777202(0x85)+_0x910612+_0x777202(0x77)+_0x1a8941+_0x777202(0x7b)+_0x28f7c7+'\x22');registry[_0x777202(0x7c)](_0x910612,_0x28f7c7);}export function getGlobalCachePath(_0x172d2e){return join(getGlobalCacheDir(),_0x172d2e);}function ensureGlobalCacheDir(){const _0x4bd536=getGlobalCacheDir();!existsSync(_0x4bd536)&&mkdirSync(_0x4bd536,{'recursive':!![]});}function readCacheJson(_0xe5214e){const _0x34d6a5=a173_0x1956,_0x4988a1=getGlobalCachePath(_0xe5214e);if(!existsSync(_0x4988a1))return undefined;try{const _0x4c8384=readFileSync(_0x4988a1,_0x34d6a5(0x89));return JSON[_0x34d6a5(0x76)](_0x4c8384);}catch{return undefined;}}function writeCacheJson(_0x1e8779,_0x49e73b){const _0x51c150=a173_0x1956;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1e8779),JSON['stringify'](_0x49e73b,null,0x2),_0x51c150(0x89));}function readCacheText(_0xc85980){const _0x199bd1=getGlobalCachePath(_0xc85980);if(!existsSync(_0x199bd1))return undefined;try{return readFileSync(_0x199bd1,'utf-8');}catch{return undefined;}}function writeCacheText(_0x446808,_0x1417ba){const _0x21d02b=a173_0x1956;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x446808),_0x1417ba,_0x21d02b(0x89));}function clearCache(_0x5988de){const _0x3ec6d2=getGlobalCachePath(_0x5988de);if(existsSync(_0x3ec6d2))try{unlinkSync(_0x3ec6d2);}catch{}}function cacheExists(_0x52e2d5){return existsSync(getGlobalCachePath(_0x52e2d5));}export function createGlobalCache(_0x46efb8,_0x43286f){return registerGlobalCacheKey(_0x46efb8,_0x43286f),{'read':()=>readCacheJson(_0x46efb8),'write':_0x279686=>writeCacheJson(_0x46efb8,_0x279686),'clear':()=>clearCache(_0x46efb8),'exists':()=>cacheExists(_0x46efb8),'path':()=>getGlobalCachePath(_0x46efb8)};}export function createGlobalTextCache(_0x13bdbc,_0x3c92c7){const _0xeb8f8d=a173_0x1956;return registerGlobalCacheKey(_0x13bdbc,_0x3c92c7),{'read':()=>readCacheText(_0x13bdbc)?.[_0xeb8f8d(0x84)]()||undefined,'write':_0x4c63c0=>writeCacheText(_0x13bdbc,_0x4c63c0),'clear':()=>clearCache(_0x13bdbc),'exists':()=>cacheExists(_0x13bdbc),'path':()=>getGlobalCachePath(_0x13bdbc)};}export function createProfileCache(_0x58d487,_0x3c9443){const _0x17fc87=_0x4ed20f=>{const _0x150075=a173_0x1956,_0x3bd90b=_0x4ed20f||_0x150075(0x88);return _0x58d487[_0x150075(0x78)](_0x150075(0x79),_0x3bd90b);};return{'read':_0x55bccf=>{const _0x2c793a=_0x17fc87(_0x55bccf);return registerGlobalCacheKey(_0x2c793a,_0x3c9443),readCacheJson(_0x2c793a);},'write':(_0x24658e,_0x29b529)=>{const _0x543837=_0x17fc87(_0x24658e);registerGlobalCacheKey(_0x543837,_0x3c9443),writeCacheJson(_0x543837,_0x29b529);},'clear':_0x4fde90=>{const _0x13b306=_0x17fc87(_0x4fde90);clearCache(_0x13b306);},'exists':_0xe18a35=>{const _0x1be07e=_0x17fc87(_0xe18a35);return cacheExists(_0x1be07e);},'path':_0x46a109=>{const _0x3f5929=_0x17fc87(_0x46a109);return getGlobalCachePath(_0x3f5929);}};}function a173_0x16f5(){const _0x1d4798=['parse','\x22\x20already\x20registered\x20by\x20\x22','replace','{profile}','get','\x22,\x20cannot\x20register\x20for\x20\x22','set','2814SdqZrU','2800808vJwBPG','clear','14502hLaHRu','2SsglRS','12MxYXHv','15JIWUFr','trim','Global\x20cache\x20key\x20\x22','3131529NySxSJ','2169WLtvFj','default','utf-8','16190demOfu','896164rnuwcL','644506BNneGf','8779573CAaJYX','tdx'];a173_0x16f5=function(){return _0x1d4798;};return a173_0x16f5();}export function createOptionalProfileCache(_0x35e9e7,_0x1e4962,_0x14f66b={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x14f66b,_0x4e8eb1=_0xddf8fd=>{return _0xddf8fd?''+_0x35e9e7+profileSeparator+_0xddf8fd+suffix:''+_0x35e9e7+suffix;};return{'read':_0x46b606=>{const _0x5a968b=_0x4e8eb1(_0x46b606);return registerGlobalCacheKey(_0x5a968b,_0x1e4962),readCacheJson(_0x5a968b);},'write':(_0x2ad9d5,_0x544691)=>{const _0x152c05=_0x4e8eb1(_0x544691);registerGlobalCacheKey(_0x152c05,_0x1e4962),writeCacheJson(_0x152c05,_0x2ad9d5);},'clear':_0x3543e6=>{const _0x46f3e2=_0x4e8eb1(_0x3543e6);clearCache(_0x46f3e2);},'exists':_0x54e97b=>{const _0x4364d3=_0x4e8eb1(_0x54e97b);return cacheExists(_0x4364d3);},'path':_0x2e82cb=>{const _0x381f1f=_0x4e8eb1(_0x2e82cb);return getGlobalCachePath(_0x381f1f);}};}export function clearGlobalRegistry(){const _0x2a9d51=a173_0x1956;registry[_0x2a9d51(0x7f)]();}
1
+ (function(_0x50c3ca,_0x21d0f3){const _0x572cc2=a173_0x43a1,_0x564831=_0x50c3ca();while(!![]){try{const _0x38c9f2=parseInt(_0x572cc2(0xde))/0x1*(parseInt(_0x572cc2(0xdd))/0x2)+-parseInt(_0x572cc2(0xda))/0x3*(parseInt(_0x572cc2(0xd6))/0x4)+parseInt(_0x572cc2(0xd5))/0x5*(-parseInt(_0x572cc2(0xd4))/0x6)+parseInt(_0x572cc2(0xd9))/0x7+parseInt(_0x572cc2(0xd3))/0x8*(parseInt(_0x572cc2(0xdf))/0x9)+parseInt(_0x572cc2(0xdb))/0xa+-parseInt(_0x572cc2(0xe3))/0xb;if(_0x38c9f2===_0x21d0f3)break;else _0x564831['push'](_0x564831['shift']());}catch(_0x3e2e3f){_0x564831['push'](_0x564831['shift']());}}}(a173_0x1572,0x9e05c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';function a173_0x1572(){const _0x2af628=['9451340dszmem','replace','24582ryVypI','43PTekdM','1053eTohZQ','\x22\x20already\x20registered\x20by\x20\x22','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','15604094rgJrdT','Global\x20cache\x20key\x20\x22','.cache','14704veBQsg','6VGsCMg','1796025rwAahC','116OaFdeg','{profile}','stringify','6976613HtrNKb','26931ERTeYG'];a173_0x1572=function(){return _0x2af628;};return a173_0x1572();}export function getGlobalCacheDir(){const _0x3242a1=a173_0x43a1;return process.env.TDX_CACHE_DIR||join(homedir(),_0x3242a1(0xd2),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x5d26e0,_0x54a57b){const _0x29d260=a173_0x43a1,_0x3c6e88=registry['get'](_0x5d26e0);if(_0x3c6e88&&_0x3c6e88!==_0x54a57b)throw new Error(_0x29d260(0xe4)+_0x5d26e0+_0x29d260(0xe0)+_0x3c6e88+_0x29d260(0xe2)+_0x54a57b+'\x22');registry['set'](_0x5d26e0,_0x54a57b);}function a173_0x43a1(_0x1cb0c4,_0xf40ef3){_0x1cb0c4=_0x1cb0c4-0xd2;const _0x1572a7=a173_0x1572();let _0x43a1fe=_0x1572a7[_0x1cb0c4];return _0x43a1fe;}export function getGlobalCachePath(_0x1eeeca){return join(getGlobalCacheDir(),_0x1eeeca);}function ensureGlobalCacheDir(){const _0x5a426f=getGlobalCacheDir();!existsSync(_0x5a426f)&&mkdirSync(_0x5a426f,{'recursive':!![]});}function readCacheJson(_0x3c96b6){const _0x5cb775=a173_0x43a1,_0x4fe0fc=getGlobalCachePath(_0x3c96b6);if(!existsSync(_0x4fe0fc))return undefined;try{const _0x25d49c=readFileSync(_0x4fe0fc,_0x5cb775(0xe1));return JSON['parse'](_0x25d49c);}catch{return undefined;}}function writeCacheJson(_0x1964ed,_0x270d9b){const _0x1cdd81=a173_0x43a1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1964ed),JSON[_0x1cdd81(0xd8)](_0x270d9b,null,0x2),_0x1cdd81(0xe1));}function readCacheText(_0x2d214e){const _0x59bbbd=a173_0x43a1,_0x59f22b=getGlobalCachePath(_0x2d214e);if(!existsSync(_0x59f22b))return undefined;try{return readFileSync(_0x59f22b,_0x59bbbd(0xe1));}catch{return undefined;}}function writeCacheText(_0x2891e,_0x135b7a){const _0x1030be=a173_0x43a1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2891e),_0x135b7a,_0x1030be(0xe1));}function clearCache(_0x1679ad){const _0x246c69=getGlobalCachePath(_0x1679ad);if(existsSync(_0x246c69))try{unlinkSync(_0x246c69);}catch{}}function cacheExists(_0xff8c25){return existsSync(getGlobalCachePath(_0xff8c25));}export function createGlobalCache(_0x29c581,_0x54cebd){return registerGlobalCacheKey(_0x29c581,_0x54cebd),{'read':()=>readCacheJson(_0x29c581),'write':_0x5cb544=>writeCacheJson(_0x29c581,_0x5cb544),'clear':()=>clearCache(_0x29c581),'exists':()=>cacheExists(_0x29c581),'path':()=>getGlobalCachePath(_0x29c581)};}export function createGlobalTextCache(_0xb483bb,_0x5a7502){return registerGlobalCacheKey(_0xb483bb,_0x5a7502),{'read':()=>readCacheText(_0xb483bb)?.['trim']()||undefined,'write':_0x1d73c6=>writeCacheText(_0xb483bb,_0x1d73c6),'clear':()=>clearCache(_0xb483bb),'exists':()=>cacheExists(_0xb483bb),'path':()=>getGlobalCachePath(_0xb483bb)};}export function createProfileCache(_0x3eedb8,_0x378f7f){const _0x21be11=_0x4ba086=>{const _0x12e11b=a173_0x43a1,_0x162cc3=_0x4ba086||'default';return _0x3eedb8[_0x12e11b(0xdc)](_0x12e11b(0xd7),_0x162cc3);};return{'read':_0x4f4eb5=>{const _0x41e4c1=_0x21be11(_0x4f4eb5);return registerGlobalCacheKey(_0x41e4c1,_0x378f7f),readCacheJson(_0x41e4c1);},'write':(_0x19fc7f,_0x429888)=>{const _0x15e1de=_0x21be11(_0x19fc7f);registerGlobalCacheKey(_0x15e1de,_0x378f7f),writeCacheJson(_0x15e1de,_0x429888);},'clear':_0x5f09cf=>{const _0x36e820=_0x21be11(_0x5f09cf);clearCache(_0x36e820);},'exists':_0x1a4278=>{const _0x22082c=_0x21be11(_0x1a4278);return cacheExists(_0x22082c);},'path':_0x53e1dd=>{const _0x36e25c=_0x21be11(_0x53e1dd);return getGlobalCachePath(_0x36e25c);}};}export function createOptionalProfileCache(_0x1f510b,_0x3f0a0f,_0x367eaf={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x367eaf,_0x28d389=_0x572a69=>{return _0x572a69?''+_0x1f510b+profileSeparator+_0x572a69+suffix:''+_0x1f510b+suffix;};return{'read':_0x36c0dc=>{const _0x4f3dac=_0x28d389(_0x36c0dc);return registerGlobalCacheKey(_0x4f3dac,_0x3f0a0f),readCacheJson(_0x4f3dac);},'write':(_0x49d991,_0x3299f4)=>{const _0x397271=_0x28d389(_0x3299f4);registerGlobalCacheKey(_0x397271,_0x3f0a0f),writeCacheJson(_0x397271,_0x49d991);},'clear':_0x5842e3=>{const _0x2b6786=_0x28d389(_0x5842e3);clearCache(_0x2b6786);},'exists':_0x4642c0=>{const _0x24c9d1=_0x28d389(_0x4642c0);return cacheExists(_0x24c9d1);},'path':_0x52731a=>{const _0x16d85d=_0x28d389(_0x52731a);return getGlobalCachePath(_0x16d85d);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- (function(_0x5ebed3,_0x24526e){const _0x8b667a=a174_0x6c15,_0x5822fc=_0x5ebed3();while(!![]){try{const _0x582d28=-parseInt(_0x8b667a(0xfe))/0x1*(-parseInt(_0x8b667a(0x109))/0x2)+parseInt(_0x8b667a(0x102))/0x3*(parseInt(_0x8b667a(0x113))/0x4)+parseInt(_0x8b667a(0xfc))/0x5*(parseInt(_0x8b667a(0x106))/0x6)+parseInt(_0x8b667a(0xff))/0x7+parseInt(_0x8b667a(0x10d))/0x8+parseInt(_0x8b667a(0x110))/0x9*(parseInt(_0x8b667a(0xfd))/0xa)+-parseInt(_0x8b667a(0x100))/0xb*(parseInt(_0x8b667a(0x112))/0xc);if(_0x582d28===_0x24526e)break;else _0x5822fc['push'](_0x5822fc['shift']());}catch(_0x1889f8){_0x5822fc['push'](_0x5822fc['shift']());}}}(a174_0x1f01,0x96360));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x5d5095,_0x389720){const _0x5b4ca2=a174_0x6c15;try{if(_0x389720){const _0x14df90=await readFile(_0x5d5095,'utf-8');try{return JSON[_0x5b4ca2(0x105)](_0x14df90);}catch(_0x5241f5){throw new SDKError(ErrorCode[_0x5b4ca2(0x104)],_0x5b4ca2(0xfb)+_0x5d5095+'\x27:\x20'+(_0x5241f5 instanceof Error?_0x5241f5[_0x5b4ca2(0x107)]:String(_0x5241f5)));}}else try{return JSON[_0x5b4ca2(0x105)](_0x5d5095);}catch(_0x1aa6cc){throw new SDKError(ErrorCode[_0x5b4ca2(0x104)],_0x5b4ca2(0x108)+(_0x1aa6cc instanceof Error?_0x1aa6cc['message']:String(_0x1aa6cc)));}}catch(_0x4a61b7){if(_0x4a61b7 instanceof SDKError)throw _0x4a61b7;if(_0x4a61b7 instanceof Error&&_0x5b4ca2(0x10e)in _0x4a61b7){const _0x23b26a=_0x4a61b7;if(_0x23b26a['code']===_0x5b4ca2(0x10b))throw new SDKError(ErrorCode[_0x5b4ca2(0x101)],'File\x20not\x20found:\x20'+_0x5d5095);else{if(_0x23b26a[_0x5b4ca2(0x10e)]==='EACCES')throw new SDKError(ErrorCode[_0x5b4ca2(0x10a)],_0x5b4ca2(0x10c)+_0x5d5095);}}throw new SDKError(ErrorCode[_0x5b4ca2(0x10f)],_0x5b4ca2(0x111)+(_0x4a61b7 instanceof Error?_0x4a61b7[_0x5b4ca2(0x107)]:String(_0x4a61b7)));}}function a174_0x6c15(_0x1f5c02,_0x363b8b){_0x1f5c02=_0x1f5c02-0xfb;const _0x1f0165=a174_0x1f01();let _0x6c15fb=_0x1f0165[_0x1f5c02];return _0x6c15fb;}function a174_0x1f01(){const _0x2575b5=['44mwaCsq','NOT_FOUND','36MvfgjW','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','parse','19848hgCMKi','message','Invalid\x20JSON\x20string:\x20','137002VLZSKv','PERMISSION_DENIED','ENOENT','Permission\x20denied\x20reading\x20file:\x20','5010800tyuMTY','code','INTERNAL','4568553rGcfUA','Failed\x20to\x20load\x20JSON:\x20','6688140THisbi','107572qXDgVj','Invalid\x20JSON\x20in\x20file\x20\x27','205SlXrGg','10HfoRES','7mSaCIn','5409782dZexfi'];a174_0x1f01=function(){return _0x2575b5;};return a174_0x1f01();}export async function loadJSONFromOptions(_0x20a35d,_0x224376){const _0x25e297=a174_0x6c15;if(_0x20a35d&&_0x224376)throw new SDKError(ErrorCode[_0x25e297(0x104)],_0x25e297(0x103));if(_0x20a35d)return await loadJSON(_0x20a35d,![]);if(_0x224376)return await loadJSON(_0x224376,!![]);return undefined;}
1
+ function a174_0x3a8c(_0x48dfc9,_0x54cfc3){_0x48dfc9=_0x48dfc9-0x1b2;const _0x544276=a174_0x5442();let _0x3a8ccc=_0x544276[_0x48dfc9];return _0x3a8ccc;}function a174_0x5442(){const _0x398f4b=['INTERNAL','EACCES','21uAsrmo','File\x20not\x20found:\x20','INVALID_ARGUMENT','3022EwPtTc','Permission\x20denied\x20reading\x20file:\x20','57080zrrbMY','828919PMOMVu','message','1793040YWGLOB','PERMISSION_DENIED','10TPaUzr','6394255ZyFbhr','code','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','utf-8','parse','\x27:\x20','20324043VkkCaW','ENOENT','Invalid\x20JSON\x20string:\x20','NOT_FOUND','910752NvJYsy','Invalid\x20JSON\x20in\x20file\x20\x27'];a174_0x5442=function(){return _0x398f4b;};return a174_0x5442();}(function(_0x339785,_0x43ac76){const _0x1da31c=a174_0x3a8c,_0x38dbdb=_0x339785();while(!![]){try{const _0x515763=-parseInt(_0x1da31c(0x1c9))/0x1+parseInt(_0x1da31c(0x1c6))/0x2*(-parseInt(_0x1da31c(0x1c3))/0x3)+parseInt(_0x1da31c(0x1c8))/0x4*(parseInt(_0x1da31c(0x1b4))/0x5)+-parseInt(_0x1da31c(0x1bf))/0x6+-parseInt(_0x1da31c(0x1b5))/0x7+parseInt(_0x1da31c(0x1b2))/0x8+parseInt(_0x1da31c(0x1bb))/0x9;if(_0x515763===_0x43ac76)break;else _0x38dbdb['push'](_0x38dbdb['shift']());}catch(_0x1717a1){_0x38dbdb['push'](_0x38dbdb['shift']());}}}(a174_0x5442,0x93fc0));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2cdf58,_0x1e9d85){const _0xdd7feb=a174_0x3a8c;try{if(_0x1e9d85){const _0x2959c5=await readFile(_0x2cdf58,_0xdd7feb(0x1b8));try{return JSON[_0xdd7feb(0x1b9)](_0x2959c5);}catch(_0x11a30e){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xdd7feb(0x1c0)+_0x2cdf58+_0xdd7feb(0x1ba)+(_0x11a30e instanceof Error?_0x11a30e[_0xdd7feb(0x1ca)]:String(_0x11a30e)));}}else try{return JSON[_0xdd7feb(0x1b9)](_0x2cdf58);}catch(_0x4b90c4){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xdd7feb(0x1bd)+(_0x4b90c4 instanceof Error?_0x4b90c4['message']:String(_0x4b90c4)));}}catch(_0x3036db){if(_0x3036db instanceof SDKError)throw _0x3036db;if(_0x3036db instanceof Error&&_0xdd7feb(0x1b6)in _0x3036db){const _0x3baf15=_0x3036db;if(_0x3baf15[_0xdd7feb(0x1b6)]===_0xdd7feb(0x1bc))throw new SDKError(ErrorCode[_0xdd7feb(0x1be)],_0xdd7feb(0x1c4)+_0x2cdf58);else{if(_0x3baf15[_0xdd7feb(0x1b6)]===_0xdd7feb(0x1c2))throw new SDKError(ErrorCode[_0xdd7feb(0x1b3)],_0xdd7feb(0x1c7)+_0x2cdf58);}}throw new SDKError(ErrorCode[_0xdd7feb(0x1c1)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3036db instanceof Error?_0x3036db[_0xdd7feb(0x1ca)]:String(_0x3036db)));}}export async function loadJSONFromOptions(_0xa5588a,_0x274b52){const _0xbe40d4=a174_0x3a8c;if(_0xa5588a&&_0x274b52)throw new SDKError(ErrorCode[_0xbe40d4(0x1c5)],_0xbe40d4(0x1b7));if(_0xa5588a)return await loadJSON(_0xa5588a,![]);if(_0x274b52)return await loadJSON(_0x274b52,!![]);return undefined;}
@@ -1 +1 @@
1
- const a175_0x206a82=a175_0x264f;(function(_0x33b7e8,_0x2faf17){const _0x9d7c75=a175_0x264f,_0x2d44d4=_0x33b7e8();while(!![]){try{const _0x45f648=parseInt(_0x9d7c75(0x13d))/0x1+parseInt(_0x9d7c75(0x143))/0x2*(-parseInt(_0x9d7c75(0x133))/0x3)+parseInt(_0x9d7c75(0x144))/0x4*(-parseInt(_0x9d7c75(0x13e))/0x5)+parseInt(_0x9d7c75(0x13a))/0x6+parseInt(_0x9d7c75(0x145))/0x7*(parseInt(_0x9d7c75(0x136))/0x8)+parseInt(_0x9d7c75(0x139))/0x9*(parseInt(_0x9d7c75(0x142))/0xa)+-parseInt(_0x9d7c75(0x135))/0xb;if(_0x45f648===_0x2faf17)break;else _0x2d44d4['push'](_0x2d44d4['shift']());}catch(_0x40611f){_0x2d44d4['push'](_0x2d44d4['shift']());}}}(a175_0x1f10,0x6018c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a175_0x206a82(0x146),registry=new Map();export function registerCacheKey(_0xe0703,_0x282af8){const _0x5ed3be=a175_0x206a82,_0xfbb38d=registry[_0x5ed3be(0x137)](_0xe0703);if(_0xfbb38d&&_0xfbb38d!==_0x282af8)throw new Error('Cache\x20key\x20\x22'+_0xe0703+_0x5ed3be(0x13c)+_0xfbb38d+_0x5ed3be(0x134)+_0x282af8+'\x22');registry[_0x5ed3be(0x13b)](_0xe0703,_0x282af8);}export function getCacheDir(){const _0x444428=process['cwd'](),_0x29ea1a=_0x444428===parse(_0x444428)['root']?homedir():_0x444428;return join(_0x29ea1a,LOCAL_CACHE_DIR);}export function getCachePath(_0xb0b2f){return join(getCacheDir(),_0xb0b2f);}function ensureCacheDir(){const _0xa4feca=getCacheDir();!existsSync(_0xa4feca)&&mkdirSync(_0xa4feca,{'recursive':!![]});}function a175_0x264f(_0x79055c,_0x1ec30c){_0x79055c=_0x79055c-0x133;const _0x1f1076=a175_0x1f10();let _0x264ff2=_0x1f1076[_0x79055c];return _0x264ff2;}function readCacheJson(_0x46707a){const _0x4f2314=a175_0x206a82,_0x408964=getCachePath(_0x46707a);if(!existsSync(_0x408964))return undefined;try{const _0x5dc4f3=readFileSync(_0x408964,_0x4f2314(0x138));return JSON[_0x4f2314(0x141)](_0x5dc4f3);}catch{return undefined;}}function writeCacheJson(_0x269a0b,_0x229031){const _0x5cea84=a175_0x206a82;ensureCacheDir(),writeFileSync(getCachePath(_0x269a0b),JSON['stringify'](_0x229031,null,0x2),_0x5cea84(0x138));}function readCacheText(_0x586416){const _0x2e1baf=a175_0x206a82,_0x25c1c5=getCachePath(_0x586416);if(!existsSync(_0x25c1c5))return undefined;try{return readFileSync(_0x25c1c5,_0x2e1baf(0x138));}catch{return undefined;}}function a175_0x1f10(){const _0x5de765=['\x22\x20already\x20registered\x20by\x20\x22','227776LzbIEE','320105cYeAni','clear','trim','parse','116920gAPiak','781368ZDjpFA','4gMYXEr','42nAnMXq','.cache/tdx','3HVWFDL','\x22,\x20cannot\x20register\x20for\x20\x22','6077258FvmXpI','432152DxmAPo','get','utf-8','333MBvYto','2497806QqiUiB','set'];a175_0x1f10=function(){return _0x5de765;};return a175_0x1f10();}function writeCacheText(_0xa8db5a,_0x3e5abe){ensureCacheDir(),writeFileSync(getCachePath(_0xa8db5a),_0x3e5abe,'utf-8');}function clearCache(_0x2d1d1c){const _0x2f50f2=getCachePath(_0x2d1d1c);if(existsSync(_0x2f50f2))try{unlinkSync(_0x2f50f2);}catch{}}function cacheExists(_0x114697){return existsSync(getCachePath(_0x114697));}export function createCache(_0x878b04,_0x1a622c){return registerCacheKey(_0x878b04,_0x1a622c),{'read':()=>readCacheJson(_0x878b04),'write':_0xbf000d=>writeCacheJson(_0x878b04,_0xbf000d),'clear':()=>clearCache(_0x878b04),'exists':()=>cacheExists(_0x878b04),'path':()=>getCachePath(_0x878b04)};}export function createTextCache(_0x39ecf5,_0x43fbab){const _0x1fce01=a175_0x206a82;return registerCacheKey(_0x39ecf5,_0x43fbab),{'read':()=>readCacheText(_0x39ecf5)?.[_0x1fce01(0x140)]()||undefined,'write':_0x3da128=>writeCacheText(_0x39ecf5,_0x3da128),'clear':()=>clearCache(_0x39ecf5),'exists':()=>cacheExists(_0x39ecf5),'path':()=>getCachePath(_0x39ecf5)};}export function clearRegistry(){const _0x48a35f=a175_0x206a82;registry[_0x48a35f(0x13f)]();}
1
+ (function(_0x233dfb,_0x27c748){const _0x235b5d=a175_0x279b,_0x56372f=_0x233dfb();while(!![]){try{const _0x419e9c=parseInt(_0x235b5d(0x1b3))/0x1+-parseInt(_0x235b5d(0x1b1))/0x2+-parseInt(_0x235b5d(0x1a5))/0x3+parseInt(_0x235b5d(0x1ac))/0x4+-parseInt(_0x235b5d(0x1af))/0x5*(parseInt(_0x235b5d(0x1ab))/0x6)+parseInt(_0x235b5d(0x1aa))/0x7*(-parseInt(_0x235b5d(0x1a8))/0x8)+parseInt(_0x235b5d(0x1ae))/0x9*(parseInt(_0x235b5d(0x1a7))/0xa);if(_0x419e9c===_0x27c748)break;else _0x56372f['push'](_0x56372f['shift']());}catch(_0x12d677){_0x56372f['push'](_0x56372f['shift']());}}}(a175_0x1aeb,0x27c9b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a175_0x1aeb(){const _0x501a4=['cwd','utf-8','41604CpmlQU','get','1920790pJHsNk','199736EdFVvr','Cache\x20key\x20\x22','56cusaIU','89358vWMULq','788052zyKhkB','stringify','18XOmGWG','20zJmYIZ','set','360564EATgxf','parse','35258WgZibg'];a175_0x1aeb=function(){return _0x501a4;};return a175_0x1aeb();}import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();function a175_0x279b(_0x5b9d8a,_0x1457e9){_0x5b9d8a=_0x5b9d8a-0x1a4;const _0x1aeb91=a175_0x1aeb();let _0x279b55=_0x1aeb91[_0x5b9d8a];return _0x279b55;}export function registerCacheKey(_0x219d4d,_0x23d641){const _0x350c89=a175_0x279b,_0x3333a7=registry[_0x350c89(0x1a6)](_0x219d4d);if(_0x3333a7&&_0x3333a7!==_0x23d641)throw new Error(_0x350c89(0x1a9)+_0x219d4d+'\x22\x20already\x20registered\x20by\x20\x22'+_0x3333a7+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x23d641+'\x22');registry[_0x350c89(0x1b0)](_0x219d4d,_0x23d641);}export function getCacheDir(){const _0x538075=a175_0x279b,_0x207a8c=process[_0x538075(0x1b4)](),_0x293710=_0x207a8c===parse(_0x207a8c)['root']?homedir():_0x207a8c;return join(_0x293710,LOCAL_CACHE_DIR);}export function getCachePath(_0x462543){return join(getCacheDir(),_0x462543);}function ensureCacheDir(){const _0x365f95=getCacheDir();!existsSync(_0x365f95)&&mkdirSync(_0x365f95,{'recursive':!![]});}function readCacheJson(_0x3ea81f){const _0x586b2a=a175_0x279b,_0x3a5fb7=getCachePath(_0x3ea81f);if(!existsSync(_0x3a5fb7))return undefined;try{const _0x6a852a=readFileSync(_0x3a5fb7,_0x586b2a(0x1a4));return JSON[_0x586b2a(0x1b2)](_0x6a852a);}catch{return undefined;}}function writeCacheJson(_0x2813e1,_0x52798b){const _0x2417fa=a175_0x279b;ensureCacheDir(),writeFileSync(getCachePath(_0x2813e1),JSON[_0x2417fa(0x1ad)](_0x52798b,null,0x2),_0x2417fa(0x1a4));}function readCacheText(_0x3fb55c){const _0x34167=a175_0x279b,_0x3757b1=getCachePath(_0x3fb55c);if(!existsSync(_0x3757b1))return undefined;try{return readFileSync(_0x3757b1,_0x34167(0x1a4));}catch{return undefined;}}function writeCacheText(_0x35d2c9,_0x10b4da){const _0x24058f=a175_0x279b;ensureCacheDir(),writeFileSync(getCachePath(_0x35d2c9),_0x10b4da,_0x24058f(0x1a4));}function clearCache(_0x3c8a26){const _0x1675ba=getCachePath(_0x3c8a26);if(existsSync(_0x1675ba))try{unlinkSync(_0x1675ba);}catch{}}function cacheExists(_0x17728d){return existsSync(getCachePath(_0x17728d));}export function createCache(_0x146d6d,_0x4fedff){return registerCacheKey(_0x146d6d,_0x4fedff),{'read':()=>readCacheJson(_0x146d6d),'write':_0x307833=>writeCacheJson(_0x146d6d,_0x307833),'clear':()=>clearCache(_0x146d6d),'exists':()=>cacheExists(_0x146d6d),'path':()=>getCachePath(_0x146d6d)};}export function createTextCache(_0x20f3d7,_0x2973b9){return registerCacheKey(_0x20f3d7,_0x2973b9),{'read':()=>readCacheText(_0x20f3d7)?.['trim']()||undefined,'write':_0x1ce84b=>writeCacheText(_0x20f3d7,_0x1ce84b),'clear':()=>clearCache(_0x20f3d7),'exists':()=>cacheExists(_0x20f3d7),'path':()=>getCachePath(_0x20f3d7)};}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- const a176_0x3833aa=a176_0x24f4;function a176_0x3819(){const _0x5735e2=['Chalk','496442NVIabs','format','1dUvbqX','timestamp','744541lnCNhq','colorLevel','dim','chalk','INFO','message','24oHbAkx','1055670aUNSRG','default','colors','12208170RHwJgb','1779KyaCaD','DEBUG','green','component','WARN','2508522cNvsFF','5544900vmHDaH','3532bHWLxc'];a176_0x3819=function(){return _0x5735e2;};return a176_0x3819();}(function(_0x305eff,_0x3363f6){const _0xf73994=a176_0x24f4,_0x21d32c=_0x305eff();while(!![]){try{const _0x4fdc23=-parseInt(_0xf73994(0xc2))/0x1*(parseInt(_0xf73994(0xc0))/0x2)+parseInt(_0xf73994(0xb7))/0x3*(-parseInt(_0xf73994(0xbe))/0x4)+-parseInt(_0xf73994(0xcb))/0x5+parseInt(_0xf73994(0xbc))/0x6+parseInt(_0xf73994(0xc4))/0x7*(parseInt(_0xf73994(0xca))/0x8)+-parseInt(_0xf73994(0xbd))/0x9+parseInt(_0xf73994(0xce))/0xa;if(_0x4fdc23===_0x3363f6)break;else _0x21d32c['push'](_0x21d32c['shift']());}catch(_0x5e3693){_0x21d32c['push'](_0x21d32c['shift']());}}}(a176_0x3819,0x57a07));import a176_0x27be42 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a176_0x27be42,ChalkClass=chalkModule[a176_0x3833aa(0xbf)]||chalkModule[a176_0x3833aa(0xcc)]?.[a176_0x3833aa(0xbf)];function a176_0x24f4(_0x4d0785,_0x25ea64){_0x4d0785=_0x4d0785-0xb7;const _0x3819b4=a176_0x3819();let _0x24f47b=_0x3819b4[_0x4d0785];return _0x24f47b;}export class DefaultLogFormatter{[a176_0x3833aa(0xcd)];[a176_0x3833aa(0xc7)];constructor(_0x1c3e1d={}){const _0x4bc725=a176_0x3833aa;this['colors']=_0x1c3e1d[_0x4bc725(0xcd)]??![],this[_0x4bc725(0xc7)]=_0x1c3e1d[_0x4bc725(0xcd)]&&ChalkClass?new ChalkClass({'level':0x3}):a176_0x27be42;}[a176_0x3833aa(0xc1)](_0x2518ad){const _0x55f1f8=a176_0x3833aa,_0x458168=formatTimestamp(_0x2518ad[_0x55f1f8(0xc3)]),_0x75254f=logLevelToString(_0x2518ad['level']);if(!this[_0x55f1f8(0xcd)])return _0x458168+'\x20['+_0x75254f+']\x20['+_0x2518ad[_0x55f1f8(0xba)]+']\x20'+_0x2518ad[_0x55f1f8(0xc9)];const _0x270b27=this[_0x55f1f8(0xc7)][_0x55f1f8(0xc6)](_0x458168),_0x1c194b=this[_0x55f1f8(0xc5)](_0x75254f,_0x2518ad['level']),_0x36cb0e=this[_0x55f1f8(0xc7)]['blue']('['+_0x2518ad[_0x55f1f8(0xba)]+']');return _0x270b27+'\x20'+_0x1c194b+'\x20'+_0x36cb0e+'\x20'+_0x2518ad[_0x55f1f8(0xc9)];}[a176_0x3833aa(0xc5)](_0x74645e,_0x5a59f1){const _0x49c63b=a176_0x3833aa;switch(_0x5a59f1){case LogLevel['TRACE']:return this[_0x49c63b(0xc7)]['gray']('['+_0x74645e+']');case LogLevel[_0x49c63b(0xb8)]:return this[_0x49c63b(0xc7)][_0x49c63b(0xb9)]('['+_0x74645e+']');case LogLevel[_0x49c63b(0xc8)]:return this[_0x49c63b(0xc7)]['cyan']('['+_0x74645e+']');case LogLevel[_0x49c63b(0xbb)]:return this[_0x49c63b(0xc7)]['yellow']('['+_0x74645e+']');case LogLevel['ERROR']:return this[_0x49c63b(0xc7)]['red']('['+_0x74645e+']');default:return'['+_0x74645e+']';}}}
1
+ const a176_0x5963a8=a176_0x9a72;(function(_0x4cb973,_0x5b53b6){const _0x1590f6=a176_0x9a72,_0x43309d=_0x4cb973();while(!![]){try{const _0x213881=parseInt(_0x1590f6(0x17c))/0x1*(-parseInt(_0x1590f6(0x170))/0x2)+-parseInt(_0x1590f6(0x16e))/0x3*(-parseInt(_0x1590f6(0x169))/0x4)+-parseInt(_0x1590f6(0x17f))/0x5+-parseInt(_0x1590f6(0x168))/0x6+-parseInt(_0x1590f6(0x17e))/0x7+parseInt(_0x1590f6(0x17b))/0x8+parseInt(_0x1590f6(0x175))/0x9;if(_0x213881===_0x5b53b6)break;else _0x43309d['push'](_0x43309d['shift']());}catch(_0x126e68){_0x43309d['push'](_0x43309d['shift']());}}}(a176_0x881b,0x36411));import a176_0x207ad0 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a176_0x881b(){const _0x36c103=['INFO','default','colorLevel','768808jhRqwE','83DpwOVQ','gray','770987BcilFn','887610sgYYEV','54342TKMjrU','1059620kwggrs','WARN','message','colors',']\x20[','3PjBWeh','Chalk','2006oqsuYM','yellow','green','blue','component','2170692yuwdns','level','chalk'];a176_0x881b=function(){return _0x36c103;};return a176_0x881b();}const chalkModule=a176_0x207ad0,ChalkClass=chalkModule[a176_0x5963a8(0x16f)]||chalkModule[a176_0x5963a8(0x179)]?.[a176_0x5963a8(0x16f)];function a176_0x9a72(_0x31cc04,_0x14f18d){_0x31cc04=_0x31cc04-0x168;const _0x881b6=a176_0x881b();let _0x9a7277=_0x881b6[_0x31cc04];return _0x9a7277;}export class DefaultLogFormatter{[a176_0x5963a8(0x16c)];[a176_0x5963a8(0x177)];constructor(_0x5f0f0a={}){const _0x31eab1=a176_0x5963a8;this['colors']=_0x5f0f0a[_0x31eab1(0x16c)]??![],this[_0x31eab1(0x177)]=_0x5f0f0a['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a176_0x207ad0;}['format'](_0x3d3e50){const _0x2fe797=a176_0x5963a8,_0x1c1d51=formatTimestamp(_0x3d3e50['timestamp']),_0x2694cc=logLevelToString(_0x3d3e50[_0x2fe797(0x176)]);if(!this[_0x2fe797(0x16c)])return _0x1c1d51+'\x20['+_0x2694cc+_0x2fe797(0x16d)+_0x3d3e50[_0x2fe797(0x174)]+']\x20'+_0x3d3e50[_0x2fe797(0x16b)];const _0x3207de=this[_0x2fe797(0x177)]['dim'](_0x1c1d51),_0x567320=this[_0x2fe797(0x17a)](_0x2694cc,_0x3d3e50[_0x2fe797(0x176)]),_0x6941d0=this[_0x2fe797(0x177)][_0x2fe797(0x173)]('['+_0x3d3e50[_0x2fe797(0x174)]+']');return _0x3207de+'\x20'+_0x567320+'\x20'+_0x6941d0+'\x20'+_0x3d3e50[_0x2fe797(0x16b)];}[a176_0x5963a8(0x17a)](_0x21d7c4,_0x11fd5d){const _0x1e601c=a176_0x5963a8;switch(_0x11fd5d){case LogLevel['TRACE']:return this[_0x1e601c(0x177)][_0x1e601c(0x17d)]('['+_0x21d7c4+']');case LogLevel['DEBUG']:return this[_0x1e601c(0x177)][_0x1e601c(0x172)]('['+_0x21d7c4+']');case LogLevel[_0x1e601c(0x178)]:return this[_0x1e601c(0x177)]['cyan']('['+_0x21d7c4+']');case LogLevel[_0x1e601c(0x16a)]:return this[_0x1e601c(0x177)][_0x1e601c(0x171)]('['+_0x21d7c4+']');case LogLevel['ERROR']:return this[_0x1e601c(0x177)]['red']('['+_0x21d7c4+']');default:return'['+_0x21d7c4+']';}}}
@@ -1 +1 @@
1
- function a177_0x7929(_0x1db6e3,_0x23b66c){_0x1db6e3=_0x1db6e3-0xaf;var _0x256dde=a177_0x256d();var _0x79299d=_0x256dde[_0x1db6e3];return _0x79299d;}(function(_0xb1c9,_0xa288d3){var _0x17a56e=a177_0x7929,_0x1784fe=_0xb1c9();while(!![]){try{var _0x114fe2=parseInt(_0x17a56e(0xb2))/0x1*(parseInt(_0x17a56e(0xaf))/0x2)+parseInt(_0x17a56e(0xb5))/0x3+parseInt(_0x17a56e(0xb4))/0x4*(-parseInt(_0x17a56e(0xb1))/0x5)+-parseInt(_0x17a56e(0xb0))/0x6+-parseInt(_0x17a56e(0xb6))/0x7*(parseInt(_0x17a56e(0xb8))/0x8)+-parseInt(_0x17a56e(0xb7))/0x9*(parseInt(_0x17a56e(0xb3))/0xa)+parseInt(_0x17a56e(0xb9))/0xb;if(_0x114fe2===_0xa288d3)break;else _0x1784fe['push'](_0x1784fe['shift']());}catch(_0x4db055){_0x1784fe['push'](_0x1784fe['shift']());}}}(a177_0x256d,0xc187e));export{DefaultLogFormatter}from'./default-formatter.js';function a177_0x256d(){var _0x4c9988=['4886022lOHUAK','30KkfDXa','1073801TJEOPp','133670iWIDzT','851512MepbzW','926817PkFvOZ','7iJVGFi','810oQQmeV','9225848yUoJye','42436108xAAcQU','2LKmgiI'];a177_0x256d=function(){return _0x4c9988;};return a177_0x256d();}
1
+ (function(_0x363ff8,_0x47f000){var _0xd0af89=a177_0x3c52,_0x5a4ee9=_0x363ff8();while(!![]){try{var _0x1dfd22=-parseInt(_0xd0af89(0xf9))/0x1+parseInt(_0xd0af89(0xfa))/0x2*(parseInt(_0xd0af89(0xfc))/0x3)+parseInt(_0xd0af89(0xff))/0x4*(parseInt(_0xd0af89(0xfe))/0x5)+parseInt(_0xd0af89(0x101))/0x6+-parseInt(_0xd0af89(0xfd))/0x7*(parseInt(_0xd0af89(0xfb))/0x8)+-parseInt(_0xd0af89(0x100))/0x9+parseInt(_0xd0af89(0xf8))/0xa;if(_0x1dfd22===_0x47f000)break;else _0x5a4ee9['push'](_0x5a4ee9['shift']());}catch(_0x26f25f){_0x5a4ee9['push'](_0x5a4ee9['shift']());}}}(a177_0x1c0e,0x1fb0f));function a177_0x3c52(_0x4a3ea2,_0x3b00ce){_0x4a3ea2=_0x4a3ea2-0xf8;var _0x1c0e8b=a177_0x1c0e();var _0x3c5270=_0x1c0e8b[_0x4a3ea2];return _0x3c5270;}function a177_0x1c0e(){var _0x4bdda5=['20iPljXJ','146332BNCWji','1373283XhbXOj','222234nxngRc','758970BYveuY','66587UJNwQX','300890NsxFRy','34704yBqIab','3djIQKD','98EvsfuH'];a177_0x1c0e=function(){return _0x4bdda5;};return a177_0x1c0e();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- function a178_0x5106(_0x4a1603,_0x3cbf15){_0x4a1603=_0x4a1603-0xbd;const _0x516445=a178_0x5164();let _0x5106e5=_0x516445[_0x4a1603];return _0x5106e5;}const a178_0x5b7e0f=a178_0x5106;(function(_0x12ca37,_0x949d7b){const _0x2c5c32=a178_0x5106,_0x56e107=_0x12ca37();while(!![]){try{const _0x276252=parseInt(_0x2c5c32(0xc3))/0x1+parseInt(_0x2c5c32(0xc4))/0x2*(parseInt(_0x2c5c32(0xbe))/0x3)+-parseInt(_0x2c5c32(0xc1))/0x4+-parseInt(_0x2c5c32(0xc9))/0x5+-parseInt(_0x2c5c32(0xcc))/0x6+parseInt(_0x2c5c32(0xbd))/0x7+-parseInt(_0x2c5c32(0xc6))/0x8*(-parseInt(_0x2c5c32(0xcd))/0x9);if(_0x276252===_0x949d7b)break;else _0x56e107['push'](_0x56e107['shift']());}catch(_0x5a5886){_0x56e107['push'](_0x56e107['shift']());}}}(a178_0x5164,0x5155b));import{LogLevel as a178_0x3bd96d}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];['useStderr'];[a178_0x5b7e0f(0xc5)];constructor(_0x3f9c04={}){const _0x8b0ad8=a178_0x5b7e0f;this[_0x8b0ad8(0xce)]=_0x3f9c04[_0x8b0ad8(0xce)]??a178_0x3bd96d[_0x8b0ad8(0xca)],this[_0x8b0ad8(0xc0)]=_0x3f9c04[_0x8b0ad8(0xc0)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x3f9c04[_0x8b0ad8(0xbf)]??!![]});}['handle'](_0x50b69b){const _0x4f11b9=a178_0x5b7e0f;if(_0x50b69b['level']<this[_0x4f11b9(0xce)])return;const _0x152485=this['formatter'][_0x4f11b9(0xcb)](_0x50b69b);this['useStderr']&&_0x50b69b[_0x4f11b9(0xc7)]>=a178_0x3bd96d[_0x4f11b9(0xca)]?console[_0x4f11b9(0xc2)](_0x152485):console[_0x4f11b9(0xc8)](_0x152485);}}function a178_0x5164(){const _0x25bc8a=['WARN','format','3165450svyNQL','10308321iobzsU','minLevel','122626EocISF','99633YYplSE','colors','useStderr','1518232GiOTVU','error','129501PMFfpJ','28dqZXsl','formatter','8LFqHxz','level','log','2585310HONoNA'];a178_0x5164=function(){return _0x25bc8a;};return a178_0x5164();}
1
+ const a178_0x56288e=a178_0x47fa;(function(_0x26081a,_0xee9420){const _0x3c0576=a178_0x47fa,_0x3c5470=_0x26081a();while(!![]){try{const _0x1d14f8=parseInt(_0x3c0576(0x18e))/0x1*(-parseInt(_0x3c0576(0x18a))/0x2)+parseInt(_0x3c0576(0x18d))/0x3+-parseInt(_0x3c0576(0x18c))/0x4*(-parseInt(_0x3c0576(0x18b))/0x5)+parseInt(_0x3c0576(0x192))/0x6+parseInt(_0x3c0576(0x189))/0x7+-parseInt(_0x3c0576(0x195))/0x8*(parseInt(_0x3c0576(0x191))/0x9)+parseInt(_0x3c0576(0x184))/0xa*(-parseInt(_0x3c0576(0x194))/0xb);if(_0x1d14f8===_0xee9420)break;else _0x3c5470['push'](_0x3c5470['shift']());}catch(_0x5c7b2a){_0x3c5470['push'](_0x3c5470['shift']());}}}(a178_0x3490,0x3e144));import{LogLevel as a178_0x40dd9a}from'../types.js';function a178_0x3490(){const _0x59b0df=['1101690iSodst','log','formatter','error','colors','1691130yQzjiH','48414yLsMZR','20qJQUPz','375528Pyngpx','363996XewAci','10jJkgrV','format','minLevel','2988387IAioxw','1861662ONjdFH','useStderr','22vMqXhA','8PFVnde','WARN','level'];a178_0x3490=function(){return _0x59b0df;};return a178_0x3490();}function a178_0x47fa(_0x430252,_0x311210){_0x430252=_0x430252-0x183;const _0x349085=a178_0x3490();let _0x47fa98=_0x349085[_0x430252];return _0x47fa98;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a178_0x56288e(0x190)];[a178_0x56288e(0x193)];[a178_0x56288e(0x186)];constructor(_0x247271={}){const _0x161316=a178_0x56288e;this[_0x161316(0x190)]=_0x247271[_0x161316(0x190)]??a178_0x40dd9a['WARN'],this['useStderr']=_0x247271['useStderr']??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x247271[_0x161316(0x188)]??!![]});}['handle'](_0x1a0e0f){const _0xa07c8c=a178_0x56288e;if(_0x1a0e0f['level']<this[_0xa07c8c(0x190)])return;const _0x19d310=this['formatter'][_0xa07c8c(0x18f)](_0x1a0e0f);this['useStderr']&&_0x1a0e0f[_0xa07c8c(0x183)]>=a178_0x40dd9a[_0xa07c8c(0x196)]?console[_0xa07c8c(0x187)](_0x19d310):console[_0xa07c8c(0x185)](_0x19d310);}}
@@ -1 +1 @@
1
- const a179_0x4fab6d=a179_0xd43a;(function(_0x2c5f18,_0x800981){const _0x17f039=a179_0xd43a,_0x31874d=_0x2c5f18();while(!![]){try{const _0x2fa6a1=parseInt(_0x17f039(0x155))/0x1+-parseInt(_0x17f039(0x149))/0x2+-parseInt(_0x17f039(0x151))/0x3*(-parseInt(_0x17f039(0x157))/0x4)+-parseInt(_0x17f039(0x162))/0x5*(-parseInt(_0x17f039(0x163))/0x6)+parseInt(_0x17f039(0x14a))/0x7+-parseInt(_0x17f039(0x164))/0x8+parseInt(_0x17f039(0x15d))/0x9*(-parseInt(_0x17f039(0x15e))/0xa);if(_0x2fa6a1===_0x800981)break;else _0x31874d['push'](_0x31874d['shift']());}catch(_0x5eb8f4){_0x31874d['push'](_0x31874d['shift']());}}}(a179_0xe771,0x31217));import{createWriteStream,createReadStream}from'fs';function a179_0xd43a(_0x4dcf3c,_0x45404c){_0x4dcf3c=_0x4dcf3c-0x149;const _0xe7717e=a179_0xe771();let _0xd43a24=_0xe7717e[_0x4dcf3c];return _0xd43a24;}function a179_0xe771(){const _0x5ed58a=['logDir','end','logs','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','test','92403cNjyIP','570vZLIIi','rotateOldLogs','getLogPath','handle','15tJMQNV','736122oILert','1009064whLsJj','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logStream','logPath','message','\x5c$&','replace','rotate','.log','toISOString','597342GfOqNL','2591925ERulKd','format','logBaseName','close','logFileName','Warning:\x20Error\x20writing\x20to\x20','split','560226gHfxwp','error','Warning:\x20Failed\x20to\x20compress\x20','mtime','286184GDdnBq','tdx.log','4SuezGj'];a179_0xe771=function(){return _0x5ed58a;};return a179_0xe771();}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{[a179_0x4fab6d(0x167)];[a179_0x4fab6d(0x158)];[a179_0x4fab6d(0x14e)];[a179_0x4fab6d(0x14c)];[a179_0x4fab6d(0x166)]=null;[a179_0x4fab6d(0x16b)];constructor(_0x5ed827={}){const _0x34098e=a179_0x4fab6d;this[_0x34098e(0x167)]=_0x5ed827['filePath']??join(getGlobalCacheDir(),_0x34098e(0x15a),_0x34098e(0x156)),this[_0x34098e(0x158)]=dirname(this[_0x34098e(0x167)]),this[_0x34098e(0x14e)]=basename(this['logPath']),this[_0x34098e(0x14c)]=this[_0x34098e(0x14e)][_0x34098e(0x16a)](/\.log$/,''),this[_0x34098e(0x16b)]=_0x5ed827[_0x34098e(0x16b)]??!![];}async['init'](){const _0x22a219=a179_0x4fab6d;try{await mkdir(this[_0x22a219(0x158)],{'recursive':!![]}),this['rotate']&&await this['rotateOldLogs'](),this[_0x22a219(0x166)]=createWriteStream(this[_0x22a219(0x167)],{'flags':'a'}),this['logStream']['on'](_0x22a219(0x152),_0x2d47b4=>{const _0x1574bc=_0x22a219;console[_0x1574bc(0x152)](_0x1574bc(0x14f)+this['logFileName']+':',_0x2d47b4[_0x1574bc(0x168)]);});}catch(_0x4edcd9){console[_0x22a219(0x152)](_0x22a219(0x15b),_0x4edcd9);}}[a179_0x4fab6d(0x161)](_0x1c860a){const _0x4f5326=a179_0x4fab6d;if(!this[_0x4f5326(0x166)])return;const _0x1be0f0=Logger[_0x4f5326(0x14b)](_0x1c860a);this[_0x4f5326(0x166)]['write'](_0x1be0f0+'\x0a');}async[a179_0x4fab6d(0x14d)](){return new Promise(_0x39a9fb=>{const _0x25f00f=a179_0xd43a;this[_0x25f00f(0x166)]?this[_0x25f00f(0x166)][_0x25f00f(0x159)](()=>{const _0x5a1115=_0x25f00f;this[_0x5a1115(0x166)]=null,_0x39a9fb();}):_0x39a9fb();});}[a179_0x4fab6d(0x160)](){const _0x309e16=a179_0x4fab6d;return this[_0x309e16(0x167)];}async[a179_0x4fab6d(0x15f)](){const _0x391b35=a179_0x4fab6d;try{const _0x1cd0ee=await readdir(this[_0x391b35(0x158)]),_0x3a99f6=new Date()[_0x391b35(0x16d)]()[_0x391b35(0x150)]('T')[0x0];if(_0x1cd0ee['includes'](this['logFileName'])){const _0x378a1f=join(this['logDir'],this[_0x391b35(0x14e)]),_0x55160f=await stat(_0x378a1f),_0x100289=new Date(_0x55160f[_0x391b35(0x154)])[_0x391b35(0x16d)]()[_0x391b35(0x150)]('T')[0x0];if(_0x100289<_0x3a99f6){const _0x5936b5=join(this[_0x391b35(0x158)],this['logBaseName']+'-'+_0x100289+_0x391b35(0x16c));await rename(_0x378a1f,_0x5936b5);}}const _0x15cb4a=await readdir(this['logDir']),_0x455083=this[_0x391b35(0x14c)][_0x391b35(0x16a)](/[.*+?^${}()|[\]\\]/g,_0x391b35(0x169)),_0x43bd1e=new RegExp('^'+_0x455083+_0x391b35(0x165)),_0x232ba6=_0x15cb4a['filter'](_0x105990=>_0x43bd1e[_0x391b35(0x15c)](_0x105990));for(const _0x36508b of _0x232ba6){const _0x5df2cb=join(this[_0x391b35(0x158)],_0x36508b),_0x3e28cb=join(this[_0x391b35(0x158)],_0x36508b+'.gz');try{await pipeline(createReadStream(_0x5df2cb),createGzip(),createWriteStream(_0x3e28cb)),await unlink(_0x5df2cb);}catch(_0x3c35b6){console['error'](_0x391b35(0x153)+_0x36508b+':',_0x3c35b6);}}}catch{}}}
1
+ const a179_0x3466b5=a179_0x2a56;(function(_0x15e67f,_0x42a774){const _0x3ce309=a179_0x2a56,_0x2284a7=_0x15e67f();while(!![]){try{const _0x58e833=-parseInt(_0x3ce309(0x12f))/0x1+-parseInt(_0x3ce309(0x14a))/0x2+parseInt(_0x3ce309(0x145))/0x3+parseInt(_0x3ce309(0x12e))/0x4+-parseInt(_0x3ce309(0x144))/0x5+-parseInt(_0x3ce309(0x13a))/0x6*(-parseInt(_0x3ce309(0x133))/0x7)+parseInt(_0x3ce309(0x12d))/0x8;if(_0x58e833===_0x42a774)break;else _0x2284a7['push'](_0x2284a7['shift']());}catch(_0x1d0e6a){_0x2284a7['push'](_0x2284a7['shift']());}}}(a179_0x3862,0x1c35c));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a179_0x3862(){const _0x26049e=['452360uqzHDQ','rotateOldLogs','tdx.log','rotate','init','split','872200cuVrvK','895684jZJccj','154030xhaTHm','test','logFileName','\x5c$&','546eqybKB','logs','error','getLogPath','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logPath','16104wSNWeo','includes','logBaseName','toISOString','logDir','.gz','write','logStream','Warning:\x20Error\x20writing\x20to\x20','message','923730hOtEGf','414618ANFaNF','filePath','format','filter','replace'];a179_0x3862=function(){return _0x26049e;};return a179_0x3862();}function a179_0x2a56(_0x230463,_0xf6f453){_0x230463=_0x230463-0x12a;const _0x386294=a179_0x3862();let _0x2a56e5=_0x386294[_0x230463];return _0x2a56e5;}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{[a179_0x3466b5(0x139)];[a179_0x3466b5(0x13e)];[a179_0x3466b5(0x131)];['logBaseName'];['logStream']=null;[a179_0x3466b5(0x12a)];constructor(_0x135876={}){const _0x57d878=a179_0x3466b5;this['logPath']=_0x135876[_0x57d878(0x146)]??join(getGlobalCacheDir(),_0x57d878(0x134),_0x57d878(0x14c)),this[_0x57d878(0x13e)]=dirname(this[_0x57d878(0x139)]),this['logFileName']=basename(this[_0x57d878(0x139)]),this[_0x57d878(0x13c)]=this[_0x57d878(0x131)][_0x57d878(0x149)](/\.log$/,''),this[_0x57d878(0x12a)]=_0x135876[_0x57d878(0x12a)]??!![];}async[a179_0x3466b5(0x12b)](){const _0x5b9427=a179_0x3466b5;try{await mkdir(this[_0x5b9427(0x13e)],{'recursive':!![]}),this['rotate']&&await this[_0x5b9427(0x14b)](),this[_0x5b9427(0x141)]=createWriteStream(this[_0x5b9427(0x139)],{'flags':'a'}),this[_0x5b9427(0x141)]['on'](_0x5b9427(0x135),_0x32d7cf=>{const _0xadee74=_0x5b9427;console[_0xadee74(0x135)](_0xadee74(0x142)+this[_0xadee74(0x131)]+':',_0x32d7cf[_0xadee74(0x143)]);});}catch(_0x49439d){console[_0x5b9427(0x135)](_0x5b9427(0x137),_0x49439d);}}['handle'](_0x5a1f65){const _0x200aa0=a179_0x3466b5;if(!this[_0x200aa0(0x141)])return;const _0x10de3d=Logger[_0x200aa0(0x147)](_0x5a1f65);this[_0x200aa0(0x141)][_0x200aa0(0x140)](_0x10de3d+'\x0a');}async['close'](){return new Promise(_0x3fb305=>{const _0x1a1ed5=a179_0x2a56;this['logStream']?this[_0x1a1ed5(0x141)]['end'](()=>{const _0x4da6ce=_0x1a1ed5;this[_0x4da6ce(0x141)]=null,_0x3fb305();}):_0x3fb305();});}[a179_0x3466b5(0x136)](){const _0x3e8795=a179_0x3466b5;return this[_0x3e8795(0x139)];}async['rotateOldLogs'](){const _0xb7a38f=a179_0x3466b5;try{const _0x323da8=await readdir(this[_0xb7a38f(0x13e)]),_0x3b6327=new Date()[_0xb7a38f(0x13d)]()[_0xb7a38f(0x12c)]('T')[0x0];if(_0x323da8[_0xb7a38f(0x13b)](this[_0xb7a38f(0x131)])){const _0x1b84b3=join(this[_0xb7a38f(0x13e)],this[_0xb7a38f(0x131)]),_0x4e7bb8=await stat(_0x1b84b3),_0x5e2ca8=new Date(_0x4e7bb8['mtime'])[_0xb7a38f(0x13d)]()[_0xb7a38f(0x12c)]('T')[0x0];if(_0x5e2ca8<_0x3b6327){const _0xf9197d=join(this[_0xb7a38f(0x13e)],this['logBaseName']+'-'+_0x5e2ca8+'.log');await rename(_0x1b84b3,_0xf9197d);}}const _0xd8b2f9=await readdir(this['logDir']),_0x2ebdb7=this['logBaseName'][_0xb7a38f(0x149)](/[.*+?^${}()|[\]\\]/g,_0xb7a38f(0x132)),_0x1d3549=new RegExp('^'+_0x2ebdb7+_0xb7a38f(0x138)),_0x3c9514=_0xd8b2f9[_0xb7a38f(0x148)](_0x58c745=>_0x1d3549[_0xb7a38f(0x130)](_0x58c745));for(const _0x1c57bd of _0x3c9514){const _0x5ccb71=join(this[_0xb7a38f(0x13e)],_0x1c57bd),_0x4f00f2=join(this[_0xb7a38f(0x13e)],_0x1c57bd+_0xb7a38f(0x13f));try{await pipeline(createReadStream(_0x5ccb71),createGzip(),createWriteStream(_0x4f00f2)),await unlink(_0x5ccb71);}catch(_0x3c5899){console[_0xb7a38f(0x135)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x1c57bd+':',_0x3c5899);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x4fc3a3,_0x2fdd77){var _0x39c9b9=a180_0x2f26,_0x59a820=_0x4fc3a3();while(!![]){try{var _0x5b6244=parseInt(_0x39c9b9(0x70))/0x1+parseInt(_0x39c9b9(0x72))/0x2*(parseInt(_0x39c9b9(0x75))/0x3)+-parseInt(_0x39c9b9(0x6e))/0x4+-parseInt(_0x39c9b9(0x6d))/0x5*(-parseInt(_0x39c9b9(0x76))/0x6)+-parseInt(_0x39c9b9(0x74))/0x7+parseInt(_0x39c9b9(0x6f))/0x8*(parseInt(_0x39c9b9(0x71))/0x9)+-parseInt(_0x39c9b9(0x73))/0xa;if(_0x5b6244===_0x2fdd77)break;else _0x59a820['push'](_0x59a820['shift']());}catch(_0x5a56fa){_0x59a820['push'](_0x59a820['shift']());}}}(a180_0x3e2b,0xdb710));function a180_0x3e2b(){var _0x14e099=['8180165GmIfcY','1914596EmnCfP','8hUkHMM','1631871BhCNKU','12223503PrkwDG','43020fnnjGQ','33095900QaASyN','6950930gxoUbZ','147EozfLE','6VrinzM'];a180_0x3e2b=function(){return _0x14e099;};return a180_0x3e2b();}export{FileHandler}from'./file-handler.js';function a180_0x2f26(_0x318fb9,_0x368bdc){_0x318fb9=_0x318fb9-0x6d;var _0x3e2b33=a180_0x3e2b();var _0x2f26ba=_0x3e2b33[_0x318fb9];return _0x2f26ba;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x3654e7,_0x1279ec){var _0x56af21=a180_0x7138,_0x317ea6=_0x3654e7();while(!![]){try{var _0x44ab4f=-parseInt(_0x56af21(0xe9))/0x1*(-parseInt(_0x56af21(0xed))/0x2)+parseInt(_0x56af21(0xe7))/0x3*(parseInt(_0x56af21(0xe4))/0x4)+-parseInt(_0x56af21(0xe1))/0x5*(-parseInt(_0x56af21(0xe6))/0x6)+-parseInt(_0x56af21(0xe3))/0x7*(parseInt(_0x56af21(0xea))/0x8)+parseInt(_0x56af21(0xe2))/0x9*(-parseInt(_0x56af21(0xe5))/0xa)+-parseInt(_0x56af21(0xec))/0xb*(parseInt(_0x56af21(0xeb))/0xc)+parseInt(_0x56af21(0xe8))/0xd;if(_0x44ab4f===_0x1279ec)break;else _0x317ea6['push'](_0x317ea6['shift']());}catch(_0x3a9aca){_0x317ea6['push'](_0x317ea6['shift']());}}}(a180_0x3043,0x47339));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a180_0x3043(){var _0x5c7d1f=['8057751HRySfT','2547rAQVNV','1528IeGtuM','251256iwGktp','209yZJAGJ','278piuKAw','20CGCzFi','72ddZedh','21287FYbfWI','18264djQyxg','322870imPCuA','208836kcfQqO','273UzlNFw'];a180_0x3043=function(){return _0x5c7d1f;};return a180_0x3043();}function a180_0x7138(_0x19ad19,_0x140699){_0x19ad19=_0x19ad19-0xe1;var _0x3043be=a180_0x3043();var _0x7138e8=_0x3043be[_0x19ad19];return _0x7138e8;}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a181_0x15c6b5=a181_0x27aa;(function(_0x4d75b0,_0xd060ef){var _0x4e060f=a181_0x27aa,_0x2a6455=_0x4d75b0();while(!![]){try{var _0x5699ac=parseInt(_0x4e060f(0x105))/0x1*(parseInt(_0x4e060f(0xff))/0x2)+parseInt(_0x4e060f(0x101))/0x3*(parseInt(_0x4e060f(0xfc))/0x4)+parseInt(_0x4e060f(0xfe))/0x5*(parseInt(_0x4e060f(0x106))/0x6)+-parseInt(_0x4e060f(0x102))/0x7+parseInt(_0x4e060f(0x103))/0x8+-parseInt(_0x4e060f(0xfd))/0x9*(parseInt(_0x4e060f(0x100))/0xa)+parseInt(_0x4e060f(0x104))/0xb;if(_0x5699ac===_0xd060ef)break;else _0x2a6455['push'](_0x2a6455['shift']());}catch(_0x12766f){_0x2a6455['push'](_0x2a6455['shift']());}}}(a181_0x4076,0x2c9e6));function a181_0x27aa(_0x449134,_0x4542e8){_0x449134=_0x449134-0xfb;var _0x4076f9=a181_0x4076();var _0x27aac5=_0x4076f9[_0x449134];return _0x27aac5;}function a181_0x4076(){var _0x3b87a5=['119848bbDWoZ','6922487sFFHmH','4hJzhip','7458CHJLhL','handle','708mQXoDr','555183XUCGHq','70fPORjK','7958ZsObuw','50qPcgFM','51OCkaNm','1326024QDffBH'];a181_0x4076=function(){return _0x3b87a5;};return a181_0x4076();}export class NullHandler{[a181_0x15c6b5(0xfb)](_0x28cb3e){}}
1
+ var a181_0x30ad87=a181_0x1e04;(function(_0x38c6fc,_0x44d071){var _0x48e96c=a181_0x1e04,_0x3aed59=_0x38c6fc();while(!![]){try{var _0x3c41ea=parseInt(_0x48e96c(0x1d5))/0x1+parseInt(_0x48e96c(0x1da))/0x2*(-parseInt(_0x48e96c(0x1d9))/0x3)+parseInt(_0x48e96c(0x1d8))/0x4*(parseInt(_0x48e96c(0x1d2))/0x5)+-parseInt(_0x48e96c(0x1d6))/0x6*(-parseInt(_0x48e96c(0x1d7))/0x7)+parseInt(_0x48e96c(0x1d3))/0x8+-parseInt(_0x48e96c(0x1d0))/0x9+parseInt(_0x48e96c(0x1d4))/0xa*(parseInt(_0x48e96c(0x1d1))/0xb);if(_0x3c41ea===_0x44d071)break;else _0x3aed59['push'](_0x3aed59['shift']());}catch(_0x3c896e){_0x3aed59['push'](_0x3aed59['shift']());}}}(a181_0x5ed0,0xb67e4));export class NullHandler{[a181_0x30ad87(0x1cf)](_0x40edd5){}}function a181_0x1e04(_0x53acb1,_0x52ebb6){_0x53acb1=_0x53acb1-0x1cf;var _0x5ed0bb=a181_0x5ed0();var _0x1e0477=_0x5ed0bb[_0x53acb1];return _0x1e0477;}function a181_0x5ed0(){var _0x2723f=['12563757TpfwGK','860530YVaTMY','90JTNVUk','9176472Keaqeb','70vNpzzb','572889JWtQSC','31116PaMKcq','595jcSwia','194692ggutFW','513kxtmjX','16854zufPcT','handle'];a181_0x5ed0=function(){return _0x2723f;};return a181_0x5ed0();}
@@ -1 +1 @@
1
- (function(_0x4a7e60,_0x46b7a3){var _0x303d52=a182_0x30bb,_0x15b8a6=_0x4a7e60();while(!![]){try{var _0x26338a=-parseInt(_0x303d52(0xb3))/0x1+-parseInt(_0x303d52(0xae))/0x2+-parseInt(_0x303d52(0xad))/0x3+-parseInt(_0x303d52(0xb4))/0x4+-parseInt(_0x303d52(0xb0))/0x5*(-parseInt(_0x303d52(0xb2))/0x6)+parseInt(_0x303d52(0xaf))/0x7+-parseInt(_0x303d52(0xb1))/0x8;if(_0x26338a===_0x46b7a3)break;else _0x15b8a6['push'](_0x15b8a6['shift']());}catch(_0x29d020){_0x15b8a6['push'](_0x15b8a6['shift']());}}}(a182_0x5a6a,0xad2d0));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a182_0x30bb(_0x400f50,_0x23e442){_0x400f50=_0x400f50-0xad;var _0x5a6aae=a182_0x5a6a();var _0x30bb64=_0x5a6aae[_0x400f50];return _0x30bb64;}export{DefaultLogFormatter}from'./formatters/index.js';function a182_0x5a6a(){var _0x10b36c=['1568380wkBGcG','500052LuUCGd','1122784ZoSYIS','6753621QvoRml','4945JcRTsM','622600IDxyWM','7794NFqCGb','342190dFTEUq'];a182_0x5a6a=function(){return _0x10b36c;};return a182_0x5a6a();}
1
+ (function(_0x3eab60,_0x21f130){var _0xc1f1db=a182_0x49d5,_0x351379=_0x3eab60();while(!![]){try{var _0x24cbfe=parseInt(_0xc1f1db(0x133))/0x1*(-parseInt(_0xc1f1db(0x130))/0x2)+-parseInt(_0xc1f1db(0x12e))/0x3+parseInt(_0xc1f1db(0x136))/0x4*(parseInt(_0xc1f1db(0x12f))/0x5)+-parseInt(_0xc1f1db(0x131))/0x6+parseInt(_0xc1f1db(0x132))/0x7*(-parseInt(_0xc1f1db(0x135))/0x8)+parseInt(_0xc1f1db(0x139))/0x9*(parseInt(_0xc1f1db(0x134))/0xa)+parseInt(_0xc1f1db(0x137))/0xb*(parseInt(_0xc1f1db(0x138))/0xc);if(_0x24cbfe===_0x21f130)break;else _0x351379['push'](_0x351379['shift']());}catch(_0x40bde4){_0x351379['push'](_0x351379['shift']());}}}(a182_0x539c,0x749d1));export{Logger}from'./logger.js';function a182_0x49d5(_0x45c333,_0x145b06){_0x45c333=_0x45c333-0x12e;var _0x539c8d=a182_0x539c();var _0x49d5b7=_0x539c8d[_0x45c333];return _0x49d5b7;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a182_0x539c(){var _0x5a88f4=['715885GOiCiW','3858HxVaBL','3887946HAgJyT','28amxxmX','71slSbpR','29150iveabv','699248BxYPor','4wHDcim','4521NnZEYZ','65592pEDjqs','153hIBHUP','2481105tLJgPA'];a182_0x539c=function(){return _0x5a88f4;};return a182_0x539c();}
@@ -1 +1 @@
1
- function a183_0x4493(){const _0x10fc6b=['addHandler','1262374Qhvmux','3677681VKXPJF','get','pendingRecords','component','message',']\x20[','slice','join','error','trace','cause','WARN','length','stack','defaultLevel','1477064OEhtgh','toISOString','entries','26539947dTmywk','7181772NLSFsF','map','formatter','shutdown','init','function','4392285lUykVe','setDefaultLevel','dispatch','push','8ELLQGu','stringify','log','getFormatter','name','has','clear','733853gKvBUN','level','set','levelOverrides','INFO','handlers','ERROR','reset','loggers','timestamp','close','3RFJMJj','DEBUG','isInitialized','getEffectiveLevel','TRACE','setLogLevel','debug','shouldLog','string','initialized'];a183_0x4493=function(){return _0x10fc6b;};return a183_0x4493();}const a183_0x15f37d=a183_0xfc3a;function a183_0xfc3a(_0x4694c1,_0x40e504){_0x4694c1=_0x4694c1-0xfd;const _0x449368=a183_0x4493();let _0xfc3a30=_0x449368[_0x4694c1];return _0xfc3a30;}(function(_0x5a30a2,_0x5ef402){const _0x15458d=a183_0xfc3a,_0x7f213e=_0x5a30a2();while(!![]){try{const _0x1d2892=parseInt(_0x15458d(0x104))/0x1+parseInt(_0x15458d(0x11a))/0x2*(parseInt(_0x15458d(0x10f))/0x3)+-parseInt(_0x15458d(0x12a))/0x4+parseInt(_0x15458d(0x134))/0x5+parseInt(_0x15458d(0x12e))/0x6+parseInt(_0x15458d(0x11b))/0x7*(parseInt(_0x15458d(0xfd))/0x8)+-parseInt(_0x15458d(0x12d))/0x9;if(_0x1d2892===_0x5ef402)break;else _0x7f213e['push'](_0x7f213e['shift']());}catch(_0x4a1c91){_0x7f213e['push'](_0x7f213e['shift']());}}}(a183_0x4493,0x9e20d));import{LogLevel as a183_0x596e5f,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a183_0x596e5f[a183_0x15f37d(0x108)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x13ab23){const _0x33c64c=a183_0x15f37d;if(typeof _0x13ab23===_0x33c64c(0x117))return _0x13ab23;if(_0x13ab23 instanceof Error)return _0x13ab23['stack']||_0x13ab23[_0x33c64c(0x101)]+':\x20'+_0x13ab23[_0x33c64c(0x11f)];try{return JSON[_0x33c64c(0xfe)](_0x13ab23,(_0x8398ad,_0x129aa3)=>{const _0x29aecd=_0x33c64c;if(_0x129aa3 instanceof Error)return{'name':_0x129aa3[_0x29aecd(0x101)],'message':_0x129aa3[_0x29aecd(0x11f)],'stack':_0x129aa3[_0x29aecd(0x128)],'cause':_0x129aa3[_0x29aecd(0x125)]};return _0x129aa3;});}catch{return String(_0x13ab23);}}export class Logger{[a183_0x15f37d(0x11e)];constructor(_0x44ba1d){this['component']=_0x44ba1d;}static['of'](_0x19abcc){const _0x399de0=a183_0x15f37d,_0x783e45=typeof _0x19abcc===_0x399de0(0x117)?_0x19abcc:_0x19abcc['name'];let _0x110f91=state[_0x399de0(0x10c)][_0x399de0(0x11c)](_0x783e45);return!_0x110f91&&(_0x110f91=new Logger(_0x783e45),state[_0x399de0(0x10c)][_0x399de0(0x106)](_0x783e45,_0x110f91)),_0x110f91;}static async[a183_0x15f37d(0x132)](_0x558802={}){const _0x375dd1=a183_0x15f37d;state['defaultLevel']=_0x558802[_0x375dd1(0x129)]??a183_0x596e5f['INFO'],state[_0x375dd1(0x109)]=_0x558802[_0x375dd1(0x109)]??[],state[_0x375dd1(0x130)]=_0x558802[_0x375dd1(0x130)]??null,state[_0x375dd1(0x107)]['clear']();if(_0x558802[_0x375dd1(0x107)])for(const [_0x2b8814,_0x1bffc4]of Object[_0x375dd1(0x12c)](_0x558802['levelOverrides'])){state[_0x375dd1(0x107)][_0x375dd1(0x106)](_0x2b8814,_0x1bffc4);}for(const _0x4745e6 of state['handlers']){_0x4745e6[_0x375dd1(0x132)]&&await _0x4745e6[_0x375dd1(0x132)]();}state[_0x375dd1(0x118)]=!![];for(const _0x23dd9b of state[_0x375dd1(0x11d)]){Logger['dispatch'](_0x23dd9b);}state[_0x375dd1(0x11d)]=[];}static[a183_0x15f37d(0x114)](_0x2ca45e,_0x19a232){const _0x4be7ad=a183_0x15f37d;state[_0x4be7ad(0x107)][_0x4be7ad(0x106)](_0x2ca45e,_0x19a232);}static[a183_0x15f37d(0x135)](_0x2919df){const _0x14a3ba=a183_0x15f37d;state[_0x14a3ba(0x129)]=_0x2919df;}static[a183_0x15f37d(0x119)](_0x42ca98){const _0x15afa6=a183_0x15f37d;state[_0x15afa6(0x109)][_0x15afa6(0x137)](_0x42ca98),state[_0x15afa6(0x118)]&&_0x42ca98[_0x15afa6(0x132)]&&_0x42ca98[_0x15afa6(0x132)]();}static['clearHandlers'](){state['handlers']=[];}static async[a183_0x15f37d(0x131)](){const _0x4bcf5b=a183_0x15f37d;for(const _0x30ef4f of state[_0x4bcf5b(0x109)]){_0x30ef4f['close']&&await _0x30ef4f[_0x4bcf5b(0x10e)]();}state['handlers']=[],state[_0x4bcf5b(0x118)]=![],state[_0x4bcf5b(0x10c)][_0x4bcf5b(0x103)](),state['pendingRecords']=[];}static[a183_0x15f37d(0x10b)](){const _0x14e027=a183_0x15f37d;state[_0x14e027(0x118)]=![],state[_0x14e027(0x129)]=a183_0x596e5f[_0x14e027(0x108)],state[_0x14e027(0x107)][_0x14e027(0x103)](),state['handlers']=[],state['formatter']=null,state[_0x14e027(0x10c)][_0x14e027(0x103)](),state[_0x14e027(0x11d)]=[];}static[a183_0x15f37d(0x111)](){const _0xd5952b=a183_0x15f37d;return state[_0xd5952b(0x118)];}static[a183_0x15f37d(0x112)](_0x24f4fe){const _0x3798e9=a183_0x15f37d;if(state['levelOverrides'][_0x3798e9(0x102)](_0x24f4fe))return state['levelOverrides'][_0x3798e9(0x11c)](_0x24f4fe);const _0x5f3ff7=_0x24f4fe['split']('.');for(let _0x3f236e=_0x5f3ff7[_0x3798e9(0x127)]-0x1;_0x3f236e>0x0;_0x3f236e--){const _0x3b3517=_0x5f3ff7[_0x3798e9(0x121)](0x0,_0x3f236e)[_0x3798e9(0x122)]('.');if(state['levelOverrides']['has'](_0x3b3517))return state[_0x3798e9(0x107)]['get'](_0x3b3517);}return state[_0x3798e9(0x129)];}[a183_0x15f37d(0x116)](_0x20b67f){const _0x436613=a183_0x15f37d,_0x13ed63=Logger['getEffectiveLevel'](this[_0x436613(0x11e)]);return _0x20b67f>=_0x13ed63;}static[a183_0x15f37d(0x136)](_0x340e45){const _0x430bcf=a183_0x15f37d;for(const _0x49e4cb of state[_0x430bcf(0x109)]){_0x49e4cb['handle'](_0x340e45);}}[a183_0x15f37d(0xff)](_0x560baa,_0x48069f){const _0x2be227=a183_0x15f37d;if(!this[_0x2be227(0x116)](_0x560baa))return;const _0x42b5cd=_0x48069f[_0x2be227(0x12f)](_0x142f28=>typeof _0x142f28===_0x2be227(0x133)?_0x142f28():_0x142f28),_0x33b49b=_0x42b5cd['map'](safeStringify)[_0x2be227(0x122)]('\x20'),_0x857817={'timestamp':new Date(),'level':_0x560baa,'component':this['component'],'message':_0x33b49b};if(!state[_0x2be227(0x118)]){state[_0x2be227(0x11d)][_0x2be227(0x127)]<MAX_PENDING_RECORDS&&state[_0x2be227(0x11d)][_0x2be227(0x137)](_0x857817);return;}Logger[_0x2be227(0x136)](_0x857817);}[a183_0x15f37d(0x124)](..._0x1d50ba){const _0x575c8b=a183_0x15f37d;this[_0x575c8b(0xff)](a183_0x596e5f[_0x575c8b(0x113)],_0x1d50ba);}[a183_0x15f37d(0x115)](..._0x12b304){const _0x322eb5=a183_0x15f37d;this['log'](a183_0x596e5f[_0x322eb5(0x110)],_0x12b304);}['info'](..._0x20b68f){const _0x303d2d=a183_0x15f37d;this[_0x303d2d(0xff)](a183_0x596e5f['INFO'],_0x20b68f);}['warn'](..._0x46fa96){const _0x234c63=a183_0x15f37d;this[_0x234c63(0xff)](a183_0x596e5f[_0x234c63(0x126)],_0x46fa96);}[a183_0x15f37d(0x123)](..._0x3f082f){const _0x29be42=a183_0x15f37d;this[_0x29be42(0xff)](a183_0x596e5f[_0x29be42(0x10a)],_0x3f082f);}static[a183_0x15f37d(0x100)](){const _0x288ccf=a183_0x15f37d;return state[_0x288ccf(0x130)];}static['format'](_0x2b448c){const _0x3d7ad7=a183_0x15f37d;if(state[_0x3d7ad7(0x130)])return state[_0x3d7ad7(0x130)]['format'](_0x2b448c);return _0x2b448c[_0x3d7ad7(0x10d)][_0x3d7ad7(0x12b)]()+'\x20['+logLevelToString(_0x2b448c[_0x3d7ad7(0x105)])+_0x3d7ad7(0x120)+_0x2b448c[_0x3d7ad7(0x11e)]+']\x20'+_0x2b448c[_0x3d7ad7(0x11f)];}}
1
+ const a183_0x5de39b=a183_0x1e20;(function(_0x4963f3,_0x4e866f){const _0x5adc10=a183_0x1e20,_0x201aed=_0x4963f3();while(!![]){try{const _0x957a30=parseInt(_0x5adc10(0x1dc))/0x1*(-parseInt(_0x5adc10(0x1bd))/0x2)+-parseInt(_0x5adc10(0x1e0))/0x3*(parseInt(_0x5adc10(0x1c5))/0x4)+parseInt(_0x5adc10(0x1c2))/0x5*(parseInt(_0x5adc10(0x1ba))/0x6)+-parseInt(_0x5adc10(0x1b2))/0x7+parseInt(_0x5adc10(0x1c7))/0x8*(parseInt(_0x5adc10(0x1b5))/0x9)+parseInt(_0x5adc10(0x1db))/0xa+parseInt(_0x5adc10(0x1d2))/0xb;if(_0x957a30===_0x4e866f)break;else _0x201aed['push'](_0x201aed['shift']());}catch(_0x3163c){_0x201aed['push'](_0x201aed['shift']());}}}(a183_0x2421,0x241e7));import{LogLevel as a183_0xf296a2,logLevelToString}from'./types.js';function a183_0x2421(){const _0x29e229=['DEBUG','warn','close','log','entries','shouldLog','name','getEffectiveLevel','push','getFormatter','level','1045478RCUNLZ','set','stack','18ihcSUJ','map','format','INFO','reset','18hAEUzZ','formatter','loggers','22504Oomjxo','split','debug','handlers','stringify','124660XPejwp','addHandler','TRACE','42236LrBRSc','dispatch','780424XzfynR','pendingRecords','get','defaultLevel','function','initialized','clear','isInitialized','cause','levelOverrides',']\x20[','796653mINDkv','component','string','message','ERROR','timestamp','has','join','WARN','1928140AVRBJj','8lvtqgK','trace','length','init','42rXgJtw','clearHandlers'];a183_0x2421=function(){return _0x29e229;};return a183_0x2421();}function a183_0x1e20(_0x4d48ba,_0x39bcd0){_0x4d48ba=_0x4d48ba-0x1af;const _0x24216e=a183_0x2421();let _0x1e20d4=_0x24216e[_0x4d48ba];return _0x1e20d4;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a183_0xf296a2[a183_0x5de39b(0x1b8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x547cc2){const _0x5bd80a=a183_0x5de39b;if(typeof _0x547cc2===_0x5bd80a(0x1d4))return _0x547cc2;if(_0x547cc2 instanceof Error)return _0x547cc2[_0x5bd80a(0x1b4)]||_0x547cc2[_0x5bd80a(0x1e8)]+':\x20'+_0x547cc2[_0x5bd80a(0x1d5)];try{return JSON[_0x5bd80a(0x1c1)](_0x547cc2,(_0x374f6a,_0x3fa3da)=>{const _0xbdaa22=_0x5bd80a;if(_0x3fa3da instanceof Error)return{'name':_0x3fa3da[_0xbdaa22(0x1e8)],'message':_0x3fa3da[_0xbdaa22(0x1d5)],'stack':_0x3fa3da[_0xbdaa22(0x1b4)],'cause':_0x3fa3da[_0xbdaa22(0x1cf)]};return _0x3fa3da;});}catch{return String(_0x547cc2);}}export class Logger{[a183_0x5de39b(0x1d3)];constructor(_0x2dcbee){const _0x2e50c9=a183_0x5de39b;this[_0x2e50c9(0x1d3)]=_0x2dcbee;}static['of'](_0x2b111c){const _0x5a7ec0=a183_0x5de39b,_0x4ce9c3=typeof _0x2b111c===_0x5a7ec0(0x1d4)?_0x2b111c:_0x2b111c['name'];let _0x4bd26f=state[_0x5a7ec0(0x1bc)][_0x5a7ec0(0x1c9)](_0x4ce9c3);return!_0x4bd26f&&(_0x4bd26f=new Logger(_0x4ce9c3),state[_0x5a7ec0(0x1bc)][_0x5a7ec0(0x1b3)](_0x4ce9c3,_0x4bd26f)),_0x4bd26f;}static async[a183_0x5de39b(0x1df)](_0x3e8954={}){const _0x4a40db=a183_0x5de39b;state[_0x4a40db(0x1ca)]=_0x3e8954[_0x4a40db(0x1ca)]??a183_0xf296a2['INFO'],state[_0x4a40db(0x1c0)]=_0x3e8954[_0x4a40db(0x1c0)]??[],state['formatter']=_0x3e8954[_0x4a40db(0x1bb)]??null,state['levelOverrides'][_0x4a40db(0x1cd)]();if(_0x3e8954[_0x4a40db(0x1d0)])for(const [_0xa65a41,_0x474187]of Object[_0x4a40db(0x1e6)](_0x3e8954[_0x4a40db(0x1d0)])){state[_0x4a40db(0x1d0)][_0x4a40db(0x1b3)](_0xa65a41,_0x474187);}for(const _0x50d985 of state[_0x4a40db(0x1c0)]){_0x50d985[_0x4a40db(0x1df)]&&await _0x50d985[_0x4a40db(0x1df)]();}state[_0x4a40db(0x1cc)]=!![];for(const _0x2ba2a8 of state['pendingRecords']){Logger['dispatch'](_0x2ba2a8);}state[_0x4a40db(0x1c8)]=[];}static['setLogLevel'](_0x15b9ff,_0x2a9bdf){const _0x472b39=a183_0x5de39b;state[_0x472b39(0x1d0)]['set'](_0x15b9ff,_0x2a9bdf);}static['setDefaultLevel'](_0x23965b){const _0x4fba21=a183_0x5de39b;state[_0x4fba21(0x1ca)]=_0x23965b;}static[a183_0x5de39b(0x1c3)](_0x5b1ecd){const _0xab17a0=a183_0x5de39b;state['handlers']['push'](_0x5b1ecd),state['initialized']&&_0x5b1ecd[_0xab17a0(0x1df)]&&_0x5b1ecd[_0xab17a0(0x1df)]();}static[a183_0x5de39b(0x1e1)](){const _0x22769b=a183_0x5de39b;state[_0x22769b(0x1c0)]=[];}static async['shutdown'](){const _0x11d060=a183_0x5de39b;for(const _0x524332 of state[_0x11d060(0x1c0)]){_0x524332[_0x11d060(0x1e4)]&&await _0x524332[_0x11d060(0x1e4)]();}state['handlers']=[],state[_0x11d060(0x1cc)]=![],state[_0x11d060(0x1bc)][_0x11d060(0x1cd)](),state[_0x11d060(0x1c8)]=[];}static[a183_0x5de39b(0x1b9)](){const _0x488653=a183_0x5de39b;state['initialized']=![],state[_0x488653(0x1ca)]=a183_0xf296a2[_0x488653(0x1b8)],state[_0x488653(0x1d0)][_0x488653(0x1cd)](),state[_0x488653(0x1c0)]=[],state[_0x488653(0x1bb)]=null,state[_0x488653(0x1bc)][_0x488653(0x1cd)](),state[_0x488653(0x1c8)]=[];}static[a183_0x5de39b(0x1ce)](){const _0x50478f=a183_0x5de39b;return state[_0x50478f(0x1cc)];}static[a183_0x5de39b(0x1e9)](_0x562698){const _0xe70c8a=a183_0x5de39b;if(state['levelOverrides'][_0xe70c8a(0x1d8)](_0x562698))return state[_0xe70c8a(0x1d0)][_0xe70c8a(0x1c9)](_0x562698);const _0x321474=_0x562698[_0xe70c8a(0x1be)]('.');for(let _0x49336b=_0x321474[_0xe70c8a(0x1de)]-0x1;_0x49336b>0x0;_0x49336b--){const _0x325b17=_0x321474['slice'](0x0,_0x49336b)['join']('.');if(state['levelOverrides']['has'](_0x325b17))return state[_0xe70c8a(0x1d0)][_0xe70c8a(0x1c9)](_0x325b17);}return state['defaultLevel'];}[a183_0x5de39b(0x1e7)](_0x44c72a){const _0x1ccd15=a183_0x5de39b,_0x19132c=Logger['getEffectiveLevel'](this[_0x1ccd15(0x1d3)]);return _0x44c72a>=_0x19132c;}static[a183_0x5de39b(0x1c6)](_0x326729){const _0x1012f5=a183_0x5de39b;for(const _0x21a469 of state[_0x1012f5(0x1c0)]){_0x21a469['handle'](_0x326729);}}[a183_0x5de39b(0x1e5)](_0x51e4e4,_0x550b47){const _0x29d3eb=a183_0x5de39b;if(!this[_0x29d3eb(0x1e7)](_0x51e4e4))return;const _0x198638=_0x550b47[_0x29d3eb(0x1b6)](_0x213b6d=>typeof _0x213b6d===_0x29d3eb(0x1cb)?_0x213b6d():_0x213b6d),_0x347290=_0x198638['map'](safeStringify)[_0x29d3eb(0x1d9)]('\x20'),_0x47d248={'timestamp':new Date(),'level':_0x51e4e4,'component':this['component'],'message':_0x347290};if(!state[_0x29d3eb(0x1cc)]){state['pendingRecords'][_0x29d3eb(0x1de)]<MAX_PENDING_RECORDS&&state[_0x29d3eb(0x1c8)][_0x29d3eb(0x1af)](_0x47d248);return;}Logger[_0x29d3eb(0x1c6)](_0x47d248);}[a183_0x5de39b(0x1dd)](..._0x12a2e8){const _0x365be3=a183_0x5de39b;this[_0x365be3(0x1e5)](a183_0xf296a2[_0x365be3(0x1c4)],_0x12a2e8);}[a183_0x5de39b(0x1bf)](..._0x3fe0ca){const _0x223ad8=a183_0x5de39b;this[_0x223ad8(0x1e5)](a183_0xf296a2[_0x223ad8(0x1e2)],_0x3fe0ca);}['info'](..._0x247f1f){const _0x2f47c9=a183_0x5de39b;this[_0x2f47c9(0x1e5)](a183_0xf296a2['INFO'],_0x247f1f);}[a183_0x5de39b(0x1e3)](..._0x37c606){const _0x14c24d=a183_0x5de39b;this[_0x14c24d(0x1e5)](a183_0xf296a2[_0x14c24d(0x1da)],_0x37c606);}['error'](..._0xf43bdc){const _0x4be69f=a183_0x5de39b;this[_0x4be69f(0x1e5)](a183_0xf296a2[_0x4be69f(0x1d6)],_0xf43bdc);}static[a183_0x5de39b(0x1b0)](){return state['formatter'];}static[a183_0x5de39b(0x1b7)](_0x4fdd2d){const _0xf56364=a183_0x5de39b;if(state[_0xf56364(0x1bb)])return state[_0xf56364(0x1bb)]['format'](_0x4fdd2d);return _0x4fdd2d[_0xf56364(0x1d7)]['toISOString']()+'\x20['+logLevelToString(_0x4fdd2d[_0xf56364(0x1b1)])+_0xf56364(0x1d1)+_0x4fdd2d[_0xf56364(0x1d3)]+']\x20'+_0x4fdd2d['message'];}}
@@ -1 +1 @@
1
- (function(_0x3cc3cb,_0x4bca38){const _0xe1d3a8=a184_0x5613,_0x5de47e=_0x3cc3cb();while(!![]){try{const _0x358c72=-parseInt(_0xe1d3a8(0x14b))/0x1*(parseInt(_0xe1d3a8(0x14c))/0x2)+-parseInt(_0xe1d3a8(0x14f))/0x3+parseInt(_0xe1d3a8(0x14d))/0x4+parseInt(_0xe1d3a8(0x14a))/0x5+-parseInt(_0xe1d3a8(0x137))/0x6*(parseInt(_0xe1d3a8(0x145))/0x7)+parseInt(_0xe1d3a8(0x147))/0x8*(parseInt(_0xe1d3a8(0x138))/0x9)+parseInt(_0xe1d3a8(0x13c))/0xa*(parseInt(_0xe1d3a8(0x150))/0xb);if(_0x358c72===_0x4bca38)break;else _0x5de47e['push'](_0x5de47e['shift']());}catch(_0x2ecf25){_0x5de47e['push'](_0x5de47e['shift']());}}}(a184_0x852d,0xd5edd));export var LogLevel;(function(_0x117bef){const _0x48a897=a184_0x5613;_0x117bef[_0x117bef[_0x48a897(0x14e)]=-0x2]=_0x48a897(0x14e),_0x117bef[_0x117bef[_0x48a897(0x140)]=-0x1]=_0x48a897(0x140),_0x117bef[_0x117bef[_0x48a897(0x134)]=0x0]='INFO',_0x117bef[_0x117bef[_0x48a897(0x146)]=0x1]=_0x48a897(0x146),_0x117bef[_0x117bef[_0x48a897(0x141)]=0x2]=_0x48a897(0x141);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x1e45d7){const _0x581793=a184_0x5613;switch(_0x1e45d7[_0x581793(0x143)]()){case _0x581793(0x14e):return LogLevel['TRACE'];case _0x581793(0x140):return LogLevel[_0x581793(0x140)];case'INFO':return LogLevel[_0x581793(0x134)];case _0x581793(0x146):case'WARNING':return LogLevel[_0x581793(0x146)];case _0x581793(0x141):return LogLevel[_0x581793(0x141)];default:return LogLevel[_0x581793(0x134)];}}function a184_0x852d(){const _0x17c39a=['TRACE','3545505rfZtAt','19337197mqmETe','abs','error','INFO','info','debug','6lEuPgF','18NUlbBE','getTimezoneOffset','toString','getMilliseconds','10cfPfCH','padStart','trace','getMinutes','DEBUG','ERROR','warn','toUpperCase','getMonth','3688531LVclOP','WARN','4372664avLCMm','getSeconds','getDate','1128445zGlthQ','142lsMxUN','15154jtwIdH','2336692XjNxNB'];a184_0x852d=function(){return _0x17c39a;};return a184_0x852d();}export function logLevelToString(_0x52a520){const _0x5562a7=a184_0x5613;switch(_0x52a520){case LogLevel[_0x5562a7(0x14e)]:return _0x5562a7(0x13e);case LogLevel[_0x5562a7(0x140)]:return _0x5562a7(0x136);case LogLevel[_0x5562a7(0x134)]:return _0x5562a7(0x135);case LogLevel[_0x5562a7(0x146)]:return _0x5562a7(0x142);case LogLevel[_0x5562a7(0x141)]:return _0x5562a7(0x133);default:return _0x5562a7(0x135);}}function a184_0x5613(_0x35db7a,_0x38b3b8){_0x35db7a=_0x35db7a-0x132;const _0x852dbd=a184_0x852d();let _0x5613a2=_0x852dbd[_0x35db7a];return _0x5613a2;}export function formatTimestamp(_0x223d6b){const _0x112825=a184_0x5613,_0x4f2876=_0x223d6b['getFullYear'](),_0x2a8a20=(_0x223d6b[_0x112825(0x144)]()+0x1)[_0x112825(0x13a)]()[_0x112825(0x13d)](0x2,'0'),_0x373dcf=_0x223d6b[_0x112825(0x149)]()[_0x112825(0x13a)]()[_0x112825(0x13d)](0x2,'0'),_0x251754=_0x223d6b['getHours']()[_0x112825(0x13a)]()['padStart'](0x2,'0'),_0x5c8b32=_0x223d6b[_0x112825(0x13f)]()[_0x112825(0x13a)]()[_0x112825(0x13d)](0x2,'0'),_0x41dbf3=_0x223d6b[_0x112825(0x148)]()[_0x112825(0x13a)]()[_0x112825(0x13d)](0x2,'0'),_0x519768=_0x223d6b[_0x112825(0x13b)]()[_0x112825(0x13a)]()['padStart'](0x3,'0'),_0x4a11bb=-_0x223d6b[_0x112825(0x139)](),_0x56fc41=Math['floor'](Math[_0x112825(0x132)](_0x4a11bb)/0x3c),_0x193d1e=Math[_0x112825(0x132)](_0x4a11bb)%0x3c,_0x44774d=_0x4a11bb>=0x0?'+':'-',_0x4862f3=''+_0x44774d+_0x56fc41['toString']()[_0x112825(0x13d)](0x2,'0')+_0x193d1e['toString']()[_0x112825(0x13d)](0x2,'0');return _0x4f2876+'-'+_0x2a8a20+'-'+_0x373dcf+'\x20'+_0x251754+':'+_0x5c8b32+':'+_0x41dbf3+'.'+_0x519768+_0x4862f3;}
1
+ (function(_0x27416b,_0x2c44ed){const _0x3c8541=a184_0x14de,_0x4bb825=_0x27416b();while(!![]){try{const _0x33a0f9=-parseInt(_0x3c8541(0x111))/0x1+parseInt(_0x3c8541(0x11b))/0x2*(-parseInt(_0x3c8541(0x121))/0x3)+-parseInt(_0x3c8541(0x119))/0x4*(parseInt(_0x3c8541(0x10a))/0x5)+-parseInt(_0x3c8541(0x120))/0x6*(parseInt(_0x3c8541(0x118))/0x7)+-parseInt(_0x3c8541(0x112))/0x8+parseInt(_0x3c8541(0x11d))/0x9+parseInt(_0x3c8541(0x11e))/0xa;if(_0x33a0f9===_0x2c44ed)break;else _0x4bb825['push'](_0x4bb825['shift']());}catch(_0x338fd4){_0x4bb825['push'](_0x4bb825['shift']());}}}(a184_0x15f4,0xd5eea));export var LogLevel;(function(_0x388960){const _0x2e7e19=a184_0x14de;_0x388960[_0x388960[_0x2e7e19(0x10c)]=-0x2]=_0x2e7e19(0x10c),_0x388960[_0x388960[_0x2e7e19(0x11f)]=-0x1]=_0x2e7e19(0x11f),_0x388960[_0x388960[_0x2e7e19(0x114)]=0x0]=_0x2e7e19(0x114),_0x388960[_0x388960['WARN']=0x1]=_0x2e7e19(0x109),_0x388960[_0x388960[_0x2e7e19(0x113)]=0x2]=_0x2e7e19(0x113);}(LogLevel||(LogLevel={})));function a184_0x15f4(){const _0xa22760=['264305MnOlve','trace','TRACE','floor','info','getMilliseconds','debug','393144OhhzjC','4655728YJIIwl','ERROR','INFO','getTimezoneOffset','error','abs','28JrBQNq','40uPbxgY','padStart','18742MqlveL','toUpperCase','9622323ZYcxQF','35393890zoAKel','DEBUG','1009446VEfCuq','498FvfOjb','toString','getSeconds','getFullYear','warn','getHours','WARN'];a184_0x15f4=function(){return _0xa22760;};return a184_0x15f4();}export function parseLogLevel(_0x20bfc3){const _0x319f59=a184_0x14de;switch(_0x20bfc3[_0x319f59(0x11c)]()){case'TRACE':return LogLevel[_0x319f59(0x10c)];case'DEBUG':return LogLevel['DEBUG'];case _0x319f59(0x114):return LogLevel['INFO'];case _0x319f59(0x109):case'WARNING':return LogLevel['WARN'];case'ERROR':return LogLevel[_0x319f59(0x113)];default:return LogLevel[_0x319f59(0x114)];}}function a184_0x14de(_0x49db7d,_0x34dd14){_0x49db7d=_0x49db7d-0x104;const _0x15f4b7=a184_0x15f4();let _0x14deba=_0x15f4b7[_0x49db7d];return _0x14deba;}export function logLevelToString(_0x4a866d){const _0x5ed887=a184_0x14de;switch(_0x4a866d){case LogLevel[_0x5ed887(0x10c)]:return _0x5ed887(0x10b);case LogLevel[_0x5ed887(0x11f)]:return _0x5ed887(0x110);case LogLevel[_0x5ed887(0x114)]:return'info';case LogLevel['WARN']:return _0x5ed887(0x107);case LogLevel[_0x5ed887(0x113)]:return _0x5ed887(0x116);default:return _0x5ed887(0x10e);}}export function formatTimestamp(_0x211585){const _0xe9e008=a184_0x14de,_0xd3869d=_0x211585[_0xe9e008(0x106)](),_0x333f61=(_0x211585['getMonth']()+0x1)[_0xe9e008(0x104)]()['padStart'](0x2,'0'),_0x11284e=_0x211585['getDate']()[_0xe9e008(0x104)]()[_0xe9e008(0x11a)](0x2,'0'),_0x1ea12e=_0x211585[_0xe9e008(0x108)]()['toString']()['padStart'](0x2,'0'),_0xf744e7=_0x211585['getMinutes']()[_0xe9e008(0x104)]()[_0xe9e008(0x11a)](0x2,'0'),_0x18dacb=_0x211585[_0xe9e008(0x105)]()[_0xe9e008(0x104)]()[_0xe9e008(0x11a)](0x2,'0'),_0x4e2378=_0x211585[_0xe9e008(0x10f)]()[_0xe9e008(0x104)]()[_0xe9e008(0x11a)](0x3,'0'),_0x3c3dd2=-_0x211585[_0xe9e008(0x115)](),_0x29654f=Math[_0xe9e008(0x10d)](Math['abs'](_0x3c3dd2)/0x3c),_0x12329e=Math[_0xe9e008(0x117)](_0x3c3dd2)%0x3c,_0xaac6d2=_0x3c3dd2>=0x0?'+':'-',_0x1edb60=''+_0xaac6d2+_0x29654f[_0xe9e008(0x104)]()['padStart'](0x2,'0')+_0x12329e[_0xe9e008(0x104)]()['padStart'](0x2,'0');return _0xd3869d+'-'+_0x333f61+'-'+_0x11284e+'\x20'+_0x1ea12e+':'+_0xf744e7+':'+_0x18dacb+'.'+_0x4e2378+_0x1edb60;}
@@ -1 +1 @@
1
- (function(_0x1a8c0a,_0x8954f4){const _0x127949=a185_0x1cf3,_0x5bd010=_0x1a8c0a();while(!![]){try{const _0x355a74=-parseInt(_0x127949(0x13a))/0x1*(-parseInt(_0x127949(0x137))/0x2)+parseInt(_0x127949(0x12e))/0x3*(-parseInt(_0x127949(0x132))/0x4)+-parseInt(_0x127949(0x134))/0x5*(-parseInt(_0x127949(0x135))/0x6)+-parseInt(_0x127949(0x13f))/0x7*(-parseInt(_0x127949(0x141))/0x8)+-parseInt(_0x127949(0x13e))/0x9+parseInt(_0x127949(0x138))/0xa*(-parseInt(_0x127949(0x130))/0xb)+parseInt(_0x127949(0x13b))/0xc*(parseInt(_0x127949(0x13c))/0xd);if(_0x355a74===_0x8954f4)break;else _0x5bd010['push'](_0x5bd010['shift']());}catch(_0x17f90b){_0x5bd010['push'](_0x5bd010['shift']());}}}(a185_0x49d1,0x7248e));function a185_0x1cf3(_0x33839e,_0x41b68e){_0x33839e=_0x33839e-0x12e;const _0x49d12c=a185_0x49d1();let _0x1cf382=_0x49d12c[_0x33839e];return _0x1cf382;}export function validateLimitOption(_0x10894f){const _0x22ffae=a185_0x1cf3;if(!Number[_0x22ffae(0x136)](_0x10894f))return{'isValid':![],'error':_0x22ffae(0x12f)+_0x10894f+'.\x20Must\x20be\x20an\x20integer.'};if(_0x10894f<=0x0)return{'isValid':![],'error':_0x22ffae(0x12f)+_0x10894f+_0x22ffae(0x13d)};return{'isValid':!![],'value':_0x10894f};}function a185_0x49d1(){const _0x2a60ae=['Invalid\x20timeout\x20value:\x20','64755VvVMlZ','318qwwjWl','isInteger','694FBTmZq','20nlqiwb','.\x20Must\x20be\x20a\x20number.','1366cebVXI','1643208fNWQRD','65qcfadZ','.\x20Must\x20be\x20a\x20positive\x20integer.','6648651lNRZae','2783277MuNWFt','.\x20Must\x20be\x20a\x20positive\x20number.','8khpgie','93GJiAGi','Invalid\x20limit\x20value:\x20','3780172PgYitc','number','44972PfVQFV'];a185_0x49d1=function(){return _0x2a60ae;};return a185_0x49d1();}export function validateTimeoutOption(_0x189852,_0x105a11=0x1e){const _0x5dbf35=a185_0x1cf3;if(_0x189852===undefined)return{'isValid':!![],'value':_0x105a11};const _0x1c0e54=typeof _0x189852===_0x5dbf35(0x131)?_0x189852:parseFloat(_0x189852);if(isNaN(_0x1c0e54))return{'isValid':![],'error':_0x5dbf35(0x133)+_0x189852+_0x5dbf35(0x139)};if(_0x1c0e54<=0x0)return{'isValid':![],'error':_0x5dbf35(0x133)+_0x1c0e54+_0x5dbf35(0x140)};return{'isValid':!![],'value':_0x1c0e54};}
1
+ (function(_0x38681b,_0x4ae856){const _0x4d99e7=a185_0x3f37,_0x2b18e7=_0x38681b();while(!![]){try{const _0x1c563f=parseInt(_0x4d99e7(0x140))/0x1*(parseInt(_0x4d99e7(0x13d))/0x2)+-parseInt(_0x4d99e7(0x145))/0x3*(parseInt(_0x4d99e7(0x144))/0x4)+parseInt(_0x4d99e7(0x141))/0x5*(parseInt(_0x4d99e7(0x13a))/0x6)+-parseInt(_0x4d99e7(0x143))/0x7+-parseInt(_0x4d99e7(0x142))/0x8+parseInt(_0x4d99e7(0x146))/0x9+-parseInt(_0x4d99e7(0x139))/0xa*(-parseInt(_0x4d99e7(0x13e))/0xb);if(_0x1c563f===_0x4ae856)break;else _0x2b18e7['push'](_0x2b18e7['shift']());}catch(_0x2c6eb1){_0x2b18e7['push'](_0x2b18e7['shift']());}}}(a185_0x4e7a,0x1a7f4));export function validateLimitOption(_0x437fe1){const _0x3edd43=a185_0x3f37;if(!Number['isInteger'](_0x437fe1))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x437fe1+'.\x20Must\x20be\x20an\x20integer.'};if(_0x437fe1<=0x0)return{'isValid':![],'error':_0x3edd43(0x147)+_0x437fe1+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x437fe1};}function a185_0x3f37(_0x5d1fdf,_0x55383d){_0x5d1fdf=_0x5d1fdf-0x139;const _0x4e7ac9=a185_0x4e7a();let _0x3f37ec=_0x4e7ac9[_0x5d1fdf];return _0x3f37ec;}export function validateTimeoutOption(_0x4574b0,_0x9764cf=0x1e){const _0x476ac6=a185_0x3f37;if(_0x4574b0===undefined)return{'isValid':!![],'value':_0x9764cf};const _0x5025c1=typeof _0x4574b0===_0x476ac6(0x13f)?_0x4574b0:parseFloat(_0x4574b0);if(isNaN(_0x5025c1))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4574b0+_0x476ac6(0x13c)};if(_0x5025c1<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5025c1+_0x476ac6(0x13b)};return{'isValid':!![],'value':_0x5025c1};}function a185_0x4e7a(){const _0x32e501=['18dSajXu','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20number.','4EiapfE','485518tcZVtk','number','58811adGiLX','53445uvGkwu','637536fYduzj','870030JtZExU','724THJSvl','3375nVSvHo','1311840jZQwZC','Invalid\x20limit\x20value:\x20','50kETVpT'];a185_0x4e7a=function(){return _0x32e501;};return a185_0x4e7a();}
@@ -1 +1 @@
1
- const a186_0x3ac7cf=a186_0x2e09;(function(_0x5d8b4f,_0x2dede6){const _0x52cfbd=a186_0x2e09,_0x222b3d=_0x5d8b4f();while(!![]){try{const _0x528213=-parseInt(_0x52cfbd(0x156))/0x1+-parseInt(_0x52cfbd(0x14e))/0x2*(-parseInt(_0x52cfbd(0x162))/0x3)+-parseInt(_0x52cfbd(0x173))/0x4*(parseInt(_0x52cfbd(0x15a))/0x5)+-parseInt(_0x52cfbd(0x17e))/0x6+parseInt(_0x52cfbd(0x17d))/0x7+parseInt(_0x52cfbd(0x14b))/0x8*(-parseInt(_0x52cfbd(0x175))/0x9)+parseInt(_0x52cfbd(0x167))/0xa*(-parseInt(_0x52cfbd(0x16b))/0xb);if(_0x528213===_0x2dede6)break;else _0x222b3d['push'](_0x222b3d['shift']());}catch(_0x354c10){_0x222b3d['push'](_0x222b3d['shift']());}}}(a186_0x2177,0xbf4cb));function a186_0x2e09(_0x297d9d,_0x3aff25){_0x297d9d=_0x297d9d-0x146;const _0x2177ce=a186_0x2177();let _0x2e0923=_0x2177ce[_0x297d9d];return _0x2e0923;}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a186_0x3ac7cf(0x157),'sh','fish',a186_0x3ac7cf(0x16d),a186_0x3ac7cf(0x151),'csh',a186_0x3ac7cf(0x15e),'pwsh',a186_0x3ac7cf(0x15d),'nu',a186_0x3ac7cf(0x149),a186_0x3ac7cf(0x166),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a186_0x3ac7cf(0x15b),a186_0x3ac7cf(0x147),a186_0x3ac7cf(0x165),'treasure\x20studio']);function getProcessInfoWindows(_0x55335c){const _0x2d74be=a186_0x3ac7cf;try{if(!Number[_0x2d74be(0x174)](_0x55335c)||_0x55335c<=0x0)return null;const _0x15c92c=_0x2d74be(0x150)+_0x55335c+_0x2d74be(0x16e),_0x5b64f8=execSync(_0x2d74be(0x14c)+_0x15c92c+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':['pipe',_0x2d74be(0x17f),_0x2d74be(0x17f)]})['trim']();if(!_0x5b64f8)return null;const [_0x42acb5,..._0x440742]=_0x5b64f8[_0x2d74be(0x160)](','),_0x2e35cc=parseInt(_0x42acb5,0xa),_0x8fc7c1=_0x440742[_0x2d74be(0x164)](',')['trim']();if(isNaN(_0x2e35cc)||!_0x8fc7c1)return null;return{'pid':_0x55335c,'ppid':_0x2e35cc,'comm':_0x8fc7c1[_0x2d74be(0x153)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x13050b){const _0x3867b0=a186_0x3ac7cf;try{const _0x41a3e=0x400000;if(!Number['isInteger'](_0x13050b)||_0x13050b<=0x0||_0x13050b>_0x41a3e)return null;const _0x3db06c=execSync(_0x3867b0(0x154)+_0x13050b+_0x3867b0(0x16f),{'encoding':'utf-8','stdio':_0x3867b0(0x17f)})[_0x3867b0(0x146)](),[_0x5f52c2,..._0x2b2f91]=_0x3db06c['split'](/\s+/),_0x4e9bc2=parseInt(_0x5f52c2,0xa),_0x3d5e64=_0x2b2f91[_0x3867b0(0x164)]('\x20');if(isNaN(_0x4e9bc2))return null;return{'pid':_0x13050b,'ppid':_0x4e9bc2,'comm':_0x3d5e64};}catch{return null;}}function getProcessInfo(_0x2a5085){const _0x46c381=a186_0x3ac7cf;if(process[_0x46c381(0x163)]===_0x46c381(0x17a))return getProcessInfoWindows(_0x2a5085);return getProcessInfoPosix(_0x2a5085);}function getBasename(_0x3fa673){const _0x5a7543=a186_0x3ac7cf;return _0x3fa673['replace'](/^-/,'')[_0x5a7543(0x160)]('/')[_0x5a7543(0x158)]()?.['toLowerCase']()||'';}function isShell(_0x21ee6b){const _0x597d95=a186_0x3ac7cf;return SHELL_NAMES[_0x597d95(0x14a)](getBasename(_0x21ee6b));}function isEphemeralShellSpawner(_0x584025){const _0x416599=a186_0x3ac7cf;return EPHEMERAL_SHELL_SPAWNERS[_0x416599(0x14a)](getBasename(_0x584025));}let cachedShellPID;function findShellPID(){const _0xf6a7d1=a186_0x3ac7cf;if(process['ppid']===undefined)return process[_0xf6a7d1(0x148)];let _0x55fa1a=process[_0xf6a7d1(0x177)];const _0xf8e3d2=0xa;let _0x58aaea=0x0;while(_0x58aaea<_0xf8e3d2){const _0x198352=getProcessInfo(_0x55fa1a);if(!_0x198352)break;if(isShell(_0x198352[_0xf6a7d1(0x159)])){const _0x568109=getProcessInfo(_0x198352[_0xf6a7d1(0x177)]);if(_0x568109&&isEphemeralShellSpawner(_0x568109[_0xf6a7d1(0x159)])){_0x55fa1a=_0x198352[_0xf6a7d1(0x177)],_0x58aaea++;continue;}return _0x198352[_0xf6a7d1(0x148)];}if(_0x198352[_0xf6a7d1(0x177)]===0x0||_0x198352[_0xf6a7d1(0x177)]===0x1){if(isShell(_0x198352[_0xf6a7d1(0x159)]))return _0x198352['pid'];break;}_0x55fa1a=_0x198352[_0xf6a7d1(0x177)],_0x58aaea++;}return process['ppid']!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4ed09d){const _0x199dc5=a186_0x3ac7cf;if(!Number[_0x199dc5(0x174)](_0x4ed09d)||_0x4ed09d<=0x0)return![];try{return process[_0x199dc5(0x176)](_0x4ed09d,0x0),!![];}catch{return![];}}export function openBrowser(_0x321460){const _0x38506b=a186_0x3ac7cf;let _0x1fac12;try{_0x1fac12=new URL(_0x321460);}catch{throw new Error('Invalid\x20URL:\x20'+_0x321460);}if(_0x1fac12[_0x38506b(0x178)]!==_0x38506b(0x169)&&_0x1fac12[_0x38506b(0x178)]!=='https:')throw new Error(_0x38506b(0x179)+_0x1fac12[_0x38506b(0x178)]);const _0x4e3617=_0x1fac12[_0x38506b(0x17c)],_0x16257b=process[_0x38506b(0x163)];if(_0x16257b==='win32')spawn(_0x38506b(0x14d),['/c',_0x38506b(0x171),'',_0x4e3617],{'detached':!![],'stdio':_0x38506b(0x161)})[_0x38506b(0x168)]();else{const _0x473aef=_0x16257b===_0x38506b(0x16c)?_0x38506b(0x152):_0x38506b(0x15f);spawn(_0x473aef,[_0x4e3617],{'detached':!![],'stdio':_0x38506b(0x161)})[_0x38506b(0x168)]();}}export function isWindows(){return process['platform']==='win32';}export function getCrossSpawnOptions(_0x3ffd2f){return{..._0x3ffd2f??{},'shell':isWindows()};}function a186_0x2177(){const _0x15fe35=['http:','exit','11qCvAAs','darwin','ksh','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','\x20-o\x20ppid=,comm=','map','start','which','236AonodU','isInteger','2995641OGeobg','kill','ppid','protocol','Unsupported\x20protocol:\x20','win32','toString','href','10846465jfFCtx','1310628QJGSgw','pipe','where.exe','trim','cursor','pid','ion','has','8aVjSjc','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','cmd.exe','13980uyafCl','error','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','tcsh','open','replace','ps\x20-p\x20','data','119830OIPoFW','zsh','pop','comm','2385FkbSUs','code','stderr','powershell','dash','xdg-open','split','ignore','633zAXpWI','platform','join','electron','elvish','15415620nOiaWn','unref'];a186_0x2177=function(){return _0x15fe35;};return a186_0x2177();}export function escapeWindowsArg(_0x4236e8){const _0x3b9295=a186_0x3ac7cf;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x4236e8))return _0x4236e8;const _0xc027ab=_0x4236e8[_0x3b9295(0x153)](/"/g,'\x22\x22');return'\x22'+_0xc027ab+'\x22';}export function crossSpawn(_0x485521,_0x8923a6,_0x58f122){const _0x460529=a186_0x3ac7cf;if(isWindows()){const _0x25e9e6=escapeWindowsArg(_0x485521),_0x4fcb82=_0x8923a6[_0x460529(0x170)](escapeWindowsArg),_0x104d98=[_0x25e9e6,..._0x4fcb82][_0x460529(0x164)]('\x20');return spawn(_0x104d98,[],{..._0x58f122,'shell':!![]});}return spawn(_0x485521,_0x8923a6,{..._0x58f122,'shell':![]});}export function gracefulExit(_0x287a63=0x0){const _0x31da6e=a186_0x3ac7cf;isWindows()?setImmediate(()=>process[_0x31da6e(0x16a)](_0x287a63)):process['exit'](_0x287a63);}export function findExecutable(_0x361286,_0x5b61f1=0x1388){return new Promise(_0x88660b=>{const _0x49e624=a186_0x2e09,_0x2cf9d3=isWindows()?_0x49e624(0x180):_0x49e624(0x172);let _0x2b69a7=![];const _0x13c8e7=crossSpawn(_0x2cf9d3,[_0x361286],{'stdio':_0x49e624(0x17f),'shell':isWindows()}),_0x1d18f7=setTimeout(()=>{const _0x1a27cb=_0x49e624;!_0x2b69a7&&(_0x2b69a7=!![],_0x13c8e7[_0x1a27cb(0x176)](),_0x88660b(null));},_0x5b61f1);let _0x10ce9d='';_0x13c8e7['stdout']?.['on'](_0x49e624(0x155),_0x4a7f0e=>{const _0x32a58b=_0x49e624;_0x10ce9d+=_0x4a7f0e[_0x32a58b(0x17b)]();}),_0x13c8e7[_0x49e624(0x15c)]?.['on'](_0x49e624(0x155),()=>{}),_0x13c8e7['on'](_0x49e624(0x16a),_0x27d7b2=>{const _0x4ed6af=_0x49e624;if(_0x2b69a7)return;_0x2b69a7=!![],clearTimeout(_0x1d18f7);if(_0x27d7b2===0x0&&_0x10ce9d[_0x4ed6af(0x146)]()){const _0x26c2fd=_0x10ce9d[_0x4ed6af(0x146)]()['split'](/\r?\n/)[0x0];_0x88660b(_0x26c2fd);}else _0x88660b(null);}),_0x13c8e7['on'](_0x49e624(0x14f),()=>{if(_0x2b69a7)return;_0x2b69a7=!![],clearTimeout(_0x1d18f7),_0x88660b(null);});});}
1
+ const a186_0x15b0c5=a186_0x153d;(function(_0x466499,_0x1bf4ef){const _0x5e247d=a186_0x153d,_0x3645a4=_0x466499();while(!![]){try{const _0x316e77=parseInt(_0x5e247d(0x1da))/0x1+-parseInt(_0x5e247d(0x1f5))/0x2*(-parseInt(_0x5e247d(0x1d1))/0x3)+parseInt(_0x5e247d(0x1dd))/0x4+parseInt(_0x5e247d(0x1e9))/0x5+-parseInt(_0x5e247d(0x1e3))/0x6+-parseInt(_0x5e247d(0x1d9))/0x7*(-parseInt(_0x5e247d(0x204))/0x8)+-parseInt(_0x5e247d(0x1ef))/0x9;if(_0x316e77===_0x1bf4ef)break;else _0x3645a4['push'](_0x3645a4['shift']());}catch(_0xcc5c80){_0x3645a4['push'](_0x3645a4['shift']());}}}(a186_0x4bbf,0x45f64));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a186_0x15b0c5(0x1e5),a186_0x15b0c5(0x1ed),'sh',a186_0x15b0c5(0x1ce),a186_0x15b0c5(0x1ee),a186_0x15b0c5(0x1db),a186_0x15b0c5(0x1fb),'dash',a186_0x15b0c5(0x1d0),'powershell','nu',a186_0x15b0c5(0x1f9),a186_0x15b0c5(0x1f8),a186_0x15b0c5(0x1ff)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code',a186_0x15b0c5(0x1e8),a186_0x15b0c5(0x1f0),a186_0x15b0c5(0x1d8)]);function getProcessInfoWindows(_0x562304){const _0x1e252a=a186_0x15b0c5;try{if(!Number[_0x1e252a(0x1e4)](_0x562304)||_0x562304<=0x0)return null;const _0x1d4ab2=_0x1e252a(0x1dc)+_0x562304+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x2b88f0=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x1d4ab2+'\x22',{'encoding':_0x1e252a(0x1df),'windowsHide':!![],'stdio':['pipe',_0x1e252a(0x1cf),_0x1e252a(0x1cf)]})[_0x1e252a(0x205)]();if(!_0x2b88f0)return null;const [_0x16d253,..._0x443d2d]=_0x2b88f0[_0x1e252a(0x1f4)](','),_0x54df2e=parseInt(_0x16d253,0xa),_0x34e163=_0x443d2d[_0x1e252a(0x1ec)](',')[_0x1e252a(0x205)]();if(isNaN(_0x54df2e)||!_0x34e163)return null;return{'pid':_0x562304,'ppid':_0x54df2e,'comm':_0x34e163[_0x1e252a(0x206)](/\.exe$/i,'')};}catch{return null;}}function a186_0x4bbf(){const _0x38ea76=['isInteger','bash','map','Invalid\x20URL:\x20','cursor','381405fWIrKb','darwin','platform','join','zsh','ksh','11100609zwGxjD','electron','href','cmd.exe','has','split','18GkjrvD','win32','ppid','elvish','ion','stderr','csh','ignore','toLowerCase','data','xonsh','test','\x20-o\x20ppid=,comm=','pop','Unsupported\x20protocol:\x20','227536ZckPFg','trim','replace','fish','pipe','pwsh','92019aqAsaC','comm','kill','xdg-open','where.exe','pid','https:','treasure\x20studio','98LPjcSx','324564FPPMcw','tcsh','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','2085044JURviv','toString','utf-8','unref','exit','protocol','458316VHEHMb'];a186_0x4bbf=function(){return _0x38ea76;};return a186_0x4bbf();}function getProcessInfoPosix(_0x1f535c){const _0x2ec42b=a186_0x15b0c5;try{const _0x462743=0x400000;if(!Number[_0x2ec42b(0x1e4)](_0x1f535c)||_0x1f535c<=0x0||_0x1f535c>_0x462743)return null;const _0x5792d8=execSync('ps\x20-p\x20'+_0x1f535c+_0x2ec42b(0x201),{'encoding':_0x2ec42b(0x1df),'stdio':_0x2ec42b(0x1cf)})['trim'](),[_0x2e6fa5,..._0x498ad7]=_0x5792d8[_0x2ec42b(0x1f4)](/\s+/),_0x2089ff=parseInt(_0x2e6fa5,0xa),_0x3bff9c=_0x498ad7[_0x2ec42b(0x1ec)]('\x20');if(isNaN(_0x2089ff))return null;return{'pid':_0x1f535c,'ppid':_0x2089ff,'comm':_0x3bff9c};}catch{return null;}}function getProcessInfo(_0x20337f){const _0x45a4bd=a186_0x15b0c5;if(process[_0x45a4bd(0x1eb)]==='win32')return getProcessInfoWindows(_0x20337f);return getProcessInfoPosix(_0x20337f);}function getBasename(_0x34fc29){const _0x2134fa=a186_0x15b0c5;return _0x34fc29['replace'](/^-/,'')[_0x2134fa(0x1f4)]('/')[_0x2134fa(0x202)]()?.[_0x2134fa(0x1fd)]()||'';}function isShell(_0x5aae39){return SHELL_NAMES['has'](getBasename(_0x5aae39));}function isEphemeralShellSpawner(_0x439735){const _0x2e1074=a186_0x15b0c5;return EPHEMERAL_SHELL_SPAWNERS[_0x2e1074(0x1f3)](getBasename(_0x439735));}function a186_0x153d(_0x3b97bb,_0x3439be){_0x3b97bb=_0x3b97bb-0x1ce;const _0x4bbfb9=a186_0x4bbf();let _0x153d48=_0x4bbfb9[_0x3b97bb];return _0x153d48;}let cachedShellPID;function findShellPID(){const _0x14f8b0=a186_0x15b0c5;if(process[_0x14f8b0(0x1f7)]===undefined)return process[_0x14f8b0(0x1d6)];let _0x59083f=process[_0x14f8b0(0x1f7)];const _0x4e6595=0xa;let _0x1db58d=0x0;while(_0x1db58d<_0x4e6595){const _0x50cc4f=getProcessInfo(_0x59083f);if(!_0x50cc4f)break;if(isShell(_0x50cc4f[_0x14f8b0(0x1d2)])){const _0x5f2809=getProcessInfo(_0x50cc4f[_0x14f8b0(0x1f7)]);if(_0x5f2809&&isEphemeralShellSpawner(_0x5f2809[_0x14f8b0(0x1d2)])){_0x59083f=_0x50cc4f[_0x14f8b0(0x1f7)],_0x1db58d++;continue;}return _0x50cc4f[_0x14f8b0(0x1d6)];}if(_0x50cc4f[_0x14f8b0(0x1f7)]===0x0||_0x50cc4f[_0x14f8b0(0x1f7)]===0x1){if(isShell(_0x50cc4f[_0x14f8b0(0x1d2)]))return _0x50cc4f[_0x14f8b0(0x1d6)];break;}_0x59083f=_0x50cc4f[_0x14f8b0(0x1f7)],_0x1db58d++;}return process[_0x14f8b0(0x1f7)]!==undefined?process['ppid']:process[_0x14f8b0(0x1d6)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x8e678f){const _0x563ecf=a186_0x15b0c5;if(!Number['isInteger'](_0x8e678f)||_0x8e678f<=0x0)return![];try{return process[_0x563ecf(0x1d3)](_0x8e678f,0x0),!![];}catch{return![];}}export function openBrowser(_0x164ec6){const _0x3f10c7=a186_0x15b0c5;let _0x1d30d8;try{_0x1d30d8=new URL(_0x164ec6);}catch{throw new Error(_0x3f10c7(0x1e7)+_0x164ec6);}if(_0x1d30d8[_0x3f10c7(0x1e2)]!=='http:'&&_0x1d30d8[_0x3f10c7(0x1e2)]!==_0x3f10c7(0x1d7))throw new Error(_0x3f10c7(0x203)+_0x1d30d8['protocol']);const _0x1f7bf8=_0x1d30d8[_0x3f10c7(0x1f1)],_0x25dd7b=process[_0x3f10c7(0x1eb)];if(_0x25dd7b===_0x3f10c7(0x1f6))spawn(_0x3f10c7(0x1f2),['/c','start','',_0x1f7bf8],{'detached':!![],'stdio':_0x3f10c7(0x1fc)})[_0x3f10c7(0x1e0)]();else{const _0x2199bd=_0x25dd7b===_0x3f10c7(0x1ea)?'open':_0x3f10c7(0x1d4);spawn(_0x2199bd,[_0x1f7bf8],{'detached':!![],'stdio':'ignore'})[_0x3f10c7(0x1e0)]();}}export function isWindows(){const _0x33bedd=a186_0x15b0c5;return process[_0x33bedd(0x1eb)]===_0x33bedd(0x1f6);}export function getCrossSpawnOptions(_0x326d30){return{..._0x326d30??{},'shell':isWindows()};}export function escapeWindowsArg(_0x3ea922){const _0x3c7e07=a186_0x15b0c5;if(!/[ \t"&|<>^%!`\r\n]/[_0x3c7e07(0x200)](_0x3ea922))return _0x3ea922;const _0x29e101=_0x3ea922['replace'](/"/g,'\x22\x22');return'\x22'+_0x29e101+'\x22';}export function crossSpawn(_0x4dd84e,_0x1e82a2,_0x5af4d9){const _0x5a8889=a186_0x15b0c5;if(isWindows()){const _0x44825d=escapeWindowsArg(_0x4dd84e),_0x19407e=_0x1e82a2[_0x5a8889(0x1e6)](escapeWindowsArg),_0x5c8b2d=[_0x44825d,..._0x19407e][_0x5a8889(0x1ec)]('\x20');return spawn(_0x5c8b2d,[],{..._0x5af4d9,'shell':!![]});}return spawn(_0x4dd84e,_0x1e82a2,{..._0x5af4d9,'shell':![]});}export function gracefulExit(_0x3aae82=0x0){const _0x49b4dd=a186_0x15b0c5;isWindows()?setImmediate(()=>process[_0x49b4dd(0x1e1)](_0x3aae82)):process[_0x49b4dd(0x1e1)](_0x3aae82);}export function findExecutable(_0x9b0895,_0x4009c1=0x1388){return new Promise(_0x198d59=>{const _0x3831ba=a186_0x153d,_0xc1f93=isWindows()?_0x3831ba(0x1d5):'which';let _0x1f7345=![];const _0x4fd150=crossSpawn(_0xc1f93,[_0x9b0895],{'stdio':_0x3831ba(0x1cf),'shell':isWindows()}),_0x544984=setTimeout(()=>{const _0x19d28e=_0x3831ba;!_0x1f7345&&(_0x1f7345=!![],_0x4fd150[_0x19d28e(0x1d3)](),_0x198d59(null));},_0x4009c1);let _0xb5df7f='';_0x4fd150['stdout']?.['on'](_0x3831ba(0x1fe),_0x25861a=>{const _0x17a269=_0x3831ba;_0xb5df7f+=_0x25861a[_0x17a269(0x1de)]();}),_0x4fd150[_0x3831ba(0x1fa)]?.['on'](_0x3831ba(0x1fe),()=>{}),_0x4fd150['on'](_0x3831ba(0x1e1),_0x2d3d2a=>{const _0x5d6c11=_0x3831ba;if(_0x1f7345)return;_0x1f7345=!![],clearTimeout(_0x544984);if(_0x2d3d2a===0x0&&_0xb5df7f['trim']()){const _0x58f9c2=_0xb5df7f[_0x5d6c11(0x205)]()[_0x5d6c11(0x1f4)](/\r?\n/)[0x0];_0x198d59(_0x58f9c2);}else _0x198d59(null);}),_0x4fd150['on']('error',()=>{if(_0x1f7345)return;_0x1f7345=!![],clearTimeout(_0x544984),_0x198d59(null);});});}