@treasuredata/tdx 2026.3.3 → 2026.3.5

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 (197) 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/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/engage-template-pull-command.js +1 -1
  24. package/dist/commands/engage-template-push-command.js +1 -1
  25. package/dist/commands/engage-template-validate-command.js +1 -1
  26. package/dist/commands/job-command.js +1 -1
  27. package/dist/commands/journey-command.js +1 -1
  28. package/dist/commands/journey-validate-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/mcp-command.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profile-command.js +1 -1
  33. package/dist/commands/profiles-command.js +1 -1
  34. package/dist/commands/query-command.js +1 -1
  35. package/dist/commands/schedule-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segment-validate-command.js +1 -1
  44. package/dist/commands/segments.js +1 -1
  45. package/dist/commands/show.js +1 -1
  46. package/dist/commands/status-command.js +1 -1
  47. package/dist/commands/tables.js +1 -1
  48. package/dist/commands/unset-command.js +1 -1
  49. package/dist/commands/upgrade-command.js +1 -1
  50. package/dist/commands/use-command.js +1 -1
  51. package/dist/commands/user-command.js +1 -1
  52. package/dist/commands/workflow-command.js +1 -1
  53. package/dist/core/auth.js +1 -1
  54. package/dist/core/command-output.js +1 -1
  55. package/dist/core/config.js +1 -1
  56. package/dist/core/connection-cache.js +1 -1
  57. package/dist/core/constants.js +1 -1
  58. package/dist/core/credential-cache.js +1 -1
  59. package/dist/core/global-context.js +1 -1
  60. package/dist/core/keychain.js +1 -1
  61. package/dist/core/profile.js +1 -1
  62. package/dist/core/project-config.js +1 -1
  63. package/dist/core/session.js +1 -1
  64. package/dist/core/user-cache.js +1 -1
  65. package/dist/core/version.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/mcp/server.js +1 -1
  68. package/dist/mcp/tools/index.js +1 -1
  69. package/dist/mcp/tools/tdx-run.js +1 -1
  70. package/dist/mcp/tools/tdx-search.js +1 -1
  71. package/dist/mcp/utils.js +1 -1
  72. package/dist/proxy/claude-usage-tracker.js +1 -1
  73. package/dist/proxy/passthrough-server.js +1 -1
  74. package/dist/proxy/sse-usage-parser.js +1 -1
  75. package/dist/sdk/agent/agent-config.js +1 -1
  76. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  77. package/dist/sdk/agent/agent-yaml.js +1 -1
  78. package/dist/sdk/agent/test/evaluator.js +1 -1
  79. package/dist/sdk/agent/test/executor.js +1 -1
  80. package/dist/sdk/agent/test/index.js +1 -1
  81. package/dist/sdk/agent/test/output.js +1 -1
  82. package/dist/sdk/agent/test/parser.js +1 -1
  83. package/dist/sdk/agent/tool-target-registry.js +1 -1
  84. package/dist/sdk/api.js +1 -1
  85. package/dist/sdk/client/cdp-api-client.js +1 -1
  86. package/dist/sdk/client/delivery-api-client.js +1 -1
  87. package/dist/sdk/client/endpoints.js +1 -1
  88. package/dist/sdk/client/engage-api-client.js +1 -1
  89. package/dist/sdk/client/http-client.js +1 -1
  90. package/dist/sdk/client/llm-api-client.js +1 -1
  91. package/dist/sdk/client/rate-limiter.js +1 -1
  92. package/dist/sdk/client/td-api-client.js +1 -1
  93. package/dist/sdk/client/trino-api-client.js +1 -1
  94. package/dist/sdk/client/workflow-client.js +1 -1
  95. package/dist/sdk/connection-validator.js +1 -1
  96. package/dist/sdk/connection.js +1 -1
  97. package/dist/sdk/delivery.js +1 -1
  98. package/dist/sdk/engage/campaign-pull.js +1 -1
  99. package/dist/sdk/engage/campaign-push.js +1 -1
  100. package/dist/sdk/engage/campaign-validator.js +1 -1
  101. package/dist/sdk/engage/campaign-yaml.js +1 -1
  102. package/dist/sdk/engage/template-pull.js +1 -1
  103. package/dist/sdk/engage/template-push.js +1 -1
  104. package/dist/sdk/engage/template-validator.js +1 -1
  105. package/dist/sdk/engage/template-yaml.js +1 -1
  106. package/dist/sdk/engage/types/campaign-def.js +1 -1
  107. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  108. package/dist/sdk/engage/types/template-schema.js +1 -1
  109. package/dist/sdk/engage.js +1 -1
  110. package/dist/sdk/errors.js +1 -1
  111. package/dist/sdk/index.js +1 -1
  112. package/dist/sdk/io/index.js +1 -1
  113. package/dist/sdk/io/node-filesystem.js +1 -1
  114. package/dist/sdk/job.js +1 -1
  115. package/dist/sdk/journey.js +1 -1
  116. package/dist/sdk/llm/chat-cache.js +1 -1
  117. package/dist/sdk/llm/index.js +1 -1
  118. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  119. package/dist/sdk/llm/model-factors.js +1 -1
  120. package/dist/sdk/personalization.js +1 -1
  121. package/dist/sdk/query/index.js +1 -1
  122. package/dist/sdk/query/sql-parser.js +1 -1
  123. package/dist/sdk/realtime.js +1 -1
  124. package/dist/sdk/schedule.js +1 -1
  125. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  126. package/dist/sdk/segment/fields-display.js +1 -1
  127. package/dist/sdk/segment/file-discovery.js +1 -1
  128. package/dist/sdk/segment/journey-utils.js +1 -1
  129. package/dist/sdk/segment/journey-validator.js +1 -1
  130. package/dist/sdk/segment/journey-yaml.js +1 -1
  131. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  132. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  133. package/dist/sdk/segment/pull-workflow.js +1 -1
  134. package/dist/sdk/segment/push-recovery.js +1 -1
  135. package/dist/sdk/segment/push-workflow.js +1 -1
  136. package/dist/sdk/segment/resolution-context.js +1 -1
  137. package/dist/sdk/segment/segment-path-parser.js +1 -1
  138. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  139. package/dist/sdk/segment/segment-validator.js +1 -1
  140. package/dist/sdk/segment/target-resolution.js +1 -1
  141. package/dist/sdk/segment/tdx-config.js +1 -1
  142. package/dist/sdk/segment/types/activation-schema.js +1 -1
  143. package/dist/sdk/segment/types/journey-def.js +1 -1
  144. package/dist/sdk/segment/types/journey-schema.js +1 -1
  145. package/dist/sdk/segment/types/segment-def.js +1 -1
  146. package/dist/sdk/segment/types/segment-schema.js +1 -1
  147. package/dist/sdk/segment/validate-files.js +1 -1
  148. package/dist/sdk/segment/yaml-validator.js +1 -1
  149. package/dist/sdk/segment.js +1 -1
  150. package/dist/sdk/types/index.js +1 -1
  151. package/dist/sdk/types/progress.js +1 -1
  152. package/dist/sdk/user.js +1 -1
  153. package/dist/sdk/util/format-detector.js +1 -1
  154. package/dist/sdk/util/formatters.js +1 -1
  155. package/dist/sdk/util/index.js +1 -1
  156. package/dist/sdk/util/paginate.js +1 -1
  157. package/dist/sdk/util/tree-formatter.js +1 -1
  158. package/dist/sdk/workflow/archive-validation.js +1 -1
  159. package/dist/sdk/workflow/clone-workflow.js +1 -1
  160. package/dist/sdk/workflow/index.js +1 -1
  161. package/dist/sdk/workflow/pull-workflow.js +1 -1
  162. package/dist/sdk/workflow/push-workflow.js +1 -1
  163. package/dist/sdk/workflow/tdx-config.js +1 -1
  164. package/dist/sdk/workflow/workflow-utils.js +1 -1
  165. package/dist/test-utils/command-runner.js +1 -1
  166. package/dist/test-utils/factories.js +1 -1
  167. package/dist/test-utils/fixtures.js +1 -1
  168. package/dist/test-utils/http-mock.js +1 -1
  169. package/dist/test-utils/index.js +1 -1
  170. package/dist/utils/async.js +1 -1
  171. package/dist/utils/colors.js +1 -1
  172. package/dist/utils/diff.js +1 -1
  173. package/dist/utils/file-permissions.js +1 -1
  174. package/dist/utils/file-reader.js +1 -1
  175. package/dist/utils/github-releases.js +1 -1
  176. package/dist/utils/global-cache.js +1 -1
  177. package/dist/utils/json-loader.js +1 -1
  178. package/dist/utils/local-cache.js +1 -1
  179. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  180. package/dist/utils/logger/formatters/index.js +1 -1
  181. package/dist/utils/logger/handlers/console-handler.js +1 -1
  182. package/dist/utils/logger/handlers/file-handler.js +1 -1
  183. package/dist/utils/logger/handlers/index.js +1 -1
  184. package/dist/utils/logger/handlers/null-handler.js +1 -1
  185. package/dist/utils/logger/index.js +1 -1
  186. package/dist/utils/logger/logger.js +1 -1
  187. package/dist/utils/logger/types.js +1 -1
  188. package/dist/utils/option-validation.js +1 -1
  189. package/dist/utils/process.js +1 -1
  190. package/dist/utils/prompt.js +1 -1
  191. package/dist/utils/spinner.js +1 -1
  192. package/dist/utils/sse-parser.js +1 -1
  193. package/dist/utils/string-utils.js +1 -1
  194. package/dist/utils/table-ref-parser.js +1 -1
  195. package/dist/utils/tdx-logger.js +1 -1
  196. package/dist/utils/version-check.js +1 -1
  197. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4cd242,_0x52093c){const _0x114ab7=a140_0x1883,_0x1b1c51=_0x4cd242();while(!![]){try{const _0x27df39=parseInt(_0x114ab7(0xca))/0x1*(parseInt(_0x114ab7(0xd6))/0x2)+parseInt(_0x114ab7(0xf1))/0x3*(-parseInt(_0x114ab7(0xdd))/0x4)+parseInt(_0x114ab7(0xb8))/0x5+parseInt(_0x114ab7(0xdb))/0x6*(-parseInt(_0x114ab7(0xb4))/0x7)+-parseInt(_0x114ab7(0xed))/0x8*(parseInt(_0x114ab7(0xcb))/0x9)+-parseInt(_0x114ab7(0xc5))/0xa+parseInt(_0x114ab7(0xe0))/0xb;if(_0x27df39===_0x52093c)break;else _0x1b1c51['push'](_0x1b1c51['shift']());}catch(_0x39fe07){_0x1b1c51['push'](_0x1b1c51['shift']());}}}(a140_0x4127,0xf3c20));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x5beeed,_0x43a6c8={},_0x386fd7={}){const _0x2a2965=a140_0x1883;if(_0x386fd7[_0x2a2965(0xce)])return runSemanticChecks(_0x5beeed,_0x43a6c8);const _0x4d3a24=SegmentDefSchema['safeParse'](_0x5beeed);if(_0x4d3a24[_0x2a2965(0xcf)])return runSemanticChecks(_0x4d3a24[_0x2a2965(0xcc)],_0x43a6c8);return zodErrorsToValidationResult(_0x4d3a24[_0x2a2965(0xb5)],_0x43a6c8);}export function validateRuleDef(_0x38130b,_0x3c834a,_0x3757bb){const _0x2e7369=a140_0x1883;if(!_0x38130b)return[];const _0x1b310=RuleDefSchema['safeParse'](_0x38130b);if(_0x1b310[_0x2e7369(0xcf)])return checkRule(_0x1b310[_0x2e7369(0xcc)],_0x3c834a,_0x3757bb);const _0x315552=flattenZodIssues(_0x1b310[_0x2e7369(0xb5)][_0x2e7369(0xe9)]);return _0x315552[_0x2e7369(0xad)](_0x4556b7=>{const _0x592828=_0x2e7369,_0x975bec=formatZodPath(_0x4556b7[_0x592828(0xb2)]),_0x2bfbb3=_0x975bec?_0x3c834a+'.'+_0x975bec:_0x3c834a,_0x1eb823=mapZodIssueToCode(_0x4556b7,_0x975bec),_0x2b67c3=getLocationFromPath(_0x3757bb['document'],_0x3757bb[_0x592828(0xe3)],pathToArray(_0x2bfbb3));return{'level':_0x592828(0xb5),'path':_0x2bfbb3,'code':_0x1eb823,'message':_0x4556b7[_0x592828(0xc0)],..._0x2b67c3&&{'location':_0x2b67c3}};});}function a140_0x4127(){const _0x47c0cf=['path','Behavior','7kYCVxJ','error','match','.conditions','2449255RQGoBI','params','SEGMENT_SCHEMA_ERROR','.attribute','EMPTY_CONDITIONS','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','aggregation','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message','invalid_value','use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','\x27\x20with\x20attribute\x20\x27','symbol','5673300UgAGNE','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','type','name','endsWith','476395NZuwiB','36yOPgRQ','data','.source','skipSchema','success','BEHAVIOR_SOURCE_MISSING_FILTER','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','arrayMatching','.filter','code','8CmVHJw','attribute','MISSING_SEGMENT_REFERENCE','.segment','MISSING_TIME_UNIT','3054498HvWjhM','EMPTY_ATTRIBUTE','4LEkfqf','.operator.type','Value','8335261DXuJio','push','INVALID_OPERATOR_TYPE','source','document','conditions','validationCode','length','Attribute\x20name\x20cannot\x20be\x20empty','issues','includes','level','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','1573576rseUOE','.conditions[','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','874647GJgZaC','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','MISSING_NAME','rule.type','Attribute\x20\x27','filter','map','NESTED_CONDITION_GROUP','rule','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','MISSING_OPERATOR_VALUE'];a140_0x4127=function(){return _0x47c0cf;};return a140_0x4127();}function a140_0x1883(_0x453330,_0x2265e8){_0x453330=_0x453330-0xac;const _0x41273b=a140_0x4127();let _0x1883d7=_0x41273b[_0x453330];return _0x1883d7;}function zodErrorsToValidationResult(_0x16868e,_0x154088){const _0x1fd7e0=flattenZodIssues(_0x16868e['issues']),_0x8e46b3=_0x1fd7e0['map'](_0x59c4c9=>{const _0x3c916c=a140_0x1883,_0x562891=formatZodPath(_0x59c4c9[_0x3c916c(0xb2)]),_0x37e265=mapZodIssueToCode(_0x59c4c9,_0x562891),_0x22d405=getLocationFromPath(_0x154088[_0x3c916c(0xe4)],_0x154088[_0x3c916c(0xe3)],_0x59c4c9[_0x3c916c(0xb2)]['map'](_0x1fe2d9=>typeof _0x1fe2d9===_0x3c916c(0xc4)?String(_0x1fe2d9):_0x1fe2d9));return{'level':_0x3c916c(0xb5),'path':_0x562891,'code':_0x37e265,'message':_0x59c4c9['message'],..._0x22d405&&{'location':_0x22d405}};});return{'valid':![],'errors':_0x8e46b3,'warnings':[]};}function mapZodIssueToCode(_0x2fc964,_0x37020e){const _0x1b0602=a140_0x1883,_0x3fba0f=_0x2fc964['code']==='custom'?_0x2fc964[_0x1b0602(0xb9)]:undefined;if(_0x37020e===_0x1b0602(0xc8))return _0x1b0602(0xf3);if(_0x37020e===_0x1b0602(0xf4)||_0x37020e[_0x1b0602(0xc9)]('.type')){if(_0x2fc964[_0x1b0602(0xd5)]===_0x1b0602(0xc1)){if(_0x37020e===_0x1b0602(0xf4)||_0x37020e[_0x1b0602(0xb6)](/\.conditions\[\d+\]\.type$/))return'INVALID_RULE_TYPE';}}if(_0x37020e['endsWith'](_0x1b0602(0xde)))return _0x1b0602(0xe2);if(_0x37020e[_0x1b0602(0xc9)]('.operator.value'))return _0x1b0602(0xb1);if(_0x3fba0f?.[_0x1b0602(0xe6)]==='MISSING_BETWEEN_BOUNDS')return'MISSING_BETWEEN_BOUNDS';if(_0x3fba0f?.['validationCode']===_0x1b0602(0xda))return _0x1b0602(0xda);if(_0x37020e[_0x1b0602(0xc9)]('.conditions')||_0x37020e==='conditions')return'MISSING_CONDITIONS';if(_0x37020e[_0x1b0602(0xea)](_0x1b0602(0xd3)))return'INVALID_ARRAY_MATCHING';if(_0x37020e[_0x1b0602(0xc9)](_0x1b0602(0xd9)))return _0x1b0602(0xd8);return _0x1b0602(0xba);}function runSemanticChecks(_0x5c1e7d,_0x19fefe){const _0x992b67=a140_0x1883,_0x23c6b5=[];_0x5c1e7d['rule']&&_0x23c6b5[_0x992b67(0xe1)](...checkRule(_0x5c1e7d[_0x992b67(0xaf)],_0x992b67(0xaf),_0x19fefe));const _0x45088f=_0x23c6b5[_0x992b67(0xac)](_0x449ef1=>_0x449ef1[_0x992b67(0xeb)]===_0x992b67(0xb5)),_0xe4309c=_0x23c6b5[_0x992b67(0xac)](_0x59dcfc=>_0x59dcfc[_0x992b67(0xeb)]==='warning');return{'valid':_0x45088f[_0x992b67(0xe7)]===0x0,'errors':_0x45088f,'warnings':_0xe4309c};}function checkRule(_0x1900c3,_0x46c0f5,_0x2d15ab){const _0x54c1bf=a140_0x1883,_0x3ca950=[];if(_0x1900c3['conditions'][_0x54c1bf(0xe7)]===0x0)return _0x3ca950['push']({'level':_0x54c1bf(0xb5),'path':_0x46c0f5+_0x54c1bf(0xb7),'code':'EMPTY_CONDITIONS','message':_0x54c1bf(0xb0),'location':getLocationFromPath(_0x2d15ab['document'],_0x2d15ab[_0x54c1bf(0xe3)],pathToArray(_0x46c0f5+'.conditions'))}),_0x3ca950;return _0x3ca950['push'](...checkConditions(_0x1900c3[_0x54c1bf(0xe5)],_0x46c0f5,_0x2d15ab)),_0x3ca950;}function checkConditions(_0x28f6b7,_0x510bed,_0xbf91ad){const _0x5839c2=a140_0x1883,_0x27e6d5=[];for(let _0x2d322c=0x0;_0x2d322c<_0x28f6b7[_0x5839c2(0xe7)];_0x2d322c++){const _0x4d6c47=_0x28f6b7[_0x2d322c],_0x527a49=_0x510bed+_0x5839c2(0xee)+_0x2d322c+']';_0x27e6d5[_0x5839c2(0xe1)](...checkCondition(_0x4d6c47,_0x527a49,_0xbf91ad));}return _0x27e6d5;}function checkCondition(_0x545f73,_0x883750,_0x18d836){const _0x395b96=a140_0x1883,_0x478896=[];if(_0x545f73[_0x395b96(0xc7)]==='And'||_0x545f73[_0x395b96(0xc7)]==='Or')return _0x545f73[_0x395b96(0xe5)]['length']===0x0?_0x478896[_0x395b96(0xe1)]({'level':'error','path':_0x883750+_0x395b96(0xb7),'code':_0x395b96(0xbc),'message':_0x545f73['type']+_0x395b96(0xbd),'location':getLocationFromPath(_0x18d836[_0x395b96(0xe4)],_0x18d836[_0x395b96(0xe3)],pathToArray(_0x883750+_0x395b96(0xb7)))}):_0x478896[_0x395b96(0xe1)]({'level':'error','path':_0x883750,'code':_0x395b96(0xae),'message':_0x545f73[_0x395b96(0xc7)]+_0x395b96(0xf2)+_0x395b96(0xd1)+_0x395b96(0xc2),'location':getLocationFromPath(_0x18d836['document'],_0x18d836[_0x395b96(0xe3)],pathToArray(_0x883750))}),_0x478896;if(_0x545f73[_0x395b96(0xc7)]===_0x395b96(0xdf)||_0x545f73[_0x395b96(0xc7)]===_0x395b96(0xb3)){const _0x219f91=_0x545f73,_0xbfe42f=_0x219f91[_0x395b96(0xe3)],_0x42686e=_0x219f91[_0x395b96(0xbe)],_0x6a9541=_0xbfe42f||_0x42686e;(!_0x219f91[_0x395b96(0xd7)]||_0x219f91[_0x395b96(0xd7)]==='')&&(!_0x6a9541&&_0x478896[_0x395b96(0xe1)]({'level':'error','path':_0x883750+_0x395b96(0xbb),'code':_0x395b96(0xdc),'message':_0x395b96(0xe8),'location':getLocationFromPath(_0x18d836['document'],_0x18d836[_0x395b96(0xe3)],pathToArray(_0x883750+_0x395b96(0xbb)))}));_0x219f91[_0x395b96(0xac)]&&_0x478896[_0x395b96(0xe1)](...checkRule(_0x219f91[_0x395b96(0xac)],_0x883750+_0x395b96(0xd4),_0x18d836));if(_0x219f91[_0x395b96(0xe3)]){const _0x2f11f5=_0x219f91[_0x395b96(0xd7)]&&_0x219f91[_0x395b96(0xd7)]!=='';_0x2f11f5&&!_0x219f91[_0x395b96(0xac)]&&_0x478896['push']({'level':_0x395b96(0xb5),'path':_0x883750+'.source','code':_0x395b96(0xd0),'message':'Behavior\x20source\x20\x27'+_0x219f91[_0x395b96(0xe3)]+_0x395b96(0xc3)+_0x219f91[_0x395b96(0xd7)]+'\x27\x20'+_0x395b96(0xf0)+_0x395b96(0xec)+_0x395b96(0xd2),'location':getLocationFromPath(_0x18d836[_0x395b96(0xe4)],_0x18d836['source'],pathToArray(_0x883750+_0x395b96(0xcd)))}),_0x2f11f5&&_0x219f91[_0x395b96(0xac)]&&_0x478896[_0x395b96(0xe1)]({'level':'warning','path':_0x883750+_0x395b96(0xbb),'code':_0x395b96(0xbf),'message':_0x395b96(0xf5)+_0x219f91['attribute']+_0x395b96(0xef)+_0x395b96(0xc6),'location':getLocationFromPath(_0x18d836[_0x395b96(0xe4)],_0x18d836['source'],pathToArray(_0x883750+'.attribute'))});}}return _0x478896;}
1
+ (function(_0x33019f,_0x5c7739){const _0x42726c=a140_0x40b4,_0x5571e9=_0x33019f();while(!![]){try{const _0x13705a=parseInt(_0x42726c(0x1f2))/0x1*(-parseInt(_0x42726c(0x1f1))/0x2)+-parseInt(_0x42726c(0x1b9))/0x3+parseInt(_0x42726c(0x1e5))/0x4+-parseInt(_0x42726c(0x1c7))/0x5*(parseInt(_0x42726c(0x1ec))/0x6)+-parseInt(_0x42726c(0x1cf))/0x7*(parseInt(_0x42726c(0x1ca))/0x8)+-parseInt(_0x42726c(0x1d9))/0x9*(-parseInt(_0x42726c(0x1af))/0xa)+parseInt(_0x42726c(0x1d1))/0xb;if(_0x13705a===_0x5c7739)break;else _0x5571e9['push'](_0x5571e9['shift']());}catch(_0x15f72c){_0x5571e9['push'](_0x5571e9['shift']());}}}(a140_0x5fe3,0xd653e));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';function a140_0x5fe3(){const _0x3394f7=['attribute','validationCode','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','112ndxQzy','MISSING_TIME_UNIT','18595522cMbHMw','success','message','Behavior','map','document','NESTED_CONDITION_GROUP','name','134307OrHCPb','Attribute\x20\x27','safeParse','issues','invalid_value','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','path','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','conditions','rule','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','.filter','5684592dsmkLj','length','custom','match','error','.type','skipSchema','10938jESwyf','.conditions[','aggregation','.segment','INVALID_OPERATOR_TYPE','1557748XUWVuS','1mpaolf','use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','470BBXkAH','source','.operator.value','includes','.attribute','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','Behavior\x20source\x20\x27','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','data','warning','4019793zlTGnH','MISSING_NAME','EMPTY_CONDITIONS','endsWith','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','filter','MISSING_BETWEEN_BOUNDS','level','code','.source','push','\x27\x20with\x20attribute\x20\x27','type','SEGMENT_SCHEMA_ERROR','1740YqmHNU','.conditions','EMPTY_ATTRIBUTE','90968oLbAXG','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20'];a140_0x5fe3=function(){return _0x3394f7;};return a140_0x5fe3();}import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';function a140_0x40b4(_0x5cbd03,_0x224cdd){_0x5cbd03=_0x5cbd03-0x1ae;const _0x5fe3ba=a140_0x5fe3();let _0x40b47a=_0x5fe3ba[_0x5cbd03];return _0x40b47a;}export function validateSegmentDef(_0x155dba,_0x503399={},_0x1e9a92={}){const _0x28c722=a140_0x40b4;if(_0x1e9a92[_0x28c722(0x1eb)])return runSemanticChecks(_0x155dba,_0x503399);const _0x4e51b6=SegmentDefSchema[_0x28c722(0x1db)](_0x155dba);if(_0x4e51b6[_0x28c722(0x1d2)])return runSemanticChecks(_0x4e51b6[_0x28c722(0x1b7)],_0x503399);return zodErrorsToValidationResult(_0x4e51b6[_0x28c722(0x1e9)],_0x503399);}export function validateRuleDef(_0x2b84a5,_0xfda02,_0x51f43c){const _0x2cdd3b=a140_0x40b4;if(!_0x2b84a5)return[];const _0x50f4b9=RuleDefSchema['safeParse'](_0x2b84a5);if(_0x50f4b9[_0x2cdd3b(0x1d2)])return checkRule(_0x50f4b9[_0x2cdd3b(0x1b7)],_0xfda02,_0x51f43c);const _0x1efdb1=flattenZodIssues(_0x50f4b9['error'][_0x2cdd3b(0x1dc)]);return _0x1efdb1[_0x2cdd3b(0x1d5)](_0x530a7f=>{const _0x41e283=_0x2cdd3b,_0x558828=formatZodPath(_0x530a7f[_0x41e283(0x1df)]),_0x257c49=_0x558828?_0xfda02+'.'+_0x558828:_0xfda02,_0x3aa920=mapZodIssueToCode(_0x530a7f,_0x558828),_0x1efa82=getLocationFromPath(_0x51f43c[_0x41e283(0x1d6)],_0x51f43c['source'],pathToArray(_0x257c49));return{'level':_0x41e283(0x1e9),'path':_0x257c49,'code':_0x3aa920,'message':_0x530a7f['message'],..._0x1efa82&&{'location':_0x1efa82}};});}function zodErrorsToValidationResult(_0x41acc0,_0x5281ca){const _0x46d622=a140_0x40b4,_0x1940b3=flattenZodIssues(_0x41acc0[_0x46d622(0x1dc)]),_0x5db8d8=_0x1940b3[_0x46d622(0x1d5)](_0x146f54=>{const _0x37a432=_0x46d622,_0x50a65c=formatZodPath(_0x146f54['path']),_0x385a4d=mapZodIssueToCode(_0x146f54,_0x50a65c),_0x984f0f=getLocationFromPath(_0x5281ca[_0x37a432(0x1d6)],_0x5281ca['source'],_0x146f54['path'][_0x37a432(0x1d5)](_0x32f1c3=>typeof _0x32f1c3==='symbol'?String(_0x32f1c3):_0x32f1c3));return{'level':_0x37a432(0x1e9),'path':_0x50a65c,'code':_0x385a4d,'message':_0x146f54[_0x37a432(0x1d3)],..._0x984f0f&&{'location':_0x984f0f}};});return{'valid':![],'errors':_0x5db8d8,'warnings':[]};}function mapZodIssueToCode(_0xb1879c,_0x4d6170){const _0x12d566=a140_0x40b4,_0x326a43=_0xb1879c[_0x12d566(0x1c1)]===_0x12d566(0x1e7)?_0xb1879c['params']:undefined;if(_0x4d6170===_0x12d566(0x1d8))return _0x12d566(0x1ba);if(_0x4d6170==='rule.type'||_0x4d6170[_0x12d566(0x1bc)](_0x12d566(0x1ea))){if(_0xb1879c[_0x12d566(0x1c1)]===_0x12d566(0x1dd)){if(_0x4d6170==='rule.type'||_0x4d6170[_0x12d566(0x1e8)](/\.conditions\[\d+\]\.type$/))return'INVALID_RULE_TYPE';}}if(_0x4d6170['endsWith']('.operator.type'))return _0x12d566(0x1f0);if(_0x4d6170[_0x12d566(0x1bc)](_0x12d566(0x1b1)))return'MISSING_OPERATOR_VALUE';if(_0x326a43?.[_0x12d566(0x1cd)]==='MISSING_BETWEEN_BOUNDS')return _0x12d566(0x1bf);if(_0x326a43?.[_0x12d566(0x1cd)]===_0x12d566(0x1d0))return'MISSING_TIME_UNIT';if(_0x4d6170['endsWith']('.conditions')||_0x4d6170==='conditions')return'MISSING_CONDITIONS';if(_0x4d6170[_0x12d566(0x1b2)]('arrayMatching'))return'INVALID_ARRAY_MATCHING';if(_0x4d6170[_0x12d566(0x1bc)](_0x12d566(0x1ef)))return'MISSING_SEGMENT_REFERENCE';return _0x12d566(0x1c6);}function runSemanticChecks(_0x4fb5db,_0x3e5f42){const _0x5d94ce=a140_0x40b4,_0x421ef2=[];_0x4fb5db[_0x5d94ce(0x1e2)]&&_0x421ef2[_0x5d94ce(0x1c3)](...checkRule(_0x4fb5db[_0x5d94ce(0x1e2)],'rule',_0x3e5f42));const _0x395fc7=_0x421ef2[_0x5d94ce(0x1be)](_0x1a931f=>_0x1a931f[_0x5d94ce(0x1c0)]===_0x5d94ce(0x1e9)),_0x425166=_0x421ef2['filter'](_0x2accf8=>_0x2accf8[_0x5d94ce(0x1c0)]===_0x5d94ce(0x1b8));return{'valid':_0x395fc7[_0x5d94ce(0x1e6)]===0x0,'errors':_0x395fc7,'warnings':_0x425166};}function checkRule(_0x32db69,_0x320a21,_0x1986d8){const _0x376401=a140_0x40b4,_0xd8d5c0=[];if(_0x32db69[_0x376401(0x1e1)][_0x376401(0x1e6)]===0x0)return _0xd8d5c0[_0x376401(0x1c3)]({'level':'error','path':_0x320a21+_0x376401(0x1c8),'code':_0x376401(0x1bb),'message':_0x376401(0x1b6),'location':getLocationFromPath(_0x1986d8[_0x376401(0x1d6)],_0x1986d8['source'],pathToArray(_0x320a21+_0x376401(0x1c8)))}),_0xd8d5c0;return _0xd8d5c0[_0x376401(0x1c3)](...checkConditions(_0x32db69[_0x376401(0x1e1)],_0x320a21,_0x1986d8)),_0xd8d5c0;}function checkConditions(_0x10de20,_0x5bdede,_0x3141a8){const _0x458d00=a140_0x40b4,_0x404201=[];for(let _0x4f29cc=0x0;_0x4f29cc<_0x10de20[_0x458d00(0x1e6)];_0x4f29cc++){const _0x2336d4=_0x10de20[_0x4f29cc],_0x41b5df=_0x5bdede+_0x458d00(0x1ed)+_0x4f29cc+']';_0x404201[_0x458d00(0x1c3)](...checkCondition(_0x2336d4,_0x41b5df,_0x3141a8));}return _0x404201;}function checkCondition(_0x31df7e,_0x3f3637,_0xd5607a){const _0x5dc745=a140_0x40b4,_0x7e208=[];if(_0x31df7e[_0x5dc745(0x1c5)]==='And'||_0x31df7e['type']==='Or')return _0x31df7e[_0x5dc745(0x1e1)][_0x5dc745(0x1e6)]===0x0?_0x7e208[_0x5dc745(0x1c3)]({'level':_0x5dc745(0x1e9),'path':_0x3f3637+_0x5dc745(0x1c8),'code':_0x5dc745(0x1bb),'message':_0x31df7e[_0x5dc745(0x1c5)]+_0x5dc745(0x1e0),'location':getLocationFromPath(_0xd5607a[_0x5dc745(0x1d6)],_0xd5607a[_0x5dc745(0x1b0)],pathToArray(_0x3f3637+_0x5dc745(0x1c8)))}):_0x7e208[_0x5dc745(0x1c3)]({'level':'error','path':_0x3f3637,'code':_0x5dc745(0x1d7),'message':_0x31df7e[_0x5dc745(0x1c5)]+_0x5dc745(0x1de)+_0x5dc745(0x1cb)+_0x5dc745(0x1ae),'location':getLocationFromPath(_0xd5607a[_0x5dc745(0x1d6)],_0xd5607a[_0x5dc745(0x1b0)],pathToArray(_0x3f3637))}),_0x7e208;if(_0x31df7e[_0x5dc745(0x1c5)]==='Value'||_0x31df7e[_0x5dc745(0x1c5)]===_0x5dc745(0x1d4)){const _0x15dad4=_0x31df7e,_0x51a7fc=_0x15dad4[_0x5dc745(0x1b0)],_0x146bcb=_0x15dad4[_0x5dc745(0x1ee)],_0x36d117=_0x51a7fc||_0x146bcb;(!_0x15dad4[_0x5dc745(0x1cc)]||_0x15dad4[_0x5dc745(0x1cc)]==='')&&(!_0x36d117&&_0x7e208[_0x5dc745(0x1c3)]({'level':'error','path':_0x3f3637+_0x5dc745(0x1b3),'code':_0x5dc745(0x1c9),'message':'Attribute\x20name\x20cannot\x20be\x20empty','location':getLocationFromPath(_0xd5607a['document'],_0xd5607a[_0x5dc745(0x1b0)],pathToArray(_0x3f3637+_0x5dc745(0x1b3)))}));_0x15dad4[_0x5dc745(0x1be)]&&_0x7e208[_0x5dc745(0x1c3)](...checkRule(_0x15dad4['filter'],_0x3f3637+_0x5dc745(0x1e4),_0xd5607a));if(_0x15dad4['source']){const _0xbca949=_0x15dad4[_0x5dc745(0x1cc)]&&_0x15dad4[_0x5dc745(0x1cc)]!=='';_0xbca949&&!_0x15dad4[_0x5dc745(0x1be)]&&_0x7e208[_0x5dc745(0x1c3)]({'level':'error','path':_0x3f3637+_0x5dc745(0x1c2),'code':'BEHAVIOR_SOURCE_MISSING_FILTER','message':_0x5dc745(0x1b5)+_0x15dad4[_0x5dc745(0x1b0)]+_0x5dc745(0x1c4)+_0x15dad4['attribute']+'\x27\x20'+_0x5dc745(0x1b4)+_0x5dc745(0x1e3)+_0x5dc745(0x1ce),'location':getLocationFromPath(_0xd5607a[_0x5dc745(0x1d6)],_0xd5607a[_0x5dc745(0x1b0)],pathToArray(_0x3f3637+'.source'))}),_0xbca949&&_0x15dad4[_0x5dc745(0x1be)]&&_0x7e208[_0x5dc745(0x1c3)]({'level':_0x5dc745(0x1b8),'path':_0x3f3637+'.attribute','code':_0x5dc745(0x1bd),'message':_0x5dc745(0x1da)+_0x15dad4[_0x5dc745(0x1cc)]+'\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20'+'For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','location':getLocationFromPath(_0xd5607a[_0x5dc745(0x1d6)],_0xd5607a[_0x5dc745(0x1b0)],pathToArray(_0x3f3637+_0x5dc745(0x1b3)))});}}return _0x7e208;}
@@ -1 +1 @@
1
- (function(_0x540a7c,_0x57ed3c){const _0x59dcee=a141_0x17e9,_0x55659d=_0x540a7c();while(!![]){try{const _0x4037b3=parseInt(_0x59dcee(0x168))/0x1*(-parseInt(_0x59dcee(0x187))/0x2)+parseInt(_0x59dcee(0x16e))/0x3*(parseInt(_0x59dcee(0x17b))/0x4)+-parseInt(_0x59dcee(0x172))/0x5*(parseInt(_0x59dcee(0x165))/0x6)+-parseInt(_0x59dcee(0x15a))/0x7+-parseInt(_0x59dcee(0x163))/0x8+parseInt(_0x59dcee(0x15d))/0x9*(-parseInt(_0x59dcee(0x15c))/0xa)+parseInt(_0x59dcee(0x164))/0xb;if(_0x4037b3===_0x57ed3c)break;else _0x55659d['push'](_0x55659d['shift']());}catch(_0x42fe68){_0x55659d['push'](_0x55659d['shift']());}}}(a141_0x4762,0x7f591));import a141_0x770b88 from'path';function a141_0x17e9(_0x2c3258,_0x36d227){_0x2c3258=_0x2c3258-0x14f;const _0x47622b=a141_0x4762();let _0x17e968=_0x47622b[_0x2c3258];return _0x17e968;}import{sanitizeFileName}from'../../utils/string-utils.js';function a141_0x4762(){const _0x449d2f=['directory','File\x20not\x20found','relative','root','Parent\x20segment\x20not\x20specified','resolve','660954MMmSNy','tdx.json','2260jLBafE','2889poiXiQ','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','dirname','context','parentSegment','No\x20tdx.json\x20found\x20for\x20file:\x20','3187104UzZTUc','24987666zqHcrS','24zDCylM','join','includes','3LDaAvX','match','exists','error','trim','no_config','9tcklDx','extname','no_parent','parse','662590uHMavG','folderPath','startsWith','readFile','segment','isDirectory','file_not_found','type','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','144308WEAFgf','scopedFolderPath','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','stat','parent_segment','file','resourceType','configDir','isFile','invalid_yaml','isScoped','basename','508528AYodwS','string','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','journey','replace','segmentName'];a141_0x4762=function(){return _0x449d2f;};return a141_0x4762();}import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x12b909){const _0x1d3e33=a141_0x17e9;return _0x12b909['type']!==_0x1d3e33(0x16b);}export function isScopedResolution(_0x4b0f4e){const _0x16874f=a141_0x17e9;return _0x4b0f4e[_0x16874f(0x179)]===_0x16874f(0x154)||_0x4b0f4e[_0x16874f(0x179)]==='file'||_0x4b0f4e['type']===_0x16874f(0x160);}export function getScopedDetails(_0x10c7f8){const _0x51abc9=a141_0x17e9;if(isScopedResolution(_0x10c7f8))return{'isScoped':_0x10c7f8[_0x51abc9(0x185)],'scopedFolderPath':_0x10c7f8[_0x51abc9(0x17c)]};return undefined;}async function findTdxConfigAsync(_0x571566,_0x3b17da){const _0x4b69ed=a141_0x17e9;let _0x40517b=a141_0x770b88[_0x4b69ed(0x159)](_0x571566);const _0x779ed9=a141_0x770b88['parse'](_0x40517b)[_0x4b69ed(0x157)];while(_0x40517b!==_0x779ed9){const _0x49994c=a141_0x770b88[_0x4b69ed(0x166)](_0x40517b,_0x4b69ed(0x15b));if(await _0x3b17da[_0x4b69ed(0x16a)](_0x49994c))try{const _0x151f50=await _0x3b17da[_0x4b69ed(0x175)](_0x49994c),_0x52bbdd=JSON[_0x4b69ed(0x171)](_0x151f50);if(_0x52bbdd[_0x4b69ed(0x17f)]&&typeof _0x52bbdd[_0x4b69ed(0x17f)]===_0x4b69ed(0x14f))return{'configPath':_0x49994c,'configDir':_0x40517b,'parentSegment':_0x52bbdd[_0x4b69ed(0x17f)]};}catch{}_0x40517b=a141_0x770b88[_0x4b69ed(0x15f)](_0x40517b);}return null;}function calculateScopedPath(_0x52a521,_0x1da9d3){const _0x5a92c1=a141_0x17e9,_0x23912c=a141_0x770b88[_0x5a92c1(0x156)](_0x1da9d3,_0x52a521),_0x1df093=_0x23912c!==''&&_0x23912c!=='.'&&!_0x23912c[_0x5a92c1(0x174)]('..');return{'isScoped':_0x1df093,'scopedFolderPath':_0x1df093?_0x23912c[_0x5a92c1(0x152)](/\\/g,'/'):''};}export async function resolveTarget(_0x4b8891){const _0x4305f6=a141_0x17e9,{arg:_0x3d9ae4,contextParent:_0x14eda7,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x4b8891;if(_0x3d9ae4&&isYamlFilePath(_0x3d9ae4))try{const _0x217c57=await resolveYamlFilePath(_0x3d9ae4,fs),_0x54f4cf=a141_0x770b88[_0x4305f6(0x159)](_0x3d9ae4),_0x4592a5=a141_0x770b88[_0x4305f6(0x15f)](_0x54f4cf),_0x375e06=await findTdxConfigAsync(_0x4592a5,fs);if(!_0x375e06){if(_0x14eda7){const _0x542b08=a141_0x770b88[_0x4305f6(0x15f)](_0x54f4cf);return{'type':_0x4305f6(0x180),'parentName':_0x14eda7,'targetDir':_0x542b08,'configRoot':_0x542b08,'filePath':_0x54f4cf,'resourceName':_0x217c57[_0x4305f6(0x153)],'folderPath':_0x217c57[_0x4305f6(0x173)],'resourceType':_0x217c57[_0x4305f6(0x181)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4305f6(0x16b),'errorCode':_0x4305f6(0x16d),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x3d9ae4,'arg':_0x3d9ae4,'helpText':_0x4305f6(0x150)};}const _0x580133=calculateScopedPath(_0x4592a5,_0x375e06[_0x4305f6(0x182)]);return{'type':_0x4305f6(0x180),'parentName':_0x375e06[_0x4305f6(0x161)],'targetDir':_0x375e06[_0x4305f6(0x182)],'configRoot':_0x375e06['configDir'],'filePath':_0x54f4cf,'resourceName':_0x217c57[_0x4305f6(0x153)],'folderPath':_0x217c57[_0x4305f6(0x173)],'resourceType':_0x217c57[_0x4305f6(0x181)],'isScoped':_0x580133[_0x4305f6(0x185)],'scopedFolderPath':_0x580133[_0x4305f6(0x17c)]};}catch(_0x3a59a7){const _0x307461=_0x3a59a7 instanceof Error?_0x3a59a7['message']:String(_0x3a59a7);if(_0x307461[_0x4305f6(0x167)](_0x4305f6(0x155)))return{'type':_0x4305f6(0x16b),'errorCode':_0x4305f6(0x178),'message':'File\x20not\x20found:\x20'+_0x3d9ae4,'arg':_0x3d9ae4};if(_0x307461['includes']('No\x20tdx.json\x20found')){if(_0x14eda7){const _0x3257b5=a141_0x770b88['resolve'](_0x3d9ae4);if(await fs[_0x4305f6(0x16a)](_0x3257b5)){const _0x47cdcd=a141_0x770b88[_0x4305f6(0x15f)](_0x3257b5),_0x402975=await fs[_0x4305f6(0x175)](_0x3257b5),_0x4f4fbd=_0x402975['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x5d8678=_0x402975[_0x4305f6(0x169)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1956dc=_0x4f4fbd?_0x4f4fbd[0x1][_0x4305f6(0x16c)]():a141_0x770b88[_0x4305f6(0x186)](_0x3d9ae4,a141_0x770b88[_0x4305f6(0x16f)](_0x3d9ae4)),_0xd87988=_0x5d8678&&_0x5d8678[0x1][_0x4305f6(0x16c)]()==='journey'?_0x4305f6(0x151):_0x4305f6(0x176);return{'type':_0x4305f6(0x180),'parentName':_0x14eda7,'targetDir':_0x47cdcd,'configRoot':_0x47cdcd,'filePath':_0x3257b5,'resourceName':_0x1956dc,'folderPath':'','resourceType':_0xd87988,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0x4305f6(0x16d),'message':_0x4305f6(0x162)+_0x3d9ae4,'arg':_0x3d9ae4,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}return{'type':'error','errorCode':_0x4305f6(0x184),'message':_0x307461,'arg':_0x3d9ae4};}if(_0x3d9ae4){const _0x2c83e2=a141_0x770b88[_0x4305f6(0x159)](cwd,_0x3d9ae4);let _0x3032ba=null;try{_0x3032ba=await fs[_0x4305f6(0x17e)](_0x2c83e2);}catch{}if(_0x3032ba?.[_0x4305f6(0x177)]()){const _0x406d7f=await findTdxConfigAsync(_0x2c83e2,fs);if(_0x406d7f){const _0x4f7f61=calculateScopedPath(_0x2c83e2,_0x406d7f[_0x4305f6(0x182)]);return{'type':_0x4305f6(0x154),'parentName':_0x406d7f[_0x4305f6(0x161)],'targetDir':_0x2c83e2,'configRoot':_0x406d7f['configDir'],'isScoped':_0x4f7f61[_0x4305f6(0x185)],'scopedFolderPath':_0x4f7f61[_0x4305f6(0x17c)]};}if(_0x14eda7)return{'type':'directory','parentName':_0x14eda7,'targetDir':_0x2c83e2,'configRoot':_0x2c83e2,'isScoped':![],'scopedFolderPath':''};return{'type':_0x4305f6(0x16b),'errorCode':_0x4305f6(0x16d),'message':_0x4305f6(0x17d)+_0x3d9ae4,'arg':_0x3d9ae4,'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(_0x3032ba?.[_0x4305f6(0x183)]())return{'type':'error','errorCode':_0x4305f6(0x184),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x3d9ae4,'arg':_0x3d9ae4,'helpText':_0x4305f6(0x17a)};const _0x12f5f2=sanitizeFileName(_0x3d9ae4),_0x4b92b2=getSegmentRootDir(_0x12f5f2,cwd);return{'type':'parent_name','parentName':_0x3d9ae4,'targetDir':_0x4b92b2,'configRoot':_0x4b92b2};}const _0x22b7c8=await findTdxConfigAsync(cwd,fs);if(_0x22b7c8){const _0x5160fc=calculateScopedPath(cwd,_0x22b7c8[_0x4305f6(0x182)]);return{'type':_0x4305f6(0x160),'parentName':_0x22b7c8[_0x4305f6(0x161)],'targetDir':cwd,'configRoot':_0x22b7c8[_0x4305f6(0x182)],'isScoped':_0x5160fc[_0x4305f6(0x185)],'scopedFolderPath':_0x5160fc['scopedFolderPath']};}if(_0x14eda7){const _0x2fe38f=sanitizeFileName(_0x14eda7),_0x38b132=getSegmentRootDir(_0x2fe38f,cwd);return{'type':'context','parentName':_0x14eda7,'targetDir':_0x38b132,'configRoot':_0x38b132,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4305f6(0x16b),'errorCode':_0x4305f6(0x170),'message':_0x4305f6(0x158),'helpText':_0x4305f6(0x15e)};}
1
+ (function(_0x4ebfda,_0xc9851a){const _0x255bfb=a141_0x328e,_0x4c563e=_0x4ebfda();while(!![]){try{const _0x3a9d4e=parseInt(_0x255bfb(0x1a8))/0x1*(parseInt(_0x255bfb(0x1b7))/0x2)+parseInt(_0x255bfb(0x19e))/0x3+-parseInt(_0x255bfb(0x199))/0x4+parseInt(_0x255bfb(0x1af))/0x5*(-parseInt(_0x255bfb(0x193))/0x6)+parseInt(_0x255bfb(0x190))/0x7+parseInt(_0x255bfb(0x19a))/0x8+-parseInt(_0x255bfb(0x1c3))/0x9;if(_0x3a9d4e===_0xc9851a)break;else _0x4c563e['push'](_0x4c563e['shift']());}catch(_0x360c33){_0x4c563e['push'](_0x4c563e['shift']());}}}(a141_0x512f,0xd13ec));import a141_0xb8b573 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';function a141_0x328e(_0x1031f2,_0x36c4ac){_0x1031f2=_0x1031f2-0x190;const _0x512ffb=a141_0x512f();let _0x328e0e=_0x512ffb[_0x1031f2];return _0x328e0e;}export function isSuccessfulResolution(_0x1b06c7){const _0x499d1e=a141_0x328e;return _0x1b06c7[_0x499d1e(0x1b9)]!==_0x499d1e(0x1c1);}export function isScopedResolution(_0x43cf12){const _0xf1ef44=a141_0x328e;return _0x43cf12[_0xf1ef44(0x1b9)]==='directory'||_0x43cf12['type']===_0xf1ef44(0x1a4)||_0x43cf12[_0xf1ef44(0x1b9)]===_0xf1ef44(0x1a1);}function a141_0x512f(){const _0x1de069=['exists','includes','1212arObZB','resourceType','No\x20tdx.json\x20found','journey','File\x20not\x20found','resolve','136080fnSQil','9738568wNLtZm','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','parent_segment','isFile','1320780nIHZpl','directory','root','context','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','no_parent','file','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','match','invalid_yaml','29ETltYV','No\x20tdx.json\x20found\x20for\x20file:\x20','parse','message','isDirectory','folderPath','file_not_found','25320LEsBUe','parent_name','trim','no_config','isScoped','File\x20not\x20found:\x20','segmentName','readFile','24924LWLIAy','configDir','type','startsWith','relative','segment','parentSegment','dirname','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','extname','error','Not\x20a\x20YAML\x20file:\x20','13893390IDQMSc','tdx.json','scopedFolderPath','10071229mtdmen'];a141_0x512f=function(){return _0x1de069;};return a141_0x512f();}export function getScopedDetails(_0x56c82c){const _0x428110=a141_0x328e;if(isScopedResolution(_0x56c82c))return{'isScoped':_0x56c82c[_0x428110(0x1b3)],'scopedFolderPath':_0x56c82c[_0x428110(0x1c5)]};return undefined;}async function findTdxConfigAsync(_0x5cdb4f,_0x8b4b83){const _0xb9df09=a141_0x328e;let _0x27cc64=a141_0xb8b573[_0xb9df09(0x198)](_0x5cdb4f);const _0x520f9a=a141_0xb8b573['parse'](_0x27cc64)[_0xb9df09(0x1a0)];while(_0x27cc64!==_0x520f9a){const _0x4c6f4f=a141_0xb8b573['join'](_0x27cc64,_0xb9df09(0x1c4));if(await _0x8b4b83[_0xb9df09(0x191)](_0x4c6f4f))try{const _0x106b27=await _0x8b4b83[_0xb9df09(0x1b6)](_0x4c6f4f),_0x28c6bc=JSON[_0xb9df09(0x1aa)](_0x106b27);if(_0x28c6bc[_0xb9df09(0x19c)]&&typeof _0x28c6bc['parent_segment']==='string')return{'configPath':_0x4c6f4f,'configDir':_0x27cc64,'parentSegment':_0x28c6bc[_0xb9df09(0x19c)]};}catch{}_0x27cc64=a141_0xb8b573[_0xb9df09(0x1be)](_0x27cc64);}return null;}function calculateScopedPath(_0x51cd79,_0x345be8){const _0x4529e7=a141_0x328e,_0xa5e9f0=a141_0xb8b573[_0x4529e7(0x1bb)](_0x345be8,_0x51cd79),_0x4f76d1=_0xa5e9f0!==''&&_0xa5e9f0!=='.'&&!_0xa5e9f0[_0x4529e7(0x1ba)]('..');return{'isScoped':_0x4f76d1,'scopedFolderPath':_0x4f76d1?_0xa5e9f0['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x1e365c){const _0x368cfb=a141_0x328e,{arg:_0x5befd6,contextParent:_0x2feb68,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x1e365c;if(_0x5befd6&&isYamlFilePath(_0x5befd6))try{const _0x21c54f=await resolveYamlFilePath(_0x5befd6,fs),_0x4418a3=a141_0xb8b573[_0x368cfb(0x198)](_0x5befd6),_0x5baed2=a141_0xb8b573[_0x368cfb(0x1be)](_0x4418a3),_0x5a977f=await findTdxConfigAsync(_0x5baed2,fs);if(!_0x5a977f){if(_0x2feb68){const _0x4bbc87=a141_0xb8b573[_0x368cfb(0x1be)](_0x4418a3);return{'type':_0x368cfb(0x1a4),'parentName':_0x2feb68,'targetDir':_0x4bbc87,'configRoot':_0x4bbc87,'filePath':_0x4418a3,'resourceName':_0x21c54f[_0x368cfb(0x1b5)],'folderPath':_0x21c54f[_0x368cfb(0x1ad)],'resourceType':_0x21c54f[_0x368cfb(0x194)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x368cfb(0x1c1),'errorCode':_0x368cfb(0x1b2),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x5befd6,'arg':_0x5befd6,'helpText':_0x368cfb(0x1a2)};}const _0xc5a904=calculateScopedPath(_0x5baed2,_0x5a977f[_0x368cfb(0x1b8)]);return{'type':'file','parentName':_0x5a977f['parentSegment'],'targetDir':_0x5a977f[_0x368cfb(0x1b8)],'configRoot':_0x5a977f['configDir'],'filePath':_0x4418a3,'resourceName':_0x21c54f['segmentName'],'folderPath':_0x21c54f[_0x368cfb(0x1ad)],'resourceType':_0x21c54f[_0x368cfb(0x194)],'isScoped':_0xc5a904[_0x368cfb(0x1b3)],'scopedFolderPath':_0xc5a904['scopedFolderPath']};}catch(_0x1736c4){const _0x55458d=_0x1736c4 instanceof Error?_0x1736c4[_0x368cfb(0x1ab)]:String(_0x1736c4);if(_0x55458d[_0x368cfb(0x192)](_0x368cfb(0x197)))return{'type':_0x368cfb(0x1c1),'errorCode':_0x368cfb(0x1ae),'message':_0x368cfb(0x1b4)+_0x5befd6,'arg':_0x5befd6};if(_0x55458d[_0x368cfb(0x192)](_0x368cfb(0x195))){if(_0x2feb68){const _0x46a1e4=a141_0xb8b573[_0x368cfb(0x198)](_0x5befd6);if(await fs[_0x368cfb(0x191)](_0x46a1e4)){const _0x4ee4ef=a141_0xb8b573[_0x368cfb(0x1be)](_0x46a1e4),_0x397a20=await fs[_0x368cfb(0x1b6)](_0x46a1e4),_0x1046a1=_0x397a20[_0x368cfb(0x1a6)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x38bb93=_0x397a20['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x45368b=_0x1046a1?_0x1046a1[0x1]['trim']():a141_0xb8b573['basename'](_0x5befd6,a141_0xb8b573[_0x368cfb(0x1c0)](_0x5befd6)),_0x2a14a9=_0x38bb93&&_0x38bb93[0x1][_0x368cfb(0x1b1)]()==='journey'?_0x368cfb(0x196):_0x368cfb(0x1bc);return{'type':_0x368cfb(0x1a4),'parentName':_0x2feb68,'targetDir':_0x4ee4ef,'configRoot':_0x4ee4ef,'filePath':_0x46a1e4,'resourceName':_0x45368b,'folderPath':'','resourceType':_0x2a14a9,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0x368cfb(0x1b2),'message':_0x368cfb(0x1a9)+_0x5befd6,'arg':_0x5befd6,'helpText':_0x368cfb(0x1a2)};}return{'type':_0x368cfb(0x1c1),'errorCode':'invalid_yaml','message':_0x55458d,'arg':_0x5befd6};}if(_0x5befd6){const _0x274837=a141_0xb8b573[_0x368cfb(0x198)](cwd,_0x5befd6);let _0x50fc24=null;try{_0x50fc24=await fs['stat'](_0x274837);}catch{}if(_0x50fc24?.[_0x368cfb(0x1ac)]()){const _0x4c5c1c=await findTdxConfigAsync(_0x274837,fs);if(_0x4c5c1c){const _0x252808=calculateScopedPath(_0x274837,_0x4c5c1c[_0x368cfb(0x1b8)]);return{'type':_0x368cfb(0x19f),'parentName':_0x4c5c1c['parentSegment'],'targetDir':_0x274837,'configRoot':_0x4c5c1c[_0x368cfb(0x1b8)],'isScoped':_0x252808[_0x368cfb(0x1b3)],'scopedFolderPath':_0x252808[_0x368cfb(0x1c5)]};}if(_0x2feb68)return{'type':_0x368cfb(0x19f),'parentName':_0x2feb68,'targetDir':_0x274837,'configRoot':_0x274837,'isScoped':![],'scopedFolderPath':''};return{'type':'error','errorCode':'no_config','message':_0x368cfb(0x1a5)+_0x5befd6,'arg':_0x5befd6,'helpText':_0x368cfb(0x1a2)};}if(_0x50fc24?.[_0x368cfb(0x19d)]())return{'type':_0x368cfb(0x1c1),'errorCode':_0x368cfb(0x1a7),'message':_0x368cfb(0x1c2)+_0x5befd6,'arg':_0x5befd6,'helpText':_0x368cfb(0x1bf)};const _0x4bdf49=sanitizeFileName(_0x5befd6),_0xfb8361=getSegmentRootDir(_0x4bdf49,cwd);return{'type':_0x368cfb(0x1b0),'parentName':_0x5befd6,'targetDir':_0xfb8361,'configRoot':_0xfb8361};}const _0x44948e=await findTdxConfigAsync(cwd,fs);if(_0x44948e){const _0x11d8ea=calculateScopedPath(cwd,_0x44948e[_0x368cfb(0x1b8)]);return{'type':_0x368cfb(0x1a1),'parentName':_0x44948e[_0x368cfb(0x1bd)],'targetDir':cwd,'configRoot':_0x44948e[_0x368cfb(0x1b8)],'isScoped':_0x11d8ea[_0x368cfb(0x1b3)],'scopedFolderPath':_0x11d8ea['scopedFolderPath']};}if(_0x2feb68){const _0x1bf729=sanitizeFileName(_0x2feb68),_0x49d662=getSegmentRootDir(_0x1bf729,cwd);return{'type':_0x368cfb(0x1a1),'parentName':_0x2feb68,'targetDir':_0x49d662,'configRoot':_0x49d662,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x368cfb(0x1c1),'errorCode':_0x368cfb(0x1a3),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x368cfb(0x19b)};}
@@ -1 +1 @@
1
- const a142_0xe592e=a142_0x3341;(function(_0x18946e,_0x4ab123){const _0x55f0b3=a142_0x3341,_0x280ee2=_0x18946e();while(!![]){try{const _0x521628=parseInt(_0x55f0b3(0xea))/0x1+-parseInt(_0x55f0b3(0xff))/0x2+-parseInt(_0x55f0b3(0xf0))/0x3*(parseInt(_0x55f0b3(0xfa))/0x4)+-parseInt(_0x55f0b3(0xef))/0x5*(parseInt(_0x55f0b3(0xee))/0x6)+-parseInt(_0x55f0b3(0xf7))/0x7*(parseInt(_0x55f0b3(0xf3))/0x8)+parseInt(_0x55f0b3(0xe9))/0x9+-parseInt(_0x55f0b3(0xf9))/0xa*(-parseInt(_0x55f0b3(0xfb))/0xb);if(_0x521628===_0x4ab123)break;else _0x280ee2['push'](_0x280ee2['shift']());}catch(_0x5ae1fc){_0x280ee2['push'](_0x280ee2['shift']());}}}(a142_0x4a0b,0xc5db9));import{existsSync,readFileSync}from'fs';import a142_0x2d6c01 from'path';function a142_0x4a0b(){const _0x18c639=['join','cwd','12724515zXNOwQ','10406XhBbCN','root','segments','replace','12EbZwUC','635890xoeiaf','60pdvTEn','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','dirname','133800ZxIeWk','string','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','engage_workspace','609reWuLw','stringify','60djruBU','179136WblhNh','4447597JUICHy','relative','parent_segment','parse','869334ArSyYX'];a142_0x4a0b=function(){return _0x18c639;};return a142_0x4a0b();}const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a142_0xe592e(0xec);export function findTdxConfigPath(_0x478dcc=process['cwd']()){const _0x11d931=a142_0xe592e;let _0x51e4b8=a142_0x2d6c01['resolve'](_0x478dcc);const _0x1c2797=a142_0x2d6c01[_0x11d931(0xfe)](_0x51e4b8)[_0x11d931(0xeb)];while(_0x51e4b8!==_0x1c2797){const _0x21f9d4=a142_0x2d6c01[_0x11d931(0x100)](_0x51e4b8,TDX_CONFIG_FILE);if(existsSync(_0x21f9d4))return _0x21f9d4;_0x51e4b8=a142_0x2d6c01[_0x11d931(0xf2)](_0x51e4b8);}return null;}export function loadTdxConfig(_0xa7d916){const _0xf8c7a7=a142_0xe592e,_0x5ef387=readFileSync(_0xa7d916,'utf-8');let _0x22707d;try{_0x22707d=JSON[_0xf8c7a7(0xfe)](_0x5ef387);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0xa7d916);}if(!_0x22707d||typeof _0x22707d!=='object')throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x2c0352=_0x22707d,_0x1f9300=_0x2c0352['parent_segment']&&typeof _0x2c0352[_0xf8c7a7(0xfd)]===_0xf8c7a7(0xf4),_0x4db132=_0x2c0352[_0xf8c7a7(0xf6)]&&typeof _0x2c0352[_0xf8c7a7(0xf6)]===_0xf8c7a7(0xf4);if(!_0x1f9300&&!_0x4db132)throw new Error(_0xf8c7a7(0xf5));const _0x453285={};return _0x1f9300&&(_0x453285[_0xf8c7a7(0xfd)]=_0x2c0352['parent_segment']),_0x4db132&&(_0x453285['engage_workspace']=_0x2c0352[_0xf8c7a7(0xf6)]),_0x453285;}export function findTdxConfig(_0x124bf6=process[a142_0xe592e(0x101)]()){const _0x111078=a142_0xe592e,_0x3f0122=findTdxConfigPath(_0x124bf6);if(!_0x3f0122)throw new Error(_0x111078(0xf1));const _0x139e32=loadTdxConfig(_0x3f0122),_0x55d5a2=a142_0x2d6c01['dirname'](_0x3f0122);return{'config':_0x139e32,'configPath':_0x3f0122,'configDir':_0x55d5a2};}function a142_0x3341(_0x5b6511,_0xa91e3c){_0x5b6511=_0x5b6511-0xe9;const _0x4a0bce=a142_0x4a0b();let _0x334169=_0x4a0bce[_0x5b6511];return _0x334169;}export function tryFindTdxConfig(_0x3daf73){try{return findTdxConfig(_0x3daf73);}catch{return null;}}export function getSegmentRootDir(_0x439b01,_0x940e53=process[a142_0xe592e(0x101)]()){const _0x1dfc5d=a142_0xe592e;return a142_0x2d6c01[_0x1dfc5d(0x100)](_0x940e53,SEGMENTS_DIR,_0x439b01);}export function getTdxConfigPath(_0x20bc4e,_0x746460=process['cwd']()){const _0x2ded70=a142_0xe592e;return a142_0x2d6c01[_0x2ded70(0x100)](getSegmentRootDir(_0x20bc4e,_0x746460),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x558160,_0x10718d){const _0x2816fc=a142_0xe592e,_0x3fa2e3=a142_0x2d6c01['resolve'](_0x558160),_0x26a504=a142_0x2d6c01[_0x2816fc(0xfc)](_0x10718d,_0x3fa2e3);if(_0x26a504['startsWith']('..'))return'';return _0x26a504;}export function localPathToTdFolderPath(_0xb2179a){const _0x21e9a6=a142_0xe592e,_0x5553c3=a142_0x2d6c01['dirname'](_0xb2179a);if(_0x5553c3==='.'||_0x5553c3==='')return'';return _0x5553c3[_0x21e9a6(0xed)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x34d2e2,_0x1ec821){if(!_0x34d2e2)return _0x1ec821;return a142_0x2d6c01['join'](_0x1ec821,_0x34d2e2);}export function createTdxConfigContent(_0x168aee){const _0x3260f0=a142_0xe592e,_0x54f933={'parent_segment':_0x168aee};return JSON[_0x3260f0(0xf8)](_0x54f933,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x364c6b){const _0x511a89=a142_0xe592e,_0x2c7e6b={'engage_workspace':_0x364c6b};return JSON[_0x511a89(0xf8)](_0x2c7e6b,null,0x2)+'\x0a';}
1
+ const a142_0x1e7bc5=a142_0x3ea8;(function(_0xe8832b,_0x156291){const _0x29665d=a142_0x3ea8,_0x4a3ea5=_0xe8832b();while(!![]){try{const _0x42e85a=parseInt(_0x29665d(0x1f7))/0x1*(parseInt(_0x29665d(0x20a))/0x2)+parseInt(_0x29665d(0x202))/0x3*(-parseInt(_0x29665d(0x205))/0x4)+parseInt(_0x29665d(0x206))/0x5*(-parseInt(_0x29665d(0x1fe))/0x6)+parseInt(_0x29665d(0x1ff))/0x7*(parseInt(_0x29665d(0x203))/0x8)+parseInt(_0x29665d(0x1f2))/0x9*(parseInt(_0x29665d(0x1ee))/0xa)+parseInt(_0x29665d(0x1f6))/0xb+parseInt(_0x29665d(0x1f0))/0xc*(parseInt(_0x29665d(0x1fa))/0xd);if(_0x42e85a===_0x156291)break;else _0x4a3ea5['push'](_0x4a3ea5['shift']());}catch(_0x1a42ae){_0x4a3ea5['push'](_0x4a3ea5['shift']());}}}(a142_0x263b,0x715ce));import{existsSync,readFileSync}from'fs';import a142_0x42c532 from'path';const TDX_CONFIG_FILE=a142_0x1e7bc5(0x1f4),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x107885=process[a142_0x1e7bc5(0x1ef)]()){const _0x26bcbc=a142_0x1e7bc5;let _0x2ab59a=a142_0x42c532['resolve'](_0x107885);const _0x1fac33=a142_0x42c532[_0x26bcbc(0x207)](_0x2ab59a)[_0x26bcbc(0x1fc)];while(_0x2ab59a!==_0x1fac33){const _0x120185=a142_0x42c532[_0x26bcbc(0x208)](_0x2ab59a,TDX_CONFIG_FILE);if(existsSync(_0x120185))return _0x120185;_0x2ab59a=a142_0x42c532[_0x26bcbc(0x1f5)](_0x2ab59a);}return null;}export function loadTdxConfig(_0x2bdb7d){const _0x476af8=a142_0x1e7bc5,_0x4867c9=readFileSync(_0x2bdb7d,_0x476af8(0x204));let _0x2561ce;try{_0x2561ce=JSON[_0x476af8(0x207)](_0x4867c9);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x2bdb7d);}if(!_0x2561ce||typeof _0x2561ce!==_0x476af8(0x1f8))throw new Error(_0x476af8(0x200));const _0xd7967e=_0x2561ce,_0x57cfca=_0xd7967e['parent_segment']&&typeof _0xd7967e[_0x476af8(0x201)]===_0x476af8(0x1f1),_0x40422e=_0xd7967e[_0x476af8(0x1fb)]&&typeof _0xd7967e[_0x476af8(0x1fb)]===_0x476af8(0x1f1);if(!_0x57cfca&&!_0x40422e)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x34f409={};return _0x57cfca&&(_0x34f409[_0x476af8(0x201)]=_0xd7967e[_0x476af8(0x201)]),_0x40422e&&(_0x34f409['engage_workspace']=_0xd7967e['engage_workspace']),_0x34f409;}export function findTdxConfig(_0xc633fe=process[a142_0x1e7bc5(0x1ef)]()){const _0xc48001=a142_0x1e7bc5,_0x9454f6=findTdxConfigPath(_0xc633fe);if(!_0x9454f6)throw new Error(_0xc48001(0x1fd));const _0x4cd3ab=loadTdxConfig(_0x9454f6),_0x3be708=a142_0x42c532[_0xc48001(0x1f5)](_0x9454f6);return{'config':_0x4cd3ab,'configPath':_0x9454f6,'configDir':_0x3be708};}export function tryFindTdxConfig(_0x3c2917){try{return findTdxConfig(_0x3c2917);}catch{return null;}}export function getSegmentRootDir(_0xf44c3f,_0x529985=process['cwd']()){return a142_0x42c532['join'](_0x529985,SEGMENTS_DIR,_0xf44c3f);}export function getTdxConfigPath(_0xf63c03,_0x90fb57=process['cwd']()){const _0x3beb18=a142_0x1e7bc5;return a142_0x42c532[_0x3beb18(0x208)](getSegmentRootDir(_0xf63c03,_0x90fb57),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x24cfeb,_0x1d6a6c){const _0x54d45c=a142_0x1e7bc5,_0x483ee9=a142_0x42c532['resolve'](_0x24cfeb),_0x2235f4=a142_0x42c532[_0x54d45c(0x1f9)](_0x1d6a6c,_0x483ee9);if(_0x2235f4[_0x54d45c(0x209)]('..'))return'';return _0x2235f4;}export function localPathToTdFolderPath(_0x1db848){const _0x4386ea=a142_0x1e7bc5,_0x1e7364=a142_0x42c532['dirname'](_0x1db848);if(_0x1e7364==='.'||_0x1e7364==='')return'';return _0x1e7364[_0x4386ea(0x1f3)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x3ec7f7,_0x2b7a26){const _0x1999ca=a142_0x1e7bc5;if(!_0x3ec7f7)return _0x2b7a26;return a142_0x42c532[_0x1999ca(0x208)](_0x2b7a26,_0x3ec7f7);}export function createTdxConfigContent(_0x441d1a){const _0x2fa344=a142_0x1e7bc5,_0x2e1b42={'parent_segment':_0x441d1a};return JSON[_0x2fa344(0x20b)](_0x2e1b42,null,0x2)+'\x0a';}function a142_0x3ea8(_0x47e439,_0x2ada27){_0x47e439=_0x47e439-0x1ee;const _0x263b09=a142_0x263b();let _0x3ea898=_0x263b09[_0x47e439];return _0x3ea898;}export function createEngageTdxConfigContent(_0x439873){const _0x21dc06=a142_0x1e7bc5,_0x3347cd={'engage_workspace':_0x439873};return JSON[_0x21dc06(0x20b)](_0x3347cd,null,0x2)+'\x0a';}function a142_0x263b(){const _0xff0027=['3CUaEcd','8dCBGqU','utf-8','3655396ftHXvs','160YpRuLr','parse','join','startsWith','16QzFCiW','stringify','9970GWoKMz','cwd','12yVvyTo','string','5787ecQSkv','replace','tdx.json','dirname','3012581XaanYS','80079MpjTks','object','relative','1431352hpMegg','engage_workspace','root','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','170388TpKErU','4348687TVBUIb','Invalid\x20tdx.json:\x20expected\x20object','parent_segment'];a142_0x263b=function(){return _0xff0027;};return a142_0x263b();}
@@ -1 +1 @@
1
- const a143_0x3768a8=a143_0x5129;(function(_0x4fd24c,_0x1a087c){const _0x418ea0=a143_0x5129,_0x4c2df9=_0x4fd24c();while(!![]){try{const _0x28cfc5=-parseInt(_0x418ea0(0x116))/0x1+-parseInt(_0x418ea0(0x115))/0x2*(parseInt(_0x418ea0(0x11f))/0x3)+parseInt(_0x418ea0(0x118))/0x4+-parseInt(_0x418ea0(0xfb))/0x5+-parseInt(_0x418ea0(0x120))/0x6+-parseInt(_0x418ea0(0x104))/0x7*(parseInt(_0x418ea0(0x121))/0x8)+parseInt(_0x418ea0(0x109))/0x9;if(_0x28cfc5===_0x1a087c)break;else _0x4c2df9['push'](_0x4c2df9['shift']());}catch(_0x233cb9){_0x4c2df9['push'](_0x4c2df9['shift']());}}}(a143_0x2240,0x39f58));import{z}from'zod';export const ScheduleTypeSchema=z[a143_0x3768a8(0x10c)](['none','hourly','daily',a143_0x3768a8(0x107),'monthly',a143_0x3768a8(0x100),'minutes_interval']);export const RepeatUnitSchema=z['enum']([a143_0x3768a8(0x11c),a143_0x3768a8(0x108),a143_0x3768a8(0x10f),a143_0x3768a8(0x103),a143_0x3768a8(0x11b),a143_0x3768a8(0x11d),a143_0x3768a8(0x11e)]);export const ScheduleDefSchema=z[a143_0x3768a8(0x10e)]({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a143_0x3768a8(0xfc)]()[a143_0x3768a8(0x11a)](),'repeat_sub_frequency':z[a143_0x3768a8(0x119)](z[a143_0x3768a8(0xfc)]())[a143_0x3768a8(0x11a)](),'start_at':z[a143_0x3768a8(0x117)]()[a143_0x3768a8(0x105)]()['optional'](),'end_on':z[a143_0x3768a8(0x117)]()[a143_0x3768a8(0x105)]()[a143_0x3768a8(0x11a)](),'timezone':z['string']()[a143_0x3768a8(0x11a)]()});function a143_0x2240(){const _0x520095=['Activation\x20name\x20is\x20required','407970SddsPv','254256VnOaOU','string','121996ozoLwD','array','optional','month','minute','once','none','6xRZLhC','2156028ZPAjmB','296fxJaaw','2147710rPrDEm','number','desc','record','rows','cron','masked','All','week','15365gKCHfU','nullable','unknown','weekly','hour','15652998GXAXkS','onSuccess','boolean','enum','clear','object','day','onFailure','min','Last','asc'];a143_0x2240=function(){return _0x520095;};return a143_0x2240();}export const NotificationDefSchema=z[a143_0x3768a8(0x10e)]({'notify_on':z[a143_0x3768a8(0x119)](z[a143_0x3768a8(0x10c)]([a143_0x3768a8(0x10a),a143_0x3768a8(0x110)]))['optional'](),'email_recipients':z['array'](z[a143_0x3768a8(0x117)]())[a143_0x3768a8(0x11a)]()});function a143_0x5129(_0x1d691a,_0x8d0e9f){_0x1d691a=_0x1d691a-0xfb;const _0x224066=a143_0x2240();let _0x5129ed=_0x224066[_0x1d691a];return _0x5129ed;}export const ActivationColumnDefSchema=z['union']([z[a143_0x3768a8(0x117)](),z[a143_0x3768a8(0x10e)]({'name':z['string'](),'type':z[a143_0x3768a8(0x117)]()['optional'](),'visibility':z[a143_0x3768a8(0x10c)]([a143_0x3768a8(0x10d),a143_0x3768a8(0x101)])[a143_0x3768a8(0x11a)]()})]);export const ActivationBehaviorDefSchema=z[a143_0x3768a8(0x10e)]({'columns':z[a143_0x3768a8(0x119)](z[a143_0x3768a8(0x10e)]({'name':z[a143_0x3768a8(0x117)](),'type':z[a143_0x3768a8(0x117)]()[a143_0x3768a8(0x11a)](),'visibility':z[a143_0x3768a8(0x10c)]([a143_0x3768a8(0x10d),a143_0x3768a8(0x101)])[a143_0x3768a8(0x11a)]()}))['optional'](),'behavior_table':z['string']()[a143_0x3768a8(0x11a)](),'join_row':z[a143_0x3768a8(0xfc)]()[a143_0x3768a8(0x105)]()[a143_0x3768a8(0x11a)](),'join_strategy':z[a143_0x3768a8(0x10c)]([a143_0x3768a8(0x102),'First',a143_0x3768a8(0x112),'Top-N'])['optional'](),'formatting':z[a143_0x3768a8(0x10c)]([a143_0x3768a8(0xff),'cols'])['optional'](),'order_by':z['array'](z[a143_0x3768a8(0x10e)]({'key':z['string'](),'order':z[a143_0x3768a8(0x10c)]([a143_0x3768a8(0x113),a143_0x3768a8(0xfd)])}))[a143_0x3768a8(0x11a)]()});export const ActivationDefSchema=z[a143_0x3768a8(0x10e)]({'name':z[a143_0x3768a8(0x117)]()[a143_0x3768a8(0x111)](0x1,a143_0x3768a8(0x114)),'description':z['string']()['optional'](),'connection':z['string']()[a143_0x3768a8(0x111)](0x1,'Connection\x20name\x20is\x20required'),'all_columns':z['boolean']()['optional'](),'columns':z[a143_0x3768a8(0x119)](ActivationColumnDefSchema)[a143_0x3768a8(0x11a)](),'schedule':ScheduleDefSchema[a143_0x3768a8(0x11a)](),'notification':NotificationDefSchema[a143_0x3768a8(0x11a)](),'connector_config':z[a143_0x3768a8(0xfe)](z[a143_0x3768a8(0x117)](),z[a143_0x3768a8(0x106)]())['optional'](),'activation_template_id':z['string']()['nullable']()[a143_0x3768a8(0x11a)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a143_0x3768a8(0x11a)](),'run_after_journey_refresh':z[a143_0x3768a8(0x10b)]()[a143_0x3768a8(0x11a)]()});
1
+ const a143_0x389d4a=a143_0x38d5;(function(_0x48cb33,_0x145f97){const _0x177969=a143_0x38d5,_0x52dfc3=_0x48cb33();while(!![]){try{const _0x45bab1=parseInt(_0x177969(0xee))/0x1*(parseInt(_0x177969(0xf0))/0x2)+-parseInt(_0x177969(0xd4))/0x3*(-parseInt(_0x177969(0xef))/0x4)+-parseInt(_0x177969(0xdb))/0x5*(parseInt(_0x177969(0xd5))/0x6)+-parseInt(_0x177969(0xde))/0x7+-parseInt(_0x177969(0xe1))/0x8*(-parseInt(_0x177969(0xd6))/0x9)+-parseInt(_0x177969(0xed))/0xa*(-parseInt(_0x177969(0xe9))/0xb)+parseInt(_0x177969(0xdd))/0xc;if(_0x45bab1===_0x145f97)break;else _0x52dfc3['push'](_0x52dfc3['shift']());}catch(_0x532e8c){_0x52dfc3['push'](_0x52dfc3['shift']());}}}(a143_0x4d5c,0xc20e4));function a143_0x38d5(_0x497e2a,_0x22ca65){_0x497e2a=_0x497e2a-0xd2;const _0x4d5c87=a143_0x4d5c();let _0x38d5fd=_0x4d5c87[_0x497e2a];return _0x38d5fd;}import{z}from'zod';export const ScheduleTypeSchema=z[a143_0x389d4a(0xf8)]([a143_0x389d4a(0xf4),'hourly','daily',a143_0x389d4a(0xe0),a143_0x389d4a(0xf6),a143_0x389d4a(0xf7),a143_0x389d4a(0xdc)]);export const RepeatUnitSchema=z[a143_0x389d4a(0xf8)]([a143_0x389d4a(0xd7),a143_0x389d4a(0xfc),a143_0x389d4a(0xf1),'week','month',a143_0x389d4a(0xdf),a143_0x389d4a(0xf4)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema[a143_0x389d4a(0xd2)](),'repeat_unit':RepeatUnitSchema[a143_0x389d4a(0xd2)](),'repeat_frequency':z[a143_0x389d4a(0xe5)]()[a143_0x389d4a(0xd2)](),'repeat_sub_frequency':z[a143_0x389d4a(0xfe)](z['number']())[a143_0x389d4a(0xd2)](),'start_at':z[a143_0x389d4a(0xf3)]()[a143_0x389d4a(0xf2)]()[a143_0x389d4a(0xd2)](),'end_on':z[a143_0x389d4a(0xf3)]()[a143_0x389d4a(0xf2)]()['optional'](),'timezone':z[a143_0x389d4a(0xf3)]()['optional']()});export const NotificationDefSchema=z[a143_0x389d4a(0xfb)]({'notify_on':z[a143_0x389d4a(0xfe)](z['enum'](['onSuccess',a143_0x389d4a(0xe3)]))[a143_0x389d4a(0xd2)](),'email_recipients':z[a143_0x389d4a(0xfe)](z[a143_0x389d4a(0xf3)]())['optional']()});function a143_0x4d5c(){const _0x116c23=['521596wvlLBV','1006OyRdYg','day','nullable','string','none','Connection\x20name\x20is\x20required','monthly','cron','enum','desc','masked','object','hour','Last','array','optional','boolean','3StDTfj','1378092eHvvUZ','9CXHsPb','minute','cols','Top-N','Activation\x20name\x20is\x20required','10dEdjUP','minutes_interval','6456588oZnJpS','8064483opevyJ','once','weekly','9879920hlGWdh','asc','onFailure','clear','number','All','record','First','451OaWwyb','unknown','rows','min','14930WVxOXJ','878GlnfdY'];a143_0x4d5c=function(){return _0x116c23;};return a143_0x4d5c();}export const ActivationColumnDefSchema=z['union']([z['string'](),z[a143_0x389d4a(0xfb)]({'name':z[a143_0x389d4a(0xf3)](),'type':z['string']()[a143_0x389d4a(0xd2)](),'visibility':z['enum']([a143_0x389d4a(0xe4),'masked'])[a143_0x389d4a(0xd2)]()})]);export const ActivationBehaviorDefSchema=z[a143_0x389d4a(0xfb)]({'columns':z['array'](z[a143_0x389d4a(0xfb)]({'name':z[a143_0x389d4a(0xf3)](),'type':z[a143_0x389d4a(0xf3)]()[a143_0x389d4a(0xd2)](),'visibility':z[a143_0x389d4a(0xf8)](['clear',a143_0x389d4a(0xfa)])[a143_0x389d4a(0xd2)]()}))[a143_0x389d4a(0xd2)](),'behavior_table':z[a143_0x389d4a(0xf3)]()[a143_0x389d4a(0xd2)](),'join_row':z[a143_0x389d4a(0xe5)]()[a143_0x389d4a(0xf2)]()[a143_0x389d4a(0xd2)](),'join_strategy':z[a143_0x389d4a(0xf8)]([a143_0x389d4a(0xe6),a143_0x389d4a(0xe8),a143_0x389d4a(0xfd),a143_0x389d4a(0xd9)])[a143_0x389d4a(0xd2)](),'formatting':z['enum']([a143_0x389d4a(0xeb),a143_0x389d4a(0xd8)])[a143_0x389d4a(0xd2)](),'order_by':z['array'](z['object']({'key':z[a143_0x389d4a(0xf3)](),'order':z[a143_0x389d4a(0xf8)]([a143_0x389d4a(0xe2),a143_0x389d4a(0xf9)])}))['optional']()});export const ActivationDefSchema=z[a143_0x389d4a(0xfb)]({'name':z[a143_0x389d4a(0xf3)]()[a143_0x389d4a(0xec)](0x1,a143_0x389d4a(0xda)),'description':z['string']()[a143_0x389d4a(0xd2)](),'connection':z[a143_0x389d4a(0xf3)]()[a143_0x389d4a(0xec)](0x1,a143_0x389d4a(0xf5)),'all_columns':z[a143_0x389d4a(0xd3)]()[a143_0x389d4a(0xd2)](),'columns':z[a143_0x389d4a(0xfe)](ActivationColumnDefSchema)[a143_0x389d4a(0xd2)](),'schedule':ScheduleDefSchema[a143_0x389d4a(0xd2)](),'notification':NotificationDefSchema[a143_0x389d4a(0xd2)](),'connector_config':z[a143_0x389d4a(0xe7)](z[a143_0x389d4a(0xf3)](),z[a143_0x389d4a(0xea)]())['optional'](),'activation_template_id':z['string']()['nullable']()[a143_0x389d4a(0xd2)](),'behavior':ActivationBehaviorDefSchema[a143_0x389d4a(0xf2)]()['optional'](),'run_after_journey_refresh':z[a143_0x389d4a(0xd3)]()[a143_0x389d4a(0xd2)]()});
@@ -1 +1 @@
1
- (function(_0x29982f,_0x327812){var _0x23e432=a144_0x2103,_0x513683=_0x29982f();while(!![]){try{var _0x264a9d=parseInt(_0x23e432(0x145))/0x1*(parseInt(_0x23e432(0x141))/0x2)+-parseInt(_0x23e432(0x143))/0x3*(parseInt(_0x23e432(0x13e))/0x4)+-parseInt(_0x23e432(0x142))/0x5+-parseInt(_0x23e432(0x13d))/0x6*(parseInt(_0x23e432(0x144))/0x7)+parseInt(_0x23e432(0x140))/0x8+-parseInt(_0x23e432(0x13f))/0x9*(-parseInt(_0x23e432(0x13b))/0xa)+-parseInt(_0x23e432(0x13c))/0xb;if(_0x264a9d===_0x327812)break;else _0x513683['push'](_0x513683['shift']());}catch(_0x4e097e){_0x513683['push'](_0x513683['shift']());}}}(a144_0xc69c,0x951e6));function a144_0x2103(_0x59911c,_0xe82fc5){_0x59911c=_0x59911c-0x13b;var _0xc69c85=a144_0xc69c();var _0x210384=_0xc69c85[_0x59911c];return _0x210384;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a144_0xc69c(){var _0x5da445=['933864ExeqpT','4bbkiJS','2902540pFbWVn','30JVmOhy','906535cntqBl','539934cDHRZk','20VFYXvZ','2659382OxqddM','18rlkqyw','235064nNHRhm','5456853VgrkRt'];a144_0xc69c=function(){return _0x5da445;};return a144_0xc69c();}
1
+ function a144_0xa857(_0x309990,_0x5e3c74){_0x309990=_0x309990-0x13c;var _0x527135=a144_0x5271();var _0xa8579c=_0x527135[_0x309990];return _0xa8579c;}(function(_0x3a91d8,_0x557896){var _0xe55a0d=a144_0xa857,_0x599c98=_0x3a91d8();while(!![]){try{var _0x5b2054=-parseInt(_0xe55a0d(0x13d))/0x1+parseInt(_0xe55a0d(0x13f))/0x2+parseInt(_0xe55a0d(0x141))/0x3+-parseInt(_0xe55a0d(0x13c))/0x4*(-parseInt(_0xe55a0d(0x143))/0x5)+parseInt(_0xe55a0d(0x145))/0x6*(-parseInt(_0xe55a0d(0x140))/0x7)+-parseInt(_0xe55a0d(0x13e))/0x8*(-parseInt(_0xe55a0d(0x142))/0x9)+parseInt(_0xe55a0d(0x144))/0xa*(parseInt(_0xe55a0d(0x146))/0xb);if(_0x5b2054===_0x557896)break;else _0x599c98['push'](_0x599c98['shift']());}catch(_0x33ee68){_0x599c98['push'](_0x599c98['shift']());}}}(a144_0x5271,0xaee38));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a144_0x5271(){var _0x4d4096=['2030524LIJXgA','1322355LoxjZa','56272OnZtDX','1036228uMxPlU','1924307wuqjFk','2462946XRFkYi','540nJbKdM','5ZXRlLu','544970rhMXes','30dhOUXR','231aOApCE'];a144_0x5271=function(){return _0x4d4096;};return a144_0x5271();}
@@ -1 +1 @@
1
- const a145_0x4b432d=a145_0x4ead;(function(_0x399b41,_0x2f4cb8){const _0x139890=a145_0x4ead,_0x241a37=_0x399b41();while(!![]){try{const _0x30d8ca=-parseInt(_0x139890(0xf5))/0x1+-parseInt(_0x139890(0xf9))/0x2+-parseInt(_0x139890(0xfc))/0x3*(-parseInt(_0x139890(0xfa))/0x4)+parseInt(_0x139890(0xea))/0x5+parseInt(_0x139890(0xef))/0x6+parseInt(_0x139890(0xdb))/0x7*(-parseInt(_0x139890(0xe3))/0x8)+parseInt(_0x139890(0xe1))/0x9;if(_0x30d8ca===_0x2f4cb8)break;else _0x241a37['push'](_0x241a37['shift']());}catch(_0x424fbd){_0x241a37['push'](_0x241a37['shift']());}}}(a145_0x348c,0x68c97));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a145_0x4b432d(0xe6)]([a145_0x4b432d(0xf3),'simulation',a145_0x4b432d(0xeb)]);export const ReentryModeTypeSchema=z[a145_0x4b432d(0xe6)]([a145_0x4b432d(0xe0),a145_0x4b432d(0xdc),a145_0x4b432d(0xe9)]);export const WaitUnitTypeSchema=z[a145_0x4b432d(0xe6)]([a145_0x4b432d(0xfb),'week']);export const StepTypeValueSchema=z[a145_0x4b432d(0xe6)]([a145_0x4b432d(0xe4),a145_0x4b432d(0xee),'decision_point','ab_test',a145_0x4b432d(0xf6),'jump',a145_0x4b432d(0xda)]);export const EmbeddedSegmentDefSchema=z[a145_0x4b432d(0xec)]({'description':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a145_0x4b432d(0xec)]({'journey':z[a145_0x4b432d(0xf7)](),'stage':z[a145_0x4b432d(0xf7)](),'bundle_id':z['string']()[a145_0x4b432d(0xe2)]()});function a145_0x4ead(_0x550583,_0x26716a){_0x550583=_0x550583-0xd6;const _0x348cc7=a145_0x348c();let _0x4ead95=_0x348cc7[_0x550583];return _0x4ead95;}export const CriteriaDefSchema=z['object']({'name':z[a145_0x4b432d(0xf7)](),'description':z['string']()['optional'](),'segment':z[a145_0x4b432d(0xf7)](),'target':JumpTargetDefSchema[a145_0x4b432d(0xe2)]()});function a145_0x348c(){const _0x4b8bc1=['180351LRSuUI','optional','1778432BOltyM','wait','discriminatedUnion','enum','journey','min','reentry_always','2226760zWFcyq','launched','object','boolean','activation','2705592ZOcUWz','versions','literal','passthrough','draft','ab_test','297953hZLbNP','merge','string','jump','341204monTvr','814972GXFdwS','day','3JBbIqZ','journeys','record','array','length','stages','isArray','end','7ShOwTC','reentry_unless_goal_achieved','number','decision_point','Journey\x20name\x20is\x20required','no_reentry'];a145_0x348c=function(){return _0x4b8bc1;};return a145_0x348c();}const WaitConditionTimeoutDefSchema=z['object']({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)]()}),WaitConditionDefSchema=z[a145_0x4b432d(0xec)]({'segment':z[a145_0x4b432d(0xf7)](),'next':z['string']()[a145_0x4b432d(0xe2)](),'timeout':WaitConditionTimeoutDefSchema[a145_0x4b432d(0xe2)]()}),WaitStepParamsDefSchema=z[a145_0x4b432d(0xec)]({'duration':z['number']()[a145_0x4b432d(0xe2)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z['string']()['optional'](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a145_0x4b432d(0xd6)](z[a145_0x4b432d(0xf7)]())[a145_0x4b432d(0xe2)]()}),StepBaseFields={'name':z[a145_0x4b432d(0xf7)](),'uuid':z['string']()[a145_0x4b432d(0xe2)](),'next':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a145_0x4b432d(0xe4)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a145_0x4b432d(0xec)]({'activation':z['string']()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a145_0x4b432d(0xf1)](a145_0x4b432d(0xee)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a145_0x4b432d(0xec)]({'name':z[a145_0x4b432d(0xf7)](),'segment':z['string']()[a145_0x4b432d(0xe2)](),'segment_id':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)](),'excluded':z[a145_0x4b432d(0xed)]()[a145_0x4b432d(0xe2)](),'next':z['string']()['optional']()}),DecisionPointStepParamsDefSchema=z[a145_0x4b432d(0xec)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a145_0x4b432d(0xec)]({...StepBaseFields,'type':z[a145_0x4b432d(0xf1)](a145_0x4b432d(0xde)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a145_0x4b432d(0xec)]({'id':z[a145_0x4b432d(0xf7)]()['optional'](),'name':z[a145_0x4b432d(0xf7)](),'percentage':z['number'](),'next':z[a145_0x4b432d(0xf7)]()['optional']()}),AbTestStepParamsDefSchema=z[a145_0x4b432d(0xec)]({'variants':z[a145_0x4b432d(0xd6)](AbTestVariantDefSchema),'unique_id':z[a145_0x4b432d(0xf7)]()['optional'](),'customized_split':z['boolean']()[a145_0x4b432d(0xe2)]()}),AbTestStepDefSchema=z[a145_0x4b432d(0xec)]({...StepBaseFields,'type':z[a145_0x4b432d(0xf1)](a145_0x4b432d(0xf4)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a145_0x4b432d(0xec)]({...StepBaseFields,'type':z[a145_0x4b432d(0xf1)](a145_0x4b432d(0xf6))}),JumpStepParamsDefSchema=z[a145_0x4b432d(0xec)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a145_0x4b432d(0xec)]({...StepBaseFields,'type':z[a145_0x4b432d(0xf1)](a145_0x4b432d(0xf8)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a145_0x4b432d(0xf1)]('end')})[a145_0x4b432d(0xf2)]();export const StepDefSchema=z[a145_0x4b432d(0xe5)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a145_0x4b432d(0xec)]({'name':z[a145_0x4b432d(0xf7)](),'description':z['string']()[a145_0x4b432d(0xe2)](),'id':z['string']()[a145_0x4b432d(0xe2)](),'entry_criteria':CriteriaDefSchema[a145_0x4b432d(0xe2)](),'exit_criteria':z['array'](CriteriaDefSchema)[a145_0x4b432d(0xe2)](),'milestone':CriteriaDefSchema[a145_0x4b432d(0xe2)](),'root_step':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)](),'steps':z['array'](StepDefSchema)[a145_0x4b432d(0xe2)]()});export const JourneyEntryDefSchema=z[a145_0x4b432d(0xec)]({'name':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)](),'version':z[a145_0x4b432d(0xf7)]()['optional'](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a145_0x4b432d(0xed)]()[a145_0x4b432d(0xe2)](),'stages':z[a145_0x4b432d(0xd6)](StageDefSchema),'id':z['string']()['optional'](),'version_number':z[a145_0x4b432d(0xdd)]()[a145_0x4b432d(0xe2)](),'goal':CriteriaDefSchema[a145_0x4b432d(0xe2)](),'reentry':ReentryModeTypeSchema[a145_0x4b432d(0xe2)]()});export const JourneyDefSchema=z['lazy'](()=>z[a145_0x4b432d(0xec)]({'type':z[a145_0x4b432d(0xf1)](a145_0x4b432d(0xe7)),'name':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe8)](0x1,a145_0x4b432d(0xdf)),'description':z['string']()[a145_0x4b432d(0xe2)](),'bundle_id':z[a145_0x4b432d(0xf7)]()[a145_0x4b432d(0xe2)](),'bundle_name':z[a145_0x4b432d(0xf7)]()['optional'](),'folder_id':z['string']()['optional'](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a145_0x4b432d(0xed)]()[a145_0x4b432d(0xe2)](),'goal':CriteriaDefSchema[a145_0x4b432d(0xe2)](),'id':z['string']()[a145_0x4b432d(0xe2)](),'version':z[a145_0x4b432d(0xf7)]()['optional'](),'version_number':z[a145_0x4b432d(0xdd)]()[a145_0x4b432d(0xe2)](),'stages':z[a145_0x4b432d(0xd6)](StageDefSchema)[a145_0x4b432d(0xe2)](),'versions':z[a145_0x4b432d(0xd6)](JourneyEntryDefSchema)[a145_0x4b432d(0xe2)](),'journeys':z[a145_0x4b432d(0xd6)](JourneyEntryDefSchema)[a145_0x4b432d(0xe2)](),'segments':z[a145_0x4b432d(0xfe)](z[a145_0x4b432d(0xf7)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a145_0x4b432d(0xfe)](z[a145_0x4b432d(0xf7)](),ActivationDefSchema)[a145_0x4b432d(0xe2)]()})['refine'](_0x4a46cd=>{const _0x1d40e3=a145_0x4b432d,_0x40dc22=[_0x4a46cd[_0x1d40e3(0xfd)],_0x4a46cd[_0x1d40e3(0xd8)],_0x4a46cd[_0x1d40e3(0xf0)]]['filter'](_0x4a2655=>Array[_0x1d40e3(0xd9)](_0x4a2655)&&_0x4a2655[_0x1d40e3(0xd7)]>0x0)['length'];return _0x40dc22===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a145_0x3404f8=a145_0x1706;(function(_0x5bc0ed,_0xaaedb){const _0x58b3d1=a145_0x1706,_0x32766e=_0x5bc0ed();while(!![]){try{const _0x1a9dd6=parseInt(_0x58b3d1(0x1a3))/0x1*(-parseInt(_0x58b3d1(0x1b7))/0x2)+-parseInt(_0x58b3d1(0x198))/0x3*(-parseInt(_0x58b3d1(0x1b2))/0x4)+-parseInt(_0x58b3d1(0x1ba))/0x5+parseInt(_0x58b3d1(0x1c4))/0x6+parseInt(_0x58b3d1(0x1a8))/0x7+-parseInt(_0x58b3d1(0x1b4))/0x8+parseInt(_0x58b3d1(0x1c3))/0x9;if(_0x1a9dd6===_0xaaedb)break;else _0x32766e['push'](_0x32766e['shift']());}catch(_0xdcf36c){_0x32766e['push'](_0x32766e['shift']());}}}(a145_0x43e3,0xe0f28));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a145_0x3404f8(0x19b)]([a145_0x3404f8(0x199),a145_0x3404f8(0x1bf),a145_0x3404f8(0x1c1)]);export const ReentryModeTypeSchema=z[a145_0x3404f8(0x19b)]([a145_0x3404f8(0x19e),'reentry_unless_goal_achieved',a145_0x3404f8(0x1a5)]);function a145_0x1706(_0x50089b,_0x5cea23){_0x50089b=_0x50089b-0x198;const _0x43e381=a145_0x43e3();let _0x170694=_0x43e381[_0x50089b];return _0x170694;}export const WaitUnitTypeSchema=z[a145_0x3404f8(0x19b)]([a145_0x3404f8(0x1ab),a145_0x3404f8(0x1a1)]);export const StepTypeValueSchema=z['enum']([a145_0x3404f8(0x1a9),a145_0x3404f8(0x1b5),a145_0x3404f8(0x1b0),'ab_test',a145_0x3404f8(0x1b8),'jump',a145_0x3404f8(0x1a6)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a145_0x3404f8(0x1c0)]({'journey':z[a145_0x3404f8(0x1bd)](),'stage':z['string'](),'bundle_id':z['string']()['optional']()});export const CriteriaDefSchema=z[a145_0x3404f8(0x1c0)]({'name':z[a145_0x3404f8(0x1bd)](),'description':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'segment':z[a145_0x3404f8(0x1bd)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a145_0x3404f8(0x1bc)](),'unit':WaitUnitTypeSchema,'next':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)]()}),WaitConditionDefSchema=z[a145_0x3404f8(0x1c0)]({'segment':z['string'](),'next':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'timeout':WaitConditionTimeoutDefSchema[a145_0x3404f8(0x1bb)]()}),WaitStepParamsDefSchema=z[a145_0x3404f8(0x1c0)]({'duration':z['number']()['optional'](),'unit':WaitUnitTypeSchema[a145_0x3404f8(0x1bb)](),'wait_until':z[a145_0x3404f8(0x1bd)]()['optional'](),'condition':WaitConditionDefSchema[a145_0x3404f8(0x1bb)](),'days_of_week':z[a145_0x3404f8(0x19c)](z[a145_0x3404f8(0x1bd)]())[a145_0x3404f8(0x1bb)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'next':z['string']()['optional']()},WaitStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z[a145_0x3404f8(0x1a0)](a145_0x3404f8(0x1a9)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a145_0x3404f8(0x1bd)]()}),ActivationStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z[a145_0x3404f8(0x1a0)](a145_0x3404f8(0x1b5)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a145_0x3404f8(0x1c0)]({'name':z[a145_0x3404f8(0x1bd)](),'segment':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'segment_id':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'excluded':z[a145_0x3404f8(0x1b3)]()['optional'](),'next':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)]()}),DecisionPointStepParamsDefSchema=z[a145_0x3404f8(0x1c0)]({'branches':z[a145_0x3404f8(0x19c)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z[a145_0x3404f8(0x1a0)](a145_0x3404f8(0x1b0)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a145_0x3404f8(0x1c0)]({'id':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'name':z[a145_0x3404f8(0x1bd)](),'percentage':z[a145_0x3404f8(0x1bc)](),'next':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)]()}),AbTestStepParamsDefSchema=z[a145_0x3404f8(0x1c0)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'customized_split':z[a145_0x3404f8(0x1b3)]()[a145_0x3404f8(0x1bb)]()}),AbTestStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z[a145_0x3404f8(0x1a0)](a145_0x3404f8(0x1af)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z[a145_0x3404f8(0x1a0)](a145_0x3404f8(0x1b8))}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z['literal'](a145_0x3404f8(0x1b6)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a145_0x3404f8(0x1c0)]({...StepBaseFields,'type':z[a145_0x3404f8(0x1a0)](a145_0x3404f8(0x1a6))})[a145_0x3404f8(0x19d)]();export const StepDefSchema=z[a145_0x3404f8(0x1a7)](a145_0x3404f8(0x1a4),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a145_0x3404f8(0x1c0)]({'name':z[a145_0x3404f8(0x1bd)](),'description':z[a145_0x3404f8(0x1bd)]()['optional'](),'id':z['string']()['optional'](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z['array'](CriteriaDefSchema)[a145_0x3404f8(0x1bb)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z['string']()[a145_0x3404f8(0x1bb)](),'steps':z['array'](StepDefSchema)[a145_0x3404f8(0x1bb)]()});function a145_0x43e3(){const _0x4de2f4=['Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','record','lazy','ab_test','decision_point','Journey\x20name\x20is\x20required','4869448YlhpeO','boolean','14646968GEFkmM','activation','jump','192iwYreV','merge','stages','4052570wpvLKv','optional','number','string','length','simulation','object','launched','min','5859135QLGGzW','7579890MSKNQf','journeys','3GPSIDc','draft','isArray','enum','array','passthrough','no_reentry','filter','literal','week','refine','11260LGiylp','type','reentry_always','end','discriminatedUnion','10584259jkZkFQ','wait','versions','day'];a145_0x43e3=function(){return _0x4de2f4;};return a145_0x43e3();}export const JourneyEntryDefSchema=z[a145_0x3404f8(0x1c0)]({'name':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'version':z['string']()[a145_0x3404f8(0x1bb)](),'state':JourneyStateTypeSchema[a145_0x3404f8(0x1bb)](),'latest':z['boolean']()[a145_0x3404f8(0x1bb)](),'stages':z[a145_0x3404f8(0x19c)](StageDefSchema),'id':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'version_number':z[a145_0x3404f8(0x1bc)]()[a145_0x3404f8(0x1bb)](),'goal':CriteriaDefSchema[a145_0x3404f8(0x1bb)](),'reentry':ReentryModeTypeSchema[a145_0x3404f8(0x1bb)]()});export const JourneyDefSchema=z[a145_0x3404f8(0x1ae)](()=>z['object']({'type':z[a145_0x3404f8(0x1a0)]('journey'),'name':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1c2)](0x1,a145_0x3404f8(0x1b1)),'description':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'bundle_id':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'bundle_name':z['string']()[a145_0x3404f8(0x1bb)](),'folder_id':z[a145_0x3404f8(0x1bd)]()['optional'](),'reentry':ReentryModeTypeSchema[a145_0x3404f8(0x1bb)](),'allow_reentry':z[a145_0x3404f8(0x1b3)]()['optional'](),'goal':CriteriaDefSchema[a145_0x3404f8(0x1bb)](),'id':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'version':z[a145_0x3404f8(0x1bd)]()[a145_0x3404f8(0x1bb)](),'version_number':z['number']()[a145_0x3404f8(0x1bb)](),'stages':z[a145_0x3404f8(0x19c)](StageDefSchema)['optional'](),'versions':z[a145_0x3404f8(0x19c)](JourneyEntryDefSchema)['optional'](),'journeys':z[a145_0x3404f8(0x19c)](JourneyEntryDefSchema)['optional'](),'segments':z[a145_0x3404f8(0x1ad)](z[a145_0x3404f8(0x1bd)](),EmbeddedSegmentDefSchema)[a145_0x3404f8(0x1bb)](),'activations':z[a145_0x3404f8(0x1ad)](z[a145_0x3404f8(0x1bd)](),ActivationDefSchema)['optional']()})[a145_0x3404f8(0x1a2)](_0x14f316=>{const _0xc55fca=a145_0x3404f8,_0x21a5aa=[_0x14f316[_0xc55fca(0x1c5)],_0x14f316[_0xc55fca(0x1b9)],_0x14f316[_0xc55fca(0x1aa)]][_0xc55fca(0x19f)](_0x367e49=>Array[_0xc55fca(0x19a)](_0x367e49)&&_0x367e49[_0xc55fca(0x1be)]>0x0)[_0xc55fca(0x1be)];return _0x21a5aa===0x1;},{'message':a145_0x3404f8(0x1ac)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0xbb154e,_0x579eb4){var _0x46a809=a147_0x34df,_0x3091fd=_0xbb154e();while(!![]){try{var _0x1cc038=-parseInt(_0x46a809(0x16e))/0x1*(parseInt(_0x46a809(0x16d))/0x2)+-parseInt(_0x46a809(0x166))/0x3*(parseInt(_0x46a809(0x169))/0x4)+-parseInt(_0x46a809(0x165))/0x5*(-parseInt(_0x46a809(0x164))/0x6)+-parseInt(_0x46a809(0x16c))/0x7+-parseInt(_0x46a809(0x167))/0x8+parseInt(_0x46a809(0x16b))/0x9*(-parseInt(_0x46a809(0x168))/0xa)+parseInt(_0x46a809(0x16a))/0xb;if(_0x1cc038===_0x579eb4)break;else _0x3091fd['push'](_0x3091fd['shift']());}catch(_0x3d1813){_0x3091fd['push'](_0x3091fd['shift']());}}}(a147_0x2212,0x45998));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a147_0x34df(_0x4eecad,_0x301841){_0x4eecad=_0x4eecad-0x164;var _0x2212e3=a147_0x2212();var _0x34dffc=_0x2212e3[_0x4eecad];return _0x34dffc;}function a147_0x2212(){var _0x5d1f77=['1916716xmrtAV','17662788FQoNBe','90BLcMJW','1136737tgVbrf','2NujHtv','200263ujNJWy','66zcFDQJ','115190rBZkVT','3rpiQmO','4049384eXVeWA','226040YJXxlG'];a147_0x2212=function(){return _0x5d1f77;};return a147_0x2212();}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ (function(_0x2160b8,_0x205360){var _0x497db7=a147_0x1026,_0x6b6bb4=_0x2160b8();while(!![]){try{var _0x42c548=parseInt(_0x497db7(0xad))/0x1+-parseInt(_0x497db7(0xa6))/0x2*(parseInt(_0x497db7(0xa4))/0x3)+parseInt(_0x497db7(0xa7))/0x4*(parseInt(_0x497db7(0xac))/0x5)+parseInt(_0x497db7(0xa8))/0x6+parseInt(_0x497db7(0xab))/0x7+-parseInt(_0x497db7(0xa9))/0x8+-parseInt(_0x497db7(0xa5))/0x9*(parseInt(_0x497db7(0xaa))/0xa);if(_0x42c548===_0x205360)break;else _0x6b6bb4['push'](_0x6b6bb4['shift']());}catch(_0x467416){_0x6b6bb4['push'](_0x6b6bb4['shift']());}}}(a147_0x221c,0xdfcd0));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a147_0x1026(_0xcec683,_0x533284){_0xcec683=_0xcec683-0xa4;var _0x221c85=a147_0x221c();var _0x102692=_0x221c85[_0xcec683];return _0x102692;}function a147_0x221c(){var _0x783ba=['8EWkCSp','4RWOZnB','6553116LCmTZw','10980136pfBIWE','20IqXSly','8457715WHmwGi','5019635pChgSq','1632977qTlhEX','306378fPoIIn','10078317oiUFbG'];a147_0x221c=function(){return _0x783ba;};return a147_0x221c();}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
@@ -1 +1 @@
1
- const a148_0x2a27a0=a148_0x5704;(function(_0x1bfe2b,_0x1c815f){const _0x1cc484=a148_0x5704,_0x4b04b9=_0x1bfe2b();while(!![]){try{const _0x2d9774=-parseInt(_0x1cc484(0x1f3))/0x1*(parseInt(_0x1cc484(0x1e7))/0x2)+-parseInt(_0x1cc484(0x205))/0x3*(parseInt(_0x1cc484(0x201))/0x4)+parseInt(_0x1cc484(0x1e0))/0x5+parseInt(_0x1cc484(0x1dc))/0x6*(-parseInt(_0x1cc484(0x1cc))/0x7)+parseInt(_0x1cc484(0x1cd))/0x8+-parseInt(_0x1cc484(0x1ec))/0x9*(-parseInt(_0x1cc484(0x1c3))/0xa)+parseInt(_0x1cc484(0x1c9))/0xb*(parseInt(_0x1cc484(0x1e5))/0xc);if(_0x2d9774===_0x1c815f)break;else _0x4b04b9['push'](_0x4b04b9['shift']());}catch(_0x388756){_0x4b04b9['push'](_0x4b04b9['shift']());}}}(a148_0x4cc6,0x3f7c9));import{z}from'zod';function a148_0x5704(_0x231022,_0x35311c){_0x231022=_0x231022-0x1b9;const _0x4cc66f=a148_0x4cc6();let _0x5704e4=_0x4cc66f[_0x231022];return _0x5704e4;}export const OperatorTypeSchema=z[a148_0x2a27a0(0x1bc)](['Equal',a148_0x2a27a0(0x1bf),'Less','GreaterEqual',a148_0x2a27a0(0x1fc),'In',a148_0x2a27a0(0x1ff),a148_0x2a27a0(0x20a),'IsNull','TimeWithinPast',a148_0x2a27a0(0x1c6),'Contain',a148_0x2a27a0(0x1fb),a148_0x2a27a0(0x1f2),a148_0x2a27a0(0x1d2)]);function a148_0x4cc6(){const _0x54e98d=['248394tHRaOq','timestamp','union','Last','1977585rWqfCr','literal','Sum','from','Max','22572qzVuYf','minute','280996vyYVBX','MISSING_BETWEEN_BOUNDS','TimeRange\x20operator\x20requires\x20\x27from\x27','boolean','Segment\x20name\x20is\x20required','803133fVFbyy','operator','discriminatedUnion','record','segment','array','EndWith','2VrHBJw','month','batch','custom','Value','lazy','Min','optional','StartWith','LessEqual','Count','include','Between','max','1408UuNAWO','min','GreaterEqual','funnel_stage','2181oIcamy','day','has','Equal','And','Regexp','duration','week','\x27\x20requires\x20a\x20time\x20unit','MISSING_TIME_UNIT','superRefine','enum','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','First','Greater','\x27\x20requires\x20a\x20value','addIssue','Operator\x20\x27','10GlVMgJ','string','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','TimeWithinNext','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','number','3674fMVbng','value','CountDistinct','63ZERdwI','452192sTazMN','year','exclude','realtime','unit','TimeRange','hour','all','Average','Column','any','type','Less','TimeWithinPast','object'];a148_0x4cc6=function(){return _0x54e98d;};return a148_0x4cc6();}export const TimeUnitSchema=z[a148_0x2a27a0(0x1bc)](['second',a148_0x2a27a0(0x1e6),a148_0x2a27a0(0x1d3),a148_0x2a27a0(0x206),a148_0x2a27a0(0x20c),a148_0x2a27a0(0x1f4),a148_0x2a27a0(0x1ce)]);export const AggregationTypeSchema=z[a148_0x2a27a0(0x1bc)]([a148_0x2a27a0(0x1fd),a148_0x2a27a0(0x1e2),a148_0x2a27a0(0x1d5),a148_0x2a27a0(0x1f9),a148_0x2a27a0(0x1e4),a148_0x2a27a0(0x1cb),a148_0x2a27a0(0x1be),a148_0x2a27a0(0x1df)]);const TemporalValueSchema=z[a148_0x2a27a0(0x1de)]([z[a148_0x2a27a0(0x1db)]({'timestamp':z['string']()}),z[a148_0x2a27a0(0x1db)]({'last':z[a148_0x2a27a0(0x1de)]([z[a148_0x2a27a0(0x1c8)](),z[a148_0x2a27a0(0x1ef)](z['string'](),z['number']())]),'unit':z[a148_0x2a27a0(0x1c4)]()})]),OperatorValueSchema=z[a148_0x2a27a0(0x1de)]([z[a148_0x2a27a0(0x1c4)](),z[a148_0x2a27a0(0x1c8)](),z[a148_0x2a27a0(0x1ea)](),TemporalValueSchema,z[a148_0x2a27a0(0x1f1)](z[a148_0x2a27a0(0x1de)]([z['string'](),z[a148_0x2a27a0(0x1c8)](),z[a148_0x2a27a0(0x1ea)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a148_0x2a27a0(0x208),'Greater',a148_0x2a27a0(0x203),a148_0x2a27a0(0x1d9),a148_0x2a27a0(0x1fc),'In','Contain','StartWith','EndWith',a148_0x2a27a0(0x20a),a148_0x2a27a0(0x1da),a148_0x2a27a0(0x1c6)]),OPERATORS_REQUIRING_UNIT=new Set([a148_0x2a27a0(0x1da),a148_0x2a27a0(0x1c6)]);export const OperatorDefSchema=z[a148_0x2a27a0(0x1db)]({'type':OperatorTypeSchema,'not':z[a148_0x2a27a0(0x1ea)]()[a148_0x2a27a0(0x1fa)](),'value':OperatorValueSchema[a148_0x2a27a0(0x1fa)](),'min':z[a148_0x2a27a0(0x1de)]([z['number'](),z['string'](),TemporalValueSchema])[a148_0x2a27a0(0x1fa)](),'max':z[a148_0x2a27a0(0x1de)]([z['number'](),z['string'](),TemporalValueSchema])[a148_0x2a27a0(0x1fa)](),'unit':TimeUnitSchema[a148_0x2a27a0(0x1fa)](),'duration':z[a148_0x2a27a0(0x1db)]({'day':z['number']()[a148_0x2a27a0(0x1fa)](),'week':z[a148_0x2a27a0(0x1c8)]()[a148_0x2a27a0(0x1fa)](),'month':z[a148_0x2a27a0(0x1c8)]()['optional'](),'year':z['number']()[a148_0x2a27a0(0x1fa)](),'hour':z['number']()[a148_0x2a27a0(0x1fa)](),'minute':z[a148_0x2a27a0(0x1c8)]()['optional'](),'second':z[a148_0x2a27a0(0x1c8)]()['optional']()})[a148_0x2a27a0(0x1fa)](),'from':z[a148_0x2a27a0(0x1db)]({'last':z[a148_0x2a27a0(0x1de)]([z[a148_0x2a27a0(0x1c8)](),z[a148_0x2a27a0(0x1c4)]()]),'unit':TimeUnitSchema})[a148_0x2a27a0(0x1fa)](),'reverse':z[a148_0x2a27a0(0x1ea)]()[a148_0x2a27a0(0x1fa)]()})[a148_0x2a27a0(0x1bb)]((_0x222ac3,_0x1a3e66)=>{const _0x3ec560=a148_0x2a27a0;OPERATORS_REQUIRING_VALUE['has'](_0x222ac3[_0x3ec560(0x1d8)])&&(_0x222ac3[_0x3ec560(0x1ca)]===undefined||_0x222ac3[_0x3ec560(0x1ca)]===null)&&_0x1a3e66[_0x3ec560(0x1c1)]({'code':_0x3ec560(0x1f6),'message':_0x3ec560(0x1c2)+_0x222ac3[_0x3ec560(0x1d8)]+_0x3ec560(0x1c0),'path':[_0x3ec560(0x1ca)]}),_0x222ac3[_0x3ec560(0x1d8)]===_0x3ec560(0x1ff)&&_0x222ac3[_0x3ec560(0x202)]===undefined&&_0x222ac3[_0x3ec560(0x200)]===undefined&&_0x1a3e66['addIssue']({'code':'custom','message':_0x3ec560(0x1bd),'params':{'validationCode':_0x3ec560(0x1e8)}}),OPERATORS_REQUIRING_UNIT[_0x3ec560(0x207)](_0x222ac3['type'])&&_0x222ac3['value']!==undefined&&!_0x222ac3[_0x3ec560(0x1d1)]&&_0x1a3e66[_0x3ec560(0x1c1)]({'code':_0x3ec560(0x1f6),'message':_0x3ec560(0x1c2)+_0x222ac3[_0x3ec560(0x1d8)]+_0x3ec560(0x1b9),'path':[_0x3ec560(0x1d1)],'params':{'validationCode':_0x3ec560(0x1ba)}}),_0x222ac3[_0x3ec560(0x1d8)]===_0x3ec560(0x1d2)&&(!_0x222ac3[_0x3ec560(0x20b)]&&_0x1a3e66['addIssue']({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0x3ec560(0x20b)]}),!_0x222ac3[_0x3ec560(0x1e3)]&&_0x1a3e66[_0x3ec560(0x1c1)]({'code':_0x3ec560(0x1f6),'message':_0x3ec560(0x1e9),'path':[_0x3ec560(0x1e3)]}));});export const ArrayMatchingSchema=z['union']([z[a148_0x2a27a0(0x1e1)](a148_0x2a27a0(0x1d7)),z[a148_0x2a27a0(0x1e1)](a148_0x2a27a0(0x1d4)),z[a148_0x2a27a0(0x1db)]({'atLeast':z['number']()}),z[a148_0x2a27a0(0x1db)]({'atMost':z[a148_0x2a27a0(0x1c8)]()}),z['object']({'exactly':z['number']()})]);export const AggregationDefSchema=z[a148_0x2a27a0(0x1ee)](a148_0x2a27a0(0x1d8),[z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1bc)](['Sum','Min',a148_0x2a27a0(0x1e4),a148_0x2a27a0(0x1d5)]),'column':z[a148_0x2a27a0(0x1c4)](),'groupingColumns':z['array'](z['string']())[a148_0x2a27a0(0x1fa)]()}),z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1e1)]('Count'),'groupingColumns':z[a148_0x2a27a0(0x1f1)](z[a148_0x2a27a0(0x1c4)]())[a148_0x2a27a0(0x1fa)]()}),z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1e1)](a148_0x2a27a0(0x1cb)),'columns':z[a148_0x2a27a0(0x1f1)](z[a148_0x2a27a0(0x1c4)]())}),z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1bc)]([a148_0x2a27a0(0x1be),'Last']),'column':z[a148_0x2a27a0(0x1c4)](),'orderColumn':z['string'](),'groupingColumns':z[a148_0x2a27a0(0x1f1)](z[a148_0x2a27a0(0x1c4)]())[a148_0x2a27a0(0x1fa)]()})]);export const TimeWindowDefSchema=z[a148_0x2a27a0(0x1db)]({'duration':z[a148_0x2a27a0(0x1c8)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a148_0x2a27a0(0x1da),'TimeWithinNext',a148_0x2a27a0(0x1d2)]);export const FilterColumnConditionDefSchema=z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1e1)](a148_0x2a27a0(0x1d6)),'column':z[a148_0x2a27a0(0x1c4)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0x2a27a0(0x1fa)]()})['superRefine']((_0xaa824f,_0x10f0ea)=>{const _0x34db77=a148_0x2a27a0,_0x752a91=_0xaa824f[_0x34db77(0x1ed)]['type'];_0xaa824f['column']===_0x34db77(0x1dd)?!TIMESTAMP_OPERATORS[_0x34db77(0x207)](_0x752a91)&&_0x10f0ea[_0x34db77(0x1c1)]({'code':_0x34db77(0x1f6),'message':_0x34db77(0x1c7)+_0x752a91+'\x27)','path':[_0x34db77(0x1ed),'type']}):TIMESTAMP_OPERATORS[_0x34db77(0x207)](_0x752a91)&&_0x10f0ea[_0x34db77(0x1c1)]({'code':_0x34db77(0x1f6),'message':_0x34db77(0x1c2)+_0x752a91+_0x34db77(0x1c5),'path':[_0x34db77(0x1ed),_0x34db77(0x1d8)]});});export const FilterRuleDefSchema=z['object']({'type':z['literal']('And'),'conditions':z[a148_0x2a27a0(0x1f1)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a148_0x2a27a0(0x1f8)](()=>z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1e1)](a148_0x2a27a0(0x1f7)),'attribute':z[a148_0x2a27a0(0x1c4)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a148_0x2a27a0(0x1ea)]()[a148_0x2a27a0(0x1fa)](),'aggregation':AggregationDefSchema[a148_0x2a27a0(0x1fa)](),'source':z[a148_0x2a27a0(0x1c4)]()[a148_0x2a27a0(0x1fa)](),'filter':FilterRuleDefSchema[a148_0x2a27a0(0x1fa)](),'limit':z[a148_0x2a27a0(0x1c8)]()[a148_0x2a27a0(0x1fa)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1e1)]('Behavior'),'attribute':z[a148_0x2a27a0(0x1c4)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0x2a27a0(0x1fa)](),'exclude':z[a148_0x2a27a0(0x1ea)]()[a148_0x2a27a0(0x1fa)](),'aggregation':AggregationDefSchema[a148_0x2a27a0(0x1fa)](),'source':z['string']()[a148_0x2a27a0(0x1fa)](),'filter':FilterRuleDefSchema[a148_0x2a27a0(0x1fa)](),'timeWindow':TimeWindowDefSchema[a148_0x2a27a0(0x1fa)](),'limit':z['number']()[a148_0x2a27a0(0x1fa)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a148_0x2a27a0(0x1e1)](a148_0x2a27a0(0x1d6)),'column':z[a148_0x2a27a0(0x1c4)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a148_0x2a27a0(0x1f8)](()=>z[a148_0x2a27a0(0x1db)]({'type':z['enum'](['And','Or']),'conditions':z[a148_0x2a27a0(0x1f1)](ConditionDefSchema),'description':z[a148_0x2a27a0(0x1c4)]()['optional']()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a148_0x2a27a0(0x1bc)]([a148_0x2a27a0(0x1fe),a148_0x2a27a0(0x1cf)]),'segment':z[a148_0x2a27a0(0x1c4)]()[a148_0x2a27a0(0x202)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a148_0x2a27a0(0x1f8)](()=>z[a148_0x2a27a0(0x1de)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a148_0x2a27a0(0x1f8)](()=>z[a148_0x2a27a0(0x1db)]({'type':z[a148_0x2a27a0(0x1bc)]([a148_0x2a27a0(0x209),'Or']),'conditions':z[a148_0x2a27a0(0x1f1)](ConditionDefSchema),'description':z[a148_0x2a27a0(0x1c4)]()[a148_0x2a27a0(0x1fa)]()}));export const SegmentDefSchema=z[a148_0x2a27a0(0x1db)]({'type':z['literal'](a148_0x2a27a0(0x1f0))[a148_0x2a27a0(0x1fa)](),'name':z[a148_0x2a27a0(0x1c4)]()[a148_0x2a27a0(0x202)](0x1,a148_0x2a27a0(0x1eb)),'description':z['string']()[a148_0x2a27a0(0x1fa)](),'folder':z['string']()[a148_0x2a27a0(0x1fa)](),'rule':RuleDefSchema[a148_0x2a27a0(0x1fa)](),'kind':z[a148_0x2a27a0(0x1bc)]([a148_0x2a27a0(0x1f5),a148_0x2a27a0(0x1d0),a148_0x2a27a0(0x204)])['optional'](),'visible':z[a148_0x2a27a0(0x1ea)]()[a148_0x2a27a0(0x1fa)](),'activations':z[a148_0x2a27a0(0x1f1)](z[a148_0x2a27a0(0x1d7)]())[a148_0x2a27a0(0x1fa)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a148_0x3897bc=a148_0x4bc3;(function(_0x3712d8,_0x1f7029){const _0x1ae36a=a148_0x4bc3,_0x9c39c0=_0x3712d8();while(!![]){try{const _0x56c03e=-parseInt(_0x1ae36a(0x8f))/0x1+parseInt(_0x1ae36a(0xb5))/0x2*(-parseInt(_0x1ae36a(0x81))/0x3)+parseInt(_0x1ae36a(0xcf))/0x4+-parseInt(_0x1ae36a(0x84))/0x5*(parseInt(_0x1ae36a(0x9d))/0x6)+parseInt(_0x1ae36a(0xc1))/0x7+parseInt(_0x1ae36a(0x94))/0x8+-parseInt(_0x1ae36a(0xb3))/0x9*(-parseInt(_0x1ae36a(0x86))/0xa);if(_0x56c03e===_0x1f7029)break;else _0x9c39c0['push'](_0x9c39c0['shift']());}catch(_0x3cd27c){_0x9c39c0['push'](_0x9c39c0['shift']());}}}(a148_0x5ed3,0x6a0b7));import{z}from'zod';export const OperatorTypeSchema=z[a148_0x3897bc(0x96)]([a148_0x3897bc(0xaa),a148_0x3897bc(0xa5),a148_0x3897bc(0xb7),'GreaterEqual',a148_0x3897bc(0xbf),'In','Between',a148_0x3897bc(0x9b),a148_0x3897bc(0x89),a148_0x3897bc(0xa1),a148_0x3897bc(0x85),a148_0x3897bc(0xca),a148_0x3897bc(0x91),a148_0x3897bc(0xc0),a148_0x3897bc(0xa6)]);export const TimeUnitSchema=z[a148_0x3897bc(0x96)]([a148_0x3897bc(0xc4),a148_0x3897bc(0xaf),a148_0x3897bc(0x88),a148_0x3897bc(0xa4),a148_0x3897bc(0xce),a148_0x3897bc(0xcb),a148_0x3897bc(0xbc)]);export const AggregationTypeSchema=z[a148_0x3897bc(0x96)]([a148_0x3897bc(0xd1),a148_0x3897bc(0xbd),a148_0x3897bc(0xcc),a148_0x3897bc(0x83),'Max',a148_0x3897bc(0x99),a148_0x3897bc(0x9a),a148_0x3897bc(0xc2)]);const TemporalValueSchema=z['union']([z[a148_0x3897bc(0x8c)]({'timestamp':z[a148_0x3897bc(0xb0)]()}),z[a148_0x3897bc(0x8c)]({'last':z[a148_0x3897bc(0xb6)]([z['number'](),z[a148_0x3897bc(0x8a)](z['string'](),z[a148_0x3897bc(0xb9)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a148_0x3897bc(0xb6)]([z['string'](),z['number'](),z[a148_0x3897bc(0x90)](),TemporalValueSchema,z[a148_0x3897bc(0x8e)](z[a148_0x3897bc(0xb6)]([z['string'](),z[a148_0x3897bc(0xb9)](),z[a148_0x3897bc(0x90)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a148_0x3897bc(0xaa),a148_0x3897bc(0xa5),a148_0x3897bc(0xc3),a148_0x3897bc(0xb7),a148_0x3897bc(0xbf),'In',a148_0x3897bc(0xca),a148_0x3897bc(0x91),a148_0x3897bc(0xc0),a148_0x3897bc(0x9b),a148_0x3897bc(0xa1),a148_0x3897bc(0x85)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a148_0x3897bc(0x85)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a148_0x3897bc(0x90)]()[a148_0x3897bc(0x87)](),'value':OperatorValueSchema['optional'](),'min':z[a148_0x3897bc(0xb6)]([z[a148_0x3897bc(0xb9)](),z[a148_0x3897bc(0xb0)](),TemporalValueSchema])[a148_0x3897bc(0x87)](),'max':z[a148_0x3897bc(0xb6)]([z[a148_0x3897bc(0xb9)](),z[a148_0x3897bc(0xb0)](),TemporalValueSchema])[a148_0x3897bc(0x87)](),'unit':TimeUnitSchema[a148_0x3897bc(0x87)](),'duration':z[a148_0x3897bc(0x8c)]({'day':z[a148_0x3897bc(0xb9)]()[a148_0x3897bc(0x87)](),'week':z['number']()[a148_0x3897bc(0x87)](),'month':z[a148_0x3897bc(0xb9)]()[a148_0x3897bc(0x87)](),'year':z['number']()[a148_0x3897bc(0x87)](),'hour':z['number']()[a148_0x3897bc(0x87)](),'minute':z['number']()[a148_0x3897bc(0x87)](),'second':z[a148_0x3897bc(0xb9)]()[a148_0x3897bc(0x87)]()})[a148_0x3897bc(0x87)](),'from':z['object']({'last':z[a148_0x3897bc(0xb6)]([z[a148_0x3897bc(0xb9)](),z[a148_0x3897bc(0xb0)]()]),'unit':TimeUnitSchema})[a148_0x3897bc(0x87)](),'reverse':z[a148_0x3897bc(0x90)]()[a148_0x3897bc(0x87)]()})[a148_0x3897bc(0x8b)]((_0x2856ca,_0x4833b3)=>{const _0xf893a0=a148_0x3897bc;OPERATORS_REQUIRING_VALUE[_0xf893a0(0xac)](_0x2856ca[_0xf893a0(0xcd)])&&(_0x2856ca[_0xf893a0(0xba)]===undefined||_0x2856ca[_0xf893a0(0xba)]===null)&&_0x4833b3[_0xf893a0(0xc5)]({'code':_0xf893a0(0xbe),'message':_0xf893a0(0x82)+_0x2856ca[_0xf893a0(0xcd)]+_0xf893a0(0xc6),'path':['value']}),_0x2856ca['type']===_0xf893a0(0xd0)&&_0x2856ca[_0xf893a0(0xab)]===undefined&&_0x2856ca[_0xf893a0(0xae)]===undefined&&_0x4833b3[_0xf893a0(0xc5)]({'code':_0xf893a0(0xbe),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':_0xf893a0(0xa3)}}),OPERATORS_REQUIRING_UNIT['has'](_0x2856ca[_0xf893a0(0xcd)])&&_0x2856ca[_0xf893a0(0xba)]!==undefined&&!_0x2856ca[_0xf893a0(0x8d)]&&_0x4833b3[_0xf893a0(0xc5)]({'code':'custom','message':'Operator\x20\x27'+_0x2856ca[_0xf893a0(0xcd)]+'\x27\x20requires\x20a\x20time\x20unit','path':['unit'],'params':{'validationCode':_0xf893a0(0x97)}}),_0x2856ca['type']==='TimeRange'&&(!_0x2856ca[_0xf893a0(0x98)]&&_0x4833b3['addIssue']({'code':'custom','message':_0xf893a0(0xad),'path':[_0xf893a0(0x98)]}),!_0x2856ca[_0xf893a0(0xa2)]&&_0x4833b3[_0xf893a0(0xc5)]({'code':'custom','message':_0xf893a0(0x92),'path':[_0xf893a0(0xa2)]}));});export const ArrayMatchingSchema=z[a148_0x3897bc(0xb6)]([z['literal'](a148_0x3897bc(0xb8)),z['literal']('all'),z[a148_0x3897bc(0x8c)]({'atLeast':z['number']()}),z['object']({'atMost':z['number']()}),z[a148_0x3897bc(0x8c)]({'exactly':z[a148_0x3897bc(0xb9)]()})]);export const AggregationDefSchema=z[a148_0x3897bc(0x93)](a148_0x3897bc(0xcd),[z[a148_0x3897bc(0x8c)]({'type':z[a148_0x3897bc(0x96)](['Sum','Min',a148_0x3897bc(0xb1),a148_0x3897bc(0xcc)]),'column':z[a148_0x3897bc(0xb0)](),'groupingColumns':z[a148_0x3897bc(0x8e)](z['string']())[a148_0x3897bc(0x87)]()}),z[a148_0x3897bc(0x8c)]({'type':z[a148_0x3897bc(0xbb)](a148_0x3897bc(0xd1)),'groupingColumns':z['array'](z['string']())['optional']()}),z[a148_0x3897bc(0x8c)]({'type':z[a148_0x3897bc(0xbb)](a148_0x3897bc(0x99)),'columns':z[a148_0x3897bc(0x8e)](z[a148_0x3897bc(0xb0)]())}),z[a148_0x3897bc(0x8c)]({'type':z['enum']([a148_0x3897bc(0x9a),a148_0x3897bc(0xc2)]),'column':z['string'](),'orderColumn':z[a148_0x3897bc(0xb0)](),'groupingColumns':z[a148_0x3897bc(0x8e)](z[a148_0x3897bc(0xb0)]())[a148_0x3897bc(0x87)]()})]);function a148_0x4bc3(_0x4b7ccb,_0x479d73){_0x4b7ccb=_0x4b7ccb-0x81;const _0x5ed393=a148_0x5ed3();let _0x4bc3c8=_0x5ed393[_0x4b7ccb];return _0x4bc3c8;}export const TimeWindowDefSchema=z[a148_0x3897bc(0x8c)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a148_0x3897bc(0xa1),a148_0x3897bc(0x85),a148_0x3897bc(0xa6)]);export const FilterColumnConditionDefSchema=z[a148_0x3897bc(0x8c)]({'type':z[a148_0x3897bc(0xbb)](a148_0x3897bc(0xb2)),'column':z[a148_0x3897bc(0xb0)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})[a148_0x3897bc(0x8b)]((_0x498d17,_0x52d1cc)=>{const _0x2cd327=a148_0x3897bc,_0x2b5612=_0x498d17[_0x2cd327(0xa7)]['type'];_0x498d17[_0x2cd327(0xa0)]===_0x2cd327(0xc7)?!TIMESTAMP_OPERATORS[_0x2cd327(0xac)](_0x2b5612)&&_0x52d1cc[_0x2cd327(0xc5)]({'code':_0x2cd327(0xbe),'message':_0x2cd327(0xc9)+_0x2b5612+'\x27)','path':[_0x2cd327(0xa7),_0x2cd327(0xcd)]}):TIMESTAMP_OPERATORS['has'](_0x2b5612)&&_0x52d1cc[_0x2cd327(0xc5)]({'code':_0x2cd327(0xbe),'message':_0x2cd327(0x82)+_0x2b5612+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x2cd327(0xa7),_0x2cd327(0xcd)]});});export const FilterRuleDefSchema=z[a148_0x3897bc(0x8c)]({'type':z['literal'](a148_0x3897bc(0xa8)),'conditions':z[a148_0x3897bc(0x8e)](FilterColumnConditionDefSchema)});function a148_0x5ed3(){const _0x32f298=['addIssue','\x27\x20requires\x20a\x20value','timestamp','segment','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Contain','month','Average','type','week','1883468oCWIXi','Between','Count','lazy','99111wfbKHf','Operator\x20\x27','Min','230tznJSi','TimeWithinNext','21240RcuWHf','optional','hour','IsNull','record','superRefine','object','unit','array','807077clLvnI','boolean','StartWith','TimeRange\x20operator\x20requires\x20\x27from\x27','discriminatedUnion','5117112WnkzhV','batch','enum','MISSING_TIME_UNIT','duration','CountDistinct','First','Regexp','Segment\x20reference\x20must\x20not\x20be\x20empty','13326edGAaJ','include','Segment\x20name\x20is\x20required','column','TimeWithinPast','from','MISSING_BETWEEN_BOUNDS','day','Greater','TimeRange','operator','And','exclude','Equal','min','has','TimeRange\x20operator\x20requires\x20\x27duration\x27','max','minute','string','Max','Column','2790SqBzna','Value','42QpskKs','union','Less','any','number','value','literal','year','Sum','custom','LessEqual','EndWith','1879031bIPyRx','Last','GreaterEqual','second'];a148_0x5ed3=function(){return _0x32f298;};return a148_0x5ed3();}export const ValueConditionDefSchema=z[a148_0x3897bc(0xd2)](()=>z['object']({'type':z[a148_0x3897bc(0xbb)](a148_0x3897bc(0xb4)),'attribute':z[a148_0x3897bc(0xb0)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a148_0x3897bc(0x90)]()[a148_0x3897bc(0x87)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a148_0x3897bc(0xb0)]()[a148_0x3897bc(0x87)](),'filter':FilterRuleDefSchema[a148_0x3897bc(0x87)](),'limit':z[a148_0x3897bc(0xb9)]()[a148_0x3897bc(0x87)]()}));export const BehaviorConditionDefSchema=z[a148_0x3897bc(0xd2)](()=>z['object']({'type':z[a148_0x3897bc(0xbb)]('Behavior'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0x3897bc(0x87)](),'exclude':z['boolean']()[a148_0x3897bc(0x87)](),'aggregation':AggregationDefSchema[a148_0x3897bc(0x87)](),'source':z[a148_0x3897bc(0xb0)]()[a148_0x3897bc(0x87)](),'filter':FilterRuleDefSchema[a148_0x3897bc(0x87)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a148_0x3897bc(0xb9)]()[a148_0x3897bc(0x87)]()}));export const ColumnConditionDefSchema=z[a148_0x3897bc(0x8c)]({'type':z['literal'](a148_0x3897bc(0xb2)),'column':z[a148_0x3897bc(0xb0)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a148_0x3897bc(0xd2)](()=>z[a148_0x3897bc(0x8c)]({'type':z[a148_0x3897bc(0x96)]([a148_0x3897bc(0xa8),'Or']),'conditions':z[a148_0x3897bc(0x8e)](ConditionDefSchema),'description':z[a148_0x3897bc(0xb0)]()[a148_0x3897bc(0x87)]()}));export const SegmentRefConditionDefSchema=z[a148_0x3897bc(0x8c)]({'type':z['enum']([a148_0x3897bc(0x9e),a148_0x3897bc(0xa9)]),'segment':z[a148_0x3897bc(0xb0)]()[a148_0x3897bc(0xab)](0x1,a148_0x3897bc(0x9c))});export const ConditionDefSchema=z[a148_0x3897bc(0xd2)](()=>z[a148_0x3897bc(0xb6)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a148_0x3897bc(0xd2)](()=>z[a148_0x3897bc(0x8c)]({'type':z['enum']([a148_0x3897bc(0xa8),'Or']),'conditions':z[a148_0x3897bc(0x8e)](ConditionDefSchema),'description':z[a148_0x3897bc(0xb0)]()[a148_0x3897bc(0x87)]()}));export const SegmentDefSchema=z[a148_0x3897bc(0x8c)]({'type':z[a148_0x3897bc(0xbb)](a148_0x3897bc(0xc8))[a148_0x3897bc(0x87)](),'name':z[a148_0x3897bc(0xb0)]()['min'](0x1,a148_0x3897bc(0x9f)),'description':z[a148_0x3897bc(0xb0)]()['optional'](),'folder':z[a148_0x3897bc(0xb0)]()[a148_0x3897bc(0x87)](),'rule':RuleDefSchema['optional'](),'kind':z[a148_0x3897bc(0x96)]([a148_0x3897bc(0x95),'realtime','funnel_stage'])['optional'](),'visible':z[a148_0x3897bc(0x90)]()['optional'](),'activations':z[a148_0x3897bc(0x8e)](z[a148_0x3897bc(0xb8)]())[a148_0x3897bc(0x87)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a149_0x6d49(_0x42c91c,_0x343814){_0x42c91c=_0x42c91c-0x15e;const _0xadfb66=a149_0xadfb();let _0x6d493=_0xadfb66[_0x42c91c];return _0x6d493;}(function(_0x5b56d2,_0x167152){const _0x565246=a149_0x6d49,_0x1c3a39=_0x5b56d2();while(!![]){try{const _0x4d7bf4=parseInt(_0x565246(0x169))/0x1+parseInt(_0x565246(0x171))/0x2*(-parseInt(_0x565246(0x175))/0x3)+parseInt(_0x565246(0x15f))/0x4+parseInt(_0x565246(0x167))/0x5*(-parseInt(_0x565246(0x172))/0x6)+parseInt(_0x565246(0x163))/0x7+-parseInt(_0x565246(0x15e))/0x8+parseInt(_0x565246(0x16c))/0x9;if(_0x4d7bf4===_0x167152)break;else _0x1c3a39['push'](_0x1c3a39['shift']());}catch(_0x143b78){_0x1c3a39['push'](_0x1c3a39['shift']());}}}(a149_0xadfb,0x7c453));import{readFileSync}from'fs';import*as a149_0x481085 from'path';import*as a149_0x5d5a31 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(_0x650dee){const _0x13f6f7=a149_0x6d49;return typeof _0x650dee===_0x13f6f7(0x168)&&_0x650dee!==null&&'type'in _0x650dee&&_0x650dee[_0x13f6f7(0x176)]===_0x13f6f7(0x174);}export function isCampaignDef(_0x3a3a9c){const _0x133888=a149_0x6d49;if(typeof _0x3a3a9c!==_0x133888(0x168)||_0x3a3a9c===null)return![];const _0x5701f8=_0x3a3a9c,_0x2378f1=VALID_CAMPAIGN_TYPES[_0x133888(0x16e)](_0x5701f8['campaign_type']);if(_0x5701f8[_0x133888(0x176)]===_0x133888(0x165)&&_0x2378f1)return!![];if(_0x2378f1&&!_0x5701f8[_0x133888(0x176)])return!![];return![];}function a149_0xadfb(){const _0x20d09f=['type','7366640OsdziJ','1458136HqBmGI','template','toJSON','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','4233362lVhILn','error','campaign','YAML_PARSE_ERROR','225rwsHOF','object','257436OFcTNj','result','parseDocument','8185401OgIOZL','map','has','warnings','not\x20a\x20','774398gvBTTC','42558BwAkHS','filterType','journey','3dYjxtX'];a149_0xadfb=function(){return _0x20d09f;};return a149_0xadfb();}export function isTemplateDef(_0x2da253){const _0x540e7d=a149_0x6d49;return typeof _0x2da253==='object'&&_0x2da253!==null&&_0x540e7d(0x176)in _0x2da253&&_0x2da253[_0x540e7d(0x176)]==='template';}export function isValidationResult(_0x2d2b74){return!('skipped'in _0x2d2b74);}export function createParseErrorResult(_0x11ab3a,_0x5cd7ac,_0x4add50,_0xe17abc,_0x5982f4='segment'){const _0x2d4e23=a149_0x6d49;return{'filePath':_0x11ab3a,'relativePath':_0x5cd7ac,'source':_0x4add50,'result':{'valid':![],'errors':[{'level':_0x2d4e23(0x164),'path':'','code':_0x2d4e23(0x166),'message':_0xe17abc}],'warnings':[]},'fileType':_0x5982f4};}export function validateYamlFile(_0x47d6cb,_0x712d54,_0x525cd6={}){const _0x3186d0=a149_0x6d49,_0x3d030a=a149_0x481085['relative'](_0x712d54,_0x47d6cb)||a149_0x481085['basename'](_0x47d6cb);try{const _0x55dc57=readFileSync(_0x47d6cb,'utf-8'),_0x2e9a91=a149_0x5d5a31[_0x3186d0(0x16b)](_0x55dc57),_0x2f32c4=_0x2e9a91[_0x3186d0(0x161)]();if(!_0x2f32c4)return createParseErrorResult(_0x47d6cb,_0x3d030a,_0x55dc57,_0x3186d0(0x162));let _0x2ec082;if(isJourneyDef(_0x2f32c4))_0x2ec082='journey';else{if(isCampaignDef(_0x2f32c4))_0x2ec082=_0x3186d0(0x165);else isTemplateDef(_0x2f32c4)?_0x2ec082=_0x3186d0(0x160):_0x2ec082='segment';}if(_0x525cd6[_0x3186d0(0x173)]&&_0x2ec082!==_0x525cd6[_0x3186d0(0x173)])return{'filePath':_0x47d6cb,'relativePath':_0x3d030a,'skipped':!![],'reason':_0x3186d0(0x170)+_0x525cd6[_0x3186d0(0x173)]};const _0x365a5e={'source':_0x55dc57,'document':_0x2e9a91};let _0x51f3e5;if(_0x2ec082==='journey')_0x51f3e5=validateJourneyDef(_0x2f32c4,_0x365a5e);else{if(_0x2ec082==='campaign')_0x51f3e5=validateCampaignDef(_0x2f32c4,_0x365a5e);else _0x2ec082===_0x3186d0(0x160)?_0x51f3e5=validateTemplateDef(_0x2f32c4,_0x365a5e):_0x51f3e5=validateSegmentDef(_0x2f32c4,_0x365a5e);}return{'filePath':_0x47d6cb,'relativePath':_0x3d030a,'source':_0x55dc57,'result':_0x51f3e5,'fileType':_0x2ec082};}catch(_0x137100){const _0x2befd6=_0x137100 instanceof Error?_0x137100['message']:String(_0x137100);return createParseErrorResult(_0x47d6cb,_0x3d030a,'','YAML\x20parse\x20error:\x20'+_0x2befd6);}}export function validateYamlFiles(_0x115919,_0x37dbc3,_0x37de6d={}){const _0x12c420=a149_0x6d49;return _0x115919[_0x12c420(0x16d)](_0x319a39=>validateYamlFile(_0x319a39,_0x37dbc3,_0x37de6d));}export function calculateSummary(_0xf27cba){const _0xa8b81=a149_0x6d49;let _0x28da96=0x0,_0x1fa309=0x0,_0x2b8b6c=0x0,_0x580843=0x0;for(const _0x144dc9 of _0xf27cba){if(!isValidationResult(_0x144dc9)){_0x580843++;continue;}_0x144dc9[_0xa8b81(0x16a)]['valid']?_0x28da96++:_0x1fa309++,_0x2b8b6c+=_0x144dc9['result'][_0xa8b81(0x16f)]['length'];}return{'validCount':_0x28da96,'invalidCount':_0x1fa309,'warningCount':_0x2b8b6c,'skippedCount':_0x580843,'hasErrors':_0x1fa309>0x0};}
1
+ const a149_0x2ce3bc=a149_0x31e6;(function(_0x262364,_0x21ca56){const _0x28eea9=a149_0x31e6,_0x6c51f1=_0x262364();while(!![]){try{const _0x412697=-parseInt(_0x28eea9(0x201))/0x1*(-parseInt(_0x28eea9(0x20a))/0x2)+-parseInt(_0x28eea9(0x1f8))/0x3+parseInt(_0x28eea9(0x1f2))/0x4+parseInt(_0x28eea9(0x1fc))/0x5*(-parseInt(_0x28eea9(0x200))/0x6)+-parseInt(_0x28eea9(0x203))/0x7*(-parseInt(_0x28eea9(0x1f3))/0x8)+-parseInt(_0x28eea9(0x209))/0x9+-parseInt(_0x28eea9(0x1f0))/0xa*(-parseInt(_0x28eea9(0x20b))/0xb);if(_0x412697===_0x21ca56)break;else _0x6c51f1['push'](_0x6c51f1['shift']());}catch(_0x41e0a8){_0x6c51f1['push'](_0x6c51f1['shift']());}}}(a149_0x38ef,0x57d4c));import{readFileSync}from'fs';import*as a149_0x94e885 from'path';function a149_0x31e6(_0x24ceab,_0x4288ad){_0x24ceab=_0x24ceab-0x1ef;const _0x38ef2a=a149_0x38ef();let _0x31e657=_0x38ef2a[_0x24ceab];return _0x31e657;}import*as a149_0x5bb866 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';function a149_0x38ef(){const _0x4e00d1=['5969358LHPcYe','2ZfaAbX','14476rcPeYS','campaign_type','YAML\x20parse\x20error:\x20','error','message','segment','not\x20a\x20','length','3390cRhMTi','journey','2021396UMaRSZ','184Ybhpkt','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','skipped','toJSON','YAML_PARSE_ERROR','413343lARArZ','map','email','template','836335GzhaCf','basename','campaign','object','6aZaAbO','231923PdITYA','type','44030mafBLC','result','valid','has','filterType','relative'];a149_0x38ef=function(){return _0x4e00d1;};return a149_0x38ef();}import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a149_0x2ce3bc(0x1fa),'push']);export function isJourneyDef(_0x367939){const _0x4a3410=a149_0x2ce3bc;return typeof _0x367939===_0x4a3410(0x1ff)&&_0x367939!==null&&_0x4a3410(0x202)in _0x367939&&_0x367939[_0x4a3410(0x202)]===_0x4a3410(0x1f1);}export function isCampaignDef(_0x1e5035){const _0x34c939=a149_0x2ce3bc;if(typeof _0x1e5035!=='object'||_0x1e5035===null)return![];const _0x52559d=_0x1e5035,_0x3d0bbb=VALID_CAMPAIGN_TYPES[_0x34c939(0x206)](_0x52559d[_0x34c939(0x20c)]);if(_0x52559d['type']===_0x34c939(0x1fe)&&_0x3d0bbb)return!![];if(_0x3d0bbb&&!_0x52559d[_0x34c939(0x202)])return!![];return![];}export function isTemplateDef(_0x2a1b57){const _0x4154e8=a149_0x2ce3bc;return typeof _0x2a1b57==='object'&&_0x2a1b57!==null&&'type'in _0x2a1b57&&_0x2a1b57['type']===_0x4154e8(0x1fb);}export function isValidationResult(_0x38b946){const _0x1e19d1=a149_0x2ce3bc;return!(_0x1e19d1(0x1f5)in _0x38b946);}export function createParseErrorResult(_0x1c1a58,_0x14dccf,_0x3566af,_0x30798c,_0x1fd2e0=a149_0x2ce3bc(0x210)){const _0x450a9d=a149_0x2ce3bc;return{'filePath':_0x1c1a58,'relativePath':_0x14dccf,'source':_0x3566af,'result':{'valid':![],'errors':[{'level':_0x450a9d(0x20e),'path':'','code':_0x450a9d(0x1f7),'message':_0x30798c}],'warnings':[]},'fileType':_0x1fd2e0};}export function validateYamlFile(_0x53223d,_0x274835,_0x2f3891={}){const _0x548de8=a149_0x2ce3bc,_0xd0066=a149_0x94e885[_0x548de8(0x208)](_0x274835,_0x53223d)||a149_0x94e885[_0x548de8(0x1fd)](_0x53223d);try{const _0x2c608=readFileSync(_0x53223d,'utf-8'),_0x186612=a149_0x5bb866['parseDocument'](_0x2c608),_0x253862=_0x186612[_0x548de8(0x1f6)]();if(!_0x253862)return createParseErrorResult(_0x53223d,_0xd0066,_0x2c608,_0x548de8(0x1f4));let _0x389511;if(isJourneyDef(_0x253862))_0x389511=_0x548de8(0x1f1);else{if(isCampaignDef(_0x253862))_0x389511='campaign';else isTemplateDef(_0x253862)?_0x389511=_0x548de8(0x1fb):_0x389511=_0x548de8(0x210);}if(_0x2f3891[_0x548de8(0x207)]&&_0x389511!==_0x2f3891[_0x548de8(0x207)])return{'filePath':_0x53223d,'relativePath':_0xd0066,'skipped':!![],'reason':_0x548de8(0x211)+_0x2f3891['filterType']};const _0x1f0391={'source':_0x2c608,'document':_0x186612};let _0x2f6d22;if(_0x389511===_0x548de8(0x1f1))_0x2f6d22=validateJourneyDef(_0x253862,_0x1f0391);else{if(_0x389511===_0x548de8(0x1fe))_0x2f6d22=validateCampaignDef(_0x253862,_0x1f0391);else _0x389511==='template'?_0x2f6d22=validateTemplateDef(_0x253862,_0x1f0391):_0x2f6d22=validateSegmentDef(_0x253862,_0x1f0391);}return{'filePath':_0x53223d,'relativePath':_0xd0066,'source':_0x2c608,'result':_0x2f6d22,'fileType':_0x389511};}catch(_0x331ebd){const _0x58e2bc=_0x331ebd instanceof Error?_0x331ebd[_0x548de8(0x20f)]:String(_0x331ebd);return createParseErrorResult(_0x53223d,_0xd0066,'',_0x548de8(0x20d)+_0x58e2bc);}}export function validateYamlFiles(_0x43055c,_0x563ac0,_0x208716={}){const _0x17490c=a149_0x2ce3bc;return _0x43055c[_0x17490c(0x1f9)](_0x29409e=>validateYamlFile(_0x29409e,_0x563ac0,_0x208716));}export function calculateSummary(_0x5b591a){const _0x5c10bd=a149_0x2ce3bc;let _0x397595=0x0,_0x17e75a=0x0,_0xa25e87=0x0,_0xc44807=0x0;for(const _0x590f27 of _0x5b591a){if(!isValidationResult(_0x590f27)){_0xc44807++;continue;}_0x590f27[_0x5c10bd(0x204)][_0x5c10bd(0x205)]?_0x397595++:_0x17e75a++,_0xa25e87+=_0x590f27[_0x5c10bd(0x204)]['warnings'][_0x5c10bd(0x1ef)];}return{'validCount':_0x397595,'invalidCount':_0x17e75a,'warningCount':_0xa25e87,'skippedCount':_0xc44807,'hasErrors':_0x17e75a>0x0};}
@@ -1 +1 @@
1
- (function(_0x391372,_0x5233fc){const _0x3a842b=a150_0x32df,_0x34b633=_0x391372();while(!![]){try{const _0x554669=-parseInt(_0x3a842b(0xaa))/0x1+parseInt(_0x3a842b(0x9e))/0x2+parseInt(_0x3a842b(0xae))/0x3+-parseInt(_0x3a842b(0xbc))/0x4+-parseInt(_0x3a842b(0x9b))/0x5*(parseInt(_0x3a842b(0xb2))/0x6)+-parseInt(_0x3a842b(0xa7))/0x7+parseInt(_0x3a842b(0xa9))/0x8;if(_0x554669===_0x5233fc)break;else _0x34b633['push'](_0x34b633['shift']());}catch(_0x40e6c9){_0x34b633['push'](_0x34b633['shift']());}}}(a150_0x54cb,0xd301b));import*as a150_0x4aaf74 from'yaml';import a150_0x3001bd from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0xaccadf,_0x51a6ef,_0x4c7605){const _0x5908cf=a150_0x32df;if(!_0xaccadf||!_0x51a6ef)return undefined;try{let _0x29ef2e=_0xaccadf[_0x5908cf(0xa5)](_0x4c7605,!![]),_0x36b1a4=[..._0x4c7605];while((!_0x29ef2e||typeof _0x29ef2e!==_0x5908cf(0xa0)||!(_0x5908cf(0xc3)in _0x29ef2e)||!_0x29ef2e['range'])&&_0x36b1a4[_0x5908cf(0xb0)]>0x0){_0x36b1a4['pop'](),_0x29ef2e=_0x36b1a4[_0x5908cf(0xb0)]>0x0?_0xaccadf['getIn'](_0x36b1a4,!![]):_0xaccadf[_0x5908cf(0xad)];}if(!_0x29ef2e||typeof _0x29ef2e!==_0x5908cf(0xa0)||!(_0x5908cf(0xc3)in _0x29ef2e)||!_0x29ef2e['range'])return undefined;const [_0xc89093]=_0x29ef2e[_0x5908cf(0xc3)];return offsetToLocation(_0x51a6ef,_0xc89093);}catch{return undefined;}}export function offsetToLocation(_0x1ee928,_0x50cc0d){const _0x409348=a150_0x32df;let _0x15e04=0x1,_0x98a9fc=0x1;for(let _0x5306f1=0x0;_0x5306f1<_0x50cc0d&&_0x5306f1<_0x1ee928[_0x409348(0xb0)];_0x5306f1++){_0x1ee928[_0x5306f1]==='\x0a'?(_0x15e04++,_0x98a9fc=0x1):_0x98a9fc++;}return{'line':_0x15e04,'column':_0x98a9fc,'offset':_0x50cc0d};}function a150_0x54cb(){const _0x924150=['max','red','yellow','Invalid\x20YAML:\x20expected\x20an\x20object','code','YAML\x20validation\x20error\x20at\x20\x27','message','split','data','783464VdDjdo','cyan','repeat','location','number','errors','flatMap','range','issues','invalid_union','error','20ZzlyVE','push','column','1749602VeXOFt','path','object','success','YAML\x20validation\x20error:\x20','dim','parse','getIn','join','11580681ojsiva','padStart','25782528HngZvi','1244387SdKJky','safeParse','match','contents','1191102PnFUlI','\x27:\x20','length','level','803598gIbiNT'];a150_0x54cb=function(){return _0x924150;};return a150_0x54cb();}export function pathToArray(_0x4a21b9){const _0x15ed36=a150_0x32df;if(!_0x4a21b9)return[];return _0x4a21b9[_0x15ed36(0xba)]('.')[_0x15ed36(0xc2)](_0x4fc5f1=>{const _0x2e65ed=_0x15ed36,_0x5a542c=_0x4fc5f1[_0x2e65ed(0xac)](/^(\w+)\[(\d+)\]$/);if(_0x5a542c)return[_0x5a542c[0x1],parseInt(_0x5a542c[0x2],0xa)];return[_0x4fc5f1];});}function a150_0x32df(_0x2d75c4,_0x58d06b){_0x2d75c4=_0x2d75c4-0x9a;const _0x54cba0=a150_0x54cb();let _0x32df8d=_0x54cba0[_0x2d75c4];return _0x32df8d;}export function formatZodPath(_0x5f686){const _0x5f2fe4=a150_0x32df;let _0x1cc158='';for(const _0x2fe8c8 of _0x5f686){if(typeof _0x2fe8c8===_0x5f2fe4(0xc0))_0x1cc158+='['+_0x2fe8c8+']';else{const _0xd41b61=String(_0x2fe8c8);_0x1cc158+=_0x1cc158?'.'+_0xd41b61:_0xd41b61;}}return _0x1cc158;}export function flattenZodIssues(_0x440460){const _0x1625f0=a150_0x32df,_0xa01ad9=[];for(const _0x5992ef of _0x440460){if(_0x5992ef[_0x1625f0(0xb7)]===_0x1625f0(0xc5)&&_0x1625f0(0xc1)in _0x5992ef){const _0x3376c1=_0x5992ef[_0x1625f0(0xc1)];let _0x535ad7=_0x3376c1[0x0]||[];for(const _0x50d9d9 of _0x3376c1){_0x50d9d9[_0x1625f0(0xb0)]<_0x535ad7['length']&&(_0x535ad7=_0x50d9d9);}const _0xdcca07=_0x535ad7['map'](_0x32ee1f=>({..._0x32ee1f,'path':[..._0x5992ef[_0x1625f0(0x9f)],..._0x32ee1f[_0x1625f0(0x9f)]]}));_0xa01ad9[_0x1625f0(0x9c)](...flattenZodIssues(_0xdcca07));}else _0xa01ad9[_0x1625f0(0x9c)](_0x5992ef);}return _0xa01ad9;}export function safeParseYaml(_0x1c28b1,_0x411ad6){const _0x5d44f8=a150_0x32df,_0x578911=a150_0x4aaf74[_0x5d44f8(0xa4)](_0x1c28b1);if(!_0x578911||typeof _0x578911!==_0x5d44f8(0xa0))throw new Error(_0x5d44f8(0xb6));const _0x583590=_0x411ad6[_0x5d44f8(0xab)](_0x578911);if(!_0x583590[_0x5d44f8(0xa1)]){const _0x585995=_0x583590[_0x5d44f8(0x9a)][_0x5d44f8(0xc4)][0x0],_0x451aba=formatZodPath(_0x585995[_0x5d44f8(0x9f)]);throw new Error(_0x451aba?_0x5d44f8(0xb8)+_0x451aba+_0x5d44f8(0xaf)+_0x585995[_0x5d44f8(0xb9)]:_0x5d44f8(0xa2)+_0x585995[_0x5d44f8(0xb9)]);}return _0x583590[_0x5d44f8(0xbb)];}export function formatIssueWithContext(_0x4a3247,_0x5d7295,_0x333b41){const _0x1654ad=a150_0x32df,_0x5e77ec=[],_0x5828c7=_0x4a3247[_0x1654ad(0xb1)]===_0x1654ad(0x9a),_0x283252=_0x5828c7?a150_0x3001bd[_0x1654ad(0xb4)]:a150_0x3001bd['yellow'],_0x1e5c29=_0x5828c7?a150_0x3001bd[_0x1654ad(0xb4)]:a150_0x3001bd[_0x1654ad(0xb5)],_0x1f5d2c=_0x333b41?a150_0x3001bd[_0x1654ad(0xbd)](_0x333b41+':'):'';if(_0x4a3247['location']){const _0x1595a3=a150_0x3001bd[_0x1654ad(0xbd)](_0x4a3247[_0x1654ad(0xbf)]['line']+':'+_0x4a3247[_0x1654ad(0xbf)][_0x1654ad(0x9d)]);_0x5e77ec['push'](''+_0x1f5d2c+_0x1595a3+':\x20'+_0x283252(_0x4a3247[_0x1654ad(0xb1)])+'\x20'+_0x1e5c29('['+_0x4a3247['code']+']'));}else _0x5e77ec[_0x1654ad(0x9c)](''+_0x1f5d2c+a150_0x3001bd[_0x1654ad(0xa3)](_0x4a3247[_0x1654ad(0x9f)])+':\x20'+_0x283252(_0x4a3247[_0x1654ad(0xb1)])+'\x20'+_0x1e5c29('['+_0x4a3247[_0x1654ad(0xb7)]+']'));_0x5e77ec['push'](_0x4a3247[_0x1654ad(0xb9)]);if(_0x4a3247[_0x1654ad(0xbf)]&&_0x5d7295){const _0x2b6805=_0x5d7295['split']('\x0a'),{line:_0x58335e,column:_0x544092}=_0x4a3247['location'],_0x2baa49=Math[_0x1654ad(0xb3)](0x1,_0x58335e-0x1),_0x31b40e=Math['min'](_0x2b6805['length'],_0x58335e+0x1);_0x5e77ec[_0x1654ad(0x9c)]('');for(let _0x942607=_0x2baa49;_0x942607<=_0x31b40e;_0x942607++){const _0x586164=_0x2b6805[_0x942607-0x1]||'',_0x311db5=a150_0x3001bd['dim'](_0x942607['toString']()[_0x1654ad(0xa8)](0x4)),_0x239e08=a150_0x3001bd[_0x1654ad(0xa3)]('\x20|\x20');if(_0x942607===_0x58335e){_0x5e77ec['push']('\x20\x20'+_0x311db5+_0x239e08+_0x283252(_0x586164));const _0x57e4d1='\x20'[_0x1654ad(0xbe)](0x4+0x3+_0x544092-0x1);_0x5e77ec['push']('\x20\x20'+_0x57e4d1+_0x283252('^'));}else _0x5e77ec[_0x1654ad(0x9c)]('\x20\x20'+_0x311db5+_0x239e08+a150_0x3001bd['dim'](_0x586164));}}return _0x5e77ec['join']('\x0a');}export function formatValidationResult(_0x60a638,_0x14e808,_0x3118e){const _0x4cfacb=a150_0x32df,_0x56cf4f=[];for(const _0x5ad179 of _0x60a638[_0x4cfacb(0xc1)]){_0x56cf4f[_0x4cfacb(0x9c)](formatIssueWithContext(_0x5ad179,_0x14e808,_0x3118e)),_0x56cf4f[_0x4cfacb(0x9c)]('');}for(const _0x4c000e of _0x60a638['warnings']){_0x56cf4f[_0x4cfacb(0x9c)](formatIssueWithContext(_0x4c000e,_0x14e808,_0x3118e)),_0x56cf4f['push']('');}return _0x56cf4f[_0x4cfacb(0xa6)]('\x0a');}
1
+ (function(_0x20a3bd,_0x2d375a){const _0x3a6159=a150_0x38a2,_0x57b086=_0x20a3bd();while(!![]){try{const _0x8fee77=-parseInt(_0x3a6159(0x118))/0x1*(parseInt(_0x3a6159(0x11d))/0x2)+parseInt(_0x3a6159(0x102))/0x3+-parseInt(_0x3a6159(0x126))/0x4+-parseInt(_0x3a6159(0x11e))/0x5+-parseInt(_0x3a6159(0x103))/0x6*(parseInt(_0x3a6159(0x120))/0x7)+parseInt(_0x3a6159(0x121))/0x8*(-parseInt(_0x3a6159(0x11a))/0x9)+-parseInt(_0x3a6159(0x11b))/0xa*(-parseInt(_0x3a6159(0x112))/0xb);if(_0x8fee77===_0x2d375a)break;else _0x57b086['push'](_0x57b086['shift']());}catch(_0x1b4192){_0x57b086['push'](_0x57b086['shift']());}}}(a150_0x18e1,0x56b25));function a150_0x38a2(_0x20a36b,_0x1efa6d){_0x20a36b=_0x20a36b-0xfd;const _0x18e1e7=a150_0x18e1();let _0x38a267=_0x18e1e7[_0x20a36b];return _0x38a267;}import*as a150_0xb04a60 from'yaml';import a150_0x41cc66 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x5856b4,_0x33eafb,_0x59d559){const _0x26a092=a150_0x38a2;if(!_0x5856b4||!_0x33eafb)return undefined;try{let _0x1409c5=_0x5856b4['getIn'](_0x59d559,!![]),_0x1f414f=[..._0x59d559];while((!_0x1409c5||typeof _0x1409c5!==_0x26a092(0x10b)||!(_0x26a092(0x11c)in _0x1409c5)||!_0x1409c5[_0x26a092(0x11c)])&&_0x1f414f['length']>0x0){_0x1f414f[_0x26a092(0x115)](),_0x1409c5=_0x1f414f[_0x26a092(0x11f)]>0x0?_0x5856b4[_0x26a092(0x105)](_0x1f414f,!![]):_0x5856b4[_0x26a092(0x122)];}if(!_0x1409c5||typeof _0x1409c5!==_0x26a092(0x10b)||!(_0x26a092(0x11c)in _0x1409c5)||!_0x1409c5[_0x26a092(0x11c)])return undefined;const [_0x37cb69]=_0x1409c5[_0x26a092(0x11c)];return offsetToLocation(_0x33eafb,_0x37cb69);}catch{return undefined;}}export function offsetToLocation(_0x4630cc,_0x3069b2){let _0x2ef2bc=0x1,_0x505490=0x1;for(let _0x1ecefc=0x0;_0x1ecefc<_0x3069b2&&_0x1ecefc<_0x4630cc['length'];_0x1ecefc++){_0x4630cc[_0x1ecefc]==='\x0a'?(_0x2ef2bc++,_0x505490=0x1):_0x505490++;}return{'line':_0x2ef2bc,'column':_0x505490,'offset':_0x3069b2};}export function pathToArray(_0x49f4d2){const _0x3c7336=a150_0x38a2;if(!_0x49f4d2)return[];return _0x49f4d2[_0x3c7336(0x109)]('.')['flatMap'](_0x5b8e39=>{const _0x445b13=_0x3c7336,_0x3a9fb7=_0x5b8e39[_0x445b13(0x12b)](/^(\w+)\[(\d+)\]$/);if(_0x3a9fb7)return[_0x3a9fb7[0x1],parseInt(_0x3a9fb7[0x2],0xa)];return[_0x5b8e39];});}export function formatZodPath(_0x215eba){const _0x17b666=a150_0x38a2;let _0x415f3f='';for(const _0x1b542a of _0x215eba){if(typeof _0x1b542a===_0x17b666(0x129))_0x415f3f+='['+_0x1b542a+']';else{const _0xa20da1=String(_0x1b542a);_0x415f3f+=_0x415f3f?'.'+_0xa20da1:_0xa20da1;}}return _0x415f3f;}export function flattenZodIssues(_0x25eecd){const _0x49a994=a150_0x38a2,_0x3b52e2=[];for(const _0x1e2c99 of _0x25eecd){if(_0x1e2c99[_0x49a994(0x119)]===_0x49a994(0x114)&&_0x49a994(0x100)in _0x1e2c99){const _0x4442ca=_0x1e2c99[_0x49a994(0x100)];let _0xd0336e=_0x4442ca[0x0]||[];for(const _0x51b1bc of _0x4442ca){_0x51b1bc[_0x49a994(0x11f)]<_0xd0336e[_0x49a994(0x11f)]&&(_0xd0336e=_0x51b1bc);}const _0x30962d=_0xd0336e[_0x49a994(0x12a)](_0x101d85=>({..._0x101d85,'path':[..._0x1e2c99[_0x49a994(0xfd)],..._0x101d85[_0x49a994(0xfd)]]}));_0x3b52e2[_0x49a994(0x111)](...flattenZodIssues(_0x30962d));}else _0x3b52e2['push'](_0x1e2c99);}return _0x3b52e2;}function a150_0x18e1(){const _0x10f5bf=['698310fErmCU','length','207403gUgaqx','1336HEwdBv','contents','level','data','warnings','1434968yJsZjz','message','dim','number','map','match','column','path','Invalid\x20YAML:\x20expected\x20an\x20object','error','errors','\x20|\x20','126711OfXsjo','66rKgwnB','parse','getIn','cyan','\x27:\x20','safeParse','split','issues','object','join','YAML\x20validation\x20error:\x20','success','max','red','push','11iPHYfP','location','invalid_union','pop','yellow','toString','41JmtsXJ','code','10359eBUiEv','13820970qTMunx','range','2570QJoGwT'];a150_0x18e1=function(){return _0x10f5bf;};return a150_0x18e1();}export function safeParseYaml(_0x3b3299,_0x47982b){const _0x564c98=a150_0x38a2,_0x4bc9ce=a150_0xb04a60[_0x564c98(0x104)](_0x3b3299);if(!_0x4bc9ce||typeof _0x4bc9ce!==_0x564c98(0x10b))throw new Error(_0x564c98(0xfe));const _0x1fc610=_0x47982b[_0x564c98(0x108)](_0x4bc9ce);if(!_0x1fc610[_0x564c98(0x10e)]){const _0x4a6b9f=_0x1fc610[_0x564c98(0xff)][_0x564c98(0x10a)][0x0],_0x11d7f1=formatZodPath(_0x4a6b9f[_0x564c98(0xfd)]);throw new Error(_0x11d7f1?'YAML\x20validation\x20error\x20at\x20\x27'+_0x11d7f1+_0x564c98(0x107)+_0x4a6b9f['message']:_0x564c98(0x10d)+_0x4a6b9f[_0x564c98(0x127)]);}return _0x1fc610[_0x564c98(0x124)];}export function formatIssueWithContext(_0x8fa9fa,_0x1fd744,_0x4903df){const _0x32b425=a150_0x38a2,_0xb0ae08=[],_0x144b30=_0x8fa9fa[_0x32b425(0x123)]===_0x32b425(0xff),_0x288678=_0x144b30?a150_0x41cc66['red']:a150_0x41cc66[_0x32b425(0x116)],_0x139b43=_0x144b30?a150_0x41cc66[_0x32b425(0x110)]:a150_0x41cc66[_0x32b425(0x116)],_0x529551=_0x4903df?a150_0x41cc66[_0x32b425(0x106)](_0x4903df+':'):'';if(_0x8fa9fa[_0x32b425(0x113)]){const _0x168069=a150_0x41cc66[_0x32b425(0x106)](_0x8fa9fa['location']['line']+':'+_0x8fa9fa['location'][_0x32b425(0x12c)]);_0xb0ae08['push'](''+_0x529551+_0x168069+':\x20'+_0x288678(_0x8fa9fa[_0x32b425(0x123)])+'\x20'+_0x139b43('['+_0x8fa9fa[_0x32b425(0x119)]+']'));}else _0xb0ae08[_0x32b425(0x111)](''+_0x529551+a150_0x41cc66[_0x32b425(0x128)](_0x8fa9fa[_0x32b425(0xfd)])+':\x20'+_0x288678(_0x8fa9fa[_0x32b425(0x123)])+'\x20'+_0x139b43('['+_0x8fa9fa[_0x32b425(0x119)]+']'));_0xb0ae08[_0x32b425(0x111)](_0x8fa9fa[_0x32b425(0x127)]);if(_0x8fa9fa[_0x32b425(0x113)]&&_0x1fd744){const _0x3fb153=_0x1fd744[_0x32b425(0x109)]('\x0a'),{line:_0x50adeb,column:_0x266d4d}=_0x8fa9fa[_0x32b425(0x113)],_0x4714cc=Math[_0x32b425(0x10f)](0x1,_0x50adeb-0x1),_0x9f07a7=Math['min'](_0x3fb153[_0x32b425(0x11f)],_0x50adeb+0x1);_0xb0ae08['push']('');for(let _0x5e11b7=_0x4714cc;_0x5e11b7<=_0x9f07a7;_0x5e11b7++){const _0x1b1aa2=_0x3fb153[_0x5e11b7-0x1]||'',_0xa1fc35=a150_0x41cc66[_0x32b425(0x128)](_0x5e11b7[_0x32b425(0x117)]()['padStart'](0x4)),_0x255067=a150_0x41cc66['dim'](_0x32b425(0x101));if(_0x5e11b7===_0x50adeb){_0xb0ae08[_0x32b425(0x111)]('\x20\x20'+_0xa1fc35+_0x255067+_0x288678(_0x1b1aa2));const _0x29e259='\x20'['repeat'](0x4+0x3+_0x266d4d-0x1);_0xb0ae08['push']('\x20\x20'+_0x29e259+_0x288678('^'));}else _0xb0ae08[_0x32b425(0x111)]('\x20\x20'+_0xa1fc35+_0x255067+a150_0x41cc66[_0x32b425(0x128)](_0x1b1aa2));}}return _0xb0ae08[_0x32b425(0x10c)]('\x0a');}export function formatValidationResult(_0x18f61c,_0x5f0d6c,_0x26d84b){const _0x213769=a150_0x38a2,_0x827645=[];for(const _0x1b826a of _0x18f61c[_0x213769(0x100)]){_0x827645[_0x213769(0x111)](formatIssueWithContext(_0x1b826a,_0x5f0d6c,_0x26d84b)),_0x827645[_0x213769(0x111)]('');}for(const _0x16ff1c of _0x18f61c[_0x213769(0x125)]){_0x827645[_0x213769(0x111)](formatIssueWithContext(_0x16ff1c,_0x5f0d6c,_0x26d84b)),_0x827645[_0x213769(0x111)]('');}return _0x827645[_0x213769(0x10c)]('\x0a');}