@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.13-beta.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/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
package/lib/core/flow-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a299_0xf21873=a299_0x1204;(function(_0x4d10ce,_0x466ad5){const _0x416a7e=a299_0x1204,_0x2b79c4=_0x4d10ce();while(!![]){try{const _0x29a9be=-parseInt(_0x416a7e(0x25d))/0x1*(parseInt(_0x416a7e(0x20c))/0x2)+parseInt(_0x416a7e(0x257))/0x3*(-parseInt(_0x416a7e(0x292))/0x4)+parseInt(_0x416a7e(0x204))/0x5+-parseInt(_0x416a7e(0x328))/0x6+-parseInt(_0x416a7e(0x23b))/0x7*(-parseInt(_0x416a7e(0x310))/0x8)+parseInt(_0x416a7e(0x217))/0x9+parseInt(_0x416a7e(0x1cf))/0xa;if(_0x29a9be===_0x466ad5)break;else _0x2b79c4['push'](_0x2b79c4['shift']());}catch(_0x11039a){_0x2b79c4['push'](_0x2b79c4['shift']());}}}(a299_0xb9a6,0xdd3b8));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a299_0xf21873(0x31c),'$id':a299_0xf21873(0x200),'title':a299_0xf21873(0x2c2),'type':a299_0xf21873(0x23a),'required':['flowName',a299_0xf21873(0x315),a299_0xf21873(0x309)],'$defs':{'userId':{'anyOf':[{'type':a299_0xf21873(0x21e),'minLength':0x1},{'type':a299_0xf21873(0x20e),'minimum':0x1}]},'position':{'type':'object','required':['x','y'],'properties':{'x':{'type':a299_0xf21873(0x285),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':'object','required':[a299_0xf21873(0x29c),a299_0xf21873(0x1ee)],'properties':{'value':{'type':a299_0xf21873(0x20e),'minimum':0x1},'unit':{'enum':['SECONDS',a299_0xf21873(0x206),a299_0xf21873(0x262),a299_0xf21873(0x2f8)]}},'additionalProperties':!![]},'flowNode':{'type':a299_0xf21873(0x23a),'required':['id',a299_0xf21873(0x1f0),a299_0xf21873(0x26e),a299_0xf21873(0x2ec)],'properties':{'id':{'type':a299_0xf21873(0x21e),'pattern':a299_0xf21873(0x2ed)},'type':{'enum':[a299_0xf21873(0x22d),a299_0xf21873(0x318),a299_0xf21873(0x2dc),a299_0xf21873(0x1f8),a299_0xf21873(0x32d),a299_0xf21873(0x2c6)]},'name':{'type':a299_0xf21873(0x21e),'minLength':0x1},'path':{'type':a299_0xf21873(0x21e),'minLength':0x1},'position':{'$ref':a299_0xf21873(0x230)},'approvalMode':{'enum':[a299_0xf21873(0x2d0),a299_0xf21873(0x2a1),'ANY']},'taskMode':{'enum':[a299_0xf21873(0x2dc),a299_0xf21873(0x2d1)]},'assignee':{'type':a299_0xf21873(0x23a),'required':[a299_0xf21873(0x327)],'properties':{'strategy':{'enum':[a299_0xf21873(0x211),'ROLE']},'userIds':{'type':a299_0xf21873(0x22b),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a299_0xf21873(0x20e),'minimum':0x1},{'type':'string','pattern':a299_0xf21873(0x264)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a299_0xf21873(0x23a),'required':[a299_0xf21873(0x327),'userIds'],'properties':{'strategy':{'const':'FIXED'},'userIds':{'type':a299_0xf21873(0x22b),'minItems':0x1,'items':{'$ref':a299_0xf21873(0x1ef)}}},'additionalProperties':!![]},'sequential':{'type':'boolean'},'result':{'enum':[a299_0xf21873(0x248),'REJECTED']},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a299_0xf21873(0x21e),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'async':{'type':'object','properties':{'enabled':{'type':a299_0xf21873(0x275)},'retryCount':{'type':a299_0xf21873(0x20e),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a299_0xf21873(0x208)}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':a299_0xf21873(0x275)},'duration':{'$ref':a299_0xf21873(0x208)},'action':{'enum':[a299_0xf21873(0x283),'AUTO_REJECT',a299_0xf21873(0x2bb)]},'interrupting':{'type':a299_0xf21873(0x275)},'scriptName':{'type':a299_0xf21873(0x21e),'minLength':0x1},'resultVariable':{'type':'string','pattern':a299_0xf21873(0x2ed)}},'additionalProperties':!![]},'cc':{'type':a299_0xf21873(0x23a),'required':[a299_0xf21873(0x297)],'properties':{'recipientUserIds':{'type':a299_0xf21873(0x22b),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a299_0xf21873(0x21e),'minLength':0x1}},'visible':{'type':a299_0xf21873(0x22b),'uniqueItems':!![],'items':{'type':a299_0xf21873(0x21e),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a299_0xf21873(0x23a),'required':[a299_0xf21873(0x272),'template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a299_0xf21873(0x21e),'minLength':0x1},'failurePolicy':{'enum':[a299_0xf21873(0x2fc),'FAIL']},'template':{'type':a299_0xf21873(0x23a),'required':[a299_0xf21873(0x268),a299_0xf21873(0x301)],'properties':{'title':{'type':a299_0xf21873(0x21e),'minLength':0x1},'summary':{'type':a299_0xf21873(0x21e),'minLength':0x1},'detailMarkdown':{'type':a299_0xf21873(0x21e)},'facts':{'type':a299_0xf21873(0x22b),'maxItems':0x8,'items':{'type':a299_0xf21873(0x23a),'required':['label',a299_0xf21873(0x29c)],'properties':{'label':{'type':'string','minLength':0x1},'value':{'type':a299_0xf21873(0x21e),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a299_0xf21873(0x22b),'maxItems':0x2,'items':{'type':'object','required':['text',a299_0xf21873(0x1d9)],'properties':{'text':{'type':a299_0xf21873(0x21e),'minLength':0x1},'url':{'type':'string','minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a299_0xf21873(0x22b),'items':{'type':a299_0xf21873(0x23a),'required':['type','value'],'properties':{'type':{'enum':[a299_0xf21873(0x31e),a299_0xf21873(0x252),a299_0xf21873(0x308)]},'value':{'type':a299_0xf21873(0x21e),'minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a299_0xf21873(0x23a),'properties':{'id':{'type':a299_0xf21873(0x21e),'pattern':a299_0xf21873(0x2ed)},'source':{'type':a299_0xf21873(0x21e),'minLength':0x1},'target':{'type':a299_0xf21873(0x21e),'minLength':0x1},'sourceNodeId':{'type':a299_0xf21873(0x21e),'minLength':0x1},'targetNodeId':{'type':a299_0xf21873(0x21e),'minLength':0x1},'conditionType':{'enum':[a299_0xf21873(0x30f),a299_0xf21873(0x248),a299_0xf21873(0x1e6),a299_0xf21873(0x306)]},'expression':{'type':a299_0xf21873(0x21e)},'defaultFlow':{'type':a299_0xf21873(0x275)},'name':{'type':'string'},'waypoints':{'type':a299_0xf21873(0x22b),'items':{'$ref':a299_0xf21873(0x230)}}},'allOf':[{'anyOf':[{'required':[a299_0xf21873(0x267)]},{'required':[a299_0xf21873(0x2c9)]}]},{'anyOf':[{'required':[a299_0xf21873(0x2b4)]},{'required':[a299_0xf21873(0x1cd)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a299_0xf21873(0x21e),'minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':[a299_0xf21873(0x2e0),a299_0xf21873(0x260)]},'datasetCode':{'type':a299_0xf21873(0x21e),'minLength':0x1},'pageId':{'type':'integer','minimum':0x1,'maximum':Number[a299_0xf21873(0x210)]},'pageIds':{'type':a299_0xf21873(0x22b),'items':{'type':a299_0xf21873(0x20e),'minimum':0x1,'maximum':Number[a299_0xf21873(0x210)]}},'templateName':![],'flowJson':{'type':a299_0xf21873(0x23a),'required':[a299_0xf21873(0x1c9),a299_0xf21873(0x1e8)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a299_0xf21873(0x21e),'const':'approval.simple-flow.v1','description':a299_0xf21873(0x1fe)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a299_0xf21873(0x1ce)},'startPageId':![],'startPath':{'type':'string','minLength':0x1},'nodes':{'type':a299_0xf21873(0x22b),'minItems':0x1,'items':{'$ref':a299_0xf21873(0x30c)}},'edges':{'type':a299_0xf21873(0x22b),'minItems':0x1,'items':{'$ref':a299_0xf21873(0x31b)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a299_0xf21873(0x23e),a299_0xf21873(0x302),'flowName',a299_0xf21873(0x265),'datasetCode',a299_0xf21873(0x219),a299_0xf21873(0x2e3),a299_0xf21873(0x21d)],REMOVED_ROOT_FIELDS=['id',a299_0xf21873(0x219),'templateName'],DEFAULT_FLOW_SCHEMA_VERSION=a299_0xf21873(0x2e7),NODE_TYPES=new Set(['START',a299_0xf21873(0x318),'APPROVAL',a299_0xf21873(0x1f8),'SCRIPT',a299_0xf21873(0x2c6)]),CONDITION_TYPES=new Set([a299_0xf21873(0x30f),a299_0xf21873(0x248),a299_0xf21873(0x1e6),'EXPRESSION']),APPROVAL_MODES=new Set([a299_0xf21873(0x2d0),a299_0xf21873(0x2a1),a299_0xf21873(0x2d8)]),APPROVAL_TASK_MODES=new Set([a299_0xf21873(0x2dc),'HANDLE']),FLOW_TIME_UNITS=new Set([a299_0xf21873(0x1cc),a299_0xf21873(0x206),a299_0xf21873(0x262),a299_0xf21873(0x2f8)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a299_0xf21873(0x283),a299_0xf21873(0x2d2),'EXECUTE_BFF']),FLOW_TYPES=new Set([a299_0xf21873(0x2e0),'INDEPENDENT_FLOW']),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a299_0xf21873(0x28b)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a299_0xf21873(0x2fc),'FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set(['USER',a299_0xf21873(0x252),a299_0xf21873(0x308)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a299_0xf21873(0x23f)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a299_0xf21873(0x2cf),UNSUPPORTED_FORM_MESSAGE=a299_0xf21873(0x216),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a299_0xf21873(0x215),RESERVED_RESULT_VARIABLES=new Set([a299_0xf21873(0x21f),a299_0xf21873(0x27f),'approval_sys_appCode',a299_0xf21873(0x2cb),'approval_sys_initiatorUserId',a299_0xf21873(0x27d),a299_0xf21873(0x2b7),'approval_sys_pageId',a299_0xf21873(0x220),'approval_sys_dataId']);export function normalizeFlowConfig(_0x66cb15){const _0x21ca37=a299_0xf21873;if(!isRecord(_0x66cb15))throw new TypeError(_0x21ca37(0x317));const _0x28876a=cloneJsonValue(_0x66cb15),_0x436939=_0x28876a[_0x21ca37(0x309)],_0x1eb536=isRecord(_0x436939)?cloneJsonValue(_0x436939):{},_0x5990f1=[],_0x1093ae=[];for(const _0x266be2 of REMOVED_ROOT_FIELDS){if(!Object[_0x21ca37(0x31d)][_0x21ca37(0x2fd)][_0x21ca37(0x20b)](_0x28876a,_0x266be2))continue;delete _0x28876a[_0x266be2],_0x1093ae[_0x21ca37(0x2c1)](_0x266be2),_0x5990f1['push']({'code':_0x21ca37(0x2ba),'path':_0x266be2,'message':_0x266be2+_0x21ca37(0x2b8)});}for(const _0x3af03d of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x21ca37(0x31d)][_0x21ca37(0x2fd)][_0x21ca37(0x20b)](_0x1eb536,_0x3af03d))continue;const _0x4e3409=_0x21ca37(0x1dc)+_0x3af03d;delete _0x1eb536[_0x3af03d],_0x1093ae[_0x21ca37(0x2c1)](_0x4e3409),_0x5990f1['push']({'code':'legacy_field_removed','path':_0x4e3409,'message':_0x4e3409+'\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.'});}if(Object[_0x21ca37(0x31d)][_0x21ca37(0x2fd)][_0x21ca37(0x20b)](_0x1eb536,'schemaVersion')){const _0x361e8c=_0x1eb536[_0x21ca37(0x2c0)],_0x585812=typeof _0x361e8c===_0x21ca37(0x21e)?_0x361e8c[_0x21ca37(0x325)]():_0x361e8c;if(isEmptyJsonValue(_0x361e8c)||_0x585812===DEFAULT_FLOW_SCHEMA_VERSION){const _0x3b5e8b='flowJson.schemaVersion';delete _0x1eb536['schemaVersion'],_0x1093ae['push'](_0x3b5e8b),_0x5990f1[_0x21ca37(0x2c1)]({'code':'legacy_field_removed','path':_0x3b5e8b,'message':_0x3b5e8b+_0x21ca37(0x287)+DEFAULT_FLOW_SCHEMA_VERSION+'\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.'});}}removeEmptyMetadata(_0x1eb536,_0x21ca37(0x309),_0x5990f1,_0x1093ae);_0x28876a[_0x21ca37(0x315)]===_0x21ca37(0x260)&&!Object[_0x21ca37(0x31d)][_0x21ca37(0x2fd)][_0x21ca37(0x20b)](_0x1eb536,'pageMode')&&(_0x1eb536[_0x21ca37(0x1e7)]=_0x21ca37(0x1ce));_0x28876a[_0x21ca37(0x309)]=_0x1eb536;if(typeof _0x28876a[_0x21ca37(0x282)]===_0x21ca37(0x21e))_0x28876a['flowName']=_0x28876a[_0x21ca37(0x282)]['trim']();return{'config':_0x28876a,'warnings':_0x5990f1,'removedPaths':_0x1093ae};}export function validateFlowConfig(_0x40473b){const _0xa2716=a299_0xf21873;let _0x1c78c9;try{_0x1c78c9=normalizeFlowConfig(_0x40473b);}catch(_0x270c53){const _0x31c0c4=_0x270c53 instanceof Error?_0x270c53[_0xa2716(0x2fe)]:String(_0x270c53),_0x5437d1={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x31c0c4}],'warnings':[],'normalized':_0x5437d1,'validationConfig':_0x5437d1};}const _0x55dfd5=_0x1c78c9[_0xa2716(0x22f)],_0x5dcb32=cloneJsonValue(_0x55dfd5),_0x4faaeb=_0x5dcb32[_0xa2716(0x309)];_0x4faaeb['flowKey']='__rabetbase_local_validation__',_0x4faaeb[_0xa2716(0x282)]=_0x55dfd5[_0xa2716(0x282)];typeof _0x55dfd5[_0xa2716(0x274)]===_0xa2716(0x21e)&&_0x55dfd5[_0xa2716(0x274)][_0xa2716(0x325)]()&&(_0x4faaeb[_0xa2716(0x265)]=_0x55dfd5['datasetCode'][_0xa2716(0x325)]());const _0x309104=[];return validateOuterMetadata(_0x55dfd5,_0x309104),validateFlowClassification(_0x55dfd5,_0x309104),validateGraph(_0x55dfd5[_0xa2716(0x309)],_0x309104),{'valid':_0x309104[_0xa2716(0x24f)]===0x0,'errors':_0x309104,'warnings':_0x1c78c9[_0xa2716(0x266)],'normalized':_0x55dfd5,'validationConfig':_0x5dcb32};}function validateFlowClassification(_0x31f301,_0x3c1091){const _0x1a05af=a299_0xf21873;if(!isRecord(_0x31f301[_0x1a05af(0x309)]))return;const _0x53eac6=_0x31f301[_0x1a05af(0x315)],_0x1e71ab=_0x31f301[_0x1a05af(0x309)][_0x1a05af(0x1e7)];_0x1e71ab!==undefined&&(typeof _0x1e71ab!==_0x1a05af(0x21e)||!FLOW_PAGE_MODES['has'](_0x1e71ab))&&_0x3c1091[_0x1a05af(0x2c1)]({'path':'flowJson.pageMode','message':_0x1a05af(0x29d)+String(_0x1e71ab)+'.'});_0x53eac6===_0x1a05af(0x2e0)&&_0x1e71ab!==undefined&&_0x3c1091[_0x1a05af(0x2c1)]({'path':_0x1a05af(0x1e2),'message':'pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.'});_0x53eac6===_0x1a05af(0x260)&&_0x1e71ab==='PLATFORM_FORM'&&_0x3c1091[_0x1a05af(0x2c1)]({'path':_0x1a05af(0x1e2),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x53eac6===_0x1a05af(0x2e0)||_0x53eac6===_0x1a05af(0x260))&&validateCustomPageNavigation(_0x31f301,_0x53eac6,_0x1e71ab,_0x3c1091);if(_0x53eac6!=='FORM_FLOW'||!Array[_0x1a05af(0x1f1)](_0x31f301[_0x1a05af(0x309)][_0x1a05af(0x1c9)]))return;_0x31f301[_0x1a05af(0x309)][_0x1a05af(0x1c9)][_0x1a05af(0x32a)]((_0x56775b,_0x44edc3)=>{const _0x5dbac2=_0x1a05af;isRecord(_0x56775b)&&_0x56775b['type']===_0x5dbac2(0x2dc)&&_0x56775b[_0x5dbac2(0x279)]===_0x5dbac2(0x2d1)&&_0x3c1091['push']({'path':_0x5dbac2(0x300)+_0x44edc3+_0x5dbac2(0x289),'message':_0x5dbac2(0x307)});});}function validateCustomPageNavigation(_0x58172f,_0x2cda5c,_0xe27b01,_0x2a4ef6){const _0x4e4860=a299_0xf21873,_0x1d4c95=_0x58172f[_0x4e4860(0x309)][_0x4e4860(0x2c5)];_0x1d4c95!==undefined&&_0x2a4ef6[_0x4e4860(0x2c1)]({'path':_0x4e4860(0x2f5),'message':_0x4e4860(0x269)});const _0x3e4907=_0x58172f[_0x4e4860(0x309)][_0x4e4860(0x223)];_0x3e4907!==undefined&&(typeof _0x3e4907!==_0x4e4860(0x21e)||_0x3e4907[_0x4e4860(0x325)]()==='')&&_0x2a4ef6[_0x4e4860(0x2c1)]({'path':'flowJson.startPath','message':_0x4e4860(0x1e4)});const _0x2aebbe=Array[_0x4e4860(0x1f1)](_0x58172f[_0x4e4860(0x309)]['nodes'])?_0x58172f[_0x4e4860(0x309)][_0x4e4860(0x1c9)][_0x4e4860(0x253)]((_0x286835,_0x3c4bf5)=>({'node':_0x286835,'index':_0x3c4bf5}))[_0x4e4860(0x2a3)](({node:_0x1a72d9})=>isRecord(_0x1a72d9)&&_0x1a72d9[_0x4e4860(0x27a)]!==undefined):[],_0x3d2127=_0x3e4907!==undefined||_0x2aebbe[_0x4e4860(0x24f)]>0x0,_0xcc29d7=_0xe27b01===undefined&&_0x2cda5c===_0x4e4860(0x260)?_0x4e4860(0x1ce):_0xe27b01;_0x3d2127&&(_0x2cda5c!==_0x4e4860(0x260)||_0xcc29d7!==_0x4e4860(0x1ce))&&(_0x3e4907!==undefined&&_0x2a4ef6['push']({'path':_0x4e4860(0x214),'message':_0x4e4860(0x235)}),_0x2aebbe[_0x4e4860(0x32a)](({index:_0x29a36d})=>{const _0x3e6cb6=_0x4e4860;_0x2a4ef6[_0x3e6cb6(0x2c1)]({'path':_0x3e6cb6(0x300)+_0x29a36d+_0x3e6cb6(0x1fb),'message':_0x3e6cb6(0x26f)});}));}export async function writeNormalizedFlowConfig(_0x270866,_0x5db509,_0x34beda={}){const _0x3d1e49=a299_0xf21873,_0x1c2e54=resolve(_0x270866),_0x28fb6e=_0x1c2e54+'.'+process[_0x3d1e49(0x29b)]+'.'+randomUUID()+_0x3d1e49(0x2a0),_0x204164=JSON[_0x3d1e49(0x21a)](_0x5db509,null,0x2)+'\x0a';let _0x45dfbc;try{try{_0x45dfbc=(await stat(_0x1c2e54))[_0x3d1e49(0x1e9)]&0x1ff;}catch{_0x45dfbc=undefined;}await writeFile(_0x28fb6e,_0x204164,{'encoding':_0x3d1e49(0x278),'flag':'wx','mode':_0x45dfbc??0x1a4});if(_0x45dfbc!==undefined)await chmod(_0x28fb6e,_0x45dfbc);_0x34beda[_0x3d1e49(0x251)]===![]?(await link(_0x28fb6e,_0x1c2e54),await unlink(_0x28fb6e)):await rename(_0x28fb6e,_0x1c2e54);}finally{await unlink(_0x28fb6e)[_0x3d1e49(0x1f4)](()=>undefined);}}function validateOuterMetadata(_0x5cccf8,_0x49a551){const _0x397636=a299_0xf21873;(typeof _0x5cccf8[_0x397636(0x282)]!=='string'||_0x5cccf8[_0x397636(0x282)][_0x397636(0x325)]()==='')&&_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x282),'message':_0x397636(0x329)});_0x5cccf8[_0x397636(0x2a4)]!==undefined&&typeof _0x5cccf8[_0x397636(0x2a4)]!==_0x397636(0x21e)&&_0x49a551['push']({'path':_0x397636(0x2a4),'message':_0x397636(0x26d)});if(_0x5cccf8[_0x397636(0x315)]===undefined||_0x5cccf8[_0x397636(0x315)]===null)_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x315),'message':_0x397636(0x311)});else(typeof _0x5cccf8[_0x397636(0x315)]!==_0x397636(0x21e)||!FLOW_TYPES[_0x397636(0x2fb)](_0x5cccf8['flowType']))&&_0x49a551['push']({'path':'flowType','message':_0x397636(0x2a5)+String(_0x5cccf8[_0x397636(0x315)])+'.'});_0x5cccf8[_0x397636(0x274)]!==undefined&&typeof _0x5cccf8['datasetCode']!==_0x397636(0x21e)&&_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x274),'message':_0x397636(0x24b)});_0x5cccf8[_0x397636(0x22a)]===undefined&&_0x5cccf8[_0x397636(0x2e3)]!==undefined&&(!Number['isSafeInteger'](_0x5cccf8[_0x397636(0x2e3)])||_0x5cccf8[_0x397636(0x2e3)]<=0x0)&&_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x2e3),'message':_0x397636(0x1cb)});if(_0x5cccf8['pageIds']!==undefined){if(!Array[_0x397636(0x1f1)](_0x5cccf8[_0x397636(0x22a)])||_0x5cccf8[_0x397636(0x22a)]['some'](_0x1f9732=>!Number[_0x397636(0x1d4)](_0x1f9732)||_0x1f9732<=0x0))_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x22a),'message':'pageIds\x20must\x20be\x20an\x20array\x20of\x20positive\x20safe\x20integers.'});else[...new Set(_0x5cccf8['pageIds'])][_0x397636(0x2f9)](',')[_0x397636(0x24f)]>0x800&&_0x49a551[_0x397636(0x2c1)]({'path':'pageIds','message':_0x397636(0x1fd)});_0x5cccf8[_0x397636(0x315)]==='INDEPENDENT_FLOW'&&Array[_0x397636(0x1f1)](_0x5cccf8['pageIds'])&&_0x5cccf8[_0x397636(0x22a)][_0x397636(0x24f)]>0x0&&_0x49a551['push']({'path':_0x397636(0x22a),'message':_0x397636(0x29e)});}_0x5cccf8['flowType']===_0x397636(0x260)&&_0x5cccf8[_0x397636(0x274)]!==undefined&&_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x274),'message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.'}),_0x5cccf8[_0x397636(0x315)]==='INDEPENDENT_FLOW'&&_0x5cccf8[_0x397636(0x22a)]===undefined&&_0x5cccf8['pageId']!==undefined&&_0x49a551[_0x397636(0x2c1)]({'path':_0x397636(0x2e3),'message':_0x397636(0x24a)});}function validateGraph(_0x255619,_0x3d54f5){const _0x33b7f4=a299_0xf21873;if(!isRecord(_0x255619)){_0x3d54f5[_0x33b7f4(0x2c1)]({'path':_0x33b7f4(0x309),'message':_0x33b7f4(0x28e)});return;}!Array[_0x33b7f4(0x1f1)](_0x255619[_0x33b7f4(0x1c9)])&&_0x3d54f5[_0x33b7f4(0x2c1)]({'path':'flowJson.nodes','message':_0x33b7f4(0x23d)});!Array[_0x33b7f4(0x1f1)](_0x255619['edges'])&&_0x3d54f5[_0x33b7f4(0x2c1)]({'path':_0x33b7f4(0x233),'message':_0x33b7f4(0x31a)});Object[_0x33b7f4(0x31d)]['hasOwnProperty'][_0x33b7f4(0x20b)](_0x255619,_0x33b7f4(0x2c0))&&_0x3d54f5[_0x33b7f4(0x2c1)]({'path':'flowJson.schemaVersion','message':'Unsupported\x20schemaVersion:\x20'+String(_0x255619[_0x33b7f4(0x2c0)])+_0x33b7f4(0x1ca)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x26fecc of[_0x33b7f4(0x218),_0x33b7f4(0x2a2),'formPermissions']){Object['prototype'][_0x33b7f4(0x2fd)][_0x33b7f4(0x20b)](_0x255619,_0x26fecc)&&_0x3d54f5[_0x33b7f4(0x2c1)]({'path':_0x33b7f4(0x1dc)+_0x26fecc,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array['isArray'](_0x255619[_0x33b7f4(0x1c9)])||!Array[_0x33b7f4(0x1f1)](_0x255619['edges']))return;const _0x249796=new Map(),_0x45d2e3=[],_0x800a34=[],_0x7d899a=new Map(),_0xbada06=new Map(),_0x2a00bc=new Set();let _0x406a1c=0x0;_0x255619[_0x33b7f4(0x1c9)][_0x33b7f4(0x32a)]((_0xeb1db7,_0x5523c2)=>{const _0x218e95=_0x33b7f4,_0x2b3d90=_0x218e95(0x300)+_0x5523c2+']';if(!isRecord(_0xeb1db7)){_0x3d54f5[_0x218e95(0x2c1)]({'path':_0x2b3d90,'message':_0x218e95(0x2b6)});return;}const _0x3df17f=_0xeb1db7;if(typeof _0x3df17f['id']!==_0x218e95(0x21e)||!BPMN_ID_PATTERN[_0x218e95(0x2eb)](_0x3df17f['id']))_0x3d54f5[_0x218e95(0x2c1)]({'path':_0x2b3d90+_0x218e95(0x2fa),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x249796[_0x218e95(0x2fb)](_0x3df17f['id'])?_0x3d54f5[_0x218e95(0x2c1)]({'path':_0x2b3d90+'.id','message':_0x218e95(0x2e1)+_0x3df17f['id']+'.'}):(_0x249796[_0x218e95(0x227)](_0x3df17f['id'],_0x3df17f),_0x2a00bc[_0x218e95(0x32f)](_0x3df17f['id']));if(!NODE_TYPES[_0x218e95(0x2fb)](_0x3df17f['type']))_0x3d54f5[_0x218e95(0x2c1)]({'path':_0x2b3d90+_0x218e95(0x2ca),'message':_0x218e95(0x246)+String(_0x3df17f[_0x218e95(0x1f0)])+'.'});else{if(_0x3df17f[_0x218e95(0x1f0)]===_0x218e95(0x22d))_0x45d2e3[_0x218e95(0x2c1)](_0x3df17f['id']);else _0x3df17f[_0x218e95(0x1f0)]===_0x218e95(0x318)&&_0x800a34[_0x218e95(0x2c1)](_0x3df17f['id']);}_0x3df17f[_0x218e95(0x1f0)]===_0x218e95(0x2dc)&&(_0x3df17f[_0x218e95(0x279)]===undefined||_0x3df17f['taskMode']==='APPROVAL')&&(_0x406a1c+=0x1);validateNode(_0x3df17f,_0x2b3d90,_0x3d54f5);if(_0x3df17f['type']===_0x218e95(0x32d)){const _0x4797de=resolveEffectiveResultVariable(_0x3df17f[_0x218e95(0x2a7)],![]);_0x4797de&&(registerResultVariableOwner(_0xbada06,_0x4797de,_0x3df17f['id'],_0x3d54f5),!_0x7d899a[_0x218e95(0x2fb)](_0x4797de)&&_0x7d899a[_0x218e95(0x227)](_0x4797de,_0x3df17f['id']));}if(_0x3df17f[_0x218e95(0x1f0)]===_0x218e95(0x2dc)&&isRecord(_0x3df17f[_0x218e95(0x2aa)])&&_0x3df17f[_0x218e95(0x2aa)][_0x218e95(0x32c)]===!![]&&_0x3df17f['timeout'][_0x218e95(0x26b)]===_0x218e95(0x2bb)){const _0x2e886a=resolveEffectiveResultVariable(_0x3df17f[_0x218e95(0x2aa)][_0x218e95(0x2a7)],!![]);_0x2e886a&®isterResultVariableOwner(_0xbada06,_0x2e886a,_0x3df17f['id']+'.timeout',_0x3d54f5);}});_0x45d2e3['length']!==0x1&&_0x3d54f5[_0x33b7f4(0x2c1)]({'path':_0x33b7f4(0x26c),'message':_0x33b7f4(0x229)});_0x800a34[_0x33b7f4(0x24f)]===0x0&&_0x3d54f5['push']({'path':_0x33b7f4(0x26c),'message':'Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.'});const _0x57bd17=new Map(),_0x575fc4=new Map(),_0x37c28c=new Map(),_0x338e66=new Set();_0x255619['edges']['forEach']((_0x351cb9,_0x26060a)=>{const _0xf63826=_0x33b7f4,_0x51f61e=_0xf63826(0x232)+_0x26060a+']';if(!isRecord(_0x351cb9)){_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e,'message':_0xf63826(0x259)});return;}const _0x4846d9=_0x351cb9;_0x37c28c[_0xf63826(0x227)](_0x4846d9,_0x51f61e);const _0x111f19=resolveEdgeEndpoint(_0x4846d9[_0xf63826(0x267)],_0x4846d9['sourceNodeId']),_0x7f85e4=resolveEdgeEndpoint(_0x4846d9['target'],_0x4846d9[_0xf63826(0x1cd)]);if(!_0x111f19)_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e+_0xf63826(0x21b),'message':'edge\x20source\x20is\x20required.'});if(!_0x7f85e4)_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e+_0xf63826(0x2af),'message':_0xf63826(0x281)});_0x111f19&&!_0x249796[_0xf63826(0x2fb)](_0x111f19)&&_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e+_0xf63826(0x21b),'message':_0xf63826(0x24c)+_0x111f19+'.'});_0x7f85e4&&!_0x249796[_0xf63826(0x2fb)](_0x7f85e4)&&_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e+'.target','message':_0xf63826(0x2bd)+_0x7f85e4+'.'});if(_0x4846d9['id']!==undefined){if(typeof _0x4846d9['id']!==_0xf63826(0x21e)||!BPMN_ID_PATTERN['test'](_0x4846d9['id']))_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e+_0xf63826(0x2fa),'message':'edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else{if(_0x2a00bc[_0xf63826(0x2fb)](_0x4846d9['id']))_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e+_0xf63826(0x2fa),'message':_0xf63826(0x322)+_0x4846d9['id']+'.'});else!_0x2a00bc[_0xf63826(0x2fb)](_0x4846d9['id'])&&_0x2a00bc[_0xf63826(0x32f)](_0x4846d9['id']);}}if(_0x111f19&&_0x7f85e4){const _0x55e3a9=_0x111f19+'\x00'+_0x7f85e4+'\x00'+(_0x4846d9[_0xf63826(0x261)]??'ALWAYS');_0x338e66[_0xf63826(0x2fb)](_0x55e3a9)?_0x3d54f5[_0xf63826(0x2c1)]({'path':_0x51f61e,'message':'Duplicate\x20edge\x20route:\x20'+_0x111f19+_0xf63826(0x1dd)+_0x7f85e4+'\x20('+(_0x4846d9[_0xf63826(0x261)]??_0xf63826(0x30f))+').'}):_0x338e66[_0xf63826(0x32f)](_0x55e3a9);}validateEdge(_0x4846d9,_0x51f61e,_0x3d54f5),_0x111f19&&_0x7f85e4&&(_0x57bd17['get'](_0x111f19)?.['push'](_0x4846d9)??_0x57bd17[_0xf63826(0x227)](_0x111f19,[_0x4846d9]),_0x575fc4[_0xf63826(0x2f6)](_0x7f85e4)?.[_0xf63826(0x2c1)](_0x4846d9)??_0x575fc4['set'](_0x7f85e4,[_0x4846d9]));});if(_0x45d2e3['length']!==0x1)return;validateGraphShape(_0x249796,_0x45d2e3[0x0],_0x800a34,_0x57bd17,_0x575fc4,_0x37c28c,_0x3d54f5),validateScriptResultReferences(_0x249796,_0x45d2e3[0x0],_0x57bd17,_0x575fc4,_0x37c28c,_0x7d899a,_0x3d54f5),validateApprovalResults(_0x249796,_0x406a1c,_0x800a34,_0x3d54f5);}function validateNode(_0x686ed7,_0x315520,_0x19b8f7){const _0x3b1740=a299_0xf21873;for(const _0x49c990 of[_0x3b1740(0x207),_0x3b1740(0x202)]){Object['prototype'][_0x3b1740(0x2fd)][_0x3b1740(0x20b)](_0x686ed7,_0x49c990)&&_0x19b8f7['push']({'path':_0x315520+'.'+_0x49c990,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x3b1740(0x2fb)](_0x686ed7[_0x3b1740(0x1f0)]))return;(typeof _0x686ed7[_0x3b1740(0x26e)]!==_0x3b1740(0x21e)||_0x686ed7['name'][_0x3b1740(0x325)]()==='')&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+'.name','message':_0x3b1740(0x255)});_0x686ed7[_0x3b1740(0x2e3)]!==undefined&&_0x19b8f7['push']({'path':_0x315520+_0x3b1740(0x2cd),'message':_0x3b1740(0x2c7)});if(_0x686ed7['path']!==undefined){if(typeof _0x686ed7[_0x3b1740(0x27a)]!=='string'||_0x686ed7['path']['trim']()==='')_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x224),'message':_0x3b1740(0x2d4)});else _0x686ed7['type']!=='APPROVAL'&&_0x686ed7[_0x3b1740(0x1f0)]!==_0x3b1740(0x318)&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x224),'message':_0x3b1740(0x1f2)});}const _0x39efa2=_0x686ed7[_0x3b1740(0x2ec)];if(!isRecord(_0x39efa2))_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x228),'message':_0x3b1740(0x1d2)});else for(const _0x254d6b of['x','y']){const _0x4b604e=_0x39efa2[_0x254d6b];(typeof _0x4b604e!==_0x3b1740(0x285)||!Number[_0x3b1740(0x209)](_0x4b604e)||_0x4b604e<0x0)&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x2d7)+_0x254d6b,'message':_0x3b1740(0x212)+_0x254d6b+_0x3b1740(0x32b)});}if(_0x686ed7['type']==='APPROVAL'){const _0x16baa6=_0x686ed7[_0x3b1740(0x249)]??_0x3b1740(0x2d0),_0xa347d8=_0x686ed7[_0x3b1740(0x279)]??_0x3b1740(0x2dc);!APPROVAL_TASK_MODES[_0x3b1740(0x2fb)](_0xa347d8)&&_0x19b8f7['push']({'path':_0x315520+_0x3b1740(0x271),'message':_0x3b1740(0x25c)+String(_0xa347d8)+'.'});!APPROVAL_MODES[_0x3b1740(0x2fb)](_0x16baa6)&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x237),'message':_0x3b1740(0x28c)+String(_0x16baa6)+'.'});if(!isRecord(_0x686ed7[_0x3b1740(0x20f)]))_0x19b8f7['push']({'path':_0x315520+_0x3b1740(0x2e6),'message':_0x3b1740(0x273)});else{const _0x31b23f=_0x686ed7[_0x3b1740(0x20f)][_0x3b1740(0x327)];_0x31b23f!=='FIXED'&&_0x31b23f!==_0x3b1740(0x252)&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+'.assignee.strategy','message':_0x3b1740(0x333)});if(_0x31b23f===_0x3b1740(0x211)){const _0x23434a=_0x686ed7[_0x3b1740(0x20f)][_0x3b1740(0x290)];if(!Array['isArray'](_0x23434a)||_0x23434a[_0x3b1740(0x24f)]===0x0)_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x1db),'message':_0x3b1740(0x2ee)});else{const _0x1f428e=_0x23434a[_0x3b1740(0x276)](_0x2a0c24=>!isValidUserId(_0x2a0c24));_0x1f428e>=0x0&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x24e)+_0x1f428e+']','message':_0x3b1740(0x226)});const _0x190976=new Set(_0x23434a[_0x3b1740(0x2a3)](isValidUserId)[_0x3b1740(0x253)](_0x19b9d4=>String(_0x19b9d4)[_0x3b1740(0x325)]()));_0x16baa6==='SINGLE'&&_0x190976[_0x3b1740(0x2df)]>0x1&&_0x19b8f7['push']({'path':_0x315520+_0x3b1740(0x1db),'message':'SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.'});}}if(_0x31b23f===_0x3b1740(0x252)){const _0x2646c1=_0x686ed7[_0x3b1740(0x20f)][_0x3b1740(0x2de)],_0x170158=typeof _0x2646c1===_0x3b1740(0x285)||typeof _0x2646c1===_0x3b1740(0x21e)?Number(String(_0x2646c1)['trim']()):Number['NaN'];(!Number[_0x3b1740(0x1d4)](_0x170158)||_0x170158<=0x0)&&_0x19b8f7['push']({'path':_0x315520+_0x3b1740(0x1ff),'message':'ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.'});}}if(_0x686ed7[_0x3b1740(0x250)]!==undefined){if(!isRecord(_0x686ed7[_0x3b1740(0x250)]))_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x24d),'message':_0x3b1740(0x1e5)});else{if(_0x686ed7[_0x3b1740(0x250)]['strategy']!==_0x3b1740(0x211))_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x2d6),'message':_0x3b1740(0x2f0)});else{const _0x1ec60d=_0x686ed7[_0x3b1740(0x250)][_0x3b1740(0x290)];if(!Array[_0x3b1740(0x1f1)](_0x1ec60d)||_0x1ec60d[_0x3b1740(0x24f)]===0x0)_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x2ce),'message':_0x3b1740(0x2a6)});else{const _0x1bf46d=_0x1ec60d['findIndex'](_0x340610=>!isValidUserId(_0x340610));_0x1bf46d>=0x0&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x1ea)+_0x1bf46d+']','message':_0x3b1740(0x25b)});}}}}}_0x686ed7[_0x3b1740(0x1d3)]!==undefined&&typeof _0x686ed7['sequential']!==_0x3b1740(0x275)&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x1f9),'message':_0x3b1740(0x299)});if(_0x686ed7[_0x3b1740(0x1f0)]===_0x3b1740(0x32d)){(typeof _0x686ed7[_0x3b1740(0x304)]!=='string'||_0x686ed7[_0x3b1740(0x304)][_0x3b1740(0x325)]()==='')&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x2c4),'message':'SCRIPT\x20node\x20requires\x20scriptName.'});if(_0x686ed7[_0x3b1740(0x2a7)]!==undefined){if(typeof _0x686ed7[_0x3b1740(0x2a7)]!==_0x3b1740(0x21e)||!VARIABLE_PATTERN[_0x3b1740(0x2eb)](_0x686ed7[_0x3b1740(0x2a7)]))_0x19b8f7['push']({'path':_0x315520+_0x3b1740(0x239),'message':_0x3b1740(0x28f)});else(RESERVED_RESULT_VARIABLES[_0x3b1740(0x2fb)](_0x686ed7[_0x3b1740(0x2a7)])||_0x686ed7[_0x3b1740(0x2a7)][_0x3b1740(0x240)](_0x3b1740(0x2f4)))&&_0x19b8f7[_0x3b1740(0x2c1)]({'path':_0x315520+_0x3b1740(0x239),'message':_0x3b1740(0x332)+_0x686ed7[_0x3b1740(0x2a7)]+'.'});}}validateAsyncExecution(_0x686ed7,_0x315520,_0x19b8f7),validateApprovalTimeout(_0x686ed7,_0x315520,_0x19b8f7),validateCcConfig(_0x686ed7,_0x315520,_0x19b8f7),_0x686ed7[_0x3b1740(0x1f0)]===_0x3b1740(0x2c6)&&validateNotificationConfig(_0x686ed7[_0x3b1740(0x22f)],_0x315520+_0x3b1740(0x27b),_0x19b8f7);}function validateAsyncExecution(_0x496b8c,_0x41b280,_0x2edad6){const _0x3a67d1=a299_0xf21873;if(_0x496b8c[_0x3a67d1(0x213)]===undefined)return;if(!isRecord(_0x496b8c['async'])){_0x2edad6[_0x3a67d1(0x2c1)]({'path':_0x41b280+_0x3a67d1(0x324),'message':'async\x20must\x20be\x20an\x20object.'});return;}if(_0x496b8c[_0x3a67d1(0x213)][_0x3a67d1(0x32c)]!==undefined&&typeof _0x496b8c[_0x3a67d1(0x213)][_0x3a67d1(0x32c)]!=='boolean'){_0x2edad6['push']({'path':_0x41b280+_0x3a67d1(0x2a9),'message':_0x3a67d1(0x222)});return;}if(_0x496b8c['async'][_0x3a67d1(0x32c)]!==!![])return;_0x496b8c[_0x3a67d1(0x1f0)]!==_0x3a67d1(0x32d)&&_0x2edad6[_0x3a67d1(0x2c1)]({'path':_0x41b280+'.async','message':_0x3a67d1(0x22c)});const _0x5bffdb=_0x496b8c[_0x3a67d1(0x213)]['retryCount']??0x3;(!Number[_0x3a67d1(0x323)](_0x5bffdb)||_0x5bffdb<0x1||_0x5bffdb>MAX_ASYNC_RETRY_COUNT)&&_0x2edad6[_0x3a67d1(0x2c1)]({'path':_0x41b280+_0x3a67d1(0x2d5),'message':'SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20'+MAX_ASYNC_RETRY_COUNT+'.'}),_0x496b8c[_0x3a67d1(0x213)][_0x3a67d1(0x20a)]!==undefined&&validateTimeAmount(_0x496b8c[_0x3a67d1(0x213)]['retryInterval'],_0x41b280+_0x3a67d1(0x27e),_0x2edad6);}function validateApprovalTimeout(_0x1dcc11,_0x31a22b,_0x31a843){const _0x35efae=a299_0xf21873;if(_0x1dcc11[_0x35efae(0x2aa)]===undefined)return;if(!isRecord(_0x1dcc11[_0x35efae(0x2aa)])){_0x31a843[_0x35efae(0x2c1)]({'path':_0x31a22b+_0x35efae(0x314),'message':_0x35efae(0x31f)});return;}if(_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x32c)]!==undefined&&typeof _0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x32c)]!=='boolean'){_0x31a843['push']({'path':_0x31a22b+_0x35efae(0x2e2),'message':_0x35efae(0x277)});return;}if(_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x32c)]!==!![])return;if(_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x1eb)]!==undefined&&typeof _0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x1eb)]!==_0x35efae(0x275)){_0x31a843[_0x35efae(0x2c1)]({'path':_0x31a22b+_0x35efae(0x221),'message':'timeout.interrupting\x20must\x20be\x20a\x20boolean.'});return;}_0x1dcc11[_0x35efae(0x1f0)]!==_0x35efae(0x2dc)&&_0x31a843[_0x35efae(0x2c1)]({'path':_0x31a22b+_0x35efae(0x314),'message':_0x35efae(0x1d7)});validateTimeAmount(_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x2bf)],_0x31a22b+_0x35efae(0x2be),_0x31a843);const _0x26b9fd=_0x1dcc11['timeout'][_0x35efae(0x26b)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x35efae(0x2fb)](_0x26b9fd)){_0x31a843['push']({'path':_0x31a22b+_0x35efae(0x247),'message':_0x35efae(0x1e1)});return;}(_0x1dcc11[_0x35efae(0x279)]??_0x35efae(0x2dc))===_0x35efae(0x2d1)&&_0x26b9fd!=='EXECUTE_BFF'&&_0x31a843[_0x35efae(0x2c1)]({'path':_0x31a22b+_0x35efae(0x247),'message':'HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.'});const _0x435e53=_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x1eb)]??_0x26b9fd!==_0x35efae(0x2bb);if(_0x26b9fd===_0x35efae(0x2bb))_0x435e53&&_0x31a843['push']({'path':_0x31a22b+_0x35efae(0x221),'message':_0x35efae(0x2b3)}),(typeof _0x1dcc11['timeout'][_0x35efae(0x304)]!==_0x35efae(0x21e)||_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x304)]['trim']()==='')&&_0x31a843[_0x35efae(0x2c1)]({'path':_0x31a22b+_0x35efae(0x1f3),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x1dcc11[_0x35efae(0x2aa)][_0x35efae(0x2a7)],_0x31a22b+_0x35efae(0x30d),_0x31a843);else!_0x435e53&&_0x31a843[_0x35efae(0x2c1)]({'path':_0x31a22b+_0x35efae(0x221),'message':_0x26b9fd+_0x35efae(0x25f)});}function validateTimeAmount(_0x3ba573,_0x4be071,_0x10b234){const _0x356a09=a299_0xf21873;if(!isRecord(_0x3ba573)){_0x10b234[_0x356a09(0x2c1)]({'path':_0x4be071,'message':'duration\x20requires\x20value\x20and\x20unit.'});return;}(!Number['isInteger'](_0x3ba573[_0x356a09(0x29c)])||Number(_0x3ba573['value'])<=0x0)&&_0x10b234['push']({'path':_0x4be071+_0x356a09(0x294),'message':_0x356a09(0x30a)}),!FLOW_TIME_UNITS[_0x356a09(0x2fb)](_0x3ba573[_0x356a09(0x1ee)])&&_0x10b234[_0x356a09(0x2c1)]({'path':_0x4be071+'.unit','message':_0x356a09(0x293)});}function validateOptionalResultVariable(_0x1e87d1,_0x1a9031,_0x847cd){const _0x55c728=a299_0xf21873;if(_0x1e87d1===undefined||_0x1e87d1===null||_0x1e87d1==='')return;if(typeof _0x1e87d1!=='string'||!VARIABLE_PATTERN[_0x55c728(0x2eb)](_0x1e87d1))_0x847cd['push']({'path':_0x1a9031,'message':'resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else(RESERVED_RESULT_VARIABLES[_0x55c728(0x2fb)](_0x1e87d1)||_0x1e87d1[_0x55c728(0x240)]('approval_sys_'))&&_0x847cd[_0x55c728(0x2c1)]({'path':_0x1a9031,'message':_0x55c728(0x332)+_0x1e87d1+'.'});}function validateCcConfig(_0x1c0d1b,_0x4b331a,_0xfa119f){const _0x13de8b=a299_0xf21873;if(_0x1c0d1b['cc']===undefined)return;if(!isRecord(_0x1c0d1b['cc'])){_0xfa119f[_0x13de8b(0x2c1)]({'path':_0x4b331a+_0x13de8b(0x295),'message':_0x13de8b(0x2cc)});return;}_0x1c0d1b['type']!==_0x13de8b(0x318)&&_0x1c0d1b['type']!==_0x13de8b(0x2dc)&&_0xfa119f['push']({'path':_0x4b331a+_0x13de8b(0x295),'message':_0x13de8b(0x203)});Object[_0x13de8b(0x31d)][_0x13de8b(0x2fd)][_0x13de8b(0x20b)](_0x1c0d1b['cc'],_0x13de8b(0x26a))&&_0xfa119f[_0x13de8b(0x2c1)]({'path':_0x4b331a+_0x13de8b(0x296),'message':UNSUPPORTED_FORM_MESSAGE});const _0x3af51f=_0x1c0d1b['cc']['recipientUserIds'];if(!Array[_0x13de8b(0x1f1)](_0x3af51f)||_0x3af51f[_0x13de8b(0x24f)]===0x0)_0xfa119f['push']({'path':_0x4b331a+_0x13de8b(0x2ad),'message':_0x13de8b(0x23c)});else{_0x3af51f[_0x13de8b(0x24f)]>MAX_CC_RECIPIENTS&&_0xfa119f[_0x13de8b(0x2c1)]({'path':_0x4b331a+'.cc.recipientUserIds','message':_0x13de8b(0x238)+MAX_CC_RECIPIENTS+_0x13de8b(0x1ec)});const _0x5d351a=new Set();_0x3af51f[_0x13de8b(0x32a)]((_0x23d5f0,_0x440f7e)=>{const _0x4c9ae5=_0x13de8b;if(typeof _0x23d5f0!==_0x4c9ae5(0x21e)||_0x23d5f0[_0x4c9ae5(0x325)]()==='')_0xfa119f['push']({'path':_0x4b331a+'.cc.recipientUserIds['+_0x440f7e+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x5d351a['has'](_0x23d5f0[_0x4c9ae5(0x325)]())?_0xfa119f['push']({'path':_0x4b331a+'.cc.recipientUserIds['+_0x440f7e+']','message':_0x4c9ae5(0x2b9)+_0x23d5f0[_0x4c9ae5(0x325)]()+'.'}):_0x5d351a['add'](_0x23d5f0[_0x4c9ae5(0x325)]());});}validateStringArray(_0x1c0d1b['cc'][_0x13de8b(0x29a)],_0x4b331a+_0x13de8b(0x241),_0xfa119f);}function validateStringArray(_0x2a8fe1,_0x2edfdd,_0x5e9051){const _0x355aeb=a299_0xf21873;if(_0x2a8fe1===undefined)return;if(!Array[_0x355aeb(0x1f1)](_0x2a8fe1)){_0x5e9051[_0x355aeb(0x2c1)]({'path':_0x2edfdd,'message':'value\x20must\x20be\x20an\x20array.'});return;}const _0x3e956b=new Set();_0x2a8fe1[_0x355aeb(0x32a)]((_0x170250,_0xffdd8f)=>{const _0xa3f780=_0x355aeb;if(typeof _0x170250!==_0xa3f780(0x21e)||_0x170250['trim']()==='')_0x5e9051[_0xa3f780(0x2c1)]({'path':_0x2edfdd+'['+_0xffdd8f+']','message':'value\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x3e956b[_0xa3f780(0x2fb)](_0x170250[_0xa3f780(0x325)]())?_0x5e9051[_0xa3f780(0x2c1)]({'path':_0x2edfdd+'['+_0xffdd8f+']','message':_0xa3f780(0x1df)+_0x170250['trim']()+'.'}):_0x3e956b[_0xa3f780(0x32f)](_0x170250[_0xa3f780(0x325)]());});}function validateNotificationConfig(_0x535337,_0x1a753d,_0x18afa9){const _0x2d1aa8=a299_0xf21873;if(!isRecord(_0x535337)){_0x18afa9[_0x2d1aa8(0x2c1)]({'path':_0x1a753d,'message':'NOTIFICATION\x20node\x20requires\x20config.'});return;}if(_0x535337[_0x2d1aa8(0x2f2)]!==undefined&&_0x535337[_0x2d1aa8(0x2f2)]!==null){if(typeof _0x535337[_0x2d1aa8(0x2f2)]!==_0x2d1aa8(0x21e))_0x18afa9[_0x2d1aa8(0x2c1)]({'path':_0x1a753d+_0x2d1aa8(0x1e0),'message':_0x2d1aa8(0x331)});else _0x535337[_0x2d1aa8(0x2f2)]['trim']()&&_0x535337['version'][_0x2d1aa8(0x325)]()!=='v1'&&_0x18afa9[_0x2d1aa8(0x2c1)]({'path':_0x1a753d+_0x2d1aa8(0x1e0),'message':_0x2d1aa8(0x1f5)+_0x535337['version']+'.'});}const _0x2e60f7=requireNotificationString(_0x535337[_0x2d1aa8(0x272)],_0x1a753d+'.configCode',_0x2d1aa8(0x2c8),_0x18afa9);_0x2e60f7?.['includes']('${')&&_0x18afa9[_0x2d1aa8(0x2c1)]({'path':_0x1a753d+_0x2d1aa8(0x2b0),'message':'Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.'});if(_0x535337[_0x2d1aa8(0x2b1)]!==undefined&&_0x535337[_0x2d1aa8(0x2b1)]!==null){if(typeof _0x535337[_0x2d1aa8(0x2b1)]!==_0x2d1aa8(0x21e))_0x18afa9[_0x2d1aa8(0x2c1)]({'path':_0x1a753d+'.failurePolicy','message':_0x2d1aa8(0x1d1)});else!NOTIFICATION_FAILURE_POLICIES[_0x2d1aa8(0x2fb)](_0x535337[_0x2d1aa8(0x2b1)][_0x2d1aa8(0x325)]()['toUpperCase']())&&_0x18afa9['push']({'path':_0x1a753d+_0x2d1aa8(0x305),'message':_0x2d1aa8(0x286)});}!isRecord(_0x535337[_0x2d1aa8(0x32e)])?_0x18afa9['push']({'path':_0x1a753d+_0x2d1aa8(0x291),'message':_0x2d1aa8(0x2d3)}):validateNotificationTemplate(_0x535337[_0x2d1aa8(0x32e)],_0x1a753d+'.template',_0x18afa9),validateNotificationRecipients(_0x535337['recipients'],_0x1a753d+_0x2d1aa8(0x28d),_0x18afa9);}function validateNotificationTemplate(_0x3f6480,_0x33f95c,_0x45d7cc){const _0x143142=a299_0xf21873;for(const _0x30a760 of['title',_0x143142(0x301)]){const _0x2ca39f=requireNotificationString(_0x3f6480[_0x30a760],_0x33f95c+'.'+_0x30a760,'Notification\x20template.'+_0x30a760+_0x143142(0x303),_0x45d7cc);if(_0x2ca39f)validateNotificationPlaceholders(_0x2ca39f,_0x33f95c+'.'+_0x30a760,_0x45d7cc);}_0x3f6480[_0x143142(0x1d8)]!==undefined&&_0x3f6480[_0x143142(0x1d8)]!==null&&(typeof _0x3f6480['detailMarkdown']!==_0x143142(0x21e)?_0x45d7cc[_0x143142(0x2c1)]({'path':_0x33f95c+_0x143142(0x288),'message':_0x143142(0x319)}):validateNotificationPlaceholders(_0x3f6480[_0x143142(0x1d8)],_0x33f95c+_0x143142(0x288),_0x45d7cc)),validateNotificationFacts(_0x3f6480[_0x143142(0x1da)],_0x33f95c+_0x143142(0x2ff),_0x45d7cc),validateNotificationActions(_0x3f6480[_0x143142(0x234)],_0x33f95c+_0x143142(0x242),_0x45d7cc);}function validateNotificationFacts(_0x41fdc1,_0x32b372,_0x6291e7){const _0x347efe=a299_0xf21873;if(_0x41fdc1===undefined||_0x41fdc1===null)return;if(!Array[_0x347efe(0x1f1)](_0x41fdc1)){_0x6291e7['push']({'path':_0x32b372,'message':'Notification\x20template.facts\x20must\x20be\x20an\x20array.'});return;}_0x41fdc1[_0x347efe(0x24f)]>MAX_NOTIFICATION_FACTS&&_0x6291e7[_0x347efe(0x2c1)]({'path':_0x32b372,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x41fdc1[_0x347efe(0x32a)]((_0xc60312,_0x34695b)=>{const _0x248f86=_0x347efe,_0x53c881=_0x32b372+'['+_0x34695b+']';if(!isRecord(_0xc60312)){_0x6291e7[_0x248f86(0x2c1)]({'path':_0x53c881,'message':_0x248f86(0x27c)});return;}for(const _0x1f6a7 of[_0x248f86(0x2f7),_0x248f86(0x29c)]){const _0x42794f=requireNotificationString(_0xc60312[_0x1f6a7],_0x53c881+'.'+_0x1f6a7,_0x248f86(0x321)+_0x1f6a7+_0x248f86(0x303),_0x6291e7);_0x42794f&&validateNotificationPlaceholders(_0x42794f,_0x53c881+'.'+_0x1f6a7,_0x6291e7);}});}function validateNotificationActions(_0x4d93b9,_0x5471b0,_0x43d112){const _0x3a8d9e=a299_0xf21873;if(_0x4d93b9===undefined||_0x4d93b9===null)return;if(!Array[_0x3a8d9e(0x1f1)](_0x4d93b9)){_0x43d112['push']({'path':_0x5471b0,'message':_0x3a8d9e(0x2dd)});return;}_0x4d93b9[_0x3a8d9e(0x24f)]>MAX_NOTIFICATION_ACTIONS&&_0x43d112[_0x3a8d9e(0x2c1)]({'path':_0x5471b0,'message':_0x3a8d9e(0x22e)+MAX_NOTIFICATION_ACTIONS+_0x3a8d9e(0x254)}),_0x4d93b9['forEach']((_0x454a7a,_0x305c8d)=>{const _0x492324=_0x3a8d9e,_0x4ba8c4=_0x5471b0+'['+_0x305c8d+']';if(!isRecord(_0x454a7a)){_0x43d112[_0x492324(0x2c1)]({'path':_0x4ba8c4,'message':_0x492324(0x30e)});return;}const _0x39d671=requireNotificationString(_0x454a7a[_0x492324(0x298)],_0x4ba8c4+'.text',_0x492324(0x1e3),_0x43d112);if(_0x39d671)validateNotificationPlaceholders(_0x39d671,_0x4ba8c4+_0x492324(0x2f3),_0x43d112);const _0x1a8b33=requireNotificationString(_0x454a7a['url'],_0x4ba8c4+_0x492324(0x2b5),'Notification\x20action.url\x20is\x20required.',_0x43d112);if(!_0x1a8b33)return;validateNotificationPlaceholders(_0x1a8b33,_0x4ba8c4+_0x492324(0x2b5),_0x43d112),!/^https?:\/\//i['test'](_0x1a8b33)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x492324(0x2eb)](_0x1a8b33)&&_0x43d112[_0x492324(0x2c1)]({'path':_0x4ba8c4+_0x492324(0x2b5),'message':_0x492324(0x2ea)});});}function validateNotificationRecipients(_0x5bb3bb,_0x532b7d,_0x321613){const _0x49cb0d=a299_0xf21873;if(_0x5bb3bb===undefined||_0x5bb3bb===null)return;if(!Array[_0x49cb0d(0x1f1)](_0x5bb3bb)){_0x321613[_0x49cb0d(0x2c1)]({'path':_0x532b7d,'message':_0x49cb0d(0x1fc)});return;}let _0x3e38d8=![];_0x5bb3bb[_0x49cb0d(0x32a)]((_0x11b2b0,_0xb296ef)=>{const _0x2b1267=_0x49cb0d,_0x21af51=_0x532b7d+'['+_0xb296ef+']';if(!isRecord(_0x11b2b0)){_0x321613[_0x2b1267(0x2c1)]({'path':_0x21af51,'message':'Notification\x20recipient\x20must\x20be\x20an\x20object.'});return;}const _0x18d4a4=requireNotificationString(_0x11b2b0[_0x2b1267(0x1f0)],_0x21af51+_0x2b1267(0x2ca),_0x2b1267(0x225),_0x321613);_0x18d4a4&&!NOTIFICATION_RECIPIENT_TYPES[_0x2b1267(0x2fb)](_0x18d4a4[_0x2b1267(0x25a)]())&&_0x321613['push']({'path':_0x21af51+_0x2b1267(0x2ca),'message':_0x2b1267(0x2ae)});let _0x164028='TO';_0x11b2b0['role']!==undefined&&_0x11b2b0[_0x2b1267(0x1d6)]!==null&&(typeof _0x11b2b0['role']!==_0x2b1267(0x21e)?(_0x321613[_0x2b1267(0x2c1)]({'path':_0x21af51+_0x2b1267(0x312),'message':'Notification\x20recipient.role\x20must\x20be\x20a\x20string.'}),_0x164028=''):(_0x164028=_0x11b2b0[_0x2b1267(0x1d6)]['trim']()[_0x2b1267(0x25a)](),!NOTIFICATION_RECIPIENT_ROLES['has'](_0x164028)&&_0x321613[_0x2b1267(0x2c1)]({'path':_0x21af51+_0x2b1267(0x312),'message':'Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.'})));if(_0x164028==='TO')_0x3e38d8=!![];const _0x311eff=requireNotificationString(_0x11b2b0[_0x2b1267(0x29c)],_0x21af51+_0x2b1267(0x294),_0x2b1267(0x28a),_0x321613);_0x311eff&&validateNotificationPlaceholders(_0x311eff,_0x21af51+_0x2b1267(0x294),_0x321613);}),_0x5bb3bb['length']>0x0&&!_0x3e38d8&&_0x321613['push']({'path':_0x532b7d,'message':_0x49cb0d(0x284)});}function requireNotificationString(_0x447d8d,_0x3b64a4,_0x4a0810,_0x35f18b){const _0x4b31cf=a299_0xf21873;if(typeof _0x447d8d!=='string'||_0x447d8d['trim']()==='')return _0x35f18b[_0x4b31cf(0x2c1)]({'path':_0x3b64a4,'message':_0x4a0810}),undefined;return _0x447d8d[_0x4b31cf(0x325)]();}function validateNotificationPlaceholders(_0x240192,_0x1a62c8,_0x100d70){const _0xcb36b1=a299_0xf21873;for(const _0x5bf163 of _0x240192[_0xcb36b1(0x243)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x31c4c8=_0x5bf163[0x1]?.[_0xcb36b1(0x325)]()??'',_0x42a928=_0x31c4c8['indexOf']('.'),_0x5b97d5=_0x42a928>=0x0?_0x31c4c8[_0xcb36b1(0x263)](0x0,_0x42a928):_0x31c4c8,_0x49df97=_0x42a928>=0x0?_0x31c4c8[_0xcb36b1(0x263)](_0x42a928+0x1)[_0xcb36b1(0x325)]():'';(![_0xcb36b1(0x2d9),'context','variables'][_0xcb36b1(0x334)](_0x5b97d5)||_0x49df97==='')&&_0x100d70[_0xcb36b1(0x2c1)]({'path':_0x1a62c8,'message':_0xcb36b1(0x316)+_0x5bf163[0x0]+'.'});}_0x240192['replace'](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0xcb36b1(0x334)]('${')&&_0x100d70[_0xcb36b1(0x2c1)]({'path':_0x1a62c8,'message':'Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.'});}function a299_0xb9a6(){const _0x3f6bbf=['transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','Unsupported\x20task\x20mode:\x20','83MsJpox','flowJson.nodes.','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','INDEPENDENT_FLOW','conditionType','HOURS','slice','^[1-9][0-9]*$','bindDatasetCode','warnings','source','title','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','readSources','action','flowJson.nodes','flowDesc\x20must\x20be\x20a\x20string.','name','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','.taskMode','configCode','APPROVAL\x20node\x20requires\x20assignee.','datasetCode','boolean','findIndex','timeout.enabled\x20must\x20be\x20a\x20boolean.','utf8','taskMode','path','.config','Notification\x20fact\x20must\x20be\x20an\x20object.','approval_sys_initiatorUsername','.async.retryInterval','approved','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','edge\x20target\x20is\x20required.','flowName','AUTO_APPROVE','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','number','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','.detailMarkdown','].taskMode','Notification\x20recipient.value\x20is\x20required.','PLATFORM_FORM','Unsupported\x20approval\x20mode:\x20','.recipients','flowJson\x20must\x20be\x20an\x20object.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','userIds','.template','4rgaaJk','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','.value','.cc','.cc.readSources','recipientUserIds','text','sequential\x20must\x20be\x20a\x20boolean.','visible','pid','value','Unsupported\x20pageMode:\x20','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageIds.','.defaultFlow','.tmp','ALL','formDefinitions','filter','flowDesc','Unsupported\x20flowType:\x20','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','resultVariable','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','.async.enabled','timeout','empty_metadata_removed','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','.cc.recipientUserIds','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','.target','.configCode','failurePolicy','Node\x20cannot\x20reach\x20any\x20END.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','target','.url','node\x20must\x20be\x20an\x20object.','approval_sys_datasetCode','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','Duplicate\x20cc\x20recipient\x20userId:\x20','legacy_field_removed','EXECUTE_BFF','waypoint.','Edge\x20target\x20node\x20not\x20found:\x20','.timeout.duration','duration','schemaVersion','push','Rabetbase\x20FlowConfig',',\x20but\x20node\x20','.scriptName','startPageId','NOTIFICATION','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','Notification\x20configCode\x20is\x20required.','sourceNodeId','.type','approval_sys_processInstanceId','cc\x20must\x20be\x20an\x20object.','.pageId','.transferCandidates.userIds','scriptResult','SINGLE','HANDLE','AUTO_REJECT','NOTIFICATION\x20node\x20requires\x20template.','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','.async.retryCount','.transferCandidates.strategy','.position.','ANY','event','\x20must\x20be\x20a\x20finite\x20number.','.expression','APPROVAL','Notification\x20template.actions\x20must\x20be\x20an\x20array.','roleId','size','FORM_FLOW','Duplicate\x20node\x20id:\x20','.timeout.enabled','pageId','.waypoints[','Node\x20has\x20no\x20outgoing\x20edge.','.assignee','approval.simple-flow.v1','some','defaultFlow\x20must\x20be\x20a\x20boolean.','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','test','position','^[A-Za-z_][A-Za-z0-9_]*$','FIXED\x20assignee\x20requires\x20userIds.','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','Node\x20is\x20not\x20reachable\x20from\x20START.','version','.text','approval_sys_','flowJson.startPageId','get','label','DAYS','join','.id','has','CONTINUE','hasOwnProperty','message','.facts','flowJson.nodes[','summary','flowCode','\x20is\x20required.','scriptName','.failurePolicy','EXPRESSION','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','EMAIL','flowJson','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','#/$defs/flowNode','.timeout.resultVariable','Notification\x20action\x20must\x20be\x20an\x20object.','ALWAYS','38104PfOrHc','flowType\x20is\x20required.','.role','waypoints','.timeout','flowType','Unsupported\x20notification\x20placeholder:\x20','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','END','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','edges\x20must\x20be\x20an\x20array.','#/$defs/flowEdge','https://json-schema.org/draft/2020-12/schema','prototype','USER','timeout\x20must\x20be\x20an\x20object.','entries','Notification\x20fact.','Duplicate\x20BPMN\x20element\x20id:\x20','isInteger','.async','trim','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','strategy','3172182RDqpIA','flowName\x20is\x20required.','forEach','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','enabled','SCRIPT','template','add','metadata','Notification\x20version\x20must\x20be\x20a\x20string.','Reserved\x20resultVariable:\x20','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','includes','nodes','.\x20This\x20CLI\x20supports\x20only\x20','pageId\x20must\x20be\x20a\x20positive\x20safe\x20integer.','SECONDS','targetNodeId','CUSTOM_PAGE','4239420dDBVuW','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','failurePolicy\x20must\x20be\x20a\x20string.','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','sequential','isSafeInteger','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','role','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','detailMarkdown','url','facts','.assignee.userIds','flowJson.','\x20->\x20','expression','Duplicate\x20value:\x20','.version','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','flowJson.pageMode','Notification\x20action.text\x20is\x20required.','startPath\x20must\x20be\x20a\x20non-empty\x20string.','transferCandidates\x20must\x20be\x20an\x20object.','REJECTED','pageMode','edges','mode','.transferCandidates.userIds[','interrupting','\x20users.','edge\x20name\x20must\x20be\x20a\x20string.','unit','#/$defs/userId','type','isArray','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','.timeout.scriptName','catch','Unsupported\x20notification\x20version:\x20','parse','Node\x20has\x20no\x20incoming\x20edge.','CONDITION','.sequential','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','].path','Notification\x20recipients\x20must\x20be\x20an\x20array.','pageIds\x20exceeds\x20the\x202048-character\x20binding\x20limit.','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','.assignee.roleId','https://lovrabet.com/schema/rabetbase-flow-config.json','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','formPermission','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','7165085HWmyyY','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','MINUTES','form','#/$defs/timeAmount','isFinite','retryInterval','call','35270iuMhTA','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','integer','assignee','MAX_SAFE_INTEGER','FIXED','position.','async','flowJson.startPath','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','9041706sjrVaH','formSchema','appCode','stringify','.source','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','templateName','string','formData','approval_sys_operationType','.timeout.interrupting','async.enabled\x20must\x20be\x20a\x20boolean.','startPath','.path','Notification\x20recipient.type\x20is\x20required.','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','set','.position','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','pageIds','array','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','START','Notification\x20template\x20supports\x20at\x20most\x20','config','#/$defs/position','Expression\x20references\x20SCRIPT\x20resultVariable\x20','flowJson.edges[','flowJson.edges','actions','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.conditionType','.approvalMode','cc.recipientUserIds\x20supports\x20at\x20most\x20','.resultVariable','object','2219hUaAvj','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','nodes\x20must\x20be\x20an\x20array.','flowKey','BCC','startsWith','.cc.visible','.actions','matchAll','defaultFlow','Unsupported\x20condition\x20type:\x20','Unsupported\x20node\x20type:\x20','.timeout.action','APPROVED','approvalMode','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','datasetCode\x20must\x20be\x20a\x20string.','Edge\x20source\x20node\x20not\x20found:\x20','.transferCandidates','.assignee.userIds[','length','transferCandidates','overwrite','ROLE','map','\x20actions.','Every\x20node\x20requires\x20a\x20non-empty\x20name.','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','4418682RjCXjA','keys','edge\x20must\x20be\x20an\x20object.','toUpperCase'];a299_0xb9a6=function(){return _0x3f6bbf;};return a299_0xb9a6();}function validateEdge(_0x100049,_0x1cbb54,_0x25a455){const _0x1871b6=a299_0xf21873;_0x100049['name']!==undefined&&typeof _0x100049[_0x1871b6(0x26e)]!==_0x1871b6(0x21e)&&_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+'.name','message':_0x1871b6(0x1ed)}),_0x100049['defaultFlow']!==undefined&&typeof _0x100049[_0x1871b6(0x244)]!==_0x1871b6(0x275)&&_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+_0x1871b6(0x29f),'message':_0x1871b6(0x2e9)}),_0x100049['waypoints']!==undefined&&(!Array[_0x1871b6(0x1f1)](_0x100049[_0x1871b6(0x313)])?_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+'.waypoints','message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x100049[_0x1871b6(0x313)][_0x1871b6(0x32a)]((_0x429e38,_0x2b88d8)=>{const _0x477cca=_0x1871b6;if(!isRecord(_0x429e38)){_0x25a455[_0x477cca(0x2c1)]({'path':_0x1cbb54+_0x477cca(0x2e4)+_0x2b88d8+']','message':_0x477cca(0x30b)});return;}for(const _0x21f0a7 of['x','y']){const _0x186a70=_0x429e38[_0x21f0a7];(typeof _0x186a70!==_0x477cca(0x285)||!Number[_0x477cca(0x209)](_0x186a70))&&_0x25a455[_0x477cca(0x2c1)]({'path':_0x1cbb54+_0x477cca(0x2e4)+_0x2b88d8+'].'+_0x21f0a7,'message':_0x477cca(0x2bc)+_0x21f0a7+_0x477cca(0x2da)});}})),_0x100049[_0x1871b6(0x261)]!==undefined&&!CONDITION_TYPES['has'](_0x100049[_0x1871b6(0x261)])&&_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+_0x1871b6(0x236),'message':_0x1871b6(0x245)+String(_0x100049[_0x1871b6(0x261)])+'.'}),_0x100049[_0x1871b6(0x261)]===_0x1871b6(0x306)&&(typeof _0x100049[_0x1871b6(0x1de)]!==_0x1871b6(0x21e)||_0x100049[_0x1871b6(0x1de)][_0x1871b6(0x325)]()==='')&&_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+_0x1871b6(0x2db),'message':'EXPRESSION\x20edge\x20requires\x20expression.'}),_0x100049[_0x1871b6(0x244)]===!![]&&_0x100049[_0x1871b6(0x261)]!==_0x1871b6(0x30f)&&_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+_0x1871b6(0x29f),'message':_0x1871b6(0x201)}),_0x100049['defaultFlow']===!![]&&typeof _0x100049[_0x1871b6(0x1de)]===_0x1871b6(0x21e)&&_0x100049['expression'][_0x1871b6(0x325)]()!==''&&_0x25a455[_0x1871b6(0x2c1)]({'path':_0x1cbb54+_0x1871b6(0x2db),'message':_0x1871b6(0x326)});}function validateGraphShape(_0x4bd347,_0x242868,_0x263c6a,_0x1651b8,_0x5257c7,_0x14691b,_0x4c4fd2){const _0x480d78=a299_0xf21873;for(const [_0x47ea71,_0x4ce6b8]of _0x4bd347){const _0x5e6a7a=_0x5257c7['get'](_0x47ea71)??[],_0x175c7d=_0x1651b8[_0x480d78(0x2f6)](_0x47ea71)??[];_0x4ce6b8[_0x480d78(0x1f0)]!=='START'&&_0x5e6a7a['length']===0x0&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x1f7)});_0x4ce6b8[_0x480d78(0x1f0)]!=='END'&&_0x175c7d['length']===0x0&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x2e5)});_0x4ce6b8[_0x480d78(0x1f0)]===_0x480d78(0x22d)&&_0x5e6a7a[_0x480d78(0x24f)]>0x0&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x1d5)});_0x4ce6b8[_0x480d78(0x1f0)]==='END'&&_0x175c7d[_0x480d78(0x24f)]>0x0&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x1d0)});if(_0x4ce6b8[_0x480d78(0x1f0)]===_0x480d78(0x1f8)){_0x175c7d['length']<0x2&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':'flowJson.nodes.'+_0x47ea71,'message':_0x480d78(0x2a8)});const _0x5a5ee0=_0x175c7d[_0x480d78(0x2a3)](_0x1786d6=>_0x1786d6['defaultFlow']===!![]);_0x5a5ee0['length']!==0x1&&_0x4c4fd2['push']({'path':_0x480d78(0x25e)+_0x47ea71,'message':'CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.'});if(_0x5a5ee0['length']===0x1){const _0x5092dc=_0x5a5ee0[0x0],_0x5ead8e=_0x14691b[_0x480d78(0x2f6)](_0x5092dc)??_0x480d78(0x233);_0x5092dc[_0x480d78(0x261)]!==_0x480d78(0x30f)&&_0x4c4fd2['push']({'path':_0x5ead8e+'.conditionType','message':_0x480d78(0x20d)});_0x5092dc['expression']!==undefined&&_0x4c4fd2['push']({'path':_0x5ead8e+'.expression','message':_0x480d78(0x280)});for(const _0x5abdef of _0x175c7d){if(_0x5abdef===_0x5092dc)continue;const _0x5a4eaf=_0x14691b[_0x480d78(0x2f6)](_0x5abdef)??_0x480d78(0x233);if(_0x5abdef['conditionType']!==_0x480d78(0x306))_0x4c4fd2['push']({'path':_0x5a4eaf+_0x480d78(0x236),'message':_0x480d78(0x2ef)});else(typeof _0x5abdef[_0x480d78(0x1de)]!==_0x480d78(0x21e)||_0x5abdef[_0x480d78(0x1de)][_0x480d78(0x325)]()==='')&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x5a4eaf+_0x480d78(0x2db),'message':_0x480d78(0x270)});}}}if(_0x4ce6b8[_0x480d78(0x1f0)]==='APPROVAL'&&(_0x4ce6b8[_0x480d78(0x279)]??_0x480d78(0x2dc))===_0x480d78(0x2d1)){if(_0x175c7d[_0x480d78(0x24f)]!==0x1)_0x4c4fd2[_0x480d78(0x2c1)]({'path':'flowJson.nodes.'+_0x47ea71,'message':'HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.'});else{const _0x915cec=_0x175c7d[0x0];((_0x915cec['conditionType']??_0x480d78(0x30f))!==_0x480d78(0x30f)||_0x915cec[_0x480d78(0x244)]===!![]||typeof _0x915cec[_0x480d78(0x1de)]===_0x480d78(0x21e)&&_0x915cec[_0x480d78(0x1de)][_0x480d78(0x325)]()!=='')&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x14691b['get'](_0x915cec)??_0x480d78(0x233),'message':'HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.'});}}else{if(_0x4ce6b8[_0x480d78(0x1f0)]===_0x480d78(0x2dc)){const _0x2653ff=_0x175c7d[_0x480d78(0x253)](_0x3d5890=>_0x3d5890[_0x480d78(0x261)]??_0x480d78(0x30f)),_0x4217d3=_0x2653ff['filter'](_0x4dfe05=>_0x4dfe05!==_0x480d78(0x248)&&_0x4dfe05!==_0x480d78(0x1e6));_0x4217d3[_0x480d78(0x24f)]>0x0&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x205)}),_0x2653ff[_0x480d78(0x2a3)](_0x12f6a8=>_0x12f6a8==='APPROVED')['length']!==0x1&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x2ac)}),_0x2653ff[_0x480d78(0x2a3)](_0x3d232d=>_0x3d232d==='REJECTED')[_0x480d78(0x24f)]!==0x1&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':_0x480d78(0x21c)}),_0x175c7d[_0x480d78(0x2e8)](_0x393a95=>_0x393a95[_0x480d78(0x244)]===!![])&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x47ea71,'message':'APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.'});}}}const _0x1b380f=new Set(),_0x51414f=_0x5dd72a=>{const _0x1a039a=_0x480d78;if(_0x1b380f['has'](_0x5dd72a))return;_0x1b380f[_0x1a039a(0x32f)](_0x5dd72a);for(const _0x4426ec of _0x1651b8[_0x1a039a(0x2f6)](_0x5dd72a)??[]){const _0x5c221c=resolveEdgeEndpoint(_0x4426ec['target'],_0x4426ec['targetNodeId']);if(_0x5c221c&&_0x4bd347[_0x1a039a(0x2fb)](_0x5c221c))_0x51414f(_0x5c221c);}};_0x51414f(_0x242868);for(const _0x597f47 of _0x4bd347[_0x480d78(0x258)]()){!_0x1b380f[_0x480d78(0x2fb)](_0x597f47)&&_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x25e)+_0x597f47,'message':_0x480d78(0x2f1)});}const _0x3c25cf=_0x263c6a['some'](_0x40fd43=>_0x1b380f[_0x480d78(0x2fb)](_0x40fd43));if(!_0x3c25cf){_0x4c4fd2[_0x480d78(0x2c1)]({'path':_0x480d78(0x233),'message':_0x480d78(0x1fa)});return;}const _0x3341d3=new Set(),_0x32c717=_0x116112=>{const _0x5b73a7=_0x480d78;if(_0x3341d3[_0x5b73a7(0x2fb)](_0x116112))return;_0x3341d3[_0x5b73a7(0x32f)](_0x116112);for(const _0x5470cf of _0x5257c7['get'](_0x116112)??[]){const _0x45de94=resolveEdgeEndpoint(_0x5470cf[_0x5b73a7(0x267)],_0x5470cf[_0x5b73a7(0x2c9)]);if(_0x45de94&&_0x4bd347[_0x5b73a7(0x2fb)](_0x45de94))_0x32c717(_0x45de94);}};for(const _0x145af2 of _0x263c6a){if(_0x4bd347[_0x480d78(0x2fb)](_0x145af2))_0x32c717(_0x145af2);}for(const _0x1b82b1 of _0x1b380f){!_0x3341d3['has'](_0x1b82b1)&&_0x4c4fd2['push']({'path':_0x480d78(0x25e)+_0x1b82b1,'message':_0x480d78(0x2b2)});}}function a299_0x1204(_0x12d06b,_0x5d4ace){_0x12d06b=_0x12d06b-0x1c9;const _0xb9a6f8=a299_0xb9a6();let _0x120489=_0xb9a6f8[_0x12d06b];return _0x120489;}function validateApprovalResults(_0x2db0c8,_0x183e70,_0x26fc51,_0xdb24d3){const _0x45bb6a=a299_0xf21873;if(_0x183e70===0x0)return;const _0x4c7d3b=new Set(_0x26fc51[_0x45bb6a(0x253)](_0x353cfa=>_0x2db0c8[_0x45bb6a(0x2f6)](_0x353cfa)?.['result'])[_0x45bb6a(0x2a3)](_0x1ff2bf=>typeof _0x1ff2bf===_0x45bb6a(0x21e)));for(const _0x5dcdc1 of[_0x45bb6a(0x248),'REJECTED']){!_0x4c7d3b[_0x45bb6a(0x2fb)](_0x5dcdc1)&&_0xdb24d3[_0x45bb6a(0x2c1)]({'path':_0x45bb6a(0x26c),'message':'Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20'+_0x5dcdc1+'.'});}}function validateScriptResultReferences(_0x310df1,_0x4a951b,_0x422c3b,_0x401cfe,_0x1008a6,_0x47fe7b,_0x2d4de4){const _0x401952=a299_0xf21873;if(_0x47fe7b[_0x401952(0x2df)]===0x0)return;const _0x40fe05=new Set(),_0x595c76=_0x573c59=>{const _0x5bdd12=_0x401952;if(!_0x40fe05['has'](_0x573c59)&&_0x310df1[_0x5bdd12(0x2fb)](_0x573c59)){_0x40fe05[_0x5bdd12(0x32f)](_0x573c59);for(const _0x585af2 of _0x422c3b['get'](_0x573c59)??[]){const _0x3ae032=resolveEdgeEndpoint(_0x585af2[_0x5bdd12(0x2b4)],_0x585af2['targetNodeId']);if(_0x3ae032)_0x595c76(_0x3ae032);}}};_0x595c76(_0x4a951b);const _0x4c1f11=new Map();for(const _0x5a6e8c of _0x40fe05){_0x4c1f11['set'](_0x5a6e8c,_0x5a6e8c===_0x4a951b?new Set([_0x4a951b]):new Set(_0x40fe05));}let _0x444665=!![];while(_0x444665){_0x444665=![];for(const _0x5eb75a of _0x40fe05){if(_0x5eb75a===_0x4a951b)continue;const _0x2dfe9e=(_0x401cfe[_0x401952(0x2f6)](_0x5eb75a)??[])[_0x401952(0x253)](_0x2384a1=>resolveEdgeEndpoint(_0x2384a1[_0x401952(0x267)],_0x2384a1[_0x401952(0x2c9)]))[_0x401952(0x2a3)](_0x99f7fd=>Boolean(_0x99f7fd&&_0x40fe05[_0x401952(0x2fb)](_0x99f7fd)));if(_0x2dfe9e[_0x401952(0x24f)]===0x0)continue;const _0x4dde8f=new Set(_0x4c1f11[_0x401952(0x2f6)](_0x2dfe9e[0x0])??[]);for(const _0x4f58e4 of _0x2dfe9e[_0x401952(0x263)](0x1)){const _0x12b9a6=_0x4c1f11[_0x401952(0x2f6)](_0x4f58e4)??new Set();for(const _0x3ba69a of _0x4dde8f){if(!_0x12b9a6[_0x401952(0x2fb)](_0x3ba69a))_0x4dde8f['delete'](_0x3ba69a);}}_0x4dde8f[_0x401952(0x32f)](_0x5eb75a);const _0x438e88=_0x4c1f11['get'](_0x5eb75a);!setsEqual(_0x438e88,_0x4dde8f)&&(_0x4c1f11[_0x401952(0x227)](_0x5eb75a,_0x4dde8f),_0x444665=!![]);}}for(const [_0x508a94,_0x181b6a]of _0x422c3b){const _0x9d078c=_0x4c1f11['get'](_0x508a94);if(!_0x9d078c)continue;for(const _0x3fd773 of _0x181b6a){if(_0x3fd773[_0x401952(0x261)]!=='EXPRESSION'||typeof _0x3fd773[_0x401952(0x1de)]!==_0x401952(0x21e))continue;for(const [_0x31098b,_0x2bd404]of _0x47fe7b){expressionReferencesVariable(_0x3fd773[_0x401952(0x1de)],_0x31098b)&&!_0x9d078c[_0x401952(0x2fb)](_0x2bd404)&&_0x2d4de4['push']({'path':(_0x1008a6['get'](_0x3fd773)??_0x401952(0x233))+_0x401952(0x2db),'message':_0x401952(0x231)+_0x31098b+_0x401952(0x2c3)+_0x2bd404+_0x401952(0x256)+_0x508a94+'.'});}}}}function expressionReferencesVariable(_0x19d389,_0x51223d){const _0x3c6463=a299_0xf21873;let _0x27da3e=0x0;while(_0x27da3e<_0x19d389[_0x3c6463(0x24f)]){const _0x1361b3=_0x19d389[_0x27da3e];if(_0x1361b3==='\x27'||_0x1361b3==='\x22'){_0x27da3e=skipQuotedExpressionSegment(_0x19d389,_0x27da3e,_0x1361b3);continue;}if(!/[A-Za-z_]/[_0x3c6463(0x2eb)](_0x1361b3)){_0x27da3e+=0x1;continue;}const _0x2b6a43=_0x27da3e;_0x27da3e+=0x1;while(_0x27da3e<_0x19d389[_0x3c6463(0x24f)]&&/[A-Za-z0-9_]/[_0x3c6463(0x2eb)](_0x19d389[_0x27da3e])){_0x27da3e+=0x1;}if(_0x19d389[_0x3c6463(0x263)](_0x2b6a43,_0x27da3e)!==_0x51223d)continue;let _0x3cf75f=_0x2b6a43-0x1;while(_0x3cf75f>=0x0&&/\s/[_0x3c6463(0x2eb)](_0x19d389[_0x3cf75f])){_0x3cf75f-=0x1;}if(_0x19d389[_0x3cf75f]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x2f2ee4,_0x208c34,_0x842d){const _0x18ef93=a299_0xf21873;let _0x28f212=_0x208c34+0x1;while(_0x28f212<_0x2f2ee4[_0x18ef93(0x24f)]){if(_0x2f2ee4[_0x28f212]==='\x5c'){_0x28f212+=0x2;continue;}if(_0x2f2ee4[_0x28f212]===_0x842d)return _0x28f212+0x1;_0x28f212+=0x1;}return _0x28f212;}function resolveEffectiveResultVariable(_0x8c2684,_0x4073cf){const _0x5e5684=a299_0xf21873;if(_0x8c2684===undefined||_0x8c2684===null||_0x4073cf&&_0x8c2684==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x8c2684!==_0x5e5684(0x21e)||!VARIABLE_PATTERN['test'](_0x8c2684)||RESERVED_RESULT_VARIABLES[_0x5e5684(0x2fb)](_0x8c2684)||_0x8c2684[_0x5e5684(0x240)](_0x5e5684(0x2f4)))return undefined;return _0x8c2684;}function registerResultVariableOwner(_0x9569dc,_0xf23ba2,_0x133dd2,_0x3c8ddf){const _0x58ecee=a299_0xf21873;if(_0x9569dc[_0x58ecee(0x2fb)](_0xf23ba2)){_0x3c8ddf['push']({'path':_0x58ecee(0x26c),'message':'Duplicate\x20resultVariable:\x20'+_0xf23ba2+'.'});return;}_0x9569dc[_0x58ecee(0x227)](_0xf23ba2,_0x133dd2);}function setsEqual(_0x396d42,_0xf6f1cb){const _0xb218b0=a299_0xf21873;return _0x396d42['size']===_0xf6f1cb[_0xb218b0(0x2df)]&&[..._0x396d42]['every'](_0x4f19d2=>_0xf6f1cb[_0xb218b0(0x2fb)](_0x4f19d2));}function isValidUserId(_0x507a5b){const _0x24c015=a299_0xf21873;if(typeof _0x507a5b===_0x24c015(0x21e))return _0x507a5b[_0x24c015(0x325)]()[_0x24c015(0x24f)]>0x0;return Number[_0x24c015(0x1d4)](_0x507a5b)&&Number(_0x507a5b)>0x0;}function resolveEdgeEndpoint(_0x3e3945,_0x512d23){const _0x56fac3=a299_0xf21873;if(typeof _0x3e3945===_0x56fac3(0x21e)&&_0x3e3945[_0x56fac3(0x325)]())return _0x3e3945[_0x56fac3(0x325)]();if(typeof _0x512d23===_0x56fac3(0x21e)&&_0x512d23['trim']())return _0x512d23[_0x56fac3(0x325)]();return undefined;}function removeEmptyMetadata(_0x41d580,_0x278e51,_0x4f30bc,_0x9ef19a){const _0x264290=a299_0xf21873;if(Array['isArray'](_0x41d580)){_0x41d580[_0x264290(0x32a)]((_0x3f8a21,_0x1d507b)=>removeEmptyMetadata(_0x3f8a21,_0x278e51+'['+_0x1d507b+']',_0x4f30bc,_0x9ef19a));return;}if(!isRecord(_0x41d580))return;for(const [_0x3a75d3,_0x5e0111]of Object[_0x264290(0x320)](_0x41d580)){const _0x7ddb80=_0x278e51+'.'+_0x3a75d3;if(_0x3a75d3===_0x264290(0x330)&&isEmptyJsonValue(_0x5e0111)){delete _0x41d580[_0x3a75d3],_0x9ef19a[_0x264290(0x2c1)](_0x7ddb80),_0x4f30bc[_0x264290(0x2c1)]({'code':_0x264290(0x2ab),'path':_0x7ddb80,'message':_0x7ddb80+'\x20was\x20empty\x20and\x20was\x20removed.'});continue;}removeEmptyMetadata(_0x5e0111,_0x7ddb80,_0x4f30bc,_0x9ef19a);}}function isEmptyJsonValue(_0x114058){const _0x3c5c94=a299_0xf21873;if(_0x114058===null||_0x114058===undefined)return!![];if(typeof _0x114058===_0x3c5c94(0x21e))return _0x114058['trim']()==='';if(Array[_0x3c5c94(0x1f1)](_0x114058))return _0x114058['length']===0x0;return isRecord(_0x114058)&&Object[_0x3c5c94(0x258)](_0x114058)['length']===0x0;}function isRecord(_0x236363){const _0x2e1e6b=a299_0xf21873;return typeof _0x236363===_0x2e1e6b(0x23a)&&_0x236363!==null&&!Array[_0x2e1e6b(0x1f1)](_0x236363);}function cloneJsonValue(_0x262115){const _0x1e2ad5=a299_0xf21873;return JSON[_0x1e2ad5(0x1f6)](JSON['stringify'](_0x262115));}export async function readFlowConfigFile(_0x4932a0){const _0x26facc=a299_0xf21873,_0x5ae55d=await readFile(resolve(_0x4932a0),'utf8');return JSON[_0x26facc(0x1f6)](_0x5ae55d);}
|
|
1
|
+
const a299_0xf05f06=a299_0x495f;(function(_0x5aa72e,_0x509dc3){const _0x23d3fc=a299_0x495f,_0x26749b=_0x5aa72e();while(!![]){try{const _0x5e1a60=-parseInt(_0x23d3fc(0x202))/0x1*(parseInt(_0x23d3fc(0x257))/0x2)+-parseInt(_0x23d3fc(0x277))/0x3*(parseInt(_0x23d3fc(0x231))/0x4)+-parseInt(_0x23d3fc(0x221))/0x5+-parseInt(_0x23d3fc(0x2d7))/0x6*(parseInt(_0x23d3fc(0x2cc))/0x7)+-parseInt(_0x23d3fc(0x23e))/0x8+parseInt(_0x23d3fc(0x2c7))/0x9+-parseInt(_0x23d3fc(0x2d0))/0xa*(-parseInt(_0x23d3fc(0x236))/0xb);if(_0x5e1a60===_0x509dc3)break;else _0x26749b['push'](_0x26749b['shift']());}catch(_0x317159){_0x26749b['push'](_0x26749b['shift']());}}}(a299_0x40f3,0x45b98));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a299_0xf05f06(0x26b),'$id':a299_0xf05f06(0x225),'title':a299_0xf05f06(0x22e),'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x1dc),a299_0xf05f06(0x2b4),a299_0xf05f06(0x1ef)],'$defs':{'userId':{'anyOf':[{'type':a299_0xf05f06(0x2dd),'minLength':0x1},{'type':a299_0xf05f06(0x30c),'minimum':0x1}]},'position':{'type':'object','required':['x','y'],'properties':{'x':{'type':a299_0xf05f06(0x220),'minimum':0x0},'y':{'type':a299_0xf05f06(0x220),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x2f9),a299_0xf05f06(0x2a5)],'properties':{'value':{'type':'integer','minimum':0x1},'unit':{'enum':['SECONDS','MINUTES',a299_0xf05f06(0x215),a299_0xf05f06(0x24c)]}},'additionalProperties':!![]},'flowNode':{'type':a299_0xf05f06(0x206),'required':['id','type',a299_0xf05f06(0x246),a299_0xf05f06(0x1d9)],'properties':{'id':{'type':a299_0xf05f06(0x2dd),'pattern':a299_0xf05f06(0x1ce)},'type':{'enum':['START',a299_0xf05f06(0x2ff),a299_0xf05f06(0x282),a299_0xf05f06(0x239),a299_0xf05f06(0x20f),a299_0xf05f06(0x264)]},'name':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'path':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'position':{'$ref':a299_0xf05f06(0x2be)},'approvalMode':{'enum':[a299_0xf05f06(0x22c),a299_0xf05f06(0x223),a299_0xf05f06(0x208)]},'taskMode':{'enum':[a299_0xf05f06(0x282),a299_0xf05f06(0x1d5)]},'assignee':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x31e)],'properties':{'strategy':{'enum':['FIXED',a299_0xf05f06(0x24b)]},'userIds':{'type':a299_0xf05f06(0x308),'minItems':0x1,'items':{'$ref':a299_0xf05f06(0x2b5)}},'roleId':{'anyOf':[{'type':'integer','minimum':0x1},{'type':'string','pattern':a299_0xf05f06(0x262)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x31e),a299_0xf05f06(0x256)],'properties':{'strategy':{'const':a299_0xf05f06(0x234)},'userIds':{'type':'array','minItems':0x1,'items':{'$ref':a299_0xf05f06(0x2b5)}}},'additionalProperties':!![]},'sequential':{'type':'boolean'},'result':{'enum':[a299_0xf05f06(0x28c),a299_0xf05f06(0x2a8)]},'scriptName':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'resultVariable':{'type':'string','pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'async':{'type':'object','properties':{'enabled':{'type':a299_0xf05f06(0x228)},'retryCount':{'type':'integer','minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a299_0xf05f06(0x200)}},'additionalProperties':!![]},'timeout':{'type':a299_0xf05f06(0x206),'properties':{'enabled':{'type':a299_0xf05f06(0x228)},'duration':{'$ref':'#/$defs/timeAmount'},'action':{'enum':[a299_0xf05f06(0x1e6),a299_0xf05f06(0x244),'EXECUTE_BFF']},'interrupting':{'type':a299_0xf05f06(0x228)},'scriptName':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'resultVariable':{'type':a299_0xf05f06(0x2dd),'pattern':a299_0xf05f06(0x1ce)}},'additionalProperties':!![]},'cc':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x2d6)],'properties':{'recipientUserIds':{'type':'array','minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'visible':{'type':'array','uniqueItems':!![],'items':{'type':a299_0xf05f06(0x2dd),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':'object','required':[a299_0xf05f06(0x24f),a299_0xf05f06(0x334)],'properties':{'version':{'enum':['v1']},'configCode':{'type':'string','minLength':0x1},'failurePolicy':{'enum':[a299_0xf05f06(0x1f9),a299_0xf05f06(0x2fe)]},'template':{'type':'object','required':[a299_0xf05f06(0x1e9),'summary'],'properties':{'title':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'summary':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'detailMarkdown':{'type':a299_0xf05f06(0x2dd)},'facts':{'type':a299_0xf05f06(0x308),'maxItems':0x8,'items':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x301),'value'],'properties':{'label':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'value':{'type':a299_0xf05f06(0x2dd),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':'array','maxItems':0x2,'items':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x263),'url'],'properties':{'text':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'url':{'type':a299_0xf05f06(0x2dd),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x265),a299_0xf05f06(0x2f9)],'properties':{'type':{'enum':[a299_0xf05f06(0x278),'ROLE',a299_0xf05f06(0x27b)]},'value':{'type':'string','minLength':0x1},'role':{'enum':['TO','CC',a299_0xf05f06(0x2bc)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a299_0xf05f06(0x206),'properties':{'id':{'type':a299_0xf05f06(0x2dd),'pattern':a299_0xf05f06(0x1ce)},'source':{'type':'string','minLength':0x1},'target':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'sourceNodeId':{'type':'string','minLength':0x1},'targetNodeId':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'conditionType':{'enum':[a299_0xf05f06(0x2fb),a299_0xf05f06(0x28c),'REJECTED',a299_0xf05f06(0x27f)]},'expression':{'type':a299_0xf05f06(0x2dd)},'defaultFlow':{'type':a299_0xf05f06(0x228)},'name':{'type':a299_0xf05f06(0x2dd)},'waypoints':{'type':a299_0xf05f06(0x308),'items':{'$ref':a299_0xf05f06(0x2be)}}},'allOf':[{'anyOf':[{'required':[a299_0xf05f06(0x30a)]},{'required':['sourceNodeId']}]},{'anyOf':[{'required':[a299_0xf05f06(0x216)]},{'required':[a299_0xf05f06(0x23c)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':[a299_0xf05f06(0x23d),'INDEPENDENT_FLOW']},'datasetCode':{'type':'string','minLength':0x1},'pageId':{'type':a299_0xf05f06(0x30c),'minimum':0x1,'maximum':Number['MAX_SAFE_INTEGER']},'pageIds':{'type':a299_0xf05f06(0x308),'items':{'type':a299_0xf05f06(0x30c),'minimum':0x1,'maximum':Number[a299_0xf05f06(0x1cf)]}},'templateName':![],'flowJson':{'type':a299_0xf05f06(0x206),'required':[a299_0xf05f06(0x23b),a299_0xf05f06(0x329)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':'string','const':a299_0xf05f06(0x1fe),'description':a299_0xf05f06(0x1d8)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a299_0xf05f06(0x271)},'startPageId':![],'startPath':{'type':a299_0xf05f06(0x2dd),'minLength':0x1},'nodes':{'type':'array','minItems':0x1,'items':{'$ref':a299_0xf05f06(0x280)}},'edges':{'type':a299_0xf05f06(0x308),'minItems':0x1,'items':{'$ref':'#/$defs/flowEdge'}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a299_0xf05f06(0x1c9),a299_0xf05f06(0x2b9),a299_0xf05f06(0x1dc),a299_0xf05f06(0x303),'datasetCode','appCode',a299_0xf05f06(0x1de),a299_0xf05f06(0x307)],REMOVED_ROOT_FIELDS=['id',a299_0xf05f06(0x25d),a299_0xf05f06(0x307)],DEFAULT_FLOW_SCHEMA_VERSION=a299_0xf05f06(0x1fe),NODE_TYPES=new Set([a299_0xf05f06(0x2f7),a299_0xf05f06(0x2ff),a299_0xf05f06(0x282),a299_0xf05f06(0x239),'SCRIPT','NOTIFICATION']),CONDITION_TYPES=new Set([a299_0xf05f06(0x2fb),'APPROVED',a299_0xf05f06(0x2a8),'EXPRESSION']),APPROVAL_MODES=new Set([a299_0xf05f06(0x22c),a299_0xf05f06(0x223),'ANY']),APPROVAL_TASK_MODES=new Set([a299_0xf05f06(0x282),a299_0xf05f06(0x1d5)]),FLOW_TIME_UNITS=new Set([a299_0xf05f06(0x1d3),'MINUTES',a299_0xf05f06(0x215),'DAYS']),APPROVAL_TIMEOUT_ACTIONS=new Set([a299_0xf05f06(0x1e6),'AUTO_REJECT',a299_0xf05f06(0x2a6)]),FLOW_TYPES=new Set([a299_0xf05f06(0x23d),'INDEPENDENT_FLOW']),FLOW_PAGE_MODES=new Set([a299_0xf05f06(0x271),a299_0xf05f06(0x30b)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a299_0xf05f06(0x1f9),'FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a299_0xf05f06(0x278),'ROLE',a299_0xf05f06(0x27b)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC','BCC']),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE='scriptResult',UNSUPPORTED_FORM_MESSAGE=a299_0xf05f06(0x2db),UNSUPPORTED_PLATFORM_FORM_MESSAGE='PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.',RESERVED_RESULT_VARIABLES=new Set([a299_0xf05f06(0x2aa),a299_0xf05f06(0x26f),'approval_sys_appCode',a299_0xf05f06(0x2c3),a299_0xf05f06(0x318),a299_0xf05f06(0x29d),'approval_sys_datasetCode',a299_0xf05f06(0x2e2),a299_0xf05f06(0x227),a299_0xf05f06(0x1f7)]);export function normalizeFlowConfig(_0x1e270e){const _0x497c66=a299_0xf05f06;if(!isRecord(_0x1e270e))throw new TypeError(_0x497c66(0x2b6));const _0x434ba0=cloneJsonValue(_0x1e270e),_0x2c62b3=_0x434ba0[_0x497c66(0x1ef)],_0x4aad95=isRecord(_0x2c62b3)?cloneJsonValue(_0x2c62b3):{},_0xfbb725=[],_0x3e5920=[];for(const _0x37f5c1 of REMOVED_ROOT_FIELDS){if(!Object[_0x497c66(0x30e)]['hasOwnProperty'][_0x497c66(0x331)](_0x434ba0,_0x37f5c1))continue;delete _0x434ba0[_0x37f5c1],_0x3e5920[_0x497c66(0x2b2)](_0x37f5c1),_0xfbb725['push']({'code':'legacy_field_removed','path':_0x37f5c1,'message':_0x37f5c1+_0x497c66(0x2a0)});}for(const _0x298073 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x497c66(0x30e)][_0x497c66(0x297)][_0x497c66(0x331)](_0x4aad95,_0x298073))continue;const _0x2c39db='flowJson.'+_0x298073;delete _0x4aad95[_0x298073],_0x3e5920[_0x497c66(0x2b2)](_0x2c39db),_0xfbb725[_0x497c66(0x2b2)]({'code':_0x497c66(0x336),'path':_0x2c39db,'message':_0x2c39db+_0x497c66(0x2a0)});}if(Object[_0x497c66(0x30e)][_0x497c66(0x297)][_0x497c66(0x331)](_0x4aad95,_0x497c66(0x324))){const _0x54fe48=_0x4aad95[_0x497c66(0x324)],_0x43ffea=typeof _0x54fe48==='string'?_0x54fe48[_0x497c66(0x284)]():_0x54fe48;if(isEmptyJsonValue(_0x54fe48)||_0x43ffea===DEFAULT_FLOW_SCHEMA_VERSION){const _0x5c1036=_0x497c66(0x2cf);delete _0x4aad95[_0x497c66(0x324)],_0x3e5920[_0x497c66(0x2b2)](_0x5c1036),_0xfbb725[_0x497c66(0x2b2)]({'code':'legacy_field_removed','path':_0x5c1036,'message':_0x5c1036+_0x497c66(0x2eb)+DEFAULT_FLOW_SCHEMA_VERSION+_0x497c66(0x255)});}}removeEmptyMetadata(_0x4aad95,'flowJson',_0xfbb725,_0x3e5920);_0x434ba0[_0x497c66(0x2b4)]===_0x497c66(0x249)&&!Object[_0x497c66(0x30e)][_0x497c66(0x297)][_0x497c66(0x331)](_0x4aad95,_0x497c66(0x335))&&(_0x4aad95[_0x497c66(0x335)]=_0x497c66(0x271));_0x434ba0[_0x497c66(0x1ef)]=_0x4aad95;if(typeof _0x434ba0['flowName']==='string')_0x434ba0['flowName']=_0x434ba0[_0x497c66(0x1dc)][_0x497c66(0x284)]();return{'config':_0x434ba0,'warnings':_0xfbb725,'removedPaths':_0x3e5920};}export function validateFlowConfig(_0x1d5576){const _0x2b3a72=a299_0xf05f06;let _0x5c4e75;try{_0x5c4e75=normalizeFlowConfig(_0x1d5576);}catch(_0x2e6a7b){const _0x2d0552=_0x2e6a7b instanceof Error?_0x2e6a7b[_0x2b3a72(0x1f6)]:String(_0x2e6a7b),_0x4e5495={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x2d0552}],'warnings':[],'normalized':_0x4e5495,'validationConfig':_0x4e5495};}const _0x1ee79f=_0x5c4e75[_0x2b3a72(0x27a)],_0x91f1b7=cloneJsonValue(_0x1ee79f),_0x50273c=_0x91f1b7[_0x2b3a72(0x1ef)];_0x50273c[_0x2b3a72(0x1c9)]=_0x2b3a72(0x338),_0x50273c['flowName']=_0x1ee79f[_0x2b3a72(0x1dc)];typeof _0x1ee79f[_0x2b3a72(0x2ae)]===_0x2b3a72(0x2dd)&&_0x1ee79f['datasetCode'][_0x2b3a72(0x284)]()&&(_0x50273c['bindDatasetCode']=_0x1ee79f[_0x2b3a72(0x2ae)][_0x2b3a72(0x284)]());const _0x3c5fcd=[];return validateOuterMetadata(_0x1ee79f,_0x3c5fcd),validateFlowClassification(_0x1ee79f,_0x3c5fcd),validateGraph(_0x1ee79f[_0x2b3a72(0x1ef)],_0x3c5fcd),{'valid':_0x3c5fcd[_0x2b3a72(0x2c4)]===0x0,'errors':_0x3c5fcd,'warnings':_0x5c4e75[_0x2b3a72(0x25b)],'normalized':_0x1ee79f,'validationConfig':_0x91f1b7};}function validateFlowClassification(_0x3cc59f,_0x163f56){const _0x223698=a299_0xf05f06;if(!isRecord(_0x3cc59f['flowJson']))return;const _0x3ee5b4=_0x3cc59f[_0x223698(0x2b4)],_0x482d36=_0x3cc59f[_0x223698(0x1ef)]['pageMode'];_0x482d36!==undefined&&(typeof _0x482d36!==_0x223698(0x2dd)||!FLOW_PAGE_MODES[_0x223698(0x2e6)](_0x482d36))&&_0x163f56[_0x223698(0x2b2)]({'path':_0x223698(0x2b3),'message':_0x223698(0x326)+String(_0x482d36)+'.'});_0x3ee5b4===_0x223698(0x23d)&&_0x482d36!==undefined&&_0x163f56['push']({'path':'flowJson.pageMode','message':_0x223698(0x31b)});_0x3ee5b4===_0x223698(0x249)&&_0x482d36==='PLATFORM_FORM'&&_0x163f56[_0x223698(0x2b2)]({'path':'flowJson.pageMode','message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x3ee5b4==='FORM_FLOW'||_0x3ee5b4===_0x223698(0x249))&&validateCustomPageNavigation(_0x3cc59f,_0x3ee5b4,_0x482d36,_0x163f56);if(_0x3ee5b4!=='FORM_FLOW'||!Array[_0x223698(0x213)](_0x3cc59f['flowJson'][_0x223698(0x23b)]))return;_0x3cc59f[_0x223698(0x1ef)]['nodes'][_0x223698(0x309)]((_0x232ee0,_0x54319b)=>{const _0x234e9d=_0x223698;isRecord(_0x232ee0)&&_0x232ee0[_0x234e9d(0x265)]===_0x234e9d(0x282)&&_0x232ee0[_0x234e9d(0x1fd)]==='HANDLE'&&_0x163f56['push']({'path':_0x234e9d(0x2b1)+_0x54319b+_0x234e9d(0x1da),'message':_0x234e9d(0x20a)});});}function validateCustomPageNavigation(_0x3fad7e,_0x4c0c55,_0x1d782b,_0x2e9e90){const _0x4a1838=a299_0xf05f06,_0x4c88c9=_0x3fad7e[_0x4a1838(0x1ef)][_0x4a1838(0x1e4)];_0x4c88c9!==undefined&&_0x2e9e90['push']({'path':_0x4a1838(0x230),'message':'startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.'});const _0xaf57e2=_0x3fad7e[_0x4a1838(0x1ef)][_0x4a1838(0x1e1)];_0xaf57e2!==undefined&&(typeof _0xaf57e2!==_0x4a1838(0x2dd)||_0xaf57e2[_0x4a1838(0x284)]()==='')&&_0x2e9e90[_0x4a1838(0x2b2)]({'path':_0x4a1838(0x210),'message':_0x4a1838(0x1db)});const _0x3e2594=Array[_0x4a1838(0x213)](_0x3fad7e['flowJson'][_0x4a1838(0x23b)])?_0x3fad7e['flowJson']['nodes'][_0x4a1838(0x273)]((_0xecf86a,_0x4ce29a)=>({'node':_0xecf86a,'index':_0x4ce29a}))[_0x4a1838(0x29f)](({node:_0x3ec9f1})=>isRecord(_0x3ec9f1)&&_0x3ec9f1['path']!==undefined):[],_0x457442=_0xaf57e2!==undefined||_0x3e2594[_0x4a1838(0x2c4)]>0x0,_0x193bf7=_0x1d782b===undefined&&_0x4c0c55===_0x4a1838(0x249)?_0x4a1838(0x271):_0x1d782b;_0x457442&&(_0x4c0c55!=='INDEPENDENT_FLOW'||_0x193bf7!=='CUSTOM_PAGE')&&(_0xaf57e2!==undefined&&_0x2e9e90[_0x4a1838(0x2b2)]({'path':_0x4a1838(0x210),'message':_0x4a1838(0x1d2)}),_0x3e2594['forEach'](({index:_0x37b10c})=>{const _0x115a64=_0x4a1838;_0x2e9e90[_0x115a64(0x2b2)]({'path':_0x115a64(0x2b1)+_0x37b10c+'].path','message':_0x115a64(0x21e)});}));}export async function writeNormalizedFlowConfig(_0x48f14f,_0x4d2c95,_0x10d777={}){const _0x53c2bb=a299_0xf05f06,_0xe1c717=resolve(_0x48f14f),_0xfe0bea=_0xe1c717+'.'+process[_0x53c2bb(0x247)]+'.'+randomUUID()+_0x53c2bb(0x2cb),_0x19bda3=JSON[_0x53c2bb(0x251)](_0x4d2c95,null,0x2)+'\x0a';let _0x5299d6;try{try{_0x5299d6=(await stat(_0xe1c717))[_0x53c2bb(0x2ca)]&0x1ff;}catch{_0x5299d6=undefined;}await writeFile(_0xfe0bea,_0x19bda3,{'encoding':_0x53c2bb(0x327),'flag':'wx','mode':_0x5299d6??0x1a4});if(_0x5299d6!==undefined)await chmod(_0xfe0bea,_0x5299d6);_0x10d777[_0x53c2bb(0x1d7)]===![]?(await link(_0xfe0bea,_0xe1c717),await unlink(_0xfe0bea)):await rename(_0xfe0bea,_0xe1c717);}finally{await unlink(_0xfe0bea)[_0x53c2bb(0x1ff)](()=>undefined);}}function validateOuterMetadata(_0x18eeea,_0x3d221b){const _0x55a307=a299_0xf05f06;(typeof _0x18eeea[_0x55a307(0x1dc)]!==_0x55a307(0x2dd)||_0x18eeea[_0x55a307(0x1dc)][_0x55a307(0x284)]()==='')&&_0x3d221b[_0x55a307(0x2b2)]({'path':_0x55a307(0x1dc),'message':'flowName\x20is\x20required.'});_0x18eeea['flowDesc']!==undefined&&typeof _0x18eeea[_0x55a307(0x211)]!==_0x55a307(0x2dd)&&_0x3d221b[_0x55a307(0x2b2)]({'path':_0x55a307(0x211),'message':_0x55a307(0x2d1)});if(_0x18eeea[_0x55a307(0x2b4)]===undefined||_0x18eeea[_0x55a307(0x2b4)]===null)_0x3d221b[_0x55a307(0x2b2)]({'path':'flowType','message':_0x55a307(0x315)});else(typeof _0x18eeea[_0x55a307(0x2b4)]!==_0x55a307(0x2dd)||!FLOW_TYPES[_0x55a307(0x2e6)](_0x18eeea['flowType']))&&_0x3d221b['push']({'path':'flowType','message':_0x55a307(0x2a9)+String(_0x18eeea['flowType'])+'.'});_0x18eeea['datasetCode']!==undefined&&typeof _0x18eeea[_0x55a307(0x2ae)]!==_0x55a307(0x2dd)&&_0x3d221b['push']({'path':_0x55a307(0x2ae),'message':_0x55a307(0x21b)});_0x18eeea[_0x55a307(0x302)]===undefined&&_0x18eeea[_0x55a307(0x1de)]!==undefined&&(!Number[_0x55a307(0x23a)](_0x18eeea[_0x55a307(0x1de)])||_0x18eeea[_0x55a307(0x1de)]<=0x0)&&_0x3d221b['push']({'path':_0x55a307(0x1de),'message':_0x55a307(0x312)});if(_0x18eeea[_0x55a307(0x302)]!==undefined){if(!Array[_0x55a307(0x213)](_0x18eeea[_0x55a307(0x302)])||_0x18eeea['pageIds'][_0x55a307(0x24a)](_0x3aeb65=>!Number['isSafeInteger'](_0x3aeb65)||_0x3aeb65<=0x0))_0x3d221b[_0x55a307(0x2b2)]({'path':_0x55a307(0x302),'message':_0x55a307(0x1ca)});else[...new Set(_0x18eeea[_0x55a307(0x302)])]['join'](',')[_0x55a307(0x2c4)]>0x800&&_0x3d221b[_0x55a307(0x2b2)]({'path':_0x55a307(0x302),'message':_0x55a307(0x298)});_0x18eeea['flowType']===_0x55a307(0x249)&&Array[_0x55a307(0x213)](_0x18eeea['pageIds'])&&_0x18eeea[_0x55a307(0x302)][_0x55a307(0x2c4)]>0x0&&_0x3d221b[_0x55a307(0x2b2)]({'path':_0x55a307(0x302),'message':_0x55a307(0x1e0)});}_0x18eeea[_0x55a307(0x2b4)]===_0x55a307(0x249)&&_0x18eeea[_0x55a307(0x2ae)]!==undefined&&_0x3d221b[_0x55a307(0x2b2)]({'path':'datasetCode','message':_0x55a307(0x214)}),_0x18eeea[_0x55a307(0x2b4)]===_0x55a307(0x249)&&_0x18eeea[_0x55a307(0x302)]===undefined&&_0x18eeea[_0x55a307(0x1de)]!==undefined&&_0x3d221b[_0x55a307(0x2b2)]({'path':'pageId','message':_0x55a307(0x20d)});}function validateGraph(_0x4e5afe,_0x615846){const _0x582a1=a299_0xf05f06;if(!isRecord(_0x4e5afe)){_0x615846['push']({'path':_0x582a1(0x1ef),'message':_0x582a1(0x237)});return;}!Array[_0x582a1(0x213)](_0x4e5afe[_0x582a1(0x23b)])&&_0x615846[_0x582a1(0x2b2)]({'path':_0x582a1(0x286),'message':_0x582a1(0x222)});!Array[_0x582a1(0x213)](_0x4e5afe['edges'])&&_0x615846[_0x582a1(0x2b2)]({'path':_0x582a1(0x2bb),'message':_0x582a1(0x1d6)});Object[_0x582a1(0x30e)][_0x582a1(0x297)][_0x582a1(0x331)](_0x4e5afe,_0x582a1(0x324))&&_0x615846[_0x582a1(0x2b2)]({'path':_0x582a1(0x2cf),'message':_0x582a1(0x2bd)+String(_0x4e5afe['schemaVersion'])+_0x582a1(0x285)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x5c8568 of[_0x582a1(0x299),'formDefinitions',_0x582a1(0x22a)]){Object[_0x582a1(0x30e)][_0x582a1(0x297)]['call'](_0x4e5afe,_0x5c8568)&&_0x615846[_0x582a1(0x2b2)]({'path':_0x582a1(0x25c)+_0x5c8568,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array['isArray'](_0x4e5afe[_0x582a1(0x23b)])||!Array[_0x582a1(0x213)](_0x4e5afe[_0x582a1(0x329)]))return;const _0x3a832a=new Map(),_0x538061=[],_0x3d8ba6=[],_0x2fadcb=new Map(),_0x27f8ad=new Map(),_0x1b97e2=new Set();let _0x462234=0x0;_0x4e5afe[_0x582a1(0x23b)][_0x582a1(0x309)]((_0x39fa72,_0x2634b3)=>{const _0x55ec8d=_0x582a1,_0x439533=_0x55ec8d(0x2b1)+_0x2634b3+']';if(!isRecord(_0x39fa72)){_0x615846[_0x55ec8d(0x2b2)]({'path':_0x439533,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x29e50c=_0x39fa72;if(typeof _0x29e50c['id']!==_0x55ec8d(0x2dd)||!BPMN_ID_PATTERN[_0x55ec8d(0x288)](_0x29e50c['id']))_0x615846[_0x55ec8d(0x2b2)]({'path':_0x439533+_0x55ec8d(0x22f),'message':_0x55ec8d(0x226)});else _0x3a832a[_0x55ec8d(0x2e6)](_0x29e50c['id'])?_0x615846[_0x55ec8d(0x2b2)]({'path':_0x439533+'.id','message':_0x55ec8d(0x2ec)+_0x29e50c['id']+'.'}):(_0x3a832a[_0x55ec8d(0x328)](_0x29e50c['id'],_0x29e50c),_0x1b97e2[_0x55ec8d(0x29b)](_0x29e50c['id']));if(!NODE_TYPES['has'](_0x29e50c[_0x55ec8d(0x265)]))_0x615846[_0x55ec8d(0x2b2)]({'path':_0x439533+_0x55ec8d(0x2c5),'message':_0x55ec8d(0x314)+String(_0x29e50c[_0x55ec8d(0x265)])+'.'});else{if(_0x29e50c[_0x55ec8d(0x265)]===_0x55ec8d(0x2f7))_0x538061[_0x55ec8d(0x2b2)](_0x29e50c['id']);else _0x29e50c[_0x55ec8d(0x265)]==='END'&&_0x3d8ba6[_0x55ec8d(0x2b2)](_0x29e50c['id']);}_0x29e50c[_0x55ec8d(0x265)]===_0x55ec8d(0x282)&&(_0x29e50c['taskMode']===undefined||_0x29e50c[_0x55ec8d(0x1fd)]===_0x55ec8d(0x282))&&(_0x462234+=0x1);validateNode(_0x29e50c,_0x439533,_0x615846);if(_0x29e50c[_0x55ec8d(0x265)]===_0x55ec8d(0x20f)){const _0x221910=resolveEffectiveResultVariable(_0x29e50c[_0x55ec8d(0x252)],![]);_0x221910&&(registerResultVariableOwner(_0x27f8ad,_0x221910,_0x29e50c['id'],_0x615846),!_0x2fadcb['has'](_0x221910)&&_0x2fadcb[_0x55ec8d(0x328)](_0x221910,_0x29e50c['id']));}if(_0x29e50c[_0x55ec8d(0x265)]==='APPROVAL'&&isRecord(_0x29e50c[_0x55ec8d(0x1f1)])&&_0x29e50c[_0x55ec8d(0x1f1)][_0x55ec8d(0x2ab)]===!![]&&_0x29e50c[_0x55ec8d(0x1f1)][_0x55ec8d(0x279)]===_0x55ec8d(0x2a6)){const _0x5df128=resolveEffectiveResultVariable(_0x29e50c[_0x55ec8d(0x1f1)][_0x55ec8d(0x252)],!![]);_0x5df128&®isterResultVariableOwner(_0x27f8ad,_0x5df128,_0x29e50c['id']+_0x55ec8d(0x293),_0x615846);}});_0x538061[_0x582a1(0x2c4)]!==0x1&&_0x615846[_0x582a1(0x2b2)]({'path':'flowJson.nodes','message':_0x582a1(0x2b8)});_0x3d8ba6[_0x582a1(0x2c4)]===0x0&&_0x615846[_0x582a1(0x2b2)]({'path':_0x582a1(0x286),'message':_0x582a1(0x28b)});const _0x46fdcd=new Map(),_0x21e032=new Map(),_0x3eea26=new Map(),_0x41f17e=new Set();_0x4e5afe['edges']['forEach']((_0x43f514,_0x16ed49)=>{const _0x8f5005=_0x582a1,_0x541ce9=_0x8f5005(0x2d3)+_0x16ed49+']';if(!isRecord(_0x43f514)){_0x615846[_0x8f5005(0x2b2)]({'path':_0x541ce9,'message':_0x8f5005(0x2e8)});return;}const _0x4fed9e=_0x43f514;_0x3eea26['set'](_0x4fed9e,_0x541ce9);const _0x548071=resolveEdgeEndpoint(_0x4fed9e[_0x8f5005(0x30a)],_0x4fed9e[_0x8f5005(0x2f0)]),_0x450ca7=resolveEdgeEndpoint(_0x4fed9e[_0x8f5005(0x216)],_0x4fed9e[_0x8f5005(0x23c)]);if(!_0x548071)_0x615846[_0x8f5005(0x2b2)]({'path':_0x541ce9+_0x8f5005(0x1e3),'message':_0x8f5005(0x330)});if(!_0x450ca7)_0x615846[_0x8f5005(0x2b2)]({'path':_0x541ce9+'.target','message':_0x8f5005(0x23f)});_0x548071&&!_0x3a832a[_0x8f5005(0x2e6)](_0x548071)&&_0x615846[_0x8f5005(0x2b2)]({'path':_0x541ce9+'.source','message':_0x8f5005(0x203)+_0x548071+'.'});_0x450ca7&&!_0x3a832a[_0x8f5005(0x2e6)](_0x450ca7)&&_0x615846['push']({'path':_0x541ce9+_0x8f5005(0x205),'message':'Edge\x20target\x20node\x20not\x20found:\x20'+_0x450ca7+'.'});if(_0x4fed9e['id']!==undefined){if(typeof _0x4fed9e['id']!=='string'||!BPMN_ID_PATTERN[_0x8f5005(0x288)](_0x4fed9e['id']))_0x615846['push']({'path':_0x541ce9+_0x8f5005(0x22f),'message':'edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else{if(_0x1b97e2['has'](_0x4fed9e['id']))_0x615846[_0x8f5005(0x2b2)]({'path':_0x541ce9+_0x8f5005(0x22f),'message':_0x8f5005(0x2e9)+_0x4fed9e['id']+'.'});else!_0x1b97e2[_0x8f5005(0x2e6)](_0x4fed9e['id'])&&_0x1b97e2[_0x8f5005(0x29b)](_0x4fed9e['id']);}}if(_0x548071&&_0x450ca7){const _0x2cf12d=_0x548071+'\x00'+_0x450ca7+'\x00'+(_0x4fed9e['conditionType']??_0x8f5005(0x2fb));_0x41f17e[_0x8f5005(0x2e6)](_0x2cf12d)?_0x615846['push']({'path':_0x541ce9,'message':_0x8f5005(0x243)+_0x548071+_0x8f5005(0x20b)+_0x450ca7+'\x20('+(_0x4fed9e[_0x8f5005(0x2b7)]??_0x8f5005(0x2fb))+').'}):_0x41f17e['add'](_0x2cf12d);}validateEdge(_0x4fed9e,_0x541ce9,_0x615846),_0x548071&&_0x450ca7&&(_0x46fdcd[_0x8f5005(0x24e)](_0x548071)?.['push'](_0x4fed9e)??_0x46fdcd[_0x8f5005(0x328)](_0x548071,[_0x4fed9e]),_0x21e032['get'](_0x450ca7)?.[_0x8f5005(0x2b2)](_0x4fed9e)??_0x21e032['set'](_0x450ca7,[_0x4fed9e]));});if(_0x538061[_0x582a1(0x2c4)]!==0x1)return;validateGraphShape(_0x3a832a,_0x538061[0x0],_0x3d8ba6,_0x46fdcd,_0x21e032,_0x3eea26,_0x615846),validateScriptResultReferences(_0x3a832a,_0x538061[0x0],_0x46fdcd,_0x21e032,_0x3eea26,_0x2fadcb,_0x615846),validateApprovalResults(_0x3a832a,_0x462234,_0x3d8ba6,_0x615846);}function validateNode(_0x8480d2,_0x3aa715,_0x24cb29){const _0x33884c=a299_0xf05f06;for(const _0x4a4b22 of['form',_0x33884c(0x311)]){Object[_0x33884c(0x30e)][_0x33884c(0x297)][_0x33884c(0x331)](_0x8480d2,_0x4a4b22)&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+'.'+_0x4a4b22,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x33884c(0x2e6)](_0x8480d2[_0x33884c(0x265)]))return;(typeof _0x8480d2[_0x33884c(0x246)]!=='string'||_0x8480d2[_0x33884c(0x246)]['trim']()==='')&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+'.name','message':_0x33884c(0x250)});_0x8480d2[_0x33884c(0x1de)]!==undefined&&_0x24cb29['push']({'path':_0x3aa715+_0x33884c(0x2b0),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x8480d2['path']!==undefined){if(typeof _0x8480d2[_0x33884c(0x2a1)]!==_0x33884c(0x2dd)||_0x8480d2[_0x33884c(0x2a1)][_0x33884c(0x284)]()==='')_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x2ba),'message':'node\x20path\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x8480d2[_0x33884c(0x265)]!==_0x33884c(0x282)&&_0x8480d2[_0x33884c(0x265)]!==_0x33884c(0x2ff)&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x2ba),'message':_0x33884c(0x333)});}const _0x98d287=_0x8480d2[_0x33884c(0x1d9)];if(!isRecord(_0x98d287))_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x27d),'message':_0x33884c(0x233)});else for(const _0x820b86 of['x','y']){const _0x343390=_0x98d287[_0x820b86];(typeof _0x343390!==_0x33884c(0x220)||!Number[_0x33884c(0x275)](_0x343390)||_0x343390<0x0)&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x31f)+_0x820b86,'message':_0x33884c(0x1f4)+_0x820b86+_0x33884c(0x2ce)});}if(_0x8480d2[_0x33884c(0x265)]===_0x33884c(0x282)){const _0x445023=_0x8480d2['approvalMode']??_0x33884c(0x22c),_0x15b455=_0x8480d2['taskMode']??_0x33884c(0x282);!APPROVAL_TASK_MODES[_0x33884c(0x2e6)](_0x15b455)&&_0x24cb29['push']({'path':_0x3aa715+_0x33884c(0x2a3),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x15b455)+'.'});!APPROVAL_MODES[_0x33884c(0x2e6)](_0x445023)&&_0x24cb29['push']({'path':_0x3aa715+_0x33884c(0x2c8),'message':_0x33884c(0x272)+String(_0x445023)+'.'});if(!isRecord(_0x8480d2[_0x33884c(0x25f)]))_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x248),'message':_0x33884c(0x2a2)});else{const _0x232d24=_0x8480d2[_0x33884c(0x25f)][_0x33884c(0x31e)];_0x232d24!==_0x33884c(0x234)&&_0x232d24!==_0x33884c(0x24b)&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x2ef),'message':'assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.'});if(_0x232d24===_0x33884c(0x234)){const _0xd063c9=_0x8480d2['assignee'][_0x33884c(0x256)];if(!Array[_0x33884c(0x213)](_0xd063c9)||_0xd063c9['length']===0x0)_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x201),'message':'FIXED\x20assignee\x20requires\x20userIds.'});else{const _0x1748a9=_0xd063c9[_0x33884c(0x268)](_0x3b6e62=>!isValidUserId(_0x3b6e62));_0x1748a9>=0x0&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x2e0)+_0x1748a9+']','message':_0x33884c(0x212)});const _0x5d15ea=new Set(_0xd063c9['filter'](isValidUserId)[_0x33884c(0x273)](_0x5c5a0a=>String(_0x5c5a0a)[_0x33884c(0x284)]()));_0x445023===_0x33884c(0x22c)&&_0x5d15ea[_0x33884c(0x25e)]>0x1&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x201),'message':_0x33884c(0x28d)});}}if(_0x232d24===_0x33884c(0x24b)){const _0x39185c=_0x8480d2[_0x33884c(0x25f)][_0x33884c(0x254)],_0x47688c=typeof _0x39185c===_0x33884c(0x220)||typeof _0x39185c===_0x33884c(0x2dd)?Number(String(_0x39185c)['trim']()):Number['NaN'];(!Number[_0x33884c(0x23a)](_0x47688c)||_0x47688c<=0x0)&&_0x24cb29['push']({'path':_0x3aa715+_0x33884c(0x2f2),'message':'ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.'});}}if(_0x8480d2[_0x33884c(0x325)]!==undefined){if(!isRecord(_0x8480d2[_0x33884c(0x325)]))_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x1ec),'message':_0x33884c(0x1c6)});else{if(_0x8480d2['transferCandidates'][_0x33884c(0x31e)]!==_0x33884c(0x234))_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x267),'message':_0x33884c(0x1dd)});else{const _0x3bc085=_0x8480d2[_0x33884c(0x325)]['userIds'];if(!Array[_0x33884c(0x213)](_0x3bc085)||_0x3bc085[_0x33884c(0x2c4)]===0x0)_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+'.transferCandidates.userIds','message':_0x33884c(0x294)});else{const _0x2d4200=_0x3bc085[_0x33884c(0x268)](_0x15a49b=>!isValidUserId(_0x15a49b));_0x2d4200>=0x0&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x2af)+_0x2d4200+']','message':'transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.'});}}}}}_0x8480d2[_0x33884c(0x2ed)]!==undefined&&typeof _0x8480d2['sequential']!=='boolean'&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x319),'message':_0x33884c(0x21c)});if(_0x8480d2[_0x33884c(0x265)]===_0x33884c(0x20f)){(typeof _0x8480d2[_0x33884c(0x259)]!==_0x33884c(0x2dd)||_0x8480d2[_0x33884c(0x259)][_0x33884c(0x284)]()==='')&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x31d),'message':_0x33884c(0x27e)});if(_0x8480d2[_0x33884c(0x252)]!==undefined){if(typeof _0x8480d2['resultVariable']!==_0x33884c(0x2dd)||!VARIABLE_PATTERN[_0x33884c(0x288)](_0x8480d2[_0x33884c(0x252)]))_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x32e),'message':_0x33884c(0x1cc)});else(RESERVED_RESULT_VARIABLES[_0x33884c(0x2e6)](_0x8480d2[_0x33884c(0x252)])||_0x8480d2[_0x33884c(0x252)]['startsWith'](_0x33884c(0x292)))&&_0x24cb29[_0x33884c(0x2b2)]({'path':_0x3aa715+_0x33884c(0x32e),'message':'Reserved\x20resultVariable:\x20'+_0x8480d2[_0x33884c(0x252)]+'.'});}}validateAsyncExecution(_0x8480d2,_0x3aa715,_0x24cb29),validateApprovalTimeout(_0x8480d2,_0x3aa715,_0x24cb29),validateCcConfig(_0x8480d2,_0x3aa715,_0x24cb29),_0x8480d2[_0x33884c(0x265)]===_0x33884c(0x264)&&validateNotificationConfig(_0x8480d2['config'],_0x3aa715+_0x33884c(0x2ea),_0x24cb29);}function validateAsyncExecution(_0x5910e0,_0x3d8ddc,_0x1735cf){const _0x5cb959=a299_0xf05f06;if(_0x5910e0[_0x5cb959(0x2da)]===undefined)return;if(!isRecord(_0x5910e0[_0x5cb959(0x2da)])){_0x1735cf[_0x5cb959(0x2b2)]({'path':_0x3d8ddc+_0x5cb959(0x32b),'message':_0x5cb959(0x27c)});return;}if(_0x5910e0[_0x5cb959(0x2da)][_0x5cb959(0x2ab)]!==undefined&&typeof _0x5910e0[_0x5cb959(0x2da)][_0x5cb959(0x2ab)]!==_0x5cb959(0x228)){_0x1735cf[_0x5cb959(0x2b2)]({'path':_0x3d8ddc+_0x5cb959(0x2e5),'message':_0x5cb959(0x1d1)});return;}if(_0x5910e0[_0x5cb959(0x2da)][_0x5cb959(0x2ab)]!==!![])return;_0x5910e0[_0x5cb959(0x265)]!=='SCRIPT'&&_0x1735cf[_0x5cb959(0x2b2)]({'path':_0x3d8ddc+_0x5cb959(0x32b),'message':_0x5cb959(0x269)});const _0x5ad036=_0x5910e0[_0x5cb959(0x2da)][_0x5cb959(0x1e5)]??0x3;(!Number[_0x5cb959(0x22d)](_0x5ad036)||_0x5ad036<0x1||_0x5ad036>MAX_ASYNC_RETRY_COUNT)&&_0x1735cf[_0x5cb959(0x2b2)]({'path':_0x3d8ddc+'.async.retryCount','message':_0x5cb959(0x217)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x5910e0[_0x5cb959(0x2da)][_0x5cb959(0x32c)]!==undefined&&validateTimeAmount(_0x5910e0[_0x5cb959(0x2da)][_0x5cb959(0x32c)],_0x3d8ddc+_0x5cb959(0x260),_0x1735cf);}function validateApprovalTimeout(_0x50e3fa,_0x45a3f4,_0x1c7d1b){const _0x3e25e3=a299_0xf05f06;if(_0x50e3fa[_0x3e25e3(0x1f1)]===undefined)return;if(!isRecord(_0x50e3fa[_0x3e25e3(0x1f1)])){_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+_0x3e25e3(0x293),'message':_0x3e25e3(0x2e7)});return;}if(_0x50e3fa[_0x3e25e3(0x1f1)][_0x3e25e3(0x2ab)]!==undefined&&typeof _0x50e3fa[_0x3e25e3(0x1f1)][_0x3e25e3(0x2ab)]!==_0x3e25e3(0x228)){_0x1c7d1b['push']({'path':_0x45a3f4+_0x3e25e3(0x1cb),'message':_0x3e25e3(0x289)});return;}if(_0x50e3fa[_0x3e25e3(0x1f1)]['enabled']!==!![])return;if(_0x50e3fa[_0x3e25e3(0x1f1)][_0x3e25e3(0x290)]!==undefined&&typeof _0x50e3fa[_0x3e25e3(0x1f1)][_0x3e25e3(0x290)]!=='boolean'){_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+_0x3e25e3(0x1cd),'message':_0x3e25e3(0x32f)});return;}_0x50e3fa[_0x3e25e3(0x265)]!==_0x3e25e3(0x282)&&_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+_0x3e25e3(0x293),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x50e3fa[_0x3e25e3(0x1f1)][_0x3e25e3(0x323)],_0x45a3f4+'.timeout.duration',_0x1c7d1b);const _0x42f5f9=_0x50e3fa['timeout'][_0x3e25e3(0x279)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x3e25e3(0x2e6)](_0x42f5f9)){_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+'.timeout.action','message':_0x3e25e3(0x1f2)});return;}(_0x50e3fa[_0x3e25e3(0x1fd)]??_0x3e25e3(0x282))===_0x3e25e3(0x1d5)&&_0x42f5f9!==_0x3e25e3(0x2a6)&&_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+'.timeout.action','message':_0x3e25e3(0x32a)});const _0x5e1d00=_0x50e3fa['timeout'][_0x3e25e3(0x290)]??_0x42f5f9!==_0x3e25e3(0x2a6);if(_0x42f5f9==='EXECUTE_BFF')_0x5e1d00&&_0x1c7d1b['push']({'path':_0x45a3f4+_0x3e25e3(0x1cd),'message':'EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.'}),(typeof _0x50e3fa[_0x3e25e3(0x1f1)]['scriptName']!==_0x3e25e3(0x2dd)||_0x50e3fa[_0x3e25e3(0x1f1)]['scriptName'][_0x3e25e3(0x284)]()==='')&&_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+_0x3e25e3(0x304),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x50e3fa[_0x3e25e3(0x1f1)][_0x3e25e3(0x252)],_0x45a3f4+'.timeout.resultVariable',_0x1c7d1b);else!_0x5e1d00&&_0x1c7d1b[_0x3e25e3(0x2b2)]({'path':_0x45a3f4+'.timeout.interrupting','message':_0x42f5f9+_0x3e25e3(0x1eb)});}function validateTimeAmount(_0x15f04b,_0x1832bf,_0x34494c){const _0x2cb78c=a299_0xf05f06;if(!isRecord(_0x15f04b)){_0x34494c[_0x2cb78c(0x2b2)]({'path':_0x1832bf,'message':_0x2cb78c(0x2e4)});return;}(!Number[_0x2cb78c(0x22d)](_0x15f04b[_0x2cb78c(0x2f9)])||Number(_0x15f04b['value'])<=0x0)&&_0x34494c['push']({'path':_0x1832bf+_0x2cb78c(0x1df),'message':_0x2cb78c(0x300)}),!FLOW_TIME_UNITS[_0x2cb78c(0x2e6)](_0x15f04b[_0x2cb78c(0x2a5)])&&_0x34494c[_0x2cb78c(0x2b2)]({'path':_0x1832bf+_0x2cb78c(0x2a7),'message':'duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.'});}function validateOptionalResultVariable(_0x434522,_0x4848bc,_0x4ac8fc){const _0x30d413=a299_0xf05f06;if(_0x434522===undefined||_0x434522===null||_0x434522==='')return;if(typeof _0x434522!==_0x30d413(0x2dd)||!VARIABLE_PATTERN['test'](_0x434522))_0x4ac8fc[_0x30d413(0x2b2)]({'path':_0x4848bc,'message':_0x30d413(0x1cc)});else(RESERVED_RESULT_VARIABLES[_0x30d413(0x2e6)](_0x434522)||_0x434522[_0x30d413(0x2f4)]('approval_sys_'))&&_0x4ac8fc[_0x30d413(0x2b2)]({'path':_0x4848bc,'message':_0x30d413(0x291)+_0x434522+'.'});}function a299_0x40f3(){const _0x57fd14=['pageId','.value','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageIds.','startPath','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','.source','startPageId','retryCount','AUTO_APPROVE','waypoint.','.detailMarkdown','title','defaultFlow','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','.transferCandidates','expression','delete','flowJson','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','timeout','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','.url','position.','.defaultFlow','message','approval_sys_dataId','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','CONTINUE','failurePolicy','waypoints\x20must\x20be\x20an\x20array.','.cc','taskMode','approval.simple-flow.v1','catch','#/$defs/timeAmount','.assignee.userIds','752oJfzix','Edge\x20source\x20node\x20not\x20found:\x20','readSources','.target','object','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','ANY','\x20is\x20required.','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','\x20->\x20','detailMarkdown','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','metadata','SCRIPT','flowJson.startPath','flowDesc','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','isArray','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','HOURS','target','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','Notification\x20action.url\x20is\x20required.','empty_metadata_removed','datasetCode\x20must\x20be\x20a\x20string.','sequential\x20must\x20be\x20a\x20boolean.','actions','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.waypoints[','number','833200oZLLgu','nodes\x20must\x20be\x20an\x20array.','ALL','Notification\x20recipient\x20must\x20be\x20an\x20object.','https://lovrabet.com/schema/rabetbase-flow-config.json','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','approval_sys_operationType','boolean','.configCode','formPermissions','.facts','SINGLE','isInteger','Rabetbase\x20FlowConfig','.id','flowJson.startPageId','4lNQZwa','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','FIXED','Node\x20has\x20no\x20incoming\x20edge.','2699620AzIIRt','flowJson\x20must\x20be\x20an\x20object.','value\x20must\x20be\x20a\x20non-empty\x20string.','CONDITION','isSafeInteger','nodes','targetNodeId','FORM_FLOW','1597216iiXzqL','edge\x20target\x20is\x20required.','Notification\x20action\x20must\x20be\x20an\x20object.',',\x20but\x20node\x20','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','Duplicate\x20edge\x20route:\x20','AUTO_REJECT','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','name','pid','.assignee','INDEPENDENT_FLOW','some','ROLE','DAYS','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','get','configCode','Every\x20node\x20requires\x20a\x20non-empty\x20name.','stringify','resultVariable','flowJson.nodes.','roleId','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','userIds','1388jtUbrH','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','scriptName','.waypoints','warnings','flowJson.','appCode','size','assignee','.async.retryInterval','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','^[1-9][0-9]*$','text','NOTIFICATION','type','defaultFlow\x20must\x20be\x20a\x20boolean.','.transferCandidates.strategy','findIndex','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','\x20users.','https://json-schema.org/draft/2020-12/schema','.role','.expression','.conditionType','approved','Notification\x20template.facts\x20must\x20be\x20an\x20array.','CUSTOM_PAGE','Unsupported\x20approval\x20mode:\x20','map','Notification\x20recipients\x20must\x20be\x20an\x20array.','isFinite','.text','547626hixkaF','USER','action','config','EMAIL','async\x20must\x20be\x20an\x20object.','.position','SCRIPT\x20node\x20requires\x20scriptName.','EXPRESSION','#/$defs/flowNode','Expression\x20references\x20SCRIPT\x20resultVariable\x20','APPROVAL','.version','trim','.\x20This\x20CLI\x20supports\x20only\x20','flowJson.nodes','.recipients','test','timeout.enabled\x20must\x20be\x20a\x20boolean.','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','APPROVED','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','\x20actions.','.cc.visible','interrupting','Reserved\x20resultVariable:\x20','approval_sys_','.timeout','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','Notification\x20template\x20supports\x20at\x20most\x20','hasOwnProperty','pageIds\x20exceeds\x20the\x202048-character\x20binding\x20limit.','formSchema','recipients','add','failurePolicy\x20must\x20be\x20a\x20string.','approval_sys_initiatorUsername','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','filter','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','path','APPROVAL\x20node\x20requires\x20assignee.','.taskMode','variables','unit','EXECUTE_BFF','.unit','REJECTED','Unsupported\x20flowType:\x20','formData','enabled','.cc.recipientUserIds','summary','datasetCode','.transferCandidates.userIds[','.pageId','flowJson.nodes[','push','flowJson.pageMode','flowType','#/$defs/userId','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','conditionType','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','flowCode','.path','flowJson.edges','BCC','Unsupported\x20schemaVersion:\x20','#/$defs/position','Unsupported\x20notification\x20version:\x20','slice','Notification\x20version\x20must\x20be\x20a\x20string.','every','approval_sys_processInstanceId','length','.type','Notification\x20action.text\x20is\x20required.','5070348Oakllu','.approvalMode','indexOf','mode','.tmp','60053rFanZP','Notification\x20fact.','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','flowJson.schemaVersion','40fYlynH','flowDesc\x20must\x20be\x20a\x20string.','.cc.recipientUserIds[','flowJson.edges[','\x20was\x20empty\x20and\x20was\x20removed.','Node\x20is\x20not\x20reachable\x20from\x20START.','recipientUserIds','132PTIhyp','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','waypoints','async','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','edge\x20name\x20must\x20be\x20a\x20string.','string','includes','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','.assignee.userIds[','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','approval_sys_pageId','NOTIFICATION\x20node\x20requires\x20config.','duration\x20requires\x20value\x20and\x20unit.','.async.enabled','has','timeout\x20must\x20be\x20an\x20object.','edge\x20must\x20be\x20an\x20object.','Duplicate\x20BPMN\x20element\x20id:\x20','.config','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','Duplicate\x20node\x20id:\x20','sequential','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','.assignee.strategy','sourceNodeId','event','.assignee.roleId','.name','startsWith','version','cc\x20must\x20be\x20an\x20object.','START','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','value','toUpperCase','ALWAYS','Notification\x20template.','facts','FAIL','END','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','label','pageIds','bindDatasetCode','.timeout.scriptName','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','url','templateName','array','forEach','source','PLATFORM_FORM','integer','keys','prototype','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','.failurePolicy','formPermission','pageId\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','Unsupported\x20node\x20type:\x20','flowType\x20is\x20required.','role','result','approval_sys_initiatorUserId','.sequential','Unsupported\x20notification\x20placeholder:\x20','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','parse','.scriptName','strategy','.position.','Duplicate\x20cc\x20recipient\x20userId:\x20','entries','Node\x20has\x20no\x20outgoing\x20edge.','duration','schemaVersion','transferCandidates','Unsupported\x20pageMode:\x20','utf8','set','edges','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','.async','retryInterval','Node\x20cannot\x20reach\x20any\x20END.','.resultVariable','timeout.interrupting\x20must\x20be\x20a\x20boolean.','edge\x20source\x20is\x20required.','call','.template','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','template','pageMode','legacy_field_removed','matchAll','__rabetbase_local_validation__','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','transferCandidates\x20must\x20be\x20an\x20object.','\x20must\x20be\x20a\x20finite\x20number.','.cc.readSources','flowKey','pageIds\x20must\x20be\x20an\x20array\x20of\x20positive\x20safe\x20integers.','.timeout.enabled','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','.timeout.interrupting','^[A-Za-z_][A-Za-z0-9_]*$','MAX_SAFE_INTEGER','Notification\x20recipient.value\x20is\x20required.','async.enabled\x20must\x20be\x20a\x20boolean.','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','SECONDS','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','HANDLE','edges\x20must\x20be\x20an\x20array.','overwrite','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','position','].taskMode','startPath\x20must\x20be\x20a\x20non-empty\x20string.','flowName','transferCandidates\x20currently\x20supports\x20FIXED\x20only.'];a299_0x40f3=function(){return _0x57fd14;};return a299_0x40f3();}function validateCcConfig(_0x29140b,_0x45aead,_0x2dda6f){const _0x489c4f=a299_0xf05f06;if(_0x29140b['cc']===undefined)return;if(!isRecord(_0x29140b['cc'])){_0x2dda6f[_0x489c4f(0x2b2)]({'path':_0x45aead+_0x489c4f(0x1fc),'message':_0x489c4f(0x2f6)});return;}_0x29140b[_0x489c4f(0x265)]!=='END'&&_0x29140b[_0x489c4f(0x265)]!==_0x489c4f(0x282)&&_0x2dda6f[_0x489c4f(0x2b2)]({'path':_0x45aead+_0x489c4f(0x1fc),'message':_0x489c4f(0x1e2)});Object['prototype'][_0x489c4f(0x297)][_0x489c4f(0x331)](_0x29140b['cc'],_0x489c4f(0x204))&&_0x2dda6f[_0x489c4f(0x2b2)]({'path':_0x45aead+_0x489c4f(0x1c8),'message':UNSUPPORTED_FORM_MESSAGE});const _0x3f732c=_0x29140b['cc'][_0x489c4f(0x2d6)];if(!Array['isArray'](_0x3f732c)||_0x3f732c[_0x489c4f(0x2c4)]===0x0)_0x2dda6f[_0x489c4f(0x2b2)]({'path':_0x45aead+_0x489c4f(0x2ac),'message':_0x489c4f(0x1d4)});else{_0x3f732c['length']>MAX_CC_RECIPIENTS&&_0x2dda6f[_0x489c4f(0x2b2)]({'path':_0x45aead+_0x489c4f(0x2ac),'message':'cc.recipientUserIds\x20supports\x20at\x20most\x20'+MAX_CC_RECIPIENTS+_0x489c4f(0x26a)});const _0x2f75b1=new Set();_0x3f732c[_0x489c4f(0x309)]((_0x23e0a9,_0x2f868c)=>{const _0x1144c7=_0x489c4f;if(typeof _0x23e0a9!=='string'||_0x23e0a9[_0x1144c7(0x284)]()==='')_0x2dda6f['push']({'path':_0x45aead+_0x1144c7(0x2d2)+_0x2f868c+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x2f75b1[_0x1144c7(0x2e6)](_0x23e0a9['trim']())?_0x2dda6f[_0x1144c7(0x2b2)]({'path':_0x45aead+'.cc.recipientUserIds['+_0x2f868c+']','message':_0x1144c7(0x320)+_0x23e0a9[_0x1144c7(0x284)]()+'.'}):_0x2f75b1[_0x1144c7(0x29b)](_0x23e0a9['trim']());});}validateStringArray(_0x29140b['cc']['visible'],_0x45aead+_0x489c4f(0x28f),_0x2dda6f);}function validateStringArray(_0x12511a,_0x25254f,_0xb8aabd){const _0x334ea5=a299_0xf05f06;if(_0x12511a===undefined)return;if(!Array[_0x334ea5(0x213)](_0x12511a)){_0xb8aabd['push']({'path':_0x25254f,'message':'value\x20must\x20be\x20an\x20array.'});return;}const _0x30e4a1=new Set();_0x12511a[_0x334ea5(0x309)]((_0x3617e1,_0x2f7395)=>{const _0x363c73=_0x334ea5;if(typeof _0x3617e1!=='string'||_0x3617e1[_0x363c73(0x284)]()==='')_0xb8aabd[_0x363c73(0x2b2)]({'path':_0x25254f+'['+_0x2f7395+']','message':_0x363c73(0x238)});else _0x30e4a1[_0x363c73(0x2e6)](_0x3617e1['trim']())?_0xb8aabd[_0x363c73(0x2b2)]({'path':_0x25254f+'['+_0x2f7395+']','message':'Duplicate\x20value:\x20'+_0x3617e1[_0x363c73(0x284)]()+'.'}):_0x30e4a1[_0x363c73(0x29b)](_0x3617e1[_0x363c73(0x284)]());});}function validateNotificationConfig(_0x541fc3,_0x5cb27e,_0x17f96f){const _0x5ba426=a299_0xf05f06;if(!isRecord(_0x541fc3)){_0x17f96f[_0x5ba426(0x2b2)]({'path':_0x5cb27e,'message':_0x5ba426(0x2e3)});return;}if(_0x541fc3['version']!==undefined&&_0x541fc3[_0x5ba426(0x2f5)]!==null){if(typeof _0x541fc3[_0x5ba426(0x2f5)]!==_0x5ba426(0x2dd))_0x17f96f[_0x5ba426(0x2b2)]({'path':_0x5cb27e+_0x5ba426(0x283),'message':_0x5ba426(0x2c1)});else _0x541fc3['version'][_0x5ba426(0x284)]()&&_0x541fc3[_0x5ba426(0x2f5)]['trim']()!=='v1'&&_0x17f96f[_0x5ba426(0x2b2)]({'path':_0x5cb27e+_0x5ba426(0x283),'message':_0x5ba426(0x2bf)+_0x541fc3[_0x5ba426(0x2f5)]+'.'});}const _0x1079ef=requireNotificationString(_0x541fc3[_0x5ba426(0x24f)],_0x5cb27e+_0x5ba426(0x229),'Notification\x20configCode\x20is\x20required.',_0x17f96f);_0x1079ef?.['includes']('${')&&_0x17f96f[_0x5ba426(0x2b2)]({'path':_0x5cb27e+'.configCode','message':_0x5ba426(0x24d)});if(_0x541fc3['failurePolicy']!==undefined&&_0x541fc3[_0x5ba426(0x1fa)]!==null){if(typeof _0x541fc3[_0x5ba426(0x1fa)]!==_0x5ba426(0x2dd))_0x17f96f[_0x5ba426(0x2b2)]({'path':_0x5cb27e+_0x5ba426(0x310),'message':_0x5ba426(0x29c)});else!NOTIFICATION_FAILURE_POLICIES[_0x5ba426(0x2e6)](_0x541fc3[_0x5ba426(0x1fa)][_0x5ba426(0x284)]()[_0x5ba426(0x2fa)]())&&_0x17f96f[_0x5ba426(0x2b2)]({'path':_0x5cb27e+_0x5ba426(0x310),'message':_0x5ba426(0x29e)});}!isRecord(_0x541fc3[_0x5ba426(0x334)])?_0x17f96f['push']({'path':_0x5cb27e+_0x5ba426(0x332),'message':'NOTIFICATION\x20node\x20requires\x20template.'}):validateNotificationTemplate(_0x541fc3[_0x5ba426(0x334)],_0x5cb27e+_0x5ba426(0x332),_0x17f96f),validateNotificationRecipients(_0x541fc3[_0x5ba426(0x29a)],_0x5cb27e+_0x5ba426(0x287),_0x17f96f);}function validateNotificationTemplate(_0x18cc2d,_0x55a23a,_0x1fae7b){const _0x22f449=a299_0xf05f06;for(const _0x166189 of[_0x22f449(0x1e9),_0x22f449(0x2ad)]){const _0x531c1a=requireNotificationString(_0x18cc2d[_0x166189],_0x55a23a+'.'+_0x166189,_0x22f449(0x2fc)+_0x166189+_0x22f449(0x209),_0x1fae7b);if(_0x531c1a)validateNotificationPlaceholders(_0x531c1a,_0x55a23a+'.'+_0x166189,_0x1fae7b);}_0x18cc2d[_0x22f449(0x20c)]!==undefined&&_0x18cc2d[_0x22f449(0x20c)]!==null&&(typeof _0x18cc2d[_0x22f449(0x20c)]!=='string'?_0x1fae7b[_0x22f449(0x2b2)]({'path':_0x55a23a+_0x22f449(0x1e8),'message':_0x22f449(0x2d8)}):validateNotificationPlaceholders(_0x18cc2d['detailMarkdown'],_0x55a23a+'.detailMarkdown',_0x1fae7b)),validateNotificationFacts(_0x18cc2d[_0x22f449(0x2fd)],_0x55a23a+_0x22f449(0x22b),_0x1fae7b),validateNotificationActions(_0x18cc2d[_0x22f449(0x21d)],_0x55a23a+'.actions',_0x1fae7b);}function validateNotificationFacts(_0x507ea4,_0x80d0ae,_0x2da7be){const _0x363118=a299_0xf05f06;if(_0x507ea4===undefined||_0x507ea4===null)return;if(!Array['isArray'](_0x507ea4)){_0x2da7be[_0x363118(0x2b2)]({'path':_0x80d0ae,'message':_0x363118(0x270)});return;}_0x507ea4[_0x363118(0x2c4)]>MAX_NOTIFICATION_FACTS&&_0x2da7be['push']({'path':_0x80d0ae,'message':_0x363118(0x296)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x507ea4[_0x363118(0x309)]((_0x8ae1ab,_0x1e7fd8)=>{const _0x3b8800=_0x363118,_0x2f1bd6=_0x80d0ae+'['+_0x1e7fd8+']';if(!isRecord(_0x8ae1ab)){_0x2da7be[_0x3b8800(0x2b2)]({'path':_0x2f1bd6,'message':'Notification\x20fact\x20must\x20be\x20an\x20object.'});return;}for(const _0x49ee70 of[_0x3b8800(0x301),_0x3b8800(0x2f9)]){const _0x392789=requireNotificationString(_0x8ae1ab[_0x49ee70],_0x2f1bd6+'.'+_0x49ee70,_0x3b8800(0x2cd)+_0x49ee70+'\x20is\x20required.',_0x2da7be);_0x392789&&validateNotificationPlaceholders(_0x392789,_0x2f1bd6+'.'+_0x49ee70,_0x2da7be);}});}function validateNotificationActions(_0x12b30b,_0x347aad,_0x9d8876){const _0x544fe3=a299_0xf05f06;if(_0x12b30b===undefined||_0x12b30b===null)return;if(!Array[_0x544fe3(0x213)](_0x12b30b)){_0x9d8876[_0x544fe3(0x2b2)]({'path':_0x347aad,'message':'Notification\x20template.actions\x20must\x20be\x20an\x20array.'});return;}_0x12b30b[_0x544fe3(0x2c4)]>MAX_NOTIFICATION_ACTIONS&&_0x9d8876[_0x544fe3(0x2b2)]({'path':_0x347aad,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_ACTIONS+_0x544fe3(0x28e)}),_0x12b30b[_0x544fe3(0x309)]((_0x1cc75e,_0xb1a007)=>{const _0x7a3f0=_0x544fe3,_0x284ec3=_0x347aad+'['+_0xb1a007+']';if(!isRecord(_0x1cc75e)){_0x9d8876[_0x7a3f0(0x2b2)]({'path':_0x284ec3,'message':_0x7a3f0(0x240)});return;}const _0x59e4bd=requireNotificationString(_0x1cc75e[_0x7a3f0(0x263)],_0x284ec3+_0x7a3f0(0x276),_0x7a3f0(0x2c6),_0x9d8876);if(_0x59e4bd)validateNotificationPlaceholders(_0x59e4bd,_0x284ec3+_0x7a3f0(0x276),_0x9d8876);const _0x3eea14=requireNotificationString(_0x1cc75e[_0x7a3f0(0x306)],_0x284ec3+_0x7a3f0(0x1f3),_0x7a3f0(0x219),_0x9d8876);if(!_0x3eea14)return;validateNotificationPlaceholders(_0x3eea14,_0x284ec3+_0x7a3f0(0x1f3),_0x9d8876),!/^https?:\/\//i[_0x7a3f0(0x288)](_0x3eea14)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN['test'](_0x3eea14)&&_0x9d8876[_0x7a3f0(0x2b2)]({'path':_0x284ec3+_0x7a3f0(0x1f3),'message':_0x7a3f0(0x261)});});}function validateNotificationRecipients(_0x10c925,_0x44e43c,_0x4b38c3){const _0x252695=a299_0xf05f06;if(_0x10c925===undefined||_0x10c925===null)return;if(!Array['isArray'](_0x10c925)){_0x4b38c3[_0x252695(0x2b2)]({'path':_0x44e43c,'message':_0x252695(0x274)});return;}let _0x3023be=![];_0x10c925[_0x252695(0x309)]((_0x1fbcb8,_0x28c036)=>{const _0x1c0b86=_0x252695,_0x51d62a=_0x44e43c+'['+_0x28c036+']';if(!isRecord(_0x1fbcb8)){_0x4b38c3[_0x1c0b86(0x2b2)]({'path':_0x51d62a,'message':_0x1c0b86(0x224)});return;}const _0x265aef=requireNotificationString(_0x1fbcb8[_0x1c0b86(0x265)],_0x51d62a+_0x1c0b86(0x2c5),'Notification\x20recipient.type\x20is\x20required.',_0x4b38c3);_0x265aef&&!NOTIFICATION_RECIPIENT_TYPES[_0x1c0b86(0x2e6)](_0x265aef[_0x1c0b86(0x2fa)]())&&_0x4b38c3[_0x1c0b86(0x2b2)]({'path':_0x51d62a+'.type','message':'Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.'});let _0x522bc8='TO';_0x1fbcb8[_0x1c0b86(0x316)]!==undefined&&_0x1fbcb8['role']!==null&&(typeof _0x1fbcb8[_0x1c0b86(0x316)]!=='string'?(_0x4b38c3[_0x1c0b86(0x2b2)]({'path':_0x51d62a+_0x1c0b86(0x26c),'message':_0x1c0b86(0x305)}),_0x522bc8=''):(_0x522bc8=_0x1fbcb8[_0x1c0b86(0x316)][_0x1c0b86(0x284)]()[_0x1c0b86(0x2fa)](),!NOTIFICATION_RECIPIENT_ROLES[_0x1c0b86(0x2e6)](_0x522bc8)&&_0x4b38c3[_0x1c0b86(0x2b2)]({'path':_0x51d62a+_0x1c0b86(0x26c),'message':_0x1c0b86(0x258)})));if(_0x522bc8==='TO')_0x3023be=!![];const _0x28b134=requireNotificationString(_0x1fbcb8[_0x1c0b86(0x2f9)],_0x51d62a+_0x1c0b86(0x1df),_0x1c0b86(0x1d0),_0x4b38c3);_0x28b134&&validateNotificationPlaceholders(_0x28b134,_0x51d62a+_0x1c0b86(0x1df),_0x4b38c3);}),_0x10c925['length']>0x0&&!_0x3023be&&_0x4b38c3[_0x252695(0x2b2)]({'path':_0x44e43c,'message':_0x252695(0x28a)});}function requireNotificationString(_0x5c4683,_0x520626,_0x425139,_0x4a09aa){const _0x48ff56=a299_0xf05f06;if(typeof _0x5c4683!=='string'||_0x5c4683['trim']()==='')return _0x4a09aa['push']({'path':_0x520626,'message':_0x425139}),undefined;return _0x5c4683[_0x48ff56(0x284)]();}function validateNotificationPlaceholders(_0x2bc1de,_0x8100cc,_0x429874){const _0x516a31=a299_0xf05f06;for(const _0x4915a2 of _0x2bc1de[_0x516a31(0x337)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x3c0593=_0x4915a2[0x1]?.['trim']()??'',_0x3e0a95=_0x3c0593[_0x516a31(0x2c9)]('.'),_0x2c5510=_0x3e0a95>=0x0?_0x3c0593[_0x516a31(0x2c0)](0x0,_0x3e0a95):_0x3c0593,_0x32bc33=_0x3e0a95>=0x0?_0x3c0593['slice'](_0x3e0a95+0x1)[_0x516a31(0x284)]():'';(![_0x516a31(0x2f1),'context',_0x516a31(0x2a4)][_0x516a31(0x2de)](_0x2c5510)||_0x32bc33==='')&&_0x429874['push']({'path':_0x8100cc,'message':_0x516a31(0x31a)+_0x4915a2[0x0]+'.'});}_0x2bc1de['replace'](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x516a31(0x2de)]('${')&&_0x429874['push']({'path':_0x8100cc,'message':_0x516a31(0x2f8)});}function validateEdge(_0xba11c8,_0xb6ba94,_0x478750){const _0x1bbd31=a299_0xf05f06;_0xba11c8[_0x1bbd31(0x246)]!==undefined&&typeof _0xba11c8['name']!==_0x1bbd31(0x2dd)&&_0x478750[_0x1bbd31(0x2b2)]({'path':_0xb6ba94+_0x1bbd31(0x2f3),'message':_0x1bbd31(0x2dc)}),_0xba11c8[_0x1bbd31(0x1ea)]!==undefined&&typeof _0xba11c8[_0x1bbd31(0x1ea)]!==_0x1bbd31(0x228)&&_0x478750['push']({'path':_0xb6ba94+_0x1bbd31(0x1f5),'message':_0x1bbd31(0x266)}),_0xba11c8[_0x1bbd31(0x2d9)]!==undefined&&(!Array['isArray'](_0xba11c8[_0x1bbd31(0x2d9)])?_0x478750[_0x1bbd31(0x2b2)]({'path':_0xb6ba94+_0x1bbd31(0x25a),'message':_0x1bbd31(0x1fb)}):_0xba11c8[_0x1bbd31(0x2d9)][_0x1bbd31(0x309)]((_0x14a0b7,_0x16937e)=>{const _0x23ed1a=_0x1bbd31;if(!isRecord(_0x14a0b7)){_0x478750['push']({'path':_0xb6ba94+'.waypoints['+_0x16937e+']','message':_0x23ed1a(0x2e1)});return;}for(const _0x4a1c05 of['x','y']){const _0x53f839=_0x14a0b7[_0x4a1c05];(typeof _0x53f839!=='number'||!Number[_0x23ed1a(0x275)](_0x53f839))&&_0x478750[_0x23ed1a(0x2b2)]({'path':_0xb6ba94+_0x23ed1a(0x21f)+_0x16937e+'].'+_0x4a1c05,'message':_0x23ed1a(0x1e7)+_0x4a1c05+_0x23ed1a(0x1c7)});}})),_0xba11c8[_0x1bbd31(0x2b7)]!==undefined&&!CONDITION_TYPES[_0x1bbd31(0x2e6)](_0xba11c8[_0x1bbd31(0x2b7)])&&_0x478750[_0x1bbd31(0x2b2)]({'path':_0xb6ba94+_0x1bbd31(0x26e),'message':'Unsupported\x20condition\x20type:\x20'+String(_0xba11c8[_0x1bbd31(0x2b7)])+'.'}),_0xba11c8[_0x1bbd31(0x2b7)]==='EXPRESSION'&&(typeof _0xba11c8[_0x1bbd31(0x1ed)]!==_0x1bbd31(0x2dd)||_0xba11c8[_0x1bbd31(0x1ed)][_0x1bbd31(0x284)]()==='')&&_0x478750[_0x1bbd31(0x2b2)]({'path':_0xb6ba94+_0x1bbd31(0x26d),'message':'EXPRESSION\x20edge\x20requires\x20expression.'}),_0xba11c8[_0x1bbd31(0x1ea)]===!![]&&_0xba11c8[_0x1bbd31(0x2b7)]!==_0x1bbd31(0x2fb)&&_0x478750['push']({'path':_0xb6ba94+_0x1bbd31(0x1f5),'message':_0x1bbd31(0x1f0)}),_0xba11c8['defaultFlow']===!![]&&typeof _0xba11c8[_0x1bbd31(0x1ed)]===_0x1bbd31(0x2dd)&&_0xba11c8['expression'][_0x1bbd31(0x284)]()!==''&&_0x478750[_0x1bbd31(0x2b2)]({'path':_0xb6ba94+_0x1bbd31(0x26d),'message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x6ef129,_0x2a31cb,_0x3f06de,_0x3429c3,_0x1da8a0,_0x1d8f4c,_0x50d01c){const _0x30bae0=a299_0xf05f06;for(const [_0x4ae2d9,_0x996446]of _0x6ef129){const _0x27e39d=_0x1da8a0[_0x30bae0(0x24e)](_0x4ae2d9)??[],_0x5919c6=_0x3429c3[_0x30bae0(0x24e)](_0x4ae2d9)??[];_0x996446[_0x30bae0(0x265)]!==_0x30bae0(0x2f7)&&_0x27e39d[_0x30bae0(0x2c4)]===0x0&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x235)});_0x996446['type']!==_0x30bae0(0x2ff)&&_0x5919c6['length']===0x0&&_0x50d01c['push']({'path':'flowJson.nodes.'+_0x4ae2d9,'message':_0x30bae0(0x322)});_0x996446[_0x30bae0(0x265)]===_0x30bae0(0x2f7)&&_0x27e39d['length']>0x0&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':'START\x20node\x20must\x20not\x20have\x20incoming\x20edges.'});_0x996446[_0x30bae0(0x265)]===_0x30bae0(0x2ff)&&_0x5919c6['length']>0x0&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x1c5)});if(_0x996446['type']===_0x30bae0(0x239)){_0x5919c6[_0x30bae0(0x2c4)]<0x2&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x1e6c62=_0x5919c6[_0x30bae0(0x29f)](_0x3ab121=>_0x3ab121['defaultFlow']===!![]);_0x1e6c62[_0x30bae0(0x2c4)]!==0x1&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x2ee)});if(_0x1e6c62[_0x30bae0(0x2c4)]===0x1){const _0x123c40=_0x1e6c62[0x0],_0x45ee33=_0x1d8f4c[_0x30bae0(0x24e)](_0x123c40)??_0x30bae0(0x2bb);_0x123c40[_0x30bae0(0x2b7)]!=='ALWAYS'&&_0x50d01c['push']({'path':_0x45ee33+_0x30bae0(0x26e),'message':_0x30bae0(0x207)});_0x123c40['expression']!==undefined&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x45ee33+_0x30bae0(0x26d),'message':'CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.'});for(const _0x2d8380 of _0x5919c6){if(_0x2d8380===_0x123c40)continue;const _0x1b343a=_0x1d8f4c['get'](_0x2d8380)??_0x30bae0(0x2bb);if(_0x2d8380['conditionType']!==_0x30bae0(0x27f))_0x50d01c['push']({'path':_0x1b343a+_0x30bae0(0x26e),'message':_0x30bae0(0x245)});else(typeof _0x2d8380[_0x30bae0(0x1ed)]!=='string'||_0x2d8380['expression'][_0x30bae0(0x284)]()==='')&&_0x50d01c['push']({'path':_0x1b343a+'.expression','message':_0x30bae0(0x2df)});}}}if(_0x996446['type']===_0x30bae0(0x282)&&(_0x996446[_0x30bae0(0x1fd)]??_0x30bae0(0x282))===_0x30bae0(0x1d5)){if(_0x5919c6[_0x30bae0(0x2c4)]!==0x1)_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x30f)});else{const _0x58b273=_0x5919c6[0x0];((_0x58b273[_0x30bae0(0x2b7)]??_0x30bae0(0x2fb))!==_0x30bae0(0x2fb)||_0x58b273[_0x30bae0(0x1ea)]===!![]||typeof _0x58b273[_0x30bae0(0x1ed)]==='string'&&_0x58b273['expression']['trim']()!=='')&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x1d8f4c['get'](_0x58b273)??_0x30bae0(0x2bb),'message':_0x30bae0(0x295)});}}else{if(_0x996446['type']===_0x30bae0(0x282)){const _0x2813b6=_0x5919c6['map'](_0x3b1d0c=>_0x3b1d0c[_0x30bae0(0x2b7)]??'ALWAYS'),_0x5c69da=_0x2813b6['filter'](_0x18c892=>_0x18c892!==_0x30bae0(0x28c)&&_0x18c892!=='REJECTED');_0x5c69da[_0x30bae0(0x2c4)]>0x0&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x218)}),_0x2813b6['filter'](_0x165a9a=>_0x165a9a===_0x30bae0(0x28c))[_0x30bae0(0x2c4)]!==0x1&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x2813b6['filter'](_0x106a1e=>_0x106a1e===_0x30bae0(0x2a8))[_0x30bae0(0x2c4)]!==0x1&&_0x50d01c['push']({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x242)}),_0x5919c6[_0x30bae0(0x24a)](_0x1b5beb=>_0x1b5beb[_0x30bae0(0x1ea)]===!![])&&_0x50d01c['push']({'path':_0x30bae0(0x253)+_0x4ae2d9,'message':_0x30bae0(0x1f8)});}}}const _0x317010=new Set(),_0x430d48=_0x26f8be=>{const _0x4baed4=_0x30bae0;if(_0x317010[_0x4baed4(0x2e6)](_0x26f8be))return;_0x317010[_0x4baed4(0x29b)](_0x26f8be);for(const _0x52c2a2 of _0x3429c3[_0x4baed4(0x24e)](_0x26f8be)??[]){const _0x5a25b3=resolveEdgeEndpoint(_0x52c2a2[_0x4baed4(0x216)],_0x52c2a2[_0x4baed4(0x23c)]);if(_0x5a25b3&&_0x6ef129[_0x4baed4(0x2e6)](_0x5a25b3))_0x430d48(_0x5a25b3);}};_0x430d48(_0x2a31cb);for(const _0x24b46c of _0x6ef129[_0x30bae0(0x30d)]()){!_0x317010[_0x30bae0(0x2e6)](_0x24b46c)&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x24b46c,'message':_0x30bae0(0x2d5)});}const _0x48eb82=_0x3f06de['some'](_0x3d182c=>_0x317010[_0x30bae0(0x2e6)](_0x3d182c));if(!_0x48eb82){_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x2bb),'message':_0x30bae0(0x232)});return;}const _0x22f6bf=new Set(),_0xf7cd0=_0x20e950=>{const _0x1bbe01=_0x30bae0;if(_0x22f6bf[_0x1bbe01(0x2e6)](_0x20e950))return;_0x22f6bf[_0x1bbe01(0x29b)](_0x20e950);for(const _0x1b5983 of _0x1da8a0[_0x1bbe01(0x24e)](_0x20e950)??[]){const _0x3934ce=resolveEdgeEndpoint(_0x1b5983[_0x1bbe01(0x30a)],_0x1b5983[_0x1bbe01(0x2f0)]);if(_0x3934ce&&_0x6ef129[_0x1bbe01(0x2e6)](_0x3934ce))_0xf7cd0(_0x3934ce);}};for(const _0x330af6 of _0x3f06de){if(_0x6ef129[_0x30bae0(0x2e6)](_0x330af6))_0xf7cd0(_0x330af6);}for(const _0x5d4ce1 of _0x317010){!_0x22f6bf['has'](_0x5d4ce1)&&_0x50d01c[_0x30bae0(0x2b2)]({'path':_0x30bae0(0x253)+_0x5d4ce1,'message':_0x30bae0(0x32d)});}}function validateApprovalResults(_0x238d63,_0x1201e0,_0x4bbb4e,_0x44d27d){const _0x220656=a299_0xf05f06;if(_0x1201e0===0x0)return;const _0x110989=new Set(_0x4bbb4e[_0x220656(0x273)](_0x5639eb=>_0x238d63['get'](_0x5639eb)?.[_0x220656(0x317)])[_0x220656(0x29f)](_0x373d04=>typeof _0x373d04===_0x220656(0x2dd)));for(const _0x287bb0 of['APPROVED',_0x220656(0x2a8)]){!_0x110989['has'](_0x287bb0)&&_0x44d27d['push']({'path':_0x220656(0x286),'message':_0x220656(0x313)+_0x287bb0+'.'});}}function validateScriptResultReferences(_0x4e1dcd,_0x1eede4,_0x2c861b,_0x4666ff,_0x54717e,_0x43213a,_0x48f007){const _0x5335cd=a299_0xf05f06;if(_0x43213a[_0x5335cd(0x25e)]===0x0)return;const _0x76631a=new Set(),_0x460a64=_0xae85d2=>{const _0x3ee938=_0x5335cd;if(!_0x76631a['has'](_0xae85d2)&&_0x4e1dcd['has'](_0xae85d2)){_0x76631a[_0x3ee938(0x29b)](_0xae85d2);for(const _0x55a0c5 of _0x2c861b[_0x3ee938(0x24e)](_0xae85d2)??[]){const _0x1e4861=resolveEdgeEndpoint(_0x55a0c5['target'],_0x55a0c5[_0x3ee938(0x23c)]);if(_0x1e4861)_0x460a64(_0x1e4861);}}};_0x460a64(_0x1eede4);const _0x578e5b=new Map();for(const _0xb4fe9e of _0x76631a){_0x578e5b[_0x5335cd(0x328)](_0xb4fe9e,_0xb4fe9e===_0x1eede4?new Set([_0x1eede4]):new Set(_0x76631a));}let _0x111bab=!![];while(_0x111bab){_0x111bab=![];for(const _0x53b5eb of _0x76631a){if(_0x53b5eb===_0x1eede4)continue;const _0x2cba2b=(_0x4666ff['get'](_0x53b5eb)??[])['map'](_0x1b67f3=>resolveEdgeEndpoint(_0x1b67f3[_0x5335cd(0x30a)],_0x1b67f3[_0x5335cd(0x2f0)]))[_0x5335cd(0x29f)](_0x2339c5=>Boolean(_0x2339c5&&_0x76631a[_0x5335cd(0x2e6)](_0x2339c5)));if(_0x2cba2b[_0x5335cd(0x2c4)]===0x0)continue;const _0x332b4c=new Set(_0x578e5b[_0x5335cd(0x24e)](_0x2cba2b[0x0])??[]);for(const _0x1914ba of _0x2cba2b[_0x5335cd(0x2c0)](0x1)){const _0xcd7c3a=_0x578e5b[_0x5335cd(0x24e)](_0x1914ba)??new Set();for(const _0x48904f of _0x332b4c){if(!_0xcd7c3a[_0x5335cd(0x2e6)](_0x48904f))_0x332b4c[_0x5335cd(0x1ee)](_0x48904f);}}_0x332b4c[_0x5335cd(0x29b)](_0x53b5eb);const _0x3a0776=_0x578e5b[_0x5335cd(0x24e)](_0x53b5eb);!setsEqual(_0x3a0776,_0x332b4c)&&(_0x578e5b[_0x5335cd(0x328)](_0x53b5eb,_0x332b4c),_0x111bab=!![]);}}for(const [_0x3a0c05,_0x1b6131]of _0x2c861b){const _0x41ef44=_0x578e5b['get'](_0x3a0c05);if(!_0x41ef44)continue;for(const _0x39b4ba of _0x1b6131){if(_0x39b4ba[_0x5335cd(0x2b7)]!==_0x5335cd(0x27f)||typeof _0x39b4ba[_0x5335cd(0x1ed)]!==_0x5335cd(0x2dd))continue;for(const [_0x4e48dd,_0x4f8d2a]of _0x43213a){expressionReferencesVariable(_0x39b4ba['expression'],_0x4e48dd)&&!_0x41ef44[_0x5335cd(0x2e6)](_0x4f8d2a)&&_0x48f007[_0x5335cd(0x2b2)]({'path':(_0x54717e[_0x5335cd(0x24e)](_0x39b4ba)??_0x5335cd(0x2bb))+_0x5335cd(0x26d),'message':_0x5335cd(0x281)+_0x4e48dd+_0x5335cd(0x241)+_0x4f8d2a+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x3a0c05+'.'});}}}}function expressionReferencesVariable(_0x2e0412,_0x2a87f6){const _0x1cf92b=a299_0xf05f06;let _0x4540a3=0x0;while(_0x4540a3<_0x2e0412[_0x1cf92b(0x2c4)]){const _0x2c9809=_0x2e0412[_0x4540a3];if(_0x2c9809==='\x27'||_0x2c9809==='\x22'){_0x4540a3=skipQuotedExpressionSegment(_0x2e0412,_0x4540a3,_0x2c9809);continue;}if(!/[A-Za-z_]/[_0x1cf92b(0x288)](_0x2c9809)){_0x4540a3+=0x1;continue;}const _0x5eef13=_0x4540a3;_0x4540a3+=0x1;while(_0x4540a3<_0x2e0412[_0x1cf92b(0x2c4)]&&/[A-Za-z0-9_]/[_0x1cf92b(0x288)](_0x2e0412[_0x4540a3])){_0x4540a3+=0x1;}if(_0x2e0412[_0x1cf92b(0x2c0)](_0x5eef13,_0x4540a3)!==_0x2a87f6)continue;let _0x1b08f2=_0x5eef13-0x1;while(_0x1b08f2>=0x0&&/\s/[_0x1cf92b(0x288)](_0x2e0412[_0x1b08f2])){_0x1b08f2-=0x1;}if(_0x2e0412[_0x1b08f2]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x102d2b,_0x53ecbc,_0x384ce4){let _0xf8f02b=_0x53ecbc+0x1;while(_0xf8f02b<_0x102d2b['length']){if(_0x102d2b[_0xf8f02b]==='\x5c'){_0xf8f02b+=0x2;continue;}if(_0x102d2b[_0xf8f02b]===_0x384ce4)return _0xf8f02b+0x1;_0xf8f02b+=0x1;}return _0xf8f02b;}function resolveEffectiveResultVariable(_0x1f26fb,_0x379185){const _0x283f6c=a299_0xf05f06;if(_0x1f26fb===undefined||_0x1f26fb===null||_0x379185&&_0x1f26fb==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x1f26fb!==_0x283f6c(0x2dd)||!VARIABLE_PATTERN['test'](_0x1f26fb)||RESERVED_RESULT_VARIABLES[_0x283f6c(0x2e6)](_0x1f26fb)||_0x1f26fb[_0x283f6c(0x2f4)]('approval_sys_'))return undefined;return _0x1f26fb;}function a299_0x495f(_0x1ed31c,_0x35b416){_0x1ed31c=_0x1ed31c-0x1c5;const _0x40f3ed=a299_0x40f3();let _0x495f0a=_0x40f3ed[_0x1ed31c];return _0x495f0a;}function registerResultVariableOwner(_0x51367a,_0x547b77,_0x4c5fb6,_0x37729f){const _0xdac1ec=a299_0xf05f06;if(_0x51367a['has'](_0x547b77)){_0x37729f[_0xdac1ec(0x2b2)]({'path':_0xdac1ec(0x286),'message':'Duplicate\x20resultVariable:\x20'+_0x547b77+'.'});return;}_0x51367a[_0xdac1ec(0x328)](_0x547b77,_0x4c5fb6);}function setsEqual(_0x3c5fbb,_0x24c90b){const _0x321fe5=a299_0xf05f06;return _0x3c5fbb[_0x321fe5(0x25e)]===_0x24c90b[_0x321fe5(0x25e)]&&[..._0x3c5fbb][_0x321fe5(0x2c2)](_0x11b1ae=>_0x24c90b[_0x321fe5(0x2e6)](_0x11b1ae));}function isValidUserId(_0x292f52){const _0x23d4a7=a299_0xf05f06;if(typeof _0x292f52===_0x23d4a7(0x2dd))return _0x292f52[_0x23d4a7(0x284)]()[_0x23d4a7(0x2c4)]>0x0;return Number[_0x23d4a7(0x23a)](_0x292f52)&&Number(_0x292f52)>0x0;}function resolveEdgeEndpoint(_0x1e2d7e,_0x2b514c){const _0x575249=a299_0xf05f06;if(typeof _0x1e2d7e==='string'&&_0x1e2d7e[_0x575249(0x284)]())return _0x1e2d7e['trim']();if(typeof _0x2b514c===_0x575249(0x2dd)&&_0x2b514c[_0x575249(0x284)]())return _0x2b514c[_0x575249(0x284)]();return undefined;}function removeEmptyMetadata(_0x5e7d94,_0x3fd1cb,_0x5526eb,_0x561890){const _0x1ada0b=a299_0xf05f06;if(Array[_0x1ada0b(0x213)](_0x5e7d94)){_0x5e7d94[_0x1ada0b(0x309)]((_0x308d3b,_0x5ae966)=>removeEmptyMetadata(_0x308d3b,_0x3fd1cb+'['+_0x5ae966+']',_0x5526eb,_0x561890));return;}if(!isRecord(_0x5e7d94))return;for(const [_0x5c0e6b,_0x1c4988]of Object[_0x1ada0b(0x321)](_0x5e7d94)){const _0x227b71=_0x3fd1cb+'.'+_0x5c0e6b;if(_0x5c0e6b===_0x1ada0b(0x20e)&&isEmptyJsonValue(_0x1c4988)){delete _0x5e7d94[_0x5c0e6b],_0x561890[_0x1ada0b(0x2b2)](_0x227b71),_0x5526eb[_0x1ada0b(0x2b2)]({'code':_0x1ada0b(0x21a),'path':_0x227b71,'message':_0x227b71+_0x1ada0b(0x2d4)});continue;}removeEmptyMetadata(_0x1c4988,_0x227b71,_0x5526eb,_0x561890);}}function isEmptyJsonValue(_0x1a0175){const _0x56873b=a299_0xf05f06;if(_0x1a0175===null||_0x1a0175===undefined)return!![];if(typeof _0x1a0175===_0x56873b(0x2dd))return _0x1a0175[_0x56873b(0x284)]()==='';if(Array[_0x56873b(0x213)](_0x1a0175))return _0x1a0175[_0x56873b(0x2c4)]===0x0;return isRecord(_0x1a0175)&&Object[_0x56873b(0x30d)](_0x1a0175)['length']===0x0;}function isRecord(_0x409ee8){const _0x14f69f=a299_0xf05f06;return typeof _0x409ee8===_0x14f69f(0x206)&&_0x409ee8!==null&&!Array[_0x14f69f(0x213)](_0x409ee8);}function cloneJsonValue(_0x498313){const _0x55a3c7=a299_0xf05f06;return JSON[_0x55a3c7(0x31c)](JSON[_0x55a3c7(0x251)](_0x498313));}export async function readFlowConfigFile(_0x477bf4){const _0x4efc2c=a299_0xf05f06,_0x40f5b3=await readFile(resolve(_0x477bf4),_0x4efc2c(0x327));return JSON[_0x4efc2c(0x31c)](_0x40f5b3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a300_0x109505=a300_0x43cf;(function(_0x3d5c73,_0x218fbf){const _0x5c0c59=a300_0x43cf,_0x108c4d=_0x3d5c73();while(!![]){try{const _0x226277=-parseInt(_0x5c0c59(0x16e))/0x1+parseInt(_0x5c0c59(0x163))/0x2+parseInt(_0x5c0c59(0x188))/0x3*(-parseInt(_0x5c0c59(0x160))/0x4)+-parseInt(_0x5c0c59(0x16c))/0x5+-parseInt(_0x5c0c59(0x17c))/0x6*(-parseInt(_0x5c0c59(0x175))/0x7)+parseInt(_0x5c0c59(0x167))/0x8*(-parseInt(_0x5c0c59(0x172))/0x9)+parseInt(_0x5c0c59(0x181))/0xa;if(_0x226277===_0x218fbf)break;else _0x108c4d['push'](_0x108c4d['shift']());}catch(_0x171589){_0x108c4d['push'](_0x108c4d['shift']());}}}(a300_0x129f,0x90435));import{randomUUID}from'node:crypto';import{mkdir,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{dirname,resolve}from'node:path';import{TextDecoder}from'node:util';import{findProjectRootDirectory}from'../../context.js';import{CliError}from'../../errors.js';export const INSTANT_API_POLICY_RELATIVE_ROOT=a300_0x109505(0x174);export const INSTANT_API_POLICY_FILE_NAME=a300_0x109505(0x155);export const MAX_INSTANT_API_POLICY_BYTES=0x400*0x400;export function instantApiPolicyError(_0x31f4b8,_0x1f410c,_0x426a1f){return new CliError(_0x31f4b8,0x1,_0x1f410c,_0x426a1f);}export function loadInstantApiPolicyLocalConfig(_0xe0ddd3,_0x2f8435){assertSafeAppCode(_0xe0ddd3);const _0x4cbd9d=resolve(_0x2f8435??findProjectRootDirectory()),_0x2b2078=INSTANT_API_POLICY_RELATIVE_ROOT+'/'+_0xe0ddd3+'/'+INSTANT_API_POLICY_FILE_NAME,_0x3ad15a=resolve(_0x4cbd9d,INSTANT_API_POLICY_RELATIVE_ROOT,_0xe0ddd3),_0x391b1e=resolve(_0x3ad15a,INSTANT_API_POLICY_FILE_NAME);return{'projectRoot':_0x4cbd9d,'appCode':_0xe0ddd3,'policyRoot':_0x3ad15a,'policyFilePath':_0x391b1e,'policyRelativePath':_0x2b2078};}function a300_0x43cf(_0x1e3122,_0x189aa8){_0x1e3122=_0x1e3122-0x150;const _0x129fe6=a300_0x129f();let _0x43cfe6=_0x129fe6[_0x1e3122];return _0x43cfe6;}export function createDefaultInstantApiPolicyConfig(_0x41abf3,_0x21d615='allow'){return assertSafeAppCode(_0x41abf3),{'version':'2','appCode':_0x41abf3,'defaults':{'instantApi':_0x21d615},'rules':[]};}function a300_0x129f(){const _0x1dc394=['version\x20is\x20the\x20JSON\x20schema\x20version;\x20published\x20history\x20uses\x20the\x20separate\x20revision\x20field.','Instant\x20API\x20policy\x20file\x20was\x20created\x20concurrently:\x20','defaults','198hHQxci','Policy\x20defaults.instantApi\x20is\x20required.','.rabetbase/instant-api-policy','21wOrQPV','version','appCode\x20cannot\x20be\x20used\x20as\x20the\x20fixed\x20Instant\x20API\x20policy\x20directory\x20name.','Policy\x20rules\x20must\x20be\x20an\x20array\x20or\x20null.','instant_api_policy_version_invalid','.tmp','includes','303522gCnUuw','instant_api_policy_app_code_invalid','policyFilePath','instant_api_policy_rules_invalid','instant_api_policy_file_exists','12882440JSRgDq','object','force','decode','Instant\x20API\x20policy\x20JSON\x20root\x20must\x20be\x20an\x20object.','length','Review\x20local\x20changes,\x20then\x20rerun\x20with\x20--force\x20--yes\x20if\x20replacement\x20is\x20intended.','126ZOfcUj','pid','parse','trim','isArray','instant_api_policy_file_invalid','policyRoot','ENOENT','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20or\x20`rabetbase\x20instant-api-policy\x20pull`\x20first.','instant_api_policy_defaults_invalid','Policy\x20appCode\x20must\x20match\x20the\x20selected\x20application\x20','instant_api_policy_app_code_mismatch','instantApi','utf8','instant_api_policy_json_invalid','policy.json','Cannot\x20read\x20Instant\x20API\x20policy\x20file:\x20','EEXIST','Instant\x20API\x20policy\x20file\x20already\x20exists:\x20','overwritten','size','appCode','instant_api_policy_file_missing','instant_api_policy_file_too_large','Review\x20the\x20file\x20before\x20retrying.','Instant\x20API\x20policy\x20file\x20exceeds\x20the\x201\x20MiB\x20CLI\x20limit.','33584LtReUc','created','code','1955200qsNxqb','Instant\x20API\x20policy\x20file\x20does\x20not\x20exist:\x20','Instant\x20API\x20policy\x20version\x20must\x20be\x20\x221\x22\x20or\x20\x222\x22.','Cannot\x20write\x20Instant\x20API\x20policy\x20file:\x20','63624uzzNyx','instant_api_policy_file_unwritable','unchanged','string','rules','4262350duucOd','Instant\x20API\x20policy\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','446636CiXdxx'];a300_0x129f=function(){return _0x1dc394;};return a300_0x129f();}export async function readInstantApiPolicyConfigFile(_0x3d9d90){const _0x5586b4=a300_0x109505;let _0x1f9ec2;try{_0x1f9ec2=await stat(_0x3d9d90[_0x5586b4(0x17e)]);}catch(_0x3296b8){throw instantApiPolicyError(_0x5586b4(0x15c),_0x5586b4(0x164)+_0x3d9d90[_0x5586b4(0x17e)],_0x5586b4(0x190));}if(!_0x1f9ec2['isFile']())throw instantApiPolicyError(_0x5586b4(0x18d),_0x5586b4(0x16d)+_0x3d9d90[_0x5586b4(0x17e)]);if(_0x1f9ec2[_0x5586b4(0x15a)]>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError('instant_api_policy_file_too_large',_0x5586b4(0x15f));let _0x12cf48;try{_0x12cf48=await readFile(_0x3d9d90[_0x5586b4(0x17e)]);}catch{throw instantApiPolicyError('instant_api_policy_file_unreadable',_0x5586b4(0x156)+_0x3d9d90[_0x5586b4(0x17e)]);}if(_0x12cf48['byteLength']>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError(_0x5586b4(0x15d),_0x5586b4(0x15f));let _0x30bd76;try{_0x30bd76=new TextDecoder('utf-8',{'fatal':!![],'ignoreBOM':!![]})[_0x5586b4(0x184)](_0x12cf48);}catch{throw instantApiPolicyError(_0x5586b4(0x18d),'Instant\x20API\x20policy\x20file\x20is\x20not\x20valid\x20UTF-8:\x20'+_0x3d9d90[_0x5586b4(0x17e)]);}let _0x1fa1fc;try{_0x1fa1fc=JSON[_0x5586b4(0x18a)](_0x30bd76);}catch{throw instantApiPolicyError(_0x5586b4(0x154),'Instant\x20API\x20policy\x20file\x20is\x20not\x20valid\x20JSON:\x20'+_0x3d9d90[_0x5586b4(0x17e)]);}return assertLocalPolicyContract(_0x1fa1fc,_0x3d9d90[_0x5586b4(0x15b)]);}export async function writeInstantApiPolicyConfigFile(_0x5ddbf5,_0x48c693,_0x45b71e={}){const _0x22e732=a300_0x109505,_0x118bac=assertLocalPolicyContract(_0x48c693,_0x5ddbf5[_0x22e732(0x15b)]),_0x3abdd8=JSON['stringify'](_0x118bac,null,0x2)+'\x0a';if(Buffer['byteLength'](_0x3abdd8,_0x22e732(0x153))>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError('instant_api_policy_file_too_large',_0x22e732(0x15f));await mkdir(_0x5ddbf5[_0x22e732(0x18e)],{'recursive':!![]});let _0x1a63d6;try{_0x1a63d6=await readFile(_0x5ddbf5[_0x22e732(0x17e)],_0x22e732(0x153));}catch(_0x3f6800){if(!isMissingFile(_0x3f6800))throw instantApiPolicyError('instant_api_policy_file_unreadable','Cannot\x20inspect\x20Instant\x20API\x20policy\x20file:\x20'+_0x5ddbf5[_0x22e732(0x17e)]);}if(_0x1a63d6===_0x3abdd8)return{'action':_0x22e732(0x169),'filePath':_0x5ddbf5[_0x22e732(0x17e)]};if(_0x1a63d6!==undefined&&!_0x45b71e[_0x22e732(0x183)])throw instantApiPolicyError(_0x22e732(0x180),_0x22e732(0x158)+_0x5ddbf5[_0x22e732(0x17e)],_0x22e732(0x187));if(_0x1a63d6===undefined)try{return await writeFile(_0x5ddbf5[_0x22e732(0x17e)],_0x3abdd8,{'encoding':_0x22e732(0x153),'flag':'wx'}),{'action':_0x22e732(0x161),'filePath':_0x5ddbf5[_0x22e732(0x17e)]};}catch(_0x795f4a){if(!isAlreadyExists(_0x795f4a))throw instantApiPolicyError(_0x22e732(0x168),_0x22e732(0x166)+_0x5ddbf5[_0x22e732(0x17e)]);if(!_0x45b71e['force'])throw instantApiPolicyError(_0x22e732(0x180),_0x22e732(0x170)+_0x5ddbf5[_0x22e732(0x17e)],_0x22e732(0x15e));}const _0x4dc7c0=resolve(dirname(_0x5ddbf5[_0x22e732(0x17e)]),'.'+INSTANT_API_POLICY_FILE_NAME+'.'+process[_0x22e732(0x189)]+'.'+randomUUID()+_0x22e732(0x17a));try{await writeFile(_0x4dc7c0,_0x3abdd8,{'encoding':'utf8','flag':'wx'}),await rename(_0x4dc7c0,_0x5ddbf5[_0x22e732(0x17e)]);}catch{await unlink(_0x4dc7c0)['catch'](()=>undefined);throw instantApiPolicyError(_0x22e732(0x168),'Cannot\x20replace\x20Instant\x20API\x20policy\x20file:\x20'+_0x5ddbf5['policyFilePath']);}return{'action':_0x22e732(0x159),'filePath':_0x5ddbf5[_0x22e732(0x17e)]};}function assertSafeAppCode(_0x593e29){const _0x4e7a89=a300_0x109505,_0x319494=_0x593e29[_0x4e7a89(0x18b)]();if(!_0x319494||_0x319494!==_0x593e29||_0x319494[_0x4e7a89(0x186)]>0x64||_0x319494==='.'||_0x319494==='..'||_0x319494[_0x4e7a89(0x17b)]('/')||_0x319494['includes']('\x5c')||_0x319494['includes']('\x00'))throw instantApiPolicyError(_0x4e7a89(0x17d),_0x4e7a89(0x177));}function assertLocalPolicyContract(_0x1fb7cd,_0x595914){const _0x53eed8=a300_0x109505;if(!isObject(_0x1fb7cd))throw instantApiPolicyError(_0x53eed8(0x154),_0x53eed8(0x185));if(_0x1fb7cd[_0x53eed8(0x176)]!=='1'&&_0x1fb7cd['version']!=='2')throw instantApiPolicyError(_0x53eed8(0x179),_0x53eed8(0x165),_0x53eed8(0x16f));if(_0x1fb7cd[_0x53eed8(0x15b)]!==_0x595914)throw instantApiPolicyError(_0x53eed8(0x151),_0x53eed8(0x150)+_0x595914+'.');if(!isObject(_0x1fb7cd[_0x53eed8(0x171)])||typeof _0x1fb7cd['defaults'][_0x53eed8(0x152)]!==_0x53eed8(0x16a))throw instantApiPolicyError(_0x53eed8(0x191),_0x53eed8(0x173));if(_0x1fb7cd[_0x53eed8(0x16b)]!==undefined&&_0x1fb7cd[_0x53eed8(0x16b)]!==null&&!Array[_0x53eed8(0x18c)](_0x1fb7cd[_0x53eed8(0x16b)]))throw instantApiPolicyError(_0x53eed8(0x17f),_0x53eed8(0x178));return _0x1fb7cd;}function isObject(_0x1fb582){const _0x3ef9c3=a300_0x109505;return _0x1fb582!==null&&typeof _0x1fb582===_0x3ef9c3(0x182)&&!Array['isArray'](_0x1fb582);}function isMissingFile(_0x46dc81){const _0x515e96=a300_0x109505;return Boolean(_0x46dc81&&typeof _0x46dc81===_0x515e96(0x182)&&_0x46dc81[_0x515e96(0x162)]===_0x515e96(0x18f));}function isAlreadyExists(_0x3bab2a){const _0x46ab66=a300_0x109505;return Boolean(_0x3bab2a&&typeof _0x3bab2a==='object'&&_0x3bab2a[_0x46ab66(0x162)]===_0x46ab66(0x157));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a301_0x149c(_0x403171,_0x4db955){_0x403171=_0x403171-0xf2;const _0x13e4ad=a301_0x13e4();let _0x149c04=_0x13e4ad[_0x403171];return _0x149c04;}const a301_0x4dd46a=a301_0x149c;(function(_0x156a8e,_0x462929){const _0x12d6a9=a301_0x149c,_0x3a2ae9=_0x156a8e();while(!![]){try{const _0x2f1586=-parseInt(_0x12d6a9(0xf7))/0x1*(-parseInt(_0x12d6a9(0xfd))/0x2)+-parseInt(_0x12d6a9(0x102))/0x3*(parseInt(_0x12d6a9(0xfb))/0x4)+-parseInt(_0x12d6a9(0x101))/0x5*(-parseInt(_0x12d6a9(0xfe))/0x6)+-parseInt(_0x12d6a9(0xf9))/0x7+parseInt(_0x12d6a9(0xf2))/0x8*(-parseInt(_0x12d6a9(0xfc))/0x9)+-parseInt(_0x12d6a9(0xf6))/0xa*(-parseInt(_0x12d6a9(0xf8))/0xb)+parseInt(_0x12d6a9(0xff))/0xc;if(_0x2f1586===_0x462929)break;else _0x3a2ae9['push'](_0x3a2ae9['shift']());}catch(_0x455695){_0x3a2ae9['push'](_0x3a2ae9['shift']());}}}(a301_0x13e4,0x4c309));const base='/smartapi/instant-api-policy';function a301_0x13e4(){const _0x4b36b2=['9186TTgneW','375216tvgaeO','/revision','1905BtXUQI','3fxPnit','/rollback','224flfhlE','/publish','/revisions','/validate','5240OsiMsr','11083kgujcp','4719ofTapz','593418GTxGyM','freeze','1944604WBPDOL','46539MoMkdy','34usMOVs'];a301_0x13e4=function(){return _0x4b36b2;};return a301_0x13e4();}export const INSTANT_API_POLICY_PATHS=Object[a301_0x4dd46a(0xfa)]({'current':base+'/current','validate':base+a301_0x4dd46a(0xf5),'publish':base+a301_0x4dd46a(0xf3),'revisions':base+a301_0x4dd46a(0xf4),'revision':base+a301_0x4dd46a(0x100),'rollback':base+a301_0x4dd46a(0x103)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a302_0x1657(_0x361ec2,_0x11b266){_0x361ec2=_0x361ec2-0x15a;const _0x4e6419=a302_0x4e64();let _0x1657ce=_0x4e6419[_0x361ec2];return _0x1657ce;}const a302_0x39c7c6=a302_0x1657;(function(_0x150633,_0x20f33b){const _0x1934d6=a302_0x1657,_0xb996a4=_0x150633();while(!![]){try{const _0x45244e=-parseInt(_0x1934d6(0x176))/0x1+parseInt(_0x1934d6(0x15a))/0x2*(-parseInt(_0x1934d6(0x161))/0x3)+-parseInt(_0x1934d6(0x172))/0x4+-parseInt(_0x1934d6(0x173))/0x5+parseInt(_0x1934d6(0x179))/0x6+parseInt(_0x1934d6(0x17b))/0x7+-parseInt(_0x1934d6(0x15f))/0x8*(-parseInt(_0x1934d6(0x178))/0x9);if(_0x45244e===_0x20f33b)break;else _0xb996a4['push'](_0xb996a4['shift']());}catch(_0x2c4060){_0xb996a4['push'](_0xb996a4['shift']());}}}(a302_0x4e64,0xca088));import{createKnowledgeClient,KnowledgeServiceError}from'@lovrabet/sdk';import{AsyncLocalStorage}from'node:async_hooks';import{getKbServiceDomain}from'../constant/domain.js';import{normalizeKbServiceOrigin}from'../core/kb-search-client.js';import{CliError,CliErrors}from'../errors.js';function a302_0x4e64(){const _0x302719=['getStore','pageTooLarge','test','cookie','status','transportFailure','message','timeout','signal','api_error','httpStatus','\x20The\x20entry\x20may\x20already\x20have\x20been\x20saved.\x20Use\x20read-only\x20detail\x20or\x20list\x20reconciliation;\x20do\x20not\x20resubmit\x20automatically.','validation','6137936cnBZiV','1017920YmaIGK','origin','Invalid\x20kbServiceDomain:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','616338twGzEV','Knowledge\x20management\x20request\x20cancelled.','408825fCQBvr','9035256HUDHbB','defineProperty','8150709gFiZiH','run','authRequired','5596letjUr','kind','remoteErrorCode','trim','network','200WZWasg','code','669rrIqEG','Configure\x20kbServiceDomain\x20with\x20a\x20trusted\x20HTTPS\x20origin\x20for\x20knowledge\x20management.','cancelled','API\x20error\x20code:\x20'];a302_0x4e64=function(){return _0x302719;};return a302_0x4e64();}const WRITE_RECONCILIATION=a302_0x39c7c6(0x170),session=new AsyncLocalStorage();export class KbManagementError extends CliError{[a302_0x39c7c6(0x16a)];[a302_0x39c7c6(0x15c)];[a302_0x39c7c6(0x16f)];[a302_0x39c7c6(0x166)];constructor(_0x4fdef6,_0x1f310c=![],_0x43c833,_0x1bb556,_0x1334f5=![]){const _0x1c29b1=a302_0x39c7c6;super(_0x1c29b1(0x16e),0x1,_0x4fdef6,_0x43c833?_0x1c29b1(0x164)+_0x43c833:undefined),this[_0x1c29b1(0x16a)]=_0x1f310c,this[_0x1c29b1(0x15c)]=_0x43c833,this['httpStatus']=_0x1bb556,this[_0x1c29b1(0x166)]=_0x1334f5;if(_0x43c833)Object[_0x1c29b1(0x17a)](this,'data',{'value':{'remoteErrorCode':_0x43c833},'enumerable':![]});}}function resolveOrigin(){const _0xeae02f=a302_0x39c7c6,_0x285827=getKbServiceDomain();if(!_0x285827)throw CliErrors[_0xeae02f(0x171)](_0xeae02f(0x162));try{return normalizeKbServiceOrigin(_0x285827);}catch{throw CliErrors[_0xeae02f(0x171)](_0xeae02f(0x175));}}export function withKbManagementSession(_0x27abd9,_0x26a992){const _0x42e097=a302_0x39c7c6;return session[_0x42e097(0x17c)]({'origin':resolveOrigin(),'signal':_0x27abd9},_0x26a992);}export async function withKbManagementClient(_0x18a456,_0x203bfa,_0x2eecbb={}){const _0x273fb3=a302_0x39c7c6,_0x278896=session[_0x273fb3(0x165)]()?.[_0x273fb3(0x174)]??resolveOrigin();if(!_0x18a456[_0x273fb3(0x15d)]())throw CliErrors[_0x273fb3(0x17d)]();const _0x22c367=_0x2eecbb[_0x273fb3(0x16d)]??session[_0x273fb3(0x165)]()?.['signal'];if(_0x22c367?.['aborted'])throw CliErrors['cancelled'](_0x273fb3(0x177));try{const _0x5be64c=createKnowledgeClient({'kbServiceDomain':_0x278896,'authMode':_0x273fb3(0x168),'cookie':_0x18a456,'invokeSource':'cli:rabetbase'});return await _0x203bfa(_0x5be64c,{'signal':_0x22c367});}catch(_0x4d7a53){if(!(_0x4d7a53 instanceof KnowledgeServiceError))throw _0x4d7a53;if(_0x4d7a53['kind']==='auth')throw CliErrors[_0x273fb3(0x17d)]();if(_0x4d7a53[_0x273fb3(0x15b)]===_0x273fb3(0x171))throw CliErrors[_0x273fb3(0x171)](_0x4d7a53[_0x273fb3(0x16b)]);const _0x23aa1d=_0x4d7a53[_0x273fb3(0x15b)]===_0x273fb3(0x15e)||_0x4d7a53['kind']===_0x273fb3(0x16c)||_0x4d7a53[_0x273fb3(0x15b)]===_0x273fb3(0x163);throw new KbManagementError(_0x4d7a53[_0x273fb3(0x16b)]+(_0x4d7a53['writeUncertain']?WRITE_RECONCILIATION:''),_0x23aa1d,/^\d+$/[_0x273fb3(0x167)](_0x4d7a53['code']??'')?_0x4d7a53[_0x273fb3(0x160)]:undefined,_0x4d7a53[_0x273fb3(0x169)],_0x4d7a53[_0x273fb3(0x166)]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x377638,_0x387fb2){const _0x26354a=a303_0x8ab6,_0x1b6766=_0x377638();while(!![]){try{const _0xc8061e=parseInt(_0x26354a(0x1b0))/0x1*(parseInt(_0x26354a(0x1b8))/0x2)+parseInt(_0x26354a(0x1af))/0x3*(parseInt(_0x26354a(0x1b9))/0x4)+parseInt(_0x26354a(0x1ae))/0x5+-parseInt(_0x26354a(0x1c6))/0x6+parseInt(_0x26354a(0x1b3))/0x7+parseInt(_0x26354a(0x1c8))/0x8+-parseInt(_0x26354a(0x1ad))/0x9*(parseInt(_0x26354a(0x1c9))/0xa);if(_0xc8061e===_0x387fb2)break;else _0x1b6766['push'](_0x1b6766['shift']());}catch(_0x58b06){_0x1b6766['push'](_0x1b6766['shift']());}}}(a303_0x2a42,0x81413));import{createKnowledgeClient,KnowledgeServiceError,normalizeKnowledgeServiceOrigin}from'@lovrabet/sdk';function a303_0x2a42(){const _0x3dddf9=['search','validation','Knowledge\x20search\x20cancelled.','976962YPVnHv','341556rEPbqd','out-of-scope','cookie','KB\x20Service\x20knowledge\x20search\x20request\x20timed\x20out.','KB\x20Service\x20knowledge\x20search\x20request\x20failed.','serviceUrl','data','HTTP\x20','includes','Knowledge\x20search\x20appCode\x20is\x20required.','hits','length','code','1748988giqvhN','signal','7178968aVhJZE','1202860mvdbrH','status','apiError','networkError','\x20(HTTP\x20','company','query','topK','message','kind','KB\x20Service\x20knowledge\x20search\x20returned\x20an\x20invalid\x20response\x20contract.','appCode','AbortError','development','171vxoAnh','134935HodanM','9EFogTJ','2DSqOTW','trim','network','6642104UwSZxW','authRequired'];a303_0x2a42=function(){return _0x3dddf9;};return a303_0x2a42();}import{CliErrors}from'../errors.js';function a303_0x8ab6(_0x5e53f8,_0x19aa3b){_0x5e53f8=_0x5e53f8-0x1a4;const _0x2a429e=a303_0x2a42();let _0x8ab633=_0x2a429e[_0x5e53f8];return _0x8ab633;}export function normalizeKbServiceOrigin(_0x28d88f){const _0x44b974=a303_0x8ab6;try{return normalizeKnowledgeServiceOrigin(_0x28d88f);}catch{throw CliErrors[_0x44b974(0x1b6)]('Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.');}}export async function searchDirectKnowledge(_0x389fe6){const _0x2e66b8=a303_0x8ab6,_0x2a5474=_0x389fe6[_0x2e66b8(0x1aa)][_0x2e66b8(0x1b1)](),_0x52ca95=_0x389fe6[_0x2e66b8(0x1a5)]['trim']();if(!_0x2a5474)throw CliErrors[_0x2e66b8(0x1b6)](_0x2e66b8(0x1c2));if(!_0x52ca95)throw CliErrors[_0x2e66b8(0x1b6)]('Knowledge\x20search\x20query\x20is\x20required.');if(!_0x389fe6[_0x2e66b8(0x1bb)][_0x2e66b8(0x1b1)]())throw CliErrors[_0x2e66b8(0x1b4)]();const _0x11ff7e=normalizeKbServiceOrigin(_0x389fe6[_0x2e66b8(0x1be)]);try{const _0x479c8e=createKnowledgeClient({'kbServiceDomain':_0x11ff7e,'authMode':_0x2e66b8(0x1bb),'cookie':_0x389fe6[_0x2e66b8(0x1bb)],'invokeSource':'cli:rabetbase'}),_0x49191d=await _0x479c8e[_0x2e66b8(0x1b5)]({'appCode':_0x2a5474,'query':_0x52ca95,'scopes':['public',_0x2e66b8(0x1a4)],..._0x389fe6[_0x2e66b8(0x1a6)]!==undefined?{'topK':_0x389fe6[_0x2e66b8(0x1a6)]}:{}},{'signal':_0x389fe6[_0x2e66b8(0x1c7)]});return{..._0x49191d,'hits':_0x49191d['hits'],'schemaVersion':0x2,'profile':_0x2e66b8(0x1ac),'total':_0x49191d[_0x2e66b8(0x1c3)][_0x2e66b8(0x1c4)]};}catch(_0x1d0bf9){if(!(_0x1d0bf9 instanceof KnowledgeServiceError))throw _0x1d0bf9;if(_0x1d0bf9[_0x2e66b8(0x1a8)]==='auth')throw CliErrors[_0x2e66b8(0x1b4)]();if(_0x1d0bf9[_0x2e66b8(0x1a8)]==='validation')throw CliErrors[_0x2e66b8(0x1b6)](_0x1d0bf9[_0x2e66b8(0x1a7)]);if(_0x1d0bf9[_0x2e66b8(0x1a8)]==='cancelled')throw new DOMException(_0x2e66b8(0x1b7),_0x2e66b8(0x1ab));if(_0x1d0bf9[_0x2e66b8(0x1a8)]===_0x2e66b8(0x1b2)||_0x1d0bf9[_0x2e66b8(0x1a8)]==='timeout')throw CliErrors[_0x2e66b8(0x1cc)](_0x1d0bf9[_0x2e66b8(0x1a8)]==='timeout'?_0x2e66b8(0x1bc):_0x2e66b8(0x1bd));const _0x3ebc96=_0x1d0bf9[_0x2e66b8(0x1a8)]==='contract'&&_0x1d0bf9[_0x2e66b8(0x1a7)][_0x2e66b8(0x1c1)](_0x2e66b8(0x1ba))?_0x2e66b8(0x1a9):_0x1d0bf9[_0x2e66b8(0x1a7)],_0x50dafe=CliErrors[_0x2e66b8(0x1cb)](_0x1d0bf9[_0x2e66b8(0x1ca)]!==undefined&&_0x1d0bf9[_0x2e66b8(0x1ca)]!==0xc8&&!_0x3ebc96[_0x2e66b8(0x1c1)](_0x2e66b8(0x1c0)+_0x1d0bf9[_0x2e66b8(0x1ca)])?_0x3ebc96+_0x2e66b8(0x1cd)+_0x1d0bf9[_0x2e66b8(0x1ca)]+')':_0x3ebc96);if(/^\d+$/['test'](_0x1d0bf9[_0x2e66b8(0x1c5)]??''))Object['defineProperty'](_0x50dafe,_0x2e66b8(0x1bf),{'value':{'remoteErrorCode':_0x1d0bf9['code']},'enumerable':![]});throw _0x50dafe;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a304_0xa4577=a304_0x1c36;(function(_0x41fb02,_0x25eba9){const _0x2e938d=a304_0x1c36,_0x2012b9=_0x41fb02();while(!![]){try{const _0x30b705=-parseInt(_0x2e938d(0x1c9))/0x1+parseInt(_0x2e938d(0x1c6))/0x2*(parseInt(_0x2e938d(0x1d0))/0x3)+parseInt(_0x2e938d(0x1c0))/0x4*(-parseInt(_0x2e938d(0x1d6))/0x5)+-parseInt(_0x2e938d(0x1c1))/0x6+-parseInt(_0x2e938d(0x1ce))/0x7*(-parseInt(_0x2e938d(0x1cd))/0x8)+-parseInt(_0x2e938d(0x1d7))/0x9*(-parseInt(_0x2e938d(0x1c7))/0xa)+-parseInt(_0x2e938d(0x1c4))/0xb;if(_0x30b705===_0x25eba9)break;else _0x2012b9['push'](_0x2012b9['shift']());}catch(_0x952dc){_0x2012b9['push'](_0x2012b9['shift']());}}}(a304_0x4568,0x50994));import{constants}from'node:fs';import{access,lstat,mkdir,readFile,readdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';function a304_0x4568(){const _0x39af9a=['page','545pIpRMj','5144409tVIDue','Page\x20directory\x20is\x20not\x20a\x20directory:\x20','page.lock.json','cwd','21684MAiqwn','599652vqrXjG','name','Unsupported\x20file\x20in\x20page\x20directory:\x20','3309713FjxgVB','validation','4478JMYPgd','10FXNFvs','utf8','328482QhVsJw','.rabetbase','trim','Page\x20directory\x20not\x20found:\x20','32Khjggh','1100204RTpKXS','.json','603XKMqeW','appPagesDir','split','join','isDirectory'];a304_0x4568=function(){return _0x39af9a;};return a304_0x4568();}import{CliErrors}from'../../errors.js';export function loadPageProjectConfig(_0x237c37,_0x4ba4e4=process[a304_0xa4577(0x1da)]()){const _0x1dd130=a304_0xa4577,_0x5bd52b=resolve(_0x4ba4e4),_0x14372f=join(_0x5bd52b,'.rabetbase',_0x1dd130(0x1d5));return{'projectRoot':_0x5bd52b,'pagesBaseDir':_0x14372f,'appPagesDir':join(_0x14372f,_0x237c37),'lockFilePath':join(_0x5bd52b,_0x1dd130(0x1ca),_0x1dd130(0x1d9))};}export function buildPageFileName(_0x1cc1c4,_0x2dc534){const _0x2b01f3=a304_0xa4577;return _0x1cc1c4+'-'+_0x2dc534['toUpperCase']()+_0x2b01f3(0x1cf);}export function resolvePageFilePath(_0x48376c,_0x4338bd,_0x261696){const _0x4ddbee=a304_0xa4577;return join(_0x48376c[_0x4ddbee(0x1d1)],buildPageFileName(_0x4338bd,_0x261696));}export async function ensureParentDirectory(_0x11ea39){await mkdir(dirname(_0x11ea39),{'recursive':!![]});}function a304_0x1c36(_0x5dd2be,_0x4a440d){_0x5dd2be=_0x5dd2be-0x1c0;const _0x456899=a304_0x4568();let _0x1c3685=_0x456899[_0x5dd2be];return _0x1c3685;}export async function fileExists(_0x77072b){try{return await access(_0x77072b,constants['F_OK']),!![];}catch{return![];}}export async function readCustomPageDirectory(_0x7a79cf){const _0x2ab74e=a304_0xa4577,_0x4b7012=_0x7a79cf[_0x2ab74e(0x1cb)]();if(!_0x4b7012)throw CliErrors['flagMissing']('page-dir');const _0x4bf6c6=resolve(_0x4b7012);let _0x51bb18;try{_0x51bb18=await lstat(_0x4bf6c6);}catch{throw CliErrors[_0x2ab74e(0x1c5)](_0x2ab74e(0x1cc)+_0x4b7012);}if(!_0x51bb18[_0x2ab74e(0x1d4)]())throw CliErrors[_0x2ab74e(0x1c5)](_0x2ab74e(0x1d8)+_0x4b7012);const _0x39fa62={};return await readDirectory(_0x4bf6c6,_0x4bf6c6,_0x39fa62),_0x39fa62;}async function readDirectory(_0x5135f2,_0x306461,_0x340915){const _0x32de17=a304_0xa4577,_0x53e820=await readdir(_0x306461,{'withFileTypes':!![]});for(const _0x2eb955 of _0x53e820['sort']((_0x9a8eb2,_0x37815f)=>_0x9a8eb2['name']['localeCompare'](_0x37815f[_0x32de17(0x1c2)]))){const _0x42495b=join(_0x306461,_0x2eb955['name']);if(_0x2eb955[_0x32de17(0x1d4)]()){await readDirectory(_0x5135f2,_0x42495b,_0x340915);continue;}if(!_0x2eb955['isFile']())throw CliErrors[_0x32de17(0x1c5)](_0x32de17(0x1c3)+_0x42495b);_0x340915[relative(_0x5135f2,_0x42495b)[_0x32de17(0x1d2)](sep)[_0x32de17(0x1d3)]('/')]=await readFile(_0x42495b,_0x32de17(0x1c8));}}
|