PageSourceSearch

https://megacritic.ru/_next/static/chunks/1f0540777b5baa37.js

js megacritic.ru collected 2026-10-02 10:54:59 UTC 26,995 bytes, 31 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73375,63059,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>r],73375);let n=(0,t.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>n],63059)},18566,(e,t,r)=>{t.exports=e.r(76562)},35565,e=>{"use strict";var t=e.i(43476),r=e.i(20492);Symbol.for("constructDateFrom");let n={},i={};function s(e,t){try{let r=(n[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(r in i)return i[r];return l(r,r.split(":"))}catch{if(e in i)return i[e];let t=e?.match(a);if(t)return l(e,t.slice(1));return NaN}}let a=/([+-]\d\d):?(\d\d)?/;function l(e,t){let r=+(t[0]||0),n=+(t[1]||0),s=(t[2]||0)/60;return i[e]=60*r+n>0?60*r+n+s:60*r-n-s}class o extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(s(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),u(this,e)):this.setTime(Date.now())}static tz(e,...t){return t.length?new o(...t,e):new o(Date.now(),e)}withTimeZone(e){return new o(+this,e)}getTimezoneOffset(){let e=-s(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),d(this),+this}[Symbol.for("constructDateFrom")](e){return new o(+new Date(e),this.timeZone)}}let c=/^(get|set)(?!UTC)/;function d(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-(60*s(e.timeZone,e))))}function u(e,t){var r;let n=Array.isArray(t)?Date.UTC((r=t)[0],r.length>1?r[1]:0,r.length>2?r[2]:1,...r.slice(3)):+e.internal,i=s(e.timeZone,e),a=i>0?Math.floor(i):Math.ceil(i),l=new Date(+e);l.setUTCHours(l.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),c=-new Date(+l).getTimezoneOffset(),u=o;if(o-c&&o!==a&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),r=o-a;r&&t.setUTCMinutes(t.getUTCMinutes()+r);let n=s(e.timeZone,t);(n>0?Math.floor(n):Math.ceil(n))===a&&(u=c)}let h=u-a;h&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);let f=new Date(+e);f.setUTCSeconds(0);let p=o>0?f.getSeconds():(f.getSeconds()-60)%60,g=Math.round(-(60*s(e.timeZone,e)))%60;(g||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+p);let x=s(e.timeZone,e),v=x>0?Math.floor(x):Math.ceil(x),w=-new Date(+e).getTimezoneOffset()-v-h,j=v-a,b=j>0&&m(e)-n==60*j*1e3&&m(e,n-60*v*1e3)!==n;if(v!==a&&w&&!b){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w);let t=s(e.timeZone,e),r=v-(t>0?Math.floor(t):Math.ceil(t));r&&w<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+r)}d(e);let y=(t?n:n+1e3*g)-e.internal;y&&18e5>Math.abs(y)&&(Date.prototype.setTime.call(e,+e+y),d(e))}function m(e,t){let r=new Date(t??+e);return r.setUTCSeconds(r.getUTCSeconds()-Math.round(-(60*s(e.timeZone,r)))),+r}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!c.test(e))return;let t=e.replace(c,"$1UTC");o.prototype[t]&&(e.startsWith("get")?o.prototype[e]=function(){return this.internal[t]()}:(o.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),u(e),+this},o.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),d(this),+this}))});class h extends o{static tz(e,...t){return t.length?new h(...t,e):new h(Date.now(),e)}toISOString(){let[e,t,r]=this.tzComponents(),n=`${e}${t}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()}
1 ${this.toTimeString()}`}toDateString(){let[e,t,r,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${t} ${n}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,r,n]=this.tzComponents();return`${e} GMT${t}${r}${n} (${function(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),r=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,r]}withTimeZone(e){return new h(+this,e)}[Symbol.for("constructDateFrom")](e){return new h(+new Date(e),this.timeZone)}}var f=e.i(29297);function p({children:e,className:r}){return(0,t.jsx)("h1",{className:`text-[24px] leading-[34px] font-semibold md:text-[2rem] md:leading-11 ${r??""}`,children:e})}function g({children:e,className:r}){return(0,t.jsx)("h2",{className:(0,f.cn)(r,"font-montserrat text-2xl font-extrabold"),children:e})}function x({children:e,className:r}){return(0,t.jsx)("h3",{className:`text-xl font-medium ${r??""}`,children:e})}function v({children:e,className:r}){return(0,t.jsx)("h4",{className:`text-lg font-medium ${r??""}`,children:e})}function w({children:e,className:r}){return(0,t.jsx)("p",{className:`font-regular text-lg ${r??""}`,children:e})}function j({children:e,className:r}){return(0,t.jsx)("span",{className:`font-regular text-sm !text-(--text-secondary) ${r??""}`,children:e})}function b({children:e,className:r}){return(0,t.jsx)("span",{className:`font-regular text-sm ${r??""}`,children:e})}function y({children:e,className:r}){return(0,t.jsx)("p",{className:(0,f.cn)(r,"font-open-sans font-regular text-[17px] leading-normal"),children:e})}function k({className:e,...r}){return(0,t.jsx)("h1",{...r,className:(0,f.cn)(e,"font-montserrat text-2xl font-extrabold md:text-3xl lg:text-4xl")})}function T({children:e,className:r}){return(0,t.jsx)("span",{className:(0,f.cn)(r,"font-montserrat text-[12px] leading-normal font-medium text-[#8D8D8D]"),children:e})}function N({children:e,className:r}){return(0,t.jsx)("p",{className:`mb-1 text-base leading-relaxed font-medium ${r??""}`,children:e})}function S({date:e,siteUtc:n=3,className:i}){return e?(0,t.jsx)(b,{className:(0,f.cn)(i,"font-montserrat text-[12px] leading-normal font-medium text-[#8D8D8D]"),children:(0,r.formatDate)(new h(e,(0,r.timezoneToStringOffset)(n)))}):null}e.s(["TypoDate",()=>S,"TypoH1",()=>p,"TypoH2",()=>g,"TypoH3",()=>x,"TypoH4",()=>v,"TypoLabel",()=>j,"TypoLead",()=>N,"TypoMiddleTitle",()=>y,"TypoP",()=>w,"TypoTagSmall",()=>T,"TypoTitle",()=>k],35565)},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return d},getImageProps:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(55682),a=e.r(8927),l=e.r(5500),o=s._(e.r(1948));function c(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=l.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},75254,e=>{"use strict";var t=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:l="",children:o,iconNode:c,...d},u)=>(0,t.createElement)("svg",{ref:u,...i,width:r,height:r,stroke:e,strokeWidth:a?24*Number(s)/Number(r):s,className:n("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]])),a=(e,i)=>{let a=(0,t.forwardRef)(({className:a,...l},o)=>(0,t.createElement)(s,{ref:o,iconNode:i,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l}));return a.displayName=r(e),a};e.s(["default",()=>a],75254)},94999,e=>{"use strict";function t(e){return!1!==e.isEnabled}function r(e){return t(e)&&!1!==e.showInArticle}e.s(["isSocialEnabled",()=>t,"isSocialShownInArticle",()=>r])},64659,e=>{"use strict";
1let t=(0,e.i(75254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],64659)},46039,e=>{"use strict";var t=e.i(43476),r=e.i(84975),n=e.i(81293);function i(){let e="smi24-integration-holder";return(0,n.useLoad)({step:0,holderId:e,src:"https://jsn.24smi.net/smi.js",remountOnPathChange:!0}),(0,t.jsx)("div",{id:e})}var s=e.i(57688);function a({id:e}){let r="top-mail-integration-holder";return(0,n.useLoad)({active:!!e,step:2,holderId:r,code:e?`
2        var _tmr = window._tmr ?? (window._tmr = []);
3          _tmr.push({id: "${e}", type: "pageView", start: (new Date()).getTime()});
4          (function (d, w, id) {
5            if (d.getElementById(id)) return;
6            var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
7            ts.src = "https://top-fwz1.mail.ru/js/code.js";
8            var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
9            if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
10          })(document, window, "tmr-code");
11      `:void 0},[e]),(0,t.jsx)("div",{id:r,children:(0,t.jsx)("noscript",{children:(0,t.jsx)("div",{children:e&&(0,t.jsx)(s.default,{src:`https://top-fwz1.mail.ru/counter?id=${e};js=na`,alt:"Top.Mail.Ru",width:0,height:0,className:"absolute left-[-9999px] h-0 w-0",unoptimized:!0})})})})}function l({id:e}){let r="yandex-metrika-integration-holder";return((0,n.useLoad)({step:2,holderId:r,observeShadowDom:!1,code:`
12      (function(m,e,t,r,i,k,a){
13          m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
14          m[i].l=1*new Date();
15          for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
16          k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)
17      })(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=${e}', 'ym');
18
19      ym(${e}, 'init', {ssr:true, clickmap:true, accurateTrackBounce:true, trackLinks:true});
20      `}),e)?(0,t.jsx)("div",{id:r,children:(0,t.jsx)("noscript",{children:(0,t.jsx)("div",{children:(0,t.jsx)(s.default,{src:`https://mc.yandex.ru/watch/${e}`,alt:"",width:0,height:0,className:"absolute left-[-9999px] h-0 w-0",unoptimized:!0})})})}):null}var o=e.i(71645),c=e.i(22016),d=e.i(35565);function u({text:e}){let[r,n]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{localStorage.getItem("cookiesAccepted")||n(!0)},[]),r)?(0,t.jsxs)("div",{className:"bg-background fixed right-4 bottom-4 left-4 mx-auto flex max-w-4xl flex-col items-center gap-4 roun
20ded-lg border border-(--background-secondary) p-4 shadow-lg sm:flex-row",children:[e?(0,t.jsx)("div",{className:"prose prose-sm dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e}}):(0,t.jsxs)(d.TypoP,{className:"foreground text-sm",children:["Используя этот сайт, Вы соглашаетесь с использованием файлов cookie, которые указаны в"," ",(0,t.jsx)(c.default,{href:"/cookies-policy",className:"text-blue-600 underline",children:"Политике обработки персональных данных"}),"."]}),(0,t.jsx)("button",{onClick:()=>{localStorage.setItem("cookiesAccepted","true"),n(!1)},className:"bg-foreground text-background hover:bg-foreground rounded px-4 py-2 disabled:opacity-70",children:"Принять"})]}):null}function m({data:e}){let r="yandex-partner-integration-holder";return((0,o.useEffect)(()=>{window&&(window.yaContextCb=window.yaContextCb??[])},[]),(0,n.useLoad)({step:0,holderId:r,observeShadowDom:!1,src:"https://yandex.ru/ads/system/context.js"}),e)?(0,t.jsx)("div",{id:r}):null}var h=e.i(18566),f=e.i(22831);function p(){let e=(0,h.usePathname)(),t=(0,h.useSearchParams)(),r=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=window.location.href;r.current!==e&&(r.current=e,(0,f.trackVisit)(e))},[e,t]),null}var g=e.i(79831),x=e.i(71167);function v({yandexPartner:e,children:n,site:s,topMailId:c,ymId:d}){return(0,t.jsx)(g.StorageUrlProvider,{value:(0,x.resolveStorageUrl)(s),children:(0,t.jsxs)(r.LoadProvider,{children:[(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(p,{})}),(0,t.jsx)(i,{}),(0,t.jsx)(m,{data:e}),n,s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{text:s.cookieText}),(0,t.jsx)(a,{id:c}),(0,t.jsx)(l,{id:d})]})]})})}e.s(["Providers",()=>v],46039)},8583,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=({trigger:e,children:n,className:i="",open:s,onOpenChange:a})=>{let[l,o]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=void 0!==s?s:l,u=e=>{o(e),a?.(e)};return(0,r.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,t.jsxs)("div",{className:`relative inline-block ${i}`,ref:c,children:[(0,t.jsx)("div",{onClick:()=>u(!d),children:e}),d&&(0,t.jsx)("div",{className:"bg-background absolute right-0 z-10 mt-2 w-56 rounded-md shadow-lg",children:(0,t.jsx)("div",{className:"p-2",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu",children:n})})]})};var i=e.i(29297);function s({className:e,type:r,...n}){return(0,t.jsx)("input",{type:r,"data-slot":"input",className:(0,i.cn)(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground
21        dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs
22        transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent
23        file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50
24        md:text-sm`,"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}let a=(0,e.i(75254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var l=e.i(18566);function o(){let e=(0,l.useRouter)(),[i,o]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1);return(0,t.jsx)(n,{open:c,onOpenChange:d,trigger:(0,t.jsx)(a,{className:"h-5 w-5 cursor-pointer"}),children:(0,t.jsx)("form",{onSubmit:t=>{t.preventDefault(),i.trim()&&(d(!1),o(""),e.push(`/search?q=${i}`))},className:"w-full",children:(0,t.jsx)(s,{type:"text",placeholder:"Поиск...",value:i,onChange:e=>o(e.target.value)})})})}e.s(["HeaderSearch",()=>o],8583)},14875,e=>{"use strict";var t=e.i(43476),r=e.i(94999),n=e.i(57688),i=e.i(79831);function s({socials:e,className:s,size:a="md"}
24){let l=(0,i.useStorageUrl)(),o=e?.filter(r.isSocialEnabled)??[];if(!o.length)return null;let c="sm"===a?20:24,d="sm"===a?"h-5 w-5":"h-6 w-6";return(0,t.jsx)("div",{className:`flex-shrink-0 ${s??""}`,children:(0,t.jsx)("ul",{className:"flex items-center gap-4",children:o.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.name,children:[(0,t.jsx)(n.default,{src:`${l}${e.logoLight}`,alt:e.name,width:c,height:c,className:`block ${d} transition-transform duration-300 dark:hidden`}),(0,t.jsx)(n.default,{src:`${l}${e.logoDark}`,alt:e.name,width:c,height:c,className:`hidden ${d} transition-transform duration-300 dark:block`})]})},e.id))})})}e.s(["SocialLinks",()=>s])},75496,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=(0,r.createContext)({});e.s(["MenuProvider",0,({children:e})=>{let[i,s]=(0,r.useState)(!1);return(0,t.jsx)(n.Provider,{value:{setIsOpen:s,isOpen:i},children:e})},"useMenu",0,()=>(0,r.useContext)(n)])},54219,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(14875),i=e.i(22016);function s({item:e,toggleMenu:r}){let n="block text-sm text-foreground transition-opacity hover:opacity-60",s=e.url.startsWith("http://")||e.url.startsWith("https://"),a=s?e.url:`/${e.url}`;return s||e.isTargetBlank?(0,t.jsx)("a",{href:a,target:e.isTargetBlank?"_blank":void 0,rel:e.isTargetBlank?"noopener noreferrer":void 0,onClick:r,className:n,children:e.title}):(0,t.jsx)(i.default,{href:a,onClick:r,className:n,children:e.title})}function a({socials:e,mainItems:r,subItems:i,toggleMenu:a}){let l=Math.ceil(i.length/3),o=i.slice(0,2*l),c=i.slice(2*l);return(0,t.jsxs)("div",{className:"bg-background grid h-full grid-cols-2 overflow-y-auto md:hidden",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 px-3 py-4",children:[r.map(e=>(0,t.jsx)(s,{item:e,toggleMenu:a},e.id)),o.map(e=>(0,t.jsx)(s,{item:e,toggleMenu:a},e.id))]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 px-3 py-4",children:[!!e?.length&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-foreground text-sm",children:"Мы в соцсетях:"}),(0,t.jsx)(n.SocialLinks,{socials:e,size:"sm"})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:c.map(e=>(0,t.jsx)(s,{item:e,toggleMenu:a},e.id))})]})]})}function l({item:e,toggleMenu:r}){let n="block text-sm text-foreground transition-opacity hover:opacity-60",s=e.url.startsWith("http://")||e.url.startsWith("https://"),a=s?e.url:`/${e.url}`;return s||e.isTargetBlank?(0,t.jsx)("a",{href:a,target:e.isTargetBlank?"_blank":void 0,rel:e.isTargetBlank?"noopener noreferrer":void 0,onClick:r,className:n,children:e.title}):(0,t.jsx)(i.default,{href:a,onClick:r,className:n,children:e.title})}function o({mainItems:e,subItems:r,toggleMenu:i,socials:s}){let a=Math.ceil(r.length/3),o=r.slice(0,a),c=r.slice(a,2*a),d=r.slice(2*a);return(0,t.jsx)("div",{className:"bg-background border-border hidden border-b md:block lg:hidden",children:(0,t.jsxs)("div",{className:"container flex gap-8 py-6",children:[(0,t.jsxs)("div",{className:"grid flex-1 grid-cols-4 gap-8",children:[(0,t.jsx)("div",{className:"flex flex-col gap-3",children:e.map(e=>(0,t.jsx)(l,{item:e,toggleMenu:i},e.id))}),[o,c,d].map((e,r)=>(0,t.jsx)("div",{className:"flex flex-col gap-3",children:e.map(e=>(0,t.jsx)(l,{item:e,toggleMenu:i},e.id))},r))]}),!!s?.length&&(0,t.jsxs)("div",{className:"flex w-[160px] flex-shrink-0 flex-col gap-3",children:[(0,t.jsx)("span",{className:"text-foreground text-sm",children:"Мы в соцсетях:"}),(0,t.jsx)(n.SocialLinks,{socials:s,size:"md"})]})]})})}function c({item:e,toggleMenu:r}){let n="block text-sm text-foreground transition-opacity hover:opacity-60",s=e.url.startsWith("http://")||e.url.startsWith("https://"),a=s?e.url:`/${e.url}`;return s||e.isTargetBlank?(0,t.jsx)("a",{href:a,target:e.isTargetBlank?"_blank":void 0,rel:e.isTargetBlank?"noopener noreferrer":void 0,onClick:r,className:n,children:e.title}):(0,t.jsx)(i.default,{href:a,onClick:r,className:n,children:e.title})}function d({mainItems:e,subItems:r,toggleMenu:i,socials:s}){let a=Math.ceil(r.length/3),l=r.slice(0,a),o=r.slice(a,2*a),d=r.slice(2*a);return(0,t.jsx)("div",{className:"bg-background border-border hidden border-b lg:block",children:(0,t.jsxs)("div",{className:"container flex gap-8 py-6",children:[(0,t.jsxs)("div",{className:"grid flex-1 grid-cols-4 gap-8",children:[(0,t.jsx)("div",{className:"flex flex-col gap-3",children:e.map(e=>(0,t.jsx)(c,{item:e,toggleMenu:i},e.id))}),[l,o,d].map((e,r)=>(0,t.jsx)("div",{className:"flex flex-col gap-3",children:e.map(e=>(0,t.jsx)(c,{item:e,toggleMenu:i},e.id))},r))]}),!!s?.length&&(0,t.jsxs)("div",{className:"flex w-[180px] flex-shrink-0 flex-col gap-3",children:[(0,t.jsx)("span",{className:"text-foreground text-sm",children:"Мы в соцсетях:"}),(0,t.jsx)(n.SocialLinks,{socials:s,size:"md"})]})]})})}var u=e.i(75496),m=e.i(71167),h=e.i(59507);async function f(e){return await (0,h.request)(`menu-items?type=${e}&siteId[]=${m.SITE_ID}`,{next:{revalidate:600}})}function p({isTopFancy:e,socials:n}){let[i,s]=(0,r.useState)([]),[l,c]=(0,r.useState)([]),{isOpen:m,setIsOpen:h}=(0,u.useMenu)(),[p,g]=(0,r.useState)(!1),[x,v]=(0,r.useState)(0),[w,j]=(0,r.useState)(0),b=()=>h?.(!m),y=t=>{let r=t<=768,n=t>=1216,i=r?Math.min(t/2,207):n?64:t/(128/7);return{isMobile:r,isDesktop:n,headerHeight:60,adBlockHeight:e?i:0}};(0,r.useEffect)(()=>{let e=()=>
24{let{headerHeight:e,adBlockHeight:t}=y(window.innerWidth);v(Math.max(t+e-window.scrollY,e)),j(window.visualViewport?.height??window.innerHeight)};return e(),window.addEventListener("scroll",e),window.addEventListener("resize",e),window.visualViewport?.addEventListener("resize",e),window.visualViewport?.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e),window.visualViewport?.removeEventListener("resize",e),window.visualViewport?.removeEventListener("scroll",e)}},[]),(0,r.useEffect)(()=>{(async()=>{let[e,t]=await Promise.all([f("primary"),f("secondary")]);s(t=>e.data??t),c(e=>t.data??e)})()},[]),(0,r.useEffect)(()=>{m?(g(!0),document.body.style.overflow=y(window.innerWidth).isMobile?"hidden":"auto"):(document.body.style.overflow="auto",setTimeout(()=>g(!1),300))},[m]);let k=m??p;return(0,t.jsxs)("div",{className:`fixed inset-0 z-10 transition-all duration-500 ease-in-out ${k?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,style:{top:x,height:w-x,transform:m?"translateY(0)":`translateY(-${w}px)`},children:[(0,t.jsx)("div",{className:"block h-full md:hidden",children:(0,t.jsx)(a,{socials:n,mainItems:i,subItems:l,toggleMenu:b})}),(0,t.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,t.jsx)(o,{mainItems:i,subItems:l,toggleMenu:b,socials:n})}),(0,t.jsx)("div",{className:"bg-background hidden lg:block",children:(0,t.jsx)(d,{mainItems:i,subItems:l,toggleMenu:b,socials:n})})]})}e.s(["HeaderMenu",()=>p],54219)},92917,e=>{"use strict";var t=e.i(43476),r=e.i(75254);let n=(0,r.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),i=(0,r.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var s=e.i(75496);function a(){let{isOpen:e,setIsOpen:r}=(0,s.useMenu)();return(0,t.jsx)("button",{onClick:()=>r?.(!e),className:"foreground hover:text-foreground h-6 transition-colors","aria-label":"Toggle menu",children:e?(0,t.jsx)(i,{className:"h-6 w-6"}):(0,t.jsx)(n,{className:"h-6 w-6"})})}e.s(["HeaderBurger",()=>a],92917)},97478,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),i=e.i(18566),s=e.i(73375),a=e.i(63059),l=e.i(29297);function o({items:e,className:o}){let c=(0,i.usePathname)(),d=(0,r.useRef)(null),u=e=>{d.current?.scrollBy({left:"left"===e?-200:200,behavior:"smooth"})};return e?.length?(0,t.jsxs)("div",{className:(0,l.cn)("flex min-w-0 flex-1 items-center gap-2",o),children:[(0,t.jsx)("button",{onClick:()=>u("left"),"aria-label":"Назад",className:"text-muted-foreground hover:text-foreground flex-shrink-0 transition-colors",children:(0,t.jsx)(s.ChevronLeft,{className:"h-4 w-4"})}),(0,t.jsx)("div",{ref:d,className:"no-scrollbar flex items-center gap-2 overflow-x-auto",children:e.map(e=>{let r=e.url.startsWith("http://")||e.url.startsWith("https://"),i=r?e.url:`/${e.url}`,s=!r&&c===`/${e.url}`,a=(0,l.cn)("rounded-[10px] px-4 py-1.5 text-sm whitespace-nowrap transition-colors",s?"bg-foreground text-background font-medium":"border-border hover:bg-accent border");return r||e.isTargetBlank?(0,t.jsx)("a",{href:i,target:e.isTargetBlank?"_blank":void 0,rel:e.isTargetBlank?"noopener noreferrer":void 0,className:a,children:e.title},e.id):(0,t.jsx)(n.default,{href:i,className:a,children:e.title},e.id)})}),(0,t.jsx)("button",{onClick:()=>u("right"),"aria-label":"Вперёд",className:"text-muted-foreground hover:text-foreground flex-shrink-0 transition-colors",children:(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4"})})]}):null}e.s(["SecondaryNav",()=>o])},51855,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566),i=e.i(22016),s=e.i(64659);function a({items:e}){let[a,l]=(0,r.useState)(!1),o=(0,r.useRef)(null),c=(0,n.usePathname)(),d=e?.slice(0,3).find(e=>c===`/${e.url}`||c.startsWith(`/${e.url}/`)),u=d?.title??"Все новости";return((0,r.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),e?.length)?(0,t.jsxs)("div",{ref:o,className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>l(e=>!e),className:"text-foreground flex items-center gap-1 text-sm font-medium","aria-expanded":a,children:[u,(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 transition-transform duration-200 ${a?"rotate-180":""}`})]}),a&&(0,t.jsx)("div",{className:"bg-background border-border absolute top-full left-0 z-30 mt-1 min-w-[160px] rounded-lg border py-2 shadow-lg",children:e.slice(0,3).map(e=>(0,t.jsx)(i.default,{href:`/${e.url}`,onClick:()=>l(!1),className:"hover:bg-accent block px-4 py-2 text-sm",children:e.title},e.id))})]}):null}e.s(["MobileNavDropdown",()=>a])},79192,e=>{"use strict";var t=e.i(43476),r=e.i(57688),n=e.i(81293);function i({id:e}){let i="liveinternet-integration-holder";return(0,n.useLoad)({step:2,holderId:i,code:`
25        (function(d,s){d.getElementById("${e}").src=
26        "https://counter.yadro.ru/hit?t26.6;r"+escape(d.referrer)+
27        ((typeof(s)=="undefined")?"":";s"+s.width+"*"+s.height+"*"+
28        (s.colorDepth?s.colorDepth:s.pixelDepth))+";u"+escape(d.URL)+
29        ";h"+escape(d.title.substring(0,150))+";"+Math.random()})
30        (document,screen);
31      `}),(0,t.jsx)("div",{id:i,children:(0,t.jsx)(r.default,{id:e,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7",alt:"LiveInternet counter",width:88,height:15,className:"h-[15p
31x] w-[88px] shrink-0 grow-0",unoptimized:!0})})}e.s(["LiveinternetIntegration",()=>i])}]);

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.