if (self.CavalryLogger) { CavalryLogger.start_js(["cOAj\/o+"]); } __d("LSOptimisticRemoveAllOfTypeThenInsertEmojiSets",["LSArrayGetObjectAtV2","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.fe(c.ftr(c.db.table(151).fetch(),function(b){return c.i64.eq(b.c,a[1])}),function(a){return a["delete"]()})},function(e){return d[0]=c.i64.of_int32(a[0].length),c.i64.gt(d[0],[0,0])?c.loopAsync(d[0],function(e){return d[3]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAtV2"),a[0],d[3]).then(function(a){return a=a,d[4]=a[0],a})},function(b){return d[5]=d[4].get("category_idx"),d[4],d[6]=d[4].get("emoji_idx"),d[4],d[7]=d[4].get("emoji"),d[4],d[8]=d[4].get("sort_key"),d[4],c.db.table(151).add({a:d[5],b:d[6],c:a[1],e:d[7],d:d[8]})}])}):c.resolve()},function(e){return d[1]=new c.Map(),d[1].set("emoji_sets",a[0]),d[1].set("type",a[1]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"remove_all_emoji_sets_of_type_then_insert_emoji_sets",[0,329],d[2],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("MWChatCustomizeReactionsDialog.bs",["fbt","CometEmojiPicker.react","CometLink.react","CometPressable.react","EmojiFormat.bs","EmojiRenderer","LS.bs","LSDict","LSEmojiSetsType.bs","LSOptimisticRemoveAllOfTypeThenInsertEmojiSets","LSTransaction.bs","LSVec.bs","MDSText.react","MWCardedDialog.react","MWChatEmojiCategorySelector.bs","MWChatReactionEmoji.bs","MWChatReactionsUtils.bs","Promise","ReStore.bs","TetraButton.react","bs_caml_array","bs_caml_int64","bs_caml_splice_call","bs_curry","bs_int64","react","recoverableViolation","requireDeferred","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||b("react"),k={dialogContent:{width:"k4urcfbm",display:"j83agx80",flexDirection:"cbu4d94t",justifyContent:"taijpn5t",alignItems:"bp9cbjyn"},gridElement:{marginTop:"rs0gx3tq",marginEnd:"kady6ibp",marginBottom:"dicw6rsg",marginStart:"dwxx2s2f"},reactionsRow:{display:"j83agx80",justifyContent:"taijpn5t",paddingBottom:"j7796vcc"},dialogWrapper:{width:"rdnd2brk"},heading:{textAlign:"oqcyycmt",marginTop:"gh1tjcio",marginEnd:"bkv1mzkb",marginBottom:"o0krvn1l",marginStart:"cwvaatu0"},instructions:{paddingBottom:"ihqw7lf3",borderBottomColor:"lxuwth05",borderBottomStyle:"s44p3ltw",borderBottomWidth:"afxsp9o4",width:"k4urcfbm",textAlign:"oqcyycmt"},emojiPickerContainer:{width:"k4urcfbm"},buttonGroup:{display:"j83agx80",flexDirection:"btwxx1t3",justifyContent:"bkfpd7mw",paddingEnd:"d1544ag0",paddingStart:"tw6a2znq",paddingTop:"discj3wi",paddingBottom:"ihqw7lf3"},saveButton:{marginStart:"ozuftl9m",width:"tqthpub5"},emojiPicker:{paddingStart:"h4z51re5"},topPadding:{paddingTop:"cxgpxx05"},item:{opacity:"akz8cqyu",display:"q9uorilb",paddingTop:"jwdofwj8",paddingEnd:"n8tt0mok",paddingBottom:"r8blr3vg",paddingStart:"hyh9befq",height:"dh3eb45p",textAlign:"oqcyycmt",width:"thwo4zme",borderTopStartRadius:"taou7zlu",borderTopEndRadius:"lchaixk1",borderBottomEndRadius:"ij3lxc49",borderBottomStartRadius:"nxzu77ck"},selected:{backgroundColor:"g6srhlxm",opacity:"pedkr2u6"}},l=b("requireDeferred")("MWChatCustomReactionsLog.bs").__setRef("MWChatCustomizeReactionsDialog.bs"),m=b("requireDeferred")("MWChatCustomReactionsLog.bs").__setRef("MWChatCustomizeReactionsDialog.bs"),n=b("requireDeferred")("MWChatCustomReactionsLog.bs").__setRef("MWChatCustomizeReactionsDialog.bs");function a(a){var c=a.onClose,d=a.reactions,e=a.messageID,f=a.threadKey,h=b("ReStore.bs").useHook(void 0);a=j.useState(function(){return d});var o=a[1],p=a[0],q=JSON.stringify(p)!==JSON.stringify(d),r=JSON.stringify(p)!==JSON.stringify(b("MWChatReactionsUtils.bs").defaultCustomizableReactions);a=j.useState(function(){return 0});var s=a[1],t=a[0];a=j.useState(function(){return!1});var u=a[1],v=a[0];a=j.useCallback(function(a){return function(c,d){var e=p.slice(),f=e.findIndex(function(a){return b("bs_caml_int64").to_int32(a.emojiIdx)===d});f!==-1&&b("bs_caml_array").set(e,f,b("bs_caml_array").get(e,t));t!==-1&&b("bs_caml_array").set(e,t,{categoryIdx:b("bs_caml_int64").of_int32(c),emojiIdx:b("bs_caml_int64").of_int32(d),emoji:b("EmojiFormat.bs").codeArrayToUnicode(a),type_:b("LSEmojiSetsType.bs").userGenerated,sortKey:b("bs_caml_int64").of_int32(t)});return b("bs_curry")._1(o,function(a){return e})}},[p,o,t]);var w=j.useMemo(function(){return b("bs_caml_array").get(p,t).emoji},[p,t]),x=j.useCallback(function(a){b("bs_curry")._1(c,void 0),n.onReady(function(a){return b("bs_curry")._5(a.logExitCustomizeFlow,e,f,q,v?v:void 0,void 0)})},[c,e,q,v,f]),y=j.useCallback(function(a){var c=b("LSVec.bs").make(p.map(function(a,c){return b("LSDict").fromObject({category_idx:a.categoryIdx,emoji_idx:a.emojiIdx,sort_key:b("bs_caml_int64").of_int32(c),emoji:a.emoji})}));b("LSTransaction.bs").run(h,function(a){return b("LSOptimisticRemoveAllOfTypeThenInsertEmojiSets")(c,b("LSEmojiSetsType.bs").userGenerated,b("bs_curry")._1(b("LS.bs").make,a))},"readWrite").then(function(a){return b("Promise").resolve(void 0)})},[h,p]),z=j.useCallback(function(a){b("bs_curry")._1(y,void 0);m.onReady(function(a){p.forEach(function(c,g){var h=b("bs_caml_array").get(d,g).emoji;c=c.emoji;if(c!==h)return b("bs_curry")._5(a.logEditCustomizeFlow,e,f,g,h,c)})});l.onReady(function(a){return b("bs_curry")._5(a.logExitCustomizeFlow,e,f,r?q:void 0,v&&!r?v:void 0,void 0)});return b("bs_curry")._1(c,void 0)},[y,p,e,f,r,q,v]),A=j.useCallback(function(a){b("bs_curry")._1(o,function(a){return b("MWChatReactionsUtils.bs").defaultCustomizableReactions});return b("bs_curry")._1(u,function(a){return!0})},[o,b("MWChatReactionsUtils.bs").defaultCustomizableReactions,u]);return j.jsx(b("MWCardedDialog.react"),{withCloseButton:!0,onClose:x,children:j.jsxs("div",{className:(i||(i=b("stylex")))(k.dialogWrapper),children:[j.jsx("div",{className:i(k.heading),children:j.jsx(b("MDSText.react"),{color:"primary",type:"headlineEmphasized2",children:g._(/*FBT_CALL*/"Customize Reactions"/*FBT_CALL*/)})}),j.jsxs("div",{className:i(k.dialogContent),children:[b("bs_caml_splice_call").spliceApply(j.createElement,["div",{className:i(k.reactionsRow)},p.map(function(a,c){var d=b("EmojiRenderer").parse(a.emoji).map(function(a){return a.emoji});if(d.length!==1){b("recoverableViolation")("Unable to parse reaction emoji "+a.emoji,"messenger_comet");return null}d=d[0];return j.jsx("div",{className:(i||(i=b("stylex")))(k.gridElement),children:j.jsx(b("CometPressable.react"),{role:"menuitem",testid:"mw_customize_dialog_custom_reaction-"+a.emoji,onPress:function(a){return b("bs_curry")._1(s,function(a){return c})},overlayDisabled:!0,xstyle:function(a){return[k.item,t===c?k.selected:!1]},children:j.jsx(b("MWChatReactionEmoji.bs").make,{emoji:d,size:28,testid:"reactions_emoji_"+b("bs_int64").to_string(a.emojiIdx)})})},b("bs_int64").to_string(a.emojiIdx))})]),j.jsx("div",{className:i(k.instructions),children:j.jsx(b("MDSText.react"),{type:"meta4",children:g._(/*FBT_CALL*/"Tap a reaction, then choose an emoji to replace it."/*FBT_CALL*/)})}),j.jsx("div",{className:i(k.emojiPickerContainer),children:j.jsx(b("CometEmojiPicker.react"),{height:255,onSelect:b("bs_curry").__3(a),selectedEmoji:w,topSection:j.jsx("div",{className:i(k.topPadding)}),xstyle:k.emojiPicker,categorySelector:b("MWChatEmojiCategorySelector.bs").make,emojiSpacing:4,emojiSize:28})})]}),j.jsxs("div",{className:i(k.buttonGroup),children:[j.jsx(b("CometLink.react"),{role:"link",disabled:!r,style:{display:"flex",paddingTop:"12px",paddingRight:"12px",zIndex:"1",justifyContent:"flex-end"},children:j.jsx(b("MDSText.react"),{color:r?"blueLink":"disabled",type:"bodyLink3",children:g._(/*FBT_CALL*/"Reset"/*FBT_CALL*/)}),testid:"mw_chat_customize_reactions_dialog_reset_button",onClick:A}),j.jsx("div",{className:i(k.saveButton),children:j.jsx(b("TetraButton.react"),{disabled:!q,label:g._(/*FBT_CALL*/"Save"/*FBT_CALL*/),onPress:z,testid:"mw_chat_customize_reactions_dialog_save_button"})})]})]}),size:"content",testid:"mw_chat_customize_reactions_dialog"})}c=a;f.styles=k;f.$MWChatCustomReactionsLog$Deferred=l;f.$MWChatCustomReactionsLog$Deferred$1=m;f.$MWChatCustomReactionsLog$Deferred$2=n;f.make=c}),null); __d("MWChatCustomizeReactionsDialog",["MWChatCustomizeReactionsDialog.bs"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=d("MWChatCustomizeReactionsDialog.bs").make}),98); __d("LSAddPollForThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return b.fe(b.ftr(b.db.table(38).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.lt(c.f,[0,80])}),function(a){return a["delete"]()})},function(c){return b.db.table(38).add({a:a[0],f:[0,80],b:a[1],c:a[2],d:a[3],e:a[4],g:[0,0]})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSAddPollOptionV2",["LSVerifyPollExists"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(e){return c.sp(b("LSVerifyPollExists"),a[5],a[1],a[7],a[6],a[8]).then(function(a){return a=a,d[0]=a[0],a})},function(b){return d[0]?c.db.table(39).add({b:a[0],a:a[1],c:a[2],d:[0,0],e:a[3],f:a[4]}):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSAddPollVoteV2",["LSVerifyPollExists"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(e){return c.sp(b("LSVerifyPollExists"),a[5],a[1],a[6],a[3],a[7]).then(function(a){return a=a,d[0]=a[0],a})},function(b){return d[0]?c.seq([function(b){return c.db.table(40).add({b:a[0],a:a[1],c:a[2],d:a[3]})},function(b){return c.fe(c.ftr(c.db.table(39).fetch([[[a[1],a[0]]]]),function(b){return c.i64.eq(b.b,a[0])&&c.i64.eq(b.a,a[1])&&c.i64.le(b.e,a[3])}),function(b){var c=b.update;b.item;return c({d:a[4],e:a[3]})})}]):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSApplyNewGroupThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(9).fetch(),function(c){return b.i64.eq(c.a,a[1])||c.S===a[0]}).next().then(function(c,d){d=c.done;c=c.value;return d?b.seq([function(c){return b.fe(b.ftr(b.db.table(9).fetch([[[a[1]]]]),function(c){return b.i64.eq(c.a,a[1])&&b.i64.lt(c.Z,[0,80])}),function(a){return a["delete"]()})},function(c){return b.db.table(9).add({a:a[1],b:[0,0],c:a[2],e:a[3],A:a[4],g:a[5],i:a[6],j:a[6],u:[0,0],B:a[8],C:a[9],D:a[10],E:a[11],L:a[12],P:a[13],bb:[0,0],S:a[0],Z:[0,80],bh:[-1,4294967295]})}]):(c.item,b.fe(b.ftr(b.db.table(9).fetch(),function(c){return b.i64.eq(c.a,a[1])||c.S===a[0]}),function(b){var c=b.update;b.item;return c({a:a[1],e:a[3],A:a[4],g:a[5],i:a[6],j:a[6],u:[0,0],B:a[8],C:a[9],D:a[10],E:a[11],L:a[12],P:a[13],bb:[0,0],Z:[0,80],bh:[-1,4294967295]})}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSBumpThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.i64.eq(a[1],[0,1])?b.fe(b.db.table(9).fetch([[[a[2]]]]),function(b){var c=b.update;b.item;return c({j:a[0],i:a[0]})}):b.i64.eq(a[1],[0,2])?b.fe(b.db.table(9).fetch([[[a[2]]]]),function(b){var c=b.update;b.item;return c({i:a[0]})}):b.i64.eq(a[1],[0,3])?b.db.table(9).fetch([[[a[2]]]]).next().then(function(c,d){var e=c.done;c=c.value;return e?0:(d=c.item,b.i64.le(d.i,d.j)?b.fe(b.db.table(9).fetch([[[a[2]]]]),function(b){var c=b.update;b.item;return c({j:a[0],i:a[0]})}):b.fe(b.db.table(9).fetch([[[a[2]]]]),function(b){var c=b.update;b.item;return c({i:a[0]})}))}):b.resolve(0)},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSChangeViewerStatus",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({v:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSCheckAuthoritativeMessageExists",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(e){return b.seq([function(d){return b.ftr(b.db.table(12).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&c.f===a[1]&&b.i64.eq(c.V,[0,80])}).next().then(function(a,b){b=a.done;a=a.value;return b?c[0]=!1:(a.item,c[0]=!0)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSCleanupOptimisticOrderingOfSentMessages",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.seq([function(d){return b.ct(b.ftr(b.db.table(12).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.neq(c.c,e)&&b.i64.neq(c.d,e)&&(b.i64.eq(c.V,[0,20])||b.i64.eq(c.V,[0,60]))})).then(function(a){return c[0]=a})},function(d){return b.i64.eq(c[0],[0,0])?b.fe(b.ftr(b.db.table(12).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq(c.V,[0,80])&&b.i64.neq(c.d,e)}),function(a){var b=a.update;a=a.item;return b({c:a.b,d:e})}):b.resolve()}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSClearAttemptedJoiners",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(79).fetch(),function(b){return b.b===a[0]}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSClearCommunityMembersAndRange",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(a){return b.seq([function(a){return b.fe(b.db.table(170).fetch(),function(a){return a["delete"]()})},function(a){return b.fe(b.db.table(189).fetch(),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSClearInThreadBannerTables",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(a){return b.seq([function(a){return b.fe(b.db.table(118).fetch(),function(a){return a["delete"]()})},function(a){return b.fe(b.db.table(119).fetch(),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSClearLocalThreadPictureUrl",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return function(a){b.logger(a).info(a)}("clearLocalThreadPictureUrl"),b.fe(b.ftr(b.db.table(9).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&!c.R&&(b.i64.eq(c.c,[0,2])||b.i64.eq(c.c,[0,5]))&&c.f!==d&&b.like(c.f,"file:%")}),function(a){var b=a.update;a.item;return b({f:d})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSComputeOptimisticThreadCapabilities",["LSArrayGetObjectAtV2","LSComputeParticipantCapabilities","LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(a){return d[0]=c.createArray(),c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[1]=a[0],a})},function(e){return c.fe(c.db.table(14).fetch([[[a[0],{lt:d[1]}],[a[0],{gt:d[1]}]]]),function(e){var f=e.item;return c.seq([function(e){return c.sp(b("LSComputeParticipantCapabilities"),f.b,a[0]).then(function(a){return a=a,d[15]=a[0],a})},function(a){return d[0].push(d[15]),d[0]}])})},function(a){return d[2]=[0,1073741823],d[3]=c.i64.of_int32(d[0].length),c.i64.gt(d[3],[0,0])?c.loopAsync(d[3],function(a){return d[15]=a,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAtV2"),d[0],d[15]).then(function(a){return a=a,d[16]=a[0],a})},function(a){return d[2]=c.i64.and_(d[2],d[16])}])}):c.resolve()},function(b){return d[4]=c.i64.of_int32(d[0].length),d[5]=[64,1133827359],d[6]=[0,0],c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=[d[5],[0,1]],d[7]=c[0],d[8]=c[1],c):(b=a.item,c=[d[5],b.c],d[7]=c[0],d[8]=c[1],c)})},function(a){return d[10]=c.i64.lsl_([0,1],c.i64.to_int32([0,10])),d[11]=c.i64.lsl_([0,1],c.i64.to_int32([0,23])),d[12]=c.createArray(),d[12].push(c.i64.eq([0,6],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,6])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,0])):[0,0]),d[12],d[12].push(c.i64.eq([0,7],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,7])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,1])):[0,0]),d[12],d[12].push(c.i64.eq([0,72],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,72])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,12])):[0,0]),d[12],d[12].push(c.i64.eq([0,8],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,8])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,2])):[0,0]),d[12],d[12].push(c.i64.eq([0,9],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,9])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,3])):[0,0]),d[12],d[12].push(c.i64.eq([0,10],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,10])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,4])):[0,0]),d[12],d[12].push(c.i64.eq([0,5],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,5])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,8])):[0,0]),d[12],d[12].push(c.i64.eq([0,11],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,11])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,14])):[0,0]),d[12],d[12].push(c.i64.eq([0,12],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,12])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,15])):[0,0]),d[12],d[12].push(c.i64.eq([0,13],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,13])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,18])):[0,0]),d[12],d[12].push(c.i64.eq([0,14],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,14])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,20])):[0,0]),d[12],d[12].push(c.i64.eq([0,15],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,15])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,23])):[0,0]),d[12],d[12].push(c.i64.eq([0,16],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,16])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,24])):[0,0]),d[12],d[12].push(c.i64.eq([0,17],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,17])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,25])):[0,0]),d[12],d[12].push(c.i64.eq([0,3],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,3])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,10])):[0,0]),d[12],d[12].push(c.i64.eq(f,f)||c.i64.neq(c.i64.and_([0,0],d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,30])):[0,0]),d[12],d[12].push(c.i64.eq([0,24],f)||c.i64.neq(c.i64.and_(c.i64.lsl_([0,1],c.i64.to_int32([0,24])),d[2]),[0,0])?c.i64.lsl_([0,1],c.i64.to_int32([0,38])):[0,0]),d[12],d[13]=[0,0],d[14]=c.i64.of_int32(d[12].length),c.i64.gt(d[14],[0,0])?c.loopAsync(d[14],function(a){return d[15]=a,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAtV2"),d[12],d[15]).then(function(a){return a=a,d[16]=a[0],a})},function(a){return d[13]=c.i64.add(d[13],d[16])}])}):c.resolve()},function(a){return e[0]=c.i64.and_(d[13],c.i64.and_(c.i64.and_((c.i64.eq(d[8],[0,1])?c.i64.eq(d[4],[0,0]):!0)?c.i64.eq(c.i64.and_(d[7],d[10]),[0,0])?d[7]:c.i64.sub(d[7],d[10]):d[7],c.i64.eq(d[8],[0,2])?c.i64.eq(c.i64.and_(d[7],d[11]),[0,0])?d[7]:c.i64.sub(d[7],d[11]):d[7]),(c.i64.eq(d[8],[0,1])?c.i64.neq(d[4],[0,0]):!1)?d[7]:c.i64.xor(d[7],c.i64.lsl_([0,1],c.i64.to_int32([0,12])))))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSContactUpload",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=c.createArray(),c.seq([function(b){return c.fe(c.islc(c.ftr(c.db.table(7).fetch([[[{gt:a[0]}]]]),function(b){return c.i64.gt(b.a,a[0])&&(c.i64.eq(b.H,[0,1])||c.i64.eq(b.H,[0,4])||c.i64.eq(b.H,[0,0]))}),0,c.i64.to_float(a[1])),function(a){a=a.item;return d[0].push(a.a),d[0]})},function(e){return d[1]=c.i64.of_int32(d[0].length),d[2]=new c.Map(),d[2].set("contact_ids",d[0]),d[2].set("is_last_page",c.i64.lt(d[1],a[1])),d[2].set("last_primary_key",a[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"contact_upload",[0,152],d[3],f,a[2],[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSContactUploadUpdateSettings",["LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(74).put({a:d[0],b:a[0],c:"",d:"",e:[0,20]})},function(e){return d[1]=new c.Map(),d[1].set("status",a[0]),d[1].set("os_permission",a[1]),d[1].set("source",a[2]),d[1].set("contact_upload_protocol_source",a[3]),d[1].set("machine_id",a[4]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"contact_upload",[0,62],d[2],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSContactUploadUpdateSettingsSuccess",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(74).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.gt(c.e,[0,80])}).next().then(function(c){var d=c.done;c.value;return d?b.db.table(74).put({a:a[0],b:a[1],c:a[2],d:a[3],e:[0,80]}):0})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSCreateCtaAccountLinkEncodedUrlV2",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[0].set("action_url",a[1]),d[0].set("cta_id",a[2]),d[0].set("attachment_fbid",a[3]),d[0].set("attachment_index",a[4]),d[0].set("message_id",a[5]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"account_link_encoded_url_create_v2",[0,79],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSCreateMeetingPlan",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("location",a[2]),d[2].set("meeting_time",a[1]),d[2].set("notes",a[3]),d[2].set("thread_key",a[0]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"marketplace_create_meeting_plan",[0,196],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSCreateVideoChatLink",["LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.fe(c.ftr(c.db.table(78).fetch([[[a[0]]],"optimistic"]),function(b){return b.b===a[0]&&c.i64.lt(b.o,[0,20])}),function(a){return a["delete"]()})},function(b){return c.db.table(78).add({a:a[0],b:a[0],f:[0,4],e:!1,c:d[0],d:[0,0],i:[0,0],l:!1,m:[0,2],o:[0,20]})},function(e){return d[1]=new c.Map(),d[1].set("optimistic_client_token",a[0]),d[1].set("funnel_session_id",a[6]),d[1].set("referral_surface",a[7]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"video_chat_link_create",[0,125],d[2],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSTruncateTableAndSetShowError",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(a){return b.fe(b.db.table(115).fetch(),function(a){return a["delete"]()})},function(c){return b.db.table(115).add({a:void 0,b:b.i64.of_float(Date.now()),c:a[0]})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteAllAndInsertConnectivityStatus",["LSTruncateTableAndSetShowError"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[];return c.seq([function(d){return c.seq([function(a){return c.fe(c.db.table(114).fetch(),function(a){return a["delete"]()})},function(b){return c.db.table(114).add({a:void 0,b:c.i64.of_float(Date.now()),c:a[0]})},function(d){return c.sp(b("LSTruncateTableAndSetShowError"),c.i64.neq(a[0],[0,1]))}])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("LSDeleteAllReactions",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(8).fetch([[[a[0],a[1]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteAllRecentSearches",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(a){return b.fe(b.db.table(68).fetch(),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteBanner",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(118).fetch([[[a[1],a[0]]]]),function(c){return b.i64.eq(c.a,a[1])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[0])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteBanners",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(118).fetch(),function(c){return b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[0])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteCTAs",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.fe(b.db.table(16).fetch([[[a[1],a[0],a[2]]]]),function(a){var b=a.update;a.item;return b({r:d,s:d,t:d,u:d,v:d,w:d,x:d,y:d,z:d})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteCommunityFolder",["LSDeleteThread"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.db.table(162).fetch([[[a[0]]]]).next().then(function(a,e){var f=a.done;a=a.value;return f?0:(e=a.item,c.seq([function(a){return d[0]=e.a,c.fe(c.ftr(c.db.table(162).fetch(),function(a){return c.i64.eq(a.a,d[0])}),function(a){return a["delete"]()})},function(a){return c.sp(b("LSDeleteThread"),d[0],!1)}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSDeleteExpiredMSuggestions",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(21).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.lt(c.f,b.i64.of_float(Date.now()))}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteFocusModeCta",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(30).fetch([[[a[0],a[1],a[2]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteLiveLocationSharer",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(149).fetch([[[a[0],a[1]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteMessage",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[0]]]]),function(c){return c.e===a[1]&&b.i64.eq(c.a,a[0])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteMessageRequest",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(34).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeletePollData",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(38).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteRecentSearch",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(68).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteRtcMultiwayCallInitiationConferenceName",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(24).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteRtcOngoingCallData",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(23).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertAdminApprovalRequest",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(26).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])&&b.i64.gt(c.d,a[3])}).next().then(function(c){var d=c.done;c.value;return d?b.db.table(26).put({a:a[0],b:a[1],d:a[3],c:a[2]}):0})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertAttachment",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(16).fetch([[[a[32],a[37],a[39]]]]),function(c){return b.i64.eq(c.a,a[32])&&b.i64.eq([0,0],a[33])&&c.c===a[37]&&c.e===a[39]&&b.i64.gt(c.bU,a[108])}).next().then(function(c){var d=c.done;c.value;return d?b.db.table(16).put({a:a[32],c:a[37],e:a[39],j:a[3],k:a[4],f:a[34],b:a[36],l:a[40],bU:a[108],h:a[1],i:a[2],A:a[5],B:a[6],C:a[7],D:a[8],E:a[9],F:a[10],G:a[11],H:a[12],I:a[13],J:a[15],K:a[16],L:a[17],P:a[18],X:a[19],Y:a[20],Z:a[21],ba:a[22],bb:a[23],bc:a[24],bd:a[25],be:a[26],bi:a[27],bj:a[28],bk:a[29],bJ:a[30],bT:a[31],d:a[38],m:a[41],n:a[42],o:a[43],p:a[44],q:a[45],r:a[47],s:a[48],t:a[49],u:a[51],v:a[52],w:a[53],x:a[55],y:a[56],z:a[57],M:a[58],N:a[59],O:a[60],Q:a[61],R:a[62],S:a[63],T:a[64],U:a[65],V:a[66],W:a[67],bf:a[68],bg:a[69],bh:a[70],g:a[71],bl:a[73],bm:a[74],bn:a[75],bo:a[76],bp:a[77],bq:a[78],br:a[79],bs:a[80],bt:a[81],bv:a[82],bw:a[83],bx:a[84],by:a[85],bz:a[86],bA:a[87],bC:a[88],bD:a[89],bE:a[90],bF:a[91],bG:a[92],bH:a[93],bK:a[94],bO:a[95],bP:a[96],bL:a[97],bM:a[98],bN:a[99],bQ:a[100],bR:a[101],bS:a[102],bV:a[106],bW:a[107]}):0})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertAttachmentConversion",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(164).put({a:a[0],b:a[1],e:a[4],c:a[2],d:a[3]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertCmCommunityList",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(166).put({a:a[0]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSGetFirstAvailableFocusModeCTAID",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(a){return b.seq([function(a){return b.sb(b.db.table(30).fetch(),[["c","DESC"]]).next().then(function(a,d){var e=a.done;a=a.value;return e?c[0]=[0,1]:(d=a.item,c[0]=b.i64.add(d.c,[0,1]))})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSDeleteThenInsertFocusModeCta",["LSGetFirstAvailableFocusModeCTAID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetFirstAvailableFocusModeCTAID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(30).put({a:a[0],b:a[1],c:d[0],e:a[3],d:a[2],f:a[4],g:"focus_mode_exit",h:a[6]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSDeleteThenInsertLinkedAccountBadge",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSDeleteThenInsertLinkedGroup",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(130).put({a:a[0],b:a[1],c:a[2],d:a[3]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertMessage",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(12).fetch([[[a[9]]],"optimistic"]).next().then(function(c,d){var e=c.done;c=c.value;return e?b.db.table(12).add({a:a[3],b:a[5],e:a[8],f:a[9],V:a[2],c:a[6],h:a[10],j:a[12],k:a[14],l:a[15],g:a[0],W:a[1],d:a[7],i:a[11],m:a[16],X:a[17],n:a[18],o:a[19],p:a[20],q:a[21],r:a[22],s:a[23],t:a[24],u:a[25],v:a[26],w:a[27],x:a[28],y:a[29],z:a[30],A:a[32],B:a[33],C:a[34],D:a[35],E:a[36],F:a[37],G:a[38],H:a[39],I:a[40],Z:a[41],J:a[42],K:a[43],L:a[44],M:a[45],N:a[46],O:a[47],P:a[48],Q:a[49],R:a[50],S:a[51],T:a[52],U:a[53],Y:a[54],ba:a[55],bb:a[56]}):(d=c.item,b.i64.le(d.V,a[2])?b.db.table(12).put({a:a[3],b:a[5],e:a[8],f:a[9],V:a[2],c:d.c,h:a[10],j:a[12],k:a[14],l:a[15],g:a[0],W:a[1],d:d.d,i:a[11],m:a[16],X:a[17],n:a[18],o:a[19],p:a[20],q:a[21],r:a[22],s:a[23],t:a[24],u:a[25],v:a[26],w:a[27],x:a[28],y:a[29],z:a[30],A:a[32],B:a[33],C:a[34],D:a[35],E:a[36],F:a[37],G:a[38],H:a[39],I:a[40],Z:a[41],J:a[42],K:a[43],L:a[44],M:a[45],N:a[46],O:a[47],P:a[48],Q:a[49],R:a[50],S:a[51],T:a[52],U:a[53],Y:a[54],ba:a[55],bb:a[56]}):b.resolve())})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertMessagingSettings",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(83).put({a:[0,1],b:a[0],c:a[1],d:a[2],e:a[3],f:a[4]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertValueModelFeature",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(137).put({a:a[0],b:a[1],c:a[2]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertValueModelOutput",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(138).put({a:a[0],b:a[1],c:a[2]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertValueModelRule",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(136).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDownloadStickerPack",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.db.table(122).fetch([[[a[0]]]]).next().then(function(e,g){g=e.done;e=e.value;return g?(d[1]=new c.Map(),d[1].set("pack_id",a[0]),d[1].set("sticker_width",a[1]),d[1].set("sticker_thumbnail_width",a[2]),d[1].set("scale",a[3]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"sticker_pack_download",[0,133],d[2],f,f,[0,0],f)):(e.item,function(a){c.logger(a).warn(a)}("pack ID already exists"))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSEnterMessengerCallRoom",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.fe(c.db.table(78).fetch([[[a[0]]]]),function(a){var b=a.update;a.item;return b({f:[0,2]})})},function(e){return d[0]=new c.Map(),d[0].set("url",a[0]),d[0].set("funnel_session_id",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"video_chat_link_enter_room",[0,127],d[1],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchLinkedGroupForThread",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"FETCH_GROUP",[0,187],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchMultiwayConferenceName",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("group_thread_id",a[0]),d[0].set("peer_id",a[1]),d[0].set("is_video_call",a[2]),d[0].set("call_trigger",a[3]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"rtc_fetch_multiway_conference_name",[0,80],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchPinnedThreads",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(a){return d[0]=new c.Map(),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"fetch_pinned_threads",[0,288],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFlushDataTrace",["LSFlushDataTrace.bs"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[];return c.seq([function(d){return c.nop(b("LSFlushDataTrace.bs"),a[0])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("LSGdprConsentUpsert",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(75).put({a:d[0],b:a[0]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSGenerateOrRefreshForwardContent",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(129).fetch([[[a[0],a[1]]]]).next().then(function(b){var d=b.done;b.value;return d?c.db.table(129).add({a:a[0],b:a[1],c:a[0],f:[0,2],h:c.i64.of_float(Date.now())}):0})},function(e){return c.i64.eq(a[1],[0,5])?c.seq([function(b){return c.fe(c.db.table(129).fetch([[[a[0],a[1]]]]),function(a){var b=a.update;a.item;return b({f:[0,1],h:c.i64.of_float(Date.now())})})},function(e){return d[0]=new c.Map(),d[0].set("value",a[0]),d[0].set("type",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"FORWARD_CONTENT_GENERATE",[0,52],d[1],f,f,[0,0],f)}]):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSGetAttachmentFbidWithOriginalFileHash",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.ftr(b.db.table(16).fetch(),function(c){return c.bJ===a[0]&&b.i64.eq(c.bU,[0,80])}).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=e:(b=a.item,c[0]=b.e)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetFirstAvailablePersistentMenuItemsCTAID",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(a){return b.seq([function(a){return b.sb(b.db.table(77).fetch(),[["b","DESC"]]).next().then(function(a,d){var e=a.done;a=a.value;return e?c[0]=[0,1]:(d=a.item,c[0]=b.i64.add(d.b,[0,1]))})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetFirstAvailableThreadNullstateCTAID",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(a){return b.seq([function(a){return b.db.table(29).fetchDesc().next().then(function(a,d){var e=a.done;a=a.value;return e?c[0]=[0,1]:(d=a.item,c[0]=b.i64.add(d.a,[0,1]))})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetInboxActiveNowScore",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(e){return b.seq([function(d){return b.db.table(134).fetch([[[a[0],[0,0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=0:(b=a.item,c[0]=b.c)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetIsActive",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(e){return b.seq([function(d){return b.db.table(186).fetch([[[a[0]]]]).next().then(function(a,d){var e=a.done;a=a.value;return e?c[0]=!1:(d=a.item,c[0]=b.i64.eq(d.b,[0,2]))})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetIsFinalUploadingState",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(f){return c.seq([function(b){return d[0]=c.createArray(),c.db.table(51).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?0:(b=a.item,d[4]=new c.Map(),d[4].set("offline_attachment_id",b.a),d[4].set("offline_threading_id",b.b),d[4].set("in_message_index",b.c),d[4].set("attachment_type",b.d),d[4].set("should_transcode",b.e),d[4].set("use_double_phase",b.f),d[4].set("send_by_server",b.g),d[4].set("is_secure",b.h),d[4].set("state",b.i),d[4].set("fbid",b.j),d[4].set("metadata",b.k),d[4].set("error",b.l),d[0].push(d[4]),d[0])})},function(a){return d[2]=c.i64.of_int32(d[0].length),c.i64.neq(d[2],[0,0])?c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAtV2"),d[0],[0,0]).then(function(a){return a=a,d[4]=a[0],a})},function(a){return d[5]=d[4].get("state"),d[4],d[6]=d[4].get("use_double_phase"),d[4],d[3]=d[6]?c.i64.eq(d[5],[0,9]):c.i64.eq(d[5],[0,3])}]):c.resolve(d[3]=!1)},function(a){return e[0]=d[3]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSGetMediaSendConfig",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(a){return b.seq([function(a){return b.ftr(b.db.table(51).fetch(),function(a){return a.b===d[4]}).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[e,e,e,e,e],c[0]=d[0],c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],d):(b=a.item,d=[b.e,b.f,b.g,b.h,e],c[0]=d[0],c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],d)})},function(a){return a=[c[0],c[1],c[2],c[3]],d[0]=a[0],d[1]=a[1],d[2]=a[2],d[3]=a[3],d[4]=a[4],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetParentThreadKey",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(e){return b.seq([function(d){return b.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=[0,0]:(b=a.item,c[0]=b.A)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetScoreTypeRankingScore",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(e){return b.seq([function(d){return b.db.table(134).fetch([[[a[0],a[1]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=0:(b=a.item,c[0]=b.c)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetThreadAttributionInfo",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(31).fetch([[[a[0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[[0,0],e,e],c[0]=d[0],c[1]=d[1],c[2]=d[2],d):(b=a.item,d=[b.e==null?[0,0]:b.e,b.g,b.h],c[0]=d[0],c[1]=d[1],c[2]=d[2],d)})},function(a){return a=[c[0],c[1],c[2]],d[0]=a[0],d[1]=a[1],d[2]=a[2],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetUploadParamsForPhase2",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(51).fetch([[[a[0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[e,e,e],c[0]=d[0],c[1]=d[1],c[2]=d[2],d):(b=a.item,d=[b.b,b.m,b.j],c[0]=d[0],c[1]=d[1],c[2]=d[2],d)})},function(a){return c[0]!==e?b.seq([function(a){return b.db.table(12).fetch([[[c[0]]],"optimistic"]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[7]=e:(b=a.item,c[7]=b.a)})},function(a){return a=[c[1],c[7],c[2]],c[4]=a[0],c[5]=a[1],c[6]=a[2],a}]):b.resolve((a=[e,e,e],c[4]=a[0],c[5]=a[1],c[6]=a[2],a))},function(a){return a=[c[4],c[5],c[6]],d[0]=a[0],d[1]=a[1],d[2]=a[2],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSHandleRepliesOnUnsend",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return d[0]=c.createArray(),c.fe(c.ftr(c.db.table(12).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&b.r===a[1]}),function(a){a=a.item;return d[0].push(a.e),d[0]})},function(e){return d[1]=c.i64.of_int32(d[0].length),(c.i64.eq(d[1],[0,0])?!0:!1)?c.resolve():(d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("message_id",a[1]),d[2].set("reply_message_ids",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"update_replies_on_unsend",[0,74],d[3],f,f,[0,0],f))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSHandleSyncFailure",["LSLogEventAnnotate.bs"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(e){return function(a){c.logger(a).mustfix(a)}(a[1]),d[0]=new c.Map(),d[0].set("database_id",a[0]),d[0].set("error_msg",a[1]),c.nop(b("LSLogEventAnnotate.bs"),[0,16],[0,35],[0,0],d[0])},function(b){return c.fe(c.db.table(3).fetch([[["",a[0]]]]),function(a){var b=a.update;a=a.item;return b({f:c.i64.add(a.f,[0,1]),c:f})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSInsertAttemptedJoiner",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return d[0]=c.i64.of_int32(a[1].length),c.i64.gt(d[0],[0,0])?c.loopAsync(d[0],function(e){return d[1]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAtV2"),a[1],d[1]).then(function(a){return a=a,d[2]=a[0],a})},function(b){return d[3]=d[2].get("participant_status"),d[2],d[4]=d[2].get("user_id"),d[2],d[5]=d[2].get("name"),d[2],d[6]=d[2].get("list_rank"),d[2],d[7]=d[2].get("last_attempted_join_time"),d[2],d[8]=d[2].get("room_invite_reason"),d[2],c.db.table(79).put({b:a[0],a:d[4],c:d[5]})}])}):c.resolve()},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSInsertCommunityMember",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(170).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:a[8]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertContact",["LSSetThreadImageURL"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[];return c.seq([function(d){return c.seq([function(b){return c.seq([function(b){return c.fe(c.ftr(c.db.table(7).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&c.i64.eq([0,1],[0,1])&&c.i64.lt(b.J,a[21])}),function(a){return a["delete"]()})},function(b){return c.db.table(7).add({a:a[0],b:a[2],c:a[3],d:a[4],e:a[5],f:a[6],g:a[7],h:a[9],K:a[41],i:a[10],k:a[11],l:a[12],m:a[35],n:a[14],o:a[17],p:a[18],q:a[19],r:a[20],J:a[21],s:a[22],t:a[23],u:a[24],v:a[25],w:a[26],z:a[27],x:a[28],y:a[29],A:a[30],B:a[31],C:a[32],j:a[33],E:a[34],F:a[36],G:a[37],Q:a[38],H:a[39],I:a[40],N:a[43],O:[0,0],P:a[44]})}])},function(d){return c.sp(b("LSSetThreadImageURL"),a[0],a[2],a[3],a[4],!1,!0)}])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("LSInsertCreatedVideoChatLink",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(78).fetch([[[a[0]]],"optimistic"]).next().then(function(c,d){var e=c.done;c=c.value;return e?0:(d=c.item,b.i64.eq(d.f,[0,6])?b.fe(b.db.table(78).fetch([[[a[0]]],"optimistic"]),function(b){var c=b.update;b.item;return c({a:a[1],c:a[2],d:a[3],e:a[4],j:a[5],l:a[6],m:a[7],f:[0,6],h:a[8],o:[0,80],n:a[9]})}):b.fe(b.db.table(78).fetch([[[a[0]]],"optimistic"]),function(b){var c=b.update;b.item;return c({a:a[1],c:a[2],d:a[3],e:a[4],j:a[5],l:a[6],m:a[7],f:[0,5],h:a[8],o:[0,80],n:a[9]})}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertCta",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(15).add({a:a[0],b:a[1],c:a[3],d:a[4],e:a[5]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertEnterMessengerCallRoom",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(78).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({f:[0,3],g:a[1],h:a[2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertIntoAdminApprovalQueue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return b.fe(b.ftr(b.db.table(26).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])&&b.i64.lt(c.d,[0,80])}),function(a){return a["delete"]()})},function(c){return b.db.table(26).add({a:a[0],b:a[1],d:[0,80],c:a[2]})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertLockStatus",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(78).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({m:a[2],l:a[1],o:[0,80],n:a[3]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertMessage",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(d){return b.i64.eq(a[2],[0,20])?b.db.table(12).add({a:a[3],b:a[5],e:a[8],f:a[9],V:a[2],c:a[6],h:a[10],j:a[12],k:a[14],l:a[15],g:a[0],W:a[1],d:a[7],i:a[11],m:a[16],X:a[17],n:a[18],o:a[19],p:a[20],q:a[21],r:a[22],s:a[23],t:a[24],u:a[25],v:a[26],w:a[27],x:a[28],y:a[29],z:a[30],A:a[32],B:a[33],C:a[34],D:a[35],E:a[36],F:a[37],G:a[38],H:a[39],I:a[40],Z:a[41],J:a[42],K:a[43],L:a[44],M:a[45],N:a[46],O:a[47],P:a[48],Q:a[49],R:a[50],S:a[51],T:a[52],U:a[53],Y:a[54],ba:a[55],bb:a[56]}):b.seq([function(d){return b.db.table(12).fetch([[[a[9]]],"optimistic"]).next().then(function(b,d){var e=b.done;b=b.value;return e?(e=[a[6],a[7]],c[0]=e[0],c[1]=e[1],e):(d=b.item,e=[d.c,d.d],c[0]=e[0],c[1]=e[1],e)})},function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[9]]],"optimistic"]),function(c){return c.f===a[9]&&b.i64.lt(c.V,a[2])}),function(a){return a["delete"]()})},function(d){return b.db.table(12).add({a:a[3],b:a[5],e:a[8],f:a[9],V:a[2],c:c[0],h:a[10],j:a[12],k:a[14],l:a[15],g:a[0],W:a[1],d:c[1],i:a[11],m:a[16],X:a[17],n:a[18],o:a[19],p:a[20],q:a[21],r:a[22],s:a[23],t:a[24],u:a[25],v:a[26],w:a[27],x:a[28],y:a[29],z:a[30],A:a[32],B:a[33],C:a[34],D:a[35],E:a[36],F:a[37],G:a[38],H:a[39],I:a[40],Z:a[41],J:a[42],K:a[43],L:a[44],M:a[45],N:a[46],O:a[47],P:a[48],Q:a[49],R:a[50],S:a[51],T:a[52],U:a[53],Y:a[54],ba:a[55],bb:a[56]})}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSInsertMessageSearchResult",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(69).add({a:a[0],d:a[3],c:a[2],b:a[1],e:a[4],h:a[5],f:a[6],g:a[7],l:a[9],m:a[10],i:a[8],j:a[11],k:a[12]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertNewBanner",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(118).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:a[8],j:a[9],k:a[10],l:a[11],m:a[13],n:a[14],o:a[15],p:a[17],q:a[18],r:a[19],s:a[20],t:a[21]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertOrUpdateCowatchSession",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return b.fe(b.ftr(b.db.table(80).fetch([[[{lt:a[0]}],[{gt:a[0]}]]]),function(c){return b.i64.eq(c.b,a[1])&&c.a!==a[0]}),function(a){return a["delete"]()})},function(c){return b.db.table(80).fetch([[[a[0]]]]).next().then(function(c,d){var e=c.done;c=c.value;return e?b.db.table(80).add({a:a[0],b:a[1]}):(d=c.item,b.i64.neq(d.b,a[1])?b.fe(b.db.table(80).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({b:a[1]})}):b.resolve())})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertOrUpdateFeatureLimit",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(150).fetch([[[a[0]]]]).next().then(function(c,d){var e=c.done;c=c.value;return e?b.db.table(150).add({a:a[0],b:a[1]}):(d=c.item,b.i64.neq(d.b,a[1])?b.fe(b.db.table(150).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({b:a[1]})}):b.resolve())})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertOrUpdateInThreadBannerOnUnsend",["LSInsertNewBanner"],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(a){return b.resolve()},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertOrUpdatePinnedThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(82).put({a:a[0],b:a[1]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertOrUpdateSelfProfile",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(81).fetch([[[d[0]]]]).next().then(function(b,e){var g=b.done;b=b.value;return g?c.db.table(81).add({a:d[0],b:a[0],c:a[1],d:a[2]}):(e=b.item,c.seq([function(b){return e.b!==a[0]&&a[0]!==f?c.fe(c.db.table(81).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({b:a[0]})}):c.resolve()},function(b){return e.c!==a[1]&&a[1]!==f?c.fe(c.db.table(81).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({c:a[1]})}):c.resolve()},function(b){return e.d!==a[2]&&a[2]!==f?c.fe(c.db.table(81).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({d:a[2]})}):c.resolve()}]))})},function(b){return c.db.table(81).fetch([[[d[0]]]]).next().then(function(b,e){e=b.done;b=b.value;return e?c.db.table(81).add({a:d[0],e:a[3],f:a[4]}):(b.item,c.seq([function(b){return a[3]!==f?c.fe(c.db.table(81).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({e:a[3]})}):c.resolve()},function(b){return a[4]!==f?c.fe(c.db.table(81).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({f:a[4]})}):c.resolve()}]))})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSInsertPersistentMenuItemsForThread",["LSGetFirstAvailablePersistentMenuItemsCTAID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetFirstAvailablePersistentMenuItemsCTAID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(77).add({a:a[0],b:d[0],c:a[1],d:a[2],e:a[3],f:a[4],g:a[5],h:a[6],i:a[7]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSInsertRecentSearch",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSInsertRecentSearchResult",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.i64.eq(a[1],[0,3])?c[0]=a[8]:c[0]=e,b.db.table(68).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:c[0],j:a[9],k:a[10]})},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSInsertResolvedVideoChatLink",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.fe(b.db.table(78).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({c:a[1],d:a[2],e:a[3],j:a[4],l:a[6],m:a[7],f:[0,1],h:a[8],k:a[5],o:[0,80],n:a[9],g:d})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertRtcSignal",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(22).add({a:a[0],b:a[1],c:a[2]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertSearchResult",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(65).add({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:a[8],j:a[9],k:a[10],l:a[11],m:a[12],n:a[13],o:a[14]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertSearchSection",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(66).add({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInviteParticipantToVideoChatLink",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return c[0]=!1,b.resolve(c)}e.exports=a}),null); __d("LSIssueNewStickerPackDetailFetch",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("sticker_id",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"sticker_to_collection",[0,129],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueNewStickerSearchQuery",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(124).put({a:a[0],b:[0,1]})},function(e){return d[0]=new c.Map(),d[0].set("query",a[0]),d[0].set("width",a[1]),d[0].set("scale",a[2]),d[0].set("thumbnail_width",a[3]),d[0].set("type",[0,1]),d[1]=c.i64.random(),d[2]=c.createArray(),d[2].push("sticker_search"),d[2],d[2].push(c.i64.to_string(d[1])),d[2],d[3]=c.toJSON(d[2]),d[4]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),d[3],[0,81],d[4],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueParticipantPointQuery",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("table","14"),d[0].set("type",[0,1]),d[0].set("1",a[0]),d[0].set("2",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"ppq",[0,17],d[1],f,f,[0,0],[0,1])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueRemoveStickerPack",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("pack_id",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"remove_sticker_pack",[0,141],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueRemoveStickerPacks",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("pack_ids",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"remove_sticker_packs",[0,203],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueReorderStickerPacks",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("pack_id",a[0]),d[0].set("old_index",a[1]),d[0].set("new_index",a[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"reorder_sticker_packs",[0,160],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueSetThreadImageTask",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("image_id",a[1]),d[2].set("emoji",f),d[2].set("gradient",f),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"thread_image",[0,37],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSJoinCommunityChannel",["LSIssueNewError","LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=[-1,4294967295]:(b=a.item,d[0]=b.A)})},function(a){return c.db.table(162).fetch([[[d[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[2]=[-1,4294967295]:(b=a.item,d[2]=b.b)})},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[4]=[0,1]:(b=a.item,d[14]=b.bd,c.i64.neq(d[14],f)?d[13]=d[14]:d[13]=[0,1],d[4]=d[13])})},function(a){return c.sb(c.db.table(115).fetch(),[["b","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[6]=!1:(b=a.item,d[6]=b.c)})},function(a){return d[6]===!0?(d[13]=c.localizeV2([0,2285622730],f),d[14]=c.localizeV2([0,1919524925],f),c.sp(b("LSIssueNewError"),f,[0,1545093],d[13],d[14])):c.resolve()},function(e){return d[8]=new c.Map(),d[8].set("thread_key",a[0]),d[8].set("community_id",d[2]),d[8].set("sync_group",d[4]),c.i64.gt([0,0],[0,0])?d[9]=c.i64.add(c.i64.of_float(Date.now()),[0,0]):d[9]=[0,0],d[10]=d[8].get("thread_key"),d[8],d[11]=c.toJSON(d[8]),c.sp(b("LSIssueNewTaskAndGetTaskID"),c.i64.to_string(d[10]),[0,337],d[11],f,f,[0,0],f).then(function(a){return a=a,d[12]=a[0],a})},function(a){return c.fe(c.ftr(c.db.table(162).fetch(),function(a){return c.i64.eq(a.b,d[2])}),function(a){var b=a.update;a.item;return b({h:d[12]})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSLocalMarkThreadRead",["LSMarkThreadRead"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(e){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(e,h){var i=e.done;e=e.value;return i?(d[2]=c.createArray(),d[3]=(d[2].push("ocalMarkThreadRead unable to find thread key in DB:"),d[2]),d[4]=(d[2].push(a[0]),d[2]),d[5]=c.toJSON(d[2]),function(a){c.logger(a).mustfix(a)}(d[5]),d[0]=f):(h=e.item,c.seq([function(a){return d[4]=h.i,d[5]=h.j,d[6]=h.a,c.db.table(12).fetchDesc([[[d[6]]]]).next().then(function(e,h){var a=e.done;e=e.value;return a?(d[7]=c.createArray(),d[8]=(d[7].push("localMarkThreadRead unable to find message with thread key in DB:"),d[7]),d[9]=(d[7].push(d[6]),d[7]),d[10]=c.toJSON(d[7]),function(a){c.logger(a).mustfix(a)}(d[10]),d[2]=f):(h=e.item,c.seq([function(a){return d[16]=h.b,d[7]=c.createArray(),d[8]=(d[7].push("localMarkThreadRead"),d[7]),d[9]=(d[7].push("lastMessageTimestampMs"),d[7]),d[10]=(d[7].push(d[16]),d[7]),d[11]=(d[7].push("currentLastActivityTimestampMs"),d[7]),d[12]=(d[7].push(d[4]),d[7]),d[13]=(d[7].push("currentLastReadWatermarkTimestampMs"),d[7]),d[14]=(d[7].push(d[5]),d[7]),d[15]=c.toJSON(d[7]),function(a){c.logger(a).info(a)}(d[15]),d[18]=c.i64.gt(d[16],d[4])?d[16]:d[4],c.i64.gt(d[18],d[5])?c.seq([function(a){return c.sp(b("LSMarkThreadRead"),d[18],d[6])},function(a){return d[17]=d[18]}]):c.resolve(d[17]=f)},function(a){return d[2]=d[17]}]))})},function(a){return d[0]=d[2]}]))})},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSLocalOptimisticCreateCommunityChannel",["LSArrayGetObjectAtV2","LSCreateOfflineThreadingID","LSGetViewerFBID","LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(a){return c.sp(b("LSCreateOfflineThreadingID"),c.i64.of_float(Date.now())).then(function(a){return a=a,d[0]=a[0],a})},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[1]=a[0],a})},function(a){return c.fe(c.ftr(c.db.table(9).fetch([[[d[0]]]]),function(a){return c.i64.eq(a.a,d[0])&&c.i64.lt(a.Z,[0,20])}),function(a){return a["delete"]()})},function(b){return c.db.table(9).add({a:d[0],b:[0,0],c:[0,18],O:d[0],e:"community",A:e[1],i:c.i64.of_float(Date.now()),j:c.i64.of_float(Date.now()),I:!1,o:d[1],u:[0,0],Z:[0,20],B:a[3],d:a[2],S:c.i64.to_string(d[0])})},function(e){return d[2]=c.i64.of_int32(a[1].length),c.i64.gt(d[2],[0,0])?c.loopAsync(d[2],function(e){return d[9]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAtV2"),a[1],d[9]).then(function(a){return a=a,d[10]=a[0],a})},function(a){return c.fe(c.ftr(c.db.table(14).fetch([[[d[0],d[10]]]]),function(a){return c.i64.eq(a.a,d[0])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[10])&&c.i64.lt(a.j,[0,20])}),function(a){return a["delete"]()})},function(a){return c.db.table(14).add({a:d[0],b:d[10],c:[0,0],d:[0,0],j:[0,20],m:!1})}])}):c.resolve()},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[3]=a[0],a})},function(e){return d[4]=new c.Map(),d[4].set("client_mutation_id",d[0]),d[4].set("community_id",a[0]),d[4].set("actor_id",d[3]),d[4].set("channel_name",a[2]),d[4].set("channel_description",a[3]),d[4].set("otid_of_first_message",d[0]),d[4].set("channel_category_id",f),c.i64.gt([0,0],[0,0])?d[5]=c.i64.add(c.i64.of_float(Date.now()),[0,0]):d[5]=[0,0],d[6]=d[4].get("community_id"),d[4],d[7]=c.toJSON(d[4]),c.sp(b("LSIssueNewTaskAndGetTaskID"),c.i64.to_string(d[6]),[0,335],d[7],f,f,[0,0],f).then(function(a){return a=a,d[8]=a[0],a})},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSMarkAllThreadsRead",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(9).fetch(),function(c){return b.i64.lt(c.j,c.i)&&c.e===a[0]}),function(a){var c=a.item;return b.fe(b.ftr(b.db.table(9).fetch(),function(a){return b.i64.eq(a.a,c.a)}),function(a){var b=a.update;a.item;return b({j:c.i})})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSMarkMessageSendFailedAfterDeserializationError",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(31).fetch([[[a[0]]]]).next().then(function(a,c){var d=a.done;a=a.value;return d?0:(c=a.item,b.fe(b.db.table(12).fetch([[[c.c]],"optimistic"]),function(a){var b=a.update;a.item;return b({k:[0,4],l:[0,4]})}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSMarkOptimisticMessageFailed",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[0]]],"optimistic"]),function(c){return c.f===a[0]&&b.i64.eq(c.V,[0,20])}),function(a){var b=a.update;a.item;return b({k:[0,4],l:[0,4]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSNextPendingJobIdToSchedule",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(e){return c.seq([function(e){return d[2]=c.i64.of_int32(a[0].length),c.i64.neq(d[2],[0,0])?c.seq([function(a){return d[5]=new c.Map(),c.fe(c.ftr(c.db.table(51).fetch(),function(a){return c.i64.eq(a.c,[0,0])}),function(a){a=a.item;return d[5].set(a.b,a.i)})},function(e){return d[6]=f,d[7]=c.i64.of_int32(a[0].length),c.i64.gt(d[7],[0,0])?c.loopAsync(d[7],function(e){return d[10]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAtV2"),a[0],d[10]).then(function(a){return a=a,d[11]=a[0],a})},function(a){return d[6]!==f?d[12]=d[6]:(d[13]=d[5].get(d[11]),d[5],c.i64.neq(d[13],f)?(c.i64.eq(d[13],[-1,4294967293])?d[15]=!0:(c.i64.eq(d[13],[-1,4294967294])?d[17]=!0:(c.i64.eq(d[13],[-1,4294967295])?d[18]=!0:(c.i64.eq(d[13],[0,1])?d[19]=!0:(c.i64.eq(d[13],[0,2])?d[20]=!0:(c.i64.eq(d[13],[0,3])?d[21]=!0:(c.i64.eq(d[13],[0,4])?d[22]=!0:(c.i64.eq(d[13],[0,5])?d[23]=!0:(c.i64.eq(d[13],[0,6])?d[24]=!0:d[24]=!1,d[23]=d[24]),d[22]=d[23]),d[21]=d[22]),d[20]=d[21]),d[19]=d[20]),d[18]=d[19]),d[17]=d[18]),d[15]=d[17]),d[15]?d[16]=d[11]:d[16]=d[6],d[14]=d[16]):d[14]=d[6],d[12]=d[14]),d[6]=d[12]}])}):c.resolve()},function(e){return d[6]!==f?c.resolve((e=[d[6],!0],d[8]=e[0],d[9]=e[1],e)):c.seq([function(e){return d[10]=f,d[11]=c.i64.of_int32(a[0].length),c.i64.gt(d[11],[0,0])?c.loopAsync(d[11],function(e){return d[14]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAtV2"),a[0],d[14]).then(function(a){return a=a,d[15]=a[0],a})},function(a){return d[10]!==f?d[16]=d[10]:(d[17]=d[5].get(d[15]),d[5],c.i64.neq(d[17],f)?(c.i64.eq(d[17],[-1,4294967293])?d[19]=!0:(c.i64.eq(d[17],[-1,4294967294])?d[21]=!0:(c.i64.eq(d[17],[-1,4294967295])?d[22]=!0:(c.i64.eq(d[17],[0,1])?d[23]=!0:(c.i64.eq(d[17],[0,2])?d[24]=!0:(c.i64.eq(d[17],[0,3])?d[25]=!0:(c.i64.eq(d[17],[0,4])?d[26]=!0:(c.i64.eq(d[17],[0,5])?d[27]=!0:(c.i64.eq(d[17],[0,6])?d[28]=!0:d[28]=!1,d[27]=d[28]),d[26]=d[27]),d[25]=d[26]),d[24]=d[25]),d[23]=d[24]),d[22]=d[23]),d[21]=d[22]),d[19]=d[21]),d[19]?d[20]=d[10]:d[20]=d[15],d[18]=d[20]):d[18]=d[10],d[16]=d[18]),d[10]=d[16]}])}):c.resolve()},function(a){return d[10]!==f?(a=[d[10],!1],d[12]=a[0],d[13]=a[1],a):(a=[f,f],d[12]=a[0],d[13]=a[1],a),a=[d[12],d[13]],d[8]=a[0],d[9]=a[1],a}])},function(a){return a=[d[8],d[9]],d[3]=a[0],d[4]=a[1],a}]):c.resolve((e=[f,f],d[3]=e[0],d[4]=e[1],e))},function(a){return a=[d[3],d[4]],d[0]=a[0],d[1]=a[1],a}])},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSNotifyVideoChatLinkJoinAttempt",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("url",a[0]),d[0].set("funnel_session_id",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"video_chat_link_notify_join_attempt",[0,169],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOnDemandFetchPresence",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("contact_ids",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"ls_presence_on_demand_fetch",[0,184],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticDeleteSponsoredMessageAd",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("ad_client_token",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"sponsored_message_ad_hide",[0,51],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticExitFocusMode",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"focus_mode",[0,150],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticIgnoreMessageRequest",["LSDeleteThread","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(9).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&c.i64.eq(b.A,[-1,4294967295])&&b.e==="pending"}).next().then(function(e,g){g=e.done;e=e.value;return g?0:(e.item,c.seq([function(d){return c.sp(b("LSDeleteThread"),a[0],!1)},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"message_request",[0,65],d[3],f,f,[0,0],f)}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticRemoveThreadImage",["LSIssueNewTask","LSSetThreadImageURL"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(9).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&(b.f!==f||c.i64.neq(b.h,f)||b.g!==f)}).next().then(function(e,g){g=e.done;e=e.value;return g?0:(e.item,c.seq([function(d){return c.sp(b("LSSetThreadImageURL"),a[0],f,f,f,!1,!1)},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("image_id",f),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"thread_image",[0,37],d[3],f,f,[0,0],f)}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticSetLockStatus",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.fe(c.db.table(78).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({m:a[1],o:[0,20],n:a[2]})})},function(e){return d[0]=new c.Map(),d[0].set("uri",a[0]),d[0].set("new_lock_status",a[1]),d[0].set("funnel_session_id",a[3]),d[0].set("can_anonymous_users_join",a[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"video_chat_link_update_lock",[0,167],d[1],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticUnignoreMessage",["LSIssueNewError","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(9).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&b.e==="other"}).next().then(function(e,g){g=e.done;e=e.value;return g?0:(e.item,c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[7]=b.bd,c.i64.neq(d[7],f)?d[6]=d[7]:d[6]=[0,1],d[0]=d[6])})},function(a){return c.sb(c.db.table(115).fetch(),[["b","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[2]=!1:(b=a.item,d[2]=b.c)})},function(a){return d[2]===!0?(d[6]=c.localizeV2([0,2285622730],f),d[7]=c.localizeV2([0,1919524925],f),c.sp(b("LSIssueNewError"),f,[0,1545093],d[6],d[7])):c.resolve()},function(e){return d[4]=new c.Map(),d[4].set("thread_id",a[0]),d[4].set("request_id",f),d[4].set("sync_group",d[0]),d[5]=c.toJSON(d[4]),c.sp(b("LSIssueNewTask"),"unignore_thread",[0,227],d[5],f,f,[0,0],f)}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateThreadDescription",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({ba:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSOptimisticUpdateThreadDescription",["LSIssueNewTask","LSUpdateThreadDescription"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return c.sp(b("LSUpdateThreadDescription"),a[0],a[1])},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("description",a[1]),d[2].set("thread_key",a[0]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"update_thread_description",[0,166],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticUpdateThreadDisappearingMode",["LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.fe(c.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({W:a[1],X:a[1]===!0?d[0]:f})})},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[1]=[0,1]:(b=a.item,d[7]=b.bd,c.i64.neq(d[7],f)?d[6]=d[7]:d[6]=[0,1],d[1]=d[6])})},function(e){return d[3]=new c.Map(),d[3].set("thread_key",a[0]),d[3].set("is_disappearing_mode",a[1]),d[3].set("sync_group",d[1]),d[4]=d[3].get("thread_key"),d[3],d[5]=c.toJSON(d[3]),c.sp(b("LSIssueNewTask"),c.i64.to_string(d[4]),[0,168],d[5],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticallyInsertOrUpdatePinnedThread",["LSInsertOrUpdatePinnedThread","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return c.sp(b("LSInsertOrUpdatePinnedThread"),a[0],a[1])},function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[0].set("pinned_timestamp",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"pin_thread",[0,158],d[1],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRemovePinnedThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(82).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSOptimisticallyRemovePinnedThread",["LSIssueNewTask","LSRemovePinnedThread"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return c.sp(b("LSRemovePinnedThread"),a[0])},function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"pin_thread",[0,158],d[1],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateIsSoundOn",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.fe(c.db.table(175).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({f:a[0]})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticallyUpdateIsSoundOn",["LSGetViewerFBID","LSIssueNewTask","LSUpdateIsSoundOn"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(e){return d[0]=new c.Map(),d[0].set("is_sound_on",a[0]),d[0].set("show_message_preview",f),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"notification_settings_update",[0,59],d[1],f,f,[0,0],f)},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[2]=a[0],a})},function(e){return c.db.table(175).fetch([[[d[2]]]]).next().then(function(d,e){e=d.done;d=d.value;return e?0:(d.item,c.sp(b("LSUpdateIsSoundOn"),a[0]))})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticallyUpdateMessagingSettings",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(83).fetch([[[[0,1]]]]).next().then(function(b,e){var f=b.done;b=b.value;return f?0:(e=b.item,d[7]=e.b,d[8]=e.c,d[9]=e.d,d[10]=e.e,d[11]=e.f,c.i64.neq(d[7],[0,0])||c.i64.eq(a[0],[0,0])?0:c["throw"]("LS::assert is failed. "),c.i64.neq(d[8],[0,0])||c.i64.eq(a[1],[0,0])?0:c["throw"]("LS::assert is failed. "),c.i64.neq(d[10],[0,0])||c.i64.eq(a[3],[0,0])?0:c["throw"]("LS::assert is failed. "),c.i64.neq(d[9],[0,0])||c.i64.eq(a[2],[0,0])?0:c["throw"]("LS::assert is failed. "),c.i64.neq(d[11],[0,0])||c.i64.eq(a[4],[0,0])?0:c["throw"]("LS::assert is failed. "),c.i64.eq(a[0],[0,0])?d[2]=d[7]:d[2]=a[0],c.i64.eq(a[1],[0,0])?d[3]=d[8]:d[3]=a[1],c.i64.eq(a[2],[0,0])?d[4]=d[9]:d[4]=a[2],c.i64.eq(a[3],[0,0])?d[5]=d[10]:d[5]=a[3],c.i64.eq(a[4],[0,0])?d[6]=d[11]:d[6]=a[4],c.fe(c.db.table(83).fetch([[[[0,1]]]]),function(a){var b=a.update;a.item;return b({b:d[2],c:d[3],d:d[4],e:d[5],f:d[6]})}))})},function(e){return d[0]=new c.Map(),d[0].set("friends_of_friends",a[0]),d[0].set("has_phone_number",a[1]),d[0].set("instagram_follower",a[2]),d[0].set("instagram_followee",a[3]),d[0].set("other_people",a[4]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"update_messaging_settings",[0,157],d[1],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateReplyReminderSetting",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.fe(c.db.table(175).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({i:a[0]})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticallyUpdateReplyReminderSetting",["LSGetViewerFBID","LSIssueNewTask","LSUpdateReplyReminderSetting"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(e){return c.db.table(175).fetch([[[d[0]]]]).next().then(function(e,g){g=e.done;e=e.value;return g?0:(e.item,c.seq([function(d){return c.sp(b("LSUpdateReplyReminderSetting"),a[0])},function(e){return d[1]=new c.Map(),d[1].set("reply_reminder_setting",a[0]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"notification_settings_update",[0,58],d[2],f,f,[0,0],f)}]))})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateShowMessagePreview",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.fe(c.db.table(175).fetch([[[d[0]]]]),function(b){var c=b.update;b.item;return c({e:a[0]})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticallyUpdateShowMessagePreview",["LSGetViewerFBID","LSIssueNewTask","LSUpdateShowMessagePreview"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(e){return d[0]=new c.Map(),d[0].set("show_message_preview",a[0]),d[0].set("is_sound_on",f),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"notification_settings_update",[0,59],d[1],f,f,[0,0],f)},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[2]=a[0],a})},function(e){return c.db.table(175).fetch([[[d[2]]]]).next().then(function(d,e){e=d.done;d=d.value;return e?0:(d.item,c.sp(b("LSUpdateShowMessagePreview"),a[0]))})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOverwriteAllThreadParticipantsAdminStatus",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(14).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({f:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSPersistGeneratedForwardContent",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(129).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:b.i64.of_float(Date.now())})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSPopulateCommunityFolderData",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.seq([function(c){return b.db.table(162).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],j:a[10],l:a[11],m:a[12],k:a[13]})},function(d){return c[0]="community",b.db.table(9).fetch([[[a[0]]]]).next().then(function(d,f){var g=d.done;d=d.value;return g?b.db.table(9).add({a:a[0],j:a[8],Z:[0,80],b:[0,0],c:[0,17],e:c[0],u:[0,0],A:[-1,4294967282],i:a[7],m:a[9],d:a[2],f:a[4],g:a[5],h:a[6],k:[0,0],l:[0,0],bc:[0,0],n:!1,I:!1,J:!1,K:!1,P:[0,0],R:!1,W:!1,Y:[0,0],be:[0,0],bh:[0,0],bb:[0,0],bj:[0,0],bi:!1,bm:[0,0]}):(f=d.item,c[2]=f.i,c[4]=f.A,c[3]=f.V,c[5]=f.W,b.i64.le(f.Z,[0,80])?b.i64.gt(c[2],a[7])&&b.i64.neq(c[3],e)?(b.i64.eq([-1,4294967282],[-1,4294967286])&&b.i64.eq(c[4],[0,0])?(g=[c[4],f.e],c[6]=g[0],c[7]=g[1],g):(d=[[-1,4294967282],c[0]],c[6]=d[0],c[7]=d[1],d),b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var d=b.update;b.item;return d({j:f.j,Z:[0,80],c:[0,17],e:c[7],u:[0,0],A:c[6],i:c[2],m:a[9],d:a[2],f:a[4],t:e,g:a[5],h:a[6],k:[0,0],l:[0,0],bc:[0,0],n:!1,o:e,p:e,q:e,r:e,s:e,v:e,w:e,x:e,y:e,z:e,B:e,C:e,D:e,E:e,F:e,G:e,H:e,I:!1,J:!1,K:!1,L:e,M:e,N:e,O:e,P:[0,0],Q:e,bn:e,R:!1,S:e,T:e,U:e,V:c[3],W:c[5],X:e,Y:[0,0],be:[0,0],bf:e,bg:e,ba:e,bh:[0,0],bb:[0,0],bd:e,bj:[0,0],bl:e,bi:!1,bk:e,bm:[0,0]})})):b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var d=b.update;b.item;return d({j:a[8],Z:[0,80],c:[0,17],e:c[0],u:[0,0],A:[-1,4294967282],i:a[7],m:a[9],d:a[2],f:a[4],t:e,g:a[5],h:a[6],k:[0,0],l:[0,0],bc:[0,0],n:!1,o:e,p:e,q:e,r:e,s:e,v:e,w:e,x:e,y:e,z:e,B:e,C:e,D:e,E:e,F:e,G:e,H:e,I:!1,J:!1,K:!1,L:e,M:e,N:e,O:e,P:[0,0],Q:e,bn:e,R:!1,S:e,T:e,U:e,V:c[3],W:c[5],X:e,Y:[0,0],be:[0,0],bf:e,bg:e,ba:e,bh:[0,0],bb:[0,0],bd:e,bj:[0,0],bl:e,bi:!1,bk:e,bm:[0,0]})}):b.resolve())})}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSProcessAccountUnlink",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("cta_id",a[1]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"process_account_unlink",[0,68],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSProcessCTAAccountUnlink",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[5]=b.bd,c.i64.neq(d[5],f)?d[4]=d[5]:d[4]=[0,1],d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("attachment_fbid",a[1]),d[2].set("attachment_index",a[2]),d[2].set("message_id",a[3]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"process_cta_account_unlink",[0,82],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSQueryPaymentActivityView",["LSIssueNewError","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.fe(c.ftr(c.db.table(109).fetch([[[a[0]]]]),function(b){return b.a===a[0]&&c.i64.lt([0,80],[0,20])}),function(a){return a["delete"]()})},function(b){return c.db.table(109).add({a:a[0],b:[0,0]})},function(a){return c.sb(c.db.table(115).fetch(),[["b","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=!1:(b=a.item,d[0]=b.c)})},function(a){return d[0]===!0?(d[4]=c.localizeV2([0,2285622730],f),d[5]=c.localizeV2([0,1919524925],f),c.sp(b("LSIssueNewError"),f,[0,1545093],d[4],d[5])):c.resolve()},function(e){return d[2]=new c.Map(),d[2].set("request_id",a[0]),d[2].set("transaction_id",a[1]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"payments",[0,111],d[3],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSQueryStickerStore",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(a){return d[0]=new c.Map(),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"query_sticker_store",[0,139],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRefreshMediaSendThreadCapabilities",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(a){return c.fe(c.ftr(c.db.table(9).fetch(),function(a){return c.i64.eq(a.Z,[0,80])}),function(a){var e=a.item;return c.seq([function(a){return d[4]=e.a,d[5]=e.P,d[0]=c.createArray(),c.fe(c.ftr(c.db.table(14).fetch([[[d[4]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])}),function(a){var b=a.item;return c.seq([function(a){return c.ftr(c.db.table(7).fetch([[[b.b]]]),function(a){return c.i64.eq(a.a,b.b)&&c.i64.eq([0,1],[0,1])}).next().then(function(a,b){var e=a.done;a=a.value;return e?d[6]=!1:(b=a.item,d[8]=b.r,d[6]=c.i64.eq(d[8],[0,7])||c.i64.eq(d[8],[0,11])||c.i64.eq(d[8],[0,12]))})},function(a){return d[0].push(d[6]),d[0]}])})},function(a){return d[1]=!1,d[2]=c.i64.of_int32(d[0].length),c.i64.gt(d[2],[0,0])?c.loopAsync(d[2],function(a){return d[6]=a,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAtV2"),d[0],d[6]).then(function(a){return a=a,d[7]=a[0],a})},function(a){return d[1]=d[1]||d[7]}])}):c.resolve()},function(a){return d[1]&&c.i64.eq(e.c,[0,1])?d[3]=c.i64.or_(c.i64.or_(d[5],[128,0]),[256,0]):d[3]=c.i64.and_(c.i64.and_(d[5],[-129,4294967295]),[-257,4294967295]),c.fe(c.ftr(c.db.table(9).fetch(),function(a){return c.i64.eq(a.a,d[4])}),function(a){var b=a.update;a.item;return b({P:d[3]})})}])})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRemoveAllParticipantsForThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(14).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveAllRequestsFromAdminApprovalQueue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(26).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveCowatchSession",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(80).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveExistingPersistentMenuItems",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(77).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveFeatureLimit",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(150).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveFromAdminApprovalQueue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(26).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveOptimisticGroupThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(9).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq(c.Z,[0,20])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveOptimisticParticipant",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(14).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])&&b.i64.eq(c.j,[0,20])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveOptimisticReaction",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(8).fetch([[[a[0],a[1],a[2]]]]),function(c){return b.i64.eq(c.a,a[0])&&c.c===a[1]&&b.i64.eq(c.d,a[2])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.f,[0,20])&&c.e===a[3]}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemovePollVoteV2",["LSVerifyPollExists"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(e){return c.sp(b("LSVerifyPollExists"),a[5],a[1],a[6],a[3],a[7]).then(function(a){return a=a,d[0]=a[0],a})},function(b){return d[0]?c.seq([function(b){return c.fe(c.db.table(40).fetch([[[a[1],a[0],a[2]]]]),function(a){return a["delete"]()})},function(b){return c.fe(c.db.table(39).fetch([[[a[1],a[0]]]]),function(b){var c=b.update;b.item;return c({e:a[3],d:a[4]})})}]):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRemoveVideoChatLink",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(78).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSReplaceOptimisticReaction",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(8).fetch([[[a[0],a[2],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&c.c===a[2]&&b.i64.eq(c.d,a[1])&&b.i64.eq([0,0],[0,0])&&b.i64.le(c.f,[0,20])}),function(a){var b=a.update;a.item;return b({f:[0,60]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSReplaceOptimisticThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(9).fetch([[[a[1]]]]).next().then(function(c,d){d=c.done;c=c.value;return d?b.fe(b.ftr(b.db.table(9).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.le(c.Z,[0,20])}),function(b){var c=b.update;b.item;return c({a:a[1],Z:[0,40]})}):(c.item,b.fe(b.db.table(9).fetch([[[a[0]]]]),function(a){return a["delete"]()}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSReplaceOptimsiticMessage",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[0]]],"optimistic"]),function(c){return c.f===a[0]&&b.i64.eq(c.V,[0,20])}),function(b){var c=b.update;b.item;return c({e:a[1],V:[0,60],k:[0,2],l:[0,2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSReportAppState",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("app_state",a[0]),d[0].set("request_id",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"ls_presence_report_app_state",[0,123],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRequestRankedRoomParticipants",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("url",a[0]),d[0].set("funnel_session_id",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"request_attempted_joiners",[0,195],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSResetOptimisticBlockState",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.fe(b.ftr(b.db.table(7).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,1],[0,1])}),function(c){var e=c.update;c.item;return e({L:d,M:d,n:a[2]===!0?a[1]:b.i64.eq(a[1],[0,1])?[0,0]:[0,1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSResetPageMessagingWindow",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("page_id",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"reset_message_window",[0,108],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSResetSendByServerConfigIfNotDoublePhase",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(f){return c.seq([function(b){return d[0]=c.createArray(),c.db.table(51).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?0:(b=a.item,d[4]=new c.Map(),d[4].set("offline_attachment_id",b.a),d[4].set("offline_threading_id",b.b),d[4].set("in_message_index",b.c),d[4].set("attachment_type",b.d),d[4].set("should_transcode",b.e),d[4].set("use_double_phase",b.f),d[4].set("send_by_server",b.g),d[4].set("is_secure",b.h),d[4].set("state",b.i),d[4].set("fbid",b.j),d[4].set("metadata",b.k),d[4].set("error",b.l),d[4].set("message_id",b.m),d[0].push(d[4]),d[0])})},function(e){return d[2]=c.i64.of_int32(d[0].length),c.i64.gt(d[2],[0,0])?c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAtV2"),d[0],[0,0]).then(function(a){return a=a,d[4]=a[0],a})},function(b){return d[5]=d[4].get("use_double_phase"),d[4],d[5]?c.resolve(d[6]=!1):c.seq([function(b){return c.fe(c.db.table(51).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({g:a[1]})})},function(a){return d[6]=!0}])},function(a){return d[3]=d[6]}]):c.resolve(d[3]=!1)},function(a){return e[0]=d[3]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSResetUseDoublePhaseConfig",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(51).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({f:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSResolveVideoChatLink",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.ct(c.db.table(78).fetch([[[a[0]]]])).then(function(a){return d[0]=a})},function(b){return c.i64.eq(d[0],[0,0])?c.seq([function(a){return d[5]="",c.fe(c.ftr(c.db.table(78).fetch([[[d[5]]],"optimistic"]),function(a){return a.b===d[5]&&c.i64.lt(a.o,[0,40])}),function(a){return a["delete"]()})},function(b){return c.db.table(78).add({a:a[0],b:d[5],f:[0,0],e:!1,c:[0,0],d:[0,0],i:[0,0],l:!1,m:[0,2],o:[0,40],n:!1})}]):c.fe(c.db.table(78).fetch([[[a[0],""]]]),function(a){var b=a.update;a.item;return b({f:[0,0]})})},function(e){return d[1]=new c.Map(),d[1].set("url",a[0]),d[1].set("funnel_session_id",a[1]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"video_chat_link_resolve",[0,126],d[2],f,f,[0,0],f)},function(e){return d[3]=new c.Map(),d[3].set("url",a[0]),d[3].set("funnel_session_id",a[1]),d[4]=c.toJSON(d[3]),c.sp(b("LSIssueNewTask"),"live_stream_metadata",[0,197],d[4],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRetryMessageRangeQuery",["LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(13).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&(a[2]?c.i64.eq(b.d,a[1])&&b.g===!0:c.i64.eq(b.b,a[1])&&b.f===!0)}).next().then(function(e,g){var h=e.done;e=e.value;return h?0:(g=e.item,c.seq([function(e){return d[0]=new c.Map(),d[0].set("1",g.a),d[0].set("2",g.b),d[0].set("3",g.c),d[0].set("4",g.d),d[0].set("5",g.e),d[0].set("6",g.f),d[0].set("7",g.g),d[0].set("8",g.h),d[0].set("9",g.i),d[0].set("table",[0,13]),d[0].set("type",[0,1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTaskAndGetTaskID"),a[4],[0,14],d[1],f,f,[0,0],[0,1]).then(function(a){return a=a,d[2]=a[0],a})},function(b){return c.db.table(3).add({a:a[4],b:[-1,4294967295],e:c.i64.of_float(Date.now()),f:a[3],g:[0,0]})}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRevokeVideoChatLink",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("url",a[0]),d[0].set("funnel_session_id",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"video_chat_link_revoke",[0,171],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRoomCreateFailure",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(63).fetch([[[a[0]]],"optimistic"]),function(c){return c.b===a[0]&&b.i64.eq(c.l,[0,20])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomCreateSuccess",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(63).fetch([[[a[0]]],"optimistic"]),function(c){return c.b===a[0]&&b.i64.eq(c.l,[0,20])}),function(b){var c=b.update;b.item;return c({a:a[1],d:a[2],l:[0,60]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomDelete",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(63).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomInviteeTypeUpdateSuccess",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(63).fetch([[[a[0]]]]),function(a){var b=a.update;a.item;return b({l:[0,60]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomInviteeUpdateIssueTask",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("room_id",a[0]),d[0].set("invitee_type",a[1]),d[0].set("added_invitee_ids",a[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"room_invitee_update",[0,182],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRoomParticipantDelete",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(64).fetch([[[a[0],a[1],a[2]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomParticipantUpsert",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(64).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq(c.b,a[1])&&b.i64.gt(c.h,[0,80])}).next().then(function(c){var d=c.done;c.value;return d?b.db.table(64).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:[0,80]}):0})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomRevoke",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(63).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&c.i64.neq(b.l,[0,100])}).next().then(function(a,e){var g=a.done;a=a.value;return g?0:(e=a.item,c.seq([function(a){return d[2]=e.a,c.fe(c.ftr(c.db.table(63).fetch(),function(a){return c.i64.eq(a.a,d[2])}),function(a){var b=a.update;a.item;return b({l:[0,100]})})},function(a){return d[0]=new c.Map(),d[0].set("room_id",d[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"room_revoke",[0,178],d[1],f,f,[0,0],f)}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRoomRevokeFailure",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(63).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq(c.l,[0,100])}),function(a){var b=a.update;a.item;return b({l:[0,60]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomTruncate",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(a){return b.fe(b.db.table(63).fetch(),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomUpdateInterestedAttacmentCTA",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return b.fe(b.ftr(b.db.table(16).fetch(),function(c){return b.i64.eq(c.bS,a[3])&&c.t===a[1]}),function(b){var c=b.update;b.item;return c({s:a[0],t:a[2]})})},function(c){return b.fe(b.ftr(b.db.table(19).fetch(),function(c){return b.i64.eq(c.o,a[3])&&c.g===a[1]}),function(b){var c=b.update;b.item;return c({f:a[0],g:a[2]})})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomUpdateInterestedIssueTask",["LSIssueNewTask","LSRoomUpdateInterestedAttacmentCTA"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return a[1]?c.sp(b("LSRoomUpdateInterestedAttacmentCTA"),a[3],"xma_rooms_speakeasy_interested","xma_rooms_speakeasy_undo",a[0]):c.sp(b("LSRoomUpdateInterestedAttacmentCTA"),a[3],"xma_rooms_speakeasy_undo","xma_rooms_speakeasy_interested",a[0])},function(e){return d[0]=new c.Map(),d[0].set("room_id",a[0]),d[0].set("is_interested",a[1]),d[0].set("reminder_timestamp_ms",a[2]),d[0].set("reminder_time",[0,2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"room_update_interested",[0,179],d[1],f,f,[0,0],f)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRoomUpdateInterestedSuccess",["LSRoomParticipantDelete","LSRoomParticipantUpsert"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e;return c.seq([function(d){return a[0]?c.sp(b("LSRoomParticipantUpsert"),a[1],a[2],[0,2],e,e,e,e):c.sp(b("LSRoomParticipantDelete"),a[1],a[2],[0,2])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("LSRoomUpdateIssueTask",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("room_id",a[0]),d[0].set("name",a[1]),d[0].set("emoji",a[2]),d[0].set("start_time_ms",a[3]),d[0].set("audience_type",a[4]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"room_update",[0,180],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRoomUpdateSuccess",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(63).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({e:a[1],f:a[2],g:a[3],h:a[4],k:a[5],l:[0,60]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRoomUpsert",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(63).fetch([[[a[1]]],"optimistic"]),function(c){return c.b===a[1]&&b.i64.gt(c.l,[0,80])}).next().then(function(c){var d=c.done;c.value;return d?b.db.table(63).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:a[11],k:a[8],j:a[12],l:[0,80]}):0})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRtcP2PEndCall",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("call_acknowledged",a[0]),d[0].set("call_duration",a[1]),d[0].set("call_id",a[2]),d[0].set("call_message",a[3]),d[0].set("call_start_time",a[4]),d[0].set("call_type",a[5]),d[0].set("caller_ended",a[6]),d[0].set("conference_name",a[7]),d[0].set("event_name",a[8]),d[0].set("event_type",a[9]),d[0].set("to",a[10]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"rtc_p2p_end_call",[0,36],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSecureTemplateStatusUpdate",["LSIssueNewFireAndForgetTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return d[0]=new c.Map(),d[0].set("user_action",a[0]),d[0].set("encrypted_form_id",a[1]),d[0].set("timestamp_ms",a[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewFireAndForgetTask"),"fire_forget",[0,7],d[1])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSendCTMWelcomeMessageFromApp",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("token",a[0]),d[0].set("only_show_admin_text",a[1]),d[0].set("send_welcome_message",!1),d[0].set("user_response",f),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"ctm_ad_from_app",[0,60],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSendMessageV2FailureCleanup",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSSendPhase1MultiPhotoMessage",["LSGetMessageAttributionParams","LSIssueSendAttachmentMessageTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(b){return d[0]=c.createArray(),d[1]=!1,d[2]=[0,0],c.fe(c.sb(c.ftr(c.db.table(51).fetch(),function(b){return b.b===a[0]}),[["c","ASC"]]),function(a){a=a.item;return d[5]=a.j,d[2]=c.i64.add(d[2],[0,1]),c.i64.neq(d[5],f)?(d[0].push(d[5]),d[0]):0})},function(e){return d[3]=c.i64.of_int32(d[0].length),c.i64.neq(d[3],d[2])||c.i64.eq(d[2],[0,0])?c.resolve(d[4]=!1):c.seq([function(b){return c.db.table(12).fetch([[[a[0]]],"optimistic"]).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=[f,f,f,f,f],d[5]=c[0],d[6]=c[1],d[7]=c[2],d[8]=c[3],d[9]=c[4],c):(b=a.item,c=[b.a,b.h,b.g,b.r,b.t],d[5]=c[0],d[6]=c[1],d[7]=c[2],d[8]=c[3],d[9]=c[4],c)})},function(e){return c.i64.eq(d[5],f)||c.i64.eq(d[6],f)?c.resolve(d[11]=!1):c.seq([function(a){return c.db.table(9).fetch([[[d[5]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[12]=f:(b=a.item,d[12]=b.c)})},function(b){return c.ftr(c.db.table(31).fetch(),function(b){return b.c===a[0]}).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=[f,f,f],d[14]=c[0],d[15]=c[1],d[16]=c[2],c):(b=a.item,c=[b.g,b.h,b.m],d[14]=c[0],d[15]=c[1],d[16]=c[2],c)})},function(e){return c.i64.neq(d[12],f)?c.seq([function(e){return c.seq([function(e){return c.sp(b("LSGetMessageAttributionParams"),a[0]).then(function(a){return a=a,d[19]=a[0],d[20]=a[1],d[21]=a[2],a})},function(e){return c.i64.neq(d[19],f)?d[22]=d[19]:d[22]=[0,0],c.sp(b("LSIssueSendAttachmentMessageTask"),d[6],d[5],d[12],a[0],d[7],d[0],d[22],d[8],d[9],d[1],d[14],d[15],f)}])},function(a){return d[18]=!0}]):c.resolve(d[18]=!1)},function(a){return d[11]=d[18]}])},function(a){return d[4]=d[11]}])},function(a){return e[0]=d[4]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSendPhase2UpdateMessage",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("thread_fbid",a[0]),d[0].set("message_id",a[1]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"send_phase_two_message",[0,136],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSendPlatformReferralFireForgetEvent",["LSIssueNewFireAndForgetTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return d[0]=new c.Map(),d[0].set("page_id",a[0]),d[0].set("ref",a[1]),d[0].set("channel_id",a[2]),d[0].set("source",a[3]),d[0].set("metadata",a[4]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewFireAndForgetTask"),"fire_forget",[0,8],d[1])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSetBackgroundMode",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSSetContactCapabilities",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.seq([function(c){return!0===!0&&!0===!0&&b.i64.neq(a[1],d)&&b.i64.neq(a[2],d)?b.fe(b.db.table(7).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({G:a[1],Q:a[2]})}):b.resolve()},function(c){return!0===!0&&b.i64.neq(a[2],d)?b.fe(b.db.table(7).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({Q:a[2]})}):b.resolve()},function(c){return!0===!0&&b.i64.neq(a[1],d)?b.fe(b.db.table(7).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({G:a[1]})}):b.resolve()},function(a){return 0}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSSetMessagesViewedPlugin",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[0],a[2],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[2])&&c.e===a[1]}),function(b){var c=b.update;b.item;return c({R:a[3],S:a[4]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSSetPollsThreadCapability",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(a){return c.fe(c.ftr(c.db.table(9).fetch(),function(a){return c.i64.eq(a.Z,[0,80])}),function(a){var e=a.item;return c.seq([function(a){return d[4]=e.a,d[5]=e.P,d[0]=c.createArray(),c.fe(c.ftr(c.db.table(14).fetch([[[d[4]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])}),function(a){var b=a.item;return c.seq([function(a){return c.ftr(c.db.table(7).fetch([[[b.b]]]),function(a){return c.i64.eq(a.a,b.b)&&c.i64.eq([0,1],[0,1])}).next().then(function(a,b){var e=a.done;a=a.value;return e?d[6]=!1:(b=a.item,d[6]=c.i64.eq(b.r,[0,4]))})},function(a){return d[0].push(d[6]),d[0]}])})},function(a){return d[1]=!1,d[2]=c.i64.of_int32(d[0].length),c.i64.gt(d[2],[0,0])?c.loopAsync(d[2],function(a){return d[6]=a,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAtV2"),d[0],d[6]).then(function(a){return a=a,d[7]=a[0],a})},function(a){return d[1]=d[1]||d[7]}])}):c.resolve()},function(a){return!d[1]&&c.i64.eq(e.c,[0,2])?d[3]=c.i64.or_(d[5],[16,0]):d[3]=c.i64.and_(d[5],[-17,4294967295]),c.fe(c.ftr(c.db.table(9).fetch(),function(a){return c.i64.eq(a.a,d[4])}),function(a){var b=a.update;a.item;return b({P:d[3]})})}])})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSetThreadCannotUnsendReason",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({L:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSSetThreadCapabilities",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(c){var d=c.update;c.item;return d({P:b.i64.or_([0,0],a[1]?[0,1]:[0,0])})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSStoryArchiveModeUpdate",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("audience_mode",f),d[0].set("archive_enabled",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"story_pref_update",[0,41],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSStoryAudienceModeUpdate",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("audience_mode",a[0]),d[0].set("archive_enabled",f),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"story_pref_update",[0,41],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSTruncatePinnedThreads",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(a){return b.fe(b.db.table(82).fetch(),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateAdditionalThreadContext",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({U:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateDeliveryReceipt",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(14).fetch([[[a[1],a[2]]]]),function(c){return b.i64.eq(c.a,a[1])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[2])&&b.i64.gt(a[0],c.d)}),function(b){var c=b.update;b.item;return c({d:a[0]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateExistingMessageRange",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(13).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&(a[2]?b.i64.eq(c.d,a[1]):b.i64.eq(c.b,a[1]))}).next().then(function(c,d){var e=c.done;c=c.value;return e?0:(d=c.item,b.db.table(13).put({a:d.a,b:d.b,c:d.c,d:d.d,e:d.e,f:!1,g:!1,h:a[2]&&!a[3]?d.h:!1,i:a[2]&&!a[3]?!1:d.i}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateExistingThreadV2",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(9).fetch(),function(c){return b.i64.eq(c.a,a[0])||b.i64.eq(c.O,a[42])}),function(b){var c=b.update;b.item;return c({a:a[0],d:a[1],e:a[2],A:a[3],f:a[4],g:a[5],h:a[6],i:a[7],j:a[8],k:a[9],l:a[10],m:a[11],n:a[12],o:a[13],t:a[14],Z:a[15],u:a[17],v:a[18],w:a[19],x:a[20],y:a[21],z:a[22],B:a[23],C:a[24],D:a[25],E:a[26],F:a[27],G:a[28],H:a[29],I:a[30],J:a[31],K:a[32],L:a[33],M:a[34],N:a[35],P:a[36],Q:a[37],R:a[38],T:a[39],ba:a[41],bh:[-1,4294967295]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateFolderThreadSnippet",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.seq([function(d){return b.i64.neq(a[1],e)?b.resolve(c[0]=a[1]):b.seq([function(d){return b.ct(b.ftr(b.db.table(9).fetch([[[a[0]]],"parentThreadKeyLastActivityTimestampMs"]),function(c){return b.i64.eq(c.A,a[0])&&b.i64.lt(c.j,c.i)})).then(function(a){return c[5]=a})},function(a){return c[0]=c[5]}])},function(d){return c[1]=a[2].get("all_read"),a[2],c[2]=a[2].get("unread_singular"),a[2],c[3]=a[2].get("unread_plural"),a[2],b.i64.eq(c[0],[0,0])?c[4]=c[1]:(b.i64.eq(c[0],[0,1])?c[5]=[b.i64.to_string(c[0]),c[2]].join(""):c[5]=[b.i64.to_string(c[0]),c[3]].join(""),c[4]=c[5]),b.fe(b.db.table(9).fetch([[[a[0]]]]),function(a){var b=a.update;a.item;return b({m:c[4],p:e,q:e,r:e,s:e})})}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpdateHasMenuAndComposer",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(d){return b.seq([function(d){return b.ct(b.db.table(9).fetch([[[a[0]]]])).then(function(a){return c[0]=a})},function(d){return b.i64.eq(c[0],[0,0])?b.resolve(0):b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({J:a[1],K:a[2]})})}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpdateLastSyncCompletedTimestampMsToNow",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(1).fetch([[[a[0]]]]),function(a){var c=a.update;a.item;return c({k:b.i64.of_float(Date.now())})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateMessageRangeV1",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSUpdateMessagingSettings",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(d){return b.db.table(83).fetch([[[[0,1]]]]).next().then(function(d,e){var f=d.done;d=d.value;return f?0:(e=d.item,c[5]=e.b,c[6]=e.c,c[7]=e.d,c[8]=e.e,c[9]=e.f,b.i64.eq(c[5],[0,0])||b.i64.eq(a[0],[0,0])?c[0]=c[5]:c[0]=a[0],b.i64.eq(c[6],[0,0])||b.i64.eq(a[1],[0,0])?c[1]=c[6]:c[1]=a[1],b.i64.eq(c[7],[0,0])||b.i64.eq(a[2],[0,0])?c[2]=c[7]:c[2]=a[2],b.i64.eq(c[8],[0,0])||b.i64.eq(a[3],[0,0])?c[3]=c[8]:c[3]=a[3],b.i64.eq(c[9],[0,0])||b.i64.eq(a[4],[0,0])?c[4]=c[9]:c[4]=a[4],b.fe(b.db.table(83).fetch([[[[0,1]]]]),function(a){var b=a.update;a.item;return b({b:c[0],c:c[1],d:c[2],e:c[3],f:c[4]})}))})},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpdateOngoingCallServerInfoData",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(23).put({a:a[0],b:a[1],c:a[2]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateOptimisticContextThreadKeys",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return b.fe(b.ftr(b.db.table(32).fetch(),function(c){return b.i64.eq(c.b,a[0])}),function(b){var c=b.update;b.item;return c({b:a[1]})})},function(c){return b.fe(b.ftr(b.db.table(31).fetch(),function(c){return b.i64.eq(c.b,a[0])}),function(b){var c=b.update;b.item;return c({b:a[1]})})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateOrInsertRtcOngoingCallData",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.ftr(b.db.table(23).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])}).next().then(function(c,d){var e=c.done;c=c.value;return e?b.db.table(23).add({a:a[0],b:a[1],c:a[2]}):(d=c.item,b.fe(b.ftr(b.db.table(23).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])}),function(b){var c=b.update;b.item;return c({b:a[1]==null?d.b:a[1],c:a[2]})}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateParentFolderReadWatermark",["LSGetParentThreadKey","LSUpdateFolderThreadSnippet"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(e){return c.sp(b("LSGetParentThreadKey"),a[0]).then(function(a){return a=a,d[0]=a[0],a})},function(e){return c.i64.neq(d[0],[0,0])?c.seq([function(a){return c.sb(c.ftr(c.db.table(9).fetch([[[d[0]]],"parentThreadKeyLastActivityTimestampMs"]),function(a){return c.i64.eq(a.A,d[0])&&c.i64.lt(a.j,a.i)}),[["j","ASC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[1]=f:(b=a.item,d[1]=b.j)})},function(a){return c.i64.neq(d[1],f)?c.fe(c.db.table(9).fetch([[[d[0]]]]),function(a){var b=a.update;a.item;return b({j:d[1]})}):c.seq([function(a){return c.db.table(9).fetch([[[d[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[3]=f:(b=a.item,d[3]=b.i)})},function(a){return c.i64.neq(d[3],f)?c.fe(c.db.table(9).fetch([[[d[0]]]]),function(a){var b=a.update;a.item;return b({j:d[3]})}):c.resolve()}])},function(e){return c.sp(b("LSUpdateFolderThreadSnippet"),d[0],f,a[1])}]):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateParticipantCapabilities",["LSComputeParticipantCapabilities"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(f){return c.seq([function(e){return c.sp(b("LSComputeParticipantCapabilities"),a[0],a[1]).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.fe(c.ftr(c.db.table(14).fetch([[[a[1],a[0]]]]),function(b){return c.i64.eq(b.a,a[1])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(b.b,a[0])}),function(a){var b=a.update;a.item;return b({i:d[0]})})},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateParticipantSubscribeSourceText",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(14).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])}),function(b){var c=b.update;b.item;return c({g:a[2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdatePollAdminMessageSummary",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(d){return b.ftr(b.db.table(38).fetch([[[a[0]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq(c.b,a[1])&&([[0,2],[0,3]].some(function(a){return b.i64.eq(c.e,a)})&&[[0,2],[0,3]].some(function(c){return b.i64.eq(a[4],c)})||[[0,4],[0,5]].some(function(a){return b.i64.eq(c.e,a)})&&[[0,4],[0,5]].some(function(c){return b.i64.eq(a[4],c)}))&&b.i64.gt(a[3],c.d)&&c.c!==a[2]}).next().then(function(d,e){var f=d.done;d=d.value;return f?0:(e=d.item,c[0]=e.d,b.db.table(12).fetch([[[a[1],b.merge({gt:c[0]},{lt:a[3]})]]]).next().then(function(f){var d=f.done;f.value;return d?b.seq([function(d){return b.fe(b.ftr(b.db.table(12).fetch([[[a[1],c[0],e.c]]]),function(d){return b.i64.eq(d.a,a[1])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(d.b,c[0])&&d.e===e.c}),function(a){return a["delete"]()})},function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[1],a[3],a[2]]]]),function(c){return b.i64.eq(c.a,a[1])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[3])&&c.e===a[2]}),function(b){var c=b.update;b.item;return c({g:a[5]})})}]):0}))})},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpdatePreviewUrl",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(16).fetch([[[a[0]]]]),function(c){return c.e===a[1]&&b.i64.eq(c.a,a[0])}),function(b){var c=b.update;b.item;return c({F:a[2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateRepliesOnUnsend",["LSArrayGetObjectAtV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=c.i64.of_int32(a[2].length),c.i64.gt(d[0],[0,0])?c.loopAsync(d[0],function(e){return d[1]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAtV2"),a[2],d[1]).then(function(a){return a=a,d[2]=a[0],a})},function(b){return d[3]=d[2].get("reply_snippet"),d[2],d[4]=d[2].get("message_id"),d[2],c.fe(c.ftr(c.db.table(12).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&b.e===d[4]}),function(a){var b=a.update;a.item;return b({u:[0,2],v:d[3],w:f,y:f,z:f,A:f,B:f,C:f,D:f,H:f,I:f})})}])}):c.resolve()},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateRoomsUserRingability",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("url",a[0]),d[0].set("should_ring",a[1]),d[0].set("funnel_session_id",a[2]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"rooms_update_user_ringability",[0,189],d[1],f,f,[0,0],f)},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateSearchQueryStatus",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return b.i64.eq(a[1],[0,1])?b.fe(b.db.table(67).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({b:a[2],e:a[3],f:a[4]})}):b.resolve()},function(c){return b.i64.eq(a[1],[0,2])?b.fe(b.db.table(67).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({c:a[2],e:a[3],f:a[4]})}):b.resolve()}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateSenderIDToPersonaID",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[0],a[2],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[2])&&c.e===a[1]}),function(b){var c=b.update;b.item;return c({h:a[3]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateShouldRoundThreadPicture",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({Q:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateSubscriptErrorMessage",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(12).fetch([[[a[0]]]]),function(c){return c.e===a[1]&&b.i64.eq(c.a,a[0])&&b.i64.eq(c.V,[0,20])}),function(b){var c=b.update;b.item;return c({W:a[2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateTaskQueueName",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(2).fetch(),function(b){return b.b===a[0]}),function(b){var c=b.update;b.item;return c({b:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateTaskValue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(2).fetch(),function(b){return b.b===a[0]}),function(b){var c=b.update;b=b.item;return c({c:b.c.split(a[1]).join(a[2])})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateThreadApprovalMode",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({t:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateThreadMuteSetting",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({l:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateThreadNullstateCTAID",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSUpdateThreadOngoingCallState",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({u:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateThreadParticipantNicknameV2",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.fe(b.ftr(b.db.table(14).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])}),function(b){var c=b.update;b.item;return c({j:[0,80],e:a[2]===""?d:a[2],h:a[3]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateThreadSnippet",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return a[7]?b.seq([function(d){return b.i64.neq(a[3],e)?b.seq([function(d){return b.seq([function(d){return b.ftr(b.db.table(14).fetch([[[a[0],a[3]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[3])}).next().then(function(a,b){var d=a.done;a=a.value;return d?c[3]=e:(b=a.item,c[3]=b.e)})},function(d){return b.ftr(b.db.table(7).fetch([[[a[3]]]]),function(c){return b.i64.eq(c.a,a[3])&&b.i64.eq([0,1],[0,1])}).next().then(function(a,d){var f=a.done;a=a.value;return f?(c[7]=b.localizeV2([0,14617150],e),c[5]=c[7]):(d=a.item,c[5]=d.p==null?d.h:d.p)})},function(a){return c[1]=c[3]==null?c[5]:c[3]}])},function(b){return a[1]!==e?c[2]=[c[1],": ",a[1]].join(""):c[2]=e,c[0]=c[2]}]):b.resolve(c[0]=a[1])},function(d){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var d=b.update;b.item;return d({m:c[0],p:e,q:e,r:e,s:e,n:a[2],o:a[3],I:a[4],M:a[5],N:a[6]})})}]):b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({m:a[1],p:e,q:e,r:e,s:e,n:a[2],o:a[3],I:a[4],M:a[5],N:a[6]})})},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpdateThreadSnippetFromLastMessageV2",["LSGetViewerFBID","LSUpdateThreadSnippet"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.db.table(12).fetchDesc([[[a[0]]]]).next().then(function(e,g){var h=e.done;e=e.value;return h?0:(g=e.item,c.seq([function(a){return d[5]=g.g,d[4]=g.a,d[7]=[0,0],d[8]=g.e,d[3]=g.h,d[6]=g.i,d[2]=g.j,d[0]=!0,d[2]||!d[0]?c.resolve(d[1]=d[5]==null?"":d[5]):c.seq([function(a){return g.m?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[10]=a[0],a})},function(a){return c.i64.eq(d[10],d[3])?c.resolve((d[15]=c.localizeV2([0,2375715979],f),d[11]=d[15])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[18]=f:(c=b.item,d[18]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[22]=c.localizeV2([0,14617150],f),d[20]=d[22]):(e=b.item,d[20]=e.p==null?e.h:e.p)})},function(a){return d[15]=d[18]==null?d[20]:d[18]}])},function(a){return d[16]=c.createArray(),d[16].push(d[15]),d[16],d[17]=c.localizeV2([0,3810165735],d[16]),d[11]=d[17]}])},function(a){return c.db.table(9).fetch([[[d[4]]]]).next().then(function(b,e){var a=b.done;b=b.value;return a?d[12]=!1:(e=b.item,d[12]=c.i64.eq(e.c,[0,18]))})},function(a){return d[12]?c.seq([function(a){return c.ftr(c.db.table(16).fetch([[[d[4],d[8]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],d[7])&&a.c===d[8]}).next().then(function(b,c){var a=b.done;b=b.value;return a?(a=[[0,0],f,f,f],d[15]=a[0],d[16]=a[1],d[17]=a[2],d[18]=a[3],a):(c=b.item,a=[c.f,c.Y,c.q,c.V],d[15]=a[0],d[16]=a[1],d[17]=a[2],d[18]=a[3],a)})},function(a){return d[18]!==f?d[20]=d[18]:d[20]=d[11],d[14]=d[20]}]):c.resolve(d[14]=d[11])},function(a){return d[9]=d[14]}]):c.seq([function(a){return d[5]!==f&&d[5]!==""?c.seq([function(a){return d[13]=d[5]==null?"":d[5],c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[11]=a[0],a})},function(a){return c.i64.eq(d[11],d[3])?c.resolve((d[14]=c.localizeV2([0,1890485478],f),d[12]=[d[14],": ",d[13]].join(""))):c.seq([function(a){return c.db.table(9).fetch([[[d[4]]]]).next().then(function(b,e){var a=b.done;b=b.value;return a?d[14]=!1:(e=b.item,d[14]=c.i64.eq(e.c,[0,2]))})},function(a){return d[14]?c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[18]=f:(c=b.item,d[18]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[22]=c.localizeV2([0,14617150],f),d[20]=d[22]):(e=b.item,d[20]=e.p==null?e.h:e.p)})},function(a){return d[17]=d[18]==null?d[20]:d[18]}])},function(a){return d[16]=[d[17],": ",d[13]].join("")}]):c.resolve(d[16]=d[13])},function(a){return d[12]=d[16]}])},function(a){return d[10]=d[12]}]):c.seq([function(a){return c.i64.neq(d[6],f)&&[[53057,267535043],[85970,924785702],[85970,1004785694],[85970,1044785690]].some(function(a){return c.i64.eq(d[6],a)})?c.seq([function(a){return d[14]="\udb80\udc00",c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[12]=a[0],a})},function(a){return c.i64.eq(d[12],d[3])?c.resolve((d[15]=c.localizeV2([0,1890485478],f),d[13]=[d[15],": ",d[14]].join(""))):c.seq([function(a){return c.db.table(9).fetch([[[d[4]]]]).next().then(function(b,e){var a=b.done;b=b.value;return a?d[15]=!1:(e=b.item,d[15]=c.i64.eq(e.c,[0,2]))})},function(a){return d[15]?c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[19]=f:(c=b.item,d[19]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[23]=c.localizeV2([0,14617150],f),d[21]=d[23]):(e=b.item,d[21]=e.p==null?e.h:e.p)})},function(a){return d[18]=d[19]==null?d[21]:d[19]}])},function(a){return d[17]=[d[18],": ",d[14]].join("")}]):c.resolve(d[17]=d[14])},function(a){return d[13]=d[17]}])},function(a){return d[11]=d[13]}]):c.seq([function(a){return c.i64.neq(d[6],f)?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[13]=a[0],a})},function(a){return c.i64.eq(d[13],d[3])?c.resolve((d[15]=c.localizeV2([0,1299547062],f),d[14]=d[15])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[18]=f:(c=b.item,d[18]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[22]=c.localizeV2([0,14617150],f),d[20]=d[22]):(e=b.item,d[20]=e.p==null?e.h:e.p)})},function(a){return d[15]=d[18]==null?d[20]:d[18]}])},function(a){return d[16]=c.createArray(),d[16].push(d[15]),d[16],d[17]=c.localizeV2([0,3621454483],d[16]),d[14]=d[17]}])},function(a){return d[12]=d[14]}]):c.seq([function(a){return c.ct(c.ftr(c.db.table(16).fetch([[[d[4],d[8]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],d[7])&&a.c===d[8]})).then(function(a){return d[13]=a})},function(a){return c.i64.eq(d[13],[0,0])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[15]=a[0],a})},function(a){return c.i64.eq(d[15],d[3])?c.resolve((d[17]=c.localizeV2([0,3948960063],f),d[16]=d[17])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[20]=f:(c=b.item,d[20]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[24]=c.localizeV2([0,14617150],f),d[22]=d[24]):(e=b.item,d[22]=e.p==null?e.h:e.p)})},function(a){return d[17]=d[20]==null?d[22]:d[20]}])},function(a){return d[18]=c.createArray(),d[18].push(d[17]),d[18],d[19]=c.localizeV2([0,1249692047],d[18]),d[16]=d[19]}])},function(a){return d[14]=d[16]}]):c.seq([function(a){return c.i64.eq(d[13],[0,1])?c.seq([function(a){return c.ftr(c.db.table(16).fetch([[[d[4],d[8]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],d[7])&&a.c===d[8]}).next().then(function(b,c){var a=b.done;b=b.value;return a?(a=[[0,0],f,f,f],d[16]=a[0],d[17]=a[1],d[18]=a[2],d[19]=a[3],a):(c=b.item,a=[c.f,c.Y,c.q,c.V],d[16]=a[0],d[17]=a[1],d[18]=a[2],d[19]=a[3],a)})},function(a){return d[21]=f,c.i64.eq(d[16],[0,1])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[26]=a[0],a})},function(a){return c.i64.eq(d[26],d[3])?c.resolve((d[28]=c.localizeV2([0,1299547062],f),d[27]=d[28])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[31]=f:(c=b.item,d[31]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[35]=c.localizeV2([0,14617150],f),d[33]=d[35]):(e=b.item,d[33]=e.p==null?e.h:e.p)})},function(a){return d[28]=d[31]==null?d[33]:d[31]}])},function(a){return d[29]=c.createArray(),d[29].push(d[28]),d[29],d[30]=c.localizeV2([0,3621454483],d[29]),d[27]=d[30]}])},function(a){return d[21]=d[27]}]):c.resolve()},function(a){return d[21]===f&&(c.i64.eq(d[16],[0,2])||c.i64.eq(d[16],[0,8]))?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[26]=a[0],a})},function(a){return c.i64.eq(d[26],d[3])?c.resolve((d[28]=c.localizeV2([0,2106510577],f),d[27]=d[28])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[31]=f:(c=b.item,d[31]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[35]=c.localizeV2([0,14617150],f),d[33]=d[35]):(e=b.item,d[33]=e.p==null?e.h:e.p)})},function(a){return d[28]=d[31]==null?d[33]:d[31]}])},function(a){return d[29]=c.createArray(),d[29].push(d[28]),d[29],d[30]=c.localizeV2([0,3960370133],d[29]),d[27]=d[30]}])},function(a){return d[21]=d[27]}]):c.resolve()},function(a){return d[21]===f&&c.i64.eq(d[16],[0,3])?c.seq([function(a){return d[17]!==f?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[27]=a[0],a})},function(a){return c.i64.eq(d[27],d[3])?c.resolve((d[29]=c.createArray(),d[29].push(d[17]),d[29],d[30]=c.localizeV2([0,3798396796],d[29]),d[28]=d[30])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[32]=f:(c=b.item,d[32]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[36]=c.localizeV2([0,14617150],f),d[34]=d[36]):(e=b.item,d[34]=e.p==null?e.h:e.p)})},function(a){return d[29]=d[32]==null?d[34]:d[32]}])},function(a){return d[30]=c.createArray(),d[30].push(d[29]),d[30],d[30].push(d[17]),d[30],d[31]=c.localizeV2([0,3388601579],d[30]),d[28]=d[31]}])},function(a){return d[26]=d[28]}]):c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[27]=a[0],a})},function(a){return c.i64.eq(d[27],d[3])?c.resolve((d[29]=c.localizeV2([0,1556712457],f),d[28]=d[29])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[32]=f:(c=b.item,d[32]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[36]=c.localizeV2([0,14617150],f),d[34]=d[36]):(e=b.item,d[34]=e.p==null?e.h:e.p)})},function(a){return d[29]=d[32]==null?d[34]:d[32]}])},function(a){return d[30]=c.createArray(),d[30].push(d[29]),d[30],d[31]=c.localizeV2([0,3601791933],d[30]),d[28]=d[31]}])},function(a){return d[26]=d[28]}])},function(a){return d[21]=d[26]}]):c.resolve()},function(a){return d[21]===f&&(c.i64.eq(d[16],[0,4])||c.i64.eq(d[16],[0,9]))?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[26]=a[0],a})},function(a){return c.i64.eq(d[26],d[3])?c.resolve((d[28]=c.localizeV2([0,3759817031],f),d[27]=d[28])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[31]=f:(c=b.item,d[31]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[35]=c.localizeV2([0,14617150],f),d[33]=d[35]):(e=b.item,d[33]=e.p==null?e.h:e.p)})},function(a){return d[28]=d[31]==null?d[33]:d[31]}])},function(a){return d[29]=c.createArray(),d[29].push(d[28]),d[29],d[30]=c.localizeV2([0,2934729541],d[29]),d[27]=d[30]}])},function(a){return d[21]=d[27]}]):c.resolve()},function(a){return d[21]===f&&c.i64.eq(d[16],[0,5])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[26]=a[0],a})},function(a){return c.i64.eq(d[26],d[3])?c.resolve((d[28]=c.localizeV2([0,392493418],f),d[27]=d[28])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[31]=f:(c=b.item,d[31]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[35]=c.localizeV2([0,14617150],f),d[33]=d[35]):(e=b.item,d[33]=e.p==null?e.h:e.p)})},function(a){return d[28]=d[31]==null?d[33]:d[31]}])},function(a){return d[29]=c.createArray(),d[29].push(d[28]),d[29],d[30]=c.localizeV2([0,4085467454],d[29]),d[27]=d[30]}])},function(a){return d[21]=d[27]}]):c.resolve()},function(a){return d[21]===f&&c.i64.eq(d[16],[0,10])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[26]=a[0],a})},function(a){return c.i64.eq(d[26],d[3])?c.resolve((d[28]=c.localizeV2([0,2738683656],f),d[27]=d[28])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[31]=f:(c=b.item,d[31]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[35]=c.localizeV2([0,14617150],f),d[33]=d[35]):(e=b.item,d[33]=e.p==null?e.h:e.p)})},function(a){return d[28]=d[31]==null?d[33]:d[31]}])},function(a){return d[29]=c.createArray(),d[29].push(d[28]),d[29],d[30]=c.localizeV2([0,2996525642],d[29]),d[27]=d[30]}])},function(a){return d[21]=d[27]}]):c.resolve()},function(a){return d[18]==="xma_live_location_sharing"?d[22]=[0,3e3]:d[22]=f,c.i64.neq(d[22],f)?c.seq([function(a){return c.i64.eq(d[22],[0,0])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[27]=a[0],a})},function(a){return c.i64.eq(d[27],d[3])?c.resolve((d[29]=c.localizeV2([0,3948960063],f),d[28]=d[29])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[32]=f:(c=b.item,d[32]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[36]=c.localizeV2([0,14617150],f),d[34]=d[36]):(e=b.item,d[34]=e.p==null?e.h:e.p)})},function(a){return d[29]=d[32]==null?d[34]:d[32]}])},function(a){return d[30]=c.createArray(),d[30].push(d[29]),d[30],d[31]=c.localizeV2([0,1249692047],d[30]),d[28]=d[31]}])},function(a){return d[26]=d[28]}]):c.seq([function(a){return c.i64.eq(d[22],[0,1e3])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[28]=a[0],a})},function(a){return c.i64.eq(d[28],d[3])?c.resolve((d[30]=c.localizeV2([0,2326868239],f),d[29]=d[30])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[33]=f:(c=b.item,d[33]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[37]=c.localizeV2([0,14617150],f),d[35]=d[37]):(e=b.item,d[35]=e.p==null?e.h:e.p)})},function(a){return d[30]=d[33]==null?d[35]:d[33]}])},function(a){return d[31]=c.createArray(),d[31].push(d[30]),d[31],d[32]=c.localizeV2([0,1001986796],d[31]),d[29]=d[32]}])},function(a){return d[27]=d[29]}]):c.seq([function(a){return c.i64.eq(d[22],[0,1001])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[29]=a[0],a})},function(a){return c.i64.eq(d[29],d[3])?c.resolve((d[31]=c.localizeV2([0,2326868239],f),d[30]=d[31])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[34]=f:(c=b.item,d[34]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[38]=c.localizeV2([0,14617150],f),d[36]=d[38]):(e=b.item,d[36]=e.p==null?e.h:e.p)})},function(a){return d[31]=d[34]==null?d[36]:d[34]}])},function(a){return d[32]=c.createArray(),d[32].push(d[31]),d[32],d[33]=c.localizeV2([0,1001986796],d[32]),d[30]=d[33]}])},function(a){return d[28]=d[30]}]):c.seq([function(a){return c.i64.eq(d[22],[0,1002])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[30]=a[0],a})},function(a){return c.i64.eq(d[30],d[3])?c.resolve((d[32]=c.localizeV2([0,2285746939],f),d[31]=d[32])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[35]=f:(c=b.item,d[35]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[39]=c.localizeV2([0,14617150],f),d[37]=d[39]):(e=b.item,d[37]=e.p==null?e.h:e.p)})},function(a){return d[32]=d[35]==null?d[37]:d[35]}])},function(a){return d[33]=c.createArray(),d[33].push(d[32]),d[33],d[34]=c.localizeV2([0,3759448420],d[33]),d[31]=d[34]}])},function(a){return d[29]=d[31]}]):c.seq([function(a){return c.i64.eq(d[22],[0,1003])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[31]=a[0],a})},function(a){return c.i64.eq(d[31],d[3])?c.resolve((d[33]=c.localizeV2([0,3719716921],f),d[32]=d[33])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[36]=f:(c=b.item,d[36]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[40]=c.localizeV2([0,14617150],f),d[38]=d[40]):(e=b.item,d[38]=e.p==null?e.h:e.p)})},function(a){return d[33]=d[36]==null?d[38]:d[36]}])},function(a){return d[34]=c.createArray(),d[34].push(d[33]),d[34],d[35]=c.localizeV2([0,284944921],d[34]),d[32]=d[35]}])},function(a){return d[30]=d[32]}]):c.seq([function(a){return c.i64.eq(d[22],[0,1004])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[32]=a[0],a})},function(a){return c.i64.eq(d[32],d[3])?c.resolve((d[34]=c.localizeV2([0,3948960063],f),d[33]=d[34])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[37]=f:(c=b.item,d[37]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[41]=c.localizeV2([0,14617150],f),d[39]=d[41]):(e=b.item,d[39]=e.p==null?e.h:e.p)})},function(a){return d[34]=d[37]==null?d[39]:d[37]}])},function(a){return d[35]=c.createArray(),d[35].push(d[34]),d[35],d[36]=c.localizeV2([0,1249692047],d[35]),d[33]=d[36]}])},function(a){return d[31]=d[33]}]):c.seq([function(a){return c.i64.eq(d[22],[0,2e3])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[33]=a[0],a})},function(a){return c.i64.eq(d[33],d[3])?c.resolve((d[35]=c.localizeV2([0,3948960063],f),d[34]=d[35])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[38]=f:(c=b.item,d[38]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[42]=c.localizeV2([0,14617150],f),d[40]=d[42]):(e=b.item,d[40]=e.p==null?e.h:e.p)})},function(a){return d[35]=d[38]==null?d[40]:d[38]}])},function(a){return d[36]=c.createArray(),d[36].push(d[35]),d[36],d[37]=c.localizeV2([0,1249692047],d[36]),d[34]=d[37]}])},function(a){return d[32]=d[34]}]):c.seq([function(a){return c.i64.eq(d[22],[0,2001])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[34]=a[0],a})},function(a){return c.i64.eq(d[34],d[3])?c.resolve((d[36]=c.localizeV2([0,2285746939],f),d[35]=d[36])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[39]=f:(c=b.item,d[39]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[43]=c.localizeV2([0,14617150],f),d[41]=d[43]):(e=b.item,d[41]=e.p==null?e.h:e.p)})},function(a){return d[36]=d[39]==null?d[41]:d[39]}])},function(a){return d[37]=c.createArray(),d[37].push(d[36]),d[37],d[38]=c.localizeV2([0,3759448420],d[37]),d[35]=d[38]}])},function(a){return d[33]=d[35]}]):c.seq([function(a){return c.i64.eq(d[22],[0,2002])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[35]=a[0],a})},function(a){return c.i64.eq(d[35],d[3])?c.resolve((d[37]=c.localizeV2([0,3719716921],f),d[36]=d[37])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[40]=f:(c=b.item,d[40]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[44]=c.localizeV2([0,14617150],f),d[42]=d[44]):(e=b.item,d[42]=e.p==null?e.h:e.p)})},function(a){return d[37]=d[40]==null?d[42]:d[40]}])},function(a){return d[38]=c.createArray(),d[38].push(d[37]),d[38],d[39]=c.localizeV2([0,284944921],d[38]),d[36]=d[39]}])},function(a){return d[34]=d[36]}]):c.seq([function(a){return c.i64.eq(d[22],[0,2003])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[36]=a[0],a})},function(a){return c.i64.eq(d[36],d[3])?c.resolve((d[38]=c.localizeV2([0,3948960063],f),d[37]=d[38])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[41]=f:(c=b.item,d[41]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[45]=c.localizeV2([0,14617150],f),d[43]=d[45]):(e=b.item,d[43]=e.p==null?e.h:e.p)})},function(a){return d[38]=d[41]==null?d[43]:d[41]}])},function(a){return d[39]=c.createArray(),d[39].push(d[38]),d[39],d[40]=c.localizeV2([0,1249692047],d[39]),d[37]=d[40]}])},function(a){return d[35]=d[37]}]):c.seq([function(a){return c.i64.eq(d[22],[0,3e3])?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[37]=a[0],a})},function(a){return c.i64.eq(d[37],d[3])?c.resolve((d[39]=c.localizeV2([0,2135145355],f),d[38]=d[39])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[42]=f:(c=b.item,d[42]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[46]=c.localizeV2([0,14617150],f),d[44]=d[46]):(e=b.item,d[44]=e.p==null?e.h:e.p)})},function(a){return d[39]=d[42]==null?d[44]:d[42]}])},function(a){return d[40]=c.createArray(),d[40].push(d[39]),d[40],d[41]=c.localizeV2([0,3603511704],d[40]),d[38]=d[41]}])},function(a){return d[36]=d[38]}]):c.resolve(d[36]=f)},function(a){return d[35]=d[36]}])},function(a){return d[34]=d[35]}])},function(a){return d[33]=d[34]}])},function(a){return d[32]=d[33]}])},function(a){return d[31]=d[32]}])},function(a){return d[30]=d[31]}])},function(a){return d[29]=d[30]}])},function(a){return d[28]=d[29]}])},function(a){return d[27]=d[28]}])},function(a){return d[26]=d[27]}])},function(a){return d[23]=d[26]}]):c.resolve(d[23]=f)},function(a){return d[21]===f&&c.i64.eq(d[16],[0,7])&&d[23]!==f?d[21]=d[23]:0,c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[24]=a[0],a})},function(a){return c.i64.eq(d[24],d[3])?c.resolve((d[26]=c.localizeV2([0,3948960063],f),d[25]=d[26])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[29]=f:(c=b.item,d[29]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[33]=c.localizeV2([0,14617150],f),d[31]=d[33]):(e=b.item,d[31]=e.p==null?e.h:e.p)})},function(a){return d[26]=d[29]==null?d[31]:d[29]}])},function(a){return d[27]=c.createArray(),d[27].push(d[26]),d[27],d[28]=c.localizeV2([0,1249692047],d[27]),d[25]=d[28]}])},function(a){return d[15]=d[21]==null?d[25]:d[21]}]):c.seq([function(a){return d[16]=!0,c.fe(c.ftr(c.db.table(16).fetch([[[d[4],d[8]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],d[7])&&a.c===d[8]}),function(a){a=a.item;return c.i64.eq(a.f,[0,2])?0:d[16]=!1})},function(a){return d[16]?c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[18]=a[0],a})},function(a){return c.i64.eq(d[18],d[3])?c.resolve((d[20]=c.createArray(),d[20].push(d[13]),d[20],d[21]=c.localizeV2([0,705614308],d[20]),d[19]=d[21])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[23]=f:(c=b.item,d[23]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[27]=c.localizeV2([0,14617150],f),d[25]=d[27]):(e=b.item,d[25]=e.p==null?e.h:e.p)})},function(a){return d[20]=d[23]==null?d[25]:d[23]}])},function(a){return d[21]=c.createArray(),d[21].push(d[20]),d[21],d[21].push(d[13]),d[21],d[22]=c.localizeV2([0,313217698],d[21]),d[19]=d[22]}])},function(a){return d[17]=d[19]}]):c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[18]=a[0],a})},function(a){return c.i64.eq(d[18],d[3])?c.resolve((d[20]=c.localizeV2([0,3558654267],f),d[19]=d[20])):c.seq([function(a){return c.seq([function(a){return c.ftr(c.db.table(14).fetch([[[d[4],d[3]]]]),function(a){return c.i64.eq(a.a,d[4])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(a.b,d[3])}).next().then(function(b,c){var a=b.done;b=b.value;return a?d[23]=f:(c=b.item,d[23]=c.e)})},function(a){return c.ftr(c.db.table(7).fetch([[[d[3]]]]),function(a){return c.i64.eq(a.a,d[3])&&c.i64.eq([0,1],[0,1])}).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[27]=c.localizeV2([0,14617150],f),d[25]=d[27]):(e=b.item,d[25]=e.p==null?e.h:e.p)})},function(a){return d[20]=d[23]==null?d[25]:d[23]}])},function(a){return d[21]=c.createArray(),d[21].push(d[20]),d[21],d[22]=c.localizeV2([0,3422266740],d[21]),d[19]=d[22]}])},function(a){return d[17]=d[19]}])},function(a){return d[15]=d[17]}])},function(a){return d[14]=d[15]}])},function(a){return d[12]=d[14]}])},function(a){return d[11]=d[12]}])},function(a){return d[10]=d[11]}])},function(a){return d[9]=d[10]}])},function(a){return d[1]=d[9]}])},function(e){return c.sp(b("LSUpdateThreadSnippet"),a[0],d[1],d[2],d[3],c.like(d[1],"%\udb80\udc00%"),f,f,!1)}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateThreadTheme",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({z:a[1],y:a[2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpdateThreadThemeColor",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return function(a){b.logger(a).mustfix(a)}("call to unsupported stored procedure: updateThreadThemeColor"),b.resolve(c)}e.exports=a}),null); __d("LSUpdateTypingIndicator",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.seq([function(c){return a[2]?b.db.table(52).put({a:a[0],b:a[1],c:b.i64.add(b.i64.of_float(Date.now()),[0,5e3])}):b.resolve()},function(c){return a[2]?b.resolve():b.fe(b.ftr(b.db.table(52).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.b,a[1])}),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertAvailableReactions",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(188).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertCTA",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(119).put({a:a[0],b:a[1],d:a[2],e:a[4],c:a[3],f:a[5],g:a[6],h:a[7]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertFolder",["LSUpdateFolderThreadSnippet"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.i64.neq(a[3],f)?c.resolve(d[0]=a[3]):c.seq([function(b){return c.db.table(9).fetchDesc([[[a[0]]],"parentThreadKeyLastActivityTimestampMs"]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[3]=[0,0]:(b=a.item,d[3]=b.i)})},function(a){return d[0]=d[3]}])},function(b){return c.i64.neq(a[4],f)?c.resolve(d[1]=a[4]):c.seq([function(b){return c.sb(c.ftr(c.db.table(9).fetch([[[a[0]]],"parentThreadKeyLastActivityTimestampMs"]),function(b){return c.i64.eq(b.A,a[0])&&c.i64.lt(b.j,b.i)}),[["j","ASC"]]).next().then(function(b,e){var g=b.done;b=b.value;return g?c.seq([function(b){return c.i64.neq(a[3],f)?c.resolve(d[5]=a[3]):c.seq([function(b){return c.db.table(9).fetchDesc([[[a[0]]],"parentThreadKeyLastActivityTimestampMs"]).next().then(function(b,c){var a=b.done;b=b.value;return a?d[6]=[0,0]:(c=b.item,d[6]=c.i)})},function(a){return d[5]=d[6]}])},function(a){return d[3]=d[5]}]):(e=b.item,d[3]=e.j)})},function(a){return d[1]=d[3]}])},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(b,e){e=b.done;b=b.value;return e?c.seq([function(b){return c.fe(c.ftr(c.db.table(9).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.a,a[0])&&c.i64.lt(b.Z,[0,80])}),function(a){return a["delete"]()})},function(b){return c.db.table(9).add({a:a[0],b:[0,0],c:[0,6],d:a[1],e:"",A:[0,0],f:a[2],i:d[0],j:d[1],k:[0,0],l:[0,0],m:"",n:!1,J:!1,K:!1,I:!1,Z:[0,80],u:[0,0],P:[0,0],Q:!1})}]):(b.item,c.fe(c.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({d:a[1],e:"",A:[0,0],f:a[2],i:d[0],j:d[1],k:[0,0],l:[0,0],m:"",p:f,q:f,r:f,s:f,n:!1,J:!1,K:!1,I:!1,Z:[0,80],u:[0,0],P:[0,0],Q:!1})}))})},function(d){return c.sp(b("LSUpdateFolderThreadSnippet"),a[0],a[5],a[6])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpsertLiveLocationSharer",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(149).fetch([[[a[0],a[1]]]]).next().then(function(c,d){d=c.done;c=c.value;return d?b.db.table(149).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5]}):(c.item,b.fe(b.db.table(149).fetch([[[a[0],a[1]]]]),function(b){var c=b.update;b.item;return c({c:a[2],d:a[3],e:a[4],f:a[5]})}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertLiveStreamMetadata",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.resolve(c)}e.exports=a}),null); __d("LSUpsertMSuggestions",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(21).put({c:a[2],a:a[0],b:a[1],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:a[8],j:a[9],k:a[10],l:a[11]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertMessagesStatusInTable",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.islc(b.ftr(b.db.table(12).fetchDesc([[[a[0],{lte:a[1]}]]]),function(c){return b.i64.eq(c.a,a[0])&&b.i64.eq(c.V,[0,80])&&b.i64.le(c.b,a[1])}),0,b.i64.to_float([0,1])).next().then(function(d,f){var g=d.done;d=d.value;return g?0:(f=d.item,c[2]=f.b,c[1]=f.e,b.i64.eq(a[4],[0,2])&&a[5]===e?b.db.table(7).fetch([[[a[3]]]]).next().then(function(e,f){var d=e.done;e=e.value;return d?0:(f=e.item,b.db.table(33).put({a:c[1],b:a[0],c:c[2],d:a[2],e:a[3],f:a[4],g:f.b}))}):b.db.table(33).put({a:c[1],b:a[0],c:c[2],d:a[2],e:a[3],f:a[4],g:a[5]}))})},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpsertOverflowMenu",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(120).put({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5],g:a[6],h:a[7],i:a[8],j:a[9],k:a[10],l:a[11],m:a[12],n:a[13],o:a[14],p:a[15],q:a[16]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertRtcMultiwayCallInitiationConferenceName",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(24).put({a:a[0],b:a[1],c:a[2]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUserHasStory",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(e){return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[7]=a[0],a})},function(e){return c.i64.neq(a[0],d[7])?c.seq([function(e){return c.db.table(53).fetch([[[a[0]]],"optimistic"]).next().then(function(a,e){var h=a.done;a=a.value;return h?(h=[f,f],d[10]=h[0],d[11]=h[1],h):(e=a.item,c.seq([function(a){return c.sb(c.ftr(c.db.table(54).fetch(),function(a){return c.i64.eq(a.b,e.a)}),[["g","DESC"]]).next().then(function(e,i){var a=e.done;e=e.value;return a?(a=[f,f],d[13]=a[0],d[14]=a[1],a):(i=e.item,c.seq([function(a){return d[20]=i.g,d[21]=i.h,c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[16]=a[0],a})},function(a){return c.db.table(55).fetch([[[i.a,d[16],[0,1]]]]).next().then(function(a,b){b=a.done;a=a.value;return b?(b=[[0,39423],c.i64.add(d[20]==null?[0,0]:d[20],d[21]==null?[0,0]:d[21])],d[17]=b[0],d[18]=b[1],b):(a.item,b=[[0,14342874],c.i64.add(d[20]==null?[0,0]:d[20],d[21]==null?[0,0]:d[21])],d[17]=b[0],d[18]=b[1],b)})},function(a){return a=[d[17],d[18]],d[13]=a[0],d[14]=a[1],a}]))})},function(a){return a=[d[13],d[14]],d[10]=a[0],d[11]=a[1],a}]))})},function(a){return a=[d[10],d[11]],d[8]=a[0],d[9]=a[1],a}]):c.resolve((e=[f,f],d[8]=e[0],d[9]=e[1],e))},function(a){return a=[d[8],d[9]],d[4]=a[0],d[5]=a[1],a}])},function(a){return c.i64.neq(d[4],f)?(c.i64.eq(d[4],[0,39423])?d[7]=[0,1]:d[7]=[0,2],d[6]=d[7]):d[6]=f,a=[d[4],d[5],d[6]],d[0]=a[0],d[1]=a[1],d[2]=a[2],a}])},function(a){return c.i64.neq(d[2],f)?d[3]=c.i64.eq(d[2],[0,1])||c.i64.eq(d[2],[0,2]):d[3]=!1,e[0]=d[3]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUserHasUnreadStory",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(e){return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[7]=a[0],a})},function(e){return c.i64.neq(a[0],d[7])?c.seq([function(e){return c.db.table(53).fetch([[[a[0]]],"optimistic"]).next().then(function(a,e){var h=a.done;a=a.value;return h?(h=[f,f],d[10]=h[0],d[11]=h[1],h):(e=a.item,c.seq([function(a){return c.sb(c.ftr(c.db.table(54).fetch(),function(a){return c.i64.eq(a.b,e.a)}),[["g","DESC"]]).next().then(function(e,i){var a=e.done;e=e.value;return a?(a=[f,f],d[13]=a[0],d[14]=a[1],a):(i=e.item,c.seq([function(a){return d[20]=i.g,d[21]=i.h,c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[16]=a[0],a})},function(a){return c.db.table(55).fetch([[[i.a,d[16],[0,1]]]]).next().then(function(a,b){b=a.done;a=a.value;return b?(b=[[0,39423],c.i64.add(d[20]==null?[0,0]:d[20],d[21]==null?[0,0]:d[21])],d[17]=b[0],d[18]=b[1],b):(a.item,b=[[0,14342874],c.i64.add(d[20]==null?[0,0]:d[20],d[21]==null?[0,0]:d[21])],d[17]=b[0],d[18]=b[1],b)})},function(a){return a=[d[17],d[18]],d[13]=a[0],d[14]=a[1],a}]))})},function(a){return a=[d[13],d[14]],d[10]=a[0],d[11]=a[1],a}]))})},function(a){return a=[d[10],d[11]],d[8]=a[0],d[9]=a[1],a}]):c.resolve((e=[f,f],d[8]=e[0],d[9]=e[1],e))},function(a){return a=[d[8],d[9]],d[4]=a[0],d[5]=a[1],a}])},function(a){return c.i64.neq(d[4],f)?(c.i64.eq(d[4],[0,39423])?d[7]=[0,1]:d[7]=[0,2],d[6]=d[7]):d[6]=f,a=[d[4],d[5],d[6]],d[0]=a[0],d[1]=a[1],d[2]=a[2],a}])},function(a){return c.i64.neq(d[2],f)?d[3]=c.i64.eq(d[2],[0,1]):d[3]=!1,e[0]=d[3]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSWriteCtaAccountLinkEncodedUrl",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(19).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({h:a[1],k:a[2]})})},function(a){return b.resolve(c)}])}e.exports=a}),null);