1"use strict";(self.rspackChunkryfma=self.rspackChunkryfma||[]).push([[19904],{78498(e,s,a){var t=a(74848);a.d(s,{},{A:function(){return(0,t.jsxs)("section",{className:"px-0 py-4 xl:px-4",children:[(0,t.jsxs)("header",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"h-5 w-24 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-4 w-8 animate-pulse rounded bg-accent"})]}),(0,t.jsx)("div",{className:"grid grid-cols-8 gap-x-2 gap-y-2",children:Array.from({length:16},(e,s)=>(0,t.jsx)("div",{className:"h-8 w-8 animate-pulse rounded bg-accent"},s))})]})}})},28198(e,s,a){var t=a(74848);a.d(s,{},{A:function(){return(0,t.jsxs)("section",{className:"px-0 py-4 xl:px-4",children:[(0,t.jsxs)("header",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"h-5 w-28 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-4 w-8 animate-pulse rounded bg-accent"})]}),(0,t.jsx)("div",{className:"space-y-2",children:[1,2,3].map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"h-12 w-12 animate-pulse rounded-full bg-accent"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-accent"})]})]}),(0,t.jsx)("div",{className:"size-9 animate-pulse rounded-full bg-accent"})]},e))})]})}})},2826(e,s,a){var t=a(74848);a.d(s,{},{A:function(){return(0,t.jsxs)("section",{className:"pt-2 xl:p-4",children:[(0,t.jsxs)("header",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"h-5 w-20 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-4 w-8 animate-pulse rounded bg-accent"})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-6 w-6 animate-pulse rounded bg-accent"},e)),(0,t.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-full bg-accent"})]})]})}})},1849(e,s,a){var t=a(74848);a.d(s,{},{A:function(){return(0,t.jsxs)("section",{className:"px-0 py-4 xl:px-4",children:[(0,t.jsx)("header",{className:"mb-4",children:(0,t.jsx)("div",{className:"h-5 w-44 animate-pulse rounded bg-accent"})}),(0,t.jsx)("div",{className:"space-y-2",children:[1,2,3].map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"h-12 w-12 animate-pulse rounded-full bg-accent"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-accent"})]})]}),(0,t.jsx)("div",{className:"size-9 animate-pulse rounded-full bg-accent"})]},e))})]})}})},67898(e,s,a){var t=a(74848);a.d(s,{},{A:function(){return(0,t.jsxs)("section",{className:"px-0 py-4 xl:px-4",children:[(0,t.jsxs)("header",{className:"my-2 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"h-5 w-36 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-4 w-8 animate-pulse rounded bg-accent"})]}),(0,t.jsx)("div",{className:"space-y-4",children:[1,2,3].map(e=>(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"h-8 w-8 animate-pulse rounded-full bg-accent"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"h-4 w-28 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-7 w-36 animate-pulse rounded bg-accent"})]})]},e))})]})}})},11184(e,s,a){var t=a(74848),l=a(65392);a.d(s,{},{A:function(){return(0,t.jsxs)("div",{className:"mx-auto max-w-screen-xl pt-4",children:[(0,t.jsx)("section",{className:"mt-4 mb-8 xl:mt-0",children:(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("div",{className:"flex w-full flex-row space-x-4 pb-2 xl:w-8/12",children:[(0,t.jsx)("div",{className:"relative xl:mr-8",children:(0,t.jsx)("div",{className:"mt-2 h-36 w-36 animate-pulse rounded-full bg-accent"})}),(0,t.jsxs)("div",{className:"mt-2 flex-1 space-y-2",children:[(0,t.jsx)("div",{className:"h-9 w-48 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-4 w-64 animate-pulse rounded bg-accent"}),(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)("div",{className:"h-5 w-16 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-5 w-24 animate-pulse rounded bg-accent"})]})]})]}),(0,t.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,t.jsx)("div",{className:"h-10 w-24 animate-pulse rounded-lg bg-accent"}),(0,t.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-lg bg-accent"})]})]})}),(0,t.jsxs)("div",{className:"mt-4 flex items-center space-x-6 border-b pb-2",children:[(0,t.jsx)("div",{className:"h-8 w-16 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-8 w-20 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-8 w-16 animate-pulse rounded bg-accent"}),(0,t.jsx)("div",{className:"h-8 w-24 animate-pulse rounded bg-accent"})]}),(0,t.jsxs)("div",{className:"mt-4 mb-8 grid grid-cols-1 lg:grid-cols-12 lg:gap-8",children:[(0,t.jsxs)("main",{className:"col-span-12 lg:col-span-8",children:[(0,t.jsx)(l.A,{}),(0,t.jsx)(l.A,{}),(0,t.jsx)(l.A,{}),(0,t.jsx)(l.A,{})]}),(0,t.jsxs)("aside",{className:"col-span-12 lg:col-span-4",children:[(0,t.jsx)("div",{className:"mb-4 h-48 animate-pulse rounded-lg bg-accent"}),(0,t.jsx)("div",{className:"mb-4 h-24 animate-pulse rounded-lg bg-accent"}),(0,t.jsx)("div",{className:"mb-4 h-12 animate-pulse rounded-lg bg-accent"}),(0,t.jsx)("div",{className:"mb-4 h-24 animate-pulse rounded-lg bg-accent"}),(0,t.jsx)("div",{className:"mb-4 h-24 animate-pulse rounded-lg bg-accent"})]})]})]})}})},18307(e,s,a){a.d(s,{A:()=>E});var t=a(74848),l=a(93621),n=a(23829),i=a(54953),r=a.n(i),o=a(21540),c=a(90537),m=a(92368),d=a(38036),u=a(95723),p=a(85137),g=a(14687),x=a(44326),f=a(33163),h=a(27762),b=a(81736),j=a(42784),$=a(78498),v=a(28198),y=a(2826),N=a(1849),w=a(67898),A=a(76374);let C=function(){let{currUser:e}=(0,p.As)(),s=(0,j.shouldHideAds)(e);return(0,t.jsxs)("aside",{className:"col-span-12 lg:col-span-4",children:[(0,t.jsx)(y.A,{}),(0,t.jsx)(w.A,{}),(0,t.jsx)(A.A,{}),(0,t.jsx)($.A,{}),(0,t.jsx)(v.A,{}),!s&&(0,t.jsx)("div",{className:"pb-2 xl:px-4",children:(0,t.jsx)("div",{className:"h-[300px] animate-pulse rounded bg-accent"})}),(0,t.jsx)(N.A,{}),(0,t.jsx)("div",{className:"pb-2 xl:px-4",children:(0,t.jsx)("div",{className:"h-16 animate-pulse rounded bg-accent"})}),!s&&(0,t.jsx)("div",{className:"sticky top-4",children:(0,t.jsx)("div",{className:"h-[250px] animate-pulse rounded bg-accent"})})]})};var k=a(11184),T=a(58130),P=a(88735);let R=function({user:e,isH2Header:s=!1,socialLinks:a,isOwner:l}
1){return(0,t.jsxs)(r().Fragment,{children:[(0,t.jsx)(T.A,{user:e,socialLinks:a,isH2Header:s}),(0,t.jsx)(P.A,{stats:e.stats??{},username:e.username,isClassic:e.isClassic,isOwner:l})]})},I=(0,i.lazy)(()=>Promise.all([a.e(42050),a.e(2145),a.e(50329),a.e(20983),a.e(33358),a.e(32313),a.e(17674),a.e(41024),a.e(68685),a.e(43446),a.e(91610)]).then(a.bind(a,42511))),S=(0,i.lazy)(()=>a.e(16944).then(a.bind(a,46126))),U=(0,i.lazy)(()=>a.e(28069).then(a.bind(a,3746))),_=(0,i.lazy)(()=>Promise.all([a.e(15519),a.e(7700)]).then(a.bind(a,86303))),B=(e,s=0)=>{let a=160-s;if(a>=e.length)return e;let t=e.substring(0,a),l=t.lastIndexOf(" ");return l>0?t.substring(0,l):t},E=function({pageType:e="profile",showSidebar:s=!0,children:a,...j}){let $,[v]=(0,o.Bd)("user"),{currUser:y,currUserId:N}=(0,p.As)(),{isMobile:w,staticContext:A}=(0,p.t0)(),{username:T}=(0,c.g)(),[P]=(0,m.ok)(),E=y?y.username?.toLowerCase()===T?.toLowerCase():!A&&P.get("refresh"),F=P.get("giftId"),L=Number(P.get("page")??A.query?.page??"0"),[z]=(0,l.n)(h.A),{loading:O,error:H,data:Y}=(0,n.I)(b.A,{variables:{username:T,noCache:!!E},fetchPolicy:E?"network-only":"cache-first"});(0,i.useEffect)(()=>{Y?.getUser&&z({variables:{_id:Y.getUser._id}})},[Y?.getUser?._id]);let D=r().useRef(Y),M=r().useRef(T);M.current!==T&&(M.current=T,D.current=void 0),Y&&(D.current=Y);let J=Y??D.current;if(O&&!J?.getUser)return(0,t.jsx)(k.A,{});let q=O&&!!J?.getUser;if((H||!J?.getUser)&&!J?.getUser)return A&&(A.status=J?.getUser?404:410),(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)("div",{className:"h-screen w-full animate-pulse bg-accent"}),children:(0,t.jsx)(U,{username:T})});let G=J.getUser.redirectTo||"/";if(J.getUser.isDeleted){if("profile"!==e){let s=e;"allPosts"===e?s="all":"tagPosts"===e&&(s=`tag/${j.tagSlug}`),G+=`/${s}`}return A?(A.status=301,A.redirectTo=G,null):(0,t.jsx)(d.C5,{to:G})}let V=J.getUser,W=V.isBlocked,K=N===V._id,Q=!!V.roles&&V.roles.includes("admin");if(W)return(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)("div",{className:"h-screen w-full animate-pulse bg-accent"}),children:(0,t.jsx)(S,{username:T})});let X={...j,user:V,userId:V._id,postsCount:V.stats.postsCount||0,currUser:y,isMobile:w,isOwner:K,isAdmin:Q,isPersonal:!0,isClassic:V.isClassic,showDonation:"true"===P.get("showDonation"),forceFetch:!!y&&y.username===T,isShowFilters:V.stats.postsCount>1},Z=V.profile.name?V.profile.name.split(" "):[V.username],ee=V.stats.postsCount||0,es=V.profile.name,ea=`${V.profile.inclinedName} (@${V.username})`,et=V.profile.altName?` (${V.profile.altName})`:"",el=L>0?`u/${V.username}?page=${L}`:`u/${V.username}`,en=`${es}${et} - ${ee>0?`${ee} ${v("seoTitle",{count:ee})}`:v("seoTitle")}${L>0?` | ${v("page")} ${L+1}`:""} â¡ï¸ Ryfma`,ei=V.isClassic?"common:beautifulStoriesClassic":"common:beautifulStories";if(V.profile.bio){let e=B(V.profile.bio);$=`${e}`}else $=`${v(ei)} ${ea}${et} ${v("common:onRyfma")} ð¶ ${ee>0?`${ee} ${v("seoTitlePoems",{count:ee})}`:v("seoTitlePoems")}. ${v("common:findInPoems")}`;let er=ee<1,eo=ee<1;if("followers"===e){let e=B(V.profile.bio||v("seoFollowersTitle"),es.length+2);el=`u/${V.username}/followers`,en=`${v("seoFollowersTitle")+es} â¡ï¸ Ryfma`,$=`${es}: ${e}`,er=!0,eo=!0}else if("following"===e){let e=B(V.profile.bio||v("seoFollowingTitle"),es.length+2);el=`u/${V.username}/following`,en=`${v("seoFollowingTitle")+es} â¡ï¸ Ryfma`,$=`${es}: ${e}`,er=!0,eo=!0}else if("albums"===e)el=`u/${V.username}/albums`,en=`${v("seoAlbumTitle")}${ea} â¡ï¸ Ryfma`,$=`${v("seoAlbumTitle")}${ea} â¡ï¸ ${v("seoAllPostsTitlePre")} ${V.stats.albumsCount} ${v("seoAlbumsCount")}`,er=V.stats.albumsCount<1,eo=V.stats.albumsCount<1;else if("comments"===e){let e=B(V.profile.bio||v("seoCommentsTitle"),es.length+2);el=`u/${V.username}/comments`,en=`${v("seoCommentsTitle")+es} â¡ï¸ Ryfma`,$=`${es}: ${e}`,er=V.stats.commentsCount<1,eo=V.stats.commentsCount<1}else if("gifts"===e){let e=B(V.profile.bio||v("seoGiftsTitle"),es.length+2);el=`u/${V.username}/gifts`,en=`${v("seoGiftsTitle")+es} â¡ï¸ Ryfma`,$=`${es}: ${e}`,er=!0,eo=!0}else if("books"===e)el=`u/${V.username}/books`,en=`${v("seoBooksTitle")} ${ea} - ${v("seoAllPostsTitlePre")} ${V.stats.booksCount} ${v("seoBooksCount")} â¡ï¸ Ryfma`,$=`${v("seoBooksTitle")} ${ea} ${v("common:onRyfma")} ð ${v("seoBooksDesc")}`,er=V.stats.booksCount<1,eo=V.profile.karma<11;else if("bookshelves"===e)el=`u/${V.username}/bookshelves`,en=`${v("seoBookshelvesTitle")}${ea} â¡ï¸ Ryfma`,$=`${v("seoBookshelvesTitle")}${ea} â¡ï¸ ${v("seoAllPostsTitlePre")} ${V.stats.bookshelvesCount} ${v("seoBookshelvesCount")}`,er=V.stats.bookshelvesCount<1,eo=V.stats.bookshelvesCount<1;else if("allPosts"===e){el=L>0?`u/${V.username}/all?page=${L}`:`u/${V.username}/all`,en=`${es} - ${v("seoAllPostsTitlePre")} ${ee>0?`${ee} ${v("seoTitle",{count:ee})} ${v("seoAllPostsTitleSuffix")}`:v("seoAllPostsTitle")} ${L>0?`| ${v("page")} ${L+1}`:""} â¡ï¸ Ryfma`;let e=`${v("seoAllPostsTitle")} ${v("common:by")} ${ea} ${v("common:onRyfma")} ð¶`;if(V.profile.bio){let s=B(V.profile.bio,e.length+1);$=`${e} ${s}`}else $=`${e} ${v("common:findInPoems")}`;er=ee<1,eo=ee<1}else if("tagPosts"===e&&j.tagSlug&&j.tagName){let e=`${v("allPostsByTag")} ${j.tagName.toUpperCase()}`;"Ñказка"===j.tagName?e=v("allFairytailsBy"):"ÑаÑÑказ"===j.tagName?e=v("allStoriesBy"):"повеÑÑÑ"===j.tagName?e=v("allPovestiBy"):"баÑнÑ"===j.tagName&&(e=v("allBasniBy"));let s=`${e} ${V.profile.inclinedName?`${v("common:from")} ${V.profile.inclinedName}${L>0?`. ${v("page")} ${L+1}`:""}`:""}`;el=L>0?`u/${V.username}/tag/${j.tagSlug}?page=${L}`:`u/${V.username}/tag/${j.tagSlug}`,en=`${s} (@${V.username})${L>0?` | ${v("page")} ${L+1}`:""} â¡ï¸ Ryfma`,$=`${v("common:readShortAndLong")} ${s} (@${V.username}) ${v("common:onRyfma")}. ${v("common:findInPoems")}`,X={...X,tagSlug:j.tagSlug,h2Text:s}}let ec={schema:"ProfilePage",title:en,description:$,image:V.profile.image,path:el,contentType:"profile",first_name:V.firstname||Z[0],last_name:V.lastname||Z[1]||"",username:V.username,tags:`${V.profile.name}${et}, ${V.username}, ${v("seoKeywords").split(",").map(e=>`${e} ${V.profile.name}${et}`).join(", ")}
1`,twitter:V.profile.twitterUser,noIndex:er,noFollow:eo,searchParams:(0,f.j)(A?.query,P)},em=r().Children.map(a,e=>(r()).isValidElement(e)?(r()).cloneElement(e,{key:T,...X,user:V,username:T,userName:V.profile.name?Z.join(" "):V.username,seoProps:ec,pageNum:L}):e),ed={vkUser:V.profile.vkUser,telegramUser:V.profile.telegramUser,youtubeUser:V.profile.youtubeUser,instagramUser:V.profile.instagramUser,facebookUser:V.profile.facebookUser,twitterUser:V.profile.twitterUser,wikipediaUser:V.profile.wikipediaUser},eu=(0,g.A)(ed),ep={"@context":"https://schema.org","@type":"ProfilePage",dateCreated:V.createdAt,mainEntity:{"@type":"Person",...V.profile.bio?{description:`${V.profile.bio.replace(/[<p></p><b></b><i></i><br/?>]/gi,"").replace(/\\n/gi," ").substring(0,137)}â¦`}:{},givenName:V.profile.name,name:V.profile.name,identifier:V._id,url:`https://ryfma.com/u/${V.username}`,...V.profile.image?{image:{"@type":"ImageObject",contentUrl:V.profile.image,thumbnailUrl:V.profile.image.replace("_full_","_small_")}}:{},...(0,x.k)([{type:"FollowAction",count:V.stats.followersCount,name:v("followers")},{type:"SubscribeAction",count:V.stats.followingCount,name:v("following")},{type:"WriteAction",count:V.stats.postsCount,name:v("posts")}]),sameAs:(eu||[]).map(e=>e.link)}},eg={"@context":"https://schema.org/","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Ryfma",item:"https://ryfma.com"},{"@type":"ListItem",position:2,item:{"@type":"Thing","@id":`https://ryfma.com/u/${V.username}`,name:en}}]};return(0,t.jsxs)(r().Fragment,{children:[(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(eg).replace(/\//g,"\\u002F")}}),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(ep).replace(/\//g,"\\u002F")}}),V.roles.includes("premium")&&V.profile.coverImg?K?(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)("div",{className:"h-32"}),children:(0,t.jsx)(I,{isOwner:K,userId:V._id,coverImg:V.profile.coverImg})}):(0,t.jsx)("div",{className:"relative mx-auto h-32 max-w-screen-xl lg:h-56",children:(0,t.jsx)("div",{className:"absolute inset-0 translate-x-0 translate-y-0 rounded-b bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${V.profile.coverImg})`}})}):null,(0,t.jsx)(u.default,{...ec}),(0,t.jsxs)("div",{className:"mx-auto max-w-screen-xl pt-4",style:{opacity:q?.6:1,transition:"opacity 150ms"},children:[(0,t.jsx)(R,{user:V,socialLinks:ed,isOwner:K}),s?(0,t.jsxs)("div",{className:"mb-8 grid grid-cols-1 lg:grid-cols-12 lg:gap-8",children:[(0,t.jsx)("main",{className:"col-span-12 mt-4 min-h-[400px] lg:col-span-8",children:em}),!w&&(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)(C,{}),children:(0,t.jsx)(_,{isOwner:K,userId:V._id,username:V.username,url:`/u/${V.username}`,author:V.profile.name,image:V.profile.image,bio:V.profile.bio,badges:j.badges,rewards:j.rewards,settings:V.settings,isClassic:V.isClassic,gifts:V.gifts,stats:V.stats,giftId:F})})]}):(0,t.jsx)("div",{className:"mb-8 grid grid-cols-1 lg:grid-cols-12 lg:gap-8",children:(0,t.jsx)("main",{className:"col-span-12 min-h-[400px]",children:em})})]})]})}},42784(e,s,a){a.r(s),a.d(s,{default:()=>p,shouldHideAds:()=>u});var t=a(74848),l=a(54953),n=a(85189),i=a(85137);let r=function({blockId:e,pageNum:s=0,adId:a,statId:n,minHeight:i=250,onEmpty:r}){return(0,l.useEffect)(()=>{!function(){if(document.getElementById("yartb_script"))return;window.yaContextCb=window.yaContextCb||[];let e=document.getElementsByTagName("script")[0],s=document.createElement("script");s.id="yartb_script",s.type="text/javascript",s.src="//yandex.ru/ads/system/context.js",s.async=!0,s.crossOrigin="anonymous",s.onerror=()=>console.warn("RSYA script blocked/failed"),e.parentNode?.insertBefore(s,e)}();let t=document.getElementById(a);if(t&&function(e){if(!e.isConnected)return!1;let s=window.getComputedStyle(e);if("none"===s.display||"hidden"===s.visibility)return!1;let a=e.getBoundingClientRect();return a.width>0&&a.height>0}(t))return window.yaContextCb=window.yaContextCb||[],window.yaContextCb.push(()=>{if(document.getElementById(a))try{window.Ya?.Context?.AdvManager?.render?.({renderTo:a,blockId:`${e}`,pageNumber:s,statId:n,async:!0,onError:s=>{console.warn(`RSYA render error [${e}]:`,s),r?.()}})}catch(s){console.warn(`RSYA render exception [${e}]:`,s)}}),()=>{try{window.Ya?.Context?.AdvManager?.destroy?.({blockId:`${e}`,renderTo:a})}catch{}}}
1,[a,e,s,n,r]),(0,t.jsx)("div",{id:a,style:{minHeight:i,minWidth:"100%"}})},o=(0,l.lazy)(()=>a.e(13892).then(a.bind(a,13231))),c={default:"R-A-19527166-16",sidebar:"R-A-19527166-17",postPageNative:"R-A-19527166-18",mobile:"R-A-19527166-12",mobileFeed:"R-A-19527166-14",vertical:"R-A-19527166-13",toplong:"R-A-19527166-16",multiList:"R-A-19527166-19",thinlong:"R-A-19527166-15"},m=["//yandex.ru/ads/system/context.js","//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"],d=null;function u(e){return e?.roles?.includes("premium")&&"Qjv82jcpeJwpz6e47"!==e._id}let p=function({adType:e="default",pageNum:s=0,statId:a=1,offset:p=100,height:g=235,lazy:x=!0,className:f="",withoutMargins:h=!1}){let b,{currUser:j}=(0,i.As)(),$=u(j),[v,y]=(0,l.useState)("checking"),[N,w]=(0,l.useState)(!1),A=(0,l.useCallback)(()=>w(!0),[]);if((0,l.useEffect)(()=>{if($)return;let e=!1;return(!d&&(d=function(e=m,s=4e3){return new Promise(a=>{let t=!1,l=0,n=[],i=e=>{if(!t){for(let e of(t=!0,clearTimeout(r),n))e.remove();a(e)}},r=setTimeout(()=>i(!1),s);for(let s of e){let a=document.createElement("script");a.src=s,a.onload=()=>i(!1),a.onerror=()=>{(l+=1)===e.length&&i(!0)},document.head.appendChild(a),n.push(a)}})}()),d).then(s=>{e||y(s?"blocked":"allowed")}),()=>{e=!0}},[$]),$)return null;let C=h?"":"my-2";if(N)return(0,t.jsx)("aside",{"aria-hidden":!0,className:`relative ${C} ${f}`,children:(0,t.jsx)("div",{style:{height:g}})});let k=c[e]??c.default;b="blocked"===v?(0,t.jsx)(l.Suspense,{fallback:(0,t.jsx)("div",{}),children:(0,t.jsx)("div",{style:{minHeight:g},children:(0,t.jsx)(o,{adType:e,compact:300>Number(g)})})}):"allowed"===v?(0,t.jsx)(r,{blockId:k,pageNum:s,statId:a,minHeight:g,adId:`yandex_rtb_${k}_${s}_${a}`,onEmpty:A}):(0,t.jsx)("div",{className:"animate-pulse rounded bg-accent",style:{height:g}});let T=`${e}_${s}_${a}`,P="number"==typeof g?{containIntrinsicSize:`auto ${g}px`}:{},R=(0,t.jsx)("aside",{id:T,className:`relative ${C} ${f}`,children:(0,t.jsx)("div",{style:{height:g,overflow:"hidden",contentVisibility:"auto",...P},children:b})});return x&&"allowed"===v?(0,t.jsx)(n.A,{height:g,offset:p,placeholder:(0,t.jsx)("div",{"aria-hidden":!0,className:C,style:{height:g}}),children:R}):R}}}]);
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.