(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{835:(e,n,r)=>{"use strict";r.d(n,{TopNav:()=>v});var t=r(67),a=r(4563),s=r(6424),i=r.n(s);let o=(0,r(4225).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var l=r(2495),c=r(3783),d=r.n(c);function h(e){let n=(0,l.ot)();return(0,t.jsx)("nav",{"aria-label":n.nav.mainAria,className:d().nav,children:(0,t.jsxs)("div",{className:d().inner,children:[(0,t.jsx)("p",{className:[d().brand,d().brandDesktop].join(" "),children:n.nav.brandDesktop}),(0,t.jsx)("p",{className:[d().brand,d().brandMobile].join(" "),children:n.nav.brandMobile}),(0,t.jsxs)("div",{className:d().right,children:[(0,t.jsxs)("div",{className:d().links,children:[(0,t.jsx)(i(),{href:"/#about",className:d().navLink,children:n.nav.about}),(0,t.jsx)(i(),{href:"/#experience",className:d().navLink,children:n.nav.experience}),(0,t.jsx)(i(),{href:"/projects",className:d().navLink,children:n.nav.projects}),(0,t.jsx)(i(),{href:"/#quality",className:d().navLink,children:n.nav.quality}),(0,t.jsx)(i(),{href:"/#contact",className:d().navLink,children:n.nav.contact})]}),(0,t.jsxs)("button",{type:"button",className:[d().pillButton,d().menuButton].join(" "),"aria-label":n.nav.openMenuAria,children:[(0,t.jsx)(o,{size:16,color:"#FFF9FF"}),n.nav.menu]}),e.langSwitch]})]})})}var u=r(8438);function m(){let e=(0,l.Ym)(),n=(0,l.ot)(),r=(0,l.Bp)(),s=(0,u.usePathname)()??"/",i=(0,u.useSearchParams)(),[o,c]=(0,a.useState)("");(0,a.useEffect)(()=>{let e=()=>c(window.location.hash??"");return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]);let h="ru"===e?"en":"ru",m=(0,a.useMemo)(()=>{var e;let n,t,a,l;return n=("ru"===(e={targetLocale:h,origins:r,pathname:s,search:i?.toString()??"",hash:o}).targetLocale?e.origins.ru:e.origins.en).replace(/\/+$/,""),t=e.pathname.startsWith("/")?e.pathname:`/${e.pathname}`,a=e.search?e.search.startsWith("?")?e.search:`?${e.search}`:"",l=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"",`${n}${t}${a}${l}`},[o,r,s,i,h]);return(0,t.jsx)("a",{className:d().pillButton,"aria-label":n.nav.langSwitchAria,href:m,children:"EN / RU"})}function v(){return(0,t.jsx)(h,{langSwitch:(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)("span",{className:d().pillButton,"aria-hidden":"true",children:"EN / RU"}),children:(0,t.jsx)(m,{})})})}},2495:(e,n,r)=>{"use strict";r.d(n,{Bp:()=>d,I18nProvider:()=>i,Ym:()=>l,ot:()=>c});var t=r(67),a=r(4563);let s=(0,a.createContext)(null);function i({locale:e,messages:n,origins:r,children:a}){return(0,t.jsx)(s.Provider,{value:{locale:e,messages:n,origins:r},children:a})}function o(){let e=(0,a.useContext)(s);if(!e)throw Error("I18nProvider is missing in the component tree");return e}function l(){return o().locale}function c(){return o().messages}function d(){return o().origins}},3783:e=>{e.exports={nav:"TopNav_nav__OGdWy",inner:"TopNav_inner__P82jL",brand:"TopNav_brand__sv68T",brandDesktop:"TopNav_brandDesktop__3EPKU",brandMobile:"TopNav_brandMobile__7NlZ7",right:"TopNav_right__7y72e",links:"TopNav_links__T20Gf",navLink:"TopNav_navLink__eQKwk",pillButton:"TopNav_pillButton__a7qhy",menuButton:"TopNav_menuButton__C_0X8"}},4212:e=>{e.exports={button:"ButtonPrimary_button__OhbUa",soft:"ButtonPrimary_soft__vs_po",medium:"ButtonPrimary_medium__SYaPw",hard:"ButtonPrimary_hard__db0f4"}},4225:(e,n,r)=>{"use strict";r.d(n,{A:()=>l});var t=r(4563);let a=(...e)=>e.filter((e,n,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===n).join(" ").trim(),s=e=>{let n=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());return n.charAt(0).toUpperCase()+n.slice(1)};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 o=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:l,iconNode:c,...d},h)=>(0,t.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:e,strokeWidth:s?24*Number(r)/Number(n):r,className:a("lucide",o),...!l&&!(e=>{for(let n in e)if(n.startsWith("aria-")||"role"===n||"title"===n)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(l)?l:[l]])),l=(e,n)=>{let r=(0,t.forwardRef)(({className:r,...i},l)=>(0,t.createElement)(o,{ref:l,iconNode:n,className:a(`lucide-${s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=s(e),r}},4262:e=>{e.exports={banner:"CookieBanner_banner__tzM1D",message:"CookieBanner_message__XQggz",actions:"CookieBanner_actions__Bknvp"}},5822:(e,n,r)=>{"use strict";r.d(n,{CookieBanner:()=>_});var t=r(67),a=r(4563);let s=(0,r(4225).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var i=r(4262),o=r.n(i),l=r(9028),c=r(2495);let d="cookie-consent",h="cookie-consent-change",u=()=>(()=>{try{let e=localStorage.getItem(d);if("accepted"!==e&&"dismissed"!==e)return localStorage.removeItem(d),null;return e}catch{return null}})(),m=e=>{try{return localStorage.setItem(d,e),!0}catch{return!1}},v=()=>{window.dispatchEvent(new Event(h))},p=e=>{let n=()=>e();return window.addEventListener("storage",n),window.addEventListener(h,n),()=>{window.removeEventListener("storage",n),window.removeEventListener(h,n)}},_=({onAccept:e,onDismiss:n})=>{let r=(0,c.ot)(),i=(0,a.useSyncExternalStore)(p,u,u),d=(0,a.useCallback)(()=>{m("accepted"),v(),e?.()},[e]),h=(0,a.useCallback)(()=>{m("dismissed"),v(),n?.()},[n]);return null!==i?null:(0,t.jsxs)("div",{className:o().banner,role:"region","aria-label":r.cookies.regionAria,children:[(0,t.jsx)("p",{className:o().message,"aria-live":"polite",children:r.cookies.message}),(0,t.jsxs)("div",{className:o().actions,children:[(0,t.jsx)(l.$,{preset:"soft",onClick:h,children:r.cookies.reject}),(0,t.jsx)(l.$,{preset:"medium",onClick:d,iconLeft:s,children:r.cookies.accept})]})]})}},6728:()=>{},7120:(e,n,r)=>{Promise.resolve().then(r.t.bind(r,6728,23)),Promise.resolve().then(r.bind(r,2495)),Promise.resolve().then(r.bind(r,5822)),Promise.resolve().then(r.bind(r,835))},9028:(e,n,r)=>{"use strict";r.d(n,{$:()=>o});var t=r(67),a=r(4563),s=r(4212),i=r.n(s);let o=(0,a.forwardRef)(function({preset:e="soft",children:n,iconLeft:r,iconRight:a,className:s,type:o,...l},c){let d="hard"===e?i().hard:"medium"===e?i().medium:i().soft,h=[i().button,d,s].filter(Boolean).join(" ");return(0,t.jsxs)("button",{ref:c,className:h,type:o??"button",...l,children:[r?(0,t.jsx)("span",{"aria-hidden":"true",children:(0,t.jsx)(r,{size:16,strokeWidth:2.5,focusable:"false"})}):null,n,a?(0,t.jsx)("span",{"aria-hidden":"true",children:(0,t.jsx)(a,{size:16,strokeWidth:2.5,focusable:"false"})}):null]})})}},e=>{e.O(0,[375,779,424,971,482,358],()=>e(e.s=7120)),_N_E=e.O()}]);