@treasuredata/tdx 2026.4.16 → 2026.4.18

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 (220) 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/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.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/access-tracker.js +1 -1
  182. package/dist/sdk/workspace/frontmatter.js +1 -1
  183. package/dist/sdk/workspace/git.js +1 -1
  184. package/dist/sdk/workspace/index.js +1 -1
  185. package/dist/sdk/workspace/templates.js +1 -1
  186. package/dist/sdk/workspace/weekly.js +1 -1
  187. package/dist/sdk/workspace/wikilinks.js +1 -1
  188. package/dist/test-utils/command-runner.js +1 -1
  189. package/dist/test-utils/factories.js +1 -1
  190. package/dist/test-utils/fixtures.js +1 -1
  191. package/dist/test-utils/http-mock.js +1 -1
  192. package/dist/test-utils/index.js +1 -1
  193. package/dist/utils/async.js +1 -1
  194. package/dist/utils/colors.js +1 -1
  195. package/dist/utils/diff.js +1 -1
  196. package/dist/utils/file-permissions.js +1 -1
  197. package/dist/utils/file-reader.js +1 -1
  198. package/dist/utils/github-releases.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +17 -2
@@ -1 +1 @@
1
- (function(_0x213de1,_0x2f7a52){const _0x307c01=a156_0x210f,_0x4240de=_0x213de1();while(!![]){try{const _0x5c038f=parseInt(_0x307c01(0x139))/0x1*(parseInt(_0x307c01(0x112))/0x2)+-parseInt(_0x307c01(0x11e))/0x3*(parseInt(_0x307c01(0x10d))/0x4)+parseInt(_0x307c01(0x12b))/0x5*(parseInt(_0x307c01(0x11f))/0x6)+parseInt(_0x307c01(0x10f))/0x7*(parseInt(_0x307c01(0x12f))/0x8)+-parseInt(_0x307c01(0x130))/0x9*(parseInt(_0x307c01(0x11b))/0xa)+parseInt(_0x307c01(0x148))/0xb*(parseInt(_0x307c01(0x10c))/0xc)+parseInt(_0x307c01(0x106))/0xd;if(_0x5c038f===_0x2f7a52)break;else _0x4240de['push'](_0x4240de['shift']());}catch(_0x33f75f){_0x4240de['push'](_0x4240de['shift']());}}}(a156_0x2eba,0x36c84));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x50bae8,_0x53f1e7={},_0x48eac7={}){const _0x800f9f=a156_0x210f;if(_0x48eac7['skipSchema'])return runSemanticChecks(_0x50bae8,_0x53f1e7);const _0x5b70cb=SegmentDefSchema['safeParse'](_0x50bae8);if(_0x5b70cb[_0x800f9f(0x135)])return runSemanticChecks(_0x5b70cb[_0x800f9f(0x138)],_0x53f1e7);return zodErrorsToValidationResult(_0x5b70cb[_0x800f9f(0x11c)],_0x53f1e7);}export function validateRuleDef(_0x2542e1,_0x16d72f,_0x20c125){const _0x351841=a156_0x210f;if(!_0x2542e1)return[];const _0x193009=RuleDefSchema['safeParse'](_0x2542e1);if(_0x193009[_0x351841(0x135)])return checkRule(_0x193009['data'],_0x16d72f,_0x20c125);const _0x40709d=flattenZodIssues(_0x193009[_0x351841(0x11c)]['issues']);return _0x40709d[_0x351841(0x136)](_0x2dfdd4=>{const _0x503974=_0x351841,_0x165267=formatZodPath(_0x2dfdd4[_0x503974(0x108)]),_0x284359=_0x165267?_0x16d72f+'.'+_0x165267:_0x16d72f,_0x1e09e9=mapZodIssueToCode(_0x2dfdd4,_0x165267),_0x444d40=getLocationFromPath(_0x20c125['document'],_0x20c125[_0x503974(0x140)],pathToArray(_0x284359));return{'level':'error','path':_0x284359,'code':_0x1e09e9,'message':_0x2dfdd4[_0x503974(0x11d)],..._0x444d40&&{'location':_0x444d40}};});}function a156_0x2eba(){const _0x4aff13=['BEHAVIOR_SOURCE_WITH_ATTRIBUTE','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','attribute','1220990wFPHBQ','error','message','4104noTTBO','2334pBHEIg','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','level','Behavior\x20source\x20\x27','MISSING_BETWEEN_BOUNDS','.conditions','.conditions[','And','EMPTY_CONDITIONS','filter','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','835OoYGEM','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','push','INVALID_OPERATOR_TYPE','104QsMYSK','27KnYPno','INVALID_ARRAY_MATCHING','.segment','document','\x27\x20with\x20attribute\x20\x27','success','map','rule.type','data','113395zKPjVR','.attribute','type','validationCode','params','.source','conditions','source','code','MISSING_TIME_UNIT','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','MISSING_SEGMENT_REFERENCE','arrayMatching','.operator.type','68497aXSqEE','name','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','.type','length','Attribute\x20name\x20cannot\x20be\x20empty','415454uJtOcg','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','path','Behavior','BEHAVIOR_SOURCE_MISSING_FILTER','MISSING_OPERATOR_VALUE','216epaxNV','32CSkOfD','description','150353jTTkwH','warning','match','2XDuDxY','custom','MISSING_NAME','rule','aggregation','endsWith'];a156_0x2eba=function(){return _0x4aff13;};return a156_0x2eba();}function zodErrorsToValidationResult(_0x3775fe,_0x835612){const _0x1b3fe2=a156_0x210f,_0x5be653=flattenZodIssues(_0x3775fe['issues']),_0x1d51e9=_0x5be653[_0x1b3fe2(0x136)](_0x35563a=>{const _0x31c28f=_0x1b3fe2,_0x36fb75=formatZodPath(_0x35563a[_0x31c28f(0x108)]),_0x4fa5a2=mapZodIssueToCode(_0x35563a,_0x36fb75),_0x15f77c=getLocationFromPath(_0x835612[_0x31c28f(0x133)],_0x835612[_0x31c28f(0x140)],_0x35563a[_0x31c28f(0x108)][_0x31c28f(0x136)](_0x4a7069=>typeof _0x4a7069==='symbol'?String(_0x4a7069):_0x4a7069));return{'level':_0x31c28f(0x11c),'path':_0x36fb75,'code':_0x4fa5a2,'message':_0x35563a[_0x31c28f(0x11d)],..._0x15f77c&&{'location':_0x15f77c}};});return{'valid':![],'errors':_0x1d51e9,'warnings':[]};}function mapZodIssueToCode(_0x2f97ce,_0x2af28f){const _0x32e9eb=a156_0x210f,_0x45f522=_0x2f97ce[_0x32e9eb(0x141)]===_0x32e9eb(0x113)?_0x2f97ce[_0x32e9eb(0x13d)]:undefined;if(_0x2af28f===_0x32e9eb(0x149))return _0x32e9eb(0x114);if(_0x2af28f===_0x32e9eb(0x137)||_0x2af28f[_0x32e9eb(0x117)](_0x32e9eb(0x103))){if(_0x2f97ce['code']==='invalid_value'){if(_0x2af28f===_0x32e9eb(0x137)||_0x2af28f[_0x32e9eb(0x111)](/\.conditions\[\d+\]\.type$/))return'INVALID_RULE_TYPE';}}if(_0x2af28f[_0x32e9eb(0x117)](_0x32e9eb(0x147)))return _0x32e9eb(0x12e);if(_0x2af28f['endsWith']('.operator.value'))return _0x32e9eb(0x10b);if(_0x45f522?.[_0x32e9eb(0x13c)]==='MISSING_BETWEEN_BOUNDS')return _0x32e9eb(0x123);if(_0x45f522?.[_0x32e9eb(0x13c)]===_0x32e9eb(0x142))return _0x32e9eb(0x142);if(_0x2af28f[_0x32e9eb(0x117)](_0x32e9eb(0x124))||_0x2af28f===_0x32e9eb(0x13f))return'MISSING_CONDITIONS';if(_0x2af28f['includes'](_0x32e9eb(0x146)))return _0x32e9eb(0x131);if(_0x2af28f[_0x32e9eb(0x117)](_0x32e9eb(0x132)))return _0x32e9eb(0x145);return'SEGMENT_SCHEMA_ERROR';}function a156_0x210f(_0x3451cf,_0x3d594a){_0x3451cf=_0x3451cf-0x102;const _0x2eba14=a156_0x2eba();let _0x210fa5=_0x2eba14[_0x3451cf];return _0x210fa5;}function runSemanticChecks(_0x2c7d9f,_0x4c734b){const _0x2e2cde=a156_0x210f,_0x1ab90e=[];_0x2c7d9f[_0x2e2cde(0x115)]&&_0x1ab90e[_0x2e2cde(0x12d)](...checkRule(_0x2c7d9f[_0x2e2cde(0x115)],_0x2e2cde(0x115),_0x4c734b));const _0x4fe0ed=_0x1ab90e[_0x2e2cde(0x128)](_0x506cc7=>_0x506cc7[_0x2e2cde(0x121)]===_0x2e2cde(0x11c)),_0xbb35b=_0x1ab90e['filter'](_0x158921=>_0x158921[_0x2e2cde(0x121)]==='warning');return{'valid':_0x4fe0ed['length']===0x0,'errors':_0x4fe0ed,'warnings':_0xbb35b};}function checkRule(_0x4bb9e9,_0x35eafc,_0x769c16){const _0x57b95e=a156_0x210f,_0x6f4342=[];if(_0x4bb9e9['conditions'][_0x57b95e(0x104)]===0x0)return _0x6f4342['push']({'level':_0x57b95e(0x11c),'path':_0x35eafc+_0x57b95e(0x124),'code':_0x57b95e(0x127),'message':_0x57b95e(0x120),'location':getLocationFromPath(_0x769c16['document'],_0x769c16[_0x57b95e(0x140)],pathToArray(_0x35eafc+_0x57b95e(0x124)))}),_0x6f4342;return _0x6f4342['push'](...checkConditions(_0x4bb9e9[_0x57b95e(0x13f)],_0x35eafc,_0x769c16)),_0x6f4342;}function checkConditions(_0x2bf6b8,_0x3bcca4,_0x2cbf35){const _0x522d71=a156_0x210f,_0xdaa1f6=[];for(let _0x58c43b=0x0;_0x58c43b<_0x2bf6b8['length'];_0x58c43b++){const _0x3c2ebd=_0x2bf6b8[_0x58c43b],_0x2a7b8d=_0x3bcca4+_0x522d71(0x125)+_0x58c43b+']';_0xdaa1f6[_0x522d71(0x12d)](...checkCondition(_0x3c2ebd,_0x2a7b8d,_0x2cbf35));}return _0xdaa1f6;}function checkCondition(_0x12ef33,_0x4e17dd,_0x16be01){const _0x4375d1=a156_0x210f,_0x3ae25d=[];if(_0x12ef33['type']===_0x4375d1(0x126)||_0x12ef33[_0x4375d1(0x13b)]==='Or'){if(_0x12ef33[_0x4375d1(0x13f)]['length']===0x0)_0x3ae25d[_0x4375d1(0x12d)]({'level':_0x4375d1(0x11c),'path':_0x4e17dd+_0x4375d1(0x124),'code':'EMPTY_CONDITIONS','message':_0x12ef33[_0x4375d1(0x13b)]+_0x4375d1(0x129),'location':getLocationFromPath(_0x16be01['document'],_0x16be01[_0x4375d1(0x140)],pathToArray(_0x4e17dd+_0x4375d1(0x124)))});else{const _0xe46cf8=_0x12ef33[_0x4375d1(0x10e)]!==undefined;!_0xe46cf8&&_0x3ae25d[_0x4375d1(0x12d)]({'level':'warning','path':_0x4e17dd,'code':'NESTED_CONDITION_GROUP','message':_0x12ef33[_0x4375d1(0x13b)]+_0x4375d1(0x102)+_0x4375d1(0x143)+_0x4375d1(0x119),'location':getLocationFromPath(_0x16be01[_0x4375d1(0x133)],_0x16be01[_0x4375d1(0x140)],pathToArray(_0x4e17dd))}),_0x3ae25d[_0x4375d1(0x12d)](...checkConditions(_0x12ef33[_0x4375d1(0x13f)],_0x4e17dd,_0x16be01));}return _0x3ae25d;}if(_0x12ef33[_0x4375d1(0x13b)]==='Value'||_0x12ef33['type']===_0x4375d1(0x109)){const _0x27d1f3=_0x12ef33,_0x55b1f8=_0x27d1f3[_0x4375d1(0x140)],_0x52e081=_0x27d1f3[_0x4375d1(0x116)],_0x407de8=_0x55b1f8||_0x52e081;(!_0x27d1f3[_0x4375d1(0x11a)]||_0x27d1f3[_0x4375d1(0x11a)]==='')&&(!_0x407de8&&_0x3ae25d[_0x4375d1(0x12d)]({'level':_0x4375d1(0x11c),'path':_0x4e17dd+'.attribute','code':'EMPTY_ATTRIBUTE','message':_0x4375d1(0x105),'location':getLocationFromPath(_0x16be01[_0x4375d1(0x133)],_0x16be01[_0x4375d1(0x140)],pathToArray(_0x4e17dd+_0x4375d1(0x13a)))}));_0x27d1f3[_0x4375d1(0x128)]&&_0x3ae25d['push'](...checkRule(_0x27d1f3['filter'],_0x4e17dd+'.filter',_0x16be01));if(_0x27d1f3[_0x4375d1(0x140)]){const _0x429c2f=_0x27d1f3[_0x4375d1(0x11a)]&&_0x27d1f3[_0x4375d1(0x11a)]!=='';_0x429c2f&&!_0x27d1f3[_0x4375d1(0x128)]&&_0x3ae25d[_0x4375d1(0x12d)]({'level':_0x4375d1(0x11c),'path':_0x4e17dd+_0x4375d1(0x13e),'code':_0x4375d1(0x10a),'message':_0x4375d1(0x122)+_0x27d1f3[_0x4375d1(0x140)]+_0x4375d1(0x134)+_0x27d1f3[_0x4375d1(0x11a)]+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+_0x4375d1(0x12a)+_0x4375d1(0x144),'location':getLocationFromPath(_0x16be01[_0x4375d1(0x133)],_0x16be01[_0x4375d1(0x140)],pathToArray(_0x4e17dd+_0x4375d1(0x13e)))}),_0x429c2f&&_0x27d1f3['filter']&&_0x3ae25d[_0x4375d1(0x12d)]({'level':_0x4375d1(0x110),'path':_0x4e17dd+'.attribute','code':_0x4375d1(0x118),'message':'Attribute\x20\x27'+_0x27d1f3[_0x4375d1(0x11a)]+_0x4375d1(0x12c)+_0x4375d1(0x107),'location':getLocationFromPath(_0x16be01[_0x4375d1(0x133)],_0x16be01[_0x4375d1(0x140)],pathToArray(_0x4e17dd+_0x4375d1(0x13a)))});}}return _0x3ae25d;}
1
+ function a156_0x29db(_0x138af9,_0x5b8f7c){_0x138af9=_0x138af9-0x170;const _0x212b92=a156_0x212b();let _0x29db0d=_0x212b92[_0x138af9];return _0x29db0d;}(function(_0x5d4644,_0x585820){const _0x3af9f1=a156_0x29db,_0x5183ec=_0x5d4644();while(!![]){try{const _0x5043c5=parseInt(_0x3af9f1(0x18c))/0x1*(parseInt(_0x3af9f1(0x1a9))/0x2)+parseInt(_0x3af9f1(0x198))/0x3*(parseInt(_0x3af9f1(0x1ad))/0x4)+-parseInt(_0x3af9f1(0x18e))/0x5+-parseInt(_0x3af9f1(0x19d))/0x6*(parseInt(_0x3af9f1(0x1b6))/0x7)+-parseInt(_0x3af9f1(0x179))/0x8+-parseInt(_0x3af9f1(0x190))/0x9+-parseInt(_0x3af9f1(0x1a6))/0xa*(-parseInt(_0x3af9f1(0x1b9))/0xb);if(_0x5043c5===_0x585820)break;else _0x5183ec['push'](_0x5183ec['shift']());}catch(_0xa422a4){_0x5183ec['push'](_0x5183ec['shift']());}}}(a156_0x212b,0x5754b));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x3b14a8,_0x4ca3b8={},_0x5246bc={}){const _0x472d37=a156_0x29db;if(_0x5246bc[_0x472d37(0x1ac)])return runSemanticChecks(_0x3b14a8,_0x4ca3b8);const _0x42e46c=SegmentDefSchema['safeParse'](_0x3b14a8);if(_0x42e46c[_0x472d37(0x1a1)])return runSemanticChecks(_0x42e46c[_0x472d37(0x1b3)],_0x4ca3b8);return zodErrorsToValidationResult(_0x42e46c[_0x472d37(0x184)],_0x4ca3b8);}export function validateRuleDef(_0x7a188,_0x3e39bb,_0x1b84df){const _0x1430fd=a156_0x29db;if(!_0x7a188)return[];const _0x5f48a7=RuleDefSchema['safeParse'](_0x7a188);if(_0x5f48a7[_0x1430fd(0x1a1)])return checkRule(_0x5f48a7['data'],_0x3e39bb,_0x1b84df);const _0x33f55d=flattenZodIssues(_0x5f48a7['error'][_0x1430fd(0x1a3)]);return _0x33f55d[_0x1430fd(0x19a)](_0x4759a8=>{const _0x21f4ec=_0x1430fd,_0x5df5f1=formatZodPath(_0x4759a8[_0x21f4ec(0x18d)]),_0x4c0203=_0x5df5f1?_0x3e39bb+'.'+_0x5df5f1:_0x3e39bb,_0x41149e=mapZodIssueToCode(_0x4759a8,_0x5df5f1),_0x44abb9=getLocationFromPath(_0x1b84df[_0x21f4ec(0x170)],_0x1b84df[_0x21f4ec(0x174)],pathToArray(_0x4c0203));return{'level':_0x21f4ec(0x184),'path':_0x4c0203,'code':_0x41149e,'message':_0x4759a8[_0x21f4ec(0x189)],..._0x44abb9&&{'location':_0x44abb9}};});}function zodErrorsToValidationResult(_0x1068c6,_0x175b40){const _0xa370d7=a156_0x29db,_0x2344a6=flattenZodIssues(_0x1068c6[_0xa370d7(0x1a3)]),_0x481888=_0x2344a6[_0xa370d7(0x19a)](_0x1c0699=>{const _0x16e582=_0xa370d7,_0x24a276=formatZodPath(_0x1c0699[_0x16e582(0x18d)]),_0x234812=mapZodIssueToCode(_0x1c0699,_0x24a276),_0x4dac72=getLocationFromPath(_0x175b40['document'],_0x175b40[_0x16e582(0x174)],_0x1c0699['path'][_0x16e582(0x19a)](_0x5ae4db=>typeof _0x5ae4db==='symbol'?String(_0x5ae4db):_0x5ae4db));return{'level':_0x16e582(0x184),'path':_0x24a276,'code':_0x234812,'message':_0x1c0699[_0x16e582(0x189)],..._0x4dac72&&{'location':_0x4dac72}};});return{'valid':![],'errors':_0x481888,'warnings':[]};}function a156_0x212b(){const _0x2d0582=['Attribute\x20name\x20cannot\x20be\x20empty','Value','warning','data','push','invalid_value','701477MagFeM','EMPTY_ATTRIBUTE','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','89749CgcmBh','document','.conditions[','type','code','source','.segment','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','Behavior\x20source\x20\x27','4348184KbXUvw','.conditions','.operator.value','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','MISSING_SEGMENT_REFERENCE','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','match','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','.filter','custom','BEHAVIOR_SOURCE_MISSING_FILTER','error','And','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','INVALID_RULE_TYPE','message','conditions','validationCode','3aXkUyK','path','1847370yjVzEO','filter','4231512xTFAzD','includes','level','Behavior','attribute','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','MISSING_TIME_UNIT','arrayMatching','401889eIbBpy','.source','map','params','.type','42xCIxgN','MISSING_CONDITIONS','EMPTY_CONDITIONS','.operator.type','success','length','issues','INVALID_ARRAY_MATCHING','.attribute','1390fQotIo','rule','endsWith','425622sytFkq','description','aggregation','skipSchema','20EeNfmC','MISSING_BETWEEN_BOUNDS','SEGMENT_SCHEMA_ERROR'];a156_0x212b=function(){return _0x2d0582;};return a156_0x212b();}function mapZodIssueToCode(_0x3d7335,_0x1e1642){const _0x4bb00d=a156_0x29db,_0x3fcd25=_0x3d7335[_0x4bb00d(0x173)]===_0x4bb00d(0x182)?_0x3d7335[_0x4bb00d(0x19b)]:undefined;if(_0x1e1642==='name')return'MISSING_NAME';if(_0x1e1642==='rule.type'||_0x1e1642[_0x4bb00d(0x1a8)](_0x4bb00d(0x19c))){if(_0x3d7335[_0x4bb00d(0x173)]===_0x4bb00d(0x1b5)){if(_0x1e1642==='rule.type'||_0x1e1642[_0x4bb00d(0x17f)](/\.conditions\[\d+\]\.type$/))return _0x4bb00d(0x188);}}if(_0x1e1642[_0x4bb00d(0x1a8)](_0x4bb00d(0x1a0)))return'INVALID_OPERATOR_TYPE';if(_0x1e1642['endsWith'](_0x4bb00d(0x17b)))return'MISSING_OPERATOR_VALUE';if(_0x3fcd25?.['validationCode']===_0x4bb00d(0x1ae))return _0x4bb00d(0x1ae);if(_0x3fcd25?.[_0x4bb00d(0x18b)]===_0x4bb00d(0x196))return _0x4bb00d(0x196);if(_0x1e1642[_0x4bb00d(0x1a8)]('.conditions')||_0x1e1642===_0x4bb00d(0x18a))return _0x4bb00d(0x19e);if(_0x1e1642[_0x4bb00d(0x191)](_0x4bb00d(0x197)))return _0x4bb00d(0x1a4);if(_0x1e1642[_0x4bb00d(0x1a8)](_0x4bb00d(0x175)))return _0x4bb00d(0x17d);return _0x4bb00d(0x1af);}function runSemanticChecks(_0x1f880e,_0x5f196a){const _0x514bb8=a156_0x29db,_0x379e6f=[];_0x1f880e['rule']&&_0x379e6f[_0x514bb8(0x1b4)](...checkRule(_0x1f880e[_0x514bb8(0x1a7)],_0x514bb8(0x1a7),_0x5f196a));const _0x4adc=_0x379e6f['filter'](_0x5b5c7c=>_0x5b5c7c[_0x514bb8(0x192)]===_0x514bb8(0x184)),_0x48ae87=_0x379e6f['filter'](_0x4adc10=>_0x4adc10['level']===_0x514bb8(0x1b2));return{'valid':_0x4adc['length']===0x0,'errors':_0x4adc,'warnings':_0x48ae87};}function checkRule(_0x148393,_0x3b2060,_0x5c7b88){const _0x14b8b0=a156_0x29db,_0x50a562=[];if(_0x148393['conditions'][_0x14b8b0(0x1a2)]===0x0)return _0x50a562['push']({'level':_0x14b8b0(0x184),'path':_0x3b2060+'.conditions','code':'EMPTY_CONDITIONS','message':'Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','location':getLocationFromPath(_0x5c7b88[_0x14b8b0(0x170)],_0x5c7b88['source'],pathToArray(_0x3b2060+_0x14b8b0(0x17a)))}),_0x50a562;return _0x50a562[_0x14b8b0(0x1b4)](...checkConditions(_0x148393[_0x14b8b0(0x18a)],_0x3b2060,_0x5c7b88)),_0x50a562;}function checkConditions(_0x1dbd4f,_0x5b86d6,_0x472936){const _0x1e8a21=a156_0x29db,_0xcab594=[];for(let _0x212130=0x0;_0x212130<_0x1dbd4f['length'];_0x212130++){const _0x538823=_0x1dbd4f[_0x212130],_0x411909=_0x5b86d6+_0x1e8a21(0x171)+_0x212130+']';_0xcab594[_0x1e8a21(0x1b4)](...checkCondition(_0x538823,_0x411909,_0x472936));}return _0xcab594;}function checkCondition(_0x517482,_0x17ace6,_0x30d955){const _0x21062c=a156_0x29db,_0x35d41e=[];if(_0x517482[_0x21062c(0x172)]===_0x21062c(0x185)||_0x517482[_0x21062c(0x172)]==='Or'){if(_0x517482[_0x21062c(0x18a)][_0x21062c(0x1a2)]===0x0)_0x35d41e['push']({'level':_0x21062c(0x184),'path':_0x17ace6+_0x21062c(0x17a),'code':_0x21062c(0x19f),'message':_0x517482['type']+_0x21062c(0x17e),'location':getLocationFromPath(_0x30d955[_0x21062c(0x170)],_0x30d955['source'],pathToArray(_0x17ace6+_0x21062c(0x17a)))});else{const _0x4efd42=_0x517482[_0x21062c(0x1aa)]!==undefined;!_0x4efd42&&_0x35d41e[_0x21062c(0x1b4)]({'level':'warning','path':_0x17ace6,'code':'NESTED_CONDITION_GROUP','message':_0x517482[_0x21062c(0x172)]+_0x21062c(0x195)+_0x21062c(0x1b8)+_0x21062c(0x17c),'location':getLocationFromPath(_0x30d955[_0x21062c(0x170)],_0x30d955[_0x21062c(0x174)],pathToArray(_0x17ace6))}),_0x35d41e['push'](...checkConditions(_0x517482['conditions'],_0x17ace6,_0x30d955));}return _0x35d41e;}if(_0x517482[_0x21062c(0x172)]===_0x21062c(0x1b1)||_0x517482[_0x21062c(0x172)]===_0x21062c(0x193)){const _0x970f9d=_0x517482,_0x4a6031=_0x970f9d['source'],_0x343381=_0x970f9d[_0x21062c(0x1ab)],_0x5038c0=_0x4a6031||_0x343381;(!_0x970f9d[_0x21062c(0x194)]||_0x970f9d['attribute']==='')&&(!_0x5038c0&&_0x35d41e[_0x21062c(0x1b4)]({'level':_0x21062c(0x184),'path':_0x17ace6+'.attribute','code':_0x21062c(0x1b7),'message':_0x21062c(0x1b0),'location':getLocationFromPath(_0x30d955[_0x21062c(0x170)],_0x30d955[_0x21062c(0x174)],pathToArray(_0x17ace6+_0x21062c(0x1a5)))}));_0x970f9d[_0x21062c(0x18f)]&&_0x35d41e[_0x21062c(0x1b4)](...checkRule(_0x970f9d['filter'],_0x17ace6+_0x21062c(0x181),_0x30d955));if(_0x970f9d[_0x21062c(0x174)]){const _0x4009b9=_0x970f9d[_0x21062c(0x194)]&&_0x970f9d['attribute']!=='';_0x4009b9&&!_0x970f9d[_0x21062c(0x18f)]&&_0x35d41e['push']({'level':_0x21062c(0x184),'path':_0x17ace6+_0x21062c(0x199),'code':_0x21062c(0x183),'message':_0x21062c(0x178)+_0x970f9d[_0x21062c(0x174)]+'\x27\x20with\x20attribute\x20\x27'+_0x970f9d[_0x21062c(0x194)]+'\x27\x20'+_0x21062c(0x186)+_0x21062c(0x187)+_0x21062c(0x177),'location':getLocationFromPath(_0x30d955[_0x21062c(0x170)],_0x30d955[_0x21062c(0x174)],pathToArray(_0x17ace6+'.source'))}),_0x4009b9&&_0x970f9d[_0x21062c(0x18f)]&&_0x35d41e[_0x21062c(0x1b4)]({'level':'warning','path':_0x17ace6+'.attribute','code':'BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message':'Attribute\x20\x27'+_0x970f9d[_0x21062c(0x194)]+_0x21062c(0x180)+_0x21062c(0x176),'location':getLocationFromPath(_0x30d955[_0x21062c(0x170)],_0x30d955[_0x21062c(0x174)],pathToArray(_0x17ace6+_0x21062c(0x1a5)))});}}return _0x35d41e;}
@@ -1 +1 @@
1
- function a157_0x5c7c(_0x824dfb,_0x24afef){_0x824dfb=_0x824dfb-0xaf;const _0x470c3e=a157_0x470c();let _0x5c7cef=_0x470c3e[_0x824dfb];return _0x5c7cef;}(function(_0x22c9aa,_0x241920){const _0x32eca0=a157_0x5c7c,_0x5922cc=_0x22c9aa();while(!![]){try{const _0x419c5e=-parseInt(_0x32eca0(0xcb))/0x1+parseInt(_0x32eca0(0xb1))/0x2*(parseInt(_0x32eca0(0xd4))/0x3)+-parseInt(_0x32eca0(0xce))/0x4*(-parseInt(_0x32eca0(0xc4))/0x5)+parseInt(_0x32eca0(0xda))/0x6*(-parseInt(_0x32eca0(0xd2))/0x7)+-parseInt(_0x32eca0(0xd0))/0x8+parseInt(_0x32eca0(0xb2))/0x9+parseInt(_0x32eca0(0xd7))/0xa;if(_0x419c5e===_0x241920)break;else _0x5922cc['push'](_0x5922cc['shift']());}catch(_0x326d21){_0x5922cc['push'](_0x5922cc['shift']());}}}(a157_0x470c,0xa0811));import a157_0x410905 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(_0x1e0783){const _0x26fc2b=a157_0x5c7c;return _0x1e0783[_0x26fc2b(0xc9)]!==_0x26fc2b(0xb8);}export function isScopedResolution(_0xf85bdf){const _0x551709=a157_0x5c7c;return _0xf85bdf[_0x551709(0xc9)]===_0x551709(0xe2)||_0xf85bdf[_0x551709(0xc9)]===_0x551709(0xc1)||_0xf85bdf[_0x551709(0xc9)]===_0x551709(0xc5);}function a157_0x470c(){const _0x1f10ff=['file','resourceType','Not\x20a\x20YAML\x20file:\x20','6304425dkYlCL','context','invalid_yaml','journey','resolve','type','scopedFolderPath','647066mBvzjy','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','message','4ZMLLqV','No\x20tdx.json\x20found','5061120RDlBgl','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','7385343fqCwnN','exists','249hnkCFw','readFile','isScoped','5509320nyavnl','dirname','File\x20not\x20found','6UKUoYl','join','basename','parent_name','parentSegment','isDirectory','startsWith','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','directory','File\x20not\x20found:\x20','isFile','trim','folderPath','configDir','3686IlPzNc','9246546FLYTeb','replace','root','relative','no_config','Parent\x20segment\x20not\x20specified','error','match','segmentName','parent_segment','No\x20tdx.json\x20found\x20for\x20file:\x20','includes','cwd','segment','parse'];a157_0x470c=function(){return _0x1f10ff;};return a157_0x470c();}export function getScopedDetails(_0x4f7697){const _0x496ce8=a157_0x5c7c;if(isScopedResolution(_0x4f7697))return{'isScoped':_0x4f7697[_0x496ce8(0xd6)],'scopedFolderPath':_0x4f7697[_0x496ce8(0xca)]};return undefined;}async function findTdxConfigAsync(_0x56a3b7,_0x2a27b5){const _0x866136=a157_0x5c7c;let _0x2595ea=a157_0x410905[_0x866136(0xc8)](_0x56a3b7);const _0x27bc0a=a157_0x410905[_0x866136(0xc0)](_0x2595ea)[_0x866136(0xb4)];while(_0x2595ea!==_0x27bc0a){const _0x442481=a157_0x410905[_0x866136(0xdb)](_0x2595ea,'tdx.json');if(await _0x2a27b5[_0x866136(0xd3)](_0x442481))try{const _0x4fb120=await _0x2a27b5[_0x866136(0xd5)](_0x442481),_0x5d52c3=JSON['parse'](_0x4fb120);if(_0x5d52c3[_0x866136(0xbb)]&&typeof _0x5d52c3[_0x866136(0xbb)]==='string')return{'configPath':_0x442481,'configDir':_0x2595ea,'parentSegment':_0x5d52c3[_0x866136(0xbb)]};}catch{}_0x2595ea=a157_0x410905[_0x866136(0xd8)](_0x2595ea);}return null;}function calculateScopedPath(_0x1ca0bc,_0x22e88e){const _0x8ddb56=a157_0x5c7c,_0x7be746=a157_0x410905[_0x8ddb56(0xb5)](_0x22e88e,_0x1ca0bc),_0x5bd076=_0x7be746!==''&&_0x7be746!=='.'&&!_0x7be746[_0x8ddb56(0xe0)]('..');return{'isScoped':_0x5bd076,'scopedFolderPath':_0x5bd076?_0x7be746[_0x8ddb56(0xb3)](/\\/g,'/'):''};}export async function resolveTarget(_0x3931dd){const _0x1f747c=a157_0x5c7c,{arg:_0x468681,contextParent:_0x155ed6,cwd:cwd=process[_0x1f747c(0xbe)](),fs:fs=nodeFileSystem}=_0x3931dd;if(_0x468681&&isYamlFilePath(_0x468681))try{const _0x135d41=await resolveYamlFilePath(_0x468681,fs),_0x26753f=a157_0x410905[_0x1f747c(0xc8)](_0x468681),_0x4b17a9=a157_0x410905[_0x1f747c(0xd8)](_0x26753f),_0x487475=await findTdxConfigAsync(_0x4b17a9,fs);if(!_0x487475){if(_0x155ed6){const _0x393926=a157_0x410905[_0x1f747c(0xd8)](_0x26753f);return{'type':_0x1f747c(0xc1),'parentName':_0x155ed6,'targetDir':_0x393926,'configRoot':_0x393926,'filePath':_0x26753f,'resourceName':_0x135d41[_0x1f747c(0xba)],'folderPath':_0x135d41['folderPath'],'resourceType':_0x135d41['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1f747c(0xb8),'errorCode':_0x1f747c(0xb6),'message':_0x1f747c(0xbc)+_0x468681,'arg':_0x468681,'helpText':_0x1f747c(0xcc)};}const _0x439fa3=calculateScopedPath(_0x4b17a9,_0x487475[_0x1f747c(0xb0)]);return{'type':_0x1f747c(0xc1),'parentName':_0x487475[_0x1f747c(0xde)],'targetDir':_0x487475['configDir'],'configRoot':_0x487475[_0x1f747c(0xb0)],'filePath':_0x26753f,'resourceName':_0x135d41['segmentName'],'folderPath':_0x135d41[_0x1f747c(0xaf)],'resourceType':_0x135d41[_0x1f747c(0xc2)],'isScoped':_0x439fa3[_0x1f747c(0xd6)],'scopedFolderPath':_0x439fa3[_0x1f747c(0xca)]};}catch(_0x1d1e4e){const _0x2cdb57=_0x1d1e4e instanceof Error?_0x1d1e4e[_0x1f747c(0xcd)]:String(_0x1d1e4e);if(_0x2cdb57['includes'](_0x1f747c(0xd9)))return{'type':_0x1f747c(0xb8),'errorCode':'file_not_found','message':_0x1f747c(0xe3)+_0x468681,'arg':_0x468681};if(_0x2cdb57[_0x1f747c(0xbd)](_0x1f747c(0xcf))){if(_0x155ed6){const _0x47c626=a157_0x410905['resolve'](_0x468681);if(await fs[_0x1f747c(0xd3)](_0x47c626)){const _0x431664=a157_0x410905[_0x1f747c(0xd8)](_0x47c626),_0xa5895e=await fs['readFile'](_0x47c626),_0x220725=_0xa5895e[_0x1f747c(0xb9)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x466998=_0xa5895e[_0x1f747c(0xb9)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x201291=_0x220725?_0x220725[0x1][_0x1f747c(0xe5)]():a157_0x410905[_0x1f747c(0xdc)](_0x468681,a157_0x410905['extname'](_0x468681)),_0xc4856e=_0x466998&&_0x466998[0x1][_0x1f747c(0xe5)]()==='journey'?_0x1f747c(0xc7):_0x1f747c(0xbf);return{'type':_0x1f747c(0xc1),'parentName':_0x155ed6,'targetDir':_0x431664,'configRoot':_0x431664,'filePath':_0x47c626,'resourceName':_0x201291,'folderPath':'','resourceType':_0xc4856e,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x1f747c(0xb8),'errorCode':'no_config','message':_0x1f747c(0xbc)+_0x468681,'arg':_0x468681,'helpText':_0x1f747c(0xcc)};}return{'type':_0x1f747c(0xb8),'errorCode':'invalid_yaml','message':_0x2cdb57,'arg':_0x468681};}if(_0x468681){const _0x17a98f=a157_0x410905[_0x1f747c(0xc8)](cwd,_0x468681);let _0x2593ba=null;try{_0x2593ba=await fs['stat'](_0x17a98f);}catch{}if(_0x2593ba?.[_0x1f747c(0xdf)]()){const _0x5efaef=await findTdxConfigAsync(_0x17a98f,fs);if(_0x5efaef){const _0x5892bc=calculateScopedPath(_0x17a98f,_0x5efaef['configDir']);return{'type':_0x1f747c(0xe2),'parentName':_0x5efaef[_0x1f747c(0xde)],'targetDir':_0x17a98f,'configRoot':_0x5efaef[_0x1f747c(0xb0)],'isScoped':_0x5892bc['isScoped'],'scopedFolderPath':_0x5892bc['scopedFolderPath']};}if(_0x155ed6)return{'type':_0x1f747c(0xe2),'parentName':_0x155ed6,'targetDir':_0x17a98f,'configRoot':_0x17a98f,'isScoped':![],'scopedFolderPath':''};return{'type':_0x1f747c(0xb8),'errorCode':'no_config','message':_0x1f747c(0xd1)+_0x468681,'arg':_0x468681,'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(_0x2593ba?.[_0x1f747c(0xe4)]())return{'type':_0x1f747c(0xb8),'errorCode':_0x1f747c(0xc6),'message':_0x1f747c(0xc3)+_0x468681,'arg':_0x468681,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x27dfa6=sanitizeFileName(_0x468681),_0x4304d4=getSegmentRootDir(_0x27dfa6,cwd);return{'type':_0x1f747c(0xdd),'parentName':_0x468681,'targetDir':_0x4304d4,'configRoot':_0x4304d4};}const _0x4bdb07=await findTdxConfigAsync(cwd,fs);if(_0x4bdb07){const _0x4141c4=calculateScopedPath(cwd,_0x4bdb07[_0x1f747c(0xb0)]);return{'type':_0x1f747c(0xc5),'parentName':_0x4bdb07[_0x1f747c(0xde)],'targetDir':cwd,'configRoot':_0x4bdb07[_0x1f747c(0xb0)],'isScoped':_0x4141c4[_0x1f747c(0xd6)],'scopedFolderPath':_0x4141c4['scopedFolderPath']};}if(_0x155ed6){const _0x6a7609=sanitizeFileName(_0x155ed6),_0x21197f=getSegmentRootDir(_0x6a7609,cwd);return{'type':_0x1f747c(0xc5),'parentName':_0x155ed6,'targetDir':_0x21197f,'configRoot':_0x21197f,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1f747c(0xb8),'errorCode':'no_parent','message':_0x1f747c(0xb7),'helpText':_0x1f747c(0xe1)};}
1
+ (function(_0x502214,_0x129f79){const _0x17e235=a157_0x32d7,_0x29dcb9=_0x502214();while(!![]){try{const _0xc98a4a=-parseInt(_0x17e235(0x104))/0x1+-parseInt(_0x17e235(0xee))/0x2*(parseInt(_0x17e235(0x103))/0x3)+parseInt(_0x17e235(0xdb))/0x4*(-parseInt(_0x17e235(0xe8))/0x5)+parseInt(_0x17e235(0xfe))/0x6*(parseInt(_0x17e235(0xdd))/0x7)+-parseInt(_0x17e235(0xe5))/0x8+parseInt(_0x17e235(0x109))/0x9+parseInt(_0x17e235(0xe9))/0xa;if(_0xc98a4a===_0x129f79)break;else _0x29dcb9['push'](_0x29dcb9['shift']());}catch(_0x4cd612){_0x29dcb9['push'](_0x29dcb9['shift']());}}}(a157_0x3633,0xf391d));import a157_0x3b98fa from'path';import{sanitizeFileName}from'../../utils/string-utils.js';function a157_0x32d7(_0x57ec7a,_0x36c748){_0x57ec7a=_0x57ec7a-0xd9;const _0x3633cf=a157_0x3633();let _0x32d79f=_0x3633cf[_0x57ec7a];return _0x32d79f;}import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x2cda8f){const _0x18df60=a157_0x32d7;return _0x2cda8f[_0x18df60(0xd9)]!==_0x18df60(0xeb);}function a157_0x3633(){const _0x21ee71=['parentSegment','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','cwd','string','root','invalid_yaml','144rwDTlU','resolve','No\x20tdx.json\x20found','parent_name','no_parent','544422MlZfat','12759uMyHrp','isDirectory','replace','resourceType','no_config','10667169koSSQv','segmentName','type','File\x20not\x20found:\x20','14044UqPqIo','stat','456729UTEdyG','parent_segment','directory','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','join','exists','file','Parent\x20segment\x20not\x20specified','12066912EoIhlG','dirname','readFile','2410TbactN','18228650FVoIOW','context','error','journey','trim','4TPvkEV','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','scopedFolderPath','isScoped','basename','file_not_found','parse','No\x20tdx.json\x20found\x20for\x20file:\x20','match','configDir'];a157_0x3633=function(){return _0x21ee71;};return a157_0x3633();}export function isScopedResolution(_0x42f0ae){const _0x186f96=a157_0x32d7;return _0x42f0ae['type']===_0x186f96(0xdf)||_0x42f0ae[_0x186f96(0xd9)]===_0x186f96(0xe3)||_0x42f0ae['type']==='context';}export function getScopedDetails(_0x22a775){const _0x2ecb22=a157_0x32d7;if(isScopedResolution(_0x22a775))return{'isScoped':_0x22a775[_0x2ecb22(0xf1)],'scopedFolderPath':_0x22a775['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x17caa6,_0x2e03c7){const _0x21f55c=a157_0x32d7;let _0x4dc87b=a157_0x3b98fa[_0x21f55c(0xff)](_0x17caa6);const _0x5947d1=a157_0x3b98fa[_0x21f55c(0xf4)](_0x4dc87b)[_0x21f55c(0xfc)];while(_0x4dc87b!==_0x5947d1){const _0x5c8d16=a157_0x3b98fa[_0x21f55c(0xe1)](_0x4dc87b,'tdx.json');if(await _0x2e03c7[_0x21f55c(0xe2)](_0x5c8d16))try{const _0x37bf12=await _0x2e03c7[_0x21f55c(0xe7)](_0x5c8d16),_0x423ac0=JSON['parse'](_0x37bf12);if(_0x423ac0['parent_segment']&&typeof _0x423ac0[_0x21f55c(0xde)]===_0x21f55c(0xfb))return{'configPath':_0x5c8d16,'configDir':_0x4dc87b,'parentSegment':_0x423ac0[_0x21f55c(0xde)]};}catch{}_0x4dc87b=a157_0x3b98fa[_0x21f55c(0xe6)](_0x4dc87b);}return null;}function calculateScopedPath(_0x458160,_0x25c2a6){const _0x10e683=a157_0x32d7,_0x906662=a157_0x3b98fa['relative'](_0x25c2a6,_0x458160),_0x5b89f6=_0x906662!==''&&_0x906662!=='.'&&!_0x906662['startsWith']('..');return{'isScoped':_0x5b89f6,'scopedFolderPath':_0x5b89f6?_0x906662[_0x10e683(0x106)](/\\/g,'/'):''};}export async function resolveTarget(_0x2d9ecb){const _0x5e3b2c=a157_0x32d7,{arg:_0x5cf9c0,contextParent:_0x4a0356,cwd:cwd=process[_0x5e3b2c(0xfa)](),fs:fs=nodeFileSystem}=_0x2d9ecb;if(_0x5cf9c0&&isYamlFilePath(_0x5cf9c0))try{const _0xee3a76=await resolveYamlFilePath(_0x5cf9c0,fs),_0x96c26d=a157_0x3b98fa[_0x5e3b2c(0xff)](_0x5cf9c0),_0x28809c=a157_0x3b98fa[_0x5e3b2c(0xe6)](_0x96c26d),_0x28d000=await findTdxConfigAsync(_0x28809c,fs);if(!_0x28d000){if(_0x4a0356){const _0x53693d=a157_0x3b98fa['dirname'](_0x96c26d);return{'type':'file','parentName':_0x4a0356,'targetDir':_0x53693d,'configRoot':_0x53693d,'filePath':_0x96c26d,'resourceName':_0xee3a76[_0x5e3b2c(0x10a)],'folderPath':_0xee3a76['folderPath'],'resourceType':_0xee3a76[_0x5e3b2c(0x107)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x5e3b2c(0xeb),'errorCode':'no_config','message':_0x5e3b2c(0xf5)+_0x5cf9c0,'arg':_0x5cf9c0,'helpText':_0x5e3b2c(0xef)};}const _0x4e982a=calculateScopedPath(_0x28809c,_0x28d000[_0x5e3b2c(0xf7)]);return{'type':_0x5e3b2c(0xe3),'parentName':_0x28d000[_0x5e3b2c(0xf8)],'targetDir':_0x28d000[_0x5e3b2c(0xf7)],'configRoot':_0x28d000[_0x5e3b2c(0xf7)],'filePath':_0x96c26d,'resourceName':_0xee3a76[_0x5e3b2c(0x10a)],'folderPath':_0xee3a76['folderPath'],'resourceType':_0xee3a76[_0x5e3b2c(0x107)],'isScoped':_0x4e982a[_0x5e3b2c(0xf1)],'scopedFolderPath':_0x4e982a['scopedFolderPath']};}catch(_0x13a4b5){const _0x5af03c=_0x13a4b5 instanceof Error?_0x13a4b5['message']:String(_0x13a4b5);if(_0x5af03c['includes']('File\x20not\x20found'))return{'type':_0x5e3b2c(0xeb),'errorCode':_0x5e3b2c(0xf3),'message':_0x5e3b2c(0xda)+_0x5cf9c0,'arg':_0x5cf9c0};if(_0x5af03c['includes'](_0x5e3b2c(0x100))){if(_0x4a0356){const _0xff2742=a157_0x3b98fa[_0x5e3b2c(0xff)](_0x5cf9c0);if(await fs['exists'](_0xff2742)){const _0x3e0d92=a157_0x3b98fa[_0x5e3b2c(0xe6)](_0xff2742),_0x28548d=await fs['readFile'](_0xff2742),_0x43cd8a=_0x28548d[_0x5e3b2c(0xf6)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x5b64bf=_0x28548d[_0x5e3b2c(0xf6)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1cc772=_0x43cd8a?_0x43cd8a[0x1][_0x5e3b2c(0xed)]():a157_0x3b98fa[_0x5e3b2c(0xf2)](_0x5cf9c0,a157_0x3b98fa['extname'](_0x5cf9c0)),_0x35a643=_0x5b64bf&&_0x5b64bf[0x1]['trim']()===_0x5e3b2c(0xec)?_0x5e3b2c(0xec):'segment';return{'type':_0x5e3b2c(0xe3),'parentName':_0x4a0356,'targetDir':_0x3e0d92,'configRoot':_0x3e0d92,'filePath':_0xff2742,'resourceName':_0x1cc772,'folderPath':'','resourceType':_0x35a643,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x5e3b2c(0xeb),'errorCode':'no_config','message':_0x5e3b2c(0xf5)+_0x5cf9c0,'arg':_0x5cf9c0,'helpText':_0x5e3b2c(0xef)};}return{'type':_0x5e3b2c(0xeb),'errorCode':_0x5e3b2c(0xfd),'message':_0x5af03c,'arg':_0x5cf9c0};}if(_0x5cf9c0){const _0x4b6ab9=a157_0x3b98fa[_0x5e3b2c(0xff)](cwd,_0x5cf9c0);let _0x22767b=null;try{_0x22767b=await fs[_0x5e3b2c(0xdc)](_0x4b6ab9);}catch{}if(_0x22767b?.[_0x5e3b2c(0x105)]()){const _0x1e3318=await findTdxConfigAsync(_0x4b6ab9,fs);if(_0x1e3318){const _0xcfe9d9=calculateScopedPath(_0x4b6ab9,_0x1e3318[_0x5e3b2c(0xf7)]);return{'type':_0x5e3b2c(0xdf),'parentName':_0x1e3318[_0x5e3b2c(0xf8)],'targetDir':_0x4b6ab9,'configRoot':_0x1e3318[_0x5e3b2c(0xf7)],'isScoped':_0xcfe9d9[_0x5e3b2c(0xf1)],'scopedFolderPath':_0xcfe9d9['scopedFolderPath']};}if(_0x4a0356)return{'type':'directory','parentName':_0x4a0356,'targetDir':_0x4b6ab9,'configRoot':_0x4b6ab9,'isScoped':![],'scopedFolderPath':''};return{'type':_0x5e3b2c(0xeb),'errorCode':_0x5e3b2c(0x108),'message':_0x5e3b2c(0xf9)+_0x5cf9c0,'arg':_0x5cf9c0,'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(_0x22767b?.['isFile']())return{'type':_0x5e3b2c(0xeb),'errorCode':'invalid_yaml','message':'Not\x20a\x20YAML\x20file:\x20'+_0x5cf9c0,'arg':_0x5cf9c0,'helpText':_0x5e3b2c(0xe0)};const _0x1d8a7f=sanitizeFileName(_0x5cf9c0),_0x2b67f7=getSegmentRootDir(_0x1d8a7f,cwd);return{'type':_0x5e3b2c(0x101),'parentName':_0x5cf9c0,'targetDir':_0x2b67f7,'configRoot':_0x2b67f7};}const _0xefafef=await findTdxConfigAsync(cwd,fs);if(_0xefafef){const _0x711db=calculateScopedPath(cwd,_0xefafef['configDir']);return{'type':'context','parentName':_0xefafef[_0x5e3b2c(0xf8)],'targetDir':cwd,'configRoot':_0xefafef[_0x5e3b2c(0xf7)],'isScoped':_0x711db[_0x5e3b2c(0xf1)],'scopedFolderPath':_0x711db[_0x5e3b2c(0xf0)]};}if(_0x4a0356){const _0x3ae5e8=sanitizeFileName(_0x4a0356),_0x3513c2=getSegmentRootDir(_0x3ae5e8,cwd);return{'type':_0x5e3b2c(0xea),'parentName':_0x4a0356,'targetDir':_0x3513c2,'configRoot':_0x3513c2,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x5e3b2c(0xeb),'errorCode':_0x5e3b2c(0x102),'message':_0x5e3b2c(0xe4),'helpText':'Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure'};}
@@ -1 +1 @@
1
- function a158_0x4534(_0x27c595,_0x24ea1b){_0x27c595=_0x27c595-0x113;const _0x30b545=a158_0x30b5();let _0x453403=_0x30b545[_0x27c595];return _0x453403;}const a158_0x182320=a158_0x4534;(function(_0x3090aa,_0x5433ca){const _0x6920e5=a158_0x4534,_0x2b9366=_0x3090aa();while(!![]){try{const _0x5379aa=-parseInt(_0x6920e5(0x12a))/0x1+parseInt(_0x6920e5(0x126))/0x2*(-parseInt(_0x6920e5(0x113))/0x3)+-parseInt(_0x6920e5(0x11f))/0x4*(parseInt(_0x6920e5(0x116))/0x5)+parseInt(_0x6920e5(0x12d))/0x6*(parseInt(_0x6920e5(0x124))/0x7)+-parseInt(_0x6920e5(0x11b))/0x8+-parseInt(_0x6920e5(0x118))/0x9*(parseInt(_0x6920e5(0x120))/0xa)+parseInt(_0x6920e5(0x119))/0xb;if(_0x5379aa===_0x5433ca)break;else _0x2b9366['push'](_0x2b9366['shift']());}catch(_0x4784a0){_0x2b9366['push'](_0x2b9366['shift']());}}}(a158_0x30b5,0x70442));import{existsSync,readFileSync}from'fs';import a158_0x3850be from'path';const TDX_CONFIG_FILE=a158_0x182320(0x12e),SEGMENTS_DIR=a158_0x182320(0x12c);export function findTdxConfigPath(_0x34c6ff=process[a158_0x182320(0x11d)]()){const _0x535a21=a158_0x182320;let _0x2f0814=a158_0x3850be[_0x535a21(0x123)](_0x34c6ff);const _0x562e05=a158_0x3850be[_0x535a21(0x11a)](_0x2f0814)[_0x535a21(0x125)];while(_0x2f0814!==_0x562e05){const _0x90399e=a158_0x3850be[_0x535a21(0x115)](_0x2f0814,TDX_CONFIG_FILE);if(existsSync(_0x90399e))return _0x90399e;_0x2f0814=a158_0x3850be['dirname'](_0x2f0814);}return null;}export function loadTdxConfig(_0x2d0eb1){const _0x3d6696=a158_0x182320,_0x5556a5=readFileSync(_0x2d0eb1,_0x3d6696(0x11c));let _0x156a4f;try{_0x156a4f=JSON[_0x3d6696(0x11a)](_0x5556a5);}catch{throw new Error(_0x3d6696(0x11e)+_0x2d0eb1);}if(!_0x156a4f||typeof _0x156a4f!==_0x3d6696(0x12b))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x1aee7a=_0x156a4f,_0x3713a4=_0x1aee7a[_0x3d6696(0x127)]&&typeof _0x1aee7a[_0x3d6696(0x127)]==='string',_0xd787e1=_0x1aee7a['engage_workspace']&&typeof _0x1aee7a['engage_workspace']===_0x3d6696(0x121);if(!_0x3713a4&&!_0xd787e1)throw new Error(_0x3d6696(0x128));const _0x501ac4={};return _0x3713a4&&(_0x501ac4['parent_segment']=_0x1aee7a[_0x3d6696(0x127)]),_0xd787e1&&(_0x501ac4[_0x3d6696(0x129)]=_0x1aee7a[_0x3d6696(0x129)]),_0x501ac4;}export function findTdxConfig(_0x4cfaa5=process[a158_0x182320(0x11d)]()){const _0x5d8bbe=a158_0x182320,_0x219daf=findTdxConfigPath(_0x4cfaa5);if(!_0x219daf)throw new Error(_0x5d8bbe(0x114));const _0x913031=loadTdxConfig(_0x219daf),_0x35c253=a158_0x3850be[_0x5d8bbe(0x117)](_0x219daf);return{'config':_0x913031,'configPath':_0x219daf,'configDir':_0x35c253};}export function tryFindTdxConfig(_0x1d7953){try{return findTdxConfig(_0x1d7953);}catch{return null;}}export function getSegmentRootDir(_0x47f9ad,_0x5e96be=process[a158_0x182320(0x11d)]()){return a158_0x3850be['join'](_0x5e96be,SEGMENTS_DIR,_0x47f9ad);}export function getTdxConfigPath(_0xfed032,_0x9f2ccb=process['cwd']()){const _0x27f43d=a158_0x182320;return a158_0x3850be[_0x27f43d(0x115)](getSegmentRootDir(_0xfed032,_0x9f2ccb),TDX_CONFIG_FILE);}function a158_0x30b5(){const _0x495c81=['join','502395EAjiXJ','dirname','36CkIADA','32659957vCbMDx','parse','2108168ajECiO','utf-8','cwd','Invalid\x20JSON\x20in\x20','36GiMxpj','1582460tHkAyN','string','stringify','resolve','4444349TtdwDH','root','30zyBzfF','parent_segment','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','engage_workspace','615686wnGGuD','object','segments','6DkXegf','tdx.json','145530OvlgHp','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.'];a158_0x30b5=function(){return _0x495c81;};return a158_0x30b5();}export function getRelativePathFromConfig(_0x2e853b,_0x2e5b33){const _0x99a27a=a158_0x182320,_0x55ae3b=a158_0x3850be[_0x99a27a(0x123)](_0x2e853b),_0x1c873b=a158_0x3850be['relative'](_0x2e5b33,_0x55ae3b);if(_0x1c873b['startsWith']('..'))return'';return _0x1c873b;}export function localPathToTdFolderPath(_0x1ce6a8){const _0x2a700b=a158_0x182320,_0x2c9aa7=a158_0x3850be[_0x2a700b(0x117)](_0x1ce6a8);if(_0x2c9aa7==='.'||_0x2c9aa7==='')return'';return _0x2c9aa7['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x465e44,_0x564fcf){if(!_0x465e44)return _0x564fcf;return a158_0x3850be['join'](_0x564fcf,_0x465e44);}export function createTdxConfigContent(_0x313e76){const _0x4dba73=a158_0x182320,_0x380eea={'parent_segment':_0x313e76};return JSON[_0x4dba73(0x122)](_0x380eea,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x4e4f6d){const _0x14a782=a158_0x182320,_0x3ecef0={'engage_workspace':_0x4e4f6d};return JSON[_0x14a782(0x122)](_0x3ecef0,null,0x2)+'\x0a';}
1
+ const a158_0x5a6659=a158_0x22ef;(function(_0x4f9cf0,_0x4a6272){const _0x5d61d5=a158_0x22ef,_0x399ff2=_0x4f9cf0();while(!![]){try{const _0x29252d=parseInt(_0x5d61d5(0x115))/0x1+parseInt(_0x5d61d5(0x111))/0x2+-parseInt(_0x5d61d5(0xfb))/0x3*(-parseInt(_0x5d61d5(0x10d))/0x4)+parseInt(_0x5d61d5(0x114))/0x5*(parseInt(_0x5d61d5(0x10e))/0x6)+parseInt(_0x5d61d5(0x109))/0x7*(parseInt(_0x5d61d5(0x105))/0x8)+parseInt(_0x5d61d5(0x108))/0x9+-parseInt(_0x5d61d5(0x101))/0xa*(parseInt(_0x5d61d5(0x106))/0xb);if(_0x29252d===_0x4a6272)break;else _0x399ff2['push'](_0x399ff2['shift']());}catch(_0x2fe6a4){_0x399ff2['push'](_0x399ff2['shift']());}}}(a158_0xfb07,0xb468c));import{existsSync,readFileSync}from'fs';import a158_0x5f3278 from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a158_0x5a6659(0x10a);export function findTdxConfigPath(_0x3b2d3a=process[a158_0x5a6659(0x107)]()){const _0x13cbb5=a158_0x5a6659;let _0x34e6a6=a158_0x5f3278[_0x13cbb5(0x10f)](_0x3b2d3a);const _0x4e9427=a158_0x5f3278[_0x13cbb5(0xfc)](_0x34e6a6)[_0x13cbb5(0xfd)];while(_0x34e6a6!==_0x4e9427){const _0x491ad3=a158_0x5f3278['join'](_0x34e6a6,TDX_CONFIG_FILE);if(existsSync(_0x491ad3))return _0x491ad3;_0x34e6a6=a158_0x5f3278['dirname'](_0x34e6a6);}return null;}export function loadTdxConfig(_0x58f57d){const _0xb6def3=a158_0x5a6659,_0x5e3c8d=readFileSync(_0x58f57d,_0xb6def3(0x112));let _0x360dbd;try{_0x360dbd=JSON[_0xb6def3(0xfc)](_0x5e3c8d);}catch{throw new Error(_0xb6def3(0x10b)+_0x58f57d);}if(!_0x360dbd||typeof _0x360dbd!==_0xb6def3(0x103))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x1eed40=_0x360dbd,_0x4b6fae=_0x1eed40[_0xb6def3(0x113)]&&typeof _0x1eed40[_0xb6def3(0x113)]===_0xb6def3(0x104),_0x4b7bc2=_0x1eed40[_0xb6def3(0x10c)]&&typeof _0x1eed40[_0xb6def3(0x10c)]==='string';if(!_0x4b6fae&&!_0x4b7bc2)throw new Error(_0xb6def3(0x102));const _0x3133ae={};return _0x4b6fae&&(_0x3133ae[_0xb6def3(0x113)]=_0x1eed40[_0xb6def3(0x113)]),_0x4b7bc2&&(_0x3133ae[_0xb6def3(0x10c)]=_0x1eed40[_0xb6def3(0x10c)]),_0x3133ae;}export function findTdxConfig(_0x520a1e=process[a158_0x5a6659(0x107)]()){const _0x5d5d3b=a158_0x5a6659,_0x4bfabb=findTdxConfigPath(_0x520a1e);if(!_0x4bfabb)throw new Error(_0x5d5d3b(0xfe));const _0x15ee2d=loadTdxConfig(_0x4bfabb),_0x2d5ed9=a158_0x5f3278[_0x5d5d3b(0x100)](_0x4bfabb);return{'config':_0x15ee2d,'configPath':_0x4bfabb,'configDir':_0x2d5ed9};}export function tryFindTdxConfig(_0x256efe){try{return findTdxConfig(_0x256efe);}catch{return null;}}function a158_0x22ef(_0xd39da2,_0x23827e){_0xd39da2=_0xd39da2-0xfb;const _0xfb0756=a158_0xfb07();let _0x22efe1=_0xfb0756[_0xd39da2];return _0x22efe1;}export function getSegmentRootDir(_0x166a20,_0x352921=process[a158_0x5a6659(0x107)]()){const _0x555725=a158_0x5a6659;return a158_0x5f3278[_0x555725(0xff)](_0x352921,SEGMENTS_DIR,_0x166a20);}export function getTdxConfigPath(_0x46267e,_0x279e7d=process[a158_0x5a6659(0x107)]()){const _0x41bfe1=a158_0x5a6659;return a158_0x5f3278[_0x41bfe1(0xff)](getSegmentRootDir(_0x46267e,_0x279e7d),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5e4459,_0x25a842){const _0x59b646=a158_0x5a6659,_0x3a349c=a158_0x5f3278[_0x59b646(0x10f)](_0x5e4459),_0x51c6ca=a158_0x5f3278['relative'](_0x25a842,_0x3a349c);if(_0x51c6ca['startsWith']('..'))return'';return _0x51c6ca;}export function localPathToTdFolderPath(_0xd912fa){const _0x2af0e4=a158_0x5a6659,_0x4e15e6=a158_0x5f3278[_0x2af0e4(0x100)](_0xd912fa);if(_0x4e15e6==='.'||_0x4e15e6==='')return'';return _0x4e15e6['replace'](/\\/g,'/');}function a158_0xfb07(){const _0x480b96=['cwd','9202437SNcmxw','49FhAwPp','segments','Invalid\x20JSON\x20in\x20','engage_workspace','4tjdhwf','20928YcprZt','resolve','stringify','968496wMbxNE','utf-8','parent_segment','955trmDPx','835695MQwFGt','2442846ZsUGjs','parse','root','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','join','dirname','40375870rIbPGA','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','object','string','1089848hwNZpG','11HvATeT'];a158_0xfb07=function(){return _0x480b96;};return a158_0xfb07();}export function tdFolderPathToLocalPath(_0x211c9a,_0x416ee9){if(!_0x211c9a)return _0x416ee9;return a158_0x5f3278['join'](_0x416ee9,_0x211c9a);}export function createTdxConfigContent(_0x54ba74){const _0x4cc878=a158_0x5a6659,_0xaca896={'parent_segment':_0x54ba74};return JSON[_0x4cc878(0x110)](_0xaca896,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x12940d){const _0x47956e=a158_0x5a6659,_0x48901c={'engage_workspace':_0x12940d};return JSON[_0x47956e(0x110)](_0x48901c,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a159_0x104da5=a159_0x125d;(function(_0x545357,_0x1eaeab){const _0x4ccf14=a159_0x125d,_0x381b68=_0x545357();while(!![]){try{const _0x34d552=-parseInt(_0x4ccf14(0x158))/0x1+parseInt(_0x4ccf14(0x156))/0x2*(-parseInt(_0x4ccf14(0x176))/0x3)+parseInt(_0x4ccf14(0x17b))/0x4+parseInt(_0x4ccf14(0x173))/0x5+parseInt(_0x4ccf14(0x160))/0x6*(parseInt(_0x4ccf14(0x174))/0x7)+parseInt(_0x4ccf14(0x153))/0x8*(parseInt(_0x4ccf14(0x155))/0x9)+-parseInt(_0x4ccf14(0x16a))/0xa;if(_0x34d552===_0x1eaeab)break;else _0x381b68['push'](_0x381b68['shift']());}catch(_0x513411){_0x381b68['push'](_0x381b68['shift']());}}}(a159_0xa89b,0xaf4d9));import{z}from'zod';function a159_0xa89b(){const _0x126d71=['week','6178660aimSKv','array','clear','daily','minute','enum','Last','none','First','6174285tdTuEW','2933iikvag','once','192sICSub','unknown','min','month','string','4327324wveUYc','onFailure','rows','All','nullable','optional','2033968LGweUw','object','27LSxLYt','41530RZOJlJ','day','920292qQfQxm','cols','monthly','record','onSuccess','Activation\x20name\x20is\x20required','weekly','hourly','7242joAyPa','union','Top-N','desc','number','asc','Connection\x20name\x20is\x20required','masked','boolean'];a159_0xa89b=function(){return _0x126d71;};return a159_0xa89b();}export const ScheduleTypeSchema=z['enum']([a159_0x104da5(0x171),a159_0x104da5(0x15f),a159_0x104da5(0x16d),a159_0x104da5(0x15e),a159_0x104da5(0x15a),'cron','minutes_interval']);export const RepeatUnitSchema=z[a159_0x104da5(0x16f)]([a159_0x104da5(0x16e),'hour',a159_0x104da5(0x157),a159_0x104da5(0x169),a159_0x104da5(0x179),a159_0x104da5(0x175),'none']);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a159_0x104da5(0x164)]()['optional'](),'repeat_sub_frequency':z[a159_0x104da5(0x16b)](z[a159_0x104da5(0x164)]())[a159_0x104da5(0x152)](),'start_at':z[a159_0x104da5(0x17a)]()['nullable']()[a159_0x104da5(0x152)](),'end_on':z[a159_0x104da5(0x17a)]()[a159_0x104da5(0x151)]()[a159_0x104da5(0x152)](),'timezone':z[a159_0x104da5(0x17a)]()[a159_0x104da5(0x152)]()});export const NotificationDefSchema=z[a159_0x104da5(0x154)]({'notify_on':z[a159_0x104da5(0x16b)](z[a159_0x104da5(0x16f)]([a159_0x104da5(0x15c),a159_0x104da5(0x17c)]))[a159_0x104da5(0x152)](),'email_recipients':z[a159_0x104da5(0x16b)](z[a159_0x104da5(0x17a)]())[a159_0x104da5(0x152)]()});function a159_0x125d(_0x30bcfa,_0x434f0d){_0x30bcfa=_0x30bcfa-0x14f;const _0xa89bf1=a159_0xa89b();let _0x125dd1=_0xa89bf1[_0x30bcfa];return _0x125dd1;}export const ActivationColumnDefSchema=z[a159_0x104da5(0x161)]([z[a159_0x104da5(0x17a)](),z[a159_0x104da5(0x154)]({'name':z[a159_0x104da5(0x17a)](),'type':z['string']()[a159_0x104da5(0x152)](),'visibility':z['enum']([a159_0x104da5(0x16c),a159_0x104da5(0x167)])[a159_0x104da5(0x152)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x104da5(0x154)]({'columns':z[a159_0x104da5(0x16b)](z[a159_0x104da5(0x154)]({'name':z[a159_0x104da5(0x17a)](),'type':z[a159_0x104da5(0x17a)]()['optional'](),'visibility':z[a159_0x104da5(0x16f)]([a159_0x104da5(0x16c),'masked'])[a159_0x104da5(0x152)]()}))[a159_0x104da5(0x152)](),'behavior_table':z[a159_0x104da5(0x17a)]()[a159_0x104da5(0x152)](),'join_row':z[a159_0x104da5(0x164)]()[a159_0x104da5(0x151)]()[a159_0x104da5(0x152)](),'join_strategy':z[a159_0x104da5(0x16f)]([a159_0x104da5(0x150),a159_0x104da5(0x172),a159_0x104da5(0x170),a159_0x104da5(0x162)])['optional'](),'formatting':z['enum']([a159_0x104da5(0x14f),a159_0x104da5(0x159)])['optional'](),'order_by':z[a159_0x104da5(0x16b)](z[a159_0x104da5(0x154)]({'key':z[a159_0x104da5(0x17a)](),'order':z[a159_0x104da5(0x16f)]([a159_0x104da5(0x165),a159_0x104da5(0x163)])}))['optional']()});export const ActivationDefSchema=z['object']({'name':z['string']()[a159_0x104da5(0x178)](0x1,a159_0x104da5(0x15d)),'description':z[a159_0x104da5(0x17a)]()[a159_0x104da5(0x152)](),'connection':z['string']()[a159_0x104da5(0x178)](0x1,a159_0x104da5(0x166)),'all_columns':z[a159_0x104da5(0x168)]()[a159_0x104da5(0x152)](),'columns':z[a159_0x104da5(0x16b)](ActivationColumnDefSchema)[a159_0x104da5(0x152)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x104da5(0x152)](),'connector_config':z[a159_0x104da5(0x15b)](z[a159_0x104da5(0x17a)](),z[a159_0x104da5(0x177)]())['optional'](),'activation_template_id':z[a159_0x104da5(0x17a)]()[a159_0x104da5(0x151)]()[a159_0x104da5(0x152)](),'behavior':ActivationBehaviorDefSchema[a159_0x104da5(0x151)]()[a159_0x104da5(0x152)](),'run_after_journey_refresh':z['boolean']()[a159_0x104da5(0x152)](),'nested_workflow_project_name':z[a159_0x104da5(0x17a)]()[a159_0x104da5(0x152)](),'nested_workflow_name':z[a159_0x104da5(0x17a)]()['optional'](),'lock_enabled':z['boolean']()[a159_0x104da5(0x152)]()});
1
+ function a159_0x5071(_0x2c9ad1,_0x4b0142){_0x2c9ad1=_0x2c9ad1-0xcf;const _0xc34458=a159_0xc344();let _0x507120=_0xc34458[_0x2c9ad1];return _0x507120;}const a159_0x56916f=a159_0x5071;(function(_0x5cab40,_0x40916b){const _0x50ec16=a159_0x5071,_0x4c5d85=_0x5cab40();while(!![]){try{const _0x7ea1b3=-parseInt(_0x50ec16(0xd4))/0x1*(parseInt(_0x50ec16(0xe8))/0x2)+-parseInt(_0x50ec16(0xd5))/0x3+-parseInt(_0x50ec16(0xe3))/0x4+parseInt(_0x50ec16(0xef))/0x5*(-parseInt(_0x50ec16(0xd6))/0x6)+parseInt(_0x50ec16(0xf3))/0x7+parseInt(_0x50ec16(0xf9))/0x8*(-parseInt(_0x50ec16(0xf8))/0x9)+parseInt(_0x50ec16(0xdf))/0xa;if(_0x7ea1b3===_0x40916b)break;else _0x4c5d85['push'](_0x4c5d85['shift']());}catch(_0xd30cf3){_0x4c5d85['push'](_0x4c5d85['shift']());}}}(a159_0xc344,0x26ade));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x56916f(0xe9)]([a159_0x56916f(0xd7),a159_0x56916f(0xd2),a159_0x56916f(0xf4),a159_0x56916f(0xea),a159_0x56916f(0xf1),a159_0x56916f(0xf0),'minutes_interval']);export const RepeatUnitSchema=z['enum']([a159_0x56916f(0xf6),a159_0x56916f(0xcf),a159_0x56916f(0xed),'week',a159_0x56916f(0xd1),a159_0x56916f(0xe2),'none']);export const ScheduleDefSchema=z[a159_0x56916f(0xdd)]({'type':ScheduleTypeSchema[a159_0x56916f(0xec)](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a159_0x56916f(0xe4)]()[a159_0x56916f(0xec)](),'repeat_sub_frequency':z[a159_0x56916f(0xf5)](z[a159_0x56916f(0xe4)]())['optional'](),'start_at':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xdb)]()[a159_0x56916f(0xec)](),'end_on':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xdb)]()[a159_0x56916f(0xec)](),'timezone':z[a159_0x56916f(0xd0)]()['optional']()});function a159_0xc344(){const _0x7750e9=['optional','day','All','10SEVrGi','cron','monthly','Top-N','1313256ilnoXY','daily','array','minute','asc','918495WAflFH','8tHzGAz','hour','string','month','hourly','masked','3535YYlNqE','795834ElpHdy','9012xqJrcC','none','boolean','desc','rows','nullable','unknown','object','Last','8542380QSnbmC','First','Connection\x20name\x20is\x20required','once','836276ejCAcz','number','Activation\x20name\x20is\x20required','clear','min','172xzaHmY','enum','weekly','cols'];a159_0xc344=function(){return _0x7750e9;};return a159_0xc344();}export const NotificationDefSchema=z[a159_0x56916f(0xdd)]({'notify_on':z[a159_0x56916f(0xf5)](z[a159_0x56916f(0xe9)](['onSuccess','onFailure']))[a159_0x56916f(0xec)](),'email_recipients':z['array'](z[a159_0x56916f(0xd0)]())[a159_0x56916f(0xec)]()});export const ActivationColumnDefSchema=z['union']([z[a159_0x56916f(0xd0)](),z[a159_0x56916f(0xdd)]({'name':z['string'](),'type':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xec)](),'visibility':z[a159_0x56916f(0xe9)]([a159_0x56916f(0xe6),a159_0x56916f(0xd3)])['optional']()})]);export const ActivationBehaviorDefSchema=z[a159_0x56916f(0xdd)]({'columns':z['array'](z[a159_0x56916f(0xdd)]({'name':z[a159_0x56916f(0xd0)](),'type':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xec)](),'visibility':z[a159_0x56916f(0xe9)]([a159_0x56916f(0xe6),'masked'])[a159_0x56916f(0xec)]()}))[a159_0x56916f(0xec)](),'behavior_table':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xec)](),'join_row':z[a159_0x56916f(0xe4)]()[a159_0x56916f(0xdb)]()[a159_0x56916f(0xec)](),'join_strategy':z[a159_0x56916f(0xe9)]([a159_0x56916f(0xee),a159_0x56916f(0xe0),a159_0x56916f(0xde),a159_0x56916f(0xf2)])[a159_0x56916f(0xec)](),'formatting':z[a159_0x56916f(0xe9)]([a159_0x56916f(0xda),a159_0x56916f(0xeb)])['optional'](),'order_by':z[a159_0x56916f(0xf5)](z[a159_0x56916f(0xdd)]({'key':z['string'](),'order':z[a159_0x56916f(0xe9)]([a159_0x56916f(0xf7),a159_0x56916f(0xd9)])}))[a159_0x56916f(0xec)]()});export const ActivationDefSchema=z[a159_0x56916f(0xdd)]({'name':z['string']()['min'](0x1,a159_0x56916f(0xe5)),'description':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xec)](),'connection':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xe7)](0x1,a159_0x56916f(0xe1)),'all_columns':z[a159_0x56916f(0xd8)]()[a159_0x56916f(0xec)](),'columns':z[a159_0x56916f(0xf5)](ActivationColumnDefSchema)[a159_0x56916f(0xec)](),'schedule':ScheduleDefSchema[a159_0x56916f(0xec)](),'notification':NotificationDefSchema[a159_0x56916f(0xec)](),'connector_config':z['record'](z[a159_0x56916f(0xd0)](),z[a159_0x56916f(0xdc)]())[a159_0x56916f(0xec)](),'activation_template_id':z['string']()[a159_0x56916f(0xdb)]()[a159_0x56916f(0xec)](),'behavior':ActivationBehaviorDefSchema['nullable']()['optional'](),'run_after_journey_refresh':z[a159_0x56916f(0xd8)]()[a159_0x56916f(0xec)](),'nested_workflow_project_name':z[a159_0x56916f(0xd0)]()['optional'](),'nested_workflow_name':z[a159_0x56916f(0xd0)]()[a159_0x56916f(0xec)](),'lock_enabled':z['boolean']()[a159_0x56916f(0xec)]()});
@@ -1 +1 @@
1
- function a160_0x9902(_0x5af9c6,_0x532f14){_0x5af9c6=_0x5af9c6-0x160;var _0x5c4db0=a160_0x5c4d();var _0x9902aa=_0x5c4db0[_0x5af9c6];return _0x9902aa;}(function(_0x5da681,_0x18765e){var _0x218260=a160_0x9902,_0x572ac0=_0x5da681();while(!![]){try{var _0x133f8c=-parseInt(_0x218260(0x165))/0x1*(parseInt(_0x218260(0x164))/0x2)+-parseInt(_0x218260(0x169))/0x3*(-parseInt(_0x218260(0x161))/0x4)+-parseInt(_0x218260(0x163))/0x5*(-parseInt(_0x218260(0x167))/0x6)+-parseInt(_0x218260(0x168))/0x7+parseInt(_0x218260(0x160))/0x8+-parseInt(_0x218260(0x162))/0x9+parseInt(_0x218260(0x166))/0xa;if(_0x133f8c===_0x18765e)break;else _0x572ac0['push'](_0x572ac0['shift']());}catch(_0x14499d){_0x572ac0['push'](_0x572ac0['shift']());}}}(a160_0x5c4d,0x592c1));function a160_0x5c4d(){var _0x4d7b8f=['3630272ElRMiS','184376btOCib','695385xkUxZY','4315xddDbx','1270762THBcwa','1rHLRYk','6416710XeHFPX','678qvXUVo','2096185ruaFoG','12cNzlPu'];a160_0x5c4d=function(){return _0x4d7b8f;};return a160_0x5c4d();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a160_0x18cc(){var _0x161331=['229984ozardE','420203JPceEL','2838118oltEME','11536368zRKNkq','2845071BhSUeC','44hxqJwi','36QygPIH','60zTHaLt','284805zlkxfL','3622890ZerJsS'];a160_0x18cc=function(){return _0x161331;};return a160_0x18cc();}(function(_0x32a5da,_0x1314ca){var _0x22a9ff=a160_0x5881,_0x2ac406=_0x32a5da();while(!![]){try{var _0x1800d7=parseInt(_0x22a9ff(0x17e))/0x1+-parseInt(_0x22a9ff(0x180))/0x2+parseInt(_0x22a9ff(0x17d))/0x3+parseInt(_0x22a9ff(0x179))/0x4*(parseInt(_0x22a9ff(0x17c))/0x5)+-parseInt(_0x22a9ff(0x17a))/0x6*(parseInt(_0x22a9ff(0x17f))/0x7)+-parseInt(_0x22a9ff(0x181))/0x8+-parseInt(_0x22a9ff(0x182))/0x9*(-parseInt(_0x22a9ff(0x17b))/0xa);if(_0x1800d7===_0x1314ca)break;else _0x2ac406['push'](_0x2ac406['shift']());}catch(_0x2eea1f){_0x2ac406['push'](_0x2ac406['shift']());}}}(a160_0x18cc,0xb4924));function a160_0x5881(_0x451db1,_0x52e897){_0x451db1=_0x451db1-0x179;var _0x18ccc3=a160_0x18cc();var _0x5881e7=_0x18ccc3[_0x451db1];return _0x5881e7;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a161_0x409b77=a161_0x6e59;(function(_0x2156ad,_0x4c35b9){const _0x5c02ab=a161_0x6e59,_0x5928a1=_0x2156ad();while(!![]){try{const _0x326a03=parseInt(_0x5c02ab(0x1a1))/0x1*(-parseInt(_0x5c02ab(0x19b))/0x2)+-parseInt(_0x5c02ab(0x196))/0x3+parseInt(_0x5c02ab(0x1b3))/0x4*(-parseInt(_0x5c02ab(0x19c))/0x5)+-parseInt(_0x5c02ab(0x1a0))/0x6+-parseInt(_0x5c02ab(0x19f))/0x7*(-parseInt(_0x5c02ab(0x194))/0x8)+parseInt(_0x5c02ab(0x1b0))/0x9+parseInt(_0x5c02ab(0x19a))/0xa;if(_0x326a03===_0x4c35b9)break;else _0x5928a1['push'](_0x5928a1['shift']());}catch(_0x3f3281){_0x5928a1['push'](_0x5928a1['shift']());}}}(a161_0x1c56,0x5ac38));import{z}from'zod';function a161_0x1c56(){const _0x2dc10d=['16381830jNETQQ','426812NGveeV','1439105cjNGwr','array','optional','104307DaeiaC','2130186ShGOTY','1iENQKq','merge','no_reentry','journeys','activation','number','day','draft','ab_test','min','jump','boolean','filter','stages','journey','1914930hpYMHr','launched','week','8nmewfm','record','enum','literal','decision_point','wait','object','reentry_unless_goal_achieved','isArray','48qoFVsc','length','1273536QWHwLr','string','passthrough','simulation'];a161_0x1c56=function(){return _0x2dc10d;};return a161_0x1c56();}import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x409b77(0x1b5)]([a161_0x409b77(0x1a8),a161_0x409b77(0x199),a161_0x409b77(0x1b1)]);export const ReentryModeTypeSchema=z[a161_0x409b77(0x1b5)]([a161_0x409b77(0x1a3),a161_0x409b77(0x192),'reentry_always']);export const WaitUnitTypeSchema=z['enum']([a161_0x409b77(0x1a7),a161_0x409b77(0x1b2)]);export const StepTypeValueSchema=z[a161_0x409b77(0x1b5)]([a161_0x409b77(0x190),a161_0x409b77(0x1a5),'decision_point',a161_0x409b77(0x1a9),a161_0x409b77(0x1a2),a161_0x409b77(0x1ab),'end']);export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()[a161_0x409b77(0x19e)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a161_0x409b77(0x197)](),'stage':z['string'](),'bundle_id':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)]()});export const CriteriaDefSchema=z[a161_0x409b77(0x191)]({'name':z['string'](),'description':z[a161_0x409b77(0x197)]()['optional'](),'segment':z[a161_0x409b77(0x197)](),'target':JumpTargetDefSchema[a161_0x409b77(0x19e)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a161_0x409b77(0x1a6)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)]()}),WaitConditionDefSchema=z[a161_0x409b77(0x191)]({'segment':z['string'](),'next':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x409b77(0x19e)]()}),WaitStepParamsDefSchema=z[a161_0x409b77(0x191)]({'duration':z['number']()['optional'](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'condition':WaitConditionDefSchema[a161_0x409b77(0x19e)](),'days_of_week':z[a161_0x409b77(0x19d)](z[a161_0x409b77(0x197)]())[a161_0x409b77(0x19e)]()}),StepBaseFields={'name':z[a161_0x409b77(0x197)](),'uuid':z[a161_0x409b77(0x197)]()['optional'](),'next':z[a161_0x409b77(0x197)]()['optional']()},WaitStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z[a161_0x409b77(0x1b6)](a161_0x409b77(0x190)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x409b77(0x191)]({'activation':z[a161_0x409b77(0x197)]()}),ActivationStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z[a161_0x409b77(0x1b6)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x409b77(0x191)]({'name':z['string'](),'segment':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'segment_id':z['string']()[a161_0x409b77(0x19e)](),'excluded':z[a161_0x409b77(0x1ac)]()['optional'](),'next':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)]()}),DecisionPointStepParamsDefSchema=z[a161_0x409b77(0x191)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z['literal'](a161_0x409b77(0x1b7)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x409b77(0x191)]({'id':z['string']()[a161_0x409b77(0x19e)](),'name':z[a161_0x409b77(0x197)](),'percentage':z[a161_0x409b77(0x1a6)](),'next':z['string']()[a161_0x409b77(0x19e)]()}),AbTestStepParamsDefSchema=z[a161_0x409b77(0x191)]({'variants':z[a161_0x409b77(0x19d)](AbTestVariantDefSchema),'unique_id':z['string']()[a161_0x409b77(0x19e)](),'customized_split':z['boolean']()[a161_0x409b77(0x19e)]()}),AbTestStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z[a161_0x409b77(0x1b6)](a161_0x409b77(0x1a9)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z[a161_0x409b77(0x1b6)]('merge')}),JumpStepParamsDefSchema=z[a161_0x409b77(0x191)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z[a161_0x409b77(0x1b6)](a161_0x409b77(0x1ab)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x409b77(0x191)]({...StepBaseFields,'type':z[a161_0x409b77(0x1b6)]('end')})[a161_0x409b77(0x198)]();export const StepDefSchema=z['discriminatedUnion']('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x409b77(0x191)]({'name':z[a161_0x409b77(0x197)](),'description':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'id':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a161_0x409b77(0x19d)](CriteriaDefSchema)[a161_0x409b77(0x19e)](),'milestone':CriteriaDefSchema[a161_0x409b77(0x19e)](),'root_step':z['string']()[a161_0x409b77(0x19e)](),'steps':z['array'](StepDefSchema)[a161_0x409b77(0x19e)]()});export const JourneyEntryDefSchema=z['object']({'name':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'version':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'state':JourneyStateTypeSchema[a161_0x409b77(0x19e)](),'latest':z[a161_0x409b77(0x1ac)]()['optional'](),'stages':z['array'](StageDefSchema),'id':z['string']()[a161_0x409b77(0x19e)](),'version_number':z[a161_0x409b77(0x1a6)]()[a161_0x409b77(0x19e)](),'goal':CriteriaDefSchema[a161_0x409b77(0x19e)](),'reentry':ReentryModeTypeSchema[a161_0x409b77(0x19e)]()});function a161_0x6e59(_0x17022b,_0x4ac188){_0x17022b=_0x17022b-0x190;const _0x1c5604=a161_0x1c56();let _0x6e599d=_0x1c5604[_0x17022b];return _0x6e599d;}export const JourneyDefSchema=z['lazy'](()=>z['object']({'type':z[a161_0x409b77(0x1b6)](a161_0x409b77(0x1af)),'name':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x1aa)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a161_0x409b77(0x197)]()['optional'](),'bundle_id':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'bundle_name':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'folder_id':z[a161_0x409b77(0x197)]()['optional'](),'reentry':ReentryModeTypeSchema[a161_0x409b77(0x19e)](),'allow_reentry':z[a161_0x409b77(0x1ac)]()[a161_0x409b77(0x19e)](),'goal':CriteriaDefSchema['optional'](),'id':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'version':z[a161_0x409b77(0x197)]()[a161_0x409b77(0x19e)](),'version_number':z[a161_0x409b77(0x1a6)]()['optional'](),'stages':z[a161_0x409b77(0x19d)](StageDefSchema)[a161_0x409b77(0x19e)](),'versions':z[a161_0x409b77(0x19d)](JourneyEntryDefSchema)[a161_0x409b77(0x19e)](),'journeys':z[a161_0x409b77(0x19d)](JourneyEntryDefSchema)[a161_0x409b77(0x19e)](),'segments':z[a161_0x409b77(0x1b4)](z[a161_0x409b77(0x197)](),EmbeddedSegmentDefSchema)[a161_0x409b77(0x19e)](),'activations':z[a161_0x409b77(0x1b4)](z[a161_0x409b77(0x197)](),ActivationDefSchema)[a161_0x409b77(0x19e)]()})['refine'](_0x250466=>{const _0x2f3a90=a161_0x409b77,_0x530258=[_0x250466[_0x2f3a90(0x1a4)],_0x250466[_0x2f3a90(0x1ae)],_0x250466['versions']][_0x2f3a90(0x1ad)](_0x33cdb3=>Array[_0x2f3a90(0x193)](_0x33cdb3)&&_0x33cdb3[_0x2f3a90(0x195)]>0x0)[_0x2f3a90(0x195)];return _0x530258===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a161_0x4790f3=a161_0x1f63;(function(_0x3a260f,_0x13ca06){const _0x344757=a161_0x1f63,_0x3b678f=_0x3a260f();while(!![]){try{const _0x3dd856=-parseInt(_0x344757(0x100))/0x1*(parseInt(_0x344757(0x10b))/0x2)+-parseInt(_0x344757(0xe6))/0x3+-parseInt(_0x344757(0xf1))/0x4+-parseInt(_0x344757(0x10c))/0x5+-parseInt(_0x344757(0xf0))/0x6*(parseInt(_0x344757(0x108))/0x7)+parseInt(_0x344757(0x103))/0x8+-parseInt(_0x344757(0xf8))/0x9*(-parseInt(_0x344757(0xe8))/0xa);if(_0x3dd856===_0x13ca06)break;else _0x3b678f['push'](_0x3b678f['shift']());}catch(_0x4ff096){_0x3b678f['push'](_0x3b678f['shift']());}}}(a161_0x34cf,0xde819));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x4790f3(0xf3)](['draft',a161_0x4790f3(0x105),'launched']);export const ReentryModeTypeSchema=z[a161_0x4790f3(0xf3)](['no_reentry',a161_0x4790f3(0x106),a161_0x4790f3(0xef)]);export const WaitUnitTypeSchema=z[a161_0x4790f3(0xf3)]([a161_0x4790f3(0xee),a161_0x4790f3(0xe7)]);export const StepTypeValueSchema=z[a161_0x4790f3(0xf3)]([a161_0x4790f3(0xf5),'activation','decision_point',a161_0x4790f3(0xf9),a161_0x4790f3(0xed),a161_0x4790f3(0xf7),a161_0x4790f3(0xfd)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x4790f3(0xf6)]()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x4790f3(0x107)]({'journey':z[a161_0x4790f3(0xf6)](),'stage':z[a161_0x4790f3(0xf6)](),'bundle_id':z['string']()[a161_0x4790f3(0xec)]()});export const CriteriaDefSchema=z[a161_0x4790f3(0x107)]({'name':z['string'](),'description':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'segment':z['string'](),'target':JumpTargetDefSchema[a161_0x4790f3(0xec)]()});const WaitConditionTimeoutDefSchema=z[a161_0x4790f3(0x107)]({'duration':z[a161_0x4790f3(0xeb)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a161_0x4790f3(0xec)]()}),WaitConditionDefSchema=z[a161_0x4790f3(0x107)]({'segment':z[a161_0x4790f3(0xf6)](),'next':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x4790f3(0xec)]()}),WaitStepParamsDefSchema=z[a161_0x4790f3(0x107)]({'duration':z[a161_0x4790f3(0xeb)]()['optional'](),'unit':WaitUnitTypeSchema[a161_0x4790f3(0xec)](),'wait_until':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a161_0x4790f3(0xfb)](z['string']())[a161_0x4790f3(0xec)]()}),StepBaseFields={'name':z[a161_0x4790f3(0xf6)](),'uuid':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'next':z['string']()[a161_0x4790f3(0xec)]()},WaitStepDefSchema=z[a161_0x4790f3(0x107)]({...StepBaseFields,'type':z[a161_0x4790f3(0x10a)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x4790f3(0x107)]({'activation':z[a161_0x4790f3(0xf6)]()}),ActivationStepDefSchema=z[a161_0x4790f3(0x107)]({...StepBaseFields,'type':z[a161_0x4790f3(0x10a)](a161_0x4790f3(0x102)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x4790f3(0x107)]({'name':z[a161_0x4790f3(0xf6)](),'segment':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'segment_id':z[a161_0x4790f3(0xf6)]()['optional'](),'excluded':z['boolean']()[a161_0x4790f3(0xec)](),'next':z['string']()[a161_0x4790f3(0xec)]()}),DecisionPointStepParamsDefSchema=z[a161_0x4790f3(0x107)]({'branches':z[a161_0x4790f3(0xfb)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x4790f3(0x107)]({...StepBaseFields,'type':z[a161_0x4790f3(0x10a)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x4790f3(0x107)]({'id':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'name':z[a161_0x4790f3(0xf6)](),'percentage':z[a161_0x4790f3(0xeb)](),'next':z[a161_0x4790f3(0xf6)]()['optional']()}),AbTestStepParamsDefSchema=z[a161_0x4790f3(0x107)]({'variants':z[a161_0x4790f3(0xfb)](AbTestVariantDefSchema),'unique_id':z['string']()['optional'](),'customized_split':z['boolean']()['optional']()}),AbTestStepDefSchema=z[a161_0x4790f3(0x107)]({...StepBaseFields,'type':z[a161_0x4790f3(0x10a)](a161_0x4790f3(0xf9)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x4790f3(0x107)]({...StepBaseFields,'type':z[a161_0x4790f3(0x10a)](a161_0x4790f3(0xed))}),JumpStepParamsDefSchema=z[a161_0x4790f3(0x107)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x4790f3(0xf7)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x4790f3(0x10a)](a161_0x4790f3(0xfd))})[a161_0x4790f3(0xf2)]();export const StepDefSchema=z['discriminatedUnion'](a161_0x4790f3(0x101),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a161_0x34cf(){const _0x4f1d74=['Journey\x20name\x20is\x20required','number','optional','merge','day','reentry_always','6704688JnTHkl','1561192bxyVjs','passthrough','enum','stages','wait','string','jump','1197aQtHkf','ab_test','journeys','array','boolean','end','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','length','11090Chppcy','type','activation','4846296XZxvQG','journey','simulation','reentry_unless_goal_achieved','object','7nuoDWD','record','literal','140gclOix','1411465nBbsEV','2044272BDzMoS','week','267170QYnbJX','isArray'];a161_0x34cf=function(){return _0x4f1d74;};return a161_0x34cf();}export const StageDefSchema=z[a161_0x4790f3(0x107)]({'name':z[a161_0x4790f3(0xf6)](),'description':z['string']()['optional'](),'id':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'entry_criteria':CriteriaDefSchema[a161_0x4790f3(0xec)](),'exit_criteria':z[a161_0x4790f3(0xfb)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a161_0x4790f3(0xec)](),'root_step':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'steps':z['array'](StepDefSchema)[a161_0x4790f3(0xec)]()});function a161_0x1f63(_0x3e9de0,_0x4d9dab){_0x3e9de0=_0x3e9de0-0xe6;const _0x34cfd9=a161_0x34cf();let _0x1f6386=_0x34cfd9[_0x3e9de0];return _0x1f6386;}export const JourneyEntryDefSchema=z[a161_0x4790f3(0x107)]({'name':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'version':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'state':JourneyStateTypeSchema[a161_0x4790f3(0xec)](),'latest':z[a161_0x4790f3(0xfc)]()[a161_0x4790f3(0xec)](),'stages':z[a161_0x4790f3(0xfb)](StageDefSchema),'id':z['string']()[a161_0x4790f3(0xec)](),'version_number':z[a161_0x4790f3(0xeb)]()[a161_0x4790f3(0xec)](),'goal':CriteriaDefSchema[a161_0x4790f3(0xec)](),'reentry':ReentryModeTypeSchema[a161_0x4790f3(0xec)]()});export const JourneyDefSchema=z['lazy'](()=>z['object']({'type':z['literal'](a161_0x4790f3(0x104)),'name':z['string']()['min'](0x1,a161_0x4790f3(0xea)),'description':z[a161_0x4790f3(0xf6)]()['optional'](),'bundle_id':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'bundle_name':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'folder_id':z[a161_0x4790f3(0xf6)]()[a161_0x4790f3(0xec)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a161_0x4790f3(0xfc)]()[a161_0x4790f3(0xec)](),'goal':CriteriaDefSchema[a161_0x4790f3(0xec)](),'id':z['string']()[a161_0x4790f3(0xec)](),'version':z[a161_0x4790f3(0xf6)]()['optional'](),'version_number':z[a161_0x4790f3(0xeb)]()[a161_0x4790f3(0xec)](),'stages':z['array'](StageDefSchema)[a161_0x4790f3(0xec)](),'versions':z[a161_0x4790f3(0xfb)](JourneyEntryDefSchema)['optional'](),'journeys':z[a161_0x4790f3(0xfb)](JourneyEntryDefSchema)[a161_0x4790f3(0xec)](),'segments':z['record'](z[a161_0x4790f3(0xf6)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a161_0x4790f3(0x109)](z[a161_0x4790f3(0xf6)](),ActivationDefSchema)[a161_0x4790f3(0xec)]()})['refine'](_0x330c34=>{const _0x1d896a=a161_0x4790f3,_0x1719e0=[_0x330c34[_0x1d896a(0xfa)],_0x330c34[_0x1d896a(0xf4)],_0x330c34['versions']]['filter'](_0x2650f1=>Array[_0x1d896a(0xe9)](_0x2650f1)&&_0x2650f1[_0x1d896a(0xff)]>0x0)['length'];return _0x1719e0===0x1;},{'message':a161_0x4790f3(0xfe)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a163_0x446f(_0x310534,_0x26e11c){_0x310534=_0x310534-0x66;var _0x2f71c1=a163_0x2f71();var _0x446f57=_0x2f71c1[_0x310534];return _0x446f57;}function a163_0x2f71(){var _0x3a8160=['7KSpTii','3hSLxuR','114myPHTp','33VvedDY','1555292HoXsui','3547410VSKKdJ','873254hqeSGD','10079991eVBrpp','213295MhZCHY','11605688vkgaNC','1762020tBAjAK'];a163_0x2f71=function(){return _0x3a8160;};return a163_0x2f71();}(function(_0x3af1fb,_0x2b2156){var _0x316c04=a163_0x446f,_0x59fe9a=_0x3af1fb();while(!![]){try{var _0x47336e=-parseInt(_0x316c04(0x70))/0x1+-parseInt(_0x316c04(0x69))/0x2+parseInt(_0x316c04(0x6b))/0x3*(parseInt(_0x316c04(0x6e))/0x4)+parseInt(_0x316c04(0x67))/0x5*(parseInt(_0x316c04(0x6c))/0x6)+-parseInt(_0x316c04(0x6a))/0x7*(-parseInt(_0x316c04(0x68))/0x8)+parseInt(_0x316c04(0x66))/0x9+parseInt(_0x316c04(0x6f))/0xa*(-parseInt(_0x316c04(0x6d))/0xb);if(_0x47336e===_0x2b2156)break;else _0x59fe9a['push'](_0x59fe9a['shift']());}catch(_0x458ce3){_0x59fe9a['push'](_0x59fe9a['shift']());}}}(a163_0x2f71,0xe850f));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ (function(_0x1a8f84,_0x19bd51){var _0x25c112=a163_0x9793,_0x5661c6=_0x1a8f84();while(!![]){try{var _0x13eafd=-parseInt(_0x25c112(0xaa))/0x1+-parseInt(_0x25c112(0xb0))/0x2+parseInt(_0x25c112(0xab))/0x3*(-parseInt(_0x25c112(0xae))/0x4)+-parseInt(_0x25c112(0xa9))/0x5+parseInt(_0x25c112(0xaf))/0x6*(-parseInt(_0x25c112(0xb1))/0x7)+-parseInt(_0x25c112(0xad))/0x8+parseInt(_0x25c112(0xac))/0x9;if(_0x13eafd===_0x19bd51)break;else _0x5661c6['push'](_0x5661c6['shift']());}catch(_0x3fb606){_0x5661c6['push'](_0x5661c6['shift']());}}}(a163_0x1c7c,0x94e18));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_0x9793(_0x16974b,_0x132e85){_0x16974b=_0x16974b-0xa9;var _0x1c7c2d=a163_0x1c7c();var _0x97937b=_0x1c7c2d[_0x16974b];return _0x97937b;}function a163_0x1c7c(){var _0x4ca0e7=['922359JbDXnk','6XzKcde','40344309hvuOGd','1503096rLRrvs','1617596iHFJLk','2281134iGqprb','1684000VQqFeI','14CbQAHj','1757315cbqbiZ'];a163_0x1c7c=function(){return _0x4ca0e7;};return a163_0x1c7c();}
@@ -1 +1 @@
1
- const a164_0x455e43=a164_0x4a86;(function(_0x2e7917,_0x302de5){const _0x16df92=a164_0x4a86,_0x171d5f=_0x2e7917();while(!![]){try{const _0x16084e=parseInt(_0x16df92(0x174))/0x1+-parseInt(_0x16df92(0x162))/0x2*(parseInt(_0x16df92(0x155))/0x3)+-parseInt(_0x16df92(0x16d))/0x4*(-parseInt(_0x16df92(0x15c))/0x5)+parseInt(_0x16df92(0x18f))/0x6+-parseInt(_0x16df92(0x194))/0x7+parseInt(_0x16df92(0x171))/0x8+parseInt(_0x16df92(0x15b))/0x9;if(_0x16084e===_0x302de5)break;else _0x171d5f['push'](_0x171d5f['shift']());}catch(_0x227d06){_0x171d5f['push'](_0x171d5f['shift']());}}}(a164_0x2af0,0x2ca09));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x455e43(0x16b)](['Equal',a164_0x455e43(0x167),a164_0x455e43(0x16c),a164_0x455e43(0x18d),'LessEqual','In',a164_0x455e43(0x15f),a164_0x455e43(0x170),a164_0x455e43(0x156),a164_0x455e43(0x16a),a164_0x455e43(0x17b),a164_0x455e43(0x196),'StartWith',a164_0x455e43(0x178),'TimeRange']);export const TimeUnitSchema=z[a164_0x455e43(0x16b)](['second',a164_0x455e43(0x176),a164_0x455e43(0x189),'day',a164_0x455e43(0x15e),a164_0x455e43(0x188),a164_0x455e43(0x163)]);export const AggregationTypeSchema=z[a164_0x455e43(0x16b)]([a164_0x455e43(0x169),a164_0x455e43(0x172),'Average','Min',a164_0x455e43(0x151),a164_0x455e43(0x14e),a164_0x455e43(0x186),'Last']);const TemporalValueSchema=z[a164_0x455e43(0x180)]([z[a164_0x455e43(0x182)]({'timestamp':z[a164_0x455e43(0x181)]()}),z[a164_0x455e43(0x182)]({'last':z[a164_0x455e43(0x180)]([z[a164_0x455e43(0x184)](),z[a164_0x455e43(0x165)](z[a164_0x455e43(0x181)](),z[a164_0x455e43(0x184)]())]),'unit':z[a164_0x455e43(0x181)]()})]),OperatorValueSchema=z[a164_0x455e43(0x180)]([z[a164_0x455e43(0x181)](),z[a164_0x455e43(0x184)](),z[a164_0x455e43(0x17d)](),TemporalValueSchema,z['array'](z[a164_0x455e43(0x180)]([z[a164_0x455e43(0x181)](),z[a164_0x455e43(0x184)](),z[a164_0x455e43(0x17d)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a164_0x455e43(0x167),'GreaterEqual',a164_0x455e43(0x16c),'LessEqual','In',a164_0x455e43(0x196),a164_0x455e43(0x17f),a164_0x455e43(0x178),'Regexp',a164_0x455e43(0x16a),a164_0x455e43(0x17b)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x455e43(0x16a),'TimeWithinNext']);export const OperatorDefSchema=z[a164_0x455e43(0x182)]({'type':OperatorTypeSchema,'not':z[a164_0x455e43(0x17d)]()['optional'](),'value':OperatorValueSchema[a164_0x455e43(0x154)](),'min':z[a164_0x455e43(0x180)]([z['number'](),z[a164_0x455e43(0x181)](),TemporalValueSchema])[a164_0x455e43(0x154)](),'max':z['union']([z[a164_0x455e43(0x184)](),z[a164_0x455e43(0x181)](),TemporalValueSchema])[a164_0x455e43(0x154)](),'unit':TimeUnitSchema['optional'](),'duration':z[a164_0x455e43(0x182)]({'day':z[a164_0x455e43(0x184)]()[a164_0x455e43(0x154)](),'week':z[a164_0x455e43(0x184)]()['optional'](),'month':z[a164_0x455e43(0x184)]()[a164_0x455e43(0x154)](),'year':z['number']()['optional'](),'hour':z[a164_0x455e43(0x184)]()[a164_0x455e43(0x154)](),'minute':z[a164_0x455e43(0x184)]()['optional'](),'second':z[a164_0x455e43(0x184)]()[a164_0x455e43(0x154)]()})['optional'](),'from':z[a164_0x455e43(0x182)]({'last':z['union']([z[a164_0x455e43(0x184)](),z[a164_0x455e43(0x181)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x455e43(0x17d)]()[a164_0x455e43(0x154)]()})['superRefine']((_0x545487,_0x1b8642)=>{const _0x510b72=a164_0x455e43;OPERATORS_REQUIRING_VALUE[_0x510b72(0x158)](_0x545487[_0x510b72(0x183)])&&(_0x545487[_0x510b72(0x177)]===undefined||_0x545487['value']===null)&&_0x1b8642[_0x510b72(0x15a)]({'code':_0x510b72(0x192),'message':_0x510b72(0x175)+_0x545487['type']+'\x27\x20requires\x20a\x20value','path':[_0x510b72(0x177)]}),_0x545487[_0x510b72(0x183)]==='Between'&&_0x545487[_0x510b72(0x18b)]===undefined&&_0x545487[_0x510b72(0x17e)]===undefined&&_0x1b8642[_0x510b72(0x15a)]({'code':_0x510b72(0x192),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0x510b72(0x160)}}),OPERATORS_REQUIRING_UNIT[_0x510b72(0x158)](_0x545487[_0x510b72(0x183)])&&_0x545487[_0x510b72(0x177)]!==undefined&&!_0x545487[_0x510b72(0x161)]&&_0x1b8642[_0x510b72(0x15a)]({'code':_0x510b72(0x192),'message':_0x510b72(0x175)+_0x545487[_0x510b72(0x183)]+_0x510b72(0x153),'path':[_0x510b72(0x161)],'params':{'validationCode':_0x510b72(0x190)}}),_0x545487[_0x510b72(0x183)]===_0x510b72(0x191)&&(!_0x545487[_0x510b72(0x159)]&&_0x1b8642['addIssue']({'code':_0x510b72(0x192),'message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0x510b72(0x159)]}),!_0x545487[_0x510b72(0x197)]&&_0x1b8642['addIssue']({'code':'custom','message':_0x510b72(0x168),'path':[_0x510b72(0x197)]}));});function a164_0x2af0(){const _0x29e043=['GreaterEqual','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','1689774ZNQFJL','MISSING_TIME_UNIT','TimeRange','custom','all','2316342oNPpUE','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Contain','from','include','Last','CountDistinct','segment','literal','Max','column','\x27\x20requires\x20a\x20time\x20unit','optional','3DwVwZr','IsNull','timestamp','has','duration','addIssue','1379196MMMSdH','10obQRWt','realtime','week','Between','MISSING_BETWEEN_BOUNDS','unit','593930NtyZVQ','year','lazy','record','Column','Greater','TimeRange\x20operator\x20requires\x20\x27from\x27','Count','TimeWithinPast','enum','Less','21992pfkRbq','array','superRefine','Regexp','2783944rWBvRw','Sum','Min','16802AfpltN','Operator\x20\x27','minute','value','EndWith','any','operator','TimeWithinNext','funnel_stage','boolean','max','StartWith','union','string','object','type','number','And','First','exclude','month','hour','batch','min','Segment\x20reference\x20must\x20not\x20be\x20empty'];a164_0x2af0=function(){return _0x29e043;};return a164_0x2af0();}export const ArrayMatchingSchema=z['union']([z[a164_0x455e43(0x150)](a164_0x455e43(0x179)),z[a164_0x455e43(0x150)](a164_0x455e43(0x193)),z[a164_0x455e43(0x182)]({'atLeast':z[a164_0x455e43(0x184)]()}),z[a164_0x455e43(0x182)]({'atMost':z[a164_0x455e43(0x184)]()}),z[a164_0x455e43(0x182)]({'exactly':z['number']()})]);export const AggregationDefSchema=z['discriminatedUnion'](a164_0x455e43(0x183),[z[a164_0x455e43(0x182)]({'type':z[a164_0x455e43(0x16b)]([a164_0x455e43(0x172),a164_0x455e43(0x173),'Max','Average']),'column':z['string'](),'groupingColumns':z[a164_0x455e43(0x16e)](z['string']())[a164_0x455e43(0x154)]()}),z[a164_0x455e43(0x182)]({'type':z['literal'](a164_0x455e43(0x169)),'groupingColumns':z[a164_0x455e43(0x16e)](z[a164_0x455e43(0x181)]())[a164_0x455e43(0x154)]()}),z['object']({'type':z[a164_0x455e43(0x150)](a164_0x455e43(0x14e)),'columns':z[a164_0x455e43(0x16e)](z[a164_0x455e43(0x181)]())}),z[a164_0x455e43(0x182)]({'type':z['enum']([a164_0x455e43(0x186),a164_0x455e43(0x199)]),'column':z[a164_0x455e43(0x181)](),'orderColumn':z[a164_0x455e43(0x181)](),'groupingColumns':z[a164_0x455e43(0x16e)](z[a164_0x455e43(0x181)]())[a164_0x455e43(0x154)]()})]);export const TimeWindowDefSchema=z[a164_0x455e43(0x182)]({'duration':z[a164_0x455e43(0x184)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x455e43(0x16a),a164_0x455e43(0x17b),a164_0x455e43(0x191)]);export const FilterColumnConditionDefSchema=z[a164_0x455e43(0x182)]({'type':z[a164_0x455e43(0x150)](a164_0x455e43(0x166)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x455e43(0x154)]()})[a164_0x455e43(0x16f)]((_0x26fd0f,_0xabf9c7)=>{const _0xcd2fcb=a164_0x455e43,_0x2c74dd=_0x26fd0f[_0xcd2fcb(0x17a)][_0xcd2fcb(0x183)];_0x26fd0f[_0xcd2fcb(0x152)]===_0xcd2fcb(0x157)?!TIMESTAMP_OPERATORS[_0xcd2fcb(0x158)](_0x2c74dd)&&_0xabf9c7['addIssue']({'code':_0xcd2fcb(0x192),'message':_0xcd2fcb(0x18e)+_0x2c74dd+'\x27)','path':[_0xcd2fcb(0x17a),_0xcd2fcb(0x183)]}):TIMESTAMP_OPERATORS[_0xcd2fcb(0x158)](_0x2c74dd)&&_0xabf9c7[_0xcd2fcb(0x15a)]({'code':_0xcd2fcb(0x192),'message':_0xcd2fcb(0x175)+_0x2c74dd+_0xcd2fcb(0x195),'path':[_0xcd2fcb(0x17a),_0xcd2fcb(0x183)]});});export const FilterRuleDefSchema=z[a164_0x455e43(0x182)]({'type':z['literal']('And'),'conditions':z[a164_0x455e43(0x16e)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x455e43(0x164)](()=>z[a164_0x455e43(0x182)]({'type':z['literal']('Value'),'attribute':z[a164_0x455e43(0x181)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x455e43(0x154)](),'exclude':z[a164_0x455e43(0x17d)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x455e43(0x181)]()[a164_0x455e43(0x154)](),'filter':FilterRuleDefSchema[a164_0x455e43(0x154)](),'limit':z['number']()['optional']()}));export const BehaviorConditionDefSchema=z[a164_0x455e43(0x164)](()=>z[a164_0x455e43(0x182)]({'type':z[a164_0x455e43(0x150)]('Behavior'),'attribute':z[a164_0x455e43(0x181)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x455e43(0x154)](),'exclude':z[a164_0x455e43(0x17d)]()[a164_0x455e43(0x154)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x455e43(0x181)]()[a164_0x455e43(0x154)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a164_0x455e43(0x154)](),'limit':z[a164_0x455e43(0x184)]()[a164_0x455e43(0x154)]()}));function a164_0x4a86(_0x370703,_0x2717fe){_0x370703=_0x370703-0x14e;const _0x2af08f=a164_0x2af0();let _0x4a8615=_0x2af08f[_0x370703];return _0x4a8615;}export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x455e43(0x150)](a164_0x455e43(0x166)),'column':z[a164_0x455e43(0x181)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x455e43(0x164)](()=>z[a164_0x455e43(0x182)]({'type':z['enum']([a164_0x455e43(0x185),'Or']),'conditions':z[a164_0x455e43(0x16e)](ConditionDefSchema),'description':z[a164_0x455e43(0x181)]()['optional']()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a164_0x455e43(0x16b)]([a164_0x455e43(0x198),a164_0x455e43(0x187)]),'segment':z[a164_0x455e43(0x181)]()[a164_0x455e43(0x18b)](0x1,a164_0x455e43(0x18c))});export const ConditionDefSchema=z[a164_0x455e43(0x164)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a164_0x455e43(0x182)]({'type':z[a164_0x455e43(0x16b)]([a164_0x455e43(0x185),'Or']),'conditions':z[a164_0x455e43(0x16e)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentDefSchema=z[a164_0x455e43(0x182)]({'type':z['literal'](a164_0x455e43(0x14f))[a164_0x455e43(0x154)](),'name':z['string']()[a164_0x455e43(0x18b)](0x1,'Segment\x20name\x20is\x20required'),'description':z[a164_0x455e43(0x181)]()[a164_0x455e43(0x154)](),'folder':z[a164_0x455e43(0x181)]()[a164_0x455e43(0x154)](),'rule':RuleDefSchema[a164_0x455e43(0x154)](),'kind':z['enum']([a164_0x455e43(0x18a),a164_0x455e43(0x15d),a164_0x455e43(0x17c)])[a164_0x455e43(0x154)](),'visible':z[a164_0x455e43(0x17d)]()[a164_0x455e43(0x154)](),'activations':z['array'](z[a164_0x455e43(0x179)]())[a164_0x455e43(0x154)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x25a17e=a164_0x30a8;(function(_0x2aa1fd,_0x39613d){const _0x46a9f3=a164_0x30a8,_0xc8e9c=_0x2aa1fd();while(!![]){try{const _0x19793e=-parseInt(_0x46a9f3(0x89))/0x1+-parseInt(_0x46a9f3(0x7f))/0x2*(parseInt(_0x46a9f3(0xb3))/0x3)+-parseInt(_0x46a9f3(0x74))/0x4+-parseInt(_0x46a9f3(0xad))/0x5+parseInt(_0x46a9f3(0xb0))/0x6+parseInt(_0x46a9f3(0x9b))/0x7+-parseInt(_0x46a9f3(0xb9))/0x8*(-parseInt(_0x46a9f3(0x83))/0x9);if(_0x19793e===_0x39613d)break;else _0xc8e9c['push'](_0xc8e9c['shift']());}catch(_0xc1833d){_0xc8e9c['push'](_0xc8e9c['shift']());}}}(a164_0x3eff,0x858ad));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0xb2),a164_0x25a17e(0x91),a164_0x25a17e(0x98),a164_0x25a17e(0x90),a164_0x25a17e(0xa1),'In','Between','Regexp',a164_0x25a17e(0x85),a164_0x25a17e(0x6f),'TimeWithinNext',a164_0x25a17e(0x99),'StartWith',a164_0x25a17e(0x96),a164_0x25a17e(0x7d)]);export const TimeUnitSchema=z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0x9c),a164_0x25a17e(0x6d),a164_0x25a17e(0x94),a164_0x25a17e(0xb6),a164_0x25a17e(0x78),a164_0x25a17e(0x8f),a164_0x25a17e(0x77)]);export const AggregationTypeSchema=z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0x80),a164_0x25a17e(0x7b),'Average','Min',a164_0x25a17e(0x8a),a164_0x25a17e(0xa8),a164_0x25a17e(0xac),a164_0x25a17e(0x7e)]);const TemporalValueSchema=z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0x76)]({'timestamp':z[a164_0x25a17e(0x73)]()}),z[a164_0x25a17e(0x76)]({'last':z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0xa7)](),z[a164_0x25a17e(0x82)](z[a164_0x25a17e(0x73)](),z['number']())]),'unit':z[a164_0x25a17e(0x73)]()})]),OperatorValueSchema=z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0x73)](),z[a164_0x25a17e(0xa7)](),z[a164_0x25a17e(0x81)](),TemporalValueSchema,z[a164_0x25a17e(0x9a)](z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0x73)](),z[a164_0x25a17e(0xa7)](),z[a164_0x25a17e(0x81)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x25a17e(0xb2),a164_0x25a17e(0x91),a164_0x25a17e(0x90),a164_0x25a17e(0x98),a164_0x25a17e(0xa1),'In','Contain','StartWith','EndWith',a164_0x25a17e(0xb7),a164_0x25a17e(0x6f),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set([a164_0x25a17e(0x6f),a164_0x25a17e(0xb4)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a164_0x25a17e(0x81)]()['optional'](),'value':OperatorValueSchema[a164_0x25a17e(0x92)](),'min':z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0xa7)](),z[a164_0x25a17e(0x73)](),TemporalValueSchema])[a164_0x25a17e(0x92)](),'max':z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0xa7)](),z['string'](),TemporalValueSchema])[a164_0x25a17e(0x92)](),'unit':TimeUnitSchema[a164_0x25a17e(0x92)](),'duration':z[a164_0x25a17e(0x76)]({'day':z[a164_0x25a17e(0xa7)]()['optional'](),'week':z[a164_0x25a17e(0xa7)]()['optional'](),'month':z[a164_0x25a17e(0xa7)]()['optional'](),'year':z[a164_0x25a17e(0xa7)]()[a164_0x25a17e(0x92)](),'hour':z[a164_0x25a17e(0xa7)]()['optional'](),'minute':z[a164_0x25a17e(0xa7)]()['optional'](),'second':z[a164_0x25a17e(0xa7)]()[a164_0x25a17e(0x92)]()})['optional'](),'from':z[a164_0x25a17e(0x76)]({'last':z['union']([z[a164_0x25a17e(0xa7)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x25a17e(0x81)]()['optional']()})[a164_0x25a17e(0xa9)]((_0x5cce6d,_0x1bbe9e)=>{const _0x1f75ff=a164_0x25a17e;OPERATORS_REQUIRING_VALUE['has'](_0x5cce6d[_0x1f75ff(0xa6)])&&(_0x5cce6d[_0x1f75ff(0x95)]===undefined||_0x5cce6d[_0x1f75ff(0x95)]===null)&&_0x1bbe9e['addIssue']({'code':_0x1f75ff(0x79),'message':_0x1f75ff(0x6e)+_0x5cce6d[_0x1f75ff(0xa6)]+_0x1f75ff(0xae),'path':[_0x1f75ff(0x95)]}),_0x5cce6d[_0x1f75ff(0xa6)]==='Between'&&_0x5cce6d['min']===undefined&&_0x5cce6d[_0x1f75ff(0x8c)]===undefined&&_0x1bbe9e[_0x1f75ff(0x86)]({'code':'custom','message':_0x1f75ff(0xaf),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x1f75ff(0x75)](_0x5cce6d[_0x1f75ff(0xa6)])&&_0x5cce6d[_0x1f75ff(0x95)]!==undefined&&!_0x5cce6d[_0x1f75ff(0x8b)]&&_0x1bbe9e[_0x1f75ff(0x86)]({'code':_0x1f75ff(0x79),'message':_0x1f75ff(0x6e)+_0x5cce6d['type']+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x1f75ff(0x8b)],'params':{'validationCode':_0x1f75ff(0x9d)}}),_0x5cce6d[_0x1f75ff(0xa6)]===_0x1f75ff(0x7d)&&(!_0x5cce6d[_0x1f75ff(0x70)]&&_0x1bbe9e[_0x1f75ff(0x86)]({'code':_0x1f75ff(0x79),'message':_0x1f75ff(0xb8),'path':[_0x1f75ff(0x70)]}),!_0x5cce6d[_0x1f75ff(0x8e)]&&_0x1bbe9e[_0x1f75ff(0x86)]({'code':_0x1f75ff(0x79),'message':_0x1f75ff(0x84),'path':['from']}));});function a164_0x30a8(_0x131158,_0x1433b8){_0x131158=_0x131158-0x6d;const _0x3effa5=a164_0x3eff();let _0x30a84b=_0x3effa5[_0x131158];return _0x30a84b;}export const ArrayMatchingSchema=z[a164_0x25a17e(0x93)]([z[a164_0x25a17e(0x87)](a164_0x25a17e(0x71)),z['literal'](a164_0x25a17e(0x9e)),z['object']({'atLeast':z[a164_0x25a17e(0xa7)]()}),z[a164_0x25a17e(0x76)]({'atMost':z[a164_0x25a17e(0xa7)]()}),z[a164_0x25a17e(0x76)]({'exactly':z['number']()})]);export const AggregationDefSchema=z['discriminatedUnion']('type',[z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0x7b),a164_0x25a17e(0xa5),a164_0x25a17e(0x8a),a164_0x25a17e(0x72)]),'column':z[a164_0x25a17e(0x73)](),'groupingColumns':z['array'](z['string']())[a164_0x25a17e(0x92)]()}),z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x87)](a164_0x25a17e(0x80)),'groupingColumns':z[a164_0x25a17e(0x9a)](z['string']())['optional']()}),z['object']({'type':z[a164_0x25a17e(0x87)](a164_0x25a17e(0xa8)),'columns':z[a164_0x25a17e(0x9a)](z[a164_0x25a17e(0x73)]())}),z[a164_0x25a17e(0x76)]({'type':z['enum']([a164_0x25a17e(0xac),'Last']),'column':z[a164_0x25a17e(0x73)](),'orderColumn':z[a164_0x25a17e(0x73)](),'groupingColumns':z['array'](z[a164_0x25a17e(0x73)]())[a164_0x25a17e(0x92)]()})]);export const TimeWindowDefSchema=z[a164_0x25a17e(0x76)]({'duration':z[a164_0x25a17e(0xa7)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x25a17e(0x6f),a164_0x25a17e(0xb4),'TimeRange']);export const FilterColumnConditionDefSchema=z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x87)]('Column'),'column':z[a164_0x25a17e(0x73)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})[a164_0x25a17e(0xa9)]((_0x4aa514,_0x5e0774)=>{const _0x518dd6=a164_0x25a17e,_0x144bb6=_0x4aa514[_0x518dd6(0x9f)][_0x518dd6(0xa6)];_0x4aa514[_0x518dd6(0xa4)]==='timestamp'?!TIMESTAMP_OPERATORS[_0x518dd6(0x75)](_0x144bb6)&&_0x5e0774[_0x518dd6(0x86)]({'code':_0x518dd6(0x79),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x144bb6+'\x27)','path':['operator',_0x518dd6(0xa6)]}):TIMESTAMP_OPERATORS[_0x518dd6(0x75)](_0x144bb6)&&_0x5e0774[_0x518dd6(0x86)]({'code':_0x518dd6(0x79),'message':'Operator\x20\x27'+_0x144bb6+_0x518dd6(0x97),'path':[_0x518dd6(0x9f),_0x518dd6(0xa6)]});});function a164_0x3eff(){const _0x3c752f=['First','3504720bbGxFl','\x27\x20requires\x20a\x20value','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','3642906RvocYu','realtime','Equal','24RAkzNS','TimeWithinNext','Value','day','Regexp','TimeRange\x20operator\x20requires\x20\x27duration\x27','12968XFtXrj','minute','Operator\x20\x27','TimeWithinPast','duration','any','Average','string','4192840fHtjod','has','object','year','week','custom','funnel_stage','Sum','enum','TimeRange','Last','124024YHmfKI','Count','boolean','record','11241RbjqDy','TimeRange\x20operator\x20requires\x20\x27from\x27','IsNull','addIssue','literal','include','2277CaTRGu','Max','unit','max','exclude','from','month','GreaterEqual','Greater','optional','union','hour','value','EndWith','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Less','Contain','array','1139152aejPUx','second','MISSING_TIME_UNIT','all','operator','batch','LessEqual','lazy','Segment\x20reference\x20must\x20not\x20be\x20empty','column','Min','type','number','CountDistinct','superRefine','Segment\x20name\x20is\x20required','And'];a164_0x3eff=function(){return _0x3c752f;};return a164_0x3eff();}export const FilterRuleDefSchema=z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x87)](a164_0x25a17e(0xab)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x25a17e(0xa2)](()=>z['object']({'type':z[a164_0x25a17e(0x87)](a164_0x25a17e(0xb5)),'attribute':z[a164_0x25a17e(0x73)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x25a17e(0x81)]()['optional'](),'aggregation':AggregationDefSchema[a164_0x25a17e(0x92)](),'source':z[a164_0x25a17e(0x73)]()[a164_0x25a17e(0x92)](),'filter':FilterRuleDefSchema[a164_0x25a17e(0x92)](),'limit':z['number']()[a164_0x25a17e(0x92)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x87)]('Behavior'),'attribute':z[a164_0x25a17e(0x73)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x25a17e(0x81)]()[a164_0x25a17e(0x92)](),'aggregation':AggregationDefSchema[a164_0x25a17e(0x92)](),'source':z[a164_0x25a17e(0x73)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a164_0x25a17e(0x92)](),'limit':z[a164_0x25a17e(0xa7)]()[a164_0x25a17e(0x92)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x25a17e(0x87)]('Column'),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0xab),'Or']),'conditions':z[a164_0x25a17e(0x9a)](ConditionDefSchema),'description':z[a164_0x25a17e(0x73)]()[a164_0x25a17e(0x92)]()}));export const SegmentRefConditionDefSchema=z['object']({'type':z['enum']([a164_0x25a17e(0x88),a164_0x25a17e(0x8d)]),'segment':z[a164_0x25a17e(0x73)]()['min'](0x1,a164_0x25a17e(0xa3))});export const ConditionDefSchema=z['lazy'](()=>z[a164_0x25a17e(0x93)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x25a17e(0xa2)](()=>z[a164_0x25a17e(0x76)]({'type':z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0xab),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z['string']()[a164_0x25a17e(0x92)]()}));export const SegmentDefSchema=z[a164_0x25a17e(0x76)]({'type':z['literal']('segment')[a164_0x25a17e(0x92)](),'name':z[a164_0x25a17e(0x73)]()['min'](0x1,a164_0x25a17e(0xaa)),'description':z[a164_0x25a17e(0x73)]()[a164_0x25a17e(0x92)](),'folder':z[a164_0x25a17e(0x73)]()[a164_0x25a17e(0x92)](),'rule':RuleDefSchema[a164_0x25a17e(0x92)](),'kind':z[a164_0x25a17e(0x7c)]([a164_0x25a17e(0xa0),a164_0x25a17e(0xb1),a164_0x25a17e(0x7a)])[a164_0x25a17e(0x92)](),'visible':z[a164_0x25a17e(0x81)]()[a164_0x25a17e(0x92)](),'activations':z['array'](z['any']())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a165_0x5484(_0x267f17,_0x25cc49){_0x267f17=_0x267f17-0xcf;const _0x1cef5f=a165_0x1cef();let _0x548402=_0x1cef5f[_0x267f17];return _0x548402;}const a165_0x339dfa=a165_0x5484;(function(_0x2bab13,_0x6a6e82){const _0x3a78e4=a165_0x5484,_0x2dc824=_0x2bab13();while(!![]){try{const _0x45276a=parseInt(_0x3a78e4(0xd2))/0x1*(parseInt(_0x3a78e4(0xef))/0x2)+-parseInt(_0x3a78e4(0xe1))/0x3*(-parseInt(_0x3a78e4(0xde))/0x4)+-parseInt(_0x3a78e4(0xd4))/0x5*(-parseInt(_0x3a78e4(0xe2))/0x6)+parseInt(_0x3a78e4(0xe6))/0x7*(parseInt(_0x3a78e4(0xe9))/0x8)+parseInt(_0x3a78e4(0xea))/0x9*(-parseInt(_0x3a78e4(0xe0))/0xa)+parseInt(_0x3a78e4(0xec))/0xb*(parseInt(_0x3a78e4(0xcf))/0xc)+-parseInt(_0x3a78e4(0xe5))/0xd;if(_0x45276a===_0x6a6e82)break;else _0x2dc824['push'](_0x2dc824['shift']());}catch(_0x55dff8){_0x2dc824['push'](_0x2dc824['shift']());}}}(a165_0x1cef,0x60712));import{readFileSync}from'fs';import*as a165_0x21bd3e from'path';import*as a165_0x3a5d4a 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_0x339dfa(0xd5),'push']);export function isJourneyDef(_0x44498f){const _0x52f285=a165_0x339dfa;return typeof _0x44498f===_0x52f285(0xe4)&&_0x44498f!==null&&'type'in _0x44498f&&_0x44498f[_0x52f285(0xda)]===_0x52f285(0xd7);}export function isCampaignDef(_0x3306ce){const _0x323dd3=a165_0x339dfa;if(typeof _0x3306ce!=='object'||_0x3306ce===null)return![];const _0x289289=_0x3306ce,_0x2dc540=VALID_CAMPAIGN_TYPES['has'](_0x289289['campaign_type']);if(_0x289289[_0x323dd3(0xda)]==='campaign'&&_0x2dc540)return!![];if(_0x2dc540&&!_0x289289[_0x323dd3(0xda)])return!![];return![];}export function isTemplateDef(_0x40ae45){const _0x378f6d=a165_0x339dfa;return typeof _0x40ae45===_0x378f6d(0xe4)&&_0x40ae45!==null&&_0x378f6d(0xda)in _0x40ae45&&_0x40ae45[_0x378f6d(0xda)]===_0x378f6d(0xed);}export function isValidationResult(_0x1b98a3){return!('skipped'in _0x1b98a3);}export function createParseErrorResult(_0x482c40,_0x4ecb17,_0x2dc530,_0x231bbb,_0x4fe9d1=a165_0x339dfa(0xee)){const _0x464f82=a165_0x339dfa;return{'filePath':_0x482c40,'relativePath':_0x4ecb17,'source':_0x2dc530,'result':{'valid':![],'errors':[{'level':'error','path':'','code':_0x464f82(0xe7),'message':_0x231bbb}],'warnings':[]},'fileType':_0x4fe9d1};}export function validateYamlFile(_0x5d478b,_0x546a0f,_0x23b3fa={}){const _0x1f806d=a165_0x339dfa,_0x2ffab1=a165_0x21bd3e[_0x1f806d(0xe3)](_0x546a0f,_0x5d478b)||a165_0x21bd3e[_0x1f806d(0xdf)](_0x5d478b);try{const _0x318ea7=readFileSync(_0x5d478b,_0x1f806d(0xd6)),_0x544080=a165_0x3a5d4a[_0x1f806d(0xf0)](_0x318ea7),_0x1f29dd=_0x544080[_0x1f806d(0xe8)]();if(!_0x1f29dd)return createParseErrorResult(_0x5d478b,_0x2ffab1,_0x318ea7,_0x1f806d(0xdc));let _0x1d5be9;if(isJourneyDef(_0x1f29dd))_0x1d5be9=_0x1f806d(0xd7);else{if(isCampaignDef(_0x1f29dd))_0x1d5be9='campaign';else isTemplateDef(_0x1f29dd)?_0x1d5be9=_0x1f806d(0xed):_0x1d5be9='segment';}if(_0x23b3fa[_0x1f806d(0xd3)]&&_0x1d5be9!==_0x23b3fa['filterType'])return{'filePath':_0x5d478b,'relativePath':_0x2ffab1,'skipped':!![],'reason':'not\x20a\x20'+_0x23b3fa[_0x1f806d(0xd3)]};const _0x261f46={'source':_0x318ea7,'document':_0x544080};let _0xadf665;if(_0x1d5be9===_0x1f806d(0xd7))_0xadf665=validateJourneyDef(_0x1f29dd,_0x261f46);else{if(_0x1d5be9===_0x1f806d(0xeb))_0xadf665=validateCampaignDef(_0x1f29dd,_0x261f46);else _0x1d5be9===_0x1f806d(0xed)?_0xadf665=validateTemplateDef(_0x1f29dd,_0x261f46):_0xadf665=validateSegmentDef(_0x1f29dd,_0x261f46);}return{'filePath':_0x5d478b,'relativePath':_0x2ffab1,'source':_0x318ea7,'result':_0xadf665,'fileType':_0x1d5be9};}catch(_0x3b7b83){const _0x2874f6=_0x3b7b83 instanceof Error?_0x3b7b83[_0x1f806d(0xd9)]:String(_0x3b7b83);return createParseErrorResult(_0x5d478b,_0x2ffab1,'',_0x1f806d(0xd8)+_0x2874f6);}}function a165_0x1cef(){const _0x44645f=['journey','YAML\x20parse\x20error:\x20','message','type','map','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','valid','4ZjedFm','basename','69670yJCiRc','299499KzgBXt','78QiuYzW','relative','object','8999445EynCzs','1197DJUNXK','YAML_PARSE_ERROR','toJSON','20264VfzqEP','189zhXBUt','campaign','189563pBWyAr','template','segment','25982MkjAqP','parseDocument','156oKiByI','result','warnings','26lLrKpp','filterType','53395WVBEwJ','email','utf-8'];a165_0x1cef=function(){return _0x44645f;};return a165_0x1cef();}export function validateYamlFiles(_0x44314d,_0x1db386,_0x46ca5f={}){const _0x2ab463=a165_0x339dfa;return _0x44314d[_0x2ab463(0xdb)](_0x43b55d=>validateYamlFile(_0x43b55d,_0x1db386,_0x46ca5f));}export function calculateSummary(_0x3934f6){const _0x4e86c2=a165_0x339dfa;let _0x35cc1f=0x0,_0x3a1dc1=0x0,_0x192d97=0x0,_0x878786=0x0;for(const _0xb0f9c5 of _0x3934f6){if(!isValidationResult(_0xb0f9c5)){_0x878786++;continue;}_0xb0f9c5[_0x4e86c2(0xd0)][_0x4e86c2(0xdd)]?_0x35cc1f++:_0x3a1dc1++,_0x192d97+=_0xb0f9c5['result'][_0x4e86c2(0xd1)]['length'];}return{'validCount':_0x35cc1f,'invalidCount':_0x3a1dc1,'warningCount':_0x192d97,'skippedCount':_0x878786,'hasErrors':_0x3a1dc1>0x0};}
1
+ const a165_0x375ec0=a165_0x1bb1;(function(_0x82e433,_0x456317){const _0x54c09a=a165_0x1bb1,_0x202e9a=_0x82e433();while(!![]){try{const _0x1fc260=parseInt(_0x54c09a(0xd2))/0x1+-parseInt(_0x54c09a(0xca))/0x2*(-parseInt(_0x54c09a(0xbc))/0x3)+-parseInt(_0x54c09a(0xba))/0x4*(-parseInt(_0x54c09a(0xc7))/0x5)+-parseInt(_0x54c09a(0xc5))/0x6+parseInt(_0x54c09a(0xd1))/0x7+parseInt(_0x54c09a(0xbe))/0x8*(parseInt(_0x54c09a(0xd6))/0x9)+-parseInt(_0x54c09a(0xd3))/0xa;if(_0x1fc260===_0x456317)break;else _0x202e9a['push'](_0x202e9a['shift']());}catch(_0x5d501d){_0x202e9a['push'](_0x202e9a['shift']());}}}(a165_0x2077,0x72268));import{readFileSync}from'fs';import*as a165_0x136169 from'path';import*as a165_0x25210a 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(['email','push']);export function isJourneyDef(_0x1413ed){const _0x32be89=a165_0x1bb1;return typeof _0x1413ed==='object'&&_0x1413ed!==null&&_0x32be89(0xce)in _0x1413ed&&_0x1413ed[_0x32be89(0xce)]===_0x32be89(0xc6);}function a165_0x2077(){const _0x5c6c64=['result','template','object','has','relative','YAML_PARSE_ERROR','4900206bBtVaP','journey','5fjBbvv','not\x20a\x20','valid','4NADBoY','utf-8','skipped','filterType','type','campaign','toJSON','3132325qFeiAd','53322vAjwqB','16958660SzLTGK','map','error','9FTnfNM','segment','message','parseDocument','3299980KEKxuz','campaign_type','1169292curael','length','6998456ezzpUh'];a165_0x2077=function(){return _0x5c6c64;};return a165_0x2077();}export function isCampaignDef(_0x2276d6){const _0x1c55e1=a165_0x1bb1;if(typeof _0x2276d6!=='object'||_0x2276d6===null)return![];const _0x4b093d=_0x2276d6,_0xba2bce=VALID_CAMPAIGN_TYPES[_0x1c55e1(0xc2)](_0x4b093d[_0x1c55e1(0xbb)]);if(_0x4b093d['type']==='campaign'&&_0xba2bce)return!![];if(_0xba2bce&&!_0x4b093d[_0x1c55e1(0xce)])return!![];return![];}export function isTemplateDef(_0x5b4687){const _0x3c0cfd=a165_0x1bb1;return typeof _0x5b4687===_0x3c0cfd(0xc1)&&_0x5b4687!==null&&_0x3c0cfd(0xce)in _0x5b4687&&_0x5b4687[_0x3c0cfd(0xce)]===_0x3c0cfd(0xc0);}export function isValidationResult(_0x2a62d8){const _0x3077a7=a165_0x1bb1;return!(_0x3077a7(0xcc)in _0x2a62d8);}export function createParseErrorResult(_0x2b7e1a,_0x4fe61e,_0x23dd84,_0x5a4bb9,_0x482b75=a165_0x375ec0(0xd7)){const _0x5650dd=a165_0x375ec0;return{'filePath':_0x2b7e1a,'relativePath':_0x4fe61e,'source':_0x23dd84,'result':{'valid':![],'errors':[{'level':_0x5650dd(0xd5),'path':'','code':_0x5650dd(0xc4),'message':_0x5a4bb9}],'warnings':[]},'fileType':_0x482b75};}function a165_0x1bb1(_0x57e4e7,_0x22612f){_0x57e4e7=_0x57e4e7-0xb9;const _0x2077bd=a165_0x2077();let _0x1bb1f6=_0x2077bd[_0x57e4e7];return _0x1bb1f6;}export function validateYamlFile(_0x58379b,_0x40f579,_0xd98f4b={}){const _0x120642=a165_0x375ec0,_0x572483=a165_0x136169[_0x120642(0xc3)](_0x40f579,_0x58379b)||a165_0x136169['basename'](_0x58379b);try{const _0x28128c=readFileSync(_0x58379b,_0x120642(0xcb)),_0x5d8aaf=a165_0x25210a[_0x120642(0xb9)](_0x28128c),_0x212ddd=_0x5d8aaf[_0x120642(0xd0)]();if(!_0x212ddd)return createParseErrorResult(_0x58379b,_0x572483,_0x28128c,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0x45502d;if(isJourneyDef(_0x212ddd))_0x45502d=_0x120642(0xc6);else{if(isCampaignDef(_0x212ddd))_0x45502d='campaign';else isTemplateDef(_0x212ddd)?_0x45502d=_0x120642(0xc0):_0x45502d=_0x120642(0xd7);}if(_0xd98f4b[_0x120642(0xcd)]&&_0x45502d!==_0xd98f4b[_0x120642(0xcd)])return{'filePath':_0x58379b,'relativePath':_0x572483,'skipped':!![],'reason':_0x120642(0xc8)+_0xd98f4b[_0x120642(0xcd)]};const _0x2afa9a={'source':_0x28128c,'document':_0x5d8aaf};let _0x900906;if(_0x45502d==='journey')_0x900906=validateJourneyDef(_0x212ddd,_0x2afa9a);else{if(_0x45502d===_0x120642(0xcf))_0x900906=validateCampaignDef(_0x212ddd,_0x2afa9a);else _0x45502d===_0x120642(0xc0)?_0x900906=validateTemplateDef(_0x212ddd,_0x2afa9a):_0x900906=validateSegmentDef(_0x212ddd,_0x2afa9a);}return{'filePath':_0x58379b,'relativePath':_0x572483,'source':_0x28128c,'result':_0x900906,'fileType':_0x45502d};}catch(_0x3df204){const _0x11602d=_0x3df204 instanceof Error?_0x3df204[_0x120642(0xd8)]:String(_0x3df204);return createParseErrorResult(_0x58379b,_0x572483,'','YAML\x20parse\x20error:\x20'+_0x11602d);}}export function validateYamlFiles(_0x269633,_0x522a5d,_0x2c5c96={}){const _0x2577bc=a165_0x375ec0;return _0x269633[_0x2577bc(0xd4)](_0x514242=>validateYamlFile(_0x514242,_0x522a5d,_0x2c5c96));}export function calculateSummary(_0x4eac54){const _0x5f18f1=a165_0x375ec0;let _0x3e2b39=0x0,_0x32e00b=0x0,_0x1b506a=0x0,_0x96f044=0x0;for(const _0x300842 of _0x4eac54){if(!isValidationResult(_0x300842)){_0x96f044++;continue;}_0x300842[_0x5f18f1(0xbf)][_0x5f18f1(0xc9)]?_0x3e2b39++:_0x32e00b++,_0x1b506a+=_0x300842[_0x5f18f1(0xbf)]['warnings'][_0x5f18f1(0xbd)];}return{'validCount':_0x3e2b39,'invalidCount':_0x32e00b,'warningCount':_0x1b506a,'skippedCount':_0x96f044,'hasErrors':_0x32e00b>0x0};}
@@ -1 +1 @@
1
- (function(_0x13c621,_0x221058){const _0x5704cf=a166_0xa513,_0x30f999=_0x13c621();while(!![]){try{const _0x317598=-parseInt(_0x5704cf(0x1ac))/0x1*(parseInt(_0x5704cf(0x19a))/0x2)+-parseInt(_0x5704cf(0x1b0))/0x3+-parseInt(_0x5704cf(0x183))/0x4+-parseInt(_0x5704cf(0x190))/0x5*(parseInt(_0x5704cf(0x1a6))/0x6)+-parseInt(_0x5704cf(0x1a1))/0x7+parseInt(_0x5704cf(0x1a5))/0x8*(parseInt(_0x5704cf(0x1ab))/0x9)+parseInt(_0x5704cf(0x196))/0xa*(parseInt(_0x5704cf(0x193))/0xb);if(_0x317598===_0x221058)break;else _0x30f999['push'](_0x30f999['shift']());}catch(_0x188a1e){_0x30f999['push'](_0x30f999['shift']());}}}(a166_0x25a0,0x66769));import*as a166_0x2e03c7 from'yaml';import a166_0x3152f6 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x5199f7,_0x4284e4,_0x36f79e){const _0x12e7c3=a166_0xa513;if(!_0x5199f7||!_0x4284e4)return undefined;try{let _0x314350=_0x5199f7[_0x12e7c3(0x1ad)](_0x36f79e,!![]),_0x4ea1dc=[..._0x36f79e];while((!_0x314350||typeof _0x314350!==_0x12e7c3(0x19f)||!('range'in _0x314350)||!_0x314350['range'])&&_0x4ea1dc[_0x12e7c3(0x18a)]>0x0){_0x4ea1dc['pop'](),_0x314350=_0x4ea1dc[_0x12e7c3(0x18a)]>0x0?_0x5199f7['getIn'](_0x4ea1dc,!![]):_0x5199f7['contents'];}if(!_0x314350||typeof _0x314350!==_0x12e7c3(0x19f)||!(_0x12e7c3(0x18f)in _0x314350)||!_0x314350['range'])return undefined;const [_0x5b4ba6]=_0x314350[_0x12e7c3(0x18f)];return offsetToLocation(_0x4284e4,_0x5b4ba6);}catch{return undefined;}}export function offsetToLocation(_0x92f43b,_0x461b54){const _0x471541=a166_0xa513;let _0x433fcf=0x1,_0x5debcc=0x1;for(let _0x3dbded=0x0;_0x3dbded<_0x461b54&&_0x3dbded<_0x92f43b[_0x471541(0x18a)];_0x3dbded++){_0x92f43b[_0x3dbded]==='\x0a'?(_0x433fcf++,_0x5debcc=0x1):_0x5debcc++;}return{'line':_0x433fcf,'column':_0x5debcc,'offset':_0x461b54};}export function pathToArray(_0xfd0293){const _0x227adf=a166_0xa513;if(!_0xfd0293)return[];return _0xfd0293['split']('.')[_0x227adf(0x18b)](_0x98c14=>{const _0x469d21=_0x227adf,_0x2a9dd1=_0x98c14[_0x469d21(0x199)](/^(\w+)\[(\d+)\]$/);if(_0x2a9dd1)return[_0x2a9dd1[0x1],parseInt(_0x2a9dd1[0x2],0xa)];return[_0x98c14];});}function a166_0xa513(_0x30f092,_0x1a784a){_0x30f092=_0x30f092-0x183;const _0x25a0f5=a166_0x25a0();let _0xa51302=_0x25a0f5[_0x30f092];return _0xa51302;}export function formatZodPath(_0x2be54f){let _0x64d604='';for(const _0x216fe7 of _0x2be54f){if(typeof _0x216fe7==='number')_0x64d604+='['+_0x216fe7+']';else{const _0x4e79fd=String(_0x216fe7);_0x64d604+=_0x64d604?'.'+_0x4e79fd:_0x4e79fd;}}return _0x64d604;}export function flattenZodIssues(_0x2e61b0){const _0x23dacf=a166_0xa513,_0x3fb355=[];for(const _0x5afd4f of _0x2e61b0){if(_0x5afd4f[_0x23dacf(0x189)]===_0x23dacf(0x19e)&&_0x23dacf(0x186)in _0x5afd4f){const _0xcd8dfc=_0x5afd4f['errors'];let _0x150273=_0xcd8dfc[0x0]||[];for(const _0x445a7e of _0xcd8dfc){_0x445a7e[_0x23dacf(0x18a)]<_0x150273['length']&&(_0x150273=_0x445a7e);}const _0x1bac9f=_0x150273[_0x23dacf(0x191)](_0x489b8e=>({..._0x489b8e,'path':[..._0x5afd4f[_0x23dacf(0x197)],..._0x489b8e[_0x23dacf(0x197)]]}));_0x3fb355['push'](...flattenZodIssues(_0x1bac9f));}else _0x3fb355[_0x23dacf(0x194)](_0x5afd4f);}return _0x3fb355;}function a166_0x25a0(){const _0x1ed6ff=['error','max','cyan','yellow','9DazObC','8OvLZSP','getIn','\x27:\x20','toString','2366937EDOIFi','3110924SDzNNw','split','location','errors','join','repeat','code','length','flatMap','red','issues','column','range','2210Etaarb','map','parse','990zZSVnN','push','dim','310720TLOTAG','path','YAML\x20validation\x20error:\x20','match','164758AMEaVs','data','level','\x20|\x20','invalid_union','object','line','2562714BcHPxk','min','YAML\x20validation\x20error\x20at\x20\x27','message','6094456IwTECD','7422hpuqMy'];a166_0x25a0=function(){return _0x1ed6ff;};return a166_0x25a0();}export function safeParseYaml(_0x2d028f,_0x35b2fd){const _0x5f2773=a166_0xa513,_0x4c79d5=a166_0x2e03c7[_0x5f2773(0x192)](_0x2d028f);if(!_0x4c79d5||typeof _0x4c79d5!==_0x5f2773(0x19f))throw new Error('Invalid\x20YAML:\x20expected\x20an\x20object');const _0xddaa5=_0x35b2fd['safeParse'](_0x4c79d5);if(!_0xddaa5['success']){const _0xdb96a6=_0xddaa5[_0x5f2773(0x1a7)][_0x5f2773(0x18d)][0x0],_0x345ef9=formatZodPath(_0xdb96a6[_0x5f2773(0x197)]);throw new Error(_0x345ef9?_0x5f2773(0x1a3)+_0x345ef9+_0x5f2773(0x1ae)+_0xdb96a6[_0x5f2773(0x1a4)]:_0x5f2773(0x198)+_0xdb96a6[_0x5f2773(0x1a4)]);}return _0xddaa5[_0x5f2773(0x19b)];}export function formatIssueWithContext(_0x176405,_0x175f3c,_0x316285){const _0x5c62ad=a166_0xa513,_0x55a0d1=[],_0x10fb61=_0x176405['level']===_0x5c62ad(0x1a7),_0x21c90b=_0x10fb61?a166_0x3152f6['red']:a166_0x3152f6['yellow'],_0x35fa56=_0x10fb61?a166_0x3152f6[_0x5c62ad(0x18c)]:a166_0x3152f6[_0x5c62ad(0x1aa)],_0x54a1a5=_0x316285?a166_0x3152f6[_0x5c62ad(0x1a9)](_0x316285+':'):'';if(_0x176405[_0x5c62ad(0x185)]){const _0x5ae119=a166_0x3152f6[_0x5c62ad(0x1a9)](_0x176405[_0x5c62ad(0x185)][_0x5c62ad(0x1a0)]+':'+_0x176405[_0x5c62ad(0x185)][_0x5c62ad(0x18e)]);_0x55a0d1[_0x5c62ad(0x194)](''+_0x54a1a5+_0x5ae119+':\x20'+_0x21c90b(_0x176405[_0x5c62ad(0x19c)])+'\x20'+_0x35fa56('['+_0x176405[_0x5c62ad(0x189)]+']'));}else _0x55a0d1['push'](''+_0x54a1a5+a166_0x3152f6[_0x5c62ad(0x195)](_0x176405[_0x5c62ad(0x197)])+':\x20'+_0x21c90b(_0x176405[_0x5c62ad(0x19c)])+'\x20'+_0x35fa56('['+_0x176405[_0x5c62ad(0x189)]+']'));_0x55a0d1[_0x5c62ad(0x194)](_0x176405['message']);if(_0x176405[_0x5c62ad(0x185)]&&_0x175f3c){const _0x7e292d=_0x175f3c[_0x5c62ad(0x184)]('\x0a'),{line:_0x53b1ab,column:_0x52861}=_0x176405['location'],_0x4c6423=Math[_0x5c62ad(0x1a8)](0x1,_0x53b1ab-0x1),_0x497713=Math[_0x5c62ad(0x1a2)](_0x7e292d['length'],_0x53b1ab+0x1);_0x55a0d1[_0x5c62ad(0x194)]('');for(let _0x3ec28f=_0x4c6423;_0x3ec28f<=_0x497713;_0x3ec28f++){const _0x408c2d=_0x7e292d[_0x3ec28f-0x1]||'',_0x2f20b0=a166_0x3152f6[_0x5c62ad(0x195)](_0x3ec28f[_0x5c62ad(0x1af)]()['padStart'](0x4)),_0x51f3f7=a166_0x3152f6['dim'](_0x5c62ad(0x19d));if(_0x3ec28f===_0x53b1ab){_0x55a0d1[_0x5c62ad(0x194)]('\x20\x20'+_0x2f20b0+_0x51f3f7+_0x21c90b(_0x408c2d));const _0x2a2ca3='\x20'[_0x5c62ad(0x188)](0x4+0x3+_0x52861-0x1);_0x55a0d1[_0x5c62ad(0x194)]('\x20\x20'+_0x2a2ca3+_0x21c90b('^'));}else _0x55a0d1[_0x5c62ad(0x194)]('\x20\x20'+_0x2f20b0+_0x51f3f7+a166_0x3152f6[_0x5c62ad(0x195)](_0x408c2d));}}return _0x55a0d1[_0x5c62ad(0x187)]('\x0a');}export function formatValidationResult(_0xa31077,_0x3b8f8b,_0x36d52c){const _0x53f099=a166_0xa513,_0xa0cba0=[];for(const _0xc3fafe of _0xa31077['errors']){_0xa0cba0[_0x53f099(0x194)](formatIssueWithContext(_0xc3fafe,_0x3b8f8b,_0x36d52c)),_0xa0cba0['push']('');}for(const _0x469587 of _0xa31077['warnings']){_0xa0cba0['push'](formatIssueWithContext(_0x469587,_0x3b8f8b,_0x36d52c)),_0xa0cba0[_0x53f099(0x194)]('');}return _0xa0cba0['join']('\x0a');}
1
+ (function(_0x468e5b,_0x4ffa9c){const _0x3d35c1=a166_0xcf08,_0x2bf06b=_0x468e5b();while(!![]){try{const _0x6968da=-parseInt(_0x3d35c1(0xb4))/0x1*(parseInt(_0x3d35c1(0xb5))/0x2)+parseInt(_0x3d35c1(0xd4))/0x3*(parseInt(_0x3d35c1(0xc1))/0x4)+-parseInt(_0x3d35c1(0xc0))/0x5+-parseInt(_0x3d35c1(0xca))/0x6+-parseInt(_0x3d35c1(0xc8))/0x7+-parseInt(_0x3d35c1(0xd8))/0x8+-parseInt(_0x3d35c1(0xc5))/0x9*(-parseInt(_0x3d35c1(0xb6))/0xa);if(_0x6968da===_0x4ffa9c)break;else _0x2bf06b['push'](_0x2bf06b['shift']());}catch(_0x7ce897){_0x2bf06b['push'](_0x2bf06b['shift']());}}}(a166_0x5231,0xaa98e));import*as a166_0x23a86a from'yaml';function a166_0x5231(){const _0x53bab8=['3156155zNzkTW','8jSCCsl','toString','contents','issues','153OFcEUa','\x27:\x20','yellow','2741228byQFVe','object','1512534qcxVOD','YAML\x20validation\x20error\x20at\x20\x27','warnings','message','\x20|\x20','dim','range','errors','padStart','error','795891ELdGzZ','location','column','data','4990448pUCHnc','push','length','join','YAML\x20validation\x20error:\x20','match','red','cyan','parse','2pGXXVQ','1268770mBEDWw','1962160yHursO','level','code','getIn','invalid_union','path','split','repeat','safeParse','flatMap'];a166_0x5231=function(){return _0x53bab8;};return a166_0x5231();}import a166_0x32fce0 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a166_0xcf08(_0x1b46d3,_0xfbb4d5){_0x1b46d3=_0x1b46d3-0xae;const _0x5231c1=a166_0x5231();let _0xcf08f4=_0x5231c1[_0x1b46d3];return _0xcf08f4;}export function getLocationFromPath(_0x296abd,_0xbe359c,_0x48f49a){const _0x1d3d49=a166_0xcf08;if(!_0x296abd||!_0xbe359c)return undefined;try{let _0x5af1a1=_0x296abd[_0x1d3d49(0xb9)](_0x48f49a,!![]),_0x32bc6f=[..._0x48f49a];while((!_0x5af1a1||typeof _0x5af1a1!==_0x1d3d49(0xc9)||!(_0x1d3d49(0xd0)in _0x5af1a1)||!_0x5af1a1[_0x1d3d49(0xd0)])&&_0x32bc6f[_0x1d3d49(0xda)]>0x0){_0x32bc6f['pop'](),_0x5af1a1=_0x32bc6f[_0x1d3d49(0xda)]>0x0?_0x296abd[_0x1d3d49(0xb9)](_0x32bc6f,!![]):_0x296abd[_0x1d3d49(0xc3)];}if(!_0x5af1a1||typeof _0x5af1a1!==_0x1d3d49(0xc9)||!(_0x1d3d49(0xd0)in _0x5af1a1)||!_0x5af1a1[_0x1d3d49(0xd0)])return undefined;const [_0x1681ff]=_0x5af1a1[_0x1d3d49(0xd0)];return offsetToLocation(_0xbe359c,_0x1681ff);}catch{return undefined;}}export function offsetToLocation(_0x4737d1,_0x3e6162){const _0x267a09=a166_0xcf08;let _0x54fbdf=0x1,_0x17b54e=0x1;for(let _0x290ccd=0x0;_0x290ccd<_0x3e6162&&_0x290ccd<_0x4737d1[_0x267a09(0xda)];_0x290ccd++){_0x4737d1[_0x290ccd]==='\x0a'?(_0x54fbdf++,_0x17b54e=0x1):_0x17b54e++;}return{'line':_0x54fbdf,'column':_0x17b54e,'offset':_0x3e6162};}export function pathToArray(_0x4c9838){const _0x319462=a166_0xcf08;if(!_0x4c9838)return[];return _0x4c9838[_0x319462(0xbc)]('.')[_0x319462(0xbf)](_0x5a9e13=>{const _0x5d81e5=_0x319462,_0x1ea519=_0x5a9e13[_0x5d81e5(0xb0)](/^(\w+)\[(\d+)\]$/);if(_0x1ea519)return[_0x1ea519[0x1],parseInt(_0x1ea519[0x2],0xa)];return[_0x5a9e13];});}export function formatZodPath(_0x504f35){let _0x40f1eb='';for(const _0x572e2e of _0x504f35){if(typeof _0x572e2e==='number')_0x40f1eb+='['+_0x572e2e+']';else{const _0x1b88d8=String(_0x572e2e);_0x40f1eb+=_0x40f1eb?'.'+_0x1b88d8:_0x1b88d8;}}return _0x40f1eb;}export function flattenZodIssues(_0xb09b92){const _0x406f51=a166_0xcf08,_0x17ebb3=[];for(const _0x4377f8 of _0xb09b92){if(_0x4377f8[_0x406f51(0xb8)]===_0x406f51(0xba)&&_0x406f51(0xd1)in _0x4377f8){const _0x3c073b=_0x4377f8['errors'];let _0x571a48=_0x3c073b[0x0]||[];for(const _0x4bf650 of _0x3c073b){_0x4bf650[_0x406f51(0xda)]<_0x571a48['length']&&(_0x571a48=_0x4bf650);}const _0x384986=_0x571a48['map'](_0xf2a481=>({..._0xf2a481,'path':[..._0x4377f8[_0x406f51(0xbb)],..._0xf2a481[_0x406f51(0xbb)]]}));_0x17ebb3[_0x406f51(0xd9)](...flattenZodIssues(_0x384986));}else _0x17ebb3[_0x406f51(0xd9)](_0x4377f8);}return _0x17ebb3;}export function safeParseYaml(_0x14624e,_0x1eef88){const _0x48da28=a166_0xcf08,_0x3f0840=a166_0x23a86a[_0x48da28(0xb3)](_0x14624e);if(!_0x3f0840||typeof _0x3f0840!==_0x48da28(0xc9))throw new Error('Invalid\x20YAML:\x20expected\x20an\x20object');const _0x2030c0=_0x1eef88[_0x48da28(0xbe)](_0x3f0840);if(!_0x2030c0['success']){const _0x262d17=_0x2030c0[_0x48da28(0xd3)][_0x48da28(0xc4)][0x0],_0x32a51f=formatZodPath(_0x262d17[_0x48da28(0xbb)]);throw new Error(_0x32a51f?_0x48da28(0xcb)+_0x32a51f+_0x48da28(0xc6)+_0x262d17['message']:_0x48da28(0xaf)+_0x262d17[_0x48da28(0xcd)]);}return _0x2030c0[_0x48da28(0xd7)];}export function formatIssueWithContext(_0x35b17f,_0x199611,_0xd6a66){const _0x5b0dc5=a166_0xcf08,_0x930d9a=[],_0x54effc=_0x35b17f['level']===_0x5b0dc5(0xd3),_0x48b364=_0x54effc?a166_0x32fce0[_0x5b0dc5(0xb1)]:a166_0x32fce0[_0x5b0dc5(0xc7)],_0x36a1f5=_0x54effc?a166_0x32fce0[_0x5b0dc5(0xb1)]:a166_0x32fce0[_0x5b0dc5(0xc7)],_0x35db1f=_0xd6a66?a166_0x32fce0[_0x5b0dc5(0xb2)](_0xd6a66+':'):'';if(_0x35b17f['location']){const _0x939123=a166_0x32fce0[_0x5b0dc5(0xb2)](_0x35b17f[_0x5b0dc5(0xd5)]['line']+':'+_0x35b17f[_0x5b0dc5(0xd5)][_0x5b0dc5(0xd6)]);_0x930d9a[_0x5b0dc5(0xd9)](''+_0x35db1f+_0x939123+':\x20'+_0x48b364(_0x35b17f['level'])+'\x20'+_0x36a1f5('['+_0x35b17f[_0x5b0dc5(0xb8)]+']'));}else _0x930d9a[_0x5b0dc5(0xd9)](''+_0x35db1f+a166_0x32fce0[_0x5b0dc5(0xcf)](_0x35b17f[_0x5b0dc5(0xbb)])+':\x20'+_0x48b364(_0x35b17f[_0x5b0dc5(0xb7)])+'\x20'+_0x36a1f5('['+_0x35b17f[_0x5b0dc5(0xb8)]+']'));_0x930d9a[_0x5b0dc5(0xd9)](_0x35b17f['message']);if(_0x35b17f[_0x5b0dc5(0xd5)]&&_0x199611){const _0x26cb6e=_0x199611[_0x5b0dc5(0xbc)]('\x0a'),{line:_0x30c256,column:_0xbe7ddc}=_0x35b17f[_0x5b0dc5(0xd5)],_0x533f78=Math['max'](0x1,_0x30c256-0x1),_0xfe8ef2=Math['min'](_0x26cb6e['length'],_0x30c256+0x1);_0x930d9a['push']('');for(let _0x10512a=_0x533f78;_0x10512a<=_0xfe8ef2;_0x10512a++){const _0x558963=_0x26cb6e[_0x10512a-0x1]||'',_0x2c5927=a166_0x32fce0[_0x5b0dc5(0xcf)](_0x10512a[_0x5b0dc5(0xc2)]()[_0x5b0dc5(0xd2)](0x4)),_0xfc4c2d=a166_0x32fce0[_0x5b0dc5(0xcf)](_0x5b0dc5(0xce));if(_0x10512a===_0x30c256){_0x930d9a[_0x5b0dc5(0xd9)]('\x20\x20'+_0x2c5927+_0xfc4c2d+_0x48b364(_0x558963));const _0x439511='\x20'[_0x5b0dc5(0xbd)](0x4+0x3+_0xbe7ddc-0x1);_0x930d9a[_0x5b0dc5(0xd9)]('\x20\x20'+_0x439511+_0x48b364('^'));}else _0x930d9a[_0x5b0dc5(0xd9)]('\x20\x20'+_0x2c5927+_0xfc4c2d+a166_0x32fce0[_0x5b0dc5(0xcf)](_0x558963));}}return _0x930d9a[_0x5b0dc5(0xae)]('\x0a');}export function formatValidationResult(_0x216ea8,_0x22f2b2,_0x492fa9){const _0x575b58=a166_0xcf08,_0x262940=[];for(const _0x256ab4 of _0x216ea8['errors']){_0x262940[_0x575b58(0xd9)](formatIssueWithContext(_0x256ab4,_0x22f2b2,_0x492fa9)),_0x262940[_0x575b58(0xd9)]('');}for(const _0x506ce3 of _0x216ea8[_0x575b58(0xcc)]){_0x262940[_0x575b58(0xd9)](formatIssueWithContext(_0x506ce3,_0x22f2b2,_0x492fa9)),_0x262940['push']('');}return _0x262940[_0x575b58(0xae)]('\x0a');}