1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[671],{3691:(e,t,r)=>{r.d(t,{BL:()=>o,Ij:()=>l,ST:()=>a,nL:()=>n,qE:()=>s,uI:()=>i});let a=60,n=[{languages:{ru:"ÐенÑкий",en:"Female"},name:"female"},{languages:{ru:"ÐÑжÑкой",en:"Male"},name:"male"}],i={REGISTRATION:"registration",LOGIN:"login",RECOVERY_PASSWORD:"recoveryPassword"},s={INITIAL:"initial",OTP:"otp",NEW_PASSWORD:"newPassword",PROFILE:"profile",SUCCESS:"success",ERROR:"error",RECOVERY_PASSWORD:"recoveryPassword"},o={PHONE:"phone",EMAIL:"email"},l={TELEGRAM:"telegram",SMS:"sms"}},11010:(e,t,r)=>{r.d(t,{S:()=>n});var a=r(59956);let n=({entityType:e,alias:t})=>({[a.P.CHANNEL]:`@${t}`,[a.P.COMMUNITY]:`c/${t}`,[a.P.USER]:`u/${t}`})[e]},11302:(e,t,r)=>{r.d(t,{s:()=>n});var a=r(78612);let n={fromCommentsWithChildren:e=>{let t=[];for(let r of e)if(t.push(r?.creator_metadata?.avatar??""),r?.children?.length)for(let e of r.children)t.push(e?.creator_metadata?.avatar??"");return t},postsMedia:e=>{let t=e.map(e=>e?.media??[]).flat().map(e=>e.media_id),r=e.map(e=>e?.popular_comments?.[0]?.creator_metadata?.avatar),n=e.flatMap(e=>"channel_metadata"in e?[e.channel_metadata?.avatar??null]:"community_metadata"in e?[e.community_metadata?.avatar??null,e.creator_metadata?.avatar??null]:[]).filter(e=>"string"==typeof e);return(0,a.I)([...t,...r,...n])},postMedia:e=>{let t=(e?.media??[]).map(e=>e.media_id);return(0,a.I)(t)},usersAvatars:e=>e.map(e=>e.avatar),recommendedAvatarsAndBackgrounds:(e,t)=>t.flatMap(t=>[e[t]?.avatar??"",e[t]?.background??""]),channelsAvatars:e=>{let t=e.map(e=>e.avatar);return(0,a.I)(t)},communitiesAvatarsAndBackgrounds:e=>{let t=e.flatMap(e=>[e.avatar,e.background]);return(0,a.I)(t)},notificationsAvatars:e=>{let t=e.map(e=>e.avatar);return(0,a.I)(t)}}},25250:(e,t,r)=>{r.d(t,{$Y:()=>d,EB:()=>c,JS:()=>p,QZ:()=>_,RL:()=>u,RS:()=>o,fq:()=>E,i9:()=>l,kk:()=>m});var a=r(72694),n=r(17279),i=r(72140),s=r(26456);let o=(0,a.zD)("communities/fetchCommunitiesByIds",async(e,{rejectWithValue:t})=>{try{return await i.Hv.getCommunitiesByIdsV1({data:{community_ids:e}})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),l=(0,a.zD)("community/fetchSubscribers",async e=>(await (0,s.getCommunitySubscribersV1)({community_id_or_alias:e},{cache:"no-cache"})).users),d=(0,a.zD)("communities/fetchRecommendedCommunities",async({limit:e},{rejectWithValue:t})=>{try{return[]}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),u=(0,a.zD)("communities/fetchCommunitiesManagedByUser",async({userUuid:e},{rejectWithValue:t})=>{try{let t=(await i.Hv.getCommunitiesAdminnedByUserV1({params:{limit:999,offset:0},user_id:e})).admin.map(e=>e.community_id);if(0===t.length)return{communities:[]};return await i.Hv.getCommunitiesByIdsV1({data:{community_ids:t}})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),c=(0,a.zD)("communities/fetchCommunities",async({limit:e,offset:t},{rejectWithValue:r})=>{try{return await i.Hv.getCommunitiesV1({params:{limit:e,offset:t}})}catch(t){let e=(0,n._)(t);return r({message:e.message,validationErrors:e.validationErrors})}}),m=(0,a.zD)("communities/fetchFeedRecommendedCommunities",async({limit:e,cursor:t},{rejectWithValue:r})=>{try{return await i.w9.getHubCommunityRecommendationsV2({params:{limit:e,cursor:t}})}catch(t){let e=(0,n._)(t);return r({message:e.message,validationErrors:e.validationErrors})}}),E=(0,a.zD)("communities/fetchHubCommunityTrends",async({limit:e,cursor:t,topic:r},{rejectWithValue:a})=>{try{return await i.w9.getHubCommunityTrendsV2({params:{limit:e,cursor:t,topic:r}})}catch(t){let e=(0,n._)(t);return a({message:e.message,validationErrors:e.validationErrors})}}),_=(0,a.zD)("feed/ignoreCommunity",async({community_id:e},{rejectWithValue:t})=>{try{return await i.w9.addCommunityToIgnoredV2({community_id:e})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),p=(0,a.zD)("feed/unignoreCommunity",async({community_id:e},{rejectWithValue:t})=>{try{return await i.w9.removeCommunityFromIgnoredV2({community_id:e})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}})},25697:(e,t,r)=>{r.d(t,{NH:()=>n.NH,Oo:()=>n.Oo,TY:()=>n.TY,V_:()=>a.V,a4:()=>n.a4,be:()=>n.be,gF:()=>n.gF,rq:()=>n.rq,zI:()=>n.zI});var a=r(36242),n=r(54788)},35623:(e,t,r)=>{r.d(t,{ZL:()=>I,l4:()=>C,JS:()=>v,LI:()=>O,Un:()=>y,Ix:()=>h,RY:()=>R});var a=r(3691),n=r(54788),i=r(72694),s=r(72140),o=r(59956),l=r(53358),d=r(75184),u=r(95728),c=r(57766),m=r(57850),E=r(77104),_=r(83897);let p={first_name:"profile",last_name:"profile",birthday:"profile",gender:"profile",otp_code:"otp",password:"newPassword"};function f(e,t="ru"){if(e instanceof E.h){let r=e.data;if(r&&Array.isArray(r.detail)&&r.detail.length&&"loc"in r.detail[0]){let t,a={};
1return r.detail.forEach(e=>{let r=e.loc[e.loc.length-1].toString();a[r]=e.msg,t??=r}),{status:e.status,message:"error.validation",validationErrors:a,stepToReturn:t?p[t]:"initial"}}return r?.detail?.messages?{status:e.status,message:r.detail.messages[t]??r.detail.detail,validationErrors:null}:{status:e.status,message:"error.default",validationErrors:null}}if(e instanceof _.G){o.of.isLogsEnabled&&console.error("[ZOD ERROR]:",e);let t={};return e.errors.forEach(e=>{let r=e.path.join(".");r&&(t[r]=e.message)}),{status:400,message:"error.validation",validationErrors:t}}return{status:500,message:"error.default",validationErrors:null}}let{isLogsEnabled:g}=o.of,y=(0,i.zD)("authV2/registerInitial",async({phone:e,email:t},{getState:r,dispatch:n})=>{let{authMethod:i,registrationData:s}=r().authV2;(n((0,m.JK)(null)),n((0,m.jr)({...e?{phone:e,region:s.region}:{email:t}})),i===a.BL.PHONE)?n((0,m.SM)(a.qE.OTP)):n((0,m.SM)(a.qE.NEW_PASSWORD))}),h=(0,i.zD)("authV2/sendOtp",async(e,{getState:t,rejectWithValue:r,dispatch:n})=>{let i,o=e?.channel,{registrationData:l,recoveryPasswordData:d,formType:u}=t().authV2,c=u===a.uI.RECOVERY_PASSWORD;if(c)i={email:d.email};else{let{phone:e,email:t,region:r}=l;i=e?{phone:e,region:r,channel:o??a.Ij.TELEGRAM}:{email:t}}try{await s.is.postAuthSendOtp({data:i})}catch(t){let e=f(t);if(400===e.status&&c)return n((0,m.kL)(a.qE.RECOVERY_PASSWORD)),r({message:e.message});return r({message:"error.otp.sendError"})}}),R=(0,i.zD)("authV2/verifyOtp",async({otp_code:e},{getState:t,dispatch:r,rejectWithValue:n})=>{let{authMethod:i,registrationData:o}=t().authV2,{phone:l,email:d,region:u}=o;try{let t;if(i===a.BL.PHONE&&l)t=await s.is.postAuthRegisterPhoneConfirm({data:{phone:l,region:u,otp_code:e}});else{if(i!==a.BL.EMAIL||!d)return r((0,m.kL)(a.qE.INITIAL)),n({message:"error.validation"});t=await s.is.postAuthRegisterEmailConfirm({data:{email:d,otp_code:e}})}r((0,m.JK)(t)),r((0,m.SM)(a.qE.PROFILE));return}catch(t){let e=f(t);if(500===e.status&&r((0,m.SM)(a.qE.ERROR)),409===e.status)return r((0,m.kL)(a.qE.INITIAL)),n({message:`error.registration.initial.${i}`});if(401===e.status)return n({message:"error.otp.notCorrect"});return n({message:e.message,validationErrors:e.validationErrors})}}),I=(0,i.zD)("authV2/completeRegistration",async(e,{getState:t,dispatch:r,rejectWithValue:n})=>{let{registrationData:i,authMethod:o,verificationCode:E,verificationCodeExp:_}=t().authV2,p=Math.floor(Date.now()/1e3);if(!E||_&&_<=p)return r((0,m.JK)(null)),r((0,m.kL)(a.qE.OTP)),n({message:"error.otp.expired"});let y=(0,l.m)(i.birthday),h=i.first_name?.trim(),R=i.gender?.trim();if(!y||!h||!R)return r((0,m.kL)(a.qE.PROFILE)),n({message:"error.validation"});let I=i.phone?.trim(),C=i.email?.trim(),v=i.password?.trim(),O=i.region;try{let e,t={birthday:y,first_name:h,gender:R,vc:E,...i.last_name?{last_name:i.last_name}:{}};if(o===a.BL.PHONE){if(!I)return r((0,m.kL)(a.qE.INITIAL)),n({message:"error.validation"});e=await s.is.postAuthRegisterPhone({data:{...t,phone:I,region:O}})}else{if(!C||!v)return r((0,m.kL)(a.qE.INITIAL)),n({message:"error.validation"});e=await s.is.postAuthRegisterEmail({data:{...t,email:C,password:v}})}let l=null;try{l=(0,u.s)(e.access_token).sub??null}catch(e){g&&console.warn("[WARN][AUTH_V2] Failed to decode registration token",e)}(0,d.Ll)({user_id:l,method:o});let _=await (0,c.Jv)("bff-credentials",{redirect:!1,tokens:JSON.stringify(e)});if(_?.error)throw Error(_.error);r((0,m.SM)(a.qE.SUCCESS))}catch(t){let e=f(t);if(400===e.status||401===e.status)return r((0,m.JK)(null)),r((0,m.kL)(a.qE.OTP)),n({message:"error.otp.expired"});if(409===e.status)return r((0,m.kL)(a.qE.INITIAL)),n({message:`error.registration.initial.${o}`});return 500===e.status&&r((0,m.SM)(a.qE.ERROR)),e.validationErrors&&e.stepToReturn&&r((0,m.kL)(e.stepToReturn)),n({message:e.message,validationErrors:e.validationErrors})}}),C=(0,i.zD)("authV2/loginByEmail",async(e,{dispatch:t,getState:r,rejectWithValue:i})=>{let{authMethod:o}=r().authV2;try{let r=await s.is.postAuthLoginEmail({data:{...e}}),a=null;try{a=(0,u.s)(r.access_token).sub??null}
1catch(e){g&&console.log("[ERROR][LOGIN][JWT_DECODE]",e)}(0,d.XB)({user_id:a,method:o});let i=await (0,c.Jv)("bff-credentials",{redirect:!1,tokens:JSON.stringify(r)});if(i?.error)throw Error(i.error);t((0,n.Oo)());return}catch(r){let e=f(r);if(500===e.status&&t((0,m.SM)(a.qE.ERROR)),404===e.status)return i({message:`error.login.notExist.${o}`});if(401===e.status||400===e.status)return i({message:"error.login.credentials"});return i({message:"error.default"})}}),v=(0,i.zD)("authV2/loginByPhone",async({otp_code:e},{dispatch:t,getState:r,rejectWithValue:i})=>{let{registrationData:o,authMethod:l}=r().authV2,{phone:E,region:_}=o;if(!E)return t((0,m.kL)(a.qE.INITIAL)),i({message:"error.validation"});try{let r=await s.is.postAuthLoginPhone({data:{phone:E,otp_code:e,region:_}}),a=null;try{a=(0,u.s)(r.access_token).sub??null}catch(e){g&&console.log("[ERROR][LOGIN][JWT_DECODE]",e)}(0,d.XB)({user_id:a,method:l});let i=await (0,c.Jv)("bff-credentials",{redirect:!1,tokens:JSON.stringify(r)});if(i?.error)throw Error(i.error);t((0,n.Oo)());return}catch(r){let e=f(r);if(500===e.status&&t((0,m.SM)(a.qE.ERROR)),404===e.status)return t((0,m.kL)(a.qE.INITIAL)),i({message:"error.login.notExist.phone"});if(401===e.status)return i({message:"error.otp.notCorrect"});return i({message:e.message})}}),O=(0,i.zD)("authV2/recoveryPassword",async(e,{dispatch:t,getState:r,rejectWithValue:n})=>{let i=r().authV2.recoveryPasswordData;try{await s.is.postAuthRecovery({data:i}),t((0,m.SM)(a.qE.SUCCESS))}catch(r){let e=f(r);if(500===e.status&&t((0,m.SM)(a.qE.ERROR)),422===e.status&&e.validationErrors&&"otp_code"in e.validationErrors||401===e.status)return t((0,m.kL)(a.qE.OTP)),n({message:"error.otp.notCorrect"});if(404===e.status)return t((0,m.A2)({otp_code:""})),t((0,m.kL)(a.qE.RECOVERY_PASSWORD)),n({message:"error.notExist"});return n({message:e.message})}})},36242:(e,t,r)=>{r.d(t,{V:()=>a});let a={AUTH_V2:"auth_v2",POST_EDITOR:"post_editor",DELETE_POST_CONFIRM:"delete_post_confirm",DELET
1E_ENTITY_CONFIRM:"delete_entity_confirm",UNSUBSCRIBE_CONFIRM:"unsubscribe_confirm",MANAGE_USER_ACTION_CONFIRM:"manage_user_entity_action_confirm",CANCEL_OUTGOING_FRIEND_REQUEST_CONFIRM:"cancel_outgoing_friend_request_confirm",DELETE_FRIEND_CONFIRM:"delete_friend_confirm",CONFIGURE_FEED:"configure_feed",EDIT_BANNED_POST_ALERT:"edit_banned_post_alert",PIN_POST_CONFIRM:"pin_post_confirm",APP_STORE_MODAL:"app_store_modal",SHARE_TO_FRIENDS:"share_to_friends",REPORT_POST:"report_post",DELETE_GROUP_CHAT_CONFIRM:"delete_group_chat_confirm",LEAVE_GROUP_CHAT_CONFIRM:"leave_group_chat_confirm",MESSENGER_LEAVE_GROUP_CHAT_CONFIRM:"messenger_leave_group_chat_confirm",LEAVE_GROUP_CHAT_NO_PARTICIPANTS_CONFIRM:"leave_group_chat_no_participants_confirm",MESSENGER_SELECT_NEW_OWNER:"messenger_select_new_owner",MESSENGER_DELETE_MESSAGES_CONFIRM:"messenger_delete_messages_confirm",MESSENGER_DELETE_DM_CHAT_CONFIRM:"messenger_delete_dm_chat_confirm",MESSENGER_CLEAR_CHAT_HISTORY_CONFIRM:"messenger_clear_chat_history_confirm",DELETE_GROUP_PARTICIPANT_CONFIRM:"delete_group_participant_confirm",DELET
1E_PROFILE:"delete_profile",SHARE_ENTITY:"share_entity",USER_NOT_FOUND:"user_not_found"}},40905:(e,t,r)=>{r.d(t,{I:()=>d});var a=r(57850),n=r(3691),i=r(25697),s=r(34036),o=r(57766),l=r(61427);let d=(e,t)=>{let r=(0,s.jL)(),{data:d,status:u}=(0,o.wV)(),c="authenticated"===u,m=d?.user?.id;return(0,l.useCallback)((...s)=>c&&m?e(m,...s):(r((0,a.r3)(n.uI.LOGIN)),r((0,i.a4)()),t?.()),[c,m,r,e,t])}},42803:(e,t,r)=>{r.d(t,{AI:()=>u,Dd:()=>i,XS:()=>s,vq:()=>d});var a=r(59956);function n(){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function i(){try{let e=new URL(window?.location?.href),t=new URLSearchParams(e.search);t.delete("_ym_debug");let r="/"===e.pathname||""===e.pathname,a=""===e.hash,n=""===t.toString();return r&&a&&n}catch{return!1}}function s({media:e=[],content:t,title:r}){let n=e.map(e=>e.media_type),i=!!t?.trim(),o=!!r?.trim(),l=[...o?[a.R6.TITLE]:[],...i?[a.R6.TEXT]:[],...n],d=n.some(e=>e===a.R6.IMAGE),u=n.some(e=>e===a.R6.VIDEO),c=l.join(", "),m=new Set(l);return{has_title:o,has_text:i,has_image:d,has_video:u,content_types:c,content_types_cnt:l.length,content_uniq_types_cnt:m.size}}async function o(e){let t,r,i=await new Promise(e=>{if(!window.ym)return e(null);try{window.ym(a.Zi,"getClientID",t=>e(t??null))}catch{e(null)}}),s=((r=(t=window.sessionStorage).getItem(a.oH))||(r=n(),t.setItem(a.oH,r)),r),o=sessionStorage.getItem(a.z2)??document.referrer??null;return{event_id:e?.withEventId?n():null,event_source:window.matchMedia?.("(max-width: 767px)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"site_mobile":"site_desktop",is_auth:!!e?.user_id,user_id:e?.user_id??null,client_id:i,session_id:s,page_url:window?.location?.href??null,referrer:o}}async function l(e){let{event_source:t,is_auth:r,user_id:a,client_id:n,page_url:i,referrer:s,session_id:l}=await o(e);return{heartbeat_event_source:t,heartbeat_is_auth:r,heartbeat_user_id:a,heartbeat_client_id:n,heartbeat_page_url:i,heartbeat_referrer:s,heartbeat_session_id:l}}function d({event_type:e,event_params:t,options:r}){(async()=>{try{if(!window.ym)return;let n=await o(r);window.ym(a.Zi,"reachGoal",e,{...n,event_type:e,event_params:t??null})}catch(e){a.of.isLogsEnabled&&console.log("[ERROR][YM_TRACK_GOAL]",e)}})()}function u(e){(async()=>{try{if(!window.ym)return;let t=await l(e);window.ym(a.Zi,"params",t)}catch(e){a.of.isLogsEnabled&&console.log("[ERROR][YM_TRACK_HEARTBEAT_PARAMS]",e)}})()}},43438:(e,t,r)=>{r.d(t,{$Q:()=>d,G1:()=>u,MS:()=>E,W$:()=>l,W8:()=>s,dW:()=>m,go:()=>o,nO:()=>_,r7:()=>c});var a=r(72694),n=r(17279),i=r(72140);let s=(0,a.zD)("channels/fetchChannelsByIds",async(e,{rejectWithValue:t})=>{try{return await i.bw.getChannelsByIdsV1({data:{channel_ids:e}})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),o=(0,a.zD)("channels/fetchRecommendedChannels",async({limit:e},{rejectWithValue:t})=>{try{let t=await i.bw.getChannelsAggregatedV1({params:{limit:e}});return Object.values(t.aggregated_channels??{}).flat().filter(e=>!1===e.is_subscribed)}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),l=(0,a.zD)("channels/fetchChannelsManagedByUser",async({userUuid:e},{rejectWithValue:t})=>{try{let t=(await i.bw.channelsOwnedByUserV1({params:{limit:999,offset:0},user_id:e})).owner.map(e=>e.channel_id);if(0===t.length)return{channels:[]};return await i.bw.getChannelsByIdsV1({data:{channel_ids:t}})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),d=(0,a.zD)("channels/fetchChannels",async({limit:e,offset:t},{rejectWithValue:r})=>{try{return await i.bw.getChannelsV1({params:{limit:e,offset:t}})}catch(t){let e=(0,n._)(t);return r({message:e.message,validationErrors:e.validationErrors})}}),u=(0,a.zD)("channels/fetchChannel",async({channelIdOrAlias:e},{rejectWithValue:t})=>{try{return await i.bw.getChannelByIdOrAliasV1({channel_id_or_alias:e})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),c=(0,a.zD)("channels/fetchFeedRecommendedChannels",async({limit:e,cursor:t},{rejectWithValue:r})=>{try{return await i.w9.getHubChannelRecommendationsV2({params:{limit:e,cursor:t}})}catch(t){let e=(0,n._)(t);return r({message:e.message,validationErrors:e.validationErrors})}}),m=(0,a.zD)("channels/fetchHubChannelTrends",async({limit:e,cursor:t,topic:r},{rejectWithValue:a})=>{try{return await i.w9.getHubChannelTrendsV2({params:{limit:e,cursor:t,topic:r}})}catch(t){let e=(0,n._)(t);return a({message:e.message,validationErrors:e.validationErrors})}}),E=(0,a.zD)("feed/ignoreChannel",async({channel_id:e},{rejectWithValue:t})=>{try{return await i.w9.addChannelToIgnoredV2({channel_id:e})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}}),_=(0,a.zD)("feed/unignoreChannel",async({channel_id:e},{rejectWithValue:t})=>{try{return await i.w9.removeChannelFromIgnoredV2({channel_id:e})}catch(r){let e=(0,n._)(r);return t({message:e.message,validationErrors:e.validationErrors})}})},48700:(e,t,r)=>{r.d(t,{Fy:()=>u,Le:()=>c,QR:()=>i,Um:()=>d,Xr:()=>m,fy:()=>l});var a=r(72694),n=r(43438);let i=(0,a.pU)({selectId:e=>e.channel_id}),s=i.getInitialState({loading:!1,error:null}),o=(0,a.Z0)({name:"channels",initialState:s,reducers:{updateChannel:i.updateOne,upsertChannel:i.upsertOne,upsertChannels:i.upsertMany},extraReducers:e=>{e.addCase(n.W8.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.channels)}),e.addCase(n.go.fulfilled,(e,t)=>{i.upsertMany(e,t.payload),e.loading=!1}),e.addCase(n.W$.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.channels),e.loading=!1}),e.addCase(n.$Q.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.channels)}),e.addCase(n.r7.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.channels)}),e.addCase(n.dW.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.channels)}),e.addMatcher((0,a.i0)(n.go.pending,n.W8.pending,n.W$.pending,n.$Q.pending,n.r7.pending,n.dW.pending,n.MS.pending,n.nO.pending),e=>{e.loading=!0,e.error=null}).addMatcher((0,a.i0)(n.W8.fulfilled,n.go.fulfilled,n.W$.fulfilled,n.$Q.fulfilled,n.r7.fulfilled,n.dW.fulfilled,n.MS.fulfilled,n.nO.fulfilled),e=>{e.loading=!1}).addMatcher((0,a.i0)(n.go.rejected,n.W8.rejected,n.W$.rejected,n.$Q.rejected,n.r7.rejected,n.dW.rejected,n.MS.rejected,n.nO.rejected),(e,t)=>{e.loading=!1,t.payload&&"string"==typeof t.payload.message?e.error=t.payload.message:e.error="Unknown error"})}}),{updateChannel:l,upsertChannels:d,upsertChannel:u}=o.actions,c=o.reducer,m=i.getSelectors(e=>e.channels)},49638:(e,t,r)=>{r.d(t,{I5:()=>i,ZL:()=>n,dS:()=>s,qg:()=>l,t$:()=>d,ts:()=>u,zU:()=>o});let a=new Map,n=(e,t)=>{a.set(e,t)},i=e=>a.get(e),s=async(e,t)=>{let r=a.get(e),n=r?.[t];n&&await n()},o=(e,t)=>!!a.get(e)?.[t],l=async(e,t)=>{let r=a.get(e);r?.onApply&&await r.onApply(t)},d=async(e,t)=>{let r=a.get(e);r?.onSelectOwner&&await r.onSelectOwner(t)},u=e=>{a.delete(e)}},54788:(e,t,r)=>{r.d(t,{CN:()=>y,DA:()=>V,EL:()=>g,NH:()=>m,Oo:()=>l,TY:()=>C,Wi:()=>O,ZX:()=>_,a4:()=>R,aZ:()=>f,ac:()=>T,av:()=>h,be:()=>v,bx:()=>E,eP:()=>u,gF:()=>S,i0:()=>p,iT:()=>x,lm:()=>P,mI:()=>A,nP:()=>w,qf:()=>o,qi:()=>d,qz:()=>L,rq:()=>c,uf:()=>N,wm:()=>D,x1:()=>M,zI:()=>I});var a=r(72694),n=r(36242),i=r(49638);let s=(0,a.Z0)({name:"modal",initialState:{currentModal:null},reducers:{openModal(e,t){e.currentModal=t.payload},closeModal(e){e.currentModal=null}}}),{openModal:o,closeModal:l}=s.actions,d=(e,t)=>({id:(0,a.Ak)(),type:e,params:t}),u=({type:e,params:t,callbacks:r})=>{let a=d(e,t);return r&&(0,i.ZL)(a.id,r),o(a)},c=({params:e,callbacks:t})=>u({type:n.V.UNSUBSCRIBE_CONFIRM,params:e,callbacks:t}),m=e=>o(d(n.V.POST_EDITOR,e)),E=e=>o(d(n.V.DELETE_POST_CONFIRM,e)),_=e=>o(d(n.V.PIN_POST_CONFIRM,e)),p=e=>o(d(n.V.EDIT_BANNED_POST_ALERT,e)),f=e=>o(d(n.V.DELETE_ENTITY_CONFIRM,e)),g=()=>o(d(n.V.DELETE_PROFILE,void 0)),y=e=>o(d(n.V.MANAGE_USER_ACTION_CONFIRM,e)),h=({storeVariant:e})=>o(d(n.V.APP_STORE_MODAL,{storeVariant:e})),R=()=>o(d(n.V.AUTH_V2,void 0)),I=({params:e,callbacks:t}={})=>u({type:n.V.CANCEL_OUTGOING_FRIEND_REQUEST_CONFIRM,params:e??{},callbacks:t}),C=({params:e,callbacks:t}={})=>u({type:n.V.DELETE_FRIEND_CONFIRM,params:e??{},callbacks:t}),v=e=>o(d(n.V.SHARE_TO_FRIENDS,e)),O=e=>o(d(n.V.SHARE_ENTITY,e)),S=({params:e,callbacks:t})=>u({type:n.V.REPORT_POST,params:e,callbacks:t}),T=({params:e,callbacks:t})=>u({type:n.V.MESSENGER_DELETE_MESSAGES_CONFIRM,params:e,callbacks:t}),M=({params:e,callbacks:t})=>u({type:n.V.MESSENGER_DELETE_DM_CHAT_CONFIRM,params:e,callbacks:t}),N=({params:e,callbacks:t})=>u({type:n.V.MESSENGER_CLEAR_CHAT_HISTORY_CONFIRM,params:e,callbacks:t}),A=({params:e,callbacks:t}={})=>u({type:n.V.DELETE_GROUP_CHAT_CONFIRM,params:e??{},callbacks:t}),L=({params:e,callbacks:t})=>u({type:n.V.LEAVE_GROUP_CHAT_CONFIRM,params:e,callbacks:t}),w=({params:e,callbacks:t})=>u({type:n.V.MESSENGER_LEAVE_GROUP_CHAT_CONFIRM,params:e,callbacks:t}),D=({params:e,callbacks:t})=>u({type:n.V.MESSENGER_SELECT_NEW_OWNER,params:e,callbacks:t}),P=({params:e,callbacks:t})=>u({type:n.V.LEAVE_GROUP_CHAT_NO_PARTICIPANTS_CONFIRM,params:e,callbacks:t}),V=({params:e,callbacks:t})=>u({type:n.V.DELETE_GROUP_PARTICIPANT_CONFIRM,params:e,callbacks:t}),x=s.reducer},57850:(e,t,r)=>{r.d(t,{A2:()=>f,ET:()=>_,JK:()=>y,OE:()=>c,SM:()=>u,WC:()=>d,jr:()=>E,kL:()=>m,r3:()=>l,rX:()=>h,zp:()=>p});var a=r(3691),n=r(72694),i=r(35623);let s={formType:a.uI.REGISTRATION,step:a.qE.INITIAL,authMethod:a.BL.PHONE,history:[a.qE.INITIAL],isLoading:!1,error:null,validationErrors:null,registrationData:{region:"RU"},recoveryPasswordData:{email:"",password:"",otp_code:""},isOtpError:!1,verificationCode:null,verificationCodeExp:null,verificationCodeIat:null},o=(0,n.Z0)({name:"authV2",initialState:s,reducers:{setFormType(e,t){Object.assign(e,{...s,formType:t.payload})},setAuthMethod(e,t){e.authMethod=t.payload,e.error=null,e.registrationData.phone="",e.registrationData.email="",e.verificationCode=null,e.verificationCodeExp=null,e.verificationCodeIat=null},setStep(e,t){e.step=t.payload,e.error=null,e.history.includes(t.payload)||e.history.push(t.payload)},goBack(e){e.history.length>1&&(e.history.pop(),e.step=e.history[e.history.length-1],e.error=null,1===e.history.length&&(e.formType===a.uI.RECOVERY_PASSWORD&&(e.authMethod=a.BL.EMAIL,e.formType=a.uI.LOGIN),e.registrationData={...s.registrationData,phone:e.registrationData.phone,email:e.registrationData.email},e.verificationCode=null,e.verificationCodeExp=null,e.verificationCodeIat=null))},returnToStep(e,t){let r=e.history.indexOf(t.payload);-1!==r&&(e.history=e.history.slice(0,r+1),e.step=t.payload,e.error=null)},updateRegistrationData(e,t){e.registrationData={...e.registrationData,...t.payload},e.isOtpError=!1,(void 0!==t.payload.email||void 0!==t.payload.phone||void 0!==t.payload.password)&&(e.verificationCode=null,e.verificationCodeExp=null,e.verificationCodeIat=null)},updateRecoveryPasswordData(e,t){e.recoveryPasswordData={...e.recoveryPasswordData,...t.payload},e.isOtpError=!1},clearError(e){e.isOtpError=!1,e.error=null,e.validationErrors=null},setIsOtpError(e,t){e.isOtpError=t.payload},setVerificationCode(e,t){if(!t.payload){e.verificationCode=null,e.verificationCodeExp=null,e.verificationCodeIat=null;return}e.verificationCode=t.payload.vc,e.verificationCodeIat=t.payload.iat??null,e.verificationCodeExp=t.payload.exp??null},resetStore:()=>s},extraReducers:e=>{e.addCase(i.LI.fulfilled,e=>{e.recoveryPasswordData={email:"",password:"",otp_code:""},e.step=a.qE.SUCCESS}).addCase(i.Ix.rejected,e=>{e.isOtpError=!0}).addCase(i.Ix.pending,e=>{e.isOtpError=!1}),e.addMatcher((0,n.i0)(i.Un.pending,i.RY.pending,i.Ix.pending,i.ZL.pending,i.l4.pending,i.JS.pending,i.LI.pending),e=>{e.isLoading=!0,e.error=null,e.validationErrors=null}).addMatcher((0,n.i0)(i.Un.fulfilled,i.Ix.fulfilled,i.RY.fulfilled,i.ZL.fulfilled,i.l4.fulfilled,i.LI.fulfilled,i.JS.fulfilled),e=>{e.isLoading=!1}).addMatcher((0,n.i0)(i.Un.rejected,i.Ix.rejected,i.RY.rejected,i.ZL.rejected,i.l4.rejected,i.LI.rejected,i.JS.rejected),(e,t)=>{if(e.isLoading=!1,t.payload&&"string"==typeof t.payload.message)e.error=t.payload.message,t.payload.validationErrors&&(e.validationErrors=t.payload.validationErrors);else{if(t.payload?.message===null)return;e.error="error.default"}})}}),{setFormType:l,setAuthMethod:d,setStep:u,goBack:c,returnToStep:m,updateRegistrationData:E,clearError:_,resetStore:p,updateRecoveryPasswordData:f,setIsOtpError:g,setVerificationCode:y}=o.actions,h=o.reducer},61668:(e,t,r)=>{r.d(t,{QP:()=>c});var a=r(68105),n=r(98392);let i=e=>e.communities,{selectAll:s,selectById:o,selectIds:l,selectEntities:d,selectTotal:u}=n.lo.getSelectors(i),c={selectAll:s,selectById:o,selectIds:l,selectEntities:d,selectTotal:u,selectLoading:(0,a.Mz)(i,e=>e.loading),selectError:(0,a.Mz)(i,e=>e.error)}},75184:(e,t,r)=>{r.d(t,{$h:()=>u,Ll:()=>i,My:()=>_,Ps:()=>p,US:()=>o,Wj:()=>c,XB:()=>s,Zl:()=>E,jJ:()=>m,pP:()=>d,rN:()=>l});var a=r(59956),n=r(42803);function i({user_id:e,method:t}){(0,n.vq)({event_type:a.yB.REGISTRATION,event_params:{method:t},options:{user_id:e}})}function s({user_id:e,method:t}){(0,n.vq)({event_type:a.yB.LOGIN,event_params:{method:t},options:{user_id:e}})}async function o({user_id:e}){(0,n.vq)({event_type:a.yB.LOGOUT,options:{user_id:e}})}function l({user_id:e,comment_id:t,post_id:r,community_id:i,channel_id:s,parent_id:o}){(0,n.vq)({event_type:a.yB.COMMENT,event_params:{comment_id:t,post_id:r,community_id:i,channel_id:s,parent_id:o,is_from_feed:(0,n.Dd)()},options:{user_id:e}})}function d({user_id:e,entity_type:t,entity_id:r,channel_id:i,community_id:s,reaction:o,canceled:l}){let u;u=o===a.ZP.LIKE?l?a.yB.LIKE_CANCELED:a.yB.LIKE:l?a.yB.DISLIKE_CANCELED:a.yB.DISLIKE,(0,n.vq)({event_type:u,event_params:{entity_type:t,entity_id:r,channel_id:i,community_id:s,is_from_feed:(0,n.Dd)()},options:{user_id:e}})}function u({user_id:e,entity_type:t,entity_id:r}){(0,n.vq)({event_type:a.yB.SUBSCRIPTION,event_params:{entity_type:t,entity_id:r,is_from_feed:(0,n.Dd)()},options:{user_id:e}})}function c({user_id:e,entity_type:t,entity_id:r}){(0,n.vq)({event_type:a.yB.UNSUBSCRIPTION,event_params:{entity_type:t,entity_id:r,is_from_feed:(0,n.Dd)()},options:{user_id:e}})}function m({user_id:e,channel_id:t,channel_title:r}){(0,n.vq)({event_type:a.yB.CHANNEL_CREATED,event_params:{channel_id:t,channel_title:r},options:{user_id:e}})}function E({user_id:e,community_id:t,community_title:r}){(0,n.vq)({event_type:a.yB.COMMUNITY_CREATED,event_params:{community_id:t,community_title:r},options:{user_id:e}})}function _({user_id:e,post_id:t,channel_id:r,community_id:i,media:s,content:o,title:l}){let d=(0,n.XS)({media:s,content:o,title:l});(0,n.vq)({event_type:a.yB.POST_CREATED,event_params:{post_id:t,channel_id:r,community_id:i,...d},options:{user_id:e}})}function p({user_id:e,entity_type:t,entity_id:r,post_id:i}){(0,n.vq)({event_type:a.yB.POST_VIEW,event_params:{entity_type:t,entity_id:r,is_from_feed:(0,n.Dd)(),post_id:i},options:{user_id:e}})}},98392:(e,t,r)=>{r.d(t,{Ph:()=>l,Tm:()=>u,hr:()=>d,lo:()=>i,yP:()=>c});var a=r(72694),n=r(25250);let i=(0,a.pU)({selectId:e=>e.community_id}),s=i.getInitialState({roleByCommunityId:null,loading:!1,error:null}),o=(0,a.Z0)({name:"communities",initialState:s,reducers:{updateCommunity:i.updateOne,upsertCommunities:i.upsertMany,upsertCommunity:i.upsertOne},extraReducers:e=>{e.addCase(n.RS.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.communities)}),e.addCase(n.$Y.fulfilled,(e,t)=>{i.upsertMany(e,t.payload)}),e.addCase(n.RL.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.communities)}),e.addCase(n.EB.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.communities)}),e.addCase(n.kk.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.communities)}),e.addCase(n.fq.fulfilled,(e,t)=>{i.upsertMany(e,t.payload.communities)}),e.addMatcher((0,a.i0)(n.RS.pending,n.$Y.pending,n.RL.pending,n.EB.pending,n.kk.pending,n.fq.pending,n.QZ.pending,n.JS.pending),e=>{e.loading=!0,e.error=null}).addMatcher((0,a.i0)(n.RS.fulfilled,n.$Y.fulfilled,n.RL.fulfilled,n.EB.fulfilled,n.kk.fulfilled,n.fq.fulfilled,n.QZ.fulfilled,n.JS.fulfilled),e=>{e.loading=!1}).addMatcher((0,a.i0)(n.$Y.rejected,n.RS.rejected,n.RL.rejected,n.EB.rejected,n.kk.rejected,n.fq.rejected,n.QZ.rejected,n.JS.rejected),(e,t)=>{e.loading=!1,t.payload&&"string"==typeof t.payload
1.message?e.error=t.payload.message:e.error="Unknown error"})}}),{updateCommunity:l,upsertCommunities:d,upsertCommunity:u}=o.actions,c=o.reducer}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.