(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12569,e=>{"use strict";e.s(["l",0,{display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"}])},85900,e=>{"use strict";let t=/#/g,n=/&/g,l=/\//g,i=/=/g,r=/\+/g,o=/%5e/gi,a=/%60/gi,s=/%7c/gi,c=/%20/gi;function u(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(s,"|").replace(r,"%2B").replace(c,"+").replace(t,"%23").replace(n,"%26").replace(a,"`").replace(o,"^").replace(l,"%2F")}function d(e){return u(e).replace(i,"%3D")}function f(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let p=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,m=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,h=/^([/\\]\s*){2,}[^/\\]/,v=/\/$|\/\?|\/#/,g=/^\.?\//;function w(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?p.test(e):m.test(e)||!!t.acceptRelative&&h.test(e)}function b(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(g,"");n=function(e=""){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}let x=Symbol.for("ufo:protocolRelative");function y(e=""){let[t="",n="",l=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:l}}e.s(["joinURL",0,b,"withBase",0,function(e,t){var n;if(!(n=t)||"/"===n||w(e))return e;let l=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(l)){let t=e[l.length];if(!t||"/"===t||"?"===t)return e}return b(l,e)},"withQuery",0,function(e,t){var n;let l,i,o,a,s,c=function e(t="",n){let l=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(l){let[,e,t=""]=l;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!w(t,{acceptRelative:!0}))return n?e(n+t):y(t);let[,i="",r,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",s=""]=o.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:u,hash:d}=y(s);return{protocol:i.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:a,pathname:c,search:u,hash:d,[x]:!i}}(e),p={...function(e=""){let t=Object.create(null);for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let l=f(e[1].replace(r," "));if("__proto__"===l||"constructor"===l)continue;let i=f((e[2]||"").replace(r," "));void 0===t[l]?t[l]=i:Array.isArray(t[l])?t[l].push(i):t[l]=[t[l],i]}return t}(c.search),...t};return c.search=Object.keys(p).filter(e=>void 0!==p[e]).map(e=>{var t;return(("number"==typeof(t=p[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${d(e)}=${u(t)}`).join("&"):`${d(e)}=${u(t)}`:d(e)}).filter(Boolean).join("&"),l=(n=c).pathname||"",i=n.search?(n.search.startsWith("?")?"":"?")+n.search:"",o=n.hash||"",a=n.auth?n.auth+"@":"",s=n.host||"",(n.protocol||n[x]?(n.protocol||"")+"//":"")+a+s+l+i+o}])},63687,56239,e=>{"use strict";let t,n={а:"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"},l=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in n?n[t]:e}).replaceAll(/[ \u00A0]/g,"_");e.s(["t",0,l],56239);var i=e.i(58282),r=((t=r||{}).icon="icon",t.chip="chip",t.accordion="accordion",t.button="button",t.checkbox="checkbox",t.radio="radio",t.select="select",t.toggle="toggle",t.tooltip="tooltip",t.link="link",t.banner="banner",t.tag="tag",t.date="date",t.field="field",t.offer="offer",t.tab="tab",t.submitButton="submitButton",t.popup="popup",t.block="block",t.show="show",t.close="close",t);let o={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_",show:"show_",close:"close_"};e.s(["D",0,r,"h",0,({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:r})=>{let a={event:"data-event",eventCategory:e,eventAction:o[t]+l(n)};void 0!==r&&(a.eventLabel=l("string"==typeof r?r:r.toString())),((e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),l=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 r=l.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||!r){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,i.pushEvent)(e)}})(a)}],63687)},46401,34986,65019,e=>{"use strict";var t=e.i(43476),n=e.i(7670),l=e.i(71645),i=e.i(2404),r=e.i(54061);function o(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.25 5.75c0 .414.336.75.75.75h5.44L5.22 17.72a.75.75 0 1 0 1.06 1.06L17.5 7.56V13a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-.75-.75H11a.75.75 0 0 0-.75.75Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let a=(0,r.g)("link"),s=Object.freeze({link:a,states:{inverted:`${a}--inverted`,disabled:`${a}--disabled`},content:`${a}__content`,icon:`${a}__icon`,size:{s:`${a}--s`,m:`${a}--m`}});function c({as:e,size:l="m",withIcon:r=!1,children:a,disabled:u,text:d,inverted:f,onClick:p,className:m,style:h,dataQa:v,dataId:g,...w}){let b=(0,n.default)(s.link,{[s.states.inverted]:f,[s.states.disabled]:u},s.size[l],m),x=d||a;return(0,t.jsx)(e||"a",{className:b,disabled:u,style:h,onClick:p,"aria-disabled":u,tabIndex:u?-1:0,...w,"data-id":g,"data-qa":v,children:r?(0,t.jsxs)("span",{className:s.content,children:[x,(0,t.jsx)(i.P,{className:s.icon,children:(0,t.jsx)(o,{})})]}):x})}c.displayName="Link",e.s([],46401),e.s(["Link",0,c],34986);let u=(0,r.g)("card"),d={card:u,variants:{primary:`${u}--primary`,secondary:`${u}--secondary`}},f=({as:e,className:l,style:i,children:r,variant:o="primary",dataQa:a,dataId:s,...c})=>(0,t.jsx)(e||"div",{className:(0,n.default)(l,d.card,d.variants[o]),style:i,...c,"data-id":s,"data-qa":a,children:r});f.displayName="Card",e.s(["Card",0,f],65019)},37536,34650,44437,53760,58950,43489,2753,e=>{"use strict";let t,n,l;var i=e.i(43476),r=e.i(71645),o=e.i(7670),a=e.i(22468),s=e.i(74080);let c=300,u=({opened:e})=>{let[t,n]=(0,r.useState)(!1),l=(0,r.useRef)(null),i=(0,r.useRef)(!1);return(0,r.useEffect)(()=>(e&&!i.current?(i.current=!0,n(!0)):!e&&i.current&&(l.current=setTimeout(()=>{i.current=!1,n(!1)},c)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},d=(0,a.g)("click-outside","sc"),f=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),p=({onClose:e,onToucheMove:t,isOpen:n,delay:l=c})=>{let a=(0,r.useRef)(null),s=(0,r.useCallback)(()=>{e&&(a.current=setTimeout(()=>{e()},l))},[l,e]),u=(0,r.useCallback)(e=>{"Escape"===e.key&&s()},[s]);return(0,r.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{a.current&&clearTimeout(a.current),window.removeEventListener("keydown",u)}),[n,u]),(0,i.jsx)("div",{className:(0,o.default)(f.overlay,{[f.open]:n,[f.close]:!n}),onTouchStart:t,onClick:s})},m=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},h=(e,t)=>{t.style.removeProperty("overflow-y"),e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},v=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},g=()=>document.querySelectorAll("[data-portal]").length>1,w=e=>{let t=(0,r.useRef)(null),n=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(n.current===e)return;n.current=e;let l=t.current,i=document.body,r=document.documentElement,o=window.innerWidth-r.clientWidth;if(e&&o>0)i.style.top||(window.prevScrollPosition=window.scrollY),r.style.setProperty("overflow-y","scroll"),i.classList.toggle("scroll-disable-windows",!0),i.style.setProperty("width",`calc(100vw - ${o}px)`),i.style.setProperty("top",`-${window.prevScrollPosition}px`),m(l,!0);else if(e)i.style.setProperty("overflow","hidden"),i.style.setProperty("height","100vh"),m(l,!0);else{let e=!g();e&&h(i,r),e&&v(),m(l,!1)}return()=>{let e=!g();e&&h(i,r),e&&v()}},[e]),t},b={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},x={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},y=e=>r.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function _({className:e,style:t,boxSize:n,size:l,onClick:i}){return r.default.createElement("span",{className:e,style:{...b,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},r.default.createElement(y,{viewBox:"0 0 24 24",style:x}))}_.displayName="IconFdsCloseO";let C=(0,a.g)("drawer-footer","sc"),E=Object.freeze({footer:`${C}__footer`,hasScroll:`${C}__footer--has-scroll`}),k=({footer:e,hasScroll:t,className:n})=>(0,i.jsx)("div",{className:(0,o.default)(E.footer,{[E.hasScroll]:t},n),children:"function"==typeof e?e():e}),$=(0,a.g)("drawer-content","sc"),N=Object.freeze({container:`${$}__container`,open:`${$}--open`,close:`${$}--close`,header:`${$}__header`,rowHeader:`${$}__header--row`,title:`${$}__title`,center:`${$}__title--center`,left:`${$}__title--left`,right:`${$}__title--right`,controlContainer:`${$}__control-container`,content:`${$}__content`,footer:`${$}__footer`}),S=({onClose:e,onContentClick:t,children:n,title:l,rowTitle:a,titleAlign:s,isCloseable:c,footer:u,closeButton:d,isOpen:f,contentClassName:p,footerClassName:m,contentStyle:h,width:v})=>{let g=(0,r.useRef)(null),w=(0,r.useRef)(null),[b,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;if(!w.current||!g.current)return;let t=(null==(e=null==w?void 0:w.current)?void 0:e.getBoundingClientRect().top)||0,n=null==g?void 0:g.current,l=()=>{let e=null==w?void 0:w.current;e&&x(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",l,!1),()=>{null==n||n.removeEventListener("scroll",l,!1)}},[]);let y=h||v?{width:v,...h||{}}:void 0;return(0,i.jsxs)("div",{ref:g,style:y,className:(0,o.default)(N.container,{[N.open]:f,[N.close]:!f},p),children:[l||c?(0,i.jsxs)("div",{className:(0,o.default)(N.header,{[N.rowHeader]:a}),children:[c?d?"function"==typeof d?d():d:(0,i.jsx)("button",{type:"button",className:N.controlContainer,onClick:e,children:(0,i.jsx)(_,{size:24})}):null,l?(0,i.jsx)("h3",{className:(0,o.default)(N.title,{[N[s]]:!0}),children:l}):null]}):null,(0,i.jsx)("div",{ref:w,className:N.content,onClick:t,children:n}),u&&(0,i.jsx)(k,{className:(0,o.default)(N.footer,m),footer:u,hasScroll:b})]})},R=(0,a.g)("drawer-layout","sc"),j=Object.freeze({window:`${R}__window`}),O=({onClose:e,isOpen:t,children:n,withDisabledScroll:l,className:a,...s})=>{let c=(0,r.useCallback)(e=>e.stopPropagation(),[]);return w(t&&l),(0,i.jsxs)("div",{"data-portal":!0,className:(0,o.default)(j.window,a),children:[(0,i.jsx)(p,{onClose:e,isOpen:t,delay:0}),(0,i.jsx)(S,{onContentClick:c,onClose:e,isOpen:t,...s,children:n})]})},A=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:r=!0,...o})=>{let{mounted:a}=u({opened:e});return a?(0,i.jsx)(O,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:r,...o,children:t}):null};A.displayName="Drawer";let T={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},I={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},L=e=>r.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function z({className:e,style:t,boxSize:n,size:l,onClick:i}){return r.default.createElement("span",{className:e,style:{...T,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},r.default.createElement(L,{viewBox:"0 0 24 24",style:I}))}z.displayName="IconFdsCloseO";let P=(0,a.g)("mobile-modal-footer","sc"),M=Object.freeze({footer:`${P}__footer`,footerWithoutShadow:`${P}__footer--without-shadow`}),B=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,i.jsx)("div",{className:(0,o.default)(M.footer,t&&M.footerWithoutShadow,n),children:"function"==typeof e?e():e}),F=(0,a.g)("mobile-popup","sc"),D=Object.freeze({mobilePopup:`${F}`,mobilePopupOpen:`${F}--open`,content:`${F}__content`,contentFull:`${F}__content--full`,contentTransition:`${F}__content--transition`,contentTransitionOpen:`${F}__content--transition-open`,contentLine:`${F}__content-line`,contentContainer:`${F}__content-container`,smallContentContainer:`${F}__content-container--small`,min:`${F}__content-container--min`,title:`${F}__title`,closeContainer:`${F}__close-container`,closeButton:`${F}__close-button`}),H=({children:e,footer:t,isOpen:n,isSmallPopup:l,onClose:a,hasCloseButton:s=!0,full:c,touchDistance:u=100,withDisabledScroll:d=!0,contentClassName:f,className:m,title:h,closeButton:v,footerClassName:g})=>{let[b,x]=(0,r.useState)(!1),[y,_]=(0,r.useState)(!1),[C,E]=(0,r.useState)(!0),[k,$]=(0,r.useState)("120%"),N=(0,r.useRef)(null),S=(0,r.useRef)(0),R=(0,r.useRef)(!1),j=e=>{var t,n,l;let i=null==(t=N.current)?void 0:t.offsetTop,r=null==(n=N.current)?void 0:n.offsetHeight;if(R.current=!0,E(!1),i&&r){let t=(null==(l=null==e?void 0:e.touches[0])?void 0:l.clientY)-i,n=0;t>=0&&t<=r+30&&(n=t),t>r+30&&(n=r+30),$(`${n}px`),S.current=n}},O=()=>{R.current&&(S.current>u&&a?null==a||a():$("0"),E(!0),R.current=!1),window.removeEventListener("touchmove",j),window.removeEventListener("touchend",O)};return(0,r.useEffect)(()=>{n&&setTimeout(()=>{x(!0),_(!0),$("0")},100),!n&&y&&($("120%"),x(!1),_(!1))},[y,n]),w(n&&d),(0,i.jsxs)("div",{"data-portal":!0,className:(0,o.default)(D.mobilePopup,y&&D.mobilePopupOpen,m),children:[(0,i.jsx)(p,{onClose:()=>{n&&(null==a||a())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",j),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,i.jsxs)("div",{className:(0,o.default)(D.content,c&&D.contentFull,C&&D.contentTransition,C&&b&&D.contentTransitionOpen),ref:N,style:{transform:`translateY(${k})`},children:[(0,i.jsx)("div",{className:D.contentLine}),(0,i.jsxs)("div",{className:(0,o.default)(D.contentContainer,l&&D.smallContentContainer,{[D.min]:!h&&!s},f),children:[!!h&&(0,i.jsx)("div",{className:D.title,children:h}),s?(0,i.jsx)("div",{className:D.closeContainer,children:s?v?"function"==typeof v?v():v:(0,i.jsx)("button",{onClick:a,className:D.closeButton,children:(0,i.jsx)(z,{size:24})}):null}):null,e]}),t&&(0,i.jsx)(B,{footerClassName:g,isSmallPopup:l,footer:t})]})]})},W=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:r}=u({opened:n});return r?(0,i.jsx)(H,{isSmallPopup:t,isOpen:n,...l,children:e}):null};W.displayName="UiMobilePopup",e.s(["D",0,A,"P",0,({children:e,id:t="portal-root"})=>{let[n,l]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.getElementById(t);if(e)return void l(e);let n=document.createElement("div");return n.id=t,document.body.appendChild(n),l(n),()=>{document.body.removeChild(n)}},[t]),n?(0,s.createPortal)(e,n):null},"U",0,W,"u",0,w],37536);var U=e.i(63687);let V=(0,a.g)("header","sc"),q=Object.freeze({header:`${V}`,fixed:`${V}__fixed`,hidden:`${V}__fixed--hidden`,transparent:`${V}--transparent`,navigationOpen:`${V}__navigation-open`,container:`${V}__container`,leftRow:`${V}__left-row`,logo:`${V}__logo`,menuItems:`${V}__menu-items`,menuItemActive:`${V}__menu-item-active`,tabletMenuButton:`${V}__tablet-menu-button`,buttonGroup:`${V}__button-group`,chips:`${V}__chips`,menuButton:`${V}__menu-button`,moreButtons:`${V}__more-buttons`,auth:`${V}__auth`,whiteIcons:`${V}__white-icons`,close:`${V}__close`,removed:`${V}__removed`,overlay:`${V}__overlay`,overlayOpening:`${V}__overlay--opening`,overlayClosing:`${V}__overlay--closing`}),G="cb-header",Y=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],J=Y.reduce((e,t)=>(e[t.id]=t.label,e),{}),K=Object.freeze({mobile:56,desktop:80});e.s(["F",0,K,"H",0,G,"U",0,"user_region","a",0,J,"b",0,Y,"c",0,"user_town","s",0,q],34650);let Z="finuslugi-header-height-change",Q=(e,t,n)=>{let l=new Date;l.setTime(l.getTime()+864e5*n);let i=encodeURIComponent(JSON.stringify(t)),r=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${i};expires=${l.toUTCString()};path=/;SameSite=Lax${r}`};function X(){return"u">typeof window}function ee(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function en(e){return!!X()&&(e instanceof Node||e instanceof et(e).Node)}function el(e){return!!X()&&(e instanceof Element||e instanceof et(e).Element)}function ei(e){return!!X()&&(e instanceof HTMLElement||e instanceof et(e).HTMLElement)}function er(e){return!(!X()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof et(e).ShadowRoot)}function eo(e){return/^(html|body|#document)$/.test(ee(e))}function ea(e){return et(e).getComputedStyle(e)}function es(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ec(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&er(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function eu(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function ed(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function ef(){let e=/android/i;return e.test(eu())||e.test(ed())}function ep(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function em(e){return(null==e?void 0:e.ownerDocument)||document}function eh(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function ev(e){return"composedPath"in e?e.composedPath()[0]:e.target}function eg(e){e.preventDefault(),e.stopPropagation()}e.s(["H",0,Z,"h",0,(e,t,n)=>(0,U.h)({eventCategory:G,eventActionType:e,eventActionText:t,eventLabel:n}),"i",0,()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{let e;(e=(()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,l]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=l);return Object.keys(t).length>0?t:null})())&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&Q("utm_params",e,90),e&&Q("utm_last",e,90)}catch(e){console.error("UTM tracking error:",e)}},0)},"s",0,(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let l=document.getElementById("mainHomeBanner"),i=!1,r=0,o=0,a=window.innerWidth<768,s=()=>window.scrollY||document.documentElement.scrollTop,c=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},u=()=>{let e=window.innerWidth<768;e!==a&&(a=e,o=0)},d=function(){let a=s(),u=document.getElementById("headerNotice");if((null==u?void 0:u.getAttribute("data-opening"))==="true")return;o||(()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));o=Number.isNaN(t)?0:t,r=s()}})();let d=a<o,f=a<((null==l?void 0:l.clientHeight)||0);if(n&&f||d){i=!1,e(!1),t(!0),c(`${o}px`);return}e(i=a>r),i&&setTimeout(()=>t(!1),50),c(i?"0px":`${o}px`),r=a<=0?0:a},f=()=>{o=0,d()};return window.addEventListener("scroll",d),window.addEventListener("resize",u),window.addEventListener(Z,f),()=>{window.removeEventListener("scroll",d),window.removeEventListener("resize",u),window.removeEventListener(Z,f)}}],44437),e.i(47167);var ew='input:not([inert]):not([inert] *),select:not([inert]):not([inert] *),textarea:not([inert]):not([inert] *),a[href]:not([inert]):not([inert] *),button:not([inert]):not([inert] *),[tabindex]:not(slot):not([inert]):not([inert] *),audio[controls]:not([inert]):not([inert] *),video[controls]:not([inert]):not([inert] *),[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *),details>summary:first-of-type:not([inert]):not([inert] *),details:not([inert]):not([inert] *)',eb="u"<typeof Element,ex=eb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ey=!eb&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},e_=function(e,t){void 0===t&&(t=!0);var n,l=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===l||"true"===l||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):e_(e.parentNode))},eC=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},eE=function(e,t,n){if(e_(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(ew));return t&&ex.call(e,ew)&&l.unshift(e),l=l.filter(n)},ek=function(e,t,n){for(var l=[],i=Array.from(e);i.length;){var r=i.shift();if(!e_(r,!1))if("SLOT"===r.tagName){var o=r.assignedElements(),a=ek(o.length?o:r.children,!0,n);n.flatten?l.push.apply(l,a):l.push({scopeParent:r,candidates:a})}else{ex.call(r,ew)&&n.filter(r)&&(t||!e.includes(r))&&l.push(r);var s=r.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(r),c=!e_(s,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(s&&c){var u=ek(!0===s?r.children:s.children,!0,n);n.flatten?l.push.apply(l,u):l.push({scopeParent:r,candidates:u})}else i.unshift.apply(i,r.children)}}return l},e$=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},eN=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||eC(e))&&!e$(e)?0:e.tabIndex},eS=function(e,t){var n=eN(e);return n<0&&t&&!e$(e)?0:n},eR=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ej=function(e){return"INPUT"===e.tagName},eO=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},eA=function(e){if(!e.name)return!0;var t,n=e.form||ey(e),l=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=l(window.CSS.escape(e.name));else try{t=l(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=eO(t,e.form);return!i||i===e},eT=function(e){return ej(e)&&"radio"===e.type&&!eA(e)},eI=function(e){var t,n,l,i,r,o,a,s=e&&ey(e),c=null==(t=s)?void 0:t.host,u=!1;if(s&&s!==e)for(u=!!(null!=(n=c)&&null!=(l=n.ownerDocument)&&l.contains(c)||null!=e&&null!=(i=e.ownerDocument)&&i.contains(e));!u&&c;)u=!!(null!=(o=c=null==(r=s=ey(c))?void 0:r.host)&&null!=(a=o.ownerDocument)&&a.contains(c));return u},eL=function(e){var t=e.getBoundingClientRect(),n=t.width,l=t.height;return 0===n&&0===l},ez=function(e,t){var n=t.displayCheck,l=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=ex.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ex.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return eL(e)}else{if("function"==typeof l){for(var r=e;e;){var o=e.parentElement,a=ey(e);if(o&&!o.shadowRoot&&!0===l(o))return eL(e);e=e.assignedSlot?e.assignedSlot:o||a===e.ownerDocument?o:a.host}e=r}if(eI(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},eP=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var l=t.children.item(n);if("LEGEND"===l.tagName)return!!ex.call(t,"fieldset[disabled] *")||!l.contains(e)}return!0}t=t.parentElement}return!1},eM=function(e,t){return!(t.disabled||ej(t)&&"hidden"===t.type||ez(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||eP(t))},eB=function(e,t){return!(eT(t)||0>eN(t))&&!!eM(e,t)},eF=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},eD=function(e){var t=[],n=[];return e.forEach(function(e,l){var i=!!e.scopeParent,r=i?e.scopeParent:e,o=eS(r,i),a=i?eD(e.candidates):r;0===o?i?t.push.apply(t,a):t.push(r):n.push({documentOrder:l,tabIndex:o,item:e,isScope:i,content:a})}),n.sort(eR).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},eH=function(e,t){return eD((t=t||{}).getShadowRoot?ek([e],t.includeContainer,{filter:eB.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:eF}):eE(e,t.includeContainer,eB.bind(null,t)))},eW=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==ex.call(e,ew)&&eB(t,e)};function eU(){return"u">typeof window}function eV(e){return eY(e)?(e.nodeName||"").toLowerCase():"#document"}function eq(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eG(e){var t;return null==(t=(eY(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eY(e){return!!eU()&&(e instanceof Node||e instanceof eq(e).Node)}function eJ(e){return!!eU()&&(e instanceof Element||e instanceof eq(e).Element)}function eK(e){return!!eU()&&(e instanceof HTMLElement||e instanceof eq(e).HTMLElement)}function eZ(e){return!(!eU()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eq(e).ShadowRoot)}function eQ(e){let{overflow:t,overflowX:n,overflowY:l,display:i}=e5(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+n)&&"inline"!==i&&"contents"!==i}function eX(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let e0=/transform|translate|scale|rotate|perspective|filter/,e1=/paint|layout|strict|content/,e2=e=>!!e&&"none"!==e;function e4(e){let t=eJ(e)?e5(e):e;return e2(t.transform)||e2(t.translate)||e2(t.scale)||e2(t.rotate)||e2(t.perspective)||!e7()&&(e2(t.backdropFilter)||e2(t.filter))||e0.test(t.willChange||"")||e1.test(t.contain||"")}function e7(){return null==n&&(n="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function e3(e){return/^(html|body|#document)$/.test(eV(e))}function e5(e){return eq(e).getComputedStyle(e)}function e6(e){return eJ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e8(e){if("html"===eV(e))return e;let t=e.assignedSlot||e.parentNode||eZ(e)&&e.host||eG(e);return eZ(t)?t.host:t}function e9(e,t,n){var l;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=e8(t);return e3(n)?t.ownerDocument?t.ownerDocument.body:t.body:eK(n)&&eQ(n)?n:e(n)}(e),r=i===(null==(l=e.ownerDocument)?void 0:l.body),o=eq(i);if(!r)return t.concat(i,e9(i,[],n));{let e=te(o);return t.concat(o,o.visualViewport||[],eQ(i)?i:[],e&&n?e9(e):[])}}function te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}let tt=["top","right","bottom","left"],tn=tt.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),tl=Math.min,ti=Math.max,tr={left:"right",right:"left",bottom:"top",top:"bottom"};function to(e,t){return"function"==typeof e?e(t):e}function ta(e){return e.split("-")[0]}function ts(e){return e.split("-")[1]}function tc(e){return"x"===e?"y":"x"}function tu(e){return"y"===e?"height":"width"}function td(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function tf(e,t,n){void 0===n&&(n=!1);let l=ts(e),i=tc(td(e)),r=tu(i),o="x"===i?l===(n?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=tw(o)),[o,tw(o)]}function tp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let tm=["left","right"],th=["right","left"],tv=["top","bottom"],tg=["bottom","top"];function tw(e){let t=ta(e);return tr[t]+e.slice(t.length)}function tb(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function tx(e){let{x:t,y:n,width:l,height:i}=e;return{width:l,height:i,top:n,left:t,right:t+l,bottom:n+i,x:t,y:n}}function ty(e,t,n){let l,{reference:i,floating:r}=e,o=td(t),a=tc(td(t)),s=tu(a),c=ta(t),u="y"===o,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;switch(c){case"top":l={x:d,y:i.y-r.height};break;case"bottom":l={x:d,y:i.y+i.height};break;case"right":l={x:i.x+i.width,y:f};break;case"left":l={x:i.x-r.width,y:f};break;default:l={x:i.x,y:i.y}}switch(ts(t)){case"start":l[a]-=p*(n&&u?-1:1);break;case"end":l[a]+=p*(n&&u?-1:1)}return l}async function t_(e,t){var n;void 0===t&&(t={});let{x:l,y:i,platform:r,rects:o,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=to(t,e),m=tb(p),h=a[f?"floating"===d?"reference":"floating":d],v=tx(await r.getClippingRect({element:null==(n=await (null==r.isElement?void 0:r.isElement(h)))||n?h:h.contextElement||await (null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:l,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await (null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),b=await (null==r.isElement?void 0:r.isElement(w))&&await (null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},x=tx(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:s}):g);return{top:(v.top-x.top+m.top)/b.y,bottom:(x.bottom-v.bottom+m.bottom)/b.y,left:(v.left-x.left+m.left)/b.x,right:(x.right-v.right+m.right)/b.x}}let tC=async(e,t,n)=>{let{placement:l="bottom",strategy:i="absolute",middleware:r=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:t_},s=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ty(c,l,s),f=l,p=0,m={};for(let n=0;n<r.length;n++){let h=r[n];if(!h)continue;let{name:v,fn:g}=h,{x:w,y:b,data:x,reset:y}=await g({x:u,y:d,initialPlacement:l,placement:f,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=w?w:u,d=null!=b?b:d,m[v]={...m[v],...x},y&&p<50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=ty(c,f,s)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}};function tE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tk(e){return tt.some(t=>e[t]>=0)}function t$(e){let t=tl(...e.map(e=>e.left)),n=tl(...e.map(e=>e.top));return{x:t,y:n,width:ti(...e.map(e=>e.right))-t,height:ti(...e.map(e=>e.bottom))-n}}let tN=new Set(["left","top"]);async function tS(e,t){let{placement:n,platform:l,elements:i}=e,r=await (null==l.isRTL?void 0:l.isRTL(i.floating)),o=ta(n),a=ts(n),s="y"===td(n),c=tN.has(o)?-1:1,u=r&&s?-1:1,d=to(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}let tR=Math.min,tj=Math.max,tO=Math.round,tA=Math.floor,tT=e=>({x:e,y:e});function tI(e){let t=e5(e),n=parseFloat(t.width)||0,l=parseFloat(t.height)||0,i=eK(e),r=i?e.offsetWidth:n,o=i?e.offsetHeight:l,a=tO(n)!==r||tO(l)!==o;return a&&(n=r,l=o),{width:n,height:l,$:a}}function tL(e){return eJ(e)?e:e.contextElement}function tz(e){let t=tL(e);if(!eK(t))return tT(1);let n=t.getBoundingClientRect(),{width:l,height:i,$:r}=tI(t),o=(r?tO(n.width):n.width)/l,a=(r?tO(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let tP=tT(0);function tM(e){let t=eq(e);return e7()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tP}function tB(e,t,n,l){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),o=tL(e),a=tT(1);t&&(l?eJ(l)&&(a=tz(l)):a=tz(e));let s=(void 0===(i=n)&&(i=!1),l&&(!i||l===eq(o))&&i)?tM(o):tT(0),c=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(o){let e=eq(o),t=l&&eJ(l)?eq(l):l,n=e,i=te(n);for(;i&&l&&t!==n;){let e=tz(i),t=i.getBoundingClientRect(),l=e5(i),r=t.left+(i.clientLeft+parseFloat(l.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(l.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=r,u+=o,i=te(n=eq(i))}}return tx({width:d,height:f,x:c,y:u})}function tF(e,t){let n=e6(e).scrollLeft;return t?t.left+n:tB(eG(e)).left+n}function tD(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tF(e,n),y:n.top+t.scrollTop}}function tH(e,t,n){var l;let i;if("viewport"===t)i=function(e,t){let n=eq(e),l=eG(e),i=n.visualViewport,r=l.clientWidth,o=l.clientHeight,a=0,s=0;if(i){r=i.width,o=i.height;let e=e7();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let c=tF(l);if(c<=0){let e=l.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(l.clientWidth-t.clientWidth-i);o<=25&&(r-=o)}else c<=25&&(r+=c);return{width:r,height:o,x:a,y:s}}(e,n);else if("document"===t){let t,n,r,o,a,s,c;l=eG(e),t=eG(l),n=e6(l),r=l.ownerDocument.body,o=tj(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=tj(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+tF(l),c=-n.scrollTop,"rtl"===e5(r).direction&&(s+=tj(t.clientWidth,r.clientWidth)-o),i={width:o,height:a,x:s,y:c}}else if(eJ(t)){let e,l,r,o,a,s;l=(e=tB(t,!0,"fixed"===n)).top+t.clientTop,r=e.left+t.clientLeft,o=eK(t)?tz(t):tT(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,i={width:a,height:s,x:r*o.x,y:l*o.y}}else{let n=tM(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tx(i)}function tW(e){return"static"===e5(e).position}function tU(e,t){if(!eK(e)||"fixed"===e5(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eG(e)===n&&(n=n.ownerDocument.body),n}function tV(e,t){var n;let l=eq(e);if(eX(e))return l;if(!eK(e)){let t=e8(e);for(;t&&!e3(t);){if(eJ(t)&&!tW(t))return t;t=e8(t)}return l}let i=tU(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(eV(n)))&&tW(i);)i=tU(i,t);return i&&e3(i)&&tW(i)&&!e4(i)?l:i||function(e){let t=e8(e);for(;eK(t)&&!e3(t);){if(e4(t))return t;if(eX(t))break;t=e8(t)}return null}(e)||l}let tq=async function(e){let t=this.getOffsetParent||tV,n=this.getDimensions,l=await n(e.floating);return{reference:function(e,t,n){let l=eK(t),i=eG(t),r="fixed"===n,o=tB(e,!0,r,t),a={scrollLeft:0,scrollTop:0},s=tT(0);if(l||!l&&!r)if(("body"!==eV(t)||eQ(i))&&(a=e6(t)),l){let e=tB(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tF(i));r&&!l&&i&&(s.x=tF(i));let c=!i||l||r?tT(0):tD(i,a);return{x:o.left+a.scrollLeft-s.x-c.x,y:o.top+a.scrollTop-s.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},tG={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:l,strategy:i}=e,r="fixed"===i,o=eG(l),a=!!t&&eX(t.floating);if(l===o||a&&r)return n;let s={scrollLeft:0,scrollTop:0},c=tT(1),u=tT(0),d=eK(l);if((d||!d&&!r)&&(("body"!==eV(l)||eQ(o))&&(s=e6(l)),d)){let e=tB(l);c=tz(l),u.x=e.x+l.clientLeft,u.y=e.y+l.clientTop}let f=!o||d||r?tT(0):tD(o,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:eG,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:l,strategy:i}=e,r=[..."clippingAncestors"===n?eX(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let l=e9(e,[],!1).filter(e=>eJ(e)&&"body"!==eV(e)),i=null,r="fixed"===e5(e).position,o=r?e8(e):e;for(;eJ(o)&&!e3(o);){let t=e5(o),n=e4(o);n||"fixed"!==t.position||(i=null),(r?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||eQ(o)&&!n&&function e(t,n){let l=e8(t);return!(l===n||!eJ(l)||e3(l))&&("fixed"===e5(l).position||e(l,n))}(e,o)))?i=t:l=l.filter(e=>e!==o),o=e8(o)}return t.set(e,l),l}(t,this._c):[].concat(n),l],o=tH(t,r[0],i),a=o.top,s=o.right,c=o.bottom,u=o.left;for(let e=1;e<r.length;e++){let n=tH(t,r[e],i);a=tj(n.top,a),s=tR(n.right,s),c=tR(n.bottom,c),u=tj(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:tV,getElementRects:tq,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=tI(e);return{width:t,height:n}},getScale:tz,isElement:eJ,isRTL:function(e){return"rtl"===e5(e).direction}};function tY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tJ=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,l;let{x:i,y:r,placement:o,middlewareData:a}=t,s=await tS(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(l=a.arrow)&&l.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:o}}}}},tK=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:l,placement:i,platform:r}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=to(e,t),u={x:n,y:l},d=await r.detectOverflow(t,c),f=td(ta(i)),p=tc(f),m=u[p],h=u[f];if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+d[e],l=m-d[t];m=ti(n,tl(m,l))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+d[e],l=h-d[t];h=ti(n,tl(h,l))}let v=s.fn({...t,[p]:m,[f]:h});return{...v,data:{x:v.x-n,y:v.y-l,enabled:{[p]:o,[f]:a}}}}}},tZ=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,l,i,r,o;let a,s,c,{placement:u,middlewareData:d,rects:f,initialPlacement:p,platform:m,elements:h}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,..._}=to(e,t);if(null!=(n=d.arrow)&&n.alignmentOffset)return{};let C=ta(u),E=td(p),k=ta(p)===p,$=await (null==m.isRTL?void 0:m.isRTL(h.floating)),N=w||(k||!y?[tw(p)]:(a=tw(p),[tp(p),a,tp(a)])),S="none"!==x;!w&&S&&N.push(...(s=ts(p),c=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?th:tm;return t?tm:th;case"left":case"right":return t?tv:tg;default:return[]}}(ta(p),"start"===x,$),s&&(c=c.map(e=>e+"-"+s),y&&(c=c.concat(c.map(tp)))),c));let R=[p,...N],j=await m.detectOverflow(t,_),O=[],A=(null==(l=d.flip)?void 0:l.overflows)||[];if(v&&O.push(j[C]),g){let e=tf(u,f,$);O.push(j[e[0]],j[e[1]])}if(A=[...A,{placement:u,overflows:O}],!O.every(e=>e<=0)){let e=((null==(i=d.flip)?void 0:i.index)||0)+1,t=R[e];if(t&&("alignment"!==g||E===td(t)||A.every(e=>td(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(r=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:r.placement;if(!n)switch(b){case"bestFit":{let e=null==(o=A.filter(e=>{if(S){let t=td(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=p}if(u!==n)return{reset:{placement:n}}}return{}}}},tQ=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:l}=t,{strategy:i="referenceHidden",...r}=to(e,t);switch(i){case"referenceHidden":{let e=tE(await l.detectOverflow(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:tk(e)}}}case"escaped":{let e=tE(await l.detectOverflow(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:tk(e)}}}default:return{}}}}},tX=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:l,placement:i,rects:r,platform:o,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=to(e,t)||{};if(null==c)return{};let d=tb(u),f={x:n,y:l},p=tc(td(i)),m=tu(p),h=await o.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",w=r.reference[m]+r.reference[p]-f[p]-r.floating[m],b=f[p]-r.reference[p],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),y=x?x[g]:0;y&&await (null==o.isElement?void 0:o.isElement(x))||(y=a.floating[g]||r.floating[m]);let _=y/2-h[m]/2-1,C=tl(d[v?"top":"left"],_),E=tl(d[v?"bottom":"right"],_),k=y-h[m]-E,$=y/2-h[m]/2+(w/2-b/2),N=ti(C,tl($,k)),S=!s.arrow&&null!=ts(i)&&$!==N&&r.reference[m]/2-($<C?C:E)-h[m]/2<0,R=S?$<C?$-C:$-k:0;return{[p]:f[p]+R,data:{[p]:N,centerOffset:$-N-R,...S&&{alignmentOffset:R}},reset:S}}}),t0=(e,t,n)=>{let l=new Map,i={platform:tG,...n},r={...i.platform,_c:l};return tC(e,t,{...i,platform:r})};e.s(["arrow",0,tX,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,l,i,r;let{rects:o,middlewareData:a,placement:s,platform:c,elements:u}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:p=tn,autoAlignment:m=!0,...h}=to(e,t),v=void 0!==f||p===tn?((r=f||null)?[...p.filter(e=>ts(e)===r),...p.filter(e=>ts(e)!==r)]:p.filter(e=>ta(e)===e)).filter(e=>!r||ts(e)===r||!!m&&tp(e)!==e):p,g=await c.detectOverflow(t,h),w=(null==(n=a.autoPlacement)?void 0:n.index)||0,b=v[w];if(null==b)return{};let x=tf(b,o,await (null==c.isRTL?void 0:c.isRTL(u.floating)));if(s!==b)return{reset:{placement:v[0]}};let y=[g[ta(b)],g[x[0]],g[x[1]]],_=[...(null==(l=a.autoPlacement)?void 0:l.overflows)||[],{placement:b,overflows:y}],C=v[w+1];if(C)return{data:{index:w+1,overflows:_},reset:{placement:C}};let E=_.map(e=>{let t=ts(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),k=(null==(i=E.filter(e=>e[2].slice(0,ts(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||E[0][0];return k!==s?{data:{index:w+1,overflows:_},reset:{placement:k}}:{}}}},"autoUpdate",0,function(e,t,n,l){let i;void 0===l&&(l={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=l,u=tL(e),d=r||o?[...u?e9(u):[],...t?e9(t):[]]:[];d.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=u&&s?function(e,t){let n,l=null,i=eG(e);function r(){var e;clearTimeout(n),null==(e=l)||e.disconnect(),l=null}return!function o(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),r();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let m={rootMargin:-tA(d)+"px "+-tA(i.clientWidth-(u+f))+"px "+-tA(i.clientHeight-(d+p))+"px "+-tA(u)+"px",threshold:tj(0,tR(1,s))||1},h=!0;function v(t){let l=t[0].intersectionRatio;if(l!==s){if(!h)return o();l?o(!1,l):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==l||tY(c,e.getBoundingClientRect())||o(),h=!1}try{l=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch(e){l=new IntersectionObserver(v,m)}l.observe(e)}(!0),r}(u,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[l]=e;l&&l.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),u&&!c&&m.observe(u),t&&m.observe(t));let h=c?tB(e):null;return c&&function t(){let l=tB(e);h&&!tY(h,l)&&n(),h=l,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(i)}},"computePosition",0,t0,"detectOverflow",0,t_,"flip",0,tZ,"hide",0,tQ,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:l,rects:i,platform:r,strategy:o}=t,{padding:a=2,x:s,y:c}=to(e,t),u=Array.from(await (null==r.getClientRects?void 0:r.getClientRects(l.reference))||[]),d=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],l=null;for(let e=0;e<t.length;e++){let i=t[e];!l||i.y-l.y>l.height/2?n.push([i]):n[n.length-1].push(i),l=i}return n.map(e=>tx(t$(e)))}(u),f=tx(t$(u)),p=tb(a),m=await r.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=c)return d.find(e=>s>e.left-p.left&&s<e.right+p.right&&c>e.top-p.top&&c<e.bottom+p.bottom)||f;if(d.length>=2){if("y"===td(n)){let e=d[0],t=d[d.length-1],l="top"===ta(n),i=e.top,r=t.bottom,o=l?e.left:t.left,a=l?e.right:t.right;return{top:i,bottom:r,left:o,right:a,width:a-o,height:r-i,x:o,y:i}}let e="left"===ta(n),t=ti(...d.map(e=>e.right)),l=tl(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===l:n.right===t),r=i[0].top,o=i[i.length-1].bottom;return{top:r,bottom:o,left:l,right:t,width:t-l,height:o-r,x:l,y:r}}return f}},floating:l.floating,strategy:o});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},"limitShift",0,function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:l,placement:i,rects:r,middlewareData:o}=t,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=to(e,t),u={x:n,y:l},d=td(i),f=tc(d),p=u[f],m=u[d],h=to(a,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=r.reference[f]-r.floating[e]+v.mainAxis,n=r.reference[f]+r.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,w;let e="y"===f?"width":"height",t=tN.has(ta(i)),n=r.reference[d]-r.floating[e]+(t&&(null==(g=o.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),l=r.reference[d]+r.reference[e]+(t?0:(null==(w=o.offset)?void 0:w[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>l&&(m=l)}return{[f]:p,[d]:m}}}},"offset",0,tJ,"shift",0,tK,"size",0,function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,l;let i,r,{placement:o,rects:a,platform:s,elements:c}=t,{apply:u=()=>{},...d}=to(e,t),f=await s.detectOverflow(t,d),p=ta(o),m=ts(o),h="y"===td(o),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(i=p,r=m===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(r=p,i="end"===m?"top":"bottom");let w=g-f.top-f.bottom,b=v-f.left-f.right,x=tl(g-f[i],w),y=tl(v-f[r],b),_=!t.middlewareData.shift,C=x,E=y;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(l=t.middlewareData.shift)&&l.enabled.y&&(C=w),_&&!m){let e=ti(f.left,0),t=ti(f.right,0),n=ti(f.top,0),l=ti(f.bottom,0);h?E=v-2*(0!==e||0!==t?e+t:ti(f.left,f.right)):C=g-2*(0!==n||0!==l?n+l:ti(f.top,f.bottom))}await u({...t,availableWidth:E,availableHeight:C});let k=await s.getDimensions(c.floating);return v!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}}],53760);var t1="u">typeof document?r.useLayoutEffect:function(){};function t2(e,t){let n,l,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(l=n;0!=l--;)if(!t2(e[l],t[l]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!({}).hasOwnProperty.call(t,i[l]))return!1;for(l=n;0!=l--;){let n=i[l];if(("_owner"!==n||!e.$$typeof)&&!t2(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function t4(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function t7(e,t){let n=t4(e);return Math.round(t*n)/n}function t3(e){let t=r.useRef(e);return t1(()=>{t.current=e}),t}function t5(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:l=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=r.useState(l);t2(m,l)||h(l);let[v,g]=r.useState(null),[w,b]=r.useState(null),x=r.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),y=r.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),_=o||v,C=a||w,E=r.useRef(null),k=r.useRef(null),$=r.useRef(f),N=null!=u,S=t3(u),R=t3(i),j=t3(d),O=r.useCallback(()=>{if(!E.current||!k.current)return;let e={placement:t,strategy:n,middleware:m};R.current&&(e.platform=R.current),t0(E.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};A.current&&!t2($.current,t)&&($.current=t,s.flushSync(()=>{p(t)}))})},[m,t,n,R,j]);t1(()=>{!1===d&&$.current.isPositioned&&($.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let A=r.useRef(!1);t1(()=>(A.current=!0,()=>{A.current=!1}),[]),t1(()=>{if(_&&(E.current=_),C&&(k.current=C),_&&C){if(S.current)return S.current(_,C,O);O()}},[_,C,O,S,N]);let T=r.useMemo(()=>({reference:E,floating:k,setReference:x,setFloating:y}),[x,y]),I=r.useMemo(()=>({reference:_,floating:C}),[_,C]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=t7(I.floating,f.x),l=t7(I.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+l+"px)",...t4(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:l}},[n,c,I.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:O,refs:T,elements:I,floatingStyles:L}),[f,O,T,I,L])}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:l}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tX({element:n.current,padding:l}).fn(t):{}:n?tX({element:n,padding:l}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=tZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=tQ(e);return{name:n.name,fn:n.fn,options:[e,t]}},"offset",0,(e,t)=>{let n=tJ(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=tK(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,t5],58950);let t6={...r},t8=t6.useInsertionEffect||(e=>e());function t9(e){let t=r.useRef(()=>{});return t8(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return null==t.current?void 0:t.current(...n)},[])}var ne="u">typeof document?r.useLayoutEffect:r.useEffect;function nt(){return(nt=Object.assign.bind()).apply(this,arguments)}let nn=!1,nl=0,ni=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+nl++,nr=t6.useId||function(){let[e,t]=r.useState(()=>nn?ni():void 0);return ne(()=>{null==e&&t(ni())},[]),r.useEffect(()=>{nn=!0},[]),e},no=r.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:l},middlewareData:{arrow:i,shift:o}},width:a=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:p,style:{transform:m,...h}={},...v}=e,g=nr(),[w,b]=r.useState(!1);if(ne(()=>{l&&"rtl"===ea(l).direction&&b(!0)},[l]),!l)return null;let[x,y]=n.split("-"),_="top"===x||"bottom"===x,C=d;(_&&null!=o&&o.x||!_&&null!=o&&o.y)&&(C=null);let E=2*u,k=E/2,$=a/2*(-(c/8)+1),N=s/2*c/4,S=!!p,R=C&&"end"===y?"bottom":"top",j=C&&"end"===y?"right":"left";C&&w&&(j="end"===y?"left":"right");let O=(null==i?void 0:i.x)!=null?C||i.x:"",A=(null==i?void 0:i.y)!=null?C||i.y:"",T=p||"M0,0 H"+a+(" L"+(a-$))+","+(s-N)+(" Q"+a/2+","+s+" "+$)+","+(s-N)+" Z",I={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[x];return r.createElement("svg",nt({},v,{"aria-hidden":!0,ref:t,width:S?a:a+E,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[j]:O,[R]:A,[x]:_||S?"100%":"calc(100% - "+E/2+"px)",transform:[I,m].filter(e=>!!e).join(" "),...h}}),E>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:f,strokeWidth:E+ +!p,d:T}),r.createElement("path",{stroke:E&&!p?v.fill:"none",d:T}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-k,y:k*(S?-1:1),width:a+E,height:a})))}),na=r.createContext(null),ns=r.createContext(null),nc=()=>{var e;return(null==(e=r.useContext(na))?void 0:e.id)||null};function nu(e){return"data-floating-ui-"+e}function nd(e){let t=(0,r.useRef)(e);return ne(()=>{t.current=e}),t}let nf=nu("safe-polygon");function np(e,t,n){return n&&!ep(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let nm=0;function nh(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:l=!0,sync:i=!1}=t;l&&cancelAnimationFrame(nm);let r=()=>null==e?void 0:e.focus({preventScroll:n});i?r():nm=requestAnimationFrame(r)}function nv(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),l=n;for(;l.length;)l=e.filter(e=>{var t;return null==(t=l)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(l);return n}let ng=new WeakMap,nw=new WeakSet,nb={},nx=0,ny=e=>e&&(e.host||ny(e.parentNode));function n_(e,t,n){var l,i;let r,o,a,s,c,u,d;void 0===t&&(t=!1),void 0===n&&(n=!1);let f=em(e[0]).body;return l=e.concat(Array.from(f.querySelectorAll("[aria-live]"))),i=t,r="data-floating-ui-inert",o=n?"inert":i?"aria-hidden":null,a=l.map(e=>{if(f.contains(e))return e;let t=ny(e);return f.contains(t)?t:null}).filter(e=>null!=e),s=new Set,c=new Set(a),u=[],nb[r]||(nb[r]=new WeakMap),d=nb[r],a.forEach(function e(t){!(!t||s.has(t))&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||c.has(t)||[].forEach.call(t.children,t=>{if("script"!==ee(t))if(s.has(t))e(t);else{let e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,l=(ng.get(t)||0)+1,i=(d.get(t)||0)+1;ng.set(t,l),d.set(t,i),u.push(t),1===l&&n&&nw.add(t),1===i&&t.setAttribute(r,""),!n&&o&&t.setAttribute(o,"true")}})}(f),s.clear(),nx++,()=>{u.forEach(e=>{let t=(ng.get(e)||0)-1,n=(d.get(e)||0)-1;ng.set(e,t),d.set(e,n),t||(!nw.has(e)&&o&&e.removeAttribute(o),nw.delete(e)),n||e.removeAttribute(r)}),--nx||(ng=new WeakMap,ng=new WeakMap,nw=new WeakSet,nb={})}}let nC=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nE(e,t){let n=eH(e,nC());"prev"===t&&n.reverse();let l=n.indexOf(es(em(e)));return n.slice(l+1)[0]}function nk(){return nE(document.body,"next")}function n$(){return nE(document.body,"prev")}function nN(e,t){let n=t||e.currentTarget,l=e.relatedTarget;return!l||!ec(n,l)}function nS(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}let nR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function nj(e){"Tab"===e.key&&(e.target,clearTimeout(l))}let nO=r.forwardRef(function(e,t){let[n,l]=r.useState();ne(()=>(/apple/i.test(navigator.vendor)&&l("button"),document.addEventListener("keydown",nj),()=>{document.removeEventListener("keydown",nj)}),[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[nu("focus-guard")]:"",style:nR};return r.createElement("span",nt({},e,i))}),nA=r.createContext(null),nT=nu("portal"),nI="data-floating-ui-focusable",nL=[];function nz(e){nL=nL.filter(e=>e.isConnected);let t=e;if(t&&"body"!==ee(t)){if(!eW(t,nC())){let e=eH(t,nC())[0];e&&(t=e)}nL.push(t),nL.length>20&&(nL=nL.slice(-20))}}function nP(){return nL.slice().reverse().find(e=>e.isConnected)}let nM=r.forwardRef(function(e,t){return r.createElement("button",nt({},e,{type:"button",ref:t,tabIndex:-1,style:nR}))}),nB=0,nF=()=>{},nD=r.forwardRef(function(e,t){let{lockScroll:n=!1,...l}=e;return ne(()=>{if(n)return 1==++nB&&(nF=function(){let e=/iP(hone|ad|od)|iOS/.test(eu()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",l=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,r=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",l&&(t[n]=l+"px"),e){var o,a;let e=(null==(o=window.visualViewport)?void 0:o.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(r-Math.floor((null==(a=window.visualViewport)?void 0:a.offsetTop)||0))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,r))}}()),()=>{0==--nB&&nF()}},[n]),r.createElement("div",nt({ref:t},l,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...l.style}}))}),nH={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nW={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nU=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}},nV="active",nq="selected";function nG(e,t,n){let l=new Map,i="item"===n,r=e;if(i&&e){let{[nV]:t,[nq]:n,...l}=e;r=l}return{..."floating"===n&&{tabIndex:-1,[nI]:""},...r,...t.map(t=>{let l=t?t[n]:null;return"function"==typeof l?e?l(e):null:l}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,r]=t;if(!(i&&[nV,nq].includes(n)))if(0===n.indexOf("on")){if(l.has(n)||l.set(n,[]),"function"==typeof r){var o;null==(o=l.get(n))||o.push(r),e[n]=function(){for(var e,t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return null==(e=l.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)}}}else e[n]=r}),e),{})}}let nY=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),nJ=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function nK(e,t){return"function"==typeof e?e(t):e}e.s(["FloatingArrow",0,no,"FloatingFocusManager",0,function(e){var t,n;let{context:l,children:i,disabled:o=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:m=!0}=e,{open:h,refs:v,nodeId:g,onOpenChange:w,events:b,dataRef:x,floatingId:y,elements:{domReference:_,floating:C}}=l,E="number"==typeof c&&c<0,k=!!(t=_)&&"combobox"===t.getAttribute("role")&&ei(n=t)&&n.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")&&E,$=!("u">typeof HTMLElement&&"inert"in HTMLElement.prototype)||s,N=nd(a),S=nd(c),R=nd(u),j=r.useContext(ns),O=r.useContext(nA),A=r.useRef(null),T=r.useRef(null),I=r.useRef(!1),L=r.useRef(!1),z=r.useRef(-1),P=null!=O,M=C?C.hasAttribute(nI)?C:C.querySelector("["+nI+"]")||C:null,B=t9(function(e){return void 0===e&&(e=M),e?eH(e,nC()):[]}),F=t9(e=>{let t=B(e);return N.current.map(e=>_&&"reference"===e?_:M&&"floating"===e?M:t).filter(Boolean).flat()});function D(e){return!o&&p&&f?r.createElement(nM,{ref:"start"===e?A:T,onClick:e=>w(!1,e.nativeEvent)},"string"==typeof p?p:"Dismiss"):null}r.useEffect(()=>{if(o||!f)return;function e(e){if("Tab"===e.key){ec(M,es(em(M)))&&0===B().length&&!k&&eg(e);let t=F(),n=ev(e);"reference"===N.current[0]&&n===_&&(eg(e),e.shiftKey?nh(t[t.length-1]):nh(t[1])),"floating"===N.current[1]&&n===M&&e.shiftKey&&(eg(e),nh(t[0]))}}let t=em(M);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[o,_,M,f,N,k,B,F]),r.useEffect(()=>{if(!o&&C)return C.addEventListener("focusin",e),()=>{C.removeEventListener("focusin",e)};function e(e){let t=ev(e),n=B().indexOf(t);-1!==n&&(z.current=n)}},[o,C,B]),r.useEffect(()=>{if(!o&&m&&C&&ei(_))return _.addEventListener("focusout",t),_.addEventListener("pointerdown",e),C.addEventListener("focusout",t),()=>{_.removeEventListener("focusout",t),_.removeEventListener("pointerdown",e),C.removeEventListener("focusout",t)};function e(){L.current=!0,setTimeout(()=>{L.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(ec(_,t)||ec(C,t)||ec(t,C)||ec(null==O?void 0:O.portalNode,t)||null!=t&&t.hasAttribute(nu("focus-guard"))||j&&(nv(j.nodesRef.current,g).find(e=>{var n,l;return ec(null==(n=e.context)?void 0:n.elements.floating,t)||ec(null==(l=e.context)?void 0:l.elements.domReference,t)})||(function(e,t){var n;let l=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){let t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(l=l.concat(t))}return l})(j.nodesRef.current,g).find(e=>{var n,l;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(l=e.context)?void 0:l.elements.domReference)===t})));if(d&&n&&es(em(M))===em(M).body){ei(M)&&M.focus();let e=z.current,t=B(),n=t[e]||t[t.length-1]||M;ei(n)&&n.focus()}(k||!f)&&t&&n&&!L.current&&t!==nP()&&(I.current=!0,w(!1,e,"focus-out"))})}},[o,_,C,M,f,g,j,O,w,m,d,B,k]),r.useEffect(()=>{var e;if(o)return;let t=Array.from((null==O||null==(e=O.portalNode)?void 0:e.querySelectorAll("["+nu("portal")+"]"))||[]);if(C){let e=[C,...t,A.current,T.current,N.current.includes("reference")||k?_:null].filter(e=>null!=e),n=f||k?n_(e,$,!$):n_(e);return()=>{n()}}},[o,_,C,f,N,O,k,$]),ne(()=>{if(o||!ei(M))return;let e=es(em(M));queueMicrotask(()=>{let t=F(M),n=S.current,l=("number"==typeof n?t[n]:n.current)||M,i=ec(M,e);E||i||!h||nh(l,{preventScroll:l===M})})},[o,h,M,E,F,S]),ne(()=>{if(o||!M)return;let e=!1,t=em(M),n=es(t),l=x.current.openEvent;function i(t){let{open:n,reason:i,event:r,nested:o}=t;if(n&&(l=r),"escape-key"===i&&v.domReference.current&&nz(v.domReference.current),"hover"===i&&"mouseleave"===r.type&&(I.current=!0),"outside-press"===i)if(o)I.current=!1,e=!0;else I.current=!(0===r.mozInputSource&&r.isTrusted||(ef()&&r.pointerType?"click"===r.type&&1===r.buttons:0===r.detail&&!r.pointerType)||!ed().includes("jsdom/")&&(!ef()&&0===r.width&&0===r.height||ef()&&1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType||r.width<1&&r.height<1&&0===r.pressure&&0===r.detail&&"touch"===r.pointerType))}nz(n),b.on("openchange",i);let r=t.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,nR),P&&_&&_.insertAdjacentElement("afterend",r),()=>{b.off("openchange",i);let n=es(t),o=ec(C,n)||j&&nv(j.nodesRef.current,g).some(e=>{var t;return ec(null==(t=e.context)?void 0:t.elements.floating,n)});(o||l&&["click","mousedown"].includes(l.type))&&v.domReference.current&&nz(v.domReference.current);let a="boolean"==typeof R.current?nP()||r:R.current.current||r;queueMicrotask(()=>{R.current&&!I.current&&ei(a)&&(a===n||n===t.body||o)&&a.focus({preventScroll:e}),r.remove()})}},[o,C,M,R,x,v,b,j,g,P,_]),r.useEffect(()=>{queueMicrotask(()=>{I.current=!1})},[o]),ne(()=>{if(!o&&O)return O.setFocusManagerState({modal:f,closeOnFocusOut:m,open:h,onOpenChange:w,refs:v}),()=>{O.setFocusManagerState(null)}},[o,O,f,h,w,v,m]),ne(()=>{if(o||!M||"function"!=typeof MutationObserver||E)return;let e=()=>{let e=M.getAttribute("tabindex"),t=B(),n=es(em(C)),l=t.indexOf(n);-1!==l&&(z.current=l),N.current.includes("floating")||n!==v.domReference.current&&0===t.length?"0"!==e&&M.setAttribute("tabindex","0"):"-1"!==e&&M.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(M,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[o,C,M,v,N,B,E]);let H=!o&&$&&(!f||!k)&&(P||f);return r.createElement(r.Fragment,null,H&&r.createElement(nO,{"data-type":"inside",ref:null==O?void 0:O.beforeInsideRef,onFocus:e=>{if(f){let e=F();nh("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(I.current=!1,nN(e,O.portalNode)){let e=nk()||_;null==e||e.focus()}else{var t;null==(t=O.beforeOutsideRef.current)||t.focus()}}}),!k&&D("start"),i,D("end"),H&&r.createElement(nO,{"data-type":"inside",ref:null==O?void 0:O.afterInsideRef,onFocus:e=>{if(f)nh(F()[0]);else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(m&&(I.current=!0),nN(e,O.portalNode)){let e=n$()||_;null==e||e.focus()}else{var t;null==(t=O.afterOutsideRef.current)||t.focus()}}}))},"FloatingOverlay",0,nD,"FloatingPortal",0,function(e){let{children:t,id:n,root:l,preserveTabOrder:i=!0}=e,o=function(e){void 0===e&&(e={});let{id:t,root:n}=e,l=nr(),i=r.useContext(nA),[o,a]=r.useState(null),s=r.useRef(null);return ne(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),ne(()=>{if(!l||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=l,n.setAttribute(nT,""),e.appendChild(n),s.current=n,a(n)},[t,l]),ne(()=>{if(null===n||!l||s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!el(e)&&(e=e.current),e=e||document.body;let r=null;t&&((r=document.createElement("div")).id=t,e.appendChild(r));let o=document.createElement("div");o.id=l,o.setAttribute(nT,""),(e=r||e).appendChild(o),s.current=o,a(o)},[t,n,l,i]),o}({id:n,root:l}),[a,c]=r.useState(null),u=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),m=null==a?void 0:a.modal,h=null==a?void 0:a.open,v=!!a&&!a.modal&&a.open&&i&&!!(l||o);return r.useEffect(()=>{if(o&&i&&!m)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&nN(e)&&("focusin"===e.type?nS:function(e){eH(e,nC()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(o)}},[o,i,m]),r.useEffect(()=>{!o||h||nS(o)},[h,o]),r.createElement(nA.Provider,{value:r.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:o,setFocusManagerState:c}),[i,o])},v&&o&&r.createElement(nO,{"data-type":"outside",ref:u,onFocus:e=>{if(nN(e,o)){var t;null==(t=f.current)||t.focus()}else{let e=n$()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),v&&o&&r.createElement("span",{"aria-owns":o.id,style:nR}),o&&s.createPortal(t,o),v&&o&&r.createElement(nO,{"data-type":"outside",ref:d,onFocus:e=>{if(nN(e,o)){var t;null==(t=p.current)||t.focus()}else{let t=nk()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))},"useDismiss",0,function(e,n){void 0===n&&(n={});let{open:l,onOpenChange:i,elements:o,dataRef:a}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:h,capture:v}=n,g=r.useContext(ns),w=t9("function"==typeof u?u:()=>!1),b="function"==typeof u?w:u,x=r.useRef(!1),y=r.useRef(!1),{escapeKey:_,outsidePress:C}=nU(h),{escapeKey:E,outsidePress:k}=nU(v),$=r.useRef(!1),N=t9(e=>{var t;if(!l||!s||!c||"Escape"!==e.key||$.current)return;let n=null==(t=a.current.floatingContext)?void 0:t.nodeId,r=g?nv(g.nodesRef.current,n):[];if(!_&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}i(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),S=t9(e=>{var t;let n=()=>{var t;N(e),null==(t=ev(e))||t.removeEventListener("keydown",n)};null==(t=ev(e))||t.addEventListener("keydown",n)}),R=t9(e=>{var t;let n=x.current;x.current=!1;let l=y.current;if(y.current=!1,"click"===d&&l||n||"function"==typeof b&&!b(e))return;let r=ev(e),s="["+nu("inert")+"]",c=em(o.floating).querySelectorAll(s),u=el(r)?r:null;for(;u&&!eo(u);){let e=function(e){var t;if("html"===ee(e))return e;let n=e.assignedSlot||e.parentNode||er(e)&&e.host||(null==(t=(en(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement);return er(n)?n.host:n}(u);if(eo(e)||!el(e))break;u=e}if(c.length&&el(r)&&!r.matches("html,body")&&!ec(r,o.floating)&&Array.from(c).every(e=>!ec(u,e)))return;if(ei(r)&&A){let t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n&&e.offsetX>r.clientWidth;if(n&&"rtl"===ea(r).direction&&(l=e.offsetX<=r.offsetWidth-r.clientWidth),l||t&&e.offsetY>r.clientHeight)return}let f=null==(t=a.current.floatingContext)?void 0:t.nodeId,p=g&&nv(g.nodesRef.current,f).some(t=>{var n;return eh(e,null==(n=t.context)?void 0:n.elements.floating)});if(eh(e,o.floating)||eh(e,o.domReference)||p)return;let m=g?nv(g.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}i(!1,e,"outside-press")}),j=t9(e=>{var t;let n=()=>{var t;R(e),null==(t=ev(e))||t.removeEventListener(d,n)};null==(t=ev(e))||t.addEventListener(d,n)});r.useEffect(()=>{if(!l||!s)return;a.current.__escapeKeyBubbles=_,a.current.__outsidePressBubbles=C;let e=-1;function n(e){i(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),$.current=!0}function u(){e=window.setTimeout(()=>{$.current=!1},5*(null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!!t))}let f=em(o.floating);c&&(f.addEventListener("keydown",E?S:N,E),f.addEventListener("compositionstart",r),f.addEventListener("compositionend",u)),b&&f.addEventListener(d,k?j:R,k);let p=[];return m&&(el(o.domReference)&&(p=e9(o.domReference)),el(o.floating)&&(p=p.concat(e9(o.floating))),!el(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(e9(o.reference.contextElement)))),(p=p.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",n,{passive:!0})}),()=>{c&&(f.removeEventListener("keydown",E?S:N,E),f.removeEventListener("compositionstart",r),f.removeEventListener("compositionend",u)),b&&f.removeEventListener(d,k?j:R,k),p.forEach(e=>{e.removeEventListener("scroll",n)}),window.clearTimeout(e)}},[a,o,c,b,d,l,i,m,s,_,C,N,E,S,R,k,j]),r.useEffect(()=>{x.current=!1},[b,d]);let O=r.useMemo(()=>({onKeyDown:N,[nH[p]]:e=>{f&&i(!1,e.nativeEvent,"reference-press")}}),[N,i,f,p]),A=r.useMemo(()=>({onKeyDown:N,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[nW[d]]:()=>{x.current=!0}}),[N,d]);return r.useMemo(()=>s?{reference:O,floating:A}:{},[s,O,A])},"useFloating",0,function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:l}=e,i=nr(),o=r.useRef({}),[a]=r.useState(()=>{let e;return e=new Map,{emit(t,n){var l;null==(l=e.get(t))||l.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var l;e.set(t,(null==(l=e.get(t))?void 0:l.filter(e=>e!==n))||[])}}}),s=null!=nc(),[c,u]=r.useState(l.reference),d=t9((e,t,l)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:l,nested:s}),null==n||n(e,t,l)}),f=r.useMemo(()=>({setPositionReference:u}),[]),p=r.useMemo(()=>({reference:c||l.reference||null,floating:l.floating||null,domReference:l.reference}),[c,l.reference,l.floating]);return r.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||n,i=l.elements,[o,a]=r.useState(null),[s,c]=r.useState(null),u=(null==i?void 0:i.domReference)||o,d=r.useRef(null),f=r.useContext(ns);ne(()=>{u&&(d.current=u)},[u]);let p=t5({...e,elements:{...i,...s&&{reference:s}}}),m=r.useCallback(e=>{let t=el(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),h=r.useCallback(e=>{(el(e)||null===e)&&(d.current=e,a(e)),(el(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!el(e))&&p.refs.setReference(e)},[p.refs]),v=r.useMemo(()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d}),[p.refs,h,m]),g=r.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),w=r.useMemo(()=>({...p,...l,refs:v,elements:g,nodeId:t}),[p,v,g,t,l]);return ne(()=>{l.dataRef.current.floatingContext=w;let e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),r.useMemo(()=>({...p,context:w,refs:v,elements:g}),[p,v,g,w])},"useHover",0,function(e,t){void 0===t&&(t={});let{open:n,onOpenChange:l,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,m=r.useContext(ns),h=nc(),v=nd(u),g=nd(c),w=nd(n),b=r.useRef(),x=r.useRef(-1),y=r.useRef(),_=r.useRef(-1),C=r.useRef(!0),E=r.useRef(!1),k=r.useRef(()=>{}),$=r.useRef(!1),N=r.useCallback(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[i]);r.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(_.current),C.current=!0,$.current=!1)}},[s,o]),r.useEffect(()=>{if(!s||!v.current||!n)return;function e(e){N()&&l(!1,e,"hover")}let t=em(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,l,s,v,N]);let S=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let i=np(g.current,"close",b.current);i&&!y.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>l(!1,e,n),i)):t&&(clearTimeout(x.current),l(!1,e,n))},[g,l]),R=t9(()=>{k.current(),y.current=void 0}),j=t9(()=>{if(E.current){let e=em(a.floating).body;e.style.pointerEvents="",e.removeAttribute(nf),E.current=!1}}),O=t9(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));r.useEffect(()=>{if(s&&el(a.domReference)){var e;let l=a.domReference;return n&&l.addEventListener("mouseleave",o),null==(e=a.floating)||e.addEventListener("mouseleave",o),p&&l.addEventListener("mousemove",t,{once:!0}),l.addEventListener("mouseenter",t),l.addEventListener("mouseleave",r),()=>{var e;n&&l.removeEventListener("mouseleave",o),null==(e=a.floating)||e.removeEventListener("mouseleave",o),p&&l.removeEventListener("mousemove",t),l.removeEventListener("mouseenter",t),l.removeEventListener("mouseleave",r)}}function t(e){if(clearTimeout(x.current),C.current=!1,d&&!ep(b.current)||f>0&&!np(g.current,"open"))return;let t=np(g.current,"open",b.current);t?x.current=window.setTimeout(()=>{w.current||l(!0,e,"hover")},t):n||l(!0,e,"hover")}function r(e){if(O())return;k.current();let t=em(a.floating);if(clearTimeout(_.current),$.current=!1,v.current&&i.current.floatingContext){n||clearTimeout(x.current),y.current=v.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){j(),R(),O()||S(e,!0,"safe-polygon")}});let l=y.current;t.addEventListener("mousemove",l),k.current=()=>{t.removeEventListener("mousemove",l)};return}"touch"===b.current&&ec(a.floating,e.relatedTarget)||S(e)}function o(e){O()||i.current.floatingContext&&(null==v.current||v.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){j(),R(),O()||S(e)}})(e))}},[a,s,e,d,f,p,S,R,j,l,n,w,m,g,v,i,O]),ne(()=>{var e,t;if(s&&n&&null!=(e=v.current)&&e.__options.blockPointerEvents&&N()){E.current=!0;let e=a.floating;if(el(a.domReference)&&e){let n=em(a.floating).body;n.setAttribute(nf,"");let l=a.domReference,i=null==m||null==(t=m.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",l.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",l.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,h,a,m,v,N]),ne(()=>{n||(b.current=void 0,$.current=!1,R(),j())},[n,R,j]),r.useEffect(()=>()=>{R(),clearTimeout(x.current),clearTimeout(_.current),j()},[s,a.domReference,R,j]);let A=r.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){C.current||w.current||l(!0,t,"hover")}d&&!ep(b.current)||n||0===f||$.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(_.current),"touch"===b.current?i():($.current=!0,_.current=window.setTimeout(i,f)))}}},[d,l,n,w,f]),T=r.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){O()||S(e.nativeEvent,!1)}}),[S,O]);return r.useMemo(()=>s?{reference:A,floating:T}:{},[s,A,T])},"useInteractions",0,function(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),l=e.map(e=>null==e?void 0:e.item),i=r.useCallback(t=>nG(t,e,"reference"),t),o=r.useCallback(t=>nG(t,e,"floating"),n),a=r.useCallback(t=>nG(t,e,"item"),l);return r.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])},"useMergeRefs",0,function(e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)},"useRole",0,function(e,t){var n;void 0===t&&(t={});let{open:l,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=null!=(n=nY.get(a))?n:a,c=nr(),u=null!=nc(),d=r.useMemo(()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:l?i:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":l?i:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:c},..."menu"===s&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[s,i,u,l,c,a]),f=r.useMemo(()=>{let e={id:i,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":c}}},[s,i,c,a]),p=r.useCallback(e=>{let{active:t,selected:n}=e,l={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...l,"aria-selected":t&&n};case"combobox":return{...l,...t&&{"aria-selected":!0}}}return{}},[i,a]);return r.useMemo(()=>o?{reference:d,floating:f,item:p}:{},[o,d,f,p])},"useTransitionStyles",0,function(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:l,close:i,common:o,duration:a=250}=t,s=e.placement,c=s.split("-")[0],u=r.useMemo(()=>({side:c,placement:s}),[c,s]),d="number"==typeof a,f=(d?a:a.open)||0,p=(d?a:a.close)||0,[m,h]=r.useState(()=>({...nK(o,u),...nK(n,u)})),{isMounted:v,status:g}=function(e,t){void 0===t&&(t={});let{open:n,elements:{floating:l}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[a,s]=r.useState("unmounted"),c=function(e,t){let[n,l]=r.useState(e);return e&&!n&&l(!0),r.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>l(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return c||"close"!==a||s("unmounted"),ne(()=>{if(l){if(n){s("initial");let e=requestAnimationFrame(()=>{s("open")});return()=>{cancelAnimationFrame(e)}}s("close")}},[n,l]),{isMounted:c,status:a}}(e,{duration:a}),w=nd(n),b=nd(l),x=nd(i),y=nd(o);return ne(()=>{let e=nK(w.current,u),t=nK(x.current,u),n=nK(y.current,u),l=nK(b.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(l).map(nJ).join(","),transitionDuration:f+"ms",...n,...l}),"close"===g){let l=t||e;h({transitionProperty:Object.keys(l).map(nJ).join(","),transitionDuration:p+"ms",...n,...l})}},[p,x,w,b,y,f,g,u]),{isMounted:v,styles:m}}],43489),e.s(["D",0,"finkit-dropdown","M",0,"finkit-modals","T",0,"finkit-tooltips"],2753)},14044,58858,e=>{"use strict";e.s(["g",0,(e,t=!0)=>t?e:void 0],14044);var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}],58858)},91784,21214,96347,46381,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(43489),i=e.i(7670),r=e.i(2753),o=e.i(14044),a=e.i(54061),s=e.i(16727),c=e.i(58858);function u(e){return n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 0 1 1.06 0L12 10.94l3.72-3.72a.743.743 0 0 1 1.06 0 .742.742 0 0 1 0 1.06L13.061 12l3.72 3.72a.743.743 0 0 1 0 1.06.743.743 0 0 1-1.061 0L12 13.06l-3.72 3.72a.743.743 0 0 1-1.06 0 .743.743 0 0 1 0-1.06L10.94 12 7.22 8.28a.743.743 0 0 1 0-1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}e.s(["S",0,u],21214);var d=e.i(2404);let f=(0,a.g)("modal"),p=Object.freeze({modal:f,overlay:`${f}__overlay`,withoutFooter:`${f}--without-footer`,noContent:`${f}--no-content`,open:`${f}--open`,overlayOpen:`${f}__overlay--open`,height:{medium:`${f}--height-medium`,full:`${f}--height-full`},size:{s:`${f}--s`,m:`${f}--m`,l:`${f}--l`,xl:`${f}--xl`},header:`${f}__header`,headerText:`${f}__header-text`,headerTitle:`${f}__header-title`,headerSubtitle:`${f}__header-subtitle`,closeIcon:`${f}__close-icon`,backButton:`${f}__back-button`,backButtonText:`${f}__back-button-text`,headerStates:{centered:`${f}__header--centered`,withLongBtn:`${f}__header--with-long-btn`,defaultHeight:`${f}__header--default-height`},content:`${f}__content`,withoutPadding:`${f}__content--without-padding`,withScroll:`${f}__content--with-scroll`,footer:`${f}__footer`,footerContainer:`${f}__footer-container`,footerBtn:`${f}__footer-btn`,footerDescription:`${f}__footer-description`,divider:`${f}__divider`,dividerTop:`${f}__divider--top`,dividerBottom:`${f}__divider--bottom`}),m=({primaryBtnText:e,onPrimary:n,secondaryBtnText:l,onSecondary:r,thirdBtnText:a,onThird:c,description:u,children:d,noContent:f,dataQa:m})=>(0,t.jsxs)("div",{"data-qa":(0,o.g)(`${m}-footer`,!!m),className:(0,i.default)(p.footer,{[p.noContent]:f}),children:[!f&&(0,t.jsx)("div",{className:(0,i.default)(p.divider,p.dividerTop)}),d||(0,t.jsxs)("div",{className:p.footerContainer,children:[a&&(0,t.jsx)(s.a,{dataQa:(0,o.g)(`${m}-footer-third-btn`,!!m),label:a,variant:"secondary",size:"s",className:p.footerBtn,onClick:c}),l&&(0,t.jsx)(s.a,{dataQa:(0,o.g)(`${m}-footer-secondary-btn`,!!m),label:l,variant:"secondary",size:"s",className:p.footerBtn,onClick:r}),e&&(0,t.jsx)(s.a,{dataQa:(0,o.g)(`${m}-footer-primary-btn`,!!m),label:e,size:"s",className:p.footerBtn,onClick:n})]}),u&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${m}-footer-description`,!!m),className:p.footerDescription,children:u})]}),h=({text:e,title:n,subtitle:l,align:r="left",backBtnVariant:a,onBack:s,onClose:f,noContent:m,dataQa:h,withoutCloseBtn:v=!1})=>(0,t.jsxs)("div",{"data-qa":(0,o.g)(`${h}-header`,!!h),className:(0,i.default)(p.header,{[p.headerStates.centered]:"center"===r||!!a,[p.headerStates.withLongBtn]:"long"===a,[p.headerStates.defaultHeight]:!e&&!n&&!l}),children:[e&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${h}-header-text`,!!h),className:p.headerText,children:e}),n&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${h}-header-title`,!!h),className:p.headerTitle,children:n}),l&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${h}-header-subtitle`,!!h),className:p.headerSubtitle,children:l}),!v&&(0,t.jsx)("button",{"data-qa":(0,o.g)(`${h}-header-close`,!!h),type:"button",className:p.closeIcon,onClick:f,children:(0,t.jsx)(d.P,{children:(0,t.jsx)(u,{})})}),a&&(0,t.jsxs)("button",{"data-qa":(0,o.g)(`${h}-header-back`,!!h),type:"button",className:p.backButton,onClick:s,children:[(0,t.jsx)(d.P,{children:(0,t.jsx)(c.S,{})}),"long"===a&&(0,t.jsx)("span",{className:p.backButtonText,children:"Назад"})]}),!m&&(0,t.jsx)("div",{className:(0,i.default)(p.divider,p.dividerBottom)})]}),v=(0,n.forwardRef)(({header:e,footer:a,open:s=!1,size:c="m",noPadding:u=!1,height:d="full",onClose:f,children:v,className:g,style:w,dataQa:b,dataId:x,dismissDisabled:y=!1,..._},C)=>{let[E,k]=(0,n.useState)(!1),[$,N]=(0,n.useState)(!1),S=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{S.current&&cancelAnimationFrame(S.current)},[]),(0,n.useEffect)(()=>{if(S.current&&cancelAnimationFrame(S.current),s)return k(!0),S.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{N(!0)})}),()=>{S.current&&cancelAnimationFrame(S.current)};{N(!1);let e=setTimeout(()=>{k(!1)},300);return()=>{clearTimeout(e),S.current&&cancelAnimationFrame(S.current)}}},[s]);let R=()=>{N(!1);let e=setTimeout(()=>{null==f||f(),k(!1)},300);return()=>clearTimeout(e)},{context:j}=(0,l.useFloating)({open:E,onOpenChange:e=>{e||R()}}),O=(0,l.useDismiss)(j,{outsidePressEvent:"mousedown",outsidePress:!y,escapeKey:!y}),A=(0,l.useRole)(j,{role:"dialog"}),{getFloatingProps:T}=(0,l.useInteractions)([O,A]),[I,L]=(0,n.useState)(!1),z=(0,n.useCallback)(e=>{e&&new ResizeObserver(()=>{L(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return E?(0,t.jsx)(l.FloatingPortal,{id:r.M,children:(0,t.jsx)(l.FloatingOverlay,{lockScroll:!0,className:(0,i.default)(p.overlay,{[p.overlayOpen]:$}),children:(0,t.jsx)(l.FloatingFocusManager,{context:j,children:(0,t.jsxs)("div",{ref:C,className:(0,i.default)(p.modal,p.size[c],p.height[d],{[p.withoutFooter]:!(null==a?void 0:a.primaryBtnText)&&!(null==a?void 0:a.children),[p.open]:$},g),style:w,...T(),..._,"data-id":x,"data-qa":b,children:[(0,t.jsx)(h,{...e,dataQa:b,noContent:!v,onClose:R}),v&&(0,t.jsx)("div",{"data-qa":(0,o.g)(`${b}-content`,!!b),ref:z,className:(0,i.default)(p.content,{[p.withoutFooter]:!(null==a?void 0:a.primaryBtnText)&&!(null==a?void 0:a.children),[p.withoutPadding]:u,[p.withScroll]:I}),children:v}),((null==a?void 0:a.primaryBtnText)||(null==a?void 0:a.children))&&(0,t.jsx)(m,{...a,dataQa:b,noContent:!v})]})})})}):null});v.displayName="Modal",e.s(["Modal",0,v],91784);let g=(0,a.g)("divider"),w=Object.freeze({divider:g,content:`${g}__content`}),b=({content:e,className:n,style:l,dataQa:r,dataId:o,...a})=>(0,t.jsx)("div",{className:(0,i.default)(w.divider,n),style:l,...a,"data-id":o,"data-qa":r,children:e&&(0,t.jsx)("div",{className:w.content,children:e})});b.displayName="Divider",e.s(["Divider",0,b],96347);let x=(0,a.g)("chips"),y=Object.freeze({chips:x,chip:`${x}__item`,icon:`${x}__icon`,iconLeft:`${x}__icon-left`,iconRight:`${x}__icon-right`,label:`${x}__label`,variants:{primary:`${x}--primary`,secondary:`${x}--secondary`,tertiary:`${x}--tertiary`},activeVariants:{primary:`${x}--active-primary`,secondary:`${x}--active-secondary`},sizes:{s:`${x}--s`,m:`${x}--m`,l:`${x}--l`},selected:`${x}--selected`,indicator:`${x}__indicator`,indicatorVariant:{red:`${x}__indicator--red`,orange:`${x}__indicator--orange`,green:`${x}__indicator--green`,purple:`${x}__indicator--purple`,purpleSecondary:`${x}__indicator--purple-secondary`,blue:`${x}__indicator--blue`,pink:`${x}__indicator--pink`}}),_=(0,n.forwardRef)(({chips:e,value:l,variant:r="primary",activeVariant:a="primary",multiple:s,clearable:c,size:u="m",className:d,style:f,dataQa:p,dataId:m,onChipClick:h,...v},g)=>{let[w,b]=(0,n.useState)(s?[]:void 0),x=(0,n.useRef)(null);(0,n.useImperativeHandle)(g,()=>({getRoot:()=>x.current,getSelectedChips:()=>w})),(0,n.useEffect)(()=>{s?b(Array.isArray(l)?l:[]):b(l)},[l,s]);let _=s||c,C=e=>s&&Array.isArray(w)?w.includes(e):w===e,E=(e,t,n)=>{b(n),null==h||h(e,t,n)},k=(e,t)=>{if(s&&Array.isArray(w))if(C(e)){let n=w.filter(t=>t!==e);E(e,t,n)}else E(e,t,[...w,e]);else{let n=c&&C(e)?void 0:e;E(e,t,n)}};return(0,t.jsx)("div",{ref:x,className:(0,i.default)(d,y.chips),style:f,...v,"data-id":m,"data-qa":p,children:e.map((e,n)=>(({id:e,label:n,iconLeft:l,iconRight:s,indicator:c},d)=>{let f=C(e);return(0,t.jsxs)("div",{className:(0,i.default)(y.chip,y.sizes[u],y.activeVariants[a],y.variants[r],[{[y.selected]:f}]),role:_?"checkbox":"radio","aria-checked":f,"aria-label":n,tabIndex:0,"data-qa":(0,o.g)(`${p}-item-${++d}`,!!p),onClick:t=>{k(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),k(e,t))},children:[l&&(0,t.jsx)("span",{className:(0,i.default)(y.icon,y.iconLeft),"aria-hidden":"true",children:l}),(0,t.jsx)("span",{className:(0,i.default)(y.label),children:n}),c&&(0,t.jsx)("div",{className:(0,i.default)(y.indicator,y.indicatorVariant[c])}),s&&(0,t.jsx)("span",{className:(0,i.default)(y.icon,y.iconRight),"aria-hidden":"true",children:s})]},e)})(e,n))})});_.displayName="Chips",e.s(["Chips",0,_],46381)},881,3315,91390,43748,53278,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(43489),i=e.i(7670),r=e.i(2404),o=e.i(12569),a=e.i(54061);function s(e){return n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm1.5 0a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Zm12.28-1.72-4.25 4.25a.722.722 0 0 1-.53.22.722.722 0 0 1-.53-.22l-2.25-2.25a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L11 12.94l3.72-3.72a.743.743 0 0 1 1.06 0 .743.743 0 0 1 0 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}function c(e){return n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12.617 2.035a4.736 4.736 0 0 0-1.232 0c-1.28.167-2.263 1.01-3.216 2.25-.944 1.231-1.97 3.005-3.284 5.28l-.06.105c-1.316 2.277-2.342 4.053-2.937 5.487-.6 1.447-.838 2.72-.344 3.912.159.382.366.74.617 1.069.785 1.024 2.007 1.454 3.56 1.659 1.539.202 3.59.202 6.22.202h.12c2.63 0 4.681 0 6.22-.202 1.553-.204 2.775-.635 3.56-1.66a4.75 4.75 0 0 0 .617-1.068c.494-1.192.256-2.465-.344-3.912-.595-1.434-1.621-3.21-2.937-5.487l-.06-.105c-1.315-2.275-2.34-4.049-3.285-5.28-.952-1.24-1.935-2.083-3.215-2.25ZM11.58 3.522a3.23 3.23 0 0 1 .844 0c.678.089 1.343.535 2.22 1.677.877 1.143 1.854 2.83 3.205 5.169 1.352 2.34 2.328 4.031 2.88 5.364.552 1.331.606 2.13.344 2.762-.108.261-.25.507-.422.731-.415.543-1.135.897-2.564 1.085-1.43.188-3.382.189-6.085.189s-4.655-.001-6.085-.19c-1.43-.187-2.149-.54-2.564-1.084a3.249 3.249 0 0 1-.422-.73c-.262-.632-.208-1.432.344-2.763.552-1.333 1.528-3.023 2.88-5.364 1.351-2.338 2.328-4.026 3.205-5.17.877-1.141 1.543-1.587 2.22-1.676Zm1.173 5.227a.75.75 0 0 0-1.5 0v5.5a.75.75 0 1 0 1.5 0v-5.5Zm-1.75 8.253a1 1 0 1 1 2-.005 1 1 0 0 1-2 .005Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let u=(0,a.g)("caption"),d=Object.freeze({caption:u,captionWithIcon:`${u}--with-icon`,content:`${u}__content`,icon:`${u}__icon`,text:`${u}__text`,size:{s:`${u}--s`,m:`${u}--m`},states:{success:`${u}--success`,error:`${u}--error`,warning:`${u}--warning`}});function f({as:e,children:n,state:l="default",size:a="m",text:u,withoutIcon:p=!1,lineClamp:m,role:h,dataQa:v,dataId:g,className:w,style:b,...x}){let y=u||n,_=!p&&["success","error","warning"].includes(l),C="success"===l?s:c,E=(0,i.default)(w,d.caption,d.size[a],{[d.captionWithIcon]:_,[d.states.success]:"success"===l,[d.states.error]:"error"===l,[d.states.warning]:"warning"===l});return(0,t.jsx)(e||"div",{className:E,style:b,role:h,...x,"data-id":g,"data-qa":v,children:(0,t.jsxs)("div",{className:d.content,children:[_&&y&&(0,t.jsx)(r.P,{className:d.icon,children:(0,t.jsx)(C,{})}),(0,t.jsx)("span",{className:(0,i.default)(d.text),style:{...m?{WebkitLineClamp:m,lineClamp:m,...o.l}:void 0},children:y})]})})}f.displayName="Caption",e.s(["C",0,f],3315),e.i(89485);var p=e.i(14044);let m=(...e)=>(...t)=>{e.forEach(e=>{null==e||e(...t)})},h=(0,a.g)("input-base"),v={wrapper:h,input:`${h}__input`,container:`${h}__container`,label:`${h}__label`,field:`${h}__field`,slotLeft:`${h}__slot-left`,rightLabel:`${h}__right-label`,caption:`${h}__caption`,placeholder:{visible:`${h}__placeholder`,hidden:`${h}__hidden`},states:{primary:`${h}--primary`,secondary:`${h}--secondary`,error:`${h}--error`,success:`${h}--success`,s:`${h}--s`,m:`${h}--m`,l:`${h}--l`,focused:`${h}--focused`,disabled:`${h}--disabled`,active:`${h}--active`,hasLabel:`${h}--has-label`,accent:`${h}--accent`}},g=(0,n.forwardRef)(({icon:e,rightLabel:r,slotLeft:o,disabled:a,state:s,size:c="m",variant:u="primary",label:d,value:h,placeholder:g,maskPlaceholder:w,autoFocus:b=!1,maskPlaceholderVariant:x="default",caption:y,type:_="text",inputMode:C="text",hasCaption:E,className:k,style:$,dataQa:N,dataId:S,inputRef:R,onChange:j,onFocus:O,onBlur:A,onKeyDown:T,...I},L)=>{let z=(0,n.useId)(),{value:P,show:M,hide:B}=((e=!1)=>{let[t,l]=(0,n.useState)(e),i=(0,n.useCallback)(()=>l(!0),[]);return{value:t,show:i,hide:(0,n.useCallback)(()=>l(!1),[]),toggle:(0,n.useCallback)(()=>l(e=>!e),[])}})(),F=(0,n.useRef)(null),D=(0,l.useMergeRefs)([R,F]),H=(0,n.useMemo)(()=>P||!!h||!!g,[h,P,g]),W=(0,n.useCallback)(()=>{var e;null==(e=F.current)||e.focus()},[]),U=(0,n.useMemo)(()=>{if(!w)return null;let e={hidden:h??"",visible:w.substring((null==h?void 0:h.length)??0)};return w.length===(null==h?void 0:h.length)?null:e},[w,h]);return(0,n.useEffect)(()=>{var e,t,n;if(!b)return;let l=(null==(e=F.current)?void 0:e.value.length)??0;null==(t=F.current)||t.focus(),null==(n=F.current)||n.setSelectionRange(l,l)},[b]),(0,t.jsxs)("div",{className:(0,i.default)(k,v.wrapper),style:$,"data-qa":N,"data-id":S,children:[(0,t.jsxs)("div",{className:(0,i.default)(v.input,v.states[u],v.states[c],{[v.states.focused]:P,[v.states.error]:"error"===s,[v.states.success]:"success"===s,[v.states.disabled]:!!a,[v.states.hasLabel]:d}),onClick:W,ref:L,children:[o&&(0,t.jsx)("div",{className:v.slotLeft,children:o}),(0,t.jsxs)("label",{htmlFor:z,className:v.container,children:[d&&(0,t.jsx)("span",{className:(0,i.default)(v.label,{[v.states.active]:H,[v.states.s]:"s"===c,[v.states.disabled]:a,[v.states.error]:"error"===s,[v.states.success]:"success"===s}),children:d}),U&&!!h&&(0,t.jsxs)("div",{className:(0,i.default)(v.placeholder.visible,{[v.states.accent]:"accent"===x}),children:[U.hidden&&(0,t.jsx)("span",{className:v.placeholder.hidden,children:U.hidden}),U.visible]}),(0,t.jsx)("input",{...I,id:z,ref:D,className:(0,i.default)(v.field,{[v.states.s]:"s"===c,[v.states.hasLabel]:d,[v.states.disabled]:a}),type:_,inputMode:C,autoComplete:"off",placeholder:g,value:h,disabled:a,onChange:e=>{null==j||j(e.target.value,e)},onFocus:m(M,O),onBlur:m(B,A),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==j||j("",{target:{value:""}})),null==T||T(e)}})]}),r&&(0,t.jsx)("div",{className:(0,i.default)(v.rightLabel,{[v.states.disabled]:a}),children:r}),e]}),(E||y)&&(0,t.jsx)(f,{dataQa:(0,p.g)(`${N}-caption`,!!N),className:(0,i.default)(v.caption,{[v.states.disabled]:a}),state:s,withoutIcon:!0,children:y})]})});g.displayName="InputBase",e.s(["I",0,g],91390),e.s([],881),e.s(["InputBase",0,g],43748);var w=e.i(24359),b=e.i(63687),x=e.i(34650);let y={userRegion:x.U,userTown:x.c,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},_={userRegion:x.U,userTown:x.c,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},C=(e=!1)=>e?_:y,E=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},k=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},$=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),N=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,S=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},R=(e,t=!1)=>{if(e.length<1)return;let n=C(t);E(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},j=async()=>{let e=await S("https://finuslugi.ru/money_data/Root.json?short=1"),t=Array.isArray(null==e?void 0:e.regions)?e.regions:[];return R(t),t},O=async e=>{let t,n,[l,i]=await Promise.all([S(N(e,"/sc/api/v1/cities?all=true&isActive=true")),S(N(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==l?void 0:l.content)||!Array.isArray(null==i?void 0:i.content))return[];let r=l.content,o=(n=(t=i.content.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:[]}))).reduce((e,t)=>(e[t.id]=t,e),{}),r.forEach(e=>{let t=n[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})}),t);return $(o)?(R(o,!0),o):[]},A=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?O(e):j(),T=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null};e.s(["a",0,e=>{let t={};return e.map(({id:e,name:n,towns:l})=>(l.forEach(l=>{l.parentId=e,t[l.name]=t[l.name]||{},t[l.name][l.id]=n}),l)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},"b",0,(e,t,n)=>{let l=null,i=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(l=e,i=t,!0)});let r=t?e.find(e=>e.id===t.id)??null:null;return{region:l??r??t,town:i??n}},"c",0,(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),"d",0,C,"e",0,e=>{if(typeof document>"u")return null;let t=w.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},"f",0,(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),"g",0,(e=!1)=>{if(typeof window>"u")return[];let t=((e=!1)=>e?window.allRegionsNewApi:window.allRegions)(e);if(Array.isArray(t)&&t.length>0)return t;let n=k(C(e).allRegions)||[];return E(n,e),n},"h",0,(e,t,n)=>{(0,b.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})},"i",0,(e,t=!1)=>!(e.length<1)&&(!t||$(e)),"j",0,T,"l",0,A,"p",0,k,"s",0,(e,t,n=!1)=>{if(typeof document>"u")return;let l=C(n);if(!e&&!t){w.a.removeItem(l.userRegion),w.a.removeItem(l.userTown);return}w.a.setItem(l.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),w.a.setItem(l.userTown,JSON.stringify(t)||"",{"max-age":31536e3})}],53278)},89867,e=>{"use strict";var t=e.i(43476),n=e.i(71645);e.i(34348);var l=e.i(47611),i=e.i(60822),r=e.i(7670),o=e.i(85900),a=e.i(63687),s=e.i(71121),c=e.i(37536),u=e.i(44437),d=e.i(34650),f=e.i(22468),p=e.i(91784),m=e.i(96347),h=e.i(46381);e.i(881);var v=e.i(43748),g=e.i(53278);e.i(46401);var w=e.i(34986),b=e.i(65019);let x={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},y={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},_=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0110.75 6a1.25 1.25 0 111.254 1.247zM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function C({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...x,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(_,{viewBox:"0 0 24 24",style:y}))}C.displayName="IconFdsDotsVerticalO";let E=(0,f.g)("navigation-chips","sc"),k=Object.freeze({wrapper:`${E}__wrapper`,gray:`${E}__variantGray`,white:`${E}__variantWhite`,container:`${E}__container`,chip:`${E}__chip`,more:`${E}__chip--more`,active:`${E}__chip--active`,icon:`${E}__icon`,label:`${E}__label`,hidden:`${E}__hidden`}),$={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},N={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},S=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function R({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...$,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(S,{viewBox:"0 0 24 24",style:N}))}R.displayName="IconFdsArrowUpRightSmallO";let j=(0,f.g)("navigation-content","sc"),O=Object.freeze({contentWrapper:`${j}__content-wrapper`,content:`${j}__content`,contentOpen:`${j}__content--open`,contentHeader:`${j}__content-header`,contentTitle:`${j}__content-title`,contentTitleUrl:`${j}__content-title--url`,contentTitleLink:`${j}__content-title--link`,contentTitleNew:`${j}__content-title--new`,new:`${j}__new`,newInline:`${j}__new-inline`,vip:`${j}__vip`,arrowIcon:`${j}__arrow-icon`,links:`${j}__links`,linksColumns:`${j}__links--columns`,linksTitleless:`${j}__links--titleless`,removed:`${j}__removed`,hidden:`${j}__content--hidden`}),A=({chip:e,hidden:n,onClick:l,refCallback:i,activeChipId:o})=>{let s=!!l,c=()=>{if(s)return null==l?void 0:l(e.url);(0,u.h)(a.D.chip,e.title,`${e.title}_${e.url}`)},d=(0,t.jsxs)(t.Fragment,{children:[e.icon&&(0,t.jsx)("span",{className:k.icon,"aria-hidden":"true",children:e.icon}),(0,t.jsx)("span",{className:k.label,children:e.title}),e.arrow&&(0,t.jsx)(R,{size:24})]}),f=(0,r.default)(k.chip,{[k.hidden]:n,[O.new]:!!e.new,[O.vip]:!!e.vip,[k.active]:e.url===o});return s?(0,t.jsx)("button",{type:"button",className:f,onClick:c,ref:i,children:d}):(0,t.jsx)("a",{href:e.url,className:f,onClick:c,ref:i,children:d})},T=({items:e=[],maxNumberOfLines:l,variant:i,className:o,activeChipId:s,onClick:c,moreButtonOptions:d})=>{let f=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)({}),h=(null==d?void 0:d.label)??"Еще",v="Еще",g=(null==d?void 0:d.showIcon)??!0,w=(0,r.default)(k.chip,k.more,null==d?void 0:d.className),[b,x]=(0,n.useState)(!1),[y,_]=(0,n.useState)(e.length),[E,$]=(0,n.useState)(!1);(0,n.useMemo)(()=>{let t=m.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 N=(0,n.useCallback)(()=>{let t=f.current;if(!t)return;let n=e=>e?e.getBoundingClientRect().width:0,i=n(t),r=Math.max(Number(l)||0,0),o=()=>{_(e.length),$(!1)};if(b||0===r||i<=0)return void o();let a=(()=>{try{let e=getComputedStyle(t),n=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(n)?12:n}catch{return 12}})(),s=n(p.current),c=e.map(e=>n(m.current[e.url]));if(c.some(e=>0===e))return void o();let u=1,d=0,h=0;for(let e of c){let t=u===r?s+a:0,n=0===d?e:d+a+e;if(n+t<=i-.5)d=n,h++;else{if(++u>r)break;d=e,h++}}$(h<e.length),_(h)},[b,e,l]);(0,n.useLayoutEffect)(()=>{let e=f.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(N)});return t.observe(e),requestAnimationFrame(N),()=>{t.disconnect()}},[N]),(0,n.useEffect)(()=>{requestAnimationFrame(N)},[N]);let S=b||(l??0)<=0||!E;return(0,t.jsx)("div",{className:(0,r.default)(o,k.wrapper,{[k.gray]:"gray"===i,[k.white]:"white"===i}),children:(0,t.jsxs)("div",{ref:f,className:k.container,children:[e.map((e,n)=>(0,t.jsx)(A,{chip:e,hidden:!S&&n>=y,activeChipId:s,onClick:c,refCallback:t=>{m.current[e.url]=t}},e.url)),!S&&E&&(0,t.jsxs)("button",{type:"button",ref:p,className:w,"aria-label":v,onClick:()=>{(0,u.h)(a.D.chip,v),x(!0)},children:[g&&(0,t.jsx)(C,{size:20}),(0,t.jsx)("span",{className:k.label,children:h})]}),(S||!E)&&(0,t.jsxs)("button",{type:"button",ref:p,className:(0,r.default)(w,k.hidden),tabIndex:-1,"aria-hidden":"true",children:[g&&(0,t.jsx)(C,{size:20}),(0,t.jsx)("span",{className:k.label,children:h})]})]})})},I={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},L={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function z(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let P=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M21.309 22.765a6.932 6.932 0 01-2.016.233c-1.156-.04-2.62-.39-3.927-1.58A9.985 9.985 0 0112 22a9.97 9.97 0 01-7.071-2.929A9.97 9.97 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.958 9.958 0 01-1.233 4.814c.07 1.607.354 2.81.617 3.606a7.784 7.784 0 00.424 1.04c.125.248.251.497.15.787-.103.296-.366.44-.65.52zM12 3.5a8.5 8.5 0 103.258 16.353.75.75 0 01.834.178c1.06 1.124 2.278 1.436 3.252 1.469.304.01.584-.007.824-.035a10.45 10.45 0 01-.208-.574c-.317-.96-.641-2.374-.7-4.237a.75.75 0 01.1-.4A8.5 8.5 0 0012 3.5zm-4.209 7.794a1 1 0 10.003-.002l-.003.002zm3.5 0a1 1 0 10.003-.002l-.003.002zm3.502 1.414a1 1 0 01-.002-1.414l.003-.002a1 1 0 110 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function M({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...I,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&z(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(P,{viewBox:"0 0 24 24",style:L}))}M.displayName="IconFdsChatDotsCircleO";let B=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),n.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},n.createElement("path",{d:"M18.25 5.75V8c0 .42.33.75.75.75s.75-.33.75-.75V5.75H22c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-2.25V2c0-.42-.33-.75-.75-.75s-.75.33-.75.75v2.25H16c-.42 0-.75.33-.75.75s.33.75.75.75h2.25zm-4.546-2.23c-.259-.014-.827-.02-1.704-.02-.676 0-1.129.002-1.358.007a7.963 7.963 0 00-.779.047 7.246 7.246 0 00-2.328.689 7.204 7.204 0 00-4.028 6.4c-.005.228-.007.68-.007 1.357 0 .671.002 1.121.007 1.349.007.324.023.584.047.778.057.474.158.933.303 1.378v.001a7.17 7.17 0 001.76 2.867 7.169 7.169 0 002.92 1.777 7.436 7.436 0 002.108.341c.228.006.68.009 1.355.009.67 0 1.12-.003 1.346-.009a7.12 7.12 0 00.794-.057c.476-.05.96-.162 1.455-.333a.71.71 0 01.685.102c.662.48 1.32.829 1.976 1.047a4.85 4.85 0 001.482.264c.142.002.278-.004.41-.016a10.758 10.758 0 01-.222-.535c-.45-1.164-.676-2.305-.676-3.423a.74.74 0 01.116-.401 7.211 7.211 0 001.08-3.01c.024-.196.04-.456.047-.78.005-.228.007-.678.007-1.349 0-.214.002-.488.006-.822.003-.22.004-.376.004-.468 0-.42.33-.75.75-.75s.75.33.75.75c0 .098-.001.26-.004.486A70.38 70.38 0 0022 12c0 .682-.003 1.142-.008 1.381a9.337 9.337 0 01-.058.93 8.752 8.752 0 01-.393 1.737 8.757 8.757 0 01-.788 1.7c.026.866.217 1.757.571 2.674a8.847 8.847 0 00.6 1.249c.11.224.136.42.078.587-.057.168-.198.306-.423.416-.139.068-.32.13-.543.189a5 5 0 01-1.316.15 6.336 6.336 0 01-1.94-.34 8.598 8.598 0 01-2.064-1.035c-.471.14-.939.236-1.402.286a8.23 8.23 0 01-.93.067c-.24.006-.701.009-1.384.009-.688 0-1.152-.003-1.392-.009a8.222 8.222 0 01-.937-.067 8.672 8.672 0 01-3.989-1.538 8.707 8.707 0 01-2.077-2.078 8.705 8.705 0 01-1.597-4.927A78.972 78.972 0 012 12c0-.687.003-1.15.008-1.39.008-.376.027-.686.057-.93a8.737 8.737 0 01.832-2.806 8.69 8.69 0 013.977-3.977 8.7 8.7 0 012.803-.831c.246-.03.557-.05.933-.058C10.85 2.003 11.313 2 12 2c.902 0 1.495.007 1.779.021.42.021.732.367.712.787a.743.743 0 01-.787.711zm-5.91 9.19a1 1 0 111.412-1.414 1 1 0 01-1.413 1.415zm3.497-1.412a1 1 0 101.418 1.41 1 1 0 00-1.418-1.41zm3.502 1.413a1 1 0 111.414-1.415 1 1 0 01-1.414 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function F({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...I,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&z(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(B,{viewBox:"0 0 24 24",style:L}))}F.displayName="IconFdsChatDotsSquareAddO";let D=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M19.03 10.28l-6.5 6.5a.75.75 0 01-1.06 0l-6.5-6.5a.75.75 0 111.06-1.06L12 15.19l5.97-5.97a.75.75 0 111.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function H({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...I,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&z(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(D,{viewBox:"0 0 24 24",style:L}))}H.displayName="IconFdsChevronDownO";let W=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function U({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...I,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&z(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(W,{viewBox:"0 0 24 24",style:L}))}U.displayName="IconFdsCloseO";let V=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),n.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},n.createElement("path",{d:"M7.75 5a.75.75 0 100 1.5h13.5a.75.75 0 100-1.5H7.75zM22 12a.75.75 0 00-.75-.75H2.75a.75.75 0 100 1.5h18.5A.75.75 0 0022 12zm-5.75 5.5a.75.75 0 110 1.5H2.75a.75.75 0 110-1.5h13.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function q({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...I,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&z(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(V,{viewBox:"0 0 24 24",style:L}))}q.displayName="IconFdsMenuSkewedO";let G=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M6.999 7a5 5 0 1110 0 5 5 0 01-10 0zm5-3.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7zM10.012 14h3.974c1.52 0 2.497 0 3.345.337a4.75 4.75 0 011.916 1.402c.579.705.875 1.636 1.335 3.085l.05.159.332 1.04a.75.75 0 11-1.43.455l-.33-1.04c-.53-1.664-.744-2.293-1.117-2.748a3.249 3.249 0 00-1.31-.959c-.547-.217-1.212-.23-2.958-.23h-3.64c-1.746 0-2.41.013-2.957.23a3.249 3.249 0 00-1.311.959c-.373.454-.587 1.084-1.116 2.748l-.331 1.04a.75.75 0 11-1.43-.455l.331-1.04.05-.159c.461-1.449.757-2.38 1.336-3.086a4.752 4.752 0 011.916-1.4C7.515 14 8.492 14 10.012 14z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function Y({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...I,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&z(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(G,{viewBox:"0 0 24 24",style:L}))}Y.displayName="IconFdsUserO";let J=()=>{let e=(0,n.useRef)(null),t=(0,n.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),l=(0,n.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,n.useEffect)(()=>t,[t]),{start:l,clear:t,pending:!!e.current}},K={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},Z={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function Q(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let X=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ee({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...K,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&Q(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(X,{viewBox:"0 0 24 24",style:Z}))}ee.displayName="IconFdsChevronRightSmallO";let et=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function en({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...K,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&Q(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(et,{viewBox:"0 0 24 24",style:Z}))}en.displayName="IconFdsCloseO";let el=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),n.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),n.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},n.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function ei({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...K,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&Q(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(el,{viewBox:"0 0 24 24",style:Z}))}ei.displayName="IconFdsGosuslugiColoredO";let er=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eo({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...K,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&Q(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(er,{viewBox:"0 0 24 24",style:Z}))}eo.displayName="IconFdsShieldCheckO";let ea={"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"},es=(0,n.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 ec(){return(0,n.useContext)(es)}let eu=e=>{let[l,i]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!!e.isMainBannerPage),{isChatModalOpen:d,setIsChatModalOpen:f,isChatLoading:p}=(()=>{let[e,t]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),r=(0,n.useRef)(!1),o=e=>{r.current=e,i(e)};return(0,n.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(ea,e)?ea[e]:ea["finuslugi.ru"]})(),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 l=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((i,a)=>{var s,c;let u,d;r.current?a(Error("chat is already opened")):l?(l.openWidget(),t(!1),i()):(o(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;l=e;let r=document.querySelector(".webchat");r&&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)}})}).observe(r,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=l.closeWidget),null==l||l.openWidget(),o(!1),t(!1),i()},s=e,c=n,(u=document.createElement("link")).rel="stylesheet",u.type="text/css",u.href=`${s}/assets/css/${c}`,document.head.appendChild(u),(d=document.createElement("script")).src=`${s}/get-bootstrap/${c}`,d.defer=!0,document.body.appendChild(d))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,l;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(l=null==(n=window.supportWidget)?void 0:n.craftTalk)||l.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:l}})(),[m,h]=(0,n.useState)(null),[v,g]=(0,n.useState)(null),[w,b]=(0,n.useState)(!1),[x,y]=(0,n.useState)(!1),[_,C]=(0,n.useState)(!1),E=(0,n.useRef)(null),k=(0,c.u)(w),$=(0,n.useRef)(null),N=(0,n.useRef)(null),S=(0,n.useRef)(null),R=(0,n.useRef)(null),j=(0,n.useCallback)(()=>{k.current&&k.current.scrollTo({top:0})},[k]),O=(0,n.useCallback)(e=>{g(e),j()},[j]),A=(0,n.useCallback)(e=>{$.current&&clearTimeout($.current),e&&y(!0),e||($.current=setTimeout(()=>{y(!1),O(null)},300))},[O]),T=(0,n.useCallback)((e,t,n)=>{if(t&&O(t),!n&&e===m||!e){A(!w),b(!w);return}h(e),A(!0),b(!0)},[m,O,w,A]),I=(0,n.useCallback)(()=>{N.current&&clearTimeout(N.current),C(!0),N.current=setTimeout(()=>{C(!1)},650)},[]);return(0,n.useEffect)(()=>{i(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,u.s)(o,s,e.isMainBannerPage);return(0,u.i)(),t},[]),(0,t.jsx)("header",{children:(0,t.jsx)(es.Provider,{value:{isAuth:l,isHeaderHidden:r,isHeaderTransparent:a,openedBlock:m,setOpenedBlock:T,openedSection:v,setOpenedSection:O,isNavigationOpen:w,isNavigationMounted:x,navMenuItemsRef:E,navigationRef:k,ignoreClicks:_,setIgnoreClicks:I,isChatModalOpen:d,setIsChatModalOpen:f,isChatLoading:p,fixedContainerRef:S,headerRef:R},children:e.children})})},ed=(0,f.g)("certificates-warning-banner","sc"),ef=(0,f.g)("certificates-warning-popup","sc"),ep=Object.freeze({wrapper:`${ed}`,container:`${ed}__container`,content:`${ed}__content`,info:`${ed}__info`,image:`${ed}__image`,text:`${ed}__text`,title:`${ed}__title`,description:`${ed}__description`,details:`${ed}__details`,buttons:`${ed}__buttons`,button:`${ed}__button`,closeButton:`${ed}__close-button`,mobileActivator:`${ed}__mobile-activator`}),em=Object.freeze({modal:`${ef}__modal`,desktopCloseButton:`${ef}__desktop-close-button`,mobilePopup:`${ef}__mobile-popup`,mobileContentContainer:`${ef}__mobile-content-container`,mobileCloseButton:`${ef}__mobile-close-button`,mobileDialog:`${ef}__mobile-dialog`,content:`${ef}__content`,image:`${ef}__image`,text:`${ef}__text`,title:`${ef}__title`,description:`${ef}__description`,actions:`${ef}__actions`,primaryActions:`${ef}__primary-actions`,divider:`${ef}__divider`,explanation:`${ef}__explanation`,button:`${ef}__button`,gosuslugiButton:`${ef}__gosuslugi-button`,gosuslugiIcon:`${ef}__gosuslugi-icon`}),eh="fu_certificates_access_confirmed",ev="fu_certificates_banner_dismissed",eg="fu_external_link_warning_shown",ew={bannerShown:{eventActionType:a.D.show,eventActionText:"certificates_banner"},bannerDetails:{eventActionType:a.D.banner,eventActionText:"certificates_details"},bannerInstall:{eventActionType:a.D.button,eventActionText:"certificates_banner_install"},bannerYandex:{eventActionType:a.D.button,eventActionText:"certificates_banner_yandex"},bannerClose:{eventActionType:a.D.icon,eventActionText:"certificates_banner_close"},popupShown:{eventActionType:a.D.popup,eventActionText:"certificates_warning"},popupInstall:{eventActionType:a.D.button,eventActionText:"certificates_popup_install"},popupYandex:{eventActionType:a.D.button,eventActionText:"certificates_popup_yandex"},popupContinue:{eventActionType:a.D.button,eventActionText:"certificates_popup_continue"},popupCloseButton:{eventActionType:a.D.icon,eventActionText:"certificates_popup_close"},popupClosed:{eventActionType:a.D.close,eventActionText:"certificates_popup"}},eb=(e,t,n)=>{let l="banner"===t.source?"":`;host=${t.host}`;try{(0,a.h)({eventCategory:d.H,...ew[e],eventLabel:`source=${t.source};layout=${n?"desktop":"mobile"}${l}`})}catch{}},ex=["--banner-header-height","--fixed-header-height","--new-header-height-desktop","--new-header-height-mobile","--static-new-header-height-mobile","--static-new-header-height-desktop","--header-height"],ey=({onDismiss:e,onClosed:r,onOpenDetails:o,onOpenCertificatesPage:a,onOpenYandexBrowserPage:c})=>{let{fixedContainerRef:f,headerRef:p}=ec(),m=(0,s.useBreakpointUp)("l"),h=(0,n.useRef)(null),v=(0,n.useRef)(!1),g=(0,n.useRef)(!1),w=(0,n.useRef)(!1),[b,x]=(0,n.useState)(!1),[y,_]=(0,n.useState)(!1);(0,n.useEffect)(()=>{g.current||(g.current=!0,eb("bannerShown",{source:"banner"},m))},[m]);let C=(e,t)=>()=>{eb(e,{source:"banner"},m),t()},E=(0,n.useCallback)(()=>{let e=h.current,t=f.current;if(!e||!t)return;let n=e.getBoundingClientRect().height,l=n+(window.innerWidth<768?d.F.mobile:d.F.desktop),i=document.documentElement.style;i.setProperty("--banner-header-height",`${n}px`),i.setProperty("--fixed-header-height",`${l}px`),i.setProperty("--new-header-height-desktop",`${l}px`),i.setProperty("--new-header-height-mobile",`${l}px`),i.setProperty("--static-new-header-height-mobile",`${l}px`),i.setProperty("--static-new-header-height-desktop",`${l}px`),i.setProperty("--header-height",`${n+108}px`),t.style.transform=v.current?"translateY(0)":`translateY(-${n}px)`,window.dispatchEvent(new Event(u.H))},[f]),k=(0,n.useCallback)(()=>{let e=f.current;ex.forEach(e=>document.documentElement.style.removeProperty(e)),e&&(e.style.transform=""),window.dispatchEvent(new Event(u.H))},[f]),$=(0,n.useCallback)(()=>{let e=f.current;if(!e)return;let t=window.innerWidth<768?d.F.mobile:d.F.desktop,n=document.documentElement.style;n.setProperty("--fixed-header-height",`${t}px`),n.setProperty("--new-header-height-desktop",`${t}px`),n.setProperty("--new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-desktop",`${t}px`),n.setProperty("--header-height","108px"),e.style.transform="",window.dispatchEvent(new Event(u.H))},[f]);return(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{_(!1),b&&r()};return e.addEventListener("transitionend",t),()=>e.removeEventListener("transitionend",t)},[p,b,r]),(0,n.useLayoutEffect)(()=>{var e;let t=h.current;if(!t)return;E();let n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=null;n?(v.current=!0,null==(e=f.current)||e.style.setProperty("transform","translateY(0)")):l=window.requestAnimationFrame(()=>{var e;v.current=!0,null==(e=f.current)||e.style.setProperty("transform","translateY(0)"),_(!0)});let i=new ResizeObserver(E);return i.observe(t),window.addEventListener("resize",E),()=>{null!==l&&window.cancelAnimationFrame(l),i.disconnect(),window.removeEventListener("resize",E),k()}},[k,E]),(0,t.jsxs)("div",{id:"headerNotice",ref:h,role:"region","aria-label":"Сертификаты Минцифры","data-opening":y,className:ep.wrapper,children:[(0,t.jsx)("button",{className:ep.mobileActivator,type:"button","aria-label":"Подробнее о сертификатах Минцифры",onClick:C("bannerDetails",o)}),(0,t.jsx)(i.Container,{children:(0,t.jsxs)("div",{className:ep.container,children:[(0,t.jsxs)("div",{className:ep.content,children:[(0,t.jsxs)("div",{className:ep.info,children:[(0,t.jsx)("div",{className:ep.image,children:(0,t.jsx)(eo,{size:32})}),(0,t.jsxs)("div",{className:ep.text,children:[(0,t.jsx)("h2",{className:ep.title,children:"Для работы российских сайтов нужны сертификаты Минцифры"}),(0,t.jsx)("p",{className:ep.description,children:"Установите их, чтобы пользоваться всеми функциями сайта и оплачивать услуги без сбоев. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"}),(0,t.jsxs)("span",{className:ep.details,children:["Подробнее",(0,t.jsx)(ee,{size:16})]})]})]}),(0,t.jsxs)("div",{className:ep.buttons,children:[(0,t.jsx)(l.Button,{className:ep.button,label:"Установить сертификаты",iconLeft:(0,t.jsx)(ei,{size:16}),size:"xs",variant:"white",onClick:C("bannerInstall",a)}),(0,t.jsx)(l.Button,{className:ep.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy"}),size:"xs",variant:"white",appearance:"outline",onClick:C("bannerYandex",c)})]})]}),(0,t.jsx)("button",{className:ep.closeButton,type:"button","aria-label":"Закрыть",onClick:()=>{if(!w.current){if(w.current=!0,eb("bannerClose",{source:"banner"},m),e(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){k(),r();return}$(),x(!0)}},children:(0,t.jsx)(en,{size:24})})]})})]})},e_={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eC={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eE=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ek({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...e_,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eE,{viewBox:"0 0 24 24",style:eC}))}ek.displayName="IconFdsCloseO";let e$={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eN={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eS(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let eR=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),n.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),n.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},n.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function ej({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...e$,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&eS(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eR,{viewBox:"0 0 24 24",style:eN}))}ej.displayName="IconFdsGosuslugiColoredO";let eO=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eA({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...e$,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&eS(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eO,{viewBox:"0 0 24 24",style:eN}))}eA.displayName="IconFdsShieldCheckO";let eT=({onOpenCertificatesPage:e,onOpenYandexBrowserPage:i,onContinue:r})=>{let o=(0,n.useRef)(null),a=`certificates-warning-gosuslugi-${(0,n.useId)().replaceAll(":","")}`;return(0,n.useLayoutEffect)(()=>{var e,t;let n=null==(e=o.current)?void 0:e.querySelector("linearGradient"),l=null==(t=o.current)?void 0:t.querySelector('path[fill^="url("]');n&&l&&(n.id=a,l.setAttribute("fill",`url(#${a})`))},[a]),(0,t.jsxs)("div",{className:em.content,children:[(0,t.jsx)("div",{className:em.image,children:(0,t.jsx)(eA,{size:64})}),(0,t.jsxs)("div",{className:em.text,children:[(0,t.jsx)("h2",{className:em.title,children:"Установите сертификаты Минцифры"}),(0,t.jsx)("p",{className:em.description,children:"Без них российские сайты и оплата услуг могут не работать. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"})]}),(0,t.jsxs)("div",{className:em.actions,children:[(0,t.jsxs)("div",{className:em.primaryActions,children:[(0,t.jsx)(l.Button,{className:`${em.button} ${em.gosuslugiButton}`,label:"Установить сертификаты",iconLeft:(0,t.jsx)("span",{ref:o,className:em.gosuslugiIcon,children:(0,t.jsx)(ej,{size:20})}),size:"m",stretch:!0,onClick:e}),(0,t.jsx)(l.Button,{className:em.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy",width:24,height:24}),size:"m",stretch:!0,variant:"secondary",onClick:i})]}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Divider,{className:em.divider}),(0,t.jsx)(l.Button,{className:em.button,label:"Продолжить в текущем браузере",size:"m",stretch:!0,variant:"secondary",appearance:"outline",onClick:r}),(0,t.jsx)("p",{className:em.explanation,children:"Можно продолжить и без установки. Браузер покажет предупреждение о незащищенном соединении — пропустите его и нажмите «Перейти на сайт»"})]})]})]})},eI=({isOpen:e,analyticsContext:l,onClose:i,onOpenCertificatesPage:r,onOpenYandexBrowserPage:o,onContinue:a})=>{let u=(0,s.useBreakpointUp)("l"),d=(0,n.useRef)(null),f=(0,n.useRef)(!1),m=(0,n.useRef)(!1),h=(0,n.useRef)(!1),v=(0,n.useRef)(l);(0,n.useEffect)(()=>(f.current=!0,()=>{f.current=!1}),[]),(0,n.useEffect)(()=>{if(v.current=e?l:null,!e){m.current=!1,h.current=!0;return}m.current||(h.current=!1,l&&(m.current=!0,eb("popupShown",l,u)))},[l,u,e]);let g=(0,n.useCallback)(()=>f.current&&e&&!h.current&&v.current===l,[l,e]),w=(0,n.useCallback)(()=>{g()&&(h.current=!0,l&&eb("popupClosed",l,u),i())},[l,g,u,i]),b=()=>{g()&&(l&&eb("popupCloseButton",l,u),w())},x=(e,t)=>()=>{g()&&(l&&eb(e,l,u),t())},y=(0,t.jsx)(eT,{onOpenCertificatesPage:x("popupInstall",r),onOpenYandexBrowserPage:x("popupYandex",o),onContinue:a?x("popupContinue",a):void 0});return(0,n.useEffect)(()=>{if(!e)return;let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=window.setTimeout(()=>{var e;if(!u){null==(e=d.current)||e.focus();return}let t=document.querySelector(`.${em.desktopCloseButton}`);null==t||t.focus()},120),l=e=>{u||"Escape"===e.key&&w()};return document.addEventListener("keydown",l),()=>{window.clearTimeout(n),document.removeEventListener("keydown",l),null==t||t.focus()}},[w,u,e]),u?(0,t.jsxs)(p.Modal,{className:em.modal,open:e,size:"m",noPadding:!0,header:{withoutCloseBtn:!0},"aria-label":"Установите сертификаты Минцифры",onClose:w,children:[(0,t.jsx)("button",{className:em.desktopCloseButton,type:"button","aria-label":"Закрыть",onClick:b,children:(0,t.jsx)(ek,{size:24})}),y]}):(0,t.jsx)(c.P,{children:(0,t.jsx)(c.U,{className:em.mobilePopup,contentClassName:em.mobileContentContainer,isOpen:e,isSmallPopup:!0,onClose:w,closeButton:(0,t.jsx)("button",{className:em.mobileCloseButton,type:"button","aria-label":"Закрыть",onClick:b,children:(0,t.jsx)(ek,{size:24})}),children:(0,t.jsx)("div",{ref:d,className:em.mobileDialog,role:"dialog","aria-modal":"true","aria-label":"Установите сертификаты Минцифры",tabIndex:-1,children:y})})})},eL=new Map,ez=e=>{if(typeof window>"u")return"1"===eL.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===eL.get(e)}catch{return"1"===eL.get(e)}},eP=e=>{if(eL.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch{}},eM=(e,t)=>{if(!e)return null;try{let n,l,i=new URL(e.toString(),t.href);return"http:"!==i.protocol&&"https:"!==i.protocol||(n=i.hostname,l=t.hostname,n===l||"finuslugi.ru"===n||n.endsWith(".finuslugi.ru"))?null:i}catch{return null}},eB={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eF={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eD=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eH({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...eB,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eD,{viewBox:"0 0 24 24",style:eF}))}eH.displayName="IconFdsLocationO";let eW={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eU={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eV(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let eq=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"fds-close-circle-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#fds-close-circle-o_svg__a)"},n.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm1.5 0a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm12.28-2.72L13.06 12l2.72 2.72a.743.743 0 010 1.06.742.742 0 01-1.06 0L12 13.06l-2.72 2.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 8.22 9.28a.743.743 0 010-1.06.743.743 0 011.06 0L12 10.94l2.72-2.72a.743.743 0 011.06 0 .743.743 0 010 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function eG({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...eW,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&eV(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eq,{viewBox:"0 0 24 24",style:eU}))}eG.displayName="IconFdsCloseCircleO";let eY=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm8.872-4.977C13.657 7.18 15 8.15 15 9.761c0 .698-.179 1.238-.504 1.665-.307.401-.704.644-.98.812-.313.191-.477.293-.595.43-.083.096-.17.246-.17.584a.75.75 0 01-1.5 0c0-.66.193-1.164.531-1.558.28-.326.64-.544.89-.695l.062-.037c.287-.175.452-.29.568-.442.096-.126.198-.335.198-.759 0-.633-.532-1.158-1.309-1.252-.716-.087-1.454.236-1.717 1.2a.75.75 0 01-1.447-.394c.486-1.78 1.998-2.454 3.345-2.292zM11.999 15a1 1 0 10.002 2 1 1 0 00-.002-2z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eJ({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...eW,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&eV(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eY,{viewBox:"0 0 24 24",style:eU}))}eJ.displayName="IconFdsQuestionCircleO";let eK=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M10.5 2a8.5 8.5 0 105.456 15.018l4.763 4.762a.75.75 0 001.06-1.06l-4.762-4.763A8.5 8.5 0 0010.5 2zm-7 8.5a7 7 0 1114 0 7 7 0 01-14 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eZ({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...eW,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&eV(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(eK,{viewBox:"0 0 24 24",style:eU}))}eZ.displayName="IconFdsSearchO";let eQ=(0,g.g)(),eX=(0,g.a)(eQ),e0={regions:eQ,towns:eX,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},e1=(0,n.createContext)(e0);function e2(){return(0,n.useContext)(e1)}let e4=(0,f.g)("city-select-modal-body","sc"),e7=Object.freeze({wrapper:`${e4}__wrapper`,subtitle:`${e4}__subtitle`,hintWrapper:`${e4}__hint-wrapper`,hintText:`${e4}__hint-text`,input:`${e4}__input`,chips:`${e4}__chips`,townsListWrapper:`${e4}__towns-list-wrapper`,townsList:`${e4}__towns-list`,townsGroup:`${e4}__towns-group`,townsGroupLabel:`${e4}__towns-group-label`,townsGroupList:`${e4}__towns-group-list`,townsName:`${e4}__towns-name`,regionName:`${e4}__region-name`}),e3=({groupedTowns:e,chips:l,query:i,setQuery:r,isDrawer:o})=>{var s;let c=e2(),u=(0,n.useRef)(null),[d,f]=(0,n.useState)("10000px");(0,n.useEffect)(()=>{if(!o||!u.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,l)=>{let i=n.map(e=>[...e]),r=i.map(e),o=r.reduce((e,t,n)=>t<r[e]?n:e,0);0===o&&i[0].push(i[1].shift()),2===o&&i[2].unshift(i[1].pop()),1===o&&r[0]>r[2]&&i[1].unshift(i[0].pop()),1===o&&r[0]<r[2]&&i[1].push(i[2].shift());let a=Math.max(...i.map(e));return a>=l?l:t(i,a)};new ResizeObserver(()=>{var e;if(!(null!=(e=u.current)&&e.children))return;let n=Array.from(u.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let l=0;try{l=t([[],n,[]],1/0)}catch{l=0}l>0&&f(`${l}px`)}).observe(u.current)},[]);let p=e=>{if((0,g.h)(a.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return c.selectCity();let t=c.regions.find(t=>t.id===Number(e.parentId))||null;c.selectCity(t,e)};return(0,t.jsxs)("div",{className:e7.wrapper,children:[(0,t.jsxs)("div",{className:e7.subtitle,children:["Покажем предложения рядом с вами",(0,t.jsxs)("div",{className:e7.hintWrapper,children:[(0,t.jsx)(eJ,{size:24}),(0,t.jsx)("div",{className:e7.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,t.jsx)(v.InputBase,{className:e7.input,value:i,onChange:r,size:"s",placeholder:"Введите название города",icon:i?(0,t.jsx)(eG,{size:24,onClick:()=>r("")}):(0,t.jsx)(eZ,{size:24})}),(0,t.jsx)(h.Chips,{className:e7.chips,chips:l,value:(null==(s=c.town)?void 0:s.id)||0,onChipClick:e=>{p(c.towns.find(t=>t.id===e))}}),(0,t.jsx)("div",{className:e7.townsListWrapper,children:(0,t.jsx)("div",{ref:u,className:e7.townsList,style:{maxHeight:d},children:e.map(e=>(0,t.jsxs)("div",{className:e7.townsGroup,children:[(0,t.jsx)("div",{className:e7.townsGroupLabel,children:e.letter}),(0,t.jsx)("div",{className:e7.townsGroupList,children:e.towns.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>p(e),children:[(0,t.jsx)("div",{className:e7.townsName,children:e.name}),(0,t.jsx)("div",{className:e7.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},e5=[1095,1096,134,720,189,180],e6=()=>{var e;let l=e2(),i=(0,s.useBreakpointUp)("l"),[r,o]=(0,n.useState)(""),u=`Ваш выбор: ${(null==(e=l.town)?void 0:e.name)||"Вся Россия"}`,d=(0,n.useMemo)(()=>l.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(r.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},[]),[r,l.towns.length]),f=(0,n.useMemo)(()=>[{id:0,label:"Вся Россия"},...e5.map(e=>{let t=l.towns.find(t=>t.id===e);return{id:null==t?void 0:t.id,label:null==t?void 0:t.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[l.towns.length]),p=()=>{(0,g.h)(a.D.button,"close"),l.handleToggleModal(!1)};return(0,t.jsxs)(c.P,{children:[!i&&(0,t.jsx)(c.U,{title:u,isOpen:l.popupVisible,onClose:p,full:!0,children:(0,t.jsx)(e3,{groupedTowns:d,chips:f,query:r,setQuery:o})}),i&&(0,t.jsx)(c.D,{title:u,isOpen:l.popupVisible,onClose:p,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,t.jsx)(e3,{groupedTowns:d,chips:f,query:r,setQuery:o,isDrawer:!0})})]})},e8=({label:e,onClick:n,eventActionText:i,eventLabel:r,...o})=>(0,t.jsx)(l.Button,{label:e,onClick:e=>{null==n||n(e),(0,a.h)({eventCategory:d.H,eventActionType:a.D.button,eventActionText:i||"",eventLabel:r||""})},...o}),e9={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},te={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tt=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tn({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...e9,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(tt,{viewBox:"0 0 24 24",style:te}))}tn.displayName="IconFdsCloseO";let tl=(0,f.g)("header-popup","sc"),ti=Object.freeze({popup:`${tl}__popup`,popupHeader:`${tl}__popup-header`,popupClose:`${tl}__popup-close`,body:`${tl}__body`}),tr=({isOpen:e,onClose:n,children:l,title:i})=>{let r=(0,s.useBreakpointUp)("l");return(0,t.jsxs)(c.P,{children:[!r&&(0,t.jsx)(c.U,{title:i,isOpen:e,onClose:n,children:l}),r&&e&&(0,t.jsxs)("div",{className:ti.popup,children:[(0,t.jsxs)("div",{className:ti.popupHeader,children:[i,(0,t.jsx)(e8,{className:ti.popupClose,iconLeft:(0,t.jsx)(tn,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:n,eventActionText:"IconFdsCloseO"})]}),(0,t.jsx)("div",{className:ti.body,children:l})]})]})},to=(0,f.g)("start-choice-popup","sc"),ta=Object.freeze({top:`${to}__top`,progress:`${to}__progress`,innerCircle:`${to}__inner-circle`,title:`${to}__title`,subtitle:`${to}__subtitle`,actions:`${to}__actions`}),ts=()=>{var e,l;let i=e2(),[r,o]=(0,n.useState)(10),[s,c]=(0,n.useState)(0),u=(0,n.useRef)(void 0),d=()=>{(0,g.h)(a.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(i.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(i.startRegion)||""),i.setStartPopupVisible(!1)};return(0,n.useEffect)(()=>{let e,t,n,l;i.startPopupVisible?(t=1e3*(e=Number((" "+r).slice(1)))/100,n=0,l=0,u.current=setInterval(()=>{n++,l+=t,c(3.6*n);let i=e-Math.floor(l/1e3);i<r&&o(i),100===n&&(clearInterval(u.current),d())},t)):(clearInterval(u.current),o(10),c(0))},[i.startPopupVisible]),(0,t.jsxs)(tr,{isOpen:i.startPopupVisible,onClose:d,title:(0,t.jsx)("button",{type:"button",className:ta.progress,style:{background:`conic-gradient(#ff0508 ${s}deg, #e3e7ec 0deg)`},onClick:d,children:(0,t.jsx)("div",{className:ta.innerCircle,children:r})}),children:[(0,t.jsxs)("div",{className:ta.top,children:[(0,t.jsxs)("div",{className:ta.title,children:["Ваш город ",(null==(e=i.startTown)?void 0:e.name)||(null==(l=i.startRegion)?void 0:l.name)||"Вся Россия","?"]}),(0,t.jsx)("div",{className:ta.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,t.jsxs)("div",{className:ta.actions,children:[(0,t.jsx)(e8,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{(0,g.h)(a.D.button,"Да, все верно"),i.selectCity(i.startRegion,i.startTown)},children:"Да, все верно"}),(0,t.jsx)(e8,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{(0,g.h)(a.D.button,"Нет, изменить"),i.setStartPopupVisible(!1),i.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},tc=(0,f.g)("city-select","sc"),tu=Object.freeze({button:`${tc}__button`,minimal:`${tc}__minimal`,full:`${tc}__full`}),td=({initialTown:e})=>{var i;let o=e2(),a=(null==(i=o.town)?void 0:i.name)||e||"Вся Россия",{setIsChatModalOpen:s,isChatModalOpen:c}=ec(),{startPopupVisible:u,setStartPopupVisible:d,popupVisible:f}=o,p=(0,n.useRef)();(0,n.useEffect)(()=>{f&&(p.current="popup")},[f]),(0,n.useEffect)(()=>{c&&(p.current="chat")},[c]),(0,n.useEffect)(()=>{u&&(p.current="startPopup")},[u]),(0,n.useEffect)(()=>{p.current&&("chat"===p.current&&u?d(!1):["startPopup","popup"].includes(p.current)&&c&&s(!1))},[f,c,u,d,s]);let m={appearance:"ghost",size:"xs",onClick:()=>o.handleButtonClick(!1),iconLeft:(0,t.jsx)(eH,{size:24})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Button,{...m,className:(0,r.default)(tu.button,tu.full),label:a}),(0,t.jsx)(l.Button,{...m,className:(0,r.default)(tu.button,tu.minimal),shape:"icon"}),(0,t.jsx)(e6,{}),(0,t.jsx)(ts,{})]})},tf=({onClick:e,eventActionType:n,eventActionText:l,eventLabel:i,...r})=>(0,t.jsx)(w.Link,{onClick:t=>{null==e||e(t),(0,a.h)({eventCategory:d.H,eventActionType:n||a.D.link,eventActionText:l||"",eventLabel:i||""})},...r}),tp={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tm={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},th=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tv({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...tp,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(th,{viewBox:"0 0 24 24",style:tm}))}tv.displayName="IconFdsCloseO";let tg=(0,f.g)("header-mobile-app-banner","sc"),tw=Object.freeze({wrapper:`${tg}__wrapper`,container:`${tg}__container`,closeButton:`${tg}__close-button`,innerWrapper:`${tg}__inner-wrapper`,imageWrapper:`${tg}__image-wrapper`,image:`${tg}__image`,title:`${tg}__title`,description:`${tg}__description`,callToAction:`${tg}__call-to-action`,scanQr:`${tg}__scan-qr`}),tb=Object.freeze({mobile:56,desktop:68}),tx="headerBannerShownAt",ty=({minioUrl:e,className:s,mobileAppUrl:c})=>{let{fixedContainerRef:f,headerRef:p}=ec(),[m,h]=(0,n.useState)(!1),[v,g]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),x=(0,n.useCallback)((e="desktop")=>{let t=f.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${tb[e]+d.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${tb.desktop+d.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${tb.mobile+d.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${tb.mobile+d.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${tb.desktop+d.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${tb[e]+108}px`))},[]),y=(0,n.useCallback)(()=>{let e=f.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,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{v&&h(!1),b(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[v]),(0,n.useEffect)(()=>{let e;(!(e=(()=>{let e=localStorage.getItem(tx);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t})())||Math.floor((e.getTime()-new Date().getTime())/864e5)>5)&&h(!0)},[]),(0,n.useEffect)(()=>{let e=window.innerWidth<768;m&&(x(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!0):b(!0));let t=()=>{if(!m)return null;x(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{y(),window.removeEventListener("resize",t)}},[m,x,y]),m?(0,t.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":w,className:(0,r.default)(tw.wrapper,s),children:(0,t.jsx)(i.Container,{children:(0,t.jsxs)("div",{className:tw.container,children:[(0,t.jsxs)("div",{className:tw.innerWrapper,children:[(0,t.jsxs)("picture",{className:tw.imageWrapper,children:[(0,t.jsx)("source",{srcSet:(0,o.joinURL)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,t.jsx)("img",{className:tw.image,src:(0,o.joinURL)(e,"/logo/finuslugi/default-regular.svg"),loading:"lazy"})]}),(0,t.jsxs)("div",{className:tw.scanQr,children:[(0,t.jsx)("div",{className:tw.title,children:"Скачайте приложение Финуслуги"}),(0,t.jsx)("div",{className:tw.description,children:"Сканируйте QR-код"})]}),(0,t.jsxs)("div",{className:tw.callToAction,children:[(0,t.jsxs)("div",{children:["Приложение",(0,t.jsx)("br",{}),"Финуслуги"]}),(0,t.jsx)(l.Button,{onClick:()=>{(0,u.h)(a.D.button,"skachat_mob_prilozheniye_fu"),window.open(c,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,t.jsx)("div",{"aria-label":"Закрыть",role:"button",className:tw.closeButton,onClick:()=>{localStorage.setItem(tx,new Date().toISOString()),y(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!1):g(!0)},children:(0,t.jsx)(tv,{size:"100%"})})]})})}):null},t_={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tC={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tE(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tk=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 12.53a.75.75 0 010-1.06l6.5-6.5a.75.75 0 111.06 1.06L8.81 12l5.97 5.97a.75.75 0 11-1.06 1.06l-6.5-6.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function t$({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...t_,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&tE(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(tk,{viewBox:"0 0 24 24",style:tC}))}t$.displayName="IconFdsChevronLeftO";let tN=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tS({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...t_,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&tE(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(tN,{viewBox:"0 0 24 24",style:tC}))}tS.displayName="IconFdsChevronRightSmallO";let tR=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tj({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...t_,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&tE(l),...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(tR,{viewBox:"0 0 24 24",style:tC}))}tj.displayName="IconFdsLocationO";let tO=(0,f.g)("header-chat-modal-body","sc"),tA=Object.freeze({wrapper:`${tO}__wrapper`,cardButton:`${tO}__card-button`,card:`${tO}__card`,cardTitle:`${tO}__card-title`,cardSubtitle:`${tO}__card-subtitle`,button:`${tO}__button`}),tT=()=>{let e=ec();return(0,t.jsxs)("div",{className:tA.wrapper,children:[(0,t.jsx)(e8,{className:tA.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,t.jsxs)(b.Card,{className:tA.card,variant:"secondary",children:[(0,t.jsxs)("div",{className:tA.cardTitle,children:[(0,t.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,t.jsxs)("p",{className:tA.cardSubtitle,children:["Виртуальный ассистент доступен 24/7, ",(0,t.jsx)("br",{}),"операторы — с 6:00 до 23:59 мск"]})]})}),!1]})},tI={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tL={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tz=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tP({className:e,style:t,boxSize:l,size:i,onClick:r}){return n.default.createElement("span",{className:e,style:{...tI,...r&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},n.default.createElement(tz,{viewBox:"0 0 24 24",style:tL}))}tP.displayName="IconFdsArrowUpRightSmallO";let tM=({data:e,isMobile:l})=>{let i=ec();return(0,t.jsx)("div",{className:O.contentWrapper,children:e.map(e=>(0,t.jsx)(n.Fragment,{children:e.sections.map(e=>{var n;return(0,t.jsxs)("div",{className:(0,r.default)(O.content,{[O.hidden]:i.openedSection!==e.id,[O.contentOpen]:!!i.openedSection}),children:[(0,t.jsx)("div",{className:O.contentHeader,children:(0,t.jsx)("label",{children:e.title})}),null==(n=e.content)?void 0:n.map((n,i)=>{var o,s;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:(0,t.jsx)("a",{className:(0,r.default)(O.contentTitle,{[O.removed]:!n.title,[O.contentTitleUrl]:!!n.url,[O.contentTitleLink]:!!e.isSeeAllLinkAvailable,[O.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,t.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,t.jsx)("div",{className:O.arrowIcon,children:(0,t.jsx)(tP,{})}),n.title]})})}),!(null!=(o=n.links)&&o.length)&&(0,t.jsx)(T,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:l?3:2}),!!(null!=(s=n.links)&&s.length)&&(0,t.jsx)("div",{className:(0,r.default)(O.links,{[O.linksColumns]:!!n.columns,[O.linksTitleless]:!n.title}),children:n.links.map(e=>(0,t.jsxs)("a",{href:e.url,onClick:()=>(0,u.h)(a.D.link,e.title,`${e.title}_${e.url}`),children:[(0,t.jsx)("div",{className:O.arrowIcon,children:(0,t.jsx)(tP,{})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{children:e.title}),!!e.new&&(0,t.jsx)("span",{className:(0,r.default)({[O.newInline]:!!e.new})})]})]},e.url))})]},`${n.url}_${i}`)})]},e.id)})},e.id))})},tB=(0,f.g)("navigation-section-icon","sc"),tF=Object.freeze({icon:`${tB}`}),tD={IconFdsAcademicCapO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsAcademicCapO),IconFdsBankO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsBankO),IconFdsBookOpenO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsBookOpenO),IconFdsCalculatorO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCalculatorO),IconFdsCardO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCardO),IconFdsChatDotsCircleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsChatDotsCircleO),IconFdsCoinMultipleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCoinMultipleO),IconFdsDotsHorizontalO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsDotsHorizontalO),IconFdsFlashO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsFlashO),IconFdsGraphO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsGraphO),IconFdsLayoutHorizontalO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsLayoutHorizontalO),IconFdsPortfolioO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsPortfolioO),IconFdsRubleCircleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsRubleCircleO),IconFdsSafeO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsSafeO),IconFdsShieldCheckO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsShieldCheckO),IconFdsWalletO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsWalletO)},tH=e=>Object.prototype.hasOwnProperty.call(tD,e),tW=({name:e,background:l})=>{let[i,r]=(0,n.useState)(null);if((0,n.useEffect)(()=>{if(!e||!tH(e))return void r(null);let t=!0;return tD[e]().then(n=>{t&&r({name:e,component:n})}).catch(()=>{t&&r(null)}),()=>{t=!1}},[e]),!e||!tH(e))return null;let o=(null==i?void 0:i.name)===e?i.component:null;return(0,t.jsx)("div",{className:tF.icon,style:{background:l},children:o&&(0,t.jsx)(o,{})})},tU=(0,f.g)("navigation","sc"),tV=Object.freeze({navigation:`${tU}`,navigationOpening:`${tU}--opening`,navigationClosing:`${tU}--closing`,wrapper:`${tU}__wrapper`,container:`${tU}__container`,containerOpen:`${tU}__container--open`,sections:`${tU}__sections`,sectionsOpen:`${tU}__sections--open`,citySelectButton:`${tU}__city-select-button`,sectionsTitle:`${tU}__sections-title`,sectionsWrapper:`${tU}__sections-wrapper`,section:`${tU}__section`,sectionArrow:`${tU}__section-arrow`,sectionExtra:`${tU}__section--extra`,sectionActive:`${tU}__section--active`,sectionTitle:`${tU}__section-title`,chatWrapper:`${tU}__chat-wrapper`,chatHeader:`${tU}__chat-header`,backButton:`${tU}__back-button`,useful:`${tU}__useful`,usefulOpen:`${tU}__useful--open`,usefulTitle:`${tU}__useful-title`,usefulGrid:`${tU}__useful-grid`,removed:`${tU}__removed`}),tq=({data:e})=>{var o;let c=ec(),f=e2(),p=(0,s.useBreakpointDown)("m"),[m,h]=(0,n.useState)(!0);(0,n.useEffect)(()=>{h(p)},[p]);let v=(0,n.useRef)(null),g=(0,n.useCallback)(()=>{v.current&&clearTimeout(v.current),v.current=setTimeout(()=>c.openedSection?c.setOpenedSection(null):c.isNavigationOpen?c.setOpenedBlock(null):void 0,50)},[c]),w=(0,n.useRef)(!1),b=(0,n.useRef)(null),x=(0,n.useCallback)(()=>{m&&(w.current=!0,b.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,m]),y=(0,n.useCallback)(()=>{w.current=!1,window.onpopstate=b.current,window.history.go(-1)},[]),_=(0,n.useRef)(null),C=(0,n.useCallback)(e=>{if(m||!c.navMenuItemsRef.current||!c.navigationRef.current)return;let t=e.target,n=!c.navMenuItemsRef.current.contains(t)&&!c.navigationRef.current.contains(t);if(n&&!_.current){c.setIgnoreClicks(),_.current=setTimeout(()=>c.setOpenedBlock(null),300);return}!n&&_.current&&(clearTimeout(_.current),_.current=null)},[m,c]),E=(0,n.useRef)(null),k=(0,n.useCallback)(e=>{typeof window>"u"||(e?(E.current=C,window.addEventListener("mousemove",E.current)):E.current&&window.removeEventListener("mousemove",E.current))},[C]);(0,n.useEffect)(()=>{k(c.isNavigationOpen),c.isNavigationOpen&&!w.current&&x(),!c.isNavigationOpen&&w.current&&y()},[c.isNavigationOpen]);let $=(e,t)=>()=>{(0,u.h)(a.D.button,t),c.setOpenedSection(e)},{start:N,clear:S}=J(),R=()=>{m||S()};return(0,t.jsx)("div",{ref:c.navigationRef,className:(0,r.default)(tV.navigation,{[tV.removed]:!c.isNavigationMounted,[tV.navigationOpening]:c.isNavigationOpen,[tV.navigationClosing]:!c.isNavigationOpen}),children:(0,t.jsx)("div",{className:tV.wrapper,children:(0,t.jsxs)(i.Container,{className:(0,r.default)(tV.container,{[tV.containerOpen]:!!c.openedSection}),children:[(0,t.jsxs)("div",{className:(0,r.default)(tV.sections,{[tV.sectionsOpen]:!!c.openedSection}),children:[(0,t.jsx)(l.Button,{className:tV.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>f.handleButtonClick(!1),iconLeft:(0,t.jsx)(tj,{size:24}),label:(null==(o=f.town)?void 0:o.name)||"Вся Россия"}),e.map(e=>(0,t.jsxs)("ul",{className:(0,r.default)(tV.sectionsWrapper,{[tV.removed]:c.openedBlock!==e.id&&!m}),children:[(0,t.jsx)("div",{className:tV.sectionsTitle,children:d.a[e.id]}),e.sections.map(e=>{let n,l;return(0,t.jsxs)("li",{className:(0,r.default)(tV.section,{[tV.sectionExtra]:!!e.extra,[tV.sectionActive]:c.openedSection===e.id}),onClick:$(e.id,e.title),onMouseEnter:(n=e.id,l=e.title,()=>{m||N($(n,l),150)}),onMouseLeave:R,children:[c.isNavigationMounted&&(0,t.jsx)(tW,{name:e.uikitIcon,background:e.uikitIconBg}),(0,t.jsx)("span",{className:tV.sectionTitle,children:e.title}),(0,t.jsx)("div",{className:tV.sectionArrow,children:(0,t.jsx)(tS,{size:24})})]},e.id)})]},e.id)),(0,t.jsxs)("div",{className:tV.chatWrapper,children:[(0,t.jsx)("div",{className:tV.chatHeader,children:"Нужна помощь?"}),(0,t.jsx)(tT,{})]})]}),(0,t.jsxs)("button",{type:"button",className:(0,r.default)(tV.backButton,{[tV.removed]:!c.openedSection}),onClick:()=>{(0,u.h)(a.D.button,"Назад"),c.setOpenedSection(null)},children:[(0,t.jsx)(t$,{size:24}),(0,t.jsx)("span",{children:"Назад"})]}),(0,t.jsx)(tM,{data:e,isMobile:m}),(0,t.jsxs)("div",{className:(0,r.default)(tV.useful,{[tV.usefulOpen]:!!c.openedSection}),children:[(0,t.jsx)("div",{className:tV.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,t.jsx)(n.Fragment,{children:e.sections.map(e=>{var n;return(0,t.jsx)("div",{className:(0,r.default)(tV.usefulGrid,{[tV.removed]:c.openedSection!==e.id}),children:null==(n=e.useful)?void 0:n.map((e,n)=>(0,t.jsxs)("a",{href:e.url,onClick:()=>(0,u.h)(a.D.link,e.title,`${e.title}_${e.url}`),children:[(0,t.jsx)("div",{children:(0,t.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${n}`))},e.id)})},e.id))]})]})})})},tG=({data:e,showcaseUrl:s="https://finuslugi.ru",minioUrl:c="https://assets.finuslugi.ru/mp-assets",lkUrl:f="https://lk.finuslugi.ru/registration",initialTown:p,isMainBannerPage:m,enableAppHeaderBanner:h=!1,enableCertificatesBanner:v=!1,enableExternalLinkWarning:g=!1,news:w,className:b})=>{let x=ec(),y=(0,n.useMemo)(()=>((e,t,n)=>{var l,i,r,a,s,c,u;let d=(null==(i=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l.findIndex)?void 0:i.call(l,({id:e})=>"news"===e))||-1,f=(null==(a=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[d])?void 0:a.content)||[];if(null!=(u=null==(c=null==(s=null==e?void 0:e.NAVIGATOR)?void 0:s[d])?void 0:c.content)&&u[0]&&Array.isArray(n)&&f.length){let l=n.map(({title:e,url:n})=>({title:e,url:(0,o.joinURL)(t||"",n),new:0}));e.NAVIGATOR[d].content[0].links=l}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:[]}]})(e,s,w),[e,s,w]),_=null==e?void 0:e.config,C=!!e&&v&&!!m,E=(({enableCertificatesBanner:e,enableExternalLinkWarning:t,isMainBannerPage:l})=>{let[i,r]=(0,n.useState)("checking"),[o,a]=(0,n.useState)(!1),[s,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!1),m=(0,n.useRef)(),h=(0,n.useRef)(!1),v=(0,n.useRef)(!1),g=(0,n.useRef)(!1);(0,n.useRef)(null);let w=(0,n.useRef)(null),b=(0,n.useRef)(null),x=(0,n.useRef)(null),y=e&&l,_=y||t,C=(0,n.useCallback)(e=>{let t=m.current;t?t.call(window,e,"_blank","noopener,noreferrer"):window.open(e,"_blank","noopener,noreferrer")},[]),E=(0,n.useCallback)(()=>{a(!1),g.current=!1,w.current=null,b.current=null,x.current=null,p(!1)},[]),k=(0,n.useCallback)(e=>{eP(eg),v.current=!0,g.current=!1,w.current=e,p("external"===e&&null!==b.current),a(!0)},[]),$=(0,n.useCallback)(()=>!h.current&&("external"===w.current&&!g.current||!v.current),[]),N=(0,n.useCallback)(()=>{"external"!==w.current&&k("external")},[k]);(0,n.useEffect)(()=>{m.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&eP(eh),h.current=e||ez(eh),v.current=ez(eg),d(h.current),c(!0),()=>{b.current=null,x.current=null}},[]),(0,n.useEffect)(()=>{if(s){if(!y)return void r("skipped");r(e=>"shown"===e||"closing"===e||"dismissed"===e?e:u||ez(ev)?"skipped":"shown")}},[u,y,s]),(0,n.useEffect)(()=>{},[E,_,s]),(0,n.useEffect)(()=>{if(!s||!t)return;let e=m.current;if(!e)return;let n=!0,l=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let t=e.target.closest("a[href]");if(!t||e.defaultPrevented)return;let l=eM(t.href,window.location);if(!l||!$())return;e.preventDefault(),null===b.current&&(b.current=l.href,x.current={source:"external_anchor",host:l.hostname});let i=b.current;queueMicrotask(()=>{n&&$()&&b.current===i&&N()})},i=(t,n="_blank",l)=>{let i=eM(t,window.location);return i&&$()?(null===b.current&&(b.current=i.href,x.current={source:"external_window_open",host:i.hostname}),N(),null):e.call(window,t,n,l)};return window.open=i,document.addEventListener("click",l,!0),document.addEventListener("auxclick",l,!0),()=>{n=!1,document.removeEventListener("click",l,!0),document.removeEventListener("auxclick",l,!0),window.open===i&&(window.open=e)}},[t,s,$,N]),(0,n.useEffect)(()=>{var e;t||(b.current=null,(null==(e=x.current)?void 0:e.source)!=="banner"&&(x.current=null),p(!1),"external"===w.current&&E())},[E,t]),(0,n.useEffect)(()=>{y||"banner"===w.current&&E()},[E,y]),(0,n.useEffect)(()=>{_||E()},[E,_]);let S=(0,n.useCallback)(()=>{eP(ev),r("closing")},[]),R=(0,n.useCallback)(()=>{r("dismissed")},[]),j=(0,n.useCallback)(()=>{b.current=null,x.current={source:"banner"},k("banner")},[k]),O=(0,n.useCallback)(()=>{C("https://www.gosuslugi.ru/crt")},[C]),A=(0,n.useCallback)(()=>{C("https://browser.yandex.ru/")},[C]),T=(0,n.useCallback)(()=>{let e=b.current;e&&(eP(eg),v.current=!0,g.current=!0,C(e))},[C]);return{bannerStatus:i,isPopupOpen:o,popupAnalyticsContext:x.current,dismissBanner:S,finishBannerClosing:R,openPopupFromBanner:j,closePopup:E,openCertificatesPage:O,openYandexBrowserPage:A,continueToExternalPage:f?T:void 0}})({enableCertificatesBanner:C,enableExternalLinkWarning:g,isMainBannerPage:!!m}),k="shown"===E.bannerStatus||"closing"===E.bannerStatus,$=!C||"skipped"===E.bannerStatus,N=(0,n.useMemo)(()=>y.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[y]),S=x.isAuth?"Личный кабинет":"Войти",R=m&&x.isHeaderTransparent,j=(e,t,n,l)=>()=>{e!==x.openedBlock?(0,u.h)(a.D.toggle,t,"on"):(0,u.h)(a.D.button,"menu_close","on");let i=n?N[e]:"";x.setOpenedBlock(e,i,!!l)},{start:O,clear:A}=J(),T=e=>()=>{x.ignoreClicks||e()},I=(0,t.jsx)(eI,{isOpen:E.isPopupOpen,analyticsContext:E.popupAnalyticsContext,onClose:E.closePopup,onOpenCertificatesPage:E.openCertificatesPage,onOpenYandexBrowserPage:E.openYandexBrowserPage,onContinue:E.continueToExternalPage});return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:x.headerRef,className:(0,r.default)(d.s.header,b,{[d.s.transparent]:R}),children:(0,t.jsxs)("div",{ref:x.fixedContainerRef,className:(0,r.default)(d.s.fixed,{[d.s.hidden]:x.isHeaderHidden,[d.s.navigationOpen]:x.isNavigationOpen}),children:[k&&(0,t.jsx)(ey,{onDismiss:E.dismissBanner,onClosed:E.finishBannerClosing,onOpenDetails:E.openPopupFromBanner,onOpenCertificatesPage:E.openCertificatesPage,onOpenYandexBrowserPage:E.openYandexBrowserPage}),$&&!!(null!=_&&_.appBannerUrl)&&h&&(0,t.jsx)(ty,{mobileAppUrl:_.appBannerUrl,minioUrl:c}),(0,t.jsxs)(i.Container,{className:d.s.container,children:[(0,t.jsxs)("div",{className:d.s.leftRow,children:[(0,t.jsx)(tf,{className:d.s.logo,href:s,eventActionType:a.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${s}`,children:(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcSet:(0,o.joinURL)(c,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,t.jsx)("img",{src:(0,o.joinURL)(c,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,t.jsx)("nav",{ref:x.navMenuItemsRef,className:d.s.menuItems,children:(0,t.jsx)("ul",{children:d.b.map(({id:e,label:n})=>(0,t.jsx)("li",{children:(0,t.jsx)(l.Button,{className:(0,r.default)({[d.s.menuItemActive]:x.openedBlock===e&&x.isNavigationOpen}),label:n,variant:"white",size:"xs",onClick:T(j(e,n,!0)),onMouseEnter:()=>{x.isNavigationOpen&&e===x.openedBlock||x.setIgnoreClicks(),O(j(e,n,!0,!0),200)},onMouseLeave:A})},e))})}),(0,t.jsx)(e8,{className:(0,r.default)(d.s.tabletMenuButton,{[d.s.menuItemActive]:x.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,t.jsx)(H,{size:24}),onClick:j("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,t.jsxs)("div",{className:(0,r.default)(d.s.buttonGroup,{[d.s.whiteIcons]:(null==_?void 0:_.iconColorOnMobileMainBanner)==="white"}),children:[(0,t.jsxs)("div",{className:d.s.chips,children:[(0,t.jsx)(e8,{as:"a",href:f,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${f}`,iconLeft:(0,t.jsx)(Y,{size:20})}),(0,t.jsx)(e8,{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,t.jsx)(M,{size:24})})]}),(0,t.jsx)(e8,{className:d.s.menuButton,size:"xs",shape:R?"icon":"default",appearance:R?"ghost":"fill",label:"Меню",onClick:j("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,t.jsx)(q,{size:24})}),(0,t.jsxs)("div",{className:d.s.moreButtons,children:[(0,t.jsx)(td,{initialTown:p}),(0,t.jsx)(e8,{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,t.jsx)(F,{size:24}),children:"Онлайн чат"}),(0,t.jsx)(e8,{as:"a",href:f,size:"xs",eventActionText:S,eventLabel:`${S}_${f}`,label:S})]})]}),(0,t.jsxs)(tf,{className:d.s.auth,href:f,eventActionText:S,eventLabel:`${S}_${f}`,children:[(0,t.jsx)(e8,{size:"xs",shape:"circle-icon",iconLeft:(0,t.jsx)(Y,{}),eventActionText:S,eventLabel:`${S}_${f}`}),(0,t.jsx)("p",{children:S})]}),(0,t.jsx)("div",{className:d.s.close,children:(0,t.jsx)(e8,{className:d.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,t.jsx)(U,{}),onClick:()=>x.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,t.jsx)("div",{className:(0,r.default)(d.s.overlay,{[d.s.removed]:!x.isNavigationMounted,[d.s.overlayOpening]:x.isNavigationOpen,[d.s.overlayClosing]:!x.isNavigationOpen}),onClick:T(()=>x.setOpenedBlock(null))}),(0,t.jsx)(tq,{data:y,minioUrl:c}),I]}):g?I:null};e.s(["CitySelectProvider",0,({children:e,initialRegion:l,initialTown:i,showStartGeoPopup:r=!0,lastRegionsUpdateUnixTimestamp:o,dadataUrl:s="https://finuslugi.ru/backend/money/dadata",showcaseUrl:c="",useNewCitiesApi:u=!1})=>{let d=(0,g.d)(u),f=Number((0,g.p)(d.lastRegionsUpdateUnixTimestamp)||0),p=Number(o||0)>f,[m,h]=(0,n.useState)((0,g.g)(u)),v=(0,n.useRef)(m),[{startRegion:w,startTown:b},x]=(0,n.useState)({startRegion:e0.startRegion,startTown:e0.startTown}),y=l??e0.region,_=i??e0.town,[{region:C,town:E},k]=(0,n.useState)({region:y,town:_}),[$,N]=(0,n.useState)(e0.startPopupVisible),[S,R]=(0,n.useState)(e0.popupVisible),j=(0,n.useRef)(""),O=(0,n.useRef)(!1),A=(0,n.useMemo)(()=>(0,g.a)(m),[m]);(0,n.useEffect)(()=>{v.current=m},[m]);let T=(0,n.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)||""),N(!0),x({startRegion:e,startTown:t})},[N,x]),I=(0,n.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||T(e,t)},[T]),L=(0,n.useCallback)(()=>{if(j.current&&!C&&!E){let e=A.find(e=>e.name===j.current)??null;return I(m.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}I(C,E)},[C,E,A,m,I]),z=(0,n.useCallback)(e=>{R(e)},[R]),P=(0,n.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(d.allRussiaSelected,"1"),window.localStorage.setItem(d.userRegion,""),window.localStorage.setItem(d.userTown,""),(0,g.s)(null,null,u);return}window.localStorage.setItem(d.allRussiaSelected,"0"),window.localStorage.setItem(d.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(d.userTown,JSON.stringify(t)||""),(0,g.s)(e||null,t||null,u)},[d,u]),M=(0,n.useCallback)(e=>{e?(0,g.h)(a.D.icon,"location"):(0,g.h)(a.D.button,(null==E?void 0:E.name)||"Вся Россия"),!r||window.sessionStorage.getItem("start_popup_opened")?z(!0):L()},[r,E,z,L]),B=(0,n.useCallback)((e,t)=>{P(e,t),k({region:e||null,town:t||null}),N(!1),z(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[z,P]),F=()=>{let e=(0,g.e)(d.userRegion)??(0,g.p)(d.userRegion),t=(0,g.e)(d.userTown)??(0,g.p)(d.userTown),n=(0,g.b)(v.current,e,t),l=u&&(0,g.f)(e,t);l&&(O.current=!0),l&&(0,g.c)(n.region,n.town)&&(P(n.region,n.town),O.current=!1),k(n);let i=async({coords:{latitude:e,longitude:t}})=>{let n=`${s}?lat=${e}&lon=${t}`,l=await (0,g.j)(n);null!=l&&l.location&&(j.current=l.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&r)try{navigator.geolocation.getCurrentPosition(i,()=>null)}catch{}};return(0,n.useEffect)(()=>{(!(0,g.i)(m,u)||p)&&(0,g.l)({showcaseUrl:c,useNewCitiesApi:u}).then(e=>{e.length<1||h(e)})},[]),(0,n.useEffect)(()=>{if(!u)return;let e=(0,g.b)(m,C,E);O.current&&(0,g.c)(e.region,e.town)&&(P(e.region,e.town),O.current=!1),k(e)},[m,C,P,E,u]),(0,n.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{F(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{F()},0)},[]),(0,t.jsx)(e1.Provider,{value:{regions:m,towns:A,region:C,town:E,startPopupVisible:$,setStartPopupVisible:N,popupVisible:S,handleToggleModal:z,selectCity:B,handleButtonClick:M,startRegion:w,startTown:b},children:e})},"Header",0,e=>(0,t.jsx)(eu,{isMainBannerPage:e.isMainBannerPage,children:(0,t.jsx)(tG,{...e})}),"useCitySelectContext",0,e2],89867)}]);