"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[427],{631:function(e,t,n){function i(){return typeof window>"u"}function o(e){i()||(Array.isArray(window.dataLayer)?window.dataLayer.push(e):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}function l(){if(i()){console.warn("Cant initialize tag manager on server side");return}"function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm()}n.d(t,{AB:function(){return o},zK:function(){return l}})},449:function(e,t,n){n.d(t,{C:function(){return G},H:function(){return eB},u:function(){return H}});var i=n(7437),o=n(2265),l=n(684),r=n(5563),s=n(5461),a=n(4365),c=n(7337),u=n(8731),d=n(4246),p=n(5487),m=n(4267);let h={userRegion:m.U,userTown:m.a,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},f={userRegion:m.U,userTown:m.a,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},w=(e=!1)=>e?f:h,g=(e=!1)=>e?window.allRegionsNewApi:window.allRegions,v=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},_=(e,t,n=!1)=>{if(typeof document>"u")return;let i=w(n);if(!e&&!t){p.a.removeItem(i.userRegion),p.a.removeItem(i.userTown);return}p.a.setItem(i.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),p.a.setItem(i.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},x=e=>{if(typeof document>"u")return null;let t=p.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},b=function(e){if(typeof window>"u"||!window.localStorage)return null;let t=window.localStorage.getItem(e);if(!t||"undefined"===t)return null;try{return JSON.parse(t)}catch(t){console.warn(`Invalid object in localStorage for key "${e}": ${t}`)}return null},y=(e=!1)=>{if(typeof window>"u")return[];let t=g(e);if(Array.isArray(t)&&t.length>0)return t;let n=b(w(e).allRegions)||[];return v(n,e),n},j=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),C=(e,t=!1)=>!(e.length<1)&&(!t||j(e)),N=e=>{let t={};return e.map(({id:e,name:n,towns:i})=>(i.forEach(i=>{i.parentId=e,t[i.name]=t[i.name]||{},t[i.name][i.id]=n}),i)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},k=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,$=e=>e?1:0,O=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},T=(e,t=!1)=>{if(e.length<1)return;let n=w(t);v(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},S=(e,t)=>{let n=t.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:$(e.isActive),fiasId:e.fiasId,towns:[]})),i=n.reduce((e,t)=>(e[t.id]=t,e),{});return e.forEach(e=>{let t=i[e.geoRegionId];t&&t.towns.push({id:e.legacyId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,main:$(e.isRegionalCenter),newId:e.id,fiasId:e.fiasId})}),n},I=(e,t,n)=>{let i=null,o=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(i=e,o=t,!0)});let l=t?e.find(e=>e.id===t.id)??null:null;return{region:i??l??t,town:o??n}},A=(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),R=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),L=async()=>{let e=await O("https://finuslugi.ru/money_data/Root.json?short=1"),t=Array.isArray(null==e?void 0:e.regions)?e.regions:[];return T(t),t},E=async e=>{let[t,n]=await Promise.all([O(k(e,"/sc/api/v1/cities?all=true&isActive=true")),O(k(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==t?void 0:t.content)||!Array.isArray(null==n?void 0:n.content))return[];let i=S(t.content,n.content);return j(i)?(T(i,!0),i):[]},P=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?E(e):L(),z=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},M=(e,t,n)=>{(0,u.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})};var B=n(2074),U=n(6951),F=n(5593);let D=y(),W=N(D),Z={regions:D,towns:W,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},V=(0,o.createContext)(Z);function H(){return(0,o.useContext)(V)}let G=({children:e,initialRegion:t,initialTown:n,showStartGeoPopup:l=!0,lastRegionsUpdateUnixTimestamp:r,dadataUrl:s="https://finuslugi.ru/backend/money/dadata",showcaseUrl:a="",useNewCitiesApi:c=!1})=>{let d=w(c),p=Number(b(d.lastRegionsUpdateUnixTimestamp)||0),m=Number(r||0)>p,[h,f]=(0,o.useState)(y(c)),g=(0,o.useRef)(h),[{startRegion:v,startTown:j},k]=(0,o.useState)({startRegion:Z.startRegion,startTown:Z.startTown}),$=t??Z.region,O=n??Z.town,[{region:T,town:S},L]=(0,o.useState)({region:$,town:O}),[E,B]=(0,o.useState)(Z.startPopupVisible),[U,F]=(0,o.useState)(Z.popupVisible),D=(0,o.useRef)(""),W=(0,o.useRef)(!1),H=(0,o.useMemo)(()=>N(h),[h]);(0,o.useEffect)(()=>{g.current=h},[h]);let G=(0,o.useCallback)((e,t)=>{window.sessionStorage.setItem("start_popup_opened","1"),window.localStorage.setItem("auto_town",JSON.stringify(t)||""),window.localStorage.setItem("auto_region",JSON.stringify(e)||""),B(!0),k({startRegion:e,startTown:t})},[B,k]),J=(0,o.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||G(e,t)},[G]),q=(0,o.useCallback)(()=>{if(D.current&&!T&&!S){let e=H.find(e=>e.name===D.current)??null;return J(h.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}J(T,S)},[T,S,H,h,J]),Q=(0,o.useCallback)(e=>{F(e)},[F]),Y=(0,o.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(d.allRussiaSelected,"1"),window.localStorage.setItem(d.userRegion,""),window.localStorage.setItem(d.userTown,""),_(null,null,c);return}window.localStorage.setItem(d.allRussiaSelected,"0"),window.localStorage.setItem(d.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(d.userTown,JSON.stringify(t)||""),_(e||null,t||null,c)},[d,c]),K=(0,o.useCallback)(e=>{e?M(u.D.icon,"location"):M(u.D.button,(null==S?void 0:S.name)||"Вся Россия"),!l||window.sessionStorage.getItem("start_popup_opened")?Q(!0):q()},[l,S,Q,q]),X=(0,o.useCallback)((e,t)=>{Y(e,t),L({region:e||null,town:t||null}),B(!1),Q(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[Q,Y]),ee=()=>{let e=x(d.userRegion)??b(d.userRegion),t=x(d.userTown)??b(d.userTown),n=I(g.current,e,t),i=c&&A(e,t);i&&(W.current=!0),i&&R(n.region,n.town)&&(Y(n.region,n.town),W.current=!1),L(n);let o=async({coords:{latitude:e,longitude:t}})=>{let n=`${s}?lat=${e}&lon=${t}`,i=await z(n);null!=i&&i.location&&(D.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&l)try{navigator.geolocation.getCurrentPosition(o,()=>null)}catch{}};return(0,o.useEffect)(()=>{(!C(h,c)||m)&&P({showcaseUrl:a,useNewCitiesApi:c}).then(e=>{e.length<1||f(e)})},[]),(0,o.useEffect)(()=>{if(!c)return;let e=I(h,T,S);W.current&&R(e.region,e.town)&&(Y(e.region,e.town),W.current=!1),L(e)},[h,T,Y,S,c]),(0,o.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{ee(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{ee()},0)},[]),(0,i.jsx)(V.Provider,{value:{regions:h,towns:H,region:T,town:S,startPopupVisible:E,setStartPopupVisible:B,popupVisible:U,handleToggleModal:Q,selectCity:X,handleButtonClick:K,startRegion:v,startTown:j},children:e})},J=()=>{let e=(0,o.useRef)(null),t=(0,o.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,o.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,o.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},q=(0,B.g)("city-select-modal-body","sc"),Q=Object.freeze({wrapper:`${q}__wrapper`,subtitle:`${q}__subtitle`,hintWrapper:`${q}__hint-wrapper`,hintText:`${q}__hint-text`,input:`${q}__input`,chips:`${q}__chips`,townsListWrapper:`${q}__towns-list-wrapper`,townsList:`${q}__towns-list`,townsGroup:`${q}__towns-group`,townsGroupLabel:`${q}__towns-group-label`,townsGroupList:`${q}__towns-group-list`,townsName:`${q}__towns-name`,regionName:`${q}__region-name`}),Y=({groupedTowns:e,chips:t,query:n,setQuery:r,isDrawer:a})=>{var c;let d=H(),p=(0,o.useRef)(null),[m,h]=(0,o.useState)("10000px");(0,o.useEffect)(()=>{if(!a||!p.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,i)=>{let o=n.map(e=>[...e]),l=o.map(e),r=l.reduce((e,t,n)=>t<l[e]?n:e,0);0===r&&o[0].push(o[1].shift()),2===r&&o[2].unshift(o[1].pop()),1===r&&l[0]>l[2]&&o[1].unshift(o[0].pop()),1===r&&l[0]<l[2]&&o[1].push(o[2].shift());let s=Math.max(...o.map(e));return s>=i?i:t(o,s)};new ResizeObserver(()=>{var e;if(!(null!=(e=p.current)&&e.children))return;let n=Array.from(p.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let i=0;try{i=t([[],n,[]],1/0)}catch{i=0}i>0&&h(`${i}px`)}).observe(p.current)},[]);let f=e=>{if(M(u.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return d.selectCity();let t=d.regions.find(t=>t.id===Number(e.parentId))||null;d.selectCity(t,e)};return(0,i.jsxs)("div",{className:Q.wrapper,children:[(0,i.jsxs)("div",{className:Q.subtitle,children:["Покажем предложения рядом с вами",(0,i.jsxs)("div",{className:Q.hintWrapper,children:[(0,i.jsx)(l.IconFdsQuestionCircleO,{size:24}),(0,i.jsx)("div",{className:Q.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,i.jsx)(s.MA,{className:Q.input,value:n,onChange:r,size:"s",placeholder:"Введите название города",icon:n?(0,i.jsx)(l.IconFdsCloseCircleO,{size:24,onClick:()=>r("")}):(0,i.jsx)(l.IconFdsSearchO,{size:24})}),(0,i.jsx)(s.cL,{className:Q.chips,chips:t,value:(null==(c=d.town)?void 0:c.id)||0,onChipClick:e=>{f(d.towns.find(t=>t.id===e))}}),(0,i.jsx)("div",{className:Q.townsListWrapper,children:(0,i.jsx)("div",{ref:p,className:Q.townsList,style:{maxHeight:m},children:e.map(e=>(0,i.jsxs)("div",{className:Q.townsGroup,children:[(0,i.jsx)("div",{className:Q.townsGroupLabel,children:e.letter}),(0,i.jsx)("div",{className:Q.townsGroupList,children:e.towns.map(e=>(0,i.jsxs)("button",{type:"button",onClick:()=>f(e),children:[(0,i.jsx)("div",{className:Q.townsName,children:e.name}),(0,i.jsx)("div",{className:Q.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},K=[1095,1096,134,720,189,180],X=()=>{var e;let t=H(),n=(0,s._m)("l"),[l,r]=(0,o.useState)(""),a=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,c=(0,o.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(l.toLocaleLowerCase())).sort((e,t)=>e.name.localeCompare(t.name)).reduce((e,t)=>{let n=e.pop();return n||(n={letter:t.name[0],towns:[]}),n.letter!==t.name[0]&&(e.push(n),n={letter:t.name[0],towns:[]}),n.towns.push(t),e.push(n),e},[]),[l,t.towns.length]),p=(0,o.useMemo)(()=>[{id:0,label:"Вся Россия"},...K.map(e=>{let n=t.towns.find(t=>t.id===e);return{id:null==n?void 0:n.id,label:null==n?void 0:n.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[t.towns.length]),m=()=>{M(u.D.button,"close"),t.handleToggleModal(!1)};return(0,i.jsxs)(d.P,{children:[!n&&(0,i.jsx)(d.U,{title:a,isOpen:t.popupVisible,onClose:m,full:!0,children:(0,i.jsx)(Y,{groupedTowns:c,chips:p,query:l,setQuery:r})}),n&&(0,i.jsx)(d.D,{title:a,isOpen:t.popupVisible,onClose:m,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,i.jsx)(Y,{groupedTowns:c,chips:p,query:l,setQuery:r,isDrawer:!0})})]})},ee={"uat-mp.beta.moex.com":"//chat-marketplace.beta.moex.com","finuslugi.ru":"//chat.finuslugi.ru","dev-rc.beta.moex.com":"//dev-opbot.tech.finuslugi.ru"},et=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(ee,e)?ee[e]:ee["finuslugi.ru"]},en=(e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=`${e}/assets/css/${t}`,document.head.appendChild(n);let i=document.createElement("script");i.src=`${e}/get-bootstrap/${t}`,i.defer=!0,document.body.appendChild(i)},ei=()=>new MutationObserver(e=>{e.forEach(e=>{if("style"===e.attributeName){let e=document.querySelector(".webchat"),t=!!e&&"none"!==e.style.display;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.isOpened=t)}})}),eo=()=>{let[e,t]=(0,o.useState)(!1),[n,i]=(0,o.useState)(!1),l=(0,o.useRef)(!1),r=e=>{l.current=e,i(e)};return(0,o.useEffect)(()=>{if(typeof window>"u")return;let e=et(),n="webchat_main";window.supportWidget={craftTalk:{isOpened:!1,setConfig:t=>{if(t.host&&(e=t.host),t.channel&&(n=t.channel),t.user){let e="function"==typeof t.user?t.user:()=>({...t.user});window.__WebchatUserCallback=e}},open:()=>new Promise(e=>{e()}),close:()=>null,toggle:()=>null}};let i=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((o,s)=>{if(l.current){s(Error("chat is already opened"));return}i?(i.openWidget(),t(!1),o()):(r(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let l=document.querySelector(".webchat");l&&ei().observe(l,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),r(!1),t(!1),o()},en(e,n))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,i;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(i=null==(n=window.supportWidget)?void 0:n.craftTalk)||i.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:n}},el=(0,o.createContext)({isAuth:!1,isHeaderHidden:!1,isHeaderTransparent:!1,openedBlock:null,setOpenedBlock:()=>null,openedSection:null,setOpenedSection:()=>null,isNavigationOpen:!1,isNavigationMounted:!1,navMenuItemsRef:{current:null},navigationRef:{current:null},ignoreClicks:!1,setIgnoreClicks:()=>null,isChatModalOpen:!1,setIsChatModalOpen:()=>null,isChatLoading:!1,fixedContainerRef:{current:null},headerRef:{current:null}});function er(){return(0,o.useContext)(el)}let es=e=>{let[t,n]=(0,o.useState)(!1),[l,r]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p}=eo(),[m,h]=(0,o.useState)(null),[f,w]=(0,o.useState)(null),[g,v]=(0,o.useState)(!1),[_,x]=(0,o.useState)(!1),[b,y]=(0,o.useState)(!1),j=(0,o.useRef)(null),C=(0,d.u)(g),N=(0,o.useRef)(null),k=(0,o.useRef)(null),$=(0,o.useRef)(null),O=(0,o.useRef)(null),T=(0,o.useCallback)(()=>{C.current&&C.current.scrollTo({top:0})},[C]),S=(0,o.useCallback)(e=>{w(e),T()},[T]),I=(0,o.useCallback)(e=>{N.current&&clearTimeout(N.current),e&&x(!0),e||(N.current=setTimeout(()=>{x(!1),S(null)},300))},[S]),A=(0,o.useCallback)((e,t,n)=>{if(t&&S(t),!n&&e===m||!e){I(!g),v(!g);return}h(e),I(!0),v(!0)},[m,S,g,I]),R=(0,o.useCallback)(()=>{k.current&&clearTimeout(k.current),y(!0),k.current=setTimeout(()=>{y(!1)},650)},[]);return(0,o.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,U.s)(r,a,e.isMainBannerPage);return(0,U.i)(),t},[]),(0,i.jsx)("header",{children:(0,i.jsx)(el.Provider,{value:{isAuth:t,isHeaderHidden:l,isHeaderTransparent:s,openedBlock:m,setOpenedBlock:A,openedSection:f,setOpenedSection:S,isNavigationOpen:g,isNavigationMounted:_,navMenuItemsRef:j,navigationRef:C,ignoreClicks:b,setIgnoreClicks:R,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p,fixedContainerRef:$,headerRef:O},children:e.children})})},ea=({label:e,onClick:t,eventActionText:n,eventLabel:o,...l})=>(0,i.jsx)(s.zx,{label:e,onClick:e=>{null==t||t(e),(0,u.h)({eventCategory:m.H,eventActionType:u.D.button,eventActionText:n||"",eventLabel:o||""})},...l}),ec=(0,B.g)("header-popup","sc"),eu=Object.freeze({popup:`${ec}__popup`,popupHeader:`${ec}__popup-header`,popupClose:`${ec}__popup-close`,body:`${ec}__body`}),ed=({isOpen:e,onClose:t,children:n,title:o})=>{let r=(0,s._m)("l");return(0,i.jsxs)(d.P,{children:[!r&&(0,i.jsx)(d.U,{title:o,isOpen:e,onClose:t,children:n}),r&&e&&(0,i.jsxs)("div",{className:eu.popup,children:[(0,i.jsxs)("div",{className:eu.popupHeader,children:[o,(0,i.jsx)(ea,{className:eu.popupClose,iconLeft:(0,i.jsx)(l.IconFdsCloseO,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,i.jsx)("div",{className:eu.body,children:n})]})]})},ep=(0,B.g)("start-choice-popup","sc"),em=Object.freeze({top:`${ep}__top`,progress:`${ep}__progress`,innerCircle:`${ep}__inner-circle`,title:`${ep}__title`,subtitle:`${ep}__subtitle`,actions:`${ep}__actions`}),eh=()=>{var e,t;let n=H(),[l,r]=(0,o.useState)(10),[s,a]=(0,o.useState)(0),c=(0,o.useRef)(void 0),d=()=>{M(u.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(n.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(n.startRegion)||""),n.setStartPopupVisible(!1)};return(0,o.useEffect)(()=>{n.startPopupVisible?(()=>{let e=Number((" "+l).slice(1)),t=1e3*e/100,n=0,i=0;c.current=setInterval(()=>{n++,i+=t,a(3.6*n);let o=e-Math.floor(i/1e3);o<l&&r(o),100===n&&(clearInterval(c.current),d())},t)})():(clearInterval(c.current),r(10),a(0))},[n.startPopupVisible]),(0,i.jsxs)(ed,{isOpen:n.startPopupVisible,onClose:d,title:(0,i.jsx)("button",{type:"button",className:em.progress,style:{background:`conic-gradient(#ff0508 ${s}deg, #e3e7ec 0deg)`},onClick:d,children:(0,i.jsx)("div",{className:em.innerCircle,children:l})}),children:[(0,i.jsxs)("div",{className:em.top,children:[(0,i.jsxs)("div",{className:em.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,i.jsx)("div",{className:em.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,i.jsxs)("div",{className:em.actions,children:[(0,i.jsx)(ea,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{M(u.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,i.jsx)(ea,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{M(u.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},ef=(0,B.g)("city-select","sc"),ew=Object.freeze({button:`${ef}__button`,minimal:`${ef}__minimal`,full:`${ef}__full`}),eg=({initialTown:e})=>{var t;let n=H(),r=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:c,isChatModalOpen:u}=er(),{startPopupVisible:d,setStartPopupVisible:p,popupVisible:m}=n,h=(0,o.useRef)();(0,o.useEffect)(()=>{m&&(h.current="popup")},[m]),(0,o.useEffect)(()=>{u&&(h.current="chat")},[u]),(0,o.useEffect)(()=>{d&&(h.current="startPopup")},[d]),(0,o.useEffect)(()=>{h.current&&("chat"===h.current&&d?p(!1):["startPopup","popup"].includes(h.current)&&u&&c(!1))},[m,u,d,p,c]);let f={appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,i.jsx)(l.IconFdsLocationO,{size:24})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.zx,{...f,className:(0,a.Z)(ew.button,ew.full),label:r}),(0,i.jsx)(s.zx,{...f,className:(0,a.Z)(ew.button,ew.minimal),shape:"icon"}),(0,i.jsx)(X,{}),(0,i.jsx)(eh,{})]})},ev=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:o,...l})=>(0,i.jsx)(s.rU,{onClick:i=>{null==e||e(i),(0,u.h)({eventCategory:m.H,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:o||""})},...l}),e_=(0,B.g)("header-mobile-app-banner","sc"),ex=Object.freeze({wrapper:`${e_}__wrapper`,container:`${e_}__container`,closeButton:`${e_}__close-button`,innerWrapper:`${e_}__inner-wrapper`,imageWrapper:`${e_}__image-wrapper`,image:`${e_}__image`,title:`${e_}__title`,description:`${e_}__description`,callToAction:`${e_}__call-to-action`,scanQr:`${e_}__scan-qr`}),eb=Object.freeze({mobile:56,desktop:68}),ey="headerBannerShownAt",ej=()=>{let e=localStorage.getItem(ey);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},eC=()=>{localStorage.setItem(ey,new Date().toISOString())},eN=()=>{let e=ej();return!e||Math.floor((e.getTime()-new Date().getTime())/864e5)>5},ek=({minioUrl:e,className:t,mobileAppUrl:n})=>{let{fixedContainerRef:d,headerRef:p}=er(),[h,f]=(0,o.useState)(!1),[w,g]=(0,o.useState)(!1),[v,_]=(0,o.useState)(!1),x=(0,o.useCallback)((e="desktop")=>{let t=d.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${eb[e]+m.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${eb.desktop+m.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${eb.mobile+m.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${eb.mobile+m.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${eb.desktop+m.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${eb[e]+108}px`))},[]),b=(0,o.useCallback)(()=>{let e=d.current;e&&(document.documentElement.style.removeProperty("--fixed-header-height"),document.documentElement.style.removeProperty("--new-header-height-desktop"),document.documentElement.style.removeProperty("--new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-desktop"),document.documentElement.style.removeProperty("--header-height"),e.style.transform="")},[]);return(0,o.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{w&&f(!1),_(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[w]),(0,o.useEffect)(()=>{eN()&&f(!0)},[]),(0,o.useEffect)(()=>{let e=window.innerWidth<768;h&&(x(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?f(!0):_(!0));let t=()=>{if(!h)return null;x(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{b(),window.removeEventListener("resize",t)}},[h,x,b]),h?(0,i.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":v,className:(0,a.Z)(ex.wrapper,t),children:(0,i.jsx)(r.W2,{children:(0,i.jsxs)("div",{className:ex.container,children:[(0,i.jsxs)("div",{className:ex.innerWrapper,children:[(0,i.jsxs)("picture",{className:ex.imageWrapper,children:[(0,i.jsx)("source",{srcSet:(0,c.xn)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{className:ex.image,src:(0,c.xn)(e,"/logo/finuslugi/default-regular.svg")})]}),(0,i.jsxs)("div",{className:ex.scanQr,children:[(0,i.jsx)("div",{className:ex.title,children:"Скачайте приложение Финуслуги"}),(0,i.jsx)("div",{className:ex.description,children:"Сканируйте QR-код"})]}),(0,i.jsxs)("div",{className:ex.callToAction,children:[(0,i.jsxs)("div",{children:["Приложение",(0,i.jsx)("br",{}),"Финуслуги"]}),(0,i.jsx)(s.zx,{onClick:()=>{(0,U.h)(u.D.button,"skachat_mob_prilozheniye_fu"),window.open(n,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,i.jsx)("div",{"aria-label":"Закрыть",role:"button",className:ex.closeButton,onClick:()=>{eC(),b(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?f(!1):g(!0)},children:(0,i.jsx)(l.IconFdsCloseO,{size:"100%"})})]})})}):null},e$=(0,B.g)("header-chat-modal-body","sc"),eO=Object.freeze({wrapper:`${e$}__wrapper`,cardButton:`${e$}__card-button`,card:`${e$}__card`,cardTitle:`${e$}__card-title`,cardSubtitle:`${e$}__card-subtitle`,button:`${e$}__button`}),eT=()=>{let e=er();return(0,i.jsxs)("div",{className:eO.wrapper,children:[(0,i.jsx)(ea,{className:eO.cardButton,variant:"secondary",pending:e.isChatLoading,onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},eventActionText:"Напишите в чат",children:(0,i.jsxs)(r.Zb,{className:eO.card,variant:"secondary",children:[(0,i.jsxs)("div",{className:eO.cardTitle,children:[(0,i.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,i.jsxs)("p",{className:eO.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,i.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},eS=({data:e,isMobile:t})=>{let n=er();return(0,i.jsx)("div",{className:F.s.contentWrapper,children:e.map(e=>(0,i.jsx)(o.Fragment,{children:e.sections.map(e=>{var o;return(0,i.jsxs)("div",{className:(0,a.Z)(F.s.content,{[F.s.hidden]:n.openedSection!==e.id,[F.s.contentOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:F.s.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),null==(o=e.content)?void 0:o.map((n,o)=>{var r,s;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,a.Z)(F.s.contentTitle,{[F.s.removed]:!n.title,[F.s.contentTitleUrl]:!!n.url,[F.s.contentTitleLink]:!!e.isSeeAllLinkAvailable,[F.s.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:F.s.arrowIcon,children:(0,i.jsx)(l.IconFdsArrowUpRightSmallO,{})}),n.title]})})}),!(null!=(r=n.links)&&r.length)&&(0,i.jsx)(F.N,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(s=n.links)&&s.length)&&(0,i.jsx)("div",{className:(0,a.Z)(F.s.links,{[F.s.linksColumns]:!!n.columns,[F.s.linksTitleless]:!n.title}),children:n.links.map(e=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,U.h)(u.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{className:F.s.arrowIcon,children:(0,i.jsx)(l.IconFdsArrowUpRightSmallO,{})}),(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:e.title}),!!e.new&&(0,i.jsx)("span",{className:(0,a.Z)({[F.s.newInline]:!!e.new})})]})]},e.url))})]},`${n.url}_${o}`)})]},e.id)})},e.id))})},eI=(0,B.g)("navigation-section-icon","sc"),eA=Object.freeze({icon:`${eI}`}),eR=({name:e,background:t})=>{let n=(0,o.useMemo)(()=>e&&l[e]||null,[e]);return e&&n?(0,i.jsx)("div",{className:eA.icon,style:{background:t},children:(0,i.jsx)(n,{})}):null},eL=(0,B.g)("navigation","sc"),eE=Object.freeze({navigation:`${eL}`,navigationOpening:`${eL}--opening`,navigationClosing:`${eL}--closing`,wrapper:`${eL}__wrapper`,container:`${eL}__container`,containerOpen:`${eL}__container--open`,sections:`${eL}__sections`,sectionsOpen:`${eL}__sections--open`,citySelectButton:`${eL}__city-select-button`,sectionsTitle:`${eL}__sections-title`,sectionsWrapper:`${eL}__sections-wrapper`,section:`${eL}__section`,sectionArrow:`${eL}__section-arrow`,sectionExtra:`${eL}__section--extra`,sectionActive:`${eL}__section--active`,sectionTitle:`${eL}__section-title`,chatWrapper:`${eL}__chat-wrapper`,chatHeader:`${eL}__chat-header`,backButton:`${eL}__back-button`,useful:`${eL}__useful`,usefulOpen:`${eL}__useful--open`,usefulTitle:`${eL}__useful-title`,usefulGrid:`${eL}__useful-grid`,removed:`${eL}__removed`}),eP=({data:e})=>{var t;let n=er(),c=H(),d=(0,s.aF)("m"),[p,h]=(0,o.useState)(!0);(0,o.useEffect)(()=>{h(d)},[d]);let f=(0,o.useRef)(null),w=(0,o.useCallback)(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),g=(0,o.useRef)(!1),v=(0,o.useRef)(null),_=(0,o.useCallback)(()=>{p&&(g.current=!0,v.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),w()},window.history.pushState(null,"",window.location.href))},[w,p]),x=(0,o.useCallback)(()=>{g.current=!1,window.onpopstate=v.current,window.history.go(-1)},[]),b=(0,o.useRef)(null),y=(0,o.useCallback)(e=>{if(p||!n.navMenuItemsRef.current||!n.navigationRef.current)return;let t=e.target,i=!n.navMenuItemsRef.current.contains(t)&&!n.navigationRef.current.contains(t);if(i&&!b.current){n.setIgnoreClicks(),b.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!i&&b.current&&(clearTimeout(b.current),b.current=null)},[p,n]),j=(0,o.useRef)(null),C=(0,o.useCallback)(e=>{typeof window>"u"||(e?(j.current=y,window.addEventListener("mousemove",j.current)):j.current&&window.removeEventListener("mousemove",j.current))},[y]);(0,o.useEffect)(()=>{C(n.isNavigationOpen),n.isNavigationOpen&&!g.current&&_(),!n.isNavigationOpen&&g.current&&x()},[n.isNavigationOpen]);let N=(e,t)=>()=>{(0,U.h)(u.D.button,t),n.setOpenedSection(e)},{start:k,clear:$}=J(),O=(e,t)=>()=>{p||k(N(e,t),150)},T=()=>{p||$()};return(0,i.jsx)("div",{ref:n.navigationRef,className:(0,a.Z)(eE.navigation,{[eE.removed]:!n.isNavigationMounted,[eE.navigationOpening]:n.isNavigationOpen,[eE.navigationClosing]:!n.isNavigationOpen}),children:(0,i.jsx)("div",{className:eE.wrapper,children:(0,i.jsxs)(r.W2,{className:(0,a.Z)(eE.container,{[eE.containerOpen]:!!n.openedSection}),children:[(0,i.jsxs)("div",{className:(0,a.Z)(eE.sections,{[eE.sectionsOpen]:!!n.openedSection}),children:[(0,i.jsx)(s.zx,{className:eE.citySelectButton,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>c.handleButtonClick(!1),iconLeft:(0,i.jsx)(l.IconFdsLocationO,{size:24}),label:(null==(t=c.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,i.jsxs)("ul",{className:(0,a.Z)(eE.sectionsWrapper,{[eE.removed]:n.openedBlock!==e.id&&!p}),children:[(0,i.jsx)("div",{className:eE.sectionsTitle,children:m.b[e.id]}),e.sections.map(e=>(0,i.jsxs)("li",{className:(0,a.Z)(eE.section,{[eE.sectionExtra]:!!e.extra,[eE.sectionActive]:n.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:O(e.id,e.title),onMouseLeave:T,children:[(0,i.jsx)(eR,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:eE.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:eE.sectionArrow,children:(0,i.jsx)(l.IconFdsChevronRightSmallO,{size:24})})]},e.id))]},e.id)),(0,i.jsxs)("div",{className:eE.chatWrapper,children:[(0,i.jsx)("div",{className:eE.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(eT,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,a.Z)(eE.backButton,{[eE.removed]:!n.openedSection}),onClick:()=>{(0,U.h)(u.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,i.jsx)(l.IconFdsChevronLeftO,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(eS,{data:e,isMobile:p}),(0,i.jsxs)("div",{className:(0,a.Z)(eE.useful,{[eE.usefulOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:eE.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,i.jsx)(o.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsx)("div",{className:(0,a.Z)(eE.usefulGrid,{[eE.removed]:n.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,U.h)(u.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${t}`))},e.id)})},e.id))]})]})})})},ez=(e,t,n)=>{var i,o,l,r,s,a,u;let d=(null==(o=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:o.call(i,({id:e})=>"news"===e))||-1,p=(null==(r=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l[d])?void 0:r.content)||[];if(null!=(u=null==(a=null==(s=null==e?void 0:e.NAVIGATOR)?void 0:s[d])?void 0:a.content)&&u[0]&&Array.isArray(n)&&p.length){let i=n.map(({title:e,url:n})=>({title:e,url:(0,c.xn)(t||"",n),new:0}));e.NAVIGATOR[d].content[0].links=i}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]},eM=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:d="https://lk.finuslugi.ru/registration",initialTown:p,isMainBannerPage:h,enableAppHeaderBanner:f=!1,news:w,className:g})=>{let v=er(),_=(0,o.useMemo)(()=>ez(e,t,w),[e,t,w]),x=null==e?void 0:e.config,b=(0,o.useMemo)(()=>_.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[_]),y=v.isAuth?"Личный кабинет":"Войти",j=h&&v.isHeaderTransparent,C=(e,t,n,i)=>()=>{e!==v.openedBlock?(0,U.h)(u.D.toggle,t,"on"):(0,U.h)(u.D.button,"menu_close","on");let o=n?b[e]:"";v.setOpenedBlock(e,o,!!i)},{start:N,clear:k}=J(),$=(e,t,n,i)=>()=>{v.isNavigationOpen&&e===v.openedBlock||v.setIgnoreClicks(),N(C(e,t,n,i),200)},O=e=>()=>{v.ignoreClicks||e()},T=e=>v.openedBlock===e&&v.isNavigationOpen;return e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:v.headerRef,className:(0,a.Z)(m.s.header,g,{[m.s.transparent]:j}),children:(0,i.jsxs)("div",{ref:v.fixedContainerRef,className:(0,a.Z)(m.s.fixed,{[m.s.hidden]:v.isHeaderHidden,[m.s.navigationOpen]:v.isNavigationOpen}),children:[!!(null!=x&&x.appBannerUrl)&&f&&(0,i.jsx)(ek,{mobileAppUrl:x.appBannerUrl,minioUrl:n}),(0,i.jsxs)(r.W2,{className:m.s.container,children:[(0,i.jsxs)("div",{className:m.s.leftRow,children:[(0,i.jsx)(ev,{className:m.s.logo,href:t,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,c.xn)(n,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{src:(0,c.xn)(n,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,i.jsx)("nav",{ref:v.navMenuItemsRef,className:m.s.menuItems,children:(0,i.jsx)("ul",{children:m.c.map(({id:e,label:t})=>(0,i.jsx)("li",{children:(0,i.jsx)(s.zx,{className:(0,a.Z)({[m.s.menuItemActive]:T(e)}),label:t,variant:"white",size:"xs",onClick:O(C(e,t,!0)),onMouseEnter:$(e,t,!0,!0),onMouseLeave:k})},e))})}),(0,i.jsx)(ea,{className:(0,a.Z)(m.s.tabletMenuButton,{[m.s.menuItemActive]:v.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(l.IconFdsChevronDownO,{size:24}),onClick:C("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:(0,a.Z)(m.s.buttonGroup,{[m.s.whiteIcons]:(null==x?void 0:x.iconColorOnMobileMainBanner)==="white"}),children:[(0,i.jsxs)("div",{className:m.s.chips,children:[(0,i.jsx)(ea,{as:"a",href:d,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${d}`,iconLeft:(0,i.jsx)(l.IconFdsUserO,{size:20})}),(0,i.jsx)(ea,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,i.jsx)(l.IconFdsChatDotsCircleO,{size:24})})]}),(0,i.jsx)(ea,{className:m.s.menuButton,size:"xs",shape:j?"icon":"default",appearance:j?"ghost":"fill",label:"Меню",onClick:C("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(l.IconFdsMenuSkewedO,{size:24})}),(0,i.jsxs)("div",{className:m.s.moreButtons,children:[(0,i.jsx)(eg,{initialTown:p}),(0,i.jsx)(ea,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",appearance:"ghost",eventActionText:"IconFdsChatDotsSquareAddO",iconLeft:(0,i.jsx)(l.IconFdsChatDotsSquareAddO,{size:24}),children:"Онлайн чат"}),(0,i.jsx)(ea,{as:"a",href:d,size:"xs",eventActionText:y,eventLabel:`${y}_${d}`,label:y})]})]}),(0,i.jsxs)(ev,{className:m.s.auth,href:d,eventActionText:y,eventLabel:`${y}_${d}`,children:[(0,i.jsx)(ea,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(l.IconFdsUserO,{}),eventActionText:y,eventLabel:`${y}_${d}`}),(0,i.jsx)("p",{children:y})]}),(0,i.jsx)("div",{className:m.s.close,children:(0,i.jsx)(ea,{className:m.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(l.IconFdsCloseO,{}),onClick:()=>v.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,i.jsx)("div",{className:(0,a.Z)(m.s.overlay,{[m.s.removed]:!v.isNavigationMounted,[m.s.overlayOpening]:v.isNavigationOpen,[m.s.overlayClosing]:!v.isNavigationOpen}),onClick:O(()=>v.setOpenedBlock(null))}),(0,i.jsx)(eP,{data:_,minioUrl:n})]}):null},eB=e=>(0,i.jsx)(es,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(eM,{...e})})},5593:function(e,t,n){n.d(t,{N:function(){return f},s:function(){return m}});var i=n(7437),o=n(2265),l=n(684),r=n(4365),s=n(8731),a=n(6951),c=n(2074);let u=(0,c.g)("navigation-chips","sc"),d=Object.freeze({wrapper:`${u}__wrapper`,gray:`${u}__variantGray`,white:`${u}__variantWhite`,container:`${u}__container`,chip:`${u}__chip`,more:`${u}__chip--more`,active:`${u}__chip--active`,icon:`${u}__icon`,label:`${u}__label`,hidden:`${u}__hidden`}),p=(0,c.g)("navigation-content","sc"),m=Object.freeze({contentWrapper:`${p}__content-wrapper`,content:`${p}__content`,contentOpen:`${p}__content--open`,contentHeader:`${p}__content-header`,contentTitle:`${p}__content-title`,contentTitleUrl:`${p}__content-title--url`,contentTitleLink:`${p}__content-title--link`,contentTitleNew:`${p}__content-title--new`,new:`${p}__new`,newInline:`${p}__new-inline`,vip:`${p}__vip`,arrowIcon:`${p}__arrow-icon`,links:`${p}__links`,linksColumns:`${p}__links--columns`,linksTitleless:`${p}__links--titleless`,removed:`${p}__removed`,hidden:`${p}__content--hidden`}),h=({chip:e,hidden:t,onClick:n,refCallback:o,activeChipId:c})=>{let u=!!n,p=()=>{if(u)return null==n?void 0:n(e.url);(0,a.h)(s.D.chip,e.title,`${e.title}_${e.url}`)},h=(0,i.jsxs)(i.Fragment,{children:[e.icon&&(0,i.jsx)("span",{className:d.icon,"aria-hidden":"true",children:e.icon}),(0,i.jsx)("span",{className:d.label,children:e.title}),e.arrow&&(0,i.jsx)(l.IconFdsArrowUpRightSmallO,{size:24})]}),f=(0,r.Z)(d.chip,{[d.hidden]:t,[m.new]:!!e.new,[m.vip]:!!e.vip,[d.active]:e.url===c});return u?(0,i.jsx)("button",{type:"button",className:f,onClick:p,ref:o,children:h}):(0,i.jsx)("a",{href:e.url,className:f,onClick:p,ref:o,children:h})},f=({items:e=[],maxNumberOfLines:t,variant:n,className:c,activeChipId:u,onClick:p,moreButtonOptions:m})=>{let f=(0,o.useRef)(null),w=(0,o.useRef)(null),g=(0,o.useRef)({}),v=(null==m?void 0:m.label)??"Еще",_="Еще",x=(null==m?void 0:m.showIcon)??!0,b=(0,r.Z)(d.chip,d.more,null==m?void 0:m.className),[y,j]=(0,o.useState)(!1),[C,N]=(0,o.useState)(e.length),[k,$]=(0,o.useState)(!1);(0,o.useMemo)(()=>{let t=g.current;e.forEach(e=>{e.url in t||(t[e.url]=null)}),Object.keys(t).forEach(n=>{e.find(e=>String(e.url)===String(n))||delete t[n]})},[e]);let O=(0,o.useCallback)(()=>{let n=f.current;if(!n)return;let i=e=>e?e.getBoundingClientRect().width:0,o=i(n),l=Math.max(Number(t)||0,0),r=()=>{N(e.length),$(!1)};if(y||0===l||o<=0){r();return}let s=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),a=i(w.current),c=e.map(e=>i(g.current[e.url]));if(c.some(e=>0===e)){r();return}let u=1,d=0,p=0;for(let e of c){let t=u===l?a+s:0,n=0===d?e:d+s+e;if(n+t<=o-.5)d=n,p++;else{if(++u>l)break;d=e,p++}}$(p<e.length),N(p)},[y,e,t]);(0,o.useLayoutEffect)(()=>{let e=f.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(O)});return t.observe(e),requestAnimationFrame(O),()=>{t.disconnect()}},[O]),(0,o.useEffect)(()=>{requestAnimationFrame(O)},[O]);let T=y||(t??0)<=0||!k;return(0,i.jsx)("div",{className:(0,r.Z)(c,d.wrapper,{[d.gray]:"gray"===n,[d.white]:"white"===n}),children:(0,i.jsxs)("div",{ref:f,className:d.container,children:[e.map((e,t)=>(0,i.jsx)(h,{chip:e,hidden:!T&&t>=C,activeChipId:u,onClick:p,refCallback:t=>{g.current[e.url]=t}},e.url)),!T&&k&&(0,i.jsxs)("button",{type:"button",ref:w,className:b,"aria-label":_,onClick:()=>{(0,a.h)(s.D.chip,_),j(!0)},children:[x&&(0,i.jsx)(l.IconFdsDotsVerticalO,{size:20}),(0,i.jsx)("span",{className:d.label,children:v})]}),(T||!k)&&(0,i.jsxs)("button",{type:"button",ref:w,className:(0,r.Z)(b,d.hidden),tabIndex:-1,"aria-hidden":"true",children:[x&&(0,i.jsx)(l.IconFdsDotsVerticalO,{size:20}),(0,i.jsx)("span",{className:d.label,children:v})]})]})})}},4246:function(e,t,n){n.d(t,{D:function(){return I},P:function(){return B},U:function(){return M},u:function(){return b}});var i=n(7437),o=n(2265),l=n(4365),r=n(684),s=n(2074),a=n(4887);let c=300,u=({opened:e})=>{let[t,n]=(0,o.useState)(!1),i=(0,o.useRef)(null),l=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(e&&!l.current?(l.current=!0,n(!0)):!e&&l.current&&(i.current=setTimeout(()=>{l.current=!1,n(!1)},c)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},d=(0,s.g)("click-outside","sc"),p=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:r=c})=>{let s=(0,o.useRef)(null),a=(0,o.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},r))},[r,e]),u=(0,o.useCallback)(e=>{"Escape"===e.key&&a()},[a]);return(0,o.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",u)}),[n,u]),(0,i.jsx)("div",{className:(0,l.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:a})},h=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},f=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},w=(e,t,n)=>{t.style.setProperty("overflow-y","scroll"),e.classList.toggle("scroll-disable-windows",!0),e.style.setProperty("width",`calc(100vw - ${n}px)`),e.style.setProperty("top",`-${window.prevScrollPosition}px`)},g=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")},v=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},_=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},x=()=>document.querySelectorAll("[data-portal]").length>1,b=e=>{let t=(0,o.useRef)(null),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(n.current===e)return;n.current=e;let i=t.current,o=document.body,l=document.documentElement,r=window.innerWidth-l.clientWidth,s=r>0;if(e&&s)f(o),w(o,l,r),h(i,!0);else if(e)g(o),h(i,!0);else{let e=!x();e&&v(o),e&&_(),h(i,!1)}return()=>{let e=!x();e&&v(o),e&&_()}},[e]),t},y=(0,s.g)("drawer-footer","sc"),j=Object.freeze({footer:`${y}__footer`,hasScroll:`${y}__footer--has-scroll`}),C=({footer:e,hasScroll:t,className:n})=>(0,i.jsx)("div",{className:(0,l.Z)(j.footer,{[j.hasScroll]:t},n),children:"function"==typeof e?e():e}),N=(0,s.g)("drawer-content","sc"),k=Object.freeze({container:`${N}__container`,open:`${N}--open`,close:`${N}--close`,header:`${N}__header`,rowHeader:`${N}__header--row`,title:`${N}__title`,center:`${N}__title--center`,left:`${N}__title--left`,right:`${N}__title--right`,controlContainer:`${N}__control-container`,content:`${N}__content`,footer:`${N}__footer`}),$=({onClose:e,onContentClick:t,children:n,title:s,rowTitle:a,titleAlign:c,isCloseable:u,footer:d,closeButton:p,isOpen:m,contentClassName:h,footerClassName:f,contentStyle:w,width:g})=>{let v=(0,o.useRef)(null),_=(0,o.useRef)(null),[x,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{var e;if(!_.current||!v.current)return;let t=(null==(e=null==_?void 0:_.current)?void 0:e.getBoundingClientRect().top)||0,n=null==v?void 0:v.current,i=()=>{let e=null==_?void 0:_.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",i,!1),()=>{null==n||n.removeEventListener("scroll",i,!1)}},[]);let y=w||g?{width:g,...w||{}}:void 0;return(0,i.jsxs)("div",{ref:v,style:y,className:(0,l.Z)(k.container,{[k.open]:m,[k.close]:!m},h),children:[s||u?(0,i.jsxs)("div",{className:(0,l.Z)(k.header,{[k.rowHeader]:a}),children:[u?p?"function"==typeof p?p():p:(0,i.jsx)("button",{type:"button",className:k.controlContainer,onClick:e,children:(0,i.jsx)(r.IconFdsCloseO,{size:24})}):null,s?(0,i.jsx)("h3",{className:(0,l.Z)(k.title,{[k[c]]:!0}),children:s}):null]}):null,(0,i.jsx)("div",{ref:_,className:k.content,onClick:t,children:n}),d&&(0,i.jsx)(C,{className:(0,l.Z)(k.footer,f),footer:d,hasScroll:x})]})},O=(0,s.g)("drawer-layout","sc"),T=Object.freeze({window:`${O}__window`}),S=({onClose:e,isOpen:t,children:n,withDisabledScroll:r,className:s,...a})=>{let c=(0,o.useCallback)(e=>e.stopPropagation(),[]);return b(t&&r),(0,i.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(T.window,s),children:[(0,i.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,i.jsx)($,{onContentClick:c,onClose:e,isOpen:t,...a,children:n})]})},I=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:o=!0,withDisabledScroll:l=!0,...r})=>{let{mounted:s}=u({opened:e});return s?(0,i.jsx)(S,{titleAlign:n,isCloseable:o,isOpen:e,withDisabledScroll:l,...r,children:t}):null};I.displayName="Drawer";let A=(0,s.g)("mobile-modal-footer","sc"),R=Object.freeze({footer:`${A}__footer`,footerWithoutShadow:`${A}__footer--without-shadow`}),L=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,i.jsx)("div",{className:(0,l.Z)(R.footer,t&&R.footerWithoutShadow,n),children:"function"==typeof e?e():e}),E=(0,s.g)("mobile-popup","sc"),P=Object.freeze({mobilePopup:`${E}`,mobilePopupOpen:`${E}--open`,content:`${E}__content`,contentFull:`${E}__content--full`,contentTransition:`${E}__content--transition`,contentTransitionOpen:`${E}__content--transition-open`,contentLine:`${E}__content-line`,contentContainer:`${E}__content-container`,smallContentContainer:`${E}__content-container--small`,min:`${E}__content-container--min`,title:`${E}__title`,closeContainer:`${E}__close-container`,closeButton:`${E}__close-button`}),z=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:a,hasCloseButton:c=!0,full:u,touchDistance:d=100,withDisabledScroll:p=!0,contentClassName:h,className:f,title:w,closeButton:g,footerClassName:v})=>{let[_,x]=(0,o.useState)(!1),[y,j]=(0,o.useState)(!1),[C,N]=(0,o.useState)(!0),[k,$]=(0,o.useState)("120%"),O=(0,o.useRef)(null),T=(0,o.useRef)(0),S=(0,o.useRef)(!1),I=e=>{var t,n,i;let o=null==(t=O.current)?void 0:t.offsetTop,l=null==(n=O.current)?void 0:n.offsetHeight;if(S.current=!0,N(!1),o&&l){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-o,n=0;t>=0&&t<=l+30&&(n=t),t>l+30&&(n=l+30),$(`${n}px`),T.current=n}},A=()=>{S.current&&(T.current>d&&a?null==a||a():$("0"),N(!0),S.current=!1),window.removeEventListener("touchmove",I),window.removeEventListener("touchend",A)};return(0,o.useEffect)(()=>{n&&setTimeout(()=>{x(!0),j(!0),$("0")},100),!n&&y&&($("120%"),x(!1),j(!1))},[y,n]),b(n&&p),(0,i.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(P.mobilePopup,y&&P.mobilePopupOpen,f),children:[(0,i.jsx)(m,{onClose:()=>{n&&(null==a||a())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",I),window.addEventListener("touchend",A))},isOpen:n,delay:0}),(0,i.jsxs)("div",{className:(0,l.Z)(P.content,u&&P.contentFull,C&&P.contentTransition,C&&_&&P.contentTransitionOpen),ref:O,style:{transform:`translateY(${k})`},children:[(0,i.jsx)("div",{className:P.contentLine}),(0,i.jsxs)("div",{className:(0,l.Z)(P.contentContainer,s&&P.smallContentContainer,{[P.min]:!w&&!c},h),children:[!!w&&(0,i.jsx)("div",{className:P.title,children:w}),c?(0,i.jsx)("div",{className:P.closeContainer,children:c?g?"function"==typeof g?g():g:(0,i.jsx)("button",{onClick:a,className:P.closeButton,children:(0,i.jsx)(r.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,i.jsx)(L,{footerClassName:v,isSmallPopup:s,footer:t})]})]})},M=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...o})=>{let{mounted:l}=u({opened:n});return l?(0,i.jsx)(z,{isSmallPopup:t,isOpen:n,...o,children:e}):null};M.displayName="UiMobilePopup";let B=({children:e,id:t="portal-root"})=>{let[n,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=document.getElementById(t);if(e){i(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),i(n),()=>{document.body.removeChild(n)}},[t]),n?(0,a.createPortal)(e,n):null}},2778:function(e,t,n){n.d(t,{L:function(){return a},g:function(){return s}});var i=n(2265),o=n(631);let l=null,r=e=>{l=e},s=()=>l,a=e=>{let{env:t}=e,n=(0,i.useRef)(!1);return n.current||(r(t),n.current=!0),(0,i.useEffect)(()=>{"production"===t.NODE_ENV&&(0,o.zK)()},[t.NODE_ENV]),null}},4267:function(e,t,n){n.d(t,{F:function(){return u},H:function(){return s},U:function(){return l},a:function(){return r},b:function(){return c},c:function(){return a},s:function(){return o}});let i=(0,n(2074).g)("header","sc"),o=Object.freeze({header:`${i}`,fixed:`${i}__fixed`,hidden:`${i}__fixed--hidden`,transparent:`${i}--transparent`,navigationOpen:`${i}__navigation-open`,container:`${i}__container`,leftRow:`${i}__left-row`,logo:`${i}__logo`,menuItems:`${i}__menu-items`,menuItemActive:`${i}__menu-item-active`,tabletMenuButton:`${i}__tablet-menu-button`,buttonGroup:`${i}__button-group`,chips:`${i}__chips`,menuButton:`${i}__menu-button`,moreButtons:`${i}__more-buttons`,auth:`${i}__auth`,whiteIcons:`${i}__white-icons`,close:`${i}__close`,removed:`${i}__removed`,overlay:`${i}__overlay`,overlayOpening:`${i}__overlay--opening`,overlayClosing:`${i}__overlay--closing`}),l="user_region",r="user_town",s="cb-header",a=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],c=a.reduce((e,t)=>(e[t.id]=t.label,e),{}),u=Object.freeze({mobile:56,desktop:80})},5487:function(e,t,n){n.d(t,{a:function(){return i}});let i={getItem:e=>{if(typeof document>"u")return null;let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,n={})=>{if(typeof document>"u")return;(n={path:"/",...n}).expires instanceof Date&&(n.expires=n.expires.toUTCString());let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in n){if(!n.hasOwnProperty(e))continue;i+=`; ${e}`;let t=n[e];!0!==t&&(i+=`=${t}`)}document.cookie=i},removeItem:e=>{i.setItem(e,"",{"max-age":-1})}}},8731:function(e,t,n){let i;n.d(t,{D:function(){return s},h:function(){return c}});var o=n(1620),l=n(631);let r=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,l.AB)(e)}};var s=((i=s||{}).icon="icon",i.chip="chip",i.accordion="accordion",i.button="button",i.checkbox="checkbox",i.radio="radio",i.select="select",i.toggle="toggle",i.tooltip="tooltip",i.link="link",i.banner="banner",i.tag="tag",i.date="date",i.field="field",i.offer="offer",i.tab="tab",i.submitButton="submitButton",i.popup="popup",i.block="block",i);let a={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},c=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:i})=>{let l={event:"data-event",eventCategory:e,eventAction:a[t]+(0,o.t)(n)};void 0!==i&&(l.eventLabel=(0,o.t)("string"==typeof i?i:i.toString())),r(l)}},6951:function(e,t,n){n.d(t,{h:function(){return d},i:function(){return u},s:function(){return l}});var i=n(8731),o=n(4267);let l=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),o=!1,l=0,r=0,s=()=>window.innerWidth<768,a=s(),c=()=>window.scrollY||document.documentElement.scrollTop,u=()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));r=Number.isNaN(t)?0:t,l=c()}},d=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},p=()=>{let e=s();e!==a&&(a=e,r=0)},m=function(){let s=c(),a=document.getElementById("headerNotice");if((null==a?void 0:a.getAttribute("data-opening"))==="true")return;r||u();let p=s<r,m=s<((null==i?void 0:i.clientHeight)||0);if(n&&m||p){o=!1,e(!1),t(!0),d(`${r}px`);return}e(o=s>l),o&&setTimeout(()=>t(!1),50),d(o?"0px":`${r}px`),l=s<=0?0:s};return window.addEventListener("scroll",m),window.addEventListener("resize",p),()=>{window.removeEventListener("scroll",m),window.removeEventListener("resize",p)}},r=()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,i]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=i);return Object.keys(t).length>0?t:null},s=()=>document.cookie.split(";").some(e=>e.trim().startsWith("utm_params=")),a=(e,t,n)=>{let i=new Date;i.setTime(i.getTime()+864e5*n);let o=encodeURIComponent(JSON.stringify(t)),l=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${o};expires=${i.toUTCString()};path=/;SameSite=Lax${l}`},c=()=>{let e=r();e&&!s()&&a("utm_params",e,90),e&&a("utm_last",e,90)},u=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{c()}catch(e){console.error("UTM tracking error:",e)}},0)},d=(e,t,n)=>(0,i.h)({eventCategory:o.H,eventActionType:e,eventActionText:t,eventLabel:n})},1620:function(e,t,n){n.d(t,{t:function(){return o}});let i={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},o=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(/[ \u00A0]/g,"_")},7337:function(e,t,n){n.d(t,{xn:function(){return o}});let i=/^\.?\//;function o(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(i,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}Symbol.for("ufo:protocolRelative")}}]);