@treasuredata/tdx 2026.3.53 → 2026.3.55

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 (254) 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/cas-command.js +1 -1
  15. package/dist/commands/cas-segment-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/delivery-command.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-campaign-pull-command.js +1 -1
  26. package/dist/commands/engage-campaign-push-command.js +1 -1
  27. package/dist/commands/engage-campaign-validate-command.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-template-pull-command.js +1 -1
  30. package/dist/commands/engage-template-push-command.js +1 -1
  31. package/dist/commands/engage-template-validate-command.js +1 -1
  32. package/dist/commands/job-command.js +1 -1
  33. package/dist/commands/journey-command.js +1 -1
  34. package/dist/commands/journey-validate-command.js +1 -1
  35. package/dist/commands/llm-command.js +1 -1
  36. package/dist/commands/mcp-command.js +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/policy-command.js +1 -1
  39. package/dist/commands/profile-command.js +1 -1
  40. package/dist/commands/profiles-command.js +1 -1
  41. package/dist/commands/query-command.js +1 -1
  42. package/dist/commands/schedule-command.js +1 -1
  43. package/dist/commands/segment-command.js +1 -1
  44. package/dist/commands/segment-create-command.js +1 -1
  45. package/dist/commands/segment-fields-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/status-command.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.d.ts +27 -0
  61. package/dist/commands/workflow-command.d.ts.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/commands/workflow-command.js.map +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.js +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/tools/work-create-item.js +1 -1
  85. package/dist/mcp/utils.js +1 -1
  86. package/dist/proxy/claude-usage-tracker.js +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/sse-usage-parser.js +1 -1
  89. package/dist/sdk/agent/agent-config.d.ts +10 -0
  90. package/dist/sdk/agent/agent-config.d.ts.map +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-config.js.map +1 -1
  93. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  94. package/dist/sdk/agent/agent-yaml.d.ts +61 -3
  95. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  96. package/dist/sdk/agent/agent-yaml.js +1 -1
  97. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  98. package/dist/sdk/agent/test/evaluator.js +1 -1
  99. package/dist/sdk/agent/test/executor.js +1 -1
  100. package/dist/sdk/agent/test/index.js +1 -1
  101. package/dist/sdk/agent/test/output.js +1 -1
  102. package/dist/sdk/agent/test/parser.js +1 -1
  103. package/dist/sdk/agent/tool-target-registry.js +1 -1
  104. package/dist/sdk/agent/types/agent-def.d.ts +43 -0
  105. package/dist/sdk/agent/types/agent-def.d.ts.map +1 -1
  106. package/dist/sdk/api.js +1 -1
  107. package/dist/sdk/cas/cas-api-client.js +1 -1
  108. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  109. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  110. package/dist/sdk/cas/index.js +1 -1
  111. package/dist/sdk/cas/pull-workflow.js +1 -1
  112. package/dist/sdk/cas/push-workflow.js +1 -1
  113. package/dist/sdk/client/cdp-api-client.js +1 -1
  114. package/dist/sdk/client/delivery-api-client.js +1 -1
  115. package/dist/sdk/client/endpoints.js +1 -1
  116. package/dist/sdk/client/engage-api-client.js +1 -1
  117. package/dist/sdk/client/http-client.js +1 -1
  118. package/dist/sdk/client/llm-api-client.d.ts +73 -1
  119. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  120. package/dist/sdk/client/llm-api-client.js +1 -1
  121. package/dist/sdk/client/llm-api-client.js.map +1 -1
  122. package/dist/sdk/client/oauth-refresh.js +1 -1
  123. package/dist/sdk/client/rate-limiter.js +1 -1
  124. package/dist/sdk/client/td-api-client.js +1 -1
  125. package/dist/sdk/client/trino-api-client.js +1 -1
  126. package/dist/sdk/client/workflow-client.d.ts +28 -1
  127. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  128. package/dist/sdk/client/workflow-client.js +1 -1
  129. package/dist/sdk/client/workflow-client.js.map +1 -1
  130. package/dist/sdk/connection-validator.js +1 -1
  131. package/dist/sdk/connection.js +1 -1
  132. package/dist/sdk/delivery.js +1 -1
  133. package/dist/sdk/engage/campaign-pull.js +1 -1
  134. package/dist/sdk/engage/campaign-push.js +1 -1
  135. package/dist/sdk/engage/campaign-validator.js +1 -1
  136. package/dist/sdk/engage/campaign-yaml.js +1 -1
  137. package/dist/sdk/engage/template-pull.js +1 -1
  138. package/dist/sdk/engage/template-push.js +1 -1
  139. package/dist/sdk/engage/template-validator.js +1 -1
  140. package/dist/sdk/engage/template-yaml.js +1 -1
  141. package/dist/sdk/engage/types/campaign-def.js +1 -1
  142. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  143. package/dist/sdk/engage/types/template-schema.js +1 -1
  144. package/dist/sdk/engage.js +1 -1
  145. package/dist/sdk/errors.js +1 -1
  146. package/dist/sdk/index.js +1 -1
  147. package/dist/sdk/io/index.js +1 -1
  148. package/dist/sdk/io/node-filesystem.js +1 -1
  149. package/dist/sdk/job.js +1 -1
  150. package/dist/sdk/journey.js +1 -1
  151. package/dist/sdk/llm/chat-cache.js +1 -1
  152. package/dist/sdk/llm/index.d.ts.map +1 -1
  153. package/dist/sdk/llm/index.js +1 -1
  154. package/dist/sdk/llm/index.js.map +1 -1
  155. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  156. package/dist/sdk/llm/model-factors.js +1 -1
  157. package/dist/sdk/personalization.js +1 -1
  158. package/dist/sdk/policy.js +1 -1
  159. package/dist/sdk/query/index.js +1 -1
  160. package/dist/sdk/query/sql-parser.js +1 -1
  161. package/dist/sdk/realtime.js +1 -1
  162. package/dist/sdk/schedule.js +1 -1
  163. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  164. package/dist/sdk/segment/fields-display.js +1 -1
  165. package/dist/sdk/segment/file-discovery.js +1 -1
  166. package/dist/sdk/segment/journey-utils.js +1 -1
  167. package/dist/sdk/segment/journey-validator.js +1 -1
  168. package/dist/sdk/segment/journey-yaml.js +1 -1
  169. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  170. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  171. package/dist/sdk/segment/pull-workflow.js +1 -1
  172. package/dist/sdk/segment/push-recovery.js +1 -1
  173. package/dist/sdk/segment/push-workflow.js +1 -1
  174. package/dist/sdk/segment/resolution-context.js +1 -1
  175. package/dist/sdk/segment/segment-path-parser.js +1 -1
  176. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  177. package/dist/sdk/segment/segment-validator.js +1 -1
  178. package/dist/sdk/segment/target-resolution.js +1 -1
  179. package/dist/sdk/segment/tdx-config.js +1 -1
  180. package/dist/sdk/segment/types/activation-schema.js +1 -1
  181. package/dist/sdk/segment/types/journey-def.js +1 -1
  182. package/dist/sdk/segment/types/journey-schema.js +1 -1
  183. package/dist/sdk/segment/types/segment-def.js +1 -1
  184. package/dist/sdk/segment/types/segment-schema.js +1 -1
  185. package/dist/sdk/segment/validate-files.js +1 -1
  186. package/dist/sdk/segment/yaml-validator.js +1 -1
  187. package/dist/sdk/segment.js +1 -1
  188. package/dist/sdk/types/index.d.ts +2 -2
  189. package/dist/sdk/types/index.d.ts.map +1 -1
  190. package/dist/sdk/types/index.js +1 -1
  191. package/dist/sdk/types/index.js.map +1 -1
  192. package/dist/sdk/types/llm.d.ts +158 -0
  193. package/dist/sdk/types/llm.d.ts.map +1 -1
  194. package/dist/sdk/types/progress.js +1 -1
  195. package/dist/sdk/types/workflow.d.ts +26 -0
  196. package/dist/sdk/types/workflow.d.ts.map +1 -1
  197. package/dist/sdk/types/workspace.js +1 -1
  198. package/dist/sdk/user.js +1 -1
  199. package/dist/sdk/util/format-detector.js +1 -1
  200. package/dist/sdk/util/formatters.js +1 -1
  201. package/dist/sdk/util/index.js +1 -1
  202. package/dist/sdk/util/paginate.js +1 -1
  203. package/dist/sdk/util/tree-formatter.js +1 -1
  204. package/dist/sdk/workflow/archive-validation.js +1 -1
  205. package/dist/sdk/workflow/clone-workflow.js +1 -1
  206. package/dist/sdk/workflow/index.d.ts +22 -0
  207. package/dist/sdk/workflow/index.d.ts.map +1 -1
  208. package/dist/sdk/workflow/index.js +1 -1
  209. package/dist/sdk/workflow/index.js.map +1 -1
  210. package/dist/sdk/workflow/pull-workflow.js +1 -1
  211. package/dist/sdk/workflow/push-workflow.js +1 -1
  212. package/dist/sdk/workflow/tdx-config.js +1 -1
  213. package/dist/sdk/workflow/workflow-utils.js +1 -1
  214. package/dist/sdk/workspace/frontmatter.js +1 -1
  215. package/dist/sdk/workspace/git.js +1 -1
  216. package/dist/sdk/workspace/index.js +1 -1
  217. package/dist/sdk/workspace/templates.js +1 -1
  218. package/dist/sdk/workspace/weekly.js +1 -1
  219. package/dist/sdk/workspace/wikilinks.js +1 -1
  220. package/dist/test-utils/command-runner.js +1 -1
  221. package/dist/test-utils/factories.js +1 -1
  222. package/dist/test-utils/fixtures.js +1 -1
  223. package/dist/test-utils/http-mock.js +1 -1
  224. package/dist/test-utils/index.js +1 -1
  225. package/dist/utils/async.js +1 -1
  226. package/dist/utils/colors.js +1 -1
  227. package/dist/utils/diff.js +1 -1
  228. package/dist/utils/file-permissions.js +1 -1
  229. package/dist/utils/file-reader.js +1 -1
  230. package/dist/utils/github-releases.js +1 -1
  231. package/dist/utils/global-cache.js +1 -1
  232. package/dist/utils/json-loader.js +1 -1
  233. package/dist/utils/local-cache.js +1 -1
  234. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  235. package/dist/utils/logger/formatters/index.js +1 -1
  236. package/dist/utils/logger/handlers/console-handler.js +1 -1
  237. package/dist/utils/logger/handlers/file-handler.js +1 -1
  238. package/dist/utils/logger/handlers/index.js +1 -1
  239. package/dist/utils/logger/handlers/null-handler.js +1 -1
  240. package/dist/utils/logger/index.js +1 -1
  241. package/dist/utils/logger/logger.js +1 -1
  242. package/dist/utils/logger/types.js +1 -1
  243. package/dist/utils/option-validation.js +1 -1
  244. package/dist/utils/process.d.ts.map +1 -1
  245. package/dist/utils/process.js +1 -1
  246. package/dist/utils/process.js.map +1 -1
  247. package/dist/utils/prompt.js +1 -1
  248. package/dist/utils/spinner.js +1 -1
  249. package/dist/utils/sse-parser.js +1 -1
  250. package/dist/utils/string-utils.js +1 -1
  251. package/dist/utils/table-ref-parser.js +1 -1
  252. package/dist/utils/tdx-logger.js +1 -1
  253. package/dist/utils/version-check.js +1 -1
  254. package/package.json +2 -2
@@ -1 +1 @@
1
- function a153_0x5b64(){const _0x732074=['1cFeKIt','898930fPUjqi','28DbucGO','name','parentFolderId','901926pcepGx','get','14128IViKEC','85MnwUqR','12UMpbxV','252krKoRa','has','1692414yUNkLu','set','141028PrsTfN','add','7563270VJJmvH','2726614ibAOqN'];a153_0x5b64=function(){return _0x732074;};return a153_0x5b64();}(function(_0x577692,_0x3b74f5){const _0x352dbb=a153_0x5520,_0x24f86c=_0x577692();while(!![]){try{const _0x1c89bd=parseInt(_0x352dbb(0x142))/0x1*(-parseInt(_0x352dbb(0x131))/0x2)+parseInt(_0x352dbb(0x13c))/0x3+-parseInt(_0x352dbb(0x13e))/0x4*(parseInt(_0x352dbb(0x138))/0x5)+-parseInt(_0x352dbb(0x135))/0x6*(-parseInt(_0x352dbb(0x132))/0x7)+parseInt(_0x352dbb(0x137))/0x8*(-parseInt(_0x352dbb(0x13a))/0x9)+parseInt(_0x352dbb(0x140))/0xa+-parseInt(_0x352dbb(0x141))/0xb*(parseInt(_0x352dbb(0x139))/0xc);if(_0x1c89bd===_0x3b74f5)break;else _0x24f86c['push'](_0x24f86c['shift']());}catch(_0x40cded){_0x24f86c['push'](_0x24f86c['shift']());}}}(a153_0x5b64,0x8c869));export function buildFolderIdToPathMap(_0xa0305d){const _0x1199cd=a153_0x5520,_0xcfafc8=new Map(),_0x1f86d0=new Map();for(const _0x2446c6 of _0xa0305d){_0x1f86d0[_0x1199cd(0x13d)](_0x2446c6['id'],_0x2446c6);}const _0x1c19fc=new Set();for(const _0x3d68c5 of _0xa0305d){!_0x3d68c5[_0x1199cd(0x134)]&&_0x1c19fc[_0x1199cd(0x13f)](_0x3d68c5['id']);}function _0x22b37c(_0x1069ab){const _0xb76b53=_0x1199cd;if(_0xcfafc8[_0xb76b53(0x13b)](_0x1069ab['id']))return _0xcfafc8[_0xb76b53(0x136)](_0x1069ab['id']);if(_0x1c19fc[_0xb76b53(0x13b)](_0x1069ab['id']))return _0xcfafc8['set'](_0x1069ab['id'],''),'';if(_0x1069ab['parentFolderId']){const _0x44ad99=_0x1f86d0[_0xb76b53(0x136)](_0x1069ab[_0xb76b53(0x134)]);if(_0x44ad99){const _0x528f92=_0x22b37c(_0x44ad99),_0x11b508=_0x528f92?_0x528f92+'/'+_0x1069ab[_0xb76b53(0x133)]:_0x1069ab[_0xb76b53(0x133)];return _0xcfafc8['set'](_0x1069ab['id'],_0x11b508),_0x11b508;}}const _0x41a478=_0x1069ab[_0xb76b53(0x133)];return _0xcfafc8[_0xb76b53(0x13d)](_0x1069ab['id'],_0x41a478),_0x41a478;}for(const _0x281ca7 of _0xa0305d){_0x22b37c(_0x281ca7);}return _0xcfafc8;}export function buildFolderPathToIdMap(_0x305be4){const _0x3eacda=a153_0x5520,_0x125161=new Map(),_0x12d15d=new Map();for(const _0x108ddb of _0x305be4){_0x12d15d[_0x3eacda(0x13d)](_0x108ddb['id'],_0x108ddb);}const _0x22a593=new Set();for(const _0x410143 of _0x305be4){!_0x410143[_0x3eacda(0x134)]&&_0x22a593[_0x3eacda(0x13f)](_0x410143['id']);}function _0x387393(_0x39d21c){const _0x382ec2=_0x3eacda;if(_0x22a593['has'](_0x39d21c['id']))return'';if(_0x39d21c['parentFolderId']){const _0x427a7c=_0x12d15d['get'](_0x39d21c[_0x382ec2(0x134)]);if(_0x427a7c){const _0x4feba1=_0x387393(_0x427a7c);return _0x4feba1?_0x4feba1+'/'+_0x39d21c[_0x382ec2(0x133)]:_0x39d21c[_0x382ec2(0x133)];}}return _0x39d21c[_0x382ec2(0x133)];}for(const _0x1745d4 of _0x305be4){const _0xdae9a3=_0x387393(_0x1745d4);_0x125161['set'](_0xdae9a3,_0x1745d4['id']);}return _0x125161;}export function buildFolderMaps(_0x218726){const _0xb5ccae=buildFolderIdToPathMap(_0x218726),_0x1b5223=new Map();for(const [_0x40cf1b,_0x5cde58]of _0xb5ccae){_0x1b5223['set'](_0x5cde58,_0x40cf1b);}return{'idToPath':_0xb5ccae,'pathToId':_0x1b5223};}function a153_0x5520(_0xb9f124,_0x2d4d5d){_0xb9f124=_0xb9f124-0x131;const _0x5b64dd=a153_0x5b64();let _0x552029=_0x5b64dd[_0xb9f124];return _0x552029;}export function getFolderPath(_0x34ecf1,_0x59cdea){const _0x1f576a=a153_0x5520;if(!_0x34ecf1)return'';return _0x59cdea[_0x1f576a(0x136)](_0x34ecf1)??'';}
1
+ (function(_0x325ad1,_0x190b80){const _0x2de895=a153_0x3a41,_0x52829a=_0x325ad1();while(!![]){try{const _0x10b06c=parseInt(_0x2de895(0x16a))/0x1+-parseInt(_0x2de895(0x167))/0x2+parseInt(_0x2de895(0x164))/0x3*(parseInt(_0x2de895(0x166))/0x4)+-parseInt(_0x2de895(0x171))/0x5*(-parseInt(_0x2de895(0x172))/0x6)+-parseInt(_0x2de895(0x169))/0x7*(-parseInt(_0x2de895(0x173))/0x8)+parseInt(_0x2de895(0x16b))/0x9+parseInt(_0x2de895(0x16e))/0xa*(-parseInt(_0x2de895(0x170))/0xb);if(_0x10b06c===_0x190b80)break;else _0x52829a['push'](_0x52829a['shift']());}catch(_0x23f071){_0x52829a['push'](_0x52829a['shift']());}}}(a153_0x12fb,0xee6d8));export function buildFolderIdToPathMap(_0x356029){const _0x37974c=a153_0x3a41,_0x29fd6f=new Map(),_0x5cff5d=new Map();for(const _0x880a16 of _0x356029){_0x5cff5d[_0x37974c(0x165)](_0x880a16['id'],_0x880a16);}const _0x13be90=new Set();for(const _0x278339 of _0x356029){!_0x278339[_0x37974c(0x168)]&&_0x13be90['add'](_0x278339['id']);}function _0x2fc0dc(_0x1dcda4){const _0x5eb2d3=_0x37974c;if(_0x29fd6f[_0x5eb2d3(0x16f)](_0x1dcda4['id']))return _0x29fd6f[_0x5eb2d3(0x16c)](_0x1dcda4['id']);if(_0x13be90[_0x5eb2d3(0x16f)](_0x1dcda4['id']))return _0x29fd6f[_0x5eb2d3(0x165)](_0x1dcda4['id'],''),'';if(_0x1dcda4[_0x5eb2d3(0x168)]){const _0x49a3e0=_0x5cff5d['get'](_0x1dcda4[_0x5eb2d3(0x168)]);if(_0x49a3e0){const _0x52b091=_0x2fc0dc(_0x49a3e0),_0x261800=_0x52b091?_0x52b091+'/'+_0x1dcda4[_0x5eb2d3(0x16d)]:_0x1dcda4[_0x5eb2d3(0x16d)];return _0x29fd6f[_0x5eb2d3(0x165)](_0x1dcda4['id'],_0x261800),_0x261800;}}const _0x3c58bc=_0x1dcda4[_0x5eb2d3(0x16d)];return _0x29fd6f[_0x5eb2d3(0x165)](_0x1dcda4['id'],_0x3c58bc),_0x3c58bc;}for(const _0x5f3d71 of _0x356029){_0x2fc0dc(_0x5f3d71);}return _0x29fd6f;}function a153_0x3a41(_0x257229,_0x36ebc3){_0x257229=_0x257229-0x164;const _0x12fbf9=a153_0x12fb();let _0x3a4119=_0x12fbf9[_0x257229];return _0x3a4119;}export function buildFolderPathToIdMap(_0x4f6c34){const _0xba309c=a153_0x3a41,_0x5dc876=new Map(),_0xb92c85=new Map();for(const _0x5b30f6 of _0x4f6c34){_0xb92c85[_0xba309c(0x165)](_0x5b30f6['id'],_0x5b30f6);}const _0x460a2b=new Set();for(const _0x1ffb70 of _0x4f6c34){!_0x1ffb70[_0xba309c(0x168)]&&_0x460a2b['add'](_0x1ffb70['id']);}function _0x238e75(_0x59dcd2){const _0x41fe16=_0xba309c;if(_0x460a2b[_0x41fe16(0x16f)](_0x59dcd2['id']))return'';if(_0x59dcd2[_0x41fe16(0x168)]){const _0x1c7e26=_0xb92c85[_0x41fe16(0x16c)](_0x59dcd2[_0x41fe16(0x168)]);if(_0x1c7e26){const _0x27b208=_0x238e75(_0x1c7e26);return _0x27b208?_0x27b208+'/'+_0x59dcd2['name']:_0x59dcd2['name'];}}return _0x59dcd2['name'];}for(const _0x688088 of _0x4f6c34){const _0x79430e=_0x238e75(_0x688088);_0x5dc876[_0xba309c(0x165)](_0x79430e,_0x688088['id']);}return _0x5dc876;}function a153_0x12fb(){const _0x2efc51=['49435CSnjgE','1038SpMKvA','40exhVwx','189603sTmlZf','set','36FqIqmV','309526jnxpCK','parentFolderId','941234dlwEHm','1942374PUMjcn','13584474qEnJUd','get','name','52719670NvyRrr','has','11HAekWN'];a153_0x12fb=function(){return _0x2efc51;};return a153_0x12fb();}export function buildFolderMaps(_0x4268fd){const _0x4eeb37=buildFolderIdToPathMap(_0x4268fd),_0x5cf1cc=new Map();for(const [_0x903c3c,_0x340394]of _0x4eeb37){_0x5cf1cc['set'](_0x340394,_0x903c3c);}return{'idToPath':_0x4eeb37,'pathToId':_0x5cf1cc};}export function getFolderPath(_0x1781a9,_0x2075ec){const _0x5002e6=a153_0x3a41;if(!_0x1781a9)return'';return _0x2075ec[_0x5002e6(0x16c)](_0x1781a9)??'';}
@@ -1 +1 @@
1
- (function(_0x4221ed,_0x2602a0){const _0x430feb=a154_0x12cb,_0x55668c=_0x4221ed();while(!![]){try{const _0x2146dd=parseInt(_0x430feb(0x157))/0x1*(parseInt(_0x430feb(0x15e))/0x2)+-parseInt(_0x430feb(0x163))/0x3*(parseInt(_0x430feb(0x16c))/0x4)+parseInt(_0x430feb(0x156))/0x5*(parseInt(_0x430feb(0x162))/0x6)+-parseInt(_0x430feb(0x170))/0x7*(-parseInt(_0x430feb(0x17a))/0x8)+parseInt(_0x430feb(0x17d))/0x9*(parseInt(_0x430feb(0x16e))/0xa)+parseInt(_0x430feb(0x155))/0xb+-parseInt(_0x430feb(0x167))/0xc;if(_0x2146dd===_0x2602a0)break;else _0x55668c['push'](_0x55668c['shift']());}catch(_0x4f7e0e){_0x55668c['push'](_0x55668c['shift']());}}}(a154_0x25d9,0x1ea84));import a154_0x39b86e from'path';import{parse as a154_0xe966bf}from'yaml';import{nodeFileSystem}from'../io/node-filesystem.js';export function parsePath(_0x18d6d3){const _0x4028fd=a154_0x12cb;if(!_0x18d6d3||_0x18d6d3['trim']()==='')throw new Error(_0x4028fd(0x165));const _0x11cd98=_0x18d6d3[_0x4028fd(0x164)]();if(_0x11cd98==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x18d6d3};const _0x45e3e1=_0x11cd98[_0x4028fd(0x176)]('/')?_0x11cd98['substring'](0x1):_0x11cd98,_0x460371=_0x45e3e1['split']('/')['filter'](_0x2c8223=>_0x2c8223!=='');if(_0x460371['length']===0x0)throw new Error(_0x4028fd(0x15c));const _0x4a388a=_0x11cd98[_0x4028fd(0x176)]('/')||!isRelativePathSegment(_0x460371[0x0]);for(const _0x2a5f05 of _0x460371){validatePathSegment(_0x2a5f05);}return{'segments':_0x460371,'isAbsolute':_0x4a388a,'raw':_0x18d6d3};}function isRelativePathSegment(_0x161de5){return _0x161de5==='.'||_0x161de5==='..';}function validatePathSegment(_0x52d6be){const _0x4d01e0=a154_0x12cb;if(_0x52d6be==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x52d6be==='.'||_0x52d6be==='..')return;if(/[\x00-\x1F\x7F]/[_0x4d01e0(0x15f)](_0x52d6be))throw new Error(_0x4d01e0(0x175)+_0x52d6be);if(_0x52d6be!==_0x52d6be['trim']()){}}export function validatePath(_0x3d80b5){const _0x5c649f=a154_0x12cb;if(_0x3d80b5[_0x5c649f(0x159)]['length']===0x0&&!_0x3d80b5[_0x5c649f(0x158)])throw new Error(_0x5c649f(0x16f));if(_0x3d80b5[_0x5c649f(0x158)]){if(_0x3d80b5[_0x5c649f(0x159)][0x0]==='..')throw new Error(_0x5c649f(0x171));let _0x4034a8=0x0;for(const _0x2bc7df of _0x3d80b5[_0x5c649f(0x159)]){if(_0x2bc7df==='..'){if(_0x4034a8===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x4034a8--;}else _0x2bc7df!=='.'&&_0x4034a8++;}}}export function joinPaths(_0x571528,_0x4d5dc2){const _0x3b04da=a154_0x12cb;if(!_0x571528||_0x571528==='/')return _0x4d5dc2;if(!_0x4d5dc2||_0x4d5dc2==='.')return _0x571528;if(_0x4d5dc2[_0x3b04da(0x176)]('/'))return _0x4d5dc2;const _0xbd15c0=parsePath(_0x571528),_0x415056=parsePath(_0x4d5dc2),_0x5c982a=[..._0xbd15c0['segments']];for(const _0x24f2c0 of _0x415056[_0x3b04da(0x159)]){if(_0x24f2c0==='.')continue;else{if(_0x24f2c0==='..'){if(_0x5c982a[_0x3b04da(0x16d)]===0x0)throw new Error(_0x3b04da(0x17e));_0x5c982a[_0x3b04da(0x17f)]();}else _0x5c982a['push'](_0x24f2c0);}}const _0x23ecfc=_0x5c982a[_0x3b04da(0x178)]('/');return _0xbd15c0[_0x3b04da(0x179)]['startsWith']('/')?'/'+_0x23ecfc:_0x23ecfc;}export function normalizePath(_0x57cf9d){const _0x3e8462=a154_0x12cb,_0x285589=parsePath(_0x57cf9d),_0x1d5b25=[];for(const _0x2b93e6 of _0x285589[_0x3e8462(0x159)]){if(_0x2b93e6==='.')continue;else{if(_0x2b93e6==='..'){if(_0x1d5b25['length']===0x0){if(_0x285589['isAbsolute'])throw new Error(_0x3e8462(0x17e));_0x1d5b25[_0x3e8462(0x160)]('..');}else _0x1d5b25[_0x1d5b25[_0x3e8462(0x16d)]-0x1]==='..'?_0x1d5b25[_0x3e8462(0x160)]('..'):_0x1d5b25[_0x3e8462(0x17f)]();}else _0x1d5b25[_0x3e8462(0x160)](_0x2b93e6);}}if(_0x1d5b25[_0x3e8462(0x16d)]===0x0)return _0x285589[_0x3e8462(0x158)]?'/':'.';const _0x26e593=_0x1d5b25[_0x3e8462(0x178)]('/');return _0x285589[_0x3e8462(0x179)]['startsWith']('/')?'/'+_0x26e593:_0x26e593;}export function getParentPath(_0x51efa6){const _0x3cdb6e=a154_0x12cb,_0x3415cb=parsePath(_0x51efa6);if(_0x3415cb['segments'][_0x3cdb6e(0x16d)]<=0x1)return'/';const _0x2f91ae=_0x3415cb['segments']['slice'](0x0,-0x1)[_0x3cdb6e(0x178)]('/');return _0x3415cb[_0x3cdb6e(0x179)][_0x3cdb6e(0x176)]('/')?'/'+_0x2f91ae:_0x2f91ae;}function a154_0x25d9(){const _0x44b922=['parent_segment','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','.yml','6bTvakX','test','push','journey','3924zAXCPv','15jiTJpG','trim','Path\x20cannot\x20be\x20empty','slice','3827316yWacJP','name','exists','readFile','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','93100JXryka','length','1130vJqgpc','Relative\x20path\x20cannot\x20be\x20empty','7ZDlYFd','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','tdx.json','dirname','endsWith','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','startsWith','No\x20tdx.json\x20found\x20for\x20file:\x20','join','raw','1565016mSxYvp','segment','Cannot\x20split\x20empty\x20path','1989QJRXNt','Cannot\x20navigate\x20above\x20root','pop','Hint:\x20Run\x20`tdx\x20sg\x20pull\x20\x22Parent\x20Segment\x20Name\x22`\x20first\x20to\x20create\x20a\x20project\x20directory,\x20then\x20work\x20within\x20that\x20directory.','357885igbqyj','495XqzMTM','81003TaPpgv','isAbsolute','segments','root'];a154_0x25d9=function(){return _0x44b922;};return a154_0x25d9();}export function getBaseName(_0x27d625){const _0x36be4d=a154_0x12cb,_0x406789=parsePath(_0x27d625);return _0x406789[_0x36be4d(0x159)][_0x406789['segments']['length']-0x1]||'';}export function isChildPath(_0x82fc3d,_0xc1e716){const _0xcb8b0=a154_0x12cb,_0xb9fdd7=parsePath(_0x82fc3d),_0x3d40ef=parsePath(_0xc1e716);if(_0xb9fdd7[_0xcb8b0(0x159)][_0xcb8b0(0x16d)]<=_0x3d40ef[_0xcb8b0(0x159)][_0xcb8b0(0x16d)])return![];for(let _0x36d742=0x0;_0x36d742<_0x3d40ef['segments'][_0xcb8b0(0x16d)];_0x36d742++){if(_0xb9fdd7['segments'][_0x36d742]!==_0x3d40ef[_0xcb8b0(0x159)][_0x36d742])return![];}return!![];}export function splitPath(_0x163e7a){const _0x3a1f94=a154_0x12cb,_0x5968ec=parsePath(_0x163e7a);if(_0x5968ec['segments'][_0x3a1f94(0x16d)]===0x0)throw new Error(_0x3a1f94(0x17c));if(_0x5968ec['segments'][_0x3a1f94(0x16d)]===0x1)return{'parent':_0x5968ec[_0x3a1f94(0x159)][0x0]};return{'parent':_0x5968ec[_0x3a1f94(0x159)][0x0],'child':_0x5968ec[_0x3a1f94(0x159)][_0x3a1f94(0x166)](0x1)[_0x3a1f94(0x178)]('/')};}export function isYamlFilePath(_0x3efff3){const _0x3ba94c=a154_0x12cb;return _0x3efff3[_0x3ba94c(0x174)](_0x3ba94c(0x15d))||_0x3efff3[_0x3ba94c(0x174)]('.yaml');}function a154_0x12cb(_0x3b44ca,_0x5ee33d){_0x3b44ca=_0x3b44ca-0x154;const _0x25d961=a154_0x25d9();let _0x12cb20=_0x25d961[_0x3b44ca];return _0x12cb20;}export async function resolveYamlFilePath(_0x38cc66,_0x102c9b=nodeFileSystem){const _0x291d75=a154_0x12cb,_0x271265=a154_0x39b86e['resolve'](_0x38cc66);if(!await _0x102c9b[_0x291d75(0x169)](_0x271265))throw new Error('File\x20not\x20found:\x20'+_0x38cc66);let _0x51d876=a154_0x39b86e[_0x291d75(0x173)](_0x271265),_0xce3b27=null,_0x23840f=null;const _0x115e5b=a154_0x39b86e['parse'](_0x51d876)[_0x291d75(0x15a)];while(_0x51d876!==_0x115e5b){const _0x53ec85=a154_0x39b86e[_0x291d75(0x178)](_0x51d876,_0x291d75(0x172));if(await _0x102c9b[_0x291d75(0x169)](_0x53ec85)){_0xce3b27=_0x53ec85,_0x23840f=_0x51d876;break;}_0x51d876=a154_0x39b86e[_0x291d75(0x173)](_0x51d876);}if(!_0xce3b27||!_0x23840f)throw new Error(_0x291d75(0x177)+_0x38cc66+'\x0a'+_0x291d75(0x154));const _0x1db33e=await _0x102c9b[_0x291d75(0x16a)](_0xce3b27),_0xbf14e2=JSON['parse'](_0x1db33e),_0x110118=_0xbf14e2[_0x291d75(0x15b)];if(!_0x110118)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x42f089=await _0x102c9b[_0x291d75(0x16a)](_0x271265),_0x4903a0=a154_0xe966bf(_0x42f089),_0x22dccb=_0x4903a0[_0x291d75(0x168)];if(!_0x22dccb)throw new Error(_0x291d75(0x16b)+_0x38cc66);const _0x34b16c=_0x4903a0['type']===_0x291d75(0x161)?_0x291d75(0x161):_0x291d75(0x17b),_0x47cb61=a154_0x39b86e['relative'](_0x23840f,_0x271265),_0x28da8f=a154_0x39b86e[_0x291d75(0x173)](_0x47cb61),_0x2c1e6e=_0x28da8f==='.'?'':_0x28da8f['replace'](/\\/g,'/'),_0x4ffa3d=_0x2c1e6e?_0x110118+'/'+_0x2c1e6e+'/'+_0x22dccb:_0x110118+'/'+_0x22dccb;return{'parentSegment':_0x110118,'segmentName':_0x22dccb,'folderPath':_0x2c1e6e,'fullPath':_0x4ffa3d,'resourceType':_0x34b16c,'content':_0x42f089};}
1
+ (function(_0x71fcee,_0x1b56bf){const _0x48aaa1=a154_0x3fdd,_0x168407=_0x71fcee();while(!![]){try{const _0x3934a0=-parseInt(_0x48aaa1(0x157))/0x1*(parseInt(_0x48aaa1(0x138))/0x2)+parseInt(_0x48aaa1(0x13b))/0x3+-parseInt(_0x48aaa1(0x146))/0x4*(parseInt(_0x48aaa1(0x163))/0x5)+parseInt(_0x48aaa1(0x155))/0x6*(parseInt(_0x48aaa1(0x13a))/0x7)+-parseInt(_0x48aaa1(0x161))/0x8+parseInt(_0x48aaa1(0x142))/0x9+parseInt(_0x48aaa1(0x13f))/0xa*(parseInt(_0x48aaa1(0x137))/0xb);if(_0x3934a0===_0x1b56bf)break;else _0x168407['push'](_0x168407['shift']());}catch(_0x2cbf78){_0x168407['push'](_0x168407['shift']());}}}(a154_0x5265,0x630a9));import a154_0x5ee4dc from'path';import{parse as a154_0x45e5e7}from'yaml';import{nodeFileSystem}from'../io/node-filesystem.js';export function parsePath(_0x5f0701){const _0xc3a5a0=a154_0x3fdd;if(!_0x5f0701||_0x5f0701['trim']()==='')throw new Error(_0xc3a5a0(0x13d));const _0x32e22e=_0x5f0701[_0xc3a5a0(0x156)]();if(_0x32e22e==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5f0701};const _0x13005b=_0x32e22e[_0xc3a5a0(0x13c)]('/')?_0x32e22e['substring'](0x1):_0x32e22e,_0x42e580=_0x13005b[_0xc3a5a0(0x15c)]('/')[_0xc3a5a0(0x14e)](_0x2d3d9c=>_0x2d3d9c!=='');if(_0x42e580[_0xc3a5a0(0x15d)]===0x0)throw new Error(_0xc3a5a0(0x144));const _0x34435b=_0x32e22e[_0xc3a5a0(0x13c)]('/')||!isRelativePathSegment(_0x42e580[0x0]);for(const _0x4fd203 of _0x42e580){validatePathSegment(_0x4fd203);}return{'segments':_0x42e580,'isAbsolute':_0x34435b,'raw':_0x5f0701};}function isRelativePathSegment(_0x4a9483){return _0x4a9483==='.'||_0x4a9483==='..';}function validatePathSegment(_0x1ea6c7){const _0xc352c6=a154_0x3fdd;if(_0x1ea6c7==='')throw new Error(_0xc352c6(0x159));if(_0x1ea6c7==='.'||_0x1ea6c7==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x1ea6c7))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x1ea6c7);if(_0x1ea6c7!==_0x1ea6c7[_0xc352c6(0x156)]()){}}export function validatePath(_0x11ec68){const _0x40a6f8=a154_0x3fdd;if(_0x11ec68[_0x40a6f8(0x14c)][_0x40a6f8(0x15d)]===0x0&&!_0x11ec68[_0x40a6f8(0x14a)])throw new Error(_0x40a6f8(0x162));if(_0x11ec68[_0x40a6f8(0x14a)]){if(_0x11ec68[_0x40a6f8(0x14c)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1a528d=0x0;for(const _0x14f41b of _0x11ec68[_0x40a6f8(0x14c)]){if(_0x14f41b==='..'){if(_0x1a528d===0x0)throw new Error(_0x40a6f8(0x154));_0x1a528d--;}else _0x14f41b!=='.'&&_0x1a528d++;}}}export function joinPaths(_0x3d6da8,_0x14fde2){const _0x7158b=a154_0x3fdd;if(!_0x3d6da8||_0x3d6da8==='/')return _0x14fde2;if(!_0x14fde2||_0x14fde2==='.')return _0x3d6da8;if(_0x14fde2[_0x7158b(0x13c)]('/'))return _0x14fde2;const _0x122c94=parsePath(_0x3d6da8),_0x579305=parsePath(_0x14fde2),_0x340ccc=[..._0x122c94[_0x7158b(0x14c)]];for(const _0x27b423 of _0x579305[_0x7158b(0x14c)]){if(_0x27b423==='.')continue;else{if(_0x27b423==='..'){if(_0x340ccc[_0x7158b(0x15d)]===0x0)throw new Error(_0x7158b(0x135));_0x340ccc['pop']();}else _0x340ccc[_0x7158b(0x147)](_0x27b423);}}const _0x37f37f=_0x340ccc[_0x7158b(0x145)]('/');return _0x122c94[_0x7158b(0x149)][_0x7158b(0x13c)]('/')?'/'+_0x37f37f:_0x37f37f;}export function normalizePath(_0x499a9a){const _0x250217=a154_0x3fdd,_0x170003=parsePath(_0x499a9a),_0x1acfd1=[];for(const _0x507912 of _0x170003[_0x250217(0x14c)]){if(_0x507912==='.')continue;else{if(_0x507912==='..'){if(_0x1acfd1[_0x250217(0x15d)]===0x0){if(_0x170003[_0x250217(0x14a)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x1acfd1[_0x250217(0x147)]('..');}else _0x1acfd1[_0x1acfd1['length']-0x1]==='..'?_0x1acfd1['push']('..'):_0x1acfd1[_0x250217(0x139)]();}else _0x1acfd1['push'](_0x507912);}}if(_0x1acfd1[_0x250217(0x15d)]===0x0)return _0x170003[_0x250217(0x14a)]?'/':'.';const _0x276fef=_0x1acfd1[_0x250217(0x145)]('/');return _0x170003[_0x250217(0x149)]['startsWith']('/')?'/'+_0x276fef:_0x276fef;}export function getParentPath(_0x4735be){const _0x358865=a154_0x3fdd,_0x46a045=parsePath(_0x4735be);if(_0x46a045['segments'][_0x358865(0x15d)]<=0x1)return'/';const _0x12a478=_0x46a045[_0x358865(0x14c)]['slice'](0x0,-0x1)[_0x358865(0x145)]('/');return _0x46a045[_0x358865(0x149)][_0x358865(0x13c)]('/')?'/'+_0x12a478:_0x12a478;}function a154_0x5265(){const _0x531d32=['length','slice','dirname','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','3281432zTnpvw','Relative\x20path\x20cannot\x20be\x20empty','20YJTvZs','Cannot\x20navigate\x20above\x20root','.yml','891LUklxK','6HnASXW','pop','16450BFIOax','371532cJiyln','startsWith','Path\x20cannot\x20be\x20empty','Cannot\x20split\x20empty\x20path','2810uQwLTm','parse','endsWith','5891643EwmSUB','replace','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','join','545932rzZtev','push','exists','raw','isAbsolute','resolve','segments','root','filter','File\x20not\x20found:\x20','readFile','name','parent_segment','journey','Path\x20attempts\x20to\x20navigate\x20above\x20root','1938PqijOG','trim','66166FjJRyv','.yaml','Path\x20segment\x20cannot\x20be\x20empty','tdx.json','type','split'];a154_0x5265=function(){return _0x531d32;};return a154_0x5265();}export function getBaseName(_0x527057){const _0x4d2e29=a154_0x3fdd,_0x1ba8e0=parsePath(_0x527057);return _0x1ba8e0[_0x4d2e29(0x14c)][_0x1ba8e0[_0x4d2e29(0x14c)]['length']-0x1]||'';}export function isChildPath(_0x10ce7b,_0x5db967){const _0x576f6a=a154_0x3fdd,_0x1be0e5=parsePath(_0x10ce7b),_0x470e60=parsePath(_0x5db967);if(_0x1be0e5[_0x576f6a(0x14c)][_0x576f6a(0x15d)]<=_0x470e60['segments'][_0x576f6a(0x15d)])return![];for(let _0x93a153=0x0;_0x93a153<_0x470e60[_0x576f6a(0x14c)][_0x576f6a(0x15d)];_0x93a153++){if(_0x1be0e5['segments'][_0x93a153]!==_0x470e60[_0x576f6a(0x14c)][_0x93a153])return![];}return!![];}export function splitPath(_0x4a284b){const _0x411eff=a154_0x3fdd,_0x7a7fff=parsePath(_0x4a284b);if(_0x7a7fff[_0x411eff(0x14c)]['length']===0x0)throw new Error(_0x411eff(0x13e));if(_0x7a7fff[_0x411eff(0x14c)][_0x411eff(0x15d)]===0x1)return{'parent':_0x7a7fff[_0x411eff(0x14c)][0x0]};return{'parent':_0x7a7fff[_0x411eff(0x14c)][0x0],'child':_0x7a7fff[_0x411eff(0x14c)][_0x411eff(0x15e)](0x1)['join']('/')};}function a154_0x3fdd(_0x511c45,_0x36fab9){_0x511c45=_0x511c45-0x135;const _0x52653b=a154_0x5265();let _0x3fdd33=_0x52653b[_0x511c45];return _0x3fdd33;}export function isYamlFilePath(_0xe262fb){const _0x106dc9=a154_0x3fdd;return _0xe262fb[_0x106dc9(0x141)](_0x106dc9(0x136))||_0xe262fb[_0x106dc9(0x141)](_0x106dc9(0x158));}export async function resolveYamlFilePath(_0x4bc486,_0x2467ce=nodeFileSystem){const _0xbc29c2=a154_0x3fdd,_0x2920fe=a154_0x5ee4dc[_0xbc29c2(0x14b)](_0x4bc486);if(!await _0x2467ce[_0xbc29c2(0x148)](_0x2920fe))throw new Error(_0xbc29c2(0x14f)+_0x4bc486);let _0x5a877=a154_0x5ee4dc[_0xbc29c2(0x15f)](_0x2920fe),_0x3f7933=null,_0x12b966=null;const _0xb4c5fc=a154_0x5ee4dc[_0xbc29c2(0x140)](_0x5a877)[_0xbc29c2(0x14d)];while(_0x5a877!==_0xb4c5fc){const _0x4d9c9c=a154_0x5ee4dc[_0xbc29c2(0x145)](_0x5a877,_0xbc29c2(0x15a));if(await _0x2467ce[_0xbc29c2(0x148)](_0x4d9c9c)){_0x3f7933=_0x4d9c9c,_0x12b966=_0x5a877;break;}_0x5a877=a154_0x5ee4dc['dirname'](_0x5a877);}if(!_0x3f7933||!_0x12b966)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4bc486+'\x0a'+'Hint:\x20Run\x20`tdx\x20sg\x20pull\x20\x22Parent\x20Segment\x20Name\x22`\x20first\x20to\x20create\x20a\x20project\x20directory,\x20then\x20work\x20within\x20that\x20directory.');const _0x2101b9=await _0x2467ce[_0xbc29c2(0x150)](_0x3f7933),_0x5177a3=JSON['parse'](_0x2101b9),_0x200910=_0x5177a3[_0xbc29c2(0x152)];if(!_0x200910)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x37ea30=await _0x2467ce[_0xbc29c2(0x150)](_0x2920fe),_0x4edfed=a154_0x45e5e7(_0x37ea30),_0x4c7294=_0x4edfed[_0xbc29c2(0x151)];if(!_0x4c7294)throw new Error(_0xbc29c2(0x160)+_0x4bc486);const _0x46aa8d=_0x4edfed[_0xbc29c2(0x15b)]===_0xbc29c2(0x153)?_0xbc29c2(0x153):'segment',_0x4063e2=a154_0x5ee4dc['relative'](_0x12b966,_0x2920fe),_0x920898=a154_0x5ee4dc[_0xbc29c2(0x15f)](_0x4063e2),_0x33e39d=_0x920898==='.'?'':_0x920898[_0xbc29c2(0x143)](/\\/g,'/'),_0x144bbc=_0x33e39d?_0x200910+'/'+_0x33e39d+'/'+_0x4c7294:_0x200910+'/'+_0x4c7294;return{'parentSegment':_0x200910,'segmentName':_0x4c7294,'folderPath':_0x33e39d,'fullPath':_0x144bbc,'resourceType':_0x46aa8d,'content':_0x37ea30};}
@@ -1 +1 @@
1
- function a155_0x5bc4(){const _0x54ec23=['20kSMFVO','474087OZxTxD','35vNakMw','substring','.\x20Parent\x20name\x20cannot\x20be\x20empty','1120040hYyPDK','351116NpdWmF','Invalid\x20segment\x20reference\x20format:\x20','21135897mebexE','1116510hrQJgv','741791nfgpFv','.\x20Child\x20name\x20cannot\x20be\x20empty','1584805wFOQQa'];a155_0x5bc4=function(){return _0x54ec23;};return a155_0x5bc4();}function a155_0x5528(_0x5e41c9,_0x435832){_0x5e41c9=_0x5e41c9-0xd5;const _0x5bc499=a155_0x5bc4();let _0x55280b=_0x5bc499[_0x5e41c9];return _0x55280b;}(function(_0x13b0fb,_0x1ef6a4){const _0x40b045=a155_0x5528,_0x288a16=_0x13b0fb();while(!![]){try{const _0x30320b=-parseInt(_0x40b045(0xe1))/0x1+parseInt(_0x40b045(0xdd))/0x2+-parseInt(_0x40b045(0xd8))/0x3*(parseInt(_0x40b045(0xd7))/0x4)+parseInt(_0x40b045(0xd6))/0x5+-parseInt(_0x40b045(0xe0))/0x6+parseInt(_0x40b045(0xd9))/0x7*(-parseInt(_0x40b045(0xdc))/0x8)+parseInt(_0x40b045(0xdf))/0x9;if(_0x30320b===_0x1ef6a4)break;else _0x288a16['push'](_0x288a16['shift']());}catch(_0x1a8347){_0x288a16['push'](_0x288a16['shift']());}}}(a155_0x5bc4,0x673fa));export function parseSegmentRef(_0x29a5d4){const _0x2a48e9=a155_0x5528,_0x1fd6bc=_0x29a5d4['indexOf']('/');if(_0x1fd6bc===-0x1)return{'parentId':_0x29a5d4};if(_0x1fd6bc===0x0)throw new Error(_0x2a48e9(0xde)+_0x29a5d4+_0x2a48e9(0xdb));const _0x483fa9=_0x29a5d4['substring'](0x0,_0x1fd6bc),_0x182194=_0x29a5d4[_0x2a48e9(0xda)](_0x1fd6bc+0x1);if(_0x182194==='')throw new Error(_0x2a48e9(0xde)+_0x29a5d4+_0x2a48e9(0xd5));return{'parentId':_0x483fa9,'childId':_0x182194};}
1
+ function a155_0x2d57(){const _0x36b884=['30MSSUpq','indexOf','2326236AyIrKD','Invalid\x20segment\x20reference\x20format:\x20','1642840gKSckP','.\x20Parent\x20name\x20cannot\x20be\x20empty','576653pQOkBm','821312Qfunrf','27CSRTIy','169412FKmdJU','.\x20Child\x20name\x20cannot\x20be\x20empty','1647064NDWqmU','substring','59400LDMfWl'];a155_0x2d57=function(){return _0x36b884;};return a155_0x2d57();}(function(_0x20214f,_0x449ffa){const _0x5a4fd9=a155_0x5b3b,_0x1b347d=_0x20214f();while(!![]){try{const _0xf07d3b=-parseInt(_0x5a4fd9(0x164))/0x1+parseInt(_0x5a4fd9(0x162))/0x2+-parseInt(_0x5a4fd9(0x169))/0x3*(-parseInt(_0x5a4fd9(0x168))/0x4)+-parseInt(_0x5a4fd9(0x16d))/0x5+-parseInt(_0x5a4fd9(0x16b))/0x6+-parseInt(_0x5a4fd9(0x16f))/0x7+-parseInt(_0x5a4fd9(0x166))/0x8*(-parseInt(_0x5a4fd9(0x163))/0x9);if(_0xf07d3b===_0x449ffa)break;else _0x1b347d['push'](_0x1b347d['shift']());}catch(_0x12f67b){_0x1b347d['push'](_0x1b347d['shift']());}}}(a155_0x2d57,0x32f64));function a155_0x5b3b(_0x32470a,_0x5100cb){_0x32470a=_0x32470a-0x162;const _0x2d57a5=a155_0x2d57();let _0x5b3bf8=_0x2d57a5[_0x32470a];return _0x5b3bf8;}export function parseSegmentRef(_0x5827cf){const _0x616023=a155_0x5b3b,_0x3108bc=_0x5827cf[_0x616023(0x16a)]('/');if(_0x3108bc===-0x1)return{'parentId':_0x5827cf};if(_0x3108bc===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5827cf+_0x616023(0x16e));const _0x5e2b06=_0x5827cf[_0x616023(0x167)](0x0,_0x3108bc),_0x288c0c=_0x5827cf[_0x616023(0x167)](_0x3108bc+0x1);if(_0x288c0c==='')throw new Error(_0x616023(0x16c)+_0x5827cf+_0x616023(0x165));return{'parentId':_0x5e2b06,'childId':_0x288c0c};}
@@ -1 +1 @@
1
- function a156_0x220c(){const _0x11a908=['skipSchema','endsWith','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','Attribute\x20\x27','safeParse','.source','error','invalid_value','5aFicFe','1793580UiuMJh','attribute','1227770fVcJMG','EMPTY_ATTRIBUTE','MISSING_BETWEEN_BOUNDS','\x27\x20with\x20attribute\x20\x27','map','.attribute','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','filter','.segment','length','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','level','params','Behavior','path','type','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','message','issues','MISSING_NAME','custom','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','push','match','rule','14JreeOK','.type','rule.type','arrayMatching','name','warning','4955864ylxRsR','EMPTY_CONDITIONS','INVALID_RULE_TYPE','.conditions','document','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','.operator.type','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','SEGMENT_SCHEMA_ERROR','3512136TNRgSr','NESTED_CONDITION_GROUP','source','813211Eadhca','INVALID_OPERATOR_TYPE','Behavior\x20source\x20\x27','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','198IyDzdr','BEHAVIOR_SOURCE_MISSING_FILTER','MISSING_SEGMENT_REFERENCE','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','validationCode','4833618MwWaiY','1751036kxuGuE','conditions','data','code','MISSING_OPERATOR_VALUE','includes','.conditions[','MISSING_TIME_UNIT','success'];a156_0x220c=function(){return _0x11a908;};return a156_0x220c();}(function(_0x534f91,_0x193ebe){const _0x43d3b7=a156_0x357f,_0x5a5de1=_0x534f91();while(!![]){try{const _0x11731b=-parseInt(_0x43d3b7(0x107))/0x1+parseInt(_0x43d3b7(0x111))/0x2+parseInt(_0x43d3b7(0x123))/0x3+parseInt(_0x43d3b7(0xfb))/0x4*(-parseInt(_0x43d3b7(0x122))/0x5)+-parseInt(_0x43d3b7(0x110))/0x6*(parseInt(_0x43d3b7(0xf5))/0x7)+parseInt(_0x43d3b7(0x104))/0x8+-parseInt(_0x43d3b7(0x10b))/0x9*(-parseInt(_0x43d3b7(0x125))/0xa);if(_0x11731b===_0x193ebe)break;else _0x5a5de1['push'](_0x5a5de1['shift']());}catch(_0x327048){_0x5a5de1['push'](_0x5a5de1['shift']());}}}(a156_0x220c,0xe7f5a));function a156_0x357f(_0x537ce2,_0x5860d5){_0x537ce2=_0x537ce2-0xef;const _0x220c8d=a156_0x220c();let _0x357fd7=_0x220c8d[_0x537ce2];return _0x357fd7;}import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x1b1f5a,_0x25c622={},_0x2e6687={}){const _0x27a686=a156_0x357f;if(_0x2e6687[_0x27a686(0x11a)])return runSemanticChecks(_0x1b1f5a,_0x25c622);const _0x2bc94=SegmentDefSchema[_0x27a686(0x11e)](_0x1b1f5a);if(_0x2bc94[_0x27a686(0x119)])return runSemanticChecks(_0x2bc94[_0x27a686(0x113)],_0x25c622);return zodErrorsToValidationResult(_0x2bc94['error'],_0x25c622);}export function validateRuleDef(_0x682835,_0x199331,_0x573c07){const _0x2d9e8a=a156_0x357f;if(!_0x682835)return[];const _0x414752=RuleDefSchema['safeParse'](_0x682835);if(_0x414752['success'])return checkRule(_0x414752[_0x2d9e8a(0x113)],_0x199331,_0x573c07);const _0x328572=flattenZodIssues(_0x414752['error'][_0x2d9e8a(0x137)]);return _0x328572[_0x2d9e8a(0x129)](_0x862f09=>{const _0x46f1c8=_0x2d9e8a,_0x2d6ec0=formatZodPath(_0x862f09[_0x46f1c8(0x133)]),_0x539044=_0x2d6ec0?_0x199331+'.'+_0x2d6ec0:_0x199331,_0x223f9c=mapZodIssueToCode(_0x862f09,_0x2d6ec0),_0x1e81a7=getLocationFromPath(_0x573c07[_0x46f1c8(0xff)],_0x573c07[_0x46f1c8(0x106)],pathToArray(_0x539044));return{'level':_0x46f1c8(0x120),'path':_0x539044,'code':_0x223f9c,'message':_0x862f09[_0x46f1c8(0x136)],..._0x1e81a7&&{'location':_0x1e81a7}};});}function zodErrorsToValidationResult(_0x481c12,_0xf0dfd0){const _0xc454a=a156_0x357f,_0x1d7694=flattenZodIssues(_0x481c12[_0xc454a(0x137)]),_0x5bf916=_0x1d7694[_0xc454a(0x129)](_0x23487e=>{const _0x20963f=_0xc454a,_0xb56a2c=formatZodPath(_0x23487e[_0x20963f(0x133)]),_0x58682e=mapZodIssueToCode(_0x23487e,_0xb56a2c),_0x2810bd=getLocationFromPath(_0xf0dfd0[_0x20963f(0xff)],_0xf0dfd0[_0x20963f(0x106)],_0x23487e[_0x20963f(0x133)][_0x20963f(0x129)](_0x4a5319=>typeof _0x4a5319==='symbol'?String(_0x4a5319):_0x4a5319));return{'level':_0x20963f(0x120),'path':_0xb56a2c,'code':_0x58682e,'message':_0x23487e[_0x20963f(0x136)],..._0x2810bd&&{'location':_0x2810bd}};});return{'valid':![],'errors':_0x5bf916,'warnings':[]};}function mapZodIssueToCode(_0x5a61b2,_0x4e14ca){const _0x1caeca=a156_0x357f,_0x56512f=_0x5a61b2['code']===_0x1caeca(0xf0)?_0x5a61b2[_0x1caeca(0x131)]:undefined;if(_0x4e14ca===_0x1caeca(0xf9))return _0x1caeca(0xef);if(_0x4e14ca===_0x1caeca(0xf7)||_0x4e14ca['endsWith'](_0x1caeca(0xf6))){if(_0x5a61b2[_0x1caeca(0x114)]===_0x1caeca(0x121)){if(_0x4e14ca===_0x1caeca(0xf7)||_0x4e14ca[_0x1caeca(0xf3)](/\.conditions\[\d+\]\.type$/))return _0x1caeca(0xfd);}}if(_0x4e14ca[_0x1caeca(0x11b)](_0x1caeca(0x101)))return _0x1caeca(0x108);if(_0x4e14ca[_0x1caeca(0x11b)]('.operator.value'))return _0x1caeca(0x115);if(_0x56512f?.['validationCode']==='MISSING_BETWEEN_BOUNDS')return _0x1caeca(0x127);if(_0x56512f?.[_0x1caeca(0x10f)]===_0x1caeca(0x118))return _0x1caeca(0x118);if(_0x4e14ca[_0x1caeca(0x11b)](_0x1caeca(0xfe))||_0x4e14ca===_0x1caeca(0x112))return'MISSING_CONDITIONS';if(_0x4e14ca[_0x1caeca(0x116)](_0x1caeca(0xf8)))return'INVALID_ARRAY_MATCHING';if(_0x4e14ca['endsWith'](_0x1caeca(0x12d)))return _0x1caeca(0x10d);return _0x1caeca(0x103);}function runSemanticChecks(_0x1ad1d6,_0x1727ec){const _0x44ccd1=a156_0x357f,_0x2e1793=[];_0x1ad1d6[_0x44ccd1(0xf4)]&&_0x2e1793[_0x44ccd1(0xf2)](...checkRule(_0x1ad1d6[_0x44ccd1(0xf4)],_0x44ccd1(0xf4),_0x1727ec));const _0x37ba8c=_0x2e1793[_0x44ccd1(0x12c)](_0x4d7cbe=>_0x4d7cbe[_0x44ccd1(0x130)]===_0x44ccd1(0x120)),_0x5cf2bf=_0x2e1793['filter'](_0x56ad5a=>_0x56ad5a['level']===_0x44ccd1(0xfa));return{'valid':_0x37ba8c[_0x44ccd1(0x12e)]===0x0,'errors':_0x37ba8c,'warnings':_0x5cf2bf};}function checkRule(_0x58a3b8,_0x5ec7ea,_0x31a233){const _0x4cff03=a156_0x357f,_0x4a0e08=[];if(_0x58a3b8[_0x4cff03(0x112)][_0x4cff03(0x12e)]===0x0)return _0x4a0e08['push']({'level':_0x4cff03(0x120),'path':_0x5ec7ea+_0x4cff03(0xfe),'code':_0x4cff03(0xfc),'message':_0x4cff03(0x135),'location':getLocationFromPath(_0x31a233[_0x4cff03(0xff)],_0x31a233[_0x4cff03(0x106)],pathToArray(_0x5ec7ea+_0x4cff03(0xfe)))}),_0x4a0e08;return _0x4a0e08['push'](...checkConditions(_0x58a3b8[_0x4cff03(0x112)],_0x5ec7ea,_0x31a233)),_0x4a0e08;}function checkConditions(_0x584e78,_0x7ad27c,_0x260f8a){const _0x354e2b=a156_0x357f,_0x37e9c9=[];for(let _0x358892=0x0;_0x358892<_0x584e78['length'];_0x358892++){const _0x50cca8=_0x584e78[_0x358892],_0xcfebdf=_0x7ad27c+_0x354e2b(0x117)+_0x358892+']';_0x37e9c9[_0x354e2b(0xf2)](...checkCondition(_0x50cca8,_0xcfebdf,_0x260f8a));}return _0x37e9c9;}function checkCondition(_0x3e9e1d,_0x3fc554,_0x296942){const _0xe35093=a156_0x357f,_0x50ff36=[];if(_0x3e9e1d[_0xe35093(0x134)]==='And'||_0x3e9e1d[_0xe35093(0x134)]==='Or'){if(_0x3e9e1d['conditions'][_0xe35093(0x12e)]===0x0)_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0x120),'path':_0x3fc554+_0xe35093(0xfe),'code':'EMPTY_CONDITIONS','message':_0x3e9e1d['type']+_0xe35093(0x12f),'location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942[_0xe35093(0x106)],pathToArray(_0x3fc554+'.conditions'))});else{const _0x3cee47=_0x3e9e1d['description']!==undefined;!_0x3cee47&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0xfa),'path':_0x3fc554,'code':_0xe35093(0x105),'message':_0x3e9e1d['type']+'\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20'+_0xe35093(0xf1)+_0xe35093(0x10e),'location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942[_0xe35093(0x106)],pathToArray(_0x3fc554))}),_0x50ff36[_0xe35093(0xf2)](...checkConditions(_0x3e9e1d[_0xe35093(0x112)],_0x3fc554,_0x296942));}return _0x50ff36;}if(_0x3e9e1d[_0xe35093(0x134)]==='Value'||_0x3e9e1d[_0xe35093(0x134)]===_0xe35093(0x132)){const _0x312308=_0x3e9e1d,_0x56bd26=_0x312308['source'],_0x131934=_0x312308['aggregation'],_0x21a40d=_0x56bd26||_0x131934;(!_0x312308[_0xe35093(0x124)]||_0x312308[_0xe35093(0x124)]==='')&&(!_0x21a40d&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0x120),'path':_0x3fc554+'.attribute','code':_0xe35093(0x126),'message':'Attribute\x20name\x20cannot\x20be\x20empty','location':getLocationFromPath(_0x296942['document'],_0x296942[_0xe35093(0x106)],pathToArray(_0x3fc554+'.attribute'))}));_0x312308[_0xe35093(0x12c)]&&_0x50ff36[_0xe35093(0xf2)](...checkRule(_0x312308['filter'],_0x3fc554+'.filter',_0x296942));if(_0x312308[_0xe35093(0x106)]){const _0x520d7d=_0x312308[_0xe35093(0x124)]&&_0x312308[_0xe35093(0x124)]!=='';_0x520d7d&&!_0x312308[_0xe35093(0x12c)]&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0x120),'path':_0x3fc554+_0xe35093(0x11f),'code':_0xe35093(0x10c),'message':_0xe35093(0x109)+_0x312308['source']+_0xe35093(0x128)+_0x312308[_0xe35093(0x124)]+'\x27\x20'+_0xe35093(0x11c)+_0xe35093(0x10a)+_0xe35093(0x12b),'location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942['source'],pathToArray(_0x3fc554+_0xe35093(0x11f)))}),_0x520d7d&&_0x312308[_0xe35093(0x12c)]&&_0x50ff36[_0xe35093(0xf2)]({'level':_0xe35093(0xfa),'path':_0x3fc554+_0xe35093(0x12a),'code':_0xe35093(0x100),'message':_0xe35093(0x11d)+_0x312308[_0xe35093(0x124)]+_0xe35093(0x102)+'For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','location':getLocationFromPath(_0x296942[_0xe35093(0xff)],_0x296942['source'],pathToArray(_0x3fc554+_0xe35093(0x12a)))});}}return _0x50ff36;}
1
+ (function(_0x30ab9f,_0x27034a){const _0x1fc762=a156_0x19b8,_0x10a443=_0x30ab9f();while(!![]){try{const _0x29d26b=parseInt(_0x1fc762(0x145))/0x1*(-parseInt(_0x1fc762(0x127))/0x2)+-parseInt(_0x1fc762(0x104))/0x3*(-parseInt(_0x1fc762(0x114))/0x4)+-parseInt(_0x1fc762(0x148))/0x5*(-parseInt(_0x1fc762(0x117))/0x6)+-parseInt(_0x1fc762(0x12a))/0x7+parseInt(_0x1fc762(0x115))/0x8*(-parseInt(_0x1fc762(0x109))/0x9)+parseInt(_0x1fc762(0x11b))/0xa*(-parseInt(_0x1fc762(0x121))/0xb)+parseInt(_0x1fc762(0x101))/0xc*(parseInt(_0x1fc762(0xff))/0xd);if(_0x29d26b===_0x27034a)break;else _0x10a443['push'](_0x10a443['shift']());}catch(_0x81787f){_0x10a443['push'](_0x10a443['shift']());}}}(a156_0x4077,0x22a3c));function a156_0x19b8(_0x2340a4,_0x1e0943){_0x2340a4=_0x2340a4-0xff;const _0x4077bf=a156_0x4077();let _0x19b8f2=_0x4077bf[_0x2340a4];return _0x19b8f2;}import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';function a156_0x4077(){const _0x42e4ff=['message','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','.conditions','1179wTowqZ','filter','.attribute','SEGMENT_SCHEMA_ERROR','code','.source','MISSING_TIME_UNIT','description','validationCode','map','includes','4iHXERe','15056DCUusH','custom','2238SVbSLu','success','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','conditions','10WaLDzS','Value','params','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','INVALID_RULE_TYPE','path','2654333EXuXcf','attribute','symbol','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','level','rule','14RpuKjx','Attribute\x20name\x20cannot\x20be\x20empty','issues','133665aWQuQe','.segment','INVALID_OPERATOR_TYPE','EMPTY_CONDITIONS','MISSING_OPERATOR_VALUE','aggregation','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','safeParse','skipSchema','error','source','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','push','EMPTY_ATTRIBUTE','invalid_value','document','endsWith','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','Attribute\x20\x27','Behavior\x20source\x20\x27','rule.type','match','\x27\x20with\x20attribute\x20\x27','BEHAVIOR_SOURCE_MISSING_FILTER','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','data','type','4442HJccjq','MISSING_BETWEEN_BOUNDS','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','3470HMemJl','19838FDGwnI','length','2328RqNbNa','MISSING_CONDITIONS','name','375036GZUICf','warning'];a156_0x4077=function(){return _0x42e4ff;};return a156_0x4077();}import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x56d8f7,_0x202fda={},_0x35e1d1={}){const _0x1d51a5=a156_0x19b8;if(_0x35e1d1[_0x1d51a5(0x132)])return runSemanticChecks(_0x56d8f7,_0x202fda);const _0x3af966=SegmentDefSchema[_0x1d51a5(0x131)](_0x56d8f7);if(_0x3af966[_0x1d51a5(0x118)])return runSemanticChecks(_0x3af966[_0x1d51a5(0x143)],_0x202fda);return zodErrorsToValidationResult(_0x3af966[_0x1d51a5(0x133)],_0x202fda);}export function validateRuleDef(_0x4befdb,_0x4b5074,_0x477f19){const _0x571952=a156_0x19b8;if(!_0x4befdb)return[];const _0x2551c2=RuleDefSchema[_0x571952(0x131)](_0x4befdb);if(_0x2551c2[_0x571952(0x118)])return checkRule(_0x2551c2[_0x571952(0x143)],_0x4b5074,_0x477f19);const _0x523056=flattenZodIssues(_0x2551c2[_0x571952(0x133)][_0x571952(0x129)]);return _0x523056[_0x571952(0x112)](_0x5ba40b=>{const _0x57a089=_0x571952,_0x3e74fc=formatZodPath(_0x5ba40b[_0x57a089(0x120)]),_0x57ec40=_0x3e74fc?_0x4b5074+'.'+_0x3e74fc:_0x4b5074,_0x22f738=mapZodIssueToCode(_0x5ba40b,_0x3e74fc),_0x9f4904=getLocationFromPath(_0x477f19[_0x57a089(0x139)],_0x477f19['source'],pathToArray(_0x57ec40));return{'level':_0x57a089(0x133),'path':_0x57ec40,'code':_0x22f738,'message':_0x5ba40b[_0x57a089(0x106)],..._0x9f4904&&{'location':_0x9f4904}};});}function zodErrorsToValidationResult(_0x7f50c6,_0x5ca722){const _0x524e70=a156_0x19b8,_0x50e394=flattenZodIssues(_0x7f50c6[_0x524e70(0x129)]),_0x273773=_0x50e394[_0x524e70(0x112)](_0xddc6e8=>{const _0x333e7f=_0x524e70,_0x470b4f=formatZodPath(_0xddc6e8[_0x333e7f(0x120)]),_0x3157ed=mapZodIssueToCode(_0xddc6e8,_0x470b4f),_0x3d1069=getLocationFromPath(_0x5ca722[_0x333e7f(0x139)],_0x5ca722[_0x333e7f(0x134)],_0xddc6e8[_0x333e7f(0x120)]['map'](_0x1adcc3=>typeof _0x1adcc3===_0x333e7f(0x123)?String(_0x1adcc3):_0x1adcc3));return{'level':'error','path':_0x470b4f,'code':_0x3157ed,'message':_0xddc6e8['message'],..._0x3d1069&&{'location':_0x3d1069}};});return{'valid':![],'errors':_0x273773,'warnings':[]};}function mapZodIssueToCode(_0x2b0da6,_0x43972e){const _0x30b396=a156_0x19b8,_0x3c9b48=_0x2b0da6[_0x30b396(0x10d)]===_0x30b396(0x116)?_0x2b0da6[_0x30b396(0x11d)]:undefined;if(_0x43972e===_0x30b396(0x103))return'MISSING_NAME';if(_0x43972e===_0x30b396(0x13e)||_0x43972e[_0x30b396(0x13a)]('.type')){if(_0x2b0da6[_0x30b396(0x10d)]===_0x30b396(0x138)){if(_0x43972e===_0x30b396(0x13e)||_0x43972e[_0x30b396(0x13f)](/\.conditions\[\d+\]\.type$/))return _0x30b396(0x11f);}}if(_0x43972e['endsWith']('.operator.type'))return _0x30b396(0x12c);if(_0x43972e['endsWith']('.operator.value'))return _0x30b396(0x12e);if(_0x3c9b48?.['validationCode']===_0x30b396(0x146))return _0x30b396(0x146);if(_0x3c9b48?.[_0x30b396(0x111)]===_0x30b396(0x10f))return _0x30b396(0x10f);if(_0x43972e[_0x30b396(0x13a)]('.conditions')||_0x43972e===_0x30b396(0x11a))return _0x30b396(0x102);if(_0x43972e[_0x30b396(0x113)]('arrayMatching'))return'INVALID_ARRAY_MATCHING';if(_0x43972e[_0x30b396(0x13a)](_0x30b396(0x12b)))return'MISSING_SEGMENT_REFERENCE';return _0x30b396(0x10c);}function runSemanticChecks(_0xd241c5,_0x3ea3e8){const _0x1e542e=a156_0x19b8,_0x1e85ab=[];_0xd241c5[_0x1e542e(0x126)]&&_0x1e85ab['push'](...checkRule(_0xd241c5['rule'],_0x1e542e(0x126),_0x3ea3e8));const _0xe4bf97=_0x1e85ab['filter'](_0x182248=>_0x182248['level']===_0x1e542e(0x133)),_0x208fab=_0x1e85ab[_0x1e542e(0x10a)](_0x13c03b=>_0x13c03b[_0x1e542e(0x125)]==='warning');return{'valid':_0xe4bf97[_0x1e542e(0x100)]===0x0,'errors':_0xe4bf97,'warnings':_0x208fab};}function checkRule(_0x11cae8,_0x3006be,_0x1c13bf){const _0x393704=a156_0x19b8,_0x2ebccf=[];if(_0x11cae8[_0x393704(0x11a)][_0x393704(0x100)]===0x0)return _0x2ebccf[_0x393704(0x136)]({'level':_0x393704(0x133),'path':_0x3006be+_0x393704(0x108),'code':_0x393704(0x12d),'message':_0x393704(0x124),'location':getLocationFromPath(_0x1c13bf[_0x393704(0x139)],_0x1c13bf[_0x393704(0x134)],pathToArray(_0x3006be+_0x393704(0x108)))}),_0x2ebccf;return _0x2ebccf[_0x393704(0x136)](...checkConditions(_0x11cae8[_0x393704(0x11a)],_0x3006be,_0x1c13bf)),_0x2ebccf;}function checkConditions(_0x19dfd8,_0x2b1f7a,_0x29d3b4){const _0x2fc672=a156_0x19b8,_0x29fe76=[];for(let _0x491ecd=0x0;_0x491ecd<_0x19dfd8[_0x2fc672(0x100)];_0x491ecd++){const _0x4eb790=_0x19dfd8[_0x491ecd],_0x46bcb0=_0x2b1f7a+'.conditions['+_0x491ecd+']';_0x29fe76[_0x2fc672(0x136)](...checkCondition(_0x4eb790,_0x46bcb0,_0x29d3b4));}return _0x29fe76;}function checkCondition(_0x256b1d,_0x3ece9d,_0x23d8cb){const _0x3a0c40=a156_0x19b8,_0x124051=[];if(_0x256b1d[_0x3a0c40(0x144)]==='And'||_0x256b1d[_0x3a0c40(0x144)]==='Or'){if(_0x256b1d['conditions'][_0x3a0c40(0x100)]===0x0)_0x124051['push']({'level':_0x3a0c40(0x133),'path':_0x3ece9d+_0x3a0c40(0x108),'code':_0x3a0c40(0x12d),'message':_0x256b1d[_0x3a0c40(0x144)]+'\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','location':getLocationFromPath(_0x23d8cb[_0x3a0c40(0x139)],_0x23d8cb['source'],pathToArray(_0x3ece9d+_0x3a0c40(0x108)))});else{const _0x4ba052=_0x256b1d[_0x3a0c40(0x110)]!==undefined;!_0x4ba052&&_0x124051[_0x3a0c40(0x136)]({'level':_0x3a0c40(0x105),'path':_0x3ece9d,'code':'NESTED_CONDITION_GROUP','message':_0x256b1d[_0x3a0c40(0x144)]+_0x3a0c40(0x107)+_0x3a0c40(0x147)+'conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','location':getLocationFromPath(_0x23d8cb[_0x3a0c40(0x139)],_0x23d8cb[_0x3a0c40(0x134)],pathToArray(_0x3ece9d))}),_0x124051['push'](...checkConditions(_0x256b1d[_0x3a0c40(0x11a)],_0x3ece9d,_0x23d8cb));}return _0x124051;}if(_0x256b1d['type']===_0x3a0c40(0x11c)||_0x256b1d['type']==='Behavior'){const _0x10c6c4=_0x256b1d,_0x491297=_0x10c6c4[_0x3a0c40(0x134)],_0x334160=_0x10c6c4[_0x3a0c40(0x12f)],_0x57d800=_0x491297||_0x334160;(!_0x10c6c4[_0x3a0c40(0x122)]||_0x10c6c4[_0x3a0c40(0x122)]==='')&&(!_0x57d800&&_0x124051[_0x3a0c40(0x136)]({'level':'error','path':_0x3ece9d+'.attribute','code':_0x3a0c40(0x137),'message':_0x3a0c40(0x128),'location':getLocationFromPath(_0x23d8cb[_0x3a0c40(0x139)],_0x23d8cb[_0x3a0c40(0x134)],pathToArray(_0x3ece9d+_0x3a0c40(0x10b)))}));_0x10c6c4[_0x3a0c40(0x10a)]&&_0x124051[_0x3a0c40(0x136)](...checkRule(_0x10c6c4[_0x3a0c40(0x10a)],_0x3ece9d+'.filter',_0x23d8cb));if(_0x10c6c4[_0x3a0c40(0x134)]){const _0x62f4a6=_0x10c6c4[_0x3a0c40(0x122)]&&_0x10c6c4['attribute']!=='';_0x62f4a6&&!_0x10c6c4['filter']&&_0x124051['push']({'level':_0x3a0c40(0x133),'path':_0x3ece9d+_0x3a0c40(0x10e),'code':_0x3a0c40(0x141),'message':_0x3a0c40(0x13d)+_0x10c6c4[_0x3a0c40(0x134)]+_0x3a0c40(0x140)+_0x10c6c4['attribute']+'\x27\x20'+_0x3a0c40(0x130)+_0x3a0c40(0x135)+_0x3a0c40(0x142),'location':getLocationFromPath(_0x23d8cb[_0x3a0c40(0x139)],_0x23d8cb[_0x3a0c40(0x134)],pathToArray(_0x3ece9d+_0x3a0c40(0x10e)))}),_0x62f4a6&&_0x10c6c4[_0x3a0c40(0x10a)]&&_0x124051[_0x3a0c40(0x136)]({'level':_0x3a0c40(0x105),'path':_0x3ece9d+_0x3a0c40(0x10b),'code':_0x3a0c40(0x13b),'message':_0x3a0c40(0x13c)+_0x10c6c4[_0x3a0c40(0x122)]+_0x3a0c40(0x11e)+_0x3a0c40(0x119),'location':getLocationFromPath(_0x23d8cb['document'],_0x23d8cb['source'],pathToArray(_0x3ece9d+_0x3a0c40(0x10b)))});}}return _0x124051;}
@@ -1 +1 @@
1
- (function(_0x3b5d1f,_0x4d58ca){const _0x10a599=a157_0x5ac0,_0x32764c=_0x3b5d1f();while(!![]){try{const _0x486072=-parseInt(_0x10a599(0x127))/0x1+-parseInt(_0x10a599(0x138))/0x2+parseInt(_0x10a599(0x14b))/0x3+-parseInt(_0x10a599(0x132))/0x4+-parseInt(_0x10a599(0x13c))/0x5+parseInt(_0x10a599(0x143))/0x6*(-parseInt(_0x10a599(0x141))/0x7)+-parseInt(_0x10a599(0x137))/0x8*(-parseInt(_0x10a599(0x144))/0x9);if(_0x486072===_0x4d58ca)break;else _0x32764c['push'](_0x32764c['shift']());}catch(_0x44b7c9){_0x32764c['push'](_0x32764c['shift']());}}}(a157_0x81f0,0xc3c2c));import a157_0x2f27dc from'path';import{sanitizeFileName}from'../../utils/string-utils.js';function a157_0x5ac0(_0x4cc0cf,_0x101fd7){_0x4cc0cf=_0x4cc0cf-0x123;const _0x81f05a=a157_0x81f0();let _0x5ac0aa=_0x81f05a[_0x4cc0cf];return _0x5ac0aa;}import{nodeFileSystem}from'../io/node-filesystem.js';function a157_0x81f0(){const _0x158d86=['relative','parse','26816Xdrslp','3038818JMcDtv','isScoped','parentSegment','includes','5751670rDjUoz','cwd','resourceType','configDir','readFile','14yxMHdG','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','1474518RTxAUt','12951vPiRne','trim','isFile','dirname','invalid_yaml','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','Parent\x20segment\x20not\x20specified','1970175flqxfm','scopedFolderPath','stat','message','journey','segment','parent_name','file','parent_segment','join','File\x20not\x20found','startsWith','isDirectory','tdx.json','resolve','file_not_found','838585cVqCvy','exists','extname','context','error','segmentName','folderPath','match','type','directory','basename','2714332yZQAiR','No\x20tdx.json\x20found\x20for\x20file:\x20','no_config'];a157_0x81f0=function(){return _0x158d86;};return a157_0x81f0();}import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x492a08){const _0x2d95a0=a157_0x5ac0;return _0x492a08[_0x2d95a0(0x12f)]!==_0x2d95a0(0x12b);}export function isScopedResolution(_0x56f98f){const _0x4dd42c=a157_0x5ac0;return _0x56f98f[_0x4dd42c(0x12f)]===_0x4dd42c(0x130)||_0x56f98f[_0x4dd42c(0x12f)]===_0x4dd42c(0x152)||_0x56f98f[_0x4dd42c(0x12f)]===_0x4dd42c(0x12a);}export function getScopedDetails(_0x4c7111){const _0x30c4fa=a157_0x5ac0;if(isScopedResolution(_0x4c7111))return{'isScoped':_0x4c7111[_0x30c4fa(0x139)],'scopedFolderPath':_0x4c7111['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x4f72b8,_0x5534e8){const _0x1936a2=a157_0x5ac0;let _0x40d9b2=a157_0x2f27dc['resolve'](_0x4f72b8);const _0xf19e7=a157_0x2f27dc['parse'](_0x40d9b2)['root'];while(_0x40d9b2!==_0xf19e7){const _0x552b5b=a157_0x2f27dc[_0x1936a2(0x154)](_0x40d9b2,_0x1936a2(0x124));if(await _0x5534e8[_0x1936a2(0x128)](_0x552b5b))try{const _0x1042b6=await _0x5534e8[_0x1936a2(0x140)](_0x552b5b),_0x20cc2a=JSON[_0x1936a2(0x136)](_0x1042b6);if(_0x20cc2a[_0x1936a2(0x153)]&&typeof _0x20cc2a[_0x1936a2(0x153)]==='string')return{'configPath':_0x552b5b,'configDir':_0x40d9b2,'parentSegment':_0x20cc2a[_0x1936a2(0x153)]};}catch{}_0x40d9b2=a157_0x2f27dc[_0x1936a2(0x147)](_0x40d9b2);}return null;}function calculateScopedPath(_0x26dc15,_0x38783a){const _0x39adb1=a157_0x5ac0,_0x5f102c=a157_0x2f27dc[_0x39adb1(0x135)](_0x38783a,_0x26dc15),_0xf43d05=_0x5f102c!==''&&_0x5f102c!=='.'&&!_0x5f102c[_0x39adb1(0x156)]('..');return{'isScoped':_0xf43d05,'scopedFolderPath':_0xf43d05?_0x5f102c['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x4f4a76){const _0x3b1258=a157_0x5ac0,{arg:_0x289106,contextParent:_0x2ceacc,cwd:cwd=process[_0x3b1258(0x13d)](),fs:fs=nodeFileSystem}=_0x4f4a76;if(_0x289106&&isYamlFilePath(_0x289106))try{const _0x5bb661=await resolveYamlFilePath(_0x289106,fs),_0x93aefd=a157_0x2f27dc[_0x3b1258(0x125)](_0x289106),_0x49b500=a157_0x2f27dc[_0x3b1258(0x147)](_0x93aefd),_0x9517f0=await findTdxConfigAsync(_0x49b500,fs);if(!_0x9517f0){if(_0x2ceacc){const _0x281c92=a157_0x2f27dc['dirname'](_0x93aefd);return{'type':_0x3b1258(0x152),'parentName':_0x2ceacc,'targetDir':_0x281c92,'configRoot':_0x281c92,'filePath':_0x93aefd,'resourceName':_0x5bb661[_0x3b1258(0x12c)],'folderPath':_0x5bb661[_0x3b1258(0x12d)],'resourceType':_0x5bb661['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x3b1258(0x134),'message':_0x3b1258(0x133)+_0x289106,'arg':_0x289106,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}const _0x2dbdee=calculateScopedPath(_0x49b500,_0x9517f0[_0x3b1258(0x13f)]);return{'type':'file','parentName':_0x9517f0[_0x3b1258(0x13a)],'targetDir':_0x9517f0[_0x3b1258(0x13f)],'configRoot':_0x9517f0[_0x3b1258(0x13f)],'filePath':_0x93aefd,'resourceName':_0x5bb661['segmentName'],'folderPath':_0x5bb661[_0x3b1258(0x12d)],'resourceType':_0x5bb661[_0x3b1258(0x13e)],'isScoped':_0x2dbdee[_0x3b1258(0x139)],'scopedFolderPath':_0x2dbdee[_0x3b1258(0x14c)]};}catch(_0x1fb23f){const _0x20a88a=_0x1fb23f instanceof Error?_0x1fb23f[_0x3b1258(0x14e)]:String(_0x1fb23f);if(_0x20a88a[_0x3b1258(0x13b)](_0x3b1258(0x155)))return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x126),'message':'File\x20not\x20found:\x20'+_0x289106,'arg':_0x289106};if(_0x20a88a[_0x3b1258(0x13b)]('No\x20tdx.json\x20found')){if(_0x2ceacc){const _0x79de7a=a157_0x2f27dc[_0x3b1258(0x125)](_0x289106);if(await fs['exists'](_0x79de7a)){const _0x9fdca5=a157_0x2f27dc['dirname'](_0x79de7a),_0x2d7600=await fs['readFile'](_0x79de7a),_0x3d1a57=_0x2d7600[_0x3b1258(0x12e)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x2dff84=_0x2d7600[_0x3b1258(0x12e)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x514666=_0x3d1a57?_0x3d1a57[0x1][_0x3b1258(0x145)]():a157_0x2f27dc[_0x3b1258(0x131)](_0x289106,a157_0x2f27dc[_0x3b1258(0x129)](_0x289106)),_0x263def=_0x2dff84&&_0x2dff84[0x1][_0x3b1258(0x145)]()===_0x3b1258(0x14f)?'journey':_0x3b1258(0x150);return{'type':'file','parentName':_0x2ceacc,'targetDir':_0x9fdca5,'configRoot':_0x9fdca5,'filePath':_0x79de7a,'resourceName':_0x514666,'folderPath':'','resourceType':_0x263def,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x134),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x289106,'arg':_0x289106,'helpText':_0x3b1258(0x142)};}return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x148),'message':_0x20a88a,'arg':_0x289106};}if(_0x289106){const _0x41ae47=a157_0x2f27dc[_0x3b1258(0x125)](cwd,_0x289106);let _0x1b1d79=null;try{_0x1b1d79=await fs[_0x3b1258(0x14d)](_0x41ae47);}catch{}if(_0x1b1d79?.[_0x3b1258(0x123)]()){const _0x411f39=await findTdxConfigAsync(_0x41ae47,fs);if(_0x411f39){const _0x2ea3a8=calculateScopedPath(_0x41ae47,_0x411f39['configDir']);return{'type':_0x3b1258(0x130),'parentName':_0x411f39[_0x3b1258(0x13a)],'targetDir':_0x41ae47,'configRoot':_0x411f39[_0x3b1258(0x13f)],'isScoped':_0x2ea3a8[_0x3b1258(0x139)],'scopedFolderPath':_0x2ea3a8[_0x3b1258(0x14c)]};}if(_0x2ceacc)return{'type':'directory','parentName':_0x2ceacc,'targetDir':_0x41ae47,'configRoot':_0x41ae47,'isScoped':![],'scopedFolderPath':''};return{'type':_0x3b1258(0x12b),'errorCode':_0x3b1258(0x134),'message':_0x3b1258(0x149)+_0x289106,'arg':_0x289106,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}if(_0x1b1d79?.[_0x3b1258(0x146)]())return{'type':'error','errorCode':_0x3b1258(0x148),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x289106,'arg':_0x289106,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x238ad7=sanitizeFileName(_0x289106),_0x173931=getSegmentRootDir(_0x238ad7,cwd);return{'type':_0x3b1258(0x151),'parentName':_0x289106,'targetDir':_0x173931,'configRoot':_0x173931};}const _0x1ab4fe=await findTdxConfigAsync(cwd,fs);if(_0x1ab4fe){const _0x5b9102=calculateScopedPath(cwd,_0x1ab4fe[_0x3b1258(0x13f)]);return{'type':_0x3b1258(0x12a),'parentName':_0x1ab4fe[_0x3b1258(0x13a)],'targetDir':cwd,'configRoot':_0x1ab4fe[_0x3b1258(0x13f)],'isScoped':_0x5b9102['isScoped'],'scopedFolderPath':_0x5b9102[_0x3b1258(0x14c)]};}if(_0x2ceacc){const _0x249bd5=sanitizeFileName(_0x2ceacc),_0x24e852=getSegmentRootDir(_0x249bd5,cwd);return{'type':_0x3b1258(0x12a),'parentName':_0x2ceacc,'targetDir':_0x24e852,'configRoot':_0x24e852,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x3b1258(0x12b),'errorCode':'no_parent','message':_0x3b1258(0x14a),'helpText':'Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure'};}
1
+ (function(_0x3caadd,_0x26e01b){const _0x924940=a157_0x3f08,_0x1b6d6a=_0x3caadd();while(!![]){try{const _0x58155a=parseInt(_0x924940(0x95))/0x1*(parseInt(_0x924940(0xab))/0x2)+parseInt(_0x924940(0x9a))/0x3+-parseInt(_0x924940(0x9e))/0x4+parseInt(_0x924940(0xaa))/0x5+-parseInt(_0x924940(0xaf))/0x6+parseInt(_0x924940(0x92))/0x7*(-parseInt(_0x924940(0xa2))/0x8)+parseInt(_0x924940(0x94))/0x9*(parseInt(_0x924940(0xb0))/0xa);if(_0x58155a===_0x26e01b)break;else _0x1b6d6a['push'](_0x1b6d6a['shift']());}catch(_0x48c110){_0x1b6d6a['push'](_0x1b6d6a['shift']());}}}(a157_0x20c6,0xebc1c));function a157_0x3f08(_0x1287ee,_0x1ff740){_0x1287ee=_0x1287ee-0x80;const _0x20c61d=a157_0x20c6();let _0x3f08c0=_0x20c61d[_0x1287ee];return _0x3f08c0;}import a157_0x1eb40a from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x143935){const _0x134313=a157_0x3f08;return _0x143935['type']!==_0x134313(0x80);}export function isScopedResolution(_0x3b922b){const _0x530482=a157_0x3f08;return _0x3b922b[_0x530482(0x86)]===_0x530482(0x98)||_0x3b922b['type']===_0x530482(0xb4)||_0x3b922b['type']===_0x530482(0x89);}export function getScopedDetails(_0x57f171){const _0x31b579=a157_0x3f08;if(isScopedResolution(_0x57f171))return{'isScoped':_0x57f171[_0x31b579(0x91)],'scopedFolderPath':_0x57f171[_0x31b579(0xa7)]};return undefined;}async function findTdxConfigAsync(_0x36c196,_0x21245d){const _0x27fb1c=a157_0x3f08;let _0x22287d=a157_0x1eb40a[_0x27fb1c(0xae)](_0x36c196);const _0x4f12db=a157_0x1eb40a['parse'](_0x22287d)[_0x27fb1c(0x81)];while(_0x22287d!==_0x4f12db){const _0x35e824=a157_0x1eb40a[_0x27fb1c(0x83)](_0x22287d,'tdx.json');if(await _0x21245d[_0x27fb1c(0x88)](_0x35e824))try{const _0x1bb9f9=await _0x21245d[_0x27fb1c(0xb5)](_0x35e824),_0x444098=JSON[_0x27fb1c(0x9f)](_0x1bb9f9);if(_0x444098['parent_segment']&&typeof _0x444098['parent_segment']===_0x27fb1c(0xa5))return{'configPath':_0x35e824,'configDir':_0x22287d,'parentSegment':_0x444098[_0x27fb1c(0x87)]};}catch{}_0x22287d=a157_0x1eb40a[_0x27fb1c(0x9b)](_0x22287d);}return null;}function a157_0x20c6(){const _0x40e064=['relative','4148944fAzYZP','parse','File\x20not\x20found:\x20','folderPath','821424QnlVWf','resourceType','no_config','string','Parent\x20segment\x20not\x20specified','scopedFolderPath','trim','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','3305280LUEEyG','53028nAjBCJ','journey','configDir','resolve','7936074HxKBDH','77310WpMqNm','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','no_parent','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','file','readFile','includes','error','root','segment','join','parentSegment','startsWith','type','parent_segment','exists','context','No\x20tdx.json\x20found\x20for\x20file:\x20','No\x20tdx.json\x20found','isDirectory','isFile','File\x20not\x20found','replace','cwd','isScoped','98yKyUtS','extname','2799gKmaHS','27dSAgfV','match','segmentName','directory','invalid_yaml','2945376POPaqw','dirname','message'];a157_0x20c6=function(){return _0x40e064;};return a157_0x20c6();}function calculateScopedPath(_0x5c74d2,_0x57e70d){const _0x367b97=a157_0x3f08,_0x26706a=a157_0x1eb40a[_0x367b97(0x9d)](_0x57e70d,_0x5c74d2),_0x3995d5=_0x26706a!==''&&_0x26706a!=='.'&&!_0x26706a[_0x367b97(0x85)]('..');return{'isScoped':_0x3995d5,'scopedFolderPath':_0x3995d5?_0x26706a[_0x367b97(0x8f)](/\\/g,'/'):''};}export async function resolveTarget(_0x385913){const _0x493eaf=a157_0x3f08,{arg:_0x4df733,contextParent:_0xa398e5,cwd:cwd=process[_0x493eaf(0x90)](),fs:fs=nodeFileSystem}=_0x385913;if(_0x4df733&&isYamlFilePath(_0x4df733))try{const _0x1ff5f2=await resolveYamlFilePath(_0x4df733,fs),_0x2ef224=a157_0x1eb40a[_0x493eaf(0xae)](_0x4df733),_0x3c77b7=a157_0x1eb40a[_0x493eaf(0x9b)](_0x2ef224),_0x4fd94b=await findTdxConfigAsync(_0x3c77b7,fs);if(!_0x4fd94b){if(_0xa398e5){const _0x36bc9b=a157_0x1eb40a['dirname'](_0x2ef224);return{'type':_0x493eaf(0xb4),'parentName':_0xa398e5,'targetDir':_0x36bc9b,'configRoot':_0x36bc9b,'filePath':_0x2ef224,'resourceName':_0x1ff5f2['segmentName'],'folderPath':_0x1ff5f2['folderPath'],'resourceType':_0x1ff5f2[_0x493eaf(0xa3)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x493eaf(0x80),'errorCode':_0x493eaf(0xa4),'message':_0x493eaf(0x8a)+_0x4df733,'arg':_0x4df733,'helpText':_0x493eaf(0xb3)};}const _0x4a0192=calculateScopedPath(_0x3c77b7,_0x4fd94b[_0x493eaf(0xad)]);return{'type':'file','parentName':_0x4fd94b[_0x493eaf(0x84)],'targetDir':_0x4fd94b[_0x493eaf(0xad)],'configRoot':_0x4fd94b['configDir'],'filePath':_0x2ef224,'resourceName':_0x1ff5f2[_0x493eaf(0x97)],'folderPath':_0x1ff5f2[_0x493eaf(0xa1)],'resourceType':_0x1ff5f2[_0x493eaf(0xa3)],'isScoped':_0x4a0192[_0x493eaf(0x91)],'scopedFolderPath':_0x4a0192['scopedFolderPath']};}catch(_0x5b47f1){const _0x58e7ce=_0x5b47f1 instanceof Error?_0x5b47f1[_0x493eaf(0x9c)]:String(_0x5b47f1);if(_0x58e7ce[_0x493eaf(0xb6)](_0x493eaf(0x8e)))return{'type':_0x493eaf(0x80),'errorCode':'file_not_found','message':_0x493eaf(0xa0)+_0x4df733,'arg':_0x4df733};if(_0x58e7ce['includes'](_0x493eaf(0x8b))){if(_0xa398e5){const _0x351138=a157_0x1eb40a[_0x493eaf(0xae)](_0x4df733);if(await fs[_0x493eaf(0x88)](_0x351138)){const _0x2b5fec=a157_0x1eb40a[_0x493eaf(0x9b)](_0x351138),_0x2b2400=await fs[_0x493eaf(0xb5)](_0x351138),_0x3dc48c=_0x2b2400[_0x493eaf(0x96)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x1aa4b3=_0x2b2400[_0x493eaf(0x96)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x248ae7=_0x3dc48c?_0x3dc48c[0x1]['trim']():a157_0x1eb40a['basename'](_0x4df733,a157_0x1eb40a[_0x493eaf(0x93)](_0x4df733)),_0x1d30fd=_0x1aa4b3&&_0x1aa4b3[0x1][_0x493eaf(0xa8)]()===_0x493eaf(0xac)?_0x493eaf(0xac):_0x493eaf(0x82);return{'type':_0x493eaf(0xb4),'parentName':_0xa398e5,'targetDir':_0x2b5fec,'configRoot':_0x2b5fec,'filePath':_0x351138,'resourceName':_0x248ae7,'folderPath':'','resourceType':_0x1d30fd,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x493eaf(0x80),'errorCode':_0x493eaf(0xa4),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4df733,'arg':_0x4df733,'helpText':_0x493eaf(0xb3)};}return{'type':_0x493eaf(0x80),'errorCode':_0x493eaf(0x99),'message':_0x58e7ce,'arg':_0x4df733};}if(_0x4df733){const _0x2da714=a157_0x1eb40a[_0x493eaf(0xae)](cwd,_0x4df733);let _0x923843=null;try{_0x923843=await fs['stat'](_0x2da714);}catch{}if(_0x923843?.[_0x493eaf(0x8c)]()){const _0x162931=await findTdxConfigAsync(_0x2da714,fs);if(_0x162931){const _0x4229f0=calculateScopedPath(_0x2da714,_0x162931[_0x493eaf(0xad)]);return{'type':_0x493eaf(0x98),'parentName':_0x162931[_0x493eaf(0x84)],'targetDir':_0x2da714,'configRoot':_0x162931[_0x493eaf(0xad)],'isScoped':_0x4229f0[_0x493eaf(0x91)],'scopedFolderPath':_0x4229f0[_0x493eaf(0xa7)]};}if(_0xa398e5)return{'type':'directory','parentName':_0xa398e5,'targetDir':_0x2da714,'configRoot':_0x2da714,'isScoped':![],'scopedFolderPath':''};return{'type':_0x493eaf(0x80),'errorCode':_0x493eaf(0xa4),'message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x4df733,'arg':_0x4df733,'helpText':_0x493eaf(0xb3)};}if(_0x923843?.[_0x493eaf(0x8d)]())return{'type':_0x493eaf(0x80),'errorCode':_0x493eaf(0x99),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x4df733,'arg':_0x4df733,'helpText':_0x493eaf(0xa9)};const _0x3bf66c=sanitizeFileName(_0x4df733),_0x44561b=getSegmentRootDir(_0x3bf66c,cwd);return{'type':'parent_name','parentName':_0x4df733,'targetDir':_0x44561b,'configRoot':_0x44561b};}const _0x304e3c=await findTdxConfigAsync(cwd,fs);if(_0x304e3c){const _0x1e45f9=calculateScopedPath(cwd,_0x304e3c[_0x493eaf(0xad)]);return{'type':_0x493eaf(0x89),'parentName':_0x304e3c['parentSegment'],'targetDir':cwd,'configRoot':_0x304e3c[_0x493eaf(0xad)],'isScoped':_0x1e45f9[_0x493eaf(0x91)],'scopedFolderPath':_0x1e45f9[_0x493eaf(0xa7)]};}if(_0xa398e5){const _0x3fcc38=sanitizeFileName(_0xa398e5),_0x32cbec=getSegmentRootDir(_0x3fcc38,cwd);return{'type':_0x493eaf(0x89),'parentName':_0xa398e5,'targetDir':_0x32cbec,'configRoot':_0x32cbec,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x493eaf(0xb2),'message':_0x493eaf(0xa6),'helpText':_0x493eaf(0xb1)};}
@@ -1 +1 @@
1
- const a158_0x97dcf8=a158_0x3810;(function(_0x3ee358,_0x415ef4){const _0x3dc9e1=a158_0x3810,_0x283357=_0x3ee358();while(!![]){try{const _0x598739=parseInt(_0x3dc9e1(0xcd))/0x1+parseInt(_0x3dc9e1(0xb7))/0x2*(parseInt(_0x3dc9e1(0xbe))/0x3)+parseInt(_0x3dc9e1(0xca))/0x4+parseInt(_0x3dc9e1(0xc9))/0x5*(parseInt(_0x3dc9e1(0xc3))/0x6)+-parseInt(_0x3dc9e1(0xb8))/0x7+parseInt(_0x3dc9e1(0xc7))/0x8*(parseInt(_0x3dc9e1(0xcc))/0x9)+-parseInt(_0x3dc9e1(0xc0))/0xa*(parseInt(_0x3dc9e1(0xc1))/0xb);if(_0x598739===_0x415ef4)break;else _0x283357['push'](_0x283357['shift']());}catch(_0x2204a0){_0x283357['push'](_0x283357['shift']());}}}(a158_0x2b01,0x4d71f));import{existsSync,readFileSync}from'fs';import a158_0x24898b from'path';const TDX_CONFIG_FILE=a158_0x97dcf8(0xb1),SEGMENTS_DIR=a158_0x97dcf8(0xb5);function a158_0x3810(_0x8d1871,_0x56b292){_0x8d1871=_0x8d1871-0xb0;const _0x2b016d=a158_0x2b01();let _0x381067=_0x2b016d[_0x8d1871];return _0x381067;}export function findTdxConfigPath(_0x532209=process['cwd']()){const _0x2b968e=a158_0x97dcf8;let _0x47ec2c=a158_0x24898b[_0x2b968e(0xb6)](_0x532209);const _0x8bae4d=a158_0x24898b[_0x2b968e(0xc6)](_0x47ec2c)['root'];while(_0x47ec2c!==_0x8bae4d){const _0x40c9e7=a158_0x24898b[_0x2b968e(0xbf)](_0x47ec2c,TDX_CONFIG_FILE);if(existsSync(_0x40c9e7))return _0x40c9e7;_0x47ec2c=a158_0x24898b[_0x2b968e(0xb9)](_0x47ec2c);}return null;}export function loadTdxConfig(_0x5490fc){const _0x3d4e6c=a158_0x97dcf8,_0x955a2c=readFileSync(_0x5490fc,_0x3d4e6c(0xcb));let _0x1e2a34;try{_0x1e2a34=JSON[_0x3d4e6c(0xc6)](_0x955a2c);}catch{throw new Error(_0x3d4e6c(0xbb)+_0x5490fc);}if(!_0x1e2a34||typeof _0x1e2a34!==_0x3d4e6c(0xc4))throw new Error(_0x3d4e6c(0xb4));const _0x313638=_0x1e2a34,_0x16dbca=_0x313638['parent_segment']&&typeof _0x313638[_0x3d4e6c(0xc2)]===_0x3d4e6c(0xb0),_0x22a8c5=_0x313638['engage_workspace']&&typeof _0x313638['engage_workspace']===_0x3d4e6c(0xb0);if(!_0x16dbca&&!_0x22a8c5)throw new Error(_0x3d4e6c(0xbd));const _0x4f05ed={};return _0x16dbca&&(_0x4f05ed['parent_segment']=_0x313638[_0x3d4e6c(0xc2)]),_0x22a8c5&&(_0x4f05ed['engage_workspace']=_0x313638[_0x3d4e6c(0xb3)]),_0x4f05ed;}export function findTdxConfig(_0x247cbf=process[a158_0x97dcf8(0xbc)]()){const _0x5f56d7=a158_0x97dcf8,_0xd3c4b9=findTdxConfigPath(_0x247cbf);if(!_0xd3c4b9)throw new Error(_0x5f56d7(0xba));const _0x407366=loadTdxConfig(_0xd3c4b9),_0x27b14a=a158_0x24898b['dirname'](_0xd3c4b9);return{'config':_0x407366,'configPath':_0xd3c4b9,'configDir':_0x27b14a};}export function tryFindTdxConfig(_0x3ef65b){try{return findTdxConfig(_0x3ef65b);}catch{return null;}}export function getSegmentRootDir(_0x3338e0,_0x78ef7f=process['cwd']()){const _0x5e54b1=a158_0x97dcf8;return a158_0x24898b[_0x5e54b1(0xbf)](_0x78ef7f,SEGMENTS_DIR,_0x3338e0);}export function getTdxConfigPath(_0x56e085,_0x5bc17d=process['cwd']()){return a158_0x24898b['join'](getSegmentRootDir(_0x56e085,_0x5bc17d),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x15fead,_0x1c827a){const _0x44bee2=a158_0x97dcf8,_0x354ec5=a158_0x24898b[_0x44bee2(0xb6)](_0x15fead),_0x5e5507=a158_0x24898b[_0x44bee2(0xce)](_0x1c827a,_0x354ec5);if(_0x5e5507[_0x44bee2(0xc8)]('..'))return'';return _0x5e5507;}function a158_0x2b01(){const _0x9341a6=['segments','resolve','424730lCyrhn','2148468keOHvk','dirname','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','Invalid\x20JSON\x20in\x20','cwd','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','3KhsjUB','join','2762460yKLwIS','33NaamIa','parent_segment','113292ljWcAh','object','replace','parse','120040gokDez','startsWith','20sIjebc','1459848NIrekP','utf-8','351PqtQxW','214827lIHyxR','relative','string','tdx.json','stringify','engage_workspace','Invalid\x20tdx.json:\x20expected\x20object'];a158_0x2b01=function(){return _0x9341a6;};return a158_0x2b01();}export function localPathToTdFolderPath(_0x3727df){const _0x175c58=a158_0x97dcf8,_0x66fd64=a158_0x24898b[_0x175c58(0xb9)](_0x3727df);if(_0x66fd64==='.'||_0x66fd64==='')return'';return _0x66fd64[_0x175c58(0xc5)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x19c383,_0x21d7b3){const _0x18d5d5=a158_0x97dcf8;if(!_0x19c383)return _0x21d7b3;return a158_0x24898b[_0x18d5d5(0xbf)](_0x21d7b3,_0x19c383);}export function createTdxConfigContent(_0x54c59e){const _0x39746b=a158_0x97dcf8,_0x2e607e={'parent_segment':_0x54c59e};return JSON[_0x39746b(0xb2)](_0x2e607e,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x2e105d){const _0x298f07=a158_0x97dcf8,_0x479d72={'engage_workspace':_0x2e105d};return JSON[_0x298f07(0xb2)](_0x479d72,null,0x2)+'\x0a';}
1
+ const a158_0x3d0a1e=a158_0x285d;(function(_0x1ed614,_0x5128fb){const _0x590b04=a158_0x285d,_0xcf46f9=_0x1ed614();while(!![]){try{const _0x496ed6=-parseInt(_0x590b04(0xb0))/0x1+-parseInt(_0x590b04(0xad))/0x2*(parseInt(_0x590b04(0xc6))/0x3)+parseInt(_0x590b04(0xbd))/0x4+-parseInt(_0x590b04(0xb7))/0x5+-parseInt(_0x590b04(0xc7))/0x6+-parseInt(_0x590b04(0xc0))/0x7*(-parseInt(_0x590b04(0xba))/0x8)+-parseInt(_0x590b04(0xae))/0x9*(-parseInt(_0x590b04(0xbe))/0xa);if(_0x496ed6===_0x5128fb)break;else _0xcf46f9['push'](_0xcf46f9['shift']());}catch(_0x279e9d){_0xcf46f9['push'](_0xcf46f9['shift']());}}}(a158_0x50bb,0x5cf94));function a158_0x50bb(){const _0xb1821a=['join','startsWith','parent_segment','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','engage_workspace','9HWaGFZ','1002264SVgmxE','324658Kezeth','36GXJbbo','dirname','390919QHbieQ','parse','string','Invalid\x20JSON\x20in\x20','utf-8','stringify','resolve','1491875RFHkmM','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','Invalid\x20tdx.json:\x20expected\x20object','24oVdRnZ','object','cwd','1334444dgSgYN','2312230lOVuNg','root','1086498qtHUYT'];a158_0x50bb=function(){return _0xb1821a;};return a158_0x50bb();}import{existsSync,readFileSync}from'fs';import a158_0x14ca82 from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x272ec3=process[a158_0x3d0a1e(0xbc)]()){const _0x192413=a158_0x3d0a1e;let _0x3121b7=a158_0x14ca82[_0x192413(0xb6)](_0x272ec3);const _0x49a32b=a158_0x14ca82[_0x192413(0xb1)](_0x3121b7)[_0x192413(0xbf)];while(_0x3121b7!==_0x49a32b){const _0x54ad00=a158_0x14ca82[_0x192413(0xc1)](_0x3121b7,TDX_CONFIG_FILE);if(existsSync(_0x54ad00))return _0x54ad00;_0x3121b7=a158_0x14ca82['dirname'](_0x3121b7);}return null;}export function loadTdxConfig(_0x4011f1){const _0x1aed0d=a158_0x3d0a1e,_0x2c3b90=readFileSync(_0x4011f1,_0x1aed0d(0xb4));let _0x4032b8;try{_0x4032b8=JSON['parse'](_0x2c3b90);}catch{throw new Error(_0x1aed0d(0xb3)+_0x4011f1);}if(!_0x4032b8||typeof _0x4032b8!==_0x1aed0d(0xbb))throw new Error(_0x1aed0d(0xb9));const _0x4f3063=_0x4032b8,_0x6a05ae=_0x4f3063['parent_segment']&&typeof _0x4f3063[_0x1aed0d(0xc3)]==='string',_0x4d2531=_0x4f3063[_0x1aed0d(0xc5)]&&typeof _0x4f3063['engage_workspace']===_0x1aed0d(0xb2);if(!_0x6a05ae&&!_0x4d2531)throw new Error(_0x1aed0d(0xc4));const _0x1d7c79={};return _0x6a05ae&&(_0x1d7c79['parent_segment']=_0x4f3063[_0x1aed0d(0xc3)]),_0x4d2531&&(_0x1d7c79[_0x1aed0d(0xc5)]=_0x4f3063['engage_workspace']),_0x1d7c79;}export function findTdxConfig(_0x2c6fc2=process[a158_0x3d0a1e(0xbc)]()){const _0x857357=a158_0x3d0a1e,_0x14a1f9=findTdxConfigPath(_0x2c6fc2);if(!_0x14a1f9)throw new Error(_0x857357(0xb8));const _0x4b15ef=loadTdxConfig(_0x14a1f9),_0x4509b7=a158_0x14ca82[_0x857357(0xaf)](_0x14a1f9);return{'config':_0x4b15ef,'configPath':_0x14a1f9,'configDir':_0x4509b7};}export function tryFindTdxConfig(_0x1d1204){try{return findTdxConfig(_0x1d1204);}catch{return null;}}export function getSegmentRootDir(_0x3e8fdd,_0x469198=process[a158_0x3d0a1e(0xbc)]()){return a158_0x14ca82['join'](_0x469198,SEGMENTS_DIR,_0x3e8fdd);}export function getTdxConfigPath(_0x39ebdd,_0x4af7a0=process[a158_0x3d0a1e(0xbc)]()){const _0x20037e=a158_0x3d0a1e;return a158_0x14ca82[_0x20037e(0xc1)](getSegmentRootDir(_0x39ebdd,_0x4af7a0),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x1ab520,_0x424672){const _0x4fd2ec=a158_0x3d0a1e,_0x8ded0f=a158_0x14ca82['resolve'](_0x1ab520),_0x3571c6=a158_0x14ca82['relative'](_0x424672,_0x8ded0f);if(_0x3571c6[_0x4fd2ec(0xc2)]('..'))return'';return _0x3571c6;}export function localPathToTdFolderPath(_0xda2451){const _0x31cce4=a158_0x3d0a1e,_0x7f75fe=a158_0x14ca82[_0x31cce4(0xaf)](_0xda2451);if(_0x7f75fe==='.'||_0x7f75fe==='')return'';return _0x7f75fe['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x16d859,_0x4f65ec){const _0x5aa088=a158_0x3d0a1e;if(!_0x16d859)return _0x4f65ec;return a158_0x14ca82[_0x5aa088(0xc1)](_0x4f65ec,_0x16d859);}export function createTdxConfigContent(_0x5ebd04){const _0x114f0d=a158_0x3d0a1e,_0x3237ba={'parent_segment':_0x5ebd04};return JSON[_0x114f0d(0xb5)](_0x3237ba,null,0x2)+'\x0a';}function a158_0x285d(_0x52acef,_0x5ca66b){_0x52acef=_0x52acef-0xad;const _0x50bb7b=a158_0x50bb();let _0x285da7=_0x50bb7b[_0x52acef];return _0x285da7;}export function createEngageTdxConfigContent(_0x30ce03){const _0x10ac79=a158_0x3d0a1e,_0x1d61fd={'engage_workspace':_0x30ce03};return JSON[_0x10ac79(0xb5)](_0x1d61fd,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- function a159_0x17fd(){const _0x563a0b=['Activation\x20name\x20is\x20required','1096434ViQpWK','cron','2wTBZwR','Top-N','asc','8195760AxnVkf','string','9740aVjPEN','masked','none','2455BAEjAf','boolean','optional','28lLWWDw','145144KMXRrP','month','array','hour','nullable','min','number','weekly','minutes_interval','144nryWWO','1607520CghaXA','All','278768lOgWBM','onFailure','desc','object','enum','once','16249706UMbpPe','daily','day','minute','Connection\x20name\x20is\x20required'];a159_0x17fd=function(){return _0x563a0b;};return a159_0x17fd();}function a159_0x39be(_0x4c9948,_0x57d850){_0x4c9948=_0x4c9948-0x9c;const _0x17fdce=a159_0x17fd();let _0x39be60=_0x17fdce[_0x4c9948];return _0x39be60;}const a159_0x485418=a159_0x39be;(function(_0x55f4fc,_0x22dfb6){const _0x1b2170=a159_0x39be,_0x586986=_0x55f4fc();while(!![]){try{const _0x57402d=-parseInt(_0x1b2170(0xb8))/0x1*(-parseInt(_0x1b2170(0xaa))/0x2)+parseInt(_0x1b2170(0xa8))/0x3+parseInt(_0x1b2170(0xbd))/0x4*(-parseInt(_0x1b2170(0xc0))/0x5)+parseInt(_0x1b2170(0xb6))/0x6*(parseInt(_0x1b2170(0x9d))/0x7)+-parseInt(_0x1b2170(0x9e))/0x8*(parseInt(_0x1b2170(0xa7))/0x9)+-parseInt(_0x1b2170(0xbb))/0xa+parseInt(_0x1b2170(0xb0))/0xb;if(_0x57402d===_0x22dfb6)break;else _0x586986['push'](_0x586986['shift']());}catch(_0x4e17e5){_0x586986['push'](_0x586986['shift']());}}}(a159_0x17fd,0xaf231));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x485418(0xae)]([a159_0x485418(0xbf),'hourly',a159_0x485418(0xb1),a159_0x485418(0xa5),'monthly',a159_0x485418(0xb7),a159_0x485418(0xa6)]);export const RepeatUnitSchema=z[a159_0x485418(0xae)]([a159_0x485418(0xb3),a159_0x485418(0xa1),a159_0x485418(0xb2),'week',a159_0x485418(0x9f),a159_0x485418(0xaf),a159_0x485418(0xbf)]);export const ScheduleDefSchema=z[a159_0x485418(0xad)]({'type':ScheduleTypeSchema[a159_0x485418(0x9c)](),'repeat_unit':RepeatUnitSchema[a159_0x485418(0x9c)](),'repeat_frequency':z[a159_0x485418(0xa4)]()[a159_0x485418(0x9c)](),'repeat_sub_frequency':z[a159_0x485418(0xa0)](z[a159_0x485418(0xa4)]())['optional'](),'start_at':z[a159_0x485418(0xbc)]()[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'end_on':z[a159_0x485418(0xbc)]()['nullable']()['optional'](),'timezone':z[a159_0x485418(0xbc)]()[a159_0x485418(0x9c)]()});export const NotificationDefSchema=z[a159_0x485418(0xad)]({'notify_on':z[a159_0x485418(0xa0)](z[a159_0x485418(0xae)](['onSuccess',a159_0x485418(0xab)]))[a159_0x485418(0x9c)](),'email_recipients':z[a159_0x485418(0xa0)](z['string']())['optional']()});export const ActivationColumnDefSchema=z['union']([z[a159_0x485418(0xbc)](),z['object']({'name':z['string'](),'type':z[a159_0x485418(0xbc)]()[a159_0x485418(0x9c)](),'visibility':z['enum'](['clear','masked'])['optional']()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a159_0x485418(0xa0)](z[a159_0x485418(0xad)]({'name':z[a159_0x485418(0xbc)](),'type':z['string']()[a159_0x485418(0x9c)](),'visibility':z[a159_0x485418(0xae)](['clear',a159_0x485418(0xbe)])[a159_0x485418(0x9c)]()}))[a159_0x485418(0x9c)](),'behavior_table':z['string']()[a159_0x485418(0x9c)](),'join_row':z['number']()[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'join_strategy':z[a159_0x485418(0xae)]([a159_0x485418(0xa9),'First','Last',a159_0x485418(0xb9)])[a159_0x485418(0x9c)](),'formatting':z[a159_0x485418(0xae)](['rows','cols'])[a159_0x485418(0x9c)](),'order_by':z[a159_0x485418(0xa0)](z[a159_0x485418(0xad)]({'key':z[a159_0x485418(0xbc)](),'order':z['enum']([a159_0x485418(0xba),a159_0x485418(0xac)])}))[a159_0x485418(0x9c)]()});export const ActivationDefSchema=z[a159_0x485418(0xad)]({'name':z[a159_0x485418(0xbc)]()['min'](0x1,a159_0x485418(0xb5)),'description':z[a159_0x485418(0xbc)]()['optional'](),'connection':z[a159_0x485418(0xbc)]()[a159_0x485418(0xa3)](0x1,a159_0x485418(0xb4)),'all_columns':z[a159_0x485418(0xc1)]()[a159_0x485418(0x9c)](),'columns':z[a159_0x485418(0xa0)](ActivationColumnDefSchema)[a159_0x485418(0x9c)](),'schedule':ScheduleDefSchema[a159_0x485418(0x9c)](),'notification':NotificationDefSchema[a159_0x485418(0x9c)](),'connector_config':z['record'](z[a159_0x485418(0xbc)](),z['unknown']())[a159_0x485418(0x9c)](),'activation_template_id':z[a159_0x485418(0xbc)]()[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'behavior':ActivationBehaviorDefSchema[a159_0x485418(0xa2)]()[a159_0x485418(0x9c)](),'run_after_journey_refresh':z[a159_0x485418(0xc1)]()[a159_0x485418(0x9c)](),'nested_workflow_project_name':z[a159_0x485418(0xbc)]()['optional'](),'nested_workflow_name':z['string']()[a159_0x485418(0x9c)](),'lock_enabled':z[a159_0x485418(0xc1)]()[a159_0x485418(0x9c)]()});
1
+ function a159_0x2f34(_0x104294,_0x117fe4){_0x104294=_0x104294-0xf8;const _0x8b9d70=a159_0x8b9d();let _0x2f34f0=_0x8b9d70[_0x104294];return _0x2f34f0;}function a159_0x8b9d(){const _0x16391f=['First','month','24813HKzXvf','record','string','All','12nRgXDM','min','cols','desc','day','minute','optional','masked','none','190HVbWyd','82136DJnbPq','3535gwBjOX','Connection\x20name\x20is\x20required','number','nullable','3026598wIGatQ','once','object','6iHIRVD','10279379DKxKcz','enum','928JQkdWd','360794Fqcgba','25AfefEE','Activation\x20name\x20is\x20required','week','daily','union','boolean','array','clear','Last','asc','cron','onFailure','422902Kiorvg'];a159_0x8b9d=function(){return _0x16391f;};return a159_0x8b9d();}const a159_0x39313e=a159_0x2f34;(function(_0x5d4a13,_0x3d8069){const _0x33ccc4=a159_0x2f34,_0x5dfdd8=_0x5d4a13();while(!![]){try{const _0x318246=-parseInt(_0x33ccc4(0x103))/0x1+-parseInt(_0x33ccc4(0x120))/0x2*(-parseInt(_0x33ccc4(0x11c))/0x3)+parseInt(_0x33ccc4(0x114))/0x4*(-parseInt(_0x33ccc4(0x121))/0x5)+-parseInt(_0x33ccc4(0x119))/0x6+-parseInt(_0x33ccc4(0x115))/0x7*(-parseInt(_0x33ccc4(0x11f))/0x8)+parseInt(_0x33ccc4(0x106))/0x9*(-parseInt(_0x33ccc4(0x113))/0xa)+-parseInt(_0x33ccc4(0x11d))/0xb*(-parseInt(_0x33ccc4(0x10a))/0xc);if(_0x318246===_0x3d8069)break;else _0x5dfdd8['push'](_0x5dfdd8['shift']());}catch(_0x596b26){_0x5dfdd8['push'](_0x5dfdd8['shift']());}}}(a159_0x8b9d,0x42473));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x39313e(0x11e)]([a159_0x39313e(0x112),'hourly',a159_0x39313e(0xfa),'weekly','monthly',a159_0x39313e(0x101),'minutes_interval']);export const RepeatUnitSchema=z['enum']([a159_0x39313e(0x10f),'hour',a159_0x39313e(0x10e),a159_0x39313e(0xf9),a159_0x39313e(0x105),a159_0x39313e(0x11a),'none']);export const ScheduleDefSchema=z[a159_0x39313e(0x11b)]({'type':ScheduleTypeSchema[a159_0x39313e(0x110)](),'repeat_unit':RepeatUnitSchema[a159_0x39313e(0x110)](),'repeat_frequency':z[a159_0x39313e(0x117)]()['optional'](),'repeat_sub_frequency':z[a159_0x39313e(0xfd)](z[a159_0x39313e(0x117)]())['optional'](),'start_at':z[a159_0x39313e(0x108)]()[a159_0x39313e(0x118)]()[a159_0x39313e(0x110)](),'end_on':z['string']()[a159_0x39313e(0x118)]()[a159_0x39313e(0x110)](),'timezone':z[a159_0x39313e(0x108)]()['optional']()});export const NotificationDefSchema=z[a159_0x39313e(0x11b)]({'notify_on':z[a159_0x39313e(0xfd)](z['enum'](['onSuccess',a159_0x39313e(0x102)]))[a159_0x39313e(0x110)](),'email_recipients':z[a159_0x39313e(0xfd)](z['string']())[a159_0x39313e(0x110)]()});export const ActivationColumnDefSchema=z[a159_0x39313e(0xfb)]([z[a159_0x39313e(0x108)](),z['object']({'name':z[a159_0x39313e(0x108)](),'type':z[a159_0x39313e(0x108)]()['optional'](),'visibility':z[a159_0x39313e(0x11e)]([a159_0x39313e(0xfe),a159_0x39313e(0x111)])['optional']()})]);export const ActivationBehaviorDefSchema=z[a159_0x39313e(0x11b)]({'columns':z['array'](z[a159_0x39313e(0x11b)]({'name':z[a159_0x39313e(0x108)](),'type':z['string']()['optional'](),'visibility':z[a159_0x39313e(0x11e)]([a159_0x39313e(0xfe),a159_0x39313e(0x111)])[a159_0x39313e(0x110)]()}))['optional'](),'behavior_table':z[a159_0x39313e(0x108)]()[a159_0x39313e(0x110)](),'join_row':z[a159_0x39313e(0x117)]()[a159_0x39313e(0x118)]()['optional'](),'join_strategy':z[a159_0x39313e(0x11e)]([a159_0x39313e(0x109),a159_0x39313e(0x104),a159_0x39313e(0xff),'Top-N'])[a159_0x39313e(0x110)](),'formatting':z[a159_0x39313e(0x11e)](['rows',a159_0x39313e(0x10c)])[a159_0x39313e(0x110)](),'order_by':z['array'](z[a159_0x39313e(0x11b)]({'key':z['string'](),'order':z[a159_0x39313e(0x11e)]([a159_0x39313e(0x100),a159_0x39313e(0x10d)])}))[a159_0x39313e(0x110)]()});export const ActivationDefSchema=z[a159_0x39313e(0x11b)]({'name':z[a159_0x39313e(0x108)]()[a159_0x39313e(0x10b)](0x1,a159_0x39313e(0xf8)),'description':z['string']()[a159_0x39313e(0x110)](),'connection':z[a159_0x39313e(0x108)]()['min'](0x1,a159_0x39313e(0x116)),'all_columns':z[a159_0x39313e(0xfc)]()['optional'](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a159_0x39313e(0x110)](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a159_0x39313e(0x107)](z[a159_0x39313e(0x108)](),z['unknown']())[a159_0x39313e(0x110)](),'activation_template_id':z[a159_0x39313e(0x108)]()['nullable']()[a159_0x39313e(0x110)](),'behavior':ActivationBehaviorDefSchema[a159_0x39313e(0x118)]()[a159_0x39313e(0x110)](),'run_after_journey_refresh':z[a159_0x39313e(0xfc)]()['optional'](),'nested_workflow_project_name':z[a159_0x39313e(0x108)]()[a159_0x39313e(0x110)](),'nested_workflow_name':z[a159_0x39313e(0x108)]()[a159_0x39313e(0x110)](),'lock_enabled':z[a159_0x39313e(0xfc)]()[a159_0x39313e(0x110)]()});
@@ -1 +1 @@
1
- function a160_0x593b(){var _0x26969d=['2NXaPjD','451740khKwup','78576RvrpeY','245964XlcaBa','1368525BaUpIa','220CwMgJA','6066ngXYQt','49OAJtMY','435040qDgHAO','25hMTEeq','88dmtBLu','2042910NKIQCG'];a160_0x593b=function(){return _0x26969d;};return a160_0x593b();}function a160_0x132f(_0x291eda,_0x2392e8){_0x291eda=_0x291eda-0x82;var _0x593bfd=a160_0x593b();var _0x132fd9=_0x593bfd[_0x291eda];return _0x132fd9;}(function(_0x2df714,_0x4728b5){var _0x5de06b=a160_0x132f,_0x13805a=_0x2df714();while(!![]){try{var _0x3a570d=-parseInt(_0x5de06b(0x8b))/0x1+parseInt(_0x5de06b(0x89))/0x2*(parseInt(_0x5de06b(0x8d))/0x3)+-parseInt(_0x5de06b(0x8a))/0x4*(-parseInt(_0x5de06b(0x86))/0x5)+parseInt(_0x5de06b(0x88))/0x6+-parseInt(_0x5de06b(0x84))/0x7*(parseInt(_0x5de06b(0x85))/0x8)+-parseInt(_0x5de06b(0x83))/0x9*(-parseInt(_0x5de06b(0x82))/0xa)+-parseInt(_0x5de06b(0x87))/0xb*(parseInt(_0x5de06b(0x8c))/0xc);if(_0x3a570d===_0x4728b5)break;else _0x13805a['push'](_0x13805a['shift']());}catch(_0x1c3821){_0x13805a['push'](_0x13805a['shift']());}}}(a160_0x593b,0xb7d37));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ (function(_0x3f8c60,_0x16f0dd){var _0x1de068=a160_0x4cba,_0x2de901=_0x3f8c60();while(!![]){try{var _0x4ae5a2=-parseInt(_0x1de068(0x7e))/0x1*(parseInt(_0x1de068(0x86))/0x2)+parseInt(_0x1de068(0x7d))/0x3+parseInt(_0x1de068(0x85))/0x4*(-parseInt(_0x1de068(0x83))/0x5)+-parseInt(_0x1de068(0x7f))/0x6+-parseInt(_0x1de068(0x87))/0x7*(parseInt(_0x1de068(0x81))/0x8)+parseInt(_0x1de068(0x88))/0x9*(parseInt(_0x1de068(0x84))/0xa)+-parseInt(_0x1de068(0x82))/0xb*(-parseInt(_0x1de068(0x80))/0xc);if(_0x4ae5a2===_0x16f0dd)break;else _0x2de901['push'](_0x2de901['shift']());}catch(_0x1d693e){_0x2de901['push'](_0x2de901['shift']());}}}(a160_0x51cb,0x1a827));function a160_0x4cba(_0x12efb4,_0x28c9c5){_0x12efb4=_0x12efb4-0x7d;var _0x51cba3=a160_0x51cb();var _0x4cba9c=_0x51cba3[_0x12efb4];return _0x4cba9c;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a160_0x51cb(){var _0x473369=['650IuBDQI','408kyXzeq','2JBigIE','7WMQJgB','18153Kfraep','249237fNyJzq','50129rhkjNW','509532TmGSuR','12RszLLp','1216504cXnjEh','3990437gNMrTr','8885FjoGZG'];a160_0x51cb=function(){return _0x473369;};return a160_0x51cb();}
@@ -1 +1 @@
1
- const a161_0x3226a4=a161_0x40fb;(function(_0xd6dda1,_0x1a8cd7){const _0x3c650d=a161_0x40fb,_0xf87659=_0xd6dda1();while(!![]){try{const _0x3da654=parseInt(_0x3c650d(0x169))/0x1+-parseInt(_0x3c650d(0x155))/0x2+-parseInt(_0x3c650d(0x14f))/0x3+parseInt(_0x3c650d(0x162))/0x4+parseInt(_0x3c650d(0x15f))/0x5*(-parseInt(_0x3c650d(0x154))/0x6)+parseInt(_0x3c650d(0x164))/0x7+-parseInt(_0x3c650d(0x16f))/0x8*(parseInt(_0x3c650d(0x165))/0x9);if(_0x3da654===_0x1a8cd7)break;else _0xf87659['push'](_0xf87659['shift']());}catch(_0x3c7af8){_0xf87659['push'](_0xf87659['shift']());}}}(a161_0x10d0,0x34feb));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a161_0x3226a4(0x159),a161_0x3226a4(0x151),'launched']);export const ReentryModeTypeSchema=z['enum']([a161_0x3226a4(0x15a),a161_0x3226a4(0x167),'reentry_always']);export const WaitUnitTypeSchema=z[a161_0x3226a4(0x149)](['day',a161_0x3226a4(0x161)]);export const StepTypeValueSchema=z['enum']([a161_0x3226a4(0x15d),'activation',a161_0x3226a4(0x16c),a161_0x3226a4(0x16e),a161_0x3226a4(0x170),a161_0x3226a4(0x163),a161_0x3226a4(0x14d)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x3226a4(0x156)]({'journey':z['string'](),'stage':z[a161_0x3226a4(0x16d)](),'bundle_id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()});export const CriteriaDefSchema=z[a161_0x3226a4(0x156)]({'name':z[a161_0x3226a4(0x16d)](),'description':z['string']()[a161_0x3226a4(0x14c)](),'segment':z[a161_0x3226a4(0x16d)](),'target':JumpTargetDefSchema[a161_0x3226a4(0x14c)]()});function a161_0x10d0(){const _0x22c12c=['end','Journey\x20name\x20is\x20required','173001juDphp','literal','simulation','journey','length','6ZxFWMA','489268jylMWK','object','filter','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','draft','no_reentry','discriminatedUnion','stages','wait','min','895035CdWPgR','number','week','1086228jbIxNG','jump','2830954UGgkyy','3505059GQueSj','type','reentry_unless_goal_achieved','record','411847FiTarQ','boolean','lazy','decision_point','string','ab_test','8wPYEiv','merge','enum','refine','array','optional'];a161_0x10d0=function(){return _0x22c12c;};return a161_0x10d0();}const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a161_0x3226a4(0x160)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()}),WaitConditionDefSchema=z['object']({'segment':z[a161_0x3226a4(0x16d)](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x3226a4(0x14c)]()}),WaitStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'duration':z['number']()['optional'](),'unit':WaitUnitTypeSchema[a161_0x3226a4(0x14c)](),'wait_until':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'condition':WaitConditionDefSchema[a161_0x3226a4(0x14c)](),'days_of_week':z[a161_0x3226a4(0x14b)](z[a161_0x3226a4(0x16d)]())[a161_0x3226a4(0x14c)]()}),StepBaseFields={'name':z[a161_0x3226a4(0x16d)](),'uuid':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()},WaitStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'activation':z['string']()}),ActivationStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x3226a4(0x156)]({'name':z['string'](),'segment':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'segment_id':z['string']()[a161_0x3226a4(0x14c)](),'excluded':z[a161_0x3226a4(0x16a)]()[a161_0x3226a4(0x14c)](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x16c)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x3226a4(0x156)]({'id':z['string']()[a161_0x3226a4(0x14c)](),'name':z[a161_0x3226a4(0x16d)](),'percentage':z['number'](),'next':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)]()}),AbTestStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a161_0x3226a4(0x16d)]()['optional'](),'customized_split':z[a161_0x3226a4(0x16a)]()[a161_0x3226a4(0x14c)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x16e)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x170))}),JumpStepParamsDefSchema=z[a161_0x3226a4(0x156)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x3226a4(0x163)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x3226a4(0x156)]({...StepBaseFields,'type':z['literal'](a161_0x3226a4(0x14d))})['passthrough']();export const StepDefSchema=z[a161_0x3226a4(0x15b)](a161_0x3226a4(0x166),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a161_0x40fb(_0x3e9885,_0x103fed){_0x3e9885=_0x3e9885-0x149;const _0x10d075=a161_0x10d0();let _0x40fb4f=_0x10d075[_0x3e9885];return _0x40fb4f;}export const StageDefSchema=z['object']({'name':z[a161_0x3226a4(0x16d)](),'description':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'id':z['string']()[a161_0x3226a4(0x14c)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a161_0x3226a4(0x14b)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a161_0x3226a4(0x14c)](),'root_step':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'steps':z['array'](StepDefSchema)[a161_0x3226a4(0x14c)]()});export const JourneyEntryDefSchema=z[a161_0x3226a4(0x156)]({'name':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'version':z[a161_0x3226a4(0x16d)]()['optional'](),'state':JourneyStateTypeSchema[a161_0x3226a4(0x14c)](),'latest':z[a161_0x3226a4(0x16a)]()[a161_0x3226a4(0x14c)](),'stages':z[a161_0x3226a4(0x14b)](StageDefSchema),'id':z[a161_0x3226a4(0x16d)]()['optional'](),'version_number':z[a161_0x3226a4(0x160)]()[a161_0x3226a4(0x14c)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a161_0x3226a4(0x16b)](()=>z[a161_0x3226a4(0x156)]({'type':z[a161_0x3226a4(0x150)](a161_0x3226a4(0x152)),'name':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x15e)](0x1,a161_0x3226a4(0x14e)),'description':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'bundle_id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'bundle_name':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'folder_id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'reentry':ReentryModeTypeSchema[a161_0x3226a4(0x14c)](),'allow_reentry':z['boolean']()[a161_0x3226a4(0x14c)](),'goal':CriteriaDefSchema[a161_0x3226a4(0x14c)](),'id':z[a161_0x3226a4(0x16d)]()[a161_0x3226a4(0x14c)](),'version':z['string']()[a161_0x3226a4(0x14c)](),'version_number':z[a161_0x3226a4(0x160)]()[a161_0x3226a4(0x14c)](),'stages':z[a161_0x3226a4(0x14b)](StageDefSchema)['optional'](),'versions':z[a161_0x3226a4(0x14b)](JourneyEntryDefSchema)['optional'](),'journeys':z[a161_0x3226a4(0x14b)](JourneyEntryDefSchema)[a161_0x3226a4(0x14c)](),'segments':z['record'](z['string'](),EmbeddedSegmentDefSchema)[a161_0x3226a4(0x14c)](),'activations':z[a161_0x3226a4(0x168)](z[a161_0x3226a4(0x16d)](),ActivationDefSchema)[a161_0x3226a4(0x14c)]()})[a161_0x3226a4(0x14a)](_0x5d7aaa=>{const _0x221de8=a161_0x3226a4,_0x5f0631=[_0x5d7aaa['journeys'],_0x5d7aaa[_0x221de8(0x15c)],_0x5d7aaa['versions']][_0x221de8(0x157)](_0xb7332f=>Array['isArray'](_0xb7332f)&&_0xb7332f['length']>0x0)[_0x221de8(0x153)];return _0x5f0631===0x1;},{'message':a161_0x3226a4(0x158)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a161_0x355f17=a161_0x5b16;(function(_0x33a5bb,_0x43edfb){const _0x24efc0=a161_0x5b16,_0x53c3c6=_0x33a5bb();while(!![]){try{const _0x250634=-parseInt(_0x24efc0(0x1b9))/0x1*(-parseInt(_0x24efc0(0x192))/0x2)+parseInt(_0x24efc0(0x1ad))/0x3*(-parseInt(_0x24efc0(0x1a0))/0x4)+-parseInt(_0x24efc0(0x1a6))/0x5*(-parseInt(_0x24efc0(0x1b5))/0x6)+parseInt(_0x24efc0(0x1a3))/0x7+-parseInt(_0x24efc0(0x198))/0x8*(parseInt(_0x24efc0(0x19e))/0x9)+parseInt(_0x24efc0(0x19c))/0xa*(parseInt(_0x24efc0(0x1ab))/0xb)+-parseInt(_0x24efc0(0x1b2))/0xc*(-parseInt(_0x24efc0(0x199))/0xd);if(_0x250634===_0x43edfb)break;else _0x53c3c6['push'](_0x53c3c6['shift']());}catch(_0xa3b2){_0x53c3c6['push'](_0x53c3c6['shift']());}}}(a161_0x4de0,0x41b15));import{z}from'zod';function a161_0x4de0(){const _0x58dcce=['decision_point','number','2681133fpQAmU','boolean','string','3010LtVhCF','enum','ab_test','versions','discriminatedUnion','1087339RcrJuE','stages','337917RxYhgu','reentry_always','activation','type','week','1548ByxyWT','journeys','array','510hsLnWy','literal','merge','reentry_unless_goal_achieved','38ChQhnf','lazy','isArray','filter','no_reentry','day','draft','15034KzUOpU','object','jump','end','length','optional','24JEGBLh','7696lCQQQx','Journey\x20name\x20is\x20required','launched','20NlLxWR','refine','1160721NXWJDm','record','12THtSox'];a161_0x4de0=function(){return _0x58dcce;};return a161_0x4de0();}import{RuleDefSchema}from'./segment-schema.js';function a161_0x5b16(_0x3156a6,_0x2cdc1c){_0x3156a6=_0x3156a6-0x18d;const _0x4de08c=a161_0x4de0();let _0x5b16fd=_0x4de08c[_0x3156a6];return _0x5b16fd;}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a161_0x355f17(0x191),'simulation',a161_0x355f17(0x19b)]);export const ReentryModeTypeSchema=z[a161_0x355f17(0x1a7)]([a161_0x355f17(0x18f),a161_0x355f17(0x1b8),a161_0x355f17(0x1ae)]);export const WaitUnitTypeSchema=z[a161_0x355f17(0x1a7)]([a161_0x355f17(0x190),a161_0x355f17(0x1b1)]);export const StepTypeValueSchema=z[a161_0x355f17(0x1a7)](['wait','activation',a161_0x355f17(0x1a1),a161_0x355f17(0x1a8),a161_0x355f17(0x1b7),a161_0x355f17(0x194),'end']);export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()[a161_0x355f17(0x197)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z['string'](),'stage':z['string'](),'bundle_id':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)]()});export const CriteriaDefSchema=z[a161_0x355f17(0x193)]({'name':z[a161_0x355f17(0x1a5)](),'description':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'segment':z[a161_0x355f17(0x1a5)](),'target':JumpTargetDefSchema[a161_0x355f17(0x197)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a161_0x355f17(0x1a2)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a161_0x355f17(0x197)]()}),WaitConditionDefSchema=z[a161_0x355f17(0x193)]({'segment':z[a161_0x355f17(0x1a5)](),'next':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x355f17(0x197)]()}),WaitStepParamsDefSchema=z['object']({'duration':z['number']()[a161_0x355f17(0x197)](),'unit':WaitUnitTypeSchema[a161_0x355f17(0x197)](),'wait_until':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'condition':WaitConditionDefSchema[a161_0x355f17(0x197)](),'days_of_week':z['array'](z['string']())['optional']()}),StepBaseFields={'name':z[a161_0x355f17(0x1a5)](),'uuid':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'next':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)]()},WaitStepDefSchema=z[a161_0x355f17(0x193)]({...StepBaseFields,'type':z['literal']('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a161_0x355f17(0x1a5)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x355f17(0x1b6)](a161_0x355f17(0x1af)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a161_0x355f17(0x1a5)](),'segment':z[a161_0x355f17(0x1a5)]()['optional'](),'segment_id':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'excluded':z[a161_0x355f17(0x1a4)]()[a161_0x355f17(0x197)](),'next':z['string']()[a161_0x355f17(0x197)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z[a161_0x355f17(0x1b4)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x355f17(0x1a1)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z['object']({'id':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'name':z[a161_0x355f17(0x1a5)](),'percentage':z[a161_0x355f17(0x1a2)](),'next':z['string']()[a161_0x355f17(0x197)]()}),AbTestStepParamsDefSchema=z[a161_0x355f17(0x193)]({'variants':z[a161_0x355f17(0x1b4)](AbTestVariantDefSchema),'unique_id':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'customized_split':z['boolean']()[a161_0x355f17(0x197)]()}),AbTestStepDefSchema=z[a161_0x355f17(0x193)]({...StepBaseFields,'type':z[a161_0x355f17(0x1b6)](a161_0x355f17(0x1a8)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x355f17(0x193)]({...StepBaseFields,'type':z[a161_0x355f17(0x1b6)]('merge')}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x355f17(0x193)]({...StepBaseFields,'type':z[a161_0x355f17(0x1b6)](a161_0x355f17(0x194)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x355f17(0x1b6)](a161_0x355f17(0x195))})['passthrough']();export const StepDefSchema=z[a161_0x355f17(0x1aa)](a161_0x355f17(0x1b0),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x355f17(0x193)]({'name':z[a161_0x355f17(0x1a5)](),'description':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'id':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z['array'](CriteriaDefSchema)[a161_0x355f17(0x197)](),'milestone':CriteriaDefSchema[a161_0x355f17(0x197)](),'root_step':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'steps':z['array'](StepDefSchema)[a161_0x355f17(0x197)]()});export const JourneyEntryDefSchema=z[a161_0x355f17(0x193)]({'name':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'version':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'state':JourneyStateTypeSchema[a161_0x355f17(0x197)](),'latest':z[a161_0x355f17(0x1a4)]()['optional'](),'stages':z[a161_0x355f17(0x1b4)](StageDefSchema),'id':z['string']()[a161_0x355f17(0x197)](),'version_number':z[a161_0x355f17(0x1a2)]()[a161_0x355f17(0x197)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema[a161_0x355f17(0x197)]()});export const JourneyDefSchema=z[a161_0x355f17(0x1ba)](()=>z[a161_0x355f17(0x193)]({'type':z[a161_0x355f17(0x1b6)]('journey'),'name':z[a161_0x355f17(0x1a5)]()['min'](0x1,a161_0x355f17(0x19a)),'description':z['string']()[a161_0x355f17(0x197)](),'bundle_id':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'bundle_name':z['string']()[a161_0x355f17(0x197)](),'folder_id':z['string']()[a161_0x355f17(0x197)](),'reentry':ReentryModeTypeSchema[a161_0x355f17(0x197)](),'allow_reentry':z[a161_0x355f17(0x1a4)]()['optional'](),'goal':CriteriaDefSchema[a161_0x355f17(0x197)](),'id':z['string']()[a161_0x355f17(0x197)](),'version':z[a161_0x355f17(0x1a5)]()[a161_0x355f17(0x197)](),'version_number':z[a161_0x355f17(0x1a2)]()[a161_0x355f17(0x197)](),'stages':z['array'](StageDefSchema)[a161_0x355f17(0x197)](),'versions':z['array'](JourneyEntryDefSchema)['optional'](),'journeys':z['array'](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x355f17(0x19f)](z[a161_0x355f17(0x1a5)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a161_0x355f17(0x19f)](z[a161_0x355f17(0x1a5)](),ActivationDefSchema)[a161_0x355f17(0x197)]()})[a161_0x355f17(0x19d)](_0x2e8de2=>{const _0x51ee12=a161_0x355f17,_0x3de78c=[_0x2e8de2[_0x51ee12(0x1b3)],_0x2e8de2[_0x51ee12(0x1ac)],_0x2e8de2[_0x51ee12(0x1a9)]][_0x51ee12(0x18e)](_0x3d94c0=>Array[_0x51ee12(0x18d)](_0x3d94c0)&&_0x3d94c0['length']>0x0)[_0x51ee12(0x196)];return _0x3de78c===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x4a3e91,_0x47bd34){var _0x238c7c=a163_0x2aa5,_0x5b5fc4=_0x4a3e91();while(!![]){try{var _0xe4d632=parseInt(_0x238c7c(0x172))/0x1*(-parseInt(_0x238c7c(0x17c))/0x2)+parseInt(_0x238c7c(0x17a))/0x3+-parseInt(_0x238c7c(0x175))/0x4*(parseInt(_0x238c7c(0x179))/0x5)+-parseInt(_0x238c7c(0x176))/0x6*(-parseInt(_0x238c7c(0x17b))/0x7)+-parseInt(_0x238c7c(0x174))/0x8+-parseInt(_0x238c7c(0x178))/0x9+-parseInt(_0x238c7c(0x173))/0xa*(-parseInt(_0x238c7c(0x177))/0xb);if(_0xe4d632===_0x47bd34)break;else _0x5b5fc4['push'](_0x5b5fc4['shift']());}catch(_0x21e74b){_0x5b5fc4['push'](_0x5b5fc4['shift']());}}}(a163_0x2851,0x5258d));function a163_0x2aa5(_0x108bbb,_0xe33a86){_0x108bbb=_0x108bbb-0x172;var _0x28515f=a163_0x2851();var _0x2aa5ed=_0x28515f[_0x108bbb];return _0x2aa5ed;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x2851(){var _0x3feda5=['873978mWIWIz','3076129kbIfUL','2uyZDqW','612131CdQjiS','950enHUGK','38600LkQNmw','277304Fjysyw','6lcvEYz','65879fwXjGp','1237509voVmPS','15QJXqsj'];a163_0x2851=function(){return _0x3feda5;};return a163_0x2851();}
1
+ function a163_0x4c56(_0x4d22dd,_0xcb9464){_0x4d22dd=_0x4d22dd-0xab;var _0x490794=a163_0x4907();var _0x4c564f=_0x490794[_0x4d22dd];return _0x4c564f;}function a163_0x4907(){var _0x5e29c4=['4384130DHGunN','182SPKefM','4669322kRgQPg','1261494LlJskB','48fBVyLQ','968868ximGBD','6YekFlV','30750PLYNYQ','1386hHiLDj','2203544tfoWYu','336280QXhBKK'];a163_0x4907=function(){return _0x5e29c4;};return a163_0x4907();}(function(_0xe9cd56,_0x55de9a){var _0x5a3ff6=a163_0x4c56,_0x113889=_0xe9cd56();while(!![]){try{var _0x50ab3b=-parseInt(_0x5a3ff6(0xb3))/0x1+-parseInt(_0x5a3ff6(0xaf))/0x2*(parseInt(_0x5a3ff6(0xb5))/0x3)+parseInt(_0x5a3ff6(0xac))/0x4+-parseInt(_0x5a3ff6(0xae))/0x5+parseInt(_0x5a3ff6(0xb4))/0x6*(-parseInt(_0x5a3ff6(0xb0))/0x7)+parseInt(_0x5a3ff6(0xb2))/0x8*(-parseInt(_0x5a3ff6(0xb1))/0x9)+parseInt(_0x5a3ff6(0xad))/0xa*(parseInt(_0x5a3ff6(0xab))/0xb);if(_0x50ab3b===_0x55de9a)break;else _0x113889['push'](_0x113889['shift']());}catch(_0x395d16){_0x113889['push'](_0x113889['shift']());}}}(a163_0x4907,0x7a718));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
@@ -1 +1 @@
1
- const a164_0x1d72ee=a164_0x32c0;(function(_0x5f2a6a,_0x1cb428){const _0x217584=a164_0x32c0,_0x3a5643=_0x5f2a6a();while(!![]){try{const _0x40e732=parseInt(_0x217584(0x1e5))/0x1*(-parseInt(_0x217584(0x1be))/0x2)+-parseInt(_0x217584(0x1c5))/0x3*(-parseInt(_0x217584(0x1de))/0x4)+-parseInt(_0x217584(0x1e2))/0x5*(parseInt(_0x217584(0x1e6))/0x6)+-parseInt(_0x217584(0x1ed))/0x7*(-parseInt(_0x217584(0x1b3))/0x8)+-parseInt(_0x217584(0x1ca))/0x9+-parseInt(_0x217584(0x1a9))/0xa*(parseInt(_0x217584(0x1c8))/0xb)+parseInt(_0x217584(0x1ea))/0xc*(parseInt(_0x217584(0x1df))/0xd);if(_0x40e732===_0x1cb428)break;else _0x3a5643['push'](_0x3a5643['shift']());}catch(_0x4f3c22){_0x3a5643['push'](_0x3a5643['shift']());}}}(a164_0x4d40,0x7b861));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x1d72ee(0x1d3)](['Equal',a164_0x1d72ee(0x1da),a164_0x1d72ee(0x1d6),a164_0x1d72ee(0x1cb),a164_0x1d72ee(0x1eb),'In',a164_0x1d72ee(0x1ae),a164_0x1d72ee(0x1b6),a164_0x1d72ee(0x1a2),a164_0x1d72ee(0x1a4),a164_0x1d72ee(0x1c2),a164_0x1d72ee(0x1ef),a164_0x1d72ee(0x1b5),a164_0x1d72ee(0x1d9),a164_0x1d72ee(0x1ad)]);export const TimeUnitSchema=z['enum']([a164_0x1d72ee(0x1e7),a164_0x1d72ee(0x1b2),'hour',a164_0x1d72ee(0x1e3),a164_0x1d72ee(0x1c3),a164_0x1d72ee(0x1ac),a164_0x1d72ee(0x1cf)]);export const AggregationTypeSchema=z[a164_0x1d72ee(0x1d3)](['Count',a164_0x1d72ee(0x1bb),a164_0x1d72ee(0x1a5),'Min',a164_0x1d72ee(0x1ee),'CountDistinct',a164_0x1d72ee(0x1a6),a164_0x1d72ee(0x1cd)]);const TemporalValueSchema=z['union']([z[a164_0x1d72ee(0x1d1)]({'timestamp':z['string']()}),z[a164_0x1d72ee(0x1d1)]({'last':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1d0)](z['string'](),z['number']())]),'unit':z[a164_0x1d72ee(0x1a7)]()})]),OperatorValueSchema=z['union']([z[a164_0x1d72ee(0x1a7)](),z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1d2)](),TemporalValueSchema,z['array'](z[a164_0x1d72ee(0x1c4)]([z['string'](),z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1d2)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x1d72ee(0x1ba),a164_0x1d72ee(0x1da),a164_0x1d72ee(0x1cb),a164_0x1d72ee(0x1d6),a164_0x1d72ee(0x1eb),'In',a164_0x1d72ee(0x1ef),a164_0x1d72ee(0x1b5),'EndWith',a164_0x1d72ee(0x1b6),a164_0x1d72ee(0x1a4),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast','TimeWithinNext']);export const OperatorDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':OperatorTypeSchema,'not':z[a164_0x1d72ee(0x1d2)]()['optional'](),'value':OperatorValueSchema['optional'](),'min':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1a7)](),TemporalValueSchema])['optional'](),'max':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z[a164_0x1d72ee(0x1a7)](),TemporalValueSchema])[a164_0x1d72ee(0x1cc)](),'unit':TimeUnitSchema['optional'](),'duration':z[a164_0x1d72ee(0x1d1)]({'day':z['number']()[a164_0x1d72ee(0x1cc)](),'week':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)](),'month':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)](),'year':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)](),'hour':z['number']()['optional'](),'minute':z[a164_0x1d72ee(0x1ce)]()['optional'](),'second':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)]()})['optional'](),'from':z[a164_0x1d72ee(0x1d1)]({'last':z[a164_0x1d72ee(0x1c4)]([z[a164_0x1d72ee(0x1ce)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x1d72ee(0x1d2)]()[a164_0x1d72ee(0x1cc)]()})['superRefine']((_0x17a36c,_0xb196a2)=>{const _0x86d6c6=a164_0x1d72ee;OPERATORS_REQUIRING_VALUE[_0x86d6c6(0x1b4)](_0x17a36c[_0x86d6c6(0x1bc)])&&(_0x17a36c[_0x86d6c6(0x1db)]===undefined||_0x17a36c[_0x86d6c6(0x1db)]===null)&&_0xb196a2['addIssue']({'code':'custom','message':_0x86d6c6(0x1d7)+_0x17a36c[_0x86d6c6(0x1bc)]+_0x86d6c6(0x1c6),'path':[_0x86d6c6(0x1db)]}),_0x17a36c[_0x86d6c6(0x1bc)]===_0x86d6c6(0x1ae)&&_0x17a36c['min']===undefined&&_0x17a36c[_0x86d6c6(0x1b7)]===undefined&&_0xb196a2['addIssue']({'code':_0x86d6c6(0x1c9),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0x86d6c6(0x1e4)}}),OPERATORS_REQUIRING_UNIT['has'](_0x17a36c['type'])&&_0x17a36c[_0x86d6c6(0x1db)]!==undefined&&!_0x17a36c['unit']&&_0xb196a2[_0x86d6c6(0x1c1)]({'code':_0x86d6c6(0x1c9),'message':'Operator\x20\x27'+_0x17a36c['type']+_0x86d6c6(0x1d8),'path':['unit'],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x17a36c['type']===_0x86d6c6(0x1ad)&&(!_0x17a36c[_0x86d6c6(0x1a8)]&&_0xb196a2['addIssue']({'code':_0x86d6c6(0x1c9),'message':_0x86d6c6(0x1d5),'path':[_0x86d6c6(0x1a8)]}),!_0x17a36c['from']&&_0xb196a2[_0x86d6c6(0x1c1)]({'code':_0x86d6c6(0x1c9),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':['from']}));});export const ArrayMatchingSchema=z['union']([z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1bd)),z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1e8)),z['object']({'atLeast':z['number']()}),z['object']({'atMost':z[a164_0x1d72ee(0x1ce)]()}),z[a164_0x1d72ee(0x1d1)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x1d72ee(0x1e9)](a164_0x1d72ee(0x1bc),[z['object']({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1bb),'Min',a164_0x1d72ee(0x1ee),a164_0x1d72ee(0x1a5)]),'column':z['string'](),'groupingColumns':z['array'](z[a164_0x1d72ee(0x1a7)]())['optional']()}),z[a164_0x1d72ee(0x1d1)]({'type':z['literal'](a164_0x1d72ee(0x1dc)),'groupingColumns':z[a164_0x1d72ee(0x1ab)](z['string']())[a164_0x1d72ee(0x1cc)]()}),z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1dd)),'columns':z[a164_0x1d72ee(0x1ab)](z[a164_0x1d72ee(0x1a7)]())}),z[a164_0x1d72ee(0x1d1)]({'type':z['enum']([a164_0x1d72ee(0x1a6),a164_0x1d72ee(0x1cd)]),'column':z[a164_0x1d72ee(0x1a7)](),'orderColumn':z[a164_0x1d72ee(0x1a7)](),'groupingColumns':z[a164_0x1d72ee(0x1ab)](z[a164_0x1d72ee(0x1a7)]())['optional']()})]);export const TimeWindowDefSchema=z[a164_0x1d72ee(0x1d1)]({'duration':z[a164_0x1d72ee(0x1ce)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x1d72ee(0x1a4),a164_0x1d72ee(0x1c2),a164_0x1d72ee(0x1ad)]);export const FilterColumnConditionDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z['literal'](a164_0x1d72ee(0x1a1)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1d72ee(0x1cc)]()})['superRefine']((_0x49cc22,_0x155c9f)=>{const _0x50bb71=a164_0x1d72ee,_0x355e30=_0x49cc22[_0x50bb71(0x1aa)][_0x50bb71(0x1bc)];_0x49cc22[_0x50bb71(0x1bf)]===_0x50bb71(0x1af)?!TIMESTAMP_OPERATORS[_0x50bb71(0x1b4)](_0x355e30)&&_0x155c9f[_0x50bb71(0x1c1)]({'code':_0x50bb71(0x1c9),'message':_0x50bb71(0x1b9)+_0x355e30+'\x27)','path':[_0x50bb71(0x1aa),_0x50bb71(0x1bc)]}):TIMESTAMP_OPERATORS[_0x50bb71(0x1b4)](_0x355e30)&&_0x155c9f[_0x50bb71(0x1c1)]({'code':_0x50bb71(0x1c9),'message':_0x50bb71(0x1d7)+_0x355e30+_0x50bb71(0x1b0),'path':[_0x50bb71(0x1aa),'type']});});export const FilterRuleDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1a3)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1ec)),'attribute':z[a164_0x1d72ee(0x1a7)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1d72ee(0x1cc)](),'exclude':z[a164_0x1d72ee(0x1d2)]()[a164_0x1d72ee(0x1cc)](),'aggregation':AggregationDefSchema[a164_0x1d72ee(0x1cc)](),'source':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1cc)](),'filter':FilterRuleDefSchema[a164_0x1d72ee(0x1cc)](),'limit':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)]()}));function a164_0x4d40(){const _0x51650f=['duration','10fgBEVQ','operator','array','month','TimeRange','Between','timestamp','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Behavior','minute','593824kVJVhP','has','StartWith','Regexp','max','lazy','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Equal','Sum','type','any','511504ToEaBU','column','realtime','addIssue','TimeWithinNext','week','union','105069PDpxhl','\x27\x20requires\x20a\x20value','include','2103937OfqeNG','custom','2787831lGbYMJ','GreaterEqual','optional','Last','number','year','record','object','boolean','enum','funnel_stage','TimeRange\x20operator\x20requires\x20\x27duration\x27','Less','Operator\x20\x27','\x27\x20requires\x20a\x20time\x20unit','EndWith','Greater','value','Count','CountDistinct','44undAwx','1859NlivYR','literal','min','240KAxUIW','day','MISSING_BETWEEN_BOUNDS','2OfjPOK','101592buJhvu','second','all','discriminatedUnion','150840MiMFqc','LessEqual','Value','14zNkSmN','Max','Contain','Column','IsNull','And','TimeWithinPast','Average','First','string'];a164_0x4d40=function(){return _0x51650f;};return a164_0x4d40();}export const BehaviorConditionDefSchema=z['lazy'](()=>z['object']({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1b1)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1d72ee(0x1cc)](),'exclude':z[a164_0x1d72ee(0x1d2)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x1d72ee(0x1a7)]()['optional'](),'filter':FilterRuleDefSchema[a164_0x1d72ee(0x1cc)](),'timeWindow':TimeWindowDefSchema[a164_0x1d72ee(0x1cc)](),'limit':z[a164_0x1d72ee(0x1ce)]()[a164_0x1d72ee(0x1cc)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x1d72ee(0x1e0)](a164_0x1d72ee(0x1a1)),'column':z[a164_0x1d72ee(0x1a7)](),'operator':OperatorDefSchema});function a164_0x32c0(_0xa01e36,_0x10090e){_0xa01e36=_0xa01e36-0x1a1;const _0x4d406b=a164_0x4d40();let _0x32c05a=_0x4d406b[_0xa01e36];return _0x32c05a;}export const CompositeConditionDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1a3),'Or']),'conditions':z[a164_0x1d72ee(0x1ab)](ConditionDefSchema),'description':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1cc)]()}));export const SegmentRefConditionDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1c7),'exclude']),'segment':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1e1)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1c4)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x1d72ee(0x1b8)](()=>z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1d3)]([a164_0x1d72ee(0x1a3),'Or']),'conditions':z[a164_0x1d72ee(0x1ab)](ConditionDefSchema),'description':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1cc)]()}));export const SegmentDefSchema=z[a164_0x1d72ee(0x1d1)]({'type':z[a164_0x1d72ee(0x1e0)]('segment')[a164_0x1d72ee(0x1cc)](),'name':z[a164_0x1d72ee(0x1a7)]()[a164_0x1d72ee(0x1e1)](0x1,'Segment\x20name\x20is\x20required'),'description':z['string']()['optional'](),'folder':z[a164_0x1d72ee(0x1a7)]()['optional'](),'rule':RuleDefSchema[a164_0x1d72ee(0x1cc)](),'kind':z[a164_0x1d72ee(0x1d3)](['batch',a164_0x1d72ee(0x1c0),a164_0x1d72ee(0x1d4)])[a164_0x1d72ee(0x1cc)](),'visible':z['boolean']()[a164_0x1d72ee(0x1cc)](),'activations':z[a164_0x1d72ee(0x1ab)](z['any']())[a164_0x1d72ee(0x1cc)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x27cfbf=a164_0xff1f;(function(_0x1a0f76,_0x3c4d7a){const _0x5c7584=a164_0xff1f,_0x1857cd=_0x1a0f76();while(!![]){try{const _0x25bcf2=parseInt(_0x5c7584(0xfa))/0x1*(-parseInt(_0x5c7584(0xea))/0x2)+parseInt(_0x5c7584(0xe4))/0x3*(-parseInt(_0x5c7584(0xfc))/0x4)+-parseInt(_0x5c7584(0x126))/0x5*(-parseInt(_0x5c7584(0xff))/0x6)+-parseInt(_0x5c7584(0x124))/0x7+parseInt(_0x5c7584(0xed))/0x8+-parseInt(_0x5c7584(0x104))/0x9+-parseInt(_0x5c7584(0xf9))/0xa*(-parseInt(_0x5c7584(0xeb))/0xb);if(_0x25bcf2===_0x3c4d7a)break;else _0x1857cd['push'](_0x1857cd['shift']());}catch(_0x53ea64){_0x1857cd['push'](_0x1857cd['shift']());}}}(a164_0x5934,0x68312));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0xe7),'Greater',a164_0x27cfbf(0x133),a164_0x27cfbf(0x119),a164_0x27cfbf(0x103),'In',a164_0x27cfbf(0x117),a164_0x27cfbf(0x12d),a164_0x27cfbf(0x113),a164_0x27cfbf(0xf7),a164_0x27cfbf(0xf5),'Contain',a164_0x27cfbf(0x11b),a164_0x27cfbf(0x108),a164_0x27cfbf(0x102)]);export const TimeUnitSchema=z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0xf0),a164_0x27cfbf(0x127),a164_0x27cfbf(0xe3),a164_0x27cfbf(0x116),'week',a164_0x27cfbf(0xfe),a164_0x27cfbf(0xef)]);export const AggregationTypeSchema=z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x12c),'Sum',a164_0x27cfbf(0x11d),a164_0x27cfbf(0xf6),a164_0x27cfbf(0xec),a164_0x27cfbf(0xf4),'First',a164_0x27cfbf(0x134)]);function a164_0x5934(){const _0x2ab126=['Regexp','MISSING_TIME_UNIT','has','record','Greater','duration','Less','Last','hour','120057rtfzAN','Operator\x20\x27','\x27\x20requires\x20a\x20value','Equal','value','enum','1004270sZoZOy','11kExghp','Max','1456296HyaotG','First','year','second','timestamp','min','column','CountDistinct','TimeWithinNext','Min','TimeWithinPast','funnel_stage','17124230ZihWta','1PibOCW','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','4HYVtoT','Value','month','1284ZNxYWm','And','TimeRange\x20operator\x20requires\x20\x27from\x27','TimeRange','LessEqual','7072263jkJnZu','string','MISSING_BETWEEN_BOUNDS','array','EndWith','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Behavior','Segment\x20reference\x20must\x20not\x20be\x20empty','realtime','Column','literal','segment','custom','TimeRange\x20operator\x20requires\x20\x27duration\x27','batch','IsNull','boolean','addIssue','day','Between','max','GreaterEqual','unit','StartWith','number','Average','union','superRefine','optional','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Sum','operator','2736755vZiqZl','lazy','5870qXWwqb','minute','any','from','type','object','Count'];a164_0x5934=function(){return _0x2ab126;};return a164_0x5934();}const TemporalValueSchema=z[a164_0x27cfbf(0x11e)]([z['object']({'timestamp':z['string']()}),z[a164_0x27cfbf(0x12b)]({'last':z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x130)](z[a164_0x27cfbf(0x105)](),z['number']())]),'unit':z[a164_0x27cfbf(0x105)]()})]),OperatorValueSchema=z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x105)](),z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x114)](),TemporalValueSchema,z[a164_0x27cfbf(0x107)](z['union']([z[a164_0x27cfbf(0x105)](),z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x114)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x27cfbf(0xe7),a164_0x27cfbf(0x131),a164_0x27cfbf(0x119),a164_0x27cfbf(0x133),a164_0x27cfbf(0x103),'In','Contain',a164_0x27cfbf(0x11b),a164_0x27cfbf(0x108),a164_0x27cfbf(0x12d),a164_0x27cfbf(0xf7),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set([a164_0x27cfbf(0xf7),'TimeWithinNext']);export const OperatorDefSchema=z[a164_0x27cfbf(0x12b)]({'type':OperatorTypeSchema,'not':z[a164_0x27cfbf(0x114)]()[a164_0x27cfbf(0x120)](),'value':OperatorValueSchema[a164_0x27cfbf(0x120)](),'min':z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x105)](),TemporalValueSchema])['optional'](),'max':z['union']([z[a164_0x27cfbf(0x11c)](),z[a164_0x27cfbf(0x105)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a164_0x27cfbf(0x120)](),'duration':z[a164_0x27cfbf(0x12b)]({'day':z[a164_0x27cfbf(0x11c)]()[a164_0x27cfbf(0x120)](),'week':z[a164_0x27cfbf(0x11c)]()[a164_0x27cfbf(0x120)](),'month':z['number']()[a164_0x27cfbf(0x120)](),'year':z['number']()['optional'](),'hour':z[a164_0x27cfbf(0x11c)]()['optional'](),'minute':z[a164_0x27cfbf(0x11c)]()[a164_0x27cfbf(0x120)](),'second':z['number']()['optional']()})[a164_0x27cfbf(0x120)](),'from':z[a164_0x27cfbf(0x12b)]({'last':z[a164_0x27cfbf(0x11e)]([z['number'](),z[a164_0x27cfbf(0x105)]()]),'unit':TimeUnitSchema})[a164_0x27cfbf(0x120)](),'reverse':z[a164_0x27cfbf(0x114)]()['optional']()})[a164_0x27cfbf(0x11f)]((_0x34434e,_0x148f57)=>{const _0x256047=a164_0x27cfbf;OPERATORS_REQUIRING_VALUE[_0x256047(0x12f)](_0x34434e[_0x256047(0x12a)])&&(_0x34434e[_0x256047(0xe8)]===undefined||_0x34434e[_0x256047(0xe8)]===null)&&_0x148f57[_0x256047(0x115)]({'code':_0x256047(0x110),'message':'Operator\x20\x27'+_0x34434e[_0x256047(0x12a)]+_0x256047(0xe6),'path':[_0x256047(0xe8)]}),_0x34434e['type']===_0x256047(0x117)&&_0x34434e['min']===undefined&&_0x34434e[_0x256047(0x118)]===undefined&&_0x148f57[_0x256047(0x115)]({'code':'custom','message':_0x256047(0xfb),'params':{'validationCode':_0x256047(0x106)}}),OPERATORS_REQUIRING_UNIT['has'](_0x34434e[_0x256047(0x12a)])&&_0x34434e['value']!==undefined&&!_0x34434e[_0x256047(0x11a)]&&_0x148f57[_0x256047(0x115)]({'code':'custom','message':_0x256047(0xe5)+_0x34434e[_0x256047(0x12a)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x256047(0x11a)],'params':{'validationCode':_0x256047(0x12e)}}),_0x34434e['type']===_0x256047(0x102)&&(!_0x34434e[_0x256047(0x132)]&&_0x148f57['addIssue']({'code':_0x256047(0x110),'message':_0x256047(0x111),'path':[_0x256047(0x132)]}),!_0x34434e['from']&&_0x148f57[_0x256047(0x115)]({'code':_0x256047(0x110),'message':_0x256047(0x101),'path':[_0x256047(0x129)]}));});export const ArrayMatchingSchema=z[a164_0x27cfbf(0x11e)]([z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x128)),z[a164_0x27cfbf(0x10e)]('all'),z[a164_0x27cfbf(0x12b)]({'atLeast':z[a164_0x27cfbf(0x11c)]()}),z[a164_0x27cfbf(0x12b)]({'atMost':z[a164_0x27cfbf(0x11c)]()}),z[a164_0x27cfbf(0x12b)]({'exactly':z[a164_0x27cfbf(0x11c)]()})]);export const AggregationDefSchema=z['discriminatedUnion']('type',[z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x122),a164_0x27cfbf(0xf6),a164_0x27cfbf(0xec),a164_0x27cfbf(0x11d)]),'column':z['string'](),'groupingColumns':z[a164_0x27cfbf(0x107)](z[a164_0x27cfbf(0x105)]())[a164_0x27cfbf(0x120)]()}),z[a164_0x27cfbf(0x12b)]({'type':z['literal']('Count'),'groupingColumns':z[a164_0x27cfbf(0x107)](z['string']())['optional']()}),z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0xf4)),'columns':z[a164_0x27cfbf(0x107)](z['string']())}),z['object']({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0xee),a164_0x27cfbf(0x134)]),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a164_0x27cfbf(0x107)](z['string']())['optional']()})]);export const TimeWindowDefSchema=z[a164_0x27cfbf(0x12b)]({'duration':z[a164_0x27cfbf(0x11c)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x27cfbf(0xf7),a164_0x27cfbf(0xf5),'TimeRange']);export const FilterColumnConditionDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)]('Column'),'column':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x27cfbf(0x120)]()})[a164_0x27cfbf(0x11f)]((_0x33a964,_0x3b00a0)=>{const _0x338f88=a164_0x27cfbf,_0x1e5e60=_0x33a964[_0x338f88(0x123)][_0x338f88(0x12a)];_0x33a964[_0x338f88(0xf3)]===_0x338f88(0xf1)?!TIMESTAMP_OPERATORS['has'](_0x1e5e60)&&_0x3b00a0[_0x338f88(0x115)]({'code':_0x338f88(0x110),'message':_0x338f88(0x121)+_0x1e5e60+'\x27)','path':[_0x338f88(0x123),_0x338f88(0x12a)]}):TIMESTAMP_OPERATORS[_0x338f88(0x12f)](_0x1e5e60)&&_0x3b00a0['addIssue']({'code':'custom','message':_0x338f88(0xe5)+_0x1e5e60+_0x338f88(0x109),'path':[_0x338f88(0x123),'type']});});export const FilterRuleDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x100)),'conditions':z[a164_0x27cfbf(0x107)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x27cfbf(0x125)](()=>z['object']({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0xfd)),'attribute':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x27cfbf(0x114)]()['optional'](),'aggregation':AggregationDefSchema[a164_0x27cfbf(0x120)](),'source':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'filter':FilterRuleDefSchema[a164_0x27cfbf(0x120)](),'limit':z[a164_0x27cfbf(0x11c)]()['optional']()}));export const BehaviorConditionDefSchema=z[a164_0x27cfbf(0x125)](()=>z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x10a)),'attribute':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x27cfbf(0x120)](),'exclude':z[a164_0x27cfbf(0x114)]()[a164_0x27cfbf(0x120)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'filter':FilterRuleDefSchema[a164_0x27cfbf(0x120)](),'timeWindow':TimeWindowDefSchema[a164_0x27cfbf(0x120)](),'limit':z['number']()[a164_0x27cfbf(0x120)]()}));function a164_0xff1f(_0xbe9884,_0x191602){_0xbe9884=_0xbe9884-0xe3;const _0x5934a6=a164_0x5934();let _0xff1f8f=_0x5934a6[_0xbe9884];return _0xff1f8f;}export const ColumnConditionDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x10d)),'column':z[a164_0x27cfbf(0x105)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x27cfbf(0x125)](()=>z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x100),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)]()}));export const SegmentRefConditionDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0xe9)](['include','exclude']),'segment':z['string']()['min'](0x1,a164_0x27cfbf(0x10b))});export const ConditionDefSchema=z['lazy'](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x27cfbf(0x125)](()=>z['object']({'type':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x100),'Or']),'conditions':z[a164_0x27cfbf(0x107)](ConditionDefSchema),'description':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)]()}));export const SegmentDefSchema=z[a164_0x27cfbf(0x12b)]({'type':z[a164_0x27cfbf(0x10e)](a164_0x27cfbf(0x10f))[a164_0x27cfbf(0x120)](),'name':z['string']()[a164_0x27cfbf(0xf2)](0x1,'Segment\x20name\x20is\x20required'),'description':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'folder':z[a164_0x27cfbf(0x105)]()[a164_0x27cfbf(0x120)](),'rule':RuleDefSchema['optional'](),'kind':z[a164_0x27cfbf(0xe9)]([a164_0x27cfbf(0x112),a164_0x27cfbf(0x10c),a164_0x27cfbf(0xf8)])[a164_0x27cfbf(0x120)](),'visible':z['boolean']()[a164_0x27cfbf(0x120)](),'activations':z['array'](z[a164_0x27cfbf(0x128)]())[a164_0x27cfbf(0x120)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a165_0x1ff3b5=a165_0x5c89;(function(_0x5bed62,_0x424c6c){const _0x3925cd=a165_0x5c89,_0x1dfc6c=_0x5bed62();while(!![]){try{const _0x57758f=parseInt(_0x3925cd(0x1ce))/0x1*(parseInt(_0x3925cd(0x1d3))/0x2)+-parseInt(_0x3925cd(0x1d9))/0x3*(-parseInt(_0x3925cd(0x1bd))/0x4)+parseInt(_0x3925cd(0x1d2))/0x5*(-parseInt(_0x3925cd(0x1c6))/0x6)+parseInt(_0x3925cd(0x1cf))/0x7*(parseInt(_0x3925cd(0x1ca))/0x8)+parseInt(_0x3925cd(0x1bc))/0x9+-parseInt(_0x3925cd(0x1d6))/0xa+parseInt(_0x3925cd(0x1c8))/0xb*(-parseInt(_0x3925cd(0x1d0))/0xc);if(_0x57758f===_0x424c6c)break;else _0x1dfc6c['push'](_0x1dfc6c['shift']());}catch(_0x37e9e0){_0x1dfc6c['push'](_0x1dfc6c['shift']());}}}(a165_0x119d,0x2c856));import{readFileSync}from'fs';import*as a165_0x1339c7 from'path';import*as a165_0x341f9b from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a165_0x1ff3b5(0x1c2),a165_0x1ff3b5(0x1db)]);export function isJourneyDef(_0xbbe11e){const _0x28aacb=a165_0x1ff3b5;return typeof _0xbbe11e===_0x28aacb(0x1c9)&&_0xbbe11e!==null&&_0x28aacb(0x1c0)in _0xbbe11e&&_0xbbe11e['type']===_0x28aacb(0x1d5);}export function isCampaignDef(_0x2c7ecb){const _0x4f7edd=a165_0x1ff3b5;if(typeof _0x2c7ecb!==_0x4f7edd(0x1c9)||_0x2c7ecb===null)return![];const _0x4c58d6=_0x2c7ecb,_0x4110e8=VALID_CAMPAIGN_TYPES['has'](_0x4c58d6['campaign_type']);if(_0x4c58d6['type']===_0x4f7edd(0x1da)&&_0x4110e8)return!![];if(_0x4110e8&&!_0x4c58d6[_0x4f7edd(0x1c0)])return!![];return![];}function a165_0x5c89(_0x2142ed,_0x1fe36f){_0x2142ed=_0x2142ed-0x1bc;const _0x119dc9=a165_0x119d();let _0x5c899e=_0x119dc9[_0x2142ed];return _0x5c899e;}function a165_0x119d(){const _0x4d56b1=['toJSON','length','776478CxqWnC','relative','3421owJYKj','object','112pgSnEN','message','map','segment','21687ZuWyZo','170576SCeiYr','19620lpHmQj','valid','5oKEqrS','30nzSAGD','parseDocument','journey','266380eoVbYS','YAML\x20parse\x20error:\x20','filterType','5046gTQZoL','campaign','push','not\x20a\x20','609687zIxgcj','268fyuzud','result','template','type','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','email','YAML_PARSE_ERROR'];a165_0x119d=function(){return _0x4d56b1;};return a165_0x119d();}export function isTemplateDef(_0x3729d7){const _0x1634a1=a165_0x1ff3b5;return typeof _0x3729d7===_0x1634a1(0x1c9)&&_0x3729d7!==null&&_0x1634a1(0x1c0)in _0x3729d7&&_0x3729d7['type']==='template';}export function isValidationResult(_0x56d3bf){return!('skipped'in _0x56d3bf);}export function createParseErrorResult(_0x4e5a1a,_0x8faa75,_0x20cc93,_0x3ab929,_0x1cf1ec=a165_0x1ff3b5(0x1cd)){const _0x4816a0=a165_0x1ff3b5;return{'filePath':_0x4e5a1a,'relativePath':_0x8faa75,'source':_0x20cc93,'result':{'valid':![],'errors':[{'level':'error','path':'','code':_0x4816a0(0x1c3),'message':_0x3ab929}],'warnings':[]},'fileType':_0x1cf1ec};}export function validateYamlFile(_0x5d9f2e,_0x4ba853,_0x2a06d8={}){const _0x1d41cf=a165_0x1ff3b5,_0x43f99d=a165_0x1339c7[_0x1d41cf(0x1c7)](_0x4ba853,_0x5d9f2e)||a165_0x1339c7['basename'](_0x5d9f2e);try{const _0x530d82=readFileSync(_0x5d9f2e,'utf-8'),_0xdf72a=a165_0x341f9b[_0x1d41cf(0x1d4)](_0x530d82),_0x1fa47c=_0xdf72a[_0x1d41cf(0x1c4)]();if(!_0x1fa47c)return createParseErrorResult(_0x5d9f2e,_0x43f99d,_0x530d82,_0x1d41cf(0x1c1));let _0x4c4621;if(isJourneyDef(_0x1fa47c))_0x4c4621='journey';else{if(isCampaignDef(_0x1fa47c))_0x4c4621=_0x1d41cf(0x1da);else isTemplateDef(_0x1fa47c)?_0x4c4621=_0x1d41cf(0x1bf):_0x4c4621='segment';}if(_0x2a06d8[_0x1d41cf(0x1d8)]&&_0x4c4621!==_0x2a06d8['filterType'])return{'filePath':_0x5d9f2e,'relativePath':_0x43f99d,'skipped':!![],'reason':_0x1d41cf(0x1dc)+_0x2a06d8[_0x1d41cf(0x1d8)]};const _0x1efa4f={'source':_0x530d82,'document':_0xdf72a};let _0x4d59b0;if(_0x4c4621===_0x1d41cf(0x1d5))_0x4d59b0=validateJourneyDef(_0x1fa47c,_0x1efa4f);else{if(_0x4c4621===_0x1d41cf(0x1da))_0x4d59b0=validateCampaignDef(_0x1fa47c,_0x1efa4f);else _0x4c4621===_0x1d41cf(0x1bf)?_0x4d59b0=validateTemplateDef(_0x1fa47c,_0x1efa4f):_0x4d59b0=validateSegmentDef(_0x1fa47c,_0x1efa4f);}return{'filePath':_0x5d9f2e,'relativePath':_0x43f99d,'source':_0x530d82,'result':_0x4d59b0,'fileType':_0x4c4621};}catch(_0x2d22e3){const _0x569f76=_0x2d22e3 instanceof Error?_0x2d22e3[_0x1d41cf(0x1cb)]:String(_0x2d22e3);return createParseErrorResult(_0x5d9f2e,_0x43f99d,'',_0x1d41cf(0x1d7)+_0x569f76);}}export function validateYamlFiles(_0x3878d2,_0x34ea61,_0x2a1be2={}){const _0x116e90=a165_0x1ff3b5;return _0x3878d2[_0x116e90(0x1cc)](_0xda01b1=>validateYamlFile(_0xda01b1,_0x34ea61,_0x2a1be2));}export function calculateSummary(_0x3068a4){const _0x4479a6=a165_0x1ff3b5;let _0x30b33a=0x0,_0x77b9c=0x0,_0x534491=0x0,_0x4346c6=0x0;for(const _0x522ea1 of _0x3068a4){if(!isValidationResult(_0x522ea1)){_0x4346c6++;continue;}_0x522ea1[_0x4479a6(0x1be)][_0x4479a6(0x1d1)]?_0x30b33a++:_0x77b9c++,_0x534491+=_0x522ea1[_0x4479a6(0x1be)]['warnings'][_0x4479a6(0x1c5)];}return{'validCount':_0x30b33a,'invalidCount':_0x77b9c,'warningCount':_0x534491,'skippedCount':_0x4346c6,'hasErrors':_0x77b9c>0x0};}
1
+ const a165_0x139d5e=a165_0x3cba;(function(_0x59994,_0x19e598){const _0x2959de=a165_0x3cba,_0x3d1c66=_0x59994();while(!![]){try{const _0x22a500=-parseInt(_0x2959de(0x12c))/0x1+parseInt(_0x2959de(0x125))/0x2*(parseInt(_0x2959de(0x122))/0x3)+parseInt(_0x2959de(0x130))/0x4+parseInt(_0x2959de(0x119))/0x5+-parseInt(_0x2959de(0x132))/0x6+parseInt(_0x2959de(0x126))/0x7*(parseInt(_0x2959de(0x11c))/0x8)+-parseInt(_0x2959de(0x11f))/0x9*(parseInt(_0x2959de(0x11a))/0xa);if(_0x22a500===_0x19e598)break;else _0x3d1c66['push'](_0x3d1c66['shift']());}catch(_0x533008){_0x3d1c66['push'](_0x3d1c66['shift']());}}}(a165_0x5a95,0x9bb7a));import{readFileSync}from'fs';function a165_0x5a95(){const _0x2632b8=['skipped','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','9QyfIcx','parseDocument','email','3NwBEnp','YAML\x20parse\x20error:\x20','toJSON','467616uxqigv','7IMaKGF','error','has','basename','filterType','map','1266680XNFNyO','utf-8','push','segment','4541492HastMz','template','2813424NDYCUu','relative','warnings','not\x20a\x20','journey','object','campaign','type','5303835ZglxKD','1831550PRyHgA','valid','1012872HCbNcI'];a165_0x5a95=function(){return _0x2632b8;};return a165_0x5a95();}import*as a165_0x3f9d70 from'path';import*as a165_0x4d8d92 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a165_0x139d5e(0x121),a165_0x139d5e(0x12e)]);export function isJourneyDef(_0x9ccdb8){const _0x3acedd=a165_0x139d5e;return typeof _0x9ccdb8===_0x3acedd(0x116)&&_0x9ccdb8!==null&&'type'in _0x9ccdb8&&_0x9ccdb8[_0x3acedd(0x118)]==='journey';}export function isCampaignDef(_0x288d38){const _0x39c266=a165_0x139d5e;if(typeof _0x288d38!=='object'||_0x288d38===null)return![];const _0x454b26=_0x288d38,_0x256403=VALID_CAMPAIGN_TYPES[_0x39c266(0x128)](_0x454b26['campaign_type']);if(_0x454b26[_0x39c266(0x118)]===_0x39c266(0x117)&&_0x256403)return!![];if(_0x256403&&!_0x454b26[_0x39c266(0x118)])return!![];return![];}export function isTemplateDef(_0xda516f){const _0x1b965a=a165_0x139d5e;return typeof _0xda516f===_0x1b965a(0x116)&&_0xda516f!==null&&_0x1b965a(0x118)in _0xda516f&&_0xda516f[_0x1b965a(0x118)]===_0x1b965a(0x131);}export function isValidationResult(_0x1f0eee){const _0x5dc31c=a165_0x139d5e;return!(_0x5dc31c(0x11d)in _0x1f0eee);}function a165_0x3cba(_0x474cf9,_0x219eff){_0x474cf9=_0x474cf9-0x113;const _0x5a9541=a165_0x5a95();let _0x3cba44=_0x5a9541[_0x474cf9];return _0x3cba44;}export function createParseErrorResult(_0x24f561,_0x285898,_0x2bbdf4,_0x5a77c3,_0x34b42f=a165_0x139d5e(0x12f)){const _0x1a639a=a165_0x139d5e;return{'filePath':_0x24f561,'relativePath':_0x285898,'source':_0x2bbdf4,'result':{'valid':![],'errors':[{'level':_0x1a639a(0x127),'path':'','code':'YAML_PARSE_ERROR','message':_0x5a77c3}],'warnings':[]},'fileType':_0x34b42f};}export function validateYamlFile(_0x263ed6,_0x56223c,_0x43aa77={}){const _0x190f8e=a165_0x139d5e,_0x364ae5=a165_0x3f9d70[_0x190f8e(0x133)](_0x56223c,_0x263ed6)||a165_0x3f9d70[_0x190f8e(0x129)](_0x263ed6);try{const _0x58a04e=readFileSync(_0x263ed6,_0x190f8e(0x12d)),_0x55b4cf=a165_0x4d8d92[_0x190f8e(0x120)](_0x58a04e),_0x2a8a72=_0x55b4cf[_0x190f8e(0x124)]();if(!_0x2a8a72)return createParseErrorResult(_0x263ed6,_0x364ae5,_0x58a04e,_0x190f8e(0x11e));let _0x46f38f;if(isJourneyDef(_0x2a8a72))_0x46f38f='journey';else{if(isCampaignDef(_0x2a8a72))_0x46f38f='campaign';else isTemplateDef(_0x2a8a72)?_0x46f38f=_0x190f8e(0x131):_0x46f38f=_0x190f8e(0x12f);}if(_0x43aa77['filterType']&&_0x46f38f!==_0x43aa77[_0x190f8e(0x12a)])return{'filePath':_0x263ed6,'relativePath':_0x364ae5,'skipped':!![],'reason':_0x190f8e(0x114)+_0x43aa77[_0x190f8e(0x12a)]};const _0x4c3a4b={'source':_0x58a04e,'document':_0x55b4cf};let _0x2184a5;if(_0x46f38f===_0x190f8e(0x115))_0x2184a5=validateJourneyDef(_0x2a8a72,_0x4c3a4b);else{if(_0x46f38f==='campaign')_0x2184a5=validateCampaignDef(_0x2a8a72,_0x4c3a4b);else _0x46f38f==='template'?_0x2184a5=validateTemplateDef(_0x2a8a72,_0x4c3a4b):_0x2184a5=validateSegmentDef(_0x2a8a72,_0x4c3a4b);}return{'filePath':_0x263ed6,'relativePath':_0x364ae5,'source':_0x58a04e,'result':_0x2184a5,'fileType':_0x46f38f};}catch(_0x578901){const _0x31bbf0=_0x578901 instanceof Error?_0x578901['message']:String(_0x578901);return createParseErrorResult(_0x263ed6,_0x364ae5,'',_0x190f8e(0x123)+_0x31bbf0);}}export function validateYamlFiles(_0x5806d1,_0x2afd65,_0xa8cf08={}){const _0xc55861=a165_0x139d5e;return _0x5806d1[_0xc55861(0x12b)](_0x54bbfe=>validateYamlFile(_0x54bbfe,_0x2afd65,_0xa8cf08));}export function calculateSummary(_0x47fb30){const _0x24080e=a165_0x139d5e;let _0x595754=0x0,_0x3fc19b=0x0,_0x135f1c=0x0,_0x4101b1=0x0;for(const _0xe94554 of _0x47fb30){if(!isValidationResult(_0xe94554)){_0x4101b1++;continue;}_0xe94554['result'][_0x24080e(0x11b)]?_0x595754++:_0x3fc19b++,_0x135f1c+=_0xe94554['result'][_0x24080e(0x113)]['length'];}return{'validCount':_0x595754,'invalidCount':_0x3fc19b,'warningCount':_0x135f1c,'skippedCount':_0x4101b1,'hasErrors':_0x3fc19b>0x0};}