@treasuredata/tdx 2026.6.0 → 2026.6.1
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.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.d.ts +8 -4
- package/dist/sdk/llm/model-factors.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +1 -1
- package/dist/sdk/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/cdp.d.ts +4 -3
- package/dist/sdk/types/cdp.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x3b7d(_0x3f8b9a,_0x299184){_0x3f8b9a=_0x3f8b9a-0x136;const _0x557b51=a147_0x557b();let _0x3b7d14=_0x557b51[_0x3f8b9a];return _0x3b7d14;}(function(_0x5d395c,_0x11b61d){const _0x3bf564=a147_0x3b7d,_0x401fb7=_0x5d395c();while(!![]){try{const _0x38d653=-parseInt(_0x3bf564(0x138))/0x1+-parseInt(_0x3bf564(0x13b))/0x2+parseInt(_0x3bf564(0x141))/0x3+-parseInt(_0x3bf564(0x142))/0x4+parseInt(_0x3bf564(0x13e))/0x5*(parseInt(_0x3bf564(0x140))/0x6)+parseInt(_0x3bf564(0x13d))/0x7+parseInt(_0x3bf564(0x137))/0x8;if(_0x38d653===_0x11b61d)break;else _0x401fb7['push'](_0x401fb7['shift']());}catch(_0x38c3a9){_0x401fb7['push'](_0x401fb7['shift']());}}}(a147_0x557b,0x2aa5c));import{readdirSync,statSync}from'fs';import a147_0x15e224 from'path';export function findYamlFiles(_0x4312a5){const _0x419196=[];function _0x4c9c3d(_0x35c913){const _0x243df8=a147_0x3b7d,_0x19031b=readdirSync(_0x35c913,{'withFileTypes':!![]});for(const _0x6b1b41 of _0x19031b){const _0x7f451c=a147_0x15e224[_0x243df8(0x13a)](_0x35c913,_0x6b1b41[_0x243df8(0x136)]);if(_0x6b1b41[_0x243df8(0x143)]())_0x4c9c3d(_0x7f451c);else(_0x6b1b41[_0x243df8(0x136)][_0x243df8(0x144)]('.yml')||_0x6b1b41[_0x243df8(0x136)]['endsWith'](_0x243df8(0x13c)))&&_0x419196[_0x243df8(0x146)](_0x7f451c);}}return _0x4c9c3d(_0x4312a5),_0x419196;}export function discoverYamlFiles(_0x10fea2){const _0x155a4a=findYamlFiles(_0x10fea2);return _0x155a4a['map'](_0x49c37c=>{const _0x3087ad=a147_0x3b7d,_0x12ff25=a147_0x15e224['relative'](_0x10fea2,_0x49c37c),_0x394cef=a147_0x15e224['dirname'](_0x12ff25);return{'absolutePath':_0x49c37c,'relativePath':_0x12ff25,'folderPath':_0x394cef==='.'?'':_0x394cef[_0x3087ad(0x139)](/\\/g,'/')};});}export function isYamlFile(_0x5a1dc4){const _0x7eebab=a147_0x3b7d;try{const _0x44c63a=statSync(_0x5a1dc4);if(!_0x44c63a[_0x7eebab(0x13f)]())return![];const _0x4e67de=a147_0x15e224[_0x7eebab(0x145)](_0x5a1dc4)[_0x7eebab(0x147)]();return _0x4e67de==='.yml'||_0x4e67de===_0x7eebab(0x13c);}catch{return![];}}function a147_0x557b(){const _0x4aa8d7=['1737771hZXxhh','2335bWPiwy','isFile','516NKjWLf','111021aeQmZn','328464dgccZZ','isDirectory','endsWith','extname','push','toLowerCase','name','2568616GVvxaF','305138wsQpny','replace','join','169122DfqGys','.yaml'];a147_0x557b=function(){return _0x4aa8d7;};return a147_0x557b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x116dc3,_0x3985e2){const _0x2434b9=a148_0x3984,_0xf3dadc=_0x116dc3();while(!![]){try{const _0x572df3=parseInt(_0x2434b9(0x20e))/0x1*(-parseInt(_0x2434b9(0x209))/0x2)+parseInt(_0x2434b9(0x1fa))/0x3*(parseInt(_0x2434b9(0x1e3))/0x4)+-parseInt(_0x2434b9(0x1d3))/0x5*(parseInt(_0x2434b9(0x213))/0x6)+parseInt(_0x2434b9(0x1ee))/0x7+-parseInt(_0x2434b9(0x1ca))/0x8*(-parseInt(_0x2434b9(0x1e1))/0x9)+-parseInt(_0x2434b9(0x1ef))/0xa+-parseInt(_0x2434b9(0x1d8))/0xb*(-parseInt(_0x2434b9(0x1cb))/0xc);if(_0x572df3===_0x3985e2)break;else _0xf3dadc['push'](_0xf3dadc['shift']());}catch(_0x58808b){_0xf3dadc['push'](_0xf3dadc['shift']());}}}(a148_0x1002,0x765ed));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x259e74){const _0xd57a17=a148_0x3984;return _0x259e74['toLowerCase']()['replace'](/\s+/g,'_')['replace'](/[^a-z0-9_\p{L}\p{N}]/gu,'')[_0xd57a17(0x1f2)](/_+/g,'_')[_0xd57a17(0x1f2)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x58bf5a){const _0x53a042=a148_0x3984,_0x956f0c=_0x58bf5a['match'](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x956f0c){const _0x39aea7=_0x956f0c[0x1][_0x53a042(0x1cd)](),_0x31a68e=_0x956f0c[0x2],_0x20743c=_0x31a68e[_0x53a042(0x1f2)](/-/g,'')[_0x53a042(0x1d1)](0x0,0x4)[_0x53a042(0x1cd)]();return _0x39aea7+'_'+_0x20743c;}const _0x5bd17f=_0x58bf5a[_0x53a042(0x1fe)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x5bd17f){const _0x4b9548=_0x5bd17f[0x1],_0x2384e0=_0x5bd17f[0x2][_0x53a042(0x1cd)](),_0x30acc1=_0x4b9548[_0x53a042(0x1f2)](/-/g,'')[_0x53a042(0x1d1)](0x0,0x4)[_0x53a042(0x1cd)]();return _0x2384e0+'_'+_0x30acc1;}return undefined;}function stableStringify(_0xc47a8){const _0x3f32c5=a148_0x3984;if(Array['isArray'](_0xc47a8))return'['+_0xc47a8[_0x3f32c5(0x1d2)](_0x652298=>stableStringify(_0x652298))[_0x3f32c5(0x1da)](',')+']';if(_0xc47a8&&typeof _0xc47a8===_0x3f32c5(0x1ec)){const _0x4de0e6=_0xc47a8,_0x241c50=Object[_0x3f32c5(0x203)](_0x4de0e6)[_0x3f32c5(0x200)](),_0x1e17b8=_0x241c50[_0x3f32c5(0x1d2)](_0x575c21=>'\x22'+_0x575c21+'\x22:'+stableStringify(_0x4de0e6[_0x575c21]));return'{'+_0x1e17b8[_0x3f32c5(0x1da)](',')+'}';}const _0x1204cc=JSON[_0x3f32c5(0x20f)](_0xc47a8);return _0x1204cc===undefined?_0x3f32c5(0x1d6):_0x1204cc;}export function consolidateActivationsByContent(_0x184506){const _0x48f0bf=a148_0x3984,_0x5cf34f={},_0x4a88f4=new Map(),_0x4d1d40=new Map();for(const _0x23f650 of _0x184506){if(!_0x23f650)continue;for(const [_0x3347c4,_0x3f2145]of Object['entries'](_0x23f650)){const _0x317ed9={'name':_0x3f2145[_0x48f0bf(0x1d7)],'connection':_0x3f2145[_0x48f0bf(0x20b)],..._0x3f2145['all_columns']!==undefined&&{'all_columns':_0x3f2145[_0x48f0bf(0x1fc)]},..._0x3f2145[_0x48f0bf(0x1f8)]!==undefined&&{'columns':_0x3f2145[_0x48f0bf(0x1f8)]},..._0x3f2145[_0x48f0bf(0x1e4)]!==undefined&&{'behavior':_0x3f2145[_0x48f0bf(0x1e4)]},..._0x3f2145[_0x48f0bf(0x205)]!==undefined&&{'schedule':_0x3f2145[_0x48f0bf(0x205)]},..._0x3f2145[_0x48f0bf(0x1f6)]!==undefined&&{'notification':_0x3f2145['notification']},..._0x3f2145['connector_config']!==undefined&&{'connector_config':_0x3f2145[_0x48f0bf(0x1e6)]},..._0x3f2145[_0x48f0bf(0x216)]!==undefined&&{'activation_template_id':_0x3f2145[_0x48f0bf(0x216)]}},_0x7532e9=stableStringify(_0x317ed9),_0x4104ce=_0x4d1d40[_0x48f0bf(0x1d9)](_0x7532e9);_0x4104ce?_0x4a88f4[_0x48f0bf(0x1dc)](_0x3347c4,_0x4104ce):(_0x5cf34f[_0x3347c4]=_0x3f2145,_0x4a88f4['set'](_0x3347c4,_0x3347c4),_0x4d1d40[_0x48f0bf(0x1dc)](_0x7532e9,_0x3347c4));}}return{'merged':_0x5cf34f,'nameMapping':_0x4a88f4};}export function updateActivationReferences(_0x4907aa,_0x14c691){const _0x21c006=a148_0x3984;if(!_0x4907aa)return;for(const _0x518af4 of _0x4907aa){if(!_0x518af4[_0x21c006(0x1de)])continue;for(const _0x13d5fe of _0x518af4[_0x21c006(0x1de)]){if(_0x13d5fe[_0x21c006(0x1ed)]===_0x21c006(0x210)&&_0x13d5fe['with']?.['activation']){const _0x2c5e79=_0x14c691[_0x21c006(0x1d9)](_0x13d5fe['with'][_0x21c006(0x210)]);_0x2c5e79&&_0x2c5e79!==_0x13d5fe['with'][_0x21c006(0x210)]&&(_0x13d5fe['with']['activation']=_0x2c5e79);}}}}export function consolidateSegmentsByContent(_0x50adae,_0x53ea09){const _0xb1c5c2=a148_0x3984,_0x3e2d93={},_0x1e3ea3=new Map(),_0x36021c=new Map();for(const _0x564727 of _0x50adae){if(!_0x564727)continue;for(const [_0x27f8f9,_0x2f1840]of Object[_0xb1c5c2(0x1f4)](_0x564727)){if(!_0x2f1840['rule']){_0x3e2d93[_0x27f8f9]=_0x2f1840,_0x1e3ea3['set'](_0x27f8f9,_0x27f8f9);continue;}const _0x1386ec=_0x2f1840[_0xb1c5c2(0x1d5)]&&_0x2f1840[_0xb1c5c2(0x1d5)]['trim']()?_0x2f1840[_0xb1c5c2(0x1d5)]:undefined,_0x4e0212=JSON[_0xb1c5c2(0x20f)]({'description':_0x1386ec,'rule':deepSortObject(_0x2f1840[_0xb1c5c2(0x1e5)])}),_0x2c7723=_0x36021c[_0xb1c5c2(0x1d9)](_0x4e0212);if(_0x2c7723){const _0x5786f7={..._0x2f1840[_0xb1c5c2(0x1d5)]!==undefined&&{'description':_0x2f1840[_0xb1c5c2(0x1d5)]},'rule':_0x2f1840[_0xb1c5c2(0x1e5)]?deepSortObject(_0x2f1840[_0xb1c5c2(0x1e5)]):_0x2f1840[_0xb1c5c2(0x1e5)]};if(_0x27f8f9<_0x2c7723){_0x3e2d93[_0x27f8f9]=_0x5786f7,delete _0x3e2d93[_0x2c7723];for(const [_0x40e848,_0x36159a]of _0x1e3ea3['entries']()){_0x36159a===_0x2c7723&&_0x1e3ea3[_0xb1c5c2(0x1dc)](_0x40e848,_0x27f8f9);}_0x1e3ea3[_0xb1c5c2(0x1dc)](_0x27f8f9,_0x27f8f9),_0x36021c['set'](_0x4e0212,_0x27f8f9);}else _0x3e2d93[_0x2c7723]=_0x5786f7,_0x1e3ea3[_0xb1c5c2(0x1dc)](_0x27f8f9,_0x2c7723);}else{let _0x1a9889=_0x27f8f9;if(_0x53ea09){const _0xea51b5=_0x53ea09['get'](_0x4e0212);_0xea51b5&&_0xea51b5['length']>0x0&&(_0x1a9889=_0xea51b5[_0xb1c5c2(0x1d1)]()[_0xb1c5c2(0x200)]()[0x0]);}const _0x49eb7d={..._0x2f1840[_0xb1c5c2(0x1d5)]!==undefined&&{'description':_0x2f1840[_0xb1c5c2(0x1d5)]},'rule':_0x2f1840[_0xb1c5c2(0x1e5)]?deepSortObject(_0x2f1840[_0xb1c5c2(0x1e5)]):_0x2f1840[_0xb1c5c2(0x1e5)]};_0x3e2d93[_0x1a9889]=_0x49eb7d,_0x1e3ea3['set'](_0x27f8f9,_0x1a9889),_0x36021c['set'](_0x4e0212,_0x1a9889);}}}return{'merged':_0x3e2d93,'nameMapping':_0x1e3ea3};}export function updateSegmentReferences(_0x343dfe,_0x4c5f74){const _0xe263ad=a148_0x3984;if(!_0x343dfe)return;for(const _0x54f59b of _0x343dfe){if(_0x54f59b[_0xe263ad(0x1e9)]?.[_0xe263ad(0x1f7)]){const _0x4cc14a=_0x4c5f74[_0xe263ad(0x1d9)](_0x54f59b[_0xe263ad(0x1e9)][_0xe263ad(0x1f7)]);_0x4cc14a&&(_0x54f59b['entry_criteria'][_0xe263ad(0x1f7)]=_0x4cc14a);}if(_0x54f59b[_0xe263ad(0x212)])for(const _0x497dfb of _0x54f59b[_0xe263ad(0x212)]){if(_0x497dfb[_0xe263ad(0x1f7)]){const _0x178909=_0x4c5f74[_0xe263ad(0x1d9)](_0x497dfb[_0xe263ad(0x1f7)]);_0x178909&&(_0x497dfb[_0xe263ad(0x1f7)]=_0x178909);}}if(_0x54f59b[_0xe263ad(0x206)]?.[_0xe263ad(0x1f7)]){const _0x2354a7=_0x4c5f74[_0xe263ad(0x1d9)](_0x54f59b[_0xe263ad(0x206)][_0xe263ad(0x1f7)]);_0x2354a7&&(_0x54f59b[_0xe263ad(0x206)][_0xe263ad(0x1f7)]=_0x2354a7);}if(_0x54f59b['steps'])for(const _0x19f781 of _0x54f59b[_0xe263ad(0x1de)]){if(_0x19f781[_0xe263ad(0x1ed)]===_0xe263ad(0x1c9)&&_0x19f781[_0xe263ad(0x1ce)]?.[_0xe263ad(0x1dd)])for(const _0x279983 of _0x19f781[_0xe263ad(0x1ce)][_0xe263ad(0x1dd)]){if(_0x279983[_0xe263ad(0x1f7)]){const _0x1ae630=_0x4c5f74['get'](_0x279983[_0xe263ad(0x1f7)]);_0x1ae630&&(_0x279983[_0xe263ad(0x1f7)]=_0x1ae630);}}if(_0x19f781[_0xe263ad(0x1ed)]===_0xe263ad(0x1f5)&&_0x19f781[_0xe263ad(0x1ce)]?.['condition']?.[_0xe263ad(0x1f7)]){const _0x179f0f=_0x4c5f74[_0xe263ad(0x1d9)](_0x19f781['with'][_0xe263ad(0x1cf)][_0xe263ad(0x1f7)]);_0x179f0f&&(_0x19f781[_0xe263ad(0x1ce)][_0xe263ad(0x1cf)][_0xe263ad(0x1f7)]=_0x179f0f);}}}}function a148_0x3984(_0x1b0151,_0x588c9a){_0x1b0151=_0x1b0151-0x1c9;const _0x100242=a148_0x1002();let _0x398405=_0x100242[_0x1b0151];return _0x398405;}export function updateSegmentRefsInSegments(_0x36893d,_0x322306){const _0x5934a3=a148_0x3984;for(const _0x405dff of Object[_0x5934a3(0x204)](_0x36893d)){_0x405dff[_0x5934a3(0x1e5)]&&updateSegmentRefsInRule(_0x405dff[_0x5934a3(0x1e5)],_0x322306);}}function updateSegmentRefsInRule(_0x2417a1,_0x5d21d8){const _0x4ea10f=a148_0x3984;if(_0x2417a1===null||typeof _0x2417a1!==_0x4ea10f(0x1ec))return;if(Array[_0x4ea10f(0x215)](_0x2417a1)){for(const _0x185ad7 of _0x2417a1){updateSegmentRefsInRule(_0x185ad7,_0x5d21d8);}return;}const _0x7a9fcf=_0x2417a1;if((_0x7a9fcf['type']===_0x4ea10f(0x218)||_0x7a9fcf[_0x4ea10f(0x1ed)]===_0x4ea10f(0x1e7))&&typeof _0x7a9fcf['segment']===_0x4ea10f(0x1f0)){const _0x59195f=_0x5d21d8[_0x4ea10f(0x1d9)](_0x7a9fcf[_0x4ea10f(0x1f7)]);_0x59195f&&(_0x7a9fcf[_0x4ea10f(0x1f7)]=_0x59195f);}if(_0x7a9fcf[_0x4ea10f(0x1fb)]&&Array[_0x4ea10f(0x215)](_0x7a9fcf[_0x4ea10f(0x1fb)]))for(const _0x22ec47 of _0x7a9fcf['conditions']){updateSegmentRefsInRule(_0x22ec47,_0x5d21d8);}}export function buildJourneysArray(_0x127a08,_0x9036c1){const _0x226a97=a148_0x3984;return _0x127a08[_0x226a97(0x1d2)](_0x1d4120=>{const _0x3f4d64=_0x226a97,_0x3520a8=_0x9036c1?_0x1d4120[_0x3f4d64(0x1f1)]['id']===_0x9036c1:_0x127a08['length']===0x1,_0x967363=_0x1d4120[_0x3f4d64(0x1d4)][_0x3f4d64(0x20c)]?.[0x0],_0x1659d5=_0x967363?.[_0x3f4d64(0x201)]||_0x1d4120['yaml'][_0x3f4d64(0x201)],_0x5867f1={'version':_0x967363?.['version']||_0x1d4120[_0x3f4d64(0x1d4)][_0x3f4d64(0x1eb)]||_0x1d4120[_0x3f4d64(0x1f1)][_0x3f4d64(0x1d7)],'state':_0x1d4120[_0x3f4d64(0x1f1)]['state']===_0x3f4d64(0x207)?_0x3f4d64(0x207):_0x3f4d64(0x1f9),'stages':_0x967363?.[_0x3f4d64(0x1df)]||_0x1d4120[_0x3f4d64(0x1d4)][_0x3f4d64(0x1df)]||[],'id':_0x967363?.['id']||_0x1d4120['yaml']['id'],'version_number':_0x967363?.[_0x3f4d64(0x1cc)]||_0x1d4120[_0x3f4d64(0x1d4)][_0x3f4d64(0x1cc)]};return _0x1659d5&&(_0x5867f1[_0x3f4d64(0x201)]=_0x1659d5),_0x3520a8&&(_0x5867f1['latest']=!![]),_0x5867f1;});}export function buildMergedJourneyDef(_0x3bbfee,_0x474470,_0x481250){const _0x6344b4=a148_0x3984,_0x970c3e=_0x3bbfee[0x0][_0x6344b4(0x1d4)],_0xae5ccb=buildJourneysArray(_0x3bbfee,_0x481250),{merged:_0x4bef00,nameMapping:_0x45b2e8}=consolidateSegmentsByContent(_0x3bbfee[_0x6344b4(0x1d2)](_0x2d4f69=>_0x2d4f69[_0x6344b4(0x1d4)][_0x6344b4(0x217)]),_0x474470);updateSegmentRefsInSegments(_0x4bef00,_0x45b2e8);const _0x3ca43b=Array[_0x6344b4(0x1ea)](_0x45b2e8['entries']())[_0x6344b4(0x1d0)](([_0x5b8ba4,_0x4d3fb1])=>_0x5b8ba4!==_0x4d3fb1&&_0x5b8ba4['startsWith']('entry_criteria'));let _0x20b3f0=_0x4bef00,_0x1f90b4=new Map();if(_0x3ca43b){const _0x1cc475=consolidateSegmentsByContent([_0x4bef00],_0x474470);_0x20b3f0=_0x1cc475[_0x6344b4(0x202)],_0x1f90b4=_0x1cc475[_0x6344b4(0x1e0)];}const _0x4a0cde=new Map(_0x45b2e8);for(const [_0x4f974e,_0x5a33de]of _0x1f90b4[_0x6344b4(0x1f4)]()){_0x4a0cde[_0x6344b4(0x1dc)](_0x4f974e,_0x5a33de);}for(const [_0x2a22b8,_0x5ea04e]of _0x4a0cde[_0x6344b4(0x1f4)]()){let _0x5362f0=_0x5ea04e,_0x8461d9=0x0;while(_0x4a0cde['has'](_0x5362f0)&&_0x4a0cde[_0x6344b4(0x1d9)](_0x5362f0)!==_0x5362f0&&_0x8461d9<MAX_MAPPING_CHAIN_DEPTH){_0x5362f0=_0x4a0cde[_0x6344b4(0x1d9)](_0x5362f0),_0x8461d9++;}_0x5362f0!==_0x5ea04e&&_0x4a0cde[_0x6344b4(0x1dc)](_0x2a22b8,_0x5362f0);}for(const _0x4770ff of _0xae5ccb){updateSegmentReferences(_0x4770ff[_0x6344b4(0x1df)],_0x4a0cde);}const {merged:_0x35d2c9,nameMapping:_0x45080f}=consolidateActivationsByContent(_0x3bbfee[_0x6344b4(0x1d2)](_0x159ea2=>_0x159ea2[_0x6344b4(0x1d4)]['activations']));for(const _0x302cb2 of _0xae5ccb){updateActivationReferences(_0x302cb2['stages'],_0x45080f);}let _0x378e4e=_0x970c3e[_0x6344b4(0x201)];if(_0x378e4e?.['segment']){const _0x582225=_0x4a0cde[_0x6344b4(0x1d9)](_0x378e4e[_0x6344b4(0x1f7)]);_0x582225&&(_0x378e4e={..._0x378e4e,'segment':_0x582225});}for(const _0x4e00ac of _0xae5ccb){if(_0x4e00ac['goal']?.[_0x6344b4(0x1f7)]){const _0x121e34=_0x4a0cde[_0x6344b4(0x1d9)](_0x4e00ac[_0x6344b4(0x201)][_0x6344b4(0x1f7)]);_0x121e34&&(_0x4e00ac[_0x6344b4(0x201)]={..._0x4e00ac[_0x6344b4(0x201)],'segment':_0x121e34});}}return _0xae5ccb[_0x6344b4(0x1d0)](_0x2b8e1e=>_0x2b8e1e[_0x6344b4(0x201)])&&(_0x378e4e=undefined),{'type':'journey','name':_0x970c3e[_0x6344b4(0x1d7)],'description':_0x970c3e[_0x6344b4(0x1d5)],'goal':_0x378e4e,'reentry':_0x970c3e[_0x6344b4(0x208)],'segments':Object[_0x6344b4(0x203)](_0x20b3f0)[_0x6344b4(0x214)]>0x0?_0x20b3f0:undefined,'activations':Object['keys'](_0x35d2c9)['length']>0x0?_0x35d2c9:undefined,'journeys':_0xae5ccb,'bundle_id':_0x970c3e['bundle_id'],'bundle_name':_0x970c3e['bundle_name']};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x3cd240,_0x5f0e01,_0x7b6441,_0x3d21de){const _0x1ae11c=a148_0x3984,_0x14b1f4=_0x3cd240+':'+_0x5f0e01,_0x2a1a3a=_0x7b6441[_0x1ae11c(0x1d9)](_0x14b1f4);if(_0x2a1a3a)return _0x2a1a3a;const _0x1f81b1=await _0x3d21de(_0x3cd240),_0x5281e1=_0x1f81b1[_0x1ae11c(0x1ff)][_0x1ae11c(0x1e8)]||_0x1f81b1['attributes'][_0x1ae11c(0x1d7)],_0x44dee0=_0x1f81b1['attributes'][_0x1ae11c(0x1db)][_0x1ae11c(0x1e2)](_0x103fcf=>String(_0x103fcf['id'])===String(_0x5f0e01)),_0x40a806=_0x44dee0?.['name']||_0x5f0e01,_0x17744d={'journeyName':_0x5281e1,'stageName':_0x40a806};return _0x7b6441['set'](_0x14b1f4,_0x17744d),_0x17744d;}function a148_0x1002(){const _0x59af98=['from','version','object','type','4951247KseXSJ','8776900ANKoJu','string','item','replace','push','entries','wait','notification','segment','columns','draft','57UVsFcr','conditions','all_columns','versions','match','attributes','sort','goal','merged','keys','values','schedule','milestone','launched','reentry','2DLuLwx','index','connection','journeys','endsWith','487681pThgIT','stringify','activation','.yaml','exit_criteria','114306dYVDth','length','isArray','activation_template_id','segments','include','decision_point','8lAlkbp','7572UfpLfA','version_number','toLowerCase','with','condition','some','slice','map','225EihWnl','yaml','description','null','name','13365bPSvKk','get','join','journeyStages','set','branches','steps','stages','nameMapping','6718995smBUtK','find','102520PUuPAf','behavior','rule','connector_config','exclude','journeyBundleName','entry_criteria'];a148_0x1002=function(){return _0x59af98;};return a148_0x1002();}export function formatApiJourneyName(_0x5f1390,_0x4166f4){return _0x4166f4+'\x20('+_0x5f1390+')';}export function isLocalJourneyRef(_0x2293ca){const _0x5d8f39=a148_0x3984;return _0x2293ca[_0x5d8f39(0x20d)]('.yml')||_0x2293ca[_0x5d8f39(0x20d)](_0x5d8f39(0x211));}export function buildLocalRuleToNameMapping(_0x396c3b){const _0x360812=a148_0x3984,_0x431e23=new Map();if(!_0x396c3b)return _0x431e23;for(const [_0x44349a,_0x40df80]of Object[_0x360812(0x1f4)](_0x396c3b)){if(_0x40df80['rule']){const _0x49e00c=serializeRule(_0x40df80[_0x360812(0x1e5)]),_0x29ee49=_0x431e23['get'](_0x49e00c)||[];_0x29ee49[_0x360812(0x1f3)](_0x44349a),_0x431e23[_0x360812(0x1dc)](_0x49e00c,_0x29ee49);}}return _0x431e23;}export function buildLocalRuleToNameMappingFromJourney(_0xda55a){const _0x529cc6=a148_0x3984,_0x3a2d73=_0xda55a[_0x529cc6(0x217)];if(!_0x3a2d73)return new Map();const _0x86f18=collectSegmentUsageCounts(_0xda55a),_0x199fbb=new Map();let _0x15cc63=0x0;for(const [_0x129e1b,_0x4a8e70]of Object[_0x529cc6(0x1f4)](_0x3a2d73)){if(!_0x4a8e70[_0x529cc6(0x1e5)]){_0x15cc63++;continue;}const _0x396a6f=serializeRule(_0x4a8e70[_0x529cc6(0x1e5)]),_0x4cf95f=_0x199fbb[_0x529cc6(0x1d9)](_0x396a6f)||[];_0x4cf95f[_0x529cc6(0x1f3)]({'name':_0x129e1b,'index':_0x15cc63}),_0x199fbb['set'](_0x396a6f,_0x4cf95f),_0x15cc63++;}const _0x5a1b02=new Map();for(const [_0x226473,_0x5d94f6]of _0x199fbb){const _0x3bf30e=_0x5d94f6[_0x529cc6(0x1d1)]()[_0x529cc6(0x200)]((_0xec3f38,_0x40df5e)=>{const _0x537cc2=_0x529cc6,_0x15accd=_0x86f18[_0x537cc2(0x1d9)](_0xec3f38['name'])||0x0,_0x587d66=_0x86f18['get'](_0x40df5e[_0x537cc2(0x1d7)])||0x0;if(_0x15accd!==_0x587d66)return _0x587d66-_0x15accd;return _0xec3f38[_0x537cc2(0x20a)]-_0x40df5e[_0x537cc2(0x20a)];})['map'](_0x224b40=>_0x224b40[_0x529cc6(0x1d7)]);_0x5a1b02['set'](_0x226473,_0x3bf30e);}return _0x5a1b02;}export function collectSegmentUsageCounts(_0x2a4a73){const _0xfe380f=a148_0x3984,_0x3d8284=new Map(),_0x55b891=_0x170f06=>{const _0x55baf8=a148_0x3984;if(!_0x170f06)return;_0x3d8284['set'](_0x170f06,(_0x3d8284[_0x55baf8(0x1d9)](_0x170f06)||0x0)+0x1);},_0x29dedc=_0x24f1fb=>{const _0x2589e8=a148_0x3984;for(const _0x3b128e of _0x24f1fb){_0x55b891(_0x3b128e[_0x2589e8(0x1e9)]?.[_0x2589e8(0x1f7)]);if(_0x3b128e[_0x2589e8(0x212)])for(const _0x58abc6 of _0x3b128e[_0x2589e8(0x212)]){_0x55b891(_0x58abc6[_0x2589e8(0x1f7)]);}_0x55b891(_0x3b128e[_0x2589e8(0x206)]?.['segment']);if(_0x3b128e[_0x2589e8(0x1de)])for(const _0x63f299 of _0x3b128e['steps']){if(_0x63f299[_0x2589e8(0x1ed)]===_0x2589e8(0x1c9))for(const _0x1d3cfa of _0x63f299['with'][_0x2589e8(0x1dd)]){_0x55b891(_0x1d3cfa[_0x2589e8(0x1f7)]);}else _0x63f299['type']==='wait'&&_0x55b891(_0x63f299[_0x2589e8(0x1ce)][_0x2589e8(0x1cf)]?.[_0x2589e8(0x1f7)]);}}};_0x55b891(_0x2a4a73[_0xfe380f(0x201)]?.[_0xfe380f(0x1f7)]);if(_0x2a4a73[_0xfe380f(0x20c)])for(const _0x3463fe of _0x2a4a73['journeys']){_0x55b891(_0x3463fe[_0xfe380f(0x201)]?.['segment']),_0x29dedc(_0x3463fe[_0xfe380f(0x1df)]);}_0x2a4a73[_0xfe380f(0x1df)]&&_0x29dedc(_0x2a4a73[_0xfe380f(0x1df)]);if(_0x2a4a73[_0xfe380f(0x1fd)])for(const _0x4614e3 of _0x2a4a73[_0xfe380f(0x1fd)]){_0x29dedc(_0x4614e3[_0xfe380f(0x1df)]);}return _0x3d8284;}
|
|
1
|
+
(function(_0x1b8c77,_0x5b508d){const _0x5adadf=a148_0x3eff,_0x448f3f=_0x1b8c77();while(!![]){try{const _0x12c631=parseInt(_0x5adadf(0x1f5))/0x1+-parseInt(_0x5adadf(0x1f3))/0x2+-parseInt(_0x5adadf(0x1ef))/0x3*(parseInt(_0x5adadf(0x1d8))/0x4)+-parseInt(_0x5adadf(0x1d6))/0x5+parseInt(_0x5adadf(0x1b4))/0x6*(parseInt(_0x5adadf(0x1c2))/0x7)+-parseInt(_0x5adadf(0x1c1))/0x8+parseInt(_0x5adadf(0x1d1))/0x9;if(_0x12c631===_0x5b508d)break;else _0x448f3f['push'](_0x448f3f['shift']());}catch(_0x29eaa5){_0x448f3f['push'](_0x448f3f['shift']());}}}(a148_0x5eb0,0x9f722));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x39e9ec){const _0x133fe5=a148_0x3eff;return _0x39e9ec[_0x133fe5(0x1b6)]()[_0x133fe5(0x1dc)](/\s+/g,'_')[_0x133fe5(0x1dc)](/[^a-z0-9_\p{L}\p{N}]/gu,'')[_0x133fe5(0x1dc)](/_+/g,'_')[_0x133fe5(0x1dc)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x33e067){const _0x3b43ab=a148_0x3eff,_0x3ee271=_0x33e067[_0x3b43ab(0x1c8)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x3ee271){const _0x4c152e=_0x3ee271[0x1][_0x3b43ab(0x1b6)](),_0x19fa58=_0x3ee271[0x2],_0x3c1543=_0x19fa58['replace'](/-/g,'')[_0x3b43ab(0x1f2)](0x0,0x4)[_0x3b43ab(0x1b6)]();return _0x4c152e+'_'+_0x3c1543;}const _0x3ff7bf=_0x33e067[_0x3b43ab(0x1c8)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x3ff7bf){const _0x5395ec=_0x3ff7bf[0x1],_0x4a1483=_0x3ff7bf[0x2][_0x3b43ab(0x1b6)](),_0x142692=_0x5395ec[_0x3b43ab(0x1dc)](/-/g,'')[_0x3b43ab(0x1f2)](0x0,0x4)[_0x3b43ab(0x1b6)]();return _0x4a1483+'_'+_0x142692;}return undefined;}function stableStringify(_0x286943){const _0x1ca057=a148_0x3eff;if(Array[_0x1ca057(0x1f1)](_0x286943))return'['+_0x286943['map'](_0x447936=>stableStringify(_0x447936))[_0x1ca057(0x1ee)](',')+']';if(_0x286943&&typeof _0x286943===_0x1ca057(0x1b8)){const _0x5c9553=_0x286943,_0xd757ad=Object[_0x1ca057(0x1e7)](_0x5c9553)['sort'](),_0x5d6e68=_0xd757ad['map'](_0x509776=>'\x22'+_0x509776+'\x22:'+stableStringify(_0x5c9553[_0x509776]));return'{'+_0x5d6e68[_0x1ca057(0x1ee)](',')+'}';}const _0x26e4e1=JSON[_0x1ca057(0x1c6)](_0x286943);return _0x26e4e1===undefined?'null':_0x26e4e1;}export function consolidateActivationsByContent(_0x32a443){const _0x439e2e=a148_0x3eff,_0x3dad68={},_0x5742a4=new Map(),_0x460720=new Map();for(const _0x29b0e7 of _0x32a443){if(!_0x29b0e7)continue;for(const [_0x11c116,_0x1db11f]of Object[_0x439e2e(0x1d9)](_0x29b0e7)){const _0x2e3eca={'name':_0x1db11f['name'],'connection':_0x1db11f['connection'],..._0x1db11f[_0x439e2e(0x1eb)]!==undefined&&{'all_columns':_0x1db11f['all_columns']},..._0x1db11f[_0x439e2e(0x1c7)]!==undefined&&{'columns':_0x1db11f['columns']},..._0x1db11f[_0x439e2e(0x1cf)]!==undefined&&{'behavior':_0x1db11f['behavior']},..._0x1db11f[_0x439e2e(0x1df)]!==undefined&&{'schedule':_0x1db11f[_0x439e2e(0x1df)]},..._0x1db11f['notification']!==undefined&&{'notification':_0x1db11f[_0x439e2e(0x1e8)]},..._0x1db11f[_0x439e2e(0x1f0)]!==undefined&&{'connector_config':_0x1db11f[_0x439e2e(0x1f0)]},..._0x1db11f[_0x439e2e(0x1fa)]!==undefined&&{'activation_template_id':_0x1db11f[_0x439e2e(0x1fa)]}},_0x470bfa=stableStringify(_0x2e3eca),_0x5e9e33=_0x460720[_0x439e2e(0x1e5)](_0x470bfa);_0x5e9e33?_0x5742a4[_0x439e2e(0x1fd)](_0x11c116,_0x5e9e33):(_0x3dad68[_0x11c116]=_0x1db11f,_0x5742a4[_0x439e2e(0x1fd)](_0x11c116,_0x11c116),_0x460720[_0x439e2e(0x1fd)](_0x470bfa,_0x11c116));}}return{'merged':_0x3dad68,'nameMapping':_0x5742a4};}export function updateActivationReferences(_0x442a5d,_0x1eda10){const _0x24915b=a148_0x3eff;if(!_0x442a5d)return;for(const _0x492e3a of _0x442a5d){if(!_0x492e3a['steps'])continue;for(const _0x52fbed of _0x492e3a[_0x24915b(0x1e9)]){if(_0x52fbed[_0x24915b(0x1b7)]==='activation'&&_0x52fbed[_0x24915b(0x1c3)]?.['activation']){const _0x53a8dc=_0x1eda10['get'](_0x52fbed[_0x24915b(0x1c3)][_0x24915b(0x1da)]);_0x53a8dc&&_0x53a8dc!==_0x52fbed[_0x24915b(0x1c3)][_0x24915b(0x1da)]&&(_0x52fbed[_0x24915b(0x1c3)][_0x24915b(0x1da)]=_0x53a8dc);}}}}function a148_0x5eb0(){const _0xcf893b=['condition','set','.yml','has','draft','12llFiiW','some','toLowerCase','type','object','latest','branches','map','journeyStages','from','values','yaml','segment','5239064PKqFUh','2036699DQaTgL','with','journeys','endsWith','stringify','columns','match','journeyBundleName','entry_criteria','index','wait','activations','bundle_id','behavior','item','12669606XcVQxN','find','segments','launched','version_number','1145430uDzMmc','sort','8ONrqcM','entries','activation','name','replace','conditions','length','schedule','attributes','decision_point','versions','stages','.yaml','get','bundle_name','keys','notification','steps','merged','all_columns','goal','push','join','1113846fioIFo','connector_config','isArray','slice','1360912MSmqhJ','description','970431Wdjulp','rule','exit_criteria','milestone','startsWith','activation_template_id','version'];a148_0x5eb0=function(){return _0xcf893b;};return a148_0x5eb0();}export function consolidateSegmentsByContent(_0x230bf2,_0x251894){const _0x49b479=a148_0x3eff,_0xedabc6={},_0x3ead25=new Map(),_0x5dcd16=new Map();for(const _0x39fb17 of _0x230bf2){if(!_0x39fb17)continue;for(const [_0x13500a,_0x205950]of Object[_0x49b479(0x1d9)](_0x39fb17)){if(!_0x205950['rule']){_0xedabc6[_0x13500a]=_0x205950,_0x3ead25[_0x49b479(0x1fd)](_0x13500a,_0x13500a);continue;}const _0x2cce67=_0x205950['description']&&_0x205950[_0x49b479(0x1f4)]['trim']()?_0x205950[_0x49b479(0x1f4)]:undefined,_0x2283b0=JSON[_0x49b479(0x1c6)]({'description':_0x2cce67,'rule':deepSortObject(_0x205950[_0x49b479(0x1f6)])}),_0x19b30d=_0x5dcd16[_0x49b479(0x1e5)](_0x2283b0);if(_0x19b30d){const _0x119863={..._0x205950[_0x49b479(0x1f4)]!==undefined&&{'description':_0x205950[_0x49b479(0x1f4)]},'rule':_0x205950['rule']?deepSortObject(_0x205950[_0x49b479(0x1f6)]):_0x205950[_0x49b479(0x1f6)]};if(_0x13500a<_0x19b30d){_0xedabc6[_0x13500a]=_0x119863,delete _0xedabc6[_0x19b30d];for(const [_0x3bbe05,_0xe10eb5]of _0x3ead25[_0x49b479(0x1d9)]()){_0xe10eb5===_0x19b30d&&_0x3ead25['set'](_0x3bbe05,_0x13500a);}_0x3ead25['set'](_0x13500a,_0x13500a),_0x5dcd16['set'](_0x2283b0,_0x13500a);}else _0xedabc6[_0x19b30d]=_0x119863,_0x3ead25[_0x49b479(0x1fd)](_0x13500a,_0x19b30d);}else{let _0x4beabd=_0x13500a;if(_0x251894){const _0x1337ea=_0x251894[_0x49b479(0x1e5)](_0x2283b0);_0x1337ea&&_0x1337ea['length']>0x0&&(_0x4beabd=_0x1337ea[_0x49b479(0x1f2)]()[_0x49b479(0x1d7)]()[0x0]);}const _0x4fcd63={..._0x205950[_0x49b479(0x1f4)]!==undefined&&{'description':_0x205950[_0x49b479(0x1f4)]},'rule':_0x205950[_0x49b479(0x1f6)]?deepSortObject(_0x205950[_0x49b479(0x1f6)]):_0x205950[_0x49b479(0x1f6)]};_0xedabc6[_0x4beabd]=_0x4fcd63,_0x3ead25['set'](_0x13500a,_0x4beabd),_0x5dcd16[_0x49b479(0x1fd)](_0x2283b0,_0x4beabd);}}}return{'merged':_0xedabc6,'nameMapping':_0x3ead25};}export function updateSegmentReferences(_0x3837ae,_0x469890){const _0x5aa124=a148_0x3eff;if(!_0x3837ae)return;for(const _0x1373e2 of _0x3837ae){if(_0x1373e2[_0x5aa124(0x1ca)]?.[_0x5aa124(0x1c0)]){const _0x2a9180=_0x469890['get'](_0x1373e2[_0x5aa124(0x1ca)][_0x5aa124(0x1c0)]);_0x2a9180&&(_0x1373e2[_0x5aa124(0x1ca)][_0x5aa124(0x1c0)]=_0x2a9180);}if(_0x1373e2[_0x5aa124(0x1f7)])for(const _0x594935 of _0x1373e2['exit_criteria']){if(_0x594935[_0x5aa124(0x1c0)]){const _0x49aa04=_0x469890[_0x5aa124(0x1e5)](_0x594935[_0x5aa124(0x1c0)]);_0x49aa04&&(_0x594935[_0x5aa124(0x1c0)]=_0x49aa04);}}if(_0x1373e2[_0x5aa124(0x1f8)]?.[_0x5aa124(0x1c0)]){const _0x12b2fd=_0x469890[_0x5aa124(0x1e5)](_0x1373e2[_0x5aa124(0x1f8)][_0x5aa124(0x1c0)]);_0x12b2fd&&(_0x1373e2[_0x5aa124(0x1f8)][_0x5aa124(0x1c0)]=_0x12b2fd);}if(_0x1373e2[_0x5aa124(0x1e9)])for(const _0x49ece9 of _0x1373e2[_0x5aa124(0x1e9)]){if(_0x49ece9[_0x5aa124(0x1b7)]===_0x5aa124(0x1e1)&&_0x49ece9[_0x5aa124(0x1c3)]?.[_0x5aa124(0x1ba)])for(const _0x4df798 of _0x49ece9['with']['branches']){if(_0x4df798[_0x5aa124(0x1c0)]){const _0x236a52=_0x469890['get'](_0x4df798[_0x5aa124(0x1c0)]);_0x236a52&&(_0x4df798['segment']=_0x236a52);}}if(_0x49ece9[_0x5aa124(0x1b7)]===_0x5aa124(0x1cc)&&_0x49ece9[_0x5aa124(0x1c3)]?.[_0x5aa124(0x1fc)]?.['segment']){const _0x383178=_0x469890['get'](_0x49ece9['with'][_0x5aa124(0x1fc)][_0x5aa124(0x1c0)]);_0x383178&&(_0x49ece9[_0x5aa124(0x1c3)][_0x5aa124(0x1fc)][_0x5aa124(0x1c0)]=_0x383178);}}}}export function updateSegmentRefsInSegments(_0x4bba09,_0x2e4d4d){const _0x38fa46=a148_0x3eff;for(const _0x567f88 of Object[_0x38fa46(0x1be)](_0x4bba09)){_0x567f88[_0x38fa46(0x1f6)]&&updateSegmentRefsInRule(_0x567f88[_0x38fa46(0x1f6)],_0x2e4d4d);}}function updateSegmentRefsInRule(_0x29a519,_0x29a593){const _0xf3e705=a148_0x3eff;if(_0x29a519===null||typeof _0x29a519!==_0xf3e705(0x1b8))return;if(Array[_0xf3e705(0x1f1)](_0x29a519)){for(const _0x243ab5 of _0x29a519){updateSegmentRefsInRule(_0x243ab5,_0x29a593);}return;}const _0x59fbb1=_0x29a519;if((_0x59fbb1[_0xf3e705(0x1b7)]==='include'||_0x59fbb1[_0xf3e705(0x1b7)]==='exclude')&&typeof _0x59fbb1[_0xf3e705(0x1c0)]==='string'){const _0x4fbab1=_0x29a593[_0xf3e705(0x1e5)](_0x59fbb1['segment']);_0x4fbab1&&(_0x59fbb1['segment']=_0x4fbab1);}if(_0x59fbb1[_0xf3e705(0x1dd)]&&Array['isArray'](_0x59fbb1['conditions']))for(const _0x44f763 of _0x59fbb1[_0xf3e705(0x1dd)]){updateSegmentRefsInRule(_0x44f763,_0x29a593);}}export function buildJourneysArray(_0x1b74e3,_0xec257e){return _0x1b74e3['map'](_0x5dc889=>{const _0x32f9ae=a148_0x3eff,_0x5d4ff6=_0xec257e?_0x5dc889[_0x32f9ae(0x1d0)]['id']===_0xec257e:_0x1b74e3['length']===0x1,_0x47680d=_0x5dc889[_0x32f9ae(0x1bf)][_0x32f9ae(0x1c4)]?.[0x0],_0x24ef51=_0x47680d?.[_0x32f9ae(0x1ec)]||_0x5dc889[_0x32f9ae(0x1bf)][_0x32f9ae(0x1ec)],_0x10f59f={'version':_0x47680d?.[_0x32f9ae(0x1fb)]||_0x5dc889[_0x32f9ae(0x1bf)]['version']||_0x5dc889[_0x32f9ae(0x1d0)]['name'],'state':_0x5dc889[_0x32f9ae(0x1d0)]['state']==='launched'?_0x32f9ae(0x1d4):_0x32f9ae(0x1b3),'stages':_0x47680d?.[_0x32f9ae(0x1e3)]||_0x5dc889[_0x32f9ae(0x1bf)]['stages']||[],'id':_0x47680d?.['id']||_0x5dc889[_0x32f9ae(0x1bf)]['id'],'version_number':_0x47680d?.[_0x32f9ae(0x1d5)]||_0x5dc889[_0x32f9ae(0x1bf)][_0x32f9ae(0x1d5)]};return _0x24ef51&&(_0x10f59f['goal']=_0x24ef51),_0x5d4ff6&&(_0x10f59f[_0x32f9ae(0x1b9)]=!![]),_0x10f59f;});}export function buildMergedJourneyDef(_0x14595e,_0x415da4,_0x4be91a){const _0xf9cdf9=a148_0x3eff,_0x2ebfa4=_0x14595e[0x0][_0xf9cdf9(0x1bf)],_0x1589dc=buildJourneysArray(_0x14595e,_0x4be91a),{merged:_0x3f4127,nameMapping:_0x44f84c}=consolidateSegmentsByContent(_0x14595e[_0xf9cdf9(0x1bb)](_0x3fb2b4=>_0x3fb2b4[_0xf9cdf9(0x1bf)][_0xf9cdf9(0x1d3)]),_0x415da4);updateSegmentRefsInSegments(_0x3f4127,_0x44f84c);const _0x2f0fa5=Array[_0xf9cdf9(0x1bd)](_0x44f84c['entries']())['some'](([_0x49a0ad,_0x1a8086])=>_0x49a0ad!==_0x1a8086&&_0x49a0ad[_0xf9cdf9(0x1f9)]('entry_criteria'));let _0x145a36=_0x3f4127,_0x221a7b=new Map();if(_0x2f0fa5){const _0x570ce8=consolidateSegmentsByContent([_0x3f4127],_0x415da4);_0x145a36=_0x570ce8[_0xf9cdf9(0x1ea)],_0x221a7b=_0x570ce8['nameMapping'];}const _0x831706=new Map(_0x44f84c);for(const [_0x51efde,_0x22c933]of _0x221a7b[_0xf9cdf9(0x1d9)]()){_0x831706[_0xf9cdf9(0x1fd)](_0x51efde,_0x22c933);}for(const [_0x3d7c41,_0x12db41]of _0x831706['entries']()){let _0x371647=_0x12db41,_0x30c1f0=0x0;while(_0x831706[_0xf9cdf9(0x1ff)](_0x371647)&&_0x831706[_0xf9cdf9(0x1e5)](_0x371647)!==_0x371647&&_0x30c1f0<MAX_MAPPING_CHAIN_DEPTH){_0x371647=_0x831706[_0xf9cdf9(0x1e5)](_0x371647),_0x30c1f0++;}_0x371647!==_0x12db41&&_0x831706[_0xf9cdf9(0x1fd)](_0x3d7c41,_0x371647);}for(const _0x5b95c1 of _0x1589dc){updateSegmentReferences(_0x5b95c1['stages'],_0x831706);}const {merged:_0xb4dd40,nameMapping:_0x593bee}=consolidateActivationsByContent(_0x14595e['map'](_0x2c723c=>_0x2c723c[_0xf9cdf9(0x1bf)][_0xf9cdf9(0x1cd)]));for(const _0x4c380d of _0x1589dc){updateActivationReferences(_0x4c380d[_0xf9cdf9(0x1e3)],_0x593bee);}let _0x33267c=_0x2ebfa4[_0xf9cdf9(0x1ec)];if(_0x33267c?.[_0xf9cdf9(0x1c0)]){const _0x1228fa=_0x831706[_0xf9cdf9(0x1e5)](_0x33267c['segment']);_0x1228fa&&(_0x33267c={..._0x33267c,'segment':_0x1228fa});}for(const _0x6fd105 of _0x1589dc){if(_0x6fd105[_0xf9cdf9(0x1ec)]?.[_0xf9cdf9(0x1c0)]){const _0x5371e1=_0x831706[_0xf9cdf9(0x1e5)](_0x6fd105['goal'][_0xf9cdf9(0x1c0)]);_0x5371e1&&(_0x6fd105[_0xf9cdf9(0x1ec)]={..._0x6fd105[_0xf9cdf9(0x1ec)],'segment':_0x5371e1});}}return _0x1589dc[_0xf9cdf9(0x1b5)](_0x4a792c=>_0x4a792c[_0xf9cdf9(0x1ec)])&&(_0x33267c=undefined),{'type':'journey','name':_0x2ebfa4[_0xf9cdf9(0x1db)],'description':_0x2ebfa4[_0xf9cdf9(0x1f4)],'goal':_0x33267c,'reentry':_0x2ebfa4['reentry'],'segments':Object[_0xf9cdf9(0x1e7)](_0x145a36)[_0xf9cdf9(0x1de)]>0x0?_0x145a36:undefined,'activations':Object[_0xf9cdf9(0x1e7)](_0xb4dd40)[_0xf9cdf9(0x1de)]>0x0?_0xb4dd40:undefined,'journeys':_0x1589dc,'bundle_id':_0x2ebfa4[_0xf9cdf9(0x1ce)],'bundle_name':_0x2ebfa4[_0xf9cdf9(0x1e6)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0xda17f2,_0x134891,_0x474f6e,_0xaa1751){const _0x1ec6af=a148_0x3eff,_0x4da7a5=_0xda17f2+':'+_0x134891,_0x2d4421=_0x474f6e[_0x1ec6af(0x1e5)](_0x4da7a5);if(_0x2d4421)return _0x2d4421;const _0x4f7dc4=await _0xaa1751(_0xda17f2),_0x532f18=_0x4f7dc4[_0x1ec6af(0x1e0)][_0x1ec6af(0x1c9)]||_0x4f7dc4['attributes'][_0x1ec6af(0x1db)],_0x22f4a1=_0x4f7dc4[_0x1ec6af(0x1e0)][_0x1ec6af(0x1bc)][_0x1ec6af(0x1d2)](_0x32e1dd=>String(_0x32e1dd['id'])===String(_0x134891)),_0x427e9e=_0x22f4a1?.['name']||_0x134891,_0x100bdc={'journeyName':_0x532f18,'stageName':_0x427e9e};return _0x474f6e[_0x1ec6af(0x1fd)](_0x4da7a5,_0x100bdc),_0x100bdc;}function a148_0x3eff(_0x21f259,_0x3727b0){_0x21f259=_0x21f259-0x1b3;const _0x5eb0ee=a148_0x5eb0();let _0x3effb8=_0x5eb0ee[_0x21f259];return _0x3effb8;}export function formatApiJourneyName(_0x1076a3,_0x47b757){return _0x47b757+'\x20('+_0x1076a3+')';}export function isLocalJourneyRef(_0x1bcc3c){const _0x48ce52=a148_0x3eff;return _0x1bcc3c[_0x48ce52(0x1c5)](_0x48ce52(0x1fe))||_0x1bcc3c[_0x48ce52(0x1c5)](_0x48ce52(0x1e4));}export function buildLocalRuleToNameMapping(_0x135090){const _0x508a78=a148_0x3eff,_0x481c09=new Map();if(!_0x135090)return _0x481c09;for(const [_0x314862,_0x574735]of Object[_0x508a78(0x1d9)](_0x135090)){if(_0x574735['rule']){const _0x4131cd=serializeRule(_0x574735[_0x508a78(0x1f6)]),_0x9b1103=_0x481c09['get'](_0x4131cd)||[];_0x9b1103[_0x508a78(0x1ed)](_0x314862),_0x481c09['set'](_0x4131cd,_0x9b1103);}}return _0x481c09;}export function buildLocalRuleToNameMappingFromJourney(_0x48c14c){const _0x1390ec=a148_0x3eff,_0x2044fb=_0x48c14c['segments'];if(!_0x2044fb)return new Map();const _0x5a7148=collectSegmentUsageCounts(_0x48c14c),_0x1ef2d1=new Map();let _0x14cc6a=0x0;for(const [_0x53bfc3,_0x3ae6b4]of Object[_0x1390ec(0x1d9)](_0x2044fb)){if(!_0x3ae6b4[_0x1390ec(0x1f6)]){_0x14cc6a++;continue;}const _0x4cd075=serializeRule(_0x3ae6b4[_0x1390ec(0x1f6)]),_0x430bba=_0x1ef2d1['get'](_0x4cd075)||[];_0x430bba[_0x1390ec(0x1ed)]({'name':_0x53bfc3,'index':_0x14cc6a}),_0x1ef2d1['set'](_0x4cd075,_0x430bba),_0x14cc6a++;}const _0x59d12a=new Map();for(const [_0x5d5798,_0x5cc15c]of _0x1ef2d1){const _0x14cb62=_0x5cc15c[_0x1390ec(0x1f2)]()[_0x1390ec(0x1d7)]((_0x19d451,_0x18a209)=>{const _0x34c6c8=_0x1390ec,_0x3a0c6f=_0x5a7148[_0x34c6c8(0x1e5)](_0x19d451[_0x34c6c8(0x1db)])||0x0,_0x1cab4f=_0x5a7148[_0x34c6c8(0x1e5)](_0x18a209[_0x34c6c8(0x1db)])||0x0;if(_0x3a0c6f!==_0x1cab4f)return _0x1cab4f-_0x3a0c6f;return _0x19d451[_0x34c6c8(0x1cb)]-_0x18a209[_0x34c6c8(0x1cb)];})[_0x1390ec(0x1bb)](_0x381c32=>_0x381c32[_0x1390ec(0x1db)]);_0x59d12a['set'](_0x5d5798,_0x14cb62);}return _0x59d12a;}export function collectSegmentUsageCounts(_0x2c242b){const _0x175dd7=a148_0x3eff,_0x22c3a3=new Map(),_0x45f342=_0x12cddd=>{const _0x4173a6=a148_0x3eff;if(!_0x12cddd)return;_0x22c3a3[_0x4173a6(0x1fd)](_0x12cddd,(_0x22c3a3[_0x4173a6(0x1e5)](_0x12cddd)||0x0)+0x1);},_0x3026a1=_0x1b972e=>{const _0x3f90a1=a148_0x3eff;for(const _0x304bb2 of _0x1b972e){_0x45f342(_0x304bb2[_0x3f90a1(0x1ca)]?.[_0x3f90a1(0x1c0)]);if(_0x304bb2[_0x3f90a1(0x1f7)])for(const _0x160d5c of _0x304bb2[_0x3f90a1(0x1f7)]){_0x45f342(_0x160d5c[_0x3f90a1(0x1c0)]);}_0x45f342(_0x304bb2[_0x3f90a1(0x1f8)]?.[_0x3f90a1(0x1c0)]);if(_0x304bb2[_0x3f90a1(0x1e9)])for(const _0x48d7d5 of _0x304bb2[_0x3f90a1(0x1e9)]){if(_0x48d7d5[_0x3f90a1(0x1b7)]===_0x3f90a1(0x1e1))for(const _0x242fbc of _0x48d7d5[_0x3f90a1(0x1c3)][_0x3f90a1(0x1ba)]){_0x45f342(_0x242fbc[_0x3f90a1(0x1c0)]);}else _0x48d7d5[_0x3f90a1(0x1b7)]===_0x3f90a1(0x1cc)&&_0x45f342(_0x48d7d5[_0x3f90a1(0x1c3)][_0x3f90a1(0x1fc)]?.[_0x3f90a1(0x1c0)]);}}};_0x45f342(_0x2c242b[_0x175dd7(0x1ec)]?.[_0x175dd7(0x1c0)]);if(_0x2c242b['journeys'])for(const _0x1e181b of _0x2c242b[_0x175dd7(0x1c4)]){_0x45f342(_0x1e181b[_0x175dd7(0x1ec)]?.[_0x175dd7(0x1c0)]),_0x3026a1(_0x1e181b[_0x175dd7(0x1e3)]);}_0x2c242b[_0x175dd7(0x1e3)]&&_0x3026a1(_0x2c242b[_0x175dd7(0x1e3)]);if(_0x2c242b[_0x175dd7(0x1e2)])for(const _0x207cae of _0x2c242b['versions']){_0x3026a1(_0x207cae[_0x175dd7(0x1e3)]);}return _0x22c3a3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3faa1d,_0x2eb65d){const _0x4b2766=a149_0x3263,_0x215c28=_0x3faa1d();while(!![]){try{const _0x2845c4=parseInt(_0x4b2766(0x1ee))/0x1*(-parseInt(_0x4b2766(0x24f))/0x2)+parseInt(_0x4b2766(0x279))/0x3*(-parseInt(_0x4b2766(0x229))/0x4)+-parseInt(_0x4b2766(0x262))/0x5+-parseInt(_0x4b2766(0x252))/0x6*(-parseInt(_0x4b2766(0x208))/0x7)+parseInt(_0x4b2766(0x245))/0x8+parseInt(_0x4b2766(0x214))/0x9*(parseInt(_0x4b2766(0x221))/0xa)+parseInt(_0x4b2766(0x280))/0xb*(-parseInt(_0x4b2766(0x22e))/0xc);if(_0x2845c4===_0x2eb65d)break;else _0x215c28['push'](_0x215c28['shift']());}catch(_0x31f60b){_0x215c28['push'](_0x215c28['shift']());}}}(a149_0x1968,0x62ddf));import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x72628a,_0x428369,_0x282fc4,_0x1cd0eb,_0x89356b,_0xe8c465){const _0x5aa806=a149_0x3263;return{'level':_0x72628a,'path':_0x428369,'code':_0x282fc4,'message':_0x1cd0eb,'location':getLocationFromPath(_0x89356b[_0x5aa806(0x26d)],_0x89356b['source'],pathToArray(_0xe8c465??_0x428369))};}function validateVersionStructure(_0x1c4dca,_0x1c1291){const _0x3a0f40=a149_0x3263,_0x27a2ab=[];return _0x1c4dca[_0x3a0f40(0x1e2)]>MAX_STAGES&&_0x27a2ab['push'](createIssue(_0x3a0f40(0x230),_0x3a0f40(0x269),_0x3a0f40(0x1f5),_0x3a0f40(0x281)+_0x1c4dca[_0x3a0f40(0x1e2)]+_0x3a0f40(0x1fd)+MAX_STAGES,_0x1c1291)),_0x27a2ab;}function validateStageStructure(_0x2dd963,_0x740cfb,_0x46a895,_0x31fb8b){const _0x31f5b6=a149_0x3263,_0x5477ba=[],_0x135608=_0x31f5b6(0x21b)+_0x740cfb+']';_0x740cfb===0x0&&!_0x2dd963[_0x31f5b6(0x1dc)]&&_0x5477ba['push'](createIssue(_0x31f5b6(0x230),_0x135608+_0x31f5b6(0x277),_0x31f5b6(0x273),_0x31f5b6(0x256)+_0x2dd963[_0x31f5b6(0x28a)]+_0x31f5b6(0x21e),_0x31fb8b,_0x135608));const _0x38de37=_0x740cfb===_0x46a895-0x1;!_0x38de37&&!_0x2dd963[_0x31f5b6(0x26a)]&&_0x5477ba[_0x31f5b6(0x285)](createIssue(_0x31f5b6(0x230),_0x135608+_0x31f5b6(0x249),_0x31f5b6(0x23b),_0x31f5b6(0x256)+_0x2dd963['name']+_0x31f5b6(0x250),_0x31fb8b,_0x135608));(!_0x2dd963[_0x31f5b6(0x261)]||_0x2dd963[_0x31f5b6(0x261)][_0x31f5b6(0x1e2)]===0x0)&&_0x5477ba[_0x31f5b6(0x285)](createIssue(_0x31f5b6(0x27d),_0x135608+'.exit_criteria',_0x31f5b6(0x22d),_0x31f5b6(0x256)+_0x2dd963[_0x31f5b6(0x28a)]+_0x31f5b6(0x1dd),_0x31fb8b,_0x135608));const _0x71753=_0x2dd963['steps']?.[_0x31f5b6(0x1e2)]??0x0;if(_0x71753===0x0)_0x5477ba['push'](createIssue(_0x31f5b6(0x230),_0x135608+_0x31f5b6(0x1f1),_0x31f5b6(0x217),'Stage\x20\x27'+_0x2dd963[_0x31f5b6(0x28a)]+_0x31f5b6(0x27b),_0x31fb8b,_0x135608+_0x31f5b6(0x1f1)));else{if(_0x71753===0x1)_0x5477ba[_0x31f5b6(0x285)](createIssue(_0x31f5b6(0x27d),_0x135608+_0x31f5b6(0x1f1),'INSUFFICIENT_STEPS',_0x31f5b6(0x256)+_0x2dd963[_0x31f5b6(0x28a)]+_0x31f5b6(0x1d6),_0x31fb8b,_0x135608+'.steps'));else _0x71753<=0x3&&_0x5477ba[_0x31f5b6(0x285)](createIssue('warning',_0x135608+_0x31f5b6(0x1f1),_0x31f5b6(0x1fa),'Stage\x20\x27'+_0x2dd963['name']+_0x31f5b6(0x24c)+_0x71753+'\x20steps\x20(may\x20be\x20too\x20simple)',_0x31fb8b,_0x135608+_0x31f5b6(0x1f1)));}return _0x5477ba;}function validateStep(_0x146f24,_0x50ccdd,_0x2c55b3,_0x531422){const _0x2273a5=a149_0x3263,_0xa40e15=[];if(_0x146f24[_0x2273a5(0x1f7)]===_0x2273a5(0x21f))return _0x146f24[_0x2273a5(0x288)]&&_0xa40e15[_0x2273a5(0x285)](createIssue(_0x2273a5(0x230),_0x50ccdd+'.next',_0x2273a5(0x1f0),'End\x20step\x20\x27'+_0x146f24[_0x2273a5(0x28a)]+_0x2273a5(0x1eb),_0x2c55b3)),_0x2273a5(0x1ec)in _0x146f24&&_0x146f24['with']!==undefined&&_0xa40e15[_0x2273a5(0x285)](createIssue(_0x2273a5(0x230),_0x50ccdd+'.with',_0x2273a5(0x1f0),_0x2273a5(0x24d)+_0x146f24[_0x2273a5(0x28a)]+'\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field',_0x2c55b3)),_0xa40e15;_0x146f24[_0x2273a5(0x288)]&&(_0x2c55b3[_0x2273a5(0x215)]&&!_0x2c55b3['stepNames'][_0x2273a5(0x289)](_0x146f24[_0x2273a5(0x288)])&&_0xa40e15[_0x2273a5(0x285)](createIssue(_0x2273a5(0x230),_0x50ccdd+_0x2273a5(0x21c),_0x2273a5(0x20f),_0x2273a5(0x239)+_0x146f24[_0x2273a5(0x288)]+'\x27',_0x2c55b3)));switch(_0x146f24['type']){case _0x2273a5(0x266):_0xa40e15[_0x2273a5(0x285)](...validateWaitStep(_0x146f24,_0x50ccdd,_0x2c55b3,_0x531422));break;case _0x2273a5(0x1e4):_0xa40e15[_0x2273a5(0x285)](...validateActivationStep(_0x146f24,_0x50ccdd,_0x2c55b3));break;case'decision_point':_0xa40e15['push'](...validateDecisionPointStep(_0x146f24,_0x50ccdd,_0x2c55b3,_0x531422));break;case _0x2273a5(0x1f8):_0xa40e15[_0x2273a5(0x285)](...validateAbTestStep(_0x146f24,_0x50ccdd,_0x2c55b3,_0x531422));break;case'jump':_0xa40e15[_0x2273a5(0x285)](...validateJumpStep(_0x146f24,_0x50ccdd,_0x2c55b3));break;}return _0xa40e15;}function validateWaitStep(_0x3de9f2,_0x4a7d03,_0x234aff,_0x911db2){const _0x30b2dc=a149_0x3263,_0x1ba215=[];if(!_0x3de9f2[_0x30b2dc(0x1ec)])return _0x1ba215[_0x30b2dc(0x285)](createIssue(_0x30b2dc(0x230),_0x4a7d03+_0x30b2dc(0x27c),_0x30b2dc(0x260),'Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field',_0x234aff,_0x4a7d03)),_0x1ba215;if(_0x3de9f2['with'][_0x30b2dc(0x1fc)]){const _0xf50376=_0x3de9f2[_0x30b2dc(0x1ec)][_0x30b2dc(0x1fc)];if(_0xf50376[_0x30b2dc(0x200)]){_0x234aff[_0x30b2dc(0x1d5)]?.['add'](_0xf50376['segment']);!_0xf50376[_0x30b2dc(0x200)]['startsWith'](_0x30b2dc(0x20e))&&(_0x234aff[_0x30b2dc(0x235)]&&!_0x234aff['embeddedSegments'][_0x30b2dc(0x289)](_0xf50376[_0x30b2dc(0x200)])&&_0x1ba215['push'](createIssue(_0x30b2dc(0x230),_0x4a7d03+_0x30b2dc(0x25c),'MISSING_SEGMENT_REFERENCE',_0x30b2dc(0x204)+_0xf50376[_0x30b2dc(0x200)]+'\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.',_0x234aff)));_0xf50376[_0x30b2dc(0x288)]&&_0x234aff[_0x30b2dc(0x215)]&&!_0x234aff[_0x30b2dc(0x215)][_0x30b2dc(0x289)](_0xf50376[_0x30b2dc(0x288)])&&_0x1ba215[_0x30b2dc(0x285)](createIssue('error',_0x4a7d03+_0x30b2dc(0x24a),_0x30b2dc(0x20f),_0x30b2dc(0x1e8)+_0xf50376[_0x30b2dc(0x288)]+'\x27',_0x234aff));_0xf50376[_0x30b2dc(0x267)]?.[_0x30b2dc(0x288)]&&_0x234aff['stepNames']&&!_0x234aff[_0x30b2dc(0x215)]['has'](_0xf50376[_0x30b2dc(0x267)][_0x30b2dc(0x288)])&&_0x1ba215['push'](createIssue(_0x30b2dc(0x230),_0x4a7d03+_0x30b2dc(0x28b),_0x30b2dc(0x20f),_0x30b2dc(0x26b)+_0xf50376['timeout'][_0x30b2dc(0x288)]+'\x27',_0x234aff));const _0x1e0d25=_0xf50376['next']||_0x3de9f2[_0x30b2dc(0x288)],_0x2033e6=_0xf50376[_0x30b2dc(0x267)]?.[_0x30b2dc(0x288)]||_0x3de9f2[_0x30b2dc(0x288)];if(_0x1e0d25){const _0x40b847=_0x911db2[_0x30b2dc(0x254)](_0x1e0d25);_0x40b847?.[_0x30b2dc(0x1f7)]===_0x30b2dc(0x232)&&_0x1ba215[_0x30b2dc(0x285)](createIssue(_0x30b2dc(0x27d),_0x4a7d03+_0x30b2dc(0x24a),_0x30b2dc(0x218),_0x30b2dc(0x1df)+_0x1e0d25+_0x30b2dc(0x284),_0x234aff,_0x4a7d03+'.with.condition'));}if(_0x2033e6){const _0x4d62e6=_0x911db2[_0x30b2dc(0x254)](_0x2033e6);_0x4d62e6?.[_0x30b2dc(0x1f7)]===_0x30b2dc(0x232)&&_0x1ba215[_0x30b2dc(0x285)](createIssue('warning',_0x4a7d03+'.with.condition.timeout.next','BRANCH_DIRECTLY_TO_MERGE',_0x30b2dc(0x1d9)+_0x2033e6+_0x30b2dc(0x284),_0x234aff,_0x4a7d03+_0x30b2dc(0x253)));}}}return _0x1ba215;}function validateActivationStep(_0x27e5c2,_0x1509d8,_0x870ddf){const _0x44a2a8=a149_0x3263,_0x398fe3=[];if(!_0x27e5c2[_0x44a2a8(0x1ec)]?.['activation'])return _0x398fe3[_0x44a2a8(0x285)](createIssue(_0x44a2a8(0x230),_0x1509d8+'.with.activation',_0x44a2a8(0x270),_0x44a2a8(0x1e1),_0x870ddf,_0x1509d8)),_0x398fe3;const _0x561481=_0x27e5c2[_0x44a2a8(0x1ec)][_0x44a2a8(0x1e4)];return _0x870ddf[_0x44a2a8(0x1e0)]&&!_0x561481[_0x44a2a8(0x22f)](_0x44a2a8(0x20e))&&(!_0x870ddf[_0x44a2a8(0x1e0)][_0x44a2a8(0x289)](_0x561481)&&_0x398fe3['push'](createIssue(_0x44a2a8(0x230),_0x1509d8+_0x44a2a8(0x243),_0x44a2a8(0x26e),_0x44a2a8(0x1db)+_0x561481+'\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.',_0x870ddf))),_0x398fe3;}function validateDecisionPointStep(_0x5dcd30,_0x3a505e,_0x5da65c,_0x15e68d){const _0x8fa257=a149_0x3263,_0x7db044=[];if(!_0x5dcd30[_0x8fa257(0x1ec)]?.[_0x8fa257(0x227)]||_0x5dcd30[_0x8fa257(0x1ec)][_0x8fa257(0x227)][_0x8fa257(0x1e2)]===0x0)return _0x7db044['push'](createIssue(_0x8fa257(0x230),_0x3a505e+'.with.branches','MISSING_CONDITIONS',_0x8fa257(0x24b),_0x5da65c,_0x3a505e)),_0x7db044;for(let _0x57dd07=0x0;_0x57dd07<_0x5dcd30[_0x8fa257(0x1ec)][_0x8fa257(0x227)][_0x8fa257(0x1e2)];_0x57dd07++){const _0x2c89c1=_0x5dcd30[_0x8fa257(0x1ec)][_0x8fa257(0x227)][_0x57dd07],_0x21609d=_0x3a505e+_0x8fa257(0x287)+_0x57dd07+']';_0x2c89c1['segment']&&!_0x2c89c1[_0x8fa257(0x20c)]&&(_0x5da65c['referencedSegments']?.['add'](_0x2c89c1['segment']),!_0x2c89c1[_0x8fa257(0x200)][_0x8fa257(0x22f)](_0x8fa257(0x20e))&&(_0x5da65c[_0x8fa257(0x235)]&&!_0x5da65c[_0x8fa257(0x235)][_0x8fa257(0x289)](_0x2c89c1['segment'])&&_0x7db044[_0x8fa257(0x285)](createIssue('error',_0x21609d+_0x8fa257(0x278),'MISSING_SEGMENT_REFERENCE',_0x8fa257(0x231)+_0x2c89c1[_0x8fa257(0x200)]+'\x27',_0x5da65c))));_0x2c89c1[_0x8fa257(0x288)]&&_0x5da65c[_0x8fa257(0x215)]&&!_0x5da65c[_0x8fa257(0x215)]['has'](_0x2c89c1[_0x8fa257(0x288)])&&_0x7db044[_0x8fa257(0x285)](createIssue('error',_0x21609d+_0x8fa257(0x21c),_0x8fa257(0x20f),_0x8fa257(0x202)+_0x2c89c1[_0x8fa257(0x288)]+'\x27',_0x5da65c));if(_0x2c89c1[_0x8fa257(0x288)]){const _0x5994d9=_0x15e68d[_0x8fa257(0x254)](_0x2c89c1['next']);_0x5994d9?.[_0x8fa257(0x1f7)]===_0x8fa257(0x232)&&_0x7db044['push'](createIssue('warning',_0x21609d+_0x8fa257(0x21c),'BRANCH_DIRECTLY_TO_MERGE',_0x8fa257(0x22a)+_0x2c89c1['name']+_0x8fa257(0x1fb)+_0x2c89c1['next']+'\x27\x20with\x20no\x20action\x20in\x20between',_0x5da65c));}}return _0x7db044;}function validateAbTestStep(_0x17e8d3,_0x256c9c,_0x565d1c,_0x4bd430){const _0x303aff=a149_0x3263,_0x443995=[];if(!_0x17e8d3[_0x303aff(0x1ec)]?.[_0x303aff(0x25f)]||_0x17e8d3[_0x303aff(0x1ec)]['variants'][_0x303aff(0x1e2)]===0x0)return _0x443995[_0x303aff(0x285)](createIssue(_0x303aff(0x230),_0x256c9c+_0x303aff(0x1f4),'MISSING_CONDITIONS',_0x303aff(0x23e),_0x565d1c,_0x256c9c)),_0x443995;const _0x15a4bd=_0x17e8d3[_0x303aff(0x1ec)]['variants'][_0x303aff(0x1ef)]((_0x326c7c,_0x19eb3a)=>_0x326c7c+(_0x19eb3a['percentage']||0x0),0x0);Math[_0x303aff(0x225)](_0x15a4bd-0x64)>0.01&&_0x443995[_0x303aff(0x285)](createIssue(_0x303aff(0x230),_0x256c9c+_0x303aff(0x1f4),_0x303aff(0x1e3),'A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20'+_0x15a4bd+'%)',_0x565d1c));for(let _0x56b040=0x0;_0x56b040<_0x17e8d3['with'][_0x303aff(0x25f)][_0x303aff(0x1e2)];_0x56b040++){const _0x356558=_0x17e8d3[_0x303aff(0x1ec)][_0x303aff(0x25f)][_0x56b040],_0x4e1659=_0x256c9c+'.with.variants['+_0x56b040+']';_0x356558[_0x303aff(0x288)]&&_0x565d1c[_0x303aff(0x215)]&&!_0x565d1c['stepNames'][_0x303aff(0x289)](_0x356558[_0x303aff(0x288)])&&_0x443995[_0x303aff(0x285)](createIssue(_0x303aff(0x230),_0x4e1659+_0x303aff(0x21c),_0x303aff(0x20f),'A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27'+_0x356558[_0x303aff(0x288)]+'\x27',_0x565d1c));if(_0x356558[_0x303aff(0x288)]){const _0x5f0a95=_0x4bd430['get'](_0x356558['next']);_0x5f0a95?.[_0x303aff(0x1f7)]===_0x303aff(0x232)&&_0x443995[_0x303aff(0x285)](createIssue(_0x303aff(0x27d),_0x4e1659+_0x303aff(0x21c),_0x303aff(0x218),_0x303aff(0x1de)+_0x356558[_0x303aff(0x28a)]+'\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x356558[_0x303aff(0x288)]+_0x303aff(0x1da),_0x565d1c));}}return _0x443995;}function a149_0x3263(_0x2cd727,_0x38040a){_0x2cd727=_0x2cd727-0x1d4;const _0x196813=a149_0x1968();let _0x326307=_0x196813[_0x2cd727];return _0x326307;}function validateJumpStep(_0x366510,_0x269b62,_0x201387){const _0x106305=a149_0x3263,_0x4f79f=[];if(!_0x366510[_0x106305(0x1ec)]?.[_0x106305(0x219)])return _0x4f79f[_0x106305(0x285)](createIssue(_0x106305(0x230),_0x269b62+_0x106305(0x1d7),_0x106305(0x1ed),_0x106305(0x228),_0x201387,_0x269b62)),_0x4f79f;return(!_0x366510[_0x106305(0x1ec)]['target'][_0x106305(0x20d)]||!_0x366510[_0x106305(0x1ec)][_0x106305(0x219)]['stage'])&&_0x4f79f[_0x106305(0x285)](createIssue(_0x106305(0x230),_0x269b62+_0x106305(0x1d7),_0x106305(0x1ed),'Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names',_0x201387)),_0x4f79f;}function buildConvergenceMap(_0x21a92f){const _0x437b23=a149_0x3263,_0x4915bf=new Map();function _0x5632f1(_0x2dea1d,_0x572e4f){const _0x5bd67d=a149_0x3263,_0x16caaf=_0x4915bf[_0x5bd67d(0x254)](_0x2dea1d)||[];_0x16caaf[_0x5bd67d(0x285)](_0x572e4f),_0x4915bf['set'](_0x2dea1d,_0x16caaf);}for(const _0x4f87b0 of _0x21a92f){_0x4f87b0[_0x437b23(0x288)]&&_0x5632f1(_0x4f87b0['next'],{'stepName':_0x4f87b0[_0x437b23(0x28a)],'description':_0x437b23(0x210)+_0x4f87b0['name']+'\x27'});if(_0x4f87b0[_0x437b23(0x1f7)]===_0x437b23(0x246)&&_0x4f87b0['with']?.[_0x437b23(0x227)])for(const _0x547038 of _0x4f87b0[_0x437b23(0x1ec)]['branches']){_0x547038[_0x437b23(0x288)]&&_0x5632f1(_0x547038[_0x437b23(0x288)],{'stepName':_0x4f87b0[_0x437b23(0x28a)],'description':_0x437b23(0x263)+_0x547038[_0x437b23(0x28a)]+_0x437b23(0x1e7)+_0x4f87b0[_0x437b23(0x28a)]+'\x27'});}if(_0x4f87b0[_0x437b23(0x1f7)]===_0x437b23(0x1f8)&&_0x4f87b0[_0x437b23(0x1ec)]?.['variants'])for(const _0x1066e6 of _0x4f87b0[_0x437b23(0x1ec)][_0x437b23(0x25f)]){_0x1066e6[_0x437b23(0x288)]&&_0x5632f1(_0x1066e6[_0x437b23(0x288)],{'stepName':_0x4f87b0['name'],'description':_0x437b23(0x1f3)+_0x1066e6[_0x437b23(0x28a)]+_0x437b23(0x1e7)+_0x4f87b0['name']+'\x27'});}_0x4f87b0[_0x437b23(0x1f7)]===_0x437b23(0x266)&&_0x4f87b0[_0x437b23(0x1ec)]?.[_0x437b23(0x1fc)]&&(_0x4f87b0['with'][_0x437b23(0x1fc)][_0x437b23(0x288)]&&_0x5632f1(_0x4f87b0[_0x437b23(0x1ec)][_0x437b23(0x1fc)][_0x437b23(0x288)],{'stepName':_0x4f87b0[_0x437b23(0x28a)],'description':_0x437b23(0x25a)+_0x4f87b0[_0x437b23(0x28a)]+'\x27'}),_0x4f87b0['with'][_0x437b23(0x1fc)][_0x437b23(0x267)]?.[_0x437b23(0x288)]&&_0x5632f1(_0x4f87b0[_0x437b23(0x1ec)][_0x437b23(0x1fc)][_0x437b23(0x267)][_0x437b23(0x288)],{'stepName':_0x4f87b0[_0x437b23(0x28a)],'description':'timeout\x20of\x20\x27'+_0x4f87b0[_0x437b23(0x28a)]+'\x27'}));}return _0x4915bf;}function validateFlowControl(_0x2416f0,_0x227d61,_0x56d095){const _0x1141ad=a149_0x3263,_0x516dbc=[],_0x5a70e4=_0x1141ad(0x21b)+_0x227d61+']',_0x9e8b2d=_0x2416f0[_0x1141ad(0x268)]||[];if(_0x9e8b2d[_0x1141ad(0x1e2)]===0x0)return _0x516dbc;const _0x6162fa=new Map();for(const _0x2690b0 of _0x9e8b2d){_0x2690b0[_0x1141ad(0x28a)]&&_0x6162fa[_0x1141ad(0x234)](_0x2690b0[_0x1141ad(0x28a)],_0x2690b0);}const _0xcc8c3c=buildConvergenceMap(_0x9e8b2d),_0x850d1a=_0x9e8b2d[_0x1141ad(0x220)](_0x15362b=>_0x15362b[_0x1141ad(0x1f7)]===_0x1141ad(0x21f));!_0x850d1a&&_0x516dbc['push'](createIssue(_0x1141ad(0x230),_0x5a70e4+_0x1141ad(0x1f1),_0x1141ad(0x209),_0x1141ad(0x256)+_0x2416f0[_0x1141ad(0x28a)]+_0x1141ad(0x213),_0x56d095));for(const [_0x354a97,_0x2204f4]of _0xcc8c3c){const _0x17143f=_0x6162fa[_0x1141ad(0x254)](_0x354a97);if(!_0x17143f)continue;if(_0x2204f4[_0x1141ad(0x1e2)]>0x1&&_0x17143f[_0x1141ad(0x1f7)]!=='merge'){const _0x11fb8a=_0x2204f4[_0x1141ad(0x248)](_0x30c61c=>_0x30c61c[_0x1141ad(0x1f6)])[_0x1141ad(0x1f2)](',\x20');_0x516dbc['push'](createIssue('error',_0x5a70e4+'.steps',_0x1141ad(0x241),'Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27'+_0x354a97+'\x27\x20(from:\x20'+_0x11fb8a+_0x1141ad(0x258),_0x56d095));}_0x2204f4[_0x1141ad(0x1e2)]===0x1&&_0x17143f[_0x1141ad(0x1f7)]===_0x1141ad(0x232)&&_0x516dbc[_0x1141ad(0x285)](createIssue(_0x1141ad(0x27d),_0x5a70e4+'.steps',_0x1141ad(0x274),_0x1141ad(0x207)+_0x354a97+_0x1141ad(0x22c)+_0x2204f4[0x0]['description']+_0x1141ad(0x282),_0x56d095));}for(const _0x4de012 of _0x9e8b2d){if(_0x4de012['type']===_0x1141ad(0x232)&&_0x4de012[_0x1141ad(0x288)]){const _0x2ec020=_0x6162fa[_0x1141ad(0x254)](_0x4de012[_0x1141ad(0x288)]);_0x2ec020?.[_0x1141ad(0x1f7)]==='merge'&&_0x516dbc[_0x1141ad(0x285)](createIssue(_0x1141ad(0x230),_0x5a70e4+_0x1141ad(0x1f1),_0x1141ad(0x1fe),_0x1141ad(0x207)+_0x4de012['name']+_0x1141ad(0x22b)+_0x4de012[_0x1141ad(0x288)]+_0x1141ad(0x1e6),_0x56d095));}}return _0x516dbc;}function a149_0x1968(){const _0x364c34=['stages[','.next','journeys[','\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)','end','some','487280PJSSsv','MISSING_GOAL','goal','sort','abs','\x27\x20(first\x20defined\x20at\x20steps[','branches','Jump\x20step\x20requires\x20a\x20target','27376YoMEhO','Decision\x20branch\x20\x27','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','MISSING_EXIT_CRITERIA','12YRdAOh','startsWith','error','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27','merge','size','set','embeddedSegments','indices','goalIsInherited','journeys,\x20stages,\x20or\x20versions','Step\x20references\x20non-existent\x20step\x20\x27','segments.','MISSING_MILESTONE','code','activations','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','symbol','splice','CONVERGENCE_WITHOUT_MERGE','values','.with.activation','level','1044880KfhZAR','decision_point','issues','map','.milestone','.with.condition.next','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','\x27\x20has\x20only\x20','End\x20step\x20\x27','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','2YOdsLF','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','endsWith','132pwGVGy','.with.condition.timeout','get','journey\x20entry','Stage\x20\x27','\x20with\x20latest:\x20true',').\x20Use\x20a\x20merge\x20step.','replace','condition\x20of\x20\x27','ACTIVATION_SCHEMA_ERROR','.with.condition.segment','Journey\x20has\x20no\x20goal\x20defined','data','variants','MISSING_WAIT_PARAMS','exit_criteria','3030875QMCaYt','branch\x20\x27','path','segments','wait','timeout','steps','stages','milestone','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','launched','document','MISSING_ACTIVATION_DEFINITION','Journey\x20name\x20is\x20required','MISSING_ACTIVATION_REF','MISSING_NAME','versions','MISSING_ENTRY_CRITERIA','SINGLE_INPUT_MERGE','filter','add','.entry_criteria','.segment','9bDobaf','MISSING_STAGES','\x27\x20has\x20no\x20steps','.with','warning','Duplicate\x20step\x20name\x20\x27','includes','2177263ZlNYNI','Journey\x20has\x20',').\x20Merge\x20is\x20unnecessary.','source','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','push','Criteria\x20references\x20undefined\x20segment\x20\x27','.with.branches[','next','has','name','.with.condition.timeout.next','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','referencedSegments','\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)','.with.target','trim','Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','\x27\x20with\x20no\x20action\x20in\x20between','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','entry_criteria','\x27\x20has\x20no\x20exit_criteria\x20defined','A/B\x20test\x20variant\x20\x27','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','activationKeys','Activation\x20step\x20requires\x20an\x20activation\x20reference','length','INVALID_AB_TEST_PERCENTAGES','activation','JOURNEY_SCHEMA_ERROR','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','\x27\x20of\x20\x27','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','version','journeys','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','with','INVALID_JUMP_TARGET','211213uggdOo','reduce','END_STEP_HAS_NEXT_OR_WITH','.steps','join','variant\x20\x27','.with.variants','TOO_MANY_STAGES','description','type','ab_test','skipSchema','FEW_STEPS','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','condition','\x20stages\x20but\x20maximum\x20is\x20','MERGE_TO_MERGE_CHAIN','message','segment','.steps[','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','Journey\x20can\x20have\x20at\x20most\x20one\x20','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','MISSING_SEGMENT_REFERENCE','.rule','Merge\x20step\x20\x27','184317dLcJJB','MISSING_END_STEP','state','keys','excluded','journey','ref:','INVALID_NEXT_REFERENCE','step\x20\x27','safeParse','DUPLICATE_STEP_NAME','\x27\x20has\x20no\x20end\x20step','135xOndiV','stepNames','Embedded\x20segment\x20\x27','INSUFFICIENT_STEPS','BRANCH_DIRECTLY_TO_MERGE','target','entries'];a149_0x1968=function(){return _0x364c34;};return a149_0x1968();}function validateCriteria(_0x599c04,_0xac3ca8,_0x25eda1){const _0x3f9769=a149_0x3263,_0x1db34c=[];return _0x599c04['segment']&&(_0x25eda1[_0x3f9769(0x1d5)]?.[_0x3f9769(0x276)](_0x599c04[_0x3f9769(0x200)]),!_0x599c04['segment'][_0x3f9769(0x22f)](_0x3f9769(0x20e))&&(_0x25eda1[_0x3f9769(0x235)]&&!_0x25eda1[_0x3f9769(0x235)][_0x3f9769(0x289)](_0x599c04[_0x3f9769(0x200)])&&_0x1db34c[_0x3f9769(0x285)](createIssue('error',_0xac3ca8+_0x3f9769(0x278),_0x3f9769(0x205),_0x3f9769(0x286)+_0x599c04[_0x3f9769(0x200)]+'\x27',_0x25eda1)))),_0x1db34c;}function validateEmbeddedSegment(_0x36e4c1,_0x336d59,_0x5a25a6){const _0x328544=a149_0x3263,_0x12ebca=[];return _0x36e4c1['rule']&&_0x12ebca[_0x328544(0x285)](...validateRuleDef(_0x36e4c1['rule'],_0x336d59+_0x328544(0x206),_0x5a25a6)),_0x12ebca;}function validateStage(_0x360469,_0x23bcf1,_0x1a70c4,_0x2af485){const _0x3f7173=a149_0x3263,_0x5e2207=[],_0x395a94='stages['+_0x23bcf1+']',_0x38939b=new Map(),_0x4c7c26=new Map();if(_0x360469[_0x3f7173(0x268)]){for(let _0x3a8930=0x0;_0x3a8930<_0x360469['steps'][_0x3f7173(0x1e2)];_0x3a8930++){const _0x302bf6=_0x360469[_0x3f7173(0x268)][_0x3a8930];_0x302bf6['name']&&_0x38939b[_0x3f7173(0x234)](_0x302bf6['name'],_0x302bf6);}for(let _0x5256d8=0x0;_0x5256d8<_0x360469[_0x3f7173(0x268)]['length'];_0x5256d8++){const _0xab65c1=_0x360469[_0x3f7173(0x268)][_0x5256d8],_0x26247f=_0x395a94+_0x3f7173(0x201)+_0x5256d8+']';if(_0xab65c1[_0x3f7173(0x28a)]){if(_0x4c7c26[_0x3f7173(0x289)](_0xab65c1[_0x3f7173(0x28a)])){const _0x139392=_0x4c7c26['get'](_0xab65c1[_0x3f7173(0x28a)]);_0x5e2207[_0x3f7173(0x285)](createIssue(_0x3f7173(0x230),_0x26247f+'.name',_0x3f7173(0x212),_0x3f7173(0x27e)+_0xab65c1['name']+_0x3f7173(0x226)+_0x139392+'])',_0x2af485));}else _0x4c7c26['set'](_0xab65c1[_0x3f7173(0x28a)],_0x5256d8);}_0x5e2207['push'](...validateStep(_0xab65c1,_0x26247f,_0x2af485,_0x38939b));}}_0x360469['entry_criteria']&&_0x5e2207[_0x3f7173(0x285)](...validateCriteria(_0x360469[_0x3f7173(0x1dc)],_0x395a94+'.entry_criteria',_0x2af485));if(_0x360469[_0x3f7173(0x261)])for(let _0x4fe8e7=0x0;_0x4fe8e7<_0x360469[_0x3f7173(0x261)][_0x3f7173(0x1e2)];_0x4fe8e7++){_0x5e2207[_0x3f7173(0x285)](...validateCriteria(_0x360469[_0x3f7173(0x261)][_0x4fe8e7],_0x395a94+'.exit_criteria['+_0x4fe8e7+']',_0x2af485));}return _0x360469[_0x3f7173(0x26a)]&&_0x5e2207['push'](...validateCriteria(_0x360469[_0x3f7173(0x26a)],_0x395a94+_0x3f7173(0x249),_0x2af485)),_0x5e2207[_0x3f7173(0x285)](...validateStageStructure(_0x360469,_0x23bcf1,_0x1a70c4,_0x2af485)),_0x5e2207[_0x3f7173(0x285)](...validateFlowControl(_0x360469,_0x23bcf1,_0x2af485)),_0x5e2207;}function validateStagesForVersion(_0x538a75,_0x20f12f,_0x2dffb6,_0x524fd0,_0x767fac,_0x4c564a,_0x42fd89){const _0x2c3f2d=a149_0x3263;if(_0x538a75[_0x2c3f2d(0x1e2)]===0x0){_0x767fac['push']({'level':_0x2c3f2d(0x230),'path':_0x524fd0+_0x2c3f2d(0x269),'code':_0x2c3f2d(0x27a),'message':_0x2c3f2d(0x24e),'location':getLocationFromPath(_0x2dffb6[_0x2c3f2d(0x26d)],_0x2dffb6[_0x2c3f2d(0x283)],[_0x2c3f2d(0x269)])});return;}const _0x5d5b6f=new Set();for(const _0x98eaee of _0x538a75){if(_0x98eaee[_0x2c3f2d(0x268)])for(const _0x194e04 of _0x98eaee[_0x2c3f2d(0x268)]){_0x194e04[_0x2c3f2d(0x28a)]&&_0x5d5b6f[_0x2c3f2d(0x276)](_0x194e04[_0x2c3f2d(0x28a)]);}}const _0x484b79={..._0x2dffb6,'stepNames':_0x5d5b6f},_0x15bb17=validateVersionStructure(_0x538a75,_0x484b79);for(const _0x3f1aa1 of _0x15bb17){const _0x56ec06=_0x524fd0?{..._0x3f1aa1,'path':''+_0x524fd0+_0x3f1aa1['path']}:_0x3f1aa1;if(_0x56ec06[_0x2c3f2d(0x244)]==='error')_0x767fac[_0x2c3f2d(0x285)](_0x56ec06);else _0x4c564a[_0x2c3f2d(0x285)](_0x56ec06);}for(let _0x1783b7=0x0;_0x1783b7<_0x538a75[_0x2c3f2d(0x1e2)];_0x1783b7++){const _0x5bfc67=validateStage(_0x538a75[_0x1783b7],_0x1783b7,_0x538a75[_0x2c3f2d(0x1e2)],_0x484b79);for(const _0x103c83 of _0x5bfc67){const _0x2b6646=_0x524fd0?{..._0x103c83,'path':''+_0x524fd0+_0x103c83[_0x2c3f2d(0x264)]}:_0x103c83;if(_0x2b6646[_0x2c3f2d(0x244)]===_0x2c3f2d(0x230))_0x767fac[_0x2c3f2d(0x285)](_0x2b6646);else _0x4c564a['push'](_0x2b6646);}}if(_0x20f12f[_0x2c3f2d(0x223)]){const _0x262283=_0x42fd89?.[_0x2c3f2d(0x237)]?'goal':_0x524fd0+_0x2c3f2d(0x223),_0x2ff36d=validateCriteria(_0x20f12f[_0x2c3f2d(0x223)],_0x262283,_0x484b79);for(const _0x5dc6ce of _0x2ff36d){if(_0x5dc6ce['level']===_0x2c3f2d(0x230))_0x767fac[_0x2c3f2d(0x285)](_0x5dc6ce);else _0x4c564a[_0x2c3f2d(0x285)](_0x5dc6ce);}}}function extractVersionIndex(_0x127fc8){const _0x54381b=_0x127fc8['match'](/^journeys\[(\d+)\]\./);return _0x54381b?_0x54381b[0x1]:undefined;}function deduplicateAcrossVersions(_0x3f43d4){const _0x4dccdf=a149_0x3263,_0x5ce3d3=new Map();for(let _0x38c3ed=0x0;_0x38c3ed<_0x3f43d4[_0x4dccdf(0x1e2)];_0x38c3ed++){const _0x488551=_0x3f43d4[_0x38c3ed][_0x4dccdf(0x23c)]+':'+_0x3f43d4[_0x38c3ed][_0x4dccdf(0x1ff)],_0x4055b1=extractVersionIndex(_0x3f43d4[_0x38c3ed][_0x4dccdf(0x264)]),_0x20c371=_0x5ce3d3[_0x4dccdf(0x254)](_0x488551);if(_0x20c371){_0x20c371[_0x4dccdf(0x236)][_0x4dccdf(0x285)](_0x38c3ed);if(_0x4055b1)_0x20c371['versions'][_0x4dccdf(0x276)](_0x4055b1);}else _0x5ce3d3['set'](_0x488551,{'indices':[_0x38c3ed],'versions':new Set(_0x4055b1?[_0x4055b1]:[])});}const _0xf19cec=new Set();for(const {indices:_0x2935f8,versions:_0x22b000}of _0x5ce3d3[_0x4dccdf(0x242)]()){if(_0x22b000['size']<=0x1)continue;const _0x355ee5=_0x3f43d4[_0x2935f8[0x0]];_0x355ee5[_0x4dccdf(0x264)]=_0x355ee5[_0x4dccdf(0x264)][_0x4dccdf(0x259)](/^journeys\[\d+\]\./,''),_0x355ee5[_0x4dccdf(0x1ff)]=_0x355ee5['message']+'\x20(across\x20'+_0x22b000[_0x4dccdf(0x233)]+'\x20versions)';for(let _0x1dbb15=0x1;_0x1dbb15<_0x2935f8[_0x4dccdf(0x1e2)];_0x1dbb15++){_0xf19cec[_0x4dccdf(0x276)](_0x2935f8[_0x1dbb15]);}}const _0x5db863=[..._0xf19cec][_0x4dccdf(0x224)]((_0x86a8ad,_0x444211)=>_0x444211-_0x86a8ad);for(const _0x2c30e5 of _0x5db863){_0x3f43d4[_0x4dccdf(0x240)](_0x2c30e5,0x1);}}export function validateJourneyDef(_0x59e7b6,_0x5384ff={},_0x594707={}){const _0x1efc95=a149_0x3263;if(_0x594707[_0x1efc95(0x1f9)])return runJourneySemanticChecks(_0x59e7b6,_0x5384ff);const _0x1b4122=JourneyDefSchema[_0x1efc95(0x211)](_0x59e7b6);if(_0x1b4122['success'])return runJourneySemanticChecks(_0x1b4122[_0x1efc95(0x25e)],_0x5384ff);return zodErrorsToJourneyValidationResult(_0x1b4122[_0x1efc95(0x230)],_0x5384ff);}function zodErrorsToJourneyValidationResult(_0x23d477,_0x2766d8){const _0x3197d8=a149_0x3263,_0x521d40=flattenZodIssues(_0x23d477[_0x3197d8(0x247)]),_0x587100=_0x521d40[_0x3197d8(0x248)](_0xfd5cf4=>{const _0x52538f=_0x3197d8,_0x331c77=formatZodPath(_0xfd5cf4[_0x52538f(0x264)]),_0x24bfc6=mapJourneyZodIssueToCode(_0xfd5cf4,_0x331c77),_0x5a71e8=getLocationFromPath(_0x2766d8[_0x52538f(0x26d)],_0x2766d8['source'],_0xfd5cf4[_0x52538f(0x264)][_0x52538f(0x248)](_0xbbc0fe=>typeof _0xbbc0fe===_0x52538f(0x23f)?String(_0xbbc0fe):_0xbbc0fe));return{'level':'error','path':_0x331c77,'code':_0x24bfc6,'message':_0xfd5cf4[_0x52538f(0x1ff)],..._0x5a71e8&&{'location':_0x5a71e8}};});return{'valid':![],'errors':_0x587100,'warnings':[]};}function mapJourneyZodIssueToCode(_0x5af97f,_0x40b100){const _0x4f8705=a149_0x3263;if(_0x40b100===_0x4f8705(0x28a))return'MISSING_NAME';if(_0x40b100['endsWith']('.type')&&_0x40b100[_0x4f8705(0x27f)](_0x4f8705(0x268)))return _0x4f8705(0x1e5);if(_0x40b100===_0x4f8705(0x269)||_0x40b100[_0x4f8705(0x251)]('.stages'))return'MISSING_STAGES';if(_0x40b100===''&&_0x5af97f[_0x4f8705(0x1ff)][_0x4f8705(0x27f)](_0x4f8705(0x238)))return _0x4f8705(0x27a);if(_0x40b100[_0x4f8705(0x27f)](_0x4f8705(0x1e4)))return _0x4f8705(0x25b);return _0x4f8705(0x1e5);}function runJourneySemanticChecks(_0x17614e,_0x2588cb){const _0xfd02f8=a149_0x3263,_0xb1077=[],_0x2bbeb2=[];(!_0x17614e['name']||_0x17614e[_0xfd02f8(0x28a)][_0xfd02f8(0x1d8)]()==='')&&_0xb1077[_0xfd02f8(0x285)]({'level':_0xfd02f8(0x230),'path':'name','code':_0xfd02f8(0x271),'message':_0xfd02f8(0x26f),'location':getLocationFromPath(_0x2588cb[_0xfd02f8(0x26d)],_0x2588cb['source'],[_0xfd02f8(0x28a)])});const _0x3a2d7c=new Set();if(_0x17614e[_0xfd02f8(0x265)])for(const _0x48b4f6 of Object[_0xfd02f8(0x20b)](_0x17614e['segments'])){_0x3a2d7c['add'](_0x48b4f6);}const _0x522275=new Set();if(_0x17614e[_0xfd02f8(0x23d)])for(const _0x3907f1 of Object[_0xfd02f8(0x20b)](_0x17614e[_0xfd02f8(0x23d)])){_0x522275[_0xfd02f8(0x276)](_0x3907f1);}const _0xcbdfc0=new Set(),_0x322275={..._0x2588cb,'embeddedSegments':_0x3a2d7c,'referencedSegments':_0xcbdfc0,'activationKeys':_0x522275[_0xfd02f8(0x233)]>0x0?_0x522275:undefined};if(_0x17614e['segments'])for(const [_0xf8a7ee,_0x350d07]of Object[_0xfd02f8(0x21a)](_0x17614e[_0xfd02f8(0x265)])){const _0xecdfb6=validateEmbeddedSegment(_0x350d07,_0xfd02f8(0x23a)+_0xf8a7ee,_0x322275);for(const _0x2c122a of _0xecdfb6){if(_0x2c122a[_0xfd02f8(0x244)]===_0xfd02f8(0x230))_0xb1077[_0xfd02f8(0x285)](_0x2c122a);else _0x2bbeb2[_0xfd02f8(0x285)](_0x2c122a);}}const _0x3bd80d=!!_0x17614e[_0xfd02f8(0x223)],_0x30151f=_0x17614e['journeys']?.['every'](_0x232a02=>!!_0x232a02[_0xfd02f8(0x223)])??![];!_0x3bd80d&&!_0x30151f&&_0x2bbeb2[_0xfd02f8(0x285)]({'level':'warning','path':_0xfd02f8(0x223),'code':_0xfd02f8(0x222),'message':_0xfd02f8(0x25d),'location':getLocationFromPath(_0x2588cb[_0xfd02f8(0x26d)],_0x2588cb[_0xfd02f8(0x283)],['goal'])});const _0x502a1c=_0x17614e[_0xfd02f8(0x1ea)]??_0x17614e[_0xfd02f8(0x272)];if(_0x502a1c&&_0x502a1c[_0xfd02f8(0x275)](_0x601193=>_0x601193['latest']===!![])['length']>0x1){const _0x5834ca=_0x17614e[_0xfd02f8(0x1ea)]?_0xfd02f8(0x1ea):_0xfd02f8(0x272);_0xb1077[_0xfd02f8(0x285)]({'level':_0xfd02f8(0x230),'path':_0x5834ca,'code':'DUPLICATE_LATEST','message':_0xfd02f8(0x203)+(_0x5834ca===_0xfd02f8(0x1ea)?_0xfd02f8(0x255):_0xfd02f8(0x1e9))+_0xfd02f8(0x257),'location':getLocationFromPath(_0x2588cb['document'],_0x2588cb['source'],[_0x5834ca])});}if(_0x17614e[_0xfd02f8(0x1ea)]&&_0x17614e[_0xfd02f8(0x1ea)][_0xfd02f8(0x1e2)]>0x0)for(let _0x596e53=0x0;_0x596e53<_0x17614e[_0xfd02f8(0x1ea)][_0xfd02f8(0x1e2)];_0x596e53++){const _0x4f5b33=_0x17614e[_0xfd02f8(0x1ea)][_0x596e53];if(_0x17614e[_0xfd02f8(0x1ea)]['length']>0x1&&_0x4f5b33[_0xfd02f8(0x20a)]===_0xfd02f8(0x26c))continue;const _0x9a9dd1=_0x4f5b33[_0xfd02f8(0x269)]||[],_0x110d27=_0xfd02f8(0x21d)+_0x596e53+'].',_0x322b99=!!_0x4f5b33[_0xfd02f8(0x223)],_0x330968=_0x322b99?{..._0x17614e,'goal':_0x4f5b33[_0xfd02f8(0x223)]}:_0x17614e;validateStagesForVersion(_0x9a9dd1,_0x330968,_0x322275,_0x110d27,_0xb1077,_0x2bbeb2,{'goalIsInherited':!_0x322b99});}else{if(_0x17614e[_0xfd02f8(0x272)]&&_0x17614e[_0xfd02f8(0x272)][_0xfd02f8(0x1e2)]>0x0)for(let _0x56543a=0x0;_0x56543a<_0x17614e[_0xfd02f8(0x272)][_0xfd02f8(0x1e2)];_0x56543a++){const _0x25ec67=_0x17614e['versions'][_0x56543a];if(_0x17614e[_0xfd02f8(0x272)][_0xfd02f8(0x1e2)]>0x1&&_0x25ec67['state']===_0xfd02f8(0x26c))continue;const _0x342dae=_0x25ec67[_0xfd02f8(0x269)]||[],_0x380f59='versions['+_0x56543a+'].';validateStagesForVersion(_0x342dae,_0x17614e,_0x322275,_0x380f59,_0xb1077,_0x2bbeb2);}else{const _0x287340=_0x17614e[_0xfd02f8(0x269)]||[];validateStagesForVersion(_0x287340,_0x17614e,_0x322275,'',_0xb1077,_0x2bbeb2);}}_0x17614e[_0xfd02f8(0x1ea)]&&_0x17614e[_0xfd02f8(0x1ea)][_0xfd02f8(0x1e2)]>0x1&&(deduplicateAcrossVersions(_0xb1077),deduplicateAcrossVersions(_0x2bbeb2));for(const _0x274e60 of _0x3a2d7c){!_0xcbdfc0['has'](_0x274e60)&&!_0x274e60[_0xfd02f8(0x22f)]('excluded_')&&_0x2bbeb2[_0xfd02f8(0x285)]({'level':'warning','path':_0xfd02f8(0x23a)+_0x274e60,'code':'UNUSED_EMBEDDED_SEGMENT','message':_0xfd02f8(0x216)+_0x274e60+_0xfd02f8(0x1d4),'location':getLocationFromPath(_0x2588cb[_0xfd02f8(0x26d)],_0x2588cb[_0xfd02f8(0x283)],[_0xfd02f8(0x265),_0x274e60])});}return{'valid':_0xb1077['length']===0x0,'errors':_0xb1077,'warnings':_0x2bbeb2};}
|
|
1
|
+
(function(_0x482503,_0x41a0dd){const _0x54725b=a149_0x2226,_0x3e9de6=_0x482503();while(!![]){try{const _0x3ee238=parseInt(_0x54725b(0x16a))/0x1+-parseInt(_0x54725b(0x1fd))/0x2+parseInt(_0x54725b(0x1ef))/0x3+parseInt(_0x54725b(0x15d))/0x4+parseInt(_0x54725b(0x19e))/0x5*(-parseInt(_0x54725b(0x1e6))/0x6)+parseInt(_0x54725b(0x1b6))/0x7*(-parseInt(_0x54725b(0x19d))/0x8)+parseInt(_0x54725b(0x15f))/0x9*(parseInt(_0x54725b(0x1db))/0xa);if(_0x3ee238===_0x41a0dd)break;else _0x3e9de6['push'](_0x3e9de6['shift']());}catch(_0x594cde){_0x3e9de6['push'](_0x3e9de6['shift']());}}}(a149_0x538d,0x4c841));function a149_0x2226(_0x1a735e,_0x507c3f){_0x1a735e=_0x1a735e-0x149;const _0x538de4=a149_0x538d();let _0x222605=_0x538de4[_0x1a735e];return _0x222605;}import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x164384,_0x33c7c3,_0x6aceb5,_0x47dd41,_0x3a86fe,_0x1e0590){const _0x3a63f4=a149_0x2226;return{'level':_0x164384,'path':_0x33c7c3,'code':_0x6aceb5,'message':_0x47dd41,'location':getLocationFromPath(_0x3a86fe['document'],_0x3a86fe[_0x3a63f4(0x156)],pathToArray(_0x1e0590??_0x33c7c3))};}function validateVersionStructure(_0x23f8ee,_0x48b73c){const _0x292038=a149_0x2226,_0x58fb88=[];return _0x23f8ee[_0x292038(0x1a3)]>MAX_STAGES&&_0x58fb88['push'](createIssue(_0x292038(0x189),'stages','TOO_MANY_STAGES','Journey\x20has\x20'+_0x23f8ee['length']+_0x292038(0x17f)+MAX_STAGES,_0x48b73c)),_0x58fb88;}function validateStageStructure(_0x555489,_0x29d2e7,_0x45be52,_0x7f2199){const _0x226023=a149_0x2226,_0x36a6fe=[],_0xe62b3f=_0x226023(0x1ad)+_0x29d2e7+']';_0x29d2e7===0x0&&!_0x555489['entry_criteria']&&_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x189),_0xe62b3f+'.entry_criteria',_0x226023(0x1fe),_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+'\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)',_0x7f2199,_0xe62b3f));const _0x28c9d5=_0x29d2e7===_0x45be52-0x1;!_0x28c9d5&&!_0x555489[_0x226023(0x193)]&&_0x36a6fe[_0x226023(0x1ba)](createIssue('error',_0xe62b3f+'.milestone',_0x226023(0x1e0),_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+'\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone',_0x7f2199,_0xe62b3f));(!_0x555489['exit_criteria']||_0x555489[_0x226023(0x1d1)][_0x226023(0x1a3)]===0x0)&&_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x1d8),_0xe62b3f+'.exit_criteria',_0x226023(0x192),_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+_0x226023(0x1d0),_0x7f2199,_0xe62b3f));const _0x35367f=_0x555489[_0x226023(0x1ce)]?.[_0x226023(0x1a3)]??0x0;if(_0x35367f===0x0)_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x189),_0xe62b3f+_0x226023(0x194),_0x226023(0x1a0),'Stage\x20\x27'+_0x555489['name']+_0x226023(0x1cb),_0x7f2199,_0xe62b3f+'.steps'));else{if(_0x35367f===0x1)_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x1d8),_0xe62b3f+'.steps',_0x226023(0x1a0),'Stage\x20\x27'+_0x555489[_0x226023(0x165)]+_0x226023(0x1ee),_0x7f2199,_0xe62b3f+_0x226023(0x194)));else _0x35367f<=0x3&&_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x1d8),_0xe62b3f+_0x226023(0x194),'FEW_STEPS',_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+_0x226023(0x14d)+_0x35367f+'\x20steps\x20(may\x20be\x20too\x20simple)',_0x7f2199,_0xe62b3f+_0x226023(0x194)));}return _0x36a6fe;}function validateStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578){const _0x8e7183=a149_0x2226,_0x27489e=[];if(_0x26b5f5[_0x8e7183(0x1c5)]===_0x8e7183(0x18a))return _0x26b5f5[_0x8e7183(0x1f0)]&&_0x27489e[_0x8e7183(0x1ba)](createIssue('error',_0x2bee13+_0x8e7183(0x14b),_0x8e7183(0x198),_0x8e7183(0x17e)+_0x26b5f5['name']+_0x8e7183(0x1a7),_0x399185)),'with'in _0x26b5f5&&_0x26b5f5[_0x8e7183(0x1f7)]!==undefined&&_0x27489e[_0x8e7183(0x1ba)](createIssue(_0x8e7183(0x189),_0x2bee13+_0x8e7183(0x1f2),_0x8e7183(0x198),'End\x20step\x20\x27'+_0x26b5f5[_0x8e7183(0x165)]+_0x8e7183(0x14c),_0x399185)),_0x27489e;_0x26b5f5[_0x8e7183(0x1f0)]&&(_0x399185[_0x8e7183(0x1b9)]&&!_0x399185['stepNames'][_0x8e7183(0x1c7)](_0x26b5f5[_0x8e7183(0x1f0)])&&_0x27489e[_0x8e7183(0x1ba)](createIssue(_0x8e7183(0x189),_0x2bee13+_0x8e7183(0x14b),_0x8e7183(0x199),'Step\x20references\x20non-existent\x20step\x20\x27'+_0x26b5f5[_0x8e7183(0x1f0)]+'\x27',_0x399185)));switch(_0x26b5f5['type']){case _0x8e7183(0x153):_0x27489e[_0x8e7183(0x1ba)](...validateWaitStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578));break;case _0x8e7183(0x1f8):_0x27489e[_0x8e7183(0x1ba)](...validateActivationStep(_0x26b5f5,_0x2bee13,_0x399185));break;case _0x8e7183(0x149):_0x27489e['push'](...validateDecisionPointStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578));break;case _0x8e7183(0x19a):_0x27489e[_0x8e7183(0x1ba)](...validateAbTestStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578));break;case _0x8e7183(0x172):_0x27489e['push'](...validateJumpStep(_0x26b5f5,_0x2bee13,_0x399185));break;}return _0x27489e;}function validateWaitStep(_0x561e78,_0x5593e5,_0x455bbb,_0x565bce){const _0x2cbf3b=a149_0x2226,_0x18a0f7=[];if(!_0x561e78[_0x2cbf3b(0x1f7)])return _0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+'.with',_0x2cbf3b(0x1ec),_0x2cbf3b(0x171),_0x455bbb,_0x5593e5)),_0x18a0f7;if(_0x561e78[_0x2cbf3b(0x1f7)]['condition']){const _0x3fea58=_0x561e78['with'][_0x2cbf3b(0x1f4)];if(_0x3fea58[_0x2cbf3b(0x1cd)]){_0x455bbb[_0x2cbf3b(0x19f)]?.[_0x2cbf3b(0x15c)](_0x3fea58[_0x2cbf3b(0x1cd)]);!_0x3fea58['segment']['startsWith'](_0x2cbf3b(0x186))&&(_0x455bbb[_0x2cbf3b(0x1c0)]&&!_0x455bbb[_0x2cbf3b(0x1c0)][_0x2cbf3b(0x1c7)](_0x3fea58['segment'])&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+_0x2cbf3b(0x1f6),_0x2cbf3b(0x168),_0x2cbf3b(0x166)+_0x3fea58[_0x2cbf3b(0x1cd)]+_0x2cbf3b(0x155),_0x455bbb)));_0x3fea58[_0x2cbf3b(0x1f0)]&&_0x455bbb[_0x2cbf3b(0x1b9)]&&!_0x455bbb[_0x2cbf3b(0x1b9)][_0x2cbf3b(0x1c7)](_0x3fea58[_0x2cbf3b(0x1f0)])&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+_0x2cbf3b(0x1d4),'INVALID_NEXT_REFERENCE',_0x2cbf3b(0x169)+_0x3fea58[_0x2cbf3b(0x1f0)]+'\x27',_0x455bbb));_0x3fea58[_0x2cbf3b(0x14a)]?.[_0x2cbf3b(0x1f0)]&&_0x455bbb[_0x2cbf3b(0x1b9)]&&!_0x455bbb[_0x2cbf3b(0x1b9)]['has'](_0x3fea58[_0x2cbf3b(0x14a)][_0x2cbf3b(0x1f0)])&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+_0x2cbf3b(0x1d9),'INVALID_NEXT_REFERENCE',_0x2cbf3b(0x1e4)+_0x3fea58[_0x2cbf3b(0x14a)][_0x2cbf3b(0x1f0)]+'\x27',_0x455bbb));const _0x2413cf=_0x3fea58['next']||_0x561e78[_0x2cbf3b(0x1f0)],_0x466f9a=_0x3fea58[_0x2cbf3b(0x14a)]?.[_0x2cbf3b(0x1f0)]||_0x561e78[_0x2cbf3b(0x1f0)];if(_0x2413cf){const _0x31f5d8=_0x565bce[_0x2cbf3b(0x175)](_0x2413cf);_0x31f5d8?.[_0x2cbf3b(0x1c5)]===_0x2cbf3b(0x1bd)&&_0x18a0f7['push'](createIssue(_0x2cbf3b(0x1d8),_0x5593e5+_0x2cbf3b(0x1d4),_0x2cbf3b(0x1b3),_0x2cbf3b(0x15a)+_0x2413cf+'\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.',_0x455bbb,_0x5593e5+_0x2cbf3b(0x1e1)));}if(_0x466f9a){const _0x574935=_0x565bce[_0x2cbf3b(0x175)](_0x466f9a);_0x574935?.[_0x2cbf3b(0x1c5)]===_0x2cbf3b(0x1bd)&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue('warning',_0x5593e5+_0x2cbf3b(0x1d9),_0x2cbf3b(0x1b3),_0x2cbf3b(0x151)+_0x466f9a+_0x2cbf3b(0x1ed),_0x455bbb,_0x5593e5+_0x2cbf3b(0x1da)));}}}return _0x18a0f7;}function validateActivationStep(_0x18bf2b,_0x2b9fb5,_0x26523d){const _0x124d1b=a149_0x2226,_0x1695e9=[];if(!_0x18bf2b[_0x124d1b(0x1f7)]?.['activation'])return _0x1695e9[_0x124d1b(0x1ba)](createIssue(_0x124d1b(0x189),_0x2b9fb5+_0x124d1b(0x174),_0x124d1b(0x158),_0x124d1b(0x150),_0x26523d,_0x2b9fb5)),_0x1695e9;const _0x3f3de0=_0x18bf2b['with'][_0x124d1b(0x1f8)];return _0x26523d[_0x124d1b(0x1a6)]&&!_0x3f3de0[_0x124d1b(0x1b2)](_0x124d1b(0x186))&&(!_0x26523d[_0x124d1b(0x1a6)][_0x124d1b(0x1c7)](_0x3f3de0)&&_0x1695e9['push'](createIssue(_0x124d1b(0x189),_0x2b9fb5+_0x124d1b(0x174),_0x124d1b(0x161),_0x124d1b(0x162)+_0x3f3de0+_0x124d1b(0x1d6),_0x26523d))),_0x1695e9;}function validateDecisionPointStep(_0xc98aa2,_0x1bd761,_0x5b184b,_0x215694){const _0x1193d8=a149_0x2226,_0x22c697=[];if(!_0xc98aa2[_0x1193d8(0x1f7)]?.[_0x1193d8(0x16c)]||_0xc98aa2['with'][_0x1193d8(0x16c)][_0x1193d8(0x1a3)]===0x0)return _0x22c697[_0x1193d8(0x1ba)](createIssue('error',_0x1bd761+'.with.branches',_0x1193d8(0x1a4),_0x1193d8(0x181),_0x5b184b,_0x1bd761)),_0x22c697;for(let _0x5cbbd9=0x0;_0x5cbbd9<_0xc98aa2[_0x1193d8(0x1f7)]['branches'][_0x1193d8(0x1a3)];_0x5cbbd9++){const _0x3b5b6a=_0xc98aa2[_0x1193d8(0x1f7)][_0x1193d8(0x16c)][_0x5cbbd9],_0x2c492f=_0x1bd761+_0x1193d8(0x1f9)+_0x5cbbd9+']';_0x3b5b6a[_0x1193d8(0x1cd)]&&!_0x3b5b6a['excluded']&&(_0x5b184b[_0x1193d8(0x19f)]?.[_0x1193d8(0x15c)](_0x3b5b6a[_0x1193d8(0x1cd)]),!_0x3b5b6a[_0x1193d8(0x1cd)][_0x1193d8(0x1b2)](_0x1193d8(0x186))&&(_0x5b184b[_0x1193d8(0x1c0)]&&!_0x5b184b[_0x1193d8(0x1c0)][_0x1193d8(0x1c7)](_0x3b5b6a[_0x1193d8(0x1cd)])&&_0x22c697[_0x1193d8(0x1ba)](createIssue(_0x1193d8(0x189),_0x2c492f+_0x1193d8(0x1c3),'MISSING_SEGMENT_REFERENCE','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27'+_0x3b5b6a[_0x1193d8(0x1cd)]+'\x27',_0x5b184b))));_0x3b5b6a[_0x1193d8(0x1f0)]&&_0x5b184b[_0x1193d8(0x1b9)]&&!_0x5b184b[_0x1193d8(0x1b9)]['has'](_0x3b5b6a[_0x1193d8(0x1f0)])&&_0x22c697[_0x1193d8(0x1ba)](createIssue(_0x1193d8(0x189),_0x2c492f+_0x1193d8(0x14b),_0x1193d8(0x199),_0x1193d8(0x1e7)+_0x3b5b6a[_0x1193d8(0x1f0)]+'\x27',_0x5b184b));if(_0x3b5b6a[_0x1193d8(0x1f0)]){const _0x473f89=_0x215694[_0x1193d8(0x175)](_0x3b5b6a[_0x1193d8(0x1f0)]);_0x473f89?.['type']===_0x1193d8(0x1bd)&&_0x22c697['push'](createIssue(_0x1193d8(0x1d8),_0x2c492f+_0x1193d8(0x14b),'BRANCH_DIRECTLY_TO_MERGE',_0x1193d8(0x17a)+_0x3b5b6a['name']+'\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x3b5b6a['next']+'\x27\x20with\x20no\x20action\x20in\x20between',_0x5b184b));}}return _0x22c697;}function validateAbTestStep(_0x26f1ae,_0x23b1a5,_0x100d4a,_0x257c26){const _0x5aa4ec=a149_0x2226,_0x1296c9=[];if(!_0x26f1ae[_0x5aa4ec(0x1f7)]?.['variants']||_0x26f1ae['with'][_0x5aa4ec(0x170)][_0x5aa4ec(0x1a3)]===0x0)return _0x1296c9[_0x5aa4ec(0x1ba)](createIssue('error',_0x23b1a5+_0x5aa4ec(0x1fc),'MISSING_CONDITIONS',_0x5aa4ec(0x18e),_0x100d4a,_0x23b1a5)),_0x1296c9;const _0x5a7af3=_0x26f1ae['with'][_0x5aa4ec(0x170)][_0x5aa4ec(0x1a1)]((_0x23da6a,_0x20a092)=>_0x23da6a+(_0x20a092[_0x5aa4ec(0x16d)]||0x0),0x0);Math[_0x5aa4ec(0x1eb)](_0x5a7af3-0x64)>0.01&&_0x1296c9[_0x5aa4ec(0x1ba)](createIssue(_0x5aa4ec(0x189),_0x23b1a5+_0x5aa4ec(0x1fc),_0x5aa4ec(0x183),_0x5aa4ec(0x1cc)+_0x5a7af3+'%)',_0x100d4a));for(let _0x5c3a22=0x0;_0x5c3a22<_0x26f1ae[_0x5aa4ec(0x1f7)]['variants'][_0x5aa4ec(0x1a3)];_0x5c3a22++){const _0x1ea316=_0x26f1ae[_0x5aa4ec(0x1f7)][_0x5aa4ec(0x170)][_0x5c3a22],_0x4be1d5=_0x23b1a5+_0x5aa4ec(0x19b)+_0x5c3a22+']';_0x1ea316[_0x5aa4ec(0x1f0)]&&_0x100d4a[_0x5aa4ec(0x1b9)]&&!_0x100d4a['stepNames'][_0x5aa4ec(0x1c7)](_0x1ea316['next'])&&_0x1296c9[_0x5aa4ec(0x1ba)](createIssue(_0x5aa4ec(0x189),_0x4be1d5+'.next',_0x5aa4ec(0x199),_0x5aa4ec(0x182)+_0x1ea316[_0x5aa4ec(0x1f0)]+'\x27',_0x100d4a));if(_0x1ea316['next']){const _0x1ad178=_0x257c26[_0x5aa4ec(0x175)](_0x1ea316[_0x5aa4ec(0x1f0)]);_0x1ad178?.[_0x5aa4ec(0x1c5)]===_0x5aa4ec(0x1bd)&&_0x1296c9[_0x5aa4ec(0x1ba)](createIssue(_0x5aa4ec(0x1d8),_0x4be1d5+_0x5aa4ec(0x14b),'BRANCH_DIRECTLY_TO_MERGE',_0x5aa4ec(0x1e3)+_0x1ea316[_0x5aa4ec(0x165)]+_0x5aa4ec(0x157)+_0x1ea316[_0x5aa4ec(0x1f0)]+_0x5aa4ec(0x179),_0x100d4a));}}return _0x1296c9;}function validateJumpStep(_0x43e975,_0x124ce5,_0x534a47){const _0x524d6e=a149_0x2226,_0x3abc7c=[];if(!_0x43e975['with']?.[_0x524d6e(0x167)])return _0x3abc7c['push'](createIssue(_0x524d6e(0x189),_0x124ce5+_0x524d6e(0x159),'INVALID_JUMP_TARGET','Jump\x20step\x20requires\x20a\x20target',_0x534a47,_0x124ce5)),_0x3abc7c;return(!_0x43e975[_0x524d6e(0x1f7)][_0x524d6e(0x167)]['journey']||!_0x43e975[_0x524d6e(0x1f7)]['target'][_0x524d6e(0x176)])&&_0x3abc7c[_0x524d6e(0x1ba)](createIssue(_0x524d6e(0x189),_0x124ce5+_0x524d6e(0x159),'INVALID_JUMP_TARGET',_0x524d6e(0x1b8),_0x534a47)),_0x3abc7c;}function buildConvergenceMap(_0x51e7c3){const _0x335373=a149_0x2226,_0x52c68e=new Map();function _0x5a9a27(_0x56bf9a,_0x5275e2){const _0x1741bf=a149_0x2226,_0x407a02=_0x52c68e[_0x1741bf(0x175)](_0x56bf9a)||[];_0x407a02['push'](_0x5275e2),_0x52c68e[_0x1741bf(0x1b4)](_0x56bf9a,_0x407a02);}for(const _0xde8eb4 of _0x51e7c3){_0xde8eb4[_0x335373(0x1f0)]&&_0x5a9a27(_0xde8eb4['next'],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1f3)+_0xde8eb4[_0x335373(0x165)]+'\x27'});if(_0xde8eb4[_0x335373(0x1c5)]==='decision_point'&&_0xde8eb4[_0x335373(0x1f7)]?.[_0x335373(0x16c)])for(const _0x39cf90 of _0xde8eb4[_0x335373(0x1f7)][_0x335373(0x16c)]){_0x39cf90[_0x335373(0x1f0)]&&_0x5a9a27(_0x39cf90[_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1fb)+_0x39cf90['name']+_0x335373(0x1a2)+_0xde8eb4['name']+'\x27'});}if(_0xde8eb4[_0x335373(0x1c5)]===_0x335373(0x19a)&&_0xde8eb4[_0x335373(0x1f7)]?.[_0x335373(0x170)])for(const _0x445e1f of _0xde8eb4[_0x335373(0x1f7)][_0x335373(0x170)]){_0x445e1f[_0x335373(0x1f0)]&&_0x5a9a27(_0x445e1f[_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1d2)+_0x445e1f[_0x335373(0x165)]+'\x27\x20of\x20\x27'+_0xde8eb4[_0x335373(0x165)]+'\x27'});}_0xde8eb4[_0x335373(0x1c5)]==='wait'&&_0xde8eb4['with']?.[_0x335373(0x1f4)]&&(_0xde8eb4[_0x335373(0x1f7)][_0x335373(0x1f4)][_0x335373(0x1f0)]&&_0x5a9a27(_0xde8eb4[_0x335373(0x1f7)][_0x335373(0x1f4)][_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':'condition\x20of\x20\x27'+_0xde8eb4[_0x335373(0x165)]+'\x27'}),_0xde8eb4[_0x335373(0x1f7)]['condition']['timeout']?.[_0x335373(0x1f0)]&&_0x5a9a27(_0xde8eb4[_0x335373(0x1f7)][_0x335373(0x1f4)][_0x335373(0x14a)][_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1a8)+_0xde8eb4['name']+'\x27'}));}return _0x52c68e;}function validateFlowControl(_0x9e0352,_0x2b722a,_0xd499a6){const _0x22bde4=a149_0x2226,_0x259d05=[],_0x3728f1='stages['+_0x2b722a+']',_0x1b763f=_0x9e0352[_0x22bde4(0x1ce)]||[];if(_0x1b763f[_0x22bde4(0x1a3)]===0x0)return _0x259d05;const _0x279252=new Map();for(const _0x294072 of _0x1b763f){_0x294072[_0x22bde4(0x165)]&&_0x279252[_0x22bde4(0x1b4)](_0x294072['name'],_0x294072);}const _0x493ac6=buildConvergenceMap(_0x1b763f),_0x23aa33=_0x1b763f[_0x22bde4(0x1f1)](_0x29cd3d=>_0x29cd3d[_0x22bde4(0x1c5)]===_0x22bde4(0x18a));!_0x23aa33&&_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x189),_0x3728f1+'.steps','MISSING_END_STEP',_0x22bde4(0x1c1)+_0x9e0352['name']+_0x22bde4(0x17c),_0xd499a6));for(const [_0x3739ea,_0x1f96a6]of _0x493ac6){const _0x373487=_0x279252['get'](_0x3739ea);if(!_0x373487)continue;if(_0x1f96a6[_0x22bde4(0x1a3)]>0x1&&_0x373487[_0x22bde4(0x1c5)]!==_0x22bde4(0x1bd)){const _0x2ab1f4=_0x1f96a6['map'](_0x562847=>_0x562847[_0x22bde4(0x190)])[_0x22bde4(0x1b5)](',\x20');_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x189),_0x3728f1+_0x22bde4(0x194),'CONVERGENCE_WITHOUT_MERGE',_0x22bde4(0x1ca)+_0x3739ea+_0x22bde4(0x1f5)+_0x2ab1f4+_0x22bde4(0x1df),_0xd499a6));}_0x1f96a6[_0x22bde4(0x1a3)]===0x1&&_0x373487[_0x22bde4(0x1c5)]===_0x22bde4(0x1bd)&&_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x1d8),_0x3728f1+_0x22bde4(0x194),_0x22bde4(0x15e),'Merge\x20step\x20\x27'+_0x3739ea+_0x22bde4(0x14f)+_0x1f96a6[0x0][_0x22bde4(0x190)]+_0x22bde4(0x15b),_0xd499a6));}for(const _0x4d4b3a of _0x1b763f){if(_0x4d4b3a[_0x22bde4(0x1c5)]===_0x22bde4(0x1bd)&&_0x4d4b3a[_0x22bde4(0x1f0)]){const _0xe65912=_0x279252['get'](_0x4d4b3a[_0x22bde4(0x1f0)]);_0xe65912?.['type']==='merge'&&_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x189),_0x3728f1+_0x22bde4(0x194),_0x22bde4(0x187),_0x22bde4(0x1c2)+_0x4d4b3a[_0x22bde4(0x165)]+_0x22bde4(0x1c4)+_0x4d4b3a[_0x22bde4(0x1f0)]+'\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.',_0xd499a6));}}return _0x259d05;}function validateCriteria(_0x1c8ea3,_0x5aff45,_0x5b132b){const _0x225b35=a149_0x2226,_0x2bcde4=[];return _0x1c8ea3[_0x225b35(0x1cd)]&&(_0x5b132b['referencedSegments']?.[_0x225b35(0x15c)](_0x1c8ea3['segment']),!_0x1c8ea3[_0x225b35(0x1cd)][_0x225b35(0x1b2)](_0x225b35(0x186))&&(_0x5b132b[_0x225b35(0x1c0)]&&!_0x5b132b['embeddedSegments'][_0x225b35(0x1c7)](_0x1c8ea3[_0x225b35(0x1cd)])&&_0x2bcde4[_0x225b35(0x1ba)](createIssue(_0x225b35(0x189),_0x5aff45+_0x225b35(0x1c3),_0x225b35(0x168),'Criteria\x20references\x20undefined\x20segment\x20\x27'+_0x1c8ea3['segment']+'\x27',_0x5b132b)))),_0x2bcde4;}function validateEmbeddedSegment(_0x52f156,_0xef535,_0x1f3f9e){const _0x1070b8=a149_0x2226,_0x44078d=[];return _0x52f156['rule']&&_0x44078d[_0x1070b8(0x1ba)](...validateRuleDef(_0x52f156[_0x1070b8(0x1de)],_0xef535+'.rule',_0x1f3f9e)),_0x44078d;}function validateStage(_0x2683ec,_0x10dd02,_0x207de6,_0xc7ef68){const _0x4a0013=a149_0x2226,_0x965515=[],_0x464ab0='stages['+_0x10dd02+']',_0x459ce0=new Map(),_0x5834a3=new Map();if(_0x2683ec[_0x4a0013(0x1ce)]){for(let _0x545e1b=0x0;_0x545e1b<_0x2683ec['steps'][_0x4a0013(0x1a3)];_0x545e1b++){const _0x3cacd0=_0x2683ec[_0x4a0013(0x1ce)][_0x545e1b];_0x3cacd0['name']&&_0x459ce0['set'](_0x3cacd0[_0x4a0013(0x165)],_0x3cacd0);}for(let _0x22fdfc=0x0;_0x22fdfc<_0x2683ec['steps'][_0x4a0013(0x1a3)];_0x22fdfc++){const _0x3ee4f0=_0x2683ec[_0x4a0013(0x1ce)][_0x22fdfc],_0x5cf3a5=_0x464ab0+_0x4a0013(0x1c8)+_0x22fdfc+']';if(_0x3ee4f0[_0x4a0013(0x165)]){if(_0x5834a3['has'](_0x3ee4f0[_0x4a0013(0x165)])){const _0xefb7a=_0x5834a3[_0x4a0013(0x175)](_0x3ee4f0['name']);_0x965515['push'](createIssue('error',_0x5cf3a5+_0x4a0013(0x1dd),'DUPLICATE_STEP_NAME',_0x4a0013(0x17d)+_0x3ee4f0[_0x4a0013(0x165)]+_0x4a0013(0x1c9)+_0xefb7a+'])',_0xc7ef68));}else _0x5834a3[_0x4a0013(0x1b4)](_0x3ee4f0[_0x4a0013(0x165)],_0x22fdfc);}_0x965515[_0x4a0013(0x1ba)](...validateStep(_0x3ee4f0,_0x5cf3a5,_0xc7ef68,_0x459ce0));}}_0x2683ec[_0x4a0013(0x18c)]&&_0x965515[_0x4a0013(0x1ba)](...validateCriteria(_0x2683ec[_0x4a0013(0x18c)],_0x464ab0+_0x4a0013(0x1e9),_0xc7ef68));if(_0x2683ec[_0x4a0013(0x1d1)])for(let _0x7a2398=0x0;_0x7a2398<_0x2683ec[_0x4a0013(0x1d1)][_0x4a0013(0x1a3)];_0x7a2398++){_0x965515[_0x4a0013(0x1ba)](...validateCriteria(_0x2683ec['exit_criteria'][_0x7a2398],_0x464ab0+'.exit_criteria['+_0x7a2398+']',_0xc7ef68));}return _0x2683ec['milestone']&&_0x965515['push'](...validateCriteria(_0x2683ec[_0x4a0013(0x193)],_0x464ab0+_0x4a0013(0x1d5),_0xc7ef68)),_0x965515[_0x4a0013(0x1ba)](...validateStageStructure(_0x2683ec,_0x10dd02,_0x207de6,_0xc7ef68)),_0x965515['push'](...validateFlowControl(_0x2683ec,_0x10dd02,_0xc7ef68)),_0x965515;}function validateStagesForVersion(_0x4fc83b,_0x2a1e3e,_0xadbf3f,_0x488739,_0xa233d,_0x398619,_0x22fbd0){const _0xfc3c4f=a149_0x2226;if(_0x4fc83b[_0xfc3c4f(0x1a3)]===0x0){_0xa233d[_0xfc3c4f(0x1ba)]({'level':_0xfc3c4f(0x189),'path':_0x488739+'stages','code':'MISSING_STAGES','message':_0xfc3c4f(0x14e),'location':getLocationFromPath(_0xadbf3f['document'],_0xadbf3f[_0xfc3c4f(0x156)],[_0xfc3c4f(0x184)])});return;}const _0xc5ea12=new Set();for(const _0x27c4fa of _0x4fc83b){if(_0x27c4fa['steps'])for(const _0x22cd93 of _0x27c4fa[_0xfc3c4f(0x1ce)]){_0x22cd93['name']&&_0xc5ea12[_0xfc3c4f(0x15c)](_0x22cd93[_0xfc3c4f(0x165)]);}}const _0x3acf02={..._0xadbf3f,'stepNames':_0xc5ea12},_0x32e675=validateVersionStructure(_0x4fc83b,_0x3acf02);for(const _0x45a8aa of _0x32e675){const _0x300e14=_0x488739?{..._0x45a8aa,'path':''+_0x488739+_0x45a8aa['path']}:_0x45a8aa;if(_0x300e14['level']===_0xfc3c4f(0x189))_0xa233d['push'](_0x300e14);else _0x398619[_0xfc3c4f(0x1ba)](_0x300e14);}for(let _0x53fbcf=0x0;_0x53fbcf<_0x4fc83b[_0xfc3c4f(0x1a3)];_0x53fbcf++){const _0x5c92cc=validateStage(_0x4fc83b[_0x53fbcf],_0x53fbcf,_0x4fc83b['length'],_0x3acf02);for(const _0x1ae168 of _0x5c92cc){const _0x2d817d=_0x488739?{..._0x1ae168,'path':''+_0x488739+_0x1ae168[_0xfc3c4f(0x196)]}:_0x1ae168;if(_0x2d817d[_0xfc3c4f(0x1c6)]===_0xfc3c4f(0x189))_0xa233d[_0xfc3c4f(0x1ba)](_0x2d817d);else _0x398619[_0xfc3c4f(0x1ba)](_0x2d817d);}}if(_0x2a1e3e[_0xfc3c4f(0x1e2)]){const _0x1ffe77=_0x22fbd0?.[_0xfc3c4f(0x1a9)]?_0xfc3c4f(0x1e2):_0x488739+_0xfc3c4f(0x1e2),_0x530657=validateCriteria(_0x2a1e3e[_0xfc3c4f(0x1e2)],_0x1ffe77,_0x3acf02);for(const _0x3a618e of _0x530657){if(_0x3a618e['level']===_0xfc3c4f(0x189))_0xa233d[_0xfc3c4f(0x1ba)](_0x3a618e);else _0x398619[_0xfc3c4f(0x1ba)](_0x3a618e);}}}function extractVersionIndex(_0x46e204){const _0x2f98eb=a149_0x2226,_0x2fd99b=_0x46e204[_0x2f98eb(0x18d)](/^journeys\[(\d+)\]\./);return _0x2fd99b?_0x2fd99b[0x1]:undefined;}function deduplicateAcrossVersions(_0x2dfe32){const _0x69ab52=a149_0x2226,_0xe04752=new Map();for(let _0x18a0c7=0x0;_0x18a0c7<_0x2dfe32['length'];_0x18a0c7++){const _0x30139b=_0x2dfe32[_0x18a0c7]['code']+':'+_0x2dfe32[_0x18a0c7][_0x69ab52(0x1ac)],_0x245a3d=extractVersionIndex(_0x2dfe32[_0x18a0c7]['path']),_0x223926=_0xe04752[_0x69ab52(0x175)](_0x30139b);if(_0x223926){_0x223926[_0x69ab52(0x1bc)][_0x69ab52(0x1ba)](_0x18a0c7);if(_0x245a3d)_0x223926[_0x69ab52(0x19c)][_0x69ab52(0x15c)](_0x245a3d);}else _0xe04752[_0x69ab52(0x1b4)](_0x30139b,{'indices':[_0x18a0c7],'versions':new Set(_0x245a3d?[_0x245a3d]:[])});}const _0xaa9d72=new Set();for(const {indices:_0x18b651,versions:_0x3c3d07}of _0xe04752['values']()){if(_0x3c3d07['size']<=0x1)continue;const _0x2f6280=_0x2dfe32[_0x18b651[0x0]];_0x2f6280[_0x69ab52(0x196)]=_0x2f6280[_0x69ab52(0x196)]['replace'](/^journeys\[\d+\]\./,''),_0x2f6280[_0x69ab52(0x1ac)]=_0x2f6280[_0x69ab52(0x1ac)]+'\x20(across\x20'+_0x3c3d07[_0x69ab52(0x16f)]+_0x69ab52(0x180);for(let _0x5e4e80=0x1;_0x5e4e80<_0x18b651[_0x69ab52(0x1a3)];_0x5e4e80++){_0xaa9d72[_0x69ab52(0x15c)](_0x18b651[_0x5e4e80]);}}const _0x590ee4=[..._0xaa9d72][_0x69ab52(0x163)]((_0x303cd2,_0x30f551)=>_0x30f551-_0x303cd2);for(const _0x3fe885 of _0x590ee4){_0x2dfe32[_0x69ab52(0x1ff)](_0x3fe885,0x1);}}export function validateJourneyDef(_0x5a09f4,_0x3af5ab={},_0x53066e={}){const _0x21dad7=a149_0x2226;if(_0x53066e[_0x21dad7(0x154)])return runJourneySemanticChecks(_0x5a09f4,_0x3af5ab);const _0xb16a40=JourneyDefSchema[_0x21dad7(0x16b)](_0x5a09f4);if(_0xb16a40[_0x21dad7(0x160)])return runJourneySemanticChecks(_0xb16a40[_0x21dad7(0x1aa)],_0x3af5ab);return zodErrorsToJourneyValidationResult(_0xb16a40[_0x21dad7(0x189)],_0x3af5ab);}function zodErrorsToJourneyValidationResult(_0x25030d,_0x48b26b){const _0xf6de3c=a149_0x2226,_0x4dcd6b=flattenZodIssues(_0x25030d[_0xf6de3c(0x18f)]),_0x59b201=_0x4dcd6b[_0xf6de3c(0x152)](_0x46b465=>{const _0x4bf461=_0xf6de3c,_0x14c444=formatZodPath(_0x46b465[_0x4bf461(0x196)]),_0x33c06e=mapJourneyZodIssueToCode(_0x46b465,_0x14c444),_0x34a767=getLocationFromPath(_0x48b26b[_0x4bf461(0x18b)],_0x48b26b[_0x4bf461(0x156)],_0x46b465[_0x4bf461(0x196)]['map'](_0x131dcb=>typeof _0x131dcb==='symbol'?String(_0x131dcb):_0x131dcb));return{'level':_0x4bf461(0x189),'path':_0x14c444,'code':_0x33c06e,'message':_0x46b465[_0x4bf461(0x1ac)],..._0x34a767&&{'location':_0x34a767}};});return{'valid':![],'errors':_0x59b201,'warnings':[]};}function a149_0x538d(){const _0x257fcd=['keys','abs','MISSING_WAIT_PARAMS','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)','1761489pSvQWD','next','some','.with','step\x20\x27','condition','\x27\x20(from:\x20','.with.condition.segment','with','activation','.with.branches[','endsWith','branch\x20\x27','.with.variants','312474QYGMWX','MISSING_ENTRY_CRITERIA','splice','decision_point','timeout','.next','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','\x27\x20has\x20only\x20','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','Activation\x20step\x20requires\x20an\x20activation\x20reference','Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','map','wait','skipSchema','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','source','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','MISSING_ACTIVATION_REF','.with.target','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27',').\x20Merge\x20is\x20unnecessary.','add','1097856pdJKIS','SINGLE_INPUT_MERGE','145341TBepbY','success','MISSING_ACTIVATION_DEFINITION','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','sort','versions[','name','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','target','MISSING_SEGMENT_REFERENCE','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','19766yqCBhx','safeParse','branches','percentage','journeys,\x20stages,\x20or\x20versions','size','variants','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field','jump','every','.with.activation','get','stage','segments.','excluded_','\x27\x20with\x20no\x20action\x20in\x20between','Decision\x20branch\x20\x27','MISSING_STAGES','\x27\x20has\x20no\x20end\x20step','Duplicate\x20step\x20name\x20\x27','End\x20step\x20\x27','\x20stages\x20but\x20maximum\x20is\x20','\x20versions)','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','INVALID_AB_TEST_PERCENTAGES','stages','MISSING_NAME','ref:','MERGE_TO_MERGE_CHAIN','launched','error','end','document','entry_criteria','match','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','issues','description','includes','MISSING_EXIT_CRITERIA','milestone','.steps','journeys[','path','.stages','END_STEP_HAS_NEXT_OR_WITH','INVALID_NEXT_REFERENCE','ab_test','.with.variants[','versions','184RCaGKU','8110ShtnLe','referencedSegments','INSUFFICIENT_STEPS','reduce','\x27\x20of\x20\x27','length','MISSING_CONDITIONS','activations','activationKeys','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','timeout\x20of\x20\x27','goalIsInherited','data','state','message','stages[','Journey\x20name\x20is\x20required','trim','.type','Embedded\x20segment\x20\x27','startsWith','BRANCH_DIRECTLY_TO_MERGE','set','join','162659sBPdhr','filter','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','stepNames','push','JOURNEY_SCHEMA_ERROR','indices','merge','entries','DUPLICATE_LATEST','embeddedSegments','Stage\x20\x27','Merge\x20step\x20\x27','.segment','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','type','level','has','.steps[','\x27\x20(first\x20defined\x20at\x20steps[','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','\x27\x20has\x20no\x20steps','A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20','segment','steps','UNUSED_EMBEDDED_SEGMENT','\x27\x20has\x20no\x20exit_criteria\x20defined','exit_criteria','variant\x20\x27','journeys','.with.condition.next','.milestone','\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.','segments','warning','.with.condition.timeout.next','.with.condition.timeout','80VWNoFj','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','.name','rule',').\x20Use\x20a\x20merge\x20step.','MISSING_MILESTONE','.with.condition','goal','A/B\x20test\x20variant\x20\x27','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','MISSING_GOAL','24iTWKZc','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','ACTIVATION_SCHEMA_ERROR','.entry_criteria'];a149_0x538d=function(){return _0x257fcd;};return a149_0x538d();}function mapJourneyZodIssueToCode(_0x15734d,_0x51786f){const _0x57bf49=a149_0x2226;if(_0x51786f==='name')return _0x57bf49(0x185);if(_0x51786f[_0x57bf49(0x1fa)](_0x57bf49(0x1b0))&&_0x51786f[_0x57bf49(0x191)]('steps'))return'JOURNEY_SCHEMA_ERROR';if(_0x51786f===_0x57bf49(0x184)||_0x51786f[_0x57bf49(0x1fa)](_0x57bf49(0x197)))return'MISSING_STAGES';if(_0x51786f===''&&_0x15734d[_0x57bf49(0x1ac)][_0x57bf49(0x191)](_0x57bf49(0x16e)))return _0x57bf49(0x17b);if(_0x51786f[_0x57bf49(0x191)](_0x57bf49(0x1f8)))return _0x57bf49(0x1e8);return _0x57bf49(0x1bb);}function runJourneySemanticChecks(_0x3961ce,_0x57d5f6){const _0x43803f=a149_0x2226,_0x4e395d=[],_0x5b9cb9=[];(!_0x3961ce['name']||_0x3961ce[_0x43803f(0x165)][_0x43803f(0x1af)]()==='')&&_0x4e395d[_0x43803f(0x1ba)]({'level':'error','path':'name','code':_0x43803f(0x185),'message':_0x43803f(0x1ae),'location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],[_0x43803f(0x165)])});const _0x561010=new Set();if(_0x3961ce['segments'])for(const _0x5b24a8 of Object[_0x43803f(0x1ea)](_0x3961ce['segments'])){_0x561010[_0x43803f(0x15c)](_0x5b24a8);}const _0x2cb56a=new Set();if(_0x3961ce[_0x43803f(0x1a5)])for(const _0x13d279 of Object[_0x43803f(0x1ea)](_0x3961ce['activations'])){_0x2cb56a[_0x43803f(0x15c)](_0x13d279);}const _0x58c6b6=new Set(),_0x192a93={..._0x57d5f6,'embeddedSegments':_0x561010,'referencedSegments':_0x58c6b6,'activationKeys':_0x2cb56a['size']>0x0?_0x2cb56a:undefined};if(_0x3961ce[_0x43803f(0x1d7)])for(const [_0x1f8f96,_0x4b9168]of Object[_0x43803f(0x1be)](_0x3961ce[_0x43803f(0x1d7)])){const _0x4ac5cd=validateEmbeddedSegment(_0x4b9168,_0x43803f(0x177)+_0x1f8f96,_0x192a93);for(const _0x4ec127 of _0x4ac5cd){if(_0x4ec127['level']===_0x43803f(0x189))_0x4e395d['push'](_0x4ec127);else _0x5b9cb9[_0x43803f(0x1ba)](_0x4ec127);}}const _0x535d2a=!!_0x3961ce[_0x43803f(0x1e2)],_0x44598c=_0x3961ce[_0x43803f(0x1d3)]?.[_0x43803f(0x173)](_0x2df374=>!!_0x2df374['goal'])??![];!_0x535d2a&&!_0x44598c&&_0x5b9cb9[_0x43803f(0x1ba)]({'level':_0x43803f(0x1d8),'path':_0x43803f(0x1e2),'code':_0x43803f(0x1e5),'message':'Journey\x20has\x20no\x20goal\x20defined','location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],['goal'])});const _0x2481ac=_0x3961ce[_0x43803f(0x1d3)]??_0x3961ce[_0x43803f(0x19c)];if(_0x2481ac&&_0x2481ac[_0x43803f(0x1b7)](_0x98f5=>_0x98f5['latest']===!![])[_0x43803f(0x1a3)]>0x1){const _0x4fefd4=_0x3961ce[_0x43803f(0x1d3)]?_0x43803f(0x1d3):_0x43803f(0x19c);_0x4e395d['push']({'level':'error','path':_0x4fefd4,'code':_0x43803f(0x1bf),'message':'Journey\x20can\x20have\x20at\x20most\x20one\x20'+(_0x4fefd4===_0x43803f(0x1d3)?'journey\x20entry':'version')+'\x20with\x20latest:\x20true','location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],[_0x4fefd4])});}if(_0x3961ce[_0x43803f(0x1d3)]&&_0x3961ce[_0x43803f(0x1d3)][_0x43803f(0x1a3)]>0x0)for(let _0x1b9b80=0x0;_0x1b9b80<_0x3961ce[_0x43803f(0x1d3)][_0x43803f(0x1a3)];_0x1b9b80++){const _0x4c3875=_0x3961ce['journeys'][_0x1b9b80];if(_0x3961ce['journeys'][_0x43803f(0x1a3)]>0x1&&_0x4c3875['state']===_0x43803f(0x188))continue;const _0x4a8687=_0x4c3875[_0x43803f(0x184)]||[],_0x163f17=_0x43803f(0x195)+_0x1b9b80+'].',_0x2b6985=!!_0x4c3875[_0x43803f(0x1e2)],_0xd9f010=_0x2b6985?{..._0x3961ce,'goal':_0x4c3875[_0x43803f(0x1e2)]}:_0x3961ce;validateStagesForVersion(_0x4a8687,_0xd9f010,_0x192a93,_0x163f17,_0x4e395d,_0x5b9cb9,{'goalIsInherited':!_0x2b6985});}else{if(_0x3961ce[_0x43803f(0x19c)]&&_0x3961ce[_0x43803f(0x19c)]['length']>0x0)for(let _0x34c85b=0x0;_0x34c85b<_0x3961ce[_0x43803f(0x19c)][_0x43803f(0x1a3)];_0x34c85b++){const _0x4a0cd7=_0x3961ce[_0x43803f(0x19c)][_0x34c85b];if(_0x3961ce[_0x43803f(0x19c)][_0x43803f(0x1a3)]>0x1&&_0x4a0cd7[_0x43803f(0x1ab)]===_0x43803f(0x188))continue;const _0x1988e4=_0x4a0cd7[_0x43803f(0x184)]||[],_0x470d90=_0x43803f(0x164)+_0x34c85b+'].';validateStagesForVersion(_0x1988e4,_0x3961ce,_0x192a93,_0x470d90,_0x4e395d,_0x5b9cb9);}else{const _0x51c3f8=_0x3961ce[_0x43803f(0x184)]||[];validateStagesForVersion(_0x51c3f8,_0x3961ce,_0x192a93,'',_0x4e395d,_0x5b9cb9);}}_0x3961ce[_0x43803f(0x1d3)]&&_0x3961ce['journeys'][_0x43803f(0x1a3)]>0x1&&(deduplicateAcrossVersions(_0x4e395d),deduplicateAcrossVersions(_0x5b9cb9));for(const _0x1e19ac of _0x561010){!_0x58c6b6['has'](_0x1e19ac)&&!_0x1e19ac[_0x43803f(0x1b2)](_0x43803f(0x178))&&_0x5b9cb9[_0x43803f(0x1ba)]({'level':_0x43803f(0x1d8),'path':_0x43803f(0x177)+_0x1e19ac,'code':_0x43803f(0x1cf),'message':_0x43803f(0x1b1)+_0x1e19ac+_0x43803f(0x1dc),'location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],['segments',_0x1e19ac])});}return{'valid':_0x4e395d[_0x43803f(0x1a3)]===0x0,'errors':_0x4e395d,'warnings':_0x5b9cb9};}
|