@treasuredata/tdx 2026.3.26 → 2026.3.28

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 (224) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/auth-login-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-statusline-command.js +1 -1
  16. package/dist/commands/claude-usage-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/connection-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/delivery-command.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/engage-campaign-pull-command.js +1 -1
  23. package/dist/commands/engage-campaign-push-command.js +1 -1
  24. package/dist/commands/engage-campaign-validate-command.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/engage-template-pull-command.js +1 -1
  27. package/dist/commands/engage-template-push-command.js +1 -1
  28. package/dist/commands/engage-template-validate-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/journey-validate-command.js +1 -1
  32. package/dist/commands/llm-command.js +1 -1
  33. package/dist/commands/mcp-command.js +1 -1
  34. package/dist/commands/parent-segment-command.d.ts +141 -2
  35. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/parent-segment-command.js.map +1 -1
  38. package/dist/commands/policy-command.js +1 -1
  39. package/dist/commands/profile-command.js +1 -1
  40. package/dist/commands/profiles-command.js +1 -1
  41. package/dist/commands/query-command.js +1 -1
  42. package/dist/commands/schedule-command.js +1 -1
  43. package/dist/commands/segment-command.js +1 -1
  44. package/dist/commands/segment-create-command.js +1 -1
  45. package/dist/commands/segment-fields-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/status-command.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/workflow-command.js +1 -1
  60. package/dist/core/auth.js +1 -1
  61. package/dist/core/command-output.js +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/connection-cache.js +1 -1
  64. package/dist/core/constants.js +1 -1
  65. package/dist/core/credential-cache.js +1 -1
  66. package/dist/core/global-context.js +1 -1
  67. package/dist/core/keychain.js +1 -1
  68. package/dist/core/oauth-keychain.js +1 -1
  69. package/dist/core/oauth.d.ts.map +1 -1
  70. package/dist/core/oauth.js +1 -1
  71. package/dist/core/oauth.js.map +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/user-cache.js +1 -1
  76. package/dist/core/version.js +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/mcp/server.js +1 -1
  79. package/dist/mcp/tools/index.js +1 -1
  80. package/dist/mcp/tools/tdx-run.js +1 -1
  81. package/dist/mcp/tools/tdx-search.js +1 -1
  82. package/dist/mcp/utils.js +1 -1
  83. package/dist/proxy/claude-usage-tracker.js +1 -1
  84. package/dist/proxy/passthrough-server.js +1 -1
  85. package/dist/proxy/sse-usage-parser.js +1 -1
  86. package/dist/sdk/agent/agent-config.js +1 -1
  87. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  88. package/dist/sdk/agent/agent-yaml.js +1 -1
  89. package/dist/sdk/agent/test/evaluator.js +1 -1
  90. package/dist/sdk/agent/test/executor.js +1 -1
  91. package/dist/sdk/agent/test/index.js +1 -1
  92. package/dist/sdk/agent/test/output.js +1 -1
  93. package/dist/sdk/agent/test/parser.js +1 -1
  94. package/dist/sdk/agent/tool-target-registry.js +1 -1
  95. package/dist/sdk/api.js +1 -1
  96. package/dist/sdk/client/cdp-api-client.d.ts +29 -1
  97. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  100. package/dist/sdk/client/delivery-api-client.js +1 -1
  101. package/dist/sdk/client/endpoints.js +1 -1
  102. package/dist/sdk/client/engage-api-client.js +1 -1
  103. package/dist/sdk/client/http-client.js +1 -1
  104. package/dist/sdk/client/llm-api-client.js +1 -1
  105. package/dist/sdk/client/oauth-refresh.js +1 -1
  106. package/dist/sdk/client/rate-limiter.js +1 -1
  107. package/dist/sdk/client/td-api-client.js +1 -1
  108. package/dist/sdk/client/trino-api-client.js +1 -1
  109. package/dist/sdk/client/workflow-client.js +1 -1
  110. package/dist/sdk/connection-validator.js +1 -1
  111. package/dist/sdk/connection.js +1 -1
  112. package/dist/sdk/delivery.js +1 -1
  113. package/dist/sdk/engage/campaign-pull.js +1 -1
  114. package/dist/sdk/engage/campaign-push.js +1 -1
  115. package/dist/sdk/engage/campaign-validator.js +1 -1
  116. package/dist/sdk/engage/campaign-yaml.js +1 -1
  117. package/dist/sdk/engage/template-pull.js +1 -1
  118. package/dist/sdk/engage/template-push.js +1 -1
  119. package/dist/sdk/engage/template-validator.js +1 -1
  120. package/dist/sdk/engage/template-yaml.js +1 -1
  121. package/dist/sdk/engage/types/campaign-def.js +1 -1
  122. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  123. package/dist/sdk/engage/types/template-schema.js +1 -1
  124. package/dist/sdk/engage.js +1 -1
  125. package/dist/sdk/errors.js +1 -1
  126. package/dist/sdk/index.js +1 -1
  127. package/dist/sdk/io/index.js +1 -1
  128. package/dist/sdk/io/node-filesystem.js +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/journey.js +1 -1
  131. package/dist/sdk/llm/chat-cache.js +1 -1
  132. package/dist/sdk/llm/index.js +1 -1
  133. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  134. package/dist/sdk/llm/model-factors.js +1 -1
  135. package/dist/sdk/personalization.d.ts +228 -0
  136. package/dist/sdk/personalization.d.ts.map +1 -1
  137. package/dist/sdk/personalization.js +1 -1
  138. package/dist/sdk/personalization.js.map +1 -1
  139. package/dist/sdk/policy.js +1 -1
  140. package/dist/sdk/query/index.js +1 -1
  141. package/dist/sdk/query/sql-parser.js +1 -1
  142. package/dist/sdk/realtime.d.ts +57 -0
  143. package/dist/sdk/realtime.d.ts.map +1 -1
  144. package/dist/sdk/realtime.js +1 -1
  145. package/dist/sdk/realtime.js.map +1 -1
  146. package/dist/sdk/schedule.js +1 -1
  147. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/fields-display.js +1 -1
  149. package/dist/sdk/segment/file-discovery.js +1 -1
  150. package/dist/sdk/segment/journey-utils.js +1 -1
  151. package/dist/sdk/segment/journey-validator.js +1 -1
  152. package/dist/sdk/segment/journey-yaml.js +1 -1
  153. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  154. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  155. package/dist/sdk/segment/pull-workflow.js +1 -1
  156. package/dist/sdk/segment/push-recovery.js +1 -1
  157. package/dist/sdk/segment/push-workflow.js +1 -1
  158. package/dist/sdk/segment/resolution-context.js +1 -1
  159. package/dist/sdk/segment/segment-path-parser.js +1 -1
  160. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  161. package/dist/sdk/segment/segment-validator.js +1 -1
  162. package/dist/sdk/segment/target-resolution.js +1 -1
  163. package/dist/sdk/segment/tdx-config.js +1 -1
  164. package/dist/sdk/segment/types/activation-schema.js +1 -1
  165. package/dist/sdk/segment/types/journey-def.js +1 -1
  166. package/dist/sdk/segment/types/journey-schema.js +1 -1
  167. package/dist/sdk/segment/types/segment-def.js +1 -1
  168. package/dist/sdk/segment/types/segment-schema.js +1 -1
  169. package/dist/sdk/segment/validate-files.js +1 -1
  170. package/dist/sdk/segment/yaml-validator.js +1 -1
  171. package/dist/sdk/segment.js +1 -1
  172. package/dist/sdk/types/cdp.d.ts +76 -0
  173. package/dist/sdk/types/cdp.d.ts.map +1 -1
  174. package/dist/sdk/types/index.d.ts +1 -1
  175. package/dist/sdk/types/index.d.ts.map +1 -1
  176. package/dist/sdk/types/index.js +1 -1
  177. package/dist/sdk/types/index.js.map +1 -1
  178. package/dist/sdk/types/progress.js +1 -1
  179. package/dist/sdk/user.js +1 -1
  180. package/dist/sdk/util/format-detector.js +1 -1
  181. package/dist/sdk/util/formatters.js +1 -1
  182. package/dist/sdk/util/index.js +1 -1
  183. package/dist/sdk/util/paginate.js +1 -1
  184. package/dist/sdk/util/tree-formatter.js +1 -1
  185. package/dist/sdk/workflow/archive-validation.js +1 -1
  186. package/dist/sdk/workflow/clone-workflow.js +1 -1
  187. package/dist/sdk/workflow/index.js +1 -1
  188. package/dist/sdk/workflow/pull-workflow.js +1 -1
  189. package/dist/sdk/workflow/push-workflow.js +1 -1
  190. package/dist/sdk/workflow/tdx-config.js +1 -1
  191. package/dist/sdk/workflow/workflow-utils.js +1 -1
  192. package/dist/test-utils/command-runner.js +1 -1
  193. package/dist/test-utils/factories.js +1 -1
  194. package/dist/test-utils/fixtures.js +1 -1
  195. package/dist/test-utils/http-mock.js +1 -1
  196. package/dist/test-utils/index.js +1 -1
  197. package/dist/utils/async.js +1 -1
  198. package/dist/utils/colors.js +1 -1
  199. package/dist/utils/diff.js +1 -1
  200. package/dist/utils/file-permissions.js +1 -1
  201. package/dist/utils/file-reader.js +1 -1
  202. package/dist/utils/github-releases.js +1 -1
  203. package/dist/utils/global-cache.js +1 -1
  204. package/dist/utils/json-loader.js +1 -1
  205. package/dist/utils/local-cache.js +1 -1
  206. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  207. package/dist/utils/logger/formatters/index.js +1 -1
  208. package/dist/utils/logger/handlers/console-handler.js +1 -1
  209. package/dist/utils/logger/handlers/file-handler.js +1 -1
  210. package/dist/utils/logger/handlers/index.js +1 -1
  211. package/dist/utils/logger/handlers/null-handler.js +1 -1
  212. package/dist/utils/logger/index.js +1 -1
  213. package/dist/utils/logger/logger.js +1 -1
  214. package/dist/utils/logger/types.js +1 -1
  215. package/dist/utils/option-validation.js +1 -1
  216. package/dist/utils/process.js +1 -1
  217. package/dist/utils/prompt.js +1 -1
  218. package/dist/utils/spinner.js +1 -1
  219. package/dist/utils/sse-parser.js +1 -1
  220. package/dist/utils/string-utils.js +1 -1
  221. package/dist/utils/table-ref-parser.js +1 -1
  222. package/dist/utils/tdx-logger.js +1 -1
  223. package/dist/utils/version-check.js +1 -1
  224. package/package.json +1 -1
@@ -1 +1 @@
1
- function a147_0x3fcf(){const _0x2572c2=['extname','readFile','Parent\x20segment\x20not\x20specified','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','error','includes','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','journey','trim','file','join','dirname','startsWith','configDir','type','parent_name','isDirectory','folderPath','448364hrkbBG','parse','898009fROdqn','directory','no_config','message','Not\x20a\x20YAML\x20file:\x20','1226616LNujNK','isScoped','266550emfOID','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','basename','segmentName','invalid_yaml','exists','string','no_parent','parentSegment','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','resolve','scopedFolderPath','cwd','4rgCNGm','File\x20not\x20found','replace','88704hiJAjF','context','2794272EdwFGV','match','No\x20tdx.json\x20found\x20for\x20file:\x20','parent_segment','2406295kqKEpK'];a147_0x3fcf=function(){return _0x2572c2;};return a147_0x3fcf();}(function(_0x4d0f40,_0x35bbad){const _0x3bc5f7=a147_0x54df,_0x231497=_0x4d0f40();while(!![]){try{const _0x19aef7=-parseInt(_0x3bc5f7(0xb2))/0x1+parseInt(_0x3bc5f7(0xa9))/0x2+parseInt(_0x3bc5f7(0xb0))/0x3+-parseInt(_0x3bc5f7(0xbf))/0x4*(parseInt(_0x3bc5f7(0xc8))/0x5)+parseInt(_0x3bc5f7(0xc4))/0x6+parseInt(_0x3bc5f7(0xab))/0x7+-parseInt(_0x3bc5f7(0xc2))/0x8;if(_0x19aef7===_0x35bbad)break;else _0x231497['push'](_0x231497['shift']());}catch(_0x4cef53){_0x231497['push'](_0x231497['shift']());}}}(a147_0x3fcf,0x724bc));import a147_0x20ab94 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';function a147_0x54df(_0x1054f0,_0x172f26){_0x1054f0=_0x1054f0-0xa5;const _0x3fcf40=a147_0x3fcf();let _0x54df89=_0x3fcf40[_0x1054f0];return _0x54df89;}import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x25e544){return _0x25e544['type']!=='error';}export function isScopedResolution(_0x5cc841){const _0x3ca512=a147_0x54df;return _0x5cc841['type']===_0x3ca512(0xac)||_0x5cc841[_0x3ca512(0xa5)]===_0x3ca512(0xd2)||_0x5cc841[_0x3ca512(0xa5)]===_0x3ca512(0xc3);}export function getScopedDetails(_0x1d7e49){const _0x1d15af=a147_0x54df;if(isScopedResolution(_0x1d7e49))return{'isScoped':_0x1d7e49['isScoped'],'scopedFolderPath':_0x1d7e49[_0x1d15af(0xbd)]};return undefined;}async function findTdxConfigAsync(_0x586918,_0x986b09){const _0x506430=a147_0x54df;let _0x255579=a147_0x20ab94['resolve'](_0x586918);const _0x2250f8=a147_0x20ab94[_0x506430(0xaa)](_0x255579)['root'];while(_0x255579!==_0x2250f8){const _0x45a3c9=a147_0x20ab94[_0x506430(0xd3)](_0x255579,'tdx.json');if(await _0x986b09[_0x506430(0xb7)](_0x45a3c9))try{const _0x5b3873=await _0x986b09[_0x506430(0xca)](_0x45a3c9),_0x11fa95=JSON['parse'](_0x5b3873);if(_0x11fa95['parent_segment']&&typeof _0x11fa95['parent_segment']===_0x506430(0xb8))return{'configPath':_0x45a3c9,'configDir':_0x255579,'parentSegment':_0x11fa95[_0x506430(0xc7)]};}catch{}_0x255579=a147_0x20ab94[_0x506430(0xd4)](_0x255579);}return null;}function calculateScopedPath(_0x7d983f,_0x1c5fa2){const _0x2c0401=a147_0x54df,_0x5d793c=a147_0x20ab94['relative'](_0x1c5fa2,_0x7d983f),_0x3d6abd=_0x5d793c!==''&&_0x5d793c!=='.'&&!_0x5d793c[_0x2c0401(0xd5)]('..');return{'isScoped':_0x3d6abd,'scopedFolderPath':_0x3d6abd?_0x5d793c[_0x2c0401(0xc1)](/\\/g,'/'):''};}export async function resolveTarget(_0x29a82d){const _0x4969a4=a147_0x54df,{arg:_0x24c2b8,contextParent:_0x7e883e,cwd:cwd=process[_0x4969a4(0xbe)](),fs:fs=nodeFileSystem}=_0x29a82d;if(_0x24c2b8&&isYamlFilePath(_0x24c2b8))try{const _0x13822f=await resolveYamlFilePath(_0x24c2b8,fs),_0x4e078e=a147_0x20ab94[_0x4969a4(0xbc)](_0x24c2b8),_0x298888=a147_0x20ab94['dirname'](_0x4e078e),_0x365d04=await findTdxConfigAsync(_0x298888,fs);if(!_0x365d04){if(_0x7e883e){const _0x793ee7=a147_0x20ab94[_0x4969a4(0xd4)](_0x4e078e);return{'type':_0x4969a4(0xd2),'parentName':_0x7e883e,'targetDir':_0x793ee7,'configRoot':_0x793ee7,'filePath':_0x4e078e,'resourceName':_0x13822f['segmentName'],'folderPath':_0x13822f[_0x4969a4(0xa8)],'resourceType':_0x13822f['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4969a4(0xcd),'errorCode':_0x4969a4(0xad),'message':_0x4969a4(0xc6)+_0x24c2b8,'arg':_0x24c2b8,'helpText':_0x4969a4(0xb3)};}const _0x3847e9=calculateScopedPath(_0x298888,_0x365d04[_0x4969a4(0xd6)]);return{'type':_0x4969a4(0xd2),'parentName':_0x365d04['parentSegment'],'targetDir':_0x365d04['configDir'],'configRoot':_0x365d04[_0x4969a4(0xd6)],'filePath':_0x4e078e,'resourceName':_0x13822f[_0x4969a4(0xb5)],'folderPath':_0x13822f[_0x4969a4(0xa8)],'resourceType':_0x13822f['resourceType'],'isScoped':_0x3847e9['isScoped'],'scopedFolderPath':_0x3847e9[_0x4969a4(0xbd)]};}catch(_0x4a79fe){const _0x17ccb0=_0x4a79fe instanceof Error?_0x4a79fe[_0x4969a4(0xae)]:String(_0x4a79fe);if(_0x17ccb0[_0x4969a4(0xce)](_0x4969a4(0xc0)))return{'type':'error','errorCode':'file_not_found','message':'File\x20not\x20found:\x20'+_0x24c2b8,'arg':_0x24c2b8};if(_0x17ccb0[_0x4969a4(0xce)]('No\x20tdx.json\x20found')){if(_0x7e883e){const _0x764dc5=a147_0x20ab94[_0x4969a4(0xbc)](_0x24c2b8);if(await fs[_0x4969a4(0xb7)](_0x764dc5)){const _0x24afdc=a147_0x20ab94['dirname'](_0x764dc5),_0x13d974=await fs[_0x4969a4(0xca)](_0x764dc5),_0xecc0dd=_0x13d974[_0x4969a4(0xc5)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x3df599=_0x13d974[_0x4969a4(0xc5)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x52ea57=_0xecc0dd?_0xecc0dd[0x1][_0x4969a4(0xd1)]():a147_0x20ab94[_0x4969a4(0xb4)](_0x24c2b8,a147_0x20ab94[_0x4969a4(0xc9)](_0x24c2b8)),_0x3efa14=_0x3df599&&_0x3df599[0x1][_0x4969a4(0xd1)]()===_0x4969a4(0xd0)?_0x4969a4(0xd0):'segment';return{'type':'file','parentName':_0x7e883e,'targetDir':_0x24afdc,'configRoot':_0x24afdc,'filePath':_0x764dc5,'resourceName':_0x52ea57,'folderPath':'','resourceType':_0x3efa14,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x4969a4(0xcd),'errorCode':_0x4969a4(0xad),'message':_0x4969a4(0xc6)+_0x24c2b8,'arg':_0x24c2b8,'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':_0x4969a4(0xb6),'message':_0x17ccb0,'arg':_0x24c2b8};}if(_0x24c2b8){const _0xe4d593=a147_0x20ab94['resolve'](cwd,_0x24c2b8);let _0x4e59a8=null;try{_0x4e59a8=await fs['stat'](_0xe4d593);}catch{}if(_0x4e59a8?.[_0x4969a4(0xa7)]()){const _0x1f1ed9=await findTdxConfigAsync(_0xe4d593,fs);if(_0x1f1ed9){const _0x21ca3b=calculateScopedPath(_0xe4d593,_0x1f1ed9[_0x4969a4(0xd6)]);return{'type':'directory','parentName':_0x1f1ed9[_0x4969a4(0xba)],'targetDir':_0xe4d593,'configRoot':_0x1f1ed9['configDir'],'isScoped':_0x21ca3b['isScoped'],'scopedFolderPath':_0x21ca3b[_0x4969a4(0xbd)]};}if(_0x7e883e)return{'type':'directory','parentName':_0x7e883e,'targetDir':_0xe4d593,'configRoot':_0xe4d593,'isScoped':![],'scopedFolderPath':''};return{'type':_0x4969a4(0xcd),'errorCode':_0x4969a4(0xad),'message':_0x4969a4(0xcf)+_0x24c2b8,'arg':_0x24c2b8,'helpText':_0x4969a4(0xb3)};}if(_0x4e59a8?.['isFile']())return{'type':_0x4969a4(0xcd),'errorCode':_0x4969a4(0xb6),'message':_0x4969a4(0xaf)+_0x24c2b8,'arg':_0x24c2b8,'helpText':_0x4969a4(0xbb)};const _0x2810c6=sanitizeFileName(_0x24c2b8),_0x30a078=getSegmentRootDir(_0x2810c6,cwd);return{'type':_0x4969a4(0xa6),'parentName':_0x24c2b8,'targetDir':_0x30a078,'configRoot':_0x30a078};}const _0x28d24f=await findTdxConfigAsync(cwd,fs);if(_0x28d24f){const _0x4613a7=calculateScopedPath(cwd,_0x28d24f[_0x4969a4(0xd6)]);return{'type':_0x4969a4(0xc3),'parentName':_0x28d24f[_0x4969a4(0xba)],'targetDir':cwd,'configRoot':_0x28d24f['configDir'],'isScoped':_0x4613a7[_0x4969a4(0xb1)],'scopedFolderPath':_0x4613a7[_0x4969a4(0xbd)]};}if(_0x7e883e){const _0x29300=sanitizeFileName(_0x7e883e),_0x102906=getSegmentRootDir(_0x29300,cwd);return{'type':_0x4969a4(0xc3),'parentName':_0x7e883e,'targetDir':_0x102906,'configRoot':_0x102906,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4969a4(0xcd),'errorCode':_0x4969a4(0xb9),'message':_0x4969a4(0xcb),'helpText':_0x4969a4(0xcc)};}
1
+ (function(_0xec6401,_0x4cebda){const _0x5ca8e4=a147_0x13bf,_0x4d427f=_0xec6401();while(!![]){try{const _0x2111f8=parseInt(_0x5ca8e4(0xda))/0x1*(parseInt(_0x5ca8e4(0xdf))/0x2)+-parseInt(_0x5ca8e4(0xeb))/0x3*(parseInt(_0x5ca8e4(0xde))/0x4)+-parseInt(_0x5ca8e4(0xe3))/0x5+parseInt(_0x5ca8e4(0xe6))/0x6*(-parseInt(_0x5ca8e4(0xf4))/0x7)+parseInt(_0x5ca8e4(0xe1))/0x8*(parseInt(_0x5ca8e4(0xfb))/0x9)+parseInt(_0x5ca8e4(0xef))/0xa+-parseInt(_0x5ca8e4(0xf0))/0xb*(-parseInt(_0x5ca8e4(0x103))/0xc);if(_0x2111f8===_0x4cebda)break;else _0x4d427f['push'](_0x4d427f['shift']());}catch(_0x346cc2){_0x4d427f['push'](_0x4d427f['shift']());}}}(a147_0x1357,0xb02dc));function a147_0x1357(){const _0x4eddc2=['Parent\x20segment\x20not\x20specified','692628pNLEqS','file','trim','no_config','stat','3QCFdiR','startsWith','folderPath','join','2214600hwjGPT','578941ZFgoRW','resolve','string','type','7rJnaPN','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','resourceType','error','exists','isFile','scopedFolderPath','770589EBjlxx','dirname','segmentName','basename','parentSegment','configDir','No\x20tdx.json\x20found','journey','276JjZwnR','readFile','relative','directory','File\x20not\x20found:\x20','no_parent','isDirectory','context','cwd','match','includes','parent_segment','root','63087ITUMGv','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','invalid_yaml','message','1193732noWzRN','26PmBBaS','extname','16DZxDfa','No\x20tdx.json\x20found\x20for\x20file:\x20','6439235CWDXrm','isScoped'];a147_0x1357=function(){return _0x4eddc2;};return a147_0x1357();}import a147_0xcfb9 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x5237f7){const _0x230016=a147_0x13bf;return _0x5237f7['type']!==_0x230016(0xf7);}export function isScopedResolution(_0x306147){const _0x25c9e9=a147_0x13bf;return _0x306147[_0x25c9e9(0xf3)]===_0x25c9e9(0xd0)||_0x306147['type']===_0x25c9e9(0xe7)||_0x306147[_0x25c9e9(0xf3)]===_0x25c9e9(0xd4);}export function getScopedDetails(_0x4dfa6b){const _0x3b2884=a147_0x13bf;if(isScopedResolution(_0x4dfa6b))return{'isScoped':_0x4dfa6b[_0x3b2884(0xe4)],'scopedFolderPath':_0x4dfa6b[_0x3b2884(0xfa)]};return undefined;}function a147_0x13bf(_0x47f9e4,_0xa7701){_0x47f9e4=_0x47f9e4-0xd0;const _0x1357fa=a147_0x1357();let _0x13bff4=_0x1357fa[_0x47f9e4];return _0x13bff4;}async function findTdxConfigAsync(_0x5851bb,_0x119b92){const _0x513e73=a147_0x13bf;let _0x5eb48e=a147_0xcfb9[_0x513e73(0xf1)](_0x5851bb);const _0x530ec5=a147_0xcfb9['parse'](_0x5eb48e)[_0x513e73(0xd9)];while(_0x5eb48e!==_0x530ec5){const _0x31021b=a147_0xcfb9[_0x513e73(0xee)](_0x5eb48e,'tdx.json');if(await _0x119b92[_0x513e73(0xf8)](_0x31021b))try{const _0x5f137c=await _0x119b92[_0x513e73(0x104)](_0x31021b),_0x3b0142=JSON['parse'](_0x5f137c);if(_0x3b0142[_0x513e73(0xd8)]&&typeof _0x3b0142[_0x513e73(0xd8)]===_0x513e73(0xf2))return{'configPath':_0x31021b,'configDir':_0x5eb48e,'parentSegment':_0x3b0142['parent_segment']};}catch{}_0x5eb48e=a147_0xcfb9['dirname'](_0x5eb48e);}return null;}function calculateScopedPath(_0x54b5ed,_0x29cbd4){const _0x3ab514=a147_0x13bf,_0x384315=a147_0xcfb9[_0x3ab514(0x105)](_0x29cbd4,_0x54b5ed),_0x31b2e0=_0x384315!==''&&_0x384315!=='.'&&!_0x384315[_0x3ab514(0xec)]('..');return{'isScoped':_0x31b2e0,'scopedFolderPath':_0x31b2e0?_0x384315['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x4d1ff1){const _0x393935=a147_0x13bf,{arg:_0x354efd,contextParent:_0x5c498a,cwd:cwd=process[_0x393935(0xd5)](),fs:fs=nodeFileSystem}=_0x4d1ff1;if(_0x354efd&&isYamlFilePath(_0x354efd))try{const _0x5dd5cd=await resolveYamlFilePath(_0x354efd,fs),_0x7f4c6a=a147_0xcfb9['resolve'](_0x354efd),_0x5d6e65=a147_0xcfb9[_0x393935(0xfc)](_0x7f4c6a),_0x239e36=await findTdxConfigAsync(_0x5d6e65,fs);if(!_0x239e36){if(_0x5c498a){const _0x3582c7=a147_0xcfb9['dirname'](_0x7f4c6a);return{'type':_0x393935(0xe7),'parentName':_0x5c498a,'targetDir':_0x3582c7,'configRoot':_0x3582c7,'filePath':_0x7f4c6a,'resourceName':_0x5dd5cd[_0x393935(0xfd)],'folderPath':_0x5dd5cd[_0x393935(0xed)],'resourceType':_0x5dd5cd[_0x393935(0xf6)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xe2)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}const _0x32318d=calculateScopedPath(_0x5d6e65,_0x239e36['configDir']);return{'type':'file','parentName':_0x239e36[_0x393935(0xff)],'targetDir':_0x239e36[_0x393935(0x100)],'configRoot':_0x239e36[_0x393935(0x100)],'filePath':_0x7f4c6a,'resourceName':_0x5dd5cd[_0x393935(0xfd)],'folderPath':_0x5dd5cd[_0x393935(0xed)],'resourceType':_0x5dd5cd[_0x393935(0xf6)],'isScoped':_0x32318d[_0x393935(0xe4)],'scopedFolderPath':_0x32318d[_0x393935(0xfa)]};}catch(_0x1afa04){const _0x3233ba=_0x1afa04 instanceof Error?_0x1afa04[_0x393935(0xdd)]:String(_0x1afa04);if(_0x3233ba[_0x393935(0xd7)]('File\x20not\x20found'))return{'type':_0x393935(0xf7),'errorCode':'file_not_found','message':_0x393935(0xd1)+_0x354efd,'arg':_0x354efd};if(_0x3233ba[_0x393935(0xd7)](_0x393935(0x101))){if(_0x5c498a){const _0x298ce0=a147_0xcfb9['resolve'](_0x354efd);if(await fs['exists'](_0x298ce0)){const _0x20eded=a147_0xcfb9[_0x393935(0xfc)](_0x298ce0),_0xc01794=await fs[_0x393935(0x104)](_0x298ce0),_0x3a8b18=_0xc01794[_0x393935(0xd6)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x287be0=_0xc01794[_0x393935(0xd6)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5de946=_0x3a8b18?_0x3a8b18[0x1][_0x393935(0xe8)]():a147_0xcfb9[_0x393935(0xfe)](_0x354efd,a147_0xcfb9[_0x393935(0xe0)](_0x354efd)),_0x5a4abb=_0x287be0&&_0x287be0[0x1][_0x393935(0xe8)]()===_0x393935(0x102)?_0x393935(0x102):'segment';return{'type':_0x393935(0xe7),'parentName':_0x5c498a,'targetDir':_0x20eded,'configRoot':_0x20eded,'filePath':_0x298ce0,'resourceName':_0x5de946,'folderPath':'','resourceType':_0x5a4abb,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xe2)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}return{'type':_0x393935(0xf7),'errorCode':'invalid_yaml','message':_0x3233ba,'arg':_0x354efd};}if(_0x354efd){const _0x3928e7=a147_0xcfb9['resolve'](cwd,_0x354efd);let _0x3e3be1=null;try{_0x3e3be1=await fs[_0x393935(0xea)](_0x3928e7);}catch{}if(_0x3e3be1?.[_0x393935(0xd3)]()){const _0x311fc6=await findTdxConfigAsync(_0x3928e7,fs);if(_0x311fc6){const _0x1dc35d=calculateScopedPath(_0x3928e7,_0x311fc6['configDir']);return{'type':_0x393935(0xd0),'parentName':_0x311fc6['parentSegment'],'targetDir':_0x3928e7,'configRoot':_0x311fc6['configDir'],'isScoped':_0x1dc35d[_0x393935(0xe4)],'scopedFolderPath':_0x1dc35d[_0x393935(0xfa)]};}if(_0x5c498a)return{'type':_0x393935(0xd0),'parentName':_0x5c498a,'targetDir':_0x3928e7,'configRoot':_0x3928e7,'isScoped':![],'scopedFolderPath':''};return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xdb)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}if(_0x3e3be1?.[_0x393935(0xf9)]())return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xdc),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x354efd,'arg':_0x354efd,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x1b1fb8=sanitizeFileName(_0x354efd),_0x404f1f=getSegmentRootDir(_0x1b1fb8,cwd);return{'type':'parent_name','parentName':_0x354efd,'targetDir':_0x404f1f,'configRoot':_0x404f1f};}const _0x6aa521=await findTdxConfigAsync(cwd,fs);if(_0x6aa521){const _0x43282b=calculateScopedPath(cwd,_0x6aa521['configDir']);return{'type':_0x393935(0xd4),'parentName':_0x6aa521[_0x393935(0xff)],'targetDir':cwd,'configRoot':_0x6aa521['configDir'],'isScoped':_0x43282b[_0x393935(0xe4)],'scopedFolderPath':_0x43282b['scopedFolderPath']};}if(_0x5c498a){const _0x256b1b=sanitizeFileName(_0x5c498a),_0x1e2e2b=getSegmentRootDir(_0x256b1b,cwd);return{'type':_0x393935(0xd4),'parentName':_0x5c498a,'targetDir':_0x1e2e2b,'configRoot':_0x1e2e2b,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x393935(0xd2),'message':_0x393935(0xe5),'helpText':'Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure'};}
@@ -1 +1 @@
1
- const a148_0x164ef8=a148_0x46f6;(function(_0x484f6c,_0x2b8cd6){const _0x39d910=a148_0x46f6,_0x9dfe66=_0x484f6c();while(!![]){try{const _0x5e8a7b=parseInt(_0x39d910(0xb5))/0x1*(parseInt(_0x39d910(0xa5))/0x2)+parseInt(_0x39d910(0xa9))/0x3*(-parseInt(_0x39d910(0x9b))/0x4)+parseInt(_0x39d910(0xac))/0x5*(-parseInt(_0x39d910(0xb3))/0x6)+parseInt(_0x39d910(0xa4))/0x7*(parseInt(_0x39d910(0xb6))/0x8)+parseInt(_0x39d910(0xa7))/0x9*(parseInt(_0x39d910(0xab))/0xa)+parseInt(_0x39d910(0x9e))/0xb+-parseInt(_0x39d910(0xa3))/0xc;if(_0x5e8a7b===_0x2b8cd6)break;else _0x9dfe66['push'](_0x9dfe66['shift']());}catch(_0x3fc1dd){_0x9dfe66['push'](_0x9dfe66['shift']());}}}(a148_0x1a25,0x87b00));import{existsSync,readFileSync}from'fs';import a148_0x2227b0 from'path';const TDX_CONFIG_FILE=a148_0x164ef8(0xb1),SEGMENTS_DIR=a148_0x164ef8(0xaa);export function findTdxConfigPath(_0x1309e6=process[a148_0x164ef8(0xa0)]()){const _0x33fe42=a148_0x164ef8;let _0x15c978=a148_0x2227b0['resolve'](_0x1309e6);const _0x5878fd=a148_0x2227b0[_0x33fe42(0x9c)](_0x15c978)['root'];while(_0x15c978!==_0x5878fd){const _0x13037f=a148_0x2227b0[_0x33fe42(0xa2)](_0x15c978,TDX_CONFIG_FILE);if(existsSync(_0x13037f))return _0x13037f;_0x15c978=a148_0x2227b0[_0x33fe42(0xb7)](_0x15c978);}return null;}function a148_0x46f6(_0x3c59ee,_0x12e57b){_0x3c59ee=_0x3c59ee-0x9b;const _0x1a255f=a148_0x1a25();let _0x46f671=_0x1a255f[_0x3c59ee];return _0x46f671;}export function loadTdxConfig(_0x470b62){const _0x15c0ef=a148_0x164ef8,_0x811c5f=readFileSync(_0x470b62,_0x15c0ef(0x9d));let _0x2d0286;try{_0x2d0286=JSON[_0x15c0ef(0x9c)](_0x811c5f);}catch{throw new Error(_0x15c0ef(0xa6)+_0x470b62);}if(!_0x2d0286||typeof _0x2d0286!==_0x15c0ef(0x9f))throw new Error(_0x15c0ef(0xaf));const _0x24b982=_0x2d0286,_0x1979e7=_0x24b982[_0x15c0ef(0xa8)]&&typeof _0x24b982[_0x15c0ef(0xa8)]===_0x15c0ef(0xb0),_0x129030=_0x24b982[_0x15c0ef(0xad)]&&typeof _0x24b982[_0x15c0ef(0xad)]===_0x15c0ef(0xb0);if(!_0x1979e7&&!_0x129030)throw new Error(_0x15c0ef(0xae));const _0x3b3d94={};return _0x1979e7&&(_0x3b3d94['parent_segment']=_0x24b982[_0x15c0ef(0xa8)]),_0x129030&&(_0x3b3d94['engage_workspace']=_0x24b982[_0x15c0ef(0xad)]),_0x3b3d94;}export function findTdxConfig(_0x2e430a=process[a148_0x164ef8(0xa0)]()){const _0xf6ad2c=a148_0x164ef8,_0x7623ae=findTdxConfigPath(_0x2e430a);if(!_0x7623ae)throw new Error(_0xf6ad2c(0xb2));const _0x3cc344=loadTdxConfig(_0x7623ae),_0x29e514=a148_0x2227b0[_0xf6ad2c(0xb7)](_0x7623ae);return{'config':_0x3cc344,'configPath':_0x7623ae,'configDir':_0x29e514};}export function tryFindTdxConfig(_0x3c0be2){try{return findTdxConfig(_0x3c0be2);}catch{return null;}}export function getSegmentRootDir(_0x32514d,_0x72920b=process['cwd']()){const _0x5df3f9=a148_0x164ef8;return a148_0x2227b0[_0x5df3f9(0xa2)](_0x72920b,SEGMENTS_DIR,_0x32514d);}export function getTdxConfigPath(_0x1bda1f,_0x428e3d=process[a148_0x164ef8(0xa0)]()){const _0x359495=a148_0x164ef8;return a148_0x2227b0[_0x359495(0xa2)](getSegmentRootDir(_0x1bda1f,_0x428e3d),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x2785b2,_0x4b9507){const _0x2494e2=a148_0x164ef8,_0x18d72b=a148_0x2227b0['resolve'](_0x2785b2),_0x8309f3=a148_0x2227b0[_0x2494e2(0xb8)](_0x4b9507,_0x18d72b);if(_0x8309f3[_0x2494e2(0xb4)]('..'))return'';return _0x8309f3;}function a148_0x1a25(){const _0x4db0b6=['No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','696zjzgio','startsWith','1DVZOSv','4350872IJhqIy','dirname','relative','7804UucfvW','parse','utf-8','7019782RkSGHf','object','cwd','stringify','join','7799364RxwCPw','7fSGKeP','1111356zLGCEF','Invalid\x20JSON\x20in\x20','498411IemMDI','parent_segment','666iMAuFn','segments','20aIkmSX','9035NBtXFd','engage_workspace','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','Invalid\x20tdx.json:\x20expected\x20object','string','tdx.json'];a148_0x1a25=function(){return _0x4db0b6;};return a148_0x1a25();}export function localPathToTdFolderPath(_0x2142af){const _0x3bc601=a148_0x164ef8,_0xf48909=a148_0x2227b0[_0x3bc601(0xb7)](_0x2142af);if(_0xf48909==='.'||_0xf48909==='')return'';return _0xf48909['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x57abad,_0x18e2b8){const _0xb4609b=a148_0x164ef8;if(!_0x57abad)return _0x18e2b8;return a148_0x2227b0[_0xb4609b(0xa2)](_0x18e2b8,_0x57abad);}export function createTdxConfigContent(_0x228d1b){const _0x51687a=a148_0x164ef8,_0x4acdf7={'parent_segment':_0x228d1b};return JSON[_0x51687a(0xa1)](_0x4acdf7,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x226dea){const _0x33ae22=a148_0x164ef8,_0xb913={'engage_workspace':_0x226dea};return JSON[_0x33ae22(0xa1)](_0xb913,null,0x2)+'\x0a';}
1
+ const a148_0x48d31d=a148_0x54c0;(function(_0x3bdb56,_0x36ad62){const _0x5ed044=a148_0x54c0,_0x47388d=_0x3bdb56();while(!![]){try{const _0x4bc162=parseInt(_0x5ed044(0x1cd))/0x1+parseInt(_0x5ed044(0x1c3))/0x2+parseInt(_0x5ed044(0x1c8))/0x3+parseInt(_0x5ed044(0x1cb))/0x4*(parseInt(_0x5ed044(0x1c9))/0x5)+parseInt(_0x5ed044(0x1c0))/0x6*(parseInt(_0x5ed044(0x1c6))/0x7)+parseInt(_0x5ed044(0x1d1))/0x8+-parseInt(_0x5ed044(0x1ce))/0x9*(parseInt(_0x5ed044(0x1dc))/0xa);if(_0x4bc162===_0x36ad62)break;else _0x47388d['push'](_0x47388d['shift']());}catch(_0x5b145f){_0x47388d['push'](_0x47388d['shift']());}}}(a148_0x1a91,0x84646));import{existsSync,readFileSync}from'fs';function a148_0x54c0(_0x1af107,_0x4fa6a0){_0x1af107=_0x1af107-0x1c0;const _0x1a914c=a148_0x1a91();let _0x54c0b7=_0x1a914c[_0x1af107];return _0x54c0b7;}import a148_0x1c3713 from'path';const TDX_CONFIG_FILE=a148_0x48d31d(0x1c5),SEGMENTS_DIR=a148_0x48d31d(0x1d3);export function findTdxConfigPath(_0x46b083=process[a148_0x48d31d(0x1d2)]()){const _0x562146=a148_0x48d31d;let _0x2e9491=a148_0x1c3713['resolve'](_0x46b083);const _0x470bc7=a148_0x1c3713[_0x562146(0x1d4)](_0x2e9491)[_0x562146(0x1c1)];while(_0x2e9491!==_0x470bc7){const _0x233cc5=a148_0x1c3713[_0x562146(0x1cf)](_0x2e9491,TDX_CONFIG_FILE);if(existsSync(_0x233cc5))return _0x233cc5;_0x2e9491=a148_0x1c3713[_0x562146(0x1cc)](_0x2e9491);}return null;}export function loadTdxConfig(_0x136b2e){const _0x583b47=a148_0x48d31d,_0x62cacd=readFileSync(_0x136b2e,'utf-8');let _0x5567df;try{_0x5567df=JSON[_0x583b47(0x1d4)](_0x62cacd);}catch{throw new Error(_0x583b47(0x1c7)+_0x136b2e);}if(!_0x5567df||typeof _0x5567df!=='object')throw new Error(_0x583b47(0x1d6));const _0x598ad5=_0x5567df,_0x17b286=_0x598ad5[_0x583b47(0x1c2)]&&typeof _0x598ad5['parent_segment']===_0x583b47(0x1d5),_0x23f916=_0x598ad5[_0x583b47(0x1d7)]&&typeof _0x598ad5[_0x583b47(0x1d7)]===_0x583b47(0x1d5);if(!_0x17b286&&!_0x23f916)throw new Error(_0x583b47(0x1da));const _0xdf2d81={};return _0x17b286&&(_0xdf2d81[_0x583b47(0x1c2)]=_0x598ad5[_0x583b47(0x1c2)]),_0x23f916&&(_0xdf2d81[_0x583b47(0x1d7)]=_0x598ad5[_0x583b47(0x1d7)]),_0xdf2d81;}export function findTdxConfig(_0x45b140=process[a148_0x48d31d(0x1d2)]()){const _0xf8d0a3=a148_0x48d31d,_0x572200=findTdxConfigPath(_0x45b140);if(!_0x572200)throw new Error(_0xf8d0a3(0x1ca));const _0x342984=loadTdxConfig(_0x572200),_0x4dbd2c=a148_0x1c3713['dirname'](_0x572200);return{'config':_0x342984,'configPath':_0x572200,'configDir':_0x4dbd2c};}export function tryFindTdxConfig(_0x1ee979){try{return findTdxConfig(_0x1ee979);}catch{return null;}}export function getSegmentRootDir(_0x5ebfa2,_0x237558=process[a148_0x48d31d(0x1d2)]()){const _0x41b317=a148_0x48d31d;return a148_0x1c3713[_0x41b317(0x1cf)](_0x237558,SEGMENTS_DIR,_0x5ebfa2);}export function getTdxConfigPath(_0x5352de,_0x25a8f1=process[a148_0x48d31d(0x1d2)]()){const _0x418a77=a148_0x48d31d;return a148_0x1c3713[_0x418a77(0x1cf)](getSegmentRootDir(_0x5352de,_0x25a8f1),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5160e7,_0x3bb4ec){const _0x18b463=a148_0x48d31d,_0x18cef9=a148_0x1c3713[_0x18b463(0x1d9)](_0x5160e7),_0x22b095=a148_0x1c3713[_0x18b463(0x1d0)](_0x3bb4ec,_0x18cef9);if(_0x22b095[_0x18b463(0x1db)]('..'))return'';return _0x22b095;}export function localPathToTdFolderPath(_0x33950f){const _0xd487b0=a148_0x48d31d,_0x2946b8=a148_0x1c3713['dirname'](_0x33950f);if(_0x2946b8==='.'||_0x2946b8==='')return'';return _0x2946b8[_0xd487b0(0x1c4)](/\\/g,'/');}function a148_0x1a91(){const _0x2b8a41=['84mgGahA','Invalid\x20JSON\x20in\x20','961326OVUTUP','7705LYKyAl','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','1468GcvHVA','dirname','206737mzSfnb','262674odLRGR','join','relative','8314200aEIOQg','cwd','segments','parse','string','Invalid\x20tdx.json:\x20expected\x20object','engage_workspace','stringify','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','startsWith','780pMqChU','284592TIZpEc','root','parent_segment','235202yiXmMB','replace','tdx.json'];a148_0x1a91=function(){return _0x2b8a41;};return a148_0x1a91();}export function tdFolderPathToLocalPath(_0x2415c9,_0x51a647){const _0x290969=a148_0x48d31d;if(!_0x2415c9)return _0x51a647;return a148_0x1c3713[_0x290969(0x1cf)](_0x51a647,_0x2415c9);}export function createTdxConfigContent(_0x1bba24){const _0x362154={'parent_segment':_0x1bba24};return JSON['stringify'](_0x362154,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x292122){const _0x1436d1=a148_0x48d31d,_0x492101={'engage_workspace':_0x292122};return JSON[_0x1436d1(0x1d8)](_0x492101,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- function a149_0x2079(_0x44e213,_0x2fe988){_0x44e213=_0x44e213-0x138;const _0x34c6c5=a149_0x34c6();let _0x207905=_0x34c6c5[_0x44e213];return _0x207905;}const a149_0x425efb=a149_0x2079;(function(_0x31cb54,_0x30acc0){const _0x244ef1=a149_0x2079,_0x5b257c=_0x31cb54();while(!![]){try{const _0x318d93=-parseInt(_0x244ef1(0x149))/0x1*(parseInt(_0x244ef1(0x15d))/0x2)+-parseInt(_0x244ef1(0x164))/0x3+parseInt(_0x244ef1(0x157))/0x4+parseInt(_0x244ef1(0x15f))/0x5+-parseInt(_0x244ef1(0x15c))/0x6*(parseInt(_0x244ef1(0x144))/0x7)+parseInt(_0x244ef1(0x13d))/0x8*(-parseInt(_0x244ef1(0x14b))/0x9)+-parseInt(_0x244ef1(0x142))/0xa*(-parseInt(_0x244ef1(0x159))/0xb);if(_0x318d93===_0x30acc0)break;else _0x5b257c['push'](_0x5b257c['shift']());}catch(_0x5f2584){_0x5b257c['push'](_0x5b257c['shift']());}}}(a149_0x34c6,0x3a77f));import{z}from'zod';export const ScheduleTypeSchema=z[a149_0x425efb(0x160)]([a149_0x425efb(0x15a),a149_0x425efb(0x156),a149_0x425efb(0x13c),a149_0x425efb(0x13b),a149_0x425efb(0x152),a149_0x425efb(0x155),a149_0x425efb(0x150)]);export const RepeatUnitSchema=z[a149_0x425efb(0x160)]([a149_0x425efb(0x15b),a149_0x425efb(0x14f),a149_0x425efb(0x146),a149_0x425efb(0x163),a149_0x425efb(0x143),a149_0x425efb(0x166),a149_0x425efb(0x15a)]);export const ScheduleDefSchema=z[a149_0x425efb(0x13e)]({'type':ScheduleTypeSchema[a149_0x425efb(0x161)](),'repeat_unit':RepeatUnitSchema[a149_0x425efb(0x161)](),'repeat_frequency':z[a149_0x425efb(0x14a)]()[a149_0x425efb(0x161)](),'repeat_sub_frequency':z[a149_0x425efb(0x153)](z['number']())[a149_0x425efb(0x161)](),'start_at':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x140)]()[a149_0x425efb(0x161)](),'end_on':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x140)]()[a149_0x425efb(0x161)](),'timezone':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x161)]()});export const NotificationDefSchema=z[a149_0x425efb(0x13e)]({'notify_on':z[a149_0x425efb(0x153)](z[a149_0x425efb(0x160)](['onSuccess',a149_0x425efb(0x13f)]))[a149_0x425efb(0x161)](),'email_recipients':z[a149_0x425efb(0x153)](z[a149_0x425efb(0x158)]())['optional']()});export const ActivationColumnDefSchema=z[a149_0x425efb(0x141)]([z['string'](),z[a149_0x425efb(0x13e)]({'name':z['string'](),'type':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x161)](),'visibility':z[a149_0x425efb(0x160)]([a149_0x425efb(0x14c),a149_0x425efb(0x14d)])[a149_0x425efb(0x161)]()})]);export const ActivationBehaviorDefSchema=z[a149_0x425efb(0x13e)]({'columns':z[a149_0x425efb(0x153)](z['object']({'name':z['string'](),'type':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x161)](),'visibility':z[a149_0x425efb(0x160)]([a149_0x425efb(0x14c),'masked'])[a149_0x425efb(0x161)]()}))[a149_0x425efb(0x161)](),'behavior_table':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x161)](),'join_row':z[a149_0x425efb(0x14a)]()[a149_0x425efb(0x140)]()[a149_0x425efb(0x161)](),'join_strategy':z[a149_0x425efb(0x160)]([a149_0x425efb(0x147),a149_0x425efb(0x13a),'Last',a149_0x425efb(0x165)])[a149_0x425efb(0x161)](),'formatting':z[a149_0x425efb(0x160)]([a149_0x425efb(0x145),a149_0x425efb(0x138)])[a149_0x425efb(0x161)](),'order_by':z[a149_0x425efb(0x153)](z[a149_0x425efb(0x13e)]({'key':z['string'](),'order':z[a149_0x425efb(0x160)](['asc',a149_0x425efb(0x15e)])}))[a149_0x425efb(0x161)]()});export const ActivationDefSchema=z[a149_0x425efb(0x13e)]({'name':z['string']()[a149_0x425efb(0x162)](0x1,a149_0x425efb(0x148)),'description':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x161)](),'connection':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x162)](0x1,a149_0x425efb(0x14e)),'all_columns':z[a149_0x425efb(0x151)]()[a149_0x425efb(0x161)](),'columns':z[a149_0x425efb(0x153)](ActivationColumnDefSchema)[a149_0x425efb(0x161)](),'schedule':ScheduleDefSchema[a149_0x425efb(0x161)](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a149_0x425efb(0x154)](z['string'](),z[a149_0x425efb(0x139)]())[a149_0x425efb(0x161)](),'activation_template_id':z[a149_0x425efb(0x158)]()[a149_0x425efb(0x140)]()['optional'](),'behavior':ActivationBehaviorDefSchema[a149_0x425efb(0x140)]()[a149_0x425efb(0x161)](),'run_after_journey_refresh':z[a149_0x425efb(0x151)]()[a149_0x425efb(0x161)]()});function a149_0x34c6(){const _0x62d67d=['object','onFailure','nullable','union','30ExATMY','month','272643ZayjpP','rows','day','All','Activation\x20name\x20is\x20required','864ndfXdg','number','9uPWDlK','clear','masked','Connection\x20name\x20is\x20required','hour','minutes_interval','boolean','monthly','array','record','cron','hourly','1263224TJaqyO','string','4159166bPZByG','none','minute','72NcxYTg','996Ecixce','desc','2323385MWlVBD','enum','optional','min','week','900606mRiEAG','Top-N','once','cols','unknown','First','weekly','daily','3819616Awwxwp'];a149_0x34c6=function(){return _0x62d67d;};return a149_0x34c6();}
1
+ const a149_0x358bbe=a149_0xb35a;(function(_0x4e5bf6,_0x3ab19b){const _0x55824f=a149_0xb35a,_0x2f92f7=_0x4e5bf6();while(!![]){try{const _0xb3b2ff=parseInt(_0x55824f(0x92))/0x1+parseInt(_0x55824f(0x71))/0x2+parseInt(_0x55824f(0x83))/0x3+-parseInt(_0x55824f(0x70))/0x4+-parseInt(_0x55824f(0x94))/0x5+parseInt(_0x55824f(0x73))/0x6+-parseInt(_0x55824f(0x78))/0x7;if(_0xb3b2ff===_0x3ab19b)break;else _0x2f92f7['push'](_0x2f92f7['shift']());}catch(_0x1d27f9){_0x2f92f7['push'](_0x2f92f7['shift']());}}}(a149_0x46bf,0x71f45));import{z}from'zod';export const ScheduleTypeSchema=z['enum']([a149_0x358bbe(0x75),'hourly',a149_0x358bbe(0x72),a149_0x358bbe(0x7f),'monthly',a149_0x358bbe(0x79),a149_0x358bbe(0x7e)]);export const RepeatUnitSchema=z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x89),a149_0x358bbe(0x82),a149_0x358bbe(0x81),a149_0x358bbe(0x8f),a149_0x358bbe(0x74),a149_0x358bbe(0x6f),a149_0x358bbe(0x75)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a149_0x358bbe(0x8d)]()[a149_0x358bbe(0x85)](),'repeat_sub_frequency':z['array'](z[a149_0x358bbe(0x8d)]())[a149_0x358bbe(0x85)](),'start_at':z[a149_0x358bbe(0x7a)]()['nullable']()[a149_0x358bbe(0x85)](),'end_on':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'timezone':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)]()});export const NotificationDefSchema=z[a149_0x358bbe(0x90)]({'notify_on':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x80),'onFailure']))[a149_0x358bbe(0x85)](),'email_recipients':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x7a)]())[a149_0x358bbe(0x85)]()});export const ActivationColumnDefSchema=z[a149_0x358bbe(0x8a)]([z[a149_0x358bbe(0x7a)](),z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)](),'type':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'visibility':z['enum']([a149_0x358bbe(0x7d),a149_0x358bbe(0x86)])[a149_0x358bbe(0x85)]()})]);function a149_0xb35a(_0x1bbd30,_0x106529){_0x1bbd30=_0x1bbd30-0x6f;const _0x46bf38=a149_0x46bf();let _0xb35a03=_0x46bf38[_0x1bbd30];return _0xb35a03;}function a149_0x46bf(){const _0x514195=['cron','string','First','Activation\x20name\x20is\x20required','clear','minutes_interval','weekly','onSuccess','day','hour','2341194RdXZOk','asc','optional','masked','All','record','minute','union','enum','min','number','cols','week','object','Connection\x20name\x20is\x20required','589834DfuuTj','nullable','836785NgnEXG','unknown','Top-N','Last','once','2928924LPEkJC','368172WZFUci','daily','5072628qmIfkY','month','none','boolean','array','7233877SXQwcz'];a149_0x46bf=function(){return _0x514195;};return a149_0x46bf();}export const ActivationBehaviorDefSchema=z[a149_0x358bbe(0x90)]({'columns':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)](),'type':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'visibility':z[a149_0x358bbe(0x8b)](['clear',a149_0x358bbe(0x86)])[a149_0x358bbe(0x85)]()}))[a149_0x358bbe(0x85)](),'behavior_table':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'join_row':z[a149_0x358bbe(0x8d)]()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'join_strategy':z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x87),a149_0x358bbe(0x7b),a149_0x358bbe(0x97),a149_0x358bbe(0x96)])[a149_0x358bbe(0x85)](),'formatting':z[a149_0x358bbe(0x8b)](['rows',a149_0x358bbe(0x8e)])['optional'](),'order_by':z['array'](z[a149_0x358bbe(0x90)]({'key':z[a149_0x358bbe(0x7a)](),'order':z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x84),'desc'])}))['optional']()});export const ActivationDefSchema=z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)]()['min'](0x1,a149_0x358bbe(0x7c)),'description':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'connection':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x8c)](0x1,a149_0x358bbe(0x91)),'all_columns':z[a149_0x358bbe(0x76)]()[a149_0x358bbe(0x85)](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a149_0x358bbe(0x85)](),'notification':NotificationDefSchema[a149_0x358bbe(0x85)](),'connector_config':z[a149_0x358bbe(0x88)](z['string'](),z[a149_0x358bbe(0x95)]())[a149_0x358bbe(0x85)](),'activation_template_id':z['string']()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'behavior':ActivationBehaviorDefSchema[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'run_after_journey_refresh':z['boolean']()['optional']()});
@@ -1 +1 @@
1
- function a150_0x1d3a(){var _0x3fb92e=['2428468IyILDG','1887888vUegHT','3062664owJfDd','1008555CGeGoX','12ebyUDL','1160NuxYnS','25595IsrsVT','60lQrlBg','1667470jxRvAA','8fckKVE'];a150_0x1d3a=function(){return _0x3fb92e;};return a150_0x1d3a();}function a150_0x669c(_0x2e637a,_0x201d37){_0x2e637a=_0x2e637a-0x174;var _0x1d3ab8=a150_0x1d3a();var _0x669c1d=_0x1d3ab8[_0x2e637a];return _0x669c1d;}(function(_0x53d66d,_0x12280a){var _0x3ba859=a150_0x669c,_0xfad24c=_0x53d66d();while(!![]){try{var _0x601d13=-parseInt(_0x3ba859(0x178))/0x1*(-parseInt(_0x3ba859(0x176))/0x2)+-parseInt(_0x3ba859(0x179))/0x3*(parseInt(_0x3ba859(0x177))/0x4)+parseInt(_0x3ba859(0x175))/0x5+-parseInt(_0x3ba859(0x17d))/0x6+parseInt(_0x3ba859(0x17c))/0x7+parseInt(_0x3ba859(0x17b))/0x8*(-parseInt(_0x3ba859(0x174))/0x9)+parseInt(_0x3ba859(0x17a))/0xa;if(_0x601d13===_0x12280a)break;else _0xfad24c['push'](_0xfad24c['shift']());}catch(_0x300b38){_0xfad24c['push'](_0xfad24c['shift']());}}}(a150_0x1d3a,0x32d50));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a150_0x2850(){var _0x5848a5=['10pTeIGt','4dLacsA','2193735TfKMdo','27993876SpzZsC','842YjUuCW','1956NuQGPk','288edoIPo','5382168PgPkaG','287539IAUwJu','11QADUyB','6037929afBCzA','3423963UNxMOB'];a150_0x2850=function(){return _0x5848a5;};return a150_0x2850();}(function(_0x558727,_0x33af70){var _0x5b4913=a150_0x1ec7,_0x1b2442=_0x558727();while(!![]){try{var _0x14a025=parseInt(_0x5b4913(0xe3))/0x1*(parseInt(_0x5b4913(0xe2))/0x2)+-parseInt(_0x5b4913(0xe9))/0x3*(parseInt(_0x5b4913(0xeb))/0x4)+parseInt(_0x5b4913(0xe0))/0x5+-parseInt(_0x5b4913(0xe5))/0x6+-parseInt(_0x5b4913(0xe6))/0x7*(parseInt(_0x5b4913(0xe4))/0x8)+-parseInt(_0x5b4913(0xe8))/0x9*(-parseInt(_0x5b4913(0xea))/0xa)+-parseInt(_0x5b4913(0xe7))/0xb*(-parseInt(_0x5b4913(0xe1))/0xc);if(_0x14a025===_0x33af70)break;else _0x1b2442['push'](_0x1b2442['shift']());}catch(_0x543020){_0x1b2442['push'](_0x1b2442['shift']());}}}(a150_0x2850,0xb6d06));function a150_0x1ec7(_0x46194a,_0x4ac454){_0x46194a=_0x46194a-0xe0;var _0x28507f=a150_0x2850();var _0x1ec7df=_0x28507f[_0x46194a];return _0x1ec7df;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a151_0x275238=a151_0x2af1;(function(_0x301e48,_0x5bf976){const _0x4a7a3e=a151_0x2af1,_0x794381=_0x301e48();while(!![]){try{const _0x15d8d8=parseInt(_0x4a7a3e(0x95))/0x1*(parseInt(_0x4a7a3e(0xb5))/0x2)+parseInt(_0x4a7a3e(0x96))/0x3*(-parseInt(_0x4a7a3e(0xb2))/0x4)+-parseInt(_0x4a7a3e(0x92))/0x5+-parseInt(_0x4a7a3e(0xb9))/0x6+-parseInt(_0x4a7a3e(0xa5))/0x7+parseInt(_0x4a7a3e(0xbb))/0x8+parseInt(_0x4a7a3e(0x9e))/0x9;if(_0x15d8d8===_0x5bf976)break;else _0x794381['push'](_0x794381['shift']());}catch(_0x2f43a9){_0x794381['push'](_0x794381['shift']());}}}(a151_0x5ce6,0xeabc4));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a151_0x275238(0x93),a151_0x275238(0xb4),a151_0x275238(0x9f)]);export const ReentryModeTypeSchema=z[a151_0x275238(0x9c)]([a151_0x275238(0x9d),a151_0x275238(0xa2),a151_0x275238(0xa1)]);export const WaitUnitTypeSchema=z[a151_0x275238(0x9c)]([a151_0x275238(0xaa),a151_0x275238(0x99)]);export const StepTypeValueSchema=z[a151_0x275238(0x9c)]([a151_0x275238(0xbc),a151_0x275238(0x9b),a151_0x275238(0xa8),'ab_test',a151_0x275238(0xbe),a151_0x275238(0x97),'end']);function a151_0x2af1(_0x3d0b4d,_0x5c9142){_0x3d0b4d=_0x3d0b4d-0x92;const _0x5ce678=a151_0x5ce6();let _0x2af115=_0x5ce678[_0x3d0b4d];return _0x2af115;}export const EmbeddedSegmentDefSchema=z[a151_0x275238(0xa4)]({'description':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a151_0x275238(0xa4)]({'journey':z['string'](),'stage':z[a151_0x275238(0xb8)](),'bundle_id':z['string']()['optional']()});export const CriteriaDefSchema=z['object']({'name':z['string'](),'description':z['string']()[a151_0x275238(0xa3)](),'segment':z[a151_0x275238(0xb8)](),'target':JumpTargetDefSchema[a151_0x275238(0xa3)]()});const WaitConditionTimeoutDefSchema=z[a151_0x275238(0xa4)]({'duration':z[a151_0x275238(0xab)](),'unit':WaitUnitTypeSchema,'next':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)]()}),WaitConditionDefSchema=z[a151_0x275238(0xa4)]({'segment':z[a151_0x275238(0xb8)](),'next':z['string']()[a151_0x275238(0xa3)](),'timeout':WaitConditionTimeoutDefSchema[a151_0x275238(0xa3)]()}),WaitStepParamsDefSchema=z[a151_0x275238(0xa4)]({'duration':z[a151_0x275238(0xab)]()[a151_0x275238(0xa3)](),'unit':WaitUnitTypeSchema[a151_0x275238(0xa3)](),'wait_until':z[a151_0x275238(0xb8)]()['optional'](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z['array'](z[a151_0x275238(0xb8)]())['optional']()}),StepBaseFields={'name':z[a151_0x275238(0xb8)](),'uuid':z['string']()['optional'](),'next':z['string']()[a151_0x275238(0xa3)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x275238(0xa6)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a151_0x275238(0xa4)]({'activation':z[a151_0x275238(0xb8)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x275238(0xa6)](a151_0x275238(0x9b)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x275238(0xa4)]({'name':z['string'](),'segment':z[a151_0x275238(0xb8)]()['optional'](),'segment_id':z['string']()[a151_0x275238(0xa3)](),'excluded':z[a151_0x275238(0xad)]()[a151_0x275238(0xa3)](),'next':z['string']()[a151_0x275238(0xa3)]()}),DecisionPointStepParamsDefSchema=z[a151_0x275238(0xa4)]({'branches':z[a151_0x275238(0x9a)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z['literal']('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x275238(0xa4)]({'id':z[a151_0x275238(0xb8)]()['optional'](),'name':z[a151_0x275238(0xb8)](),'percentage':z[a151_0x275238(0xab)](),'next':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a151_0x275238(0x9a)](AbTestVariantDefSchema),'unique_id':z[a151_0x275238(0xb8)]()['optional'](),'customized_split':z['boolean']()['optional']()}),AbTestStepDefSchema=z[a151_0x275238(0xa4)]({...StepBaseFields,'type':z[a151_0x275238(0xa6)](a151_0x275238(0x98)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a151_0x275238(0xa4)]({...StepBaseFields,'type':z['literal']('merge')}),JumpStepParamsDefSchema=z[a151_0x275238(0xa4)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z['literal']('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a151_0x275238(0xa4)]({...StepBaseFields,'type':z[a151_0x275238(0xa6)]('end')})[a151_0x275238(0xac)]();export const StepDefSchema=z[a151_0x275238(0xa7)](a151_0x275238(0xa9),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a151_0x275238(0xa4)]({'name':z['string'](),'description':z['string']()['optional'](),'id':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z['array'](CriteriaDefSchema)[a151_0x275238(0xa3)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'steps':z['array'](StepDefSchema)[a151_0x275238(0xa3)]()});export const JourneyEntryDefSchema=z[a151_0x275238(0xa4)]({'name':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'version':z['string']()[a151_0x275238(0xa3)](),'state':JourneyStateTypeSchema[a151_0x275238(0xa3)](),'latest':z[a151_0x275238(0xad)]()['optional'](),'stages':z[a151_0x275238(0x9a)](StageDefSchema),'id':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'version_number':z[a151_0x275238(0xab)]()[a151_0x275238(0xa3)](),'goal':CriteriaDefSchema[a151_0x275238(0xa3)](),'reentry':ReentryModeTypeSchema[a151_0x275238(0xa3)]()});export const JourneyDefSchema=z[a151_0x275238(0xb6)](()=>z[a151_0x275238(0xa4)]({'type':z[a151_0x275238(0xa6)](a151_0x275238(0xaf)),'name':z[a151_0x275238(0xb8)]()[a151_0x275238(0xae)](0x1,a151_0x275238(0xb3)),'description':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'bundle_id':z[a151_0x275238(0xb8)]()['optional'](),'bundle_name':z['string']()[a151_0x275238(0xa3)](),'folder_id':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a151_0x275238(0xad)]()[a151_0x275238(0xa3)](),'goal':CriteriaDefSchema['optional'](),'id':z[a151_0x275238(0xb8)]()['optional'](),'version':z[a151_0x275238(0xb8)]()[a151_0x275238(0xa3)](),'version_number':z[a151_0x275238(0xab)]()[a151_0x275238(0xa3)](),'stages':z['array'](StageDefSchema)[a151_0x275238(0xa3)](),'versions':z[a151_0x275238(0x9a)](JourneyEntryDefSchema)[a151_0x275238(0xa3)](),'journeys':z['array'](JourneyEntryDefSchema)[a151_0x275238(0xa3)](),'segments':z['record'](z['string'](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a151_0x275238(0xbd)](z[a151_0x275238(0xb8)](),ActivationDefSchema)[a151_0x275238(0xa3)]()})[a151_0x275238(0x94)](_0x4ce7c5=>{const _0x492852=a151_0x275238,_0x2cb38e=[_0x4ce7c5[_0x492852(0xb0)],_0x4ce7c5['stages'],_0x4ce7c5[_0x492852(0xb1)]][_0x492852(0xb7)](_0x2f53e4=>Array[_0x492852(0xa0)](_0x2f53e4)&&_0x2f53e4[_0x492852(0xba)]>0x0)[_0x492852(0xba)];return _0x2cb38e===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];function a151_0x5ce6(){const _0x291752=['literal','discriminatedUnion','decision_point','type','day','number','passthrough','boolean','min','journey','journeys','versions','3396jgWKWb','Journey\x20name\x20is\x20required','simulation','14292lBrawI','lazy','filter','string','3617334qszlhN','length','1257600tuhwcr','wait','record','merge','7649475tuoWhC','draft','refine','9Tivhrn','4407WYSTEM','jump','ab_test','week','array','activation','enum','no_reentry','46482984FpEwkW','launched','isArray','reentry_always','reentry_unless_goal_achieved','optional','object','7313943EYifKW'];a151_0x5ce6=function(){return _0x291752;};return a151_0x5ce6();}void _syncCheck1,void _syncCheck2;
1
+ const a151_0x3e8b47=a151_0x567f;(function(_0x6e20d1,_0x572b67){const _0x4e1dbb=a151_0x567f,_0x5d421a=_0x6e20d1();while(!![]){try{const _0x21bc86=-parseInt(_0x4e1dbb(0x1ad))/0x1*(-parseInt(_0x4e1dbb(0x1b0))/0x2)+-parseInt(_0x4e1dbb(0x1c7))/0x3+parseInt(_0x4e1dbb(0x1a3))/0x4*(-parseInt(_0x4e1dbb(0x1c3))/0x5)+-parseInt(_0x4e1dbb(0x19f))/0x6*(-parseInt(_0x4e1dbb(0x1c8))/0x7)+-parseInt(_0x4e1dbb(0x1b6))/0x8*(-parseInt(_0x4e1dbb(0x1be))/0x9)+-parseInt(_0x4e1dbb(0x1a2))/0xa*(parseInt(_0x4e1dbb(0x1c0))/0xb)+parseInt(_0x4e1dbb(0x1a7))/0xc;if(_0x21bc86===_0x572b67)break;else _0x5d421a['push'](_0x5d421a['shift']());}catch(_0x42461f){_0x5d421a['push'](_0x5d421a['shift']());}}}(a151_0x158a,0x6b47f));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a151_0x3e8b47(0x1c2),a151_0x3e8b47(0x1c1),a151_0x3e8b47(0x1b2)]);export const ReentryModeTypeSchema=z[a151_0x3e8b47(0x1a0)]([a151_0x3e8b47(0x1aa),'reentry_unless_goal_achieved',a151_0x3e8b47(0x1bc)]);export const WaitUnitTypeSchema=z[a151_0x3e8b47(0x1a0)]([a151_0x3e8b47(0x1ab),a151_0x3e8b47(0x1b9)]);export const StepTypeValueSchema=z['enum']([a151_0x3e8b47(0x1b4),a151_0x3e8b47(0x1ba),'decision_point',a151_0x3e8b47(0x1a5),a151_0x3e8b47(0x1ae),a151_0x3e8b47(0x1c6),a151_0x3e8b47(0x1b1)]);export const EmbeddedSegmentDefSchema=z[a151_0x3e8b47(0x1a1)]({'description':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a151_0x3e8b47(0x1c5)](),'stage':z['string'](),'bundle_id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()});function a151_0x567f(_0x236dd2,_0x1e8d45){_0x236dd2=_0x236dd2-0x19d;const _0x158a11=a151_0x158a();let _0x567fee=_0x158a11[_0x236dd2];return _0x567fee;}export const CriteriaDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z['string'](),'description':z[a151_0x3e8b47(0x1c5)]()['optional'](),'segment':z[a151_0x3e8b47(0x1c5)](),'target':JumpTargetDefSchema[a151_0x3e8b47(0x1a6)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a151_0x3e8b47(0x1b8)](),'unit':WaitUnitTypeSchema,'next':z[a151_0x3e8b47(0x1c5)]()['optional']()}),WaitConditionDefSchema=z[a151_0x3e8b47(0x1a1)]({'segment':z[a151_0x3e8b47(0x1c5)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'duration':z[a151_0x3e8b47(0x1b8)]()[a151_0x3e8b47(0x1a6)](),'unit':WaitUnitTypeSchema[a151_0x3e8b47(0x1a6)](),'wait_until':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a151_0x3e8b47(0x19d)](z['string']())[a151_0x3e8b47(0x1a6)]()}),StepBaseFields={'name':z[a151_0x3e8b47(0x1c5)](),'uuid':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()},WaitStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1b4)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'activation':z['string']()}),ActivationStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1ba)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z[a151_0x3e8b47(0x1c5)](),'segment':z[a151_0x3e8b47(0x1c5)]()['optional'](),'segment_id':z['string']()[a151_0x3e8b47(0x1a6)](),'excluded':z[a151_0x3e8b47(0x1bb)]()[a151_0x3e8b47(0x1a6)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1ac)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x3e8b47(0x1a1)]({'id':z['string']()[a151_0x3e8b47(0x1a6)](),'name':z['string'](),'percentage':z['number'](),'next':z['string']()[a151_0x3e8b47(0x1a6)]()}),AbTestStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'customized_split':z[a151_0x3e8b47(0x1bb)]()['optional']()}),AbTestStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1a5)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1ae))}),JumpStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1c6)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1b1))})[a151_0x3e8b47(0x19e)]();export const StepDefSchema=z['discriminatedUnion'](a151_0x3e8b47(0x1a8),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a151_0x3e8b47(0x1c5)](),'description':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'id':z['string']()[a151_0x3e8b47(0x1a6)](),'entry_criteria':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'exit_criteria':z[a151_0x3e8b47(0x19d)](CriteriaDefSchema)[a151_0x3e8b47(0x1a6)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'steps':z[a151_0x3e8b47(0x19d)](StepDefSchema)[a151_0x3e8b47(0x1a6)]()});export const JourneyEntryDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z['string']()[a151_0x3e8b47(0x1a6)](),'version':z[a151_0x3e8b47(0x1c5)]()['optional'](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a151_0x3e8b47(0x1bb)]()[a151_0x3e8b47(0x1a6)](),'stages':z['array'](StageDefSchema),'id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'version_number':z['number']()[a151_0x3e8b47(0x1a6)](),'goal':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'reentry':ReentryModeTypeSchema[a151_0x3e8b47(0x1a6)]()});export const JourneyDefSchema=z[a151_0x3e8b47(0x1a4)](()=>z['object']({'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1a9)),'name':z[a151_0x3e8b47(0x1c5)]()['min'](0x1,a151_0x3e8b47(0x1ca)),'description':z[a151_0x3e8b47(0x1c5)]()['optional'](),'bundle_id':z['string']()[a151_0x3e8b47(0x1a6)](),'bundle_name':z['string']()[a151_0x3e8b47(0x1a6)](),'folder_id':z['string']()['optional'](),'reentry':ReentryModeTypeSchema[a151_0x3e8b47(0x1a6)](),'allow_reentry':z['boolean']()[a151_0x3e8b47(0x1a6)](),'goal':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'version':z[a151_0x3e8b47(0x1c5)]()['optional'](),'version_number':z[a151_0x3e8b47(0x1b8)]()[a151_0x3e8b47(0x1a6)](),'stages':z['array'](StageDefSchema)[a151_0x3e8b47(0x1a6)](),'versions':z[a151_0x3e8b47(0x19d)](JourneyEntryDefSchema)[a151_0x3e8b47(0x1a6)](),'journeys':z['array'](JourneyEntryDefSchema)[a151_0x3e8b47(0x1a6)](),'segments':z[a151_0x3e8b47(0x1b3)](z[a151_0x3e8b47(0x1c5)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a151_0x3e8b47(0x1b3)](z[a151_0x3e8b47(0x1c5)](),ActivationDefSchema)[a151_0x3e8b47(0x1a6)]()})[a151_0x3e8b47(0x1bd)](_0x191c68=>{const _0x40b6a6=a151_0x3e8b47,_0x2e047f=[_0x191c68['journeys'],_0x191c68[_0x40b6a6(0x1c9)],_0x191c68['versions']][_0x40b6a6(0x1af)](_0x337c36=>Array[_0x40b6a6(0x1b7)](_0x337c36)&&_0x337c36[_0x40b6a6(0x1b5)]>0x0)[_0x40b6a6(0x1b5)];return _0x2e047f===0x1;},{'message':a151_0x3e8b47(0x1c4)}));const _syncCheck1=!![],_syncCheck2=!![];function a151_0x158a(){const _0x82826=['4981944jTdOrY','type','journey','no_reentry','day','decision_point','1597oqiMSx','merge','filter','4KObvYX','end','launched','record','wait','length','191408xVtCAx','isArray','number','week','activation','boolean','reentry_always','refine','162zwtOHU','literal','11epvNQr','simulation','draft','5EMvwUO','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','string','jump','543669qUUjKA','364bQlGlr','stages','Journey\x20name\x20is\x20required','array','passthrough','63402lWCbEt','enum','object','1061210rSOgMw','2686964ZNLRdA','lazy','ab_test','optional'];a151_0x158a=function(){return _0x82826;};return a151_0x158a();}void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x4eba25,_0x3fa3e7){var _0x50571f=a153_0x4bf1,_0x24866a=_0x4eba25();while(!![]){try{var _0x207662=parseInt(_0x50571f(0x1cf))/0x1+-parseInt(_0x50571f(0x1d4))/0x2+parseInt(_0x50571f(0x1d0))/0x3*(-parseInt(_0x50571f(0x1d2))/0x4)+-parseInt(_0x50571f(0x1d5))/0x5+-parseInt(_0x50571f(0x1d3))/0x6*(-parseInt(_0x50571f(0x1d1))/0x7)+parseInt(_0x50571f(0x1cd))/0x8+-parseInt(_0x50571f(0x1d6))/0x9*(-parseInt(_0x50571f(0x1ce))/0xa);if(_0x207662===_0x3fa3e7)break;else _0x24866a['push'](_0x24866a['shift']());}catch(_0x145db3){_0x24866a['push'](_0x24866a['shift']());}}}(a153_0x56aa,0x64cb6));function a153_0x56aa(){var _0x3fd6c4=['5646lDTQGn','1636534KGRynz','910515EhLZEA','4227219wsnJES','2846976QwnUnj','10REDqbc','560580vGNMkY','6fhQyxQ','5873LvcsCo','1524836hRuToO'];a153_0x56aa=function(){return _0x3fd6c4;};return a153_0x56aa();}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x4bf1(_0xe32839,_0x12f910){_0xe32839=_0xe32839-0x1cd;var _0x56aa86=a153_0x56aa();var _0x4bf11e=_0x56aa86[_0xe32839];return _0x4bf11e;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ (function(_0x263325,_0x5bbed5){var _0x5c4e0c=a153_0x23e0,_0x2a6aac=_0x263325();while(!![]){try{var _0x3f7e6b=-parseInt(_0x5c4e0c(0x167))/0x1+parseInt(_0x5c4e0c(0x16c))/0x2*(-parseInt(_0x5c4e0c(0x16e))/0x3)+parseInt(_0x5c4e0c(0x169))/0x4+parseInt(_0x5c4e0c(0x166))/0x5*(-parseInt(_0x5c4e0c(0x16f))/0x6)+-parseInt(_0x5c4e0c(0x16b))/0x7+parseInt(_0x5c4e0c(0x16a))/0x8*(parseInt(_0x5c4e0c(0x16d))/0x9)+parseInt(_0x5c4e0c(0x168))/0xa;if(_0x3f7e6b===_0x5bbed5)break;else _0x2a6aac['push'](_0x2a6aac['shift']());}catch(_0x198ea9){_0x2a6aac['push'](_0x2a6aac['shift']());}}}(a153_0x23e1,0xdb3a0));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x23e0(_0x1864aa,_0x12b7f9){_0x1864aa=_0x1864aa-0x166;var _0x23e1f3=a153_0x23e1();var _0x23e0b7=_0x23e1f3[_0x1864aa];return _0x23e0b7;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a153_0x23e1(){var _0x5bd118=['7869911jhErbB','666zAjtMn','45FIaGBU','15027BAalvX','6778698HCzZFm','5KoQWTc','111613wDNAEQ','39219680ZExKuh','2811860jUJVgN','490696eXigcH'];a153_0x23e1=function(){return _0x5bd118;};return a153_0x23e1();}
@@ -1 +1 @@
1
- const a154_0x2e54c2=a154_0x1962;(function(_0x1f34d7,_0x206ce3){const _0x1a0513=a154_0x1962,_0x406db0=_0x1f34d7();while(!![]){try{const _0x461900=-parseInt(_0x1a0513(0x22c))/0x1+parseInt(_0x1a0513(0x217))/0x2*(-parseInt(_0x1a0513(0x21d))/0x3)+parseInt(_0x1a0513(0x218))/0x4*(-parseInt(_0x1a0513(0x227))/0x5)+parseInt(_0x1a0513(0x241))/0x6*(-parseInt(_0x1a0513(0x1f5))/0x7)+-parseInt(_0x1a0513(0x20d))/0x8*(parseInt(_0x1a0513(0x228))/0x9)+parseInt(_0x1a0513(0x238))/0xa*(parseInt(_0x1a0513(0x20c))/0xb)+parseInt(_0x1a0513(0x232))/0xc*(parseInt(_0x1a0513(0x219))/0xd);if(_0x461900===_0x206ce3)break;else _0x406db0['push'](_0x406db0['shift']());}catch(_0x41cd2a){_0x406db0['push'](_0x406db0['shift']());}}}(a154_0x29b8,0xc75cf));import{z}from'zod';export const OperatorTypeSchema=z[a154_0x2e54c2(0x22f)]([a154_0x2e54c2(0x213),a154_0x2e54c2(0x206),a154_0x2e54c2(0x1ff),a154_0x2e54c2(0x208),a154_0x2e54c2(0x242),'In',a154_0x2e54c2(0x234),a154_0x2e54c2(0x211),a154_0x2e54c2(0x205),'TimeWithinPast','TimeWithinNext',a154_0x2e54c2(0x220),'StartWith',a154_0x2e54c2(0x1fd),a154_0x2e54c2(0x21f)]);export const TimeUnitSchema=z['enum']([a154_0x2e54c2(0x237),'minute',a154_0x2e54c2(0x222),'day',a154_0x2e54c2(0x22a),a154_0x2e54c2(0x1f6),a154_0x2e54c2(0x20f)]);export const AggregationTypeSchema=z['enum']([a154_0x2e54c2(0x223),a154_0x2e54c2(0x23c),a154_0x2e54c2(0x202),a154_0x2e54c2(0x214),'Max',a154_0x2e54c2(0x20b),a154_0x2e54c2(0x204),'Last']);const TemporalValueSchema=z[a154_0x2e54c2(0x210)]([z[a154_0x2e54c2(0x1f4)]({'timestamp':z[a154_0x2e54c2(0x231)]()}),z[a154_0x2e54c2(0x1f4)]({'last':z[a154_0x2e54c2(0x210)]([z[a154_0x2e54c2(0x225)](),z['record'](z[a154_0x2e54c2(0x231)](),z[a154_0x2e54c2(0x225)]())]),'unit':z[a154_0x2e54c2(0x231)]()})]),OperatorValueSchema=z[a154_0x2e54c2(0x210)]([z[a154_0x2e54c2(0x231)](),z['number'](),z[a154_0x2e54c2(0x23d)](),TemporalValueSchema,z[a154_0x2e54c2(0x235)](z['union']([z[a154_0x2e54c2(0x231)](),z[a154_0x2e54c2(0x225)](),z[a154_0x2e54c2(0x23d)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a154_0x2e54c2(0x213),a154_0x2e54c2(0x206),a154_0x2e54c2(0x208),a154_0x2e54c2(0x1ff),a154_0x2e54c2(0x242),'In',a154_0x2e54c2(0x220),'StartWith',a154_0x2e54c2(0x1fd),a154_0x2e54c2(0x211),a154_0x2e54c2(0x1fa),a154_0x2e54c2(0x1fe)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a154_0x2e54c2(0x1fe)]);export const OperatorDefSchema=z[a154_0x2e54c2(0x1f4)]({'type':OperatorTypeSchema,'not':z['boolean']()[a154_0x2e54c2(0x1f9)](),'value':OperatorValueSchema[a154_0x2e54c2(0x1f9)](),'min':z['union']([z[a154_0x2e54c2(0x225)](),z[a154_0x2e54c2(0x231)](),TemporalValueSchema])[a154_0x2e54c2(0x1f9)](),'max':z[a154_0x2e54c2(0x210)]([z[a154_0x2e54c2(0x225)](),z[a154_0x2e54c2(0x231)](),TemporalValueSchema])[a154_0x2e54c2(0x1f9)](),'unit':TimeUnitSchema[a154_0x2e54c2(0x1f9)](),'duration':z[a154_0x2e54c2(0x1f4)]({'day':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)](),'week':z[a154_0x2e54c2(0x225)]()['optional'](),'month':z['number']()[a154_0x2e54c2(0x1f9)](),'year':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)](),'hour':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)](),'minute':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)](),'second':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)]()})['optional'](),'from':z[a154_0x2e54c2(0x1f4)]({'last':z[a154_0x2e54c2(0x210)]([z[a154_0x2e54c2(0x225)](),z['string']()]),'unit':TimeUnitSchema})[a154_0x2e54c2(0x1f9)](),'reverse':z[a154_0x2e54c2(0x23d)]()['optional']()})[a154_0x2e54c2(0x1fc)]((_0x51396d,_0x38ff9b)=>{const _0x28f8a0=a154_0x2e54c2;OPERATORS_REQUIRING_VALUE['has'](_0x51396d['type'])&&(_0x51396d[_0x28f8a0(0x23b)]===undefined||_0x51396d['value']===null)&&_0x38ff9b[_0x28f8a0(0x209)]({'code':_0x28f8a0(0x240),'message':'Operator\x20\x27'+_0x51396d[_0x28f8a0(0x23f)]+_0x28f8a0(0x216),'path':[_0x28f8a0(0x23b)]}),_0x51396d[_0x28f8a0(0x23f)]===_0x28f8a0(0x234)&&_0x51396d[_0x28f8a0(0x23a)]===undefined&&_0x51396d['max']===undefined&&_0x38ff9b['addIssue']({'code':'custom','message':_0x28f8a0(0x1f8),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT['has'](_0x51396d[_0x28f8a0(0x23f)])&&_0x51396d['value']!==undefined&&!_0x51396d[_0x28f8a0(0x226)]&&_0x38ff9b[_0x28f8a0(0x209)]({'code':_0x28f8a0(0x240),'message':_0x28f8a0(0x21a)+_0x51396d[_0x28f8a0(0x23f)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x28f8a0(0x226)],'params':{'validationCode':_0x28f8a0(0x23e)}}),_0x51396d[_0x28f8a0(0x23f)]==='TimeRange'&&(!_0x51396d['duration']&&_0x38ff9b[_0x28f8a0(0x209)]({'code':_0x28f8a0(0x240),'message':_0x28f8a0(0x22d),'path':[_0x28f8a0(0x207)]}),!_0x51396d[_0x28f8a0(0x230)]&&_0x38ff9b['addIssue']({'code':_0x28f8a0(0x240),'message':_0x28f8a0(0x215),'path':[_0x28f8a0(0x230)]}));});export const ArrayMatchingSchema=z[a154_0x2e54c2(0x210)]([z[a154_0x2e54c2(0x239)]('any'),z[a154_0x2e54c2(0x239)](a154_0x2e54c2(0x221)),z[a154_0x2e54c2(0x1f4)]({'atLeast':z[a154_0x2e54c2(0x225)]()}),z[a154_0x2e54c2(0x1f4)]({'atMost':z['number']()}),z[a154_0x2e54c2(0x1f4)]({'exactly':z[a154_0x2e54c2(0x225)]()})]);export const AggregationDefSchema=z['discriminatedUnion'](a154_0x2e54c2(0x23f),[z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x22f)](['Sum',a154_0x2e54c2(0x214),a154_0x2e54c2(0x203),a154_0x2e54c2(0x202)]),'column':z[a154_0x2e54c2(0x231)](),'groupingColumns':z[a154_0x2e54c2(0x235)](z[a154_0x2e54c2(0x231)]())[a154_0x2e54c2(0x1f9)]()}),z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)](a154_0x2e54c2(0x223)),'groupingColumns':z[a154_0x2e54c2(0x235)](z[a154_0x2e54c2(0x231)]())['optional']()}),z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)](a154_0x2e54c2(0x20b)),'columns':z[a154_0x2e54c2(0x235)](z[a154_0x2e54c2(0x231)]())}),z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x22f)]([a154_0x2e54c2(0x204),a154_0x2e54c2(0x20a)]),'column':z[a154_0x2e54c2(0x231)](),'orderColumn':z[a154_0x2e54c2(0x231)](),'groupingColumns':z[a154_0x2e54c2(0x235)](z[a154_0x2e54c2(0x231)]())[a154_0x2e54c2(0x1f9)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x2e54c2(0x1fa),'TimeWithinNext','TimeRange']);export const FilterColumnConditionDefSchema=z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)](a154_0x2e54c2(0x22b)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x2e54c2(0x1f9)]()})[a154_0x2e54c2(0x1fc)]((_0x2d2b67,_0x586c19)=>{const _0x303d31=a154_0x2e54c2,_0x37d1cb=_0x2d2b67[_0x303d31(0x236)][_0x303d31(0x23f)];_0x2d2b67['column']==='timestamp'?!TIMESTAMP_OPERATORS[_0x303d31(0x21e)](_0x37d1cb)&&_0x586c19[_0x303d31(0x209)]({'code':_0x303d31(0x240),'message':_0x303d31(0x233)+_0x37d1cb+'\x27)','path':[_0x303d31(0x236),_0x303d31(0x23f)]}):TIMESTAMP_OPERATORS['has'](_0x37d1cb)&&_0x586c19[_0x303d31(0x209)]({'code':_0x303d31(0x240),'message':'Operator\x20\x27'+_0x37d1cb+_0x303d31(0x1fb),'path':['operator','type']});});export const FilterRuleDefSchema=z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)](a154_0x2e54c2(0x20e)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a154_0x2e54c2(0x224)](()=>z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)]('Value'),'attribute':z[a154_0x2e54c2(0x231)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x2e54c2(0x1f9)](),'exclude':z[a154_0x2e54c2(0x23d)]()[a154_0x2e54c2(0x1f9)](),'aggregation':AggregationDefSchema[a154_0x2e54c2(0x1f9)](),'source':z[a154_0x2e54c2(0x231)]()['optional'](),'filter':FilterRuleDefSchema[a154_0x2e54c2(0x1f9)](),'limit':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)]()}));export const BehaviorConditionDefSchema=z[a154_0x2e54c2(0x224)](()=>z[a154_0x2e54c2(0x1f4)]({'type':z['literal'](a154_0x2e54c2(0x21b)),'attribute':z[a154_0x2e54c2(0x231)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x2e54c2(0x1f9)](),'exclude':z[a154_0x2e54c2(0x23d)]()['optional'](),'aggregation':AggregationDefSchema[a154_0x2e54c2(0x1f9)](),'source':z[a154_0x2e54c2(0x231)]()['optional'](),'filter':FilterRuleDefSchema[a154_0x2e54c2(0x1f9)](),'timeWindow':TimeWindowDefSchema[a154_0x2e54c2(0x1f9)](),'limit':z[a154_0x2e54c2(0x225)]()[a154_0x2e54c2(0x1f9)]()}));export const ColumnConditionDefSchema=z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)]('Column'),'column':z[a154_0x2e54c2(0x231)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a154_0x2e54c2(0x224)](()=>z[a154_0x2e54c2(0x1f4)]({'type':z['enum']([a154_0x2e54c2(0x20e),'Or']),'conditions':z[a154_0x2e54c2(0x235)](ConditionDefSchema),'description':z[a154_0x2e54c2(0x231)]()['optional']()}));function a154_0x1962(_0x4a77da,_0x1d98a9){_0x4a77da=_0x4a77da-0x1f4;const _0x29b8ea=a154_0x29b8();let _0x19628f=_0x29b8ea[_0x4a77da];return _0x19628f;}function a154_0x29b8(){const _0x3c85cd=['TimeRange\x20operator\x20requires\x20\x27duration\x27','Segment\x20name\x20is\x20required','enum','from','string','1795008QBsAEF','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Between','array','operator','second','830CyZGSQ','literal','min','value','Sum','boolean','MISSING_TIME_UNIT','type','custom','1028634NMFIrY','LessEqual','object','28OqXsVQ','month','batch','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','optional','TimeWithinPast','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','superRefine','EndWith','TimeWithinNext','Less','exclude','include','Average','Max','First','IsNull','Greater','duration','GreaterEqual','addIssue','Last','CountDistinct','126225WxGpcV','544oVsvHZ','And','year','union','Regexp','realtime','Equal','Min','TimeRange\x20operator\x20requires\x20\x27from\x27','\x27\x20requires\x20a\x20value','2420cBsFTd','17068bAFeaS','286gnfhxU','Operator\x20\x27','Behavior','segment','2952PYipbj','has','TimeRange','Contain','all','hour','Count','lazy','number','unit','65gZlSUK','72639BVVGhq','funnel_stage','week','Column','945987nXQyDS'];a154_0x29b8=function(){return _0x3c85cd;};return a154_0x29b8();}export const SegmentRefConditionDefSchema=z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x22f)]([a154_0x2e54c2(0x201),a154_0x2e54c2(0x200)]),'segment':z[a154_0x2e54c2(0x231)]()[a154_0x2e54c2(0x23a)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a154_0x2e54c2(0x224)](()=>z[a154_0x2e54c2(0x210)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a154_0x2e54c2(0x224)](()=>z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x22f)]([a154_0x2e54c2(0x20e),'Or']),'conditions':z[a154_0x2e54c2(0x235)](ConditionDefSchema),'description':z[a154_0x2e54c2(0x231)]()['optional']()}));export const SegmentDefSchema=z[a154_0x2e54c2(0x1f4)]({'type':z[a154_0x2e54c2(0x239)](a154_0x2e54c2(0x21c))[a154_0x2e54c2(0x1f9)](),'name':z[a154_0x2e54c2(0x231)]()['min'](0x1,a154_0x2e54c2(0x22e)),'description':z[a154_0x2e54c2(0x231)]()[a154_0x2e54c2(0x1f9)](),'folder':z[a154_0x2e54c2(0x231)]()[a154_0x2e54c2(0x1f9)](),'rule':RuleDefSchema[a154_0x2e54c2(0x1f9)](),'kind':z['enum']([a154_0x2e54c2(0x1f7),a154_0x2e54c2(0x212),a154_0x2e54c2(0x229)])[a154_0x2e54c2(0x1f9)](),'visible':z[a154_0x2e54c2(0x23d)]()[a154_0x2e54c2(0x1f9)](),'activations':z[a154_0x2e54c2(0x235)](z['any']())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a154_0x48a438=a154_0x5d65;(function(_0x18a3fe,_0x3ff2aa){const _0x5477c5=a154_0x5d65,_0xb9b1d=_0x18a3fe();while(!![]){try{const _0x1de1ca=parseInt(_0x5477c5(0x201))/0x1*(parseInt(_0x5477c5(0x205))/0x2)+parseInt(_0x5477c5(0x1e5))/0x3*(-parseInt(_0x5477c5(0x1e1))/0x4)+parseInt(_0x5477c5(0x1f3))/0x5+parseInt(_0x5477c5(0x211))/0x6+parseInt(_0x5477c5(0x1df))/0x7*(parseInt(_0x5477c5(0x1f4))/0x8)+parseInt(_0x5477c5(0x217))/0x9+-parseInt(_0x5477c5(0x202))/0xa*(parseInt(_0x5477c5(0x1ea))/0xb);if(_0x1de1ca===_0x3ff2aa)break;else _0xb9b1d['push'](_0xb9b1d['shift']());}catch(_0x544c85){_0xb9b1d['push'](_0xb9b1d['shift']());}}}(a154_0x3726,0x9a047));function a154_0x3726(){const _0x29f83d=['5057085EnNxae','9247032JgVsmg','realtime','lazy','segment','TimeRange\x20operator\x20requires\x20\x27duration\x27','operator','duration','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','TimeRange','Segment\x20name\x20is\x20required','union','hour','addIssue','1VUIvdo','5674210DozLHy','First','Sum','911158uJnUZL','Count','TimeWithinNext','Between','literal','Column','superRefine','object','record','enum','CountDistinct','And','6516168CqrZSl','Greater','\x27\x20requires\x20a\x20time\x20unit','any','Max','unit','1353708QgWKow','month','boolean','type','include','value','Contain','week','StartWith','Less','TimeWithinPast','EndWith','min','year','has','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','day','string','Segment\x20reference\x20must\x20not\x20be\x20empty','timestamp','7YtQehr','funnel_stage','147504xRZNWb','GreaterEqual','Regexp','Operator\x20\x27','78bEqeSK','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','LessEqual','from','Min','44tictFt','Average','array','batch','second','optional','Last','custom','number'];a154_0x3726=function(){return _0x29f83d;};return a154_0x3726();}import{z}from'zod';export const OperatorTypeSchema=z[a154_0x48a438(0x20e)](['Equal',a154_0x48a438(0x212),a154_0x48a438(0x220),a154_0x48a438(0x1e2),'LessEqual','In',a154_0x48a438(0x208),a154_0x48a438(0x1e3),'IsNull','TimeWithinPast','TimeWithinNext',a154_0x48a438(0x21d),'StartWith',a154_0x48a438(0x222),a154_0x48a438(0x1fc)]);export const TimeUnitSchema=z['enum']([a154_0x48a438(0x1ee),'minute',a154_0x48a438(0x1ff),a154_0x48a438(0x1db),a154_0x48a438(0x21e),a154_0x48a438(0x218),a154_0x48a438(0x1d8)]);export const AggregationTypeSchema=z[a154_0x48a438(0x20e)](['Count',a154_0x48a438(0x204),a154_0x48a438(0x1eb),'Min',a154_0x48a438(0x215),a154_0x48a438(0x20f),a154_0x48a438(0x203),a154_0x48a438(0x1f0)]);const TemporalValueSchema=z['union']([z[a154_0x48a438(0x20c)]({'timestamp':z[a154_0x48a438(0x1dc)]()}),z[a154_0x48a438(0x20c)]({'last':z['union']([z['number'](),z[a154_0x48a438(0x20d)](z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)]())]),'unit':z['string']()})]),OperatorValueSchema=z['union']([z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x219)](),TemporalValueSchema,z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x219)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a154_0x48a438(0x212),'GreaterEqual',a154_0x48a438(0x220),a154_0x48a438(0x1e7),'In','Contain',a154_0x48a438(0x21f),a154_0x48a438(0x222),a154_0x48a438(0x1e3),a154_0x48a438(0x221),a154_0x48a438(0x207)]),OPERATORS_REQUIRING_UNIT=new Set([a154_0x48a438(0x221),a154_0x48a438(0x207)]);export const OperatorDefSchema=z[a154_0x48a438(0x20c)]({'type':OperatorTypeSchema,'not':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)](),'value':OperatorValueSchema[a154_0x48a438(0x1ef)](),'min':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)](),TemporalValueSchema])[a154_0x48a438(0x1ef)](),'max':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)](),TemporalValueSchema])[a154_0x48a438(0x1ef)](),'unit':TimeUnitSchema[a154_0x48a438(0x1ef)](),'duration':z['object']({'day':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)](),'week':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)](),'month':z['number']()[a154_0x48a438(0x1ef)](),'year':z[a154_0x48a438(0x1f2)]()['optional'](),'hour':z['number']()['optional'](),'minute':z['number']()['optional'](),'second':z[a154_0x48a438(0x1f2)]()['optional']()})['optional'](),'from':z['object']({'last':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)]()]),'unit':TimeUnitSchema})[a154_0x48a438(0x1ef)](),'reverse':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)]()})[a154_0x48a438(0x20b)]((_0x12495b,_0x3ae63c)=>{const _0x5a5684=a154_0x48a438;OPERATORS_REQUIRING_VALUE[_0x5a5684(0x1d9)](_0x12495b[_0x5a5684(0x21a)])&&(_0x12495b[_0x5a5684(0x21c)]===undefined||_0x12495b[_0x5a5684(0x21c)]===null)&&_0x3ae63c[_0x5a5684(0x200)]({'code':'custom','message':_0x5a5684(0x1e4)+_0x12495b['type']+'\x27\x20requires\x20a\x20value','path':[_0x5a5684(0x21c)]}),_0x12495b[_0x5a5684(0x21a)]==='Between'&&_0x12495b[_0x5a5684(0x1d7)]===undefined&&_0x12495b['max']===undefined&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':_0x5a5684(0x1e6),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x5a5684(0x1d9)](_0x12495b['type'])&&_0x12495b[_0x5a5684(0x21c)]!==undefined&&!_0x12495b[_0x5a5684(0x216)]&&_0x3ae63c['addIssue']({'code':_0x5a5684(0x1f1),'message':'Operator\x20\x27'+_0x12495b['type']+_0x5a5684(0x213),'path':[_0x5a5684(0x216)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x12495b[_0x5a5684(0x21a)]===_0x5a5684(0x1fc)&&(!_0x12495b[_0x5a5684(0x1fa)]&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':_0x5a5684(0x1f8),'path':[_0x5a5684(0x1fa)]}),!_0x12495b[_0x5a5684(0x1e8)]&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x5a5684(0x1e8)]}));});export const ArrayMatchingSchema=z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x209)](a154_0x48a438(0x214)),z[a154_0x48a438(0x209)]('all'),z[a154_0x48a438(0x20c)]({'atLeast':z[a154_0x48a438(0x1f2)]()}),z['object']({'atMost':z[a154_0x48a438(0x1f2)]()}),z[a154_0x48a438(0x20c)]({'exactly':z[a154_0x48a438(0x1f2)]()})]);export const AggregationDefSchema=z['discriminatedUnion']('type',[z['object']({'type':z[a154_0x48a438(0x20e)](['Sum',a154_0x48a438(0x1e9),a154_0x48a438(0x215),'Average']),'column':z['string'](),'groupingColumns':z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1dc)]())['optional']()}),z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x206)),'groupingColumns':z[a154_0x48a438(0x1ec)](z['string']())[a154_0x48a438(0x1ef)]()}),z[a154_0x48a438(0x20c)]({'type':z['literal']('CountDistinct'),'columns':z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1dc)]())}),z['object']({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x203),'Last']),'column':z[a154_0x48a438(0x1dc)](),'orderColumn':z[a154_0x48a438(0x1dc)](),'groupingColumns':z[a154_0x48a438(0x1ec)](z['string']())[a154_0x48a438(0x1ef)]()})]);export const TimeWindowDefSchema=z[a154_0x48a438(0x20c)]({'duration':z[a154_0x48a438(0x1f2)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x48a438(0x221),a154_0x48a438(0x207),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x20a)),'column':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)]()})[a154_0x48a438(0x20b)]((_0x78629f,_0x2b9a02)=>{const _0x2afb63=a154_0x48a438,_0x967485=_0x78629f['operator']['type'];_0x78629f['column']===_0x2afb63(0x1de)?!TIMESTAMP_OPERATORS[_0x2afb63(0x1d9)](_0x967485)&&_0x2b9a02[_0x2afb63(0x200)]({'code':_0x2afb63(0x1f1),'message':_0x2afb63(0x1fb)+_0x967485+'\x27)','path':['operator',_0x2afb63(0x21a)]}):TIMESTAMP_OPERATORS[_0x2afb63(0x1d9)](_0x967485)&&_0x2b9a02[_0x2afb63(0x200)]({'code':_0x2afb63(0x1f1),'message':_0x2afb63(0x1e4)+_0x967485+_0x2afb63(0x1da),'path':[_0x2afb63(0x1f9),_0x2afb63(0x21a)]});});export const FilterRuleDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x210)),'conditions':z[a154_0x48a438(0x1ec)](FilterColumnConditionDefSchema)});function a154_0x5d65(_0x193daa,_0x579ff9){_0x193daa=_0x193daa-0x1d7;const _0x372625=a154_0x3726();let _0x5d65d2=_0x372625[_0x193daa];return _0x5d65d2;}export const ValueConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z[a154_0x48a438(0x20c)]({'type':z['literal']('Value'),'attribute':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)](),'exclude':z[a154_0x48a438(0x219)]()['optional'](),'aggregation':AggregationDefSchema[a154_0x48a438(0x1ef)](),'source':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)](),'filter':FilterRuleDefSchema[a154_0x48a438(0x1ef)](),'limit':z['number']()[a154_0x48a438(0x1ef)]()}));export const BehaviorConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z['object']({'type':z[a154_0x48a438(0x209)]('Behavior'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)](),'exclude':z['boolean']()[a154_0x48a438(0x1ef)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)](),'filter':FilterRuleDefSchema[a154_0x48a438(0x1ef)](),'timeWindow':TimeWindowDefSchema[a154_0x48a438(0x1ef)](),'limit':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)]()}));export const ColumnConditionDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x20a)),'column':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z['object']({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x210),'Or']),'conditions':z[a154_0x48a438(0x1ec)](ConditionDefSchema),'description':z['string']()[a154_0x48a438(0x1ef)]()}));export const SegmentRefConditionDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x21b),'exclude']),'segment':z['string']()['min'](0x1,a154_0x48a438(0x1dd))});export const ConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z[a154_0x48a438(0x1fe)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a154_0x48a438(0x210),'Or']),'conditions':z[a154_0x48a438(0x1ec)](ConditionDefSchema),'description':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)]()}));export const SegmentDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x1f7))[a154_0x48a438(0x1ef)](),'name':z['string']()['min'](0x1,a154_0x48a438(0x1fd)),'description':z['string']()['optional'](),'folder':z[a154_0x48a438(0x1dc)]()['optional'](),'rule':RuleDefSchema[a154_0x48a438(0x1ef)](),'kind':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x1ed),a154_0x48a438(0x1f5),a154_0x48a438(0x1e0)])[a154_0x48a438(0x1ef)](),'visible':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)](),'activations':z['array'](z['any']())[a154_0x48a438(0x1ef)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a155_0x44a797=a155_0x3eae;(function(_0x361d86,_0x15bf5c){const _0x8c954b=a155_0x3eae,_0x53136d=_0x361d86();while(!![]){try{const _0x1136f1=-parseInt(_0x8c954b(0x14f))/0x1+-parseInt(_0x8c954b(0x139))/0x2+-parseInt(_0x8c954b(0x14c))/0x3+-parseInt(_0x8c954b(0x15b))/0x4*(-parseInt(_0x8c954b(0x142))/0x5)+-parseInt(_0x8c954b(0x14b))/0x6+-parseInt(_0x8c954b(0x14d))/0x7+parseInt(_0x8c954b(0x154))/0x8*(parseInt(_0x8c954b(0x13e))/0x9);if(_0x1136f1===_0x15bf5c)break;else _0x53136d['push'](_0x53136d['shift']());}catch(_0x2d3dde){_0x53136d['push'](_0x53136d['shift']());}}}(a155_0x3cfe,0x38c38));import{readFileSync}from'fs';import*as a155_0x1452f8 from'path';import*as a155_0x456f3 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([a155_0x44a797(0x13c),a155_0x44a797(0x15a)]);export function isJourneyDef(_0x3b105c){const _0x1a86e7=a155_0x44a797;return typeof _0x3b105c===_0x1a86e7(0x152)&&_0x3b105c!==null&&_0x1a86e7(0x13b)in _0x3b105c&&_0x3b105c[_0x1a86e7(0x13b)]===_0x1a86e7(0x146);}export function isCampaignDef(_0x2d8304){const _0x9314ca=a155_0x44a797;if(typeof _0x2d8304!==_0x9314ca(0x152)||_0x2d8304===null)return![];const _0x2a941f=_0x2d8304,_0x5ab98d=VALID_CAMPAIGN_TYPES[_0x9314ca(0x141)](_0x2a941f[_0x9314ca(0x150)]);if(_0x2a941f[_0x9314ca(0x13b)]===_0x9314ca(0x156)&&_0x5ab98d)return!![];if(_0x5ab98d&&!_0x2a941f[_0x9314ca(0x13b)])return!![];return![];}export function isTemplateDef(_0x572693){const _0x2c42a4=a155_0x44a797;return typeof _0x572693==='object'&&_0x572693!==null&&_0x2c42a4(0x13b)in _0x572693&&_0x572693[_0x2c42a4(0x13b)]===_0x2c42a4(0x159);}function a155_0x3eae(_0x43cb28,_0x54f315){_0x43cb28=_0x43cb28-0x138;const _0x3cfee6=a155_0x3cfe();let _0x3eaef7=_0x3cfee6[_0x43cb28];return _0x3eaef7;}export function isValidationResult(_0x408b22){const _0x1dd6bf=a155_0x44a797;return!(_0x1dd6bf(0x147)in _0x408b22);}function a155_0x3cfe(){const _0x2ac85d=['YAML\x20parse\x20error:\x20','10524040YlyCGg','error','campaign','segment','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','template','push','436ikDcll','result','utf-8','622226PWhxPJ','toJSON','type','email','relative','9PuZZLS','basename','not\x20a\x20','has','8985VJaPxC','length','YAML_PARSE_ERROR','map','journey','skipped','filterType','message','warnings','2365500JKcQnG','597000AiLpzc','1357083XIHnaZ','parseDocument','180642FozTXk','campaign_type','valid','object'];a155_0x3cfe=function(){return _0x2ac85d;};return a155_0x3cfe();}export function createParseErrorResult(_0x583907,_0xcb6d9e,_0x91b1f4,_0x34184f,_0x4389f3=a155_0x44a797(0x157)){const _0x422190=a155_0x44a797;return{'filePath':_0x583907,'relativePath':_0xcb6d9e,'source':_0x91b1f4,'result':{'valid':![],'errors':[{'level':_0x422190(0x155),'path':'','code':_0x422190(0x144),'message':_0x34184f}],'warnings':[]},'fileType':_0x4389f3};}export function validateYamlFile(_0x4d4eff,_0x441471,_0x241cb1={}){const _0x4f0acb=a155_0x44a797,_0x216fd2=a155_0x1452f8[_0x4f0acb(0x13d)](_0x441471,_0x4d4eff)||a155_0x1452f8[_0x4f0acb(0x13f)](_0x4d4eff);try{const _0x5e3075=readFileSync(_0x4d4eff,_0x4f0acb(0x138)),_0x553318=a155_0x456f3[_0x4f0acb(0x14e)](_0x5e3075),_0xaaad37=_0x553318[_0x4f0acb(0x13a)]();if(!_0xaaad37)return createParseErrorResult(_0x4d4eff,_0x216fd2,_0x5e3075,_0x4f0acb(0x158));let _0x183db2;if(isJourneyDef(_0xaaad37))_0x183db2=_0x4f0acb(0x146);else{if(isCampaignDef(_0xaaad37))_0x183db2='campaign';else isTemplateDef(_0xaaad37)?_0x183db2=_0x4f0acb(0x159):_0x183db2='segment';}if(_0x241cb1[_0x4f0acb(0x148)]&&_0x183db2!==_0x241cb1['filterType'])return{'filePath':_0x4d4eff,'relativePath':_0x216fd2,'skipped':!![],'reason':_0x4f0acb(0x140)+_0x241cb1['filterType']};const _0x2a0a0a={'source':_0x5e3075,'document':_0x553318};let _0x4854f9;if(_0x183db2===_0x4f0acb(0x146))_0x4854f9=validateJourneyDef(_0xaaad37,_0x2a0a0a);else{if(_0x183db2==='campaign')_0x4854f9=validateCampaignDef(_0xaaad37,_0x2a0a0a);else _0x183db2===_0x4f0acb(0x159)?_0x4854f9=validateTemplateDef(_0xaaad37,_0x2a0a0a):_0x4854f9=validateSegmentDef(_0xaaad37,_0x2a0a0a);}return{'filePath':_0x4d4eff,'relativePath':_0x216fd2,'source':_0x5e3075,'result':_0x4854f9,'fileType':_0x183db2};}catch(_0x487aa9){const _0x3a1eb7=_0x487aa9 instanceof Error?_0x487aa9[_0x4f0acb(0x149)]:String(_0x487aa9);return createParseErrorResult(_0x4d4eff,_0x216fd2,'',_0x4f0acb(0x153)+_0x3a1eb7);}}export function validateYamlFiles(_0x3d1333,_0x4c7b22,_0x5865be={}){const _0x30d09b=a155_0x44a797;return _0x3d1333[_0x30d09b(0x145)](_0x52d7cf=>validateYamlFile(_0x52d7cf,_0x4c7b22,_0x5865be));}export function calculateSummary(_0x2f149d){const _0x2748b3=a155_0x44a797;let _0xea4522=0x0,_0xe968e2=0x0,_0x5545a2=0x0,_0x644fbd=0x0;for(const _0x3e4b16 of _0x2f149d){if(!isValidationResult(_0x3e4b16)){_0x644fbd++;continue;}_0x3e4b16[_0x2748b3(0x15c)][_0x2748b3(0x151)]?_0xea4522++:_0xe968e2++,_0x5545a2+=_0x3e4b16[_0x2748b3(0x15c)][_0x2748b3(0x14a)][_0x2748b3(0x143)];}return{'validCount':_0xea4522,'invalidCount':_0xe968e2,'warningCount':_0x5545a2,'skippedCount':_0x644fbd,'hasErrors':_0xe968e2>0x0};}
1
+ const a155_0x1b2458=a155_0x37df;(function(_0x37e938,_0xf5b4a4){const _0x536b19=a155_0x37df,_0x52402e=_0x37e938();while(!![]){try{const _0x143188=parseInt(_0x536b19(0xe0))/0x1*(-parseInt(_0x536b19(0xe8))/0x2)+parseInt(_0x536b19(0xde))/0x3*(-parseInt(_0x536b19(0xfd))/0x4)+-parseInt(_0x536b19(0xdb))/0x5+-parseInt(_0x536b19(0xe1))/0x6*(-parseInt(_0x536b19(0xe4))/0x7)+-parseInt(_0x536b19(0xec))/0x8*(parseInt(_0x536b19(0xf1))/0x9)+parseInt(_0x536b19(0xf6))/0xa*(parseInt(_0x536b19(0xf0))/0xb)+parseInt(_0x536b19(0xed))/0xc*(-parseInt(_0x536b19(0xe7))/0xd);if(_0x143188===_0xf5b4a4)break;else _0x52402e['push'](_0x52402e['shift']());}catch(_0x3376be){_0x52402e['push'](_0x52402e['shift']());}}}(a155_0x1f4f,0x24607));function a155_0x1f4f(){const _0x39fdfe=['2316VPNzxu','object','warnings','671DCorQy','31131edeRcU','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','YAML_PARSE_ERROR','error','toJSON','39770YjOQvt','not\x20a\x20','YAML\x20parse\x20error:\x20','push','type','parseDocument','template','36880oDSnyB','378330YJUlrv','journey','relative','48pWqyzD','campaign','2PcmwbJ','850404uYiRuQ','utf-8','length','14WiBNHo','map','result','793sPmSZJ','7206RLraZR','segment','skipped','filterType','312NyjVRv'];a155_0x1f4f=function(){return _0x39fdfe;};return a155_0x1f4f();}import{readFileSync}from'fs';import*as a155_0x5c32a8 from'path';import*as a155_0x3cdd36 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',a155_0x1b2458(0xf9)]);function a155_0x37df(_0x500026,_0x134c57){_0x500026=_0x500026-0xdb;const _0x1f4f37=a155_0x1f4f();let _0x37df27=_0x1f4f37[_0x500026];return _0x37df27;}export function isJourneyDef(_0x2ab67a){const _0x4492c2=a155_0x1b2458;return typeof _0x2ab67a===_0x4492c2(0xee)&&_0x2ab67a!==null&&'type'in _0x2ab67a&&_0x2ab67a[_0x4492c2(0xfa)]==='journey';}export function isCampaignDef(_0x1ba0ce){const _0x525275=a155_0x1b2458;if(typeof _0x1ba0ce!=='object'||_0x1ba0ce===null)return![];const _0x17070f=_0x1ba0ce,_0x497320=VALID_CAMPAIGN_TYPES['has'](_0x17070f['campaign_type']);if(_0x17070f[_0x525275(0xfa)]===_0x525275(0xdf)&&_0x497320)return!![];if(_0x497320&&!_0x17070f[_0x525275(0xfa)])return!![];return![];}export function isTemplateDef(_0x4487d6){const _0x5c68ba=a155_0x1b2458;return typeof _0x4487d6==='object'&&_0x4487d6!==null&&_0x5c68ba(0xfa)in _0x4487d6&&_0x4487d6['type']==='template';}export function isValidationResult(_0x3dbd61){const _0xd2d06c=a155_0x1b2458;return!(_0xd2d06c(0xea)in _0x3dbd61);}export function createParseErrorResult(_0xc00334,_0x40367b,_0x2b9d5e,_0x5161d6,_0x4e6029=a155_0x1b2458(0xe9)){const _0x304db7=a155_0x1b2458;return{'filePath':_0xc00334,'relativePath':_0x40367b,'source':_0x2b9d5e,'result':{'valid':![],'errors':[{'level':_0x304db7(0xf4),'path':'','code':_0x304db7(0xf3),'message':_0x5161d6}],'warnings':[]},'fileType':_0x4e6029};}export function validateYamlFile(_0x43af21,_0x472e88,_0x100fe5={}){const _0xae63cb=a155_0x1b2458,_0x3a1a90=a155_0x5c32a8[_0xae63cb(0xdd)](_0x472e88,_0x43af21)||a155_0x5c32a8['basename'](_0x43af21);try{const _0x20b104=readFileSync(_0x43af21,_0xae63cb(0xe2)),_0x148d17=a155_0x3cdd36[_0xae63cb(0xfb)](_0x20b104),_0x344299=_0x148d17[_0xae63cb(0xf5)]();if(!_0x344299)return createParseErrorResult(_0x43af21,_0x3a1a90,_0x20b104,_0xae63cb(0xf2));let _0x1b4847;if(isJourneyDef(_0x344299))_0x1b4847=_0xae63cb(0xdc);else{if(isCampaignDef(_0x344299))_0x1b4847=_0xae63cb(0xdf);else isTemplateDef(_0x344299)?_0x1b4847=_0xae63cb(0xfc):_0x1b4847=_0xae63cb(0xe9);}if(_0x100fe5[_0xae63cb(0xeb)]&&_0x1b4847!==_0x100fe5[_0xae63cb(0xeb)])return{'filePath':_0x43af21,'relativePath':_0x3a1a90,'skipped':!![],'reason':_0xae63cb(0xf7)+_0x100fe5[_0xae63cb(0xeb)]};const _0x4542e7={'source':_0x20b104,'document':_0x148d17};let _0x47bcc5;if(_0x1b4847===_0xae63cb(0xdc))_0x47bcc5=validateJourneyDef(_0x344299,_0x4542e7);else{if(_0x1b4847==='campaign')_0x47bcc5=validateCampaignDef(_0x344299,_0x4542e7);else _0x1b4847===_0xae63cb(0xfc)?_0x47bcc5=validateTemplateDef(_0x344299,_0x4542e7):_0x47bcc5=validateSegmentDef(_0x344299,_0x4542e7);}return{'filePath':_0x43af21,'relativePath':_0x3a1a90,'source':_0x20b104,'result':_0x47bcc5,'fileType':_0x1b4847};}catch(_0x918eff){const _0x3c5c4c=_0x918eff instanceof Error?_0x918eff['message']:String(_0x918eff);return createParseErrorResult(_0x43af21,_0x3a1a90,'',_0xae63cb(0xf8)+_0x3c5c4c);}}export function validateYamlFiles(_0x46bdc9,_0xf8ff2a,_0x32dfbf={}){const _0x2178a2=a155_0x1b2458;return _0x46bdc9[_0x2178a2(0xe5)](_0x404a76=>validateYamlFile(_0x404a76,_0xf8ff2a,_0x32dfbf));}export function calculateSummary(_0x2bc3d3){const _0x30f51e=a155_0x1b2458;let _0x5ca27d=0x0,_0x58760f=0x0,_0x342856=0x0,_0x2e3601=0x0;for(const _0x53f7a4 of _0x2bc3d3){if(!isValidationResult(_0x53f7a4)){_0x2e3601++;continue;}_0x53f7a4['result']['valid']?_0x5ca27d++:_0x58760f++,_0x342856+=_0x53f7a4[_0x30f51e(0xe6)][_0x30f51e(0xef)][_0x30f51e(0xe3)];}return{'validCount':_0x5ca27d,'invalidCount':_0x58760f,'warningCount':_0x342856,'skippedCount':_0x2e3601,'hasErrors':_0x58760f>0x0};}
@@ -1 +1 @@
1
- function a156_0x3744(_0x313e9b,_0x215d34){_0x313e9b=_0x313e9b-0x186;const _0x8350e1=a156_0x8350();let _0x3744cc=_0x8350e1[_0x313e9b];return _0x3744cc;}(function(_0x13eea9,_0x408876){const _0x260cbd=a156_0x3744,_0x5dde53=_0x13eea9();while(!![]){try{const _0xecfbf8=parseInt(_0x260cbd(0x1a9))/0x1*(-parseInt(_0x260cbd(0x1a2))/0x2)+-parseInt(_0x260cbd(0x1a4))/0x3*(parseInt(_0x260cbd(0x187))/0x4)+-parseInt(_0x260cbd(0x18b))/0x5+parseInt(_0x260cbd(0x191))/0x6+parseInt(_0x260cbd(0x18d))/0x7+-parseInt(_0x260cbd(0x189))/0x8*(parseInt(_0x260cbd(0x1ab))/0x9)+parseInt(_0x260cbd(0x192))/0xa*(parseInt(_0x260cbd(0x1a0))/0xb);if(_0xecfbf8===_0x408876)break;else _0x5dde53['push'](_0x5dde53['shift']());}catch(_0x492261){_0x5dde53['push'](_0x5dde53['shift']());}}}(a156_0x8350,0xaeefa));import*as a156_0x29ce5b from'yaml';import a156_0x276cd5 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x14e9d0,_0x13d706,_0x21900c){const _0xa5bcd5=a156_0x3744;if(!_0x14e9d0||!_0x13d706)return undefined;try{let _0x3ce64a=_0x14e9d0['getIn'](_0x21900c,!![]),_0x426292=[..._0x21900c];while((!_0x3ce64a||typeof _0x3ce64a!==_0xa5bcd5(0x1a6)||!('range'in _0x3ce64a)||!_0x3ce64a[_0xa5bcd5(0x186)])&&_0x426292[_0xa5bcd5(0x1aa)]>0x0){_0x426292[_0xa5bcd5(0x19e)](),_0x3ce64a=_0x426292[_0xa5bcd5(0x1aa)]>0x0?_0x14e9d0[_0xa5bcd5(0x1a8)](_0x426292,!![]):_0x14e9d0['contents'];}if(!_0x3ce64a||typeof _0x3ce64a!==_0xa5bcd5(0x1a6)||!(_0xa5bcd5(0x186)in _0x3ce64a)||!_0x3ce64a[_0xa5bcd5(0x186)])return undefined;const [_0x39df26]=_0x3ce64a['range'];return offsetToLocation(_0x13d706,_0x39df26);}catch{return undefined;}}export function offsetToLocation(_0x43c23b,_0x18b822){let _0x56dfc0=0x1,_0x1e67a9=0x1;for(let _0x3d9b06=0x0;_0x3d9b06<_0x18b822&&_0x3d9b06<_0x43c23b['length'];_0x3d9b06++){_0x43c23b[_0x3d9b06]==='\x0a'?(_0x56dfc0++,_0x1e67a9=0x1):_0x1e67a9++;}return{'line':_0x56dfc0,'column':_0x1e67a9,'offset':_0x18b822};}function a156_0x8350(){const _0x8edaf4=['level','data','join','YAML\x20validation\x20error:\x20','message','code','success','repeat','pop','error','23012231hXwZNF','map','1158FSWqjR','errors','867pYFNCi','red','object','dim','getIn','485LrEtcO','length','9224667MGuxbK','cyan','location','warnings','max','number','parse','split','range','12304rDOyaW','Invalid\x20YAML:\x20expected\x20an\x20object','8yqCMFL','yellow','6440710xnTSjx','padStart','9409113dkYVCQ','path','push','\x20|\x20','4579452oohGnR','10dDooWs','YAML\x20validation\x20error\x20at\x20\x27','flatMap','match'];a156_0x8350=function(){return _0x8edaf4;};return a156_0x8350();}export function pathToArray(_0x1c5379){const _0x54b66c=a156_0x3744;if(!_0x1c5379)return[];return _0x1c5379[_0x54b66c(0x1b2)]('.')[_0x54b66c(0x194)](_0x4f7ffb=>{const _0x2714ff=_0x54b66c,_0x55754e=_0x4f7ffb[_0x2714ff(0x195)](/^(\w+)\[(\d+)\]$/);if(_0x55754e)return[_0x55754e[0x1],parseInt(_0x55754e[0x2],0xa)];return[_0x4f7ffb];});}export function formatZodPath(_0x7cb8a9){const _0x52ead6=a156_0x3744;let _0x16cce7='';for(const _0x158f3b of _0x7cb8a9){if(typeof _0x158f3b===_0x52ead6(0x1b0))_0x16cce7+='['+_0x158f3b+']';else{const _0x47784f=String(_0x158f3b);_0x16cce7+=_0x16cce7?'.'+_0x47784f:_0x47784f;}}return _0x16cce7;}export function flattenZodIssues(_0x4ddf8a){const _0x108fde=a156_0x3744,_0x1e0b53=[];for(const _0x1525a7 of _0x4ddf8a){if(_0x1525a7[_0x108fde(0x19b)]==='invalid_union'&&_0x108fde(0x1a3)in _0x1525a7){const _0x3317b3=_0x1525a7[_0x108fde(0x1a3)];let _0x4479da=_0x3317b3[0x0]||[];for(const _0x31b432 of _0x3317b3){_0x31b432[_0x108fde(0x1aa)]<_0x4479da[_0x108fde(0x1aa)]&&(_0x4479da=_0x31b432);}const _0x2ad6de=_0x4479da[_0x108fde(0x1a1)](_0x3227a2=>({..._0x3227a2,'path':[..._0x1525a7['path'],..._0x3227a2[_0x108fde(0x18e)]]}));_0x1e0b53[_0x108fde(0x18f)](...flattenZodIssues(_0x2ad6de));}else _0x1e0b53[_0x108fde(0x18f)](_0x1525a7);}return _0x1e0b53;}export function safeParseYaml(_0x17ab2d,_0x19ddf9){const _0x53257b=a156_0x3744,_0x3491ac=a156_0x29ce5b[_0x53257b(0x1b1)](_0x17ab2d);if(!_0x3491ac||typeof _0x3491ac!==_0x53257b(0x1a6))throw new Error(_0x53257b(0x188));const _0x2b483f=_0x19ddf9['safeParse'](_0x3491ac);if(!_0x2b483f[_0x53257b(0x19c)]){const _0x51dd16=_0x2b483f[_0x53257b(0x19f)]['issues'][0x0],_0x21e484=formatZodPath(_0x51dd16[_0x53257b(0x18e)]);throw new Error(_0x21e484?_0x53257b(0x193)+_0x21e484+'\x27:\x20'+_0x51dd16[_0x53257b(0x19a)]:_0x53257b(0x199)+_0x51dd16['message']);}return _0x2b483f[_0x53257b(0x197)];}export function formatIssueWithContext(_0x481bca,_0x57668e,_0x35723f){const _0x4d0e37=a156_0x3744,_0x1270e7=[],_0x20c812=_0x481bca[_0x4d0e37(0x196)]===_0x4d0e37(0x19f),_0x25d126=_0x20c812?a156_0x276cd5[_0x4d0e37(0x1a5)]:a156_0x276cd5[_0x4d0e37(0x18a)],_0x28b7f1=_0x20c812?a156_0x276cd5[_0x4d0e37(0x1a5)]:a156_0x276cd5[_0x4d0e37(0x18a)],_0x11b7a7=_0x35723f?a156_0x276cd5[_0x4d0e37(0x1ac)](_0x35723f+':'):'';if(_0x481bca['location']){const _0xdb1f7b=a156_0x276cd5[_0x4d0e37(0x1ac)](_0x481bca['location']['line']+':'+_0x481bca[_0x4d0e37(0x1ad)]['column']);_0x1270e7[_0x4d0e37(0x18f)](''+_0x11b7a7+_0xdb1f7b+':\x20'+_0x25d126(_0x481bca[_0x4d0e37(0x196)])+'\x20'+_0x28b7f1('['+_0x481bca['code']+']'));}else _0x1270e7[_0x4d0e37(0x18f)](''+_0x11b7a7+a156_0x276cd5['dim'](_0x481bca[_0x4d0e37(0x18e)])+':\x20'+_0x25d126(_0x481bca[_0x4d0e37(0x196)])+'\x20'+_0x28b7f1('['+_0x481bca[_0x4d0e37(0x19b)]+']'));_0x1270e7[_0x4d0e37(0x18f)](_0x481bca[_0x4d0e37(0x19a)]);if(_0x481bca['location']&&_0x57668e){const _0x5db690=_0x57668e[_0x4d0e37(0x1b2)]('\x0a'),{line:_0x145f5a,column:_0x3c9094}=_0x481bca[_0x4d0e37(0x1ad)],_0x5e752f=Math[_0x4d0e37(0x1af)](0x1,_0x145f5a-0x1),_0x1bdb92=Math['min'](_0x5db690[_0x4d0e37(0x1aa)],_0x145f5a+0x1);_0x1270e7[_0x4d0e37(0x18f)]('');for(let _0x31bd07=_0x5e752f;_0x31bd07<=_0x1bdb92;_0x31bd07++){const _0x51487c=_0x5db690[_0x31bd07-0x1]||'',_0x17c68d=a156_0x276cd5[_0x4d0e37(0x1a7)](_0x31bd07['toString']()[_0x4d0e37(0x18c)](0x4)),_0xfcafd1=a156_0x276cd5[_0x4d0e37(0x1a7)](_0x4d0e37(0x190));if(_0x31bd07===_0x145f5a){_0x1270e7[_0x4d0e37(0x18f)]('\x20\x20'+_0x17c68d+_0xfcafd1+_0x25d126(_0x51487c));const _0x31bc97='\x20'[_0x4d0e37(0x19d)](0x4+0x3+_0x3c9094-0x1);_0x1270e7[_0x4d0e37(0x18f)]('\x20\x20'+_0x31bc97+_0x25d126('^'));}else _0x1270e7['push']('\x20\x20'+_0x17c68d+_0xfcafd1+a156_0x276cd5[_0x4d0e37(0x1a7)](_0x51487c));}}return _0x1270e7[_0x4d0e37(0x198)]('\x0a');}export function formatValidationResult(_0x371309,_0x3756f7,_0x4dabb1){const _0x395f39=a156_0x3744,_0x1517b=[];for(const _0x55793e of _0x371309['errors']){_0x1517b[_0x395f39(0x18f)](formatIssueWithContext(_0x55793e,_0x3756f7,_0x4dabb1)),_0x1517b[_0x395f39(0x18f)]('');}for(const _0x7feec6 of _0x371309[_0x395f39(0x1ae)]){_0x1517b['push'](formatIssueWithContext(_0x7feec6,_0x3756f7,_0x4dabb1)),_0x1517b[_0x395f39(0x18f)]('');}return _0x1517b[_0x395f39(0x198)]('\x0a');}
1
+ function a156_0x283a(){const _0x473f81=['message','map','contents','errors','range','4110qWGDmR','806742WxFGML','warnings','path','split','error','getIn','level','flatMap','repeat','column','length','object','cyan','location','safeParse','parse','join','\x20|\x20','465587dWiIsE','issues','data','\x27:\x20','74SXDitd','success','15093ExtwQv','yellow','5EakORm','push','43757JYNtEx','4201752fDkshO','dim','red','YAML\x20validation\x20error\x20at\x20\x27','44737OkBZcw','Invalid\x20YAML:\x20expected\x20an\x20object','221980eUZBLU','1016aQIjyl','toString','code'];a156_0x283a=function(){return _0x473f81;};return a156_0x283a();}(function(_0x5e031f,_0x2ba4c6){const _0x63ea1b=a156_0x154e,_0x56c7e8=_0x5e031f();while(!![]){try{const _0x1b1d0c=parseInt(_0x63ea1b(0x9d))/0x1+-parseInt(_0x63ea1b(0xa1))/0x2*(parseInt(_0x63ea1b(0xa3))/0x3)+parseInt(_0x63ea1b(0xae))/0x4+-parseInt(_0x63ea1b(0xa5))/0x5*(parseInt(_0x63ea1b(0xa8))/0x6)+parseInt(_0x63ea1b(0xa7))/0x7*(-parseInt(_0x63ea1b(0xaf))/0x8)+-parseInt(_0x63ea1b(0x8b))/0x9+parseInt(_0x63ea1b(0x8a))/0xa*(parseInt(_0x63ea1b(0xac))/0xb);if(_0x1b1d0c===_0x2ba4c6)break;else _0x56c7e8['push'](_0x56c7e8['shift']());}catch(_0xc3a7fb){_0x56c7e8['push'](_0x56c7e8['shift']());}}}(a156_0x283a,0x67309));import*as a156_0x23cac7 from'yaml';import a156_0x498b15 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x2b2e59,_0x157a81,_0x5001ed){const _0x11a651=a156_0x154e;if(!_0x2b2e59||!_0x157a81)return undefined;try{let _0x1f0ff3=_0x2b2e59[_0x11a651(0x90)](_0x5001ed,!![]),_0x390e4d=[..._0x5001ed];while((!_0x1f0ff3||typeof _0x1f0ff3!==_0x11a651(0x96)||!('range'in _0x1f0ff3)||!_0x1f0ff3[_0x11a651(0x89)])&&_0x390e4d['length']>0x0){_0x390e4d['pop'](),_0x1f0ff3=_0x390e4d[_0x11a651(0x95)]>0x0?_0x2b2e59[_0x11a651(0x90)](_0x390e4d,!![]):_0x2b2e59[_0x11a651(0x87)];}if(!_0x1f0ff3||typeof _0x1f0ff3!==_0x11a651(0x96)||!(_0x11a651(0x89)in _0x1f0ff3)||!_0x1f0ff3[_0x11a651(0x89)])return undefined;const [_0x5844ea]=_0x1f0ff3[_0x11a651(0x89)];return offsetToLocation(_0x157a81,_0x5844ea);}catch{return undefined;}}export function offsetToLocation(_0x5e492f,_0x491e7a){const _0x5c91bf=a156_0x154e;let _0x5a2729=0x1,_0x3dc2ec=0x1;for(let _0x231733=0x0;_0x231733<_0x491e7a&&_0x231733<_0x5e492f[_0x5c91bf(0x95)];_0x231733++){_0x5e492f[_0x231733]==='\x0a'?(_0x5a2729++,_0x3dc2ec=0x1):_0x3dc2ec++;}return{'line':_0x5a2729,'column':_0x3dc2ec,'offset':_0x491e7a};}function a156_0x154e(_0x22dd58,_0x13b496){_0x22dd58=_0x22dd58-0x87;const _0x283ab9=a156_0x283a();let _0x154e96=_0x283ab9[_0x22dd58];return _0x154e96;}export function pathToArray(_0x19b484){const _0x201648=a156_0x154e;if(!_0x19b484)return[];return _0x19b484[_0x201648(0x8e)]('.')[_0x201648(0x92)](_0x233e58=>{const _0x164403=_0x233e58['match'](/^(\w+)\[(\d+)\]$/);if(_0x164403)return[_0x164403[0x1],parseInt(_0x164403[0x2],0xa)];return[_0x233e58];});}export function formatZodPath(_0x2e8861){let _0x3c8881='';for(const _0x21ee92 of _0x2e8861){if(typeof _0x21ee92==='number')_0x3c8881+='['+_0x21ee92+']';else{const _0x2ee155=String(_0x21ee92);_0x3c8881+=_0x3c8881?'.'+_0x2ee155:_0x2ee155;}}return _0x3c8881;}export function flattenZodIssues(_0x32a6aa){const _0x16eb9d=a156_0x154e,_0x4d8310=[];for(const _0x3eecc6 of _0x32a6aa){if(_0x3eecc6[_0x16eb9d(0xb1)]==='invalid_union'&&'errors'in _0x3eecc6){const _0x6d8ad5=_0x3eecc6[_0x16eb9d(0x88)];let _0x1f9bd1=_0x6d8ad5[0x0]||[];for(const _0x35f57c of _0x6d8ad5){_0x35f57c[_0x16eb9d(0x95)]<_0x1f9bd1[_0x16eb9d(0x95)]&&(_0x1f9bd1=_0x35f57c);}const _0x27fef1=_0x1f9bd1[_0x16eb9d(0xb3)](_0x313d8e=>({..._0x313d8e,'path':[..._0x3eecc6[_0x16eb9d(0x8d)],..._0x313d8e[_0x16eb9d(0x8d)]]}));_0x4d8310[_0x16eb9d(0xa6)](...flattenZodIssues(_0x27fef1));}else _0x4d8310[_0x16eb9d(0xa6)](_0x3eecc6);}return _0x4d8310;}export function safeParseYaml(_0x35f05d,_0x2d720a){const _0xd4ddbf=a156_0x154e,_0x117a15=a156_0x23cac7[_0xd4ddbf(0x9a)](_0x35f05d);if(!_0x117a15||typeof _0x117a15!==_0xd4ddbf(0x96))throw new Error(_0xd4ddbf(0xad));const _0x259803=_0x2d720a[_0xd4ddbf(0x99)](_0x117a15);if(!_0x259803[_0xd4ddbf(0xa2)]){const _0x193dab=_0x259803[_0xd4ddbf(0x8f)][_0xd4ddbf(0x9e)][0x0],_0xff6cc5=formatZodPath(_0x193dab[_0xd4ddbf(0x8d)]);throw new Error(_0xff6cc5?_0xd4ddbf(0xab)+_0xff6cc5+_0xd4ddbf(0xa0)+_0x193dab[_0xd4ddbf(0xb2)]:'YAML\x20validation\x20error:\x20'+_0x193dab[_0xd4ddbf(0xb2)]);}return _0x259803[_0xd4ddbf(0x9f)];}export function formatIssueWithContext(_0x38432f,_0x2c548a,_0x19e913){const _0x459435=a156_0x154e,_0x1f17a3=[],_0x2a2852=_0x38432f['level']===_0x459435(0x8f),_0x28aa80=_0x2a2852?a156_0x498b15[_0x459435(0xaa)]:a156_0x498b15[_0x459435(0xa4)],_0x4e6282=_0x2a2852?a156_0x498b15[_0x459435(0xaa)]:a156_0x498b15[_0x459435(0xa4)],_0x513a90=_0x19e913?a156_0x498b15[_0x459435(0x97)](_0x19e913+':'):'';if(_0x38432f['location']){const _0x3ad3d3=a156_0x498b15[_0x459435(0x97)](_0x38432f['location']['line']+':'+_0x38432f[_0x459435(0x98)][_0x459435(0x94)]);_0x1f17a3[_0x459435(0xa6)](''+_0x513a90+_0x3ad3d3+':\x20'+_0x28aa80(_0x38432f[_0x459435(0x91)])+'\x20'+_0x4e6282('['+_0x38432f['code']+']'));}else _0x1f17a3[_0x459435(0xa6)](''+_0x513a90+a156_0x498b15[_0x459435(0xa9)](_0x38432f[_0x459435(0x8d)])+':\x20'+_0x28aa80(_0x38432f[_0x459435(0x91)])+'\x20'+_0x4e6282('['+_0x38432f[_0x459435(0xb1)]+']'));_0x1f17a3['push'](_0x38432f['message']);if(_0x38432f[_0x459435(0x98)]&&_0x2c548a){const _0x335257=_0x2c548a[_0x459435(0x8e)]('\x0a'),{line:_0x351d87,column:_0x4d420f}=_0x38432f[_0x459435(0x98)],_0x104231=Math['max'](0x1,_0x351d87-0x1),_0x1993ff=Math['min'](_0x335257[_0x459435(0x95)],_0x351d87+0x1);_0x1f17a3['push']('');for(let _0x5c0c51=_0x104231;_0x5c0c51<=_0x1993ff;_0x5c0c51++){const _0x181749=_0x335257[_0x5c0c51-0x1]||'',_0x14878b=a156_0x498b15['dim'](_0x5c0c51[_0x459435(0xb0)]()['padStart'](0x4)),_0x16ce09=a156_0x498b15[_0x459435(0xa9)](_0x459435(0x9c));if(_0x5c0c51===_0x351d87){_0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x14878b+_0x16ce09+_0x28aa80(_0x181749));const _0x3890c6='\x20'[_0x459435(0x93)](0x4+0x3+_0x4d420f-0x1);_0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x3890c6+_0x28aa80('^'));}else _0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x14878b+_0x16ce09+a156_0x498b15[_0x459435(0xa9)](_0x181749));}}return _0x1f17a3[_0x459435(0x9b)]('\x0a');}export function formatValidationResult(_0x1d44b7,_0x36c5a2,_0x3050c1){const _0x43c930=a156_0x154e,_0x345882=[];for(const _0x352461 of _0x1d44b7[_0x43c930(0x88)]){_0x345882[_0x43c930(0xa6)](formatIssueWithContext(_0x352461,_0x36c5a2,_0x3050c1)),_0x345882[_0x43c930(0xa6)]('');}for(const _0x3eac03 of _0x1d44b7[_0x43c930(0x8c)]){_0x345882['push'](formatIssueWithContext(_0x3eac03,_0x36c5a2,_0x3050c1)),_0x345882[_0x43c930(0xa6)]('');}return _0x345882[_0x43c930(0x9b)]('\x0a');}