UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

1 lines 2.55 kB
'use strict';const L=b;function a(){const S=['inflateDependencyData','other','join','__esModule','appId','5035696PIejKJ','12AgKuWg','getRaw','entries','hook','split','match','../serializer','symbols','51HMkfoB','fromString','flow','8755600xaIfNo','replace','20407370AfMGkx','restoreHierarchy','VALSEP','1973005aLvfid','export','6762QqmdLY','11900358tuTUyh','getAllSymbols','../../modules/key','inflate','SerializerService','store','215844wvKONE','defineProperty','8trPiYV','../../modules/utils','inflateKey','forEach'];a=function(){return S;};return a();}(function(c,d){const K=b,e=c();while(!![]){try{const f=parseInt(K(0x1d1))/0x1*(parseInt(K(0x1db))/0x2)+parseInt(K(0x1bd))/0x3*(-parseInt(K(0x1bf))/0x4)+-parseInt(K(0x1d9))/0x5*(-parseInt(K(0x1c9))/0x6)+parseInt(K(0x1d4))/0x7+-parseInt(K(0x1c8))/0x8+parseInt(K(0x1dc))/0x9+-parseInt(K(0x1d6))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xafed8));function b(c,d){const e=a();return b=function(f,g){f=f-0x1bc;let h=e[f];return h;},b(c,d);}Object[L(0x1be)](exports,L(0x1c6),{'value':!0x0}),exports['ExporterService']=void 0x0;const key_1=require(L(0x1de)),utils_1=require(L(0x1c0)),serializer_1=require(L(0x1cf));class ExporterService{constructor(c,d,f){const M=L;this[M(0x1c7)]=c,this['logger']=f,this[M(0x1bc)]=d;}async[L(0x1da)](c,d={}){const N=L;this[N(0x1d0)]||(this[N(0x1d0)]=this[N(0x1bc)][N(0x1dd)](),this[N(0x1d0)]=await this['symbols']);const f=await this['store'][N(0x1ca)](c);return this[N(0x1df)](f,[]);}[L(0x1c1)](c){const O=L;return c in this[O(0x1d0)]?this[O(0x1d0)][c]:c;}[L(0x1df)](c,d){const P=L,f={},g=this['inflateDependencyData'](d,{'hooks':{},'main':{'cursor':-0x1,'items':[]}}),h=/^([a-zA-Z]{3}),(\d+(?:,\d+)*)/;return Object[P(0x1cb)](c)[P(0x1c2)](([j,k])=>{const Q=P,m=j[Q(0x1ce)](h);if(m){const [p,q,u]=m,v=this[Q(0x1c1)](q),w=''+u[Q(0x1d5)](/,/g,'/'),x=serializer_1[Q(0x1e0)]['fromString'](k);f[w+'/'+v]=x;}else 0x3===j['length']&&(f[this[Q(0x1c1)](j)]=serializer_1[Q(0x1e0)][Q(0x1d2)](k));}),{'dependencies':g,'process':(0x0,utils_1[P(0x1d7)])(f),'status':c[':']};}[L(0x1c3)](c,d){const f=/([0-9,]+)-(\d+)$/,g=/-(\d+)$/;return c['map']((j,k)=>{const R=b,[m,q,v,w,...x]=j['split'](key_1[R(0x1d8)]),z=x['join'](key_1[R(0x1d8)]),A=z[R(0x1ce)](f);let B,C,D='';if(A){const [E,F,G]=A;D=F[R(0x1cd)](',')[R(0x1c5)]('/'),B=D+'['+G+']',C=R(0x1cc);}else{const H=z[R(0x1ce)](g);if(H){const [I,J]=H;B='['+J+']',C=R(0x1d3);}else B='/',C=R(0x1c4);}return{'type':m,'topic':q,'gid':v,'jid':z};});}}exports['ExporterService']=ExporterService;