@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x9131fc,_0x5a12dd){const _0x307f54=a281_0x1a59,_0x397708=_0x9131fc();while(!![]){try{const _0x17ba3d=parseInt(_0x307f54(0x1f3))/0x1+parseInt(_0x307f54(0x203))/0x2+parseInt(_0x307f54(0x1ed))/0x3+parseInt(_0x307f54(0x1fa))/0x4*(-parseInt(_0x307f54(0x1f9))/0x5)+parseInt(_0x307f54(0x20d))/0x6*(parseInt(_0x307f54(0x1f6))/0x7)+-parseInt(_0x307f54(0x211))/0x8+parseInt(_0x307f54(0x1fd))/0x9*(-parseInt(_0x307f54(0x209))/0xa);if(_0x17ba3d===_0x5a12dd)break;else _0x397708['push'](_0x397708['shift']());}catch(_0x36ccf4){_0x397708['push'](_0x397708['shift']());}}}(a281_0x4877,0x37458));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x2b23f3){const _0xc85569=a281_0x1a59,_0x4fc523=[];for(const [_0x38df81,_0x370bb4]of Object['entries'](_0x2b23f3[_0xc85569(0x202)])){const [_0x440529,_0x3e2e98]=_0x38df81[_0xc85569(0x208)]('/');if(_0x440529!=='HOOK'||!_0x3e2e98||!_0x370bb4[_0xc85569(0x1f2)])continue;_0x4fc523[_0xc85569(0x20c)]({'alias':_0x3e2e98,'datasetCode':_0x370bb4['datasetCode']});}return _0x4fc523;}export function uniqueTrackedHookDirectoryByDataset(_0xbbe718){const _0x13f720=a281_0x1a59,_0x27c67b=new Map();for(const _0x26824e of trackedHookDirectoryMappings(_0xbbe718)){const _0x429403=directoryIdentity(_0x26824e[_0x13f720(0x1f2)]),_0x2769cb=_0x27c67b[_0x13f720(0x200)](_0x429403)??new Map();_0x2769cb[_0x13f720(0x1f4)](directoryIdentity(_0x26824e[_0x13f720(0x216)]),_0x26824e[_0x13f720(0x216)]),_0x27c67b[_0x13f720(0x1f4)](_0x429403,_0x2769cb);}const _0x377551=new Map();for(const [_0x5f2559,_0x326963]of _0x27c67b){if(_0x326963[_0x13f720(0x215)]>0x1)throw hookDirectoryError(_0x13f720(0x217),'Dataset\x20\x22'+_0x5f2559+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x326963[_0x13f720(0x1e7)]()]['join'](',\x20')+'.',{'datasetCode':_0x5f2559,'directories':[..._0x326963[_0x13f720(0x1e7)]()]});_0x377551[_0x13f720(0x1f4)](_0x5f2559,[..._0x326963['values']()][0x0]);}return _0x377551;}export function assertUnambiguousHookDirectoryMappings(_0x49dc7f){const _0x4bd9d4=a281_0x1a59,_0x2922df=new Map();for(const {alias:_0x108a78,datasetCode:_0x437d43}of _0x49dc7f){const _0x7612f4=directoryIdentity(_0x108a78),_0xa42f1f=_0x2922df[_0x4bd9d4(0x200)](_0x7612f4)??new Set();_0xa42f1f[_0x4bd9d4(0x20f)](_0x437d43),_0x2922df[_0x4bd9d4(0x1f4)](_0x7612f4,_0xa42f1f);}for(const [_0x2ec0d9,_0x164c73]of _0x2922df){if(_0x164c73[_0x4bd9d4(0x215)]>0x1)throw hookDirectoryError(_0x4bd9d4(0x206),_0x4bd9d4(0x20e)+_0x2ec0d9+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x2ec0d9,'datasetCodes':[..._0x164c73]});}}export function assertUnambiguousHookAliases(_0x496a93){const _0x33c35e=a281_0x1a59,_0x549869=[..._0x496a93],_0x22376b=new Map(),_0x2644d2=new Map();for(const {alias:_0x21bbda,datasetCode:_0x2eefb7}of _0x549869){const _0x680147=directoryIdentity(_0x21bbda),_0x27963e=directoryIdentity(_0x2eefb7),_0x7e9bc4=_0x22376b[_0x33c35e(0x200)](_0x680147)??new Set();_0x7e9bc4[_0x33c35e(0x20f)](_0x2eefb7),_0x22376b[_0x33c35e(0x1f4)](_0x680147,_0x7e9bc4);const _0x4b9904=_0x2644d2[_0x33c35e(0x200)](_0x27963e)??new Set();_0x4b9904[_0x33c35e(0x20f)](_0x21bbda),_0x2644d2[_0x33c35e(0x1f4)](_0x27963e,_0x4b9904);}for(const [_0x59d4e4,_0x592753]of _0x22376b){if(_0x592753['size']>0x1)throw hookDirectoryError(_0x33c35e(0x205),_0x33c35e(0x213)+_0x59d4e4+_0x33c35e(0x1ef),{'alias':_0x59d4e4,'datasetCodes':[..._0x592753]});}for(const [_0x5c100c,_0x9492f6]of _0x2644d2){if(_0x9492f6[_0x33c35e(0x215)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x33c35e(0x1e8)+_0x5c100c+_0x33c35e(0x207),{'datasetCode':_0x5c100c,'aliases':[..._0x9492f6]});}}export function buildHookDirectoryIndexes(_0x1786d2,_0x44f6a3=[]){const _0x18a434=a281_0x1a59,_0x4bd7ea=[..._0x44f6a3];assertUnambiguousHookDirectoryMappings(_0x4bd7ea[_0x18a434(0x20b)](([_0x262f17,_0x15744b])=>({'alias':_0x262f17,'datasetCode':_0x15744b})));const _0x575aa8=new Map(),_0x41ed42=new Map();for(const _0x437168 of _0x1786d2){appendUnique(_0x575aa8,directoryIdentity(_0x437168[_0x18a434(0x1f7)]),_0x437168,_0x2505c5=>_0x2505c5['code']);}for(const [_0x47cd6f,_0xf72ed6]of _0x4bd7ea){appendUnique(_0x41ed42,directoryIdentity(_0x47cd6f),_0xf72ed6,_0x58bcf8=>_0x58bcf8);}return{'datasetCodeToDatasets':_0x575aa8,'aliasToDatasetCodes':_0x41ed42};}export function resolvePushHookDirectory(_0xdc45ca,_0x3f5c6c,_0x1efa61){const _0x268a46=a281_0x1a59,_0x1ee120=directoryIdentity(_0xdc45ca),_0x5ea025=_0x1efa61[_0x268a46(0x1e3)][_0x268a46(0x200)](_0x1ee120)??[],_0x5220ef=_0x1efa61[_0x268a46(0x1ff)][_0x268a46(0x200)](_0x1ee120)??[],_0x2044ce=new Set([..._0x5ea025[_0x268a46(0x20b)](_0x5aa95f=>_0x5aa95f[_0x268a46(0x1f7)]),..._0x5220ef]);if(_0x2044ce[_0x268a46(0x215)]>0x1)throw hookDirectoryError(_0x268a46(0x206),_0x268a46(0x20e)+_0xdc45ca+_0x268a46(0x1e4),{'directoryName':_0xdc45ca,'datasetCodes':[..._0x2044ce]});const _0x3b157c=[..._0x2044ce][0x0];if(_0x3b157c&&_0x3f5c6c?.[_0x268a46(0x1f2)]&&_0x3b157c!==_0x3f5c6c[_0x268a46(0x1f2)])throw hookDirectoryError(_0x268a46(0x1fb),'HOOK\x20directory\x20\x22'+_0xdc45ca+_0x268a46(0x204)+_0x3f5c6c[_0x268a46(0x1f2)]+_0x268a46(0x1f5)+_0x3b157c+'\x22.',{'directoryName':_0xdc45ca,'datasetCode':_0x3b157c,'lockedDatasetCode':_0x3f5c6c[_0x268a46(0x1f2)]});const _0x4bb60b=_0x3b157c?findDatasetByCode(_0x1efa61,_0x3b157c):undefined,_0x17bed8=!!_0x3b157c&&_0x5220ef[_0x268a46(0x1e6)](_0x3b157c);if(_0x4bb60b)return{'dataset':_0x4bb60b,'datasetCode':_0x4bb60b[_0x268a46(0x1f7)],..._0x17bed8?{'alias':_0xdc45ca}:{},'directoryProtocol':_0x17bed8?'alias':_0x268a46(0x1f2),'warnings':[]};const _0x58451e=_0x3f5c6c?.['datasetCode'];if(_0x58451e){const _0x540c36=findDatasetByCode(_0x1efa61,_0x58451e);if(_0x540c36)return{'dataset':_0x540c36,'datasetCode':_0x540c36[_0x268a46(0x1f7)],..._0x3f5c6c[_0x268a46(0x216)]?{'alias':_0x3f5c6c[_0x268a46(0x216)]}:{},'directoryProtocol':_0x3f5c6c['alias']?'alias':_0x268a46(0x1f2),'warnings':[]};}if(_0x3b157c||_0x58451e){const _0x3fc222=_0x3b157c??_0x58451e;throw hookDirectoryError(_0x268a46(0x210),_0x268a46(0x20e)+_0xdc45ca+_0x268a46(0x201),{'directoryName':_0xdc45ca,'datasetCode':_0x3fc222});}throw hookDirectoryError(_0x268a46(0x1e5),_0x268a46(0x1fc)+_0xdc45ca+'\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.',{'directoryName':_0xdc45ca});}function a281_0x4877(){const _0x56c83b=['lockKey','map','push','6LyPYYQ','HOOK\x20directory\x20\x22','add','HOOK_DATASET_NOT_FOUND','957880BNtoJs','some','SDK\x20alias\x20\x22','HOOK','size','alias','HOOK_DUPLICATE_DIRECTORIES','message','type','datasetCodeToDatasets','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','HOOK_DIRECTORY_UNRESOLVED','includes','values','Dataset\x20\x22','Incomplete\x20HOOK\x20path:\x20','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','toLowerCase','571494VVCUBd','NFC','\x22\x20resolves\x20to\x20multiple\x20Datasets.','join','details','datasetCode','310214KMHcDb','set','\x22\x20to\x20\x22','132993vIScEC','code','normalize','2555YYdYBX','668NMdmBT','HOOK_MAPPING_DRIFT','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','126wEZUyY','length','aliasToDatasetCodes','get','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','functions','763662QhHkGa','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_AMBIGUOUS','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','split','335770Qwaiti'];a281_0x4877=function(){return _0x56c83b;};return a281_0x4877();}export function preflightPushHookDirectories(_0x46bb77,_0x48790b,_0x335728,_0x5eda79){const _0x30c6cd=a281_0x1a59,_0x21c263=new Map(),_0x10357e=new Map();for(const _0x3522d4 of _0x46bb77){if(_0x3522d4[_0x30c6cd(0x1e2)]!==_0x30c6cd(0x214))continue;const _0x263063=_0x3522d4['alias'];if(!_0x263063)throw hookDirectoryError(_0x30c6cd(0x1e5),_0x30c6cd(0x1e9)+_0x3522d4['lockKey'],{'lockKey':_0x3522d4[_0x30c6cd(0x20a)]});let _0x25dae4;try{_0x25dae4=resolvePushHookDirectory(_0x263063,_0x48790b['functions'][_0x3522d4['lockKey']],_0x335728);}catch(_0x460aa0){if(_0x5eda79&&_0x460aa0 instanceof CliError&&[_0x30c6cd(0x210),_0x30c6cd(0x1e5)]['includes'](_0x460aa0[_0x30c6cd(0x1f7)])){_0x5eda79[_0x30c6cd(0x1f4)](_0x3522d4['lockKey'],_0x460aa0[_0x30c6cd(0x218)]);continue;}throw _0x460aa0;}_0x21c263[_0x30c6cd(0x1f4)](_0x3522d4[_0x30c6cd(0x20a)],_0x25dae4);const _0x5c7731=_0x10357e[_0x30c6cd(0x200)](_0x25dae4[_0x30c6cd(0x1f2)])??new Set();_0x5c7731['add'](_0x263063),_0x10357e[_0x30c6cd(0x1f4)](_0x25dae4[_0x30c6cd(0x1f2)],_0x5c7731);}for(const [_0x379a52,_0xfc945d]of _0x10357e){if(_0xfc945d[_0x30c6cd(0x215)]>0x1)throw hookDirectoryError(_0x30c6cd(0x217),_0x30c6cd(0x1e8)+_0x379a52+_0x30c6cd(0x1ea)+[..._0xfc945d][_0x30c6cd(0x1f0)](',\x20')+'.',{'datasetCode':_0x379a52,'directories':[..._0xfc945d]});}return _0x21c263;}export function hookDirectoryError(_0x3dcbd8,_0x31d22f,_0x2d8e84){const _0x21f94f=a281_0x1a59,_0x3f8c71=new CliError(_0x3dcbd8,0x2,_0x3dcbd8+':\x20'+_0x31d22f);return _0x3f8c71[_0x21f94f(0x1f1)]=_0x2d8e84,_0x3f8c71;}function a281_0x1a59(_0x1528f6,_0x429e55){_0x1528f6=_0x1528f6-0x1e2;const _0x4877e2=a281_0x4877();let _0x1a599d=_0x4877e2[_0x1528f6];return _0x1a599d;}function findDatasetByCode(_0x46d6e2,_0x403d3e){const _0x2dcfb9=a281_0x1a59,_0x44ea96=_0x46d6e2[_0x2dcfb9(0x1e3)][_0x2dcfb9(0x200)](directoryIdentity(_0x403d3e))??[];if(_0x44ea96[_0x2dcfb9(0x1fe)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x403d3e+_0x2dcfb9(0x1eb),{'datasetCode':_0x403d3e,'candidates':_0x44ea96[_0x2dcfb9(0x20b)](datasetFact)});return _0x44ea96[0x0];}function directoryIdentity(_0x3be7d0){const _0x1ede5e=a281_0x1a59;return _0x3be7d0[_0x1ede5e(0x1f8)](_0x1ede5e(0x1ee))[_0x1ede5e(0x1ec)]();}function appendUnique(_0x28c504,_0x5affe7,_0x4f6047,_0x44baf0){const _0x457e74=a281_0x1a59,_0x58254d=_0x28c504[_0x457e74(0x200)](_0x5affe7)??[];!_0x58254d[_0x457e74(0x212)](_0x17d659=>_0x44baf0(_0x17d659)===_0x44baf0(_0x4f6047))&&_0x58254d[_0x457e74(0x20c)](_0x4f6047),_0x28c504[_0x457e74(0x1f4)](_0x5affe7,_0x58254d);}function datasetFact(_0x33040a){const _0x3fc4de=a281_0x1a59;return{'id':_0x33040a['id'],'name':_0x33040a['name'],'datasetCode':_0x33040a[_0x3fc4de(0x1f7)]};}
1
+ (function(_0x192990,_0xb5f3f){const _0x4678c6=a281_0x1dac,_0x40dfa5=_0x192990();while(!![]){try{const _0x263b23=parseInt(_0x4678c6(0xae))/0x1*(-parseInt(_0x4678c6(0x9a))/0x2)+parseInt(_0x4678c6(0x8c))/0x3*(-parseInt(_0x4678c6(0xbb))/0x4)+parseInt(_0x4678c6(0xb7))/0x5*(-parseInt(_0x4678c6(0xa7))/0x6)+parseInt(_0x4678c6(0xbd))/0x7*(parseInt(_0x4678c6(0x9d))/0x8)+parseInt(_0x4678c6(0xac))/0x9*(parseInt(_0x4678c6(0x90))/0xa)+-parseInt(_0x4678c6(0x97))/0xb+parseInt(_0x4678c6(0xb5))/0xc;if(_0x263b23===_0xb5f3f)break;else _0x40dfa5['push'](_0x40dfa5['shift']());}catch(_0x5e00de){_0x40dfa5['push'](_0x40dfa5['shift']());}}}(a281_0x3c50,0xa4a83));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x43955d){const _0x3181e0=a281_0x1dac,_0x2bea21=[];for(const [_0x5e28ab,_0x3d5fd9]of Object[_0x3181e0(0xbc)](_0x43955d[_0x3181e0(0x9c)])){const [_0xd5b1e3,_0x160064]=_0x5e28ab['split']('/');if(_0xd5b1e3!=='HOOK'||!_0x160064||!_0x3d5fd9[_0x3181e0(0x93)])continue;_0x2bea21[_0x3181e0(0x8f)]({'alias':_0x160064,'datasetCode':_0x3d5fd9[_0x3181e0(0x93)]});}return _0x2bea21;}export function uniqueTrackedHookDirectoryByDataset(_0x291cc0){const _0x3a3670=a281_0x1dac,_0x1f7f16=new Map();for(const _0x3644dc of trackedHookDirectoryMappings(_0x291cc0)){const _0x102994=directoryIdentity(_0x3644dc['datasetCode']),_0x14612e=_0x1f7f16['get'](_0x102994)??new Map();_0x14612e['set'](directoryIdentity(_0x3644dc[_0x3a3670(0x9b)]),_0x3644dc['alias']),_0x1f7f16[_0x3a3670(0xaf)](_0x102994,_0x14612e);}const _0x182fe9=new Map();for(const [_0x214318,_0x6203f9]of _0x1f7f16){if(_0x6203f9[_0x3a3670(0x95)]>0x1)throw hookDirectoryError(_0x3a3670(0xb9),_0x3a3670(0xbf)+_0x214318+_0x3a3670(0xa8)+[..._0x6203f9['values']()][_0x3a3670(0x92)](',\x20')+'.',{'datasetCode':_0x214318,'directories':[..._0x6203f9[_0x3a3670(0x9f)]()]});_0x182fe9[_0x3a3670(0xaf)](_0x214318,[..._0x6203f9['values']()][0x0]);}return _0x182fe9;}export function assertUnambiguousHookDirectoryMappings(_0x4c9564){const _0x2904d5=a281_0x1dac,_0x3de557=new Map();for(const {alias:_0x1a4ef6,datasetCode:_0x46562d}of _0x4c9564){const _0x3621a1=directoryIdentity(_0x1a4ef6),_0x47e715=_0x3de557[_0x2904d5(0xba)](_0x3621a1)??new Set();_0x47e715['add'](_0x46562d),_0x3de557[_0x2904d5(0xaf)](_0x3621a1,_0x47e715);}for(const [_0x245cd8,_0x3a3fb8]of _0x3de557){if(_0x3a3fb8['size']>0x1)throw hookDirectoryError(_0x2904d5(0x94),'HOOK\x20directory\x20\x22'+_0x245cd8+_0x2904d5(0x8e),{'directoryName':_0x245cd8,'datasetCodes':[..._0x3a3fb8]});}}export function assertUnambiguousHookAliases(_0x13dbec){const _0x360e6d=a281_0x1dac,_0x50f4c1=[..._0x13dbec],_0x25baba=new Map(),_0x108eba=new Map();for(const {alias:_0x4e33c7,datasetCode:_0x59a92b}of _0x50f4c1){const _0x5810da=directoryIdentity(_0x4e33c7),_0x80904=directoryIdentity(_0x59a92b),_0x462486=_0x25baba['get'](_0x5810da)??new Set();_0x462486[_0x360e6d(0x91)](_0x59a92b),_0x25baba[_0x360e6d(0xaf)](_0x5810da,_0x462486);const _0x2d0977=_0x108eba['get'](_0x80904)??new Set();_0x2d0977[_0x360e6d(0x91)](_0x4e33c7),_0x108eba[_0x360e6d(0xaf)](_0x80904,_0x2d0977);}for(const [_0xcd3cf9,_0x14a014]of _0x25baba){if(_0x14a014[_0x360e6d(0x95)]>0x1)throw hookDirectoryError(_0x360e6d(0x9e),_0x360e6d(0xb0)+_0xcd3cf9+_0x360e6d(0x8e),{'alias':_0xcd3cf9,'datasetCodes':[..._0x14a014]});}for(const [_0x4b9085,_0x186048]of _0x108eba){if(_0x186048[_0x360e6d(0x95)]>0x1)throw hookDirectoryError(_0x360e6d(0x9e),_0x360e6d(0xbf)+_0x4b9085+_0x360e6d(0xb6),{'datasetCode':_0x4b9085,'aliases':[..._0x186048]});}}function a281_0x3c50(){const _0x70eff3=['\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','HOOK_DIRECTORY_UNRESOLVED','some','HOOK','9XoJioF','name','9CaBlhe','set','SDK\x20alias\x20\x22','aliasToDatasetCodes','details','HOOK\x20directory\x20\x22','normalize','19739184rnYQMo','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','325sHcqYQ','HOOK_DATASET_NOT_FOUND','HOOK_DUPLICATE_DIRECTORIES','get','4FBVgvT','entries','1489537zYOyNu','code','Dataset\x20\x22','message','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','161898IuptbO','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','\x22\x20resolves\x20to\x20multiple\x20Datasets.','push','10725220xBgwuZ','add','join','datasetCode','HOOK_DIRECTORY_AMBIGUOUS','size','datasetCodeToDatasets','10145993UlqXqm','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','map','85588oHvpTY','alias','functions','8QvsHdj','HOOK_ALIAS_AMBIGUOUS','values','NFC','\x22\x20to\x20\x22','Incomplete\x20HOOK\x20path:\x20','type','lockKey','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','includes','82554jVtGAR'];a281_0x3c50=function(){return _0x70eff3;};return a281_0x3c50();}function a281_0x1dac(_0x177cdf,_0x17d193){_0x177cdf=_0x177cdf-0x8a;const _0x3c50b8=a281_0x3c50();let _0x1dac8e=_0x3c50b8[_0x177cdf];return _0x1dac8e;}export function buildHookDirectoryIndexes(_0x10c6c3,_0x54e834=[]){const _0x3fedb6=a281_0x1dac,_0x1e1fab=[..._0x54e834];assertUnambiguousHookDirectoryMappings(_0x1e1fab['map'](([_0x10fab1,_0x5db535])=>({'alias':_0x10fab1,'datasetCode':_0x5db535})));const _0x2f2293=new Map(),_0x25b832=new Map();for(const _0x174dc8 of _0x10c6c3){appendUnique(_0x2f2293,directoryIdentity(_0x174dc8['code']),_0x174dc8,_0x3ef579=>_0x3ef579[_0x3fedb6(0xbe)]);}for(const [_0xb46a03,_0x24d105]of _0x1e1fab){appendUnique(_0x25b832,directoryIdentity(_0xb46a03),_0x24d105,_0xa4027e=>_0xa4027e);}return{'datasetCodeToDatasets':_0x2f2293,'aliasToDatasetCodes':_0x25b832};}export function resolvePushHookDirectory(_0x4717e0,_0x5463b0,_0x2b5bc1){const _0x150826=a281_0x1dac,_0x579ec5=directoryIdentity(_0x4717e0),_0x596e3d=_0x2b5bc1[_0x150826(0x96)]['get'](_0x579ec5)??[],_0x578bd9=_0x2b5bc1[_0x150826(0xb1)][_0x150826(0xba)](_0x579ec5)??[],_0x92c1ae=new Set([..._0x596e3d[_0x150826(0x99)](_0x319381=>_0x319381[_0x150826(0xbe)]),..._0x578bd9]);if(_0x92c1ae['size']>0x1)throw hookDirectoryError(_0x150826(0x94),'HOOK\x20directory\x20\x22'+_0x4717e0+_0x150826(0xa5),{'directoryName':_0x4717e0,'datasetCodes':[..._0x92c1ae]});const _0x1e4739=[..._0x92c1ae][0x0];if(_0x1e4739&&_0x5463b0?.[_0x150826(0x93)]&&_0x1e4739!==_0x5463b0[_0x150826(0x93)])throw hookDirectoryError('HOOK_MAPPING_DRIFT',_0x150826(0xb3)+_0x4717e0+_0x150826(0x8b)+_0x5463b0[_0x150826(0x93)]+_0x150826(0xa1)+_0x1e4739+'\x22.',{'directoryName':_0x4717e0,'datasetCode':_0x1e4739,'lockedDatasetCode':_0x5463b0['datasetCode']});const _0x36cfea=_0x1e4739?findDatasetByCode(_0x2b5bc1,_0x1e4739):undefined,_0x4e4f3f=!!_0x1e4739&&_0x578bd9[_0x150826(0xa6)](_0x1e4739);if(_0x36cfea)return{'dataset':_0x36cfea,'datasetCode':_0x36cfea[_0x150826(0xbe)],..._0x4e4f3f?{'alias':_0x4717e0}:{},'directoryProtocol':_0x4e4f3f?'alias':'datasetCode','warnings':[]};const _0x16d1bc=_0x5463b0?.[_0x150826(0x93)];if(_0x16d1bc){const _0x1ac5f8=findDatasetByCode(_0x2b5bc1,_0x16d1bc);if(_0x1ac5f8)return{'dataset':_0x1ac5f8,'datasetCode':_0x1ac5f8[_0x150826(0xbe)],..._0x5463b0[_0x150826(0x9b)]?{'alias':_0x5463b0[_0x150826(0x9b)]}:{},'directoryProtocol':_0x5463b0[_0x150826(0x9b)]?_0x150826(0x9b):'datasetCode','warnings':[]};}if(_0x1e4739||_0x16d1bc){const _0x6cd8de=_0x1e4739??_0x16d1bc;throw hookDirectoryError(_0x150826(0xb8),'HOOK\x20directory\x20\x22'+_0x4717e0+'\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.',{'directoryName':_0x4717e0,'datasetCode':_0x6cd8de});}throw hookDirectoryError(_0x150826(0xa9),_0x150826(0x98)+_0x4717e0+_0x150826(0x8d),{'directoryName':_0x4717e0});}export function preflightPushHookDirectories(_0x51b564,_0xc37372,_0x489c9f,_0x5f530f){const _0x122093=a281_0x1dac,_0x1e561e=new Map(),_0x43fe64=new Map();for(const _0x50836f of _0x51b564){if(_0x50836f[_0x122093(0xa3)]!==_0x122093(0xab))continue;const _0x543f26=_0x50836f[_0x122093(0x9b)];if(!_0x543f26)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x122093(0xa2)+_0x50836f[_0x122093(0xa4)],{'lockKey':_0x50836f['lockKey']});let _0x25406a;try{_0x25406a=resolvePushHookDirectory(_0x543f26,_0xc37372[_0x122093(0x9c)][_0x50836f[_0x122093(0xa4)]],_0x489c9f);}catch(_0x2342b7){if(_0x5f530f&&_0x2342b7 instanceof CliError&&['HOOK_DATASET_NOT_FOUND','HOOK_DIRECTORY_UNRESOLVED'][_0x122093(0xa6)](_0x2342b7[_0x122093(0xbe)])){_0x5f530f['set'](_0x50836f[_0x122093(0xa4)],_0x2342b7[_0x122093(0x8a)]);continue;}throw _0x2342b7;}_0x1e561e['set'](_0x50836f[_0x122093(0xa4)],_0x25406a);const _0x59848f=_0x43fe64[_0x122093(0xba)](_0x25406a[_0x122093(0x93)])??new Set();_0x59848f['add'](_0x543f26),_0x43fe64[_0x122093(0xaf)](_0x25406a[_0x122093(0x93)],_0x59848f);}for(const [_0x5e1597,_0x21a6a6]of _0x43fe64){if(_0x21a6a6[_0x122093(0x95)]>0x1)throw hookDirectoryError('HOOK_DUPLICATE_DIRECTORIES',_0x122093(0xbf)+_0x5e1597+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x21a6a6][_0x122093(0x92)](',\x20')+'.',{'datasetCode':_0x5e1597,'directories':[..._0x21a6a6]});}return _0x1e561e;}export function hookDirectoryError(_0xc70541,_0x17fa9a,_0x520097){const _0x1ecd10=a281_0x1dac,_0x4d6a77=new CliError(_0xc70541,0x2,_0xc70541+':\x20'+_0x17fa9a);return _0x4d6a77[_0x1ecd10(0xb2)]=_0x520097,_0x4d6a77;}function findDatasetByCode(_0x1232c3,_0x328135){const _0x13eb5c=a281_0x1dac,_0x115be5=_0x1232c3[_0x13eb5c(0x96)][_0x13eb5c(0xba)](directoryIdentity(_0x328135))??[];if(_0x115be5['length']>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x328135+'\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.',{'datasetCode':_0x328135,'candidates':_0x115be5[_0x13eb5c(0x99)](datasetFact)});return _0x115be5[0x0];}function directoryIdentity(_0x39b418){const _0x5bf99c=a281_0x1dac;return _0x39b418[_0x5bf99c(0xb4)](_0x5bf99c(0xa0))['toLowerCase']();}function appendUnique(_0x5dc3db,_0x59c25e,_0x301dfd,_0x317a2d){const _0x5c5603=a281_0x1dac,_0x5cee7b=_0x5dc3db[_0x5c5603(0xba)](_0x59c25e)??[];!_0x5cee7b[_0x5c5603(0xaa)](_0x5a330c=>_0x317a2d(_0x5a330c)===_0x317a2d(_0x301dfd))&&_0x5cee7b[_0x5c5603(0x8f)](_0x301dfd),_0x5dc3db[_0x5c5603(0xaf)](_0x59c25e,_0x5cee7b);}function datasetFact(_0x3a6349){const _0xd4b788=a281_0x1dac;return{'id':_0x3a6349['id'],'name':_0x3a6349[_0xd4b788(0xad)],'datasetCode':_0x3a6349[_0xd4b788(0xbe)]};}
@@ -1 +1 @@
1
- (function(_0x61fa9e,_0x186e26){const _0x236a82=a282_0x50be,_0x4687a4=_0x61fa9e();while(!![]){try{const _0x1d2880=parseInt(_0x236a82(0xb1))/0x1+-parseInt(_0x236a82(0xbe))/0x2+parseInt(_0x236a82(0xb8))/0x3*(parseInt(_0x236a82(0xc2))/0x4)+parseInt(_0x236a82(0xb2))/0x5*(parseInt(_0x236a82(0xb9))/0x6)+-parseInt(_0x236a82(0xc4))/0x7*(parseInt(_0x236a82(0xc0))/0x8)+parseInt(_0x236a82(0xbf))/0x9*(parseInt(_0x236a82(0xbc))/0xa)+-parseInt(_0x236a82(0xc1))/0xb*(parseInt(_0x236a82(0xb6))/0xc);if(_0x1d2880===_0x186e26)break;else _0x4687a4['push'](_0x4687a4['shift']());}catch(_0x35c36b){_0x4687a4['push'](_0x4687a4['shift']());}}}(a282_0x36fc,0x46d21));function a282_0x50be(_0x450661,_0x1dd1f7){_0x450661=_0x450661-0xad;const _0x36fcc6=a282_0x36fc();let _0x50be14=_0x36fcc6[_0x450661];return _0x50be14;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x535d04,_0x210ac0,_0x4a62b1,_0x4f27a8){const _0x304473=a282_0x50be,_0x302f53={'apps':_0x535d04[_0x304473(0xbd)]&&typeof _0x535d04[_0x304473(0xbd)]===_0x304473(0xbb)?_0x535d04['apps']:{}};let _0x413a7f=_0x302f53[_0x304473(0xbd)][_0x210ac0];if(!_0x413a7f)return _0x413a7f={'scriptsRoot':_0x4a62b1,'lastSync':'','functions':{}},_0x302f53[_0x304473(0xbd)][_0x210ac0]=_0x413a7f,{'lockData':_0x302f53,'appLock':_0x413a7f};if(!_0x413a7f[_0x304473(0xae)])_0x413a7f[_0x304473(0xae)]=_0x4a62b1;else{if(_0x413a7f[_0x304473(0xae)]!==_0x4a62b1)throw new Error(_0x4f27a8+_0x304473(0xc3)+(_0x304473(0xb0)+_0x4a62b1+_0x304473(0xb5)+_0x413a7f['scriptsRoot']+'\x22.\x20')+_0x304473(0xb7));}return!_0x413a7f[_0x304473(0xad)]&&(_0x413a7f[_0x304473(0xad)]={}),!_0x413a7f[_0x304473(0xb4)]&&(_0x413a7f[_0x304473(0xb4)]=''),{'lockData':_0x302f53,'appLock':_0x413a7f};}export async function readBffLockFile(_0x541345){const _0x336aee=a282_0x50be;try{const _0x4588ff=await readFile(_0x541345,_0x336aee(0xb3)),_0x1aefde=JSON[_0x336aee(0xba)](_0x4588ff);return{'apps':_0x1aefde[_0x336aee(0xbd)]&&typeof _0x1aefde['apps']===_0x336aee(0xbb)?_0x1aefde[_0x336aee(0xbd)]:{}};}catch(_0xfff890){if(_0xfff890['code']===_0x336aee(0xc5))return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0xfff890));}}function a282_0x36fc(){const _0x13beac=['12edTyAE','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','3aAgKjE','414uYzVOB','parse','object','890rPHrzI','apps','477306MVpNBc','57465lLulZL','974392ZyUCMh','2835569LWczIE','858068wWXrAc',':\x20scriptsRoot\x20mismatch\x20—\x20','7yxTyfc','ENOENT','functions','scriptsRoot','stringify','current\x20\x22','77299YsHuaD','3495ANExol','utf8','lastSync','\x22\x20vs\x20lock\x20\x22'];a282_0x36fc=function(){return _0x13beac;};return a282_0x36fc();}export async function writeBffLockFile(_0x181d18,_0x31d2de){const _0x14aab2=a282_0x50be;await mkdir(dirname(_0x181d18),{'recursive':!![]}),await writeFile(_0x181d18,JSON[_0x14aab2(0xaf)](_0x31d2de,null,0x2),_0x14aab2(0xb3));}
1
+ (function(_0x4d436d,_0x4a3891){const _0x493ac6=a282_0x437b,_0x5fd24=_0x4d436d();while(!![]){try{const _0x145588=parseInt(_0x493ac6(0x129))/0x1+parseInt(_0x493ac6(0x127))/0x2+parseInt(_0x493ac6(0x132))/0x3+parseInt(_0x493ac6(0x123))/0x4*(-parseInt(_0x493ac6(0x131))/0x5)+parseInt(_0x493ac6(0x12b))/0x6*(-parseInt(_0x493ac6(0x12a))/0x7)+-parseInt(_0x493ac6(0x12e))/0x8*(-parseInt(_0x493ac6(0x121))/0x9)+parseInt(_0x493ac6(0x125))/0xa*(-parseInt(_0x493ac6(0x122))/0xb);if(_0x145588===_0x4a3891)break;else _0x5fd24['push'](_0x5fd24['shift']());}catch(_0x3c6826){_0x5fd24['push'](_0x5fd24['shift']());}}}(a282_0x1188,0x60c5a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a282_0x437b(_0x1cfd5b,_0x2df277){_0x1cfd5b=_0x1cfd5b-0x11c;const _0x1188cc=a282_0x1188();let _0x437b72=_0x1188cc[_0x1cfd5b];return _0x437b72;}function a282_0x1188(){const _0x1ff960=['\x22.\x20','lastSync','functions','\x22\x20vs\x20lock\x20\x22','current\x20\x22','2567367lgWdtc','10835HCEKAn','54148hSathQ','object','8210MIGYWm',':\x20scriptsRoot\x20mismatch\x20—\x20','562410UcLTck','utf8','773736EPYNnA','7SvmmTX','2798652wVlmdF','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','code','8cxfYvG','scriptsRoot','parse','45tIBItZ','1359402CPufXO','apps'];a282_0x1188=function(){return _0x1ff960;};return a282_0x1188();}export function ensureLockScope(_0x528589,_0x193168,_0x32d1e2,_0x133a7d){const _0x229c00=a282_0x437b,_0x440434={'apps':_0x528589[_0x229c00(0x133)]&&typeof _0x528589[_0x229c00(0x133)]==='object'?_0x528589['apps']:{}};let _0x318701=_0x440434[_0x229c00(0x133)][_0x193168];if(!_0x318701)return _0x318701={'scriptsRoot':_0x32d1e2,'lastSync':'','functions':{}},_0x440434[_0x229c00(0x133)][_0x193168]=_0x318701,{'lockData':_0x440434,'appLock':_0x318701};if(!_0x318701['scriptsRoot'])_0x318701[_0x229c00(0x12f)]=_0x32d1e2;else{if(_0x318701[_0x229c00(0x12f)]!==_0x32d1e2)throw new Error(_0x133a7d+_0x229c00(0x126)+(_0x229c00(0x120)+_0x32d1e2+_0x229c00(0x11f)+_0x318701[_0x229c00(0x12f)]+_0x229c00(0x11c))+_0x229c00(0x12c));}return!_0x318701['functions']&&(_0x318701[_0x229c00(0x11e)]={}),!_0x318701[_0x229c00(0x11d)]&&(_0x318701['lastSync']=''),{'lockData':_0x440434,'appLock':_0x318701};}export async function readBffLockFile(_0x50d6fc){const _0x538f95=a282_0x437b;try{const _0x13ce43=await readFile(_0x50d6fc,_0x538f95(0x128)),_0x3a31e8=JSON[_0x538f95(0x130)](_0x13ce43);return{'apps':_0x3a31e8[_0x538f95(0x133)]&&typeof _0x3a31e8['apps']===_0x538f95(0x124)?_0x3a31e8[_0x538f95(0x133)]:{}};}catch(_0x1f0660){if(_0x1f0660[_0x538f95(0x12d)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x1f0660));}}export async function writeBffLockFile(_0x48979b,_0x4929a5){await mkdir(dirname(_0x48979b),{'recursive':!![]}),await writeFile(_0x48979b,JSON['stringify'](_0x4929a5,null,0x2),'utf8');}
@@ -1 +1 @@
1
- const a284_0x5dcd14=a284_0x1405;(function(_0x39b706,_0x4658b5){const _0x40219f=a284_0x1405,_0x125f10=_0x39b706();while(!![]){try{const _0x3c8342=parseInt(_0x40219f(0x1da))/0x1+-parseInt(_0x40219f(0x1e3))/0x2*(parseInt(_0x40219f(0x1ef))/0x3)+parseInt(_0x40219f(0x1d9))/0x4*(-parseInt(_0x40219f(0x1e1))/0x5)+parseInt(_0x40219f(0x1eb))/0x6+parseInt(_0x40219f(0x1d5))/0x7*(-parseInt(_0x40219f(0x1e6))/0x8)+-parseInt(_0x40219f(0x1e4))/0x9*(-parseInt(_0x40219f(0x1e9))/0xa)+parseInt(_0x40219f(0x1ea))/0xb;if(_0x3c8342===_0x4658b5)break;else _0x125f10['push'](_0x125f10['shift']());}catch(_0x1eb1f9){_0x125f10['push'](_0x125f10['shift']());}}}(a284_0x1492,0x752e0));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x5dcd14(0x1ee);function a284_0x1492(){const _0x21fe66=['toLowerCase','374952IZGEtH','entries','before','10HxafsQ','153615AMSCEb','3863940DThMJc','alias','after','TODO:\x20add\x20script\x20description','1096521eKEqsr','datasetCode','operationType','21xKxVbT','some','split','startsWith','660316EaqOxz','89962FkxjXo','test','map','replace','functionNode','match','remoteId','15LYEeny','trim','2CkESCj','6600618xJvVUT'];a284_0x1492=function(){return _0x21fe66;};return a284_0x1492();}export function snakeToCamel(_0x26c48f){const _0x413ade=a284_0x5dcd14;return _0x26c48f[_0x413ade(0x1e5)]()[_0x413ade(0x1dd)](/_([a-z])/g,(_0x5b5e76,_0x34bb77)=>_0x34bb77['toUpperCase']());}function a284_0x1405(_0x38bf00,_0x621b1a){_0x38bf00=_0x38bf00-0x1d4;const _0x14929f=a284_0x1492();let _0x140541=_0x14929f[_0x38bf00];return _0x140541;}export function findHookLocationByRemoteId(_0x49278d,_0x15bb4a){const _0x5de1a1=a284_0x5dcd14;if(!_0x15bb4a)return undefined;for(const [_0x2701c3,_0xa08c65]of Object[_0x5de1a1(0x1e7)](_0x49278d)){if(_0xa08c65[_0x5de1a1(0x1e0)]===_0x15bb4a&&_0xa08c65['datasetCode']&&_0xa08c65[_0x5de1a1(0x1d4)]&&_0xa08c65[_0x5de1a1(0x1de)]){const _0x56a09b=_0x2701c3['split']('/')[0x1];return{'alias':_0x56a09b||_0xa08c65[_0x5de1a1(0x1ec)],'datasetCode':_0xa08c65[_0x5de1a1(0x1f0)],'operationType':_0xa08c65[_0x5de1a1(0x1d4)],'functionNode':_0xa08c65[_0x5de1a1(0x1de)]};}}return undefined;}export function extractScriptDescription(_0x3d3c0d){const _0x2e21e0=a284_0x5dcd14,_0x330157=_0x3d3c0d[_0x2e21e0(0x1df)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x330157?.[0x1])return undefined;const _0x2fa619=_0x330157[0x1],_0x5783b4=_0x2e743b=>{const _0x141219=_0x2e21e0,_0xbdea69=_0x2e743b?.[_0x141219(0x1e2)]();if(!_0xbdea69||_0xbdea69===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0xbdea69===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0xbdea69;},_0x30e1d0=_0x2fa619[_0x2e21e0(0x1df)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x30e1d0)return _0x5783b4(_0x30e1d0[0x1]);const _0x1be93a=_0x2fa619[_0x2e21e0(0x1d7)](/\r?\n/)[_0x2e21e0(0x1dc)](_0x547395=>_0x547395[_0x2e21e0(0x1dd)](/^\s*\*\s?/,'')[_0x2e21e0(0x1e2)]()),_0x4202ca=_0x1be93a[_0x2e21e0(0x1d6)](_0x478547=>/^\[\s*脚本类型\s*]\s*\S+/[_0x2e21e0(0x1db)](_0x478547))&&_0x1be93a[_0x2e21e0(0x1d6)](_0x123fe8=>/^\[\s*脚本名称\s*]\s*\S+/[_0x2e21e0(0x1db)](_0x123fe8));if(!_0x4202ca)return undefined;for(const _0xb03f61 of _0x1be93a){if(!_0xb03f61||_0xb03f61[_0x2e21e0(0x1d8)]('@')||/^\[[^\]]+]\s*/[_0x2e21e0(0x1db)](_0xb03f61))continue;return _0x5783b4(_0xb03f61);}return undefined;}export function isValidBffFunctionName(_0x3cc744){const _0x8b7f7b=a284_0x5dcd14;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x8b7f7b(0x1db)](_0x3cc744);}export function normalizeHookFunctionNode(_0x591aec){const _0x517836=a284_0x5dcd14;if(!_0x591aec)return undefined;const _0x475c6e=_0x591aec[_0x517836(0x1e2)]()[_0x517836(0x1e5)]();if(_0x475c6e===_0x517836(0x1e8)||_0x475c6e===_0x517836(0x1ed))return _0x475c6e;return undefined;}
1
+ function a284_0x59a5(_0x55f5b,_0x4a2ccc){_0x55f5b=_0x55f5b-0x114;const _0x5538b8=a284_0x5538();let _0x59a57c=_0x5538b8[_0x55f5b];return _0x59a57c;}const a284_0xde59f7=a284_0x59a5;function a284_0x5538(){const _0x2a192a=['161106uColzo','trim','toLowerCase','7AnSSkX','match','alias','test','6713568TGofDz','remoteId','TODO:\x20add\x20script\x20description','24htlUQz','11907599CgxKCE','some','map','functionNode','after','TODO:\x20补充脚本功能描述','replace','toUpperCase','startsWith','1VRgLkL','before','5700702cMHGII','168860fhZlCd','9VVkkas','7400205AfjCGo','2275082ofLTYl'];a284_0x5538=function(){return _0x2a192a;};return a284_0x5538();}(function(_0x3c6315,_0x3e0cc3){const _0x4f0d5d=a284_0x59a5,_0x1172a1=_0x3c6315();while(!![]){try{const _0xf9c47a=parseInt(_0x4f0d5d(0x123))/0x1*(-parseInt(_0x4f0d5d(0x129))/0x2)+-parseInt(_0x4f0d5d(0x12a))/0x3*(parseInt(_0x4f0d5d(0x119))/0x4)+parseInt(_0x4f0d5d(0x128))/0x5+-parseInt(_0x4f0d5d(0x125))/0x6*(-parseInt(_0x4f0d5d(0x12d))/0x7)+parseInt(_0x4f0d5d(0x116))/0x8+parseInt(_0x4f0d5d(0x127))/0x9*(parseInt(_0x4f0d5d(0x126))/0xa)+-parseInt(_0x4f0d5d(0x11a))/0xb;if(_0xf9c47a===_0x3e0cc3)break;else _0x1172a1['push'](_0x1172a1['shift']());}catch(_0x476fb4){_0x1172a1['push'](_0x1172a1['shift']());}}}(a284_0x5538,0xb5a2a));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0xde59f7(0x11f);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0xde59f7(0x118);export function snakeToCamel(_0x4f1a3c){const _0x2c6b46=a284_0xde59f7;return _0x4f1a3c[_0x2c6b46(0x12c)]()[_0x2c6b46(0x120)](/_([a-z])/g,(_0x2b5eb3,_0x51e0ed)=>_0x51e0ed[_0x2c6b46(0x121)]());}export function findHookLocationByRemoteId(_0x43177d,_0x1fa664){const _0xcb3e0=a284_0xde59f7;if(!_0x1fa664)return undefined;for(const [_0x58f96b,_0x2df207]of Object['entries'](_0x43177d)){if(_0x2df207[_0xcb3e0(0x117)]===_0x1fa664&&_0x2df207['datasetCode']&&_0x2df207['operationType']&&_0x2df207[_0xcb3e0(0x11d)]){const _0x230847=_0x58f96b['split']('/')[0x1];return{'alias':_0x230847||_0x2df207[_0xcb3e0(0x114)],'datasetCode':_0x2df207['datasetCode'],'operationType':_0x2df207['operationType'],'functionNode':_0x2df207['functionNode']};}}return undefined;}export function extractScriptDescription(_0x179281){const _0x56b817=a284_0xde59f7,_0x1271e3=_0x179281['match'](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x1271e3?.[0x1])return undefined;const _0x2434bf=_0x1271e3[0x1],_0x4f0dab=_0xf427d5=>{const _0x50e15e=a284_0x59a5,_0x1d0357=_0xf427d5?.[_0x50e15e(0x12b)]();if(!_0x1d0357||_0x1d0357===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x1d0357===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x1d0357;},_0xd8ee9a=_0x2434bf[_0x56b817(0x12e)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0xd8ee9a)return _0x4f0dab(_0xd8ee9a[0x1]);const _0x5c664c=_0x2434bf['split'](/\r?\n/)[_0x56b817(0x11c)](_0x36ad8d=>_0x36ad8d['replace'](/^\s*\*\s?/,'')[_0x56b817(0x12b)]()),_0x14cb18=_0x5c664c[_0x56b817(0x11b)](_0x5243a8=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x5243a8))&&_0x5c664c[_0x56b817(0x11b)](_0x507eda=>/^\[\s*脚本名称\s*]\s*\S+/[_0x56b817(0x115)](_0x507eda));if(!_0x14cb18)return undefined;for(const _0x5399a8 of _0x5c664c){if(!_0x5399a8||_0x5399a8[_0x56b817(0x122)]('@')||/^\[[^\]]+]\s*/['test'](_0x5399a8))continue;return _0x4f0dab(_0x5399a8);}return undefined;}export function isValidBffFunctionName(_0x353e09){const _0xc36ce4=a284_0xde59f7;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xc36ce4(0x115)](_0x353e09);}export function normalizeHookFunctionNode(_0x36ce69){const _0x43f4bf=a284_0xde59f7;if(!_0x36ce69)return undefined;const _0x133dba=_0x36ce69[_0x43f4bf(0x12b)]()[_0x43f4bf(0x12c)]();if(_0x133dba===_0x43f4bf(0x124)||_0x133dba===_0x43f4bf(0x11e))return _0x133dba;return undefined;}
@@ -1 +1 @@
1
- function a285_0x56bd(){const _0x1f312f=['1521937pZxpnA','78hnFKNd','1379mKgqiY','1479687dFdLFH','31528sguPhX','695gSuODA','4779290VoeVWF','/smartapi/cross-db-relation/delete','/smartapi/cross-db-relation/update','/smartapi/cross-db-relation/create','686652qeKbep','45yxLgWy','1991450LmMasg'];a285_0x56bd=function(){return _0x1f312f;};return a285_0x56bd();}const a285_0x58e930=a285_0x564f;(function(_0x3b586b,_0x21b961){const _0x400350=a285_0x564f,_0x265751=_0x3b586b();while(!![]){try{const _0x127738=-parseInt(_0x400350(0x1e3))/0x1+parseInt(_0x400350(0x1e2))/0x2+-parseInt(_0x400350(0x1e6))/0x3+parseInt(_0x400350(0x1e0))/0x4+-parseInt(_0x400350(0x1e8))/0x5*(-parseInt(_0x400350(0x1e4))/0x6)+-parseInt(_0x400350(0x1e5))/0x7*(parseInt(_0x400350(0x1e7))/0x8)+parseInt(_0x400350(0x1e1))/0x9*(parseInt(_0x400350(0x1e9))/0xa);if(_0x127738===_0x21b961)break;else _0x265751['push'](_0x265751['shift']());}catch(_0x315198){_0x265751['push'](_0x265751['shift']());}}}(a285_0x56bd,0xbb541));function a285_0x564f(_0x4bfe46,_0x34f3ad){_0x4bfe46=_0x4bfe46-0x1e0;const _0x56bd56=a285_0x56bd();let _0x564f11=_0x56bd56[_0x4bfe46];return _0x564f11;}export const CROSS_DB_RELATION_PATHS={'list':'/smartapi/cross-db-relation/query','create':a285_0x58e930(0x1ec),'update':a285_0x58e930(0x1eb),'delete':a285_0x58e930(0x1ea)};
1
+ const a285_0x39440b=a285_0x144c;(function(_0x130f10,_0x4a5950){const _0x49e0a7=a285_0x144c,_0x36ff96=_0x130f10();while(!![]){try{const _0x25b298=-parseInt(_0x49e0a7(0x198))/0x1+-parseInt(_0x49e0a7(0x19d))/0x2*(parseInt(_0x49e0a7(0x197))/0x3)+-parseInt(_0x49e0a7(0x199))/0x4+-parseInt(_0x49e0a7(0x193))/0x5*(-parseInt(_0x49e0a7(0x192))/0x6)+parseInt(_0x49e0a7(0x190))/0x7*(parseInt(_0x49e0a7(0x195))/0x8)+parseInt(_0x49e0a7(0x19c))/0x9+parseInt(_0x49e0a7(0x194))/0xa*(parseInt(_0x49e0a7(0x19b))/0xb);if(_0x25b298===_0x4a5950)break;else _0x36ff96['push'](_0x36ff96['shift']());}catch(_0xa04383){_0x36ff96['push'](_0x36ff96['shift']());}}}(a285_0x5c13,0xafa08));function a285_0x144c(_0x3091aa,_0x3c8b7f){_0x3091aa=_0x3091aa-0x18f;const _0x5c132a=a285_0x5c13();let _0x144cb3=_0x5c132a[_0x3091aa];return _0x144cb3;}export const CROSS_DB_RELATION_PATHS={'list':a285_0x39440b(0x18f),'create':a285_0x39440b(0x191),'update':a285_0x39440b(0x19a),'delete':a285_0x39440b(0x196)};function a285_0x5c13(){const _0x59590a=['/smartapi/cross-db-relation/delete','55446cAPhXt','754853Mntrqi','5634980vWSxNQ','/smartapi/cross-db-relation/update','1968747BanGis','3271482tZQNal','6BKqsij','/smartapi/cross-db-relation/query','4494539KIJoFg','/smartapi/cross-db-relation/create','18VjQByL','2028215SnjvBj','40QSHlOH','8PuQPpv'];a285_0x5c13=function(){return _0x59590a;};return a285_0x5c13();}
@@ -1 +1 @@
1
- (function(_0x5b2e32,_0x585f76){const _0x2e6cae=a286_0x32b8,_0x25c5cb=_0x5b2e32();while(!![]){try{const _0x115465=parseInt(_0x2e6cae(0x82))/0x1*(parseInt(_0x2e6cae(0x90))/0x2)+-parseInt(_0x2e6cae(0x93))/0x3*(parseInt(_0x2e6cae(0x7a))/0x4)+-parseInt(_0x2e6cae(0x8b))/0x5+parseInt(_0x2e6cae(0x7c))/0x6*(parseInt(_0x2e6cae(0x95))/0x7)+-parseInt(_0x2e6cae(0x85))/0x8+-parseInt(_0x2e6cae(0x84))/0x9+parseInt(_0x2e6cae(0x7b))/0xa*(parseInt(_0x2e6cae(0x8d))/0xb);if(_0x115465===_0x585f76)break;else _0x25c5cb['push'](_0x25c5cb['shift']());}catch(_0x283a29){_0x25c5cb['push'](_0x25c5cb['shift']());}}}(a286_0x7ba2,0x9c7a1));import{listDatasets}from'../core/api-client.js';function a286_0x7ba2(){const _0x4e2f89=['685169DwpxWB','toLowerCase','3402657wdkAio','7681200JIuhbo','set','get','map','join','has','6068100TMnzaY','No\x20database\x20matching\x20\x22','2755379LnNxlI','dbId','isNaN','2XVGKet','length','\x22\x20under\x20app\x20\x22','41274VlhRQx','filter','1232vPEIUD','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','.\x20Be\x20more\x20specific.','dbName','196ZNBpOB','90TIYTbo','31614VsOrZc','\x22\x20matches\x20multiple\x20databases:\x20','find','\x22.\x20Available:\x20','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','includes'];a286_0x7ba2=function(){return _0x4e2f89;};return a286_0x7ba2();}const cache=new Map();function a286_0x32b8(_0x575511,_0xcd1624){_0x575511=_0x575511-0x79;const _0x7ba28e=a286_0x7ba2();let _0x32b8a2=_0x7ba28e[_0x575511];return _0x32b8a2;}export async function listDatabases(_0x10a14e){const _0x5c673c=a286_0x32b8;if(cache[_0x5c673c(0x8a)](_0x10a14e))return cache[_0x5c673c(0x87)](_0x10a14e);const _0x40a19f=await listDatasets(_0x10a14e),_0x1a4e21=new Map();for(const _0x5eeac6 of _0x40a19f){const _0x353260=_0x5eeac6['dbtableConfig'];_0x353260?.['dbId']!=null&&_0x1a4e21[_0x5c673c(0x86)](_0x353260[_0x5c673c(0x8e)],_0x353260['dbName']??'db-'+_0x353260['dbId']);}const _0x30f2c8=[..._0x1a4e21['entries']()]['map'](([_0x57d730,_0x842acd])=>({'dbId':_0x57d730,'dbName':_0x842acd}));return cache[_0x5c673c(0x86)](_0x10a14e,_0x30f2c8),_0x30f2c8;}export async function resolveDb(_0x5e57dd,_0x5a944e){const _0x452531=a286_0x32b8,_0x1ec4e7=await listDatabases(_0x5e57dd);if(_0x1ec4e7['length']===0x0)return{'resolved':[],'error':_0x452531(0x80)+_0x5e57dd+_0x452531(0x96)};if(!_0x5a944e)return{'resolved':_0x1ec4e7};const _0x4adb24=Number(_0x5a944e);if(!Number[_0x452531(0x8f)](_0x4adb24)){const _0x381e2a=_0x1ec4e7[_0x452531(0x7e)](_0x52be1d=>_0x52be1d['dbId']===_0x4adb24);if(_0x381e2a)return{'resolved':[_0x381e2a]};}const _0x598045=_0x5a944e['toLowerCase'](),_0x5872b4=_0x1ec4e7[_0x452531(0x94)](_0x297bc0=>_0x297bc0[_0x452531(0x79)][_0x452531(0x83)]()[_0x452531(0x81)](_0x598045));if(_0x5872b4[_0x452531(0x91)]>0x0)return{'resolved':_0x5872b4};const _0x41c8de=_0x1ec4e7[_0x452531(0x88)](_0x4a35de=>_0x4a35de['dbName']+'\x20('+_0x4a35de['dbId']+')')[_0x452531(0x89)](',\x20');return{'resolved':[],'error':_0x452531(0x8c)+_0x5a944e+_0x452531(0x92)+_0x5e57dd+_0x452531(0x7f)+_0x41c8de+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x1df336,_0x6a7486){const _0x39b665=a286_0x32b8,{resolved:_0x38392c,error:_0x447c05}=await resolveDb(_0x1df336,_0x6a7486);if(_0x447c05)return{'db':null,'error':_0x447c05};if(_0x38392c[_0x39b665(0x91)]===0x1)return{'db':_0x38392c[0x0]};if(!_0x6a7486){const _0x5edef7=_0x38392c['map'](_0x205843=>_0x205843['dbName']+'\x20('+_0x205843[_0x39b665(0x8e)]+')')[_0x39b665(0x89)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5edef7};}const _0x549d1a=_0x38392c['map'](_0x5cc4e3=>_0x5cc4e3[_0x39b665(0x79)]+'\x20('+_0x5cc4e3['dbId']+')')[_0x39b665(0x89)](',\x20');return{'db':null,'error':'\x22'+_0x6a7486+_0x39b665(0x7d)+_0x549d1a+_0x39b665(0x97)};}export async function getDbName(_0x263b34,_0xf2aeb9){const _0x2051a0=a286_0x32b8,_0x19abca=await listDatabases(_0x263b34);return _0x19abca[_0x2051a0(0x7e)](_0x385dc6=>_0x385dc6[_0x2051a0(0x8e)]===_0xf2aeb9)?.[_0x2051a0(0x79)];}
1
+ (function(_0x30dd6a,_0x411269){const _0x3a946b=a286_0x48dc,_0xbe606f=_0x30dd6a();while(!![]){try{const _0x4645f1=-parseInt(_0x3a946b(0xe0))/0x1+-parseInt(_0x3a946b(0xeb))/0x2+parseInt(_0x3a946b(0xdd))/0x3+-parseInt(_0x3a946b(0xe6))/0x4*(-parseInt(_0x3a946b(0xdc))/0x5)+parseInt(_0x3a946b(0xf6))/0x6*(parseInt(_0x3a946b(0xf5))/0x7)+-parseInt(_0x3a946b(0xee))/0x8+parseInt(_0x3a946b(0xe2))/0x9*(parseInt(_0x3a946b(0xef))/0xa);if(_0x4645f1===_0x411269)break;else _0xbe606f['push'](_0xbe606f['shift']());}catch(_0x542b26){_0xbe606f['push'](_0xbe606f['shift']());}}}(a286_0x488c,0xc5e57));import{listDatasets}from'../core/api-client.js';function a286_0x48dc(_0x5569cc,_0x43bf1a){_0x5569cc=_0x5569cc-0xdc;const _0x488c42=a286_0x488c();let _0x48dc1c=_0x488c42[_0x5569cc];return _0x48dc1c;}const cache=new Map();export async function listDatabases(_0x11df3d){const _0x4ee266=a286_0x48dc;if(cache[_0x4ee266(0xf2)](_0x11df3d))return cache[_0x4ee266(0xf0)](_0x11df3d);const _0x3bcc5f=await listDatasets(_0x11df3d),_0x504ad5=new Map();for(const _0x30065e of _0x3bcc5f){const _0x5ed860=_0x30065e[_0x4ee266(0xe8)];_0x5ed860?.['dbId']!=null&&_0x504ad5[_0x4ee266(0xec)](_0x5ed860[_0x4ee266(0xe9)],_0x5ed860[_0x4ee266(0xed)]??'db-'+_0x5ed860[_0x4ee266(0xe9)]);}const _0x498f60=[..._0x504ad5[_0x4ee266(0xe4)]()]['map'](([_0x53c217,_0x5484f8])=>({'dbId':_0x53c217,'dbName':_0x5484f8}));return cache[_0x4ee266(0xec)](_0x11df3d,_0x498f60),_0x498f60;}export async function resolveDb(_0x39a473,_0x1b5bdc){const _0x216042=a286_0x48dc,_0xc0ae49=await listDatabases(_0x39a473);if(_0xc0ae49['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x39a473+_0x216042(0xf8)};if(!_0x1b5bdc)return{'resolved':_0xc0ae49};const _0x46fe0a=Number(_0x1b5bdc);if(!Number['isNaN'](_0x46fe0a)){const _0x306bbf=_0xc0ae49[_0x216042(0xde)](_0x520e52=>_0x520e52[_0x216042(0xe9)]===_0x46fe0a);if(_0x306bbf)return{'resolved':[_0x306bbf]};}const _0x42187e=_0x1b5bdc[_0x216042(0xf1)](),_0xe1fbaa=_0xc0ae49[_0x216042(0xe1)](_0x258850=>_0x258850['dbName']['toLowerCase']()[_0x216042(0xea)](_0x42187e));if(_0xe1fbaa[_0x216042(0xe5)]>0x0)return{'resolved':_0xe1fbaa};const _0x10819c=_0xc0ae49[_0x216042(0xf7)](_0x53d1f4=>_0x53d1f4['dbName']+'\x20('+_0x53d1f4['dbId']+')')[_0x216042(0xdf)](',\x20');return{'resolved':[],'error':_0x216042(0xe7)+_0x1b5bdc+_0x216042(0xf4)+_0x39a473+'\x22.\x20Available:\x20'+_0x10819c+_0x216042(0xe3)};}export async function resolveOneDb(_0x1f65f9,_0x5ea15b){const _0x52eee6=a286_0x48dc,{resolved:_0x2bd753,error:_0x51a7c2}=await resolveDb(_0x1f65f9,_0x5ea15b);if(_0x51a7c2)return{'db':null,'error':_0x51a7c2};if(_0x2bd753[_0x52eee6(0xe5)]===0x1)return{'db':_0x2bd753[0x0]};if(!_0x5ea15b){const _0x44c152=_0x2bd753['map'](_0x28441a=>_0x28441a[_0x52eee6(0xed)]+'\x20('+_0x28441a[_0x52eee6(0xe9)]+')')[_0x52eee6(0xdf)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x44c152};}const _0xc57f7c=_0x2bd753[_0x52eee6(0xf7)](_0x1b0ca8=>_0x1b0ca8[_0x52eee6(0xed)]+'\x20('+_0x1b0ca8[_0x52eee6(0xe9)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x5ea15b+_0x52eee6(0xf9)+_0xc57f7c+_0x52eee6(0xf3)};}export async function getDbName(_0x5309fa,_0x266d14){const _0x4adea7=a286_0x48dc,_0x1ed8f8=await listDatabases(_0x5309fa);return _0x1ed8f8[_0x4adea7(0xde)](_0x4df54a=>_0x4df54a[_0x4adea7(0xe9)]===_0x266d14)?.[_0x4adea7(0xed)];}function a286_0x488c(){const _0x2aab25=['10946944vBcRjY','1498040rbmQGp','get','toLowerCase','has','.\x20Be\x20more\x20specific.','\x22\x20under\x20app\x20\x22','5823797YFAVhq','6oEtbHM','map','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','10TJFIOQ','1285689iXAJoP','find','join','955927MZdsTG','filter','153IqDNwZ','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','entries','length','1395052urnTHN','No\x20database\x20matching\x20\x22','dbtableConfig','dbId','includes','2739700UrVAYt','set','dbName'];a286_0x488c=function(){return _0x2aab25;};return a286_0x488c();}
@@ -1 +1 @@
1
- function a287_0x12ee(){const _0x4e3f44=['version','5hPCinr','sequential','.assignee.userIds[','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','value\x20must\x20be\x20a\x20non-empty\x20string.','utf8','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.url','keys','Notification\x20fact\x20must\x20be\x20an\x20object.','role','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','.facts','flowJson.startPath','duration\x20requires\x20value\x20and\x20unit.','PLATFORM_FORM','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','.timeout.duration','Duplicate\x20BPMN\x20element\x20id:\x20','test','Duplicate\x20edge\x20route:\x20','warnings','name','SECONDS','taskMode','value','#/$defs/flowEdge','sequential\x20must\x20be\x20a\x20boolean.','async\x20must\x20be\x20an\x20object.','object','number','transferCandidates\x20must\x20be\x20an\x20object.','.tmp','findIndex','target','schemaVersion','.assignee','CONDITION','unit','expression','6539630cABVOM','nodes','visible','catch','\x20->\x20','timeout\x20must\x20be\x20an\x20object.','Notification\x20recipient.type\x20is\x20required.','flowName\x20is\x20required.','.cc.recipientUserIds[','approval_sys_initiatorUsername','title','isSafeInteger','edges','mode','edge\x20target\x20is\x20required.','scriptName','Unsupported\x20schemaVersion:\x20','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','#/$defs/flowNode','position','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','userIds','size','flowName','datasetCode','strategy','Duplicate\x20resultVariable:\x20','timeout.interrupting\x20must\x20be\x20a\x20boolean.','empty_metadata_removed','^[1-9][0-9]*$','\x20must\x20be\x20a\x20finite\x20number.','position.','type','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','EXECUTE_BFF','forEach','resultVariable','variables','recipientUserIds','.cc.readSources','ALL','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','edge\x20source\x20is\x20required.','actions','NOTIFICATION','push','startPath\x20must\x20be\x20a\x20non-empty\x20string.','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','transferCandidates','NOTIFICATION\x20node\x20requires\x20config.','.value','every','approval_sys_dataId','failurePolicy','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','ROLE','defaultFlow','approval_sys_datasetCode','has','flowDesc\x20must\x20be\x20a\x20string.','array','.position','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','flowJson','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','result','approved','timeout.enabled\x20must\x20be\x20a\x20boolean.','flowType\x20is\x20required.','delete','conditionType','.unit','.pageId','^[A-Za-z_][A-Za-z0-9_]*$','filter','ALWAYS','source','.transferCandidates','templateName','value\x20must\x20be\x20an\x20array.','assignee','Notification\x20template\x20supports\x20at\x20most\x20','Notification\x20configCode\x20is\x20required.','.recipients','flowDesc','summary','flowJson.pageMode','.timeout','.async.enabled','718962nIdBer','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','includes','SCRIPT','123zAbUKQ','.actions','approval_sys_','flowJson.nodes.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','overwrite','flowType','startPath','message','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','USER','HOURS','boolean','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','pageMode','2GBiTpp','START','action','parse','.template','pid','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','Node\x20cannot\x20reach\x20any\x20END.','.async','SCRIPT\x20node\x20requires\x20scriptName.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','approval.simple-flow.v1','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','Notification\x20recipient.value\x20is\x20required.','enabled','.conditionType','pageId','get','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','.waypoints[','APPROVED','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','Unsupported\x20flowType:\x20','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','slice','Unsupported\x20node\x20type:\x20','bindDatasetCode','CONTINUE','startsWith','NaN','roleId','.async.retryCount','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','Edge\x20target\x20node\x20not\x20found:\x20','config','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','integer','Notification\x20action.text\x20is\x20required.','interrupting','label','.timeout.scriptName','indexOf','.sequential','add','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','matchAll','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','EMAIL','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','#/$defs/position','.detailMarkdown','1684755zkrdmz','927087cbJTye','Unsupported\x20approval\x20mode:\x20','.name','.timeout.enabled','58060NonLfK','Rabetbase\x20FlowConfig','.async.retryInterval','.configCode','.config','SINGLE','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','\x20actions.','failurePolicy\x20must\x20be\x20a\x20string.','retryCount','.\x20This\x20CLI\x20supports\x20only\x20','appCode','approval_sys_operationType','isInteger','AUTO_REJECT','EXPRESSION\x20edge\x20requires\x20expression.','.position.','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','map','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','hasOwnProperty','.assignee.roleId','datasetCode\x20must\x20be\x20a\x20string.','Node\x20is\x20not\x20reachable\x20from\x20START.','FORM_FLOW','Node\x20has\x20no\x20incoming\x20edge.','prototype','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','recipients','EXPRESSION','detailMarkdown','.text','.transferCandidates.userIds[','text','edge\x20must\x20be\x20an\x20object.','path','\x20is\x20required.','flowJson.edges','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','length','formPermission','.expression','APPROVAL','END','NOTIFICATION\x20node\x20requires\x20template.','MINUTES','REJECTED','async.enabled\x20must\x20be\x20a\x20boolean.','sourceNodeId','2561112FXfttw','.cc','string','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.id','Notification\x20recipients\x20must\x20be\x20an\x20array.','entries','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','configCode','__rabetbase_local_validation__','toUpperCase','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','.path','event','.taskMode','replace','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','flowJson.nodes','nodes\x20must\x20be\x20an\x20array.','cc.recipientUserIds\x20supports\x20at\x20most\x20','flowJson.schemaVersion','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','formData','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','facts','Notification\x20template.actions\x20must\x20be\x20an\x20array.','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','legacy_field_removed','flowKey','.timeout.resultVariable','waypoint.','.waypoints','waypoints','.scriptName','.transferCandidates.userIds','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','flowJson.edges[','https://json-schema.org/draft/2020-12/schema','cc\x20must\x20be\x20an\x20object.','trim','Notification\x20recipient\x20must\x20be\x20an\x20object.','INDEPENDENT_FLOW','.resultVariable','stringify','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','targetNodeId','Duplicate\x20cc\x20recipient\x20userId:\x20','FIXED','flowJson.nodes[','.assignee.strategy','.defaultFlow','call','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','DAYS','Reserved\x20resultVariable:\x20','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','.timeout.interrupting','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.',',\x20but\x20node\x20','async','template','.type','startPageId','timeout','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','FAIL','url','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','set','279260SxGooN','AUTO_APPROVE','retryInterval','edges\x20must\x20be\x20an\x20array.','Node\x20has\x20no\x20outgoing\x20edge.','.role','some','.cc.visible','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','BCC','Edge\x20source\x20node\x20not\x20found:\x20','Unsupported\x20pageMode:\x20','approval_sys_processInstanceId','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','Notification\x20template.','.transferCandidates.strategy','.version','approval_sys_initiatorUserId','.source','.assignee.userIds','CUSTOM_PAGE','HANDLE','Notification\x20version\x20must\x20be\x20a\x20string.','isArray','ANY','.cc.recipientUserIds','\x20users.','flowJson.','.approvalMode','waypoints\x20must\x20be\x20an\x20array.','Unsupported\x20condition\x20type:\x20','Duplicate\x20value:\x20','approval_sys_pageId','Every\x20node\x20requires\x20a\x20non-empty\x20name.','.timeout.action','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','Unsupported\x20task\x20mode:\x20','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','flowJson.startPageId'];a287_0x12ee=function(){return _0x4e3f44;};return a287_0x12ee();}const a287_0x4050df=a287_0x4188;(function(_0x36291e,_0x7391b6){const _0x345fd0=a287_0x4188,_0x14a23b=_0x36291e();while(!![]){try{const _0x2ae8a7=-parseInt(_0x345fd0(0x22d))/0x1*(parseInt(_0x345fd0(0x16e))/0x2)+parseInt(_0x345fd0(0x21e))/0x3*(parseInt(_0x345fd0(0x267))/0x4)+parseInt(_0x345fd0(0x197))/0x5*(parseInt(_0x345fd0(0x21a))/0x6)+parseInt(_0x345fd0(0x263))/0x7+parseInt(_0x345fd0(0x298))/0x8+parseInt(_0x345fd0(0x262))/0x9+-parseInt(_0x345fd0(0x1bf))/0xa;if(_0x2ae8a7===_0x7391b6)break;else _0x14a23b['push'](_0x14a23b['shift']());}catch(_0x4e3e47){_0x14a23b['push'](_0x14a23b['shift']());}}}(a287_0x12ee,0x66e76));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':a287_0x4050df(0x2bd),'$id':'https://lovrabet.com/schema/rabetbase-flow-config.json','title':a287_0x4050df(0x268),'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1d6),a287_0x4050df(0x224),'flowJson'],'$defs':{'userId':{'anyOf':[{'type':a287_0x4050df(0x29a),'minLength':0x1},{'type':a287_0x4050df(0x252),'minimum':0x1}]},'position':{'type':a287_0x4050df(0x1b4),'required':['x','y'],'properties':{'x':{'type':a287_0x4050df(0x1b5),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1b0),a287_0x4050df(0x1bd)],'properties':{'value':{'type':a287_0x4050df(0x252),'minimum':0x1},'unit':{'enum':[a287_0x4050df(0x1ae),a287_0x4050df(0x294),a287_0x4050df(0x229),a287_0x4050df(0x15e)]}},'additionalProperties':!![]},'flowNode':{'type':a287_0x4050df(0x1b4),'required':['id','type','name',a287_0x4050df(0x1d2)],'properties':{'id':{'type':a287_0x4050df(0x29a),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':['START','END',a287_0x4050df(0x291),'CONDITION',a287_0x4050df(0x21d),'NOTIFICATION']},'name':{'type':a287_0x4050df(0x29a),'minLength':0x1},'path':{'type':a287_0x4050df(0x29a),'minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a287_0x4050df(0x26c),a287_0x4050df(0x1e8),a287_0x4050df(0x187)]},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1d8)],'properties':{'strategy':{'enum':[a287_0x4050df(0x158),a287_0x4050df(0x1f7)]},'userIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a287_0x4050df(0x252),'minimum':0x1},{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x1dc)}]}},'additionalProperties':!![]},'transferCandidates':{'type':'object','required':[a287_0x4050df(0x1d8),a287_0x4050df(0x1d4)],'properties':{'strategy':{'const':a287_0x4050df(0x158)},'userIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}}},'additionalProperties':!![]},'sequential':{'type':a287_0x4050df(0x22a)},'result':{'enum':[a287_0x4050df(0x241),a287_0x4050df(0x295)]},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x20a)},'async':{'type':a287_0x4050df(0x1b4),'properties':{'enabled':{'type':a287_0x4050df(0x22a)},'retryCount':{'type':'integer','minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':a287_0x4050df(0x22a)},'duration':{'$ref':'#/$defs/timeAmount'},'action':{'enum':[a287_0x4050df(0x16f),a287_0x4050df(0x275),a287_0x4050df(0x1e2)]},'interrupting':{'type':'boolean'},'scriptName':{'type':a287_0x4050df(0x29a),'minLength':0x1},'resultVariable':{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x20a)}},'additionalProperties':!![]},'cc':{'type':'object','required':[a287_0x4050df(0x1e6)],'properties':{'recipientUserIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'visible':{'type':a287_0x4050df(0x1fc),'uniqueItems':!![],'items':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x2a0),'template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x4050df(0x29a),'minLength':0x1},'failurePolicy':{'enum':[a287_0x4050df(0x249),a287_0x4050df(0x16a)]},'template':{'type':'object','required':['title',a287_0x4050df(0x216)],'properties':{'title':{'type':a287_0x4050df(0x29a),'minLength':0x1},'summary':{'type':a287_0x4050df(0x29a),'minLength':0x1},'detailMarkdown':{'type':'string'},'facts':{'type':a287_0x4050df(0x1fc),'maxItems':0x8,'items':{'type':'object','required':[a287_0x4050df(0x255),'value'],'properties':{'label':{'type':'string','minLength':0x1},'value':{'type':'string','minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x4050df(0x1fc),'maxItems':0x2,'items':{'type':a287_0x4050df(0x1b4),'required':['text','url'],'properties':{'text':{'type':a287_0x4050df(0x29a),'minLength':0x1},'url':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1df),a287_0x4050df(0x1b0)],'properties':{'type':{'enum':['USER',a287_0x4050df(0x1f7),a287_0x4050df(0x25e)]},'value':{'type':a287_0x4050df(0x29a),'minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a287_0x4050df(0x1b4),'properties':{'id':{'type':'string','pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'source':{'type':a287_0x4050df(0x29a),'minLength':0x1},'target':{'type':a287_0x4050df(0x29a),'minLength':0x1},'sourceNodeId':{'type':a287_0x4050df(0x29a),'minLength':0x1},'targetNodeId':{'type':a287_0x4050df(0x29a),'minLength':0x1},'conditionType':{'enum':[a287_0x4050df(0x20c),a287_0x4050df(0x241),a287_0x4050df(0x295),a287_0x4050df(0x284)]},'expression':{'type':'string'},'defaultFlow':{'type':a287_0x4050df(0x22a)},'name':{'type':a287_0x4050df(0x29a)},'waypoints':{'type':'array','items':{'$ref':a287_0x4050df(0x260)}}},'allOf':[{'anyOf':[{'required':['source']},{'required':[a287_0x4050df(0x297)]}]},{'anyOf':[{'required':['target']},{'required':[a287_0x4050df(0x156)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a287_0x4050df(0x29a),'minLength':0x1},'flowDesc':{'type':a287_0x4050df(0x29a)},'flowType':{'enum':['FORM_FLOW',a287_0x4050df(0x152)]},'datasetCode':{'type':a287_0x4050df(0x29a),'minLength':0x1},'pageId':{'type':a287_0x4050df(0x252)},'templateName':![],'flowJson':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1c0),a287_0x4050df(0x1cb)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x4050df(0x29a),'const':'approval.simple-flow.v1','description':'Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.'},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a287_0x4050df(0x183)},'startPageId':![],'startPath':{'type':a287_0x4050df(0x29a),'minLength':0x1},'nodes':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':a287_0x4050df(0x1d1)}},'edges':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':a287_0x4050df(0x1b1)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x4050df(0x2b4),'flowCode','flowName',a287_0x4050df(0x248),a287_0x4050df(0x1d7),a287_0x4050df(0x272),a287_0x4050df(0x23d),a287_0x4050df(0x20f)],REMOVED_ROOT_FIELDS=['id',a287_0x4050df(0x272),a287_0x4050df(0x20f)],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x4050df(0x238),NODE_TYPES=new Set([a287_0x4050df(0x22e),'END',a287_0x4050df(0x291),'CONDITION',a287_0x4050df(0x21d),a287_0x4050df(0x1ec)]),CONDITION_TYPES=new Set([a287_0x4050df(0x20c),a287_0x4050df(0x241),a287_0x4050df(0x295),'EXPRESSION']),APPROVAL_MODES=new Set([a287_0x4050df(0x26c),'ALL',a287_0x4050df(0x187)]),APPROVAL_TASK_MODES=new Set([a287_0x4050df(0x291),a287_0x4050df(0x184)]),FLOW_TIME_UNITS=new Set([a287_0x4050df(0x1ae),a287_0x4050df(0x294),'HOURS',a287_0x4050df(0x15e)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a287_0x4050df(0x16f),a287_0x4050df(0x275),a287_0x4050df(0x1e2)]),FLOW_TYPES=new Set([a287_0x4050df(0x27f),a287_0x4050df(0x152)]),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a287_0x4050df(0x1a6)]),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(['CONTINUE','FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x4050df(0x228),'ROLE',a287_0x4050df(0x25e)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x4050df(0x177)]),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=a287_0x4050df(0x2ad),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x4050df(0x19d),RESERVED_RESULT_VARIABLES=new Set([a287_0x4050df(0x2ae),a287_0x4050df(0x203),'approval_sys_appCode',a287_0x4050df(0x17a),a287_0x4050df(0x180),a287_0x4050df(0x1c8),a287_0x4050df(0x1f9),a287_0x4050df(0x18f),a287_0x4050df(0x273),a287_0x4050df(0x1f4)]);export function normalizeFlowConfig(_0x57a407){const _0x341294=a287_0x4050df;if(!isRecord(_0x57a407))throw new TypeError('FlowConfig\x20must\x20be\x20a\x20JSON\x20object.');const _0x5ac29b=cloneJsonValue(_0x57a407),_0x5eda6b=_0x5ac29b[_0x341294(0x200)],_0xcefde9=isRecord(_0x5eda6b)?cloneJsonValue(_0x5eda6b):{},_0xb4e4f9=[],_0x8fed57=[];for(const _0x3aafb5 of REMOVED_ROOT_FIELDS){if(!Object['prototype']['hasOwnProperty'][_0x341294(0x15c)](_0x5ac29b,_0x3aafb5))continue;delete _0x5ac29b[_0x3aafb5],_0x8fed57[_0x341294(0x1ed)](_0x3aafb5),_0xb4e4f9[_0x341294(0x1ed)]({'code':_0x341294(0x2b3),'path':_0x3aafb5,'message':_0x3aafb5+_0x341294(0x242)});}for(const _0x1ae957 of REMOVED_FLOW_JSON_FIELDS){if(!Object['prototype'][_0x341294(0x27b)][_0x341294(0x15c)](_0xcefde9,_0x1ae957))continue;const _0x452d5a='flowJson.'+_0x1ae957;delete _0xcefde9[_0x1ae957],_0x8fed57[_0x341294(0x1ed)](_0x452d5a),_0xb4e4f9[_0x341294(0x1ed)]({'code':_0x341294(0x2b3),'path':_0x452d5a,'message':_0x452d5a+_0x341294(0x242)});}if(Object[_0x341294(0x281)][_0x341294(0x27b)][_0x341294(0x15c)](_0xcefde9,_0x341294(0x1ba))){const _0x2efd0c=_0xcefde9[_0x341294(0x1ba)],_0x4b66c5=typeof _0x2efd0c==='string'?_0x2efd0c['trim']():_0x2efd0c;if(isEmptyJsonValue(_0x2efd0c)||_0x4b66c5===DEFAULT_FLOW_SCHEMA_VERSION){const _0x195605=_0x341294(0x2ac);delete _0xcefde9[_0x341294(0x1ba)],_0x8fed57['push'](_0x195605),_0xb4e4f9[_0x341294(0x1ed)]({'code':'legacy_field_removed','path':_0x195605,'message':_0x195605+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x341294(0x245)});}}removeEmptyMetadata(_0xcefde9,_0x341294(0x200),_0xb4e4f9,_0x8fed57);_0x5ac29b[_0x341294(0x224)]===_0x341294(0x152)&&!Object[_0x341294(0x281)]['hasOwnProperty'][_0x341294(0x15c)](_0xcefde9,_0x341294(0x22c))&&(_0xcefde9[_0x341294(0x22c)]='CUSTOM_PAGE');_0x5ac29b[_0x341294(0x200)]=_0xcefde9;if(typeof _0x5ac29b[_0x341294(0x1d6)]==='string')_0x5ac29b['flowName']=_0x5ac29b[_0x341294(0x1d6)][_0x341294(0x2bf)]();return{'config':_0x5ac29b,'warnings':_0xb4e4f9,'removedPaths':_0x8fed57};}export function validateFlowConfig(_0x159010){const _0x47c346=a287_0x4050df;let _0xf49239;try{_0xf49239=normalizeFlowConfig(_0x159010);}catch(_0x3885e5){const _0x2019d9=_0x3885e5 instanceof Error?_0x3885e5[_0x47c346(0x226)]:String(_0x3885e5),_0x33b36c={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x2019d9}],'warnings':[],'normalized':_0x33b36c,'validationConfig':_0x33b36c};}const _0x11b532=_0xf49239[_0x47c346(0x250)],_0x305b36=cloneJsonValue(_0x11b532),_0x57cd23=_0x305b36['flowJson'];_0x57cd23[_0x47c346(0x2b4)]=_0x47c346(0x2a1),_0x57cd23['flowName']=_0x11b532[_0x47c346(0x1d6)];typeof _0x11b532[_0x47c346(0x1d7)]===_0x47c346(0x29a)&&_0x11b532[_0x47c346(0x1d7)][_0x47c346(0x2bf)]()&&(_0x57cd23[_0x47c346(0x248)]=_0x11b532['datasetCode'][_0x47c346(0x2bf)]());const _0x315782=[];return validateOuterMetadata(_0x11b532,_0x315782),validateFlowClassification(_0x11b532,_0x315782),validateGraph(_0x11b532['flowJson'],_0x315782),{'valid':_0x315782[_0x47c346(0x28e)]===0x0,'errors':_0x315782,'warnings':_0xf49239[_0x47c346(0x1ac)],'normalized':_0x11b532,'validationConfig':_0x305b36};}function validateFlowClassification(_0x57e8f9,_0x73eff8){const _0x2b27d1=a287_0x4050df;if(!isRecord(_0x57e8f9[_0x2b27d1(0x200)]))return;const _0x5717fe=_0x57e8f9[_0x2b27d1(0x224)],_0x508166=_0x57e8f9[_0x2b27d1(0x200)]['pageMode'];_0x508166!==undefined&&(typeof _0x508166!=='string'||!FLOW_PAGE_MODES[_0x2b27d1(0x1fa)](_0x508166))&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':_0x2b27d1(0x179)+String(_0x508166)+'.'});_0x5717fe===_0x2b27d1(0x27f)&&_0x508166!==undefined&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':_0x2b27d1(0x1a2)});_0x5717fe===_0x2b27d1(0x152)&&_0x508166===_0x2b27d1(0x1a6)&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x5717fe===_0x2b27d1(0x27f)||_0x5717fe===_0x2b27d1(0x152))&&validateCustomPageNavigation(_0x57e8f9,_0x5717fe,_0x508166,_0x73eff8);if(_0x5717fe!=='FORM_FLOW'||!Array[_0x2b27d1(0x186)](_0x57e8f9[_0x2b27d1(0x200)]['nodes']))return;_0x57e8f9[_0x2b27d1(0x200)][_0x2b27d1(0x1c0)][_0x2b27d1(0x1e3)]((_0x16301f,_0x5d3677)=>{const _0x7e2c89=_0x2b27d1;isRecord(_0x16301f)&&_0x16301f[_0x7e2c89(0x1df)]===_0x7e2c89(0x291)&&_0x16301f[_0x7e2c89(0x1af)]==='HANDLE'&&_0x73eff8[_0x7e2c89(0x1ed)]({'path':_0x7e2c89(0x159)+_0x5d3677+'].taskMode','message':'FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.'});});}function validateCustomPageNavigation(_0x4409a6,_0x39e716,_0x1d6f2c,_0x4535e6){const _0x30d8a9=a287_0x4050df,_0x2e09cf=_0x4409a6[_0x30d8a9(0x200)][_0x30d8a9(0x167)];_0x2e09cf!==undefined&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':_0x30d8a9(0x195),'message':_0x30d8a9(0x176)});const _0x1fbc11=_0x4409a6[_0x30d8a9(0x200)][_0x30d8a9(0x225)];_0x1fbc11!==undefined&&(typeof _0x1fbc11!==_0x30d8a9(0x29a)||_0x1fbc11['trim']()==='')&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':_0x30d8a9(0x1a4),'message':_0x30d8a9(0x1ee)});const _0x68dd93=Array[_0x30d8a9(0x186)](_0x4409a6['flowJson']['nodes'])?_0x4409a6['flowJson'][_0x30d8a9(0x1c0)]['map']((_0x357db3,_0x2cc618)=>({'node':_0x357db3,'index':_0x2cc618}))['filter'](({node:_0x351782})=>isRecord(_0x351782)&&_0x351782[_0x30d8a9(0x28a)]!==undefined):[],_0x2a1df9=_0x1fbc11!==undefined||_0x68dd93[_0x30d8a9(0x28e)]>0x0,_0x23c71b=_0x1d6f2c===undefined&&_0x39e716===_0x30d8a9(0x152)?'CUSTOM_PAGE':_0x1d6f2c;_0x2a1df9&&(_0x39e716!==_0x30d8a9(0x152)||_0x23c71b!=='CUSTOM_PAGE')&&(_0x1fbc11!==undefined&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':'flowJson.startPath','message':'startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x68dd93['forEach'](({index:_0x52e055})=>{const _0x58f6fd=_0x30d8a9;_0x4535e6[_0x58f6fd(0x1ed)]({'path':_0x58f6fd(0x159)+_0x52e055+'].path','message':'node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'});}));}export async function writeNormalizedFlowConfig(_0x5c5b7b,_0x43e4eb,_0x5dab23={}){const _0x4f5fd1=a287_0x4050df,_0x2f8d5c=resolve(_0x5c5b7b),_0x6f9016=_0x2f8d5c+'.'+process[_0x4f5fd1(0x232)]+'.'+randomUUID()+_0x4f5fd1(0x1b7),_0x395365=JSON[_0x4f5fd1(0x154)](_0x43e4eb,null,0x2)+'\x0a';let _0x3d8be7;try{try{_0x3d8be7=(await stat(_0x2f8d5c))[_0x4f5fd1(0x1cc)]&0x1ff;}catch{_0x3d8be7=undefined;}await writeFile(_0x6f9016,_0x395365,{'encoding':_0x4f5fd1(0x19c),'flag':'wx','mode':_0x3d8be7??0x1a4});if(_0x3d8be7!==undefined)await chmod(_0x6f9016,_0x3d8be7);_0x5dab23[_0x4f5fd1(0x223)]===![]?(await link(_0x6f9016,_0x2f8d5c),await unlink(_0x6f9016)):await rename(_0x6f9016,_0x2f8d5c);}finally{await unlink(_0x6f9016)[_0x4f5fd1(0x1c2)](()=>undefined);}}function validateOuterMetadata(_0x3c0802,_0xe040fe){const _0x463a50=a287_0x4050df;(typeof _0x3c0802[_0x463a50(0x1d6)]!==_0x463a50(0x29a)||_0x3c0802[_0x463a50(0x1d6)][_0x463a50(0x2bf)]()==='')&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d6),'message':_0x463a50(0x1c6)});_0x3c0802[_0x463a50(0x215)]!==undefined&&typeof _0x3c0802[_0x463a50(0x215)]!==_0x463a50(0x29a)&&_0xe040fe[_0x463a50(0x1ed)]({'path':'flowDesc','message':_0x463a50(0x1fb)});if(_0x3c0802[_0x463a50(0x224)]===undefined||_0x3c0802['flowType']===null)_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x224),'message':_0x463a50(0x205)});else(typeof _0x3c0802[_0x463a50(0x224)]!==_0x463a50(0x29a)||!FLOW_TYPES[_0x463a50(0x1fa)](_0x3c0802[_0x463a50(0x224)]))&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x224),'message':_0x463a50(0x243)+String(_0x3c0802[_0x463a50(0x224)])+'.'});_0x3c0802[_0x463a50(0x1d7)]!==undefined&&typeof _0x3c0802[_0x463a50(0x1d7)]!==_0x463a50(0x29a)&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d7),'message':_0x463a50(0x27d)}),_0x3c0802[_0x463a50(0x23d)]!==undefined&&(!Number['isInteger'](_0x3c0802['pageId'])||_0x3c0802[_0x463a50(0x23d)]<0x0)&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x23d),'message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x3c0802[_0x463a50(0x224)]===_0x463a50(0x152)&&_0x3c0802[_0x463a50(0x1d7)]!==undefined&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d7),'message':_0x463a50(0x28d)}),_0x3c0802['flowType']===_0x463a50(0x152)&&_0x3c0802['pageId']!==undefined&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x23d),'message':_0x463a50(0x2a8)});}function validateGraph(_0x1aa8bc,_0x3a9a5e){const _0x1eee28=a287_0x4050df;if(!isRecord(_0x1aa8bc)){_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x200),'message':'flowJson\x20must\x20be\x20an\x20object.'});return;}!Array[_0x1eee28(0x186)](_0x1aa8bc[_0x1eee28(0x1c0)])&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':'flowJson.nodes','message':_0x1eee28(0x2aa)});!Array['isArray'](_0x1aa8bc[_0x1eee28(0x1cb)])&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':'flowJson.edges','message':_0x1eee28(0x171)});Object[_0x1eee28(0x281)][_0x1eee28(0x27b)][_0x1eee28(0x15c)](_0x1aa8bc,'schemaVersion')&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x2ac),'message':_0x1eee28(0x1cf)+String(_0x1aa8bc[_0x1eee28(0x1ba)])+_0x1eee28(0x271)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x995cd6 of['formSchema','formDefinitions','formPermissions']){Object[_0x1eee28(0x281)][_0x1eee28(0x27b)][_0x1eee28(0x15c)](_0x1aa8bc,_0x995cd6)&&_0x3a9a5e['push']({'path':_0x1eee28(0x18a)+_0x995cd6,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x1eee28(0x186)](_0x1aa8bc[_0x1eee28(0x1c0)])||!Array['isArray'](_0x1aa8bc[_0x1eee28(0x1cb)]))return;const _0x273413=new Map(),_0x729ed=[],_0x1036a5=[],_0x1100d9=new Map(),_0x2c3e29=new Map(),_0x4ef1cf=new Set();let _0x4fa55c=0x0;_0x1aa8bc[_0x1eee28(0x1c0)][_0x1eee28(0x1e3)]((_0x2b4cfc,_0x22d864)=>{const _0x33d582=_0x1eee28,_0xedbde3=_0x33d582(0x159)+_0x22d864+']';if(!isRecord(_0x2b4cfc)){_0x3a9a5e['push']({'path':_0xedbde3,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x4cdd79=_0x2b4cfc;if(typeof _0x4cdd79['id']!=='string'||!BPMN_ID_PATTERN[_0x33d582(0x1aa)](_0x4cdd79['id']))_0x3a9a5e[_0x33d582(0x1ed)]({'path':_0xedbde3+_0x33d582(0x29c),'message':_0x33d582(0x244)});else _0x273413[_0x33d582(0x1fa)](_0x4cdd79['id'])?_0x3a9a5e['push']({'path':_0xedbde3+_0x33d582(0x29c),'message':'Duplicate\x20node\x20id:\x20'+_0x4cdd79['id']+'.'}):(_0x273413[_0x33d582(0x16d)](_0x4cdd79['id'],_0x4cdd79),_0x4ef1cf[_0x33d582(0x259)](_0x4cdd79['id']));if(!NODE_TYPES[_0x33d582(0x1fa)](_0x4cdd79['type']))_0x3a9a5e[_0x33d582(0x1ed)]({'path':_0xedbde3+_0x33d582(0x166),'message':_0x33d582(0x247)+String(_0x4cdd79[_0x33d582(0x1df)])+'.'});else{if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x22e))_0x729ed['push'](_0x4cdd79['id']);else _0x4cdd79[_0x33d582(0x1df)]==='END'&&_0x1036a5['push'](_0x4cdd79['id']);}_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x291)&&(_0x4cdd79['taskMode']===undefined||_0x4cdd79[_0x33d582(0x1af)]===_0x33d582(0x291))&&(_0x4fa55c+=0x1);validateNode(_0x4cdd79,_0xedbde3,_0x3a9a5e);if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x21d)){const _0x59b7d1=resolveEffectiveResultVariable(_0x4cdd79[_0x33d582(0x1e4)],![]);_0x59b7d1&&(registerResultVariableOwner(_0x2c3e29,_0x59b7d1,_0x4cdd79['id'],_0x3a9a5e),!_0x1100d9[_0x33d582(0x1fa)](_0x59b7d1)&&_0x1100d9[_0x33d582(0x16d)](_0x59b7d1,_0x4cdd79['id']));}if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x291)&&isRecord(_0x4cdd79[_0x33d582(0x168)])&&_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x23b)]===!![]&&_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x22f)]===_0x33d582(0x1e2)){const _0x151542=resolveEffectiveResultVariable(_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x1e4)],!![]);_0x151542&&registerResultVariableOwner(_0x2c3e29,_0x151542,_0x4cdd79['id']+_0x33d582(0x218),_0x3a9a5e);}});_0x729ed[_0x1eee28(0x28e)]!==0x1&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x2a9),'message':_0x1eee28(0x1e0)});_0x1036a5[_0x1eee28(0x28e)]===0x0&&_0x3a9a5e['push']({'path':_0x1eee28(0x2a9),'message':_0x1eee28(0x237)});const _0x77f7e8=new Map(),_0x14c30d=new Map(),_0x20577e=new Map(),_0x5f0778=new Set();_0x1aa8bc['edges'][_0x1eee28(0x1e3)]((_0xbdaa05,_0x1c5272)=>{const _0x33b3cf=_0x1eee28,_0x3d4ecd=_0x33b3cf(0x2bc)+_0x1c5272+']';if(!isRecord(_0xbdaa05)){_0x3a9a5e['push']({'path':_0x3d4ecd,'message':_0x33b3cf(0x289)});return;}const _0x132ba9=_0xbdaa05;_0x20577e[_0x33b3cf(0x16d)](_0x132ba9,_0x3d4ecd);const _0x40dc4f=resolveEdgeEndpoint(_0x132ba9[_0x33b3cf(0x20d)],_0x132ba9[_0x33b3cf(0x297)]),_0x49d8fa=resolveEdgeEndpoint(_0x132ba9[_0x33b3cf(0x1b9)],_0x132ba9[_0x33b3cf(0x156)]);if(!_0x40dc4f)_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.source','message':_0x33b3cf(0x1ea)});if(!_0x49d8fa)_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.target','message':_0x33b3cf(0x1cd)});_0x40dc4f&&!_0x273413[_0x33b3cf(0x1fa)](_0x40dc4f)&&_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+_0x33b3cf(0x181),'message':_0x33b3cf(0x178)+_0x40dc4f+'.'});_0x49d8fa&&!_0x273413[_0x33b3cf(0x1fa)](_0x49d8fa)&&_0x3a9a5e['push']({'path':_0x3d4ecd+'.target','message':_0x33b3cf(0x24f)+_0x49d8fa+'.'});if(_0x132ba9['id']!==undefined){if(typeof _0x132ba9['id']!==_0x33b3cf(0x29a)||!BPMN_ID_PATTERN[_0x33b3cf(0x1aa)](_0x132ba9['id']))_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.id','message':_0x33b3cf(0x201)});else{if(_0x4ef1cf['has'](_0x132ba9['id']))_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.id','message':_0x33b3cf(0x1a9)+_0x132ba9['id']+'.'});else!_0x4ef1cf['has'](_0x132ba9['id'])&&_0x4ef1cf[_0x33b3cf(0x259)](_0x132ba9['id']);}}if(_0x40dc4f&&_0x49d8fa){const _0x4f8aab=_0x40dc4f+'\x00'+_0x49d8fa+'\x00'+(_0x132ba9[_0x33b3cf(0x207)]??_0x33b3cf(0x20c));_0x5f0778['has'](_0x4f8aab)?_0x3a9a5e['push']({'path':_0x3d4ecd,'message':_0x33b3cf(0x1ab)+_0x40dc4f+_0x33b3cf(0x1c3)+_0x49d8fa+'\x20('+(_0x132ba9[_0x33b3cf(0x207)]??_0x33b3cf(0x20c))+').'}):_0x5f0778['add'](_0x4f8aab);}validateEdge(_0x132ba9,_0x3d4ecd,_0x3a9a5e),_0x40dc4f&&_0x49d8fa&&(_0x77f7e8[_0x33b3cf(0x23e)](_0x40dc4f)?.[_0x33b3cf(0x1ed)](_0x132ba9)??_0x77f7e8[_0x33b3cf(0x16d)](_0x40dc4f,[_0x132ba9]),_0x14c30d[_0x33b3cf(0x23e)](_0x49d8fa)?.['push'](_0x132ba9)??_0x14c30d['set'](_0x49d8fa,[_0x132ba9]));});if(_0x729ed['length']!==0x1)return;validateGraphShape(_0x273413,_0x729ed[0x0],_0x1036a5,_0x77f7e8,_0x14c30d,_0x20577e,_0x3a9a5e),validateScriptResultReferences(_0x273413,_0x729ed[0x0],_0x77f7e8,_0x14c30d,_0x20577e,_0x1100d9,_0x3a9a5e),validateApprovalResults(_0x273413,_0x4fa55c,_0x1036a5,_0x3a9a5e);}function validateNode(_0x4a243b,_0x5931ed,_0x4b0bae){const _0xfebd41=a287_0x4050df;for(const _0x718b57 of['form',_0xfebd41(0x28f)]){Object[_0xfebd41(0x281)][_0xfebd41(0x27b)][_0xfebd41(0x15c)](_0x4a243b,_0x718b57)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+'.'+_0x718b57,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES['has'](_0x4a243b[_0xfebd41(0x1df)]))return;(typeof _0x4a243b['name']!=='string'||_0x4a243b[_0xfebd41(0x1ad)][_0xfebd41(0x2bf)]()==='')&&_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x265),'message':_0xfebd41(0x190)});_0x4a243b[_0xfebd41(0x23d)]!==undefined&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x209),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x4a243b[_0xfebd41(0x28a)]!==undefined){if(typeof _0x4a243b[_0xfebd41(0x28a)]!==_0xfebd41(0x29a)||_0x4a243b[_0xfebd41(0x28a)][_0xfebd41(0x2bf)]()==='')_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a4),'message':_0xfebd41(0x26d)});else _0x4a243b['type']!==_0xfebd41(0x291)&&_0x4a243b[_0xfebd41(0x1df)]!==_0xfebd41(0x292)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a4),'message':_0xfebd41(0x2a3)});}const _0x1b397f=_0x4a243b[_0xfebd41(0x1d2)];if(!isRecord(_0x1b397f))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x1fd),'message':_0xfebd41(0x282)});else for(const _0x26c60f of['x','y']){const _0x52e647=_0x1b397f[_0x26c60f];(typeof _0x52e647!==_0xfebd41(0x1b5)||!Number['isFinite'](_0x52e647)||_0x52e647<0x0)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x277)+_0x26c60f,'message':_0xfebd41(0x1de)+_0x26c60f+_0xfebd41(0x160)});}if(_0x4a243b[_0xfebd41(0x1df)]===_0xfebd41(0x291)){const _0xc100cb=_0x4a243b['approvalMode']??'SINGLE',_0x4d0eef=_0x4a243b[_0xfebd41(0x1af)]??_0xfebd41(0x291);!APPROVAL_TASK_MODES[_0xfebd41(0x1fa)](_0x4d0eef)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a6),'message':_0xfebd41(0x193)+String(_0x4d0eef)+'.'});!APPROVAL_MODES[_0xfebd41(0x1fa)](_0xc100cb)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x18b),'message':_0xfebd41(0x264)+String(_0xc100cb)+'.'});if(!isRecord(_0x4a243b[_0xfebd41(0x211)]))_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x1bb),'message':'APPROVAL\x20node\x20requires\x20assignee.'});else{const _0x37cf86=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x1d8)];_0x37cf86!=='FIXED'&&_0x37cf86!==_0xfebd41(0x1f7)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x15a),'message':_0xfebd41(0x1a7)});if(_0x37cf86===_0xfebd41(0x158)){const _0x594402=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x1d4)];if(!Array[_0xfebd41(0x186)](_0x594402)||_0x594402['length']===0x0)_0x4b0bae['push']({'path':_0x5931ed+'.assignee.userIds','message':'FIXED\x20assignee\x20requires\x20userIds.'});else{const _0x1401f6=_0x594402[_0xfebd41(0x1b8)](_0x9f385b=>!isValidUserId(_0x9f385b));_0x1401f6>=0x0&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x199)+_0x1401f6+']','message':_0xfebd41(0x15d)});const _0x9a0f2a=new Set(_0x594402[_0xfebd41(0x20b)](isValidUserId)['map'](_0x402237=>String(_0x402237)[_0xfebd41(0x2bf)]()));_0xc100cb===_0xfebd41(0x26c)&&_0x9a0f2a[_0xfebd41(0x1d5)]>0x1&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x182),'message':_0xfebd41(0x2bb)});}}if(_0x37cf86===_0xfebd41(0x1f7)){const _0x5dc415=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x24c)],_0x5316a9=typeof _0x5dc415==='number'||typeof _0x5dc415===_0xfebd41(0x29a)?Number(String(_0x5dc415)[_0xfebd41(0x2bf)]()):Number[_0xfebd41(0x24b)];(!Number[_0xfebd41(0x1ca)](_0x5316a9)||_0x5316a9<=0x0)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x27c),'message':_0xfebd41(0x1d3)});}}if(_0x4a243b[_0xfebd41(0x1f0)]!==undefined){if(!isRecord(_0x4a243b['transferCandidates']))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x20e),'message':_0xfebd41(0x1b6)});else{if(_0x4a243b[_0xfebd41(0x1f0)][_0xfebd41(0x1d8)]!=='FIXED')_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x17e),'message':_0xfebd41(0x1ff)});else{const _0x31dfc4=_0x4a243b[_0xfebd41(0x1f0)][_0xfebd41(0x1d4)];if(!Array[_0xfebd41(0x186)](_0x31dfc4)||_0x31dfc4[_0xfebd41(0x28e)]===0x0)_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2ba),'message':_0xfebd41(0x23f)});else{const _0x4d0008=_0x31dfc4[_0xfebd41(0x1b8)](_0x43d070=>!isValidUserId(_0x43d070));_0x4d0008>=0x0&&_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x287)+_0x4d0008+']','message':_0xfebd41(0x29b)});}}}}}_0x4a243b[_0xfebd41(0x198)]!==undefined&&typeof _0x4a243b['sequential']!==_0xfebd41(0x22a)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x258),'message':_0xfebd41(0x1b2)});if(_0x4a243b[_0xfebd41(0x1df)]===_0xfebd41(0x21d)){(typeof _0x4a243b[_0xfebd41(0x1ce)]!==_0xfebd41(0x29a)||_0x4a243b[_0xfebd41(0x1ce)]['trim']()==='')&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2b9),'message':_0xfebd41(0x236)});if(_0x4a243b['resultVariable']!==undefined){if(typeof _0x4a243b[_0xfebd41(0x1e4)]!==_0xfebd41(0x29a)||!VARIABLE_PATTERN[_0xfebd41(0x1aa)](_0x4a243b['resultVariable']))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x153),'message':_0xfebd41(0x29f)});else(RESERVED_RESULT_VARIABLES[_0xfebd41(0x1fa)](_0x4a243b['resultVariable'])||_0x4a243b['resultVariable']['startsWith']('approval_sys_'))&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+'.resultVariable','message':_0xfebd41(0x15f)+_0x4a243b['resultVariable']+'.'});}}validateAsyncExecution(_0x4a243b,_0x5931ed,_0x4b0bae),validateApprovalTimeout(_0x4a243b,_0x5931ed,_0x4b0bae),validateCcConfig(_0x4a243b,_0x5931ed,_0x4b0bae),_0x4a243b['type']==='NOTIFICATION'&&validateNotificationConfig(_0x4a243b[_0xfebd41(0x250)],_0x5931ed+_0xfebd41(0x26b),_0x4b0bae);}function validateAsyncExecution(_0x562c13,_0x324735,_0x4bcf8b){const _0x2400e9=a287_0x4050df;if(_0x562c13[_0x2400e9(0x164)]===undefined)return;if(!isRecord(_0x562c13[_0x2400e9(0x164)])){_0x4bcf8b[_0x2400e9(0x1ed)]({'path':_0x324735+_0x2400e9(0x235),'message':_0x2400e9(0x1b3)});return;}if(_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==undefined&&typeof _0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==_0x2400e9(0x22a)){_0x4bcf8b['push']({'path':_0x324735+_0x2400e9(0x219),'message':_0x2400e9(0x296)});return;}if(_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==!![])return;_0x562c13['type']!==_0x2400e9(0x21d)&&_0x4bcf8b['push']({'path':_0x324735+'.async','message':_0x2400e9(0x239)});const _0x19b9df=_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x270)]??0x3;(!Number['isInteger'](_0x19b9df)||_0x19b9df<0x1||_0x19b9df>MAX_ASYNC_RETRY_COUNT)&&_0x4bcf8b[_0x2400e9(0x1ed)]({'path':_0x324735+_0x2400e9(0x24d),'message':_0x2400e9(0x17c)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x562c13['async'][_0x2400e9(0x170)]!==undefined&&validateTimeAmount(_0x562c13['async']['retryInterval'],_0x324735+_0x2400e9(0x269),_0x4bcf8b);}function validateApprovalTimeout(_0x356be2,_0x296576,_0x2a7f43){const _0x25860f=a287_0x4050df;if(_0x356be2[_0x25860f(0x168)]===undefined)return;if(!isRecord(_0x356be2['timeout'])){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout','message':_0x25860f(0x1c4)});return;}if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!==undefined&&typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!=='boolean'){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x266),'message':_0x25860f(0x204)});return;}if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!==!![])return;if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x254)]!==undefined&&typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x254)]!=='boolean'){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout.interrupting','message':_0x25860f(0x1da)});return;}_0x356be2[_0x25860f(0x1df)]!==_0x25860f(0x291)&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x218),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x356be2[_0x25860f(0x168)]['duration'],_0x296576+_0x25860f(0x1a8),_0x2a7f43);const _0x543d87=_0x356be2[_0x25860f(0x168)]['action'];if(!APPROVAL_TIMEOUT_ACTIONS[_0x25860f(0x1fa)](_0x543d87)){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x191),'message':_0x25860f(0x27a)});return;}(_0x356be2['taskMode']??'APPROVAL')===_0x25860f(0x184)&&_0x543d87!==_0x25860f(0x1e2)&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x191),'message':_0x25860f(0x25a)});const _0x46d31e=_0x356be2[_0x25860f(0x168)]['interrupting']??_0x543d87!==_0x25860f(0x1e2);if(_0x543d87===_0x25860f(0x1e2))_0x46d31e&&_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout.interrupting','message':'EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.'}),(typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x1ce)]!==_0x25860f(0x29a)||_0x356be2[_0x25860f(0x168)]['scriptName'][_0x25860f(0x2bf)]()==='')&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x256),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x356be2[_0x25860f(0x168)][_0x25860f(0x1e4)],_0x296576+_0x25860f(0x2b5),_0x2a7f43);else!_0x46d31e&&_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x161),'message':_0x543d87+_0x25860f(0x22b)});}function validateTimeAmount(_0x3c5083,_0x22b165,_0x54d0d4){const _0x229d1b=a287_0x4050df;if(!isRecord(_0x3c5083)){_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165,'message':_0x229d1b(0x1a5)});return;}(!Number[_0x229d1b(0x274)](_0x3c5083[_0x229d1b(0x1b0)])||Number(_0x3c5083[_0x229d1b(0x1b0)])<=0x0)&&_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165+'.value','message':_0x229d1b(0x278)}),!FLOW_TIME_UNITS[_0x229d1b(0x1fa)](_0x3c5083[_0x229d1b(0x1bd)])&&_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165+_0x229d1b(0x208),'message':_0x229d1b(0x233)});}function validateOptionalResultVariable(_0x560631,_0xcd1311,_0x18c66b){const _0x37a99b=a287_0x4050df;if(_0x560631===undefined||_0x560631===null||_0x560631==='')return;if(typeof _0x560631!=='string'||!VARIABLE_PATTERN[_0x37a99b(0x1aa)](_0x560631))_0x18c66b[_0x37a99b(0x1ed)]({'path':_0xcd1311,'message':_0x37a99b(0x29f)});else(RESERVED_RESULT_VARIABLES[_0x37a99b(0x1fa)](_0x560631)||_0x560631['startsWith'](_0x37a99b(0x220)))&&_0x18c66b['push']({'path':_0xcd1311,'message':_0x37a99b(0x15f)+_0x560631+'.'});}function validateCcConfig(_0x1e001f,_0x11d8be,_0x308dd0){const _0x1c44c3=a287_0x4050df;if(_0x1e001f['cc']===undefined)return;if(!isRecord(_0x1e001f['cc'])){_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x299),'message':_0x1c44c3(0x2be)});return;}_0x1e001f[_0x1c44c3(0x1df)]!==_0x1c44c3(0x292)&&_0x1e001f[_0x1c44c3(0x1df)]!==_0x1c44c3(0x291)&&_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x299),'message':_0x1c44c3(0x1ef)});Object[_0x1c44c3(0x281)]['hasOwnProperty']['call'](_0x1e001f['cc'],'readSources')&&_0x308dd0['push']({'path':_0x11d8be+_0x1c44c3(0x1e7),'message':UNSUPPORTED_FORM_MESSAGE});const _0x2d9631=_0x1e001f['cc'][_0x1c44c3(0x1e6)];if(!Array['isArray'](_0x2d9631)||_0x2d9631['length']===0x0)_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x188),'message':'cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.'});else{_0x2d9631[_0x1c44c3(0x28e)]>MAX_CC_RECIPIENTS&&_0x308dd0['push']({'path':_0x11d8be+_0x1c44c3(0x188),'message':_0x1c44c3(0x2ab)+MAX_CC_RECIPIENTS+_0x1c44c3(0x189)});const _0xbabcea=new Set();_0x2d9631[_0x1c44c3(0x1e3)]((_0x9f8311,_0x135d93)=>{const _0x4abd7b=_0x1c44c3;if(typeof _0x9f8311!==_0x4abd7b(0x29a)||_0x9f8311['trim']()==='')_0x308dd0[_0x4abd7b(0x1ed)]({'path':_0x11d8be+_0x4abd7b(0x1c7)+_0x135d93+']','message':_0x4abd7b(0x21b)});else _0xbabcea[_0x4abd7b(0x1fa)](_0x9f8311['trim']())?_0x308dd0[_0x4abd7b(0x1ed)]({'path':_0x11d8be+'.cc.recipientUserIds['+_0x135d93+']','message':_0x4abd7b(0x157)+_0x9f8311[_0x4abd7b(0x2bf)]()+'.'}):_0xbabcea['add'](_0x9f8311[_0x4abd7b(0x2bf)]());});}validateStringArray(_0x1e001f['cc'][_0x1c44c3(0x1c1)],_0x11d8be+_0x1c44c3(0x175),_0x308dd0);}function validateStringArray(_0x7af822,_0x16fc1d,_0x5db98e){const _0x11165d=a287_0x4050df;if(_0x7af822===undefined)return;if(!Array[_0x11165d(0x186)](_0x7af822)){_0x5db98e[_0x11165d(0x1ed)]({'path':_0x16fc1d,'message':_0x11165d(0x210)});return;}const _0x483027=new Set();_0x7af822[_0x11165d(0x1e3)]((_0x364fcc,_0x405a18)=>{const _0x4281ec=_0x11165d;if(typeof _0x364fcc!==_0x4281ec(0x29a)||_0x364fcc['trim']()==='')_0x5db98e[_0x4281ec(0x1ed)]({'path':_0x16fc1d+'['+_0x405a18+']','message':_0x4281ec(0x19b)});else _0x483027[_0x4281ec(0x1fa)](_0x364fcc[_0x4281ec(0x2bf)]())?_0x5db98e[_0x4281ec(0x1ed)]({'path':_0x16fc1d+'['+_0x405a18+']','message':_0x4281ec(0x18e)+_0x364fcc['trim']()+'.'}):_0x483027[_0x4281ec(0x259)](_0x364fcc[_0x4281ec(0x2bf)]());});}function validateNotificationConfig(_0x27ceeb,_0x1db262,_0x496180){const _0x471568=a287_0x4050df;if(!isRecord(_0x27ceeb)){_0x496180[_0x471568(0x1ed)]({'path':_0x1db262,'message':_0x471568(0x1f1)});return;}if(_0x27ceeb[_0x471568(0x196)]!==undefined&&_0x27ceeb['version']!==null){if(typeof _0x27ceeb[_0x471568(0x196)]!==_0x471568(0x29a))_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x17f),'message':_0x471568(0x185)});else _0x27ceeb[_0x471568(0x196)][_0x471568(0x2bf)]()&&_0x27ceeb['version'][_0x471568(0x2bf)]()!=='v1'&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+'.version','message':'Unsupported\x20notification\x20version:\x20'+_0x27ceeb[_0x471568(0x196)]+'.'});}const _0x4cf92b=requireNotificationString(_0x27ceeb[_0x471568(0x2a0)],_0x1db262+_0x471568(0x26a),_0x471568(0x213),_0x496180);_0x4cf92b?.[_0x471568(0x21c)]('${')&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x26a),'message':_0x471568(0x227)});if(_0x27ceeb[_0x471568(0x1f5)]!==undefined&&_0x27ceeb['failurePolicy']!==null){if(typeof _0x27ceeb['failurePolicy']!=='string')_0x496180['push']({'path':_0x1db262+'.failurePolicy','message':_0x471568(0x26f)});else!NOTIFICATION_FAILURE_POLICIES[_0x471568(0x1fa)](_0x27ceeb[_0x471568(0x1f5)][_0x471568(0x2bf)]()[_0x471568(0x2a2)]())&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+'.failurePolicy','message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x27ceeb['template'])?_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x231),'message':_0x471568(0x293)}):validateNotificationTemplate(_0x27ceeb[_0x471568(0x165)],_0x1db262+'.template',_0x496180),validateNotificationRecipients(_0x27ceeb[_0x471568(0x283)],_0x1db262+_0x471568(0x214),_0x496180);}function validateNotificationTemplate(_0xb706f9,_0x3a3452,_0x765113){const _0x4e1bad=a287_0x4050df;for(const _0x1fe815 of[_0x4e1bad(0x1c9),_0x4e1bad(0x216)]){const _0x53d795=requireNotificationString(_0xb706f9[_0x1fe815],_0x3a3452+'.'+_0x1fe815,_0x4e1bad(0x17d)+_0x1fe815+_0x4e1bad(0x28b),_0x765113);if(_0x53d795)validateNotificationPlaceholders(_0x53d795,_0x3a3452+'.'+_0x1fe815,_0x765113);}_0xb706f9[_0x4e1bad(0x285)]!==undefined&&_0xb706f9['detailMarkdown']!==null&&(typeof _0xb706f9[_0x4e1bad(0x285)]!=='string'?_0x765113[_0x4e1bad(0x1ed)]({'path':_0x3a3452+'.detailMarkdown','message':_0x4e1bad(0x162)}):validateNotificationPlaceholders(_0xb706f9['detailMarkdown'],_0x3a3452+_0x4e1bad(0x261),_0x765113)),validateNotificationFacts(_0xb706f9[_0x4e1bad(0x2b0)],_0x3a3452+_0x4e1bad(0x1a3),_0x765113),validateNotificationActions(_0xb706f9[_0x4e1bad(0x1eb)],_0x3a3452+_0x4e1bad(0x21f),_0x765113);}function validateNotificationFacts(_0x117196,_0x1473fd,_0xa14372){const _0x127a92=a287_0x4050df;if(_0x117196===undefined||_0x117196===null)return;if(!Array[_0x127a92(0x186)](_0x117196)){_0xa14372[_0x127a92(0x1ed)]({'path':_0x1473fd,'message':'Notification\x20template.facts\x20must\x20be\x20an\x20array.'});return;}_0x117196[_0x127a92(0x28e)]>MAX_NOTIFICATION_FACTS&&_0xa14372['push']({'path':_0x1473fd,'message':_0x127a92(0x212)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x117196[_0x127a92(0x1e3)]((_0x5da81,_0x142f95)=>{const _0x16bdf2=_0x127a92,_0x1f1402=_0x1473fd+'['+_0x142f95+']';if(!isRecord(_0x5da81)){_0xa14372[_0x16bdf2(0x1ed)]({'path':_0x1f1402,'message':_0x16bdf2(0x1a0)});return;}for(const _0x243124 of[_0x16bdf2(0x255),_0x16bdf2(0x1b0)]){const _0x5061db=requireNotificationString(_0x5da81[_0x243124],_0x1f1402+'.'+_0x243124,'Notification\x20fact.'+_0x243124+_0x16bdf2(0x28b),_0xa14372);_0x5061db&&validateNotificationPlaceholders(_0x5061db,_0x1f1402+'.'+_0x243124,_0xa14372);}});}function validateNotificationActions(_0x17b4e2,_0x58bbb6,_0x62ba45){const _0x3315e2=a287_0x4050df;if(_0x17b4e2===undefined||_0x17b4e2===null)return;if(!Array[_0x3315e2(0x186)](_0x17b4e2)){_0x62ba45['push']({'path':_0x58bbb6,'message':_0x3315e2(0x2b1)});return;}_0x17b4e2['length']>MAX_NOTIFICATION_ACTIONS&&_0x62ba45['push']({'path':_0x58bbb6,'message':_0x3315e2(0x212)+MAX_NOTIFICATION_ACTIONS+_0x3315e2(0x26e)}),_0x17b4e2[_0x3315e2(0x1e3)]((_0x57c4d9,_0x14f4b6)=>{const _0x450bc2=_0x3315e2,_0xaab032=_0x58bbb6+'['+_0x14f4b6+']';if(!isRecord(_0x57c4d9)){_0x62ba45[_0x450bc2(0x1ed)]({'path':_0xaab032,'message':'Notification\x20action\x20must\x20be\x20an\x20object.'});return;}const _0x2ed115=requireNotificationString(_0x57c4d9[_0x450bc2(0x288)],_0xaab032+_0x450bc2(0x286),_0x450bc2(0x253),_0x62ba45);if(_0x2ed115)validateNotificationPlaceholders(_0x2ed115,_0xaab032+_0x450bc2(0x286),_0x62ba45);const _0x138951=requireNotificationString(_0x57c4d9[_0x450bc2(0x16b)],_0xaab032+_0x450bc2(0x19e),'Notification\x20action.url\x20is\x20required.',_0x62ba45);if(!_0x138951)return;validateNotificationPlaceholders(_0x138951,_0xaab032+_0x450bc2(0x19e),_0x62ba45),!/^https?:\/\//i['test'](_0x138951)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x450bc2(0x1aa)](_0x138951)&&_0x62ba45['push']({'path':_0xaab032+_0x450bc2(0x19e),'message':_0x450bc2(0x155)});});}function validateNotificationRecipients(_0x5a2b26,_0x4f7f4c,_0x3561de){const _0xb24967=a287_0x4050df;if(_0x5a2b26===undefined||_0x5a2b26===null)return;if(!Array['isArray'](_0x5a2b26)){_0x3561de[_0xb24967(0x1ed)]({'path':_0x4f7f4c,'message':_0xb24967(0x29d)});return;}let _0x5025c4=![];_0x5a2b26['forEach']((_0x52ff25,_0x1d15b2)=>{const _0x3585d3=_0xb24967,_0x548ac6=_0x4f7f4c+'['+_0x1d15b2+']';if(!isRecord(_0x52ff25)){_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6,'message':_0x3585d3(0x151)});return;}const _0x53d34a=requireNotificationString(_0x52ff25['type'],_0x548ac6+_0x3585d3(0x166),_0x3585d3(0x1c5),_0x3561de);_0x53d34a&&!NOTIFICATION_RECIPIENT_TYPES['has'](_0x53d34a[_0x3585d3(0x2a2)]())&&_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x166),'message':_0x3585d3(0x192)});let _0x1992be='TO';_0x52ff25['role']!==undefined&&_0x52ff25['role']!==null&&(typeof _0x52ff25[_0x3585d3(0x1a1)]!==_0x3585d3(0x29a)?(_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x173),'message':_0x3585d3(0x2af)}),_0x1992be=''):(_0x1992be=_0x52ff25['role'][_0x3585d3(0x2bf)]()[_0x3585d3(0x2a2)](),!NOTIFICATION_RECIPIENT_ROLES[_0x3585d3(0x1fa)](_0x1992be)&&_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x173),'message':_0x3585d3(0x1e9)})));if(_0x1992be==='TO')_0x5025c4=!![];const _0x559322=requireNotificationString(_0x52ff25['value'],_0x548ac6+_0x3585d3(0x1f2),_0x3585d3(0x23a),_0x3561de);_0x559322&&validateNotificationPlaceholders(_0x559322,_0x548ac6+_0x3585d3(0x1f2),_0x3561de);}),_0x5a2b26[_0xb24967(0x28e)]>0x0&&!_0x5025c4&&_0x3561de['push']({'path':_0x4f7f4c,'message':'Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.'});}function requireNotificationString(_0x18513b,_0x25c1fe,_0x233a8d,_0x5d04b7){const _0x34acda=a287_0x4050df;if(typeof _0x18513b!==_0x34acda(0x29a)||_0x18513b[_0x34acda(0x2bf)]()==='')return _0x5d04b7['push']({'path':_0x25c1fe,'message':_0x233a8d}),undefined;return _0x18513b['trim']();}function validateNotificationPlaceholders(_0x266e97,_0x233c94,_0x1433f8){const _0x2afd06=a287_0x4050df;for(const _0x7185cd of _0x266e97[_0x2afd06(0x25b)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0xcbd433=_0x7185cd[0x1]?.[_0x2afd06(0x2bf)]()??'',_0x1f2bc4=_0xcbd433[_0x2afd06(0x257)]('.'),_0x582c46=_0x1f2bc4>=0x0?_0xcbd433[_0x2afd06(0x246)](0x0,_0x1f2bc4):_0xcbd433,_0x2b2559=_0x1f2bc4>=0x0?_0xcbd433[_0x2afd06(0x246)](_0x1f2bc4+0x1)[_0x2afd06(0x2bf)]():'';(![_0x2afd06(0x2a5),'context',_0x2afd06(0x1e5)][_0x2afd06(0x21c)](_0x582c46)||_0x2b2559==='')&&_0x1433f8[_0x2afd06(0x1ed)]({'path':_0x233c94,'message':'Unsupported\x20notification\x20placeholder:\x20'+_0x7185cd[0x0]+'.'});}_0x266e97[_0x2afd06(0x2a7)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x2afd06(0x21c)]('${')&&_0x1433f8['push']({'path':_0x233c94,'message':'Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.'});}function validateEdge(_0x476416,_0x543774,_0x1a8787){const _0x244c89=a287_0x4050df;_0x476416['name']!==undefined&&typeof _0x476416[_0x244c89(0x1ad)]!=='string'&&_0x1a8787['push']({'path':_0x543774+_0x244c89(0x265),'message':'edge\x20name\x20must\x20be\x20a\x20string.'}),_0x476416[_0x244c89(0x1f8)]!==undefined&&typeof _0x476416['defaultFlow']!==_0x244c89(0x22a)&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x15b),'message':'defaultFlow\x20must\x20be\x20a\x20boolean.'}),_0x476416[_0x244c89(0x2b8)]!==undefined&&(!Array[_0x244c89(0x186)](_0x476416[_0x244c89(0x2b8)])?_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x2b7),'message':_0x244c89(0x18c)}):_0x476416[_0x244c89(0x2b8)]['forEach']((_0x38ef33,_0x5f475e)=>{const _0x44682d=_0x244c89;if(!isRecord(_0x38ef33)){_0x1a8787[_0x44682d(0x1ed)]({'path':_0x543774+_0x44682d(0x240)+_0x5f475e+']','message':_0x44682d(0x19a)});return;}for(const _0xcdbae of['x','y']){const _0x1cc917=_0x38ef33[_0xcdbae];(typeof _0x1cc917!==_0x44682d(0x1b5)||!Number['isFinite'](_0x1cc917))&&_0x1a8787['push']({'path':_0x543774+_0x44682d(0x240)+_0x5f475e+'].'+_0xcdbae,'message':_0x44682d(0x2b6)+_0xcdbae+_0x44682d(0x1dd)});}})),_0x476416['conditionType']!==undefined&&!CONDITION_TYPES[_0x244c89(0x1fa)](_0x476416[_0x244c89(0x207)])&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+'.conditionType','message':_0x244c89(0x18d)+String(_0x476416[_0x244c89(0x207)])+'.'}),_0x476416[_0x244c89(0x207)]===_0x244c89(0x284)&&(typeof _0x476416['expression']!==_0x244c89(0x29a)||_0x476416['expression'][_0x244c89(0x2bf)]()==='')&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+'.expression','message':_0x244c89(0x276)}),_0x476416[_0x244c89(0x1f8)]===!![]&&_0x476416[_0x244c89(0x207)]!=='ALWAYS'&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x15b),'message':_0x244c89(0x2b2)}),_0x476416['defaultFlow']===!![]&&typeof _0x476416[_0x244c89(0x1be)]==='string'&&_0x476416[_0x244c89(0x1be)][_0x244c89(0x2bf)]()!==''&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x290),'message':_0x244c89(0x194)});}function validateGraphShape(_0x4815c7,_0x169d8f,_0x1fc7ba,_0x29a3f6,_0x12eb4d,_0x1dc437,_0x544ed7){const _0x490976=a287_0x4050df;for(const [_0x27ded6,_0x5d3aa8]of _0x4815c7){const _0x1c6652=_0x12eb4d['get'](_0x27ded6)??[],_0x5ab833=_0x29a3f6[_0x490976(0x23e)](_0x27ded6)??[];_0x5d3aa8['type']!=='START'&&_0x1c6652['length']===0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x280)});_0x5d3aa8[_0x490976(0x1df)]!==_0x490976(0x292)&&_0x5ab833[_0x490976(0x28e)]===0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x172)});_0x5d3aa8[_0x490976(0x1df)]===_0x490976(0x22e)&&_0x1c6652[_0x490976(0x28e)]>0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x222)});_0x5d3aa8[_0x490976(0x1df)]==='END'&&_0x5ab833[_0x490976(0x28e)]>0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x1f6)});if(_0x5d3aa8[_0x490976(0x1df)]===_0x490976(0x1bc)){_0x5ab833[_0x490976(0x28e)]<0x2&&_0x544ed7['push']({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x16c)});const _0x463ab5=_0x5ab833[_0x490976(0x20b)](_0x2f790f=>_0x2f790f[_0x490976(0x1f8)]===!![]);_0x463ab5[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x1d0)});if(_0x463ab5['length']===0x1){const _0x173d33=_0x463ab5[0x0],_0x177b1a=_0x1dc437[_0x490976(0x23e)](_0x173d33)??_0x490976(0x28c);_0x173d33[_0x490976(0x207)]!=='ALWAYS'&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x177b1a+_0x490976(0x23c),'message':_0x490976(0x25f)});_0x173d33[_0x490976(0x1be)]!==undefined&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x177b1a+'.expression','message':_0x490976(0x169)});for(const _0x244119 of _0x5ab833){if(_0x244119===_0x173d33)continue;const _0x4277ca=_0x1dc437[_0x490976(0x23e)](_0x244119)??'flowJson.edges';if(_0x244119[_0x490976(0x207)]!=='EXPRESSION')_0x544ed7[_0x490976(0x1ed)]({'path':_0x4277ca+_0x490976(0x23c),'message':_0x490976(0x24e)});else(typeof _0x244119[_0x490976(0x1be)]!==_0x490976(0x29a)||_0x244119['expression'][_0x490976(0x2bf)]()==='')&&_0x544ed7['push']({'path':_0x4277ca+_0x490976(0x290),'message':_0x490976(0x1fe)});}}}if(_0x5d3aa8['type']==='APPROVAL'&&(_0x5d3aa8['taskMode']??_0x490976(0x291))===_0x490976(0x184)){if(_0x5ab833[_0x490976(0x28e)]!==0x1)_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x17b)});else{const _0x4f58ec=_0x5ab833[0x0];((_0x4f58ec[_0x490976(0x207)]??_0x490976(0x20c))!==_0x490976(0x20c)||_0x4f58ec['defaultFlow']===!![]||typeof _0x4f58ec[_0x490976(0x1be)]==='string'&&_0x4f58ec['expression']['trim']()!=='')&&_0x544ed7['push']({'path':_0x1dc437['get'](_0x4f58ec)??_0x490976(0x28c),'message':_0x490976(0x25c)});}}else{if(_0x5d3aa8['type']===_0x490976(0x291)){const _0x2162d1=_0x5ab833['map'](_0x3845e2=>_0x3845e2['conditionType']??'ALWAYS'),_0x3664fa=_0x2162d1['filter'](_0x1e587f=>_0x1e587f!==_0x490976(0x241)&&_0x1e587f!==_0x490976(0x295));_0x3664fa[_0x490976(0x28e)]>0x0&&_0x544ed7['push']({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.'}),_0x2162d1[_0x490976(0x20b)](_0x1de8b5=>_0x1de8b5===_0x490976(0x241))[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x2162d1[_0x490976(0x20b)](_0x52d174=>_0x52d174==='REJECTED')[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x251)}),_0x5ab833[_0x490976(0x174)](_0x12ab41=>_0x12ab41[_0x490976(0x1f8)]===!![])&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.'});}}}const _0x2f75c3=new Set(),_0x1b929d=_0xc02850=>{const _0x5766b9=_0x490976;if(_0x2f75c3[_0x5766b9(0x1fa)](_0xc02850))return;_0x2f75c3[_0x5766b9(0x259)](_0xc02850);for(const _0x2ca981 of _0x29a3f6['get'](_0xc02850)??[]){const _0x2555dc=resolveEdgeEndpoint(_0x2ca981[_0x5766b9(0x1b9)],_0x2ca981['targetNodeId']);if(_0x2555dc&&_0x4815c7[_0x5766b9(0x1fa)](_0x2555dc))_0x1b929d(_0x2555dc);}};_0x1b929d(_0x169d8f);for(const _0x1f6c1c of _0x4815c7[_0x490976(0x19f)]()){!_0x2f75c3[_0x490976(0x1fa)](_0x1f6c1c)&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x1f6c1c,'message':_0x490976(0x27e)});}const _0x1eb6f1=_0x1fc7ba[_0x490976(0x174)](_0x4d4512=>_0x2f75c3[_0x490976(0x1fa)](_0x4d4512));if(!_0x1eb6f1){_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x28c),'message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0xd5cafc=new Set(),_0x39c30e=_0x387d7b=>{const _0x3df02a=_0x490976;if(_0xd5cafc['has'](_0x387d7b))return;_0xd5cafc[_0x3df02a(0x259)](_0x387d7b);for(const _0x24e3fc of _0x12eb4d[_0x3df02a(0x23e)](_0x387d7b)??[]){const _0x22ac29=resolveEdgeEndpoint(_0x24e3fc[_0x3df02a(0x20d)],_0x24e3fc[_0x3df02a(0x297)]);if(_0x22ac29&&_0x4815c7['has'](_0x22ac29))_0x39c30e(_0x22ac29);}};for(const _0x36e7fc of _0x1fc7ba){if(_0x4815c7[_0x490976(0x1fa)](_0x36e7fc))_0x39c30e(_0x36e7fc);}for(const _0x287548 of _0x2f75c3){!_0xd5cafc[_0x490976(0x1fa)](_0x287548)&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x287548,'message':_0x490976(0x234)});}}function a287_0x4188(_0x6630f0,_0x2ccb55){_0x6630f0=_0x6630f0-0x151;const _0x12ee06=a287_0x12ee();let _0x418809=_0x12ee06[_0x6630f0];return _0x418809;}function validateApprovalResults(_0x3f3d6a,_0x427700,_0x15e474,_0x34d2b3){const _0x417a8e=a287_0x4050df;if(_0x427700===0x0)return;const _0x34ad05=new Set(_0x15e474[_0x417a8e(0x279)](_0x337497=>_0x3f3d6a[_0x417a8e(0x23e)](_0x337497)?.[_0x417a8e(0x202)])[_0x417a8e(0x20b)](_0x2fb3c0=>typeof _0x2fb3c0===_0x417a8e(0x29a)));for(const _0x4e9f06 of['APPROVED',_0x417a8e(0x295)]){!_0x34ad05[_0x417a8e(0x1fa)](_0x4e9f06)&&_0x34d2b3[_0x417a8e(0x1ed)]({'path':_0x417a8e(0x2a9),'message':_0x417a8e(0x1e1)+_0x4e9f06+'.'});}}function validateScriptResultReferences(_0x150673,_0x447548,_0xcba363,_0x1dacd6,_0x44ba20,_0xd2809a,_0xaca381){const _0x4c79bd=a287_0x4050df;if(_0xd2809a['size']===0x0)return;const _0x11aa96=new Set(),_0x5249f9=_0x4be36a=>{const _0x4bdeaa=a287_0x4188;if(!_0x11aa96[_0x4bdeaa(0x1fa)](_0x4be36a)&&_0x150673[_0x4bdeaa(0x1fa)](_0x4be36a)){_0x11aa96['add'](_0x4be36a);for(const _0x1b9f3f of _0xcba363[_0x4bdeaa(0x23e)](_0x4be36a)??[]){const _0x1f9908=resolveEdgeEndpoint(_0x1b9f3f['target'],_0x1b9f3f[_0x4bdeaa(0x156)]);if(_0x1f9908)_0x5249f9(_0x1f9908);}}};_0x5249f9(_0x447548);const _0x1fca99=new Map();for(const _0x18d3d1 of _0x11aa96){_0x1fca99['set'](_0x18d3d1,_0x18d3d1===_0x447548?new Set([_0x447548]):new Set(_0x11aa96));}let _0x4e07ef=!![];while(_0x4e07ef){_0x4e07ef=![];for(const _0x388701 of _0x11aa96){if(_0x388701===_0x447548)continue;const _0x2f3ea5=(_0x1dacd6['get'](_0x388701)??[])[_0x4c79bd(0x279)](_0x26290f=>resolveEdgeEndpoint(_0x26290f[_0x4c79bd(0x20d)],_0x26290f[_0x4c79bd(0x297)]))[_0x4c79bd(0x20b)](_0x3540a3=>Boolean(_0x3540a3&&_0x11aa96['has'](_0x3540a3)));if(_0x2f3ea5[_0x4c79bd(0x28e)]===0x0)continue;const _0xa63a71=new Set(_0x1fca99[_0x4c79bd(0x23e)](_0x2f3ea5[0x0])??[]);for(const _0x10efd4 of _0x2f3ea5[_0x4c79bd(0x246)](0x1)){const _0x150d65=_0x1fca99['get'](_0x10efd4)??new Set();for(const _0x475041 of _0xa63a71){if(!_0x150d65['has'](_0x475041))_0xa63a71[_0x4c79bd(0x206)](_0x475041);}}_0xa63a71[_0x4c79bd(0x259)](_0x388701);const _0x58239e=_0x1fca99['get'](_0x388701);!setsEqual(_0x58239e,_0xa63a71)&&(_0x1fca99['set'](_0x388701,_0xa63a71),_0x4e07ef=!![]);}}for(const [_0x55da67,_0x5f3703]of _0xcba363){const _0x29456a=_0x1fca99[_0x4c79bd(0x23e)](_0x55da67);if(!_0x29456a)continue;for(const _0x265818 of _0x5f3703){if(_0x265818[_0x4c79bd(0x207)]!==_0x4c79bd(0x284)||typeof _0x265818[_0x4c79bd(0x1be)]!==_0x4c79bd(0x29a))continue;for(const [_0x21b277,_0x36ef61]of _0xd2809a){expressionReferencesVariable(_0x265818[_0x4c79bd(0x1be)],_0x21b277)&&!_0x29456a[_0x4c79bd(0x1fa)](_0x36ef61)&&_0xaca381['push']({'path':(_0x44ba20[_0x4c79bd(0x23e)](_0x265818)??'flowJson.edges')+_0x4c79bd(0x290),'message':'Expression\x20references\x20SCRIPT\x20resultVariable\x20'+_0x21b277+_0x4c79bd(0x163)+_0x36ef61+_0x4c79bd(0x25d)+_0x55da67+'.'});}}}}function expressionReferencesVariable(_0x2ea3cb,_0x157426){const _0x12bf90=a287_0x4050df;let _0x59cee7=0x0;while(_0x59cee7<_0x2ea3cb[_0x12bf90(0x28e)]){const _0xa8b0af=_0x2ea3cb[_0x59cee7];if(_0xa8b0af==='\x27'||_0xa8b0af==='\x22'){_0x59cee7=skipQuotedExpressionSegment(_0x2ea3cb,_0x59cee7,_0xa8b0af);continue;}if(!/[A-Za-z_]/[_0x12bf90(0x1aa)](_0xa8b0af)){_0x59cee7+=0x1;continue;}const _0x1f59b3=_0x59cee7;_0x59cee7+=0x1;while(_0x59cee7<_0x2ea3cb[_0x12bf90(0x28e)]&&/[A-Za-z0-9_]/['test'](_0x2ea3cb[_0x59cee7])){_0x59cee7+=0x1;}if(_0x2ea3cb[_0x12bf90(0x246)](_0x1f59b3,_0x59cee7)!==_0x157426)continue;let _0x482337=_0x1f59b3-0x1;while(_0x482337>=0x0&&/\s/[_0x12bf90(0x1aa)](_0x2ea3cb[_0x482337])){_0x482337-=0x1;}if(_0x2ea3cb[_0x482337]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x253765,_0x2a38ca,_0x28b489){const _0x3c7704=a287_0x4050df;let _0x43bc59=_0x2a38ca+0x1;while(_0x43bc59<_0x253765[_0x3c7704(0x28e)]){if(_0x253765[_0x43bc59]==='\x5c'){_0x43bc59+=0x2;continue;}if(_0x253765[_0x43bc59]===_0x28b489)return _0x43bc59+0x1;_0x43bc59+=0x1;}return _0x43bc59;}function resolveEffectiveResultVariable(_0x1d9139,_0x37d40e){const _0x180f96=a287_0x4050df;if(_0x1d9139===undefined||_0x1d9139===null||_0x37d40e&&_0x1d9139==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x1d9139!=='string'||!VARIABLE_PATTERN['test'](_0x1d9139)||RESERVED_RESULT_VARIABLES['has'](_0x1d9139)||_0x1d9139[_0x180f96(0x24a)](_0x180f96(0x220)))return undefined;return _0x1d9139;}function registerResultVariableOwner(_0x215393,_0x23f4f7,_0x38829d,_0x10796d){const _0x4d5856=a287_0x4050df;if(_0x215393[_0x4d5856(0x1fa)](_0x23f4f7)){_0x10796d[_0x4d5856(0x1ed)]({'path':'flowJson.nodes','message':_0x4d5856(0x1d9)+_0x23f4f7+'.'});return;}_0x215393[_0x4d5856(0x16d)](_0x23f4f7,_0x38829d);}function setsEqual(_0x45611c,_0x16b6cd){const _0x90230f=a287_0x4050df;return _0x45611c[_0x90230f(0x1d5)]===_0x16b6cd['size']&&[..._0x45611c][_0x90230f(0x1f3)](_0x19f233=>_0x16b6cd[_0x90230f(0x1fa)](_0x19f233));}function isValidUserId(_0x5872eb){const _0x3268c1=a287_0x4050df;if(typeof _0x5872eb===_0x3268c1(0x29a))return _0x5872eb[_0x3268c1(0x2bf)]()[_0x3268c1(0x28e)]>0x0;return Number[_0x3268c1(0x1ca)](_0x5872eb)&&Number(_0x5872eb)>0x0;}function resolveEdgeEndpoint(_0x4c3c15,_0x5a1bf7){const _0x48a015=a287_0x4050df;if(typeof _0x4c3c15===_0x48a015(0x29a)&&_0x4c3c15[_0x48a015(0x2bf)]())return _0x4c3c15[_0x48a015(0x2bf)]();if(typeof _0x5a1bf7===_0x48a015(0x29a)&&_0x5a1bf7['trim']())return _0x5a1bf7[_0x48a015(0x2bf)]();return undefined;}function removeEmptyMetadata(_0x53a3dc,_0x4cd14c,_0x13f8db,_0x539c13){const _0x5e067e=a287_0x4050df;if(Array[_0x5e067e(0x186)](_0x53a3dc)){_0x53a3dc['forEach']((_0x36e8ad,_0x53a866)=>removeEmptyMetadata(_0x36e8ad,_0x4cd14c+'['+_0x53a866+']',_0x13f8db,_0x539c13));return;}if(!isRecord(_0x53a3dc))return;for(const [_0x22f9a2,_0x25b5da]of Object[_0x5e067e(0x29e)](_0x53a3dc)){const _0x1d9d10=_0x4cd14c+'.'+_0x22f9a2;if(_0x22f9a2==='metadata'&&isEmptyJsonValue(_0x25b5da)){delete _0x53a3dc[_0x22f9a2],_0x539c13[_0x5e067e(0x1ed)](_0x1d9d10),_0x13f8db[_0x5e067e(0x1ed)]({'code':_0x5e067e(0x1db),'path':_0x1d9d10,'message':_0x1d9d10+'\x20was\x20empty\x20and\x20was\x20removed.'});continue;}removeEmptyMetadata(_0x25b5da,_0x1d9d10,_0x13f8db,_0x539c13);}}function isEmptyJsonValue(_0x5eee06){const _0x18cbbc=a287_0x4050df;if(_0x5eee06===null||_0x5eee06===undefined)return!![];if(typeof _0x5eee06===_0x18cbbc(0x29a))return _0x5eee06[_0x18cbbc(0x2bf)]()==='';if(Array[_0x18cbbc(0x186)](_0x5eee06))return _0x5eee06[_0x18cbbc(0x28e)]===0x0;return isRecord(_0x5eee06)&&Object[_0x18cbbc(0x19f)](_0x5eee06)[_0x18cbbc(0x28e)]===0x0;}function isRecord(_0xabc3bf){return typeof _0xabc3bf==='object'&&_0xabc3bf!==null&&!Array['isArray'](_0xabc3bf);}function cloneJsonValue(_0x469336){const _0x40c970=a287_0x4050df;return JSON[_0x40c970(0x230)](JSON[_0x40c970(0x154)](_0x469336));}export async function readFlowConfigFile(_0x4a7360){const _0x4373e5=a287_0x4050df,_0x2755b0=await readFile(resolve(_0x4a7360),_0x4373e5(0x19c));return JSON[_0x4373e5(0x230)](_0x2755b0);}
1
+ const a287_0x1a3fa1=a287_0x392b;(function(_0x40737e,_0x2557c0){const _0x2902e6=a287_0x392b,_0xbc9bc9=_0x40737e();while(!![]){try{const _0x13ebdd=-parseInt(_0x2902e6(0x29b))/0x1+parseInt(_0x2902e6(0x232))/0x2+-parseInt(_0x2902e6(0x2a9))/0x3+-parseInt(_0x2902e6(0x272))/0x4+parseInt(_0x2902e6(0x23e))/0x5*(parseInt(_0x2902e6(0x1b7))/0x6)+-parseInt(_0x2902e6(0x1f0))/0x7*(parseInt(_0x2902e6(0x29a))/0x8)+parseInt(_0x2902e6(0x1e8))/0x9*(parseInt(_0x2902e6(0x290))/0xa);if(_0x13ebdd===_0x2557c0)break;else _0xbc9bc9['push'](_0xbc9bc9['shift']());}catch(_0x4c8dc5){_0xbc9bc9['push'](_0xbc9bc9['shift']());}}}(a287_0x2e0e,0x6a1b7));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':a287_0x1a3fa1(0x21a),'$id':'https://lovrabet.com/schema/rabetbase-flow-config.json','title':a287_0x1a3fa1(0x233),'type':a287_0x1a3fa1(0x1c5),'required':['flowName','flowType',a287_0x1a3fa1(0x1f1)],'$defs':{'userId':{'anyOf':[{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},{'type':a287_0x1a3fa1(0x1f7),'minimum':0x1}]},'position':{'type':a287_0x1a3fa1(0x1c5),'required':['x','y'],'properties':{'x':{'type':'number','minimum':0x0},'y':{'type':a287_0x1a3fa1(0x299),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':'object','required':[a287_0x1a3fa1(0x190),a287_0x1a3fa1(0x26a)],'properties':{'value':{'type':a287_0x1a3fa1(0x1f7),'minimum':0x1},'unit':{'enum':['SECONDS','MINUTES',a287_0x1a3fa1(0x27b),'DAYS']}},'additionalProperties':!![]},'flowNode':{'type':a287_0x1a3fa1(0x1c5),'required':['id',a287_0x1a3fa1(0x1b3),'name',a287_0x1a3fa1(0x2aa)],'properties':{'id':{'type':a287_0x1a3fa1(0x24b),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':['START',a287_0x1a3fa1(0x220),a287_0x1a3fa1(0x284),'CONDITION','SCRIPT',a287_0x1a3fa1(0x2db)]},'name':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'path':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'position':{'$ref':a287_0x1a3fa1(0x1e6)},'approvalMode':{'enum':[a287_0x1a3fa1(0x1a1),a287_0x1a3fa1(0x2c4),a287_0x1a3fa1(0x2b6)]},'taskMode':{'enum':[a287_0x1a3fa1(0x284),a287_0x1a3fa1(0x1f6)]},'assignee':{'type':a287_0x1a3fa1(0x1c5),'required':[a287_0x1a3fa1(0x2dc)],'properties':{'strategy':{'enum':[a287_0x1a3fa1(0x221),a287_0x1a3fa1(0x2a0)]},'userIds':{'type':a287_0x1a3fa1(0x26f),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a287_0x1a3fa1(0x1f7),'minimum':0x1},{'type':a287_0x1a3fa1(0x24b),'pattern':a287_0x1a3fa1(0x248)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a287_0x1a3fa1(0x1c5),'required':['strategy',a287_0x1a3fa1(0x186)],'properties':{'strategy':{'const':a287_0x1a3fa1(0x221)},'userIds':{'type':a287_0x1a3fa1(0x26f),'minItems':0x1,'items':{'$ref':a287_0x1a3fa1(0x2b2)}}},'additionalProperties':!![]},'sequential':{'type':a287_0x1a3fa1(0x20b)},'result':{'enum':[a287_0x1a3fa1(0x27d),'REJECTED']},'scriptName':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'resultVariable':{'type':a287_0x1a3fa1(0x24b),'pattern':a287_0x1a3fa1(0x27a)},'async':{'type':'object','properties':{'enabled':{'type':a287_0x1a3fa1(0x20b)},'retryCount':{'type':'integer','minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a287_0x1a3fa1(0x2d0)}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':'boolean'},'duration':{'$ref':a287_0x1a3fa1(0x2d0)},'action':{'enum':[a287_0x1a3fa1(0x28b),a287_0x1a3fa1(0x2b3),'EXECUTE_BFF']},'interrupting':{'type':a287_0x1a3fa1(0x20b)},'scriptName':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'resultVariable':{'type':a287_0x1a3fa1(0x24b),'pattern':a287_0x1a3fa1(0x27a)}},'additionalProperties':!![]},'cc':{'type':a287_0x1a3fa1(0x1c5),'required':[a287_0x1a3fa1(0x259)],'properties':{'recipientUserIds':{'type':'array','minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1}},'visible':{'type':a287_0x1a3fa1(0x26f),'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x1a3fa1(0x1c5),'required':[a287_0x1a3fa1(0x19b),a287_0x1a3fa1(0x291)],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'failurePolicy':{'enum':[a287_0x1a3fa1(0x1a8),a287_0x1a3fa1(0x204)]},'template':{'type':a287_0x1a3fa1(0x1c5),'required':['title',a287_0x1a3fa1(0x1d0)],'properties':{'title':{'type':'string','minLength':0x1},'summary':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'detailMarkdown':{'type':'string'},'facts':{'type':a287_0x1a3fa1(0x26f),'maxItems':0x8,'items':{'type':a287_0x1a3fa1(0x1c5),'required':['label',a287_0x1a3fa1(0x190)],'properties':{'label':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'value':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x1a3fa1(0x26f),'maxItems':0x2,'items':{'type':a287_0x1a3fa1(0x1c5),'required':[a287_0x1a3fa1(0x1e4),a287_0x1a3fa1(0x1bf)],'properties':{'text':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'url':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a287_0x1a3fa1(0x26f),'items':{'type':'object','required':['type',a287_0x1a3fa1(0x190)],'properties':{'type':{'enum':[a287_0x1a3fa1(0x1f3),a287_0x1a3fa1(0x2a0),a287_0x1a3fa1(0x22b)]},'value':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'role':{'enum':['TO','CC',a287_0x1a3fa1(0x2cd)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':'object','properties':{'id':{'type':a287_0x1a3fa1(0x24b),'pattern':a287_0x1a3fa1(0x27a)},'source':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'target':{'type':'string','minLength':0x1},'sourceNodeId':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'targetNodeId':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'conditionType':{'enum':['ALWAYS',a287_0x1a3fa1(0x27d),a287_0x1a3fa1(0x1b5),a287_0x1a3fa1(0x28c)]},'expression':{'type':a287_0x1a3fa1(0x24b)},'defaultFlow':{'type':a287_0x1a3fa1(0x20b)},'name':{'type':a287_0x1a3fa1(0x24b)},'waypoints':{'type':a287_0x1a3fa1(0x26f),'items':{'$ref':'#/$defs/position'}}},'allOf':[{'anyOf':[{'required':['source']},{'required':[a287_0x1a3fa1(0x194)]}]},{'anyOf':[{'required':[a287_0x1a3fa1(0x23a)]},{'required':[a287_0x1a3fa1(0x1e0)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':'string','minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':['FORM_FLOW','INDEPENDENT_FLOW']},'datasetCode':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'pageId':{'type':a287_0x1a3fa1(0x1f7)},'templateName':![],'flowJson':{'type':a287_0x1a3fa1(0x1c5),'required':[a287_0x1a3fa1(0x1ec),a287_0x1a3fa1(0x25c)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x1a3fa1(0x24b),'const':a287_0x1a3fa1(0x211),'description':a287_0x1a3fa1(0x1c8)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a287_0x1a3fa1(0x235)},'startPageId':![],'startPath':{'type':a287_0x1a3fa1(0x24b),'minLength':0x1},'nodes':{'type':'array','minItems':0x1,'items':{'$ref':a287_0x1a3fa1(0x20a)}},'edges':{'type':a287_0x1a3fa1(0x26f),'minItems':0x1,'items':{'$ref':a287_0x1a3fa1(0x1d3)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x1a3fa1(0x2c2),a287_0x1a3fa1(0x249),a287_0x1a3fa1(0x1b8),'bindDatasetCode',a287_0x1a3fa1(0x207),a287_0x1a3fa1(0x1b0),'pageId',a287_0x1a3fa1(0x1bd)],REMOVED_ROOT_FIELDS=['id',a287_0x1a3fa1(0x1b0),a287_0x1a3fa1(0x1bd)],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x1a3fa1(0x211),NODE_TYPES=new Set([a287_0x1a3fa1(0x241),'END',a287_0x1a3fa1(0x284),'CONDITION',a287_0x1a3fa1(0x2e4),a287_0x1a3fa1(0x2db)]),CONDITION_TYPES=new Set([a287_0x1a3fa1(0x293),a287_0x1a3fa1(0x27d),a287_0x1a3fa1(0x1b5),a287_0x1a3fa1(0x28c)]),APPROVAL_MODES=new Set(['SINGLE',a287_0x1a3fa1(0x2c4),a287_0x1a3fa1(0x2b6)]),APPROVAL_TASK_MODES=new Set(['APPROVAL','HANDLE']),FLOW_TIME_UNITS=new Set([a287_0x1a3fa1(0x20e),'MINUTES','HOURS',a287_0x1a3fa1(0x229)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a287_0x1a3fa1(0x28b),'AUTO_REJECT',a287_0x1a3fa1(0x228)]),FLOW_TYPES=new Set([a287_0x1a3fa1(0x208),a287_0x1a3fa1(0x213)]),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a287_0x1a3fa1(0x2a1)]),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([a287_0x1a3fa1(0x1a8),a287_0x1a3fa1(0x204)]),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x1a3fa1(0x1f3),a287_0x1a3fa1(0x2a0),'EMAIL']),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=a287_0x1a3fa1(0x1fc),UNSUPPORTED_FORM_MESSAGE=a287_0x1a3fa1(0x239),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x1a3fa1(0x27f),RESERVED_RESULT_VARIABLES=new Set([a287_0x1a3fa1(0x1b2),a287_0x1a3fa1(0x183),a287_0x1a3fa1(0x22f),a287_0x1a3fa1(0x189),a287_0x1a3fa1(0x20d),a287_0x1a3fa1(0x1d5),a287_0x1a3fa1(0x1ad),a287_0x1a3fa1(0x1fd),a287_0x1a3fa1(0x2bd),a287_0x1a3fa1(0x2df)]);export function normalizeFlowConfig(_0x4aa1a6){const _0x21589e=a287_0x1a3fa1;if(!isRecord(_0x4aa1a6))throw new TypeError(_0x21589e(0x2b9));const _0x230f73=cloneJsonValue(_0x4aa1a6),_0x44aa4f=_0x230f73['flowJson'],_0x2bcded=isRecord(_0x44aa4f)?cloneJsonValue(_0x44aa4f):{},_0x29394f=[],_0x5ba2d5=[];for(const _0x465661 of REMOVED_ROOT_FIELDS){if(!Object[_0x21589e(0x1be)][_0x21589e(0x182)][_0x21589e(0x236)](_0x230f73,_0x465661))continue;delete _0x230f73[_0x465661],_0x5ba2d5[_0x21589e(0x2c3)](_0x465661),_0x29394f[_0x21589e(0x2c3)]({'code':'legacy_field_removed','path':_0x465661,'message':_0x465661+'\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.'});}for(const _0x359e6b of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x21589e(0x1be)]['hasOwnProperty'][_0x21589e(0x236)](_0x2bcded,_0x359e6b))continue;const _0x11a654=_0x21589e(0x22d)+_0x359e6b;delete _0x2bcded[_0x359e6b],_0x5ba2d5[_0x21589e(0x2c3)](_0x11a654),_0x29394f[_0x21589e(0x2c3)]({'code':_0x21589e(0x1c0),'path':_0x11a654,'message':_0x11a654+_0x21589e(0x1ac)});}if(Object['prototype'][_0x21589e(0x182)]['call'](_0x2bcded,'schemaVersion')){const _0x5de908=_0x2bcded[_0x21589e(0x2de)],_0x31d8ca=typeof _0x5de908===_0x21589e(0x24b)?_0x5de908[_0x21589e(0x260)]():_0x5de908;if(isEmptyJsonValue(_0x5de908)||_0x31d8ca===DEFAULT_FLOW_SCHEMA_VERSION){const _0x5a7466='flowJson.schemaVersion';delete _0x2bcded['schemaVersion'],_0x5ba2d5[_0x21589e(0x2c3)](_0x5a7466),_0x29394f[_0x21589e(0x2c3)]({'code':_0x21589e(0x1c0),'path':_0x5a7466,'message':_0x5a7466+_0x21589e(0x230)+DEFAULT_FLOW_SCHEMA_VERSION+_0x21589e(0x2b1)});}}removeEmptyMetadata(_0x2bcded,_0x21589e(0x1f1),_0x29394f,_0x5ba2d5);_0x230f73[_0x21589e(0x1a7)]===_0x21589e(0x213)&&!Object[_0x21589e(0x1be)][_0x21589e(0x182)][_0x21589e(0x236)](_0x2bcded,'pageMode')&&(_0x2bcded[_0x21589e(0x21d)]=_0x21589e(0x235));_0x230f73[_0x21589e(0x1f1)]=_0x2bcded;if(typeof _0x230f73[_0x21589e(0x1b8)]===_0x21589e(0x24b))_0x230f73['flowName']=_0x230f73[_0x21589e(0x1b8)][_0x21589e(0x260)]();return{'config':_0x230f73,'warnings':_0x29394f,'removedPaths':_0x5ba2d5};}function a287_0x392b(_0x33743e,_0x36d657){_0x33743e=_0x33743e-0x179;const _0x2e0ef5=a287_0x2e0e();let _0x392bca=_0x2e0ef5[_0x33743e];return _0x392bca;}export function validateFlowConfig(_0x12a55a){const _0x21633c=a287_0x1a3fa1;let _0x192503;try{_0x192503=normalizeFlowConfig(_0x12a55a);}catch(_0x3066ea){const _0x2459d8=_0x3066ea instanceof Error?_0x3066ea[_0x21633c(0x18f)]:String(_0x3066ea),_0x5bc661={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x2459d8}],'warnings':[],'normalized':_0x5bc661,'validationConfig':_0x5bc661};}const _0x4fd5f9=_0x192503['config'],_0x2b9d9f=cloneJsonValue(_0x4fd5f9),_0x50604c=_0x2b9d9f[_0x21633c(0x1f1)];_0x50604c[_0x21633c(0x2c2)]=_0x21633c(0x23c),_0x50604c['flowName']=_0x4fd5f9[_0x21633c(0x1b8)];typeof _0x4fd5f9['datasetCode']==='string'&&_0x4fd5f9['datasetCode'][_0x21633c(0x260)]()&&(_0x50604c[_0x21633c(0x1cf)]=_0x4fd5f9['datasetCode'][_0x21633c(0x260)]());const _0x31aff0=[];return validateOuterMetadata(_0x4fd5f9,_0x31aff0),validateFlowClassification(_0x4fd5f9,_0x31aff0),validateGraph(_0x4fd5f9[_0x21633c(0x1f1)],_0x31aff0),{'valid':_0x31aff0[_0x21633c(0x23f)]===0x0,'errors':_0x31aff0,'warnings':_0x192503[_0x21633c(0x20c)],'normalized':_0x4fd5f9,'validationConfig':_0x2b9d9f};}function validateFlowClassification(_0x998384,_0x8ba206){const _0x44b337=a287_0x1a3fa1;if(!isRecord(_0x998384[_0x44b337(0x1f1)]))return;const _0x4a04dd=_0x998384[_0x44b337(0x1a7)],_0x59376d=_0x998384[_0x44b337(0x1f1)]['pageMode'];_0x59376d!==undefined&&(typeof _0x59376d!==_0x44b337(0x24b)||!FLOW_PAGE_MODES[_0x44b337(0x289)](_0x59376d))&&_0x8ba206[_0x44b337(0x2c3)]({'path':'flowJson.pageMode','message':_0x44b337(0x1fa)+String(_0x59376d)+'.'});_0x4a04dd==='FORM_FLOW'&&_0x59376d!==undefined&&_0x8ba206[_0x44b337(0x2c3)]({'path':'flowJson.pageMode','message':_0x44b337(0x2b0)});_0x4a04dd===_0x44b337(0x213)&&_0x59376d===_0x44b337(0x2a1)&&_0x8ba206[_0x44b337(0x2c3)]({'path':'flowJson.pageMode','message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x4a04dd===_0x44b337(0x208)||_0x4a04dd===_0x44b337(0x213))&&validateCustomPageNavigation(_0x998384,_0x4a04dd,_0x59376d,_0x8ba206);if(_0x4a04dd!==_0x44b337(0x208)||!Array['isArray'](_0x998384[_0x44b337(0x1f1)][_0x44b337(0x1ec)]))return;_0x998384[_0x44b337(0x1f1)][_0x44b337(0x1ec)][_0x44b337(0x256)]((_0x6e8087,_0x22557d)=>{const _0x4c372c=_0x44b337;isRecord(_0x6e8087)&&_0x6e8087[_0x4c372c(0x1b3)]===_0x4c372c(0x284)&&_0x6e8087[_0x4c372c(0x21b)]===_0x4c372c(0x1f6)&&_0x8ba206[_0x4c372c(0x2c3)]({'path':_0x4c372c(0x2a8)+_0x22557d+'].taskMode','message':_0x4c372c(0x2b7)});});}function validateCustomPageNavigation(_0x243774,_0xace7e0,_0x249ea0,_0x46b26d){const _0x43fc1e=a287_0x1a3fa1,_0x36f417=_0x243774['flowJson'][_0x43fc1e(0x27e)];_0x36f417!==undefined&&_0x46b26d[_0x43fc1e(0x2c3)]({'path':_0x43fc1e(0x295),'message':_0x43fc1e(0x250)});const _0x3d20c8=_0x243774['flowJson'][_0x43fc1e(0x199)];_0x3d20c8!==undefined&&(typeof _0x3d20c8!==_0x43fc1e(0x24b)||_0x3d20c8[_0x43fc1e(0x260)]()==='')&&_0x46b26d['push']({'path':_0x43fc1e(0x23d),'message':_0x43fc1e(0x1d4)});const _0x3ab2ff=Array[_0x43fc1e(0x1a2)](_0x243774[_0x43fc1e(0x1f1)][_0x43fc1e(0x1ec)])?_0x243774[_0x43fc1e(0x1f1)][_0x43fc1e(0x1ec)][_0x43fc1e(0x29d)]((_0x19316e,_0x4a0441)=>({'node':_0x19316e,'index':_0x4a0441}))[_0x43fc1e(0x1fe)](({node:_0x4ab2a9})=>isRecord(_0x4ab2a9)&&_0x4ab2a9[_0x43fc1e(0x200)]!==undefined):[],_0x55e70f=_0x3d20c8!==undefined||_0x3ab2ff[_0x43fc1e(0x23f)]>0x0,_0xc04334=_0x249ea0===undefined&&_0xace7e0===_0x43fc1e(0x213)?_0x43fc1e(0x235):_0x249ea0;_0x55e70f&&(_0xace7e0!==_0x43fc1e(0x213)||_0xc04334!==_0x43fc1e(0x235))&&(_0x3d20c8!==undefined&&_0x46b26d[_0x43fc1e(0x2c3)]({'path':_0x43fc1e(0x23d),'message':_0x43fc1e(0x266)}),_0x3ab2ff[_0x43fc1e(0x256)](({index:_0x83dcf})=>{const _0x1c5287=_0x43fc1e;_0x46b26d[_0x1c5287(0x2c3)]({'path':_0x1c5287(0x2a8)+_0x83dcf+_0x1c5287(0x281),'message':_0x1c5287(0x2d8)});}));}export async function writeNormalizedFlowConfig(_0x34d702,_0x6a0f59,_0x2e8fc4={}){const _0x11f8af=a287_0x1a3fa1,_0x3e05c8=resolve(_0x34d702),_0x35f446=_0x3e05c8+'.'+process[_0x11f8af(0x2d4)]+'.'+randomUUID()+_0x11f8af(0x1ae),_0x1770ec=JSON['stringify'](_0x6a0f59,null,0x2)+'\x0a';let _0x36255a;try{try{_0x36255a=(await stat(_0x3e05c8))['mode']&0x1ff;}catch{_0x36255a=undefined;}await writeFile(_0x35f446,_0x1770ec,{'encoding':'utf8','flag':'wx','mode':_0x36255a??0x1a4});if(_0x36255a!==undefined)await chmod(_0x35f446,_0x36255a);_0x2e8fc4[_0x11f8af(0x2a7)]===![]?(await link(_0x35f446,_0x3e05c8),await unlink(_0x35f446)):await rename(_0x35f446,_0x3e05c8);}finally{await unlink(_0x35f446)['catch'](()=>undefined);}}function validateOuterMetadata(_0x241249,_0x5e50b2){const _0xdd6ba7=a287_0x1a3fa1;(typeof _0x241249[_0xdd6ba7(0x1b8)]!=='string'||_0x241249['flowName']['trim']()==='')&&_0x5e50b2[_0xdd6ba7(0x2c3)]({'path':_0xdd6ba7(0x1b8),'message':_0xdd6ba7(0x2c7)});_0x241249['flowDesc']!==undefined&&typeof _0x241249[_0xdd6ba7(0x24a)]!=='string'&&_0x5e50b2[_0xdd6ba7(0x2c3)]({'path':'flowDesc','message':_0xdd6ba7(0x1eb)});if(_0x241249[_0xdd6ba7(0x1a7)]===undefined||_0x241249[_0xdd6ba7(0x1a7)]===null)_0x5e50b2[_0xdd6ba7(0x2c3)]({'path':'flowType','message':_0xdd6ba7(0x28e)});else(typeof _0x241249[_0xdd6ba7(0x1a7)]!==_0xdd6ba7(0x24b)||!FLOW_TYPES[_0xdd6ba7(0x289)](_0x241249[_0xdd6ba7(0x1a7)]))&&_0x5e50b2['push']({'path':_0xdd6ba7(0x1a7),'message':_0xdd6ba7(0x196)+String(_0x241249['flowType'])+'.'});_0x241249[_0xdd6ba7(0x207)]!==undefined&&typeof _0x241249[_0xdd6ba7(0x207)]!==_0xdd6ba7(0x24b)&&_0x5e50b2[_0xdd6ba7(0x2c3)]({'path':_0xdd6ba7(0x207),'message':_0xdd6ba7(0x2c9)}),_0x241249['pageId']!==undefined&&(!Number[_0xdd6ba7(0x1f2)](_0x241249['pageId'])||_0x241249[_0xdd6ba7(0x1ed)]<0x0)&&_0x5e50b2[_0xdd6ba7(0x2c3)]({'path':_0xdd6ba7(0x1ed),'message':_0xdd6ba7(0x263)}),_0x241249['flowType']===_0xdd6ba7(0x213)&&_0x241249[_0xdd6ba7(0x207)]!==undefined&&_0x5e50b2[_0xdd6ba7(0x2c3)]({'path':_0xdd6ba7(0x207),'message':_0xdd6ba7(0x26e)}),_0x241249[_0xdd6ba7(0x1a7)]===_0xdd6ba7(0x213)&&_0x241249['pageId']!==undefined&&_0x5e50b2['push']({'path':_0xdd6ba7(0x1ed),'message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.'});}function validateGraph(_0x1ea6a5,_0x4eeefd){const _0x407b62=a287_0x1a3fa1;if(!isRecord(_0x1ea6a5)){_0x4eeefd['push']({'path':_0x407b62(0x1f1),'message':_0x407b62(0x2bf)});return;}!Array[_0x407b62(0x1a2)](_0x1ea6a5[_0x407b62(0x1ec)])&&_0x4eeefd[_0x407b62(0x2c3)]({'path':_0x407b62(0x1ce),'message':_0x407b62(0x231)});!Array['isArray'](_0x1ea6a5[_0x407b62(0x25c)])&&_0x4eeefd[_0x407b62(0x2c3)]({'path':_0x407b62(0x17d),'message':_0x407b62(0x271)});Object[_0x407b62(0x1be)][_0x407b62(0x182)][_0x407b62(0x236)](_0x1ea6a5,_0x407b62(0x2de))&&_0x4eeefd['push']({'path':_0x407b62(0x205),'message':_0x407b62(0x1ea)+String(_0x1ea6a5[_0x407b62(0x2de)])+_0x407b62(0x25b)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x44e84b of[_0x407b62(0x2ac),_0x407b62(0x192),_0x407b62(0x1db)]){Object[_0x407b62(0x1be)][_0x407b62(0x182)]['call'](_0x1ea6a5,_0x44e84b)&&_0x4eeefd[_0x407b62(0x2c3)]({'path':'flowJson.'+_0x44e84b,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x407b62(0x1a2)](_0x1ea6a5[_0x407b62(0x1ec)])||!Array[_0x407b62(0x1a2)](_0x1ea6a5['edges']))return;const _0x5d3309=new Map(),_0x3f5dfb=[],_0x37a40d=[],_0x1b27ca=new Map(),_0x576aa8=new Map(),_0x5cf2c7=new Set();let _0x30053c=0x0;_0x1ea6a5['nodes'][_0x407b62(0x256)]((_0x13c85a,_0x16dea2)=>{const _0x53c189=_0x407b62,_0x71cb9f=_0x53c189(0x2a8)+_0x16dea2+']';if(!isRecord(_0x13c85a)){_0x4eeefd['push']({'path':_0x71cb9f,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x1ae634=_0x13c85a;if(typeof _0x1ae634['id']!==_0x53c189(0x24b)||!BPMN_ID_PATTERN[_0x53c189(0x26b)](_0x1ae634['id']))_0x4eeefd[_0x53c189(0x2c3)]({'path':_0x71cb9f+_0x53c189(0x1b4),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x5d3309['has'](_0x1ae634['id'])?_0x4eeefd[_0x53c189(0x2c3)]({'path':_0x71cb9f+_0x53c189(0x1b4),'message':'Duplicate\x20node\x20id:\x20'+_0x1ae634['id']+'.'}):(_0x5d3309[_0x53c189(0x1dc)](_0x1ae634['id'],_0x1ae634),_0x5cf2c7[_0x53c189(0x1e1)](_0x1ae634['id']));if(!NODE_TYPES[_0x53c189(0x289)](_0x1ae634[_0x53c189(0x1b3)]))_0x4eeefd['push']({'path':_0x71cb9f+'.type','message':'Unsupported\x20node\x20type:\x20'+String(_0x1ae634[_0x53c189(0x1b3)])+'.'});else{if(_0x1ae634['type']===_0x53c189(0x241))_0x3f5dfb[_0x53c189(0x2c3)](_0x1ae634['id']);else _0x1ae634[_0x53c189(0x1b3)]==='END'&&_0x37a40d[_0x53c189(0x2c3)](_0x1ae634['id']);}_0x1ae634[_0x53c189(0x1b3)]===_0x53c189(0x284)&&(_0x1ae634[_0x53c189(0x21b)]===undefined||_0x1ae634[_0x53c189(0x21b)]===_0x53c189(0x284))&&(_0x30053c+=0x1);validateNode(_0x1ae634,_0x71cb9f,_0x4eeefd);if(_0x1ae634[_0x53c189(0x1b3)]===_0x53c189(0x2e4)){const _0x3aa50c=resolveEffectiveResultVariable(_0x1ae634['resultVariable'],![]);_0x3aa50c&&(registerResultVariableOwner(_0x576aa8,_0x3aa50c,_0x1ae634['id'],_0x4eeefd),!_0x1b27ca[_0x53c189(0x289)](_0x3aa50c)&&_0x1b27ca[_0x53c189(0x1dc)](_0x3aa50c,_0x1ae634['id']));}if(_0x1ae634[_0x53c189(0x1b3)]===_0x53c189(0x284)&&isRecord(_0x1ae634[_0x53c189(0x2ce)])&&_0x1ae634[_0x53c189(0x2ce)]['enabled']===!![]&&_0x1ae634[_0x53c189(0x2ce)][_0x53c189(0x2b4)]===_0x53c189(0x228)){const _0x1ac53d=resolveEffectiveResultVariable(_0x1ae634['timeout'][_0x53c189(0x247)],!![]);_0x1ac53d&&registerResultVariableOwner(_0x576aa8,_0x1ac53d,_0x1ae634['id']+_0x53c189(0x244),_0x4eeefd);}});_0x3f5dfb[_0x407b62(0x23f)]!==0x1&&_0x4eeefd['push']({'path':_0x407b62(0x1ce),'message':'Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.'});_0x37a40d[_0x407b62(0x23f)]===0x0&&_0x4eeefd[_0x407b62(0x2c3)]({'path':_0x407b62(0x1ce),'message':_0x407b62(0x287)});const _0x2d15b1=new Map(),_0x57dc9b=new Map(),_0x55e0a9=new Map(),_0x1109fc=new Set();_0x1ea6a5['edges'][_0x407b62(0x256)]((_0x5a916d,_0x506feb)=>{const _0x3af574=_0x407b62,_0x1419aa=_0x3af574(0x246)+_0x506feb+']';if(!isRecord(_0x5a916d)){_0x4eeefd[_0x3af574(0x2c3)]({'path':_0x1419aa,'message':_0x3af574(0x2e6)});return;}const _0x3b2751=_0x5a916d;_0x55e0a9[_0x3af574(0x1dc)](_0x3b2751,_0x1419aa);const _0x3f0446=resolveEdgeEndpoint(_0x3b2751['source'],_0x3b2751[_0x3af574(0x194)]),_0x42a133=resolveEdgeEndpoint(_0x3b2751[_0x3af574(0x23a)],_0x3b2751[_0x3af574(0x1e0)]);if(!_0x3f0446)_0x4eeefd['push']({'path':_0x1419aa+'.source','message':'edge\x20source\x20is\x20required.'});if(!_0x42a133)_0x4eeefd['push']({'path':_0x1419aa+_0x3af574(0x234),'message':_0x3af574(0x1e5)});_0x3f0446&&!_0x5d3309[_0x3af574(0x289)](_0x3f0446)&&_0x4eeefd[_0x3af574(0x2c3)]({'path':_0x1419aa+_0x3af574(0x252),'message':'Edge\x20source\x20node\x20not\x20found:\x20'+_0x3f0446+'.'});_0x42a133&&!_0x5d3309[_0x3af574(0x289)](_0x42a133)&&_0x4eeefd[_0x3af574(0x2c3)]({'path':_0x1419aa+'.target','message':_0x3af574(0x278)+_0x42a133+'.'});if(_0x3b2751['id']!==undefined){if(typeof _0x3b2751['id']!==_0x3af574(0x24b)||!BPMN_ID_PATTERN[_0x3af574(0x26b)](_0x3b2751['id']))_0x4eeefd[_0x3af574(0x2c3)]({'path':_0x1419aa+_0x3af574(0x1b4),'message':_0x3af574(0x18c)});else{if(_0x5cf2c7[_0x3af574(0x289)](_0x3b2751['id']))_0x4eeefd['push']({'path':_0x1419aa+_0x3af574(0x1b4),'message':_0x3af574(0x255)+_0x3b2751['id']+'.'});else!_0x5cf2c7[_0x3af574(0x289)](_0x3b2751['id'])&&_0x5cf2c7[_0x3af574(0x1e1)](_0x3b2751['id']);}}if(_0x3f0446&&_0x42a133){const _0x4c6d93=_0x3f0446+'\x00'+_0x42a133+'\x00'+(_0x3b2751['conditionType']??'ALWAYS');_0x1109fc['has'](_0x4c6d93)?_0x4eeefd[_0x3af574(0x2c3)]({'path':_0x1419aa,'message':'Duplicate\x20edge\x20route:\x20'+_0x3f0446+_0x3af574(0x1ba)+_0x42a133+'\x20('+(_0x3b2751[_0x3af574(0x1a9)]??_0x3af574(0x293))+').'}):_0x1109fc[_0x3af574(0x1e1)](_0x4c6d93);}validateEdge(_0x3b2751,_0x1419aa,_0x4eeefd),_0x3f0446&&_0x42a133&&(_0x2d15b1[_0x3af574(0x275)](_0x3f0446)?.['push'](_0x3b2751)??_0x2d15b1[_0x3af574(0x1dc)](_0x3f0446,[_0x3b2751]),_0x57dc9b[_0x3af574(0x275)](_0x42a133)?.[_0x3af574(0x2c3)](_0x3b2751)??_0x57dc9b[_0x3af574(0x1dc)](_0x42a133,[_0x3b2751]));});if(_0x3f5dfb[_0x407b62(0x23f)]!==0x1)return;validateGraphShape(_0x5d3309,_0x3f5dfb[0x0],_0x37a40d,_0x2d15b1,_0x57dc9b,_0x55e0a9,_0x4eeefd),validateScriptResultReferences(_0x5d3309,_0x3f5dfb[0x0],_0x2d15b1,_0x57dc9b,_0x55e0a9,_0x1b27ca,_0x4eeefd),validateApprovalResults(_0x5d3309,_0x30053c,_0x37a40d,_0x4eeefd);}function validateNode(_0x208f78,_0xf43e83,_0x108598){const _0x36b243=a287_0x1a3fa1;for(const _0xa3df70 of['form',_0x36b243(0x1a0)]){Object['prototype'][_0x36b243(0x182)][_0x36b243(0x236)](_0x208f78,_0xa3df70)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+'.'+_0xa3df70,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x36b243(0x289)](_0x208f78[_0x36b243(0x1b3)]))return;(typeof _0x208f78['name']!==_0x36b243(0x24b)||_0x208f78[_0x36b243(0x274)][_0x36b243(0x260)]()==='')&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x26c),'message':_0x36b243(0x1c7)});_0x208f78[_0x36b243(0x1ed)]!==undefined&&_0x108598['push']({'path':_0xf43e83+_0x36b243(0x1f4),'message':_0x36b243(0x262)});if(_0x208f78[_0x36b243(0x200)]!==undefined){if(typeof _0x208f78['path']!==_0x36b243(0x24b)||_0x208f78[_0x36b243(0x200)][_0x36b243(0x260)]()==='')_0x108598['push']({'path':_0xf43e83+'.path','message':_0x36b243(0x227)});else _0x208f78[_0x36b243(0x1b3)]!==_0x36b243(0x284)&&_0x208f78[_0x36b243(0x1b3)]!==_0x36b243(0x220)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x1d1),'message':_0x36b243(0x24d)});}const _0xde4bfd=_0x208f78[_0x36b243(0x2aa)];if(!isRecord(_0xde4bfd))_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+'.position','message':'Every\x20node\x20requires\x20position.x\x20and\x20position.y.'});else for(const _0x3e2a31 of['x','y']){const _0x3b5da1=_0xde4bfd[_0x3e2a31];(typeof _0x3b5da1!==_0x36b243(0x299)||!Number[_0x36b243(0x1aa)](_0x3b5da1)||_0x3b5da1<0x0)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x279)+_0x3e2a31,'message':_0x36b243(0x18d)+_0x3e2a31+'\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.'});}if(_0x208f78['type']===_0x36b243(0x284)){const _0x5e86fe=_0x208f78[_0x36b243(0x1a6)]??_0x36b243(0x1a1),_0x56bdc3=_0x208f78['taskMode']??_0x36b243(0x284);!APPROVAL_TASK_MODES[_0x36b243(0x289)](_0x56bdc3)&&_0x108598['push']({'path':_0xf43e83+_0x36b243(0x184),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x56bdc3)+'.'});!APPROVAL_MODES[_0x36b243(0x289)](_0x5e86fe)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x223),'message':_0x36b243(0x1d2)+String(_0x5e86fe)+'.'});if(!isRecord(_0x208f78[_0x36b243(0x1b6)]))_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+'.assignee','message':_0x36b243(0x2be)});else{const _0xa9b1da=_0x208f78['assignee']['strategy'];_0xa9b1da!==_0x36b243(0x221)&&_0xa9b1da!==_0x36b243(0x2a0)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x18b),'message':_0x36b243(0x2af)});if(_0xa9b1da===_0x36b243(0x221)){const _0x4bb3f0=_0x208f78[_0x36b243(0x1b6)][_0x36b243(0x186)];if(!Array[_0x36b243(0x1a2)](_0x4bb3f0)||_0x4bb3f0[_0x36b243(0x23f)]===0x0)_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+'.assignee.userIds','message':_0x36b243(0x1de)});else{const _0x57201c=_0x4bb3f0['findIndex'](_0x1bbcd7=>!isValidUserId(_0x1bbcd7));_0x57201c>=0x0&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+'.assignee.userIds['+_0x57201c+']','message':_0x36b243(0x2a6)});const _0x1e6502=new Set(_0x4bb3f0[_0x36b243(0x1fe)](isValidUserId)[_0x36b243(0x29d)](_0x31fa65=>String(_0x31fa65)[_0x36b243(0x260)]()));_0x5e86fe==='SINGLE'&&_0x1e6502[_0x36b243(0x240)]>0x1&&_0x108598['push']({'path':_0xf43e83+_0x36b243(0x216),'message':_0x36b243(0x2e2)});}}if(_0xa9b1da===_0x36b243(0x2a0)){const _0x370829=_0x208f78[_0x36b243(0x1b6)][_0x36b243(0x1c4)],_0x4fdbc9=typeof _0x370829===_0x36b243(0x299)||typeof _0x370829===_0x36b243(0x24b)?Number(String(_0x370829)['trim']()):Number[_0x36b243(0x254)];(!Number[_0x36b243(0x2e5)](_0x4fdbc9)||_0x4fdbc9<=0x0)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x185),'message':_0x36b243(0x195)});}}if(_0x208f78['transferCandidates']!==undefined){if(!isRecord(_0x208f78['transferCandidates']))_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x237),'message':'transferCandidates\x20must\x20be\x20an\x20object.'});else{if(_0x208f78[_0x36b243(0x24e)][_0x36b243(0x2dc)]!=='FIXED')_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x261),'message':_0x36b243(0x181)});else{const _0x1b43d6=_0x208f78[_0x36b243(0x24e)]['userIds'];if(!Array['isArray'](_0x1b43d6)||_0x1b43d6[_0x36b243(0x23f)]===0x0)_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x258),'message':'FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.'});else{const _0xe0edff=_0x1b43d6[_0x36b243(0x214)](_0x54ce20=>!isValidUserId(_0x54ce20));_0xe0edff>=0x0&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x280)+_0xe0edff+']','message':_0x36b243(0x2e1)});}}}}}_0x208f78[_0x36b243(0x24c)]!==undefined&&typeof _0x208f78['sequential']!==_0x36b243(0x20b)&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x2cf),'message':_0x36b243(0x191)});if(_0x208f78['type']===_0x36b243(0x2e4)){(typeof _0x208f78[_0x36b243(0x17b)]!==_0x36b243(0x24b)||_0x208f78[_0x36b243(0x17b)][_0x36b243(0x260)]()==='')&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+'.scriptName','message':_0x36b243(0x22e)});if(_0x208f78[_0x36b243(0x247)]!==undefined){if(typeof _0x208f78['resultVariable']!=='string'||!VARIABLE_PATTERN[_0x36b243(0x26b)](_0x208f78[_0x36b243(0x247)]))_0x108598['push']({'path':_0xf43e83+'.resultVariable','message':'resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else(RESERVED_RESULT_VARIABLES[_0x36b243(0x289)](_0x208f78[_0x36b243(0x247)])||_0x208f78['resultVariable'][_0x36b243(0x285)]('approval_sys_'))&&_0x108598[_0x36b243(0x2c3)]({'path':_0xf43e83+_0x36b243(0x25a),'message':'Reserved\x20resultVariable:\x20'+_0x208f78[_0x36b243(0x247)]+'.'});}}validateAsyncExecution(_0x208f78,_0xf43e83,_0x108598),validateApprovalTimeout(_0x208f78,_0xf43e83,_0x108598),validateCcConfig(_0x208f78,_0xf43e83,_0x108598),_0x208f78[_0x36b243(0x1b3)]===_0x36b243(0x2db)&&validateNotificationConfig(_0x208f78['config'],_0xf43e83+_0x36b243(0x1a5),_0x108598);}function validateAsyncExecution(_0x2e48ce,_0x3225e6,_0x60bbe0){const _0x4b7cb9=a287_0x1a3fa1;if(_0x2e48ce['async']===undefined)return;if(!isRecord(_0x2e48ce[_0x4b7cb9(0x1a3)])){_0x60bbe0[_0x4b7cb9(0x2c3)]({'path':_0x3225e6+_0x4b7cb9(0x2c8),'message':'async\x20must\x20be\x20an\x20object.'});return;}if(_0x2e48ce[_0x4b7cb9(0x1a3)][_0x4b7cb9(0x19d)]!==undefined&&typeof _0x2e48ce[_0x4b7cb9(0x1a3)][_0x4b7cb9(0x19d)]!=='boolean'){_0x60bbe0[_0x4b7cb9(0x2c3)]({'path':_0x3225e6+_0x4b7cb9(0x22a),'message':_0x4b7cb9(0x1c1)});return;}if(_0x2e48ce[_0x4b7cb9(0x1a3)][_0x4b7cb9(0x19d)]!==!![])return;_0x2e48ce[_0x4b7cb9(0x1b3)]!=='SCRIPT'&&_0x60bbe0[_0x4b7cb9(0x2c3)]({'path':_0x3225e6+_0x4b7cb9(0x2c8),'message':_0x4b7cb9(0x2c1)});const _0x51feb9=_0x2e48ce[_0x4b7cb9(0x1a3)]['retryCount']??0x3;(!Number[_0x4b7cb9(0x1f2)](_0x51feb9)||_0x51feb9<0x1||_0x51feb9>MAX_ASYNC_RETRY_COUNT)&&_0x60bbe0['push']({'path':_0x3225e6+'.async.retryCount','message':_0x4b7cb9(0x1ef)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x2e48ce[_0x4b7cb9(0x1a3)][_0x4b7cb9(0x2e3)]!==undefined&&validateTimeAmount(_0x2e48ce['async'][_0x4b7cb9(0x2e3)],_0x3225e6+_0x4b7cb9(0x29e),_0x60bbe0);}function validateApprovalTimeout(_0x361f26,_0x2eec4a,_0x4111d5){const _0x30e758=a287_0x1a3fa1;if(_0x361f26[_0x30e758(0x2ce)]===undefined)return;if(!isRecord(_0x361f26[_0x30e758(0x2ce)])){_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x244),'message':_0x30e758(0x21c)});return;}if(_0x361f26[_0x30e758(0x2ce)][_0x30e758(0x19d)]!==undefined&&typeof _0x361f26[_0x30e758(0x2ce)]['enabled']!==_0x30e758(0x20b)){_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x1ca),'message':_0x30e758(0x2cb)});return;}if(_0x361f26['timeout'][_0x30e758(0x19d)]!==!![])return;if(_0x361f26[_0x30e758(0x2ce)][_0x30e758(0x187)]!==undefined&&typeof _0x361f26[_0x30e758(0x2ce)][_0x30e758(0x187)]!==_0x30e758(0x20b)){_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x2bb),'message':_0x30e758(0x283)});return;}_0x361f26[_0x30e758(0x1b3)]!==_0x30e758(0x284)&&_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x244),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x361f26[_0x30e758(0x2ce)][_0x30e758(0x251)],_0x2eec4a+'.timeout.duration',_0x4111d5);const _0x3ecccb=_0x361f26[_0x30e758(0x2ce)][_0x30e758(0x2b4)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x30e758(0x289)](_0x3ecccb)){_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x25d),'message':_0x30e758(0x1d6)});return;}(_0x361f26['taskMode']??_0x30e758(0x284))===_0x30e758(0x1f6)&&_0x3ecccb!=='EXECUTE_BFF'&&_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x25d),'message':_0x30e758(0x2d1)});const _0x12d4f3=_0x361f26['timeout'][_0x30e758(0x187)]??_0x3ecccb!==_0x30e758(0x228);if(_0x3ecccb===_0x30e758(0x228))_0x12d4f3&&_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+'.timeout.interrupting','message':_0x30e758(0x2c6)}),(typeof _0x361f26['timeout']['scriptName']!==_0x30e758(0x24b)||_0x361f26[_0x30e758(0x2ce)]['scriptName'][_0x30e758(0x260)]()==='')&&_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+'.timeout.scriptName','message':_0x30e758(0x2d6)}),validateOptionalResultVariable(_0x361f26[_0x30e758(0x2ce)][_0x30e758(0x247)],_0x2eec4a+_0x30e758(0x1c6),_0x4111d5);else!_0x12d4f3&&_0x4111d5[_0x30e758(0x2c3)]({'path':_0x2eec4a+_0x30e758(0x2bb),'message':_0x3ecccb+_0x30e758(0x1e9)});}function validateTimeAmount(_0xc89aa1,_0x38f54f,_0x58c26f){const _0x277bd3=a287_0x1a3fa1;if(!isRecord(_0xc89aa1)){_0x58c26f[_0x277bd3(0x2c3)]({'path':_0x38f54f,'message':_0x277bd3(0x179)});return;}(!Number[_0x277bd3(0x1f2)](_0xc89aa1[_0x277bd3(0x190)])||Number(_0xc89aa1[_0x277bd3(0x190)])<=0x0)&&_0x58c26f[_0x277bd3(0x2c3)]({'path':_0x38f54f+_0x277bd3(0x1df),'message':_0x277bd3(0x17e)}),!FLOW_TIME_UNITS[_0x277bd3(0x289)](_0xc89aa1['unit'])&&_0x58c26f[_0x277bd3(0x2c3)]({'path':_0x38f54f+_0x277bd3(0x17c),'message':_0x277bd3(0x2b8)});}function validateOptionalResultVariable(_0xa9b506,_0x446e47,_0x4b6f48){const _0x5d08a5=a287_0x1a3fa1;if(_0xa9b506===undefined||_0xa9b506===null||_0xa9b506==='')return;if(typeof _0xa9b506!=='string'||!VARIABLE_PATTERN[_0x5d08a5(0x26b)](_0xa9b506))_0x4b6f48[_0x5d08a5(0x2c3)]({'path':_0x446e47,'message':_0x5d08a5(0x1fb)});else(RESERVED_RESULT_VARIABLES[_0x5d08a5(0x289)](_0xa9b506)||_0xa9b506[_0x5d08a5(0x285)](_0x5d08a5(0x224)))&&_0x4b6f48[_0x5d08a5(0x2c3)]({'path':_0x446e47,'message':_0x5d08a5(0x288)+_0xa9b506+'.'});}function validateCcConfig(_0x480fb7,_0x74047e,_0x1de67a){const _0x47f709=a287_0x1a3fa1;if(_0x480fb7['cc']===undefined)return;if(!isRecord(_0x480fb7['cc'])){_0x1de67a[_0x47f709(0x2c3)]({'path':_0x74047e+_0x47f709(0x273),'message':_0x47f709(0x286)});return;}_0x480fb7['type']!==_0x47f709(0x220)&&_0x480fb7['type']!==_0x47f709(0x284)&&_0x1de67a[_0x47f709(0x2c3)]({'path':_0x74047e+_0x47f709(0x273),'message':_0x47f709(0x2c5)});Object[_0x47f709(0x1be)]['hasOwnProperty'][_0x47f709(0x236)](_0x480fb7['cc'],_0x47f709(0x265))&&_0x1de67a[_0x47f709(0x2c3)]({'path':_0x74047e+_0x47f709(0x2a5),'message':UNSUPPORTED_FORM_MESSAGE});const _0x10b328=_0x480fb7['cc'][_0x47f709(0x259)];if(!Array[_0x47f709(0x1a2)](_0x10b328)||_0x10b328[_0x47f709(0x23f)]===0x0)_0x1de67a[_0x47f709(0x2c3)]({'path':_0x74047e+'.cc.recipientUserIds','message':'cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.'});else{_0x10b328[_0x47f709(0x23f)]>MAX_CC_RECIPIENTS&&_0x1de67a[_0x47f709(0x2c3)]({'path':_0x74047e+_0x47f709(0x277),'message':'cc.recipientUserIds\x20supports\x20at\x20most\x20'+MAX_CC_RECIPIENTS+_0x47f709(0x1b1)});const _0x25f246=new Set();_0x10b328[_0x47f709(0x256)]((_0x30736b,_0x9cc6c8)=>{const _0x36120f=_0x47f709;if(typeof _0x30736b!==_0x36120f(0x24b)||_0x30736b[_0x36120f(0x260)]()==='')_0x1de67a[_0x36120f(0x2c3)]({'path':_0x74047e+'.cc.recipientUserIds['+_0x9cc6c8+']','message':_0x36120f(0x17a)});else _0x25f246[_0x36120f(0x289)](_0x30736b[_0x36120f(0x260)]())?_0x1de67a[_0x36120f(0x2c3)]({'path':_0x74047e+_0x36120f(0x29f)+_0x9cc6c8+']','message':_0x36120f(0x19a)+_0x30736b[_0x36120f(0x260)]()+'.'}):_0x25f246[_0x36120f(0x1e1)](_0x30736b[_0x36120f(0x260)]());});}validateStringArray(_0x480fb7['cc'][_0x47f709(0x203)],_0x74047e+'.cc.visible',_0x1de67a);}function validateStringArray(_0x285231,_0x3516ca,_0x56c35e){const _0x4f8d22=a287_0x1a3fa1;if(_0x285231===undefined)return;if(!Array[_0x4f8d22(0x1a2)](_0x285231)){_0x56c35e[_0x4f8d22(0x2c3)]({'path':_0x3516ca,'message':_0x4f8d22(0x2a3)});return;}const _0x3412e0=new Set();_0x285231[_0x4f8d22(0x256)]((_0x1e0b5b,_0x34700d)=>{const _0x4d25c2=_0x4f8d22;if(typeof _0x1e0b5b!=='string'||_0x1e0b5b[_0x4d25c2(0x260)]()==='')_0x56c35e[_0x4d25c2(0x2c3)]({'path':_0x3516ca+'['+_0x34700d+']','message':_0x4d25c2(0x1cb)});else _0x3412e0[_0x4d25c2(0x289)](_0x1e0b5b[_0x4d25c2(0x260)]())?_0x56c35e['push']({'path':_0x3516ca+'['+_0x34700d+']','message':'Duplicate\x20value:\x20'+_0x1e0b5b[_0x4d25c2(0x260)]()+'.'}):_0x3412e0['add'](_0x1e0b5b[_0x4d25c2(0x260)]());});}function validateNotificationConfig(_0x34a359,_0x2db6ed,_0xd23566){const _0x2cb302=a287_0x1a3fa1;if(!isRecord(_0x34a359)){_0xd23566[_0x2cb302(0x2c3)]({'path':_0x2db6ed,'message':_0x2cb302(0x20f)});return;}if(_0x34a359[_0x2cb302(0x270)]!==undefined&&_0x34a359[_0x2cb302(0x270)]!==null){if(typeof _0x34a359[_0x2cb302(0x270)]!=='string')_0xd23566['push']({'path':_0x2db6ed+'.version','message':_0x2cb302(0x18e)});else _0x34a359[_0x2cb302(0x270)][_0x2cb302(0x260)]()&&_0x34a359[_0x2cb302(0x270)][_0x2cb302(0x260)]()!=='v1'&&_0xd23566[_0x2cb302(0x2c3)]({'path':_0x2db6ed+_0x2cb302(0x257),'message':_0x2cb302(0x2d7)+_0x34a359[_0x2cb302(0x270)]+'.'});}const _0x379f4c=requireNotificationString(_0x34a359[_0x2cb302(0x19b)],_0x2db6ed+'.configCode',_0x2cb302(0x210),_0xd23566);_0x379f4c?.['includes']('${')&&_0xd23566[_0x2cb302(0x2c3)]({'path':_0x2db6ed+'.configCode','message':_0x2cb302(0x2b5)});if(_0x34a359[_0x2cb302(0x1c2)]!==undefined&&_0x34a359[_0x2cb302(0x1c2)]!==null){if(typeof _0x34a359[_0x2cb302(0x1c2)]!==_0x2cb302(0x24b))_0xd23566[_0x2cb302(0x2c3)]({'path':_0x2db6ed+_0x2cb302(0x1bc),'message':_0x2cb302(0x2d5)});else!NOTIFICATION_FAILURE_POLICIES['has'](_0x34a359[_0x2cb302(0x1c2)][_0x2cb302(0x260)]()[_0x2cb302(0x1c3)]())&&_0xd23566[_0x2cb302(0x2c3)]({'path':_0x2db6ed+_0x2cb302(0x1bc),'message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x34a359[_0x2cb302(0x291)])?_0xd23566['push']({'path':_0x2db6ed+'.template','message':'NOTIFICATION\x20node\x20requires\x20template.'}):validateNotificationTemplate(_0x34a359[_0x2cb302(0x291)],_0x2db6ed+_0x2cb302(0x28a),_0xd23566),validateNotificationRecipients(_0x34a359[_0x2cb302(0x25f)],_0x2db6ed+_0x2cb302(0x2dd),_0xd23566);}function a287_0x2e0e(){const _0x4d6f48=['prototype','url','legacy_field_removed','async.enabled\x20must\x20be\x20a\x20boolean.','failurePolicy','toUpperCase','roleId','object','.timeout.resultVariable','Every\x20node\x20requires\x20a\x20non-empty\x20name.','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','context','.timeout.enabled','value\x20must\x20be\x20a\x20non-empty\x20string.','Notification\x20template\x20supports\x20at\x20most\x20','\x20must\x20be\x20a\x20finite\x20number.','flowJson.nodes','bindDatasetCode','summary','.path','Unsupported\x20approval\x20mode:\x20','#/$defs/flowEdge','startPath\x20must\x20be\x20a\x20non-empty\x20string.','approval_sys_initiatorUsername','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','.text','defaultFlow','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','formPermissions','set','delete','FIXED\x20assignee\x20requires\x20userIds.','.value','targetNodeId','add','replace','.defaultFlow','text','edge\x20target\x20is\x20required.','#/$defs/position','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','18pOTnhM','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','Unsupported\x20schemaVersion:\x20','flowDesc\x20must\x20be\x20a\x20string.','nodes','pageId','.waypoints','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','384811BzRvNB','flowJson','isInteger','USER','.pageId','Expression\x20references\x20SCRIPT\x20resultVariable\x20','HANDLE','integer','\x20facts.','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','Unsupported\x20pageMode:\x20','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','scriptResult','approval_sys_pageId','filter','\x20is\x20required.','path','Unsupported\x20condition\x20type:\x20','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','visible','FAIL','flowJson.schemaVersion','.detailMarkdown','datasetCode','FORM_FLOW','Notification\x20action.text\x20is\x20required.','#/$defs/flowNode','boolean','warnings','approval_sys_initiatorUserId','SECONDS','NOTIFICATION\x20node\x20requires\x20config.','Notification\x20configCode\x20is\x20required.','approval.simple-flow.v1','Notification\x20template.facts\x20must\x20be\x20an\x20array.','INDEPENDENT_FLOW','findIndex','keys','.assignee.userIds','event','Node\x20has\x20no\x20incoming\x20edge.','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','https://json-schema.org/draft/2020-12/schema','taskMode','timeout\x20must\x20be\x20an\x20object.','pageMode','indexOf','Notification\x20action.url\x20is\x20required.','END','FIXED','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','.approvalMode','approval_sys_','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','EXECUTE_BFF','DAYS','.async.enabled','EMAIL','source','flowJson.','SCRIPT\x20node\x20requires\x20scriptName.','approval_sys_appCode','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','nodes\x20must\x20be\x20an\x20array.','1148290MINhih','Rabetbase\x20FlowConfig','.target','CUSTOM_PAGE','call','.transferCandidates','.facts','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','target','Notification\x20recipient.type\x20is\x20required.','__rabetbase_local_validation__','flowJson.startPath','10HaIubT','length','size','START','Duplicate\x20resultVariable:\x20','Notification\x20recipient\x20must\x20be\x20an\x20object.','.timeout','Notification\x20fact\x20must\x20be\x20an\x20object.','flowJson.edges[','resultVariable','^[1-9][0-9]*$','flowCode','flowDesc','string','sequential','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','transferCandidates','flowJson.nodes.','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','duration','.source','Notification\x20template.','NaN','Duplicate\x20BPMN\x20element\x20id:\x20','forEach','.version','.transferCandidates.userIds','recipientUserIds','.resultVariable','.\x20This\x20CLI\x20supports\x20only\x20','edges','.timeout.action','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','recipients','trim','.transferCandidates.strategy','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','title','readSources','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','EXPRESSION\x20edge\x20requires\x20expression.','matchAll','empty_metadata_removed','unit','test','.name','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','array','version','edges\x20must\x20be\x20an\x20array.','1709884ysTaHm','.cc','name','get','slice','.cc.recipientUserIds','Edge\x20target\x20node\x20not\x20found:\x20','.position.','^[A-Za-z_][A-Za-z0-9_]*$','HOURS','entries','APPROVED','startPageId','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.transferCandidates.userIds[','].path','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','timeout.interrupting\x20must\x20be\x20a\x20boolean.','APPROVAL','startsWith','cc\x20must\x20be\x20an\x20object.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','Reserved\x20resultVariable:\x20','has','.template','AUTO_APPROVE','EXPRESSION','.conditionType','flowType\x20is\x20required.','Notification\x20recipient.value\x20is\x20required.','3206950nnhhal','template','\x20actions.','ALWAYS','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','flowJson.startPageId','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','parse','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','number','16DrjVCx','561371gLxWvM','role','map','.async.retryInterval','.cc.recipientUserIds[','ROLE','PLATFORM_FORM','.role','value\x20must\x20be\x20an\x20array.','expression','.cc.readSources','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','overwrite','flowJson.nodes[','540138GULjDK','position','Notification\x20fact.','formSchema','some','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','#/$defs/userId','AUTO_REJECT','action','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','ANY','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','.timeout.interrupting','.url','approval_sys_operationType','APPROVAL\x20node\x20requires\x20assignee.','flowJson\x20must\x20be\x20an\x20object.','.type','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','flowKey','push','ALL','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','flowName\x20is\x20required.','.async','datasetCode\x20must\x20be\x20a\x20string.','waypoint.','timeout.enabled\x20must\x20be\x20a\x20boolean.','Unsupported\x20notification\x20placeholder:\x20','BCC','timeout','.sequential','#/$defs/timeAmount','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','facts','stringify','pid','failurePolicy\x20must\x20be\x20a\x20string.','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','Unsupported\x20notification\x20version:\x20','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','Notification\x20template.actions\x20must\x20be\x20an\x20array.','CONDITION','NOTIFICATION','strategy','.recipients','schemaVersion','approval_sys_dataId','Node\x20has\x20no\x20outgoing\x20edge.','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','retryInterval','SCRIPT','isSafeInteger','edge\x20must\x20be\x20an\x20object.','duration\x20requires\x20value\x20and\x20unit.','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','scriptName','.unit','flowJson.edges','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','defaultFlow\x20must\x20be\x20a\x20boolean.','waypoints','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','hasOwnProperty','approved','.taskMode','.assignee.roleId','userIds','interrupting','.expression','approval_sys_processInstanceId','result','.assignee.strategy','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','position.','Notification\x20version\x20must\x20be\x20a\x20string.','message','value','sequential\x20must\x20be\x20a\x20boolean.','formDefinitions','Node\x20is\x20not\x20reachable\x20from\x20START.','sourceNodeId','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','Unsupported\x20flowType:\x20','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','startPath','Duplicate\x20cc\x20recipient\x20userId:\x20','configCode',',\x20but\x20node\x20','enabled','.waypoints[','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','formPermission','SINGLE','isArray','async','every','.config','approvalMode','flowType','CONTINUE','conditionType','isFinite','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','approval_sys_datasetCode','.tmp','label','appCode','\x20users.','formData','type','.id','REJECTED','assignee','1493742iXoTzB','flowName','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','\x20->\x20','Notification\x20action\x20must\x20be\x20an\x20object.','.failurePolicy','templateName'];a287_0x2e0e=function(){return _0x4d6f48;};return a287_0x2e0e();}function validateNotificationTemplate(_0xb8df55,_0x2b202b,_0x516fbd){const _0x39edf5=a287_0x1a3fa1;for(const _0x15b916 of[_0x39edf5(0x264),'summary']){const _0x55c4a3=requireNotificationString(_0xb8df55[_0x15b916],_0x2b202b+'.'+_0x15b916,_0x39edf5(0x253)+_0x15b916+_0x39edf5(0x1ff),_0x516fbd);if(_0x55c4a3)validateNotificationPlaceholders(_0x55c4a3,_0x2b202b+'.'+_0x15b916,_0x516fbd);}_0xb8df55['detailMarkdown']!==undefined&&_0xb8df55['detailMarkdown']!==null&&(typeof _0xb8df55['detailMarkdown']!==_0x39edf5(0x24b)?_0x516fbd['push']({'path':_0x2b202b+_0x39edf5(0x206),'message':_0x39edf5(0x197)}):validateNotificationPlaceholders(_0xb8df55['detailMarkdown'],_0x2b202b+'.detailMarkdown',_0x516fbd)),validateNotificationFacts(_0xb8df55[_0x39edf5(0x2d2)],_0x2b202b+_0x39edf5(0x238),_0x516fbd),validateNotificationActions(_0xb8df55['actions'],_0x2b202b+'.actions',_0x516fbd);}function validateNotificationFacts(_0x32b324,_0x57809a,_0x5dd446){const _0x113371=a287_0x1a3fa1;if(_0x32b324===undefined||_0x32b324===null)return;if(!Array[_0x113371(0x1a2)](_0x32b324)){_0x5dd446[_0x113371(0x2c3)]({'path':_0x57809a,'message':_0x113371(0x212)});return;}_0x32b324[_0x113371(0x23f)]>MAX_NOTIFICATION_FACTS&&_0x5dd446[_0x113371(0x2c3)]({'path':_0x57809a,'message':_0x113371(0x1cc)+MAX_NOTIFICATION_FACTS+_0x113371(0x1f8)}),_0x32b324[_0x113371(0x256)]((_0x3d1c4a,_0x324dbf)=>{const _0x3f7fc4=_0x113371,_0x481190=_0x57809a+'['+_0x324dbf+']';if(!isRecord(_0x3d1c4a)){_0x5dd446['push']({'path':_0x481190,'message':_0x3f7fc4(0x245)});return;}for(const _0x39fd57 of[_0x3f7fc4(0x1af),_0x3f7fc4(0x190)]){const _0x22f6f5=requireNotificationString(_0x3d1c4a[_0x39fd57],_0x481190+'.'+_0x39fd57,_0x3f7fc4(0x2ab)+_0x39fd57+_0x3f7fc4(0x1ff),_0x5dd446);_0x22f6f5&&validateNotificationPlaceholders(_0x22f6f5,_0x481190+'.'+_0x39fd57,_0x5dd446);}});}function validateNotificationActions(_0x5970f4,_0x48416c,_0x3e8531){const _0x23ee2a=a287_0x1a3fa1;if(_0x5970f4===undefined||_0x5970f4===null)return;if(!Array[_0x23ee2a(0x1a2)](_0x5970f4)){_0x3e8531['push']({'path':_0x48416c,'message':_0x23ee2a(0x2d9)});return;}_0x5970f4[_0x23ee2a(0x23f)]>MAX_NOTIFICATION_ACTIONS&&_0x3e8531[_0x23ee2a(0x2c3)]({'path':_0x48416c,'message':_0x23ee2a(0x1cc)+MAX_NOTIFICATION_ACTIONS+_0x23ee2a(0x292)}),_0x5970f4[_0x23ee2a(0x256)]((_0x3038f7,_0x5ab80a)=>{const _0xa2698e=_0x23ee2a,_0x2d26c7=_0x48416c+'['+_0x5ab80a+']';if(!isRecord(_0x3038f7)){_0x3e8531[_0xa2698e(0x2c3)]({'path':_0x2d26c7,'message':_0xa2698e(0x1bb)});return;}const _0x1cfa66=requireNotificationString(_0x3038f7['text'],_0x2d26c7+_0xa2698e(0x1d7),_0xa2698e(0x209),_0x3e8531);if(_0x1cfa66)validateNotificationPlaceholders(_0x1cfa66,_0x2d26c7+'.text',_0x3e8531);const _0x3b779f=requireNotificationString(_0x3038f7['url'],_0x2d26c7+_0xa2698e(0x2bc),_0xa2698e(0x21f),_0x3e8531);if(!_0x3b779f)return;validateNotificationPlaceholders(_0x3b779f,_0x2d26c7+'.url',_0x3e8531),!/^https?:\/\//i['test'](_0x3b779f)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0xa2698e(0x26b)](_0x3b779f)&&_0x3e8531[_0xa2698e(0x2c3)]({'path':_0x2d26c7+'.url','message':_0xa2698e(0x1ab)});});}function validateNotificationRecipients(_0x3a98b4,_0x3c3bbc,_0x114aac){const _0xe6f9be=a287_0x1a3fa1;if(_0x3a98b4===undefined||_0x3a98b4===null)return;if(!Array[_0xe6f9be(0x1a2)](_0x3a98b4)){_0x114aac[_0xe6f9be(0x2c3)]({'path':_0x3c3bbc,'message':'Notification\x20recipients\x20must\x20be\x20an\x20array.'});return;}let _0x59ad88=![];_0x3a98b4['forEach']((_0x1991aa,_0x2460e4)=>{const _0xb4aba4=_0xe6f9be,_0x26fe86=_0x3c3bbc+'['+_0x2460e4+']';if(!isRecord(_0x1991aa)){_0x114aac['push']({'path':_0x26fe86,'message':_0xb4aba4(0x243)});return;}const _0x343845=requireNotificationString(_0x1991aa['type'],_0x26fe86+_0xb4aba4(0x2c0),_0xb4aba4(0x23b),_0x114aac);_0x343845&&!NOTIFICATION_RECIPIENT_TYPES['has'](_0x343845['toUpperCase']())&&_0x114aac[_0xb4aba4(0x2c3)]({'path':_0x26fe86+'.type','message':_0xb4aba4(0x222)});let _0x3b1ba8='TO';_0x1991aa[_0xb4aba4(0x29c)]!==undefined&&_0x1991aa['role']!==null&&(typeof _0x1991aa[_0xb4aba4(0x29c)]!=='string'?(_0x114aac[_0xb4aba4(0x2c3)]({'path':_0x26fe86+'.role','message':_0xb4aba4(0x1e7)}),_0x3b1ba8=''):(_0x3b1ba8=_0x1991aa[_0xb4aba4(0x29c)]['trim']()[_0xb4aba4(0x1c3)](),!NOTIFICATION_RECIPIENT_ROLES[_0xb4aba4(0x289)](_0x3b1ba8)&&_0x114aac[_0xb4aba4(0x2c3)]({'path':_0x26fe86+_0xb4aba4(0x2a2),'message':_0xb4aba4(0x26d)})));if(_0x3b1ba8==='TO')_0x59ad88=!![];const _0x2aff42=requireNotificationString(_0x1991aa['value'],_0x26fe86+_0xb4aba4(0x1df),_0xb4aba4(0x28f),_0x114aac);_0x2aff42&&validateNotificationPlaceholders(_0x2aff42,_0x26fe86+'.value',_0x114aac);}),_0x3a98b4[_0xe6f9be(0x23f)]>0x0&&!_0x59ad88&&_0x114aac['push']({'path':_0x3c3bbc,'message':_0xe6f9be(0x198)});}function requireNotificationString(_0x17c661,_0x4fecad,_0x1eda56,_0x44f514){const _0x5778c8=a287_0x1a3fa1;if(typeof _0x17c661!==_0x5778c8(0x24b)||_0x17c661[_0x5778c8(0x260)]()==='')return _0x44f514[_0x5778c8(0x2c3)]({'path':_0x4fecad,'message':_0x1eda56}),undefined;return _0x17c661[_0x5778c8(0x260)]();}function validateNotificationPlaceholders(_0x298b25,_0x171d21,_0x36b52e){const _0x50f814=a287_0x1a3fa1;for(const _0x1b580a of _0x298b25[_0x50f814(0x268)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x5b0cca=_0x1b580a[0x1]?.[_0x50f814(0x260)]()??'',_0x309bbe=_0x5b0cca[_0x50f814(0x21e)]('.'),_0x38de3b=_0x309bbe>=0x0?_0x5b0cca[_0x50f814(0x276)](0x0,_0x309bbe):_0x5b0cca,_0x519256=_0x309bbe>=0x0?_0x5b0cca[_0x50f814(0x276)](_0x309bbe+0x1)[_0x50f814(0x260)]():'';(![_0x50f814(0x217),_0x50f814(0x1c9),'variables']['includes'](_0x38de3b)||_0x519256==='')&&_0x36b52e[_0x50f814(0x2c3)]({'path':_0x171d21,'message':_0x50f814(0x2cc)+_0x1b580a[0x0]+'.'});}_0x298b25[_0x50f814(0x1e2)](NOTIFICATION_PLACEHOLDER_PATTERN,'')['includes']('${')&&_0x36b52e[_0x50f814(0x2c3)]({'path':_0x171d21,'message':_0x50f814(0x2ae)});}function validateEdge(_0x43b933,_0x1e3501,_0x9b3062){const _0x2dc56b=a287_0x1a3fa1;_0x43b933[_0x2dc56b(0x274)]!==undefined&&typeof _0x43b933['name']!==_0x2dc56b(0x24b)&&_0x9b3062[_0x2dc56b(0x2c3)]({'path':_0x1e3501+_0x2dc56b(0x26c),'message':'edge\x20name\x20must\x20be\x20a\x20string.'}),_0x43b933[_0x2dc56b(0x1d8)]!==undefined&&typeof _0x43b933[_0x2dc56b(0x1d8)]!=='boolean'&&_0x9b3062[_0x2dc56b(0x2c3)]({'path':_0x1e3501+_0x2dc56b(0x1e3),'message':_0x2dc56b(0x17f)}),_0x43b933[_0x2dc56b(0x180)]!==undefined&&(!Array['isArray'](_0x43b933[_0x2dc56b(0x180)])?_0x9b3062[_0x2dc56b(0x2c3)]({'path':_0x1e3501+_0x2dc56b(0x1ee),'message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x43b933[_0x2dc56b(0x180)][_0x2dc56b(0x256)]((_0x209103,_0x30922a)=>{const _0x1cbd5d=_0x2dc56b;if(!isRecord(_0x209103)){_0x9b3062[_0x1cbd5d(0x2c3)]({'path':_0x1e3501+'.waypoints['+_0x30922a+']','message':_0x1cbd5d(0x1d9)});return;}for(const _0x3aee51 of['x','y']){const _0x5402df=_0x209103[_0x3aee51];(typeof _0x5402df!=='number'||!Number['isFinite'](_0x5402df))&&_0x9b3062['push']({'path':_0x1e3501+_0x1cbd5d(0x19e)+_0x30922a+'].'+_0x3aee51,'message':_0x1cbd5d(0x2ca)+_0x3aee51+_0x1cbd5d(0x1cd)});}})),_0x43b933[_0x2dc56b(0x1a9)]!==undefined&&!CONDITION_TYPES['has'](_0x43b933['conditionType'])&&_0x9b3062['push']({'path':_0x1e3501+_0x2dc56b(0x28d),'message':_0x2dc56b(0x201)+String(_0x43b933[_0x2dc56b(0x1a9)])+'.'}),_0x43b933[_0x2dc56b(0x1a9)]===_0x2dc56b(0x28c)&&(typeof _0x43b933[_0x2dc56b(0x2a4)]!==_0x2dc56b(0x24b)||_0x43b933[_0x2dc56b(0x2a4)]['trim']()==='')&&_0x9b3062['push']({'path':_0x1e3501+_0x2dc56b(0x188),'message':_0x2dc56b(0x267)}),_0x43b933['defaultFlow']===!![]&&_0x43b933[_0x2dc56b(0x1a9)]!=='ALWAYS'&&_0x9b3062[_0x2dc56b(0x2c3)]({'path':_0x1e3501+'.defaultFlow','message':_0x2dc56b(0x1f9)}),_0x43b933['defaultFlow']===!![]&&typeof _0x43b933[_0x2dc56b(0x2a4)]==='string'&&_0x43b933[_0x2dc56b(0x2a4)][_0x2dc56b(0x260)]()!==''&&_0x9b3062[_0x2dc56b(0x2c3)]({'path':_0x1e3501+'.expression','message':_0x2dc56b(0x1da)});}function validateGraphShape(_0x3a0134,_0x2c10cd,_0x4bc955,_0x2b67ad,_0x49da72,_0x2be9bc,_0x544ac8){const _0x52c5bd=a287_0x1a3fa1;for(const [_0x49e8af,_0x550595]of _0x3a0134){const _0x39282e=_0x49da72[_0x52c5bd(0x275)](_0x49e8af)??[],_0x4044cf=_0x2b67ad['get'](_0x49e8af)??[];_0x550595[_0x52c5bd(0x1b3)]!=='START'&&_0x39282e[_0x52c5bd(0x23f)]===0x0&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x218)});_0x550595['type']!==_0x52c5bd(0x220)&&_0x4044cf[_0x52c5bd(0x23f)]===0x0&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x2e0)});_0x550595[_0x52c5bd(0x1b3)]===_0x52c5bd(0x241)&&_0x39282e[_0x52c5bd(0x23f)]>0x0&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x226)});_0x550595['type']===_0x52c5bd(0x220)&&_0x4044cf[_0x52c5bd(0x23f)]>0x0&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x298)});if(_0x550595[_0x52c5bd(0x1b3)]===_0x52c5bd(0x2da)){_0x4044cf[_0x52c5bd(0x23f)]<0x2&&_0x544ac8['push']({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x202)});const _0x3dc3e7=_0x4044cf[_0x52c5bd(0x1fe)](_0x4d5ae5=>_0x4d5ae5['defaultFlow']===!![]);_0x3dc3e7[_0x52c5bd(0x23f)]!==0x1&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x25e)});if(_0x3dc3e7[_0x52c5bd(0x23f)]===0x1){const _0x2ef736=_0x3dc3e7[0x0],_0x2f36e9=_0x2be9bc[_0x52c5bd(0x275)](_0x2ef736)??_0x52c5bd(0x17d);_0x2ef736[_0x52c5bd(0x1a9)]!==_0x52c5bd(0x293)&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x2f36e9+_0x52c5bd(0x28d),'message':_0x52c5bd(0x1b9)});_0x2ef736['expression']!==undefined&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x2f36e9+_0x52c5bd(0x188),'message':'CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.'});for(const _0x27d191 of _0x4044cf){if(_0x27d191===_0x2ef736)continue;const _0x2c6ed2=_0x2be9bc[_0x52c5bd(0x275)](_0x27d191)??_0x52c5bd(0x17d);if(_0x27d191[_0x52c5bd(0x1a9)]!==_0x52c5bd(0x28c))_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x2c6ed2+'.conditionType','message':_0x52c5bd(0x296)});else(typeof _0x27d191[_0x52c5bd(0x2a4)]!==_0x52c5bd(0x24b)||_0x27d191['expression'][_0x52c5bd(0x260)]()==='')&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x2c6ed2+'.expression','message':'CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.'});}}}if(_0x550595[_0x52c5bd(0x1b3)]===_0x52c5bd(0x284)&&(_0x550595[_0x52c5bd(0x21b)]??_0x52c5bd(0x284))===_0x52c5bd(0x1f6)){if(_0x4044cf[_0x52c5bd(0x23f)]!==0x1)_0x544ac8['push']({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x282)});else{const _0xb8f418=_0x4044cf[0x0];((_0xb8f418[_0x52c5bd(0x1a9)]??'ALWAYS')!==_0x52c5bd(0x293)||_0xb8f418[_0x52c5bd(0x1d8)]===!![]||typeof _0xb8f418['expression']===_0x52c5bd(0x24b)&&_0xb8f418['expression']['trim']()!=='')&&_0x544ac8['push']({'path':_0x2be9bc[_0x52c5bd(0x275)](_0xb8f418)??_0x52c5bd(0x17d),'message':_0x52c5bd(0x294)});}}else{if(_0x550595[_0x52c5bd(0x1b3)]===_0x52c5bd(0x284)){const _0x1fd3dc=_0x4044cf[_0x52c5bd(0x29d)](_0x2ab1ca=>_0x2ab1ca[_0x52c5bd(0x1a9)]??_0x52c5bd(0x293)),_0x46e5da=_0x1fd3dc[_0x52c5bd(0x1fe)](_0x5777c6=>_0x5777c6!==_0x52c5bd(0x27d)&&_0x5777c6!==_0x52c5bd(0x1b5));_0x46e5da['length']>0x0&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':'APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.'}),_0x1fd3dc[_0x52c5bd(0x1fe)](_0x3148ff=>_0x3148ff===_0x52c5bd(0x27d))[_0x52c5bd(0x23f)]!==0x1&&_0x544ac8['push']({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x1fd3dc[_0x52c5bd(0x1fe)](_0x5acafe=>_0x5acafe===_0x52c5bd(0x1b5))[_0x52c5bd(0x23f)]!==0x1&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x49e8af,'message':_0x52c5bd(0x225)}),_0x4044cf[_0x52c5bd(0x2ad)](_0x37c179=>_0x37c179[_0x52c5bd(0x1d8)]===!![])&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':'flowJson.nodes.'+_0x49e8af,'message':_0x52c5bd(0x219)});}}}const _0x583474=new Set(),_0x4384a9=_0x31873f=>{const _0x59325a=_0x52c5bd;if(_0x583474[_0x59325a(0x289)](_0x31873f))return;_0x583474[_0x59325a(0x1e1)](_0x31873f);for(const _0x5e257b of _0x2b67ad[_0x59325a(0x275)](_0x31873f)??[]){const _0x58ce59=resolveEdgeEndpoint(_0x5e257b[_0x59325a(0x23a)],_0x5e257b[_0x59325a(0x1e0)]);if(_0x58ce59&&_0x3a0134[_0x59325a(0x289)](_0x58ce59))_0x4384a9(_0x58ce59);}};_0x4384a9(_0x2c10cd);for(const _0x2ac7b6 of _0x3a0134[_0x52c5bd(0x215)]()){!_0x583474[_0x52c5bd(0x289)](_0x2ac7b6)&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':_0x52c5bd(0x24f)+_0x2ac7b6,'message':_0x52c5bd(0x193)});}const _0x304d3d=_0x4bc955[_0x52c5bd(0x2ad)](_0x5d45e7=>_0x583474[_0x52c5bd(0x289)](_0x5d45e7));if(!_0x304d3d){_0x544ac8[_0x52c5bd(0x2c3)]({'path':'flowJson.edges','message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0x58ecf7=new Set(),_0x4a1654=_0xb40594=>{const _0x488dce=_0x52c5bd;if(_0x58ecf7['has'](_0xb40594))return;_0x58ecf7[_0x488dce(0x1e1)](_0xb40594);for(const _0x43a8f3 of _0x49da72['get'](_0xb40594)??[]){const _0x59dbd6=resolveEdgeEndpoint(_0x43a8f3[_0x488dce(0x22c)],_0x43a8f3[_0x488dce(0x194)]);if(_0x59dbd6&&_0x3a0134[_0x488dce(0x289)](_0x59dbd6))_0x4a1654(_0x59dbd6);}};for(const _0x13c0f0 of _0x4bc955){if(_0x3a0134[_0x52c5bd(0x289)](_0x13c0f0))_0x4a1654(_0x13c0f0);}for(const _0x33d515 of _0x583474){!_0x58ecf7[_0x52c5bd(0x289)](_0x33d515)&&_0x544ac8[_0x52c5bd(0x2c3)]({'path':'flowJson.nodes.'+_0x33d515,'message':'Node\x20cannot\x20reach\x20any\x20END.'});}}function validateApprovalResults(_0xd25786,_0x3d51aa,_0x327184,_0x1ec1d3){const _0x38553f=a287_0x1a3fa1;if(_0x3d51aa===0x0)return;const _0x31d03e=new Set(_0x327184[_0x38553f(0x29d)](_0x20803c=>_0xd25786['get'](_0x20803c)?.[_0x38553f(0x18a)])[_0x38553f(0x1fe)](_0x1a6a0a=>typeof _0x1a6a0a===_0x38553f(0x24b)));for(const _0x31b882 of[_0x38553f(0x27d),'REJECTED']){!_0x31d03e['has'](_0x31b882)&&_0x1ec1d3[_0x38553f(0x2c3)]({'path':'flowJson.nodes','message':_0x38553f(0x2ba)+_0x31b882+'.'});}}function validateScriptResultReferences(_0x3c7971,_0x5641f0,_0x44dbd9,_0x1a5a4b,_0x480181,_0x4b3220,_0x470a27){const _0x4deb9b=a287_0x1a3fa1;if(_0x4b3220[_0x4deb9b(0x240)]===0x0)return;const _0x25e5ed=new Set(),_0x2d8572=_0x306ac2=>{const _0x56a39c=_0x4deb9b;if(!_0x25e5ed['has'](_0x306ac2)&&_0x3c7971[_0x56a39c(0x289)](_0x306ac2)){_0x25e5ed[_0x56a39c(0x1e1)](_0x306ac2);for(const _0x507233 of _0x44dbd9[_0x56a39c(0x275)](_0x306ac2)??[]){const _0x526982=resolveEdgeEndpoint(_0x507233[_0x56a39c(0x23a)],_0x507233[_0x56a39c(0x1e0)]);if(_0x526982)_0x2d8572(_0x526982);}}};_0x2d8572(_0x5641f0);const _0x469924=new Map();for(const _0x5e7b4f of _0x25e5ed){_0x469924[_0x4deb9b(0x1dc)](_0x5e7b4f,_0x5e7b4f===_0x5641f0?new Set([_0x5641f0]):new Set(_0x25e5ed));}let _0x3aff07=!![];while(_0x3aff07){_0x3aff07=![];for(const _0x449a48 of _0x25e5ed){if(_0x449a48===_0x5641f0)continue;const _0x5aa50c=(_0x1a5a4b[_0x4deb9b(0x275)](_0x449a48)??[])[_0x4deb9b(0x29d)](_0x33ee75=>resolveEdgeEndpoint(_0x33ee75[_0x4deb9b(0x22c)],_0x33ee75['sourceNodeId']))[_0x4deb9b(0x1fe)](_0x226f60=>Boolean(_0x226f60&&_0x25e5ed[_0x4deb9b(0x289)](_0x226f60)));if(_0x5aa50c[_0x4deb9b(0x23f)]===0x0)continue;const _0x16540f=new Set(_0x469924['get'](_0x5aa50c[0x0])??[]);for(const _0x4b1479 of _0x5aa50c['slice'](0x1)){const _0x3166d8=_0x469924[_0x4deb9b(0x275)](_0x4b1479)??new Set();for(const _0x19d7fe of _0x16540f){if(!_0x3166d8[_0x4deb9b(0x289)](_0x19d7fe))_0x16540f[_0x4deb9b(0x1dd)](_0x19d7fe);}}_0x16540f[_0x4deb9b(0x1e1)](_0x449a48);const _0x30cc6b=_0x469924[_0x4deb9b(0x275)](_0x449a48);!setsEqual(_0x30cc6b,_0x16540f)&&(_0x469924[_0x4deb9b(0x1dc)](_0x449a48,_0x16540f),_0x3aff07=!![]);}}for(const [_0x4226b3,_0x3bdfb4]of _0x44dbd9){const _0x201cac=_0x469924[_0x4deb9b(0x275)](_0x4226b3);if(!_0x201cac)continue;for(const _0x5d1a61 of _0x3bdfb4){if(_0x5d1a61[_0x4deb9b(0x1a9)]!==_0x4deb9b(0x28c)||typeof _0x5d1a61[_0x4deb9b(0x2a4)]!==_0x4deb9b(0x24b))continue;for(const [_0x1f8799,_0x2e57a2]of _0x4b3220){expressionReferencesVariable(_0x5d1a61[_0x4deb9b(0x2a4)],_0x1f8799)&&!_0x201cac[_0x4deb9b(0x289)](_0x2e57a2)&&_0x470a27[_0x4deb9b(0x2c3)]({'path':(_0x480181[_0x4deb9b(0x275)](_0x5d1a61)??_0x4deb9b(0x17d))+_0x4deb9b(0x188),'message':_0x4deb9b(0x1f5)+_0x1f8799+_0x4deb9b(0x19c)+_0x2e57a2+_0x4deb9b(0x19f)+_0x4226b3+'.'});}}}}function expressionReferencesVariable(_0x19dbd9,_0x5d5ec8){const _0x4d551e=a287_0x1a3fa1;let _0x3e2e2e=0x0;while(_0x3e2e2e<_0x19dbd9[_0x4d551e(0x23f)]){const _0x1062c0=_0x19dbd9[_0x3e2e2e];if(_0x1062c0==='\x27'||_0x1062c0==='\x22'){_0x3e2e2e=skipQuotedExpressionSegment(_0x19dbd9,_0x3e2e2e,_0x1062c0);continue;}if(!/[A-Za-z_]/[_0x4d551e(0x26b)](_0x1062c0)){_0x3e2e2e+=0x1;continue;}const _0x217fe2=_0x3e2e2e;_0x3e2e2e+=0x1;while(_0x3e2e2e<_0x19dbd9[_0x4d551e(0x23f)]&&/[A-Za-z0-9_]/[_0x4d551e(0x26b)](_0x19dbd9[_0x3e2e2e])){_0x3e2e2e+=0x1;}if(_0x19dbd9[_0x4d551e(0x276)](_0x217fe2,_0x3e2e2e)!==_0x5d5ec8)continue;let _0x495738=_0x217fe2-0x1;while(_0x495738>=0x0&&/\s/[_0x4d551e(0x26b)](_0x19dbd9[_0x495738])){_0x495738-=0x1;}if(_0x19dbd9[_0x495738]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x1719f6,_0x686dfb,_0x58d532){const _0x5bc585=a287_0x1a3fa1;let _0x3b2052=_0x686dfb+0x1;while(_0x3b2052<_0x1719f6[_0x5bc585(0x23f)]){if(_0x1719f6[_0x3b2052]==='\x5c'){_0x3b2052+=0x2;continue;}if(_0x1719f6[_0x3b2052]===_0x58d532)return _0x3b2052+0x1;_0x3b2052+=0x1;}return _0x3b2052;}function resolveEffectiveResultVariable(_0x1cc2b7,_0x390f1a){const _0x46a72d=a287_0x1a3fa1;if(_0x1cc2b7===undefined||_0x1cc2b7===null||_0x390f1a&&_0x1cc2b7==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x1cc2b7!=='string'||!VARIABLE_PATTERN[_0x46a72d(0x26b)](_0x1cc2b7)||RESERVED_RESULT_VARIABLES[_0x46a72d(0x289)](_0x1cc2b7)||_0x1cc2b7[_0x46a72d(0x285)](_0x46a72d(0x224)))return undefined;return _0x1cc2b7;}function registerResultVariableOwner(_0x2f249a,_0x339c02,_0x52ad3f,_0x203aa3){const _0x3b77fa=a287_0x1a3fa1;if(_0x2f249a['has'](_0x339c02)){_0x203aa3[_0x3b77fa(0x2c3)]({'path':_0x3b77fa(0x1ce),'message':_0x3b77fa(0x242)+_0x339c02+'.'});return;}_0x2f249a[_0x3b77fa(0x1dc)](_0x339c02,_0x52ad3f);}function setsEqual(_0x57deb3,_0x541d70){const _0x100817=a287_0x1a3fa1;return _0x57deb3[_0x100817(0x240)]===_0x541d70['size']&&[..._0x57deb3][_0x100817(0x1a4)](_0x566961=>_0x541d70['has'](_0x566961));}function isValidUserId(_0x50396e){const _0x19071d=a287_0x1a3fa1;if(typeof _0x50396e==='string')return _0x50396e[_0x19071d(0x260)]()[_0x19071d(0x23f)]>0x0;return Number['isSafeInteger'](_0x50396e)&&Number(_0x50396e)>0x0;}function resolveEdgeEndpoint(_0x34c395,_0x43b148){const _0x1b37c2=a287_0x1a3fa1;if(typeof _0x34c395===_0x1b37c2(0x24b)&&_0x34c395[_0x1b37c2(0x260)]())return _0x34c395[_0x1b37c2(0x260)]();if(typeof _0x43b148===_0x1b37c2(0x24b)&&_0x43b148[_0x1b37c2(0x260)]())return _0x43b148[_0x1b37c2(0x260)]();return undefined;}function removeEmptyMetadata(_0x29af26,_0x15dd6c,_0x306cb1,_0x538e20){const _0x5a82e6=a287_0x1a3fa1;if(Array[_0x5a82e6(0x1a2)](_0x29af26)){_0x29af26[_0x5a82e6(0x256)]((_0x1e85ec,_0x4b0fdd)=>removeEmptyMetadata(_0x1e85ec,_0x15dd6c+'['+_0x4b0fdd+']',_0x306cb1,_0x538e20));return;}if(!isRecord(_0x29af26))return;for(const [_0x288cc8,_0x2123b8]of Object[_0x5a82e6(0x27c)](_0x29af26)){const _0x54999e=_0x15dd6c+'.'+_0x288cc8;if(_0x288cc8==='metadata'&&isEmptyJsonValue(_0x2123b8)){delete _0x29af26[_0x288cc8],_0x538e20['push'](_0x54999e),_0x306cb1[_0x5a82e6(0x2c3)]({'code':_0x5a82e6(0x269),'path':_0x54999e,'message':_0x54999e+'\x20was\x20empty\x20and\x20was\x20removed.'});continue;}removeEmptyMetadata(_0x2123b8,_0x54999e,_0x306cb1,_0x538e20);}}function isEmptyJsonValue(_0x515b50){const _0x469a12=a287_0x1a3fa1;if(_0x515b50===null||_0x515b50===undefined)return!![];if(typeof _0x515b50===_0x469a12(0x24b))return _0x515b50[_0x469a12(0x260)]()==='';if(Array[_0x469a12(0x1a2)](_0x515b50))return _0x515b50[_0x469a12(0x23f)]===0x0;return isRecord(_0x515b50)&&Object[_0x469a12(0x215)](_0x515b50)[_0x469a12(0x23f)]===0x0;}function isRecord(_0x275a6f){const _0x2ef9a2=a287_0x1a3fa1;return typeof _0x275a6f===_0x2ef9a2(0x1c5)&&_0x275a6f!==null&&!Array[_0x2ef9a2(0x1a2)](_0x275a6f);}function cloneJsonValue(_0x3aa4e2){const _0x2fbea8=a287_0x1a3fa1;return JSON[_0x2fbea8(0x297)](JSON[_0x2fbea8(0x2d3)](_0x3aa4e2));}export async function readFlowConfigFile(_0x5b3721){const _0x32a552=a287_0x1a3fa1,_0x2adb72=await readFile(resolve(_0x5b3721),'utf8');return JSON[_0x32a552(0x297)](_0x2adb72);}