@hotmeshio/hotmesh 0.3.28 → 0.3.29

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 (115) hide show
  1. package/build/modules/key.js +1 -1
  2. package/build/modules/utils.js +1 -1
  3. package/build/package.json +1 -1
  4. package/build/services/activities/activity.js +1 -1
  5. package/build/services/activities/await.js +1 -1
  6. package/build/services/activities/cycle.js +1 -1
  7. package/build/services/activities/hook.js +1 -1
  8. package/build/services/activities/index.js +1 -1
  9. package/build/services/activities/interrupt.js +1 -1
  10. package/build/services/activities/signal.js +1 -1
  11. package/build/services/activities/trigger.js +1 -1
  12. package/build/services/activities/worker.js +1 -1
  13. package/build/services/collator/index.js +1 -1
  14. package/build/services/compiler/deployer.js +1 -1
  15. package/build/services/compiler/index.js +1 -1
  16. package/build/services/compiler/validator.js +1 -1
  17. package/build/services/engine/index.js +1 -1
  18. package/build/services/exporter/index.js +1 -1
  19. package/build/services/hotmesh/index.js +3 -0
  20. package/build/services/mapper/index.js +1 -1
  21. package/build/services/meshdata/index.d.ts +10 -10
  22. package/build/services/meshflow/client.js +1 -0
  23. package/build/services/meshflow/exporter.js +1 -1
  24. package/build/services/meshflow/workflow/all.d.ts +1 -0
  25. package/build/services/meshflow/workflow/all.js +8 -0
  26. package/build/services/meshflow/workflow/common.d.ts +18 -0
  27. package/build/services/meshflow/workflow/common.js +45 -0
  28. package/build/services/meshflow/workflow/context.d.ts +2 -0
  29. package/build/services/meshflow/workflow/context.js +41 -0
  30. package/build/services/meshflow/workflow/didRun.d.ts +1 -0
  31. package/build/services/meshflow/workflow/didRun.js +16 -0
  32. package/build/services/meshflow/workflow/emit.d.ts +4 -0
  33. package/build/services/meshflow/workflow/emit.js +22 -0
  34. package/build/services/meshflow/workflow/enrich.d.ts +2 -0
  35. package/build/services/meshflow/workflow/enrich.js +10 -0
  36. package/build/services/meshflow/workflow/execChild.d.ts +4 -0
  37. package/build/services/meshflow/workflow/execChild.js +84 -0
  38. package/build/services/meshflow/workflow/hook.d.ts +2 -0
  39. package/build/services/meshflow/workflow/hook.js +33 -0
  40. package/build/services/meshflow/workflow/index.d.ts +39 -0
  41. package/build/services/meshflow/workflow/index.js +52 -0
  42. package/build/services/meshflow/workflow/interrupt.d.ts +2 -0
  43. package/build/services/meshflow/workflow/interrupt.js +17 -0
  44. package/build/services/meshflow/workflow/isSideEffectAllowed.d.ts +2 -0
  45. package/build/services/meshflow/workflow/isSideEffectAllowed.js +25 -0
  46. package/build/services/meshflow/workflow/proxyActivities.d.ts +6 -0
  47. package/build/services/meshflow/workflow/proxyActivities.js +82 -0
  48. package/build/services/meshflow/workflow/random.d.ts +1 -0
  49. package/build/services/meshflow/workflow/random.js +11 -0
  50. package/build/services/meshflow/workflow/searchMethods.d.ts +2 -0
  51. package/build/services/meshflow/workflow/searchMethods.js +21 -0
  52. package/build/services/meshflow/workflow/signal.d.ts +1 -0
  53. package/build/services/meshflow/workflow/signal.js +22 -0
  54. package/build/services/meshflow/workflow/sleepFor.d.ts +1 -0
  55. package/build/services/meshflow/workflow/sleepFor.js +28 -0
  56. package/build/services/meshflow/workflow/trace.d.ts +4 -0
  57. package/build/services/meshflow/workflow/trace.js +23 -0
  58. package/build/services/meshflow/workflow/waitFor.d.ts +1 -0
  59. package/build/services/meshflow/workflow/waitFor.js +28 -0
  60. package/build/services/meshos/index.d.ts +8 -5
  61. package/build/services/meshos/index.js +31 -10
  62. package/build/services/pipe/functions/array.js +1 -1
  63. package/build/services/pipe/functions/bitwise.js +1 -1
  64. package/build/services/pipe/functions/conditional.js +1 -1
  65. package/build/services/pipe/functions/cron.js +1 -1
  66. package/build/services/pipe/functions/date.js +1 -1
  67. package/build/services/pipe/functions/index.js +1 -1
  68. package/build/services/pipe/functions/json.js +1 -1
  69. package/build/services/pipe/functions/logical.js +1 -1
  70. package/build/services/pipe/functions/math.js +1 -1
  71. package/build/services/pipe/functions/number.js +1 -1
  72. package/build/services/pipe/functions/object.js +1 -1
  73. package/build/services/pipe/functions/string.js +1 -1
  74. package/build/services/pipe/functions/symbol.js +1 -1
  75. package/build/services/pipe/functions/unary.js +1 -1
  76. package/build/services/pipe/index.js +1 -1
  77. package/build/services/quorum/index.js +1 -1
  78. package/build/services/reporter/index.js +1 -1
  79. package/build/services/router/index.js +1 -1
  80. package/build/services/search/providers/postgres/postgres.js +1 -1
  81. package/build/services/search/providers/redis/ioredis.js +1 -1
  82. package/build/services/search/providers/redis/redis.js +1 -1
  83. package/build/services/serializer/index.js +1 -1
  84. package/build/services/store/providers/postgres/kvsql.js +1 -1
  85. package/build/services/store/providers/postgres/kvtables.js +1 -1
  86. package/build/services/store/providers/postgres/kvtransaction.js +1 -1
  87. package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
  88. package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
  89. package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
  90. package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
  91. package/build/services/store/providers/postgres/postgres.js +1 -1
  92. package/build/services/store/providers/redis/_base.js +1 -1
  93. package/build/services/store/providers/redis/ioredis.js +1 -1
  94. package/build/services/store/providers/redis/redis.js +1 -1
  95. package/build/services/store/providers/store-initializable.js +1 -1
  96. package/build/services/stream/providers/nats/nats.js +1 -1
  97. package/build/services/stream/providers/postgres/kvtables.js +1 -1
  98. package/build/services/stream/providers/postgres/postgres.js +1 -1
  99. package/build/services/stream/providers/redis/ioredis.js +1 -1
  100. package/build/services/stream/providers/redis/redis.js +1 -1
  101. package/build/services/stream/providers/stream-initializable.js +1 -1
  102. package/build/services/sub/providers/nats/nats.js +1 -1
  103. package/build/services/sub/providers/postgres/postgres.js +1 -1
  104. package/build/services/sub/providers/redis/ioredis.js +1 -1
  105. package/build/services/sub/providers/redis/redis.js +1 -1
  106. package/build/services/task/index.js +1 -1
  107. package/build/services/telemetry/index.js +1 -1
  108. package/build/services/worker/index.js +1 -1
  109. package/build/types/manifest.d.ts +2 -0
  110. package/build/types/provider.d.ts +2 -0
  111. package/package.json +1 -1
  112. package/types/manifest.ts +12 -2
  113. package/types/provider.ts +14 -0
  114. package/build/services/meshflow/workflow.d.ts +0 -35
  115. package/build/services/meshflow/workflow.js +0 -403
@@ -1 +1 @@
1
- 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x174))/0x1+-parseInt(i(0x19a))/0x2+-parseInt(i(0x1bc))/0x3*(-parseInt(i(0x1a1))/0x4)+parseInt(i(0x194))/0x5+parseInt(i(0x17f))/0x6*(parseInt(i(0x1b8))/0x7)+-parseInt(i(0x192))/0x8*(parseInt(i(0x196))/0x9)+parseInt(i(0x199))/0xa*(-parseInt(i(0x175))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x2c2f0));function a(){const p=['HMNS','APP','THROTTLE_RATE','144722UMIBiO','11DLrKWy','jobs','../types/hotmesh','events','defineProperty','WEBSEP',':sym:keys:','JOB_DEPENDENTS',':signals',':q:','138ddZbwf','stats','unknown_entity','sym','JOB_STATS_INDEX','task_priorities',':sym:vals:','__esModule','KeyType','VALSEP','throttles',':t:','JOB_STATS_GENERAL','SUBSCRIPTIONS','hmsh','signal_registry',':w:','task_schedules','join','255032VtLhUF','split','229595hXuzJW','HOOKS','36iytVGN','parseKey','SYMKEYS','321340pmnipP','441642HTgBmu','task_lists','jobId','facet','signal_patterns','topic','roles','1460HxzWoz','jobKey','resolveAbbreviation','mintKey','signals','JOB_STATS_MEDIAN','dateTime',':hooks','scoutType',':s:','KeyService','timeValue','symbols','JOB_STATE','TYPSEP','hooks','applications',':subscriptions','WORK_ITEMS','resolveEntityType',':x:',':schemas','Invalid\x20key\x20type.','102634dJjHbS',':j:','versions','appId','276QUyXws','KEYSEP','SIGNALS','streams',':v:'];a=function(){return p;};return a();}Object['defineProperty'](exports,j(0x186),{'value':!![]}),exports[j(0x188)]=exports[j(0x17a)]=exports['TYPSEP']=exports[j(0x1bd)]=exports['HMNS']=exports['KeyType']=exports[j(0x1ab)]=void 0x0;const hotmesh_1=require(j(0x177));Object[j(0x179)](exports,j(0x187),{'enumerable':!![],'get':function(){const k=j;return hotmesh_1[k(0x187)];}});const HMNS=j(0x18d);exports[j(0x171)]=HMNS;const KEYSEP=':';exports['KEYSEP']=KEYSEP;const VALSEP='::';exports[j(0x188)]=VALSEP;const WEBSEP='::';exports['WEBSEP']=WEBSEP;const TYPSEP='::';function b(c,d){const e=a();return b=function(f,g){f=f-0x16e;let h=e[f];return h;},b(c,d);}exports[j(0x1af)]=TYPSEP;class KeyService{static[j(0x1a4)](c,d,e){const l=j;switch(d){case hotmesh_1['KeyType']['HOTMESH']:return c;case hotmesh_1['KeyType'][l(0x173)]:return c+':'+e[l(0x1bb)]+':r:';case hotmesh_1[l(0x187)][l(0x1b3)]:return c+':'+e[l(0x1bb)]+l(0x18f)+(e[l(0x1a9)]||'');case hotmesh_1[l(0x187)]['TIME_RANGE']:return c+':'+e[l(0x1bb)]+l(0x18a)+(e[l(0x1ac)]||'');case hotmesh_1[l(0x187)][l(0x172)]:return c+':a:'+(e[l(0x1bb)]||'');case hotmesh_1['KeyType']['QUORUM']:return c+':'+e[l(0x1bb)]+l(0x17e)+(e['engineId']||'');case hotmesh_1[l(0x187)][l(0x1ae)]:return c+':'+e[l(0x1bb)]+l(0x1b9)+e['jobId'];case hotmesh_1[l(0x187)][l(0x17c)]:return c+':'+e[l(0x1bb)]+':d:'+e[l(0x19c)];case hotmesh_1[l(0x187)][l(0x18b)]:return c+':'+e[l(0x1bb)]+l(0x1aa)+e[l(0x1a2)]+':'+e[l(0x1a7)];case hotmesh_1['KeyType'][l(0x1a6)]:return c+':'+e['appId']+l(0x1aa)+e[l(0x1a2)]+':'+e[l(0x1a7)]+':'+e[l(0x19d)];case hotmesh_1[l(0x187)][l(0x183)]:return c+':'+e[l(0x1bb)]+l(0x1aa)+e[l(0x1a2)]+':'+e[l(0x1a7)]+':'+e[l(0x19d)];case hotmesh_1[l(0x187)]['SCHEMAS']:return c+':'+e[l(0x1bb)]+l(0x170)+e['appVersion']+l(0x1b6);case hotmesh_1['KeyType'][l(0x18c)]:return c+':'+e['appId']+l(0x170)+e['appVersion']+l(0x1b2);case hotmesh_1['KeyType']['SUBSCRIPTION_PATTERNS']:return c+':'+e[l(0x1bb)]+l(0x170)+e['appVersion']+':transitions';case hotmesh_1[l(0x187)][l(0x195)]:return c+':'+e['appId']+l(0x1a8);case hotmesh_1[l(0x187)][l(0x16e)]:return c+':'+e[l(0x1bb)]+l(0x17d);case hotmesh_1[l(0x187)][l(0x198)]:return c+':'+e[l(0x1bb)]+l(0x17b)+(e['activityId']||'');case hotmesh_1[l(0x187)]['SYMVALS']:return c+':'+e[l(0x1bb)]+l(0x185);case hotmesh_1[l(0x187)]['STREAMS']:return c+':'+(e[l(0x1bb)]||'')+l(0x1b5)+(e[l(0x19f)]||'');default:throw new Error(l(0x1b7));}}static[j(0x197)](c){const m=j,[d,e,f,...g]=c[m(0x193)](KEYSEP),h=g[m(0x191)](KEYSEP)||'';return{'namespace':d,'app':f==='a'?e:undefined,'entity':f,'id':h};}static['reconstituteKey'](c){const {namespace:d,app:e,entity:f,id:g}=c;return''+d+KEYSEP+e+KEYSEP+f+KEYSEP+(g||'');}static[j(0x1b4)](c,d=''){const n=j;switch(c){case'a':return n(0x1b1);case'r':return n(0x189);case'w':return d===''?n(0x184):n(0x1a0);case't':return d===''?n(0x190):n(0x19b);case'q':return n(0x178);case'j':return n(0x176);case's':return n(0x180);case'v':return n(0x1ba);case'x':return d===''?n(0x16f):'stream_topics';case n(0x1b0):return n(0x19e);case n(0x1a5):return n(0x18e);case n(0x182):return n(0x1ad);default:return'unknown_entity';}}static[j(0x1a3)](c){const o=j;switch(c){case'applications':return'a';case'throttles':return'r';case'roles':return'w';case'task_schedules':return't';case o(0x19b):return't';case o(0x178):return'q';case o(0x176):return'j';case o(0x180):return's';case o(0x1ba):return'v';case o(0x16f):return'x';case'signal_patterns':return'hooks';case o(0x18e):return'signals';case o(0x1ad):return o(0x182);default:return o(0x181);}}}exports[j(0x1ab)]=KeyService;
1
+ 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x18c))/0x1+parseInt(i(0x161))/0x2+-parseInt(i(0x17f))/0x3*(-parseInt(i(0x162))/0x4)+parseInt(i(0x15b))/0x5+-parseInt(i(0x175))/0x6*(-parseInt(i(0x180))/0x7)+-parseInt(i(0x18a))/0x8+parseInt(i(0x177))/0x9*(-parseInt(i(0x17b))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xb8ecf));function a(){const p=['task_lists','HOOKS','WEBSEP','../types/hotmesh','hooks',':subscriptions','facet','versions','KEYSEP','signal_patterns','streams','SYMKEYS','SCHEMAS','SUBSCRIPTION_PATTERNS','timeValue','2014705cqyAVo','APP','__esModule','scoutType','WORK_ITEMS',':w:','2161724hkRvPU','4fAudys','jobs','signals',':sym:vals:',':s:',':d:','events','SYMVALS','roles','TIME_RANGE','VALSEP','signal_registry','jobKey','sym','symbols','split','KeyType',':r:',':schemas','1794654OHUkuy','parseKey','18663471fvJQQS',':q:',':j:','SUBSCRIPTIONS','10BxAPwm','activityId','stats','JOB_STATS_INDEX','3989571dWgnoM','7OgUhlx','dateTime','applications','jobId',':v:','JOB_DEPENDENTS','STREAMS','unknown_entity','TYPSEP','engineId','11361968BkeuRr','JOB_STATS_MEDIAN','1138651CtaGkh',':t:','task_priorities','HMNS',':x:','resolveAbbreviation','join','appId','resolveEntityType','SIGNALS','hmsh',':transitions','reconstituteKey','appVersion','mintKey','throttles','KeyService','task_schedules',':signals','QUORUM','THROTTLE_RATE',':a:'];a=function(){return p;};return a();}Object['defineProperty'](exports,j(0x15d),{'value':!![]}),exports[j(0x16c)]=exports[j(0x14e)]=exports[j(0x188)]=exports[j(0x154)]=exports['HMNS']=exports[j(0x172)]=exports[j(0x146)]=void 0x0;const hotmesh_1=require(j(0x14f));Object['defineProperty'](exports,j(0x172),{'enumerable':!![],'get':function(){const k=j;return hotmesh_1[k(0x172)];}});const HMNS=j(0x140);exports[j(0x139)]=HMNS;function b(c,d){const e=a();return b=function(f,g){f=f-0x138;let h=e[f];return h;},b(c,d);}const KEYSEP=':';exports['KEYSEP']=KEYSEP;const VALSEP='::';exports[j(0x16c)]=VALSEP;const WEBSEP='::';exports['WEBSEP']=WEBSEP;const TYPSEP='::';exports['TYPSEP']=TYPSEP;class KeyService{static[j(0x144)](c,d,e){const l=j;switch(d){case hotmesh_1[l(0x172)]['HOTMESH']:return c;case hotmesh_1[l(0x172)][l(0x14a)]:return c+':'+e[l(0x13d)]+l(0x173);case hotmesh_1[l(0x172)][l(0x15f)]:return c+':'+e[l(0x13d)]+l(0x160)+(e[l(0x15e)]||'');case hotmesh_1['KeyType'][l(0x16b)]:return c+':'+e['appId']+l(0x18d)+(e[l(0x15a)]||'');case hotmesh_1['KeyType'][l(0x15c)]:return c+l(0x14b)+(e[l(0x13d)]||'');case hotmesh_1[l(0x172)][l(0x149)]:return c+':'+e[l(0x13d)]+l(0x178)+(e[l(0x189)]||'');case hotmesh_1[l(0x172)]['JOB_STATE']:return c+':'+e[l(0x13d)]+l(0x179)+e[l(0x183)];case hotmesh_1[l(0x172)][l(0x185)]:return c+':'+e['appId']+l(0x167)+e['jobId'];case hotmesh_1[l(0x172)]['JOB_STATS_GENERAL']:return c+':'+e[l(0x13d)]+l(0x166)+e['jobKey']+':'+e[l(0x181)];case hotmesh_1[l(0x172)][l(0x18b)]:return c+':'+e[l(0x13d)]+l(0x166)+e[l(0x16e)]+':'+e[l(0x181)]+':'+e[l(0x152)];case hotmesh_1[l(0x172)][l(0x17e)]:return c+':'+e[l(0x13d)]+l(0x166)+e[l(0x16e)]+':'+e[l(0x181)]+':'+e[l(0x152)];case hotmesh_1[l(0x172)][l(0x158)]:return c+':'+e[l(0x13d)]+l(0x184)+e[l(0x143)]+l(0x174);case hotmesh_1[l(0x172)][l(0x17a)]:return c+':'+e[l(0x13d)]+l(0x184)+e[l(0x143)]+l(0x151);case hotmesh_1[l(0x172)][l(0x159)]:return c+':'+e[l(0x13d)]+l(0x184)+e[l(0x143)]+l(0x141);case hotmesh_1[l(0x172)][l(0x14d)]:return c+':'+e[l(0x13d)]+':hooks';case hotmesh_1[l(0x172)][l(0x13f)]:return c+':'+e['appId']+l(0x148);case hotmesh_1[l(0x172)][l(0x157)]:return c+':'+e[l(0x13d)]+':sym:keys:'+(e[l(0x17c)]||'');case hotmesh_1[l(0x172)][l(0x169)]:return c+':'+e['appId']+l(0x165);case hotmesh_1[l(0x172)][l(0x186)]:return c+':'+(e['appId']||'')+l(0x13a)+(e['topic']||'');default:throw new Error('Invalid\x20key\x20type.');}}static[j(0x176)](c){const m=j,[d,e,f,...g]=c[m(0x171)](KEYSEP),h=g[m(0x13c)](KEYSEP)||'';return{'namespace':d,'app':f==='a'?e:undefined,'entity':f,'id':h};}static[j(0x142)](c){const {namespace:d,app:e,entity:f,id:g}=c;return''+d+KEYSEP+e+KEYSEP+f+KEYSEP+(g||'');}static[j(0x13e)](c,d=''){const n=j;switch(c){case'a':return'applications';case'r':return n(0x145);case'w':return d===''?n(0x138):n(0x16a);case't':return d===''?'task_schedules':n(0x14c);case'q':return n(0x168);case'j':return n(0x163);case's':return n(0x17d);case'v':return n(0x153);case'x':return d===''?'streams':'stream_topics';case n(0x150):return n(0x155);case n(0x164):return n(0x16d);case n(0x16f):return n(0x170);default:return'unknown_entity';}}static[j(0x13b)](c){const o=j;switch(c){case o(0x182):return'a';case o(0x145):return'r';case'roles':return'w';case o(0x147):return't';case o(0x14c):return't';case o(0x168):return'q';case o(0x163):return'j';case o(0x17d):return's';case o(0x153):return'v';case o(0x156):return'x';case o(0x155):return o(0x150);case o(0x16d):return o(0x164);case o(0x170):return o(0x16f);default:return o(0x187);}}}exports[j(0x146)]=KeyService;
@@ -1 +1 @@
1
- 'use strict';const o=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(0x1e8))/0x1+-parseInt(n(0x1f7))/0x2+-parseInt(n(0x1e4))/0x3+parseInt(n(0x1fa))/0x4+parseInt(n(0x1d7))/0x5+-parseInt(n(0x1eb))/0x6*(-parseInt(n(0x209))/0x7)+-parseInt(n(0x1ed))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x98d6a));var __importDefault=this&&this[o(0x210)]||function(c){const p=o;return c&&c[p(0x204)]?c:{'default':c};};Object[o(0x1e9)](exports,'__esModule',{'value':!![]}),exports[o(0x1c7)]=exports[o(0x216)]=exports['parseStreamMessage']=exports['s']=exports['isValidCron']=exports[o(0x1c6)]=exports[o(0x1e2)]=exports[o(0x1b4)]=exports[o(0x1d1)]=exports[o(0x1e6)]=exports['formatISODate']=exports['getTimeSeries']=exports[o(0x218)]=exports[o(0x1c0)]=exports[o(0x1f6)]=exports[o(0x1d5)]=exports['matchesStatusCode']=exports['polyfill']=exports[o(0x1fc)]=exports[o(0x1b7)]=exports[o(0x1bc)]=exports[o(0x202)]=exports[o(0x1de)]=exports[o(0x20f)]=exports[o(0x207)]=exports[o(0x1e5)]=exports[o(0x201)]=void 0x0;const os_1=__importDefault(require('os')),crypto_1=require(o(0x212)),nanoid_1=require(o(0x1fb)),ms_1=__importDefault(require('ms')),logger_1=require('../services/logger'),enums_1=require(o(0x203)),logger=new logger_1[(o(0x211))]('hotmesh',o(0x1cd)),hashOptions=c=>{const q=o,d=JSON[q(0x1f2)](c);return(0x0,crypto_1[q(0x1ec)])(q(0x1f5))[q(0x1fe)](d)[q(0x205)](q(0x200));};exports['hashOptions']=hashOptions;async function getSystemHealth(){const r=o,c=os_1['default'][r(0x1b5)](),d=os_1['default'][r(0x1be)](),e=c-d,f={'TotalMemoryGB':(c/0x400/0x400/0x400)[r(0x1fd)](0x2)+r(0x1bb),'FreeMemoryGB':(d/0x400/0x400/0x400)[r(0x1fd)](0x2)+r(0x1bb),'UsedMemoryGB':(e/0x400/0x400/0x400)['toFixed'](0x2)+'\x20GB','CPULoad':[],'NetworkStats':[]};return f;}exports['getSystemHealth']=getSystemHealth;function deepCopy(c){const t=o;return JSON[t(0x1d4)](JSON[t(0x1f2)](c));}exports[o(0x207)]=deepCopy;function deterministicRandom(c){const u=o,d=Math[u(0x1dd)](c)*0x2710;return d-Math['floor'](d);}exports['deterministicRandom']=deterministicRandom;function guid(c=enums_1['HMSH_GUID_SIZE']){const v=o;return'H'+(0x0,nanoid_1[v(0x1fb)])(c);}exports[o(0x1de)]=guid;async function sleepFor(c){return new Promise(d=>setTimeout(d,c));}exports[o(0x202)]=sleepFor;function sleepImmediate(){return new Promise(c=>setImmediate(c));}exports[o(0x1bc)]=sleepImmediate;function XSleepFor(c){let d;const e=new Promise(f=>{d=setTimeout(f,c);});return{'promise':e,'timerId':d};}exports[o(0x1b7)]=XSleepFor;function identifyProvider(c){const w=o,d=Object[w(0x1e3)](c);if(c[w(0x20e)]?.[w(0x1c5)]||Object['keys'](c)['includes'](w(0x1dc))||d[w(0x1ca)]==='Pool')return w(0x1b9);else{if(c[w(0x1db)]()[w(0x1ff)]()[w(0x1d3)](w(0x1ba)))return w(0x1ba);else{if(w(0x1bd)in d||Object[w(0x1f0)](d)[w(0x1d3)](w(0x1ce)))return'ioredis';else{if(Object[w(0x1f0)](d)['includes'](w(0x1ee)))return w(0x1e7);}}}if(c[w(0x20a)]){if(c[w(0x20a)][w(0x1ca)]===w(0x1b3)||c[w(0x20a)][w(0x1ca)]===w(0x1f3)){if(w(0x1f4)in c)return w(0x1c1);}else{if(c[w(0x20a)][w(0x1ca)]===w(0x1df)||c['constructor'][w(0x1ca)]===w(0x1c3)){if(w(0x1f9)in c)return w(0x1e7);}}}let e=null;if(Object[w(0x1f0)](c)[w(0x1d3)](w(0x20b))||!isNaN(c[w(0x1c8)])&&!isNaN(c[w(0x217)]))e='postgres';else{if(Object['keys'](c)[w(0x1d3)](w(0x1b6)))e=w(0x1c1);else{if(Object['keys'](c)[w(0x1d3)]('createClient'))e='redis';else d[w(0x20a)]['toString']()[w(0x1d3)]('NatsConnectionImpl')&&(e=w(0x1ba));}}return e;}exports['identifyProvider']=identifyProvider,exports[o(0x20d)]={'providerConfig'(c){const x=o;return c?.['connection']??c?.[x(0x1e7)]??c?.[x(0x1cb)];},'meshDataConfig'(c){const y=o;return{...c[y(0x20b)]};}};function matchesStatusCode(c,d){const z=o;if(typeof d===z(0x1c2)){const e='^'+d['replace'](/\*/g,'\x5cd')+'$';return new RegExp(e)[z(0x1b8)](c[z(0x1db)]());}return d['test'](c[z(0x1db)]());}exports[o(0x1c9)]=matchesStatusCode;function matchesStatus(c,d){return c===d;}exports[o(0x1d5)]=matchesStatus;function findTopKey(c,d){const A=o;for(const [e,f]of Object[A(0x1d6)](c)){if(f[A(0x206)](d)){const g=findTopKey(c,e[A(0x213)](/^\./,''));return(g||e)[A(0x213)](/^\./,'');}}return null;}exports['findTopKey']=findTopKey;function findSubscriptionForTrigger(c,d){const B=o;for(const [e,f]of Object[B(0x1d6)](c)){if(f===d)return e;}return null;}exports[o(0x1c0)]=findSubscriptionForTrigger;async function getSubscriptionTopic(c,d,e){const C=o,f=await d[C(0x1e0)](e),g=await d[C(0x1bf)](e),h=findTopKey(f,c),i=findSubscriptionForTrigger(g,h);return i;}exports[o(0x218)]=getSubscriptionTopic;function getTimeSeries(c){const D=o;if(c['toString']()==='infinity')return'0';const d=new Date(),e=c['slice'](-0x1),f=parseInt(c[D(0x214)](0x0,-0x1),0xa);if(e==='m'){const g=Math[D(0x1f8)](d[D(0x1d2)]()/f)*f;d['setUTCMinutes'](g,0x0,0x0);}else e==='h'&&d[D(0x1cc)](0x0,0x0,0x0);return d[D(0x1d8)]()[D(0x213)](/:\d\d\..+|-|T/g,'')[D(0x213)](':','');}function b(c,d){const e=a();return b=function(f,g){f=f-0x1b3;let h=e[f];return h;},b(c,d);}exports[o(0x1f1)]=getTimeSeries;function formatISODate(c){const E=o,d=c instanceof Date?c:new Date(c);return d[E(0x1d8)]()[E(0x213)](/[:TZ-]/g,'');}exports[o(0x1c4)]=formatISODate;function getSymKey(c){const F=o,d=F(0x1e1),e=d[F(0x1d9)];if(c<0x0||c>=Math[F(0x20c)](e,0x3))throw new Error(F(0x1d0));const [f,g]=divmod(c,e),[h,i]=divmod(f,e);return d[h]+d[g]+d[i];}exports[o(0x1e6)]=getSymKey;function getSymVal(c){const G=o,d=G(0x1e1),e=d[G(0x1d9)];if(c<0x0||c>=Math['pow'](e,0x2))throw new Error(G(0x1d0));const [f,g]=divmod(c,e);return d[f]+d[g];}exports[o(0x1d1)]=getSymVal;function divmod(c,d){const H=o;return[Math[H(0x1f8)](c/d),c%d];}function getIndexedHash(c,d){const e=c[d]||0x0,f={...c};return delete f[d],[e,f];}exports[o(0x1b4)]=getIndexedHash;function getValueByPath(c,d){const I=o,e=d[I(0x1da)]('/');let f=c;for(const g of e){if(f[g]!==undefined)f=f[g];else return undefined;}return f;}exports[o(0x1e2)]=getValueByPath;function restoreHierarchy(c){const J=o,d={};for(const e in c){if(c[e]===undefined)continue;const f=e[J(0x1da)]('/');let g=d;for(let h=0x0;h<f['length'];h++){h===f[J(0x1d9)]-0x1?g[f[h]]=c[e]:(g[f[h]]=g[f[h]]||{},g=g[f[h]]);}}return d;}exports[o(0x1c6)]=restoreHierarchy;function a(){const P=['setUTCMinutes','utils','multi','default','Number\x20out\x20of\x20range','getSymVal','getMinutes','includes','parse','matchesStatus','entries','4151705RXZRkk','toISOString','length','split','toString','database','sin','guid','ProviderClient','getTransitions','abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','getValueByPath','getPrototypeOf','953280GxNxdo','getSystemHealth','getSymKey','redis','465090utNerl','defineProperty','parseStreamMessage','240PGDlhI','createHash','12774968UmdQym','Multi','error','keys','getTimeSeries','stringify','EventEmitter','hset','sha256','findTopKey','1618378cJADKV','floor','HSET','3683100CHmeiX','nanoid','identifyProvider','toFixed','update','toLowerCase','hex','hashOptions','sleepFor','./enums','__esModule','digest','hasOwnProperty','deepCopy','Error\x20parsing\x20Stream\x20message','198387PegbGo','constructor','connection','pow','polyfill','Query','deterministicRandom','__importDefault','LoggerService','crypto','replace','slice','isArray','isStreamMessage','idleCount','getSubscriptionTopic','Redis','getIndexedHash','totalmem','Pipeline','XSleepFor','test','postgres','nats','\x20GB','sleepImmediate','defineCommand','freemem','getSubscriptions','findSubscriptionForTrigger','ioredis','string','Commander','formatISODate','prototype','restoreHierarchy','arrayToHash','totalCount','matchesStatusCode','name','connections'];a=function(){return P;};return a();}function isValidCron(c){const K=o,d=/^(\*|([0-5]?\d)) (\*|([01]?\d|2[0-3])) (\*|([12]?\d|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6](?:-[0-6])?(?:,[0-6])?))$/;return d[K(0x1b8)](c);}exports['isValidCron']=isValidCron;const s=c=>{const L=o;return(0x0,ms_1[L(0x1cf)])(c)/0x3e8;};exports['s']=s;const parseStreamMessage=c=>{const M=o;try{return JSON[M(0x1d4)](c);}catch(d){logger[M(0x1ef)](M(0x208),{'error':d});throw d;}};exports[o(0x1ea)]=parseStreamMessage;const isStreamMessage=c=>{const N=o;return Array['isArray'](c)&&Array[N(0x215)](c[0x0]);};exports[o(0x216)]=isStreamMessage;const arrayToHash=c=>{const O=o,d=[];let e;for(let f=0x1;f<c[O(0x1d9)];f++){const g=c[f],h={};if(Array[O(0x215)](g)){for(let k=0x0;k<g[O(0x1d9)];k+=0x2){const l=g[k],m=g[k+0x1];h[l]=m;}e&&(h['$']=e),d['push'](h),e=undefined;}else e=g;}return d;};exports[o(0x1c7)]=arrayToHash;
1
+ 'use strict';const p=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(0x1fb))/0x1+-parseInt(n(0x1e9))/0x2+-parseInt(n(0x1db))/0x3+parseInt(n(0x1fc))/0x4*(-parseInt(n(0x1e2))/0x5)+-parseInt(n(0x225))/0x6+-parseInt(n(0x1cf))/0x7+-parseInt(n(0x205))/0x8*(-parseInt(n(0x219))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xcccaa));var __importDefault=this&&this['__importDefault']||function(c){const o=b;return c&&c[o(0x1f0)]?c:{'default':c};};function a(){const L=['floor','database','nats','hotmesh','2039157ZvxeyA','Number\x20out\x20of\x20range','slice','utils','replace','toFixed','findSubscriptionForTrigger','610khljUd','toString','connection','EventEmitter','sleepImmediate','idleCount','keys','1911478YxQgrD','hex','getTimeSeries','sin','parseStreamMessage','identifyProvider','deepCopy','__esModule','isArray','hset','default','restoreHierarchy','hashOptions','Redis','test','length','arrayToHash','getSymKey','637409ppcOlO','13736ljVMJm','Commander','polyfill','defineProperty','getSubscriptions','string','Pipeline','update','split','552sMlooP','postgres','constructor','sha256','toISOString','getIndexedHash','infinity','createClient','Error\x20parsing\x20Stream\x20message','LoggerService','Query','name','abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','freemem','\x20GB','sleepFor','includes','guid','formatISODate','setUTCMinutes','466551QVUCGS','getPrototypeOf','error','digest','findTopKey','redis','crypto','isValidCron','getMinutes','stringify','multi','Pool','4963860OSMBLN','XSleepFor','hasOwnProperty','isStreamMessage','../services/logger','ioredis','createHash','connections','getSubscriptionTopic','pow','HMSH_GUID_SIZE','3456306wEVkoE','parse','nanoid','getValueByPath','deterministicRandom','matchesStatus','getTransitions','matchesStatusCode'];a=function(){return L;};return a();}Object[p(0x1ff)](exports,'__esModule',{'value':!![]}),exports[p(0x1f9)]=exports[p(0x228)]=exports[p(0x1ed)]=exports['s']=exports[p(0x220)]=exports[p(0x1f4)]=exports[p(0x1d2)]=exports[p(0x20a)]=exports['getSymVal']=exports[p(0x1fa)]=exports[p(0x217)]=exports[p(0x1eb)]=exports[p(0x1cc)]=exports[p(0x1e1)]=exports[p(0x21d)]=exports['matchesStatus']=exports[p(0x1d6)]=exports['polyfill']=exports[p(0x1ee)]=exports['XSleepFor']=exports[p(0x1e6)]=exports['sleepFor']=exports[p(0x216)]=exports[p(0x1d3)]=exports[p(0x1ef)]=exports['getSystemHealth']=exports['hashOptions']=void 0x0;const os_1=__importDefault(require('os')),crypto_1=require(p(0x21f)),nanoid_1=require(p(0x1d1)),ms_1=__importDefault(require('ms')),logger_1=require(p(0x229)),enums_1=require('./enums'),logger=new logger_1[(p(0x20e))](p(0x1da),p(0x1de)),hashOptions=c=>{const q=p,d=JSON['stringify'](c);return(0x0,crypto_1[q(0x22b)])(q(0x208))[q(0x203)](d)[q(0x21c)](q(0x1ea));};exports[p(0x1f5)]=hashOptions;async function getSystemHealth(){const r=p,c=os_1[r(0x1f3)]['totalmem'](),d=os_1[r(0x1f3)][r(0x212)](),e=c-d,f={'TotalMemoryGB':(c/0x400/0x400/0x400)[r(0x1e0)](0x2)+r(0x213),'FreeMemoryGB':(d/0x400/0x400/0x400)['toFixed'](0x2)+'\x20GB','UsedMemoryGB':(e/0x400/0x400/0x400)[r(0x1e0)](0x2)+r(0x213),'CPULoad':[],'NetworkStats':[]};return f;}exports['getSystemHealth']=getSystemHealth;function deepCopy(c){const t=p;return JSON[t(0x1d0)](JSON[t(0x222)](c));}exports[p(0x1ef)]=deepCopy;function deterministicRandom(c){const u=p,d=Math[u(0x1ec)](c)*0x2710;return d-Math[u(0x1d7)](d);}exports[p(0x1d3)]=deterministicRandom;function guid(c=enums_1[p(0x1ce)]){return'H'+(0x0,nanoid_1['nanoid'])(c);}exports[p(0x216)]=guid;async function sleepFor(c){return new Promise(d=>setTimeout(d,c));}exports[p(0x214)]=sleepFor;function sleepImmediate(){return new Promise(c=>setImmediate(c));}exports[p(0x1e6)]=sleepImmediate;function XSleepFor(c){let d;const e=new Promise(f=>{d=setTimeout(f,c);});return{'promise':e,'timerId':d};}exports[p(0x226)]=XSleepFor;function identifyProvider(c){const v=p,d=Object[v(0x21a)](c);if(c[v(0x20f)]?.['prototype']||Object[v(0x1e8)](c)[v(0x215)](v(0x1d8))||d[v(0x210)]===v(0x224))return v(0x206);else{if(c[v(0x1e3)]()['toLowerCase']()[v(0x215)]('nats'))return v(0x1d9);else{if('defineCommand'in d||Object[v(0x1e8)](d)['includes'](v(0x223)))return'ioredis';else{if(Object[v(0x1e8)](d)[v(0x215)]('Multi'))return v(0x21e);}}}if(c[v(0x207)]){if(c[v(0x207)][v(0x210)]===v(0x1f6)||c[v(0x207)][v(0x210)]===v(0x1e5)){if(v(0x1f2)in c)return v(0x22a);}else{if(c[v(0x207)][v(0x210)]==='ProviderClient'||c[v(0x207)][v(0x210)]===v(0x1fd)){if('HSET'in c)return v(0x21e);}}}let e=null;if(Object[v(0x1e8)](c)['includes'](v(0x1e4))||!isNaN(c['totalCount'])&&!isNaN(c[v(0x1e7)]))e=v(0x206);else{if(Object[v(0x1e8)](c)[v(0x215)](v(0x202)))e=v(0x22a);else{if(Object[v(0x1e8)](c)[v(0x215)](v(0x20c)))e=v(0x21e);else d['constructor'][v(0x1e3)]()[v(0x215)]('NatsConnectionImpl')&&(e=v(0x1d9));}}return e;}exports[p(0x1ee)]=identifyProvider,exports[p(0x1fe)]={'providerConfig'(c){const w=p;return c?.[w(0x1e4)]??c?.[w(0x21e)]??c?.[w(0x22c)];},'meshDataConfig'(c){return{...c['connection']};}};function matchesStatusCode(c,d){const x=p;if(typeof d===x(0x201)){const e='^'+d[x(0x1df)](/\*/g,'\x5cd')+'$';return new RegExp(e)[x(0x1f7)](c['toString']());}return d[x(0x1f7)](c[x(0x1e3)]());}exports[p(0x1d6)]=matchesStatusCode;function matchesStatus(c,d){return c===d;}exports[p(0x1d4)]=matchesStatus;function findTopKey(c,d){const y=p;for(const [e,f]of Object['entries'](c)){if(f[y(0x227)](d)){const g=findTopKey(c,e['replace'](/^\./,''));return(g||e)['replace'](/^\./,'');}}return null;}exports[p(0x21d)]=findTopKey;function findSubscriptionForTrigger(c,d){for(const [e,f]of Object['entries'](c)){if(f===d)return e;}return null;}exports['findSubscriptionForTrigger']=findSubscriptionForTrigger;function b(c,d){const e=a();return b=function(f,g){f=f-0x1cc;let h=e[f];return h;},b(c,d);}async function getSubscriptionTopic(c,d,e){const z=p,f=await d[z(0x1d5)](e),g=await d[z(0x200)](e),h=findTopKey(f,c),i=findSubscriptionForTrigger(g,h);return i;}exports[p(0x1cc)]=getSubscriptionTopic;function getTimeSeries(c){const A=p;if(c[A(0x1e3)]()===A(0x20b))return'0';const d=new Date(),e=c[A(0x1dd)](-0x1),f=parseInt(c['slice'](0x0,-0x1),0xa);if(e==='m'){const g=Math[A(0x1d7)](d[A(0x221)]()/f)*f;d['setUTCMinutes'](g,0x0,0x0);}else e==='h'&&d[A(0x218)](0x0,0x0,0x0);return d[A(0x209)]()[A(0x1df)](/:\d\d\..+|-|T/g,'')[A(0x1df)](':','');}exports['getTimeSeries']=getTimeSeries;function formatISODate(c){const B=p,d=c instanceof Date?c:new Date(c);return d[B(0x209)]()[B(0x1df)](/[:TZ-]/g,'');}exports[p(0x217)]=formatISODate;function getSymKey(c){const C=p,d=C(0x211),e=d[C(0x1f8)];if(c<0x0||c>=Math[C(0x1cd)](e,0x3))throw new Error(C(0x1dc));const [f,g]=divmod(c,e),[h,i]=divmod(f,e);return d[h]+d[g]+d[i];}exports[p(0x1fa)]=getSymKey;function getSymVal(c){const D=p,d=D(0x211),e=d[D(0x1f8)];if(c<0x0||c>=Math[D(0x1cd)](e,0x2))throw new Error(D(0x1dc));const [f,g]=divmod(c,e);return d[f]+d[g];}exports['getSymVal']=getSymVal;function divmod(c,d){return[Math['floor'](c/d),c%d];}function getIndexedHash(c,d){const e=c[d]||0x0,f={...c};return delete f[d],[e,f];}exports[p(0x20a)]=getIndexedHash;function getValueByPath(c,d){const E=p,e=d[E(0x204)]('/');let f=c;for(const g of e){if(f[g]!==undefined)f=f[g];else return undefined;}return f;}exports[p(0x1d2)]=getValueByPath;function restoreHierarchy(c){const F=p,d={};for(const e in c){if(c[e]===undefined)continue;const f=e[F(0x204)]('/');let g=d;for(let h=0x0;h<f['length'];h++){h===f[F(0x1f8)]-0x1?g[f[h]]=c[e]:(g[f[h]]=g[f[h]]||{},g=g[f[h]]);}}return d;}exports[p(0x1f4)]=restoreHierarchy;function isValidCron(c){const G=p,d=/^(\*|([0-5]?\d)) (\*|([01]?\d|2[0-3])) (\*|([12]?\d|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6](?:-[0-6])?(?:,[0-6])?))$/;return d[G(0x1f7)](c);}exports[p(0x220)]=isValidCron;const s=c=>{const H=p;return(0x0,ms_1[H(0x1f3)])(c)/0x3e8;};exports['s']=s;const parseStreamMessage=c=>{const I=p;try{return JSON[I(0x1d0)](c);}catch(d){logger[I(0x21b)](I(0x20d),{'error':d});throw d;}};exports['parseStreamMessage']=parseStreamMessage;const isStreamMessage=c=>{const J=p;return Array['isArray'](c)&&Array[J(0x1f1)](c[0x0]);};exports[p(0x228)]=isStreamMessage;const arrayToHash=c=>{const K=p,d=[];let e;for(let f=0x1;f<c[K(0x1f8)];f++){const g=c[f],h={};if(Array['isArray'](g)){for(let k=0x0;k<g[K(0x1f8)];k+=0x2){const l=g[k],m=g[k+0x1];h[l]=m;}e&&(h['$']=e),d['push'](h),e=undefined;}else e=g;}return d;};exports['arrayToHash']=arrayToHash;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.3.28",
3
+ "version": "0.3.29",
4
4
  "description": "Serverless Workflow",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1 +1 @@
1
- 'use strict';const p=b;(function(c,d){const o=b,e=c();while(!![]){try{const f=parseInt(o(0x26d))/0x1*(parseInt(o(0x255))/0x2)+parseInt(o(0x210))/0x3+parseInt(o(0x21e))/0x4+-parseInt(o(0x1e2))/0x5*(-parseInt(o(0x20d))/0x6)+parseInt(o(0x1e9))/0x7+-parseInt(o(0x232))/0x8*(parseInt(o(0x24f))/0x9)+-parseInt(o(0x1c4))/0xa*(parseInt(o(0x200))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x91296));Object['defineProperty'](exports,p(0x1e7),{'value':!![]}),exports['Activity']=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x1c2;let h=e[f];return h;},b(c,d);}const enums_1=require(p(0x25c)),errors_1=require(p(0x20a)),utils_1=require('../../modules/utils'),collator_1=require(p(0x247)),mapper_1=require(p(0x23a)),pipe_1=require(p(0x1d9)),serializer_1=require(p(0x23b)),telemetry_1=require(p(0x234)),stream_1=require(p(0x21d));function a(){const a4=['status','376126FPYrLP','getTransitions','message','activity-process-event-error','jobWasInterrupted','formatISODate','MDATA_SYMBOLS','../../modules/enums','PENDING','$self','input','hook','trc','output','KEYS','transitionAdjacent','exec','deepCopy','notarizeContinuation','verifyEntry','router','TelemetryService','verifyReentry','/output/metadata/dad','1fnHTKA','job\x20id\x20is\x20undefined','bindActivityData','bindJobError','process-event-inactive-job-error','1335500eGRRgq','bindJobTelemetryToState','dad','mapJobData','notarizeEntry','adjacencyList','filterAdjacent','StreamStatus','guid','Pipe','consumes','getVID','atp','statusThreshold','metadata','HMSH_EXPIRE_DURATION','getSeed','setStatus','isJobComplete','getTriggerConfig','bindJobState','../pipe','restoreHierarchy','debug','mapRules','map','metadata/','maps','fault','PRODUCES','68485FYQvYk','resolveAdjacentDad','startActivitySpan','emit','/output/metadata/as','__esModule','isArray','858039xGspTF','notarizeCompletion','logger','jid','job','StreamDataType','info','processSuccess','code','ACTIVITY_UPDATE','runJobCompletionTasks','authorizeEntry','name','shouldPersistJob','trigger','subscribes','bindDimensionalAddress','getDimensionsById','notarizeReentry','MapperService','setState','assertJobActive','Activity','77nbbOag','error','app.activity.mids','mapOutputData','push','engine','resolveDad','aid','lastIndexOf','setActivityError','../../modules/errors','GenerationalError','CollatorService','174zciXNi','-error','$error','3505086nwVLds','processError','resolveStatus','publishMessage','substring','setLeg','stack','process-event-','processEvent','getJobStatus','initPolicies','JOB_UPDATE','$job','../../types/stream','1356812SRXgHd','getDimensionalSeed','appId','mapStatusThreshold','bindJobMetadata','leg','transact','getState','ERROR','ACTIVITY','assertGenerationalId','initDimensionalAddress','data','setActivityAttributes','initSelf','resolve','process-event-generational-job-error','mapInputData','bindActivityError','store','16acJOPw','addTargetTelemetryPaths','../telemetry','evaluate','join','bindActivityMetadata','forEach','gid','../mapper','../serializer','processPending','SUCCESS','shouldEmit','err','keys','InactiveJobError','persistent','activity-process-event-end','config','length','getValueByPath','../collator','transition','persist','JOB','bindJobMetadataPaths','context','stringify','bindActivityMetadataPaths','3086937QPaEij','ancestors','CollationError','subtype','split'];a=function(){return a4;};return a();}class Activity{constructor(c,d,e,f,g,h){const q=p;this[q(0x254)]=stream_1[q(0x1cb)][q(0x23d)],this['code']=0xc8,this['adjacentIndex']=0x0,this[q(0x244)]=c,this[q(0x22a)]=d,this['metadata']=e,this[q(0x260)]=f,this[q(0x205)]=g,this['context']=h||{'data':{},'metadata':{}},this[q(0x1eb)]=g[q(0x1eb)],this[q(0x231)]=g['store'];}['setLeg'](c){const r=p;this[r(0x223)]=c;}['mapStatusThreshold'](){const s=p;if(this[s(0x244)][s(0x1d1)]!==undefined){const c=pipe_1[s(0x1cd)][s(0x22d)](this[s(0x244)][s(0x1d1)],this[s(0x24c)]);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async[p(0x268)](){const t=p;this['setLeg'](0x1),await this['getState']();const c=this[t(0x221)]();try{collator_1[t(0x20c)]['assertJobActive'](this[t(0x24c)][t(0x1d2)]['js'],this[t(0x24c)][t(0x1d2)][t(0x1ec)],this[t(0x1d2)][t(0x207)],c);}catch(d){await collator_1[t(0x20c)][t(0x1c8)](this);if(c>0x0){if(this[t(0x24c)][t(0x1d2)]['js']===c){const e=await this[t(0x1d5)](-c);Number(e)===0x0&&await this[t(0x205)][t(0x1f3)](this[t(0x24c)]);}}else throw d;return;}await collator_1[t(0x20c)][t(0x1c8)](this);}async[p(0x26b)](){const u=p,c=this['context'][u(0x1d2)][u(0x1cc)];return this[u(0x215)](0x2),await this[u(0x225)](),collator_1[u(0x20c)][u(0x1fe)](this['context'][u(0x1d2)]['js'],this[u(0x24c)][u(0x1d2)][u(0x1ec)],this[u(0x1d2)][u(0x207)]),await collator_1[u(0x20c)][u(0x1fb)](this,c);}async[p(0x218)](c=stream_1['StreamStatus'][p(0x23d)],d=0xc8,e=p(0x262)){const v=p;this[v(0x215)](0x2);const f=this['context'][v(0x1d2)][v(0x1ec)];if(!f){this['logger'][v(0x201)](v(0x258),{'message':v(0x26e)});return;}const g=this['metadata'][v(0x207)];this[v(0x254)]=c,this[v(0x1f1)]=d,this[v(0x1eb)][v(0x1db)]('activity-process-event',{'topic':this[v(0x244)][v(0x252)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this['verifyReentry']();this['adjacentIndex']=collator_1['CollatorService']['getDimensionalIndex'](i),h=new telemetry_1[(v(0x26a))](this[v(0x205)][v(0x220)],this[v(0x244)],this['metadata'],this[v(0x24c)]),h[v(0x1e4)](this[v(0x223)]);let j;if(c===stream_1['StreamStatus'][v(0x25d)])j=await this[v(0x23c)](e);else c===stream_1[v(0x1cb)][v(0x23d)]?j=await this[v(0x1f0)](e):j=await this[v(0x211)]();this['transitionAdjacent'](j,h);}catch(k){if(k instanceof errors_1[v(0x251)]){this[v(0x1eb)][v(0x1ef)](v(0x217)+k[v(0x1e0)]+v(0x20e),{'error':k});return;}else{if(k instanceof errors_1[v(0x241)]){this[v(0x1eb)][v(0x1ef)](v(0x1c3),{'error':k});return;}else{if(k instanceof errors_1[v(0x20b)]){this['logger'][v(0x1ef)](v(0x22e),{'error':k});return;}else{if(k instanceof errors_1['GetStateError']){this[v(0x1eb)]['info']('process-event-get-job-error',{'error':k});return;}}}}this[v(0x1eb)][v(0x201)]('activity-process-event-error',{'error':k,'message':k[v(0x257)],'stack':k[v(0x216)],'name':k[v(0x1f5)]}),h?.[v(0x209)](k['message']);throw k;}finally{h?.['endActivitySpan'](),this[v(0x1eb)]['debug'](v(0x243),{'jid':f,'aid':g});}}async[p(0x23c)](c){const w=p;this[w(0x26f)](c),this[w(0x1c9)]=await this['filterAdjacent'](),this[w(0x1c7)]();const d=this[w(0x231)][w(0x224)]();return await this[w(0x1fd)](d),await collator_1[w(0x20c)][w(0x267)](this,d),await this[w(0x1d5)](this[w(0x1c9)][w(0x245)],d),await d[w(0x265)]();}async[p(0x1f0)](c){const x=p;this[x(0x26f)](c),this[x(0x1c9)]=await this['filterAdjacent'](),this['mapJobData']();const d=this['store']['transact']();return await this[x(0x1fd)](d),await collator_1[x(0x20c)]['notarizeCompletion'](this,d),await this[x(0x1d5)](this[x(0x1c9)][x(0x245)]-0x1,d),await d[x(0x265)]();}async[p(0x211)](){const y=p;this[y(0x230)](this[y(0x22a)]),this[y(0x1c9)]=await this[y(0x1ca)]();!this[y(0x1c9)][y(0x245)]&&this[y(0x1c2)](this[y(0x22a)]);this[y(0x1c7)]();const c=this['store'][y(0x224)]();return await this[y(0x1fd)](c),await collator_1[y(0x20c)][y(0x1ea)](this,c),await this[y(0x1d5)](this[y(0x1c9)]['length']-0x1,c),await c[y(0x265)]();}async[p(0x264)](c,d){const z=p;d['mapActivityAttributes']();const e=this[z(0x212)](c),f={'app.job.jss':e},g=await this['transition'](this[z(0x1c9)],e);g?.[z(0x245)]&&(f[z(0x202)]=g[z(0x236)](',')),d[z(0x22b)](f);}['resolveStatus'](c){const A=p,d=c[c[A(0x245)]-0x1];return Array[A(0x1e8)](d)?Number(d[0x1]):Number(d);}[p(0x1c7)](){const B=p;if(this[B(0x244)][B(0x1ed)]?.['maps']){const c=new mapper_1['MapperService']((0x0,utils_1[B(0x266)])(this[B(0x244)][B(0x1ed)][B(0x1df)]),this[B(0x24c)]),d=c[B(0x1dc)]();if(d)for(const e in d){const f=e['indexOf']('[');if(f>-0x1){const g=e[B(0x214)](f+0x1)[B(0x253)](']')[0x0];if(!isNaN(Number(g))){const h=e['substring'](0x0,f);d[h]=d[e],delete d[e];}else{if(g==='-'||g==='_'){const i=d[e];Object[B(0x240)](i)[B(0x238)](j=>{d[j]=i[j];});}}}}this['context'][B(0x22a)]=d;}}[p(0x22f)](){const C=p;if(this[C(0x244)]['input']?.['maps']){const c=new mapper_1[(C(0x1fc))]((0x0,utils_1[C(0x266)])(this[C(0x244)][C(0x25f)][C(0x1df)]),this[C(0x24c)]);this[C(0x24c)][C(0x22a)]=c['mapRules']();}}[p(0x203)](){const D=p;if(this['config']['output']?.[D(0x1df)]){const c=new mapper_1[(D(0x1fc))]((0x0,utils_1['deepCopy'])(this[D(0x244)][D(0x262)][D(0x1df)]),this[D(0x24c)]),d=c['mapRules'](),e=this[D(0x1d2)][D(0x207)],f={...this[D(0x24c)][e][D(0x262)],...d};this[D(0x24c)][e][D(0x262)][D(0x22a)]=f;}}async['registerTimeout'](){}[p(0x230)](c){const E=p,d=this['context'][this[E(0x1d2)][E(0x207)]][E(0x262)][E(0x1d2)];d[E(0x23f)]=JSON[E(0x24d)](this[E(0x22a)]),d[E(0x20f)]={...c,'is_stream_error':!![]};}['bindJobError'](c){const F=p;this['context'][F(0x1d2)]['err']=JSON[F(0x24d)]({...c,'is_stream_error':!![]});}async[p(0x1d7)](){const G=p;return await this[G(0x231)]['getSchema'](this['config'][G(0x1f7)],await this['engine'][G(0x1cf)]());}['getJobStatus'](){return null;}async[p(0x1d5)](c,d){const H=p,{id:e}=await this[H(0x205)][H(0x1cf)]();return await this[H(0x231)][H(0x1d5)](c,this[H(0x24c)][H(0x1d2)]['jid'],e,d);}[p(0x1f4)](c){const I=p;return this[I(0x1c9)]?.['map'](d=>{const J=I,{metadata:{aid:e}}=d;return c[e+J(0x1e6)]=collator_1['CollatorService'][J(0x1d4)](),e;})??[];}[p(0x1f9)](c){const K=p,d=this[K(0x206)]();c[this['metadata'][K(0x207)]+K(0x26c)]=d;}async[p(0x1fd)](c){const L=p,d=this[L(0x24c)][L(0x1d2)][L(0x1ec)];this[L(0x222)](),this[L(0x237)]();const e={};await this[L(0x1d8)](e);const f=this[L(0x1f4)](e);this[L(0x1f9)](e),this['bindActivityState'](e);const g=['$'+this[L(0x244)][L(0x1f8)],this[L(0x1d2)][L(0x207)],...f],h=collator_1[L(0x20c)][L(0x1fa)]([...this[L(0x244)][L(0x250)],this[L(0x1d2)]['aid']],this[L(0x206)]());return await this['store'][L(0x1fd)](e,this[L(0x219)](),d,g,h,c);}[p(0x222)](){const M=p;this[M(0x24c)][M(0x1d2)]['ju']=(0x0,utils_1[M(0x25a)])(new Date());}[p(0x237)](){const N=p,c=this[N(0x24c)][N(0x25e)];!c[N(0x262)][N(0x1d2)]&&(c[N(0x262)][N(0x1d2)]={});this['status']===stream_1[N(0x1cb)][N(0x226)]&&(c['output'][N(0x1d2)][N(0x23f)]=JSON[N(0x24d)](this[N(0x22a)]));const d=(0x0,utils_1[N(0x25a)])(new Date());c[N(0x262)][N(0x1d2)]['ac']=d,c['output']['metadata']['au']=d,c['output'][N(0x1d2)][N(0x1d0)]=this[N(0x244)]['type'],this[N(0x244)]['subtype']&&(c[N(0x262)][N(0x1d2)]['stp']=this[N(0x244)][N(0x252)]),c[N(0x262)]['metadata'][N(0x207)]=this[N(0x1d2)]['aid'];}async[p(0x1d8)](c){const O=p,d=await this[O(0x1d7)](),e=[...d[O(0x1e1)]||[],...this[O(0x24b)]()];for(const f of e){const g=(0x0,utils_1[O(0x246)])(this['context'],f);g!==undefined&&(c[f]=g);}for(const h in this[O(0x24c)]?.['data']??{}){(h['startsWith']('-')||h['startsWith']('_'))&&(c[h]=this[O(0x24c)]['data'][h]);}telemetry_1[O(0x26a)][O(0x1c5)](c,this[O(0x244)],this['context']);}['bindActivityState'](c){const P=p,d=[...this['config']['produces'],...this['bindActivityMetadataPaths']()];for(const e of d){const f=this[P(0x1d2)][P(0x207)]+'/'+e,g=(0x0,utils_1['getValueByPath'])(this[P(0x24c)],f);g!==undefined&&(c[f]=g);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](c,this['config'],this['metadata'],this[P(0x24c)],this['leg']);}[p(0x24b)](){const Q=p;return serializer_1['MDATA_SYMBOLS'][Q(0x21b)][Q(0x263)]['map'](c=>Q(0x1de)+c);}[p(0x24e)](){const R=p,c=this['leg']===0x1?R(0x227):R(0x1f2);return serializer_1[R(0x25b)][c][R(0x263)]['map'](d=>'output/metadata/'+d);}async[p(0x225)](){const S=p,c=this[S(0x24c)][S(0x1d2)][S(0x239)],d='$'+this[S(0x244)]['subscribes'],e={[d]:serializer_1[S(0x25b)][S(0x24a)][S(0x263)][S(0x1dd)](k=>S(0x1de)+k)};for(let [k,l]of Object['entries'](this['config'][S(0x1ce)])){if(k==='$job')for(const m of l){e[d][S(0x204)](m);}else{k==='$self'&&(k=this[S(0x1d2)][S(0x207)]);!e[k]&&(e[k]=[]);for(const n of l){e[k][S(0x204)](k+'/'+n);}}}telemetry_1[S(0x26a)][S(0x233)](e,this['config'],this[S(0x1d2)],this[S(0x223)]);const {dad:f,jid:g}=this['context'][S(0x1d2)],h=collator_1[S(0x20c)][S(0x1fa)]([...this[S(0x244)]['ancestors'],this['metadata']['aid']],f||''),[i,j]=await this[S(0x231)][S(0x225)](g,e,h);this[S(0x24c)]=(0x0,utils_1[S(0x1da)])(i),this['assertGenerationalId'](this[S(0x24c)]?.[S(0x1d2)]?.[S(0x239)],c),this[S(0x229)](f),this[S(0x22c)](this[S(0x24c)]),this[S(0x21a)](this[S(0x24c)]);}[p(0x228)](c,d){const T=p;if(d!==c)throw new errors_1['GenerationalError'](c,d,this[T(0x24c)]?.[T(0x1d2)]?.[T(0x1ec)]??'',this['context']?.[T(0x1d2)]?.[T(0x207)]??'',this[T(0x24c)]?.[T(0x1d2)]?.['dad']??'');}[p(0x229)](c){const U=p;this[U(0x1d2)][U(0x1c6)]=c;}['initSelf'](c){const V=p,d=this[V(0x1d2)][V(0x207)];!c[d]&&(c[d]={});const e=c[d];return!e[V(0x262)]&&(e[V(0x262)]={}),!e[V(0x25f)]&&(e[V(0x25f)]={}),!e[V(0x260)]&&(e['hook']={}),!e['output']['metadata']&&(e[V(0x262)][V(0x1d2)]={}),e[V(0x262)][V(0x1d2)]['au']=(0x0,utils_1[V(0x25a)])(new Date()),c[V(0x25e)]=e,c[V(0x21c)]=c,c;}[p(0x21a)](c){const W=p,d=pipe_1[W(0x1cd)]['resolve'](this['config']['expire']??enums_1[W(0x1d3)],c);c['metadata']['expire']=d;if(this[W(0x244)][W(0x242)]!=undefined){const e=pipe_1[W(0x1cd)][W(0x22d)](this[W(0x244)][W(0x242)]??![],c);c['metadata'][W(0x242)]=e;}}[p(0x26f)](c){const X=p;this[X(0x24c)][this[X(0x1d2)][X(0x207)]][c][X(0x22a)]=this['data'];}[p(0x206)](){const Y=p;let c=this['metadata'][Y(0x1c6)];return this['adjacentIndex']>0x0&&(c=c[Y(0x214)](0x0,c[Y(0x208)](','))+','+this['adjacentIndex']),c;}[p(0x1e3)](){const Z=p;return''+this[Z(0x206)]()+collator_1[Z(0x20c)][Z(0x21f)](0x0);}async[p(0x1ca)](){const a0=p,c=[],d=await this[a0(0x231)][a0(0x256)](await this[a0(0x205)][a0(0x1cf)]()),e=d['.'+this['metadata'][a0(0x207)]],f=this[a0(0x1e3)]();if(e)for(const g in e){const h=e[g];mapper_1[a0(0x1fc)][a0(0x235)](h,this[a0(0x24c)],this[a0(0x1f1)])&&c['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context'][a0(0x1d2)][a0(0x1ec)],'gid':this[a0(0x24c)][a0(0x1d2)][a0(0x239)],'dad':f,'aid':g,'spn':this[a0(0x24c)]['$self'][a0(0x262)]['metadata']?.['l2s'],'trc':this[a0(0x24c)][a0(0x1d2)][a0(0x261)]},'type':stream_1[a0(0x1ee)]['TRANSITION'],'data':{}});}return c;}[p(0x1d6)](c){return c<=0x0;}[p(0x23e)](){const a1=p;if(this['config'][a1(0x1e5)])return pipe_1[a1(0x1cd)][a1(0x22d)](this[a1(0x244)][a1(0x1e5)],this[a1(0x24c)])===!![];return![];}[p(0x1f6)](){const a2=p;if(this[a2(0x244)][a2(0x249)]!==undefined)return pipe_1[a2(0x1cd)][a2(0x22d)](this[a2(0x244)]['persist'],this['context'])===!![];return![];}async[p(0x248)](c,d){const a3=p;if(this[a3(0x259)](d))return;let e=[];(this['shouldEmit']()||this[a3(0x1d6)](d)||this[a3(0x1f6)]())&&await this['engine'][a3(0x1f3)](this[a3(0x24c)],{'emit':!this[a3(0x1d6)](d)&&!this[a3(0x1f6)]()});if(c[a3(0x245)]&&!this['isJobComplete'](d)){const f=this[a3(0x231)][a3(0x224)]();for(const g of c){await this[a3(0x205)][a3(0x269)]?.[a3(0x213)](null,g,f);}e=await f[a3(0x265)]();}return e;}['jobWasInterrupted'](c){return c<-0x5f5e100;}}exports[p(0x1ff)]=Activity;
1
+ 'use strict';const p=b;(function(c,d){const o=b,e=c();while(!![]){try{const f=parseInt(o(0x1ae))/0x1+parseInt(o(0x188))/0x2*(parseInt(o(0x1c9))/0x3)+parseInt(o(0x1ce))/0x4+-parseInt(o(0x1c3))/0x5*(parseInt(o(0x185))/0x6)+-parseInt(o(0x156))/0x7+-parseInt(o(0x1b1))/0x8*(-parseInt(o(0x1a1))/0x9)+-parseInt(o(0x1ca))/0xa*(parseInt(o(0x130))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x66519));function a(){const a4=['CollatorService','737nNBorO','$job','processSuccess','publishMessage','job','atp','runJobCompletionTasks','setState','../../modules/errors','resolveStatus','$self','processError','getDimensionalIndex','Pipe','defineProperty','activity-process-event-error','adjacentIndex','getTransitions','getState','store','metadata','error','mapJobData','GetStateError','evaluate','input','CollationError','assertJobActive','context','produces','MDATA_SYMBOLS','notarizeCompletion','getDimensionsById','bindActivityData','subtype','notarizeContinuation','ancestors','bindDimensionalAddress','2735999coAsgG','getJobStatus','notarizeEntry','verifyReentry','../../modules/enums','initDimensionalAddress','../pipe','metadata/','l2s','persist','lastIndexOf','formatISODate','bindJobMetadataPaths','ACTIVITY_UPDATE','expire','trigger','bindActivityMetadata','maps','setStatus','resolveAdjacentDad','gid','mapOutputData','addTargetTelemetryPaths','activity-process-event','length','bindActivityTelemetryToState','bindJobState','bindJobMetadata','setLeg','map','debug','setActivityError','Activity','/output/metadata/dad','dad','InactiveJobError','status','startsWith','MapperService','setActivityAttributes','output','../mapper','hook','processEvent','shouldPersistJob','indexOf','registerTimeout','1818cYzYEA','HMSH_EXPIRE_DURATION','info','1283170tkGYQh','trc','jobWasInterrupted','bindActivityError','type','mapActivityAttributes','mapRules','endActivitySpan','resolve','GenerationalError','restoreHierarchy','aid','adjacencyList','getValueByPath','-error','process-event-','logger','stack','exec','substring','bindActivityMetadataPaths','fault','filterAdjacent','PRODUCES','getVID','2471373fSduas','job\x20id\x20is\x20undefined','message','activity-process-event-end','../collator','statusThreshold','initPolicies','notarizeReentry','deepCopy','leg','mapInputData','authorizeEntry','stringify','249580dWFgdP','data','startActivitySpan','16wSyxkR','initSelf','join','engine','mapStatusThreshold','TRANSITION','subscribes','output/metadata/','push','assertGenerationalId','../telemetry','jid','StreamDataType','shouldEmit','KEYS','isArray','isJobComplete','StreamStatus','13705KyZWjD','split','PENDING','SUCCESS','transact','appId','3CKdOWi','17550UHdNUm','err','$error','resolveDad','1270812ycMFMa','getDimensionalSeed','transition','keys','__esModule','../../types/stream','persistent','guid','config','TelemetryService','../serializer'];a=function(){return a4;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0x126;let h=e[f];return h;},b(c,d);}Object[p(0x13e)](exports,p(0x128),{'value':!![]}),exports[p(0x176)]=void 0x0;const enums_1=require(p(0x15a)),errors_1=require(p(0x138)),utils_1=require('../../modules/utils'),collator_1=require(p(0x1a5)),mapper_1=require(p(0x17f)),pipe_1=require(p(0x15c)),serializer_1=require(p(0x12e)),telemetry_1=require(p(0x1bb)),stream_1=require(p(0x129));class Activity{constructor(c,d,e,f,g,h){const q=p;this[q(0x17a)]=stream_1[q(0x1c2)]['SUCCESS'],this['code']=0xc8,this[q(0x140)]=0x0,this[q(0x12c)]=c,this[q(0x1af)]=d,this[q(0x144)]=e,this[q(0x180)]=f,this[q(0x1b4)]=g,this['context']=h||{'data':{},'metadata':{}},this[q(0x198)]=g[q(0x198)],this[q(0x143)]=g[q(0x143)];}[p(0x172)](c){const r=p;this[r(0x1aa)]=c;}[p(0x1b5)](){const s=p;if(this[s(0x12c)][s(0x1a6)]!==undefined){const c=pipe_1[s(0x13d)][s(0x190)](this[s(0x12c)][s(0x1a6)],this[s(0x14c)]);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async['verifyEntry'](){const t=p;this[t(0x172)](0x1),await this[t(0x142)]();const c=this[t(0x1b5)]();try{collator_1[t(0x12f)][t(0x14b)](this[t(0x14c)]['metadata']['js'],this[t(0x14c)][t(0x144)][t(0x1bc)],this[t(0x144)][t(0x193)],c);}catch(d){await collator_1[t(0x12f)][t(0x158)](this);if(c>0x0){if(this[t(0x14c)][t(0x144)]['js']===c){const e=await this[t(0x168)](-c);Number(e)===0x0&&await this[t(0x1b4)][t(0x136)](this['context']);}}else throw d;return;}await collator_1[t(0x12f)]['notarizeEntry'](this);}async[p(0x159)](){const u=p,c=this[u(0x14c)]['metadata'][u(0x12b)];return this[u(0x172)](0x2),await this[u(0x142)](),collator_1[u(0x12f)][u(0x14b)](this[u(0x14c)][u(0x144)]['js'],this[u(0x14c)][u(0x144)]['jid'],this[u(0x144)][u(0x193)]),await collator_1[u(0x12f)][u(0x1a8)](this,c);}async[p(0x181)](c=stream_1[p(0x1c2)][p(0x1c6)],d=0xc8,e='output'){const v=p;this['setLeg'](0x2);const f=this['context'][v(0x144)][v(0x1bc)];if(!f){this[v(0x198)][v(0x145)](v(0x13f),{'message':v(0x1a2)});return;}const g=this[v(0x144)][v(0x193)];this[v(0x17a)]=c,this['code']=d,this[v(0x198)][v(0x174)](v(0x16d),{'topic':this[v(0x12c)][v(0x152)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this[v(0x159)]();this[v(0x140)]=collator_1[v(0x12f)][v(0x13c)](i),h=new telemetry_1[(v(0x12d))](this[v(0x1b4)][v(0x1c8)],this['config'],this[v(0x144)],this[v(0x14c)]),h[v(0x1b0)](this[v(0x1aa)]);let j;if(c===stream_1[v(0x1c2)][v(0x1c5)])j=await this['processPending'](e);else c===stream_1[v(0x1c2)][v(0x1c6)]?j=await this[v(0x132)](e):j=await this[v(0x13b)]();this['transitionAdjacent'](j,h);}catch(k){if(k instanceof errors_1[v(0x14a)]){this['logger'][v(0x187)](v(0x197)+k[v(0x19d)]+v(0x196),{'error':k});return;}else{if(k instanceof errors_1[v(0x179)]){this[v(0x198)]['info']('process-event-inactive-job-error',{'error':k});return;}else{if(k instanceof errors_1[v(0x191)]){this['logger'][v(0x187)]('process-event-generational-job-error',{'error':k});return;}else{if(k instanceof errors_1[v(0x147)]){this[v(0x198)]['info']('process-event-get-job-error',{'error':k});return;}}}}this[v(0x198)][v(0x145)]('activity-process-event-error',{'error':k,'message':k[v(0x1a3)],'stack':k[v(0x199)],'name':k['name']}),h?.[v(0x175)](k['message']);throw k;}finally{h?.[v(0x18f)](),this['logger'][v(0x174)](v(0x1a4),{'jid':f,'aid':g});}}async['processPending'](c){const w=p;this[w(0x151)](c),this[w(0x194)]=await this[w(0x19e)](),this['mapJobData']();const d=this[w(0x143)]['transact']();return await this['setState'](d),await collator_1[w(0x12f)][w(0x153)](this,d),await this['setStatus'](this[w(0x194)][w(0x16e)],d),await d[w(0x19a)]();}async['processSuccess'](c){const x=p;this['bindActivityData'](c),this[x(0x194)]=await this['filterAdjacent'](),this[x(0x146)]();const d=this[x(0x143)][x(0x1c7)]();return await this[x(0x137)](d),await collator_1[x(0x12f)][x(0x14f)](this,d),await this[x(0x168)](this['adjacencyList']['length']-0x1,d),await d['exec']();}async['processError'](){const y=p;this[y(0x18b)](this[y(0x1af)]),this['adjacencyList']=await this[y(0x19e)]();!this[y(0x194)]['length']&&this['bindJobError'](this[y(0x1af)]);this['mapJobData']();const c=this[y(0x143)]['transact']();return await this[y(0x137)](c),await collator_1[y(0x12f)][y(0x14f)](this,c),await this[y(0x168)](this[y(0x194)]['length']-0x1,c),await c['exec']();}async['transitionAdjacent'](c,d){const z=p;d[z(0x18d)]();const e=this[z(0x139)](c),f={'app.job.jss':e},g=await this[z(0x126)](this[z(0x194)],e);g?.['length']&&(f['app.activity.mids']=g[z(0x1b3)](',')),d[z(0x17d)](f);}[p(0x139)](c){const A=p,d=c[c[A(0x16e)]-0x1];return Array[A(0x1c0)](d)?Number(d[0x1]):Number(d);}[p(0x146)](){const B=p;if(this[B(0x12c)][B(0x134)]?.[B(0x167)]){const c=new mapper_1[(B(0x17c))]((0x0,utils_1[B(0x1a9)])(this[B(0x12c)][B(0x134)]['maps']),this['context']),d=c[B(0x18e)]();if(d)for(const e in d){const f=e[B(0x183)]('[');if(f>-0x1){const g=e['substring'](f+0x1)[B(0x1c4)](']')[0x0];if(!isNaN(Number(g))){const h=e[B(0x19b)](0x0,f);d[h]=d[e],delete d[e];}else{if(g==='-'||g==='_'){const i=d[e];Object[B(0x127)](i)['forEach'](j=>{d[j]=i[j];});}}}}this[B(0x14c)][B(0x1af)]=d;}}[p(0x1ab)](){const C=p;if(this[C(0x12c)][C(0x149)]?.['maps']){const c=new mapper_1[(C(0x17c))]((0x0,utils_1[C(0x1a9)])(this[C(0x12c)][C(0x149)][C(0x167)]),this[C(0x14c)]);this[C(0x14c)][C(0x1af)]=c['mapRules']();}}[p(0x16b)](){const D=p;if(this['config'][D(0x17e)]?.[D(0x167)]){const c=new mapper_1[(D(0x17c))]((0x0,utils_1[D(0x1a9)])(this[D(0x12c)][D(0x17e)][D(0x167)]),this[D(0x14c)]),d=c[D(0x18e)](),e=this['metadata'][D(0x193)],f={...this[D(0x14c)][e][D(0x17e)],...d};this[D(0x14c)][e][D(0x17e)][D(0x1af)]=f;}}async[p(0x184)](){}[p(0x18b)](c){const E=p,d=this[E(0x14c)][this[E(0x144)][E(0x193)]][E(0x17e)][E(0x144)];d[E(0x1cb)]=JSON[E(0x1ad)](this['data']),d[E(0x1cc)]={...c,'is_stream_error':!![]};}['bindJobError'](c){const F=p;this['context']['metadata'][F(0x1cb)]=JSON['stringify']({...c,'is_stream_error':!![]});}async['getTriggerConfig'](){const G=p;return await this['store']['getSchema'](this[G(0x12c)][G(0x165)],await this[G(0x1b4)][G(0x1a0)]());}[p(0x157)](){return null;}async[p(0x168)](c,d){const H=p,{id:e}=await this['engine'][H(0x1a0)]();return await this['store']['setStatus'](c,this[H(0x14c)][H(0x144)][H(0x1bc)],e,d);}[p(0x1ac)](c){const I=p;return this[I(0x194)]?.[I(0x173)](d=>{const J=I,{metadata:{aid:e}}=d;return c[e+'/output/metadata/as']=collator_1[J(0x12f)]['getSeed'](),e;})??[];}['bindDimensionalAddress'](c){const K=p,d=this[K(0x1cd)]();c[this['metadata']['aid']+K(0x177)]=d;}async['setState'](c){const L=p,d=this[L(0x14c)][L(0x144)]['jid'];this[L(0x171)](),this[L(0x166)]();const e={};await this['bindJobState'](e);const f=this['authorizeEntry'](e);this[L(0x155)](e),this['bindActivityState'](e);const g=['$'+this[L(0x12c)][L(0x1b7)],this[L(0x144)]['aid'],...f],h=collator_1['CollatorService'][L(0x150)]([...this[L(0x12c)][L(0x154)],this[L(0x144)][L(0x193)]],this[L(0x1cd)]());return await this['store'][L(0x137)](e,this['getJobStatus'](),d,g,h,c);}[p(0x171)](){const M=p;this[M(0x14c)][M(0x144)]['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const N=p,c=this[N(0x14c)][N(0x13a)];!c[N(0x17e)]['metadata']&&(c[N(0x17e)][N(0x144)]={});this[N(0x17a)]===stream_1[N(0x1c2)]['ERROR']&&(c[N(0x17e)][N(0x144)][N(0x1cb)]=JSON[N(0x1ad)](this[N(0x1af)]));const d=(0x0,utils_1['formatISODate'])(new Date());c[N(0x17e)][N(0x144)]['ac']=d,c[N(0x17e)]['metadata']['au']=d,c[N(0x17e)][N(0x144)][N(0x135)]=this[N(0x12c)][N(0x18c)],this['config'][N(0x152)]&&(c[N(0x17e)][N(0x144)]['stp']=this['config'][N(0x152)]),c[N(0x17e)][N(0x144)]['aid']=this[N(0x144)][N(0x193)];}async[p(0x170)](c){const O=p,d=await this['getTriggerConfig'](),e=[...d[O(0x19f)]||[],...this[O(0x162)]()];for(const f of e){const g=(0x0,utils_1[O(0x195)])(this[O(0x14c)],f);g!==undefined&&(c[f]=g);}for(const h in this[O(0x14c)]?.['data']??{}){(h[O(0x17b)]('-')||h['startsWith']('_'))&&(c[h]=this[O(0x14c)]['data'][h]);}telemetry_1['TelemetryService']['bindJobTelemetryToState'](c,this[O(0x12c)],this[O(0x14c)]);}['bindActivityState'](c){const P=p,d=[...this['config'][P(0x14d)],...this[P(0x19c)]()];for(const e of d){const f=this[P(0x144)][P(0x193)]+'/'+e,g=(0x0,utils_1['getValueByPath'])(this[P(0x14c)],f);g!==undefined&&(c[f]=g);}telemetry_1['TelemetryService'][P(0x16f)](c,this[P(0x12c)],this[P(0x144)],this[P(0x14c)],this[P(0x1aa)]);}[p(0x162)](){const Q=p;return serializer_1['MDATA_SYMBOLS']['JOB_UPDATE'][Q(0x1bf)][Q(0x173)](c=>Q(0x15d)+c);}[p(0x19c)](){const R=p,c=this[R(0x1aa)]===0x1?'ACTIVITY':R(0x163);return serializer_1[R(0x14e)][c][R(0x1bf)][R(0x173)](d=>R(0x1b8)+d);}async[p(0x142)](){const S=p,c=this[S(0x14c)][S(0x144)]['gid'],d='$'+this[S(0x12c)]['subscribes'],e={[d]:serializer_1[S(0x14e)]['JOB'][S(0x1bf)][S(0x173)](k=>S(0x15d)+k)};for(let [k,l]of Object['entries'](this[S(0x12c)]['consumes'])){if(k===S(0x131))for(const m of l){e[d][S(0x1b9)](m);}else{k===S(0x13a)&&(k=this[S(0x144)]['aid']);!e[k]&&(e[k]=[]);for(const n of l){e[k]['push'](k+'/'+n);}}}telemetry_1[S(0x12d)][S(0x16c)](e,this[S(0x12c)],this[S(0x144)],this[S(0x1aa)]);const {dad:f,jid:g}=this[S(0x14c)][S(0x144)],h=collator_1[S(0x12f)][S(0x150)]([...this[S(0x12c)][S(0x154)],this[S(0x144)][S(0x193)]],f||''),[i,j]=await this[S(0x143)][S(0x142)](g,e,h);this[S(0x14c)]=(0x0,utils_1[S(0x192)])(i),this['assertGenerationalId'](this[S(0x14c)]?.[S(0x144)]?.[S(0x16a)],c),this['initDimensionalAddress'](f),this[S(0x1b2)](this[S(0x14c)]),this[S(0x1a7)](this[S(0x14c)]);}[p(0x1ba)](c,d){const T=p;if(d!==c)throw new errors_1[(T(0x191))](c,d,this[T(0x14c)]?.[T(0x144)]?.[T(0x1bc)]??'',this[T(0x14c)]?.[T(0x144)]?.[T(0x193)]??'',this['context']?.[T(0x144)]?.['dad']??'');}[p(0x15b)](c){const U=p;this[U(0x144)][U(0x178)]=c;}[p(0x1b2)](c){const V=p,d=this[V(0x144)][V(0x193)];!c[d]&&(c[d]={});const e=c[d];return!e[V(0x17e)]&&(e[V(0x17e)]={}),!e[V(0x149)]&&(e[V(0x149)]={}),!e[V(0x180)]&&(e[V(0x180)]={}),!e[V(0x17e)][V(0x144)]&&(e[V(0x17e)][V(0x144)]={}),e[V(0x17e)][V(0x144)]['au']=(0x0,utils_1[V(0x161)])(new Date()),c[V(0x13a)]=e,c['$job']=c,c;}[p(0x1a7)](c){const W=p,d=pipe_1[W(0x13d)][W(0x190)](this['config'][W(0x164)]??enums_1[W(0x186)],c);c[W(0x144)][W(0x164)]=d;if(this[W(0x12c)][W(0x12a)]!=undefined){const e=pipe_1[W(0x13d)][W(0x190)](this[W(0x12c)][W(0x12a)]??![],c);c[W(0x144)]['persistent']=e;}}[p(0x151)](c){const X=p;this['context'][this[X(0x144)][X(0x193)]][c][X(0x1af)]=this[X(0x1af)];}[p(0x1cd)](){const Y=p;let c=this[Y(0x144)][Y(0x178)];return this[Y(0x140)]>0x0&&(c=c[Y(0x19b)](0x0,c[Y(0x160)](','))+','+this['adjacentIndex']),c;}[p(0x169)](){const Z=p;return''+this[Z(0x1cd)]()+collator_1[Z(0x12f)][Z(0x1cf)](0x0);}async[p(0x19e)](){const a0=p,c=[],d=await this['store'][a0(0x141)](await this[a0(0x1b4)][a0(0x1a0)]()),e=d['.'+this[a0(0x144)]['aid']],f=this[a0(0x169)]();if(e)for(const g in e){const h=e[g];mapper_1[a0(0x17c)][a0(0x148)](h,this[a0(0x14c)],this['code'])&&c['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this[a0(0x14c)][a0(0x144)][a0(0x1bc)],'gid':this['context']['metadata']['gid'],'dad':f,'aid':g,'spn':this[a0(0x14c)][a0(0x13a)]['output'][a0(0x144)]?.[a0(0x15e)],'trc':this[a0(0x14c)]['metadata'][a0(0x189)]},'type':stream_1[a0(0x1bd)][a0(0x1b6)],'data':{}});}return c;}[p(0x1c1)](c){return c<=0x0;}[p(0x1be)](){const a1=p;if(this[a1(0x12c)]['emit'])return pipe_1[a1(0x13d)]['resolve'](this[a1(0x12c)]['emit'],this[a1(0x14c)])===!![];return![];}[p(0x182)](){const a2=p;if(this['config'][a2(0x15f)]!==undefined)return pipe_1[a2(0x13d)][a2(0x190)](this[a2(0x12c)][a2(0x15f)],this[a2(0x14c)])===!![];return![];}async[p(0x126)](c,d){const a3=p;if(this[a3(0x18a)](d))return;let e=[];(this['shouldEmit']()||this[a3(0x1c1)](d)||this['shouldPersistJob']())&&await this['engine'][a3(0x136)](this['context'],{'emit':!this['isJobComplete'](d)&&!this[a3(0x182)]()});if(c['length']&&!this[a3(0x1c1)](d)){const f=this[a3(0x143)][a3(0x1c7)]();for(const g of c){await this[a3(0x1b4)]['router']?.[a3(0x133)](null,g,f);}e=await f['exec']();}return e;}[p(0x18a)](c){return c<-0x5f5e100;}}exports[p(0x176)]=Activity;
@@ -1 +1 @@
1
- 'use strict';function a(){const m=['await-process-end','TelemetryService','publishMessage','1533216Iyxcje','await-get-state-error','dad','20223rCsFMK','policies','message','InactiveJobError','data','setState','process-event-generational-job-error','context','../pipe','../telemetry','startActivitySpan','router','retry','GenerationalError','debug','await','288449FrPbPV','exec','mapActivityAttributes','store','45tRwzzL','info','Await','385396GREOzI','StreamDataType','2353210CByojb','Pipe','1039241FIGyms','config','aid','setActivityError','duplicate','gid','../../types/stream','engine','appId','defineProperty','await-collation-error','await-collation-overage','output','leg','mapInputData','Activity','CollatorService','metadata','AWAIT','trc','CollationError','subtype','5FWOGLg','$self','await-inactive-job-error','process','1429458wWwTKW','resolve','fault','verifyEntry','./activity','98ZgXIum','GetStateError','guid','setStatus','__esModule','logger','jid','resolveStatus','../collator','authorizeReentry','transact','../../modules/errors','await-process'];a=function(){return m;};return a();}const j=b;function b(c,d){const e=a();return b=function(f,g){f=f-0xf8;let h=e[f];return h;},b(c,d);}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x13d))/0x1+parseInt(i(0x11a))/0x2*(-parseInt(i(0x12d))/0x3)+-parseInt(i(0x144))/0x4+parseInt(i(0x111))/0x5*(-parseInt(i(0x115))/0x6)+parseInt(i(0xfb))/0x7+-parseInt(i(0x12a))/0x8+parseInt(i(0x141))/0x9*(parseInt(i(0xf9))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x2bf62));Object[j(0x104)](exports,j(0x11e),{'value':!![]}),exports[j(0x143)]=void 0x0;const errors_1=require(j(0x125)),utils_1=require('../../modules/utils'),collator_1=require(j(0x122)),pipe_1=require(j(0x135)),telemetry_1=require(j(0x136)),stream_1=require(j(0x101)),activity_1=require(j(0x119));class Await extends activity_1[j(0x10a)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x114)](){const k=j;this[k(0x11f)][k(0x13b)](k(0x126),{'jid':this[k(0x134)][k(0x10c)][k(0x120)],'gid':this['context'][k(0x10c)][k(0x100)],'aid':this[k(0x10c)][k(0xfd)]});let c;try{await this[k(0x118)](),c=new telemetry_1[(k(0x128))](this[k(0x102)][k(0x103)],this['config'],this[k(0x10c)],this['context']),c[k(0x137)](this[k(0x108)]),this[k(0x109)]();const d=this[k(0x140)][k(0x124)](),e=await this['execActivity'](d);await collator_1[k(0x10b)][k(0x123)](this,d),await this[k(0x132)](d),await this[k(0x11d)](0x0,d);const f=await d[k(0x13e)]();c[k(0x13f)]();const g=this[k(0x121)](f);return c['setActivityAttributes']({'app.activity.mid':e,'app.job.jss':g}),this['context']['metadata'][k(0xfd)];}catch(h){if(h instanceof errors_1[k(0x130)]){this[k(0x11f)]['error'](k(0x113),{'error':h});return;}else{if(h instanceof errors_1[k(0x13a)]){this[k(0x11f)][k(0x142)](k(0x133),{'error':h});return;}else{if(h instanceof errors_1[k(0x11b)]){this[k(0x11f)]['error'](k(0x12b),{'error':h});return;}else{if(h instanceof errors_1[k(0x10f)]){if(h[k(0x117)]===k(0xff)){this[k(0x11f)]['info'](k(0x106),{'job_id':this['context'][k(0x10c)]['jid'],'guid':this['context'][k(0x10c)]['guid']});return;}this[k(0x11f)]['error'](k(0x105),{'error':h});}else this['logger']['error']('await-process-error',{'error':h});}}}c?.[k(0xfe)](h[k(0x12f)]);throw h;}finally{c?.['endActivitySpan'](),this['logger'][k(0x13b)](k(0x127),{'jid':this['context'][k(0x10c)][k(0x120)],'gid':this[k(0x134)]['metadata'][k(0x100)],'aid':this[k(0x10c)]['aid']});}}async['execActivity'](c){const l=j,d=pipe_1[l(0xfa)][l(0x116)](this[l(0xfc)][l(0x110)],this['context']),e={'metadata':{'guid':(0x0,utils_1[l(0x11c)])(),'jid':this[l(0x134)][l(0x10c)]['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata'][l(0x12c)],'aid':this[l(0x10c)][l(0xfd)],'topic':d,'spn':this[l(0x134)][l(0x112)][l(0x107)][l(0x10c)]?.['l1s'],'trc':this[l(0x134)][l(0x10c)][l(0x10e)]},'type':stream_1[l(0xf8)][l(0x10d)],'data':this[l(0x134)][l(0x131)]};if(this[l(0xfc)][l(0x13c)]!==!![]){const f=pipe_1['Pipe'][l(0x116)](this[l(0xfc)]['await'],this[l(0x134)]);f===![]&&(e[l(0x10c)][l(0x13c)]=![]);}return this['config'][l(0x139)]&&(e[l(0x12e)]={'retry':this['config'][l(0x139)]}),await this[l(0x102)][l(0x138)]?.[l(0x129)](null,e,c);}}exports[j(0x143)]=Await;
1
+ 'use strict';const j=b;function a(){const m=['trc','data','GetStateError','exec','info','jid','config','transact','await-collation-overage','CollationError','3176OPCdho','metadata','Activity','resolve','context','$self','__esModule','endActivitySpan','retry','1572NmSfyO','engine','CollatorService','error','150296OZAKxm','28049OTKhdR','duplicate','../../modules/errors','startActivitySpan','await-process-end','message','logger','1045790WjWmMJ','129HXDAil','Await','1720707cWCCbQ','appId','subtype','authorizeReentry','publishMessage','await-inactive-job-error','99cpbJTY','await-collation-error','defineProperty','GenerationalError','../collator','debug','InactiveJobError','process','setState','./activity','dad','gid','output','Pipe','await-process-error','aid','await-process','mapInputData','policies','await-get-state-error','execActivity','../../types/stream','3048198XfALhz','4995VjqoMD','35714030DHomvo','leg','setStatus','await','../../modules/utils','guid'];a=function(){return m;};return a();}(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xd0))/0x1+parseInt(i(0xec))/0x2+-parseInt(i(0xce))/0x3*(parseInt(i(0xc5))/0x4)+-parseInt(i(0xed))/0x5*(parseInt(i(0xc1))/0x6)+-parseInt(i(0xc6))/0x7*(-parseInt(i(0xb8))/0x8)+parseInt(i(0xd6))/0x9*(parseInt(i(0xcd))/0xa)+-parseInt(i(0xee))/0xb;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xd266c));function b(c,d){const e=a();return b=function(f,g){f=f-0xaa;let h=e[f];return h;},b(c,d);}Object[j(0xd8)](exports,j(0xbe),{'value':!![]}),exports[j(0xcf)]=void 0x0;const errors_1=require(j(0xc8)),utils_1=require(j(0xac)),collator_1=require(j(0xda)),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),stream_1=require(j(0xeb)),activity_1=require(j(0xdf));class Await extends activity_1[j(0xba)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0xdd)](){const k=j;this[k(0xcc)][k(0xdb)](k(0xe6),{'jid':this[k(0xbc)][k(0xb9)][k(0xb3)],'gid':this['context']['metadata'][k(0xe1)],'aid':this[k(0xb9)][k(0xe5)]});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this[k(0xc2)][k(0xd1)],this[k(0xb4)],this[k(0xb9)],this[k(0xbc)]),c[k(0xc9)](this[k(0xef)]),this[k(0xe7)]();const d=this['store'][k(0xb5)](),e=await this[k(0xea)](d);await collator_1[k(0xc3)][k(0xd3)](this,d),await this[k(0xde)](d),await this[k(0xaa)](0x0,d);const f=await d[k(0xb1)]();c['mapActivityAttributes']();const g=this['resolveStatus'](f);return c['setActivityAttributes']({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0xb9)][k(0xe5)];}catch(h){if(h instanceof errors_1[k(0xdc)]){this[k(0xcc)][k(0xc4)](k(0xd5),{'error':h});return;}else{if(h instanceof errors_1[k(0xd9)]){this[k(0xcc)][k(0xb2)]('process-event-generational-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0xb0)]){this['logger'][k(0xc4)](k(0xe9),{'error':h});return;}else{if(h instanceof errors_1[k(0xb7)]){if(h['fault']===k(0xc7)){this[k(0xcc)][k(0xb2)](k(0xb6),{'job_id':this['context']['metadata'][k(0xb3)],'guid':this[k(0xbc)][k(0xb9)][k(0xad)]});return;}this[k(0xcc)]['error'](k(0xd7),{'error':h});}else this[k(0xcc)]['error'](k(0xe4),{'error':h});}}}c?.['setActivityError'](h[k(0xcb)]);throw h;}finally{c?.[k(0xbf)](),this[k(0xcc)]['debug'](k(0xca),{'jid':this[k(0xbc)][k(0xb9)]['jid'],'gid':this[k(0xbc)]['metadata'][k(0xe1)],'aid':this[k(0xb9)][k(0xe5)]});}}async[j(0xea)](c){const l=j,d=pipe_1[l(0xe3)][l(0xbb)](this['config'][l(0xd2)],this[l(0xbc)]),e={'metadata':{'guid':(0x0,utils_1[l(0xad)])(),'jid':this[l(0xbc)][l(0xb9)]['jid'],'gid':this[l(0xbc)]['metadata'][l(0xe1)],'dad':this[l(0xb9)][l(0xe0)],'aid':this['metadata'][l(0xe5)],'topic':d,'spn':this[l(0xbc)][l(0xbd)][l(0xe2)][l(0xb9)]?.['l1s'],'trc':this[l(0xbc)][l(0xb9)][l(0xae)]},'type':stream_1['StreamDataType']['AWAIT'],'data':this[l(0xbc)][l(0xaf)]};if(this[l(0xb4)][l(0xab)]!==!![]){const f=pipe_1['Pipe'][l(0xbb)](this[l(0xb4)][l(0xab)],this[l(0xbc)]);f===![]&&(e[l(0xb9)]['await']=![]);}return this[l(0xb4)][l(0xc0)]&&(e[l(0xe8)]={'retry':this[l(0xb4)]['retry']}),await this[l(0xc2)]['router']?.[l(0xd4)](null,e,c);}}exports[j(0xcf)]=Await;
@@ -1 +1 @@
1
- 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x123))/0x1+parseInt(i(0x132))/0x2*(-parseInt(i(0x116))/0x3)+parseInt(i(0x12d))/0x4+-parseInt(i(0x138))/0x5*(parseInt(i(0x137))/0x6)+parseInt(i(0x10b))/0x7+-parseInt(i(0x10e))/0x8*(parseInt(i(0x11c))/0x9)+parseInt(i(0x118))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xdddf0));Object[j(0x11a)](exports,j(0xff),{'value':!![]}),exports[j(0x120)]=void 0x0;const errors_1=require(j(0x103)),utils_1=require(j(0x104)),collator_1=require('../collator'),telemetry_1=require('../telemetry'),activity_1=require(j(0x139));function a(){const m=['Cycle','leg','guid','63920AQQytv','$self','output','jid','process-event-generational-job-error','setActivityError','TelemetryService','cycle-process-end','GenerationalError','publishMessage','4237628blVdDd','cycle-collation-overage','notarizeEarlyExit','cycle-collation-error','debug','2lsmojc','logger','aid','cycle-process','resolveStatus','216258bFYMgP','245HdwaLl','./activity','cycle-get-state-error','resolveReentryDimension','fault','data','cycleAncestorActivity','__esModule','mapInputData','exec','appId','../../modules/errors','../../modules/utils','setStatus','process','engine','info','cycle-inactive-job-error','CollatorService','1386133JVkuWq','error','verifyEntry','2824KnXhMd','metadata','duplicate','message','InactiveJobError','endActivitySpan','cycle-process-error','store','1833258hHNQAp','gid','24245900dvANiI','transact','defineProperty','context','11727GeGtil','mapActivityAttributes','setState','startActivitySpan'];a=function(){return m;};return a();}class Cycle extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x106)](){const k=j;this[k(0x133)][k(0x131)](k(0x135),{'jid':this[k(0x11b)][k(0x10f)][k(0x126)],'gid':this['context'][k(0x10f)][k(0x117)],'aid':this[k(0x10f)][k(0x134)]});let c;try{await this[k(0x10d)](),c=new telemetry_1[(k(0x129))](this[k(0x107)][k(0x102)],this['config'],this[k(0x10f)],this[k(0x11b)]),c[k(0x11f)](this[k(0x121)]),this['mapInputData']();let d=this[k(0x115)][k(0x119)]();await this[k(0x11e)](d),await this[k(0x105)](0x0,d);const e=await d[k(0x101)]();c[k(0x11d)]();const f=this[k(0x136)](e);d=this[k(0x115)][k(0x119)]();const g=await this['cycleAncestorActivity'](d);return c['setActivityAttributes']({'app.activity.mid':g,'app.job.jss':f}),await collator_1[k(0x10a)][k(0x12f)](this,d),await d[k(0x101)](),this['context'][k(0x10f)][k(0x134)];}catch(h){if(h instanceof errors_1[k(0x112)]){this[k(0x133)][k(0x10c)](k(0x109),{'error':h});return;}else{if(h instanceof errors_1[k(0x12b)]){this[k(0x133)][k(0x108)](k(0x127),{'error':h});return;}else{if(h instanceof errors_1['GetStateError']){this['logger'][k(0x10c)](k(0x13a),{'error':h});return;}else{if(h instanceof errors_1['CollationError']){if(h[k(0x13c)]===k(0x110)){this[k(0x133)]['info'](k(0x12e),{'job_id':this[k(0x11b)][k(0x10f)]['jid'],'guid':this[k(0x11b)]['metadata'][k(0x122)]});return;}this['logger']['error'](k(0x130),{'error':h});}else this[k(0x133)][k(0x10c)](k(0x114),{'error':h});}}}c?.[k(0x128)](h[k(0x111)]);throw h;}finally{c?.[k(0x113)](),this[k(0x133)][k(0x131)](k(0x12a),{'jid':this[k(0x11b)][k(0x10f)][k(0x126)],'gid':this[k(0x11b)][k(0x10f)][k(0x117)],'aid':this[k(0x10f)][k(0x134)]});}}async[j(0xfe)](c){const l=j;this[l(0x100)]();const d={'metadata':{'guid':(0x0,utils_1[l(0x122)])(),'jid':this[l(0x11b)]['metadata']['jid'],'gid':this[l(0x11b)][l(0x10f)]['gid'],'dad':collator_1[l(0x10a)][l(0x13b)](this),'aid':this['config']['ancestor'],'spn':this[l(0x11b)][l(0x124)][l(0x125)][l(0x10f)]?.['l1s'],'trc':this[l(0x11b)]['metadata']['trc']},'data':this[l(0x11b)][l(0xfd)]};return await this[l(0x107)]['router']?.[l(0x12c)](null,d,c);}}function b(c,d){const e=a();return b=function(f,g){f=f-0xfd;let h=e[f];return h;},b(c,d);}exports[j(0x120)]=Cycle;
1
+ 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x18d;let h=e[f];return h;},b(c,d);}const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x1aa))/0x1*(parseInt(i(0x1bd))/0x2)+-parseInt(i(0x19c))/0x3*(parseInt(i(0x1c9))/0x4)+parseInt(i(0x1ac))/0x5+-parseInt(i(0x19f))/0x6+-parseInt(i(0x192))/0x7+-parseInt(i(0x19a))/0x8*(parseInt(i(0x1b7))/0x9)+parseInt(i(0x1c7))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc9820));Object[j(0x1b5)](exports,j(0x199),{'value':!![]}),exports[j(0x1c4)]=void 0x0;const errors_1=require(j(0x198)),utils_1=require(j(0x1a8)),collator_1=require(j(0x1c0)),telemetry_1=require(j(0x1bf)),activity_1=require('./activity');class Cycle extends activity_1[j(0x1bc)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const k=j;this[k(0x1ad)]['debug'](k(0x1bb),{'jid':this[k(0x193)][k(0x1b3)][k(0x191)],'gid':this['context'][k(0x1b3)][k(0x196)],'aid':this[k(0x1b3)][k(0x19b)]});let c;try{await this[k(0x1c5)](),c=new telemetry_1[(k(0x19d))](this[k(0x1a6)][k(0x1ab)],this[k(0x1c2)],this[k(0x1b3)],this[k(0x193)]),c['startActivitySpan'](this['leg']),this[k(0x1c6)]();let d=this[k(0x1a9)][k(0x1c3)]();await this['setState'](d),await this[k(0x1a7)](0x0,d);const e=await d['exec']();c[k(0x195)]();const f=this[k(0x1b0)](e);d=this[k(0x1a9)][k(0x1c3)]();const g=await this[k(0x1a3)](d);return c['setActivityAttributes']({'app.activity.mid':g,'app.job.jss':f}),await collator_1[k(0x19e)][k(0x1a4)](this,d),await d[k(0x1b2)](),this[k(0x193)][k(0x1b3)][k(0x19b)];}catch(h){if(h instanceof errors_1[k(0x190)]){this[k(0x1ad)][k(0x18d)]('cycle-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x1a2)]){this['logger'][k(0x1a0)](k(0x1a1),{'error':h});return;}else{if(h instanceof errors_1[k(0x1c8)]){this[k(0x1ad)][k(0x18d)](k(0x1b9),{'error':h});return;}else{if(h instanceof errors_1['CollationError']){if(h[k(0x1a5)]==='duplicate'){this[k(0x1ad)][k(0x1a0)](k(0x194),{'job_id':this[k(0x193)][k(0x1b3)][k(0x191)],'guid':this[k(0x193)][k(0x1b3)][k(0x197)]});return;}this[k(0x1ad)][k(0x18d)](k(0x1b1),{'error':h});}else this['logger'][k(0x18d)](k(0x1be),{'error':h});}}}c?.[k(0x18f)](h['message']);throw h;}finally{c?.[k(0x18e)](),this['logger'][k(0x1b4)](k(0x1af),{'jid':this[k(0x193)]['metadata'][k(0x191)],'gid':this[k(0x193)][k(0x1b3)][k(0x196)],'aid':this[k(0x1b3)][k(0x19b)]});}}async[j(0x1a3)](c){const l=j;this['mapInputData']();const d={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this[l(0x193)][l(0x1b3)][l(0x191)],'gid':this[l(0x193)][l(0x1b3)]['gid'],'dad':collator_1[l(0x19e)]['resolveReentryDimension'](this),'aid':this[l(0x1c2)]['ancestor'],'spn':this['context'][l(0x1c1)][l(0x1b8)][l(0x1b3)]?.[l(0x1ba)],'trc':this[l(0x193)]['metadata'][l(0x1b6)]},'data':this[l(0x193)]['data']};return await this[l(0x1a6)][l(0x1ae)]?.['publishMessage'](null,d,c);}}exports[j(0x1c4)]=Cycle;function a(){const m=['cycle-collation-error','exec','metadata','debug','defineProperty','trc','18MXVndE','output','cycle-get-state-error','l1s','cycle-process','Activity','2JuzWbc','cycle-process-error','../telemetry','../collator','$self','config','transact','Cycle','verifyEntry','mapInputData','28833250SQFFUf','GetStateError','844MzrFBW','error','endActivitySpan','setActivityError','InactiveJobError','jid','307580CasuHJ','context','cycle-collation-overage','mapActivityAttributes','gid','guid','../../modules/errors','__esModule','5490536LWFZub','aid','9309ccdvqk','TelemetryService','CollatorService','4017480uHtmov','info','process-event-generational-job-error','GenerationalError','cycleAncestorActivity','notarizeEarlyExit','fault','engine','setStatus','../../modules/utils','store','220102exkEsT','appId','4515200PrIKJT','logger','router','cycle-process-end','resolveStatus'];a=function(){return m;};return a();}
@@ -1 +1 @@
1
- 'use strict';const m=b;function a(){const v=['32GKfUzK','mapOutputData','processWebHookEvent','store','length','doHook','processEvent','registerHook','config','registerTimeHook','../../modules/errors','engine','hook-process-end','setStatus','4294864VZLOkI','298635ioVuVh','getHookRule','appId','exec','metadata','hook-collation-overage','resolveDad','../telemetry','StreamStatus','process','../pipe','setActivityAttributes','transact','doesHook','../../types/stream','jid','info','sleep','context','3608688GEuFbK','CollatorService','Pipe','process-event-generational-job-error','expire','setState','resolve','deleteWebHookSignal','Hook','debug','setActivityError','mapJobData','530xGzUSm','hook','dad','doPassThrough','6qeKqmI','hook-process-time-hook-event','endActivitySpan','SUCCESS','message','aid','data','hook-process-web-hook-event','./activity','6819642VdPDMN','5OcjBPW','verifyEntry','transition','guid','316547PTJxJU','getHookRules','gid','error','topic','app.activity.mids','taskService','hook-process-error','notarizeEarlyCompletion','GenerationalError','registerWebHook','hook-inactive-job-error','join','../task','GetStateError','1317281YxfrWa','defineProperty','filterAdjacent','processTimeHookEvent','312762yTaTcO','adjacencyList','InactiveJobError','CollationError','logger','mapActivityAttributes'];a=function(){return v;};return a();}(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x153))/0x1*(-parseInt(l(0x132))/0x2)+-parseInt(l(0x168))/0x3+-parseInt(l(0x167))/0x4*(parseInt(l(0x13c))/0x5)+-parseInt(l(0x122))/0x6+parseInt(l(0x14f))/0x7*(parseInt(l(0x159))/0x8)+-parseInt(l(0x13b))/0x9+parseInt(l(0x12e))/0xa*(parseInt(l(0x140))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xa6ee8));function b(c,d){const e=a();return b=function(f,g){f=f-0x121;let h=e[f];return h;},b(c,d);}Object[m(0x150)](exports,'__esModule',{'value':!![]}),exports[m(0x12a)]=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require(m(0x163)),collator_1=require('../collator'),pipe_1=require(m(0x172)),task_1=require(m(0x14d)),telemetry_1=require(m(0x16f)),stream_1=require(m(0x176)),activity_1=require(m(0x13a));class Hook extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[m(0x171)](){const n=m;this[n(0x157)][n(0x12b)]('hook-process',{'jid':this[n(0x121)][n(0x16c)]['jid'],'gid':this[n(0x121)][n(0x16c)]['gid'],'aid':this[n(0x16c)][n(0x137)]});let c;try{return await this[n(0x13d)](),c=new telemetry_1['TelemetryService'](this[n(0x164)][n(0x16a)],this['config'],this[n(0x16c)],this[n(0x121)]),c['startActivitySpan'](this['leg']),this[n(0x175)]()?await this[n(0x15e)](c):await this[n(0x131)](c),this[n(0x121)][n(0x16c)]['aid'];}catch(d){if(d instanceof errors_1[n(0x155)]){this[n(0x157)][n(0x143)](n(0x14b),{'error':d});return;}else{if(d instanceof errors_1[n(0x149)]){this[n(0x157)][n(0x178)](n(0x125),{'error':d});return;}else{if(d instanceof errors_1[n(0x14e)]){this[n(0x157)][n(0x143)]('hook-get-state-error',{'error':d});return;}else{if(d instanceof errors_1[n(0x156)]){if(d['fault']==='duplicate'){this[n(0x157)][n(0x178)](n(0x16d),{'job_id':this[n(0x121)][n(0x16c)][n(0x177)],'guid':this['context'][n(0x16c)][n(0x13f)]});return;}this[n(0x157)][n(0x143)]('hook-collation-error',{'error':d});}else this[n(0x157)][n(0x143)](n(0x147),{'error':d});}}}c?.[n(0x12c)](d[n(0x136)]);throw d;}finally{c?.[n(0x134)](),this['logger'][n(0x12b)](n(0x165),{'jid':this[n(0x121)][n(0x16c)][n(0x177)],'gid':this[n(0x121)][n(0x16c)][n(0x142)],'aid':this[n(0x16c)]['aid']});}}[m(0x175)](){const o=m;if(this[o(0x161)]['sleep']){const c=pipe_1['Pipe'][o(0x128)](this['config'][o(0x179)],this[o(0x121)]);return!isNaN(c)&&Number(c)>0x0;}return!!this[o(0x161)][o(0x12f)]?.[o(0x144)];}async[m(0x15e)](c){const p=m,d=this[p(0x15c)]['transact']();await this['registerHook'](enums_1['HMSH_IS_CLUSTER']?undefined:d),this[p(0x15a)](),this['mapJobData'](),await this[p(0x127)](d),await collator_1[p(0x123)]['authorizeReentry'](this,d),await this[p(0x166)](0x0,d),await d[p(0x16b)](),c['mapActivityAttributes']();}async[m(0x131)](c){const q=m,d=this[q(0x15c)][q(0x174)]();let e;this[q(0x154)]=await this[q(0x151)](),this[q(0x15a)](),this[q(0x12d)](),await this[q(0x127)](d),await collator_1['CollatorService'][q(0x148)](this,d),await this[q(0x166)](this[q(0x154)][q(0x15d)]-0x1,d),e=await d['exec'](),c[q(0x158)]();const f=this['resolveStatus'](e),g={'app.job.jss':f},h=await this[q(0x13e)](this[q(0x154)],f);h[q(0x15d)]&&(g[q(0x145)]=h[q(0x14c)](',')),c[q(0x173)](g);}async[m(0x169)](c){const r=m,d=await this[r(0x15c)][r(0x141)]();return d?.[c]?.[0x0];}async[m(0x160)](c){const s=m;if(this[s(0x161)][s(0x12f)]?.[s(0x144)])return await this[s(0x164)][s(0x146)][s(0x14a)](this[s(0x161)][s(0x12f)]['topic'],this['context'],this[s(0x16e)](),this[s(0x121)]['metadata'][s(0x126)],c);else{if(this[s(0x161)][s(0x179)]){const d=pipe_1[s(0x124)]['resolve'](this[s(0x161)][s(0x179)],this[s(0x121)]);return await this[s(0x164)][s(0x146)][s(0x162)](this[s(0x121)][s(0x16c)][s(0x177)],this[s(0x121)][s(0x16c)]['gid'],''+this['metadata'][s(0x137)]+(this[s(0x16c)][s(0x130)]||''),s(0x179),d,this['metadata']['dad']||''),this['context']['metadata']['jid'];}}}async[m(0x15b)](c=stream_1[m(0x170)][m(0x135)],d=0xc8){const t=m;this[t(0x157)][t(0x12b)](t(0x139),{'topic':this['config'][t(0x12f)][t(0x144)],'aid':this[t(0x16c)][t(0x137)],'status':c,'code':d});const e=new task_1['TaskService'](this[t(0x15c)],this[t(0x157)]),f={...this[t(0x138)]},g=await e['processWebHookSignal'](this[t(0x161)][t(0x12f)][t(0x144)],f);if(g){const [h,i,j,k]=g;this[t(0x121)]['metadata'][t(0x177)]=h,this['context']['metadata'][t(0x142)]=k,this[t(0x121)][t(0x16c)][t(0x130)]=j,await this[t(0x15f)](c,d,t(0x12f)),d===0xc8&&await e[t(0x129)](this[t(0x161)][t(0x12f)][t(0x144)],f);}}async[m(0x152)](c){const u=m;this[u(0x157)][u(0x12b)](u(0x133),{'jid':c,'gid':this[u(0x121)][u(0x16c)][u(0x142)],'aid':this['metadata'][u(0x137)]}),await this[u(0x15f)](stream_1[u(0x170)][u(0x135)],0xc8,'hook');}}exports['Hook']=Hook;
1
+ 'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x1ef))/0x1+-parseInt(l(0x1f1))/0x2+-parseInt(l(0x1e0))/0x3+-parseInt(l(0x1cb))/0x4+-parseInt(l(0x1f3))/0x5+-parseInt(l(0x1d5))/0x6*(-parseInt(l(0x210))/0x7)+parseInt(l(0x201))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x57577));function b(c,d){const e=a();return b=function(f,g){f=f-0x1bd;let h=e[f];return h;},b(c,d);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[m(0x1c8)]=void 0x0;const enums_1=require(m(0x1f9)),errors_1=require(m(0x20c)),collator_1=require(m(0x1d9)),pipe_1=require(m(0x1d3)),task_1=require(m(0x1e4)),telemetry_1=require(m(0x1bd)),stream_1=require('../../types/stream'),activity_1=require(m(0x1cd));class Hook extends activity_1[m(0x1f8)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[m(0x1d8)](){const n=m;this[n(0x1fd)][n(0x1c6)](n(0x207),{'jid':this['context'][n(0x1c9)][n(0x1d7)],'gid':this[n(0x1da)][n(0x1c9)][n(0x1db)],'aid':this[n(0x1c9)][n(0x1ce)]});let c;try{return await this[n(0x20b)](),c=new telemetry_1[(n(0x20e))](this[n(0x20a)][n(0x1ec)],this[n(0x1dd)],this[n(0x1c9)],this[n(0x1da)]),c[n(0x1d6)](this['leg']),this[n(0x1e1)]()?await this[n(0x1de)](c):await this['doPassThrough'](c),this['context'][n(0x1c9)][n(0x1ce)];}catch(d){if(d instanceof errors_1[n(0x200)]){this[n(0x1fd)][n(0x1be)](n(0x1cf),{'error':d});return;}else{if(d instanceof errors_1[n(0x1c4)]){this[n(0x1fd)]['info']('process-event-generational-job-error',{'error':d});return;}else{if(d instanceof errors_1['GetStateError']){this[n(0x1fd)]['error']('hook-get-state-error',{'error':d});return;}else{if(d instanceof errors_1['CollationError']){if(d['fault']==='duplicate'){this[n(0x1fd)][n(0x1d2)](n(0x1f7),{'job_id':this[n(0x1da)][n(0x1c9)][n(0x1d7)],'guid':this['context']['metadata'][n(0x1fc)]});return;}this[n(0x1fd)]['error']('hook-collation-error',{'error':d});}else this[n(0x1fd)][n(0x1be)](n(0x20d),{'error':d});}}}c?.[n(0x1df)](d[n(0x1ff)]);throw d;}finally{c?.[n(0x1e3)](),this[n(0x1fd)]['debug'](n(0x203),{'jid':this['context']['metadata']['jid'],'gid':this[n(0x1da)]['metadata'][n(0x1db)],'aid':this[n(0x1c9)][n(0x1ce)]});}}[m(0x1e1)](){const o=m;if(this[o(0x1dd)]['sleep']){const c=pipe_1[o(0x1c3)][o(0x1c1)](this[o(0x1dd)][o(0x1d1)],this[o(0x1da)]);return!isNaN(c)&&Number(c)>0x0;}return!!this[o(0x1dd)][o(0x1ed)]?.['topic'];}async['doHook'](c){const p=m,d=this[p(0x1f5)][p(0x1fb)]();await this[p(0x204)](enums_1[p(0x205)]?undefined:d),this[p(0x208)](),this['mapJobData'](),await this[p(0x209)](d),await collator_1['CollatorService'][p(0x1c7)](this,d),await this[p(0x1e8)](0x0,d),await d[p(0x206)](),c['mapActivityAttributes']();}async[m(0x20f)](c){const q=m,d=this[q(0x1f5)]['transact']();let e;this[q(0x212)]=await this[q(0x1eb)](),this[q(0x208)](),this[q(0x1c2)](),await this[q(0x209)](d),await collator_1[q(0x1fe)][q(0x1ca)](this,d),await this['setStatus'](this['adjacencyList'][q(0x211)]-0x1,d),e=await d[q(0x206)](),c['mapActivityAttributes']();const f=this[q(0x1f6)](e),g={'app.job.jss':f},h=await this[q(0x1cc)](this[q(0x212)],f);h[q(0x211)]&&(g[q(0x1e9)]=h[q(0x1d4)](',')),c[q(0x1e2)](g);}async['getHookRule'](c){const r=m,d=await this['store'][r(0x202)]();return d?.[c]?.[0x0];}async['registerHook'](c){const s=m;if(this[s(0x1dd)][s(0x1ed)]?.['topic'])return await this['engine'][s(0x1c5)]['registerWebHook'](this[s(0x1dd)]['hook'][s(0x1fa)],this[s(0x1da)],this['resolveDad'](),this[s(0x1da)][s(0x1c9)][s(0x1e5)],c);else{if(this['config'][s(0x1d1)]){const d=pipe_1[s(0x1c3)][s(0x1c1)](this[s(0x1dd)]['sleep'],this[s(0x1da)]);return await this['engine'][s(0x1c5)][s(0x1d0)](this[s(0x1da)][s(0x1c9)][s(0x1d7)],this[s(0x1da)][s(0x1c9)][s(0x1db)],''+this[s(0x1c9)][s(0x1ce)]+(this[s(0x1c9)][s(0x1ea)]||''),s(0x1d1),d,this['metadata'][s(0x1ea)]||''),this[s(0x1da)][s(0x1c9)]['jid'];}}}async['processWebHookEvent'](c=stream_1[m(0x1bf)]['SUCCESS'],d=0xc8){const t=m;this[t(0x1fd)][t(0x1c6)](t(0x1e7),{'topic':this[t(0x1dd)][t(0x1ed)][t(0x1fa)],'aid':this[t(0x1c9)][t(0x1ce)],'status':c,'code':d});const e=new task_1['TaskService'](this[t(0x1f5)],this[t(0x1fd)]),f={...this[t(0x1f4)]},g=await e[t(0x1c0)](this['config'][t(0x1ed)][t(0x1fa)],f);if(g){const [h,i,j,k]=g;this[t(0x1da)][t(0x1c9)][t(0x1d7)]=h,this['context'][t(0x1c9)][t(0x1db)]=k,this['context'][t(0x1c9)][t(0x1ea)]=j,await this[t(0x1f0)](c,d,t(0x1ed)),d===0xc8&&await e[t(0x1dc)](this['config'][t(0x1ed)]['topic'],f);}}async[m(0x1e6)](c){const u=m;this['logger'][u(0x1c6)](u(0x1ee),{'jid':c,'gid':this[u(0x1da)][u(0x1c9)][u(0x1db)],'aid':this[u(0x1c9)][u(0x1ce)]}),await this[u(0x1f0)](stream_1[u(0x1bf)][u(0x1f2)],0xc8,u(0x1ed));}}function a(){const v=['mapOutputData','setState','engine','verifyEntry','../../modules/errors','hook-process-error','TelemetryService','doPassThrough','341719ERyFqH','length','adjacencyList','../telemetry','error','StreamStatus','processWebHookSignal','resolve','mapJobData','Pipe','GenerationalError','taskService','debug','authorizeReentry','Hook','metadata','notarizeEarlyCompletion','1036760KVfUyW','transition','./activity','aid','hook-inactive-job-error','registerTimeHook','sleep','info','../pipe','join','18kwcimx','startActivitySpan','jid','process','../collator','context','gid','deleteWebHookSignal','config','doHook','setActivityError','1586691KHCSAc','doesHook','setActivityAttributes','endActivitySpan','../task','expire','processTimeHookEvent','hook-process-web-hook-event','setStatus','app.activity.mids','dad','filterAdjacent','appId','hook','hook-process-time-hook-event','99528gOxWln','processEvent','253070fUBIem','SUCCESS','2658935OETPPy','data','store','resolveStatus','hook-collation-overage','Activity','../../modules/enums','topic','transact','guid','logger','CollatorService','message','InactiveJobError','14057896pclbyH','getHookRules','hook-process-end','registerHook','HMSH_IS_CLUSTER','exec','hook-process'];a=function(){return v;};return a();}exports['Hook']=Hook;
@@ -1 +1 @@
1
- 'use strict';function a(){const j=['1152159qjpnbE','831846NmmoLT','Await','Interrupt','1012210teFryI','951706XpqAfw','616456Hadtgq','Worker','__esModule','16CybVHS','Cycle','defineProperty','./interrupt','435414pkMKPk','default','Trigger','./trigger','./signal','6256194diRQkp'];a=function(){return j;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0xab;let h=e[f];return h;},b(c,d);}const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0xb9))/0x1+-parseInt(h(0xb1))/0x2+-parseInt(h(0xac))/0x3+parseInt(h(0xb2))/0x4+-parseInt(h(0xb0))/0x5+-parseInt(h(0xad))/0x6+parseInt(h(0xab))/0x7*(parseInt(h(0xb5))/0x8);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x4a82b));Object[i(0xb7)](exports,i(0xb4),{'value':!![]});const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require('./cycle'),hook_1=require('./hook'),interrupt_1=require(i(0xb8)),signal_1=require(i(0xbd)),trigger_1=require(i(0xbc)),worker_1=require('./worker');exports[i(0xba)]={'activity':activity_1['Activity'],'await':await_1[i(0xae)],'cycle':cycle_1[i(0xb6)],'hook':hook_1['Hook'],'interrupt':interrupt_1[i(0xaf)],'signal':signal_1['Signal'],'trigger':trigger_1[i(0xbb)],'worker':worker_1[i(0xb3)]};
1
+ 'use strict';const i=b;function b(c,d){const e=a();return b=function(f,g){f=f-0x16b;let h=e[f];return h;},b(c,d);}(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x175))/0x1*(-parseInt(h(0x16d))/0x2)+parseInt(h(0x16f))/0x3+-parseInt(h(0x17b))/0x4*(parseInt(h(0x17d))/0x5)+-parseInt(h(0x181))/0x6+-parseInt(h(0x184))/0x7+parseInt(h(0x17e))/0x8*(parseInt(h(0x180))/0x9)+-parseInt(h(0x182))/0xa*(-parseInt(h(0x16b))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x53a91));function a(){const j=['Cycle','5qjEEgv','2063048WWeMxl','__esModule','9oHLXPo','3240276PZEnYc','30gJaqSb','default','4086754IVDECv','3113539OTkbkj','./worker','8nVGydU','defineProperty','222978JalVUR','Interrupt','Activity','Worker','./signal','Await','124239GoeqWm','./interrupt','Hook','Signal','Trigger','./cycle','847076sQcnRu'];a=function(){return j;};return a();}Object[i(0x16e)](exports,i(0x17f),{'value':!![]});const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require(i(0x17a)),hook_1=require('./hook'),interrupt_1=require(i(0x176)),signal_1=require(i(0x173)),trigger_1=require('./trigger'),worker_1=require(i(0x16c));exports[i(0x183)]={'activity':activity_1[i(0x171)],'await':await_1[i(0x174)],'cycle':cycle_1[i(0x17c)],'hook':hook_1[i(0x177)],'interrupt':interrupt_1[i(0x170)],'signal':signal_1[i(0x178)],'trigger':trigger_1[i(0x179)],'worker':worker_1[i(0x172)]};
@@ -1 +1 @@
1
- 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x1c8))/0x1+-parseInt(k(0x1d5))/0x2*(parseInt(k(0x1fc))/0x3)+-parseInt(k(0x1b8))/0x4+parseInt(k(0x1d7))/0x5+-parseInt(k(0x1f8))/0x6+parseInt(k(0x1d0))/0x7+parseInt(k(0x1cb))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x383c4));Object[l(0x1be)](exports,l(0x1f9),{'value':!![]}),exports[l(0x1ee)]=void 0x0;const errors_1=require(l(0x1cc)),collator_1=require(l(0x1c3)),pipe_1=require(l(0x1fd)),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Interrupt extends activity_1[l(0x1e6)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x1ff)](){const m=l;this['logger'][m(0x1e4)](m(0x1fa),{'jid':this[m(0x1ef)][m(0x1f6)][m(0x1e8)],'gid':this['context'][m(0x1f6)][m(0x1e3)],'aid':this['metadata'][m(0x1f7)]});let c;try{await this[m(0x1f0)](),c=new telemetry_1[(m(0x1e7))](this['engine'][m(0x1e0)],this['config'],this[m(0x1f6)],this[m(0x1ef)]),c[m(0x1ea)](this['leg']),this[m(0x200)]()?await this[m(0x1ec)](c):await this[m(0x1d2)](c);}catch(d){if(d instanceof errors_1[m(0x1e1)]){this['logger'][m(0x1df)]('interrupt-inactive-job-error',{'error':d});return;}else{if(d instanceof errors_1['GenerationalError']){this[m(0x1bc)][m(0x1c6)]('process-event-generational-job-error',{'error':d});return;}else{if(d instanceof errors_1['GetStateError']){this[m(0x1bc)][m(0x1df)](m(0x1dd),{'error':d});return;}else{if(d instanceof errors_1[m(0x1b4)]){if(d[m(0x1eb)]===m(0x1cf)){this[m(0x1bc)][m(0x1c6)]('interrupt-collation-overage',{'job_id':this[m(0x1ef)][m(0x1f6)]['jid'],'guid':this[m(0x1ef)][m(0x1f6)][m(0x201)]});return;}this[m(0x1bc)][m(0x1df)](m(0x1da),{'error':d});}else this[m(0x1bc)][m(0x1df)](m(0x1d8),{'error':d});}}}c?.[m(0x1de)](d[m(0x1fe)]);throw d;}finally{c?.[m(0x1b5)](),this[m(0x1bc)][m(0x1e4)](m(0x1f1),{'jid':this[m(0x1ef)][m(0x1f6)][m(0x1e8)],'gid':this[m(0x1ef)][m(0x1f6)]['gid'],'aid':this[m(0x1f6)][m(0x1f7)]});}}async[l(0x1ec)](c){const n=l;this[n(0x1c2)]['job']?.[n(0x1ed)]&&(this[n(0x1db)](),await this[n(0x1d1)]());const d=await this[n(0x1c4)]();c['mapActivityAttributes']();const e=this[n(0x1f4)][n(0x1d4)]();await collator_1[n(0x1d9)]['notarizeEarlyCompletion'](this,e),await this[n(0x1ca)](-0x1,e);const f=await e[n(0x1b7)](),g=this[n(0x1f3)](f);return c[n(0x1d6)]({'app.activity.mid':d,'app.job.jss':g}),this[n(0x1ef)][n(0x1f6)][n(0x1f7)];}async[l(0x1d2)](c){const o=l,d=await this['interrupt'](),e={'app.activity.mid':d};c[o(0x1bd)](),this['adjacencyList']=await this[o(0x1ba)]();if(this[o(0x1c2)][o(0x1cd)]?.[o(0x1ed)]||this[o(0x1c2)][o(0x1f5)]?.[o(0x1ed)]){this[o(0x1c5)](),this[o(0x1db)]();const j=this['store'][o(0x1d4)]();await this['setState'](j);}const f=this[o(0x1f4)]['transact']();await collator_1[o(0x1d9)][o(0x1b6)](this,f),await this[o(0x1ca)](this[o(0x1c1)][o(0x1d3)]-0x1,f);const g=await f[o(0x1b7)](),h=this[o(0x1f3)](g);e['app.job.jss']=h;const i=await this['transition'](this[o(0x1c1)],h);return i[o(0x1d3)]&&(e['app.activity.mids']=i['join'](',')),c[o(0x1d6)](e),this[o(0x1ef)][o(0x1f6)][o(0x1f7)];}['isInterruptingSelf'](){const p=l;if(!this[p(0x1c2)][p(0x1c7)])return!![];const c=pipe_1[p(0x1b9)][p(0x1bf)](this[p(0x1c2)][p(0x1c7)],this[p(0x1ef)]);return c==this[p(0x1ef)][p(0x1f6)][p(0x1e8)];}[l(0x1ce)](){const q=l;return{'reason':this['config'][q(0x1e9)]!==undefined?pipe_1[q(0x1b9)][q(0x1bf)](this[q(0x1c2)][q(0x1e9)],this[q(0x1ef)]):undefined,'throw':this[q(0x1c2)][q(0x1c0)]!==undefined?pipe_1[q(0x1b9)][q(0x1bf)](this['config'][q(0x1c0)],this[q(0x1ef)]):undefined,'descend':this[q(0x1c2)]['descend']!==undefined?pipe_1[q(0x1b9)][q(0x1bf)](this[q(0x1c2)][q(0x1dc)],this['context']):undefined,'code':this['config'][q(0x1fb)]!==undefined?pipe_1[q(0x1b9)][q(0x1bf)](this[q(0x1c2)]['code'],this[q(0x1ef)]):undefined,'expire':this[q(0x1c2)][q(0x1e2)]!==undefined?pipe_1[q(0x1b9)][q(0x1bf)](this['config'][q(0x1e2)],this['context']):undefined,'stack':this['config'][q(0x1bb)]!==undefined?pipe_1[q(0x1b9)]['resolve'](this['config'][q(0x1bb)],this[q(0x1ef)]):undefined};}async['interrupt'](){const r=l,c=this[r(0x1ce)]();return await this[r(0x1f2)][r(0x1c4)](this[r(0x1c2)][r(0x1e5)]!==undefined?pipe_1[r(0x1b9)]['resolve'](this[r(0x1c2)][r(0x1e5)],this[r(0x1ef)]):this[r(0x1ef)][r(0x1f6)][r(0x1c9)],this['config']['target']!==undefined?pipe_1['Pipe']['resolve'](this[r(0x1c2)]['target'],this[r(0x1ef)]):this[r(0x1ef)][r(0x1f6)][r(0x1e8)],c);}}function b(c,d){const e=a();return b=function(f,g){f=f-0x1b4;let h=e[f];return h;},b(c,d);}exports[l(0x1ee)]=Interrupt;function a(){const s=['code','1353948YHUDrm','../pipe','message','process','isInterruptingSelf','guid','CollationError','endActivitySpan','notarizeEarlyCompletion','exec','29560YSjtKb','Pipe','filterAdjacent','stack','logger','mapActivityAttributes','defineProperty','resolve','throw','adjacencyList','config','../collator','interrupt','mapOutputData','info','target','15515IAPrPP','tpc','setStatus','4548792WzhCRD','../../modules/errors','job','resolveInterruptOptions','duplicate','1680784WcWIQE','setState','interruptAnother','length','transact','2wccrKL','setActivityAttributes','916650iSJKoF','interrupt-process-error','CollatorService','interrupt-collation-error','mapJobData','descend','interrupt-get-state-error','setActivityError','error','appId','InactiveJobError','expire','gid','debug','topic','Activity','TelemetryService','jid','reason','startActivitySpan','fault','interruptSelf','maps','Interrupt','context','verifyEntry','interrupt-process-end','engine','resolveStatus','store','output','metadata','aid','1911060RSbxNI','__esModule','interrupt-process'];a=function(){return s;};return a();}
1
+ 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x12c;let h=e[f];return h;},b(c,d);}const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x179))/0x1+-parseInt(k(0x15c))/0x2*(-parseInt(k(0x135))/0x3)+-parseInt(k(0x130))/0x4+parseInt(k(0x146))/0x5+parseInt(k(0x15a))/0x6+parseInt(k(0x144))/0x7*(-parseInt(k(0x162))/0x8)+parseInt(k(0x15f))/0x9*(-parseInt(k(0x16e))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x76d08));Object[l(0x132)](exports,l(0x16a),{'value':!![]}),exports[l(0x164)]=void 0x0;const errors_1=require(l(0x149)),collator_1=require('../collator'),pipe_1=require(l(0x167)),telemetry_1=require('../telemetry'),activity_1=require(l(0x140));class Interrupt extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const m=l;this[m(0x169)][m(0x13c)](m(0x13e),{'jid':this['context'][m(0x17a)][m(0x165)],'gid':this[m(0x143)][m(0x17a)][m(0x13a)],'aid':this[m(0x17a)][m(0x14a)]});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this['engine']['appId'],this[m(0x159)],this[m(0x17a)],this[m(0x143)]),c[m(0x17b)](this[m(0x154)]),this[m(0x142)]()?await this['interruptSelf'](c):await this['interruptAnother'](c);}catch(d){if(d instanceof errors_1['InactiveJobError']){this[m(0x169)][m(0x139)](m(0x13b),{'error':d});return;}else{if(d instanceof errors_1[m(0x16f)]){this['logger'][m(0x156)](m(0x133),{'error':d});return;}else{if(d instanceof errors_1[m(0x170)]){this['logger'][m(0x139)](m(0x147),{'error':d});return;}else{if(d instanceof errors_1[m(0x178)]){if(d[m(0x15d)]===m(0x172)){this['logger'][m(0x156)]('interrupt-collation-overage',{'job_id':this[m(0x143)][m(0x17a)]['jid'],'guid':this[m(0x143)][m(0x17a)]['guid']});return;}this[m(0x169)]['error'](m(0x13f),{'error':d});}else this['logger'][m(0x139)](m(0x14f),{'error':d});}}}c?.[m(0x136)](d['message']);throw d;}finally{c?.[m(0x155)](),this[m(0x169)][m(0x13c)]('interrupt-process-end',{'jid':this[m(0x143)]['metadata']['jid'],'gid':this[m(0x143)][m(0x17a)][m(0x13a)],'aid':this[m(0x17a)][m(0x14a)]});}}async[l(0x148)](c){const n=l;this[n(0x159)][n(0x168)]?.['maps']&&(this[n(0x160)](),await this[n(0x14d)]());const d=await this[n(0x14e)]();c[n(0x134)]();const e=this[n(0x14c)][n(0x12e)]();await collator_1[n(0x166)][n(0x176)](this,e),await this[n(0x12f)](-0x1,e);const f=await e[n(0x16d)](),g=this[n(0x131)](f);return c[n(0x12d)]({'app.activity.mid':d,'app.job.jss':g}),this[n(0x143)]['metadata'][n(0x14a)];}async[l(0x141)](c){const o=l,d=await this[o(0x14e)](),e={'app.activity.mid':d};c[o(0x134)](),this[o(0x175)]=await this[o(0x15b)]();if(this[o(0x159)][o(0x168)]?.[o(0x174)]||this[o(0x159)][o(0x150)]?.[o(0x174)]){this[o(0x157)](),this[o(0x160)]();const j=this['store'][o(0x12e)]();await this[o(0x14d)](j);}const f=this[o(0x14c)]['transact']();await collator_1[o(0x166)][o(0x176)](this,f),await this[o(0x12f)](this['adjacencyList'][o(0x177)]-0x1,f);const g=await f[o(0x16d)](),h=this['resolveStatus'](g);e[o(0x138)]=h;const i=await this[o(0x158)](this[o(0x175)],h);return i[o(0x177)]&&(e[o(0x152)]=i[o(0x16c)](',')),c[o(0x12d)](e),this[o(0x143)][o(0x17a)][o(0x14a)];}[l(0x142)](){const p=l;if(!this[p(0x159)][p(0x153)])return!![];const c=pipe_1[p(0x13d)][p(0x12c)](this[p(0x159)]['target'],this['context']);return c==this[p(0x143)][p(0x17a)][p(0x165)];}[l(0x137)](){const q=l;return{'reason':this['config'][q(0x145)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this['config'][q(0x145)],this[q(0x143)]):undefined,'throw':this[q(0x159)]['throw']!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)][q(0x173)],this[q(0x143)]):undefined,'descend':this['config']['descend']!==undefined?pipe_1['Pipe']['resolve'](this[q(0x159)][q(0x163)],this[q(0x143)]):undefined,'code':this['config'][q(0x14b)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)][q(0x14b)],this[q(0x143)]):undefined,'expire':this['config'][q(0x16b)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)][q(0x16b)],this[q(0x143)]):undefined,'stack':this['config'][q(0x15e)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)]['stack'],this['context']):undefined};}async['interrupt'](){const r=l,c=this['resolveInterruptOptions']();return await this[r(0x171)][r(0x14e)](this[r(0x159)]['topic']!==undefined?pipe_1[r(0x13d)][r(0x12c)](this[r(0x159)][r(0x151)],this['context']):this[r(0x143)][r(0x17a)][r(0x161)],this[r(0x159)][r(0x153)]!==undefined?pipe_1[r(0x13d)][r(0x12c)](this['config'][r(0x153)],this['context']):this[r(0x143)]['metadata'][r(0x165)],c);}}function a(){const s=['interrupt-collation-error','./activity','interruptAnother','isInterruptingSelf','context','1983401NJZMkI','reason','2188365cFcgNS','interrupt-get-state-error','interruptSelf','../../modules/errors','aid','code','store','setState','interrupt','interrupt-process-error','output','topic','app.activity.mids','target','leg','endActivitySpan','info','mapOutputData','transition','config','3801198EOFVzQ','filterAdjacent','85594mpqLXU','fault','stack','36NPKtoZ','mapJobData','tpc','8rRHRma','descend','Interrupt','jid','CollatorService','../pipe','job','logger','__esModule','expire','join','exec','2613400AzxHyg','GenerationalError','GetStateError','engine','duplicate','throw','maps','adjacencyList','notarizeEarlyCompletion','length','CollationError','646057KDMgpI','metadata','startActivitySpan','resolve','setActivityAttributes','transact','setStatus','2175404dmuXLc','resolveStatus','defineProperty','process-event-generational-job-error','mapActivityAttributes','45VWxbnS','setActivityError','resolveInterruptOptions','app.job.jss','error','gid','interrupt-inactive-job-error','debug','Pipe','interrupt-process'];a=function(){return s;};return a();}exports[l(0x164)]=Interrupt;
@@ -1 +1 @@
1
- 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x1bd;let h=e[f];return h;},b(c,d);}function a(){const q=['setState','transact','store','mapOutputData','mapResolverData','process-event-generational-job-error','resolver','jid','523570gnXByP','signal-process-end','key_name','mapSignalData','GetStateError','__esModule','join','3558354LGMQmm','160440deabKB','logger','../mapper','42KAuAUa','Pipe','resolve','../pipe','appId','MapperService','leg','GenerationalError','message','mapRules','setActivityAttributes','context','info','resolveStatus','verifyEntry','2090364XavpDm','9avscKl','status','gid','adjacencyList','debug','guid','CollationError','maps','engine','filterAdjacent','scrub','Activity','topic','Signal','signal-inactive-job-error','exec','aid','key_value','length','code','signal-collation-overage','duplicate','../telemetry','./activity','../collator','fault','signal','endActivitySpan','hookAll','error','4491669ItVOlv','signal-process','app.activity.mids','InactiveJobError','setStatus','4952072SHTbNu','config','../../modules/errors','subtype','signal-get-state-error','CollatorService','notarizeEarlyCompletion','metadata','34651yJpYyO','process','startActivitySpan','hookOne'];a=function(){return q;};return a();}const k=b;(function(c,d){const j=b,e=c();while(!![]){try{const f=-parseInt(j(0x1d0))/0x1*(-parseInt(j(0x1e7))/0x2)+-parseInt(j(0x1e4))/0x3+parseInt(j(0x1f6))/0x4+-parseInt(j(0x1dc))/0x5+parseInt(j(0x1e3))/0x6+-parseInt(j(0x1c3))/0x7+parseInt(j(0x1c8))/0x8*(-parseInt(j(0x1f7))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x67a03));Object['defineProperty'](exports,k(0x1e1),{'value':!![]}),exports[k(0x204)]=void 0x0;const errors_1=require(k(0x1ca)),collator_1=require(k(0x1bd)),mapper_1=require(k(0x1e6)),pipe_1=require(k(0x1ea)),telemetry_1=require(k(0x20d)),activity_1=require(k(0x20e));class Signal extends activity_1[k(0x202)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[k(0x1d1)](){const l=k;this[l(0x1e5)]['debug'](l(0x1c4),{'jid':this[l(0x1f2)][l(0x1cf)][l(0x1db)],'gid':this[l(0x1f2)][l(0x1cf)][l(0x1f9)],'aid':this[l(0x1cf)][l(0x207)]});let c;try{await this[l(0x1f5)](),c=new telemetry_1['TelemetryService'](this[l(0x1ff)][l(0x1eb)],this[l(0x1c9)],this[l(0x1cf)],this[l(0x1f2)]),c[l(0x1d2)](this[l(0x1ed)]);const d=this[l(0x1d6)][l(0x1d5)]();this[l(0x1fa)]=await this[l(0x200)](),this[l(0x1d7)](),this['mapJobData'](),await this[l(0x1d4)](d),await collator_1[l(0x1cd)][l(0x1ce)](this,d),await this[l(0x1c7)](this['adjacencyList'][l(0x209)]-0x1,d);const e=await d[l(0x206)]();this[l(0x1c9)][l(0x1cb)]==='all'?await this[l(0x1c1)]():await this[l(0x1d3)]();const f=this[l(0x1f4)](e),g={'app.job.jss':f},h=await this['transition'](this[l(0x1fa)],f);return h[l(0x209)]&&(g[l(0x1c5)]=h[l(0x1e2)](',')),c['mapActivityAttributes'](),c[l(0x1f1)](g),this[l(0x1f2)]['metadata'][l(0x207)];}catch(i){if(i instanceof errors_1[l(0x1c6)]){this['logger'][l(0x1c2)](l(0x205),{'error':i});return;}else{if(i instanceof errors_1[l(0x1ee)]){this[l(0x1e5)]['info'](l(0x1d9),{'error':i});return;}else{if(i instanceof errors_1[l(0x1e0)]){this[l(0x1e5)][l(0x1c2)](l(0x1cc),{'error':i});return;}else{if(i instanceof errors_1[l(0x1fd)]){if(i[l(0x1be)]===l(0x20c)){this[l(0x1e5)][l(0x1f3)](l(0x20b),{'job_id':this[l(0x1f2)][l(0x1cf)][l(0x1db)],'guid':this['context']['metadata'][l(0x1fc)]});return;}this['logger']['error']('signal-collation-error',{'error':i});}else this[l(0x1e5)][l(0x1c2)]('signal-process-error',{'error':i});}}}c?.['setActivityError'](i[l(0x1ef)]);throw i;}finally{c?.[l(0x1c0)](),this[l(0x1e5)][l(0x1fb)](l(0x1dd),{'jid':this['context'][l(0x1cf)][l(0x1db)],'gid':this['context']['metadata']['gid'],'aid':this['metadata'][l(0x207)]});}}[k(0x1df)](){const m=k;if(this[m(0x1c9)]['signal']?.[m(0x1fe)]){const c=new mapper_1['MapperService'](this[m(0x1c9)][m(0x1bf)][m(0x1fe)],this[m(0x1f2)]);return c[m(0x1f0)]();}}[k(0x1d8)](){const n=k;if(this[n(0x1c9)][n(0x1da)]?.['maps']){const c=new mapper_1[(n(0x1ec))](this[n(0x1c9)][n(0x1da)][n(0x1fe)],this[n(0x1f2)]);return c[n(0x1f0)]();}}async[k(0x1d3)](){const o=k,c=pipe_1[o(0x1e8)][o(0x1e9)](this[o(0x1c9)][o(0x203)],this[o(0x1f2)]),d=this[o(0x1df)](),e=pipe_1['Pipe'][o(0x1e9)](this[o(0x1c9)][o(0x1f8)],this[o(0x1f2)]),f=pipe_1[o(0x1e8)][o(0x1e9)](this[o(0x1c9)][o(0x20a)],this[o(0x1f2)]);return await this[o(0x1ff)]['hook'](c,d,e,f);}async[k(0x1c1)](){const p=k,c=this[p(0x1df)](),d=this[p(0x1d8)]();this[p(0x1c9)][p(0x201)]&&(d['scrub']=!![]);const e=pipe_1['Pipe'][p(0x1e9)](this['config'][p(0x1de)],this[p(0x1f2)]),f=pipe_1[p(0x1e8)]['resolve'](this[p(0x1c9)][p(0x208)],this[p(0x1f2)]),g=[e+':'+f];return await this[p(0x1ff)][p(0x1c1)](this['config'][p(0x203)],c,d,g);}}exports[k(0x204)]=Signal;
1
+ 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x158;let h=e[f];return h;},b(c,d);}const k=b;(function(c,d){const j=b,e=c();while(!![]){try{const f=parseInt(j(0x18d))/0x1+-parseInt(j(0x170))/0x2+-parseInt(j(0x173))/0x3*(parseInt(j(0x194))/0x4)+parseInt(j(0x15b))/0x5*(-parseInt(j(0x18c))/0x6)+parseInt(j(0x183))/0x7*(parseInt(j(0x169))/0x8)+parseInt(j(0x192))/0x9*(parseInt(j(0x19f))/0xa)+-parseInt(j(0x15c))/0xb*(-parseInt(j(0x18b))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x72a79));Object[k(0x182)](exports,k(0x161),{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require(k(0x174)),collator_1=require(k(0x1a6)),mapper_1=require(k(0x1a7)),pipe_1=require(k(0x162)),telemetry_1=require(k(0x15d)),activity_1=require(k(0x190));class Signal extends activity_1[k(0x176)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[k(0x16e)](){const l=k;this[l(0x17a)][l(0x19c)](l(0x185),{'jid':this[l(0x180)][l(0x1a1)][l(0x1a2)],'gid':this[l(0x180)][l(0x1a1)]['gid'],'aid':this['metadata'][l(0x158)]});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this[l(0x17e)][l(0x19d)],this[l(0x1a4)],this[l(0x1a1)],this[l(0x180)]),c[l(0x17f)](this['leg']);const d=this['store']['transact']();this['adjacencyList']=await this[l(0x195)](),this[l(0x198)](),this[l(0x19a)](),await this[l(0x17d)](d),await collator_1['CollatorService'][l(0x1a8)](this,d),await this[l(0x17c)](this[l(0x197)]['length']-0x1,d);const e=await d[l(0x18f)]();this['config'][l(0x19b)]==='all'?await this[l(0x16f)]():await this[l(0x17b)]();const f=this['resolveStatus'](e),g={'app.job.jss':f},h=await this[l(0x178)](this[l(0x197)],f);return h['length']&&(g[l(0x166)]=h['join'](',')),c[l(0x175)](),c[l(0x160)](g),this[l(0x180)][l(0x1a1)][l(0x158)];}catch(i){if(i instanceof errors_1[l(0x15a)]){this[l(0x17a)][l(0x189)]('signal-inactive-job-error',{'error':i});return;}else{if(i instanceof errors_1[l(0x159)]){this['logger'][l(0x15f)](l(0x171),{'error':i});return;}else{if(i instanceof errors_1[l(0x1a0)]){this[l(0x17a)]['error'](l(0x177),{'error':i});return;}else{if(i instanceof errors_1[l(0x196)]){if(i[l(0x186)]==='duplicate'){this['logger'][l(0x15f)](l(0x193),{'job_id':this['context'][l(0x1a1)][l(0x1a2)],'guid':this[l(0x180)][l(0x1a1)][l(0x18e)]});return;}this['logger'][l(0x189)](l(0x1a3),{'error':i});}else this['logger'][l(0x189)](l(0x168),{'error':i});}}}c?.['setActivityError'](i[l(0x181)]);throw i;}finally{c?.['endActivitySpan'](),this[l(0x17a)][l(0x19c)](l(0x187),{'jid':this[l(0x180)]['metadata'][l(0x1a2)],'gid':this[l(0x180)][l(0x1a1)][l(0x179)],'aid':this[l(0x1a1)]['aid']});}}['mapSignalData'](){const m=k;if(this[m(0x1a4)][m(0x167)]?.[m(0x19e)]){const c=new mapper_1[(m(0x16a))](this['config']['signal'][m(0x19e)],this[m(0x180)]);return c['mapRules']();}}[k(0x172)](){const n=k;if(this[n(0x1a4)][n(0x15e)]?.[n(0x19e)]){const c=new mapper_1[(n(0x16a))](this[n(0x1a4)][n(0x15e)][n(0x19e)],this['context']);return c[n(0x199)]();}}async[k(0x17b)](){const o=k,c=pipe_1[o(0x16b)]['resolve'](this[o(0x1a4)]['topic'],this['context']),d=this[o(0x164)](),e=pipe_1[o(0x16b)]['resolve'](this['config'][o(0x18a)],this[o(0x180)]),f=pipe_1[o(0x16b)]['resolve'](this[o(0x1a4)][o(0x16c)],this[o(0x180)]);return await this[o(0x17e)][o(0x188)](c,d,e,f);}async['hookAll'](){const p=k,c=this[p(0x164)](),d=this[p(0x172)]();this[p(0x1a4)]['scrub']&&(d[p(0x165)]=!![]);const e=pipe_1['Pipe'][p(0x163)](this[p(0x1a4)][p(0x184)],this[p(0x180)]),f=pipe_1['Pipe']['resolve'](this[p(0x1a4)][p(0x1a5)],this[p(0x180)]),g=[e+':'+f];return await this[p(0x17e)][p(0x16f)](this['config'][p(0x191)],c,d,g);}}function a(){const q=['topic','1953333ytvAHn','signal-collation-overage','1608Lfsgds','filterAdjacent','CollationError','adjacencyList','mapOutputData','mapRules','mapJobData','subtype','debug','appId','maps','10looHfn','GetStateError','metadata','jid','signal-collation-error','config','key_value','../collator','../mapper','notarizeEarlyCompletion','aid','GenerationalError','InactiveJobError','5gDmtpX','2151083fWVOBD','../telemetry','resolver','info','setActivityAttributes','__esModule','../pipe','resolve','mapSignalData','scrub','app.activity.mids','signal','signal-process-error','55272PsVWKm','MapperService','Pipe','code','Signal','process','hookAll','877540xNKBwX','process-event-generational-job-error','mapResolverData','411taQhYf','../../modules/errors','mapActivityAttributes','Activity','signal-get-state-error','transition','gid','logger','hookOne','setStatus','setState','engine','startActivitySpan','context','message','defineProperty','329WhuolL','key_name','signal-process','fault','signal-process-end','hook','error','status','12OTaWpB','2723412TrPfyT','680058iJVTIf','guid','exec','./activity'];a=function(){return q;};return a();}exports[k(0x16d)]=Signal;
@@ -1 +1 @@
1
- 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=-parseInt(k(0x1f5))/0x1*(parseInt(k(0x235))/0x2)+parseInt(k(0x222))/0x3+parseInt(k(0x1f2))/0x4*(-parseInt(k(0x23c))/0x5)+-parseInt(k(0x23b))/0x6*(-parseInt(k(0x22b))/0x7)+-parseInt(k(0x232))/0x8*(-parseInt(k(0x247))/0x9)+-parseInt(k(0x21f))/0xa*(-parseInt(k(0x1fb))/0xb)+parseInt(k(0x20b))/0xc*(-parseInt(k(0x213))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xf410e));Object['defineProperty'](exports,l(0x21e),{'value':!![]}),exports['Trigger']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require(l(0x1e3)),collator_1=require('../collator'),pipe_1=require('../pipe'),reporter_1=require('../reporter'),serializer_1=require(l(0x1e1)),telemetry_1=require(l(0x208)),activity_1=require(l(0x23e));function b(c,d){const e=a();return b=function(f,g){f=f-0x1dd;let h=e[f];return h;},b(c,d);}class Trigger extends activity_1[l(0x240)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x23f)](c){const m=l;this['logger'][m(0x1e0)]('trigger-process',{'subscribes':this['config'][m(0x201)]});let d;try{this[m(0x209)](0x2),await this[m(0x211)](),d=new telemetry_1[(m(0x1f0))](this[m(0x22c)][m(0x1ed)],this[m(0x1fc)],this['metadata'],this[m(0x248)]),d[m(0x207)](),d[m(0x225)](this['leg']),this[m(0x1eb)](),this[m(0x231)]=await this[m(0x214)]();const e=this[m(0x1fd)](c,this[m(0x231)][m(0x1ef)]);await this[m(0x1ff)](e),await this['setStatus'](e),this[m(0x1ea)](c),this['bindMarkerData'](c);const f=this[m(0x23a)][m(0x241)]();await this['setState'](f),await this['setStats'](f);c?.['pending']&&await this[m(0x1fa)](c?.['pending'],f);await collator_1[m(0x1f7)][m(0x243)](this,this[m(0x248)][m(0x221)][m(0x220)],f),await f[m(0x218)](),this[m(0x1df)](),d[m(0x202)]();const g=Number(this[m(0x248)][m(0x221)]['js']);d[m(0x1e4)]({'app.job.jss':g});const h={'app.job.jss':g};return await this['transitionAndLogAdjacent'](c,g,h),d[m(0x246)](h),this['context'][m(0x221)][m(0x212)];}catch(i){d?.[m(0x1e7)](i[m(0x245)]);if(i instanceof errors_1[m(0x22f)]){await(0x0,utils_1[m(0x1e2)])(0x3e8);const j=await collator_1[m(0x1f7)][m(0x20a)](this,this[m(0x248)][m(0x221)][m(0x220)]);if(j){this[m(0x1f3)][m(0x21d)](m(0x217),{'job_id':i[m(0x1f1)],'guid':this[m(0x248)][m(0x221)][m(0x220)]});return;}this[m(0x1f3)][m(0x21b)](m(0x22d),{'job_id':i[m(0x1f1)],'guid':this['context'][m(0x221)]['guid']});}else this['logger']['error'](m(0x1e6),{'error':i});throw i;}finally{d?.[m(0x1f4)](),d?.[m(0x230)](),this[m(0x1f3)][m(0x1e0)]('trigger-process-end',{'subscribes':this[m(0x1fc)]['subscribes'],'jid':this[m(0x248)][m(0x221)][m(0x212)],'gid':this[m(0x248)][m(0x221)]['gid']});}}async[l(0x238)](c={},d,e){const n=l;if(isNaN(c['pending'])){const f=await this[n(0x244)](this[n(0x231)],d);f[n(0x1ef)]&&(e['app.activity.mids']=f[n(0x1ec)](','));}}[l(0x1fd)](c={},d){const o=l;if(c[o(0x1de)])return-0x1;return d;}async[l(0x1fa)](c,d){const p=l;await this['store'][p(0x236)](this[p(0x248)][p(0x221)][p(0x212)],c,d);}['safeKey'](c){return'_'+c;}[l(0x1ea)](c){const q=l;c?.[q(0x22e)]&&Object[q(0x237)](c[q(0x22e)])[q(0x226)](d=>{const r=q;this[r(0x248)][r(0x239)][this['safeKey'](d)]=c['search'][d][r(0x203)]();});}[l(0x23d)](c){const s=l;c?.['marker']&&Object[s(0x237)](c[s(0x219)])[s(0x226)](d=>{const t=s;d[t(0x1e5)]('-')&&(this['context'][t(0x239)][d]=c['marker'][d][t(0x203)]());});}async['setStatus'](c){const u=l;this[u(0x248)][u(0x221)]['js']=c;}async[l(0x1df)](){const v=l;if(this[v(0x248)][v(0x221)]['px']){const c=(0x0,utils_1[v(0x228)])(new Date()),d={'metadata':this[v(0x248)][v(0x221)],'data':{'job_id':this[v(0x248)][v(0x221)][v(0x212)],'jc':c,'ju':c}};await this[v(0x22c)][v(0x1df)](this[v(0x248)],d);}}[l(0x204)](){const w=l,c={[this['metadata']['aid']]:{'input':{'data':this['data']}},'$self':{'input':{'data':this[w(0x239)]},'output':{'data':this[w(0x239)]}}};return c;}async['getState'](){const x=l,c=this['createInputContext'](),d=this[x(0x233)](c),e=this[x(0x206)](c),f=(0x0,utils_1['formatISODate'])(new Date()),{id:g,version:h}=await this[x(0x22c)][x(0x20c)]();this[x(0x234)](collator_1[x(0x1f7)]['getDimensionalSeed']());const i={...this['metadata'],'jid':d,'key':e,'as':collator_1[x(0x1f7)][x(0x1f6)]()};this['context']={'metadata':{...this[x(0x221)],'gid':(0x0,utils_1[x(0x220)])(),'ngn':this[x(0x248)][x(0x221)][x(0x210)],'pj':this[x(0x248)][x(0x221)]['pj'],'pg':this['context']['metadata']['pg'],'pd':this[x(0x248)][x(0x221)]['pd'],'pa':this[x(0x248)][x(0x221)]['pa'],'px':this[x(0x248)][x(0x221)]['px'],'app':g,'vrs':h,'tpc':this[x(0x1fc)]['subscribes'],'trc':this[x(0x248)][x(0x221)]['trc'],'spn':this[x(0x248)]['metadata'][x(0x227)],'guid':this[x(0x248)][x(0x221)]['guid'],'jid':d,'dad':collator_1[x(0x1f7)][x(0x20e)](),'key':e,'jc':f,'ju':f,'ts':(0x0,utils_1[x(0x1ee)])(this['resolveGranularity']()),'js':0x0},'data':{},[this[x(0x221)]['aid']]:{'input':{'data':this['data'],'metadata':i},'output':{'data':this[x(0x239)],'metadata':i},'settings':{'data':{}},'errors':{'data':{}}}},this[x(0x248)]['$self']=this['context'][this[x(0x221)]['aid']],this[x(0x248)][x(0x21c)]=this['context'];}[l(0x1dd)](){const y=l;return serializer_1['MDATA_SYMBOLS'][y(0x21a)][y(0x242)][y(0x1f9)](c=>y(0x20f)+c);}[l(0x1fe)](){const z=l;return serializer_1[z(0x215)][z(0x224)][z(0x242)][z(0x1f9)](c=>'output/metadata/'+c);}[l(0x1e8)](){const A=l;return this[A(0x1fc)][A(0x205)]?.[A(0x223)]||reporter_1[A(0x22a)]['DEFAULT_GRANULARITY'];}['getJobStatus'](){const B=l;return this[B(0x248)][B(0x221)]['js'];}['resolveJobId'](c){const C=l,d=this[C(0x1fc)][C(0x205)]?.['id'];return d?pipe_1[C(0x229)][C(0x216)](d,c):(0x0,utils_1[C(0x220)])();}[l(0x206)](c){const D=l,d=this[D(0x1fc)]['stats']?.[D(0x20d)];return d?pipe_1[D(0x229)][D(0x216)](d,c):'';}async['setStateNX'](c){const E=l,d=this[E(0x248)][E(0x221)]['jid'];if(!await this['store'][E(0x1ff)](d,this[E(0x22c)][E(0x1ed)],c))throw new errors_1[(E(0x22f))](d);}async[l(0x1e9)](c){const F=l,d=this[F(0x248)][F(0x221)];if(d['key']&&this[F(0x1fc)][F(0x205)]?.[F(0x1f8)]){const e=await this[F(0x22c)][F(0x20c)](),f=new reporter_1[(F(0x22a))](e,this[F(0x23a)],this[F(0x1f3)]);await this['store'][F(0x1e9)](d[F(0x20d)],d[F(0x212)],d['ts'],f[F(0x249)](this[F(0x1fc)],this[F(0x248)]),e,c);}}}function a(){const G=['createInputContext','stats','resolveJobKey','startJobSpan','../telemetry','setLeg','isInceptionOverage','12371604roIiLu','getVID','key','getDimensionalSeed','metadata/','ngn','getState','jid','13urUZrE','filterAdjacent','MDATA_SYMBOLS','resolve','trigger-collation-overage','exec','marker','JOB','error','$job','info','__esModule','19062210KsbUxx','guid','metadata','5738385FrYpaZ','granularity','ACTIVITY','startActivitySpan','forEach','spn','formatISODate','Pipe','ReporterService','1841npdqOA','engine','duplicate-job-error','search','DuplicateJobError','endActivitySpan','adjacencyList','32lorrqI','resolveJobId','initDimensionalAddress','4wKNOju','expireJob','keys','transitionAndLogAdjacent','data','store','19746wPEogm','5OslRJI','bindMarkerData','./activity','process','Activity','transact','KEYS','notarizeInception','transition','message','setActivityAttributes','158967iErHem','context','resolveTriggerStatistics','bindJobMetadataPaths','pending','execAdjacentParent','debug','../serializer','sleepFor','../../modules/utils','setJobAttributes','startsWith','trigger-process-error','setActivityError','resolveGranularity','setStats','bindSearchData','mapJobData','join','appId','getTimeSeries','length','TelemetryService','jobId','3958856IJMaUF','logger','endJobSpan','867413kSQtun','getTriggerSeed','CollatorService','measures','map','setExpired','11UzmaOr','config','initStatus','bindActivityMetadataPaths','setStateNX','Trigger','subscribes','mapActivityAttributes','toString'];a=function(){return G;};return a();}exports[l(0x200)]=Trigger;
1
+ 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x1d1))/0x1+parseInt(k(0x1c2))/0x2*(-parseInt(k(0x193))/0x3)+-parseInt(k(0x1c1))/0x4*(parseInt(k(0x1a0))/0x5)+parseInt(k(0x1c6))/0x6+-parseInt(k(0x1c4))/0x7*(-parseInt(k(0x1af))/0x8)+parseInt(k(0x182))/0x9*(-parseInt(k(0x179))/0xa)+parseInt(k(0x1ab))/0xb*(parseInt(k(0x1bf))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xf3c73));Object[l(0x19e)](exports,l(0x1bd),{'value':!![]}),exports[l(0x17b)]=void 0x0;const errors_1=require(l(0x1c0)),utils_1=require(l(0x194)),collator_1=require(l(0x1c3)),pipe_1=require(l(0x19a)),reporter_1=require(l(0x1e7)),serializer_1=require(l(0x17d)),telemetry_1=require(l(0x195)),activity_1=require(l(0x18c));class Trigger extends activity_1[l(0x1a4)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x1dd)](c){const m=l;this['logger'][m(0x1ce)](m(0x1e5),{'subscribes':this['config']['subscribes']});let d;try{this[m(0x19d)](0x2),await this[m(0x190)](),d=new telemetry_1['TelemetryService'](this[m(0x1dc)][m(0x1d4)],this[m(0x1cb)],this[m(0x181)],this[m(0x1e3)]),d['startJobSpan'](),d['startActivitySpan'](this['leg']),this[m(0x1c8)](),this[m(0x1b3)]=await this[m(0x1cc)]();const e=this[m(0x1aa)](c,this['adjacencyList'][m(0x1cf)]);await this[m(0x18d)](e),await this['setStatus'](e),this[m(0x19f)](c),this[m(0x1b4)](c);const f=this[m(0x1b2)][m(0x1cd)]();await this[m(0x184)](f),await this[m(0x183)](f);c?.['pending']&&await this['setExpired'](c?.[m(0x1e2)],f);await collator_1[m(0x1ca)]['notarizeInception'](this,this['context']['metadata'][m(0x1e1)],f),await f[m(0x19b)](),this[m(0x1b8)](),d[m(0x1a3)]();const g=Number(this[m(0x1e3)][m(0x181)]['js']);d[m(0x1e6)]({'app.job.jss':g});const h={'app.job.jss':g};return await this[m(0x1a2)](c,g,h),d[m(0x186)](h),this[m(0x1e3)][m(0x181)][m(0x1df)];}catch(i){d?.[m(0x198)](i['message']);if(i instanceof errors_1[m(0x1c9)]){await(0x0,utils_1[m(0x18a)])(0x3e8);const j=await collator_1[m(0x1ca)]['isInceptionOverage'](this,this[m(0x1e3)]['metadata'][m(0x1e1)]);if(j){this[m(0x199)]['info'](m(0x1c5),{'job_id':i[m(0x18e)],'guid':this[m(0x1e3)]['metadata'][m(0x1e1)]});return;}this[m(0x199)][m(0x1da)](m(0x1d9),{'job_id':i[m(0x18e)],'guid':this[m(0x1e3)][m(0x181)][m(0x1e1)]});}else this[m(0x199)][m(0x1da)](m(0x1de),{'error':i});throw i;}finally{d?.[m(0x1ba)](),d?.[m(0x1d2)](),this[m(0x199)][m(0x1ce)]('trigger-process-end',{'subscribes':this[m(0x1cb)][m(0x1e4)],'jid':this[m(0x1e3)][m(0x181)][m(0x1df)],'gid':this[m(0x1e3)]['metadata'][m(0x17c)]});}}async['transitionAndLogAdjacent'](c={},d,e){const n=l;if(isNaN(c[n(0x1e2)])){const f=await this[n(0x1b9)](this['adjacencyList'],d);f[n(0x1cf)]&&(e[n(0x1a9)]=f[n(0x1d0)](','));}}[l(0x1aa)](c={},d){const o=l;if(c[o(0x1e2)])return-0x1;return d;}async[l(0x1b7)](c,d){const p=l;await this[p(0x1b2)][p(0x1ac)](this['context'][p(0x181)][p(0x1df)],c,d);}[l(0x176)](c){return'_'+c;}[l(0x19f)](c){const q=l;c?.[q(0x1bb)]&&Object[q(0x1a8)](c[q(0x1bb)])[q(0x1b0)](d=>{const r=q;this['context'][r(0x18f)][this[r(0x176)](d)]=c[r(0x1bb)][d][r(0x192)]();});}[l(0x1b4)](c){const s=l;c?.['marker']&&Object['keys'](c['marker'])[s(0x1b0)](d=>{const t=s;d[t(0x1ae)]('-')&&(this[t(0x1e3)]['data'][d]=c['marker'][d][t(0x192)]());});}async['setStatus'](c){const u=l;this[u(0x1e3)][u(0x181)]['js']=c;}async[l(0x1b8)](){const v=l;if(this[v(0x1e3)][v(0x181)]['px']){const c=(0x0,utils_1['formatISODate'])(new Date()),d={'metadata':this['context'][v(0x181)],'data':{'job_id':this[v(0x1e3)][v(0x181)]['jid'],'jc':c,'ju':c}};await this[v(0x1dc)][v(0x1b8)](this[v(0x1e3)],d);}}[l(0x1c7)](){const w=l,c={[this[w(0x181)][w(0x17f)]]:{'input':{'data':this[w(0x18f)]}},'$self':{'input':{'data':this['data']},'output':{'data':this[w(0x18f)]}}};return c;}async[l(0x190)](){const x=l,c=this[x(0x1c7)](),d=this['resolveJobId'](c),e=this[x(0x1bc)](c),f=(0x0,utils_1[x(0x177)])(new Date()),{id:g,version:h}=await this[x(0x1dc)][x(0x1b1)]();this[x(0x1a5)](collator_1[x(0x1ca)][x(0x1d7)]());const i={...this[x(0x181)],'jid':d,'key':e,'as':collator_1[x(0x1ca)][x(0x1db)]()};this[x(0x1e3)]={'metadata':{...this[x(0x181)],'gid':(0x0,utils_1[x(0x1e1)])(),'ngn':this[x(0x1e3)][x(0x181)][x(0x189)],'pj':this['context'][x(0x181)]['pj'],'pg':this['context']['metadata']['pg'],'pd':this['context'][x(0x181)]['pd'],'pa':this[x(0x1e3)][x(0x181)]['pa'],'px':this[x(0x1e3)][x(0x181)]['px'],'app':g,'vrs':h,'tpc':this[x(0x1cb)][x(0x1e4)],'trc':this[x(0x1e3)]['metadata'][x(0x185)],'spn':this['context'][x(0x181)][x(0x188)],'guid':this['context'][x(0x181)][x(0x1e1)],'jid':d,'dad':collator_1[x(0x1ca)][x(0x1d7)](),'key':e,'jc':f,'ju':f,'ts':(0x0,utils_1[x(0x178)])(this[x(0x1d6)]()),'js':0x0},'data':{},[this[x(0x181)]['aid']]:{'input':{'data':this[x(0x18f)],'metadata':i},'output':{'data':this[x(0x18f)],'metadata':i},'settings':{'data':{}},'errors':{'data':{}}}},this[x(0x1e3)][x(0x1a1)]=this['context'][this[x(0x181)][x(0x17f)]],this['context'][x(0x18b)]=this[x(0x1e3)];}['bindJobMetadataPaths'](){const y=l;return serializer_1[y(0x1d8)][y(0x1e0)][y(0x1ad)][y(0x187)](c=>y(0x180)+c);}[l(0x19c)](){const z=l;return serializer_1[z(0x1d8)][z(0x1b6)][z(0x1ad)]['map'](c=>z(0x17e)+c);}[l(0x1d6)](){const A=l;return this[A(0x1cb)][A(0x1a7)]?.[A(0x1a6)]||reporter_1['ReporterService'][A(0x1d3)];}[l(0x17a)](){const B=l;return this[B(0x1e3)][B(0x181)]['js'];}[l(0x196)](c){const C=l,d=this[C(0x1cb)][C(0x1a7)]?.['id'];return d?pipe_1['Pipe']['resolve'](d,c):(0x0,utils_1[C(0x1e1)])();}['resolveJobKey'](c){const D=l,d=this[D(0x1cb)][D(0x1a7)]?.[D(0x1b5)];return d?pipe_1[D(0x197)][D(0x1d5)](d,c):'';}async[l(0x18d)](c){const E=l,d=this[E(0x1e3)][E(0x181)][E(0x1df)];if(!await this[E(0x1b2)]['setStateNX'](d,this['engine'][E(0x1d4)],c))throw new errors_1['DuplicateJobError'](d);}async[l(0x183)](c){const F=l,d=this[F(0x1e3)][F(0x181)];if(d[F(0x1b5)]&&this[F(0x1cb)][F(0x1a7)]?.['measures']){const e=await this[F(0x1dc)][F(0x1b1)](),f=new reporter_1[(F(0x1be))](e,this[F(0x1b2)],this[F(0x199)]);await this[F(0x1b2)]['setStats'](d['key'],d[F(0x1df)],d['ts'],f[F(0x191)](this[F(0x1cb)],this['context']),e,c);}}}exports['Trigger']=Trigger;function b(c,d){const e=a();return b=function(f,g){f=f-0x176;let h=e[f];return h;},b(c,d);}function a(){const G=['resolveJobId','Pipe','setActivityError','logger','../pipe','exec','bindActivityMetadataPaths','setLeg','defineProperty','bindSearchData','5sdNsaA','$self','transitionAndLogAdjacent','mapActivityAttributes','Activity','initDimensionalAddress','granularity','stats','keys','app.activity.mids','initStatus','17038571AxwCbl','expireJob','KEYS','startsWith','5512nUdAZr','forEach','getVID','store','adjacencyList','bindMarkerData','key','ACTIVITY','setExpired','execAdjacentParent','transition','endJobSpan','search','resolveJobKey','__esModule','ReporterService','24dXcfdl','../../modules/errors','4048416wVOxUh','2bSIOED','../collator','434RDpITF','trigger-collation-overage','2101200prrbvM','createInputContext','mapJobData','DuplicateJobError','CollatorService','config','filterAdjacent','transact','debug','length','join','679669gjcSjR','endActivitySpan','DEFAULT_GRANULARITY','appId','resolve','resolveGranularity','getDimensionalSeed','MDATA_SYMBOLS','duplicate-job-error','error','getTriggerSeed','engine','process','trigger-process-error','jid','JOB','guid','pending','context','subscribes','trigger-process','setJobAttributes','../reporter','safeKey','formatISODate','getTimeSeries','618450ZZDUTH','getJobStatus','Trigger','gid','../serializer','output/metadata/','aid','metadata/','metadata','45bxVHym','setStats','setState','trc','setActivityAttributes','map','spn','ngn','sleepFor','$job','./activity','setStateNX','jobId','data','getState','resolveTriggerStatistics','toString','5551995JfXUxZ','../../modules/utils','../telemetry'];a=function(){return G;};return a();}
@@ -1 +1 @@
1
- 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x142))/0x1+-parseInt(i(0x143))/0x2+parseInt(i(0x154))/0x3*(parseInt(i(0x129))/0x4)+-parseInt(i(0x12e))/0x5+parseInt(i(0x152))/0x6+-parseInt(i(0x155))/0x7+parseInt(i(0x13c))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xe54f3));Object[j(0x14d)](exports,j(0x164),{'value':!![]}),exports[j(0x134)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x123;let h=e[f];return h;},b(c,d);}const errors_1=require(j(0x12d)),utils_1=require('../../modules/utils'),collator_1=require(j(0x15d)),pipe_1=require(j(0x127)),telemetry_1=require(j(0x135)),activity_1=require('./activity');function a(){const m=['policies','router','message','process-event-generational-job-error','__esModule','leg','store','config','error','../pipe','process','40364hAxmCs','startActivitySpan','output','exec','../../modules/errors','2298775rHcJDw','worker-collation-overage','InactiveJobError','appId','duplicate','worker-process','Worker','../telemetry','transact','Activity','retry','dad','CollationError','setActivityError','9227392YCnXjR','jid','endActivitySpan','gid','GetStateError','setState','576613yYrBRg','3135790SOQXYZ','fault','publishMessage','resolveStatus','trc','aid','resolve','worker-process-error','logger','TelemetryService','defineProperty','Pipe','CollatorService','engine','metadata','9534996ScARRW','l1s','411lhJuQb','4070801JLyOLy','debug','setActivityAttributes','authorizeReentry','context','execActivity','worker-get-state-error','worker-process-end','../collator','info','guid'];a=function(){return m;};return a();}class Worker extends activity_1[j(0x137)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x128)](){const k=j;this['logger'][k(0x156)](k(0x133),{'jid':this[k(0x159)]['metadata'][k(0x13d)],'gid':this[k(0x159)][k(0x151)][k(0x13f)],'aid':this[k(0x151)][k(0x148)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x14c))](this['engine'][k(0x131)],this[k(0x125)],this[k(0x151)],this[k(0x159)]),c[k(0x12a)](this[k(0x123)]),this['mapInputData']();const d=this[k(0x124)][k(0x136)](),e=await this[k(0x15a)](d);await collator_1[k(0x14f)][k(0x158)](this,d),await this[k(0x141)](d),await this['setStatus'](0x0,d);const f=await d[k(0x12c)]();c['mapActivityAttributes']();const g=this[k(0x146)](f);return c[k(0x157)]({'app.activity.mid':e,'app.job.jss':g}),this[k(0x159)]['metadata']['aid'];}catch(h){if(h instanceof errors_1[k(0x130)]){this['logger'][k(0x126)]('await-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1['GenerationalError']){this['logger'][k(0x15e)](k(0x163),{'error':h});return;}else{if(h instanceof errors_1[k(0x140)]){this[k(0x14b)][k(0x126)](k(0x15b),{'error':h});return;}else{if(h instanceof errors_1[k(0x13a)]){if(h[k(0x144)]===k(0x132)){this[k(0x14b)][k(0x15e)](k(0x12f),{'job_id':this['context']['metadata'][k(0x13d)],'guid':this[k(0x159)][k(0x151)][k(0x15f)]});return;}this[k(0x14b)][k(0x126)]('worker-collation-error',{'error':h});}else this[k(0x14b)]['error'](k(0x14a),{'error':h});}}}c?.[k(0x13b)](h[k(0x162)]);throw h;}finally{c?.[k(0x13e)](),this['logger']['debug'](k(0x15c),{'jid':this[k(0x159)][k(0x151)][k(0x13d)],'gid':this[k(0x159)][k(0x151)]['gid'],'aid':this[k(0x151)][k(0x148)]});}}async[j(0x15a)](c){const l=j,d=pipe_1[l(0x14e)][l(0x149)](this['config']['subtype'],this['context']),e={'metadata':{'guid':(0x0,utils_1[l(0x15f)])(),'jid':this[l(0x159)][l(0x151)][l(0x13d)],'gid':this[l(0x159)]['metadata']['gid'],'dad':this[l(0x151)][l(0x139)],'aid':this[l(0x151)][l(0x148)],'topic':d,'spn':this[l(0x159)]['$self'][l(0x12b)][l(0x151)][l(0x153)],'trc':this[l(0x159)][l(0x151)][l(0x147)]},'data':this[l(0x159)]['data']};return this[l(0x125)][l(0x138)]&&(e[l(0x160)]={'retry':this[l(0x125)]['retry']}),await this[l(0x150)][l(0x161)]?.[l(0x145)](d,e,c);}}exports['Worker']=Worker;
1
+ 'use strict';const j=b;function b(c,d){const e=a();return b=function(f,g){f=f-0x104;let h=e[f];return h;},b(c,d);}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x138))/0x1*(parseInt(i(0x125))/0x2)+parseInt(i(0x116))/0x3*(-parseInt(i(0x10a))/0x4)+parseInt(i(0x10c))/0x5+parseInt(i(0x10d))/0x6+parseInt(i(0x11a))/0x7*(parseInt(i(0x128))/0x8)+parseInt(i(0x13e))/0x9*(-parseInt(i(0x131))/0xa)+parseInt(i(0x111))/0xb*(parseInt(i(0x12d))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x2f243));Object[j(0x135)](exports,'__esModule',{'value':!![]}),exports['Worker']=void 0x0;const errors_1=require(j(0x10e)),utils_1=require('../../modules/utils'),collator_1=require(j(0x118)),pipe_1=require(j(0x108)),telemetry_1=require('../telemetry'),activity_1=require(j(0x12e));class Worker extends activity_1[j(0x143)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x11d)](){const k=j;this[k(0x11b)][k(0x139)](k(0x126),{'jid':this[k(0x10b)][k(0x120)][k(0x137)],'gid':this[k(0x10b)][k(0x120)]['gid'],'aid':this[k(0x120)][k(0x132)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x140))](this[k(0x11e)]['appId'],this['config'],this[k(0x120)],this[k(0x10b)]),c[k(0x119)](this[k(0x133)]),this[k(0x109)]();const d=this[k(0x134)][k(0x12b)](),e=await this[k(0x127)](d);await collator_1['CollatorService']['authorizeReentry'](this,d),await this[k(0x142)](d),await this[k(0x129)](0x0,d);const f=await d['exec']();c[k(0x106)]();const g=this[k(0x130)](f);return c[k(0x141)]({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0x120)][k(0x132)];}catch(h){if(h instanceof errors_1[k(0x107)]){this['logger'][k(0x122)]('await-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x12f)]){this[k(0x11b)][k(0x13f)]('process-event-generational-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x115)]){this[k(0x11b)]['error'](k(0x10f),{'error':h});return;}else{if(h instanceof errors_1[k(0x123)]){if(h[k(0x114)]==='duplicate'){this[k(0x11b)][k(0x13f)](k(0x11f),{'job_id':this[k(0x10b)][k(0x120)]['jid'],'guid':this[k(0x10b)]['metadata'][k(0x112)]});return;}this[k(0x11b)]['error']('worker-collation-error',{'error':h});}else this['logger']['error'](k(0x110),{'error':h});}}}c?.['setActivityError'](h[k(0x124)]);throw h;}finally{c?.[k(0x12a)](),this['logger']['debug'](k(0x113),{'jid':this[k(0x10b)]['metadata']['jid'],'gid':this[k(0x10b)][k(0x120)]['gid'],'aid':this[k(0x120)][k(0x132)]});}}async['execActivity'](c){const l=j,d=pipe_1[l(0x136)][l(0x13a)](this['config']['subtype'],this[l(0x10b)]),e={'metadata':{'guid':(0x0,utils_1[l(0x112)])(),'jid':this[l(0x10b)][l(0x120)][l(0x137)],'gid':this[l(0x10b)]['metadata']['gid'],'dad':this[l(0x120)]['dad'],'aid':this[l(0x120)][l(0x132)],'topic':d,'spn':this[l(0x10b)][l(0x144)][l(0x104)][l(0x120)][l(0x13c)],'trc':this[l(0x10b)]['metadata']['trc']},'data':this[l(0x10b)][l(0x12c)]};return this[l(0x121)][l(0x105)]&&(e[l(0x13b)]={'retry':this[l(0x121)][l(0x105)]}),await this[l(0x11e)][l(0x11c)]?.[l(0x117)](d,e,c);}}function a(){const m=['8854rxkoxd','worker-process','execActivity','8iLsRMx','setStatus','endActivitySpan','transact','data','12eeHyqW','./activity','GenerationalError','resolveStatus','519310rbDHUo','aid','leg','store','defineProperty','Pipe','jid','81mEJbJD','debug','resolve','policies','l1s','Worker','9dROZBG','info','TelemetryService','setActivityAttributes','setState','Activity','$self','output','retry','mapActivityAttributes','InactiveJobError','../pipe','mapInputData','684iCLcLQ','context','1746490TpkrpG','2200506LiqikE','../../modules/errors','worker-get-state-error','worker-process-error','88396uBFSeL','guid','worker-process-end','fault','GetStateError','4881lHuozc','publishMessage','../collator','startActivitySpan','1104187hOrDsn','logger','router','process','engine','worker-collation-overage','metadata','config','error','CollationError','message'];a=function(){return m;};return a();}exports[j(0x13d)]=Worker;