@treasuredata/tdx 2026.3.54 → 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(_0x85cb6b,_0x4d5f59){const _0x66c632=a157_0x2903,_0x3bccf5=_0x85cb6b();while(!![]){try{const _0x3462fc=-parseInt(_0x66c632(0x1a1))/0x1+-parseInt(_0x66c632(0x174))/0x2*(-parseInt(_0x66c632(0x1a2))/0x3)+parseInt(_0x66c632(0x19a))/0x4*(-parseInt(_0x66c632(0x19b))/0x5)+parseInt(_0x66c632(0x1a7))/0x6*(-parseInt(_0x66c632(0x183))/0x7)+parseInt(_0x66c632(0x181))/0x8*(parseInt(_0x66c632(0x17b))/0x9)+parseInt(_0x66c632(0x1a9))/0xa*(parseInt(_0x66c632(0x17e))/0xb)+parseInt(_0x66c632(0x1a6))/0xc;if(_0x3462fc===_0x4d5f59)break;else _0x3bccf5['push'](_0x3bccf5['shift']());}catch(_0x36fe29){_0x3bccf5['push'](_0x3bccf5['shift']());}}}(a157_0x325b,0x433cd));import a157_0x588552 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(_0x5bfbe4){const _0x3b5003=a157_0x2903;return _0x5bfbe4[_0x3b5003(0x19c)]!=='error';}function a157_0x2903(_0x4c4121,_0x1aad7d){_0x4c4121=_0x4c4121-0x173;const _0x325bcd=a157_0x325b();let _0x2903c8=_0x325bcd[_0x4c4121];return _0x2903c8;}export function isScopedResolution(_0x24d14d){const _0x25f32e=a157_0x2903;return _0x24d14d[_0x25f32e(0x19c)]==='directory'||_0x24d14d[_0x25f32e(0x19c)]===_0x25f32e(0x185)||_0x24d14d['type']===_0x25f32e(0x187);}export function getScopedDetails(_0x60d2b2){const _0x460f91=a157_0x2903;if(isScopedResolution(_0x60d2b2))return{'isScoped':_0x60d2b2[_0x460f91(0x1ab)],'scopedFolderPath':_0x60d2b2[_0x460f91(0x1a0)]};return undefined;}async function findTdxConfigAsync(_0x4b5b34,_0x1eb030){const _0x1294f6=a157_0x2903;let _0x472a0d=a157_0x588552[_0x1294f6(0x193)](_0x4b5b34);const _0x3992d7=a157_0x588552[_0x1294f6(0x176)](_0x472a0d)[_0x1294f6(0x192)];while(_0x472a0d!==_0x3992d7){const _0x13e568=a157_0x588552[_0x1294f6(0x17d)](_0x472a0d,'tdx.json');if(await _0x1eb030[_0x1294f6(0x182)](_0x13e568))try{const _0xc02da5=await _0x1eb030[_0x1294f6(0x189)](_0x13e568),_0x54f365=JSON['parse'](_0xc02da5);if(_0x54f365[_0x1294f6(0x19d)]&&typeof _0x54f365[_0x1294f6(0x19d)]==='string')return{'configPath':_0x13e568,'configDir':_0x472a0d,'parentSegment':_0x54f365[_0x1294f6(0x19d)]};}catch{}_0x472a0d=a157_0x588552[_0x1294f6(0x186)](_0x472a0d);}return null;}function calculateScopedPath(_0xde26b5,_0x1060cc){const _0x3a7012=a157_0x2903,_0x4477d1=a157_0x588552[_0x3a7012(0x1a8)](_0x1060cc,_0xde26b5),_0x4cec04=_0x4477d1!==''&&_0x4477d1!=='.'&&!_0x4477d1[_0x3a7012(0x175)]('..');return{'isScoped':_0x4cec04,'scopedFolderPath':_0x4cec04?_0x4477d1[_0x3a7012(0x194)](/\\/g,'/'):''};}export async function resolveTarget(_0x51d494){const _0x441f11=a157_0x2903,{arg:_0x24f03c,contextParent:_0x1d601c,cwd:cwd=process[_0x441f11(0x18a)](),fs:fs=nodeFileSystem}=_0x51d494;if(_0x24f03c&&isYamlFilePath(_0x24f03c))try{const _0x1ff5ee=await resolveYamlFilePath(_0x24f03c,fs),_0x10026e=a157_0x588552[_0x441f11(0x193)](_0x24f03c),_0x551606=a157_0x588552['dirname'](_0x10026e),_0x1b5497=await findTdxConfigAsync(_0x551606,fs);if(!_0x1b5497){if(_0x1d601c){const _0x63c315=a157_0x588552[_0x441f11(0x186)](_0x10026e);return{'type':_0x441f11(0x185),'parentName':_0x1d601c,'targetDir':_0x63c315,'configRoot':_0x63c315,'filePath':_0x10026e,'resourceName':_0x1ff5ee[_0x441f11(0x180)],'folderPath':_0x1ff5ee['folderPath'],'resourceType':_0x1ff5ee['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x441f11(0x1a4),'message':_0x441f11(0x197)+_0x24f03c,'arg':_0x24f03c,'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 _0x36b1e6=calculateScopedPath(_0x551606,_0x1b5497['configDir']);return{'type':_0x441f11(0x185),'parentName':_0x1b5497[_0x441f11(0x19e)],'targetDir':_0x1b5497[_0x441f11(0x196)],'configRoot':_0x1b5497[_0x441f11(0x196)],'filePath':_0x10026e,'resourceName':_0x1ff5ee[_0x441f11(0x180)],'folderPath':_0x1ff5ee[_0x441f11(0x18e)],'resourceType':_0x1ff5ee['resourceType'],'isScoped':_0x36b1e6[_0x441f11(0x1ab)],'scopedFolderPath':_0x36b1e6['scopedFolderPath']};}catch(_0x1a46f3){const _0x51b13d=_0x1a46f3 instanceof Error?_0x1a46f3[_0x441f11(0x17a)]:String(_0x1a46f3);if(_0x51b13d[_0x441f11(0x195)](_0x441f11(0x179)))return{'type':_0x441f11(0x19f),'errorCode':_0x441f11(0x198),'message':_0x441f11(0x190)+_0x24f03c,'arg':_0x24f03c};if(_0x51b13d[_0x441f11(0x195)](_0x441f11(0x1a3))){if(_0x1d601c){const _0x157731=a157_0x588552[_0x441f11(0x193)](_0x24f03c);if(await fs['exists'](_0x157731)){const _0x3eddae=a157_0x588552[_0x441f11(0x186)](_0x157731),_0x53ea2d=await fs[_0x441f11(0x189)](_0x157731),_0x5dbc82=_0x53ea2d['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x57f33d=_0x53ea2d[_0x441f11(0x178)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5d7a35=_0x5dbc82?_0x5dbc82[0x1][_0x441f11(0x177)]():a157_0x588552[_0x441f11(0x1aa)](_0x24f03c,a157_0x588552[_0x441f11(0x18c)](_0x24f03c)),_0x1e14e9=_0x57f33d&&_0x57f33d[0x1][_0x441f11(0x177)]()===_0x441f11(0x191)?'journey':_0x441f11(0x18b);return{'type':_0x441f11(0x185),'parentName':_0x1d601c,'targetDir':_0x3eddae,'configRoot':_0x3eddae,'filePath':_0x157731,'resourceName':_0x5d7a35,'folderPath':'','resourceType':_0x1e14e9,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x441f11(0x19f),'errorCode':_0x441f11(0x1a4),'message':_0x441f11(0x197)+_0x24f03c,'arg':_0x24f03c,'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'};}return{'type':'error','errorCode':_0x441f11(0x17f),'message':_0x51b13d,'arg':_0x24f03c};}if(_0x24f03c){const _0x1fcbb2=a157_0x588552[_0x441f11(0x193)](cwd,_0x24f03c);let _0x288c7a=null;try{_0x288c7a=await fs[_0x441f11(0x199)](_0x1fcbb2);}catch{}if(_0x288c7a?.[_0x441f11(0x184)]()){const _0x1673d3=await findTdxConfigAsync(_0x1fcbb2,fs);if(_0x1673d3){const _0x4c8772=calculateScopedPath(_0x1fcbb2,_0x1673d3[_0x441f11(0x196)]);return{'type':'directory','parentName':_0x1673d3[_0x441f11(0x19e)],'targetDir':_0x1fcbb2,'configRoot':_0x1673d3[_0x441f11(0x196)],'isScoped':_0x4c8772[_0x441f11(0x1ab)],'scopedFolderPath':_0x4c8772[_0x441f11(0x1a0)]};}if(_0x1d601c)return{'type':'directory','parentName':_0x1d601c,'targetDir':_0x1fcbb2,'configRoot':_0x1fcbb2,'isScoped':![],'scopedFolderPath':''};return{'type':_0x441f11(0x19f),'errorCode':'no_config','message':_0x441f11(0x173)+_0x24f03c,'arg':_0x24f03c,'helpText':_0x441f11(0x17c)};}if(_0x288c7a?.[_0x441f11(0x18d)]())return{'type':_0x441f11(0x19f),'errorCode':_0x441f11(0x17f),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x24f03c,'arg':_0x24f03c,'helpText':_0x441f11(0x1a5)};const _0x2f6069=sanitizeFileName(_0x24f03c),_0x2e449a=getSegmentRootDir(_0x2f6069,cwd);return{'type':_0x441f11(0x18f),'parentName':_0x24f03c,'targetDir':_0x2e449a,'configRoot':_0x2e449a};}const _0x15e4c6=await findTdxConfigAsync(cwd,fs);if(_0x15e4c6){const _0x2252ba=calculateScopedPath(cwd,_0x15e4c6['configDir']);return{'type':_0x441f11(0x187),'parentName':_0x15e4c6[_0x441f11(0x19e)],'targetDir':cwd,'configRoot':_0x15e4c6[_0x441f11(0x196)],'isScoped':_0x2252ba[_0x441f11(0x1ab)],'scopedFolderPath':_0x2252ba[_0x441f11(0x1a0)]};}if(_0x1d601c){const _0x4a3bbd=sanitizeFileName(_0x1d601c),_0x28b41f=getSegmentRootDir(_0x4a3bbd,cwd);return{'type':_0x441f11(0x187),'parentName':_0x1d601c,'targetDir':_0x28b41f,'configRoot':_0x28b41f,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x441f11(0x19f),'errorCode':'no_parent','message':'Parent\x20segment\x20not\x20specified','helpText':_0x441f11(0x188)};}function a157_0x325b(){const _0x20a0a2=['join','473fqXCcs','invalid_yaml','segmentName','8BjNPCo','exists','34587cKPckQ','isDirectory','file','dirname','context','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','readFile','cwd','segment','extname','isFile','folderPath','parent_name','File\x20not\x20found:\x20','journey','root','resolve','replace','includes','configDir','No\x20tdx.json\x20found\x20for\x20file:\x20','file_not_found','stat','4jxPIUN','1357375aNSqqc','type','parent_segment','parentSegment','error','scopedFolderPath','380856VDPiAv','5397ekadez','No\x20tdx.json\x20found','no_config','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','16509228FhgDPY','594UMyYuw','relative','7750HftxcM','basename','isScoped','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','2aYPANv','startsWith','parse','trim','match','File\x20not\x20found','message','54018ToEdqR','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'];a157_0x325b=function(){return _0x20a0a2;};return a157_0x325b();}
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_0x2c82f3=a158_0x38dd;(function(_0x15b9be,_0x502d8f){const _0xbe8120=a158_0x38dd,_0x40c993=_0x15b9be();while(!![]){try{const _0x10328=parseInt(_0xbe8120(0x86))/0x1+-parseInt(_0xbe8120(0x7b))/0x2+parseInt(_0xbe8120(0x8f))/0x3+-parseInt(_0xbe8120(0x92))/0x4+parseInt(_0xbe8120(0x85))/0x5+-parseInt(_0xbe8120(0x7f))/0x6*(parseInt(_0xbe8120(0x83))/0x7)+-parseInt(_0xbe8120(0x8b))/0x8*(-parseInt(_0xbe8120(0x78))/0x9);if(_0x10328===_0x502d8f)break;else _0x40c993['push'](_0x40c993['shift']());}catch(_0x488e2f){_0x40c993['push'](_0x40c993['shift']());}}}(a158_0x2fec,0xeadd8));import{existsSync,readFileSync}from'fs';import a158_0xe4fd3d from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a158_0x2c82f3(0x7d);export function findTdxConfigPath(_0x181120=process['cwd']()){const _0xa6a07a=a158_0x2c82f3;let _0x1ace27=a158_0xe4fd3d[_0xa6a07a(0x81)](_0x181120);const _0x21e8a9=a158_0xe4fd3d[_0xa6a07a(0x87)](_0x1ace27)[_0xa6a07a(0x90)];while(_0x1ace27!==_0x21e8a9){const _0x37e554=a158_0xe4fd3d[_0xa6a07a(0x8a)](_0x1ace27,TDX_CONFIG_FILE);if(existsSync(_0x37e554))return _0x37e554;_0x1ace27=a158_0xe4fd3d[_0xa6a07a(0x77)](_0x1ace27);}return null;}function a158_0x2fec(){const _0x14f0c4=['344AibXJY','replace','parent_segment','engage_workspace','1594308dzsWtf','root','object','7271532hnerOw','dirname','578844lRbNcG','Invalid\x20JSON\x20in\x20','cwd','3103468KqBfiZ','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','segments','Invalid\x20tdx.json:\x20expected\x20object','7263666sQtEtI','string','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','7gITaDF','startsWith','6565555wdhnuc','932101KiiDPf','parse','relative','utf-8','join'];a158_0x2fec=function(){return _0x14f0c4;};return a158_0x2fec();}export function loadTdxConfig(_0x40161a){const _0x15774f=a158_0x2c82f3,_0x1c5d56=readFileSync(_0x40161a,_0x15774f(0x89));let _0x2ab635;try{_0x2ab635=JSON[_0x15774f(0x87)](_0x1c5d56);}catch{throw new Error(_0x15774f(0x79)+_0x40161a);}if(!_0x2ab635||typeof _0x2ab635!==_0x15774f(0x91))throw new Error(_0x15774f(0x7e));const _0x3efd71=_0x2ab635,_0x5fd2a3=_0x3efd71['parent_segment']&&typeof _0x3efd71[_0x15774f(0x8d)]===_0x15774f(0x80),_0x4d828d=_0x3efd71[_0x15774f(0x8e)]&&typeof _0x3efd71[_0x15774f(0x8e)]===_0x15774f(0x80);if(!_0x5fd2a3&&!_0x4d828d)throw new Error(_0x15774f(0x82));const _0x409d08={};return _0x5fd2a3&&(_0x409d08[_0x15774f(0x8d)]=_0x3efd71[_0x15774f(0x8d)]),_0x4d828d&&(_0x409d08[_0x15774f(0x8e)]=_0x3efd71[_0x15774f(0x8e)]),_0x409d08;}export function findTdxConfig(_0x50b7cf=process[a158_0x2c82f3(0x7a)]()){const _0x382fe1=a158_0x2c82f3,_0x36ace7=findTdxConfigPath(_0x50b7cf);if(!_0x36ace7)throw new Error(_0x382fe1(0x7c));const _0x405783=loadTdxConfig(_0x36ace7),_0x37b1c2=a158_0xe4fd3d[_0x382fe1(0x77)](_0x36ace7);return{'config':_0x405783,'configPath':_0x36ace7,'configDir':_0x37b1c2};}function a158_0x38dd(_0x244bc6,_0x5e5846){_0x244bc6=_0x244bc6-0x77;const _0x2fecf4=a158_0x2fec();let _0x38dd53=_0x2fecf4[_0x244bc6];return _0x38dd53;}export function tryFindTdxConfig(_0xc8e77e){try{return findTdxConfig(_0xc8e77e);}catch{return null;}}export function getSegmentRootDir(_0x39ab1f,_0x2b029=process[a158_0x2c82f3(0x7a)]()){const _0x3df730=a158_0x2c82f3;return a158_0xe4fd3d[_0x3df730(0x8a)](_0x2b029,SEGMENTS_DIR,_0x39ab1f);}export function getTdxConfigPath(_0x1f1955,_0x58d6a7=process[a158_0x2c82f3(0x7a)]()){const _0x442ebc=a158_0x2c82f3;return a158_0xe4fd3d[_0x442ebc(0x8a)](getSegmentRootDir(_0x1f1955,_0x58d6a7),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x2a4b7c,_0x190980){const _0x57eda3=a158_0x2c82f3,_0x3e3add=a158_0xe4fd3d[_0x57eda3(0x81)](_0x2a4b7c),_0x3fe6df=a158_0xe4fd3d[_0x57eda3(0x88)](_0x190980,_0x3e3add);if(_0x3fe6df[_0x57eda3(0x84)]('..'))return'';return _0x3fe6df;}export function localPathToTdFolderPath(_0x1b0c9c){const _0x36c36b=a158_0x2c82f3,_0x57560c=a158_0xe4fd3d[_0x36c36b(0x77)](_0x1b0c9c);if(_0x57560c==='.'||_0x57560c==='')return'';return _0x57560c[_0x36c36b(0x8c)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0xe2ca0c,_0x28b2ed){if(!_0xe2ca0c)return _0x28b2ed;return a158_0xe4fd3d['join'](_0x28b2ed,_0xe2ca0c);}export function createTdxConfigContent(_0x2e9577){const _0x27c4c3={'parent_segment':_0x2e9577};return JSON['stringify'](_0x27c4c3,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x28e804){const _0x325f2d={'engage_workspace':_0x28e804};return JSON['stringify'](_0x325f2d,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
- const a159_0x2eb290=a159_0xb242;(function(_0x3eb869,_0x380d2d){const _0x55a390=a159_0xb242,_0x3e63a2=_0x3eb869();while(!![]){try{const _0x41ed2c=-parseInt(_0x55a390(0x17f))/0x1*(parseInt(_0x55a390(0x183))/0x2)+parseInt(_0x55a390(0x180))/0x3*(parseInt(_0x55a390(0x18e))/0x4)+parseInt(_0x55a390(0x193))/0x5*(parseInt(_0x55a390(0x176))/0x6)+parseInt(_0x55a390(0x187))/0x7+parseInt(_0x55a390(0x175))/0x8+-parseInt(_0x55a390(0x17a))/0x9+-parseInt(_0x55a390(0x172))/0xa;if(_0x41ed2c===_0x380d2d)break;else _0x3e63a2['push'](_0x3e63a2['shift']());}catch(_0x225f66){_0x3e63a2['push'](_0x3e63a2['shift']());}}}(a159_0x375d,0x8da60));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x196),a159_0x2eb290(0x173),'daily',a159_0x2eb290(0x184),'monthly','cron',a159_0x2eb290(0x18c)]);function a159_0x375d(){const _0x555370=['clear','Activation\x20name\x20is\x20required','Last','minute','30KFjyLJ','number','First','none','masked','optional','array','Top-N','min','day','object','25537360BeUVlS','hourly','union','8524360pmUDtk','822276lUURwK','string','once','unknown','2625804QGavyu','All','desc','boolean','month','10711JzDdDZ','1823121WUqkJf','onFailure','nullable','32VSBDJR','weekly','cols','record','7710724Ofolet','hour','Connection\x20name\x20is\x20required','onSuccess','enum','minutes_interval','week','4efPeLH'];a159_0x375d=function(){return _0x555370;};return a159_0x375d();}export const RepeatUnitSchema=z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x192),a159_0x2eb290(0x188),a159_0x2eb290(0x19c),a159_0x2eb290(0x18d),a159_0x2eb290(0x17e),a159_0x2eb290(0x178),a159_0x2eb290(0x196)]);export const ScheduleDefSchema=z[a159_0x2eb290(0x171)]({'type':ScheduleTypeSchema[a159_0x2eb290(0x198)](),'repeat_unit':RepeatUnitSchema[a159_0x2eb290(0x198)](),'repeat_frequency':z[a159_0x2eb290(0x194)]()['optional'](),'repeat_sub_frequency':z[a159_0x2eb290(0x199)](z[a159_0x2eb290(0x194)]())[a159_0x2eb290(0x198)](),'start_at':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'end_on':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'timezone':z[a159_0x2eb290(0x177)]()['optional']()});export const NotificationDefSchema=z[a159_0x2eb290(0x171)]({'notify_on':z[a159_0x2eb290(0x199)](z['enum']([a159_0x2eb290(0x18a),a159_0x2eb290(0x181)]))[a159_0x2eb290(0x198)](),'email_recipients':z['array'](z[a159_0x2eb290(0x177)]())[a159_0x2eb290(0x198)]()});function a159_0xb242(_0x1ba7f9,_0x18eb99){_0x1ba7f9=_0x1ba7f9-0x171;const _0x375d22=a159_0x375d();let _0xb242ad=_0x375d22[_0x1ba7f9];return _0xb242ad;}export const ActivationColumnDefSchema=z[a159_0x2eb290(0x174)]([z[a159_0x2eb290(0x177)](),z[a159_0x2eb290(0x171)]({'name':z['string'](),'type':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x198)](),'visibility':z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x18f),a159_0x2eb290(0x197)])[a159_0x2eb290(0x198)]()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a159_0x2eb290(0x199)](z[a159_0x2eb290(0x171)]({'name':z[a159_0x2eb290(0x177)](),'type':z[a159_0x2eb290(0x177)]()['optional'](),'visibility':z['enum'](['clear',a159_0x2eb290(0x197)])['optional']()}))[a159_0x2eb290(0x198)](),'behavior_table':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x198)](),'join_row':z[a159_0x2eb290(0x194)]()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'join_strategy':z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x17b),a159_0x2eb290(0x195),a159_0x2eb290(0x191),a159_0x2eb290(0x19a)])[a159_0x2eb290(0x198)](),'formatting':z['enum'](['rows',a159_0x2eb290(0x185)])[a159_0x2eb290(0x198)](),'order_by':z[a159_0x2eb290(0x199)](z[a159_0x2eb290(0x171)]({'key':z['string'](),'order':z[a159_0x2eb290(0x18b)](['asc',a159_0x2eb290(0x17c)])}))[a159_0x2eb290(0x198)]()});export const ActivationDefSchema=z[a159_0x2eb290(0x171)]({'name':z['string']()[a159_0x2eb290(0x19b)](0x1,a159_0x2eb290(0x190)),'description':z['string']()['optional'](),'connection':z[a159_0x2eb290(0x177)]()['min'](0x1,a159_0x2eb290(0x189)),'all_columns':z[a159_0x2eb290(0x17d)]()[a159_0x2eb290(0x198)](),'columns':z['array'](ActivationColumnDefSchema)[a159_0x2eb290(0x198)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a159_0x2eb290(0x186)](z[a159_0x2eb290(0x177)](),z[a159_0x2eb290(0x179)]())[a159_0x2eb290(0x198)](),'activation_template_id':z['string']()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'behavior':ActivationBehaviorDefSchema[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'run_after_journey_refresh':z[a159_0x2eb290(0x17d)]()['optional'](),'nested_workflow_project_name':z['string']()['optional'](),'nested_workflow_name':z['string']()[a159_0x2eb290(0x198)](),'lock_enabled':z[a159_0x2eb290(0x17d)]()[a159_0x2eb290(0x198)]()});
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(_0x17b938,_0x5663c9){var _0xd890e4=a160_0x3c54,_0x1ebea5=_0x17b938();while(!![]){try{var _0x3f779d=parseInt(_0xd890e4(0xcc))/0x1+parseInt(_0xd890e4(0xcf))/0x2*(parseInt(_0xd890e4(0xc9))/0x3)+-parseInt(_0xd890e4(0xd1))/0x4*(parseInt(_0xd890e4(0xca))/0x5)+parseInt(_0xd890e4(0xc8))/0x6*(parseInt(_0xd890e4(0xd0))/0x7)+parseInt(_0xd890e4(0xd2))/0x8*(parseInt(_0xd890e4(0xce))/0x9)+-parseInt(_0xd890e4(0xd3))/0xa+parseInt(_0xd890e4(0xcb))/0xb*(parseInt(_0xd890e4(0xcd))/0xc);if(_0x3f779d===_0x5663c9)break;else _0x1ebea5['push'](_0x1ebea5['shift']());}catch(_0x2fc66d){_0x1ebea5['push'](_0x1ebea5['shift']());}}}(a160_0x3343,0x41b72));function a160_0x3c54(_0x1a2371,_0xfd38e0){_0x1a2371=_0x1a2371-0xc8;var _0x33432d=a160_0x3343();var _0x3c5461=_0x33432d[_0x1a2371];return _0x3c5461;}function a160_0x3343(){var _0x3baffc=['1810212dDmzFR','2367xQwUit','2VvHkcN','12285ZJUfNE','350016tzduUD','10968hzrewK','4693850CIXdXm','786kENpqF','777591HIEFEf','20fdwZNu','11yMrRNq','88045EfknaP'];a160_0x3343=function(){return _0x3baffc;};return a160_0x3343();}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_0x5c0497=a161_0x7ecd;(function(_0x420787,_0x4a08ed){const _0x3be1cb=a161_0x7ecd,_0x1db0b6=_0x420787();while(!![]){try{const _0x212f4e=-parseInt(_0x3be1cb(0x149))/0x1*(parseInt(_0x3be1cb(0x139))/0x2)+parseInt(_0x3be1cb(0x137))/0x3*(-parseInt(_0x3be1cb(0x148))/0x4)+parseInt(_0x3be1cb(0x13d))/0x5*(-parseInt(_0x3be1cb(0x12d))/0x6)+-parseInt(_0x3be1cb(0x14f))/0x7+parseInt(_0x3be1cb(0x131))/0x8*(-parseInt(_0x3be1cb(0x150))/0x9)+parseInt(_0x3be1cb(0x12e))/0xa*(-parseInt(_0x3be1cb(0x134))/0xb)+parseInt(_0x3be1cb(0x129))/0xc*(parseInt(_0x3be1cb(0x138))/0xd);if(_0x212f4e===_0x4a08ed)break;else _0x1db0b6['push'](_0x1db0b6['shift']());}catch(_0x4d3d7d){_0x1db0b6['push'](_0x1db0b6['shift']());}}}(a161_0x5ec5,0xec542));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x146),a161_0x5c0497(0x14a),'launched']);export const ReentryModeTypeSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x141),'reentry_unless_goal_achieved',a161_0x5c0497(0x14c)]);export const WaitUnitTypeSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x128),a161_0x5c0497(0x13f)]);export const StepTypeValueSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x140),a161_0x5c0497(0x144),a161_0x5c0497(0x133),a161_0x5c0497(0x127),'merge','jump',a161_0x5c0497(0x12c)]);function a161_0x7ecd(_0x17a39e,_0x2e0ed5){_0x17a39e=_0x17a39e-0x127;const _0x5ec515=a161_0x5ec5();let _0x7ecd9=_0x5ec515[_0x17a39e];return _0x7ecd9;}export const EmbeddedSegmentDefSchema=z[a161_0x5c0497(0x152)]({'description':z['string']()[a161_0x5c0497(0x145)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x5c0497(0x152)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z['string']()[a161_0x5c0497(0x145)]()});export const CriteriaDefSchema=z[a161_0x5c0497(0x152)]({'name':z['string'](),'description':z[a161_0x5c0497(0x14d)]()['optional'](),'segment':z[a161_0x5c0497(0x14d)](),'target':JumpTargetDefSchema[a161_0x5c0497(0x145)]()});const WaitConditionTimeoutDefSchema=z[a161_0x5c0497(0x152)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z['string']()[a161_0x5c0497(0x145)]()}),WaitConditionDefSchema=z['object']({'segment':z[a161_0x5c0497(0x14d)](),'next':z[a161_0x5c0497(0x14d)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'duration':z[a161_0x5c0497(0x132)]()[a161_0x5c0497(0x145)](),'unit':WaitUnitTypeSchema[a161_0x5c0497(0x145)](),'wait_until':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'condition':WaitConditionDefSchema[a161_0x5c0497(0x145)](),'days_of_week':z['array'](z['string']())[a161_0x5c0497(0x145)]()}),StepBaseFields={'name':z[a161_0x5c0497(0x14d)](),'uuid':z[a161_0x5c0497(0x14d)]()['optional'](),'next':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)]()},WaitStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'activation':z[a161_0x5c0497(0x14d)]()}),ActivationStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x5c0497(0x152)]({'name':z[a161_0x5c0497(0x14d)](),'segment':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'segment_id':z['string']()[a161_0x5c0497(0x145)](),'excluded':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)](),'next':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)]()}),DecisionPointStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'branches':z[a161_0x5c0497(0x13b)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)](a161_0x5c0497(0x133)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x5c0497(0x152)]({'id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'name':z[a161_0x5c0497(0x14d)](),'percentage':z[a161_0x5c0497(0x132)](),'next':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)]()}),AbTestStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'variants':z[a161_0x5c0497(0x13b)](AbTestVariantDefSchema),'unique_id':z['string']()[a161_0x5c0497(0x145)](),'customized_split':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)]()}),AbTestStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z['literal'](a161_0x5c0497(0x127)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)]('merge')}),JumpStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)](a161_0x5c0497(0x13c)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x5c0497(0x12c))})['passthrough']();export const StepDefSchema=z[a161_0x5c0497(0x12a)](a161_0x5c0497(0x135),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x5c0497(0x152)]({'name':z['string'](),'description':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'entry_criteria':CriteriaDefSchema[a161_0x5c0497(0x145)](),'exit_criteria':z[a161_0x5c0497(0x13b)](CriteriaDefSchema)[a161_0x5c0497(0x145)](),'milestone':CriteriaDefSchema[a161_0x5c0497(0x145)](),'root_step':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'steps':z['array'](StepDefSchema)[a161_0x5c0497(0x145)]()});export const JourneyEntryDefSchema=z['object']({'name':z[a161_0x5c0497(0x14d)]()['optional'](),'version':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'state':JourneyStateTypeSchema[a161_0x5c0497(0x145)](),'latest':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)](),'stages':z[a161_0x5c0497(0x13b)](StageDefSchema),'id':z['string']()[a161_0x5c0497(0x145)](),'version_number':z[a161_0x5c0497(0x132)]()['optional'](),'goal':CriteriaDefSchema[a161_0x5c0497(0x145)](),'reentry':ReentryModeTypeSchema[a161_0x5c0497(0x145)]()});function a161_0x5ec5(){const _0x15b7aa=['refine','3mxUWQt','13avUMbg','76210vPRkFM','boolean','array','jump','3239465oxDoyj','enum','week','wait','no_reentry','length','versions','activation','optional','draft','record','954428cynTus','50yZvCOm','simulation','filter','reentry_always','string','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','6115011yKyRJM','117CElsrj','journey','object','ab_test','day','74442948oDVahM','discriminatedUnion','Journey\x20name\x20is\x20required','end','6nImCCp','6349430RWwHQT','literal','isArray','575576YLNpNm','number','decision_point','11ziKvVu','type'];a161_0x5ec5=function(){return _0x15b7aa;};return a161_0x5ec5();}export const JourneyDefSchema=z['lazy'](()=>z[a161_0x5c0497(0x152)]({'type':z['literal'](a161_0x5c0497(0x151)),'name':z[a161_0x5c0497(0x14d)]()['min'](0x1,a161_0x5c0497(0x12b)),'description':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'bundle_id':z[a161_0x5c0497(0x14d)]()['optional'](),'bundle_name':z['string']()[a161_0x5c0497(0x145)](),'folder_id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)](),'goal':CriteriaDefSchema[a161_0x5c0497(0x145)](),'id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'version':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'version_number':z['number']()['optional'](),'stages':z[a161_0x5c0497(0x13b)](StageDefSchema)[a161_0x5c0497(0x145)](),'versions':z['array'](JourneyEntryDefSchema)[a161_0x5c0497(0x145)](),'journeys':z[a161_0x5c0497(0x13b)](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x5c0497(0x147)](z[a161_0x5c0497(0x14d)](),EmbeddedSegmentDefSchema)[a161_0x5c0497(0x145)](),'activations':z[a161_0x5c0497(0x147)](z[a161_0x5c0497(0x14d)](),ActivationDefSchema)[a161_0x5c0497(0x145)]()})[a161_0x5c0497(0x136)](_0x253610=>{const _0x49423b=a161_0x5c0497,_0x2974fc=[_0x253610['journeys'],_0x253610['stages'],_0x253610[_0x49423b(0x143)]][_0x49423b(0x14b)](_0x1eed8a=>Array[_0x49423b(0x130)](_0x1eed8a)&&_0x1eed8a[_0x49423b(0x142)]>0x0)[_0x49423b(0x142)];return _0x2974fc===0x1;},{'message':a161_0x5c0497(0x14e)}));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(_0x38f73c,_0x55f6d1){var _0x1da4d5=a163_0x3859,_0x37ab0a=_0x38f73c();while(!![]){try{var _0xf4aa20=parseInt(_0x1da4d5(0x1e4))/0x1+parseInt(_0x1da4d5(0x1e6))/0x2*(parseInt(_0x1da4d5(0x1ee))/0x3)+parseInt(_0x1da4d5(0x1e9))/0x4*(-parseInt(_0x1da4d5(0x1ec))/0x5)+parseInt(_0x1da4d5(0x1e7))/0x6*(-parseInt(_0x1da4d5(0x1eb))/0x7)+-parseInt(_0x1da4d5(0x1ea))/0x8*(parseInt(_0x1da4d5(0x1e8))/0x9)+-parseInt(_0x1da4d5(0x1ed))/0xa+parseInt(_0x1da4d5(0x1e5))/0xb;if(_0xf4aa20===_0x55f6d1)break;else _0x37ab0a['push'](_0x37ab0a['shift']());}catch(_0x278409){_0x37ab0a['push'](_0x37ab0a['shift']());}}}(a163_0x265b,0xd0622));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0x3859(_0x4938fe,_0x224069){_0x4938fe=_0x4938fe-0x1e4;var _0x265b0a=a163_0x265b();var _0x385996=_0x265b0a[_0x4938fe];return _0x385996;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x265b(){var _0x48bc14=['1516UmQEEL','30oPFiCf','3978gOJPUu','584MGlCwB','11968LjNWOD','2041907VbWIGK','39370aQVizD','5595110oYxthy','4398tqvxPr','438059AHJznV','34464133zMoevO'];a163_0x265b=function(){return _0x48bc14;};return a163_0x265b();}
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_0x1cbce0=a164_0x577b;(function(_0x4038aa,_0x386899){const _0x2e0352=a164_0x577b,_0x41206c=_0x4038aa();while(!![]){try{const _0x382bbe=-parseInt(_0x2e0352(0x19a))/0x1*(parseInt(_0x2e0352(0x1c8))/0x2)+parseInt(_0x2e0352(0x1b1))/0x3*(-parseInt(_0x2e0352(0x1b6))/0x4)+-parseInt(_0x2e0352(0x1b7))/0x5+-parseInt(_0x2e0352(0x1b3))/0x6*(parseInt(_0x2e0352(0x1c0))/0x7)+parseInt(_0x2e0352(0x19c))/0x8*(-parseInt(_0x2e0352(0x1df))/0x9)+-parseInt(_0x2e0352(0x1dd))/0xa+parseInt(_0x2e0352(0x19d))/0xb*(parseInt(_0x2e0352(0x1a5))/0xc);if(_0x382bbe===_0x386899)break;else _0x41206c['push'](_0x41206c['shift']());}catch(_0xaf09b6){_0x41206c['push'](_0x41206c['shift']());}}}(a164_0x1a0b,0xc2c0f));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1b4),a164_0x1cbce0(0x1aa),'Less',a164_0x1cbce0(0x1d5),a164_0x1cbce0(0x1a9),'In',a164_0x1cbce0(0x1e6),a164_0x1cbce0(0x1d9),'IsNull','TimeWithinPast',a164_0x1cbce0(0x1c1),a164_0x1cbce0(0x1bd),a164_0x1cbce0(0x1a8),a164_0x1cbce0(0x1ab),a164_0x1cbce0(0x1cd)]);export const TimeUnitSchema=z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1c9),a164_0x1cbce0(0x1ce),a164_0x1cbce0(0x1cc),'day','week','month',a164_0x1cbce0(0x1e4)]);function a164_0x1a0b(){const _0x93f2a=['hour','TimeRange','minute','Count','any','First','And','literal','TimeWithinPast','GreaterEqual','Behavior','MISSING_BETWEEN_BOUNDS','TimeRange\x20operator\x20requires\x20\x27duration\x27','Regexp','all','MISSING_TIME_UNIT','object','10254070yJtbSh','boolean','82629rmPzql','custom','type','timestamp','duration','year','string','Between','Last','exclude','record','addIssue','1289870AqIHSp','lazy','1016FqnTCV','1532201eBzyex','value','unit','has','operator','Less','funnel_stage','\x27\x20requires\x20a\x20time\x20unit','612rzHXkB','realtime','Average','StartWith','LessEqual','Greater','EndWith','\x27\x20requires\x20a\x20value','superRefine','TimeRange\x20operator\x20requires\x20\x27from\x27','union','Min','12BIpIIE','array','66QUpugV','Equal','include','848260zXXJPI','3292105tGWdrr','number','min','Segment\x20reference\x20must\x20not\x20be\x20empty','Sum','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Contain','Segment\x20name\x20is\x20required','optional','838845GWhtvF','TimeWithinNext','Max','max','enum','discriminatedUnion','Column','Operator\x20\x27','2GkXDTk','second','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','batch'];a164_0x1a0b=function(){return _0x93f2a;};return a164_0x1a0b();}export const AggregationTypeSchema=z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1cf),a164_0x1cbce0(0x1bb),'Average','Min',a164_0x1cbce0(0x1c2),'CountDistinct',a164_0x1cbce0(0x1d1),'Last']);const TemporalValueSchema=z[a164_0x1cbce0(0x1af)]([z['object']({'timestamp':z['string']()}),z[a164_0x1cbce0(0x1dc)]({'last':z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x198)](z[a164_0x1cbce0(0x1e5)](),z['number']())]),'unit':z[a164_0x1cbce0(0x1e5)]()})]),OperatorValueSchema=z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1e5)](),z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x1de)](),TemporalValueSchema,z[a164_0x1cbce0(0x1b2)](z['union']([z[a164_0x1cbce0(0x1e5)](),z['number'](),z[a164_0x1cbce0(0x1de)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x1cbce0(0x1b4),a164_0x1cbce0(0x1aa),a164_0x1cbce0(0x1d5),a164_0x1cbce0(0x1a2),a164_0x1cbce0(0x1a9),'In',a164_0x1cbce0(0x1bd),a164_0x1cbce0(0x1a8),'EndWith',a164_0x1cbce0(0x1d9),a164_0x1cbce0(0x1d4),a164_0x1cbce0(0x1c1)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x1cbce0(0x1d4),a164_0x1cbce0(0x1c1)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)](),'value':OperatorValueSchema[a164_0x1cbce0(0x1bf)](),'min':z['union']([z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x1e5)](),TemporalValueSchema])['optional'](),'max':z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x1e5)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a164_0x1cbce0(0x1bf)](),'duration':z[a164_0x1cbce0(0x1dc)]({'day':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)](),'week':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)](),'month':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)](),'year':z[a164_0x1cbce0(0x1b8)]()['optional'](),'hour':z['number']()[a164_0x1cbce0(0x1bf)](),'minute':z['number']()['optional'](),'second':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)]()})[a164_0x1cbce0(0x1bf)](),'from':z['object']({'last':z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1b8)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)]()})['superRefine']((_0x24afa6,_0x50c8c2)=>{const _0x134cff=a164_0x1cbce0;OPERATORS_REQUIRING_VALUE[_0x134cff(0x1a0)](_0x24afa6[_0x134cff(0x1e1)])&&(_0x24afa6[_0x134cff(0x19e)]===undefined||_0x24afa6[_0x134cff(0x19e)]===null)&&_0x50c8c2['addIssue']({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1c7)+_0x24afa6[_0x134cff(0x1e1)]+_0x134cff(0x1ac),'path':[_0x134cff(0x19e)]}),_0x24afa6[_0x134cff(0x1e1)]===_0x134cff(0x1e6)&&_0x24afa6[_0x134cff(0x1b9)]===undefined&&_0x24afa6[_0x134cff(0x1c3)]===undefined&&_0x50c8c2[_0x134cff(0x199)]({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1bc),'params':{'validationCode':_0x134cff(0x1d7)}}),OPERATORS_REQUIRING_UNIT[_0x134cff(0x1a0)](_0x24afa6['type'])&&_0x24afa6['value']!==undefined&&!_0x24afa6[_0x134cff(0x19f)]&&_0x50c8c2[_0x134cff(0x199)]({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1c7)+_0x24afa6[_0x134cff(0x1e1)]+_0x134cff(0x1a4),'path':['unit'],'params':{'validationCode':_0x134cff(0x1db)}}),_0x24afa6['type']===_0x134cff(0x1cd)&&(!_0x24afa6[_0x134cff(0x1e3)]&&_0x50c8c2['addIssue']({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1d8),'path':['duration']}),!_0x24afa6['from']&&_0x50c8c2[_0x134cff(0x199)]({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1ae),'path':['from']}));});export const ArrayMatchingSchema=z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1d3)]('any'),z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1da)),z['object']({'atLeast':z[a164_0x1cbce0(0x1b8)]()}),z[a164_0x1cbce0(0x1dc)]({'atMost':z['number']()}),z[a164_0x1cbce0(0x1dc)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x1cbce0(0x1c5)](a164_0x1cbce0(0x1e1),[z[a164_0x1cbce0(0x1dc)]({'type':z['enum']([a164_0x1cbce0(0x1bb),a164_0x1cbce0(0x1b0),a164_0x1cbce0(0x1c2),a164_0x1cbce0(0x1a7)]),'column':z[a164_0x1cbce0(0x1e5)](),'groupingColumns':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1e5)]())[a164_0x1cbce0(0x1bf)]()}),z[a164_0x1cbce0(0x1dc)]({'type':z['literal'](a164_0x1cbce0(0x1cf)),'groupingColumns':z['array'](z['string']())[a164_0x1cbce0(0x1bf)]()}),z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)]('CountDistinct'),'columns':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1e5)]())}),z['object']({'type':z['enum']([a164_0x1cbce0(0x1d1),a164_0x1cbce0(0x1e7)]),'column':z[a164_0x1cbce0(0x1e5)](),'orderColumn':z[a164_0x1cbce0(0x1e5)](),'groupingColumns':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1e5)]())[a164_0x1cbce0(0x1bf)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a164_0x1cbce0(0x1b8)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x1cbce0(0x1d4),'TimeWithinNext',a164_0x1cbce0(0x1cd)]);export const FilterColumnConditionDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1c6)),'column':z[a164_0x1cbce0(0x1e5)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1cbce0(0x1bf)]()})[a164_0x1cbce0(0x1ad)]((_0x2a0b61,_0x3f500c)=>{const _0x5a5905=a164_0x1cbce0,_0x36f0b2=_0x2a0b61[_0x5a5905(0x1a1)][_0x5a5905(0x1e1)];_0x2a0b61['column']===_0x5a5905(0x1e2)?!TIMESTAMP_OPERATORS[_0x5a5905(0x1a0)](_0x36f0b2)&&_0x3f500c[_0x5a5905(0x199)]({'code':_0x5a5905(0x1e0),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x36f0b2+'\x27)','path':[_0x5a5905(0x1a1),_0x5a5905(0x1e1)]}):TIMESTAMP_OPERATORS['has'](_0x36f0b2)&&_0x3f500c['addIssue']({'code':_0x5a5905(0x1e0),'message':_0x5a5905(0x1c7)+_0x36f0b2+_0x5a5905(0x1ca),'path':[_0x5a5905(0x1a1),_0x5a5905(0x1e1)]});});export const FilterRuleDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1d2)),'conditions':z[a164_0x1cbce0(0x1b2)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x1cbce0(0x19b)](()=>z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)]('Value'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1cbce0(0x1bf)](),'exclude':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)](),'aggregation':AggregationDefSchema[a164_0x1cbce0(0x1bf)](),'source':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)](),'filter':FilterRuleDefSchema[a164_0x1cbce0(0x1bf)](),'limit':z['number']()[a164_0x1cbce0(0x1bf)]()}));function a164_0x577b(_0x261721,_0x19af00){_0x261721=_0x261721-0x198;const _0x1a0b35=a164_0x1a0b();let _0x577b4e=_0x1a0b35[_0x261721];return _0x577b4e;}export const BehaviorConditionDefSchema=z['lazy'](()=>z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1d6)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1cbce0(0x1bf)](),'exclude':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)](),'aggregation':AggregationDefSchema[a164_0x1cbce0(0x1bf)](),'source':z[a164_0x1cbce0(0x1e5)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a164_0x1cbce0(0x1bf)](),'limit':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)]()}));export const ColumnConditionDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z['literal'](a164_0x1cbce0(0x1c6)),'column':z[a164_0x1cbce0(0x1e5)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x1cbce0(0x19b)](()=>z['object']({'type':z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1d2),'Or']),'conditions':z[a164_0x1cbce0(0x1b2)](ConditionDefSchema),'description':z[a164_0x1cbce0(0x1e5)]()['optional']()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1b5),a164_0x1cbce0(0x1e8)]),'segment':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1b9)](0x1,a164_0x1cbce0(0x1ba))});export const ConditionDefSchema=z[a164_0x1cbce0(0x19b)](()=>z[a164_0x1cbce0(0x1af)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x1cbce0(0x19b)](()=>z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1c4)](['And','Or']),'conditions':z[a164_0x1cbce0(0x1b2)](ConditionDefSchema),'description':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)]()}));export const SegmentDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)]('segment')['optional'](),'name':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1b9)](0x1,a164_0x1cbce0(0x1be)),'description':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)](),'folder':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)](),'rule':RuleDefSchema[a164_0x1cbce0(0x1bf)](),'kind':z['enum']([a164_0x1cbce0(0x1cb),a164_0x1cbce0(0x1a6),a164_0x1cbce0(0x1a3)])['optional'](),'visible':z['boolean']()[a164_0x1cbce0(0x1bf)](),'activations':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1d0)]())[a164_0x1cbce0(0x1bf)]()});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_0x1b7b78=a165_0x145d;(function(_0x22d03f,_0x17374f){const _0x2ab52c=a165_0x145d,_0x42c12f=_0x22d03f();while(!![]){try{const _0x3c3ff6=parseInt(_0x2ab52c(0x172))/0x1*(parseInt(_0x2ab52c(0x17c))/0x2)+parseInt(_0x2ab52c(0x168))/0x3+parseInt(_0x2ab52c(0x16b))/0x4+-parseInt(_0x2ab52c(0x16d))/0x5+-parseInt(_0x2ab52c(0x165))/0x6*(parseInt(_0x2ab52c(0x17e))/0x7)+-parseInt(_0x2ab52c(0x16c))/0x8+-parseInt(_0x2ab52c(0x16a))/0x9*(parseInt(_0x2ab52c(0x17d))/0xa);if(_0x3c3ff6===_0x17374f)break;else _0x42c12f['push'](_0x42c12f['shift']());}catch(_0x4afb96){_0x42c12f['push'](_0x42c12f['shift']());}}}(a165_0x4e13,0xe7a3c));import{readFileSync}from'fs';import*as a165_0x3f8b80 from'path';function a165_0x4e13(){const _0x21ab2f=['push','1014piSJyG','segment','toJSON','1891209hSuFJT','object','128565MDRFYA','4715752VqKTga','3142376DdgzMr','6661535kkaBBg','relative','email','error','skipped','2473sIFGRV','message','length','type','campaign','warnings','campaign_type','filterType','basename','template','1490zppPvl','170DczUGX','30443pORqEb','journey','result','YAML\x20parse\x20error:\x20','utf-8','parseDocument','YAML_PARSE_ERROR'];a165_0x4e13=function(){return _0x21ab2f;};return a165_0x4e13();}import*as a165_0x55146e 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';function a165_0x145d(_0x497df8,_0x2a5b45){_0x497df8=_0x497df8-0x15f;const _0x4e133e=a165_0x4e13();let _0x145d0e=_0x4e133e[_0x497df8];return _0x145d0e;}const VALID_CAMPAIGN_TYPES=new Set([a165_0x1b7b78(0x16f),a165_0x1b7b78(0x164)]);export function isJourneyDef(_0x4359e3){const _0xf5b649=a165_0x1b7b78;return typeof _0x4359e3===_0xf5b649(0x169)&&_0x4359e3!==null&&_0xf5b649(0x175)in _0x4359e3&&_0x4359e3[_0xf5b649(0x175)]==='journey';}export function isCampaignDef(_0x155b89){const _0x28afc8=a165_0x1b7b78;if(typeof _0x155b89!=='object'||_0x155b89===null)return![];const _0x4734d0=_0x155b89,_0x242be3=VALID_CAMPAIGN_TYPES['has'](_0x4734d0[_0x28afc8(0x178)]);if(_0x4734d0['type']==='campaign'&&_0x242be3)return!![];if(_0x242be3&&!_0x4734d0[_0x28afc8(0x175)])return!![];return![];}export function isTemplateDef(_0x2a98e0){const _0x142d6f=a165_0x1b7b78;return typeof _0x2a98e0===_0x142d6f(0x169)&&_0x2a98e0!==null&&_0x142d6f(0x175)in _0x2a98e0&&_0x2a98e0[_0x142d6f(0x175)]==='template';}export function isValidationResult(_0x25ca37){const _0x4ab281=a165_0x1b7b78;return!(_0x4ab281(0x171)in _0x25ca37);}export function createParseErrorResult(_0x32dbb5,_0x2a0051,_0x465048,_0x13da78,_0x1af399=a165_0x1b7b78(0x166)){const _0x5eb152=a165_0x1b7b78;return{'filePath':_0x32dbb5,'relativePath':_0x2a0051,'source':_0x465048,'result':{'valid':![],'errors':[{'level':_0x5eb152(0x170),'path':'','code':_0x5eb152(0x163),'message':_0x13da78}],'warnings':[]},'fileType':_0x1af399};}export function validateYamlFile(_0x17e3cf,_0x4c178d,_0x4e4246={}){const _0x16c160=a165_0x1b7b78,_0x5e9d1c=a165_0x3f8b80[_0x16c160(0x16e)](_0x4c178d,_0x17e3cf)||a165_0x3f8b80[_0x16c160(0x17a)](_0x17e3cf);try{const _0x43880d=readFileSync(_0x17e3cf,_0x16c160(0x161)),_0x3ba6dc=a165_0x55146e[_0x16c160(0x162)](_0x43880d),_0x4a9751=_0x3ba6dc[_0x16c160(0x167)]();if(!_0x4a9751)return createParseErrorResult(_0x17e3cf,_0x5e9d1c,_0x43880d,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0xe859c8;if(isJourneyDef(_0x4a9751))_0xe859c8=_0x16c160(0x17f);else{if(isCampaignDef(_0x4a9751))_0xe859c8=_0x16c160(0x176);else isTemplateDef(_0x4a9751)?_0xe859c8=_0x16c160(0x17b):_0xe859c8=_0x16c160(0x166);}if(_0x4e4246[_0x16c160(0x179)]&&_0xe859c8!==_0x4e4246[_0x16c160(0x179)])return{'filePath':_0x17e3cf,'relativePath':_0x5e9d1c,'skipped':!![],'reason':'not\x20a\x20'+_0x4e4246[_0x16c160(0x179)]};const _0x3ac6af={'source':_0x43880d,'document':_0x3ba6dc};let _0x22dc4d;if(_0xe859c8==='journey')_0x22dc4d=validateJourneyDef(_0x4a9751,_0x3ac6af);else{if(_0xe859c8===_0x16c160(0x176))_0x22dc4d=validateCampaignDef(_0x4a9751,_0x3ac6af);else _0xe859c8==='template'?_0x22dc4d=validateTemplateDef(_0x4a9751,_0x3ac6af):_0x22dc4d=validateSegmentDef(_0x4a9751,_0x3ac6af);}return{'filePath':_0x17e3cf,'relativePath':_0x5e9d1c,'source':_0x43880d,'result':_0x22dc4d,'fileType':_0xe859c8};}catch(_0x4f0647){const _0x32ff90=_0x4f0647 instanceof Error?_0x4f0647[_0x16c160(0x173)]:String(_0x4f0647);return createParseErrorResult(_0x17e3cf,_0x5e9d1c,'',_0x16c160(0x160)+_0x32ff90);}}export function validateYamlFiles(_0x2c58be,_0x55874b,_0x2168c9={}){return _0x2c58be['map'](_0x3f54d7=>validateYamlFile(_0x3f54d7,_0x55874b,_0x2168c9));}export function calculateSummary(_0x30397a){const _0x4f1cc9=a165_0x1b7b78;let _0x1bc05b=0x0,_0x54c087=0x0,_0x39e4b5=0x0,_0x5e2a82=0x0;for(const _0xae96fe of _0x30397a){if(!isValidationResult(_0xae96fe)){_0x5e2a82++;continue;}_0xae96fe[_0x4f1cc9(0x15f)]['valid']?_0x1bc05b++:_0x54c087++,_0x39e4b5+=_0xae96fe[_0x4f1cc9(0x15f)][_0x4f1cc9(0x177)][_0x4f1cc9(0x174)];}return{'validCount':_0x1bc05b,'invalidCount':_0x54c087,'warningCount':_0x39e4b5,'skippedCount':_0x5e2a82,'hasErrors':_0x54c087>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};}
@@ -1 +1 @@
1
- (function(_0x29d734,_0x5a6b8f){const _0x21d784=a166_0x3ec5,_0x3cebef=_0x29d734();while(!![]){try{const _0xf41ba4=-parseInt(_0x21d784(0x112))/0x1+-parseInt(_0x21d784(0xfa))/0x2*(parseInt(_0x21d784(0x101))/0x3)+parseInt(_0x21d784(0xfd))/0x4+-parseInt(_0x21d784(0xf4))/0x5+parseInt(_0x21d784(0xf8))/0x6*(parseInt(_0x21d784(0xf5))/0x7)+parseInt(_0x21d784(0x117))/0x8+parseInt(_0x21d784(0x100))/0x9;if(_0xf41ba4===_0x5a6b8f)break;else _0x3cebef['push'](_0x3cebef['shift']());}catch(_0x183bb6){_0x3cebef['push'](_0x3cebef['shift']());}}}(a166_0x390b,0x7bd23));import*as a166_0x648084 from'yaml';import a166_0x1a388b from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x3657e5,_0x16e2f2,_0x40bab4){const _0xa60540=a166_0x3ec5;if(!_0x3657e5||!_0x16e2f2)return undefined;try{let _0x322f12=_0x3657e5['getIn'](_0x40bab4,!![]),_0x3c0952=[..._0x40bab4];while((!_0x322f12||typeof _0x322f12!=='object'||!(_0xa60540(0x116)in _0x322f12)||!_0x322f12['range'])&&_0x3c0952['length']>0x0){_0x3c0952[_0xa60540(0xf6)](),_0x322f12=_0x3c0952[_0xa60540(0x11d)]>0x0?_0x3657e5[_0xa60540(0x109)](_0x3c0952,!![]):_0x3657e5['contents'];}if(!_0x322f12||typeof _0x322f12!==_0xa60540(0x10f)||!('range'in _0x322f12)||!_0x322f12[_0xa60540(0x116)])return undefined;const [_0x4133de]=_0x322f12['range'];return offsetToLocation(_0x16e2f2,_0x4133de);}catch{return undefined;}}export function offsetToLocation(_0x43e0d9,_0x250719){const _0x11f1f7=a166_0x3ec5;let _0x20a4c5=0x1,_0x30c751=0x1;for(let _0x1df104=0x0;_0x1df104<_0x250719&&_0x1df104<_0x43e0d9[_0x11f1f7(0x11d)];_0x1df104++){_0x43e0d9[_0x1df104]==='\x0a'?(_0x20a4c5++,_0x30c751=0x1):_0x30c751++;}return{'line':_0x20a4c5,'column':_0x30c751,'offset':_0x250719};}export function pathToArray(_0x41ff7e){const _0x276150=a166_0x3ec5;if(!_0x41ff7e)return[];return _0x41ff7e[_0x276150(0x11b)]('.')[_0x276150(0x105)](_0x5663a9=>{const _0x51c938=_0x5663a9['match'](/^(\w+)\[(\d+)\]$/);if(_0x51c938)return[_0x51c938[0x1],parseInt(_0x51c938[0x2],0xa)];return[_0x5663a9];});}export function formatZodPath(_0x245bd2){const _0x4870b8=a166_0x3ec5;let _0x1227cf='';for(const _0x145439 of _0x245bd2){if(typeof _0x145439===_0x4870b8(0xfc))_0x1227cf+='['+_0x145439+']';else{const _0x3fb3d1=String(_0x145439);_0x1227cf+=_0x1227cf?'.'+_0x3fb3d1:_0x3fb3d1;}}return _0x1227cf;}function a166_0x3ec5(_0xc80ab5,_0x200e8a){_0xc80ab5=_0xc80ab5-0xf4;const _0x390beb=a166_0x390b();let _0x3ec55c=_0x390beb[_0xc80ab5];return _0x3ec55c;}export function flattenZodIssues(_0x3fbc36){const _0x4f4ec7=a166_0x3ec5,_0xc1262b=[];for(const _0x54d27d of _0x3fbc36){if(_0x54d27d[_0x4f4ec7(0xff)]==='invalid_union'&&'errors'in _0x54d27d){const _0xee5d99=_0x54d27d['errors'];let _0x5bbb6f=_0xee5d99[0x0]||[];for(const _0x3b827 of _0xee5d99){_0x3b827[_0x4f4ec7(0x11d)]<_0x5bbb6f[_0x4f4ec7(0x11d)]&&(_0x5bbb6f=_0x3b827);}const _0xcc7a2=_0x5bbb6f['map'](_0x5e5b32=>({..._0x5e5b32,'path':[..._0x54d27d[_0x4f4ec7(0x115)],..._0x5e5b32[_0x4f4ec7(0x115)]]}));_0xc1262b[_0x4f4ec7(0x113)](...flattenZodIssues(_0xcc7a2));}else _0xc1262b[_0x4f4ec7(0x113)](_0x54d27d);}return _0xc1262b;}export function safeParseYaml(_0x25a371,_0x28c8ab){const _0x4b5035=a166_0x3ec5,_0x4f9027=a166_0x648084['parse'](_0x25a371);if(!_0x4f9027||typeof _0x4f9027!==_0x4b5035(0x10f))throw new Error(_0x4b5035(0x107));const _0x24ec0b=_0x28c8ab['safeParse'](_0x4f9027);if(!_0x24ec0b[_0x4b5035(0x10c)]){const _0x3de59d=_0x24ec0b[_0x4b5035(0x103)][_0x4b5035(0xf7)][0x0],_0x318d50=formatZodPath(_0x3de59d[_0x4b5035(0x115)]);throw new Error(_0x318d50?_0x4b5035(0x104)+_0x318d50+'\x27:\x20'+_0x3de59d['message']:'YAML\x20validation\x20error:\x20'+_0x3de59d[_0x4b5035(0x11c)]);}return _0x24ec0b[_0x4b5035(0xfe)];}function a166_0x390b(){const _0x29488a=['join','object','toString','red','699723KTiehD','push','level','path','range','1284952leslfp','padStart','dim','location','split','message','length','3888910KLTznf','1155VdDxvn','pop','issues','6492ipeMyq','line','26AbfzXJ','min','number','3129192FqpCSZ','data','code','11079225lgGxrC','84876wQoSPY','yellow','error','YAML\x20validation\x20error\x20at\x20\x27','flatMap','\x20|\x20','Invalid\x20YAML:\x20expected\x20an\x20object','column','getIn','errors','cyan','success','warnings'];a166_0x390b=function(){return _0x29488a;};return a166_0x390b();}export function formatIssueWithContext(_0x4ab1b8,_0xae1335,_0x24f230){const _0x432021=a166_0x3ec5,_0x50946c=[],_0x9f8298=_0x4ab1b8['level']===_0x432021(0x103),_0x2993bc=_0x9f8298?a166_0x1a388b[_0x432021(0x111)]:a166_0x1a388b[_0x432021(0x102)],_0x2b2aad=_0x9f8298?a166_0x1a388b[_0x432021(0x111)]:a166_0x1a388b['yellow'],_0x11b955=_0x24f230?a166_0x1a388b[_0x432021(0x10b)](_0x24f230+':'):'';if(_0x4ab1b8[_0x432021(0x11a)]){const _0x34263d=a166_0x1a388b[_0x432021(0x10b)](_0x4ab1b8[_0x432021(0x11a)][_0x432021(0xf9)]+':'+_0x4ab1b8['location'][_0x432021(0x108)]);_0x50946c[_0x432021(0x113)](''+_0x11b955+_0x34263d+':\x20'+_0x2993bc(_0x4ab1b8['level'])+'\x20'+_0x2b2aad('['+_0x4ab1b8[_0x432021(0xff)]+']'));}else _0x50946c[_0x432021(0x113)](''+_0x11b955+a166_0x1a388b['dim'](_0x4ab1b8[_0x432021(0x115)])+':\x20'+_0x2993bc(_0x4ab1b8[_0x432021(0x114)])+'\x20'+_0x2b2aad('['+_0x4ab1b8[_0x432021(0xff)]+']'));_0x50946c[_0x432021(0x113)](_0x4ab1b8[_0x432021(0x11c)]);if(_0x4ab1b8['location']&&_0xae1335){const _0x5333e5=_0xae1335[_0x432021(0x11b)]('\x0a'),{line:_0x4d21d3,column:_0x18095f}=_0x4ab1b8[_0x432021(0x11a)],_0x4e7239=Math['max'](0x1,_0x4d21d3-0x1),_0xc4e7cc=Math[_0x432021(0xfb)](_0x5333e5[_0x432021(0x11d)],_0x4d21d3+0x1);_0x50946c[_0x432021(0x113)]('');for(let _0x25624f=_0x4e7239;_0x25624f<=_0xc4e7cc;_0x25624f++){const _0x565674=_0x5333e5[_0x25624f-0x1]||'',_0x4d24aa=a166_0x1a388b[_0x432021(0x119)](_0x25624f[_0x432021(0x110)]()[_0x432021(0x118)](0x4)),_0x388c04=a166_0x1a388b[_0x432021(0x119)](_0x432021(0x106));if(_0x25624f===_0x4d21d3){_0x50946c[_0x432021(0x113)]('\x20\x20'+_0x4d24aa+_0x388c04+_0x2993bc(_0x565674));const _0x211ce8='\x20'['repeat'](0x4+0x3+_0x18095f-0x1);_0x50946c[_0x432021(0x113)]('\x20\x20'+_0x211ce8+_0x2993bc('^'));}else _0x50946c[_0x432021(0x113)]('\x20\x20'+_0x4d24aa+_0x388c04+a166_0x1a388b[_0x432021(0x119)](_0x565674));}}return _0x50946c[_0x432021(0x10e)]('\x0a');}export function formatValidationResult(_0x1a0052,_0x1a2b0d,_0x21579a){const _0x30fc1a=a166_0x3ec5,_0x1e4a5e=[];for(const _0x3cf498 of _0x1a0052[_0x30fc1a(0x10a)]){_0x1e4a5e[_0x30fc1a(0x113)](formatIssueWithContext(_0x3cf498,_0x1a2b0d,_0x21579a)),_0x1e4a5e[_0x30fc1a(0x113)]('');}for(const _0x394c33 of _0x1a0052[_0x30fc1a(0x10d)]){_0x1e4a5e['push'](formatIssueWithContext(_0x394c33,_0x1a2b0d,_0x21579a)),_0x1e4a5e[_0x30fc1a(0x113)]('');}return _0x1e4a5e[_0x30fc1a(0x10e)]('\x0a');}
1
+ (function(_0x4631af,_0x5aeca0){const _0x44caee=a166_0x5a10,_0x538ead=_0x4631af();while(!![]){try{const _0x170b22=parseInt(_0x44caee(0x1ea))/0x1*(-parseInt(_0x44caee(0x1ee))/0x2)+parseInt(_0x44caee(0x1e1))/0x3*(parseInt(_0x44caee(0x1ce))/0x4)+-parseInt(_0x44caee(0x1e9))/0x5*(-parseInt(_0x44caee(0x1e0))/0x6)+parseInt(_0x44caee(0x1cb))/0x7*(-parseInt(_0x44caee(0x1e6))/0x8)+-parseInt(_0x44caee(0x1e2))/0x9+parseInt(_0x44caee(0x1d2))/0xa+parseInt(_0x44caee(0x1d4))/0xb*(parseInt(_0x44caee(0x1dd))/0xc);if(_0x170b22===_0x5aeca0)break;else _0x538ead['push'](_0x538ead['shift']());}catch(_0x44857c){_0x538ead['push'](_0x538ead['shift']());}}}(a166_0x2744,0x8e0b0));import*as a166_0x3f6a77 from'yaml';import a166_0xd0e886 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x267050,_0x1ae2cf,_0x21ac59){const _0xab7450=a166_0x5a10;if(!_0x267050||!_0x1ae2cf)return undefined;try{let _0x79b5ce=_0x267050[_0xab7450(0x1f0)](_0x21ac59,!![]),_0xe9ade5=[..._0x21ac59];while((!_0x79b5ce||typeof _0x79b5ce!==_0xab7450(0x1d6)||!('range'in _0x79b5ce)||!_0x79b5ce[_0xab7450(0x1c8)])&&_0xe9ade5['length']>0x0){_0xe9ade5['pop'](),_0x79b5ce=_0xe9ade5[_0xab7450(0x1dc)]>0x0?_0x267050[_0xab7450(0x1f0)](_0xe9ade5,!![]):_0x267050[_0xab7450(0x1d7)];}if(!_0x79b5ce||typeof _0x79b5ce!==_0xab7450(0x1d6)||!(_0xab7450(0x1c8)in _0x79b5ce)||!_0x79b5ce[_0xab7450(0x1c8)])return undefined;const [_0x248a83]=_0x79b5ce[_0xab7450(0x1c8)];return offsetToLocation(_0x1ae2cf,_0x248a83);}catch{return undefined;}}export function offsetToLocation(_0x27ff8f,_0x4333ea){const _0x38134d=a166_0x5a10;let _0x287448=0x1,_0x5387ab=0x1;for(let _0x819879=0x0;_0x819879<_0x4333ea&&_0x819879<_0x27ff8f[_0x38134d(0x1dc)];_0x819879++){_0x27ff8f[_0x819879]==='\x0a'?(_0x287448++,_0x5387ab=0x1):_0x5387ab++;}return{'line':_0x287448,'column':_0x5387ab,'offset':_0x4333ea};}export function pathToArray(_0x5a237e){const _0x5cac0e=a166_0x5a10;if(!_0x5a237e)return[];return _0x5a237e[_0x5cac0e(0x1df)]('.')[_0x5cac0e(0x1e8)](_0x2318ed=>{const _0x581f15=_0x2318ed['match'](/^(\w+)\[(\d+)\]$/);if(_0x581f15)return[_0x581f15[0x1],parseInt(_0x581f15[0x2],0xa)];return[_0x2318ed];});}export function formatZodPath(_0x52ba82){const _0x351435=a166_0x5a10;let _0x2d1adb='';for(const _0x1e6c0f of _0x52ba82){if(typeof _0x1e6c0f===_0x351435(0x1e5))_0x2d1adb+='['+_0x1e6c0f+']';else{const _0x4d3895=String(_0x1e6c0f);_0x2d1adb+=_0x2d1adb?'.'+_0x4d3895:_0x4d3895;}}return _0x2d1adb;}export function flattenZodIssues(_0x394590){const _0x2417ca=a166_0x5a10,_0x119291=[];for(const _0x22cf5c of _0x394590){if(_0x22cf5c[_0x2417ca(0x1cf)]===_0x2417ca(0x1d5)&&_0x2417ca(0x1c6)in _0x22cf5c){const _0x3d78a2=_0x22cf5c[_0x2417ca(0x1c6)];let _0xcd8438=_0x3d78a2[0x0]||[];for(const _0x26957b of _0x3d78a2){_0x26957b[_0x2417ca(0x1dc)]<_0xcd8438[_0x2417ca(0x1dc)]&&(_0xcd8438=_0x26957b);}const _0xbeb3a0=_0xcd8438[_0x2417ca(0x1d3)](_0x55c95c=>({..._0x55c95c,'path':[..._0x22cf5c['path'],..._0x55c95c[_0x2417ca(0x1e4)]]}));_0x119291['push'](...flattenZodIssues(_0xbeb3a0));}else _0x119291[_0x2417ca(0x1d8)](_0x22cf5c);}return _0x119291;}export function safeParseYaml(_0x421c19,_0x1f5fa6){const _0x5cd8ea=a166_0x5a10,_0x5ea6ad=a166_0x3f6a77['parse'](_0x421c19);if(!_0x5ea6ad||typeof _0x5ea6ad!==_0x5cd8ea(0x1d6))throw new Error('Invalid\x20YAML:\x20expected\x20an\x20object');const _0x3356fb=_0x1f5fa6['safeParse'](_0x5ea6ad);if(!_0x3356fb[_0x5cd8ea(0x1f2)]){const _0x58136d=_0x3356fb[_0x5cd8ea(0x1c9)]['issues'][0x0],_0xbcce8b=formatZodPath(_0x58136d[_0x5cd8ea(0x1e4)]);throw new Error(_0xbcce8b?_0x5cd8ea(0x1d1)+_0xbcce8b+'\x27:\x20'+_0x58136d[_0x5cd8ea(0x1c7)]:_0x5cd8ea(0x1da)+_0x58136d[_0x5cd8ea(0x1c7)]);}return _0x3356fb['data'];}export function formatIssueWithContext(_0x4ef3d4,_0xcf4c4b,_0x1ecd26){const _0x42b17d=a166_0x5a10,_0x537a4a=[],_0x2f0791=_0x4ef3d4[_0x42b17d(0x1ec)]==='error',_0x290004=_0x2f0791?a166_0xd0e886[_0x42b17d(0x1cd)]:a166_0xd0e886[_0x42b17d(0x1ef)],_0x7c99c=_0x2f0791?a166_0xd0e886[_0x42b17d(0x1cd)]:a166_0xd0e886[_0x42b17d(0x1ef)],_0x2bf35e=_0x1ecd26?a166_0xd0e886[_0x42b17d(0x1de)](_0x1ecd26+':'):'';if(_0x4ef3d4['location']){const _0x4256c7=a166_0xd0e886['cyan'](_0x4ef3d4[_0x42b17d(0x1ca)][_0x42b17d(0x1eb)]+':'+_0x4ef3d4[_0x42b17d(0x1ca)][_0x42b17d(0x1e3)]);_0x537a4a['push'](''+_0x2bf35e+_0x4256c7+':\x20'+_0x290004(_0x4ef3d4[_0x42b17d(0x1ec)])+'\x20'+_0x7c99c('['+_0x4ef3d4[_0x42b17d(0x1cf)]+']'));}else _0x537a4a['push'](''+_0x2bf35e+a166_0xd0e886[_0x42b17d(0x1db)](_0x4ef3d4['path'])+':\x20'+_0x290004(_0x4ef3d4[_0x42b17d(0x1ec)])+'\x20'+_0x7c99c('['+_0x4ef3d4['code']+']'));_0x537a4a[_0x42b17d(0x1d8)](_0x4ef3d4[_0x42b17d(0x1c7)]);if(_0x4ef3d4[_0x42b17d(0x1ca)]&&_0xcf4c4b){const _0x5f4f2d=_0xcf4c4b[_0x42b17d(0x1df)]('\x0a'),{line:_0x1d4dcd,column:_0x199973}=_0x4ef3d4['location'],_0x561c90=Math[_0x42b17d(0x1d9)](0x1,_0x1d4dcd-0x1),_0xe2d23d=Math[_0x42b17d(0x1ed)](_0x5f4f2d[_0x42b17d(0x1dc)],_0x1d4dcd+0x1);_0x537a4a[_0x42b17d(0x1d8)]('');for(let _0x5d46c1=_0x561c90;_0x5d46c1<=_0xe2d23d;_0x5d46c1++){const _0x281950=_0x5f4f2d[_0x5d46c1-0x1]||'',_0x3cd493=a166_0xd0e886['dim'](_0x5d46c1['toString']()['padStart'](0x4)),_0xeeb38c=a166_0xd0e886[_0x42b17d(0x1db)](_0x42b17d(0x1e7));if(_0x5d46c1===_0x1d4dcd){_0x537a4a[_0x42b17d(0x1d8)]('\x20\x20'+_0x3cd493+_0xeeb38c+_0x290004(_0x281950));const _0x36c51a='\x20'[_0x42b17d(0x1d0)](0x4+0x3+_0x199973-0x1);_0x537a4a['push']('\x20\x20'+_0x36c51a+_0x290004('^'));}else _0x537a4a[_0x42b17d(0x1d8)]('\x20\x20'+_0x3cd493+_0xeeb38c+a166_0xd0e886[_0x42b17d(0x1db)](_0x281950));}}return _0x537a4a[_0x42b17d(0x1cc)]('\x0a');}function a166_0x5a10(_0x51be91,_0x5318f3){_0x51be91=_0x51be91-0x1c6;const _0x27448b=a166_0x2744();let _0x5a1003=_0x27448b[_0x51be91];return _0x5a1003;}function a166_0x2744(){const _0x4f53e4=['149955DMRRut','256471hhpoDZ','line','level','min','4EgOQtS','yellow','getIn','warnings','success','errors','message','range','error','location','608223alALTB','join','red','5128HoYWVU','code','repeat','YAML\x20validation\x20error\x20at\x20\x27','3939010IqfPVO','map','1991Idylve','invalid_union','object','contents','push','max','YAML\x20validation\x20error:\x20','dim','length','7908YcPjiL','cyan','split','102BMjJqw','2643PtglbQ','8737470cPHoQy','column','path','number','8SHQDKy','\x20|\x20','flatMap'];a166_0x2744=function(){return _0x4f53e4;};return a166_0x2744();}export function formatValidationResult(_0x45a68e,_0x320fd7,_0x1813e4){const _0x598a6e=a166_0x5a10,_0xc27fe7=[];for(const _0x33f177 of _0x45a68e['errors']){_0xc27fe7[_0x598a6e(0x1d8)](formatIssueWithContext(_0x33f177,_0x320fd7,_0x1813e4)),_0xc27fe7['push']('');}for(const _0x41cde3 of _0x45a68e[_0x598a6e(0x1f1)]){_0xc27fe7[_0x598a6e(0x1d8)](formatIssueWithContext(_0x41cde3,_0x320fd7,_0x1813e4)),_0xc27fe7[_0x598a6e(0x1d8)]('');}return _0xc27fe7['join']('\x0a');}