@treasuredata/tdx 2026.3.35 → 2026.3.37

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 (219) 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.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/cas-command.js +1 -1
  12. package/dist/commands/cas-segment-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-statusline-command.js +1 -1
  16. package/dist/commands/claude-usage-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/connection-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/delivery-command.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/engage-campaign-pull-command.js +1 -1
  23. package/dist/commands/engage-campaign-push-command.js +1 -1
  24. package/dist/commands/engage-campaign-validate-command.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/engage-template-pull-command.js +1 -1
  27. package/dist/commands/engage-template-push-command.js +1 -1
  28. package/dist/commands/engage-template-validate-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/journey-validate-command.js +1 -1
  32. package/dist/commands/llm-command.js +1 -1
  33. package/dist/commands/mcp-command.js +1 -1
  34. package/dist/commands/parent-segment-command.js +1 -1
  35. package/dist/commands/policy-command.js +1 -1
  36. package/dist/commands/profile-command.js +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.js +1 -1
  56. package/dist/commands/work-command.js +1 -1
  57. package/dist/commands/workflow-command.js +1 -1
  58. package/dist/core/auth.js +1 -1
  59. package/dist/core/command-output.js +1 -1
  60. package/dist/core/config.js +1 -1
  61. package/dist/core/connection-cache.js +1 -1
  62. package/dist/core/constants.js +1 -1
  63. package/dist/core/credential-cache.js +1 -1
  64. package/dist/core/global-context.js +1 -1
  65. package/dist/core/keychain.js +1 -1
  66. package/dist/core/oauth-keychain.js +1 -1
  67. package/dist/core/oauth.js +1 -1
  68. package/dist/core/profile.js +1 -1
  69. package/dist/core/project-config.js +1 -1
  70. package/dist/core/session.js +1 -1
  71. package/dist/core/user-cache.js +1 -1
  72. package/dist/core/version.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/mcp/server.js +1 -1
  75. package/dist/mcp/tools/index.js +1 -1
  76. package/dist/mcp/tools/tdx-run.js +1 -1
  77. package/dist/mcp/tools/tdx-search.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/frontmatter.js +1 -1
  182. package/dist/sdk/workspace/git.js +1 -1
  183. package/dist/sdk/workspace/index.js +1 -1
  184. package/dist/sdk/workspace/templates.js +1 -1
  185. package/dist/sdk/workspace/weekly.js +1 -1
  186. package/dist/sdk/workspace/wikilinks.js +1 -1
  187. package/dist/test-utils/command-runner.js +1 -1
  188. package/dist/test-utils/factories.js +1 -1
  189. package/dist/test-utils/fixtures.js +1 -1
  190. package/dist/test-utils/http-mock.js +1 -1
  191. package/dist/test-utils/index.js +1 -1
  192. package/dist/utils/async.js +1 -1
  193. package/dist/utils/colors.js +1 -1
  194. package/dist/utils/diff.js +1 -1
  195. package/dist/utils/file-permissions.js +1 -1
  196. package/dist/utils/file-reader.js +1 -1
  197. package/dist/utils/github-releases.js +1 -1
  198. package/dist/utils/global-cache.js +1 -1
  199. package/dist/utils/json-loader.js +1 -1
  200. package/dist/utils/local-cache.js +1 -1
  201. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  202. package/dist/utils/logger/formatters/index.js +1 -1
  203. package/dist/utils/logger/handlers/console-handler.js +1 -1
  204. package/dist/utils/logger/handlers/file-handler.js +1 -1
  205. package/dist/utils/logger/handlers/index.js +1 -1
  206. package/dist/utils/logger/handlers/null-handler.js +1 -1
  207. package/dist/utils/logger/index.js +1 -1
  208. package/dist/utils/logger/logger.js +1 -1
  209. package/dist/utils/logger/types.js +1 -1
  210. package/dist/utils/option-validation.js +1 -1
  211. package/dist/utils/process.js +1 -1
  212. package/dist/utils/prompt.js +1 -1
  213. package/dist/utils/spinner.js +1 -1
  214. package/dist/utils/sse-parser.js +1 -1
  215. package/dist/utils/string-utils.js +1 -1
  216. package/dist/utils/table-ref-parser.js +1 -1
  217. package/dist/utils/tdx-logger.js +1 -1
  218. package/dist/utils/version-check.js +1 -1
  219. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x318002,_0x1f8e4d){const _0x50c02f=a156_0x5b95,_0x233064=_0x318002();while(!![]){try{const _0x271bca=parseInt(_0x50c02f(0x1f6))/0x1+-parseInt(_0x50c02f(0x1d8))/0x2+parseInt(_0x50c02f(0x1e8))/0x3*(parseInt(_0x50c02f(0x1fa))/0x4)+-parseInt(_0x50c02f(0x1f7))/0x5+-parseInt(_0x50c02f(0x1cc))/0x6*(-parseInt(_0x50c02f(0x1da))/0x7)+-parseInt(_0x50c02f(0x1d1))/0x8+parseInt(_0x50c02f(0x1d7))/0x9;if(_0x271bca===_0x1f8e4d)break;else _0x233064['push'](_0x233064['shift']());}catch(_0x3fdcb6){_0x233064['push'](_0x233064['shift']());}}}(a156_0x2727,0x5fddc));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';function a156_0x5b95(_0x1546ba,_0x479139){_0x1546ba=_0x1546ba-0x1c6;const _0x272730=a156_0x2727();let _0x5b95f8=_0x272730[_0x1546ba];return _0x5b95f8;}import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x3b62cf,_0x226b5e={},_0x544a13={}){const _0x538dd7=a156_0x5b95;if(_0x544a13[_0x538dd7(0x1fc)])return runSemanticChecks(_0x3b62cf,_0x226b5e);const _0x1759ae=SegmentDefSchema[_0x538dd7(0x1d4)](_0x3b62cf);if(_0x1759ae[_0x538dd7(0x1f4)])return runSemanticChecks(_0x1759ae['data'],_0x226b5e);return zodErrorsToValidationResult(_0x1759ae[_0x538dd7(0x1e0)],_0x226b5e);}export function validateRuleDef(_0x394356,_0x57f0d2,_0x3a8eec){const _0x2d7a99=a156_0x5b95;if(!_0x394356)return[];const _0x2d77e9=RuleDefSchema['safeParse'](_0x394356);if(_0x2d77e9[_0x2d7a99(0x1f4)])return checkRule(_0x2d77e9[_0x2d7a99(0x1c8)],_0x57f0d2,_0x3a8eec);const _0x256a13=flattenZodIssues(_0x2d77e9[_0x2d7a99(0x1e0)][_0x2d7a99(0x1d9)]);return _0x256a13[_0x2d7a99(0x1fb)](_0x38a7f8=>{const _0x22c7af=_0x2d7a99,_0x2376e4=formatZodPath(_0x38a7f8[_0x22c7af(0x1de)]),_0x5c4c10=_0x2376e4?_0x57f0d2+'.'+_0x2376e4:_0x57f0d2,_0x114a5d=mapZodIssueToCode(_0x38a7f8,_0x2376e4),_0x2f206a=getLocationFromPath(_0x3a8eec[_0x22c7af(0x1f3)],_0x3a8eec[_0x22c7af(0x201)],pathToArray(_0x5c4c10));return{'level':_0x22c7af(0x1e0),'path':_0x5c4c10,'code':_0x114a5d,'message':_0x38a7f8['message'],..._0x2f206a&&{'location':_0x2f206a}};});}function zodErrorsToValidationResult(_0x5e524e,_0x4de4d7){const _0x3e7af1=a156_0x5b95,_0x55e3af=flattenZodIssues(_0x5e524e[_0x3e7af1(0x1d9)]),_0x4fc4cc=_0x55e3af[_0x3e7af1(0x1fb)](_0x5d0d38=>{const _0x370752=_0x3e7af1,_0x20253b=formatZodPath(_0x5d0d38[_0x370752(0x1de)]),_0x20563e=mapZodIssueToCode(_0x5d0d38,_0x20253b),_0x142863=getLocationFromPath(_0x4de4d7[_0x370752(0x1f3)],_0x4de4d7['source'],_0x5d0d38['path'][_0x370752(0x1fb)](_0x2c29de=>typeof _0x2c29de==='symbol'?String(_0x2c29de):_0x2c29de));return{'level':_0x370752(0x1e0),'path':_0x20253b,'code':_0x20563e,'message':_0x5d0d38[_0x370752(0x208)],..._0x142863&&{'location':_0x142863}};});return{'valid':![],'errors':_0x4fc4cc,'warnings':[]};}function mapZodIssueToCode(_0x28762d,_0x22689d){const _0x3d9217=a156_0x5b95,_0x15b416=_0x28762d[_0x3d9217(0x203)]===_0x3d9217(0x1ea)?_0x28762d['params']:undefined;if(_0x22689d===_0x3d9217(0x1e5))return _0x3d9217(0x20a);if(_0x22689d==='rule.type'||_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1e6))){if(_0x28762d[_0x3d9217(0x203)]===_0x3d9217(0x1cf)){if(_0x22689d==='rule.type'||_0x22689d[_0x3d9217(0x1dc)](/\.conditions\[\d+\]\.type$/))return _0x3d9217(0x1f2);}}if(_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1f8)))return _0x3d9217(0x1c7);if(_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1e4)))return _0x3d9217(0x1cd);if(_0x15b416?.['validationCode']===_0x3d9217(0x1fd))return _0x3d9217(0x1fd);if(_0x15b416?.['validationCode']===_0x3d9217(0x20d))return _0x3d9217(0x20d);if(_0x22689d[_0x3d9217(0x206)](_0x3d9217(0x1db))||_0x22689d==='conditions')return'MISSING_CONDITIONS';if(_0x22689d[_0x3d9217(0x200)]('arrayMatching'))return _0x3d9217(0x20b);if(_0x22689d[_0x3d9217(0x206)]('.segment'))return _0x3d9217(0x1f0);return'SEGMENT_SCHEMA_ERROR';}function a156_0x2727(){const _0x4ba549=['\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','3418584wzIInj','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','Behavior','safeParse','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','6496704VhuhUM','1548702icXcRU','issues','14bbhsDX','.conditions','match','EMPTY_ATTRIBUTE','path','filter','error','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','.conditions[','length','.operator.value','name','.type','Attribute\x20\x27','3ynuhIs','\x27\x20with\x20attribute\x20\x27','custom','BEHAVIOR_SOURCE_MISSING_FILTER','rule','.attribute','Behavior\x20source\x20\x27','warning','MISSING_SEGMENT_REFERENCE','.source','INVALID_RULE_TYPE','document','success','aggregation','597037JAKpsY','2033315qQuRoO','.operator.type','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','183232KcCZML','map','skipSchema','MISSING_BETWEEN_BOUNDS','Attribute\x20name\x20cannot\x20be\x20empty','EMPTY_CONDITIONS','includes','source','NESTED_CONDITION_GROUP','code','conditions','type','endsWith','level','message','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','MISSING_NAME','INVALID_ARRAY_MATCHING','attribute','MISSING_TIME_UNIT','Value','INVALID_OPERATOR_TYPE','data','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','push','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','1908912FalNit','MISSING_OPERATOR_VALUE','.filter','invalid_value'];a156_0x2727=function(){return _0x4ba549;};return a156_0x2727();}function runSemanticChecks(_0x1c6057,_0x1d220f){const _0x1e3722=a156_0x5b95,_0x425a52=[];_0x1c6057['rule']&&_0x425a52[_0x1e3722(0x1ca)](...checkRule(_0x1c6057[_0x1e3722(0x1ec)],'rule',_0x1d220f));const _0x4ec6cf=_0x425a52[_0x1e3722(0x1df)](_0x3000a9=>_0x3000a9[_0x1e3722(0x207)]===_0x1e3722(0x1e0)),_0x8bfbb4=_0x425a52[_0x1e3722(0x1df)](_0x3a4a77=>_0x3a4a77[_0x1e3722(0x207)]===_0x1e3722(0x1ef));return{'valid':_0x4ec6cf[_0x1e3722(0x1e3)]===0x0,'errors':_0x4ec6cf,'warnings':_0x8bfbb4};}function checkRule(_0x359a39,_0x265fad,_0xe78cde){const _0x3c78f0=a156_0x5b95,_0x136ed1=[];if(_0x359a39[_0x3c78f0(0x204)]['length']===0x0)return _0x136ed1[_0x3c78f0(0x1ca)]({'level':_0x3c78f0(0x1e0),'path':_0x265fad+_0x3c78f0(0x1db),'code':_0x3c78f0(0x1ff),'message':_0x3c78f0(0x1d5),'location':getLocationFromPath(_0xe78cde[_0x3c78f0(0x1f3)],_0xe78cde[_0x3c78f0(0x201)],pathToArray(_0x265fad+_0x3c78f0(0x1db)))}),_0x136ed1;return _0x136ed1[_0x3c78f0(0x1ca)](...checkConditions(_0x359a39[_0x3c78f0(0x204)],_0x265fad,_0xe78cde)),_0x136ed1;}function checkConditions(_0x5c897d,_0x87a548,_0x32b194){const _0x15d4e0=a156_0x5b95,_0x33ac58=[];for(let _0x502ce0=0x0;_0x502ce0<_0x5c897d['length'];_0x502ce0++){const _0x29a9ee=_0x5c897d[_0x502ce0],_0x48df05=_0x87a548+_0x15d4e0(0x1e2)+_0x502ce0+']';_0x33ac58['push'](...checkCondition(_0x29a9ee,_0x48df05,_0x32b194));}return _0x33ac58;}function checkCondition(_0x2a0a10,_0x4962b0,_0x5efbf4){const _0x426f1e=a156_0x5b95,_0x4f13b1=[];if(_0x2a0a10[_0x426f1e(0x205)]==='And'||_0x2a0a10[_0x426f1e(0x205)]==='Or')return _0x2a0a10['conditions'][_0x426f1e(0x1e3)]===0x0?_0x4f13b1[_0x426f1e(0x1ca)]({'level':_0x426f1e(0x1e0),'path':_0x4962b0+_0x426f1e(0x1db),'code':_0x426f1e(0x1ff),'message':_0x2a0a10[_0x426f1e(0x205)]+'\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','location':getLocationFromPath(_0x5efbf4[_0x426f1e(0x1f3)],_0x5efbf4[_0x426f1e(0x201)],pathToArray(_0x4962b0+'.conditions'))}):(_0x4f13b1['push']({'level':_0x426f1e(0x1ef),'path':_0x4962b0,'code':_0x426f1e(0x202),'message':_0x2a0a10[_0x426f1e(0x205)]+_0x426f1e(0x1d2)+_0x426f1e(0x1f9)+_0x426f1e(0x1d6),'location':getLocationFromPath(_0x5efbf4['document'],_0x5efbf4[_0x426f1e(0x201)],pathToArray(_0x4962b0))}),_0x4f13b1[_0x426f1e(0x1ca)](...checkConditions(_0x2a0a10[_0x426f1e(0x204)],_0x4962b0,_0x5efbf4))),_0x4f13b1;if(_0x2a0a10['type']===_0x426f1e(0x1c6)||_0x2a0a10[_0x426f1e(0x205)]===_0x426f1e(0x1d3)){const _0x4f2324=_0x2a0a10,_0x28b880=_0x4f2324['source'],_0x189966=_0x4f2324[_0x426f1e(0x1f5)],_0x10875c=_0x28b880||_0x189966;(!_0x4f2324[_0x426f1e(0x20c)]||_0x4f2324[_0x426f1e(0x20c)]==='')&&(!_0x10875c&&_0x4f13b1[_0x426f1e(0x1ca)]({'level':_0x426f1e(0x1e0),'path':_0x4962b0+'.attribute','code':_0x426f1e(0x1dd),'message':_0x426f1e(0x1fe),'location':getLocationFromPath(_0x5efbf4[_0x426f1e(0x1f3)],_0x5efbf4['source'],pathToArray(_0x4962b0+'.attribute'))}));_0x4f2324[_0x426f1e(0x1df)]&&_0x4f13b1[_0x426f1e(0x1ca)](...checkRule(_0x4f2324[_0x426f1e(0x1df)],_0x4962b0+_0x426f1e(0x1ce),_0x5efbf4));if(_0x4f2324[_0x426f1e(0x201)]){const _0x3e17d7=_0x4f2324[_0x426f1e(0x20c)]&&_0x4f2324[_0x426f1e(0x20c)]!=='';_0x3e17d7&&!_0x4f2324[_0x426f1e(0x1df)]&&_0x4f13b1['push']({'level':_0x426f1e(0x1e0),'path':_0x4962b0+_0x426f1e(0x1f1),'code':_0x426f1e(0x1eb),'message':_0x426f1e(0x1ee)+_0x4f2324[_0x426f1e(0x201)]+_0x426f1e(0x1e9)+_0x4f2324[_0x426f1e(0x20c)]+'\x27\x20'+_0x426f1e(0x1cb)+'the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20'+_0x426f1e(0x1e1),'location':getLocationFromPath(_0x5efbf4['document'],_0x5efbf4[_0x426f1e(0x201)],pathToArray(_0x4962b0+_0x426f1e(0x1f1)))}),_0x3e17d7&&_0x4f2324[_0x426f1e(0x1df)]&&_0x4f13b1[_0x426f1e(0x1ca)]({'level':_0x426f1e(0x1ef),'path':_0x4962b0+_0x426f1e(0x1ed),'code':_0x426f1e(0x1c9),'message':_0x426f1e(0x1e7)+_0x4f2324[_0x426f1e(0x20c)]+_0x426f1e(0x1d0)+_0x426f1e(0x209),'location':getLocationFromPath(_0x5efbf4[_0x426f1e(0x1f3)],_0x5efbf4['source'],pathToArray(_0x4962b0+'.attribute'))});}}return _0x4f13b1;}
1
+ function a156_0x19e9(_0x2d2632,_0x24013b){_0x2d2632=_0x2d2632-0x169;const _0x2e3403=a156_0x2e34();let _0x19e9c3=_0x2e3403[_0x2d2632];return _0x19e9c3;}(function(_0x5db9e7,_0x595421){const _0xf68b7a=a156_0x19e9,_0x555eb7=_0x5db9e7();while(!![]){try{const _0x59d1bf=-parseInt(_0xf68b7a(0x1a9))/0x1*(-parseInt(_0xf68b7a(0x16f))/0x2)+-parseInt(_0xf68b7a(0x18a))/0x3+parseInt(_0xf68b7a(0x17e))/0x4*(parseInt(_0xf68b7a(0x179))/0x5)+-parseInt(_0xf68b7a(0x170))/0x6+parseInt(_0xf68b7a(0x178))/0x7+-parseInt(_0xf68b7a(0x1b1))/0x8+-parseInt(_0xf68b7a(0x187))/0x9*(-parseInt(_0xf68b7a(0x181))/0xa);if(_0x59d1bf===_0x595421)break;else _0x555eb7['push'](_0x555eb7['shift']());}catch(_0x36b589){_0x555eb7['push'](_0x555eb7['shift']());}}}(a156_0x2e34,0x56953));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x20cb34,_0x3d6e53={},_0x3ee055={}){const _0x4ba90b=a156_0x19e9;if(_0x3ee055['skipSchema'])return runSemanticChecks(_0x20cb34,_0x3d6e53);const _0x1d4eb1=SegmentDefSchema[_0x4ba90b(0x16c)](_0x20cb34);if(_0x1d4eb1[_0x4ba90b(0x18e)])return runSemanticChecks(_0x1d4eb1[_0x4ba90b(0x1aa)],_0x3d6e53);return zodErrorsToValidationResult(_0x1d4eb1['error'],_0x3d6e53);}export function validateRuleDef(_0x406187,_0x41b317,_0x1dc8b1){const _0x10cba5=a156_0x19e9;if(!_0x406187)return[];const _0x2e8477=RuleDefSchema[_0x10cba5(0x16c)](_0x406187);if(_0x2e8477[_0x10cba5(0x18e)])return checkRule(_0x2e8477[_0x10cba5(0x1aa)],_0x41b317,_0x1dc8b1);const _0x2882c2=flattenZodIssues(_0x2e8477['error'][_0x10cba5(0x186)]);return _0x2882c2[_0x10cba5(0x1a8)](_0x4d7098=>{const _0x21cd62=_0x10cba5,_0x500014=formatZodPath(_0x4d7098[_0x21cd62(0x182)]),_0x21a18b=_0x500014?_0x41b317+'.'+_0x500014:_0x41b317,_0x436281=mapZodIssueToCode(_0x4d7098,_0x500014),_0xae3471=getLocationFromPath(_0x1dc8b1['document'],_0x1dc8b1[_0x21cd62(0x1a6)],pathToArray(_0x21a18b));return{'level':_0x21cd62(0x190),'path':_0x21a18b,'code':_0x436281,'message':_0x4d7098[_0x21cd62(0x19e)],..._0xae3471&&{'location':_0xae3471}};});}function zodErrorsToValidationResult(_0x32bbb9,_0x570b29){const _0x352db4=flattenZodIssues(_0x32bbb9['issues']),_0x43ad6e=_0x352db4['map'](_0x507c27=>{const _0x23fdf6=a156_0x19e9,_0x574cee=formatZodPath(_0x507c27[_0x23fdf6(0x182)]),_0x3153f2=mapZodIssueToCode(_0x507c27,_0x574cee),_0x43b2d9=getLocationFromPath(_0x570b29['document'],_0x570b29[_0x23fdf6(0x1a6)],_0x507c27[_0x23fdf6(0x182)][_0x23fdf6(0x1a8)](_0x48dd46=>typeof _0x48dd46==='symbol'?String(_0x48dd46):_0x48dd46));return{'level':_0x23fdf6(0x190),'path':_0x574cee,'code':_0x3153f2,'message':_0x507c27['message'],..._0x43b2d9&&{'location':_0x43b2d9}};});return{'valid':![],'errors':_0x43ad6e,'warnings':[]};}function a156_0x2e34(){const _0x43cefa=['map','6FVaeYl','data','Attribute\x20\x27','filter','MISSING_OPERATOR_VALUE','Behavior\x20source\x20\x27','.segment','INVALID_ARRAY_MATCHING','4403192dwZNMH','attribute','length','match','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','INVALID_RULE_TYPE','safeParse','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','25782dmBQCE','1108974shrhfb','.conditions[','BEHAVIOR_SOURCE_MISSING_FILTER','.filter','custom','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','includes','document','977340AqAmcb','3085KebnPw','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','rule','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','3796BjHhWU','type','rule.type','1099350HqEDXD','path','Behavior','conditions','.attribute','issues','27milZNF','.operator.type','arrayMatching','127299hzthQc','name','endsWith','\x27\x20with\x20attribute\x20\x27','success','Value','error','SEGMENT_SCHEMA_ERROR','MISSING_BETWEEN_BOUNDS','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','invalid_value','level','params','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','code','Attribute\x20name\x20cannot\x20be\x20empty','.conditions','MISSING_NAME','.type','warning','message','aggregation','EMPTY_CONDITIONS','.source','NESTED_CONDITION_GROUP','And','push','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','source','validationCode'];a156_0x2e34=function(){return _0x43cefa;};return a156_0x2e34();}function mapZodIssueToCode(_0x8a9ff5,_0x9dda93){const _0x13336d=a156_0x19e9,_0x1d395a=_0x8a9ff5[_0x13336d(0x198)]===_0x13336d(0x174)?_0x8a9ff5[_0x13336d(0x196)]:undefined;if(_0x9dda93===_0x13336d(0x18b))return _0x13336d(0x19b);if(_0x9dda93===_0x13336d(0x180)||_0x9dda93[_0x13336d(0x18c)](_0x13336d(0x19c))){if(_0x8a9ff5['code']===_0x13336d(0x194)){if(_0x9dda93===_0x13336d(0x180)||_0x9dda93[_0x13336d(0x169)](/\.conditions\[\d+\]\.type$/))return _0x13336d(0x16b);}}if(_0x9dda93[_0x13336d(0x18c)](_0x13336d(0x188)))return'INVALID_OPERATOR_TYPE';if(_0x9dda93[_0x13336d(0x18c)]('.operator.value'))return _0x13336d(0x1ad);if(_0x1d395a?.[_0x13336d(0x1a7)]===_0x13336d(0x192))return _0x13336d(0x192);if(_0x1d395a?.[_0x13336d(0x1a7)]==='MISSING_TIME_UNIT')return'MISSING_TIME_UNIT';if(_0x9dda93[_0x13336d(0x18c)](_0x13336d(0x19a))||_0x9dda93===_0x13336d(0x184))return'MISSING_CONDITIONS';if(_0x9dda93[_0x13336d(0x176)](_0x13336d(0x189)))return _0x13336d(0x1b0);if(_0x9dda93[_0x13336d(0x18c)](_0x13336d(0x1af)))return'MISSING_SEGMENT_REFERENCE';return _0x13336d(0x191);}function runSemanticChecks(_0x4f5dbb,_0x38fb42){const _0x320eab=a156_0x19e9,_0x1506fb=[];_0x4f5dbb['rule']&&_0x1506fb['push'](...checkRule(_0x4f5dbb[_0x320eab(0x17c)],_0x320eab(0x17c),_0x38fb42));const _0x16dbc3=_0x1506fb[_0x320eab(0x1ac)](_0x17e340=>_0x17e340[_0x320eab(0x195)]==='error'),_0x435fae=_0x1506fb['filter'](_0x4816e2=>_0x4816e2[_0x320eab(0x195)]==='warning');return{'valid':_0x16dbc3[_0x320eab(0x1b3)]===0x0,'errors':_0x16dbc3,'warnings':_0x435fae};}function checkRule(_0x16303b,_0x178b4d,_0x104a33){const _0x498895=a156_0x19e9,_0xb57f13=[];if(_0x16303b[_0x498895(0x184)]['length']===0x0)return _0xb57f13[_0x498895(0x1a4)]({'level':'error','path':_0x178b4d+_0x498895(0x19a),'code':'EMPTY_CONDITIONS','message':_0x498895(0x16d),'location':getLocationFromPath(_0x104a33['document'],_0x104a33[_0x498895(0x1a6)],pathToArray(_0x178b4d+_0x498895(0x19a)))}),_0xb57f13;return _0xb57f13[_0x498895(0x1a4)](...checkConditions(_0x16303b[_0x498895(0x184)],_0x178b4d,_0x104a33)),_0xb57f13;}function checkConditions(_0x276c7a,_0x1e0db8,_0x240ad2){const _0xf76581=a156_0x19e9,_0xbb375=[];for(let _0x538480=0x0;_0x538480<_0x276c7a[_0xf76581(0x1b3)];_0x538480++){const _0x2ed437=_0x276c7a[_0x538480],_0x59e8fa=_0x1e0db8+_0xf76581(0x171)+_0x538480+']';_0xbb375[_0xf76581(0x1a4)](...checkCondition(_0x2ed437,_0x59e8fa,_0x240ad2));}return _0xbb375;}function checkCondition(_0x241f51,_0x45b49c,_0x495311){const _0xdee9cc=a156_0x19e9,_0x112137=[];if(_0x241f51[_0xdee9cc(0x17f)]===_0xdee9cc(0x1a3)||_0x241f51[_0xdee9cc(0x17f)]==='Or')return _0x241f51[_0xdee9cc(0x184)][_0xdee9cc(0x1b3)]===0x0?_0x112137[_0xdee9cc(0x1a4)]({'level':'error','path':_0x45b49c+_0xdee9cc(0x19a),'code':_0xdee9cc(0x1a0),'message':_0x241f51['type']+_0xdee9cc(0x197),'location':getLocationFromPath(_0x495311['document'],_0x495311[_0xdee9cc(0x1a6)],pathToArray(_0x45b49c+_0xdee9cc(0x19a)))}):(_0x112137[_0xdee9cc(0x1a4)]({'level':_0xdee9cc(0x19d),'path':_0x45b49c,'code':_0xdee9cc(0x1a2),'message':_0x241f51[_0xdee9cc(0x17f)]+_0xdee9cc(0x17d)+_0xdee9cc(0x17b)+_0xdee9cc(0x175),'location':getLocationFromPath(_0x495311[_0xdee9cc(0x177)],_0x495311[_0xdee9cc(0x1a6)],pathToArray(_0x45b49c))}),_0x112137[_0xdee9cc(0x1a4)](...checkConditions(_0x241f51[_0xdee9cc(0x184)],_0x45b49c,_0x495311))),_0x112137;if(_0x241f51[_0xdee9cc(0x17f)]===_0xdee9cc(0x18f)||_0x241f51[_0xdee9cc(0x17f)]===_0xdee9cc(0x183)){const _0x3f3ab9=_0x241f51,_0x47bd52=_0x3f3ab9[_0xdee9cc(0x1a6)],_0x9c8501=_0x3f3ab9[_0xdee9cc(0x19f)],_0x32b343=_0x47bd52||_0x9c8501;(!_0x3f3ab9['attribute']||_0x3f3ab9[_0xdee9cc(0x1b2)]==='')&&(!_0x32b343&&_0x112137[_0xdee9cc(0x1a4)]({'level':_0xdee9cc(0x190),'path':_0x45b49c+_0xdee9cc(0x185),'code':'EMPTY_ATTRIBUTE','message':_0xdee9cc(0x199),'location':getLocationFromPath(_0x495311[_0xdee9cc(0x177)],_0x495311[_0xdee9cc(0x1a6)],pathToArray(_0x45b49c+_0xdee9cc(0x185)))}));_0x3f3ab9[_0xdee9cc(0x1ac)]&&_0x112137[_0xdee9cc(0x1a4)](...checkRule(_0x3f3ab9[_0xdee9cc(0x1ac)],_0x45b49c+_0xdee9cc(0x173),_0x495311));if(_0x3f3ab9[_0xdee9cc(0x1a6)]){const _0xba36dd=_0x3f3ab9[_0xdee9cc(0x1b2)]&&_0x3f3ab9[_0xdee9cc(0x1b2)]!=='';_0xba36dd&&!_0x3f3ab9[_0xdee9cc(0x1ac)]&&_0x112137[_0xdee9cc(0x1a4)]({'level':_0xdee9cc(0x190),'path':_0x45b49c+_0xdee9cc(0x1a1),'code':_0xdee9cc(0x172),'message':_0xdee9cc(0x1ae)+_0x3f3ab9['source']+_0xdee9cc(0x18d)+_0x3f3ab9[_0xdee9cc(0x1b2)]+'\x27\x20'+_0xdee9cc(0x16a)+'the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20'+_0xdee9cc(0x1a5),'location':getLocationFromPath(_0x495311['document'],_0x495311['source'],pathToArray(_0x45b49c+'.source'))}),_0xba36dd&&_0x3f3ab9['filter']&&_0x112137[_0xdee9cc(0x1a4)]({'level':_0xdee9cc(0x19d),'path':_0x45b49c+_0xdee9cc(0x185),'code':_0xdee9cc(0x16e),'message':_0xdee9cc(0x1ab)+_0x3f3ab9[_0xdee9cc(0x1b2)]+_0xdee9cc(0x17a)+_0xdee9cc(0x193),'location':getLocationFromPath(_0x495311['document'],_0x495311[_0xdee9cc(0x1a6)],pathToArray(_0x45b49c+_0xdee9cc(0x185)))});}}return _0x112137;}
@@ -1 +1 @@
1
- (function(_0xa60458,_0x22878d){const _0x5c0f1e=a157_0xf505,_0x459b9e=_0xa60458();while(!![]){try{const _0x4bb31e=parseInt(_0x5c0f1e(0xfc))/0x1+-parseInt(_0x5c0f1e(0xeb))/0x2*(parseInt(_0x5c0f1e(0xea))/0x3)+parseInt(_0x5c0f1e(0xf1))/0x4+-parseInt(_0x5c0f1e(0xd4))/0x5+-parseInt(_0x5c0f1e(0xd3))/0x6+-parseInt(_0x5c0f1e(0xde))/0x7+parseInt(_0x5c0f1e(0xe6))/0x8;if(_0x4bb31e===_0x22878d)break;else _0x459b9e['push'](_0x459b9e['shift']());}catch(_0x14ff44){_0x459b9e['push'](_0x459b9e['shift']());}}}(a157_0x1ecd,0x5ba46));function a157_0xf505(_0x50175e,_0xb6a86a){_0x50175e=_0x50175e-0xcf;const _0x1ecdd2=a157_0x1ecd();let _0xf5054d=_0x1ecdd2[_0x50175e];return _0xf5054d;}import a157_0x1c4c50 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(_0x51bd99){const _0x135263=a157_0xf505;return _0x51bd99['type']!==_0x135263(0xe2);}export function isScopedResolution(_0x2ba0a6){const _0x2765e9=a157_0xf505;return _0x2ba0a6[_0x2765e9(0xe9)]===_0x2765e9(0xd6)||_0x2ba0a6['type']===_0x2765e9(0x100)||_0x2ba0a6[_0x2765e9(0xe9)]===_0x2765e9(0xe1);}export function getScopedDetails(_0x4726c0){const _0x26a69f=a157_0xf505;if(isScopedResolution(_0x4726c0))return{'isScoped':_0x4726c0['isScoped'],'scopedFolderPath':_0x4726c0[_0x26a69f(0xd8)]};return undefined;}async function findTdxConfigAsync(_0x1a332f,_0x94be2){const _0x36ea3d=a157_0xf505;let _0x4bf412=a157_0x1c4c50[_0x36ea3d(0xf5)](_0x1a332f);const _0x4f1af6=a157_0x1c4c50[_0x36ea3d(0xfd)](_0x4bf412)[_0x36ea3d(0xf9)];while(_0x4bf412!==_0x4f1af6){const _0x27393e=a157_0x1c4c50[_0x36ea3d(0xe8)](_0x4bf412,'tdx.json');if(await _0x94be2[_0x36ea3d(0xd7)](_0x27393e))try{const _0x419da2=await _0x94be2[_0x36ea3d(0x101)](_0x27393e),_0x32df58=JSON[_0x36ea3d(0xfd)](_0x419da2);if(_0x32df58[_0x36ea3d(0xdb)]&&typeof _0x32df58[_0x36ea3d(0xdb)]===_0x36ea3d(0xfb))return{'configPath':_0x27393e,'configDir':_0x4bf412,'parentSegment':_0x32df58[_0x36ea3d(0xdb)]};}catch{}_0x4bf412=a157_0x1c4c50[_0x36ea3d(0xf0)](_0x4bf412);}return null;}function calculateScopedPath(_0xec3399,_0x55c28d){const _0x357be7=a157_0xf505,_0x526117=a157_0x1c4c50[_0x357be7(0xe0)](_0x55c28d,_0xec3399),_0x5cf3c4=_0x526117!==''&&_0x526117!=='.'&&!_0x526117[_0x357be7(0xda)]('..');return{'isScoped':_0x5cf3c4,'scopedFolderPath':_0x5cf3c4?_0x526117[_0x357be7(0xee)](/\\/g,'/'):''};}export async function resolveTarget(_0x312310){const _0x1b6c80=a157_0xf505,{arg:_0x34bacb,contextParent:_0x5edf60,cwd:cwd=process[_0x1b6c80(0xf4)](),fs:fs=nodeFileSystem}=_0x312310;if(_0x34bacb&&isYamlFilePath(_0x34bacb))try{const _0x5cf5f1=await resolveYamlFilePath(_0x34bacb,fs),_0x294025=a157_0x1c4c50[_0x1b6c80(0xf5)](_0x34bacb),_0x2b7266=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x294025),_0x28a1eb=await findTdxConfigAsync(_0x2b7266,fs);if(!_0x28a1eb){if(_0x5edf60){const _0x2a0ac4=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x294025);return{'type':_0x1b6c80(0x100),'parentName':_0x5edf60,'targetDir':_0x2a0ac4,'configRoot':_0x2a0ac4,'filePath':_0x294025,'resourceName':_0x5cf5f1['segmentName'],'folderPath':_0x5cf5f1['folderPath'],'resourceType':_0x5cf5f1[_0x1b6c80(0x104)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1b6c80(0xe2),'errorCode':'no_config','message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}const _0x3ff19d=calculateScopedPath(_0x2b7266,_0x28a1eb[_0x1b6c80(0xed)]);return{'type':_0x1b6c80(0x100),'parentName':_0x28a1eb[_0x1b6c80(0xf6)],'targetDir':_0x28a1eb[_0x1b6c80(0xed)],'configRoot':_0x28a1eb[_0x1b6c80(0xed)],'filePath':_0x294025,'resourceName':_0x5cf5f1[_0x1b6c80(0xec)],'folderPath':_0x5cf5f1[_0x1b6c80(0xd5)],'resourceType':_0x5cf5f1[_0x1b6c80(0x104)],'isScoped':_0x3ff19d[_0x1b6c80(0xd9)],'scopedFolderPath':_0x3ff19d['scopedFolderPath']};}catch(_0x438278){const _0x28b6cc=_0x438278 instanceof Error?_0x438278['message']:String(_0x438278);if(_0x28b6cc[_0x1b6c80(0x103)]('File\x20not\x20found'))return{'type':_0x1b6c80(0xe2),'errorCode':'file_not_found','message':_0x1b6c80(0xfe)+_0x34bacb,'arg':_0x34bacb};if(_0x28b6cc[_0x1b6c80(0x103)]('No\x20tdx.json\x20found')){if(_0x5edf60){const _0x41be55=a157_0x1c4c50['resolve'](_0x34bacb);if(await fs[_0x1b6c80(0xd7)](_0x41be55)){const _0x2804e7=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x41be55),_0x57e57a=await fs[_0x1b6c80(0x101)](_0x41be55),_0x25a012=_0x57e57a[_0x1b6c80(0xf7)](/^name:\s*["']?([^"'\n]+)["']?/m),_0xb671fa=_0x57e57a[_0x1b6c80(0xf7)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x3fc615=_0x25a012?_0x25a012[0x1][_0x1b6c80(0x102)]():a157_0x1c4c50['basename'](_0x34bacb,a157_0x1c4c50[_0x1b6c80(0xe4)](_0x34bacb)),_0x3447ae=_0xb671fa&&_0xb671fa[0x1][_0x1b6c80(0x102)]()==='journey'?_0x1b6c80(0xf8):_0x1b6c80(0xdc);return{'type':_0x1b6c80(0x100),'parentName':_0x5edf60,'targetDir':_0x2804e7,'configRoot':_0x2804e7,'filePath':_0x41be55,'resourceName':_0x3fc615,'folderPath':'','resourceType':_0x3447ae,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xf3),'message':_0x1b6c80(0xf2)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xd1),'message':_0x28b6cc,'arg':_0x34bacb};}if(_0x34bacb){const _0x235f6c=a157_0x1c4c50[_0x1b6c80(0xf5)](cwd,_0x34bacb);let _0x511ba3=null;try{_0x511ba3=await fs[_0x1b6c80(0xe5)](_0x235f6c);}catch{}if(_0x511ba3?.[_0x1b6c80(0xfa)]()){const _0x5f25a0=await findTdxConfigAsync(_0x235f6c,fs);if(_0x5f25a0){const _0x591da6=calculateScopedPath(_0x235f6c,_0x5f25a0['configDir']);return{'type':'directory','parentName':_0x5f25a0[_0x1b6c80(0xf6)],'targetDir':_0x235f6c,'configRoot':_0x5f25a0['configDir'],'isScoped':_0x591da6[_0x1b6c80(0xd9)],'scopedFolderPath':_0x591da6[_0x1b6c80(0xd8)]};}if(_0x5edf60)return{'type':_0x1b6c80(0xd6),'parentName':_0x5edf60,'targetDir':_0x235f6c,'configRoot':_0x235f6c,'isScoped':![],'scopedFolderPath':''};return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xf3),'message':_0x1b6c80(0xcf)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}if(_0x511ba3?.[_0x1b6c80(0xff)]())return{'type':'error','errorCode':'invalid_yaml','message':_0x1b6c80(0xd2)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xdf)};const _0x2ea51c=sanitizeFileName(_0x34bacb),_0x4b62e4=getSegmentRootDir(_0x2ea51c,cwd);return{'type':_0x1b6c80(0xd0),'parentName':_0x34bacb,'targetDir':_0x4b62e4,'configRoot':_0x4b62e4};}const _0x3e793c=await findTdxConfigAsync(cwd,fs);if(_0x3e793c){const _0x1a6f65=calculateScopedPath(cwd,_0x3e793c[_0x1b6c80(0xed)]);return{'type':_0x1b6c80(0xe1),'parentName':_0x3e793c[_0x1b6c80(0xf6)],'targetDir':cwd,'configRoot':_0x3e793c[_0x1b6c80(0xed)],'isScoped':_0x1a6f65['isScoped'],'scopedFolderPath':_0x1a6f65['scopedFolderPath']};}if(_0x5edf60){const _0x51e939=sanitizeFileName(_0x5edf60),_0x4c4f8e=getSegmentRootDir(_0x51e939,cwd);return{'type':'context','parentName':_0x5edf60,'targetDir':_0x4c4f8e,'configRoot':_0x4c4f8e,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xe3),'message':_0x1b6c80(0xef),'helpText':_0x1b6c80(0xdd)};}function a157_0x1ecd(){const _0x528780=['no_config','cwd','resolve','parentSegment','match','journey','root','isDirectory','string','25966zOIYwA','parse','File\x20not\x20found:\x20','isFile','file','readFile','trim','includes','resourceType','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','parent_name','invalid_yaml','Not\x20a\x20YAML\x20file:\x20','1054998qBbgce','2126570TmMQtk','folderPath','directory','exists','scopedFolderPath','isScoped','startsWith','parent_segment','segment','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','2064041PKEhCz','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','relative','context','error','no_parent','extname','stat','9478352gXfiTh','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','join','type','3qJRiUt','870908ySYjkn','segmentName','configDir','replace','Parent\x20segment\x20not\x20specified','dirname','1984280AcKRTx','No\x20tdx.json\x20found\x20for\x20file:\x20'];a157_0x1ecd=function(){return _0x528780;};return a157_0x1ecd();}
1
+ (function(_0x4a16ad,_0x144c20){const _0x116777=a157_0x5f54,_0x490c3a=_0x4a16ad();while(!![]){try{const _0x3b605f=parseInt(_0x116777(0x1cd))/0x1*(-parseInt(_0x116777(0x1b8))/0x2)+parseInt(_0x116777(0x1bb))/0x3*(parseInt(_0x116777(0x1b9))/0x4)+-parseInt(_0x116777(0x1b7))/0x5+-parseInt(_0x116777(0x1ad))/0x6*(parseInt(_0x116777(0x1a1))/0x7)+parseInt(_0x116777(0x1bc))/0x8+parseInt(_0x116777(0x1c3))/0x9+-parseInt(_0x116777(0x1d2))/0xa;if(_0x3b605f===_0x144c20)break;else _0x490c3a['push'](_0x490c3a['shift']());}catch(_0x2a69fb){_0x490c3a['push'](_0x490c3a['shift']());}}}(a157_0x57e1,0x63d0a));import a157_0x4bddb6 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';function a157_0x57e1(){const _0x183905=['parent_name','segmentName','message','No\x20tdx.json\x20found\x20for\x20file:\x20','resourceType','file_not_found','extname','context','3061tUFKMP','invalid_yaml','File\x20not\x20found','no_config','isScoped','4408600qfaIvC','join','parentSegment','no_parent','folderPath','Parent\x20segment\x20not\x20specified','1592633tsPuBY','No\x20tdx.json\x20found','scopedFolderPath','tdx.json','dirname','parse','isFile','type','string','replace','includes','parent_segment','6PnIREW','match','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','File\x20not\x20found:\x20','configDir','relative','trim','cwd','directory','journey','1959995oTUihU','2WqgmOO','52eLUGpN','startsWith','62001xdAanu','6415528GrAXPC','error','file','resolve','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','exists','root','3615021wJINlY','isDirectory'];a157_0x57e1=function(){return _0x183905;};return a157_0x57e1();}import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x195bff){const _0x4b3b8f=a157_0x5f54;return _0x195bff[_0x4b3b8f(0x1a8)]!==_0x4b3b8f(0x1bd);}export function isScopedResolution(_0x45bd21){const _0x452508=a157_0x5f54;return _0x45bd21['type']===_0x452508(0x1b5)||_0x45bd21[_0x452508(0x1a8)]==='file'||_0x45bd21[_0x452508(0x1a8)]==='context';}export function getScopedDetails(_0x262f4b){const _0x71ca2b=a157_0x5f54;if(isScopedResolution(_0x262f4b))return{'isScoped':_0x262f4b[_0x71ca2b(0x1d1)],'scopedFolderPath':_0x262f4b['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x52be09,_0x3e34d2){const _0x369018=a157_0x5f54;let _0x50e3f3=a157_0x4bddb6[_0x369018(0x1bf)](_0x52be09);const _0x4a53b2=a157_0x4bddb6['parse'](_0x50e3f3)[_0x369018(0x1c2)];while(_0x50e3f3!==_0x4a53b2){const _0x5f550a=a157_0x4bddb6[_0x369018(0x1d3)](_0x50e3f3,_0x369018(0x1a4));if(await _0x3e34d2[_0x369018(0x1c1)](_0x5f550a))try{const _0x4a39cf=await _0x3e34d2['readFile'](_0x5f550a),_0x3a4de8=JSON[_0x369018(0x1a6)](_0x4a39cf);if(_0x3a4de8[_0x369018(0x1ac)]&&typeof _0x3a4de8[_0x369018(0x1ac)]===_0x369018(0x1a9))return{'configPath':_0x5f550a,'configDir':_0x50e3f3,'parentSegment':_0x3a4de8[_0x369018(0x1ac)]};}catch{}_0x50e3f3=a157_0x4bddb6[_0x369018(0x1a5)](_0x50e3f3);}return null;}function a157_0x5f54(_0x469837,_0x25c962){_0x469837=_0x469837-0x1a0;const _0x57e1e9=a157_0x57e1();let _0x5f5417=_0x57e1e9[_0x469837];return _0x5f5417;}function calculateScopedPath(_0x9a735,_0x2535a8){const _0x4b189d=a157_0x5f54,_0xe2cbec=a157_0x4bddb6[_0x4b189d(0x1b2)](_0x2535a8,_0x9a735),_0x3cc484=_0xe2cbec!==''&&_0xe2cbec!=='.'&&!_0xe2cbec[_0x4b189d(0x1ba)]('..');return{'isScoped':_0x3cc484,'scopedFolderPath':_0x3cc484?_0xe2cbec[_0x4b189d(0x1aa)](/\\/g,'/'):''};}export async function resolveTarget(_0x342bc8){const _0x57962a=a157_0x5f54,{arg:_0x4a0e58,contextParent:_0x5103a7,cwd:cwd=process[_0x57962a(0x1b4)](),fs:fs=nodeFileSystem}=_0x342bc8;if(_0x4a0e58&&isYamlFilePath(_0x4a0e58))try{const _0x36b539=await resolveYamlFilePath(_0x4a0e58,fs),_0xa31e=a157_0x4bddb6[_0x57962a(0x1bf)](_0x4a0e58),_0x2385d8=a157_0x4bddb6[_0x57962a(0x1a5)](_0xa31e),_0x24c344=await findTdxConfigAsync(_0x2385d8,fs);if(!_0x24c344){if(_0x5103a7){const _0x221543=a157_0x4bddb6['dirname'](_0xa31e);return{'type':_0x57962a(0x1be),'parentName':_0x5103a7,'targetDir':_0x221543,'configRoot':_0x221543,'filePath':_0xa31e,'resourceName':_0x36b539[_0x57962a(0x1c6)],'folderPath':_0x36b539[_0x57962a(0x1d6)],'resourceType':_0x36b539[_0x57962a(0x1c9)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x57962a(0x1bd),'errorCode':_0x57962a(0x1d0),'message':_0x57962a(0x1c8)+_0x4a0e58,'arg':_0x4a0e58,'helpText':_0x57962a(0x1c0)};}const _0x51c551=calculateScopedPath(_0x2385d8,_0x24c344[_0x57962a(0x1b1)]);return{'type':_0x57962a(0x1be),'parentName':_0x24c344[_0x57962a(0x1d4)],'targetDir':_0x24c344[_0x57962a(0x1b1)],'configRoot':_0x24c344['configDir'],'filePath':_0xa31e,'resourceName':_0x36b539[_0x57962a(0x1c6)],'folderPath':_0x36b539[_0x57962a(0x1d6)],'resourceType':_0x36b539['resourceType'],'isScoped':_0x51c551['isScoped'],'scopedFolderPath':_0x51c551[_0x57962a(0x1a3)]};}catch(_0x15f56d){const _0x1a13d2=_0x15f56d instanceof Error?_0x15f56d[_0x57962a(0x1c7)]:String(_0x15f56d);if(_0x1a13d2[_0x57962a(0x1ab)](_0x57962a(0x1cf)))return{'type':'error','errorCode':_0x57962a(0x1ca),'message':_0x57962a(0x1b0)+_0x4a0e58,'arg':_0x4a0e58};if(_0x1a13d2[_0x57962a(0x1ab)](_0x57962a(0x1a2))){if(_0x5103a7){const _0xef319e=a157_0x4bddb6[_0x57962a(0x1bf)](_0x4a0e58);if(await fs[_0x57962a(0x1c1)](_0xef319e)){const _0x62e17a=a157_0x4bddb6[_0x57962a(0x1a5)](_0xef319e),_0x2e1ac1=await fs['readFile'](_0xef319e),_0x304561=_0x2e1ac1[_0x57962a(0x1ae)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x37a23a=_0x2e1ac1[_0x57962a(0x1ae)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1ec6f=_0x304561?_0x304561[0x1][_0x57962a(0x1b3)]():a157_0x4bddb6['basename'](_0x4a0e58,a157_0x4bddb6[_0x57962a(0x1cb)](_0x4a0e58)),_0x1417c4=_0x37a23a&&_0x37a23a[0x1][_0x57962a(0x1b3)]()==='journey'?_0x57962a(0x1b6):'segment';return{'type':'file','parentName':_0x5103a7,'targetDir':_0x62e17a,'configRoot':_0x62e17a,'filePath':_0xef319e,'resourceName':_0x1ec6f,'folderPath':'','resourceType':_0x1417c4,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x57962a(0x1bd),'errorCode':_0x57962a(0x1d0),'message':_0x57962a(0x1c8)+_0x4a0e58,'arg':_0x4a0e58,'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':_0x57962a(0x1ce),'message':_0x1a13d2,'arg':_0x4a0e58};}if(_0x4a0e58){const _0x5060cf=a157_0x4bddb6[_0x57962a(0x1bf)](cwd,_0x4a0e58);let _0x18ccf3=null;try{_0x18ccf3=await fs['stat'](_0x5060cf);}catch{}if(_0x18ccf3?.[_0x57962a(0x1c4)]()){const _0x219fd5=await findTdxConfigAsync(_0x5060cf,fs);if(_0x219fd5){const _0x28edbd=calculateScopedPath(_0x5060cf,_0x219fd5['configDir']);return{'type':_0x57962a(0x1b5),'parentName':_0x219fd5[_0x57962a(0x1d4)],'targetDir':_0x5060cf,'configRoot':_0x219fd5[_0x57962a(0x1b1)],'isScoped':_0x28edbd[_0x57962a(0x1d1)],'scopedFolderPath':_0x28edbd[_0x57962a(0x1a3)]};}if(_0x5103a7)return{'type':_0x57962a(0x1b5),'parentName':_0x5103a7,'targetDir':_0x5060cf,'configRoot':_0x5060cf,'isScoped':![],'scopedFolderPath':''};return{'type':_0x57962a(0x1bd),'errorCode':'no_config','message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x4a0e58,'arg':_0x4a0e58,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}if(_0x18ccf3?.[_0x57962a(0x1a7)]())return{'type':_0x57962a(0x1bd),'errorCode':_0x57962a(0x1ce),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x4a0e58,'arg':_0x4a0e58,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x60f8ee=sanitizeFileName(_0x4a0e58),_0xf35e12=getSegmentRootDir(_0x60f8ee,cwd);return{'type':_0x57962a(0x1c5),'parentName':_0x4a0e58,'targetDir':_0xf35e12,'configRoot':_0xf35e12};}const _0x225ea7=await findTdxConfigAsync(cwd,fs);if(_0x225ea7){const _0x324ded=calculateScopedPath(cwd,_0x225ea7['configDir']);return{'type':_0x57962a(0x1cc),'parentName':_0x225ea7['parentSegment'],'targetDir':cwd,'configRoot':_0x225ea7[_0x57962a(0x1b1)],'isScoped':_0x324ded[_0x57962a(0x1d1)],'scopedFolderPath':_0x324ded[_0x57962a(0x1a3)]};}if(_0x5103a7){const _0x510641=sanitizeFileName(_0x5103a7),_0x1a2c0b=getSegmentRootDir(_0x510641,cwd);return{'type':_0x57962a(0x1cc),'parentName':_0x5103a7,'targetDir':_0x1a2c0b,'configRoot':_0x1a2c0b,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x57962a(0x1bd),'errorCode':_0x57962a(0x1d5),'message':_0x57962a(0x1a0),'helpText':_0x57962a(0x1af)};}
@@ -1 +1 @@
1
- const a158_0x4cec47=a158_0x2714;function a158_0x2714(_0x4c8cc6,_0x3a521e){_0x4c8cc6=_0x4c8cc6-0x1aa;const _0x2beb95=a158_0x2beb();let _0x2714d1=_0x2beb95[_0x4c8cc6];return _0x2714d1;}(function(_0x497755,_0x10895b){const _0x1b381c=a158_0x2714,_0x2a3503=_0x497755();while(!![]){try{const _0x4bdc95=parseInt(_0x1b381c(0x1b4))/0x1*(-parseInt(_0x1b381c(0x1ae))/0x2)+-parseInt(_0x1b381c(0x1b6))/0x3+-parseInt(_0x1b381c(0x1b0))/0x4*(parseInt(_0x1b381c(0x1c1))/0x5)+parseInt(_0x1b381c(0x1b9))/0x6+-parseInt(_0x1b381c(0x1c4))/0x7*(-parseInt(_0x1b381c(0x1c2))/0x8)+-parseInt(_0x1b381c(0x1aa))/0x9+parseInt(_0x1b381c(0x1b7))/0xa;if(_0x4bdc95===_0x10895b)break;else _0x2a3503['push'](_0x2a3503['shift']());}catch(_0x595235){_0x2a3503['push'](_0x2a3503['shift']());}}}(a158_0x2beb,0xae121));import{existsSync,readFileSync}from'fs';import a158_0x2458cf from'path';const TDX_CONFIG_FILE=a158_0x4cec47(0x1b2),SEGMENTS_DIR=a158_0x4cec47(0x1af);export function findTdxConfigPath(_0x504e21=process[a158_0x4cec47(0x1ab)]()){const _0x207f09=a158_0x4cec47;let _0x3d8fe7=a158_0x2458cf[_0x207f09(0x1bf)](_0x504e21);const _0x567336=a158_0x2458cf[_0x207f09(0x1ac)](_0x3d8fe7)[_0x207f09(0x1b8)];while(_0x3d8fe7!==_0x567336){const _0x4c4c29=a158_0x2458cf['join'](_0x3d8fe7,TDX_CONFIG_FILE);if(existsSync(_0x4c4c29))return _0x4c4c29;_0x3d8fe7=a158_0x2458cf[_0x207f09(0x1b1)](_0x3d8fe7);}return null;}export function loadTdxConfig(_0x594bfa){const _0x16416f=a158_0x4cec47,_0x592f27=readFileSync(_0x594bfa,_0x16416f(0x1b5));let _0x31b0cc;try{_0x31b0cc=JSON[_0x16416f(0x1ac)](_0x592f27);}catch{throw new Error(_0x16416f(0x1c5)+_0x594bfa);}if(!_0x31b0cc||typeof _0x31b0cc!==_0x16416f(0x1bb))throw new Error(_0x16416f(0x1b3));const _0x1b083c=_0x31b0cc,_0xb1c5a9=_0x1b083c['parent_segment']&&typeof _0x1b083c[_0x16416f(0x1ad)]===_0x16416f(0x1c7),_0x3efe88=_0x1b083c[_0x16416f(0x1bc)]&&typeof _0x1b083c[_0x16416f(0x1bc)]===_0x16416f(0x1c7);if(!_0xb1c5a9&&!_0x3efe88)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x5a733c={};return _0xb1c5a9&&(_0x5a733c['parent_segment']=_0x1b083c[_0x16416f(0x1ad)]),_0x3efe88&&(_0x5a733c['engage_workspace']=_0x1b083c[_0x16416f(0x1bc)]),_0x5a733c;}export function findTdxConfig(_0xb96ebd=process[a158_0x4cec47(0x1ab)]()){const _0x1fe655=a158_0x4cec47,_0x24366b=findTdxConfigPath(_0xb96ebd);if(!_0x24366b)throw new Error(_0x1fe655(0x1bd));const _0x1c843e=loadTdxConfig(_0x24366b),_0x32a567=a158_0x2458cf['dirname'](_0x24366b);return{'config':_0x1c843e,'configPath':_0x24366b,'configDir':_0x32a567};}export function tryFindTdxConfig(_0xe7a340){try{return findTdxConfig(_0xe7a340);}catch{return null;}}export function getSegmentRootDir(_0x372536,_0x42a806=process[a158_0x4cec47(0x1ab)]()){const _0x350f00=a158_0x4cec47;return a158_0x2458cf[_0x350f00(0x1be)](_0x42a806,SEGMENTS_DIR,_0x372536);}export function getTdxConfigPath(_0x236645,_0x49afbf=process[a158_0x4cec47(0x1ab)]()){const _0x112545=a158_0x4cec47;return a158_0x2458cf[_0x112545(0x1be)](getSegmentRootDir(_0x236645,_0x49afbf),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x4be478,_0x311cbe){const _0x24b680=a158_0x4cec47,_0x3921f0=a158_0x2458cf['resolve'](_0x4be478),_0x539f8e=a158_0x2458cf[_0x24b680(0x1c3)](_0x311cbe,_0x3921f0);if(_0x539f8e[_0x24b680(0x1c0)]('..'))return'';return _0x539f8e;}export function localPathToTdFolderPath(_0x304a01){const _0x641ea9=a158_0x4cec47,_0x19b5eb=a158_0x2458cf[_0x641ea9(0x1b1)](_0x304a01);if(_0x19b5eb==='.'||_0x19b5eb==='')return'';return _0x19b5eb[_0x641ea9(0x1ba)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x492b02,_0x12944d){if(!_0x492b02)return _0x12944d;return a158_0x2458cf['join'](_0x12944d,_0x492b02);}export function createTdxConfigContent(_0x3f4e24){const _0x197e0d={'parent_segment':_0x3f4e24};return JSON['stringify'](_0x197e0d,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x52f7df){const _0xa20f55=a158_0x4cec47,_0xbbfc97={'engage_workspace':_0x52f7df};return JSON[_0xa20f55(0x1c6)](_0xbbfc97,null,0x2)+'\x0a';}function a158_0x2beb(){const _0x265635=['16134420SItuhl','root','6858510uHdoDi','replace','object','engage_workspace','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','join','resolve','startsWith','1126920EPttJU','128jobiKB','relative','394884XfPyfy','Invalid\x20JSON\x20in\x20','stringify','string','3112137aqPSWz','cwd','parse','parent_segment','1206382OSFEBJ','segments','12yolWdz','dirname','tdx.json','Invalid\x20tdx.json:\x20expected\x20object','1cJqTCr','utf-8','3962970jGOFRE'];a158_0x2beb=function(){return _0x265635;};return a158_0x2beb();}
1
+ const a158_0xdf8fa=a158_0x568a;(function(_0x5983b0,_0x54eed4){const _0x3821d7=a158_0x568a,_0x2aed46=_0x5983b0();while(!![]){try{const _0x3e4449=parseInt(_0x3821d7(0xa7))/0x1*(-parseInt(_0x3821d7(0xa8))/0x2)+-parseInt(_0x3821d7(0xad))/0x3*(-parseInt(_0x3821d7(0xb5))/0x4)+-parseInt(_0x3821d7(0xa4))/0x5*(-parseInt(_0x3821d7(0xaf))/0x6)+-parseInt(_0x3821d7(0xb0))/0x7+-parseInt(_0x3821d7(0xac))/0x8*(-parseInt(_0x3821d7(0xb1))/0x9)+-parseInt(_0x3821d7(0xb4))/0xa*(-parseInt(_0x3821d7(0xb9))/0xb)+-parseInt(_0x3821d7(0xbc))/0xc;if(_0x3e4449===_0x54eed4)break;else _0x2aed46['push'](_0x2aed46['shift']());}catch(_0x22cd5e){_0x2aed46['push'](_0x2aed46['shift']());}}}(a158_0x82ab,0xc3986));import{existsSync,readFileSync}from'fs';import a158_0x190b12 from'path';const TDX_CONFIG_FILE=a158_0xdf8fa(0xba),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x15257b=process[a158_0xdf8fa(0xc0)]()){const _0x19045c=a158_0xdf8fa;let _0xf414d6=a158_0x190b12[_0x19045c(0xa9)](_0x15257b);const _0x412311=a158_0x190b12['parse'](_0xf414d6)[_0x19045c(0xa5)];while(_0xf414d6!==_0x412311){const _0x4ffe1f=a158_0x190b12[_0x19045c(0xbe)](_0xf414d6,TDX_CONFIG_FILE);if(existsSync(_0x4ffe1f))return _0x4ffe1f;_0xf414d6=a158_0x190b12[_0x19045c(0xbd)](_0xf414d6);}return null;}export function loadTdxConfig(_0x264582){const _0x422626=a158_0xdf8fa,_0x3a5c20=readFileSync(_0x264582,_0x422626(0xaa));let _0x4ed470;try{_0x4ed470=JSON[_0x422626(0xab)](_0x3a5c20);}catch{throw new Error(_0x422626(0xa6)+_0x264582);}if(!_0x4ed470||typeof _0x4ed470!==_0x422626(0xb3))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x33095e=_0x4ed470,_0x4551df=_0x33095e[_0x422626(0xb7)]&&typeof _0x33095e[_0x422626(0xb7)]==='string',_0x292e92=_0x33095e[_0x422626(0xb6)]&&typeof _0x33095e[_0x422626(0xb6)]==='string';if(!_0x4551df&&!_0x292e92)throw new Error(_0x422626(0xbf));const _0x1b1341={};return _0x4551df&&(_0x1b1341[_0x422626(0xb7)]=_0x33095e[_0x422626(0xb7)]),_0x292e92&&(_0x1b1341[_0x422626(0xb6)]=_0x33095e['engage_workspace']),_0x1b1341;}export function findTdxConfig(_0x1461ff=process[a158_0xdf8fa(0xc0)]()){const _0x2fa7bb=a158_0xdf8fa,_0x16cdfa=findTdxConfigPath(_0x1461ff);if(!_0x16cdfa)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x5f059f=loadTdxConfig(_0x16cdfa),_0x204269=a158_0x190b12[_0x2fa7bb(0xbd)](_0x16cdfa);return{'config':_0x5f059f,'configPath':_0x16cdfa,'configDir':_0x204269};}function a158_0x568a(_0x326ccd,_0x484e37){_0x326ccd=_0x326ccd-0xa4;const _0x82abcf=a158_0x82ab();let _0x568a84=_0x82abcf[_0x326ccd];return _0x568a84;}export function tryFindTdxConfig(_0x510752){try{return findTdxConfig(_0x510752);}catch{return null;}}export function getSegmentRootDir(_0x2fa4e8,_0x4bbf38=process['cwd']()){const _0x20f509=a158_0xdf8fa;return a158_0x190b12[_0x20f509(0xbe)](_0x4bbf38,SEGMENTS_DIR,_0x2fa4e8);}export function getTdxConfigPath(_0x293c11,_0x53d7e0=process['cwd']()){const _0x4e0993=a158_0xdf8fa;return a158_0x190b12[_0x4e0993(0xbe)](getSegmentRootDir(_0x293c11,_0x53d7e0),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x523987,_0x37b9a2){const _0x180aae=a158_0xdf8fa,_0x142f11=a158_0x190b12[_0x180aae(0xa9)](_0x523987),_0x17dbc1=a158_0x190b12[_0x180aae(0xbb)](_0x37b9a2,_0x142f11);if(_0x17dbc1[_0x180aae(0xb2)]('..'))return'';return _0x17dbc1;}export function localPathToTdFolderPath(_0x28b1cd){const _0x29a628=a158_0xdf8fa,_0x4f9724=a158_0x190b12[_0x29a628(0xbd)](_0x28b1cd);if(_0x4f9724==='.'||_0x4f9724==='')return'';return _0x4f9724[_0x29a628(0xae)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x5bb62d,_0x4f32d2){const _0x58c484=a158_0xdf8fa;if(!_0x5bb62d)return _0x4f32d2;return a158_0x190b12[_0x58c484(0xbe)](_0x4f32d2,_0x5bb62d);}export function createTdxConfigContent(_0x52be65){const _0x50ffce=a158_0xdf8fa,_0x11b0d8={'parent_segment':_0x52be65};return JSON[_0x50ffce(0xb8)](_0x11b0d8,null,0x2)+'\x0a';}function a158_0x82ab(){const _0xed5470=['parse','6387048bcwknv','3OEmJBo','replace','3189090njdtNW','3584084MnWwrm','9ylUXlu','startsWith','object','247150biLroM','4845836QVSABW','engage_workspace','parent_segment','stringify','176iZMSgy','tdx.json','relative','17755032cJGTXo','dirname','join','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','cwd','10lfQEQt','root','Invalid\x20JSON\x20in\x20','675554jSXTlB','2QFxxjc','resolve','utf-8'];a158_0x82ab=function(){return _0xed5470;};return a158_0x82ab();}export function createEngageTdxConfigContent(_0x1685e3){const _0x569b06=a158_0xdf8fa,_0xcbba5a={'engage_workspace':_0x1685e3};return JSON[_0x569b06(0xb8)](_0xcbba5a,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a159_0x1e62c2=a159_0x274d;(function(_0x4afa26,_0x123c42){const _0x2cd0ed=a159_0x274d,_0x4a64f4=_0x4afa26();while(!![]){try{const _0x3966af=-parseInt(_0x2cd0ed(0xc9))/0x1*(-parseInt(_0x2cd0ed(0xb2))/0x2)+parseInt(_0x2cd0ed(0xbe))/0x3*(-parseInt(_0x2cd0ed(0xb9))/0x4)+-parseInt(_0x2cd0ed(0xaa))/0x5+-parseInt(_0x2cd0ed(0xa2))/0x6+-parseInt(_0x2cd0ed(0xa8))/0x7*(-parseInt(_0x2cd0ed(0xb5))/0x8)+parseInt(_0x2cd0ed(0xa3))/0x9+parseInt(_0x2cd0ed(0xb4))/0xa;if(_0x3966af===_0x123c42)break;else _0x4a64f4['push'](_0x4a64f4['shift']());}catch(_0x4606c6){_0x4a64f4['push'](_0x4a64f4['shift']());}}}(a159_0x3fe7,0x34665));function a159_0x3fe7(){const _0x505590=['Connection\x20name\x20is\x20required','union','Top-N','enum','267PcwglE','onFailure','hour','day','Last','cron','month','minute','All','nullable','optional','77578mbUHJJ','array','min','First','unknown','1982166VQasdy','177111pVENOr','hourly','boolean','weekly','number','930874JrFTPB','masked','1360520ayCoLR','cols','Activation\x20name\x20is\x20required','desc','record','object','asc','clear','8LCdblG','string','6229900DsAZCy','8phZScw','onSuccess','week','none','12084ocDhvs'];a159_0x3fe7=function(){return _0x505590;};return a159_0x3fe7();}import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb8),a159_0x1e62c2(0xa4),'daily',a159_0x1e62c2(0xa6),'monthly',a159_0x1e62c2(0xc3),'minutes_interval']);export const RepeatUnitSchema=z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xc5),a159_0x1e62c2(0xc0),a159_0x1e62c2(0xc1),a159_0x1e62c2(0xb7),a159_0x1e62c2(0xc4),'once',a159_0x1e62c2(0xb8)]);export const ScheduleDefSchema=z[a159_0x1e62c2(0xaf)]({'type':ScheduleTypeSchema[a159_0x1e62c2(0xc8)](),'repeat_unit':RepeatUnitSchema[a159_0x1e62c2(0xc8)](),'repeat_frequency':z[a159_0x1e62c2(0xa7)]()[a159_0x1e62c2(0xc8)](),'repeat_sub_frequency':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xa7)]())['optional'](),'start_at':z['string']()['nullable']()[a159_0x1e62c2(0xc8)](),'end_on':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'timezone':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc8)]()});export const NotificationDefSchema=z[a159_0x1e62c2(0xaf)]({'notify_on':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb6),a159_0x1e62c2(0xbf)]))['optional'](),'email_recipients':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xb3)]())[a159_0x1e62c2(0xc8)]()});function a159_0x274d(_0x1af3c7,_0x1c3c13){_0x1af3c7=_0x1af3c7-0x9e;const _0x3fe780=a159_0x3fe7();let _0x274d8a=_0x3fe780[_0x1af3c7];return _0x274d8a;}export const ActivationColumnDefSchema=z[a159_0x1e62c2(0xbb)]([z['string'](),z['object']({'name':z[a159_0x1e62c2(0xb3)](),'type':z['string']()['optional'](),'visibility':z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb1),'masked'])[a159_0x1e62c2(0xc8)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x1e62c2(0xaf)]({'columns':z['array'](z['object']({'name':z['string'](),'type':z['string']()[a159_0x1e62c2(0xc8)](),'visibility':z[a159_0x1e62c2(0xbd)](['clear',a159_0x1e62c2(0xa9)])[a159_0x1e62c2(0xc8)]()}))[a159_0x1e62c2(0xc8)](),'behavior_table':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc8)](),'join_row':z[a159_0x1e62c2(0xa7)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'join_strategy':z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xc6),a159_0x1e62c2(0xa0),a159_0x1e62c2(0xc2),a159_0x1e62c2(0xbc)])['optional'](),'formatting':z[a159_0x1e62c2(0xbd)](['rows',a159_0x1e62c2(0xab)])['optional'](),'order_by':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xaf)]({'key':z[a159_0x1e62c2(0xb3)](),'order':z['enum']([a159_0x1e62c2(0xb0),a159_0x1e62c2(0xad)])}))[a159_0x1e62c2(0xc8)]()});export const ActivationDefSchema=z[a159_0x1e62c2(0xaf)]({'name':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0x9f)](0x1,a159_0x1e62c2(0xac)),'description':z['string']()['optional'](),'connection':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0x9f)](0x1,a159_0x1e62c2(0xba)),'all_columns':z[a159_0x1e62c2(0xa5)]()[a159_0x1e62c2(0xc8)](),'columns':z[a159_0x1e62c2(0x9e)](ActivationColumnDefSchema)[a159_0x1e62c2(0xc8)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x1e62c2(0xc8)](),'connector_config':z[a159_0x1e62c2(0xae)](z[a159_0x1e62c2(0xb3)](),z[a159_0x1e62c2(0xa1)]())[a159_0x1e62c2(0xc8)](),'activation_template_id':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'behavior':ActivationBehaviorDefSchema[a159_0x1e62c2(0xc7)]()['optional'](),'run_after_journey_refresh':z[a159_0x1e62c2(0xa5)]()[a159_0x1e62c2(0xc8)]()});
1
+ const a159_0x1b98eb=a159_0x2acb;(function(_0x34afee,_0x2f7fbd){const _0x8d78e7=a159_0x2acb,_0x400448=_0x34afee();while(!![]){try{const _0x38a668=-parseInt(_0x8d78e7(0xec))/0x1*(-parseInt(_0x8d78e7(0xfd))/0x2)+-parseInt(_0x8d78e7(0x110))/0x3+parseInt(_0x8d78e7(0xf0))/0x4*(-parseInt(_0x8d78e7(0x113))/0x5)+-parseInt(_0x8d78e7(0xfe))/0x6+parseInt(_0x8d78e7(0x106))/0x7+-parseInt(_0x8d78e7(0xfb))/0x8+parseInt(_0x8d78e7(0x103))/0x9;if(_0x38a668===_0x2f7fbd)break;else _0x400448['push'](_0x400448['shift']());}catch(_0xdf9f5c){_0x400448['push'](_0x400448['shift']());}}}(a159_0x2b6e,0x6c326));import{z}from'zod';export const ScheduleTypeSchema=z['enum']([a159_0x1b98eb(0x10a),'hourly','daily',a159_0x1b98eb(0x115),a159_0x1b98eb(0x100),a159_0x1b98eb(0x107),'minutes_interval']);function a159_0x2acb(_0x5bff69,_0x413cb2){_0x5bff69=_0x5bff69-0xec;const _0x2b6ea6=a159_0x2b6e();let _0x2acbd3=_0x2b6ea6[_0x5bff69];return _0x2acbd3;}export const RepeatUnitSchema=z[a159_0x1b98eb(0xee)](['minute',a159_0x1b98eb(0x10c),a159_0x1b98eb(0xed),a159_0x1b98eb(0x10f),a159_0x1b98eb(0xf1),a159_0x1b98eb(0xef),a159_0x1b98eb(0x10a)]);export const ScheduleDefSchema=z[a159_0x1b98eb(0x10e)]({'type':ScheduleTypeSchema[a159_0x1b98eb(0xfa)](),'repeat_unit':RepeatUnitSchema[a159_0x1b98eb(0xfa)](),'repeat_frequency':z[a159_0x1b98eb(0xf4)]()['optional'](),'repeat_sub_frequency':z['array'](z[a159_0x1b98eb(0xf4)]())[a159_0x1b98eb(0xfa)](),'start_at':z[a159_0x1b98eb(0x10b)]()[a159_0x1b98eb(0x111)]()[a159_0x1b98eb(0xfa)](),'end_on':z[a159_0x1b98eb(0x10b)]()[a159_0x1b98eb(0x111)]()[a159_0x1b98eb(0xfa)](),'timezone':z[a159_0x1b98eb(0x10b)]()['optional']()});export const NotificationDefSchema=z[a159_0x1b98eb(0x10e)]({'notify_on':z['array'](z['enum'](['onSuccess','onFailure']))[a159_0x1b98eb(0xfa)](),'email_recipients':z[a159_0x1b98eb(0xf6)](z[a159_0x1b98eb(0x10b)]())[a159_0x1b98eb(0xfa)]()});function a159_0x2b6e(){const _0x200700=['14075658mlksKN','record','First','5219235oduStb','cron','masked','desc','none','string','hour','clear','object','week','2361309mBzrOk','nullable','Activation\x20name\x20is\x20required','2385gCXrLu','All','weekly','498609STzqOR','day','enum','once','6804OvfaWq','month','Connection\x20name\x20is\x20required','Last','number','asc','array','union','rows','Top-N','optional','5560320odZMru','cols','2gUsTIn','428892YUcYvc','min','monthly','boolean','unknown'];a159_0x2b6e=function(){return _0x200700;};return a159_0x2b6e();}export const ActivationColumnDefSchema=z[a159_0x1b98eb(0xf7)]([z[a159_0x1b98eb(0x10b)](),z['object']({'name':z[a159_0x1b98eb(0x10b)](),'type':z['string']()['optional'](),'visibility':z[a159_0x1b98eb(0xee)]([a159_0x1b98eb(0x10d),a159_0x1b98eb(0x108)])[a159_0x1b98eb(0xfa)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x1b98eb(0x10e)]({'columns':z[a159_0x1b98eb(0xf6)](z['object']({'name':z[a159_0x1b98eb(0x10b)](),'type':z[a159_0x1b98eb(0x10b)]()[a159_0x1b98eb(0xfa)](),'visibility':z[a159_0x1b98eb(0xee)]([a159_0x1b98eb(0x10d),a159_0x1b98eb(0x108)])['optional']()}))['optional'](),'behavior_table':z[a159_0x1b98eb(0x10b)]()[a159_0x1b98eb(0xfa)](),'join_row':z[a159_0x1b98eb(0xf4)]()[a159_0x1b98eb(0x111)]()['optional'](),'join_strategy':z[a159_0x1b98eb(0xee)]([a159_0x1b98eb(0x114),a159_0x1b98eb(0x105),a159_0x1b98eb(0xf3),a159_0x1b98eb(0xf9)])[a159_0x1b98eb(0xfa)](),'formatting':z[a159_0x1b98eb(0xee)]([a159_0x1b98eb(0xf8),a159_0x1b98eb(0xfc)])[a159_0x1b98eb(0xfa)](),'order_by':z[a159_0x1b98eb(0xf6)](z[a159_0x1b98eb(0x10e)]({'key':z[a159_0x1b98eb(0x10b)](),'order':z[a159_0x1b98eb(0xee)]([a159_0x1b98eb(0xf5),a159_0x1b98eb(0x109)])}))[a159_0x1b98eb(0xfa)]()});export const ActivationDefSchema=z['object']({'name':z['string']()[a159_0x1b98eb(0xff)](0x1,a159_0x1b98eb(0x112)),'description':z['string']()['optional'](),'connection':z[a159_0x1b98eb(0x10b)]()['min'](0x1,a159_0x1b98eb(0xf2)),'all_columns':z[a159_0x1b98eb(0x101)]()[a159_0x1b98eb(0xfa)](),'columns':z[a159_0x1b98eb(0xf6)](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a159_0x1b98eb(0xfa)](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a159_0x1b98eb(0x104)](z['string'](),z[a159_0x1b98eb(0x102)]())['optional'](),'activation_template_id':z[a159_0x1b98eb(0x10b)]()[a159_0x1b98eb(0x111)]()[a159_0x1b98eb(0xfa)](),'behavior':ActivationBehaviorDefSchema[a159_0x1b98eb(0x111)]()['optional'](),'run_after_journey_refresh':z[a159_0x1b98eb(0x101)]()['optional']()});
@@ -1 +1 @@
1
- (function(_0x3a7c8d,_0x2f67c3){var _0xe76b2=a160_0x32ce,_0x5df895=_0x3a7c8d();while(!![]){try{var _0x65af30=parseInt(_0xe76b2(0x120))/0x1+parseInt(_0xe76b2(0x11d))/0x2+-parseInt(_0xe76b2(0x11e))/0x3+parseInt(_0xe76b2(0x121))/0x4*(parseInt(_0xe76b2(0x124))/0x5)+parseInt(_0xe76b2(0x122))/0x6+parseInt(_0xe76b2(0x123))/0x7+-parseInt(_0xe76b2(0x125))/0x8*(parseInt(_0xe76b2(0x11f))/0x9);if(_0x65af30===_0x2f67c3)break;else _0x5df895['push'](_0x5df895['shift']());}catch(_0xd90227){_0x5df895['push'](_0x5df895['shift']());}}}(a160_0x5bcc,0x383ad));function a160_0x32ce(_0x1bce68,_0x316c36){_0x1bce68=_0x1bce68-0x11d;var _0x5bcc58=a160_0x5bcc();var _0x32ced4=_0x5bcc58[_0x1bce68];return _0x32ced4;}function a160_0x5bcc(){var _0x1ae097=['1254048hmtOGU','140998nomGHD','85263fwmqxA','36FxHBlw','318881jUzpIP','8GdZbQE','1630098ojjOrA','1130437vIwiLp','158020YkvWzP'];a160_0x5bcc=function(){return _0x1ae097;};return a160_0x5bcc();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ (function(_0x2c0ef0,_0x4821d5){var _0x278e7f=a160_0x39a4,_0x1ab63a=_0x2c0ef0();while(!![]){try{var _0x4edbf8=parseInt(_0x278e7f(0x116))/0x1+-parseInt(_0x278e7f(0x114))/0x2+-parseInt(_0x278e7f(0x112))/0x3*(parseInt(_0x278e7f(0x119))/0x4)+-parseInt(_0x278e7f(0x111))/0x5*(-parseInt(_0x278e7f(0x115))/0x6)+parseInt(_0x278e7f(0x118))/0x7+-parseInt(_0x278e7f(0x113))/0x8+parseInt(_0x278e7f(0x117))/0x9;if(_0x4edbf8===_0x4821d5)break;else _0x1ab63a['push'](_0x1ab63a['shift']());}catch(_0x4e16e5){_0x1ab63a['push'](_0x1ab63a['shift']());}}}(a160_0x55b1,0x5599f));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a160_0x39a4(_0x4fe504,_0x4ac57e){_0x4fe504=_0x4fe504-0x111;var _0x55b140=a160_0x55b1();var _0x39a441=_0x55b140[_0x4fe504];return _0x39a441;}function a160_0x55b1(){var _0x108541=['1970cMgZTZ','15InRvPP','2694776rxLLJb','1293140rKEbVH','3258ednUYH','262284xHjvgZ','3854304enthet','3320191xrWELJ','35804mOZsXT'];a160_0x55b1=function(){return _0x108541;};return a160_0x55b1();}
@@ -1 +1 @@
1
- const a161_0x2c52c1=a161_0x5384;(function(_0x12beb1,_0x104f4c){const _0x111cc6=a161_0x5384,_0x2b9193=_0x12beb1();while(!![]){try{const _0x2757f9=-parseInt(_0x111cc6(0x146))/0x1+-parseInt(_0x111cc6(0x156))/0x2+parseInt(_0x111cc6(0x155))/0x3+-parseInt(_0x111cc6(0x150))/0x4+parseInt(_0x111cc6(0x167))/0x5*(parseInt(_0x111cc6(0x143))/0x6)+parseInt(_0x111cc6(0x14f))/0x7*(-parseInt(_0x111cc6(0x168))/0x8)+-parseInt(_0x111cc6(0x16b))/0x9*(-parseInt(_0x111cc6(0x152))/0xa);if(_0x2757f9===_0x104f4c)break;else _0x2b9193['push'](_0x2b9193['shift']());}catch(_0xafc99f){_0x2b9193['push'](_0x2b9193['shift']());}}}(a161_0x4544,0x4a79a));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';function a161_0x5384(_0x5d816b,_0x19a1c8){_0x5d816b=_0x5d816b-0x143;const _0x454421=a161_0x4544();let _0x538490=_0x454421[_0x5d816b];return _0x538490;}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x2c52c1(0x158)]([a161_0x2c52c1(0x153),'simulation',a161_0x2c52c1(0x14a)]);export const ReentryModeTypeSchema=z[a161_0x2c52c1(0x158)](['no_reentry',a161_0x2c52c1(0x147),a161_0x2c52c1(0x165)]);export const WaitUnitTypeSchema=z[a161_0x2c52c1(0x158)](['day',a161_0x2c52c1(0x15b)]);export const StepTypeValueSchema=z[a161_0x2c52c1(0x158)](['wait','activation','decision_point',a161_0x2c52c1(0x15c),a161_0x2c52c1(0x14c),a161_0x2c52c1(0x15f),'end']);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x2c52c1(0x15e)]()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x2c52c1(0x14b)]({'journey':z['string'](),'stage':z[a161_0x2c52c1(0x15e)](),'bundle_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)]()});export const CriteriaDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'description':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'segment':z[a161_0x2c52c1(0x15e)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)]()}),WaitConditionDefSchema=z[a161_0x2c52c1(0x14b)]({'segment':z[a161_0x2c52c1(0x15e)](),'next':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x2c52c1(0x160)]()}),WaitStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'duration':z[a161_0x2c52c1(0x162)]()[a161_0x2c52c1(0x160)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z['string']()[a161_0x2c52c1(0x160)](),'condition':WaitConditionDefSchema[a161_0x2c52c1(0x160)](),'days_of_week':z[a161_0x2c52c1(0x15d)](z[a161_0x2c52c1(0x15e)]())[a161_0x2c52c1(0x160)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'next':z[a161_0x2c52c1(0x15e)]()['optional']()},WaitStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x157)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'activation':z[a161_0x2c52c1(0x15e)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x148)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'segment':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'segment_id':z['string']()[a161_0x2c52c1(0x160)](),'excluded':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'next':z['string']()[a161_0x2c52c1(0x160)]()}),DecisionPointStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'branches':z[a161_0x2c52c1(0x15d)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x14d)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x2c52c1(0x14b)]({'id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'name':z[a161_0x2c52c1(0x15e)](),'percentage':z[a161_0x2c52c1(0x162)](),'next':z['string']()[a161_0x2c52c1(0x160)]()}),AbTestStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'variants':z[a161_0x2c52c1(0x15d)](AbTestVariantDefSchema),'unique_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'customized_split':z[a161_0x2c52c1(0x144)]()['optional']()}),AbTestStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x15c)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x14c))}),JumpStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z['literal']('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x159))})[a161_0x2c52c1(0x145)]();export const StepDefSchema=z[a161_0x2c52c1(0x166)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'description':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'id':z['string']()[a161_0x2c52c1(0x160)](),'entry_criteria':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'exit_criteria':z[a161_0x2c52c1(0x15d)](CriteriaDefSchema)[a161_0x2c52c1(0x160)](),'milestone':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'root_step':z['string']()[a161_0x2c52c1(0x160)](),'steps':z[a161_0x2c52c1(0x15d)](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z[a161_0x2c52c1(0x14b)]({'name':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version':z['string']()[a161_0x2c52c1(0x160)](),'state':JourneyStateTypeSchema[a161_0x2c52c1(0x160)](),'latest':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'stages':z[a161_0x2c52c1(0x15d)](StageDefSchema),'id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version_number':z[a161_0x2c52c1(0x162)]()[a161_0x2c52c1(0x160)](),'goal':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'reentry':ReentryModeTypeSchema[a161_0x2c52c1(0x160)]()});export const JourneyDefSchema=z['lazy'](()=>z['object']({'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x15a)),'name':z[a161_0x2c52c1(0x15e)]()['min'](0x1,a161_0x2c52c1(0x161)),'description':z[a161_0x2c52c1(0x15e)]()['optional'](),'bundle_id':z['string']()['optional'](),'bundle_name':z['string']()[a161_0x2c52c1(0x160)](),'folder_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'reentry':ReentryModeTypeSchema[a161_0x2c52c1(0x160)](),'allow_reentry':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'goal':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'id':z['string']()['optional'](),'version':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version_number':z[a161_0x2c52c1(0x162)]()['optional'](),'stages':z[a161_0x2c52c1(0x15d)](StageDefSchema)[a161_0x2c52c1(0x160)](),'versions':z['array'](JourneyEntryDefSchema)[a161_0x2c52c1(0x160)](),'journeys':z['array'](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x2c52c1(0x169)](z['string'](),EmbeddedSegmentDefSchema)[a161_0x2c52c1(0x160)](),'activations':z[a161_0x2c52c1(0x169)](z[a161_0x2c52c1(0x15e)](),ActivationDefSchema)['optional']()})[a161_0x2c52c1(0x151)](_0x1eeaed=>{const _0x516b0=a161_0x2c52c1,_0x2ab6b8=[_0x1eeaed[_0x516b0(0x14e)],_0x1eeaed['stages'],_0x1eeaed[_0x516b0(0x16a)]][_0x516b0(0x149)](_0x205a9e=>Array[_0x516b0(0x164)](_0x205a9e)&&_0x205a9e[_0x516b0(0x154)]>0x0)['length'];return _0x2ab6b8===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];function a161_0x4544(){const _0x543c9f=['passthrough','517106UKNvsV','reentry_unless_goal_achieved','activation','filter','launched','object','merge','decision_point','journeys','4047799gAaODU','1878016bZAvvZ','refine','50itMivI','draft','length','25854GTpoug','13370ZceTlP','wait','enum','end','journey','week','ab_test','array','string','jump','optional','Journey\x20name\x20is\x20required','number','literal','isArray','reentry_always','discriminatedUnion','55dhvvQa','8UqSTJy','record','versions','3359322jFquZA','924RbaIwH','boolean'];a161_0x4544=function(){return _0x543c9f;};return a161_0x4544();}void _syncCheck1,void _syncCheck2;
1
+ const a161_0x486589=a161_0x5881;(function(_0x1a1fa6,_0x4bf50c){const _0x3dd3bc=a161_0x5881,_0xa568a5=_0x1a1fa6();while(!![]){try{const _0x2ca977=parseInt(_0x3dd3bc(0x110))/0x1+parseInt(_0x3dd3bc(0xfc))/0x2*(parseInt(_0x3dd3bc(0x11d))/0x3)+-parseInt(_0x3dd3bc(0x10e))/0x4*(-parseInt(_0x3dd3bc(0x102))/0x5)+parseInt(_0x3dd3bc(0x111))/0x6*(parseInt(_0x3dd3bc(0x10c))/0x7)+parseInt(_0x3dd3bc(0x11e))/0x8*(-parseInt(_0x3dd3bc(0x11f))/0x9)+parseInt(_0x3dd3bc(0x10a))/0xa+-parseInt(_0x3dd3bc(0x114))/0xb;if(_0x2ca977===_0x4bf50c)break;else _0xa568a5['push'](_0xa568a5['shift']());}catch(_0x4b74b8){_0xa568a5['push'](_0xa568a5['shift']());}}}(a161_0x28d2,0xca001));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';function a161_0x28d2(){const _0x5a7318=['min','draft','decision_point','7968985Qrsbuo','launched','boolean','journey','stages','passthrough','enum','literal','7473430oXAIpy','reentry_unless_goal_achieved','14eDPrkD','lazy','4PlJeFY','number','177067pbVqfj','2851746gACwIM','versions','journeys','26699409okrJax','Journey\x20name\x20is\x20required','object','wait','string','reentry_always','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','length','no_reentry','39gGQTYa','2044136oOesvs','9MAZMBx','day','jump','end','record','week','optional','array','6360xniOJc','ab_test','discriminatedUnion'];a161_0x28d2=function(){return _0x5a7318;};return a161_0x28d2();}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x486589(0x108)]([a161_0x486589(0x100),'simulation',a161_0x486589(0x103)]);export const ReentryModeTypeSchema=z[a161_0x486589(0x108)]([a161_0x486589(0x11c),a161_0x486589(0x10b),a161_0x486589(0x119)]);export const WaitUnitTypeSchema=z[a161_0x486589(0x108)]([a161_0x486589(0x120),a161_0x486589(0x124)]);export const StepTypeValueSchema=z[a161_0x486589(0x108)]([a161_0x486589(0x117),'activation',a161_0x486589(0x101),'ab_test','merge',a161_0x486589(0x121),a161_0x486589(0x122)]);export const EmbeddedSegmentDefSchema=z[a161_0x486589(0x116)]({'description':z[a161_0x486589(0x118)]()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a161_0x486589(0x118)](),'stage':z[a161_0x486589(0x118)](),'bundle_id':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)]()});export const CriteriaDefSchema=z[a161_0x486589(0x116)]({'name':z[a161_0x486589(0x118)](),'description':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'segment':z[a161_0x486589(0x118)](),'target':JumpTargetDefSchema[a161_0x486589(0xfa)]()});function a161_0x5881(_0x262118,_0xf079f8){_0x262118=_0x262118-0xfa;const _0x28d24f=a161_0x28d2();let _0x5881ee=_0x28d24f[_0x262118];return _0x5881ee;}const WaitConditionTimeoutDefSchema=z[a161_0x486589(0x116)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)]()}),WaitConditionDefSchema=z[a161_0x486589(0x116)]({'segment':z[a161_0x486589(0x118)](),'next':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z['object']({'duration':z[a161_0x486589(0x10f)]()[a161_0x486589(0xfa)](),'unit':WaitUnitTypeSchema[a161_0x486589(0xfa)](),'wait_until':z[a161_0x486589(0x118)]()['optional'](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z['array'](z['string']())[a161_0x486589(0xfa)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'next':z['string']()[a161_0x486589(0xfa)]()},WaitStepDefSchema=z[a161_0x486589(0x116)]({...StepBaseFields,'type':z[a161_0x486589(0x109)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x486589(0x116)]({'activation':z['string']()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x486589(0x109)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a161_0x486589(0x118)](),'segment':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'segment_id':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'excluded':z[a161_0x486589(0x104)]()['optional'](),'next':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)]()}),DecisionPointStepParamsDefSchema=z[a161_0x486589(0x116)]({'branches':z[a161_0x486589(0xfb)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x486589(0x109)](a161_0x486589(0x101)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x486589(0x116)]({'id':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'name':z[a161_0x486589(0x118)](),'percentage':z[a161_0x486589(0x10f)](),'next':z['string']()['optional']()}),AbTestStepParamsDefSchema=z[a161_0x486589(0x116)]({'variants':z[a161_0x486589(0xfb)](AbTestVariantDefSchema),'unique_id':z['string']()[a161_0x486589(0xfa)](),'customized_split':z[a161_0x486589(0x104)]()[a161_0x486589(0xfa)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x486589(0x109)](a161_0x486589(0xfd)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x486589(0x116)]({...StepBaseFields,'type':z[a161_0x486589(0x109)]('merge')}),JumpStepParamsDefSchema=z[a161_0x486589(0x116)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x486589(0x116)]({...StepBaseFields,'type':z[a161_0x486589(0x109)](a161_0x486589(0x121)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x486589(0x109)]('end')})[a161_0x486589(0x107)]();export const StepDefSchema=z[a161_0x486589(0xfe)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x486589(0x116)]({'name':z['string'](),'description':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'id':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a161_0x486589(0xfb)](CriteriaDefSchema)[a161_0x486589(0xfa)](),'milestone':CriteriaDefSchema[a161_0x486589(0xfa)](),'root_step':z['string']()[a161_0x486589(0xfa)](),'steps':z[a161_0x486589(0xfb)](StepDefSchema)[a161_0x486589(0xfa)]()});export const JourneyEntryDefSchema=z[a161_0x486589(0x116)]({'name':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'version':z['string']()['optional'](),'state':JourneyStateTypeSchema[a161_0x486589(0xfa)](),'latest':z['boolean']()[a161_0x486589(0xfa)](),'stages':z[a161_0x486589(0xfb)](StageDefSchema),'id':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'version_number':z[a161_0x486589(0x10f)]()[a161_0x486589(0xfa)](),'goal':CriteriaDefSchema[a161_0x486589(0xfa)](),'reentry':ReentryModeTypeSchema[a161_0x486589(0xfa)]()});export const JourneyDefSchema=z[a161_0x486589(0x10d)](()=>z['object']({'type':z[a161_0x486589(0x109)](a161_0x486589(0x105)),'name':z[a161_0x486589(0x118)]()[a161_0x486589(0xff)](0x1,a161_0x486589(0x115)),'description':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'bundle_id':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'bundle_name':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'folder_id':z['string']()[a161_0x486589(0xfa)](),'reentry':ReentryModeTypeSchema[a161_0x486589(0xfa)](),'allow_reentry':z[a161_0x486589(0x104)]()[a161_0x486589(0xfa)](),'goal':CriteriaDefSchema[a161_0x486589(0xfa)](),'id':z['string']()[a161_0x486589(0xfa)](),'version':z[a161_0x486589(0x118)]()[a161_0x486589(0xfa)](),'version_number':z[a161_0x486589(0x10f)]()['optional'](),'stages':z[a161_0x486589(0xfb)](StageDefSchema)[a161_0x486589(0xfa)](),'versions':z[a161_0x486589(0xfb)](JourneyEntryDefSchema)[a161_0x486589(0xfa)](),'journeys':z[a161_0x486589(0xfb)](JourneyEntryDefSchema)[a161_0x486589(0xfa)](),'segments':z[a161_0x486589(0x123)](z[a161_0x486589(0x118)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a161_0x486589(0x123)](z[a161_0x486589(0x118)](),ActivationDefSchema)['optional']()})['refine'](_0x5af98c=>{const _0xbc52e=a161_0x486589,_0x3d5075=[_0x5af98c[_0xbc52e(0x113)],_0x5af98c[_0xbc52e(0x106)],_0x5af98c[_0xbc52e(0x112)]]['filter'](_0x3efbde=>Array['isArray'](_0x3efbde)&&_0x3efbde[_0xbc52e(0x11b)]>0x0)[_0xbc52e(0x11b)];return _0x3d5075===0x1;},{'message':a161_0x486589(0x11a)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x3c4560,_0x25697c){var _0x23a9d4=a163_0xbba1,_0x1bc436=_0x3c4560();while(!![]){try{var _0x1d4363=parseInt(_0x23a9d4(0x80))/0x1+parseInt(_0x23a9d4(0x7f))/0x2+parseInt(_0x23a9d4(0x82))/0x3*(-parseInt(_0x23a9d4(0x81))/0x4)+-parseInt(_0x23a9d4(0x84))/0x5*(parseInt(_0x23a9d4(0x85))/0x6)+-parseInt(_0x23a9d4(0x7e))/0x7+-parseInt(_0x23a9d4(0x83))/0x8+parseInt(_0x23a9d4(0x86))/0x9*(parseInt(_0x23a9d4(0x7d))/0xa);if(_0x1d4363===_0x25697c)break;else _0x1bc436['push'](_0x1bc436['shift']());}catch(_0x3b1bc7){_0x1bc436['push'](_0x1bc436['shift']());}}}(a163_0x5f57,0xbbe5b));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0xbba1(_0x492e70,_0x5c8b2c){_0x492e70=_0x492e70-0x7d;var _0x5f5796=a163_0x5f57();var _0xbba1b0=_0x5f5796[_0x492e70];return _0xbba1b0;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x5f57(){var _0x589044=['1885281GqsFow','2630480FpODeu','3370195jgUoBi','6UzPPNL','7042806NrTOQQ','20mjkKgR','47922HjLDfg','460420LeiPPf','1240898gjUout','8casCIn'];a163_0x5f57=function(){return _0x589044;};return a163_0x5f57();}
1
+ (function(_0x297377,_0x533e9e){var _0x44c9b0=a163_0x232e,_0x4c8761=_0x297377();while(!![]){try{var _0x5a0cf9=parseInt(_0x44c9b0(0x10a))/0x1+parseInt(_0x44c9b0(0x112))/0x2*(parseInt(_0x44c9b0(0x109))/0x3)+-parseInt(_0x44c9b0(0x10c))/0x4*(-parseInt(_0x44c9b0(0x110))/0x5)+parseInt(_0x44c9b0(0x10f))/0x6+-parseInt(_0x44c9b0(0x10b))/0x7+-parseInt(_0x44c9b0(0x111))/0x8*(-parseInt(_0x44c9b0(0x108))/0x9)+parseInt(_0x44c9b0(0x10e))/0xa*(-parseInt(_0x44c9b0(0x10d))/0xb);if(_0x5a0cf9===_0x533e9e)break;else _0x4c8761['push'](_0x4c8761['shift']());}catch(_0x45f127){_0x4c8761['push'](_0x4c8761['shift']());}}}(a163_0x45e7,0xcbd29));function a163_0x232e(_0x3ca752,_0x15d002){_0x3ca752=_0x3ca752-0x108;var _0x45e763=a163_0x45e7();var _0x232ec2=_0x45e763[_0x3ca752];return _0x232ec2;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x45e7(){var _0x5edd85=['37485XWuTvO','278163KdJMKT','974327aVWMsN','10522974TcJcKV','470908uedUdG','11zTnfGx','21057620twJZCn','9697278tPObSb','10UqpqkS','80vndWaB','34FYpeCB'];a163_0x45e7=function(){return _0x5edd85;};return a163_0x45e7();}
@@ -1 +1 @@
1
- const a164_0x2505bf=a164_0x3186;(function(_0x101f2f,_0x27d823){const _0x30bf9e=a164_0x3186,_0xdde309=_0x101f2f();while(!![]){try{const _0x2cc775=parseInt(_0x30bf9e(0x141))/0x1+parseInt(_0x30bf9e(0x14d))/0x2+-parseInt(_0x30bf9e(0x145))/0x3+-parseInt(_0x30bf9e(0x133))/0x4+-parseInt(_0x30bf9e(0x12b))/0x5+-parseInt(_0x30bf9e(0x157))/0x6+-parseInt(_0x30bf9e(0x178))/0x7*(-parseInt(_0x30bf9e(0x16c))/0x8);if(_0x2cc775===_0x27d823)break;else _0xdde309['push'](_0xdde309['shift']());}catch(_0x385a9e){_0xdde309['push'](_0xdde309['shift']());}}}(a164_0x5747,0x2916f));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x160),a164_0x2505bf(0x175),a164_0x2505bf(0x13a),'GreaterEqual',a164_0x2505bf(0x15c),'In',a164_0x2505bf(0x161),'Regexp',a164_0x2505bf(0x142),a164_0x2505bf(0x143),a164_0x2505bf(0x14b),a164_0x2505bf(0x16f),a164_0x2505bf(0x137),a164_0x2505bf(0x15b),a164_0x2505bf(0x12c)]);export const TimeUnitSchema=z['enum'](['second',a164_0x2505bf(0x15f),a164_0x2505bf(0x15e),a164_0x2505bf(0x136),a164_0x2505bf(0x152),'month',a164_0x2505bf(0x172)]);export const AggregationTypeSchema=z['enum']([a164_0x2505bf(0x14a),a164_0x2505bf(0x153),a164_0x2505bf(0x162),a164_0x2505bf(0x177),a164_0x2505bf(0x164),a164_0x2505bf(0x134),'First',a164_0x2505bf(0x147)]);const TemporalValueSchema=z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x14c)]({'timestamp':z[a164_0x2505bf(0x14e)]()}),z[a164_0x2505bf(0x14c)]({'last':z[a164_0x2505bf(0x12e)]([z['number'](),z[a164_0x2505bf(0x174)](z[a164_0x2505bf(0x14e)](),z[a164_0x2505bf(0x170)]())]),'unit':z[a164_0x2505bf(0x14e)]()})]),OperatorValueSchema=z[a164_0x2505bf(0x12e)]([z['string'](),z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x158)](),TemporalValueSchema,z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x14e)](),z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x158)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x2505bf(0x160),a164_0x2505bf(0x175),a164_0x2505bf(0x135),'Less',a164_0x2505bf(0x15c),'In',a164_0x2505bf(0x16f),a164_0x2505bf(0x137),a164_0x2505bf(0x15b),a164_0x2505bf(0x13c),'TimeWithinPast',a164_0x2505bf(0x14b)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x2505bf(0x143),a164_0x2505bf(0x14b)]);export const OperatorDefSchema=z[a164_0x2505bf(0x14c)]({'type':OperatorTypeSchema,'not':z[a164_0x2505bf(0x158)]()['optional'](),'value':OperatorValueSchema[a164_0x2505bf(0x131)](),'min':z['union']([z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x14e)](),TemporalValueSchema])[a164_0x2505bf(0x131)](),'max':z['union']([z['number'](),z[a164_0x2505bf(0x14e)](),TemporalValueSchema])[a164_0x2505bf(0x131)](),'unit':TimeUnitSchema[a164_0x2505bf(0x131)](),'duration':z[a164_0x2505bf(0x14c)]({'day':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'week':z[a164_0x2505bf(0x170)]()['optional'](),'month':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'year':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'hour':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'minute':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'second':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)]()})[a164_0x2505bf(0x131)](),'from':z[a164_0x2505bf(0x14c)]({'last':z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x14e)]()]),'unit':TimeUnitSchema})[a164_0x2505bf(0x131)](),'reverse':z[a164_0x2505bf(0x158)]()[a164_0x2505bf(0x131)]()})[a164_0x2505bf(0x12f)]((_0x5b83ce,_0x17d51f)=>{const _0x5ba2e9=a164_0x2505bf;OPERATORS_REQUIRING_VALUE[_0x5ba2e9(0x13d)](_0x5b83ce['type'])&&(_0x5b83ce[_0x5ba2e9(0x15d)]===undefined||_0x5b83ce[_0x5ba2e9(0x15d)]===null)&&_0x17d51f['addIssue']({'code':'custom','message':_0x5ba2e9(0x14f)+_0x5b83ce[_0x5ba2e9(0x150)]+_0x5ba2e9(0x155),'path':[_0x5ba2e9(0x15d)]}),_0x5b83ce[_0x5ba2e9(0x150)]===_0x5ba2e9(0x161)&&_0x5b83ce['min']===undefined&&_0x5b83ce[_0x5ba2e9(0x165)]===undefined&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':'custom','message':_0x5ba2e9(0x16b),'params':{'validationCode':_0x5ba2e9(0x16e)}}),OPERATORS_REQUIRING_UNIT[_0x5ba2e9(0x13d)](_0x5b83ce['type'])&&_0x5b83ce[_0x5ba2e9(0x15d)]!==undefined&&!_0x5b83ce['unit']&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':'custom','message':_0x5ba2e9(0x14f)+_0x5b83ce[_0x5ba2e9(0x150)]+_0x5ba2e9(0x166),'path':[_0x5ba2e9(0x159)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x5b83ce[_0x5ba2e9(0x150)]===_0x5ba2e9(0x12c)&&(!_0x5b83ce['duration']&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':_0x5ba2e9(0x151),'message':_0x5ba2e9(0x13e),'path':['duration']}),!_0x5b83ce[_0x5ba2e9(0x132)]&&_0x17d51f['addIssue']({'code':_0x5ba2e9(0x151),'message':_0x5ba2e9(0x12d),'path':[_0x5ba2e9(0x132)]}));});export const ArrayMatchingSchema=z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x144)),z[a164_0x2505bf(0x13f)]('all'),z[a164_0x2505bf(0x14c)]({'atLeast':z['number']()}),z[a164_0x2505bf(0x14c)]({'atMost':z['number']()}),z['object']({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x2505bf(0x168)]('type',[z['object']({'type':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x153),a164_0x2505bf(0x177),a164_0x2505bf(0x164),a164_0x2505bf(0x162)]),'column':z[a164_0x2505bf(0x14e)](),'groupingColumns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()}),z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x14a)),'groupingColumns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()}),z['object']({'type':z['literal'](a164_0x2505bf(0x134)),'columns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())}),z[a164_0x2505bf(0x14c)]({'type':z['enum']([a164_0x2505bf(0x130),a164_0x2505bf(0x147)]),'column':z[a164_0x2505bf(0x14e)](),'orderColumn':z[a164_0x2505bf(0x14e)](),'groupingColumns':z['array'](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()})]);export const TimeWindowDefSchema=z[a164_0x2505bf(0x14c)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x2505bf(0x143),a164_0x2505bf(0x14b),a164_0x2505bf(0x12c)]);export const FilterColumnConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x12a)),'column':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})['superRefine']((_0x4e1bf9,_0x31a452)=>{const _0x401a28=a164_0x2505bf,_0x7aa338=_0x4e1bf9[_0x401a28(0x171)][_0x401a28(0x150)];_0x4e1bf9['column']==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x7aa338)&&_0x31a452[_0x401a28(0x16d)]({'code':_0x401a28(0x151),'message':_0x401a28(0x176)+_0x7aa338+'\x27)','path':[_0x401a28(0x171),_0x401a28(0x150)]}):TIMESTAMP_OPERATORS[_0x401a28(0x13d)](_0x7aa338)&&_0x31a452[_0x401a28(0x16d)]({'code':_0x401a28(0x151),'message':_0x401a28(0x14f)+_0x7aa338+_0x401a28(0x169),'path':[_0x401a28(0x171),_0x401a28(0x150)]});});export const FilterRuleDefSchema=z['object']({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x13b)),'conditions':z['array'](FilterColumnConditionDefSchema)});function a164_0x3186(_0x498110,_0x548456){_0x498110=_0x498110-0x12a;const _0x57477a=a164_0x5747();let _0x31861b=_0x57477a[_0x498110];return _0x31861b;}export const ValueConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x14c)]({'type':z['literal'](a164_0x2505bf(0x148)),'attribute':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2505bf(0x131)](),'exclude':z[a164_0x2505bf(0x158)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'filter':FilterRuleDefSchema[a164_0x2505bf(0x131)](),'limit':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)]()}));export const BehaviorConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x146)),'attribute':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2505bf(0x131)](),'exclude':z['boolean']()[a164_0x2505bf(0x131)](),'aggregation':AggregationDefSchema[a164_0x2505bf(0x131)](),'source':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'filter':FilterRuleDefSchema[a164_0x2505bf(0x131)](),'timeWindow':TimeWindowDefSchema[a164_0x2505bf(0x131)](),'limit':z['number']()[a164_0x2505bf(0x131)]()}));export const ColumnConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x12a)),'column':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a164_0x2505bf(0x13b),'Or']),'conditions':z[a164_0x2505bf(0x156)](ConditionDefSchema),'description':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)]()}));export const SegmentRefConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x15a),a164_0x2505bf(0x167)]),'segment':z['string']()[a164_0x2505bf(0x154)](0x1,a164_0x2505bf(0x179))});export const ConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x12e)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x163)](['And','Or']),'conditions':z[a164_0x2505bf(0x156)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentDefSchema=z['object']({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x138))[a164_0x2505bf(0x131)](),'name':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x154)](0x1,a164_0x2505bf(0x140)),'description':z[a164_0x2505bf(0x14e)]()['optional'](),'folder':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'rule':RuleDefSchema[a164_0x2505bf(0x131)](),'kind':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x149),a164_0x2505bf(0x16a),a164_0x2505bf(0x139)])[a164_0x2505bf(0x131)](),'visible':z['boolean']()[a164_0x2505bf(0x131)](),'activations':z['array'](z['any']())[a164_0x2505bf(0x131)]()});function a164_0x5747(){const _0x2488dd=['Segment\x20name\x20is\x20required','132715DYiaUv','IsNull','TimeWithinPast','any','327426MQYiTy','Behavior','Last','Value','batch','Count','TimeWithinNext','object','410100gwReyT','string','Operator\x20\x27','type','custom','week','Sum','min','\x27\x20requires\x20a\x20value','array','967098mPPnGj','boolean','unit','include','EndWith','LessEqual','value','hour','minute','Equal','Between','Average','enum','Max','max','\x27\x20requires\x20a\x20time\x20unit','exclude','discriminatedUnion','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','realtime','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','916600SAXHnP','addIssue','MISSING_BETWEEN_BOUNDS','Contain','number','operator','year','lazy','record','Greater','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Min','21OdrhfK','Segment\x20reference\x20must\x20not\x20be\x20empty','Column','1121210EswUUH','TimeRange','TimeRange\x20operator\x20requires\x20\x27from\x27','union','superRefine','First','optional','from','74480VRKezD','CountDistinct','GreaterEqual','day','StartWith','segment','funnel_stage','Less','And','Regexp','has','TimeRange\x20operator\x20requires\x20\x27duration\x27','literal'];a164_0x5747=function(){return _0x2488dd;};return a164_0x5747();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x32a8b7=a164_0x4403;(function(_0x2b3d27,_0x34b791){const _0x5d8a5d=a164_0x4403,_0x2c17f7=_0x2b3d27();while(!![]){try{const _0x3883c3=-parseInt(_0x5d8a5d(0xc0))/0x1+-parseInt(_0x5d8a5d(0x9f))/0x2+-parseInt(_0x5d8a5d(0xbf))/0x3+parseInt(_0x5d8a5d(0xa3))/0x4*(parseInt(_0x5d8a5d(0xd7))/0x5)+parseInt(_0x5d8a5d(0xd2))/0x6+-parseInt(_0x5d8a5d(0xa6))/0x7*(-parseInt(_0x5d8a5d(0xca))/0x8)+parseInt(_0x5d8a5d(0x9b))/0x9*(-parseInt(_0x5d8a5d(0x97))/0xa);if(_0x3883c3===_0x34b791)break;else _0x2c17f7['push'](_0x2c17f7['shift']());}catch(_0x50e5a7){_0x2c17f7['push'](_0x2c17f7['shift']());}}}(a164_0x4a14,0xba4d3));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x32a8b7(0xdd)]([a164_0x32a8b7(0xc3),a164_0x32a8b7(0xdc),a164_0x32a8b7(0xa0),a164_0x32a8b7(0xa9),a164_0x32a8b7(0xd8),'In','Between',a164_0x32a8b7(0xba),a164_0x32a8b7(0x92),a164_0x32a8b7(0xbc),a164_0x32a8b7(0xb6),a164_0x32a8b7(0xb7),a164_0x32a8b7(0x93),a164_0x32a8b7(0xb3),a164_0x32a8b7(0xce)]);export const TimeUnitSchema=z[a164_0x32a8b7(0xdd)](['second',a164_0x32a8b7(0xb9),a164_0x32a8b7(0xda),'day','week',a164_0x32a8b7(0x96),a164_0x32a8b7(0xa8)]);export const AggregationTypeSchema=z[a164_0x32a8b7(0xdd)]([a164_0x32a8b7(0xab),'Sum','Average',a164_0x32a8b7(0xae),'Max','CountDistinct',a164_0x32a8b7(0x98),a164_0x32a8b7(0xd3)]);function a164_0x4403(_0x460c57,_0x55588c){_0x460c57=_0x460c57-0x8f;const _0x4a145b=a164_0x4a14();let _0x440325=_0x4a145b[_0x460c57];return _0x440325;}const TemporalValueSchema=z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0xcd)]({'timestamp':z[a164_0x32a8b7(0x95)]()}),z[a164_0x32a8b7(0xcd)]({'last':z['union']([z[a164_0x32a8b7(0xc2)](),z[a164_0x32a8b7(0xb4)](z[a164_0x32a8b7(0x95)](),z[a164_0x32a8b7(0xc2)]())]),'unit':z[a164_0x32a8b7(0x95)]()})]),OperatorValueSchema=z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0x95)](),z['number'](),z[a164_0x32a8b7(0xd6)](),TemporalValueSchema,z[a164_0x32a8b7(0x99)](z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0x95)](),z[a164_0x32a8b7(0xc2)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x32a8b7(0xc3),'Greater',a164_0x32a8b7(0xa9),'Less',a164_0x32a8b7(0xd8),'In',a164_0x32a8b7(0xb7),a164_0x32a8b7(0x93),'EndWith',a164_0x32a8b7(0xba),'TimeWithinPast',a164_0x32a8b7(0xb6)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x32a8b7(0xbc),a164_0x32a8b7(0xb6)]);export const OperatorDefSchema=z[a164_0x32a8b7(0xcd)]({'type':OperatorTypeSchema,'not':z[a164_0x32a8b7(0xd6)]()['optional'](),'value':OperatorValueSchema[a164_0x32a8b7(0xbb)](),'min':z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0xc2)](),z[a164_0x32a8b7(0x95)](),TemporalValueSchema])[a164_0x32a8b7(0xbb)](),'max':z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0xc2)](),z[a164_0x32a8b7(0x95)](),TemporalValueSchema])[a164_0x32a8b7(0xbb)](),'unit':TimeUnitSchema[a164_0x32a8b7(0xbb)](),'duration':z['object']({'day':z['number']()[a164_0x32a8b7(0xbb)](),'week':z['number']()['optional'](),'month':z['number']()['optional'](),'year':z[a164_0x32a8b7(0xc2)]()[a164_0x32a8b7(0xbb)](),'hour':z['number']()[a164_0x32a8b7(0xbb)](),'minute':z[a164_0x32a8b7(0xc2)]()[a164_0x32a8b7(0xbb)](),'second':z[a164_0x32a8b7(0xc2)]()['optional']()})[a164_0x32a8b7(0xbb)](),'from':z[a164_0x32a8b7(0xcd)]({'last':z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0xc2)](),z['string']()]),'unit':TimeUnitSchema})[a164_0x32a8b7(0xbb)](),'reverse':z[a164_0x32a8b7(0xd6)]()['optional']()})[a164_0x32a8b7(0xcc)]((_0x4b2452,_0x59bb08)=>{const _0xd052df=a164_0x32a8b7;OPERATORS_REQUIRING_VALUE['has'](_0x4b2452[_0xd052df(0xa4)])&&(_0x4b2452['value']===undefined||_0x4b2452[_0xd052df(0xc5)]===null)&&_0x59bb08['addIssue']({'code':_0xd052df(0xc6),'message':_0xd052df(0xd9)+_0x4b2452[_0xd052df(0xa4)]+_0xd052df(0xbe),'path':[_0xd052df(0xc5)]}),_0x4b2452[_0xd052df(0xa4)]===_0xd052df(0xac)&&_0x4b2452[_0xd052df(0xd4)]===undefined&&_0x4b2452[_0xd052df(0xc1)]===undefined&&_0x59bb08[_0xd052df(0x91)]({'code':'custom','message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0xd052df(0xc4)}}),OPERATORS_REQUIRING_UNIT[_0xd052df(0xb2)](_0x4b2452[_0xd052df(0xa4)])&&_0x4b2452[_0xd052df(0xc5)]!==undefined&&!_0x4b2452[_0xd052df(0xa1)]&&_0x59bb08[_0xd052df(0x91)]({'code':_0xd052df(0xc6),'message':'Operator\x20\x27'+_0x4b2452[_0xd052df(0xa4)]+_0xd052df(0xb0),'path':['unit'],'params':{'validationCode':_0xd052df(0x8f)}}),_0x4b2452[_0xd052df(0xa4)]===_0xd052df(0xce)&&(!_0x4b2452[_0xd052df(0xb1)]&&_0x59bb08[_0xd052df(0x91)]({'code':_0xd052df(0xc6),'message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0xd052df(0xb1)]}),!_0x4b2452[_0xd052df(0xaf)]&&_0x59bb08[_0xd052df(0x91)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':['from']}));});export const ArrayMatchingSchema=z[a164_0x32a8b7(0xa2)]([z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0xdb)),z['literal']('all'),z['object']({'atLeast':z[a164_0x32a8b7(0xc2)]()}),z[a164_0x32a8b7(0xcd)]({'atMost':z[a164_0x32a8b7(0xc2)]()}),z[a164_0x32a8b7(0xcd)]({'exactly':z[a164_0x32a8b7(0xc2)]()})]);export const AggregationDefSchema=z[a164_0x32a8b7(0x9e)](a164_0x32a8b7(0xa4),[z['object']({'type':z[a164_0x32a8b7(0xdd)](['Sum',a164_0x32a8b7(0xae),a164_0x32a8b7(0x9c),a164_0x32a8b7(0x94)]),'column':z[a164_0x32a8b7(0x95)](),'groupingColumns':z['array'](z['string']())[a164_0x32a8b7(0xbb)]()}),z['object']({'type':z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0xab)),'groupingColumns':z[a164_0x32a8b7(0x99)](z[a164_0x32a8b7(0x95)]())[a164_0x32a8b7(0xbb)]()}),z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0xc9)),'columns':z['array'](z[a164_0x32a8b7(0x95)]())}),z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xdd)](['First',a164_0x32a8b7(0xd3)]),'column':z['string'](),'orderColumn':z[a164_0x32a8b7(0x95)](),'groupingColumns':z[a164_0x32a8b7(0x99)](z[a164_0x32a8b7(0x95)]())[a164_0x32a8b7(0xbb)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a164_0x32a8b7(0xc2)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x32a8b7(0xbc),a164_0x32a8b7(0xb6),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z['literal'](a164_0x32a8b7(0x9a)),'column':z[a164_0x32a8b7(0x95)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x32a8b7(0xbb)]()})[a164_0x32a8b7(0xcc)]((_0x1e109c,_0x1c41b2)=>{const _0x4c8a4a=a164_0x32a8b7,_0x46e1aa=_0x1e109c[_0x4c8a4a(0x90)][_0x4c8a4a(0xa4)];_0x1e109c[_0x4c8a4a(0xa7)]===_0x4c8a4a(0xc8)?!TIMESTAMP_OPERATORS['has'](_0x46e1aa)&&_0x1c41b2['addIssue']({'code':'custom','message':_0x4c8a4a(0xd1)+_0x46e1aa+'\x27)','path':[_0x4c8a4a(0x90),_0x4c8a4a(0xa4)]}):TIMESTAMP_OPERATORS[_0x4c8a4a(0xb2)](_0x46e1aa)&&_0x1c41b2['addIssue']({'code':'custom','message':_0x4c8a4a(0xd9)+_0x46e1aa+_0x4c8a4a(0xa5),'path':[_0x4c8a4a(0x90),_0x4c8a4a(0xa4)]});});export const FilterRuleDefSchema=z[a164_0x32a8b7(0xcd)]({'type':z['literal'](a164_0x32a8b7(0xd0)),'conditions':z[a164_0x32a8b7(0x99)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x32a8b7(0x9d)](()=>z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0xb8)),'attribute':z[a164_0x32a8b7(0x95)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x32a8b7(0xbb)](),'exclude':z[a164_0x32a8b7(0xd6)]()[a164_0x32a8b7(0xbb)](),'aggregation':AggregationDefSchema[a164_0x32a8b7(0xbb)](),'source':z[a164_0x32a8b7(0x95)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a164_0x32a8b7(0xc2)]()['optional']()}));export const BehaviorConditionDefSchema=z[a164_0x32a8b7(0x9d)](()=>z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0xde)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x32a8b7(0xd6)]()[a164_0x32a8b7(0xbb)](),'aggregation':AggregationDefSchema[a164_0x32a8b7(0xbb)](),'source':z[a164_0x32a8b7(0x95)]()[a164_0x32a8b7(0xbb)](),'filter':FilterRuleDefSchema[a164_0x32a8b7(0xbb)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a164_0x32a8b7(0xc2)]()[a164_0x32a8b7(0xbb)]()}));export const ColumnConditionDefSchema=z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0x9a)),'column':z[a164_0x32a8b7(0x95)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x32a8b7(0x9d)](()=>z['object']({'type':z[a164_0x32a8b7(0xdd)](['And','Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a164_0x32a8b7(0x95)]()[a164_0x32a8b7(0xbb)]()}));export const SegmentRefConditionDefSchema=z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xdd)]([a164_0x32a8b7(0xbd),a164_0x32a8b7(0xc7)]),'segment':z[a164_0x32a8b7(0x95)]()['min'](0x1,a164_0x32a8b7(0xaa))});export const ConditionDefSchema=z['lazy'](()=>z[a164_0x32a8b7(0xa2)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x32a8b7(0x9d)](()=>z[a164_0x32a8b7(0xcd)]({'type':z[a164_0x32a8b7(0xdd)]([a164_0x32a8b7(0xd0),'Or']),'conditions':z[a164_0x32a8b7(0x99)](ConditionDefSchema),'description':z[a164_0x32a8b7(0x95)]()[a164_0x32a8b7(0xbb)]()}));export const SegmentDefSchema=z['object']({'type':z[a164_0x32a8b7(0xb5)](a164_0x32a8b7(0xcf))[a164_0x32a8b7(0xbb)](),'name':z[a164_0x32a8b7(0x95)]()[a164_0x32a8b7(0xd4)](0x1,'Segment\x20name\x20is\x20required'),'description':z[a164_0x32a8b7(0x95)]()[a164_0x32a8b7(0xbb)](),'folder':z[a164_0x32a8b7(0x95)]()[a164_0x32a8b7(0xbb)](),'rule':RuleDefSchema[a164_0x32a8b7(0xbb)](),'kind':z[a164_0x32a8b7(0xdd)]([a164_0x32a8b7(0xad),a164_0x32a8b7(0xd5),a164_0x32a8b7(0xcb)])['optional'](),'visible':z[a164_0x32a8b7(0xd6)]()['optional'](),'activations':z[a164_0x32a8b7(0x99)](z['any']())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;function a164_0x4a14(){const _0x5d4b81=['LessEqual','Operator\x20\x27','hour','any','Greater','enum','Behavior','MISSING_TIME_UNIT','operator','addIssue','IsNull','StartWith','Average','string','month','60HqSjRZ','First','array','Column','516177SoQSRl','Max','lazy','discriminatedUnion','937368ByFQlY','Less','unit','union','39548msVpik','type','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','24829NIzXjj','column','year','GreaterEqual','Segment\x20reference\x20must\x20not\x20be\x20empty','Count','Between','batch','Min','from','\x27\x20requires\x20a\x20time\x20unit','duration','has','EndWith','record','literal','TimeWithinNext','Contain','Value','minute','Regexp','optional','TimeWithinPast','include','\x27\x20requires\x20a\x20value','1451472YKgzMK','310914phzFXb','max','number','Equal','MISSING_BETWEEN_BOUNDS','value','custom','exclude','timestamp','CountDistinct','1400pnGfUC','funnel_stage','superRefine','object','TimeRange','segment','And','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','7355370UrrkxM','Last','min','realtime','boolean','265JBcOgW'];a164_0x4a14=function(){return _0x5d4b81;};return a164_0x4a14();}
@@ -1 +1 @@
1
- const a165_0x74466c=a165_0x2794;(function(_0x59bbd1,_0x51bb44){const _0xd464e1=a165_0x2794,_0xb6d3a5=_0x59bbd1();while(!![]){try{const _0x531d71=-parseInt(_0xd464e1(0x1c3))/0x1*(-parseInt(_0xd464e1(0x1d4))/0x2)+-parseInt(_0xd464e1(0x1cb))/0x3*(-parseInt(_0xd464e1(0x1d1))/0x4)+parseInt(_0xd464e1(0x1c0))/0x5+parseInt(_0xd464e1(0x1d7))/0x6+-parseInt(_0xd464e1(0x1d3))/0x7*(-parseInt(_0xd464e1(0x1c9))/0x8)+parseInt(_0xd464e1(0x1ce))/0x9+-parseInt(_0xd464e1(0x1d0))/0xa;if(_0x531d71===_0x51bb44)break;else _0xb6d3a5['push'](_0xb6d3a5['shift']());}catch(_0x1d3027){_0xb6d3a5['push'](_0xb6d3a5['shift']());}}}(a165_0x5d87,0x4c495));function a165_0x5d87(){const _0x4c8ecb=['not\x20a\x20','result','1975565jslTgy','message','campaign','227LqQmoI','basename','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','warnings','YAML\x20parse\x20error:\x20','error','1744uzjAtT','template','12GEePvO','campaign_type','skipped','53163icXpTS','toJSON','17614960cFzgjE','606748qIoefx','parseDocument','13447yVGdrM','1222NJHYQN','has','email','3052332UCtYWH','map','type','journey','length','segment','push','object','YAML_PARSE_ERROR','filterType','utf-8'];a165_0x5d87=function(){return _0x4c8ecb;};return a165_0x5d87();}import{readFileSync}from'fs';import*as a165_0x2f0873 from'path';function a165_0x2794(_0x107a79,_0xae753f){_0x107a79=_0x107a79-0x1bb;const _0x5d8726=a165_0x5d87();let _0x2794fa=_0x5d8726[_0x107a79];return _0x2794fa;}import*as a165_0x5eb3eb 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_0x74466c(0x1d6),a165_0x74466c(0x1dd)]);export function isJourneyDef(_0xff1eaa){const _0x5d699f=a165_0x74466c;return typeof _0xff1eaa===_0x5d699f(0x1de)&&_0xff1eaa!==null&&_0x5d699f(0x1d9)in _0xff1eaa&&_0xff1eaa[_0x5d699f(0x1d9)]===_0x5d699f(0x1da);}export function isCampaignDef(_0x4ed6b5){const _0x27e87a=a165_0x74466c;if(typeof _0x4ed6b5!=='object'||_0x4ed6b5===null)return![];const _0xbe6756=_0x4ed6b5,_0x3d4d1f=VALID_CAMPAIGN_TYPES[_0x27e87a(0x1d5)](_0xbe6756[_0x27e87a(0x1cc)]);if(_0xbe6756[_0x27e87a(0x1d9)]===_0x27e87a(0x1c2)&&_0x3d4d1f)return!![];if(_0x3d4d1f&&!_0xbe6756[_0x27e87a(0x1d9)])return!![];return![];}export function isTemplateDef(_0x206991){const _0x292a5e=a165_0x74466c;return typeof _0x206991==='object'&&_0x206991!==null&&_0x292a5e(0x1d9)in _0x206991&&_0x206991[_0x292a5e(0x1d9)]===_0x292a5e(0x1ca);}export function isValidationResult(_0x48b115){const _0x24908b=a165_0x74466c;return!(_0x24908b(0x1cd)in _0x48b115);}export function createParseErrorResult(_0x9d2f5f,_0x55e460,_0x145aab,_0x270bf5,_0x52633f='segment'){const _0x3d2f43=a165_0x74466c;return{'filePath':_0x9d2f5f,'relativePath':_0x55e460,'source':_0x145aab,'result':{'valid':![],'errors':[{'level':_0x3d2f43(0x1c8),'path':'','code':_0x3d2f43(0x1bb),'message':_0x270bf5}],'warnings':[]},'fileType':_0x52633f};}export function validateYamlFile(_0x17fe22,_0x6b8eff,_0x53a905={}){const _0x1ac9d3=a165_0x74466c,_0x50b928=a165_0x2f0873['relative'](_0x6b8eff,_0x17fe22)||a165_0x2f0873[_0x1ac9d3(0x1c4)](_0x17fe22);try{const _0x3c80d6=readFileSync(_0x17fe22,_0x1ac9d3(0x1bd)),_0x48b809=a165_0x5eb3eb[_0x1ac9d3(0x1d2)](_0x3c80d6),_0x25b5f2=_0x48b809[_0x1ac9d3(0x1cf)]();if(!_0x25b5f2)return createParseErrorResult(_0x17fe22,_0x50b928,_0x3c80d6,_0x1ac9d3(0x1c5));let _0x1dd1a3;if(isJourneyDef(_0x25b5f2))_0x1dd1a3=_0x1ac9d3(0x1da);else{if(isCampaignDef(_0x25b5f2))_0x1dd1a3='campaign';else isTemplateDef(_0x25b5f2)?_0x1dd1a3='template':_0x1dd1a3=_0x1ac9d3(0x1dc);}if(_0x53a905[_0x1ac9d3(0x1bc)]&&_0x1dd1a3!==_0x53a905[_0x1ac9d3(0x1bc)])return{'filePath':_0x17fe22,'relativePath':_0x50b928,'skipped':!![],'reason':_0x1ac9d3(0x1be)+_0x53a905[_0x1ac9d3(0x1bc)]};const _0x1056e5={'source':_0x3c80d6,'document':_0x48b809};let _0x173cca;if(_0x1dd1a3===_0x1ac9d3(0x1da))_0x173cca=validateJourneyDef(_0x25b5f2,_0x1056e5);else{if(_0x1dd1a3===_0x1ac9d3(0x1c2))_0x173cca=validateCampaignDef(_0x25b5f2,_0x1056e5);else _0x1dd1a3===_0x1ac9d3(0x1ca)?_0x173cca=validateTemplateDef(_0x25b5f2,_0x1056e5):_0x173cca=validateSegmentDef(_0x25b5f2,_0x1056e5);}return{'filePath':_0x17fe22,'relativePath':_0x50b928,'source':_0x3c80d6,'result':_0x173cca,'fileType':_0x1dd1a3};}catch(_0x5c3d05){const _0x106a3f=_0x5c3d05 instanceof Error?_0x5c3d05[_0x1ac9d3(0x1c1)]:String(_0x5c3d05);return createParseErrorResult(_0x17fe22,_0x50b928,'',_0x1ac9d3(0x1c7)+_0x106a3f);}}export function validateYamlFiles(_0x5449eb,_0x1f8bea,_0x4f2b49={}){const _0x1244b6=a165_0x74466c;return _0x5449eb[_0x1244b6(0x1d8)](_0x58f2d1=>validateYamlFile(_0x58f2d1,_0x1f8bea,_0x4f2b49));}export function calculateSummary(_0x31eebd){const _0x4ca496=a165_0x74466c;let _0x3b3815=0x0,_0x2c6253=0x0,_0x563449=0x0,_0x44a1cf=0x0;for(const _0x15be1c of _0x31eebd){if(!isValidationResult(_0x15be1c)){_0x44a1cf++;continue;}_0x15be1c[_0x4ca496(0x1bf)]['valid']?_0x3b3815++:_0x2c6253++,_0x563449+=_0x15be1c['result'][_0x4ca496(0x1c6)][_0x4ca496(0x1db)];}return{'validCount':_0x3b3815,'invalidCount':_0x2c6253,'warningCount':_0x563449,'skippedCount':_0x44a1cf,'hasErrors':_0x2c6253>0x0};}
1
+ const a165_0x3342f4=a165_0x30ef;(function(_0x1dd854,_0x25f303){const _0x4b3375=a165_0x30ef,_0x19d548=_0x1dd854();while(!![]){try{const _0x1e7c20=parseInt(_0x4b3375(0x88))/0x1*(-parseInt(_0x4b3375(0x7e))/0x2)+parseInt(_0x4b3375(0x78))/0x3*(parseInt(_0x4b3375(0x80))/0x4)+-parseInt(_0x4b3375(0x6e))/0x5+-parseInt(_0x4b3375(0x70))/0x6+parseInt(_0x4b3375(0x73))/0x7+parseInt(_0x4b3375(0x84))/0x8+-parseInt(_0x4b3375(0x7d))/0x9*(parseInt(_0x4b3375(0x71))/0xa);if(_0x1e7c20===_0x25f303)break;else _0x19d548['push'](_0x19d548['shift']());}catch(_0x4cd2c0){_0x19d548['push'](_0x19d548['shift']());}}}(a165_0x3b79,0x4b4d5));function a165_0x30ef(_0x317a9d,_0x4778c3){_0x317a9d=_0x317a9d-0x6a;const _0x3b7958=a165_0x3b79();let _0x30effe=_0x3b7958[_0x317a9d];return _0x30effe;}import{readFileSync}from'fs';import*as a165_0x3f7aca from'path';import*as a165_0x2b4338 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';function a165_0x3b79(){const _0x20a916=['message','filterType','1902933aBIMFH','452skyumr','map','308356ACiAYX','result','segment','not\x20a\x20','4881840VydOVJ','campaign_type','YAML_PARSE_ERROR','toJSON','13wXfPHy','campaign','warnings','length','has','object','1373880aSIRUB','type','1287402ZYWXNI','10xjFwTd','skipped','654983DMoPOz','parseDocument','journey','YAML\x20parse\x20error:\x20','valid','12BDxFAV','email','template'];a165_0x3b79=function(){return _0x20a916;};return a165_0x3b79();}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_0x3342f4(0x79),'push']);export function isJourneyDef(_0x241722){const _0x3fe947=a165_0x3342f4;return typeof _0x241722===_0x3fe947(0x6d)&&_0x241722!==null&&_0x3fe947(0x6f)in _0x241722&&_0x241722[_0x3fe947(0x6f)]==='journey';}export function isCampaignDef(_0x4749f2){const _0x1f8664=a165_0x3342f4;if(typeof _0x4749f2!==_0x1f8664(0x6d)||_0x4749f2===null)return![];const _0x364694=_0x4749f2,_0x4722a8=VALID_CAMPAIGN_TYPES[_0x1f8664(0x6c)](_0x364694[_0x1f8664(0x85)]);if(_0x364694[_0x1f8664(0x6f)]===_0x1f8664(0x89)&&_0x4722a8)return!![];if(_0x4722a8&&!_0x364694['type'])return!![];return![];}export function isTemplateDef(_0x4e5835){const _0x59336b=a165_0x3342f4;return typeof _0x4e5835===_0x59336b(0x6d)&&_0x4e5835!==null&&'type'in _0x4e5835&&_0x4e5835[_0x59336b(0x6f)]===_0x59336b(0x7a);}export function isValidationResult(_0x2c8e1b){const _0x51c8e4=a165_0x3342f4;return!(_0x51c8e4(0x72)in _0x2c8e1b);}export function createParseErrorResult(_0x226f64,_0x32e0d2,_0xe51c3b,_0x2954ad,_0x3dbde2='segment'){const _0x4726da=a165_0x3342f4;return{'filePath':_0x226f64,'relativePath':_0x32e0d2,'source':_0xe51c3b,'result':{'valid':![],'errors':[{'level':'error','path':'','code':_0x4726da(0x86),'message':_0x2954ad}],'warnings':[]},'fileType':_0x3dbde2};}export function validateYamlFile(_0x136a88,_0xd74e61,_0x4e9dd3={}){const _0x15258c=a165_0x3342f4,_0x1ded05=a165_0x3f7aca['relative'](_0xd74e61,_0x136a88)||a165_0x3f7aca['basename'](_0x136a88);try{const _0x58e8f0=readFileSync(_0x136a88,'utf-8'),_0x18073d=a165_0x2b4338[_0x15258c(0x74)](_0x58e8f0),_0x133002=_0x18073d[_0x15258c(0x87)]();if(!_0x133002)return createParseErrorResult(_0x136a88,_0x1ded05,_0x58e8f0,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0x18046f;if(isJourneyDef(_0x133002))_0x18046f=_0x15258c(0x75);else{if(isCampaignDef(_0x133002))_0x18046f=_0x15258c(0x89);else isTemplateDef(_0x133002)?_0x18046f=_0x15258c(0x7a):_0x18046f=_0x15258c(0x82);}if(_0x4e9dd3[_0x15258c(0x7c)]&&_0x18046f!==_0x4e9dd3[_0x15258c(0x7c)])return{'filePath':_0x136a88,'relativePath':_0x1ded05,'skipped':!![],'reason':_0x15258c(0x83)+_0x4e9dd3[_0x15258c(0x7c)]};const _0xe6420b={'source':_0x58e8f0,'document':_0x18073d};let _0x4ee940;if(_0x18046f===_0x15258c(0x75))_0x4ee940=validateJourneyDef(_0x133002,_0xe6420b);else{if(_0x18046f===_0x15258c(0x89))_0x4ee940=validateCampaignDef(_0x133002,_0xe6420b);else _0x18046f===_0x15258c(0x7a)?_0x4ee940=validateTemplateDef(_0x133002,_0xe6420b):_0x4ee940=validateSegmentDef(_0x133002,_0xe6420b);}return{'filePath':_0x136a88,'relativePath':_0x1ded05,'source':_0x58e8f0,'result':_0x4ee940,'fileType':_0x18046f};}catch(_0x19e93b){const _0x49982d=_0x19e93b instanceof Error?_0x19e93b[_0x15258c(0x7b)]:String(_0x19e93b);return createParseErrorResult(_0x136a88,_0x1ded05,'',_0x15258c(0x76)+_0x49982d);}}export function validateYamlFiles(_0xbba8f,_0x17c66d,_0xb52ba3={}){const _0x213149=a165_0x3342f4;return _0xbba8f[_0x213149(0x7f)](_0xf7a01=>validateYamlFile(_0xf7a01,_0x17c66d,_0xb52ba3));}export function calculateSummary(_0x58533b){const _0x4fd945=a165_0x3342f4;let _0x230ccd=0x0,_0x50c046=0x0,_0x5d610d=0x0,_0x3a111f=0x0;for(const _0x4a5efd of _0x58533b){if(!isValidationResult(_0x4a5efd)){_0x3a111f++;continue;}_0x4a5efd[_0x4fd945(0x81)][_0x4fd945(0x77)]?_0x230ccd++:_0x50c046++,_0x5d610d+=_0x4a5efd[_0x4fd945(0x81)][_0x4fd945(0x6a)][_0x4fd945(0x6b)];}return{'validCount':_0x230ccd,'invalidCount':_0x50c046,'warningCount':_0x5d610d,'skippedCount':_0x3a111f,'hasErrors':_0x50c046>0x0};}
@@ -1 +1 @@
1
- (function(_0x54173d,_0x20a655){const _0x2aa72e=a166_0x38a8,_0x21367d=_0x54173d();while(!![]){try{const _0x43e580=-parseInt(_0x2aa72e(0x1f1))/0x1+parseInt(_0x2aa72e(0x209))/0x2*(-parseInt(_0x2aa72e(0x215))/0x3)+parseInt(_0x2aa72e(0x20d))/0x4+parseInt(_0x2aa72e(0x1ef))/0x5+parseInt(_0x2aa72e(0x1fe))/0x6+parseInt(_0x2aa72e(0x20e))/0x7*(parseInt(_0x2aa72e(0x1ee))/0x8)+-parseInt(_0x2aa72e(0x203))/0x9;if(_0x43e580===_0x20a655)break;else _0x21367d['push'](_0x21367d['shift']());}catch(_0x3e77a4){_0x21367d['push'](_0x21367d['shift']());}}}(a166_0x4106,0xd1ee9));import*as a166_0x4abb15 from'yaml';function a166_0x38a8(_0x48c1ee,_0x3c093a){_0x48c1ee=_0x48c1ee-0x1ec;const _0x410672=a166_0x4106();let _0x38a818=_0x410672[_0x48c1ee];return _0x38a818;}import a166_0x335614 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x4cd911,_0x5188c9,_0x4dba60){const _0x25ce49=a166_0x38a8;if(!_0x4cd911||!_0x5188c9)return undefined;try{let _0x557419=_0x4cd911['getIn'](_0x4dba60,!![]),_0x5dac5e=[..._0x4dba60];while((!_0x557419||typeof _0x557419!==_0x25ce49(0x20f)||!(_0x25ce49(0x201)in _0x557419)||!_0x557419['range'])&&_0x5dac5e[_0x25ce49(0x205)]>0x0){_0x5dac5e[_0x25ce49(0x212)](),_0x557419=_0x5dac5e[_0x25ce49(0x205)]>0x0?_0x4cd911['getIn'](_0x5dac5e,!![]):_0x4cd911[_0x25ce49(0x206)];}if(!_0x557419||typeof _0x557419!==_0x25ce49(0x20f)||!(_0x25ce49(0x201)in _0x557419)||!_0x557419[_0x25ce49(0x201)])return undefined;const [_0x34fdfb]=_0x557419['range'];return offsetToLocation(_0x5188c9,_0x34fdfb);}catch{return undefined;}}function a166_0x4106(){const _0x279d5e=['push','4QFqqdr','success','cyan','errors','5093328cPojrW','203JytXSP','object','column','message','pop','match','YAML\x20validation\x20error\x20at\x20\x27','459231KLTkSl','flatMap','location','level','133576IevmzW','513105LOplsm','padStart','541292qFdZkC','invalid_union','Invalid\x20YAML:\x20expected\x20an\x20object','path','yellow','code','data','\x20|\x20','split','error','map','YAML\x20validation\x20error:\x20','red','7748082xmoNxH','line','number','range','dim','12997674yNFDCj','repeat','length','contents','join'];a166_0x4106=function(){return _0x279d5e;};return a166_0x4106();}export function offsetToLocation(_0x4fa688,_0x2e0cbb){let _0x3c7912=0x1,_0x2f5283=0x1;for(let _0x10f808=0x0;_0x10f808<_0x2e0cbb&&_0x10f808<_0x4fa688['length'];_0x10f808++){_0x4fa688[_0x10f808]==='\x0a'?(_0x3c7912++,_0x2f5283=0x1):_0x2f5283++;}return{'line':_0x3c7912,'column':_0x2f5283,'offset':_0x2e0cbb};}export function pathToArray(_0x49d9dc){const _0x360ec7=a166_0x38a8;if(!_0x49d9dc)return[];return _0x49d9dc['split']('.')[_0x360ec7(0x216)](_0x447cfc=>{const _0x38c87f=_0x360ec7,_0xdf02f7=_0x447cfc[_0x38c87f(0x213)](/^(\w+)\[(\d+)\]$/);if(_0xdf02f7)return[_0xdf02f7[0x1],parseInt(_0xdf02f7[0x2],0xa)];return[_0x447cfc];});}export function formatZodPath(_0x780a7d){const _0x4db987=a166_0x38a8;let _0x4656f5='';for(const _0x2310de of _0x780a7d){if(typeof _0x2310de===_0x4db987(0x200))_0x4656f5+='['+_0x2310de+']';else{const _0x4d0b70=String(_0x2310de);_0x4656f5+=_0x4656f5?'.'+_0x4d0b70:_0x4d0b70;}}return _0x4656f5;}export function flattenZodIssues(_0x4fec4e){const _0x1b2518=a166_0x38a8,_0x411a65=[];for(const _0x1b2b01 of _0x4fec4e){if(_0x1b2b01[_0x1b2518(0x1f6)]===_0x1b2518(0x1f2)&&_0x1b2518(0x20c)in _0x1b2b01){const _0x4ddd50=_0x1b2b01[_0x1b2518(0x20c)];let _0x5586fa=_0x4ddd50[0x0]||[];for(const _0x41c097 of _0x4ddd50){_0x41c097['length']<_0x5586fa['length']&&(_0x5586fa=_0x41c097);}const _0x578589=_0x5586fa[_0x1b2518(0x1fb)](_0xe8ff45=>({..._0xe8ff45,'path':[..._0x1b2b01[_0x1b2518(0x1f4)],..._0xe8ff45['path']]}));_0x411a65[_0x1b2518(0x208)](...flattenZodIssues(_0x578589));}else _0x411a65['push'](_0x1b2b01);}return _0x411a65;}export function safeParseYaml(_0x3cb8da,_0x2f8e4a){const _0x2b3c85=a166_0x38a8,_0x1156ce=a166_0x4abb15['parse'](_0x3cb8da);if(!_0x1156ce||typeof _0x1156ce!==_0x2b3c85(0x20f))throw new Error(_0x2b3c85(0x1f3));const _0x6a6a7d=_0x2f8e4a['safeParse'](_0x1156ce);if(!_0x6a6a7d[_0x2b3c85(0x20a)]){const _0x3fe0f4=_0x6a6a7d['error']['issues'][0x0],_0x246bb5=formatZodPath(_0x3fe0f4[_0x2b3c85(0x1f4)]);throw new Error(_0x246bb5?_0x2b3c85(0x214)+_0x246bb5+'\x27:\x20'+_0x3fe0f4[_0x2b3c85(0x211)]:_0x2b3c85(0x1fc)+_0x3fe0f4['message']);}return _0x6a6a7d[_0x2b3c85(0x1f7)];}export function formatIssueWithContext(_0x3d840a,_0x55689f,_0x459231){const _0x358ec9=a166_0x38a8,_0x45b971=[],_0x10e565=_0x3d840a['level']===_0x358ec9(0x1fa),_0x59ffe3=_0x10e565?a166_0x335614['red']:a166_0x335614[_0x358ec9(0x1f5)],_0x3ff372=_0x10e565?a166_0x335614[_0x358ec9(0x1fd)]:a166_0x335614[_0x358ec9(0x1f5)],_0x1e4db2=_0x459231?a166_0x335614[_0x358ec9(0x20b)](_0x459231+':'):'';if(_0x3d840a[_0x358ec9(0x1ec)]){const _0x2ee194=a166_0x335614['cyan'](_0x3d840a['location'][_0x358ec9(0x1ff)]+':'+_0x3d840a[_0x358ec9(0x1ec)][_0x358ec9(0x210)]);_0x45b971[_0x358ec9(0x208)](''+_0x1e4db2+_0x2ee194+':\x20'+_0x59ffe3(_0x3d840a[_0x358ec9(0x1ed)])+'\x20'+_0x3ff372('['+_0x3d840a[_0x358ec9(0x1f6)]+']'));}else _0x45b971[_0x358ec9(0x208)](''+_0x1e4db2+a166_0x335614[_0x358ec9(0x202)](_0x3d840a[_0x358ec9(0x1f4)])+':\x20'+_0x59ffe3(_0x3d840a[_0x358ec9(0x1ed)])+'\x20'+_0x3ff372('['+_0x3d840a[_0x358ec9(0x1f6)]+']'));_0x45b971[_0x358ec9(0x208)](_0x3d840a[_0x358ec9(0x211)]);if(_0x3d840a[_0x358ec9(0x1ec)]&&_0x55689f){const _0x2fe82e=_0x55689f[_0x358ec9(0x1f9)]('\x0a'),{line:_0x35f063,column:_0x15f32a}=_0x3d840a[_0x358ec9(0x1ec)],_0x45f24a=Math['max'](0x1,_0x35f063-0x1),_0x32f127=Math['min'](_0x2fe82e[_0x358ec9(0x205)],_0x35f063+0x1);_0x45b971[_0x358ec9(0x208)]('');for(let _0x344fda=_0x45f24a;_0x344fda<=_0x32f127;_0x344fda++){const _0x555277=_0x2fe82e[_0x344fda-0x1]||'',_0x2b6351=a166_0x335614[_0x358ec9(0x202)](_0x344fda['toString']()[_0x358ec9(0x1f0)](0x4)),_0x175d0a=a166_0x335614['dim'](_0x358ec9(0x1f8));if(_0x344fda===_0x35f063){_0x45b971[_0x358ec9(0x208)]('\x20\x20'+_0x2b6351+_0x175d0a+_0x59ffe3(_0x555277));const _0x5e7bb5='\x20'[_0x358ec9(0x204)](0x4+0x3+_0x15f32a-0x1);_0x45b971[_0x358ec9(0x208)]('\x20\x20'+_0x5e7bb5+_0x59ffe3('^'));}else _0x45b971['push']('\x20\x20'+_0x2b6351+_0x175d0a+a166_0x335614[_0x358ec9(0x202)](_0x555277));}}return _0x45b971[_0x358ec9(0x207)]('\x0a');}export function formatValidationResult(_0x1d1c73,_0x9d4cf5,_0x2e760f){const _0x259070=a166_0x38a8,_0x259535=[];for(const _0x12302a of _0x1d1c73['errors']){_0x259535['push'](formatIssueWithContext(_0x12302a,_0x9d4cf5,_0x2e760f)),_0x259535[_0x259070(0x208)]('');}for(const _0x2f5656 of _0x1d1c73['warnings']){_0x259535[_0x259070(0x208)](formatIssueWithContext(_0x2f5656,_0x9d4cf5,_0x2e760f)),_0x259535[_0x259070(0x208)]('');}return _0x259535[_0x259070(0x207)]('\x0a');}
1
+ (function(_0x2c2fc7,_0xfb236c){const _0x4a242f=a166_0x31df,_0x276119=_0x2c2fc7();while(!![]){try{const _0x1a068c=parseInt(_0x4a242f(0x1cf))/0x1*(parseInt(_0x4a242f(0x1c7))/0x2)+-parseInt(_0x4a242f(0x1b8))/0x3*(-parseInt(_0x4a242f(0x1b1))/0x4)+-parseInt(_0x4a242f(0x1b7))/0x5*(parseInt(_0x4a242f(0x1c2))/0x6)+-parseInt(_0x4a242f(0x1ce))/0x7*(parseInt(_0x4a242f(0x1b9))/0x8)+-parseInt(_0x4a242f(0x1ca))/0x9*(parseInt(_0x4a242f(0x1c0))/0xa)+-parseInt(_0x4a242f(0x1c3))/0xb*(-parseInt(_0x4a242f(0x1b2))/0xc)+parseInt(_0x4a242f(0x1bd))/0xd*(parseInt(_0x4a242f(0x1c8))/0xe);if(_0x1a068c===_0xfb236c)break;else _0x276119['push'](_0x276119['shift']());}catch(_0x2fc331){_0x276119['push'](_0x276119['shift']());}}}(a166_0x5730,0x6597f));function a166_0x5730(){const _0xcc0347=['red','dim','issues','cyan','\x20|\x20','YAML\x20validation\x20error\x20at\x20\x27','pop','getIn','yellow','length','warnings','Invalid\x20YAML:\x20expected\x20an\x20object','object','safeParse','min','success','code','level','location','4548WIrKsS','204IufcWc','join','errors','number','path','18065QtuTCu','978uOvIIv','4632VTfupg','push','range','max','13KkAGfu','contents','split','43670cVlgld','YAML\x20validation\x20error:\x20','372DOBmoP','16643bnEHpS','toString','message','repeat','1830pfluSL','98126GOUmmi','column','423AztsAm','line','error','flatMap','2765FfhMTg','733rwQtKG','invalid_union'];a166_0x5730=function(){return _0xcc0347;};return a166_0x5730();}import*as a166_0x41cc4f from'yaml';import a166_0x49d8bc from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x1aa157,_0xa53222,_0x1f172c){const _0x47d0d2=a166_0x31df;if(!_0x1aa157||!_0xa53222)return undefined;try{let _0x2c6e15=_0x1aa157[_0x47d0d2(0x1d8)](_0x1f172c,!![]),_0x39940e=[..._0x1f172c];while((!_0x2c6e15||typeof _0x2c6e15!==_0x47d0d2(0x1aa)||!('range'in _0x2c6e15)||!_0x2c6e15[_0x47d0d2(0x1bb)])&&_0x39940e[_0x47d0d2(0x1a7)]>0x0){_0x39940e[_0x47d0d2(0x1d7)](),_0x2c6e15=_0x39940e[_0x47d0d2(0x1a7)]>0x0?_0x1aa157[_0x47d0d2(0x1d8)](_0x39940e,!![]):_0x1aa157[_0x47d0d2(0x1be)];}if(!_0x2c6e15||typeof _0x2c6e15!==_0x47d0d2(0x1aa)||!('range'in _0x2c6e15)||!_0x2c6e15[_0x47d0d2(0x1bb)])return undefined;const [_0x2d1cd6]=_0x2c6e15['range'];return offsetToLocation(_0xa53222,_0x2d1cd6);}catch{return undefined;}}export function offsetToLocation(_0xebd040,_0x15e4ef){let _0x46f688=0x1,_0x51cb13=0x1;for(let _0x4be68c=0x0;_0x4be68c<_0x15e4ef&&_0x4be68c<_0xebd040['length'];_0x4be68c++){_0xebd040[_0x4be68c]==='\x0a'?(_0x46f688++,_0x51cb13=0x1):_0x51cb13++;}return{'line':_0x46f688,'column':_0x51cb13,'offset':_0x15e4ef};}export function pathToArray(_0x21d7cd){const _0x4dc080=a166_0x31df;if(!_0x21d7cd)return[];return _0x21d7cd['split']('.')[_0x4dc080(0x1cd)](_0x1e7472=>{const _0x3b7f32=_0x1e7472['match'](/^(\w+)\[(\d+)\]$/);if(_0x3b7f32)return[_0x3b7f32[0x1],parseInt(_0x3b7f32[0x2],0xa)];return[_0x1e7472];});}export function formatZodPath(_0x14d491){const _0x135969=a166_0x31df;let _0x2c8ca1='';for(const _0x12e977 of _0x14d491){if(typeof _0x12e977===_0x135969(0x1b5))_0x2c8ca1+='['+_0x12e977+']';else{const _0x2c12e7=String(_0x12e977);_0x2c8ca1+=_0x2c8ca1?'.'+_0x2c12e7:_0x2c12e7;}}return _0x2c8ca1;}function a166_0x31df(_0xe99fef,_0x551780){_0xe99fef=_0xe99fef-0x1a7;const _0x573091=a166_0x5730();let _0x31df76=_0x573091[_0xe99fef];return _0x31df76;}export function flattenZodIssues(_0x20687f){const _0x50bdaf=a166_0x31df,_0x5d5871=[];for(const _0x54a683 of _0x20687f){if(_0x54a683[_0x50bdaf(0x1ae)]===_0x50bdaf(0x1d0)&&_0x50bdaf(0x1b4)in _0x54a683){const _0x3ac2b9=_0x54a683[_0x50bdaf(0x1b4)];let _0x142cfe=_0x3ac2b9[0x0]||[];for(const _0x3e11cf of _0x3ac2b9){_0x3e11cf[_0x50bdaf(0x1a7)]<_0x142cfe[_0x50bdaf(0x1a7)]&&(_0x142cfe=_0x3e11cf);}const _0xc46afa=_0x142cfe['map'](_0x5967fb=>({..._0x5967fb,'path':[..._0x54a683[_0x50bdaf(0x1b6)],..._0x5967fb[_0x50bdaf(0x1b6)]]}));_0x5d5871[_0x50bdaf(0x1ba)](...flattenZodIssues(_0xc46afa));}else _0x5d5871[_0x50bdaf(0x1ba)](_0x54a683);}return _0x5d5871;}export function safeParseYaml(_0xf460fd,_0xbdd78f){const _0x5f1f9b=a166_0x31df,_0x5a83bc=a166_0x41cc4f['parse'](_0xf460fd);if(!_0x5a83bc||typeof _0x5a83bc!==_0x5f1f9b(0x1aa))throw new Error(_0x5f1f9b(0x1a9));const _0x3eb6b6=_0xbdd78f[_0x5f1f9b(0x1ab)](_0x5a83bc);if(!_0x3eb6b6[_0x5f1f9b(0x1ad)]){const _0x3d44ad=_0x3eb6b6['error'][_0x5f1f9b(0x1d3)][0x0],_0x413769=formatZodPath(_0x3d44ad['path']);throw new Error(_0x413769?_0x5f1f9b(0x1d6)+_0x413769+'\x27:\x20'+_0x3d44ad['message']:_0x5f1f9b(0x1c1)+_0x3d44ad[_0x5f1f9b(0x1c5)]);}return _0x3eb6b6['data'];}export function formatIssueWithContext(_0x282991,_0x4bb0e6,_0x2cc98f){const _0x476d3b=a166_0x31df,_0x3e41d7=[],_0x510bd9=_0x282991[_0x476d3b(0x1af)]===_0x476d3b(0x1cc),_0x24bd16=_0x510bd9?a166_0x49d8bc[_0x476d3b(0x1d1)]:a166_0x49d8bc[_0x476d3b(0x1d9)],_0x4e1d21=_0x510bd9?a166_0x49d8bc[_0x476d3b(0x1d1)]:a166_0x49d8bc[_0x476d3b(0x1d9)],_0x2e4478=_0x2cc98f?a166_0x49d8bc[_0x476d3b(0x1d4)](_0x2cc98f+':'):'';if(_0x282991[_0x476d3b(0x1b0)]){const _0x24e572=a166_0x49d8bc['cyan'](_0x282991[_0x476d3b(0x1b0)][_0x476d3b(0x1cb)]+':'+_0x282991[_0x476d3b(0x1b0)][_0x476d3b(0x1c9)]);_0x3e41d7['push'](''+_0x2e4478+_0x24e572+':\x20'+_0x24bd16(_0x282991[_0x476d3b(0x1af)])+'\x20'+_0x4e1d21('['+_0x282991[_0x476d3b(0x1ae)]+']'));}else _0x3e41d7[_0x476d3b(0x1ba)](''+_0x2e4478+a166_0x49d8bc['dim'](_0x282991[_0x476d3b(0x1b6)])+':\x20'+_0x24bd16(_0x282991[_0x476d3b(0x1af)])+'\x20'+_0x4e1d21('['+_0x282991[_0x476d3b(0x1ae)]+']'));_0x3e41d7[_0x476d3b(0x1ba)](_0x282991[_0x476d3b(0x1c5)]);if(_0x282991[_0x476d3b(0x1b0)]&&_0x4bb0e6){const _0x3cf383=_0x4bb0e6[_0x476d3b(0x1bf)]('\x0a'),{line:_0x5a54d4,column:_0x14e5d4}=_0x282991['location'],_0x3c370a=Math[_0x476d3b(0x1bc)](0x1,_0x5a54d4-0x1),_0x5a9e=Math[_0x476d3b(0x1ac)](_0x3cf383['length'],_0x5a54d4+0x1);_0x3e41d7['push']('');for(let _0x3666e3=_0x3c370a;_0x3666e3<=_0x5a9e;_0x3666e3++){const _0x1b37f9=_0x3cf383[_0x3666e3-0x1]||'',_0x909a9f=a166_0x49d8bc['dim'](_0x3666e3[_0x476d3b(0x1c4)]()['padStart'](0x4)),_0x341299=a166_0x49d8bc[_0x476d3b(0x1d2)](_0x476d3b(0x1d5));if(_0x3666e3===_0x5a54d4){_0x3e41d7['push']('\x20\x20'+_0x909a9f+_0x341299+_0x24bd16(_0x1b37f9));const _0x481dd1='\x20'[_0x476d3b(0x1c6)](0x4+0x3+_0x14e5d4-0x1);_0x3e41d7[_0x476d3b(0x1ba)]('\x20\x20'+_0x481dd1+_0x24bd16('^'));}else _0x3e41d7[_0x476d3b(0x1ba)]('\x20\x20'+_0x909a9f+_0x341299+a166_0x49d8bc[_0x476d3b(0x1d2)](_0x1b37f9));}}return _0x3e41d7[_0x476d3b(0x1b3)]('\x0a');}export function formatValidationResult(_0xfd3c9f,_0x20ee84,_0x4b6dc9){const _0xaeb1ca=a166_0x31df,_0x27d0bf=[];for(const _0x1dc81e of _0xfd3c9f[_0xaeb1ca(0x1b4)]){_0x27d0bf[_0xaeb1ca(0x1ba)](formatIssueWithContext(_0x1dc81e,_0x20ee84,_0x4b6dc9)),_0x27d0bf[_0xaeb1ca(0x1ba)]('');}for(const _0x181db1 of _0xfd3c9f[_0xaeb1ca(0x1a8)]){_0x27d0bf['push'](formatIssueWithContext(_0x181db1,_0x20ee84,_0x4b6dc9)),_0x27d0bf[_0xaeb1ca(0x1ba)]('');}return _0x27d0bf[_0xaeb1ca(0x1b3)]('\x0a');}