@hotmeshio/hotmesh 0.3.26 → 0.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +1 -1
  2. package/build/modules/key.js +1 -1
  3. package/build/modules/utils.js +1 -1
  4. package/build/package.json +1 -1
  5. package/build/services/activities/activity.js +1 -1
  6. package/build/services/activities/await.js +1 -1
  7. package/build/services/activities/cycle.js +1 -1
  8. package/build/services/activities/hook.js +1 -1
  9. package/build/services/activities/index.js +1 -1
  10. package/build/services/activities/interrupt.js +1 -1
  11. package/build/services/activities/signal.js +1 -1
  12. package/build/services/activities/trigger.js +1 -1
  13. package/build/services/activities/worker.js +1 -1
  14. package/build/services/collator/index.js +1 -1
  15. package/build/services/compiler/deployer.js +1 -1
  16. package/build/services/compiler/index.js +1 -1
  17. package/build/services/compiler/validator.js +1 -1
  18. package/build/services/engine/index.js +1 -1
  19. package/build/services/exporter/index.js +1 -1
  20. package/build/services/mapper/index.js +1 -1
  21. package/build/services/meshflow/exporter.js +1 -1
  22. package/build/services/pipe/functions/array.js +1 -1
  23. package/build/services/pipe/functions/bitwise.js +1 -1
  24. package/build/services/pipe/functions/conditional.js +1 -1
  25. package/build/services/pipe/functions/cron.js +1 -1
  26. package/build/services/pipe/functions/date.js +1 -1
  27. package/build/services/pipe/functions/index.js +1 -1
  28. package/build/services/pipe/functions/json.js +1 -1
  29. package/build/services/pipe/functions/logical.js +1 -1
  30. package/build/services/pipe/functions/math.js +1 -1
  31. package/build/services/pipe/functions/number.js +1 -1
  32. package/build/services/pipe/functions/object.js +1 -1
  33. package/build/services/pipe/functions/string.js +1 -1
  34. package/build/services/pipe/functions/symbol.js +1 -1
  35. package/build/services/pipe/functions/unary.js +1 -1
  36. package/build/services/pipe/index.js +1 -1
  37. package/build/services/quorum/index.js +1 -1
  38. package/build/services/reporter/index.js +1 -1
  39. package/build/services/router/index.js +1 -1
  40. package/build/services/search/providers/postgres/postgres.js +1 -1
  41. package/build/services/search/providers/redis/ioredis.js +1 -1
  42. package/build/services/search/providers/redis/redis.js +1 -1
  43. package/build/services/serializer/index.js +1 -1
  44. package/build/services/store/providers/postgres/kvsql.js +1 -1
  45. package/build/services/store/providers/postgres/kvtables.js +1 -1
  46. package/build/services/store/providers/postgres/kvtransaction.js +1 -1
  47. package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
  48. package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
  49. package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
  50. package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
  51. package/build/services/store/providers/postgres/postgres.js +1 -1
  52. package/build/services/store/providers/redis/_base.js +1 -1
  53. package/build/services/store/providers/redis/ioredis.js +1 -1
  54. package/build/services/store/providers/redis/redis.js +1 -1
  55. package/build/services/store/providers/store-initializable.js +1 -1
  56. package/build/services/stream/providers/nats/nats.js +1 -1
  57. package/build/services/stream/providers/postgres/kvtables.d.ts +2 -0
  58. package/build/services/stream/providers/postgres/kvtables.js +1 -0
  59. package/build/services/stream/providers/postgres/postgres.d.ts +2 -8
  60. package/build/services/stream/providers/postgres/postgres.js +1 -1
  61. package/build/services/stream/providers/redis/ioredis.js +1 -1
  62. package/build/services/stream/providers/redis/redis.js +1 -1
  63. package/build/services/stream/providers/stream-initializable.js +1 -1
  64. package/build/services/sub/providers/nats/nats.js +1 -1
  65. package/build/services/sub/providers/postgres/postgres.js +1 -1
  66. package/build/services/sub/providers/redis/ioredis.js +1 -1
  67. package/build/services/sub/providers/redis/redis.js +1 -1
  68. package/build/services/task/index.js +1 -1
  69. package/build/services/telemetry/index.d.ts +1 -1
  70. package/build/services/telemetry/index.js +1 -1
  71. package/build/services/worker/index.js +1 -1
  72. package/package.json +1 -1
package/README.md CHANGED
@@ -787,7 +787,7 @@ const PostgresPoolClient = new PostgresPool({
787
787
  //provide these credentials to HotMesh
788
788
  const connection = {
789
789
  class: PostgresPoolClient,
790
- options: {}
790
+ options: {},
791
791
  };
792
792
  ```
793
793
 
@@ -1 +1 @@
1
- 'use strict';function a(){const p=[':t:','THROTTLE_RATE','../types/hotmesh','189717eQVmNd','engineId','802bxvLOR',':j:','KeyType','mintKey','jobId',':transitions',':v:',':sym:keys:','2250EJcVSx',':d:','QUORUM','applications',':q:','jobKey','reconstituteKey','KeyService','6015472Tmprfv','hmsh',':r:','JOB_STATE','HOOKS','TIME_RANGE','versions','JOB_STATS_INDEX','sym','stream_topics','hooks',':x:','dateTime','SIGNALS','__esModule','STREAMS','task_lists','5613472YpEopX','9wQxbYn','task_schedules','TYPSEP','559972yAPwpQ','resolveEntityType',':hooks','APP','resolveAbbreviation','roles','symbols',':signals','WEBSEP','activityId','1724HemDwD','SYMKEYS','JOB_STATS_GENERAL','KEYSEP',':sym:vals:','join','jobs','defineProperty','signal_patterns','signal_registry','events','HMNS','stats','throttles','VALSEP','4121973WOKBGw','facet',':s:',':schemas','signals','appVersion','appId','scoutType','streams','task_priorities','6357205ocDBHG','timeValue',':w:','topic','78gUGdaV'];a=function(){return p;};return a();}const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0xcf))/0x1*(-parseInt(i(0xf2))/0x2)+-parseInt(i(0xde))/0x3+-parseInt(i(0xc1))/0x4+-parseInt(i(0xe8))/0x5+parseInt(i(0xec))/0x6*(parseInt(i(0xc5))/0x7)+-parseInt(i(0x102))/0x8*(parseInt(i(0xc2))/0x9)+parseInt(i(0xfa))/0xa*(parseInt(i(0xf0))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc6069));Object[j(0xd6)](exports,j(0xbe),{'value':!![]}),exports[j(0xdd)]=exports[j(0xcd)]=exports[j(0xc4)]=exports[j(0xd2)]=exports[j(0xda)]=exports[j(0xf4)]=exports['KeyService']=void 0x0;const hotmesh_1=require(j(0xef));Object[j(0xd6)](exports,j(0xf4),{'enumerable':!![],'get':function(){const k=j;return hotmesh_1[k(0xf4)];}});const HMNS=j(0xb1);exports[j(0xda)]=HMNS;const KEYSEP=':';exports['KEYSEP']=KEYSEP;const VALSEP='::';exports['VALSEP']=VALSEP;const WEBSEP='::';exports[j(0xcd)]=WEBSEP;const TYPSEP='::';exports[j(0xc4)]=TYPSEP;function b(c,d){const e=a();return b=function(f,g){f=f-0xb1;let h=e[f];return h;},b(c,d);}class KeyService{static[j(0xf5)](c,d,e){const l=j;switch(d){case hotmesh_1['KeyType']['HOTMESH']:return c;case hotmesh_1[l(0xf4)][l(0xee)]:return c+':'+e[l(0xe4)]+l(0xb2);case hotmesh_1[l(0xf4)]['WORK_ITEMS']:return c+':'+e[l(0xe4)]+l(0xea)+(e[l(0xe5)]||'');case hotmesh_1[l(0xf4)][l(0xb5)]:return c+':'+e['appId']+l(0xed)+(e[l(0xe9)]||'');case hotmesh_1[l(0xf4)][l(0xc8)]:return c+':a:'+(e['appId']||'');case hotmesh_1['KeyType'][l(0xfc)]:return c+':'+e[l(0xe4)]+l(0xfe)+(e[l(0xf1)]||'');case hotmesh_1['KeyType'][l(0xb3)]:return c+':'+e[l(0xe4)]+l(0xf3)+e[l(0xf6)];case hotmesh_1[l(0xf4)]['JOB_DEPENDENTS']:return c+':'+e[l(0xe4)]+l(0xfb)+e[l(0xf6)];case hotmesh_1['KeyType'][l(0xd1)]:return c+':'+e[l(0xe4)]+l(0xe0)+e[l(0xff)]+':'+e[l(0xbc)];case hotmesh_1[l(0xf4)]['JOB_STATS_MEDIAN']:return c+':'+e[l(0xe4)]+l(0xe0)+e[l(0xff)]+':'+e[l(0xbc)]+':'+e[l(0xdf)];case hotmesh_1[l(0xf4)][l(0xb7)]:return c+':'+e[l(0xe4)]+l(0xe0)+e['jobKey']+':'+e[l(0xbc)]+':'+e[l(0xdf)];case hotmesh_1['KeyType']['SCHEMAS']:return c+':'+e['appId']+l(0xf8)+e[l(0xe3)]+l(0xe1);case hotmesh_1[l(0xf4)]['SUBSCRIPTIONS']:return c+':'+e[l(0xe4)]+':v:'+e[l(0xe3)]+':subscriptions';case hotmesh_1[l(0xf4)]['SUBSCRIPTION_PATTERNS']:return c+':'+e[l(0xe4)]+':v:'+e[l(0xe3)]+l(0xf7);case hotmesh_1[l(0xf4)][l(0xb4)]:return c+':'+e[l(0xe4)]+l(0xc7);case hotmesh_1['KeyType'][l(0xbd)]:return c+':'+e[l(0xe4)]+l(0xcc);case hotmesh_1[l(0xf4)][l(0xd0)]:return c+':'+e[l(0xe4)]+l(0xf9)+(e[l(0xce)]||'');case hotmesh_1[l(0xf4)]['SYMVALS']:return c+':'+e[l(0xe4)]+l(0xd3);case hotmesh_1[l(0xf4)][l(0xbf)]:return c+':'+(e[l(0xe4)]||'')+l(0xbb)+(e[l(0xeb)]||'');default:throw new Error('Invalid\x20key\x20type.');}}static['parseKey'](c){const m=j,[d,e,f,...g]=c['split'](KEYSEP),h=g[m(0xd4)](KEYSEP)||'';return{'namespace':d,'app':f==='a'?e:undefined,'entity':f,'id':h};}static[j(0x100)](c){const {namespace:d,app:e,entity:f,id:g}=c;return''+d+KEYSEP+e+KEYSEP+f+KEYSEP+(g||'');}static[j(0xc6)](c,d=''){const n=j;switch(c){case'a':return'applications';case'r':return n(0xdc);case'w':return d===''?n(0xe7):n(0xca);case't':return d===''?n(0xc3):n(0xc0);case'q':return n(0xd9);case'j':return n(0xd5);case's':return n(0xdb);case'v':return'versions';case'x':return d===''?'streams':n(0xb9);case'hooks':return n(0xd7);case n(0xe2):return'signal_registry';case n(0xb8):return n(0xcb);default:return'unknown_entity';}}static[j(0xc9)](c){const o=j;switch(c){case o(0xfd):return'a';case o(0xdc):return'r';case o(0xca):return'w';case'task_schedules':return't';case o(0xc0):return't';case'events':return'q';case'jobs':return'j';case o(0xdb):return's';case o(0xb6):return'v';case o(0xe6):return'x';case o(0xd7):return o(0xba);case o(0xd8):return o(0xe2);case o(0xcb):return o(0xb8);default:return'unknown_entity';}}}exports[j(0x101)]=KeyService;
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 +1 @@
1
- 'use strict';const o=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=-parseInt(n(0x228))/0x1*(-parseInt(n(0x20a))/0x2)+-parseInt(n(0x1e4))/0x3+parseInt(n(0x21c))/0x4*(parseInt(n(0x21f))/0x5)+parseInt(n(0x1e8))/0x6+-parseInt(n(0x1fb))/0x7+-parseInt(n(0x22d))/0x8*(-parseInt(n(0x216))/0x9)+parseInt(n(0x20b))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc66df));function a(){const O=['database','formatISODate','sha256','parseStreamMessage','getSubscriptions','3CgskHN','crypto','./enums','stringify','keys','8LoizbP','parse','Pipeline','hex','nanoid','postgres','getMinutes','toISOString','Commander','hashOptions','\x20GB','pow','totalCount','push','name','__importDefault','Query','__esModule','getIndexedHash','getTimeSeries','ioredis','abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','matchesStatusCode','sleepFor','test','isValidCron','includes','update','2273148zzlOZw','findSubscriptionForTrigger','utils','Redis','2434848JoIOro','getSubscriptionTopic','ProviderClient','identifyProvider','redis','toFixed','toLowerCase','split','Number\x20out\x20of\x20range','floor','nats','createClient','setUTCMinutes','defineProperty','toString','getTransitions','isStreamMessage','error','freemem','4717027oBEkcd','getSymKey','default','defineCommand','guid','isArray','connection','deterministicRandom','Multi','Error\x20parsing\x20Stream\x20message','findTopKey','length','getSymVal','infinity','Pool','447582aPyQOa','4029160xzKPZW','idleCount','hasOwnProperty','../services/logger','restoreHierarchy','sin','arrayToHash','deepCopy','string','constructor','LoggerService','4276962SlTaeX','multi','entries','digest','XSleepFor','getPrototypeOf','4VprVvV','createHash','matchesStatus','1445145kWQbzG','getValueByPath','replace','getSystemHealth'];a=function(){return O;};return a();}var __importDefault=this&&this[o(0x1d7)]||function(c){const p=o;return c&&c[p(0x1d9)]?c:{'default':c};};Object[o(0x1f5)](exports,o(0x1d9),{'value':!![]}),exports[o(0x211)]=exports[o(0x1f8)]=exports[o(0x226)]=exports['s']=exports[o(0x1e1)]=exports[o(0x20f)]=exports['getValueByPath']=exports[o(0x1da)]=exports[o(0x207)]=exports[o(0x1fc)]=exports[o(0x224)]=exports[o(0x1db)]=exports[o(0x1e9)]=exports[o(0x1e5)]=exports[o(0x205)]=exports[o(0x21e)]=exports[o(0x1de)]=exports['polyfill']=exports[o(0x1eb)]=exports[o(0x21a)]=exports['sleepImmediate']=exports[o(0x1df)]=exports[o(0x1ff)]=exports[o(0x202)]=exports[o(0x212)]=exports['getSystemHealth']=exports[o(0x1d1)]=void 0x0;const os_1=__importDefault(require('os')),crypto_1=require(o(0x229)),nanoid_1=require('nanoid'),ms_1=__importDefault(require('ms')),logger_1=require(o(0x20e)),enums_1=require(o(0x22a)),logger=new logger_1[(o(0x215))]('hotmesh',o(0x1e6)),hashOptions=c=>{const q=o,d=JSON['stringify'](c);return(0x0,crypto_1[q(0x21d)])(q(0x225))[q(0x1e3)](d)[q(0x219)](q(0x230));};exports[o(0x1d1)]=hashOptions;async function getSystemHealth(){const r=o,c=os_1[r(0x1fd)]['totalmem'](),d=os_1[r(0x1fd)][r(0x1fa)](),e=c-d,f={'TotalMemoryGB':(c/0x400/0x400/0x400)['toFixed'](0x2)+r(0x1d2),'FreeMemoryGB':(d/0x400/0x400/0x400)[r(0x1ed)](0x2)+r(0x1d2),'UsedMemoryGB':(e/0x400/0x400/0x400)['toFixed'](0x2)+r(0x1d2),'CPULoad':[],'NetworkStats':[]};return f;}exports[o(0x222)]=getSystemHealth;function deepCopy(c){const t=o;return JSON[t(0x22e)](JSON[t(0x22b)](c));}exports[o(0x212)]=deepCopy;function deterministicRandom(c){const u=o,d=Math[u(0x210)](c)*0x2710;return d-Math['floor'](d);}exports[o(0x202)]=deterministicRandom;function guid(c=enums_1['HMSH_GUID_SIZE']){const v=o;return'H'+(0x0,nanoid_1[v(0x231)])(c);}exports[o(0x1ff)]=guid;async function sleepFor(c){return new Promise(d=>setTimeout(d,c));}exports['sleepFor']=sleepFor;function sleepImmediate(){return new Promise(c=>setImmediate(c));}exports['sleepImmediate']=sleepImmediate;function XSleepFor(c){let d;const e=new Promise(f=>{d=setTimeout(f,c);});return{'promise':e,'timerId':d};}exports[o(0x21a)]=XSleepFor;function identifyProvider(c){const w=o,d=Object[w(0x21b)](c);if(c[w(0x1d8)]?.['prototype']||Object[w(0x22c)](c)[w(0x1e2)](w(0x223))||d['name']===w(0x209))return w(0x232);else{if(c[w(0x1f6)]()[w(0x1ee)]()[w(0x1e2)]('nats'))return w(0x1f2);else{if(w(0x1fe)in d||Object[w(0x22c)](d)[w(0x1e2)](w(0x217)))return'ioredis';else{if(Object[w(0x22c)](d)['includes'](w(0x203)))return w(0x1ec);}}}if(c[w(0x214)]){if(c[w(0x214)][w(0x1d6)]===w(0x1e7)||c[w(0x214)][w(0x1d6)]==='EventEmitter'){if('hset'in c)return'ioredis';}else{if(c['constructor']['name']===w(0x1ea)||c[w(0x214)][w(0x1d6)]===w(0x1d0)){if('HSET'in c)return w(0x1ec);}}}let e=null;if(Object[w(0x22c)](c)[w(0x1e2)](w(0x201))||!isNaN(c[w(0x1d4)])&&!isNaN(c[w(0x20c)]))e=w(0x232);else{if(Object['keys'](c)[w(0x1e2)](w(0x22f)))e=w(0x1dc);else{if(Object[w(0x22c)](c)[w(0x1e2)](w(0x1f3)))e=w(0x1ec);else d[w(0x214)][w(0x1f6)]()['includes']('NatsConnectionImpl')&&(e=w(0x1f2));}}return e;}exports['identifyProvider']=identifyProvider,exports['polyfill']={'providerConfig'(c){const x=o;return c?.[x(0x201)]??c?.[x(0x1ec)]??c?.['connections'];},'meshDataConfig'(c){const y=o;return{...c[y(0x201)]};}};function matchesStatusCode(c,d){const z=o;if(typeof d===z(0x213)){const e='^'+d['replace'](/\*/g,'\x5cd')+'$';return new RegExp(e)[z(0x1e0)](c['toString']());}return d[z(0x1e0)](c[z(0x1f6)]());}exports['matchesStatusCode']=matchesStatusCode;function matchesStatus(c,d){return c===d;}exports[o(0x21e)]=matchesStatus;function findTopKey(c,d){const A=o;for(const [e,f]of Object[A(0x218)](c)){if(f[A(0x20d)](d)){const g=findTopKey(c,e['replace'](/^\./,''));return(g||e)[A(0x221)](/^\./,'');}}return null;}exports[o(0x205)]=findTopKey;function findSubscriptionForTrigger(c,d){const B=o;for(const [e,f]of Object[B(0x218)](c)){if(f===d)return e;}return null;}exports[o(0x1e5)]=findSubscriptionForTrigger;async function getSubscriptionTopic(c,d,e){const C=o,f=await d[C(0x1f7)](e),g=await d[C(0x227)](e),h=findTopKey(f,c),i=findSubscriptionForTrigger(g,h);return i;}exports[o(0x1e9)]=getSubscriptionTopic;function getTimeSeries(c){const D=o;if(c[D(0x1f6)]()===D(0x208))return'0';const d=new Date(),e=c['slice'](-0x1),f=parseInt(c['slice'](0x0,-0x1),0xa);if(e==='m'){const g=Math[D(0x1f1)](d[D(0x1ce)]()/f)*f;d[D(0x1f4)](g,0x0,0x0);}else e==='h'&&d['setUTCMinutes'](0x0,0x0,0x0);return d[D(0x1cf)]()[D(0x221)](/:\d\d\..+|-|T/g,'')[D(0x221)](':','');}exports[o(0x1db)]=getTimeSeries;function formatISODate(c){const E=o,d=c instanceof Date?c:new Date(c);return d[E(0x1cf)]()[E(0x221)](/[:TZ-]/g,'');}exports[o(0x224)]=formatISODate;function getSymKey(c){const F=o,d=F(0x1dd),e=d['length'];if(c<0x0||c>=Math[F(0x1d3)](e,0x3))throw new Error(F(0x1f0));const [f,g]=divmod(c,e),[h,i]=divmod(f,e);return d[h]+d[g]+d[i];}exports[o(0x1fc)]=getSymKey;function getSymVal(c){const G=o,d=G(0x1dd),e=d[G(0x206)];if(c<0x0||c>=Math[G(0x1d3)](e,0x2))throw new Error(G(0x1f0));const [f,g]=divmod(c,e);return d[f]+d[g];}exports[o(0x207)]=getSymVal;function b(c,d){const e=a();return b=function(f,g){f=f-0x1ce;let h=e[f];return h;},b(c,d);}function divmod(c,d){const H=o;return[Math[H(0x1f1)](c/d),c%d];}function getIndexedHash(c,d){const e=c[d]||0x0,f={...c};return delete f[d],[e,f];}exports['getIndexedHash']=getIndexedHash;function getValueByPath(c,d){const I=o,e=d[I(0x1ef)]('/');let f=c;for(const g of e){if(f[g]!==undefined)f=f[g];else return undefined;}return f;}exports[o(0x220)]=getValueByPath;function restoreHierarchy(c){const J=o,d={};for(const e in c){if(c[e]===undefined)continue;const f=e[J(0x1ef)]('/');let g=d;for(let h=0x0;h<f[J(0x206)];h++){h===f['length']-0x1?g[f[h]]=c[e]:(g[f[h]]=g[f[h]]||{},g=g[f[h]]);}}return d;}exports[o(0x20f)]=restoreHierarchy;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(0x1e0)](c);}exports[o(0x1e1)]=isValidCron;const s=c=>{return(0x0,ms_1['default'])(c)/0x3e8;};exports['s']=s;const parseStreamMessage=c=>{const L=o;try{return JSON[L(0x22e)](c);}catch(d){logger[L(0x1f9)](L(0x204),{'error':d});throw d;}};exports[o(0x226)]=parseStreamMessage;const isStreamMessage=c=>{const M=o;return Array[M(0x200)](c)&&Array[M(0x200)](c[0x0]);};exports[o(0x1f8)]=isStreamMessage;const arrayToHash=c=>{const N=o,d=[];let e;for(let f=0x1;f<c[N(0x206)];f++){const g=c[f],h={};if(Array[N(0x200)](g)){for(let k=0x0;k<g[N(0x206)];k+=0x2){const l=g[k],m=g[k+0x1];h[l]=m;}e&&(h['$']=e),d[N(0x1d5)](h),e=undefined;}else e=g;}return d;};exports[o(0x211)]=arrayToHash;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
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(0xd8))/0x1+parseInt(o(0x8c))/0x2+parseInt(o(0xc5))/0x3+parseInt(o(0xcd))/0x4+-parseInt(o(0xfa))/0x5+parseInt(o(0x10f))/0x6+-parseInt(o(0xbd))/0x7*(parseInt(o(0xce))/0x8);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x4e05e));function b(c,d){const e=a();return b=function(f,g){f=f-0x87;let h=e[f];return h;},b(c,d);}Object[p(0x8b)](exports,p(0xed),{'value':!![]}),exports[p(0x113)]=void 0x0;const enums_1=require(p(0xec)),errors_1=require(p(0xe8)),utils_1=require(p(0xe7)),collator_1=require(p(0x110)),mapper_1=require(p(0xa6)),pipe_1=require('../pipe'),serializer_1=require(p(0xa5)),telemetry_1=require(p(0xf3)),stream_1=require(p(0xeb));class Activity{constructor(c,d,e,f,g,h){const q=p;this[q(0xd2)]=stream_1[q(0xac)][q(0x116)],this[q(0x8d)]=0xc8,this[q(0xb6)]=0x0,this[q(0xda)]=c,this[q(0x93)]=d,this[q(0x99)]=e,this[q(0xfd)]=f,this['engine']=g,this[q(0xd9)]=h||{'data':{},'metadata':{}},this[q(0xe1)]=g[q(0xe1)],this[q(0x101)]=g['store'];}[p(0x91)](c){const r=p;this[r(0xcc)]=c;}[p(0xa4)](){const s=p;if(this[s(0xda)][s(0x102)]!==undefined){const c=pipe_1['Pipe'][s(0xca)](this[s(0xda)][s(0x102)],this['context']);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async[p(0x104)](){const t=p;this[t(0x91)](0x1),await this[t(0xf6)]();const c=this['mapStatusThreshold']();try{collator_1['CollatorService']['assertJobActive'](this[t(0xd9)][t(0x99)]['js'],this['context'][t(0x99)][t(0xa7)],this['metadata']['aid'],c);}catch(d){await collator_1['CollatorService'][t(0xc2)](this);if(c>0x0){if(this[t(0xd9)][t(0x99)]['js']===c){const e=await this[t(0x8f)](-c);Number(e)===0x0&&await this[t(0x12b)][t(0x89)](this[t(0xd9)]);}}else throw d;return;}await collator_1[t(0x11f)][t(0xc2)](this);}async[p(0xf4)](){const u=p,c=this[u(0xd9)]['metadata'][u(0xa0)];return this[u(0x91)](0x2),await this[u(0xf6)](),collator_1[u(0x11f)][u(0xfc)](this[u(0xd9)][u(0x99)]['js'],this[u(0xd9)][u(0x99)][u(0xa7)],this[u(0x99)][u(0x118)]),await collator_1[u(0x11f)][u(0xc3)](this,c);}async['processEvent'](c=stream_1[p(0xac)]['SUCCESS'],d=0xc8,e='output'){const v=p;this[v(0x91)](0x2);const f=this[v(0xd9)][v(0x99)][v(0xa7)];if(!f){this[v(0xe1)]['error'](v(0xe2),{'message':'job\x20id\x20is\x20undefined'});return;}const g=this[v(0x99)][v(0x118)];this[v(0xd2)]=c,this['code']=d,this[v(0xe1)]['debug'](v(0x12a),{'topic':this['config'][v(0xd3)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this[v(0xf4)]();this[v(0xb6)]=collator_1['CollatorService'][v(0xdc)](i),h=new telemetry_1[(v(0x124))](this[v(0x12b)][v(0x12e)],this[v(0xda)],this[v(0x99)],this[v(0xd9)]),h[v(0xb7)](this['leg']);let j;if(c===stream_1['StreamStatus'][v(0xae)])j=await this[v(0x127)](e);else c===stream_1[v(0xac)][v(0x116)]?j=await this[v(0xb4)](e):j=await this[v(0x132)]();this[v(0xad)](j,h);}catch(k){if(k instanceof errors_1[v(0xd6)]){this[v(0xe1)][v(0xba)](v(0xff)+k[v(0xf1)]+'-error',{'error':k});return;}else{if(k instanceof errors_1[v(0xfe)]){this[v(0xe1)][v(0xba)](v(0xd0),{'error':k});return;}else{if(k instanceof errors_1['GenerationalError']){this[v(0xe1)][v(0xba)](v(0x10c),{'error':k});return;}else{if(k instanceof errors_1[v(0x108)]){this[v(0xe1)][v(0xba)](v(0xaa),{'error':k});return;}}}}this[v(0xe1)][v(0x112)]('activity-process-event-error',{'error':k,'message':k['message'],'stack':k['stack'],'name':k[v(0x123)]}),h?.[v(0x90)](k[v(0xc7)]);throw k;}finally{h?.[v(0xa8)](),this[v(0xe1)][v(0x115)](v(0xdf),{'jid':f,'aid':g});}}async[p(0x127)](c){const w=p;this['bindActivityData'](c),this[w(0x11e)]=await this[w(0xc6)](),this['mapJobData']();const d=this[w(0x101)][w(0xb1)]();return await this[w(0x12c)](d),await collator_1[w(0x11f)]['notarizeContinuation'](this,d),await this[w(0x8f)](this[w(0x11e)][w(0xc0)],d),await d['exec']();}async[p(0xb4)](c){const x=p;this['bindActivityData'](c),this[x(0x11e)]=await this[x(0xc6)](),this[x(0x100)]();const d=this[x(0x101)][x(0xb1)]();return await this['setState'](d),await collator_1[x(0x11f)][x(0x11b)](this,d),await this[x(0x8f)](this[x(0x11e)]['length']-0x1,d),await d['exec']();}async[p(0x132)](){const y=p;this['bindActivityError'](this[y(0x93)]),this['adjacencyList']=await this[y(0xc6)]();!this[y(0x11e)][y(0xc0)]&&this[y(0x92)](this[y(0x93)]);this['mapJobData']();const c=this[y(0x101)][y(0xb1)]();return await this[y(0x12c)](c),await collator_1[y(0x11f)][y(0x11b)](this,c),await this[y(0x8f)](this[y(0x11e)][y(0xc0)]-0x1,c),await c[y(0x121)]();}async['transitionAdjacent'](c,d){const z=p;d[z(0xb8)]();const e=this[z(0xa3)](c),f={'app.job.jss':e},g=await this[z(0x114)](this[z(0x11e)],e);g?.[z(0xc0)]&&(f[z(0x111)]=g['join'](',')),d['setActivityAttributes'](f);}[p(0xa3)](c){const A=p,d=c[c[A(0xc0)]-0x1];return Array[A(0xe6)](d)?Number(d[0x1]):Number(d);}[p(0x100)](){const B=p;if(this[B(0xda)][B(0xc9)]?.[B(0x12f)]){const c=new mapper_1[(B(0xa1))]((0x0,utils_1['deepCopy'])(this[B(0xda)][B(0xc9)][B(0x12f)]),this[B(0xd9)]),d=c[B(0x87)]();if(d)for(const e in d){const f=e[B(0x126)]('[');if(f>-0x1){const g=e[B(0xb9)](f+0x1)[B(0x120)](']')[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(0xd5)](i)[B(0x10d)](j=>{d[j]=i[j];});}}}}this[B(0xd9)][B(0x93)]=d;}}[p(0xf5)](){const C=p;if(this[C(0xda)][C(0xab)]?.[C(0x12f)]){const c=new mapper_1['MapperService']((0x0,utils_1[C(0x130)])(this[C(0xda)][C(0xab)][C(0x12f)]),this['context']);this['context'][C(0x93)]=c[C(0x87)]();}}[p(0xf2)](){const D=p;if(this[D(0xda)][D(0xd7)]?.[D(0x12f)]){const c=new mapper_1[(D(0xa1))]((0x0,utils_1[D(0x130)])(this['config'][D(0xd7)]['maps']),this[D(0xd9)]),d=c[D(0x87)](),e=this['metadata'][D(0x118)],f={...this['context'][e][D(0xd7)],...d};this[D(0xd9)][e]['output']['data']=f;}}async[p(0x96)](){}[p(0x12d)](c){const E=p,d=this['context'][this[E(0x99)]['aid']][E(0xd7)][E(0x99)];d[E(0xbb)]=JSON[E(0x125)](this[E(0x93)]),d['$error']={...c,'is_stream_error':!![]};}[p(0x92)](c){const F=p;this['context'][F(0x99)]['err']=JSON[F(0x125)]({...c,'is_stream_error':!![]});}async[p(0x95)](){const G=p;return await this['store'][G(0xd4)](this[G(0xda)][G(0x9c)],await this[G(0x12b)]['getVID']());}[p(0x122)](){return null;}async[p(0x8f)](c,d){const H=p,{id:e}=await this[H(0x12b)]['getVID']();return await this[H(0x101)]['setStatus'](c,this['context'][H(0x99)][H(0xa7)],e,d);}[p(0x119)](c){const I=p;return this[I(0x11e)]?.[I(0xf9)](d=>{const {metadata:{aid:e}}=d;return c[e+'/output/metadata/as']=collator_1['CollatorService']['getSeed'](),e;})??[];}['bindDimensionalAddress'](c){const J=p,d=this[J(0x10a)]();c[this['metadata']['aid']+J(0x9e)]=d;}async[p(0x12c)](c){const K=p,d=this['context'][K(0x99)][K(0xa7)];this['bindJobMetadata'](),this['bindActivityMetadata']();const e={};await this[K(0xb0)](e);const f=this['authorizeEntry'](e);this[K(0xbe)](e),this[K(0xaf)](e);const g=['$'+this[K(0xda)][K(0x117)],this[K(0x99)][K(0x118)],...f],h=collator_1[K(0x11f)][K(0xe9)]([...this[K(0xda)]['ancestors'],this['metadata']['aid']],this[K(0x10a)]());return await this[K(0x101)][K(0x12c)](e,this['getJobStatus'](),d,g,h,c);}[p(0x10b)](){const L=p;this[L(0xd9)][L(0x99)]['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const M=p,c=this['context'][M(0x9a)];!c['output'][M(0x99)]&&(c[M(0xd7)][M(0x99)]={});this[M(0xd2)]===stream_1['StreamStatus']['ERROR']&&(c[M(0xd7)][M(0x99)][M(0xbb)]=JSON[M(0x125)](this['data']));const d=(0x0,utils_1['formatISODate'])(new Date());c[M(0xd7)][M(0x99)]['ac']=d,c['output'][M(0x99)]['au']=d,c[M(0xd7)][M(0x99)]['atp']=this[M(0xda)]['type'],this[M(0xda)][M(0xd3)]&&(c[M(0xd7)][M(0x99)][M(0xe3)]=this[M(0xda)][M(0xd3)]),c[M(0xd7)][M(0x99)][M(0x118)]=this[M(0x99)][M(0x118)];}async['bindJobState'](c){const N=p,d=await this[N(0x95)](),e=[...d[N(0x88)]||[],...this[N(0xe4)]()];for(const f of e){const g=(0x0,utils_1[N(0xc8)])(this['context'],f);g!==undefined&&(c[f]=g);}for(const h in this['context']?.[N(0x93)]??{}){(h[N(0xef)]('-')||h[N(0xef)]('_'))&&(c[h]=this[N(0xd9)][N(0x93)][h]);}telemetry_1[N(0x124)][N(0xee)](c,this[N(0xda)],this[N(0xd9)]);}[p(0xaf)](c){const O=p,d=[...this[O(0xda)][O(0xb3)],...this['bindActivityMetadataPaths']()];for(const e of d){const f=this[O(0x99)]['aid']+'/'+e,g=(0x0,utils_1['getValueByPath'])(this['context'],f);g!==undefined&&(c[f]=g);}telemetry_1[O(0x124)][O(0x10e)](c,this[O(0xda)],this[O(0x99)],this['context'],this[O(0xcc)]);}[p(0xe4)](){const P=p;return serializer_1[P(0xdd)][P(0xcf)][P(0xbf)][P(0xf9)](c=>P(0x9d)+c);}['bindActivityMetadataPaths'](){const Q=p,c=this['leg']===0x1?Q(0x9b):'ACTIVITY_UPDATE';return serializer_1[Q(0xdd)][c][Q(0xbf)][Q(0xf9)](d=>'output/metadata/'+d);}async[p(0xf6)](){const R=p,c=this[R(0xd9)][R(0x99)][R(0xb5)],d='$'+this[R(0xda)][R(0x117)],e={[d]:serializer_1[R(0xdd)][R(0xc1)]['KEYS'][R(0xf9)](k=>R(0x9d)+k)};for(let [k,l]of Object[R(0x97)](this['config'][R(0x94)])){if(k===R(0x106))for(const m of l){e[d][R(0x9f)](m);}else{k===R(0x9a)&&(k=this['metadata'][R(0x118)]);!e[k]&&(e[k]=[]);for(const n of l){e[k]['push'](k+'/'+n);}}}telemetry_1[R(0x124)][R(0x131)](e,this[R(0xda)],this[R(0x99)],this[R(0xcc)]);const {dad:f,jid:g}=this[R(0xd9)][R(0x99)],h=collator_1['CollatorService'][R(0xe9)]([...this[R(0xda)][R(0x11a)],this[R(0x99)][R(0x118)]],f||''),[i,j]=await this[R(0x101)][R(0xf6)](g,e,h);this[R(0xd9)]=(0x0,utils_1['restoreHierarchy'])(i),this[R(0x98)](this['context']?.['metadata']?.['gid'],c),this[R(0xbc)](f),this[R(0x105)](this[R(0xd9)]),this[R(0x11c)](this[R(0xd9)]);}[p(0x98)](c,d){const S=p;if(d!==c)throw new errors_1['GenerationalError'](c,d,this[S(0xd9)]?.[S(0x99)]?.[S(0xa7)]??'',this[S(0xd9)]?.[S(0x99)]?.[S(0x118)]??'',this[S(0xd9)]?.[S(0x99)]?.[S(0xd1)]??'');}[p(0xbc)](c){const T=p;this[T(0x99)][T(0xd1)]=c;}['initSelf'](c){const U=p,d=this['metadata'][U(0x118)];!c[d]&&(c[d]={});const e=c[d];return!e[U(0xd7)]&&(e[U(0xd7)]={}),!e[U(0xab)]&&(e[U(0xab)]={}),!e[U(0xfd)]&&(e[U(0xfd)]={}),!e[U(0xd7)][U(0x99)]&&(e['output'][U(0x99)]={}),e[U(0xd7)][U(0x99)]['au']=(0x0,utils_1[U(0xc4)])(new Date()),c['$self']=e,c[U(0x106)]=c,c;}['initPolicies'](c){const V=p,d=pipe_1[V(0xb2)]['resolve'](this[V(0xda)][V(0x103)]??enums_1[V(0xdb)],c);c[V(0x99)]['expire']=d;if(this['config'][V(0xfb)]!=undefined){const e=pipe_1[V(0xb2)]['resolve'](this[V(0xda)][V(0xfb)]??![],c);c[V(0x99)][V(0xfb)]=e;}}[p(0x128)](c){const W=p;this[W(0xd9)][this[W(0x99)][W(0x118)]][c]['data']=this[W(0x93)];}['resolveDad'](){const X=p;let c=this['metadata']['dad'];return this['adjacentIndex']>0x0&&(c=c[X(0xb9)](0x0,c[X(0xf8)](','))+','+this['adjacentIndex']),c;}[p(0x109)](){const Y=p;return''+this[Y(0x10a)]()+collator_1[Y(0x11f)][Y(0xcb)](0x0);}async[p(0xc6)](){const Z=p,c=[],d=await this['store'][Z(0xf7)](await this[Z(0x12b)][Z(0x8e)]()),e=d['.'+this[Z(0x99)][Z(0x118)]],f=this[Z(0x109)]();if(e)for(const g in e){const h=e[g];mapper_1[Z(0xa1)][Z(0x107)](h,this['context'],this['code'])&&c[Z(0x9f)]({'metadata':{'guid':(0x0,utils_1[Z(0xa0)])(),'jid':this[Z(0xd9)][Z(0x99)]['jid'],'gid':this[Z(0xd9)][Z(0x99)][Z(0xb5)],'dad':f,'aid':g,'spn':this[Z(0xd9)]['$self']['output'][Z(0x99)]?.[Z(0xe0)],'trc':this[Z(0xd9)][Z(0x99)]['trc']},'type':stream_1[Z(0x11d)][Z(0xf0)],'data':{}});}return c;}[p(0xa9)](c){return c<=0x0;}['shouldEmit'](){const a0=p;if(this['config'][a0(0xde)])return pipe_1[a0(0xb2)][a0(0xca)](this[a0(0xda)]['emit'],this['context'])===!![];return![];}[p(0xa2)](){const a1=p;if(this[a1(0xda)][a1(0xe5)]!==undefined)return pipe_1[a1(0xb2)][a1(0xca)](this[a1(0xda)][a1(0xe5)],this[a1(0xd9)])===!![];return![];}async[p(0x114)](c,d){const a2=p;if(this['jobWasInterrupted'](d))return;let e=[];(this[a2(0x8a)]()||this['isJobComplete'](d)||this[a2(0xa2)]())&&await this['engine'][a2(0x89)](this[a2(0xd9)],{'emit':!this[a2(0xa9)](d)&&!this[a2(0xa2)]()});if(c['length']&&!this[a2(0xa9)](d)){const f=this[a2(0x101)][a2(0xb1)]();for(const g of c){await this['engine']['router']?.[a2(0xea)](null,g,f);}e=await f[a2(0x121)]();}return e;}[p(0x129)](c){return c<-0x5f5e100;}}exports['Activity']=Activity;function a(){const a3=['PENDING','bindActivityState','bindJobState','transact','Pipe','produces','processSuccess','gid','adjacentIndex','startActivitySpan','mapActivityAttributes','substring','info','err','initDimensionalAddress','35vufWql','bindDimensionalAddress','KEYS','length','JOB','notarizeEntry','notarizeReentry','formatISODate','1113129qrcUPQ','filterAdjacent','message','getValueByPath','job','resolve','getDimensionalSeed','leg','808720lfbMJT','848600KpiYHb','JOB_UPDATE','process-event-inactive-job-error','dad','status','subtype','getSchema','keys','CollationError','output','484711eWyhNm','context','config','HMSH_EXPIRE_DURATION','getDimensionalIndex','MDATA_SYMBOLS','emit','activity-process-event-end','l2s','logger','activity-process-event-error','stp','bindJobMetadataPaths','persist','isArray','../../modules/utils','../../modules/errors','getDimensionsById','publishMessage','../../types/stream','../../modules/enums','__esModule','bindJobTelemetryToState','startsWith','TRANSITION','fault','mapOutputData','../telemetry','verifyReentry','mapInputData','getState','getTransitions','lastIndexOf','map','831880AyauUo','persistent','assertJobActive','hook','InactiveJobError','process-event-','mapJobData','store','statusThreshold','expire','verifyEntry','initSelf','$job','evaluate','GetStateError','resolveAdjacentDad','resolveDad','bindJobMetadata','process-event-generational-job-error','forEach','bindActivityTelemetryToState','3741540jKuOCZ','../collator','app.activity.mids','error','Activity','transition','debug','SUCCESS','subscribes','aid','authorizeEntry','ancestors','notarizeCompletion','initPolicies','StreamDataType','adjacencyList','CollatorService','split','exec','getJobStatus','name','TelemetryService','stringify','indexOf','processPending','bindActivityData','jobWasInterrupted','activity-process-event','engine','setState','bindActivityError','appId','maps','deepCopy','addTargetTelemetryPaths','processError','mapRules','PRODUCES','runJobCompletionTasks','shouldEmit','defineProperty','608462KOgXeb','code','getVID','setStatus','setActivityError','setLeg','bindJobError','data','consumes','getTriggerConfig','registerTimeout','entries','assertGenerationalId','metadata','$self','ACTIVITY','trigger','metadata/','/output/metadata/dad','push','guid','MapperService','shouldPersistJob','resolveStatus','mapStatusThreshold','../serializer','../mapper','jid','endActivitySpan','isJobComplete','process-event-get-job-error','input','StreamStatus','transitionAdjacent'];a=function(){return a3;};return a();}
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 +1 @@
1
- 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xbb))/0x1+parseInt(i(0xa3))/0x2+parseInt(i(0xd2))/0x3*(parseInt(i(0xa8))/0x4)+parseInt(i(0xe3))/0x5+-parseInt(i(0xbc))/0x6+-parseInt(i(0xb3))/0x7*(parseInt(i(0xd5))/0x8)+-parseInt(i(0xd1))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x6a2e0));Object[j(0xc5)](exports,j(0xe4),{'value':!![]}),exports['Await']=void 0x0;const errors_1=require(j(0xe6)),utils_1=require(j(0xdd)),collator_1=require(j(0xc4)),pipe_1=require(j(0xe8)),telemetry_1=require(j(0xe9)),stream_1=require(j(0xb5)),activity_1=require(j(0xae));function a(){const m=['../collator','defineProperty','await-collation-overage','verifyEntry','exec','error','TelemetryService','setActivityAttributes','leg','setStatus','Activity','await','InactiveJobError','4380786MoulPM','366lXNLgZ','guid','retry','56872HmKOoC','logger','policies','await-process','await-process-end','AWAIT','await-collation-error','info','../../modules/utils','mapActivityAttributes','aid','store','Await','startActivitySpan','2232200dntBWT','__esModule','$self','../../modules/errors','dad','../pipe','../telemetry','debug','440948ktcOaN','endActivitySpan','mapInputData','await-inactive-job-error','appId','12444LkrSjX','transact','engine','Pipe','message','config','./activity','execActivity','metadata','setActivityError','subtype','322KqARui','trc','../../types/stream','CollatorService','context','process-event-generational-job-error','gid','output','283782yZdmRm','489348wnIrXF','resolve','setState','l1s','fault','GetStateError','jid','CollationError'];a=function(){return m;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0xa3;let h=e[f];return h;},b(c,d);}class Await extends activity_1[j(0xce)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const k=j;this[k(0xd6)][k(0xea)](k(0xd8),{'jid':this[k(0xb7)]['metadata'][k(0xc2)],'gid':this[k(0xb7)]['metadata'][k(0xb9)],'aid':this[k(0xb0)]['aid']});let c;try{await this[k(0xc7)](),c=new telemetry_1[(k(0xca))](this[k(0xaa)][k(0xa7)],this[k(0xad)],this[k(0xb0)],this[k(0xb7)]),c[k(0xe2)](this[k(0xcc)]),this[k(0xa5)]();const d=this[k(0xe0)][k(0xa9)](),e=await this[k(0xaf)](d);await collator_1[k(0xb6)]['authorizeReentry'](this,d),await this[k(0xbe)](d),await this[k(0xcd)](0x0,d);const f=await d[k(0xc8)]();c[k(0xde)]();const g=this['resolveStatus'](f);return c[k(0xcb)]({'app.activity.mid':e,'app.job.jss':g}),this[k(0xb7)]['metadata']['aid'];}catch(h){if(h instanceof errors_1[k(0xd0)]){this[k(0xd6)][k(0xc9)](k(0xa6),{'error':h});return;}else{if(h instanceof errors_1['GenerationalError']){this[k(0xd6)]['info'](k(0xb8),{'error':h});return;}else{if(h instanceof errors_1[k(0xc1)]){this[k(0xd6)][k(0xc9)]('await-get-state-error',{'error':h});return;}else{if(h instanceof errors_1[k(0xc3)]){if(h[k(0xc0)]==='duplicate'){this['logger'][k(0xdc)](k(0xc6),{'job_id':this[k(0xb7)][k(0xb0)][k(0xc2)],'guid':this['context'][k(0xb0)][k(0xd3)]});return;}this['logger'][k(0xc9)](k(0xdb),{'error':h});}else this[k(0xd6)][k(0xc9)]('await-process-error',{'error':h});}}}c?.[k(0xb1)](h[k(0xac)]);throw h;}finally{c?.[k(0xa4)](),this[k(0xd6)][k(0xea)](k(0xd9),{'jid':this['context']['metadata'][k(0xc2)],'gid':this[k(0xb7)]['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](c){const l=j,d=pipe_1[l(0xab)][l(0xbd)](this[l(0xad)][l(0xb2)],this[l(0xb7)]),e={'metadata':{'guid':(0x0,utils_1[l(0xd3)])(),'jid':this[l(0xb7)]['metadata']['jid'],'gid':this[l(0xb7)][l(0xb0)][l(0xb9)],'dad':this['metadata'][l(0xe7)],'aid':this[l(0xb0)][l(0xdf)],'topic':d,'spn':this['context'][l(0xe5)][l(0xba)][l(0xb0)]?.[l(0xbf)],'trc':this[l(0xb7)][l(0xb0)][l(0xb4)]},'type':stream_1['StreamDataType'][l(0xda)],'data':this['context']['data']};if(this[l(0xad)][l(0xcf)]!==!![]){const f=pipe_1['Pipe']['resolve'](this[l(0xad)][l(0xcf)],this[l(0xb7)]);f===![]&&(e['metadata'][l(0xcf)]=![]);}return this['config'][l(0xd4)]&&(e[l(0xd7)]={'retry':this['config'][l(0xd4)]}),await this['engine']['router']?.['publishMessage'](null,e,c);}}exports[j(0xe1)]=Await;
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 +1 @@
1
- 'use strict';const j=b;function a(){const m=['726PKnmOi','leg','CollatorService','endActivitySpan','aid','metadata','publishMessage','resolveReentryDimension','Cycle','process-event-generational-job-error','cycle-process','2047173GLcxPN','resolveStatus','store','../collator','cycleAncestorActivity','739280IcYcWz','logger','error','data','jid','42vHDUoV','fault','./activity','gid','ancestor','../../modules/errors','l1s','output','process','trc','GetStateError','2955987AvNBys','debug','engine','CollationError','appId','transact','TelemetryService','737382DBmAdH','cycle-process-end','492294zkihez','message','config','info','setActivityAttributes','Activity','mapInputData','setState','1229xvVqhK','1279924EhEPLH','16wQmsGP','context','cycle-get-state-error','duplicate','exec','mapActivityAttributes','../telemetry','$self','90iARYzW','guid'];a=function(){return m;};return a();}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x13c))/0x1*(parseInt(i(0x148))/0x2)+parseInt(i(0x116))/0x3+parseInt(i(0x13d))/0x4+parseInt(i(0x11b))/0x5+parseInt(i(0x132))/0x6*(parseInt(i(0x120))/0x7)+-parseInt(i(0x13e))/0x8*(parseInt(i(0x12b))/0x9)+parseInt(i(0x146))/0xa*(-parseInt(i(0x134))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x5d373));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[j(0x113)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x10f;let h=e[f];return h;},b(c,d);}const errors_1=require(j(0x125)),utils_1=require('../../modules/utils'),collator_1=require(j(0x119)),telemetry_1=require(j(0x144)),activity_1=require(j(0x122));class Cycle extends activity_1[j(0x139)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x128)](){const k=j;this[k(0x11c)][k(0x12c)](k(0x115),{'jid':this['context'][k(0x110)][k(0x11f)],'gid':this[k(0x13f)][k(0x110)]['gid'],'aid':this[k(0x110)][k(0x10f)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x131))](this[k(0x12d)][k(0x12f)],this[k(0x136)],this[k(0x110)],this[k(0x13f)]),c['startActivitySpan'](this[k(0x149)]),this[k(0x13a)]();let d=this[k(0x118)]['transact']();await this[k(0x13b)](d),await this['setStatus'](0x0,d);const e=await d[k(0x142)]();c[k(0x143)]();const f=this[k(0x117)](e);d=this[k(0x118)][k(0x130)]();const g=await this['cycleAncestorActivity'](d);return c[k(0x138)]({'app.activity.mid':g,'app.job.jss':f}),await collator_1[k(0x14a)]['notarizeEarlyExit'](this,d),await d[k(0x142)](),this[k(0x13f)][k(0x110)][k(0x10f)];}catch(h){if(h instanceof errors_1['InactiveJobError']){this['logger'][k(0x11d)]('cycle-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1['GenerationalError']){this['logger']['info'](k(0x114),{'error':h});return;}else{if(h instanceof errors_1[k(0x12a)]){this[k(0x11c)]['error'](k(0x140),{'error':h});return;}else{if(h instanceof errors_1[k(0x12e)]){if(h[k(0x121)]===k(0x141)){this[k(0x11c)][k(0x137)]('cycle-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this[k(0x13f)][k(0x110)][k(0x147)]});return;}this[k(0x11c)][k(0x11d)]('cycle-collation-error',{'error':h});}else this[k(0x11c)][k(0x11d)]('cycle-process-error',{'error':h});}}}c?.['setActivityError'](h[k(0x135)]);throw h;}finally{c?.[k(0x14b)](),this['logger']['debug'](k(0x133),{'jid':this[k(0x13f)]['metadata']['jid'],'gid':this[k(0x13f)][k(0x110)][k(0x123)],'aid':this[k(0x110)][k(0x10f)]});}}async[j(0x11a)](c){const l=j;this[l(0x13a)]();const d={'metadata':{'guid':(0x0,utils_1[l(0x147)])(),'jid':this['context'][l(0x110)]['jid'],'gid':this[l(0x13f)][l(0x110)][l(0x123)],'dad':collator_1[l(0x14a)][l(0x112)](this),'aid':this[l(0x136)][l(0x124)],'spn':this[l(0x13f)][l(0x145)][l(0x127)][l(0x110)]?.[l(0x126)],'trc':this['context'][l(0x110)][l(0x129)]},'data':this[l(0x13f)][l(0x11e)]};return await this[l(0x12d)]['router']?.[l(0x111)](null,d,c);}}exports['Cycle']=Cycle;
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 +1 @@
1
- 'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=parseInt(l(0x1d5))/0x1+parseInt(l(0x1c6))/0x2+parseInt(l(0x1d2))/0x3*(-parseInt(l(0x1e6))/0x4)+parseInt(l(0x1fc))/0x5+-parseInt(l(0x1d8))/0x6*(-parseInt(l(0x1d4))/0x7)+parseInt(l(0x1e2))/0x8+-parseInt(l(0x1cb))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xcb243));function b(c,d){const e=a();return b=function(f,g){f=f-0x1a6;let h=e[f];return h;},b(c,d);}Object['defineProperty'](exports,m(0x1e5),{'value':!![]}),exports['Hook']=void 0x0;const enums_1=require(m(0x1f5)),errors_1=require(m(0x1af)),collator_1=require('../collator'),pipe_1=require(m(0x1e8)),task_1=require(m(0x1cc)),telemetry_1=require(m(0x1d6)),stream_1=require(m(0x1de)),activity_1=require(m(0x1f4));function a(){const v=['setActivityError','join','CollationError','doesHook','registerWebHook','startActivitySpan','8231640ofOdBC','deleteWebHookSignal','registerTimeHook','authorizeReentry','hook-process-end','appId','metadata','processWebHookEvent','Pipe','expire','../../modules/errors','notarizeEarlyCompletion','sleep','topic','processTimeHookEvent','transition','getHookRules','setActivityAttributes','dad','SUCCESS','endActivitySpan','error','logger','debug','resolveDad','exec','TaskService','aid','processEvent','hook-inactive-job-error','doPassThrough','gid','store','888456HbROdT','hook-process-web-hook-event','InactiveJobError','length','hook','18616680Mrziub','../task','transact','hook-collation-overage','setStatus','process','hook-get-state-error','3drfPXd','setState','7VkUZhc','1229470mHCNri','../telemetry','mapJobData','945186elddOW','GetStateError','app.activity.mids','resolve','message','jid','../../types/stream','info','registerHook','doHook','1730984exgFvQ','data','config','__esModule','3173372xslTDW','adjacencyList','../pipe','CollatorService','verifyEntry','processWebHookSignal','resolveStatus','engine','TelemetryService','mapActivityAttributes','filterAdjacent','StreamStatus','hook-process-error','context','./activity','../../modules/enums'];a=function(){return v;};return a();}class Hook extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[m(0x1d0)](){const n=m;this[n(0x1bb)]['debug']('hook-process',{'jid':this['context']['metadata'][n(0x1dd)],'gid':this[n(0x1f3)][n(0x1ab)]['gid'],'aid':this[n(0x1ab)][n(0x1c0)]});let c;try{return await this[n(0x1ea)](),c=new telemetry_1[(n(0x1ee))](this[n(0x1ed)][n(0x1aa)],this['config'],this[n(0x1ab)],this[n(0x1f3)]),c[n(0x1fb)](this['leg']),this[n(0x1f9)]()?await this[n(0x1e1)](c):await this[n(0x1c3)](c),this[n(0x1f3)][n(0x1ab)][n(0x1c0)];}catch(d){if(d instanceof errors_1[n(0x1c8)]){this[n(0x1bb)][n(0x1ba)](n(0x1c2),{'error':d});return;}else{if(d instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{'error':d});return;}else{if(d instanceof errors_1[n(0x1d9)]){this[n(0x1bb)]['error'](n(0x1d1),{'error':d});return;}else{if(d instanceof errors_1[n(0x1f8)]){if(d['fault']==='duplicate'){this[n(0x1bb)][n(0x1df)](n(0x1ce),{'job_id':this[n(0x1f3)][n(0x1ab)][n(0x1dd)],'guid':this['context'][n(0x1ab)]['guid']});return;}this[n(0x1bb)]['error']('hook-collation-error',{'error':d});}else this[n(0x1bb)][n(0x1ba)](n(0x1f2),{'error':d});}}}c?.[n(0x1f6)](d[n(0x1dc)]);throw d;}finally{c?.[n(0x1b9)](),this['logger'][n(0x1bc)](n(0x1a9),{'jid':this[n(0x1f3)]['metadata']['jid'],'gid':this[n(0x1f3)][n(0x1ab)][n(0x1c4)],'aid':this['metadata'][n(0x1c0)]});}}[m(0x1f9)](){const o=m;if(this['config'][o(0x1b1)]){const c=pipe_1[o(0x1ad)][o(0x1db)](this[o(0x1e4)]['sleep'],this['context']);return!isNaN(c)&&Number(c)>0x0;}return!!this[o(0x1e4)]['hook']?.[o(0x1b2)];}async[m(0x1e1)](c){const p=m,d=this[p(0x1c5)][p(0x1cd)]();await this[p(0x1e0)](enums_1['HMSH_IS_CLUSTER']?undefined:d),this['mapOutputData'](),this['mapJobData'](),await this['setState'](d),await collator_1[p(0x1e9)][p(0x1a8)](this,d),await this[p(0x1cf)](0x0,d),await d['exec'](),c[p(0x1ef)]();}async[m(0x1c3)](c){const q=m,d=this['store'][q(0x1cd)]();let e;this[q(0x1e7)]=await this[q(0x1f0)](),this['mapOutputData'](),this[q(0x1d7)](),await this[q(0x1d3)](d),await collator_1[q(0x1e9)][q(0x1b0)](this,d),await this[q(0x1cf)](this['adjacencyList'][q(0x1c9)]-0x1,d),e=await d[q(0x1be)](),c[q(0x1ef)]();const f=this[q(0x1ec)](e),g={'app.job.jss':f},h=await this[q(0x1b4)](this['adjacencyList'],f);h[q(0x1c9)]&&(g[q(0x1da)]=h[q(0x1f7)](',')),c[q(0x1b6)](g);}async['getHookRule'](c){const r=m,d=await this[r(0x1c5)][r(0x1b5)]();return d?.[c]?.[0x0];}async[m(0x1e0)](c){const s=m;if(this[s(0x1e4)]['hook']?.[s(0x1b2)])return await this[s(0x1ed)]['taskService'][s(0x1fa)](this[s(0x1e4)][s(0x1ca)]['topic'],this[s(0x1f3)],this[s(0x1bd)](),this[s(0x1f3)]['metadata'][s(0x1ae)],c);else{if(this[s(0x1e4)]['sleep']){const d=pipe_1[s(0x1ad)][s(0x1db)](this['config'][s(0x1b1)],this[s(0x1f3)]);return await this[s(0x1ed)]['taskService'][s(0x1a7)](this[s(0x1f3)]['metadata'][s(0x1dd)],this[s(0x1f3)][s(0x1ab)]['gid'],''+this[s(0x1ab)]['aid']+(this[s(0x1ab)][s(0x1b7)]||''),s(0x1b1),d,this[s(0x1ab)][s(0x1b7)]||''),this[s(0x1f3)]['metadata'][s(0x1dd)];}}}async[m(0x1ac)](c=stream_1[m(0x1f1)][m(0x1b8)],d=0xc8){const t=m;this[t(0x1bb)][t(0x1bc)](t(0x1c7),{'topic':this[t(0x1e4)]['hook'][t(0x1b2)],'aid':this['metadata'][t(0x1c0)],'status':c,'code':d});const e=new task_1[(t(0x1bf))](this[t(0x1c5)],this[t(0x1bb)]),f={...this[t(0x1e3)]},g=await e[t(0x1eb)](this[t(0x1e4)][t(0x1ca)][t(0x1b2)],f);if(g){const [h,i,j,k]=g;this['context']['metadata'][t(0x1dd)]=h,this[t(0x1f3)][t(0x1ab)]['gid']=k,this['context'][t(0x1ab)][t(0x1b7)]=j,await this[t(0x1c1)](c,d,t(0x1ca)),d===0xc8&&await e[t(0x1a6)](this[t(0x1e4)][t(0x1ca)]['topic'],f);}}async[m(0x1b3)](c){const u=m;this[u(0x1bb)][u(0x1bc)]('hook-process-time-hook-event',{'jid':c,'gid':this[u(0x1f3)][u(0x1ab)][u(0x1c4)],'aid':this[u(0x1ab)]['aid']}),await this['processEvent'](stream_1[u(0x1f1)][u(0x1b8)],0xc8,u(0x1ca));}}exports['Hook']=Hook;
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 +1 @@
1
- 'use strict';const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0xef))/0x1+parseInt(h(0xee))/0x2+-parseInt(h(0x106))/0x3*(parseInt(h(0xf0))/0x4)+-parseInt(h(0xfc))/0x5*(-parseInt(h(0x104))/0x6)+-parseInt(h(0x100))/0x7*(parseInt(h(0xeb))/0x8)+parseInt(h(0xf9))/0x9*(parseInt(h(0xf4))/0xa)+-parseInt(h(0x105))/0xb;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x854ef));function a(){const j=['164MeeJGq','defineProperty','./interrupt','default','30qDeFIa','__esModule','./worker','Hook','./await','1907703UtFTlK','./hook','./cycle','700TLTfiM','Cycle','Trigger','Signal','7gbVraY','Interrupt','Await','./trigger','26190YEZtYo','11127589csaKRZ','18141hgQyek','2775304RowdJF','./signal','./activity','2112690yjaEae','150876gGAYSM'];a=function(){return j;};return a();}Object[i(0xf1)](exports,i(0xf5),{'value':!![]});const activity_1=require(i(0xed)),await_1=require(i(0xf8)),cycle_1=require(i(0xfb)),hook_1=require(i(0xfa)),interrupt_1=require(i(0xf2)),signal_1=require(i(0xec)),trigger_1=require(i(0x103)),worker_1=require(i(0xf6));function b(c,d){const e=a();return b=function(f,g){f=f-0xeb;let h=e[f];return h;},b(c,d);}exports[i(0xf3)]={'activity':activity_1['Activity'],'await':await_1[i(0x102)],'cycle':cycle_1[i(0xfd)],'hook':hook_1[i(0xf7)],'interrupt':interrupt_1[i(0x101)],'signal':signal_1[i(0xff)],'trigger':trigger_1[i(0xfe)],'worker':worker_1['Worker']};
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 +1 @@
1
- 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=-parseInt(k(0xff))/0x1*(parseInt(k(0x11d))/0x2)+parseInt(k(0x11c))/0x3*(parseInt(k(0xf4))/0x4)+parseInt(k(0x106))/0x5*(parseInt(k(0xfc))/0x6)+-parseInt(k(0xf6))/0x7+parseInt(k(0x128))/0x8+parseInt(k(0x12c))/0x9*(-parseInt(k(0x120))/0xa)+parseInt(k(0x125))/0xb*(parseInt(k(0xf9))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x8cdb2));function a(){const s=['logger','exec','appId','Pipe','2212745PfdIzz','resolveStatus','notarizeEarlyCompletion','interrupt-collation-overage','maps','app.activity.mids','stack','guid','../pipe','filterAdjacent','interrupt','Interrupt','info','job','length','join','interrupt-process-error','Activity','defineProperty','aid','leg','fault','2688477ptNzLQ','6acjjIm','message','__esModule','10OKYXWn','../../modules/errors','./activity','setStatus','app.job.jss','4136VtPwpt','resolveInterruptOptions','config','8630984tSyMZQ','context','process-event-generational-job-error','jid','9367209dhjkJl','endActivitySpan','topic','interruptSelf','error','target','CollationError','output','transact','descend','InactiveJobError','tpc','setActivityError','expire','adjacencyList','interrupt-process','mapJobData','gid','setActivityAttributes','process','metadata','interrupt-process-end','code','setState','debug','4yPfgLC','CollatorService','5454365NfHJbK','engine','GetStateError','24564zdnHdz','startActivitySpan','resolve','6HmGdgk','throw','interrupt-get-state-error','263437KueqRY','isInterruptingSelf','mapActivityAttributes'];a=function(){return s;};return a();}Object[l(0x118)](exports,l(0x11f),{'value':!![]}),exports['Interrupt']=void 0x0;const errors_1=require(l(0x121)),collator_1=require('../collator'),pipe_1=require(l(0x10e)),telemetry_1=require('../telemetry'),activity_1=require(l(0x122));function b(c,d){const e=a();return b=function(f,g){f=f-0xe6;let h=e[f];return h;},b(c,d);}class Interrupt extends activity_1[l(0x117)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0xee)](){const m=l;this[m(0x102)][m(0xf3)](m(0xea),{'jid':this[m(0x129)][m(0xef)][m(0x12b)],'gid':this[m(0x129)][m(0xef)][m(0xec)],'aid':this[m(0xef)]['aid']});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this[m(0xf7)][m(0x104)],this[m(0x127)],this['metadata'],this[m(0x129)]),c[m(0xfa)](this[m(0x11a)]),this[m(0x100)]()?await this[m(0x12f)](c):await this['interruptAnother'](c);}catch(d){if(d instanceof errors_1[m(0x136)]){this[m(0x102)][m(0x130)]('interrupt-inactive-job-error',{'error':d});return;}else{if(d instanceof errors_1['GenerationalError']){this[m(0x102)][m(0x112)](m(0x12a),{'error':d});return;}else{if(d instanceof errors_1[m(0xf8)]){this[m(0x102)][m(0x130)](m(0xfe),{'error':d});return;}else{if(d instanceof errors_1[m(0x132)]){if(d[m(0x11b)]==='duplicate'){this[m(0x102)][m(0x112)](m(0x109),{'job_id':this[m(0x129)]['metadata'][m(0x12b)],'guid':this[m(0x129)][m(0xef)][m(0x10d)]});return;}this[m(0x102)][m(0x130)]('interrupt-collation-error',{'error':d});}else this['logger'][m(0x130)](m(0x116),{'error':d});}}}c?.[m(0xe7)](d[m(0x11e)]);throw d;}finally{c?.[m(0x12d)](),this[m(0x102)][m(0xf3)](m(0xf0),{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata'][m(0xec)],'aid':this[m(0xef)][m(0x119)]});}}async[l(0x12f)](c){const n=l;this['config']['job']?.[n(0x10a)]&&(this[n(0xeb)](),await this[n(0xf2)]());const d=await this[n(0x110)]();c[n(0x101)]();const e=this['store']['transact']();await collator_1[n(0xf5)][n(0x108)](this,e),await this[n(0x123)](-0x1,e);const f=await e[n(0x103)](),g=this[n(0x107)](f);return c[n(0xed)]({'app.activity.mid':d,'app.job.jss':g}),this['context'][n(0xef)][n(0x119)];}async['interruptAnother'](c){const o=l,d=await this['interrupt'](),e={'app.activity.mid':d};c[o(0x101)](),this[o(0xe9)]=await this[o(0x10f)]();if(this[o(0x127)][o(0x113)]?.[o(0x10a)]||this[o(0x127)][o(0x133)]?.['maps']){this['mapOutputData'](),this['mapJobData']();const j=this['store']['transact']();await this[o(0xf2)](j);}const f=this['store'][o(0x134)]();await collator_1[o(0xf5)]['notarizeEarlyCompletion'](this,f),await this[o(0x123)](this[o(0xe9)][o(0x114)]-0x1,f);const g=await f[o(0x103)](),h=this[o(0x107)](g);e[o(0x124)]=h;const i=await this['transition'](this['adjacencyList'],h);return i[o(0x114)]&&(e[o(0x10b)]=i[o(0x115)](',')),c['setActivityAttributes'](e),this[o(0x129)][o(0xef)]['aid'];}[l(0x100)](){const p=l;if(!this[p(0x127)][p(0x131)])return!![];const c=pipe_1[p(0x105)][p(0xfb)](this[p(0x127)]['target'],this['context']);return c==this['context'][p(0xef)][p(0x12b)];}[l(0x126)](){const q=l;return{'reason':this[q(0x127)]['reason']!==undefined?pipe_1[q(0x105)][q(0xfb)](this['config']['reason'],this[q(0x129)]):undefined,'throw':this[q(0x127)][q(0xfd)]!==undefined?pipe_1[q(0x105)]['resolve'](this['config'][q(0xfd)],this[q(0x129)]):undefined,'descend':this['config']['descend']!==undefined?pipe_1[q(0x105)]['resolve'](this[q(0x127)][q(0x135)],this[q(0x129)]):undefined,'code':this['config'][q(0xf1)]!==undefined?pipe_1['Pipe'][q(0xfb)](this['config'][q(0xf1)],this[q(0x129)]):undefined,'expire':this[q(0x127)][q(0xe8)]!==undefined?pipe_1[q(0x105)]['resolve'](this['config'][q(0xe8)],this[q(0x129)]):undefined,'stack':this[q(0x127)][q(0x10c)]!==undefined?pipe_1[q(0x105)][q(0xfb)](this[q(0x127)][q(0x10c)],this[q(0x129)]):undefined};}async['interrupt'](){const r=l,c=this[r(0x126)]();return await this[r(0xf7)][r(0x110)](this[r(0x127)][r(0x12e)]!==undefined?pipe_1['Pipe'][r(0xfb)](this['config']['topic'],this[r(0x129)]):this[r(0x129)][r(0xef)][r(0xe6)],this['config']['target']!==undefined?pipe_1['Pipe'][r(0xfb)](this[r(0x127)][r(0x131)],this[r(0x129)]):this['context']['metadata'][r(0x12b)],c);}}exports[l(0x111)]=Interrupt;
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 +1 @@
1
- 'use strict';const k=b;(function(c,d){const j=b,e=c();while(!![]){try{const f=-parseInt(j(0x81))/0x1+parseInt(j(0xc4))/0x2*(parseInt(j(0xc7))/0x3)+parseInt(j(0x8e))/0x4+-parseInt(j(0x8c))/0x5+-parseInt(j(0x8d))/0x6+parseInt(j(0xa2))/0x7+parseInt(j(0xbd))/0x8*(-parseInt(j(0xab))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x7eb7d));function b(c,d){const e=a();return b=function(f,g){f=f-0x7d;let h=e[f];return h;},b(c,d);}function a(){const q=['GetStateError','key_value','app.activity.mids','Pipe','appId','mapRules','8vccFvI','leg','InactiveJobError','setStatus','hook','TelemetryService','mapJobData','287196dTpvJx','CollationError','hookOne','12nCZqkW','notarizeEarlyCompletion','signal-process','mapOutputData','status','store','error','797440cvnZOQ','logger','signal-get-state-error','guid','GenerationalError','hookAll','../../modules/errors','jid','code','signal-inactive-job-error','duplicate','1397470iLXdFm','891816MHIMxZ','2899852aACVXT','process','CollatorService','setActivityError','../telemetry','config','startActivitySpan','key_name','./activity','signal-collation-overage','gid','join','mapSignalData','length','engine','maps','adjacencyList','metadata','MapperService','signal-collation-error','4308066abXaOi','endActivitySpan','__esModule','debug','context','signal-process-error','topic','signal-process-end','info','1531674LpChYn','resolveStatus','mapActivityAttributes','scrub','aid','transact','filterAdjacent','verifyEntry','../mapper','setState','mapResolverData','resolve'];a=function(){return q;};return a();}Object['defineProperty'](exports,k(0xa4),{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require(k(0x87)),collator_1=require('../collator'),mapper_1=require(k(0xb3)),pipe_1=require('../pipe'),telemetry_1=require(k(0x92)),activity_1=require(k(0x96));class Signal extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[k(0x8f)](){const l=k;this[l(0x82)]['debug'](l(0xc9),{'jid':this[l(0xa6)]['metadata'][l(0x88)],'gid':this[l(0xa6)][l(0x9f)][l(0x98)],'aid':this[l(0x9f)][l(0xaf)]});let c;try{await this[l(0xb2)](),c=new telemetry_1[(l(0xc2))](this['engine'][l(0xbb)],this[l(0x93)],this['metadata'],this[l(0xa6)]),c[l(0x94)](this[l(0xbe)]);const d=this[l(0x7f)][l(0xb0)]();this[l(0x9e)]=await this[l(0xb1)](),this[l(0x7d)](),this[l(0xc3)](),await this[l(0xb4)](d),await collator_1[l(0x90)][l(0xc8)](this,d),await this[l(0xc0)](this['adjacencyList'][l(0x9b)]-0x1,d);const e=await d['exec']();this['config']['subtype']==='all'?await this['hookAll']():await this['hookOne']();const f=this[l(0xac)](e),g={'app.job.jss':f},h=await this['transition'](this[l(0x9e)],f);return h['length']&&(g[l(0xb9)]=h[l(0x99)](',')),c[l(0xad)](),c['setActivityAttributes'](g),this[l(0xa6)][l(0x9f)]['aid'];}catch(i){if(i instanceof errors_1[l(0xbf)]){this['logger']['error'](l(0x8a),{'error':i});return;}else{if(i instanceof errors_1[l(0x85)]){this['logger'][l(0xaa)]('process-event-generational-job-error',{'error':i});return;}else{if(i instanceof errors_1[l(0xb7)]){this[l(0x82)][l(0x80)](l(0x83),{'error':i});return;}else{if(i instanceof errors_1[l(0xc5)]){if(i['fault']===l(0x8b)){this[l(0x82)][l(0xaa)](l(0x97),{'job_id':this[l(0xa6)]['metadata'][l(0x88)],'guid':this[l(0xa6)]['metadata'][l(0x84)]});return;}this[l(0x82)][l(0x80)](l(0xa1),{'error':i});}else this[l(0x82)][l(0x80)](l(0xa7),{'error':i});}}}c?.[l(0x91)](i['message']);throw i;}finally{c?.[l(0xa3)](),this['logger'][l(0xa5)](l(0xa9),{'jid':this[l(0xa6)][l(0x9f)][l(0x88)],'gid':this[l(0xa6)][l(0x9f)][l(0x98)],'aid':this[l(0x9f)]['aid']});}}[k(0x9a)](){const m=k;if(this[m(0x93)]['signal']?.[m(0x9d)]){const c=new mapper_1[(m(0xa0))](this[m(0x93)]['signal']['maps'],this['context']);return c[m(0xbc)]();}}[k(0xb5)](){const n=k;if(this[n(0x93)]['resolver']?.[n(0x9d)]){const c=new mapper_1[(n(0xa0))](this[n(0x93)]['resolver'][n(0x9d)],this[n(0xa6)]);return c[n(0xbc)]();}}async[k(0xc6)](){const o=k,c=pipe_1[o(0xba)][o(0xb6)](this['config'][o(0xa8)],this[o(0xa6)]),d=this['mapSignalData'](),e=pipe_1[o(0xba)][o(0xb6)](this['config'][o(0x7e)],this[o(0xa6)]),f=pipe_1[o(0xba)][o(0xb6)](this[o(0x93)][o(0x89)],this['context']);return await this[o(0x9c)][o(0xc1)](c,d,e,f);}async['hookAll'](){const p=k,c=this[p(0x9a)](),d=this[p(0xb5)]();this['config'][p(0xae)]&&(d[p(0xae)]=!![]);const e=pipe_1[p(0xba)]['resolve'](this[p(0x93)][p(0x95)],this['context']),f=pipe_1['Pipe'][p(0xb6)](this[p(0x93)][p(0xb8)],this[p(0xa6)]),g=[e+':'+f];return await this[p(0x9c)][p(0x86)](this[p(0x93)]['topic'],c,d,g);}}exports['Signal']=Signal;
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 +1 @@
1
- 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x11e))/0x1*(-parseInt(k(0x14a))/0x2)+parseInt(k(0x14e))/0x3+parseInt(k(0x14c))/0x4*(parseInt(k(0x149))/0x5)+parseInt(k(0x134))/0x6+parseInt(k(0x113))/0x7*(-parseInt(k(0x161))/0x8)+parseInt(k(0x175))/0x9*(-parseInt(k(0x117))/0xa)+parseInt(k(0x15f))/0xb*(parseInt(k(0x165))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xd1df1));Object[l(0x12f)](exports,l(0x11d),{'value':!![]}),exports[l(0x13c)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x10a;let h=e[f];return h;},b(c,d);}const errors_1=require(l(0x16a)),utils_1=require('../../modules/utils'),collator_1=require(l(0x110)),pipe_1=require(l(0x162)),reporter_1=require(l(0x131)),serializer_1=require(l(0x142)),telemetry_1=require(l(0x115)),activity_1=require('./activity');function a(){const G=['startsWith','forEach','getTriggerSeed','2985102QzLjMz','setStats','$job','trigger-collation-overage','getJobStatus','message','trigger-process','getTimeSeries','pending','resolveGranularity','key','info','granularity','../collator','trigger-process-end','aid','7649131YEvMxi','CollatorService','../telemetry','ngn','10uOKDXX','getState','ACTIVITY','endJobSpan','sleepFor','bindMarkerData','__esModule','129175oPNqDi','ReporterService','trigger-process-error','safeKey','jobId','endActivitySpan','setStateNX','notarizeInception','guid','KEYS','initDimensionalAddress','metadata/','config','keys','output/metadata/','store','error','defineProperty','logger','../reporter','transition','data','8001828UKYDcI','TelemetryService','length','toString','context','getDimensionalSeed','search','startJobSpan','Trigger','leg','execAdjacentParent','measures','resolveTriggerStatistics','app.activity.mids','../serializer','setExpired','setStatus','MDATA_SYMBOLS','transitionAndLogAdjacent','resolveJobKey','adjacencyList','80oJUrTL','10HsNdSj','trc','150764LGCpFe','debug','1525857fEWtwO','resolveJobId','Pipe','filterAdjacent','metadata','spn','engine','getVID','transact','setJobAttributes','duplicate-job-error','resolve','join','subscribes','Activity','appId','DEFAULT_GRANULARITY','11yqVQMC','mapActivityAttributes','8MpkLNr','../pipe','exec','DuplicateJobError','5815272HzuZkV','bindSearchData','mapJobData','marker','isInceptionOverage','../../modules/errors','createInputContext','formatISODate','jid','bindActivityMetadataPaths','process','stats','gid'];a=function(){return G;};return a();}class Trigger extends activity_1[l(0x15c)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x16f)](c){const m=l;this[m(0x130)][m(0x14d)](m(0x17b),{'subscribes':this['config'][m(0x15b)]});let d;try{this['setLeg'](0x2),await this[m(0x118)](),d=new telemetry_1[(m(0x135))](this[m(0x154)]['appId'],this[m(0x12a)],this['metadata'],this[m(0x138)]),d[m(0x13b)](),d['startActivitySpan'](this[m(0x13d)]),this[m(0x167)](),this[m(0x148)]=await this[m(0x151)]();const e=this['initStatus'](c,this['adjacencyList']['length']);await this['setStateNX'](e),await this[m(0x144)](e),this['bindSearchData'](c),this[m(0x11c)](c);const f=this[m(0x12d)][m(0x156)]();await this['setState'](f),await this[m(0x176)](f);c?.[m(0x10b)]&&await this[m(0x143)](c?.['pending'],f);await collator_1[m(0x114)][m(0x125)](this,this[m(0x138)][m(0x152)]['guid'],f),await f[m(0x163)](),this[m(0x13e)](),d[m(0x160)]();const g=Number(this[m(0x138)][m(0x152)]['js']);d[m(0x157)]({'app.job.jss':g});const h={'app.job.jss':g};return await this[m(0x146)](c,g,h),d['setActivityAttributes'](h),this['context'][m(0x152)]['jid'];}catch(i){d?.['setActivityError'](i[m(0x17a)]);if(i instanceof errors_1['DuplicateJobError']){await(0x0,utils_1[m(0x11b)])(0x3e8);const j=await collator_1[m(0x114)][m(0x169)](this,this['context'][m(0x152)][m(0x126)]);if(j){this[m(0x130)][m(0x10e)](m(0x178),{'job_id':i[m(0x122)],'guid':this[m(0x138)][m(0x152)][m(0x126)]});return;}this[m(0x130)][m(0x12e)](m(0x158),{'job_id':i[m(0x122)],'guid':this[m(0x138)][m(0x152)][m(0x126)]});}else this[m(0x130)][m(0x12e)](m(0x120),{'error':i});throw i;}finally{d?.[m(0x11a)](),d?.[m(0x123)](),this[m(0x130)][m(0x14d)](m(0x111),{'subscribes':this['config'][m(0x15b)],'jid':this[m(0x138)]['metadata']['jid'],'gid':this[m(0x138)]['metadata'][m(0x171)]});}}async['transitionAndLogAdjacent'](c={},d,e){const n=l;if(isNaN(c[n(0x10b)])){const f=await this[n(0x132)](this[n(0x148)],d);f[n(0x136)]&&(e[n(0x141)]=f[n(0x15a)](','));}}['initStatus'](c={},d){const o=l;if(c[o(0x10b)])return-0x1;return d;}async[l(0x143)](c,d){const p=l;await this[p(0x12d)]['expireJob'](this['context'][p(0x152)][p(0x16d)],c,d);}['safeKey'](c){return'_'+c;}[l(0x166)](c){const q=l;c?.[q(0x13a)]&&Object['keys'](c[q(0x13a)])[q(0x173)](d=>{const r=q;this['context']['data'][this[r(0x121)](d)]=c[r(0x13a)][d][r(0x137)]();});}['bindMarkerData'](c){const s=l;c?.[s(0x168)]&&Object[s(0x12b)](c[s(0x168)])['forEach'](d=>{const t=s;d[t(0x172)]('-')&&(this[t(0x138)][t(0x133)][d]=c[t(0x168)][d][t(0x137)]());});}async['setStatus'](c){const u=l;this['context'][u(0x152)]['js']=c;}async[l(0x13e)](){const v=l;if(this['context'][v(0x152)]['px']){const c=(0x0,utils_1[v(0x16c)])(new Date()),d={'metadata':this['context'][v(0x152)],'data':{'job_id':this['context'][v(0x152)][v(0x16d)],'jc':c,'ju':c}};await this[v(0x154)]['execAdjacentParent'](this[v(0x138)],d);}}['createInputContext'](){const w=l,c={[this['metadata'][w(0x112)]]:{'input':{'data':this['data']}},'$self':{'input':{'data':this[w(0x133)]},'output':{'data':this[w(0x133)]}}};return c;}async['getState'](){const x=l,c=this[x(0x16b)](),d=this['resolveJobId'](c),e=this['resolveJobKey'](c),f=(0x0,utils_1['formatISODate'])(new Date()),{id:g,version:h}=await this[x(0x154)][x(0x155)]();this[x(0x128)](collator_1[x(0x114)][x(0x139)]());const i={...this[x(0x152)],'jid':d,'key':e,'as':collator_1[x(0x114)][x(0x174)]()};this[x(0x138)]={'metadata':{...this['metadata'],'gid':(0x0,utils_1[x(0x126)])(),'ngn':this['context'][x(0x152)][x(0x116)],'pj':this[x(0x138)]['metadata']['pj'],'pg':this[x(0x138)][x(0x152)]['pg'],'pd':this[x(0x138)][x(0x152)]['pd'],'pa':this['context'][x(0x152)]['pa'],'px':this[x(0x138)][x(0x152)]['px'],'app':g,'vrs':h,'tpc':this[x(0x12a)][x(0x15b)],'trc':this[x(0x138)][x(0x152)][x(0x14b)],'spn':this[x(0x138)][x(0x152)][x(0x153)],'guid':this[x(0x138)]['metadata']['guid'],'jid':d,'dad':collator_1[x(0x114)][x(0x139)](),'key':e,'jc':f,'ju':f,'ts':(0x0,utils_1[x(0x10a)])(this['resolveGranularity']()),'js':0x0},'data':{},[this[x(0x152)][x(0x112)]]:{'input':{'data':this[x(0x133)],'metadata':i},'output':{'data':this[x(0x133)],'metadata':i},'settings':{'data':{}},'errors':{'data':{}}}},this['context']['$self']=this['context'][this[x(0x152)][x(0x112)]],this['context'][x(0x177)]=this[x(0x138)];}['bindJobMetadataPaths'](){const y=l;return serializer_1[y(0x145)]['JOB'][y(0x127)]['map'](c=>y(0x129)+c);}[l(0x16e)](){const z=l;return serializer_1[z(0x145)][z(0x119)]['KEYS']['map'](c=>z(0x12c)+c);}[l(0x10c)](){const A=l;return this['config'][A(0x170)]?.[A(0x10f)]||reporter_1[A(0x11f)][A(0x15e)];}[l(0x179)](){const B=l;return this['context'][B(0x152)]['js'];}[l(0x14f)](c){const C=l,d=this[C(0x12a)][C(0x170)]?.['id'];return d?pipe_1['Pipe']['resolve'](d,c):(0x0,utils_1[C(0x126)])();}[l(0x147)](c){const D=l,d=this[D(0x12a)][D(0x170)]?.[D(0x10d)];return d?pipe_1[D(0x150)][D(0x159)](d,c):'';}async[l(0x124)](c){const E=l,d=this[E(0x138)][E(0x152)]['jid'];if(!await this['store'][E(0x124)](d,this[E(0x154)][E(0x15d)],c))throw new errors_1[(E(0x164))](d);}async[l(0x176)](c){const F=l,d=this[F(0x138)][F(0x152)];if(d['key']&&this[F(0x12a)][F(0x170)]?.[F(0x13f)]){const e=await this['engine'][F(0x155)](),f=new reporter_1[(F(0x11f))](e,this[F(0x12d)],this[F(0x130)]);await this[F(0x12d)][F(0x176)](d[F(0x10d)],d[F(0x16d)],d['ts'],f[F(0x140)](this[F(0x12a)],this[F(0x138)]),e,c);}}}exports[l(0x13c)]=Trigger;
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 +1 @@
1
- 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x95;let h=e[f];return h;},b(c,d);}const j=b;function a(){const m=['setActivityError','retry','../../modules/utils','context','1446579KhYWuy','../pipe','policies','startActivitySpan','./activity','info','gid','output','exec','metadata','758394iWSqwV','engine','data','execActivity','await-inactive-job-error','../telemetry','$self','537431GPBaDf','Pipe','logger','defineProperty','6248IbgrLc','aid','4BQNeAe','store','duplicate','l1s','Worker','jid','fault','authorizeReentry','message','publishMessage','setActivityAttributes','TelemetryService','leg','transact','worker-collation-overage','297hPHkhK','1350870tjvtNA','process','2600945prZbfb','worker-get-state-error','trc','config','subtype','../collator','CollatorService','error','77npFZoC','GenerationalError','Activity','2060784QWifTO','process-event-generational-job-error','resolve','worker-process','debug','worker-process-error','appId','../../modules/errors','guid','endActivitySpan','12XFnvGP'];a=function(){return m;};return a();}(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xcb))/0x1*(-parseInt(i(0xd1))/0x2)+-parseInt(i(0xba))/0x3+-parseInt(i(0xab))/0x4+parseInt(i(0xa0))/0x5*(-parseInt(i(0xb5))/0x6)+parseInt(i(0xa8))/0x7*(-parseInt(i(0xcf))/0x8)+parseInt(i(0xc4))/0x9+-parseInt(i(0x9e))/0xa*(-parseInt(i(0x9d))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x9505b));Object[j(0xce)](exports,'__esModule',{'value':!![]}),exports[j(0xd5)]=void 0x0;const errors_1=require(j(0xb2)),utils_1=require(j(0xb8)),collator_1=require(j(0xa5)),pipe_1=require(j(0xbb)),telemetry_1=require(j(0xc9)),activity_1=require(j(0xbe));class Worker extends activity_1[j(0xaa)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x9f)](){const k=j;this[k(0xcd)][k(0xaf)](k(0xae),{'jid':this[k(0xb9)][k(0xc3)]['jid'],'gid':this[k(0xb9)]['metadata'][k(0xc0)],'aid':this[k(0xc3)][k(0xd0)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x99))](this[k(0xc5)][k(0xb1)],this[k(0xa3)],this[k(0xc3)],this['context']),c[k(0xbd)](this[k(0x9a)]),this['mapInputData']();const d=this[k(0xd2)][k(0x9b)](),e=await this[k(0xc7)](d);await collator_1[k(0xa6)][k(0x95)](this,d),await this['setState'](d),await this['setStatus'](0x0,d);const f=await d[k(0xc2)]();c['mapActivityAttributes']();const g=this['resolveStatus'](f);return c[k(0x98)]({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0xc3)]['aid'];}catch(h){if(h instanceof errors_1['InactiveJobError']){this[k(0xcd)][k(0xa7)](k(0xc8),{'error':h});return;}else{if(h instanceof errors_1[k(0xa9)]){this[k(0xcd)]['info'](k(0xac),{'error':h});return;}else{if(h instanceof errors_1['GetStateError']){this[k(0xcd)][k(0xa7)](k(0xa1),{'error':h});return;}else{if(h instanceof errors_1['CollationError']){if(h[k(0xd7)]===k(0xd3)){this['logger'][k(0xbf)](k(0x9c),{'job_id':this['context'][k(0xc3)][k(0xd6)],'guid':this[k(0xb9)]['metadata'][k(0xb3)]});return;}this[k(0xcd)][k(0xa7)]('worker-collation-error',{'error':h});}else this['logger'][k(0xa7)](k(0xb0),{'error':h});}}}c?.[k(0xb6)](h[k(0x96)]);throw h;}finally{c?.[k(0xb4)](),this['logger'][k(0xaf)]('worker-process-end',{'jid':this[k(0xb9)][k(0xc3)]['jid'],'gid':this['context']['metadata'][k(0xc0)],'aid':this[k(0xc3)]['aid']});}}async[j(0xc7)](c){const l=j,d=pipe_1[l(0xcc)][l(0xad)](this[l(0xa3)][l(0xa4)],this['context']),e={'metadata':{'guid':(0x0,utils_1[l(0xb3)])(),'jid':this[l(0xb9)][l(0xc3)][l(0xd6)],'gid':this['context'][l(0xc3)]['gid'],'dad':this[l(0xc3)]['dad'],'aid':this['metadata']['aid'],'topic':d,'spn':this['context'][l(0xca)][l(0xc1)][l(0xc3)][l(0xd4)],'trc':this[l(0xb9)][l(0xc3)][l(0xa2)]},'data':this[l(0xb9)][l(0xc6)]};return this[l(0xa3)][l(0xb7)]&&(e[l(0xbc)]={'retry':this[l(0xa3)][l(0xb7)]}),await this[l(0xc5)]['router']?.[l(0x97)](d,e,c);}}exports[j(0xd5)]=Worker;
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;