(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7832],{432:()=>{},1448:(e,t,s)=>{"use strict";s.d(t,{N:()=>_,s:()=>v});var i=s(95155),a=s(12115),n=s(29722),r=s(20197),l=s(46089),u=s(7596),o=s(57349);let h={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},d={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},c=e=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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 p({className:e,style:t,boxSize:s,size:i,onClick:n}){return a.createElement("span",{className:e,style:{...h,...n&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...s&&{width:`${s}px`,height:`${s}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},a.createElement(c,{viewBox:"0 0 24 24",style:d}))}p.displayName="IconFdsDotsVerticalO";let m=(0,u.g)("navigation-chips","sc"),f=Object.freeze({wrapper:`${m}__wrapper`,gray:`${m}__variantGray`,white:`${m}__variantWhite`,container:`${m}__container`,chip:`${m}__chip`,more:`${m}__chip--more`,active:`${m}__chip--active`,icon:`${m}__icon`,label:`${m}__label`,hidden:`${m}__hidden`}),g=(0,u.g)("navigation-content","sc"),v=Object.freeze({contentWrapper:`${g}__content-wrapper`,content:`${g}__content`,contentOpen:`${g}__content--open`,contentHeader:`${g}__content-header`,contentTitle:`${g}__content-title`,contentTitleUrl:`${g}__content-title--url`,contentTitleLink:`${g}__content-title--link`,contentTitleNew:`${g}__content-title--new`,new:`${g}__new`,newInline:`${g}__new-inline`,vip:`${g}__vip`,arrowIcon:`${g}__arrow-icon`,links:`${g}__links`,linksColumns:`${g}__links--columns`,linksTitleless:`${g}__links--titleless`,removed:`${g}__removed`,hidden:`${g}__content--hidden`}),k=({chip:e,hidden:t,onClick:s,refCallback:a,activeChipId:u})=>{let h=!!s,d=()=>{if(h)return null==s?void 0:s(e.url);(0,l.h)(r.D.chip,e.title,`${e.title}_${e.url}`)},c=(0,i.jsxs)(i.Fragment,{children:[e.icon&&(0,i.jsx)("span",{className:f.icon,"aria-hidden":"true",children:e.icon}),(0,i.jsx)("span",{className:f.label,children:e.title}),e.arrow&&(0,i.jsx)(o.K,{size:24})]}),p=(0,n.A)(f.chip,{[f.hidden]:t,[v.new]:!!e.new,[v.vip]:!!e.vip,[f.active]:e.url===u});return h?(0,i.jsx)("button",{type:"button",className:p,onClick:d,ref:a,children:c}):(0,i.jsx)("a",{href:e.url,className:p,onClick:d,ref:a,children:c})},_=({items:e=[],maxNumberOfLines:t,variant:s,className:u,activeChipId:o,onClick:h,moreButtonOptions:d})=>{let c=(0,a.useRef)(null),m=(0,a.useRef)(null),g=(0,a.useRef)({}),v=(null==d?void 0:d.label)??"Еще",_="Еще",b=(null==d?void 0:d.showIcon)??!0,x=(0,n.A)(f.chip,f.more,null==d?void 0:d.className),[C,y]=(0,a.useState)(!1),[A,w]=(0,a.useState)(e.length),[E,F]=(0,a.useState)(!1);(0,a.useMemo)(()=>{let t=g.current;e.forEach(e=>{e.url in t||(t[e.url]=null)}),Object.keys(t).forEach(s=>{e.find(e=>String(e.url)===String(s))||delete t[s]})},[e]);let S=(0,a.useCallback)(()=>{let s=c.current;if(!s)return;let i=e=>e?e.getBoundingClientRect().width:0,a=i(s),n=Math.max(Number(t)||0,0),r=()=>{w(e.length),F(!1)};if(C||0===n||a<=0)return void r();let l=(()=>{try{let e=getComputedStyle(s),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),u=i(m.current),o=e.map(e=>i(g.current[e.url]));if(o.some(e=>0===e))return void r();let h=1,d=0,p=0;for(let e of o){let t=h===n?u+l:0,s=0===d?e:d+l+e;if(s+t<=a-.5)d=s,p++;else{if(++h>n)break;d=e,p++}}F(p<e.length),w(p)},[C,e,t]);(0,a.useLayoutEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(S)});return t.observe(e),requestAnimationFrame(S),()=>{t.disconnect()}},[S]),(0,a.useEffect)(()=>{requestAnimationFrame(S)},[S]);let B=C||(t??0)<=0||!E;return(0,i.jsx)("div",{className:(0,n.A)(u,f.wrapper,{[f.gray]:"gray"===s,[f.white]:"white"===s}),children:(0,i.jsxs)("div",{ref:c,className:f.container,children:[e.map((e,t)=>(0,i.jsx)(k,{chip:e,hidden:!B&&t>=A,activeChipId:o,onClick:h,refCallback:t=>{g.current[e.url]=t}},e.url)),!B&&E&&(0,i.jsxs)("button",{type:"button",ref:m,className:x,"aria-label":_,onClick:()=>{(0,l.h)(r.D.chip,_),y(!0)},children:[b&&(0,i.jsx)(p,{size:20}),(0,i.jsx)("span",{className:f.label,children:v})]}),(B||!E)&&(0,i.jsxs)("button",{type:"button",ref:m,className:(0,n.A)(x,f.hidden),tabIndex:-1,"aria-hidden":"true",children:[b&&(0,i.jsx)(p,{size:20}),(0,i.jsx)("span",{className:f.label,children:v})]})]})})}},4997:(e,t,s)=>{"use strict";s.d(t,{p:()=>l}),s(432),s(95155),s(531);var i=s(26159),a=s(7596),n=s(41463);let r=(0,a.g)("root-layout","sc"),l=(Object.freeze({layout:`${r}__layout`,body:`${r}__body`}),()=>{if(typeof window>"u")return{...n.env};let e=(0,i.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e})},6807:()=>{},11246:(e,t,s)=>{"use strict";s.d(t,{d:()=>a});var i=s(56853);let a=(e,t)=>{if(typeof window>"u")return;let s=sessionStorage.getItem("pushedEvents"),a=s?JSON.parse(s):[];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 n=a.find(s=>s.eventCategory===e.eventCategory&&s.eventAction===e.eventAction&&s.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===s.url));if(!t||!n){if(t){let t={...e};t.url=window.location.pathname,a.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(a))}(0,i.Fj)(e)}}},14051:(e,t,s)=>{e.exports=s(34701)()},15959:()=>{},17194:(e,t,s)=>{"use strict";s.d(t,{t:()=>a});let i={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},a=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(/[ \u00A0]/g,"_")},20197:(e,t,s)=>{"use strict";let i;s.d(t,{D:()=>r,h:()=>u});var a=s(17194),n=s(11246),r=((i=r||{}).icon="icon",i.chip="chip",i.accordion="accordion",i.button="button",i.checkbox="checkbox",i.radio="radio",i.select="select",i.toggle="toggle",i.tooltip="tooltip",i.link="link",i.banner="banner",i.tag="tag",i.date="date",i.field="field",i.offer="offer",i.tab="tab",i.submitButton="submitButton",i.popup="popup",i.block="block",i.show="show",i.close="close",i);let l={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_"},u=({eventCategory:e,eventActionType:t,eventActionText:s="",eventLabel:i})=>{let r={event:"data-event",eventCategory:e,eventAction:l[t]+(0,a.t)(s)};void 0!==i&&(r.eventLabel=(0,a.t)("string"==typeof i?i:i.toString())),(0,n.d)(r)}},24964:(e,t,s)=>{"use strict";s.d(t,{v:()=>o});var i=s(95155),a=s(12115),n=s(29722),r=s(83640);s(28994);let l=(0,r.g)("tag"),u=Object.freeze({tag:l,label:`${l}__label`,icon:`${l}__icon`,rounded:`${l}--rounded`,variant:{primary:`${l}--primary`,secondary:`${l}--secondary`,outline:`${l}--outline`,tertiary:`${l}--tertiary`,pink:`${l}--pink`,red:`${l}--red`,green:`${l}--green`,blue:`${l}--blue`,orange:`${l}--orange`,purple:`${l}--purple`,violet:`${l}--violet`,blur:`${l}--blur`},size:{s:`${l}--s`,m:`${l}--m`,l:`${l}--l`},iconMargin:{left:`${l}__icon--left`,right:`${l}__icon--right`}}),o=(0,a.forwardRef)(({label:e,size:t="m",rounded:s,variant:a="primary",iconLeft:r,iconRight:l,onIconLeftClick:o,onIconRightClick:h,className:d,style:c,dataQa:p,dataId:m,...f},g)=>(0,i.jsx)(i.Fragment,{children:e&&(0,i.jsxs)("div",{ref:g,className:(0,n.A)(u.tag,u.variant[a],u.size[t],{[u.rounded]:s},d),style:c,...f,"data-id":m,"data-qa":p,children:[r&&(0,i.jsx)("button",{type:"button",className:(0,n.A)(u.icon,u.iconMargin.left,{[u.size.l]:"l"===t}),onClick:e=>null==o?void 0:o(e),disabled:!o,children:r}),(0,i.jsx)("span",{className:(0,n.A)(u.label,u.size[t]),children:e}),l&&(0,i.jsx)("button",{type:"button",className:(0,n.A)(u.icon,u.iconMargin.right,{[u.size.l]:"l"===t}),onClick:e=>null==h?void 0:h(e),disabled:!h,children:l})]})}));o.displayName="Tag"},25007:()=>{},25968:()=>{},28994:()=>{},33715:(e,t,s)=>{"use strict";s.d(t,{m:()=>m});var i=s(95155),a=s(12115),n=s(76701),r=s(4901),l=s(9683),u=s(29722),o=s(37370),h=s(92681);let d=(0,s(83640).g)("tooltip"),c=Object.freeze({tooltip:d,text:`${d}__text`,wrapper:`${d}__wrapper`,inverted:`${d}--inverted`});s(25007);let p=({children:e,moveToBody:t})=>t?(0,i.jsx)(n.XF,{id:o.T,children:e}):(0,i.jsx)(i.Fragment,{children:e}),m=(0,a.forwardRef)(({position:e="top",text:t,zIndex:s=1,inverted:o,withoutTail:d,children:m,boundingOffset:f=12,boundaryPadding:g,moveToBody:v=!1,hideWhenOutOfBounds:k=!1,style:_,className:b,dataQa:x,dataId:C,...y},A)=>{let[w,E]=(0,a.useState)(!1),F=(0,a.useRef)(null),{refs:S,floatingStyles:B,context:D,middlewareData:V}=(0,n.we)({open:w,onOpenChange:E,placement:e,whileElementsMounted:r.ll,middleware:[(0,l.cY)({mainAxis:f}),(0,l.UU)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==g&&{padding:g}}),(0,l.BN)({...void 0!==g&&{padding:g}}),(0,l.UE)({element:F,padding:8}),...k?[(0,l.jD)({strategy:"escaped",padding:-24})]:[]]}),M=(0,n.Mk)(D,{delay:300}),{getReferenceProps:I,getFloatingProps:T}=(0,n.bv)([M]),R=(0,n.DL)(D,{duration:300});return(0,a.useImperativeHandle)(A,()=>({getActivatorElement:S.reference,getTooltipElement:S.floating})),(0,a.useEffect)(()=>{var e;(null==(e=V.hide)?void 0:e.escaped)&&E(!1)},[V.hide]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"data-qa":(0,h.g)(`${x}-activator`,!!x),ref:S.setReference,...I,className:c.wrapper,children:m}),R.isMounted&&(0,i.jsx)(p,{moveToBody:v,children:(0,i.jsxs)("div",{role:"tooltip",ref:S.setFloating,style:{...B,...R.styles,..._,zIndex:s},className:(0,u.A)(c.tooltip,b,{[c.inverted]:o}),...T,...y,"data-qa":x,"data-id":C,children:[(0,i.jsx)("span",{className:(0,u.A)(c.text,{[c.inverted]:o}),children:t}),!d&&(0,i.jsx)(n.ie,{ref:F,context:D,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:o?"var(--color-white)":"var(--color-black-500)"})]})})]})});m.displayName="Tooltip"},34337:(e,t,s)=>{"use strict";s.d(t,{u:()=>a});var i=s(12115);let a=(e=!1)=>{let[t,s]=(0,i.useState)(e),a=(0,i.useCallback)(()=>s(!0),[]);return{value:t,show:a,hide:(0,i.useCallback)(()=>s(!1),[]),toggle:(0,i.useCallback)(()=>s(e=>!e),[])}}},34701:(e,t,s)=>{"use strict";var i=s(82114);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,t,s,a,n,r){if(r!==i){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:a};return s.PropTypes=s,s}},37370:(e,t,s)=>{"use strict";s.d(t,{D:()=>n,M:()=>i,T:()=>a});let i="finkit-modals",a="finkit-tooltips",n="finkit-dropdown"},37637:(e,t,s)=>{"use strict";s.d(t,{I:()=>m});var i=s(95155),a=s(12115),n=s(76701),r=s(29722),l=s(86969);s(42879);var u=s(92681),o=s(34337),h=s(83640);s(56601);let d=(...e)=>(...t)=>{e.forEach(e=>{null==e||e(...t)})},c=(0,h.g)("input-base"),p={wrapper:c,input:`${c}__input`,container:`${c}__container`,label:`${c}__label`,field:`${c}__field`,slotLeft:`${c}__slot-left`,rightLabel:`${c}__right-label`,caption:`${c}__caption`,placeholder:{visible:`${c}__placeholder`,hidden:`${c}__hidden`},states:{primary:`${c}--primary`,secondary:`${c}--secondary`,error:`${c}--error`,success:`${c}--success`,s:`${c}--s`,m:`${c}--m`,l:`${c}--l`,focused:`${c}--focused`,disabled:`${c}--disabled`,active:`${c}--active`,hasLabel:`${c}--has-label`,accent:`${c}--accent`}},m=(0,a.forwardRef)(({icon:e,rightLabel:t,slotLeft:s,disabled:h,state:c,size:m="m",variant:f="primary",label:g,value:v,placeholder:k,maskPlaceholder:_,autoFocus:b=!1,maskPlaceholderVariant:x="default",caption:C,type:y="text",inputMode:A="text",hasCaption:w,className:E,style:F,dataQa:S,dataId:B,inputRef:D,onChange:V,onFocus:M,onBlur:I,onKeyDown:T,...R},$)=>{let N=(0,a.useId)(),{value:j,show:P,hide:O}=(0,o.u)(),L=(0,a.useRef)(null),z=(0,n.SV)([D,L]),U=(0,a.useMemo)(()=>j||!!v||!!k,[v,j,k]),q=(0,a.useCallback)(()=>{var e;null==(e=L.current)||e.focus()},[]),H=(0,a.useMemo)(()=>{if(!_)return null;let e={hidden:v??"",visible:_.substring((null==v?void 0:v.length)??0)};return _.length===(null==v?void 0:v.length)?null:e},[_,v]);return(0,a.useEffect)(()=>{var e,t,s;if(!b)return;let i=(null==(e=L.current)?void 0:e.value.length)??0;null==(t=L.current)||t.focus(),null==(s=L.current)||s.setSelectionRange(i,i)},[b]),(0,i.jsxs)("div",{className:(0,r.A)(E,p.wrapper),style:F,"data-qa":S,"data-id":B,children:[(0,i.jsxs)("div",{className:(0,r.A)(p.input,p.states[f],p.states[m],{[p.states.focused]:j,[p.states.error]:"error"===c,[p.states.success]:"success"===c,[p.states.disabled]:!!h,[p.states.hasLabel]:g}),onClick:q,ref:$,children:[s&&(0,i.jsx)("div",{className:p.slotLeft,children:s}),(0,i.jsxs)("label",{htmlFor:N,className:p.container,children:[g&&(0,i.jsx)("span",{className:(0,r.A)(p.label,{[p.states.active]:U,[p.states.s]:"s"===m,[p.states.disabled]:h,[p.states.error]:"error"===c,[p.states.success]:"success"===c}),children:g}),H&&!!v&&(0,i.jsxs)("div",{className:(0,r.A)(p.placeholder.visible,{[p.states.accent]:"accent"===x}),children:[H.hidden&&(0,i.jsx)("span",{className:p.placeholder.hidden,children:H.hidden}),H.visible]}),(0,i.jsx)("input",{...R,id:N,ref:z,className:(0,r.A)(p.field,{[p.states.s]:"s"===m,[p.states.hasLabel]:g,[p.states.disabled]:h}),type:y,inputMode:A,autoComplete:"off",placeholder:k,value:v,disabled:h,onChange:e=>{null==V||V(e.target.value,e)},onFocus:d(P,M),onBlur:d(O,I),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==V||V("",{target:{value:""}})),null==T||T(e)}})]}),t&&(0,i.jsx)("div",{className:(0,r.A)(p.rightLabel,{[p.states.disabled]:h}),children:t}),e]}),(w||C)&&(0,i.jsx)(l.C,{dataQa:(0,u.g)(`${S}-caption`,!!S),className:(0,r.A)(p.caption,{[p.states.disabled]:h}),state:c,withoutIcon:!0,children:C})]})});m.displayName="InputBase"},46089:(e,t,s)=>{"use strict";s.d(t,{H:()=>n,h:()=>o,i:()=>u,s:()=>r});var i=s(20197),a=s(56053);let n="finuslugi-header-height-change",r=(e,t,s)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),a=!1,r=0,l=0,u=window.innerWidth<768,o=()=>window.scrollY||document.documentElement.scrollTop,h=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},d=()=>{let e=window.innerWidth<768;e!==u&&(u=e,l=0)},c=function(){let n=o(),u=document.getElementById("headerNotice");if((null==u?void 0:u.getAttribute("data-opening"))==="true")return;l||(()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));l=Number.isNaN(t)?0:t,r=o()}})();let d=n<l,c=n<((null==i?void 0:i.clientHeight)||0);if(s&&c||d){a=!1,e(!1),t(!0),h(`${l}px`);return}e(a=n>r),a&&setTimeout(()=>t(!1),50),h(a?"0px":`${l}px`),r=n<=0?0:n},p=()=>{l=0,c()};return window.addEventListener("scroll",c),window.addEventListener("resize",d),window.addEventListener(n,p),()=>{window.removeEventListener("scroll",c),window.removeEventListener("resize",d),window.removeEventListener(n,p)}},l=(e,t,s)=>{let i=new Date;i.setTime(i.getTime()+864e5*s);let a=encodeURIComponent(JSON.stringify(t)),n=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${a};expires=${i.toUTCString()};path=/;SameSite=Lax${n}`},u=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{let e;(e=(()=>{let e=new URLSearchParams(window.location.search),t={};for(let[s,i]of Array.from(e.entries()))s.startsWith("utm_")&&(t[s]=i);return Object.keys(t).length>0?t:null})())&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&l("utm_params",e,90),e&&l("utm_last",e,90)}catch(e){console.error("UTM tracking error:",e)}},0)},o=(e,t,s)=>(0,i.h)({eventCategory:a.H,eventActionType:e,eventActionText:t,eventLabel:s})},51736:(e,t,s)=>{"use strict";s.d(t,{k:()=>l});var i=s(12115);let a={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},n={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},r=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 l({className:e,style:t,boxSize:s,size:u,onClick:o}){return i.createElement("span",{className:e,style:{...a,...o&&{cursor:"pointer"},...u&&{fontSize:`${u}px`},...s&&{width:`${s}px`,height:`${s}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(r,{viewBox:"0 0 24 24",style:n}))}l.displayName="IconFdsQuestionCircleO"},52708:(e,t,s)=>{"use strict";s.d(t,{D:()=>A,a:()=>B,g:()=>x,h:()=>D});var i=s(95155),a=s(83640),n=s(12115),r=s(29722),l=s(76701),u=s(4901),o=s(9683),h=s(37370),d=s(42879),c=s(92681),p=s(62849),m=s(26048);function f(){return"u"<typeof window}s(6807);let g=f()?n.useLayoutEffect:n.useEffect;function v(e,t=!1){return f()?t:window.matchMedia(e).matches}Object.freeze({divider:(0,a.g)("dropdown-divider")});let k=(0,a.g)("dropdown-group");Object.freeze({group:k,title:`${k}__title`,content:`${k}__content`});let _=(0,a.g)("dropdown-option"),b=Object.freeze({option:_,slot:`${_}__slot`,iconSlot:`${_}__slot--icon`,wrapper:`${_}__wrapper`,label:`${_}__label`,caption:`${_}__caption`,states:{danger:`${_}--danger`,success:`${_}--success`,focused:`${_}--focused`,disabled:`${_}--disabled`}});function x({as:e,label:t,caption:s,iconLeft:a,iconRight:l,prepend:u,append:o,variant:h="default",disabled:d=!1,focused:c=!1,className:p,onClick:m,...f}){let g=(0,r.A)(p,b.option,{[b.states.focused]:c,[b.states.success]:"success"===h,[b.states.danger]:"danger"===h,[b.states.disabled]:!!d}),v=(0,n.useCallback)(e=>{e.preventDefault(),d||null==m||m(e)},[d,m]);return(0,i.jsxs)(e||"div",{...f,className:g,"aria-disabled":d,onClick:v,children:[u&&(0,i.jsx)("span",{className:b.slot,children:u}),a&&(0,i.jsx)("span",{className:(0,r.A)(b.slot,b.iconSlot),children:a}),(0,i.jsxs)("div",{className:b.wrapper,children:[(0,i.jsx)("span",{className:b.label,children:t}),s&&(0,i.jsx)("span",{className:b.caption,children:s})]}),l&&(0,i.jsx)("span",{className:(0,r.A)(b.slot,b.iconSlot),children:l}),o&&(0,i.jsx)("span",{className:b.slot,children:o})]})}let C=(0,n.createContext)(null),y=()=>{let e=(0,n.useContext)(C);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e},A=({children:e,...t})=>{let s=function({placement:e="bottom",width:t="auto",desktopMaxHeight:s,mobileFullHeight:i=!1,title:a,description:r,opened:h,onToggle:d,heading:c,footer:p,dataQa:m,dataId:f}={}){let[g,v]=(0,n.useState)(!1),k=h??g,_=d??v,b=(0,l.we)({open:k,onOpenChange:_,placement:e,whileElementsMounted:u.ll,middleware:[(0,o.cY)(8),(0,o.UU)({fallbackAxisSideDirection:"none"}),(0,o.BN)({crossAxis:!1,padding:8})]});return(0,n.useMemo)(()=>({open:k,setOpen:_,...b,width:t,desktopMaxHeight:s,title:a,description:r,heading:c,footer:p,mobileFullHeight:i,dataQa:m,dataId:f}),[k,_,b,t,s,a,r,c,p,i,m,f])}(t);return(0,i.jsx)(C.Provider,{value:s,children:e})};A.displayName="Dropdown";let w=(0,a.g)("dropdown"),E=Object.freeze({dropdown:w,overlay:`${w}__overlay`,mobileHeading:`${w}__mobile-heading`,heading:`${w}__heading`,title:`${w}__title`,description:`${w}__description`,content:`${w}__content`,contentInner:`${w}__content-inner`,footer:`${w}__footer`,close:`${w}__close`,closeIcon:`${w}__close-icon`,states:{auto:`${w}--auto`,fullHeight:`${w}--full-height`}}),F=({footer:e,...t})=>e?(0,i.jsx)("div",{...t,className:E.footer,children:e}):null;F.displayName="DropdownFooter";let S=({title:e,description:t,heading:s,isDesktop:a,setOpen:r,...l})=>{let u=(0,n.useMemo)(()=>s||(a&&(e||t)?(0,i.jsxs)(i.Fragment,{children:[e&&(0,i.jsx)("div",{className:E.title,children:e}),t&&(0,i.jsx)("div",{className:E.description,children:t})]}):null),[t,s,a,e]);return(0,i.jsxs)(i.Fragment,{children:[!a&&(0,i.jsxs)("div",{...l,className:E.mobileHeading,children:[e&&(0,i.jsx)("div",{className:E.title,children:e}),t&&(0,i.jsx)("div",{className:E.description,children:t}),(0,i.jsx)("button",{className:E.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>r(!1),children:(0,i.jsx)(m.P,{"aria-hidden":"true",className:E.closeIcon,style:{display:"inline-flex"},children:(0,i.jsx)(p.S,{})})})]}),u&&(0,i.jsx)("div",{...l,className:E.heading,children:u})]})};S.displayName="DropdownHeader";let B=(0,n.forwardRef)(({style:e,contentInnerRef:t,...s},a)=>{var u,o;let{open:p,context:m,width:f,floatingStyles:k,refs:_,heading:b,title:x,description:C,footer:A,desktopMaxHeight:w,mobileFullHeight:B,dataQa:D,dataId:V,setOpen:M}=y(),I=(0,l.SV)([_.setFloating,a]),T=(0,n.useRef)(null),R=function(){let{minWidth:e}=d.a.s;return function(e,{defaultValue:t=!1,initializeWithValue:s=!0}={}){let[i,a]=(0,n.useState)(()=>s?v(e,t):t??!1);function r(){a(v(e))}return g(()=>{let t=window.matchMedia(e);return r(),"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},[e]),i}(`screen and (min-width: ${e}px)`)}(),{isMounted:$,styles:N}=(0,l.DL)(m,{initial:{opacity:.2,transform:R?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,n.useEffect)(()=>{let e=({target:e})=>{!p||[T.current,_.reference.current].some(t=>t===e||t&&t.contains(e))||M(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,_.reference,M]),!$)return null;let j=(0,i.jsxs)("div",{ref:T,className:(0,r.A)(E.dropdown,{[E.states.fullHeight]:B}),role:R?"popup":"dialog","aria-modal":!R,"data-id":V,"data-qa":D,style:N,children:[(0,i.jsx)(S,{title:x,description:C,heading:b,isDesktop:R,setOpen:M,"data-qa":(0,c.g)(`${D}-header`,!!D)}),(0,i.jsx)("div",{...s,className:E.content,"data-qa":(0,c.g)(`${D}-content`,!!D),children:(0,i.jsx)("div",{className:E.contentInner,style:{maxHeight:R?w:void 0},ref:t,children:s.children})}),(0,i.jsx)(F,{"data-qa":(0,c.g)(`${D}-header`,!!D),footer:A})]});if(R){let t;return"inherit"===f?t=null==(o=null==(u=null==_?void 0:_.reference)?void 0:u.current)?void 0:o.clientWidth:"auto"===f?t=void 0:"number"==typeof f&&(t=f),(0,i.jsx)("div",{className:(0,r.A)(E.overlay,{[E.states.auto]:"auto"===f}),style:{...e,...k,...void 0!==t&&{width:t}},ref:I,children:j})}return(0,i.jsx)(l.XF,{id:h.D,children:(0,i.jsx)(l.zR,{lockScroll:!0,className:(0,r.A)(E.overlay,{[E.states.auto]:"auto"===f}),style:e,ref:I,children:j})})});B.displayName="DropdownContent";let D=(0,n.forwardRef)(function({children:e,asChild:t=!1,disabled:s,...a},r){let{refs:u,open:o,setOpen:h}=y(),d=e.ref,c=(0,l.SV)([u.setReference,r,d]),p=(0,n.useCallback)(()=>{s||h(!o)},[s,o,h]);return t&&(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{ref:c,disabled:s,onClick:p,...a,...e.props}):(0,i.jsx)("button",{ref:c,onClick:p,disabled:s,...a,type:"button",children:e})});D.displayName="DropdownTrigger"},55727:(e,t,s)=>{"use strict";s.d(t,{N:()=>d});var i=s(95155),a=s(29722),n=s(12115),r=s(26048),l=s(83640);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:"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"}))}s(63914);let o=(0,l.g)("link"),h=Object.freeze({link:o,states:{inverted:`${o}--inverted`,disabled:`${o}--disabled`},content:`${o}__content`,icon:`${o}__icon`,size:{s:`${o}--s`,m:`${o}--m`}});function d({as:e,size:t="m",withIcon:s=!1,children:n,disabled:l,text:o,inverted:c,onClick:p,className:m,style:f,dataQa:g,dataId:v,...k}){let _=(0,a.A)(h.link,{[h.states.inverted]:c,[h.states.disabled]:l},h.size[t],m),b=o||n;return(0,i.jsx)(e||"a",{className:_,disabled:l,style:f,onClick:p,"aria-disabled":l,tabIndex:l?-1:0,...k,"data-id":v,"data-qa":g,children:s?(0,i.jsxs)("span",{className:h.content,children:[b,(0,i.jsx)(r.P,{className:h.icon,children:(0,i.jsx)(u,{})})]}):b})}d.displayName="Link"},56053:(e,t,s)=>{"use strict";s.d(t,{F:()=>h,H:()=>l,U:()=>n,a:()=>o,b:()=>u,c:()=>r,s:()=>a});let i=(0,s(7596).g)("header","sc"),a=Object.freeze({header:`${i}`,fixed:`${i}__fixed`,hidden:`${i}__fixed--hidden`,transparent:`${i}--transparent`,navigationOpen:`${i}__navigation-open`,container:`${i}__container`,leftRow:`${i}__left-row`,logo:`${i}__logo`,menuItems:`${i}__menu-items`,menuItemActive:`${i}__menu-item-active`,tabletMenuButton:`${i}__tablet-menu-button`,buttonGroup:`${i}__button-group`,chips:`${i}__chips`,menuButton:`${i}__menu-button`,moreButtons:`${i}__more-buttons`,auth:`${i}__auth`,whiteIcons:`${i}__white-icons`,close:`${i}__close`,removed:`${i}__removed`,overlay:`${i}__overlay`,overlayOpening:`${i}__overlay--opening`,overlayClosing:`${i}__overlay--closing`}),n="user_region",r="user_town",l="cb-header",u=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],o=u.reduce((e,t)=>(e[t.id]=t.label,e),{}),h=Object.freeze({mobile:56,desktop:80})},56601:()=>{},57349:(e,t,s)=>{"use strict";s.d(t,{K:()=>l});var i=s(12115);let a={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},n={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},r=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 l({className:e,style:t,boxSize:s,size:u,onClick:o}){return i.createElement("span",{className:e,style:{...a,...o&&{cursor:"pointer"},...u&&{fontSize:`${u}px`},...s&&{width:`${s}px`,height:`${s}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(r,{viewBox:"0 0 24 24",style:n}))}l.displayName="IconFdsArrowUpRightSmallO"},62849:(e,t,s)=>{"use strict";s.d(t,{S:()=>a});var i=s(12115);function a(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}))}},63154:()=>{},63914:()=>{},66627:(e,t,s)=>{"use strict";s.d(t,{l:()=>g});var i=s(95155),a=s(12115),n=s(29722);let r=(e,t,s)=>{if(e)return"object"!=typeof e?s:"function"==typeof t?t(e):e[t]};function l(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"a"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("g",{clipPath:"url(#a)"},a.createElement("path",{d:"m10.53 16.53 8.25-8.25a.743.743 0 0 0 0-1.06.743.743 0 0 0-1.06 0L10 14.94l-3.72-3.72a.743.743 0 0 0-1.06 0 .743.743 0 0 0 0 1.06l4.25 4.25c.146.147.323.22.53.22a.722.722 0 0 0 .53-.22Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}var u=s(26048),o=s(68224),h=s(70179),d=s(52708),c=s(83640);function p(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"m19.03 10.28-6.5 6.5a.75.75 0 0 1-1.06 0l-6.5-6.5a.75.75 0 1 1 1.06-1.06L12 15.19l5.97-5.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}s(63154);let m=(0,c.g)("select"),f={select:m,activator:`${m}__activator`,activatorWrapper:`${m}__activator-wrapper`,placeholder:`${m}__placeholder`,selected:`${m}__selected`,label:`${m}__label`,rightLabel:`${m}__right-label`,icon:`${m}__icon`,options:`${m}__options`,optionIcon:`${m}__option-icon`,caption:`${m}__caption`,states:{primary:`${m}--primary`,secondary:`${m}--secondary`,small:`${m}--s`,medium:`${m}--m`,large:`${m}--l`,opened:`${m}--opened`,error:`${m}--error`,success:`${m}--success`,selected:`${m}--selected`,disabled:`${m}--disabled`}};function g({value:e,label:t,options:s=[],optionValue:c="value",optionLabel:m="label",optionCaption:v="caption",optionDisabled:k="disabled",variant:_="primary",state:b,size:x="m",icon:C,rightLabel:y,clearable:A=!1,multiple:w=!1,disabled:E=!1,caption:F,placeholder:S,className:B,dataId:D,dataQa:V,isOpen:M=!1,classnameTrigger:I,selectedValue:T,onChange:R,onToggle:$,onSelect:N,onUnselect:j,onFocus:P,onBlur:O,...L}){let[z,U]=(0,a.useState)(!1),[q,H]=(0,a.useState)(),[K,Z]=(0,a.useState)(),[Y,W]=(0,a.useState)(!1),G=(0,a.useRef)(null),X=(0,a.useId)(),J=(0,a.useId)(),Q=(0,a.useId)();(0,a.useEffect)(()=>{e?H(e):H(w?[]:void 0)},[w,e]);let ee=(0,a.useMemo)(()=>s.map((e,t)=>{let s=r(e,c,e),i=w&&Array.isArray(q)?q.map(e=>r(e,c,e)):r(q,c,q);return{index:t,value:s,label:r(e,m,e),caption:r(e,v),disabled:r(e,k,!1),selected:w?Array.isArray(i)&&i.includes(s):i===s,active:K===t,original:e,id:`${Q}-option-${t}`}}),[K,Q,q,w,v,k,m,c,s]),et=(0,a.useMemo)(()=>ee.filter(e=>e.selected),[ee]),es=(0,a.useMemo)(()=>(0,o.i)(K)&&ee[K].id,[K]),ei=(0,a.useCallback)(e=>{H(e),null==R||R(e)},[R]),ea=(0,a.useCallback)(()=>{if(G.current&&es){let{start:e,end:t}=(e=>{let{width:t,height:s}=e.getBoundingClientRect();return{x:{start:e.scrollLeft,end:Math.floor(e.scrollLeft+t)},y:{start:e.scrollTop,end:Math.floor(e.scrollTop+s)}}})(G.current).y,s=document.getElementById(es);if(s){let i=s.offsetTop+s.clientHeight-t,a=e-s.offsetTop;i>0?G.current.scrollTop+=i+8:a>0&&(G.current.scrollTop-=a+8)}}},[es]),en=e=>{U(e),null==$||$(e)},er=(0,a.useCallback)(e=>{if(!(0,o.i)(e))return 0;let t=0===e?ee.length-1:e-1;return ee[t].disabled?er(t):t},[ee]),el=(0,a.useCallback)(e=>{if(!(0,o.i)(e))return 0;let t=e===ee.length-1?0:e+1;return ee[t].disabled?el(t):t},[ee]),eu=(0,a.useCallback)(e=>{let t=e&&e.index!==ee.length-1?ee[e.index+1]:ee[0];return t.disabled?eu(t):t},[ee]),eo=(0,a.useCallback)(e=>{let t=e&&0!==e.index?ee[e.index-1]:ee[ee.length-1];return t.disabled?eo(t):t},[ee]),eh=()=>{en(!0),Z(et.length>0?et[0].index:0)},ed=()=>{en(!1),Z(void 0)},ec=(0,a.useCallback)(e=>{if(!w){ei(A&&e.selected?void 0:e.original),ed();return}if(e.selected&&Array.isArray(q)){ei(q.filter(t=>r(t,c,t)!==e.value)),null==j||j(e.original);return}Array.isArray(q)&&(ei([...q,e.original]),null==N||N(e.original))},[A,ed,q,w,N,j,c,ei]),ep=(0,a.useCallback)(e=>{e.preventDefault(),z?ed():(A||w)&&(et.forEach(e=>null==j?void 0:j(e.original)),ei(w?[]:void 0))},[A,ed,w,j,z,et,ei]),em=(0,a.useCallback)(()=>{z&&ed()},[ed,z]),ef=(0,a.useCallback)(e=>{(e.preventDefault(),z)?Z(er(K)):w||ei(eo(et[0]).original)},[K,er,eo,w,z,et,ei]),eg=(0,a.useCallback)(e=>{(e.preventDefault(),z)?Z(el(K)):w?eh():ei(eu(et[0]).original)},[K,el,eu,w,z,eh,et,ei]),ev=(0,a.useCallback)(e=>{switch(W(!0),e.key){case"Escape":case"Esc":ep(e);break;case"Tab":em();break;case"ArrowDown":eg(e);break;case"ArrowUp":ef(e)}},[eg,ef,ep,em]),ek=(0,a.useCallback)(e=>{(e.preventDefault(),z)?((0,o.i)(K)&&ec(ee[K]),w||ed()):eh()},[K,ed,ec,ee,w,z,eh]),e_=(0,a.useCallback)(e=>{W(!0),(" "===e.key||"Enter"===e.key)&&ek(e)},[ek]);(0,a.useEffect)(()=>{M&&(()=>{en(!0);let{value:t,label:s}=(Array.isArray(e)?e[0]:e)??{},i=ee.find(e=>e.value===t&&e.label===s);Z((null==i?void 0:i.index)??0)})()},[M]),(0,a.useEffect)(()=>{z&&ea()},[z,ea]),(0,a.useEffect)(()=>{if(!z)return;let e=e=>{ev(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[ev,z]);let eb=(0,n.A)(I,f.activator,{[f.states.primary]:"primary"===_,[f.states.secondary]:"secondary"===_,[f.states.small]:"s"===x,[f.states.medium]:"m"===x,[f.states.large]:"l"===x,[f.states.error]:"error"===b,[f.states.success]:"success"===b,[f.states.opened]:z,[f.states.disabled]:E}),ex=(0,a.useMemo)(()=>et.length>0?(0,i.jsxs)(i.Fragment,{children:["s"!==x&&(0,i.jsx)("div",{id:J,className:(0,n.A)(f.label,{[f.states.error]:"error"===b,[f.states.success]:"success"===b,[f.states.opened]:z,[f.states.disabled]:E}),children:t},"label"),(0,i.jsx)("div",{className:(0,n.A)(f.selected,{[f.states.disabled]:E}),children:(null==T?void 0:T(et.map(e=>e.original)))||et.map(({label:e})=>e).join(", ")})]}):(0,i.jsx)("div",{id:J,className:(0,n.A)(f.placeholder,{[f.states.error]:"error"===b,[f.states.success]:"success"===b,[f.states.opened]:z,[f.states.disabled]:E}),children:S||t},"placeholder"),[E,t,J,z,S,et,T,x,b]);return(0,i.jsx)("div",{className:(0,n.A)(B,f.select),children:(0,i.jsxs)(d.D,{opened:z,onToggle:()=>{z?ed():eh()},width:"inherit",placement:"bottom",children:[(0,i.jsx)(d.h,{asChild:!0,disabled:E,children:(0,i.jsxs)("div",{className:eb,id:X,tabIndex:E?-1:0,role:"combobox","aria-haspopup":"listbox","aria-labelledby":J,"aria-controls":Q,"aria-disabled":E,"aria-expanded":z,...!E&&{onFocus:e=>{null==P||P(e)},onBlur:e=>{null==O||O(e)},onKeyDownCapture:e_,onKeyDown:z?void 0:ev},...L,"data-id":D,"data-qa":V,children:[(0,i.jsx)("div",{className:f.activatorWrapper,children:ex}),y&&(0,i.jsx)("div",{"aria-label":y,className:(0,n.A)(f.rightLabel,{[f.states.disabled]:E}),children:y}),C&&(0,i.jsx)("div",{"aria-hidden":"true",className:(0,n.A)(f.icon,{[f.states.disabled]:E}),children:C}),(0,i.jsx)("div",{className:(0,n.A)(f.icon,{[f.states.disabled]:E,[f.states.opened]:z}),children:(0,i.jsx)(u.P,{style:{fontSize:24},"aria-expanded":z,children:(0,i.jsx)(p,{})})})]})}),F&&(0,i.jsx)("div",{className:(0,n.A)(f.caption,{[f.states.error]:"error"===b,[f.states.success]:"success"===b,[f.states.secondary]:"secondary"===_,[f.states.disabled]:E}),children:F}),(0,i.jsx)(d.a,{contentInnerRef:G,children:(0,i.jsx)("ul",{role:"listbox",id:Q,className:f.options,onMouseOver:()=>{Y&&W(!1)},children:ee.map(e=>(0,i.jsx)(d.g,{as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active&&Y,onClick:()=>ec(e),prepend:w?(0,i.jsx)(h.C,{type:"checkbox",checked:e.selected,disabled:e.disabled}):void 0,append:w?void 0:(0,i.jsx)(u.P,{className:(0,n.A)(f.optionIcon,{[f.states.selected]:e.selected}),style:{fontSize:24},children:(0,i.jsx)(l,{})}),"aria-selected":e.selected,role:"option",id:e.id},JSON.stringify(e.value)))})})]})})}g.displayName="Select"},68224:(e,t,s)=>{"use strict";function i(e){return void 0!==e}s.d(t,{i:()=>i})},70179:(e,t,s)=>{"use strict";s.d(t,{C:()=>p});var i=s(95155),a=s(29722),n=s(12115),r=s(26048),l=s(83640);function u(e){return n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.836 6.466a1.5 1.5 0 0 1-.051 2.12l-9.45 9a1.5 1.5 0 0 1-2.07 0l-4.05-3.857a1.5 1.5 0 1 1 2.07-2.172L9.3 14.429l8.415-8.015a1.5 1.5 0 0 1 2.121.052Z"}))}function o(e){return n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}s(15959);let h=["checkbox"],d=(0,l.g)("common-marker"),c={marker:d,icon:`${d}__icon`,states:{checkbox:`${d}--checkbox`,radio:`${d}--radio`,toggle:`${d}--toggle`,error:`${d}--error`,checked:`${d}--checked`,disabled:`${d}--disabled`,inverted:`${d}--inverted`,indeterminate:`${d}--indeterminate`}},p=({as:e,state:t="default",type:s="checkbox",className:n,checked:l,inverted:d,disabled:p,...m})=>(0,i.jsx)(e||"span",{...m,className:(0,a.A)(n,c.marker,{[c.states.checkbox]:"checkbox"===s,[c.states.radio]:"radio"===s,[c.states.toggle]:"toggle"===s,[c.states.checked]:!!l,[c.states.indeterminate]:"indeterminate"===l,[c.states.error]:"error"===t,[c.states.inverted]:d,[c.states.disabled]:p}),children:h.includes(s)&&(0,i.jsx)(r.P,{className:(0,a.A)(c.icon,{[c.states.checked]:l,[c.states.inverted]:d,[c.states.error]:"error"===t,[c.states.disabled]:p}),children:"indeterminate"===l?(0,i.jsx)(o,{}):(0,i.jsx)(u,{})})});p.displayName="CommonMarker"},81143:(e,t,s)=>{"use strict";let i;s.d(t,{U:()=>Q});var a,n,r=s(95155),l=s(12115);function u(e){return"string"==typeof e||e instanceof String}function o(e){var t;return"object"==typeof e&&null!=e&&(null==e||null==(t=e.constructor)?void 0:t.name)==="Object"}let h="NONE",d="LEFT",c="FORCE_LEFT",p="RIGHT",m="FORCE_RIGHT";function f(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function g(e,t){let s;if(t===e)return!0;let i=Array.isArray(t),a=Array.isArray(e);if(i&&a){if(t.length!=e.length)return!1;for(s=0;s<t.length;s++)if(!g(t[s],e[s]))return!1;return!0}if(i!=a)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){let i=t instanceof Date,a=e instanceof Date;if(i&&a)return t.getTime()==e.getTime();if(i!=a)return!1;let n=t instanceof RegExp,r=e instanceof RegExp;if(n&&r)return t.toString()==e.toString();if(n!=r)return!1;let l=Object.keys(t);for(s=0;s<l.length;s++)if(!Object.prototype.hasOwnProperty.call(e,l[s]))return!1;for(s=0;s<l.length;s++)if(!g(e[l[s]],t[l[s]]))return!1;return!0}return!!t&&!!e&&"function"==typeof t&&"function"==typeof e&&t.toString()===e.toString()}class v{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?h:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?p:d}}function k(e,t){return new k.InputMask(e,t)}function _(e){if(null==e)throw Error("mask property should be defined");return e instanceof RegExp?k.MaskedRegExp:u(e)?k.MaskedPattern:e===Date?k.MaskedDate:e===Number?k.MaskedNumber:Array.isArray(e)||e===Array?k.MaskedDynamic:k.Masked&&e.prototype instanceof k.Masked?e:k.Masked&&e instanceof k.Masked?e.constructor:e instanceof Function?k.MaskedFunction:(console.warn("Mask not found for mask",e),k.Masked)}function b(e){if(!e)throw Error("Options in not defined");if(k.Masked){if(e.prototype instanceof k.Masked)return{mask:e};let{mask:t,...s}=e instanceof k.Masked?{mask:e}:o(e)&&e.mask instanceof k.Masked?e:{};if(t){let e=t.mask;return{...function e(t,s){return Array.isArray(s)?e(t,(e,t)=>s.includes(t)):Object.entries(t).reduce((e,t)=>{let[i,a]=t;return s(a,i)&&(e[i]=a),e},{})}(t,(e,t)=>!t.startsWith("_")),mask:t.constructor,_mask:e,...s}}}return o(e)?{...e}:{mask:e}}function x(e){if(k.Masked&&e instanceof k.Masked)return e;let t=b(e),s=_(t.mask);if(!s)throw Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===s&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new s(t)}k.createMask=x;class C{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}k.MaskElement=C;class y extends C{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return null!=(e=null==(t=(s=this.input).getRootNode)?void 0:t.call(s))?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){return this._handlers.redo&&(90===e.keyCode&&e.shiftKey&&(e.metaKey||e.ctrlKey)||89===e.keyCode&&e.ctrlKey)?(e.preventDefault(),this._handlers.redo(e)):this._handlers.undo&&90===e.keyCode&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),this._handlers.undo(e)):void(!e.isComposing&&this._handlers.selectionChange(e))}_onBeforeinput(e){return"historyUndo"===e.inputType&&this._handlers.undo?(e.preventDefault(),this._handlers.undo(e)):"historyRedo"===e.inputType&&this._handlers.redo?(e.preventDefault(),this._handlers.redo(e)):void 0}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}k.HTMLMaskElement=y;class A extends y{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}k.HTMLMaskElement=y;class w extends y{get _unsafeSelectionStart(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==s||s<i?s:i}get _unsafeSelectionEnd(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==s||s>i?s:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;let s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);let i=this.rootElement,a=i.getSelection&&i.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}k.HTMLContenteditableMaskElement=w;class E{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return 0===this.states.length}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>E.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}E.MAX_LENGTH=100;class F{constructor(e,t){this.el=e instanceof C?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new w(e):new A(e),this.masked=x(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new E,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return null==e||(null==(t=this.masked)?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof k.Masked)&&this.masked.constructor===_(e))return void this.masked.updateOptions({mask:e});let t=e instanceof k.Masked?e:x({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){let s=this._listeners[e];s&&s.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){let t=this.masked.unmaskedValue,s=this.masked.value,i=this.masked.rawInputValue,a=this.displayValue,n=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==i;this._unmaskedValue=t,this._value=s,this._rawInputValue=i,this.el.value!==a&&(this.el.value=a),"auto"===e?this.alignCursor():null!=e&&(this.cursorPos=e),n&&this._fireChangeEvents(),!this._historyChanging&&(n||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){let{mask:t,...s}=e,i=!this.maskEquals(t),a=this.masked.optionsIsChanged(s);i&&(this.mask=t),a&&this.masked.updateOptions(s),(i||a)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,d))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;let s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();let t=new v({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=s===this.masked.rawInputValue?t.removeDirection:h,n=this.masked.nearestInputPos(t.startChangePos+i,a);a!==h&&(n=this.masked.nearestInputPos(n,h)),this.updateControl(n),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}k.InputMask=F;class S{static normalize(e){return Array.isArray(e)?e:[e,new S]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}k.ChangeDetails=S;class B{constructor(e,t,s){void 0===e&&(e=""),void 0===t&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";let t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";let e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class D{constructor(e){this._value="",this._update({...D.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){void 0===t&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new B(this.extractInput(e,t),e)}appendTail(e){return u(e)&&(e=new B(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new S({inserted:e,rawInserted:e})):new S}_appendChar(e,t,s){let i;void 0===t&&(t={});let a=this.state;if([e,i]=this.doPrepareChar(e,t),e&&!(i=i.aggregate(this._appendCharRaw(e,t))).rawInserted&&"pad"===this.autofix){let s=this.state;this.state=a;let n=this.pad(t),r=this._appendCharRaw(e,t);n=n.aggregate(r),r.rawInserted||n.equals(i)?i=n:this.state=s}if(i.inserted){let e,n=!1!==this.doValidate(t);if(n&&null!=s){let t=this.state;if(!0===this.overwrite){e=s.state;for(let e=0;e<i.rawInserted.length;++e)s.unshift(this.displayValue.length-i.tailShift)}let a=this.appendTail(s);if(!((n=a.rawInserted.length===s.toString().length)&&a.inserted)&&"shift"===this.overwrite){this.state=t,e=s.state;for(let e=0;e<i.rawInserted.length;++e)s.shift();n=(a=this.appendTail(s)).rawInserted.length===s.toString().length}n&&a.inserted&&(this.state=t)}!n&&(i=new S,this.state=a,s&&e&&(s.state=e))}return i}_appendPlaceholder(){return new S}_appendEager(){return new S}append(e,t,s){let i;if(!u(e))throw Error("value should be string");let a=u(s)?new B(String(s)):s;null!=t&&t.tail&&(t._beforeTailState=this.state),[e,i]=this.doPrepare(e,t);for(let s=0;s<e.length;++s){let n=this._appendChar(e[s],t,a);if(!n.rawInserted&&!this.doSkipInvalid(e[s],t,a))break;i.aggregate(n)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&i.aggregate(this._appendEager()),null!=a&&(i.tailShift+=this.appendTail(a).tailShift),i}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new S}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;let t=this.rawInputValue,s=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==s&&0===s.indexOf(this.value)&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;let t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return void 0===t&&(t={}),S.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return void 0===t&&(t={}),S.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,i,a){let n;void 0===s&&(s=""),void 0===i&&(i=h),void 0===a&&(a={input:!0});let r=e+t,l=this.extractTail(r),u=!0===this.eager||"remove"===this.eager;u&&(i=function(e){switch(e){case d:return c;case p:return m;default:return e}}(i),n=this.extractInput(0,r,{raw:!0}));let o=e,f=new S;if(i!==h&&(f.tailShift=(o=this.nearestInputPos(e,t>1&&0!==e&&!u?h:i))-e),f.aggregate(this.remove(o)),u&&i!==h&&n===this.rawInputValue)if(i===c){let e;for(;n===this.rawInputValue&&(e=this.displayValue.length);)f.aggregate(new S({tailShift:-1})).aggregate(this.remove(e-1))}else i===m&&l.unshift();return f.aggregate(this.append(s,a,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!g(this,e)}typedValueEquals(e){let t=this.typedValue;return e===t||D.EMPTY_VALUES.includes(e)&&D.EMPTY_VALUES.includes(t)||!!this.format&&this.format(e,this)===this.format(this.typedValue,this)}pad(e){return new S}}D.DEFAULTS={skipInvalid:!0},D.EMPTY_VALUES=[void 0,null,""],k.Masked=D;class V{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=u(e)?new B(String(e)):e;let t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof B)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof V){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof k.MaskedPattern))return new B(this.toString()).appendTo(e);let t=new S;for(let s=0;s<this.chunks.length;++s){let i,a=this.chunks[s],n=e._mapPosToBlock(e.displayValue.length),r=a.stop;if(null!=r&&(!n||n.index<=r)&&((a instanceof V||e._stops.indexOf(r)>=0)&&t.aggregate(e._appendPlaceholder(r)),i=a instanceof V&&e._blocks[r]),i){let s=i.appendTail(a);t.aggregate(s);let n=a.toString().slice(s.rawInserted.length);n&&t.aggregate(e.append(n,{tail:!0}))}else t.aggregate(e.append(a.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){let{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(e=>{let t="chunks"in e?new V:new B;return t.state=e,t})}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";let t=null!=e?e-this.from:e,s=0;for(;s<this.chunks.length;){let e=this.chunks[s],i=e.unshift(t);if(e.toString()){if(!i)break;++s}else this.chunks.splice(s,1);if(i)return i}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){let t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}class M{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){let e=this._log.pop();return e&&(this.state=e),e}bindBlock(){!this.block&&(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null==(t=this.block)?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,c),0!==this.offset))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,d),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!this.block.isFixed&&(!this.block.isOptional||this.block.value))return this.offset=this.block.nearestInputPos(this.offset,d),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,m),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,h),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!this.block.isFixed&&(!this.block.isOptional||this.block.value))return this.offset=this.block.nearestInputPos(this.offset,h),!0})}}class I{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new S}nearestInputPos(e,t){void 0===t&&(t=h);let s=this._value.length;switch(t){case d:case c:return 0;default:return s}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),void 0===s&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new S;let s=!0===this.eager||"append"===this.eager,i=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,a=new S({inserted:this.char,rawInserted:i?this.char:""});return this._value=this.char,this._isRawInput=i&&(t.raw||t.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let e=new S;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new B("")}appendTail(e){return u(e)&&(e=new B(String(e))),e.appendTo(this)}append(e,t,s){let i=this._appendChar(e[0],t);return null!=s&&(i.tailShift+=this.appendTail(s).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class T{constructor(e){const{parent:t,isOptional:s,placeholderChar:i,displayChar:a,lazy:n,eager:r,...l}=e;this.masked=x(l),Object.assign(this,{parent:t,isOptional:s,placeholderChar:i,displayChar:a,lazy:n,eager:r})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.value.length),0===e&&t>=1)?(this.isFilled=!1,this.masked.remove(e,t)):new S}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new S;let s=this.masked.state,i=this.masked._appendChar(e,this.currentMaskFlags(t));return i.inserted&&!1===this.doValidate(t)&&(i=new S,this.masked.state=s),i.inserted||this.isOptional||this.lazy||t.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new S:(this.isFilled=!0,new S({inserted:this.placeholderChar}))}_appendEager(){return new S}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){void 0===t&&(t=h);let s=this.value.length,i=Math.min(Math.max(e,0),s);switch(t){case d:case c:return this.isComplete?i:0;case p:case m:return this.isComplete?i:s;default:return i}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(null==e||null==(t=e._beforeTailState)?void 0:t.masked)||(null==e?void 0:e._beforeTailState)}}pad(e){return new S}}T.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class R extends D{updateOptions(e){super.updateOptions(e)}_update(e){let t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}}k.MaskedRegExp=R;class $ extends D{constructor(e){super({...$.DEFAULTS,...e,definitions:Object.assign({},T.DEFAULT_DEFINITIONS,null==e?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){let e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let s=!1,i=!1;for(let a=0;a<t.length;++a){if(this.blocks){let e=t.slice(a),s=Object.keys(this.blocks).filter(t=>0===e.indexOf(t));s.sort((e,t)=>t.length-e.length);let i=s[0];if(i){let{expose:e,repeat:t,...s}=b(this.blocks[i]),n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...s,repeat:t,parent:this},r=null!=t?new k.RepeatBlock(n):x(n);r&&(this._blocks.push(r),e&&(this.exposeBlock=r),this._maskedBlocks[i]||(this._maskedBlocks[i]=[]),this._maskedBlocks[i].push(this._blocks.length-1)),a+=i.length-1;continue}}let n=t[a],r=n in e;if(n===$.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===n||"}"===n){s=!s;continue}if("["===n||"]"===n){i=!i;continue}if(n===$.ESCAPE_CHAR){if(!(n=t[++a]))break;r=!1}let l=r?new T({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...b(e[n]),parent:this}):new I({char:n,eager:this.eager,isUnmasking:s});this._blocks.push(l)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e)return void this.reset();let{_blocks:t,...s}=e;this._blocks.forEach((e,s)=>e.state=t[s]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;let t=new S,s=null==(e=this._mapPosToBlock(this.displayValue.length))?void 0:e.index;if(null==s)return t;this._blocks[s].isFilled&&++s;for(let e=s;e<this._blocks.length;++e){let s=this._blocks[e]._appendEager();if(!s.inserted)break;t.aggregate(s)}return t}_appendCharRaw(e,t){void 0===t&&(t={});let s=this._mapPosToBlock(this.displayValue.length),i=new S;if(!s)return i;for(let n=s.index,r;r=this._blocks[n];++n){var a;let s=r._appendChar(e,{...t,_beforeTailState:null==(a=t._beforeTailState)||null==(a=a._blocks)?void 0:a[n]});if(i.aggregate(s),s.consumed)break}return i}extractTail(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=new V;return e===t||this._forEachBlocksInRange(e,t,(e,t,i,a)=>{let n=e.extractTail(i,a);n.stop=this._findStopBefore(t),n.from=this._blockStartPos(t),n instanceof V&&(n.blockIndex=t),s.extend(n)}),s}extractInput(e,t,s){if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),void 0===s&&(s={}),e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(e,t,a,n)=>{i+=e.extractInput(a,n,s)}),i}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){let i=this._stops[s];if(i<=e)t=i;else break}return t}_appendPlaceholder(e){let t=new S;if(this.lazy&&null==e)return t;let s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;let i=s.index,a=null!=e?e:this._blocks.length;return this._blocks.slice(i,a).forEach(s=>{if(!s.lazy||null!=e){var i;t.aggregate(s._appendPlaceholder(null==(i=s._blocks)?void 0:i.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){let i=this._blocks[s],a=t.length;if(e<=(t+=i.displayValue).length)return{index:s,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+=t.displayValue.length,0)}_forEachBlocksInRange(e,t,s){void 0===t&&(t=this.displayValue.length);let i=this._mapPosToBlock(e);if(i){let e=this._mapPosToBlock(t),a=e&&i.index===e.index,n=i.offset,r=e&&a?e.offset:this._blocks[i.index].displayValue.length;if(s(this._blocks[i.index],i.index,n,r),e&&!a){for(let t=i.index+1;t<e.index;++t)s(this._blocks[t],t,0,this._blocks[t].displayValue.length);s(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,i,a)=>{s.aggregate(e.remove(i,a))}),s}nearestInputPos(e,t){if(void 0===t&&(t=h),!this._blocks.length)return 0;let s=new M(this,e);if(t===h)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===d||t===c){if(t===d){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===d){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===c?0:(s.popState(),s.ok||(s.popState(),s.ok))?s.pos:0}return t===p||t===m?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled())?s.pos:t===m?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok))?s.pos:this.nearestInputPos(e,d):e}totalInputPositions(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(e,t,i,a)=>{s+=e.totalInputPositions(i,a)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){let t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}pad(e){let t=new S;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}}$.DEFAULTS={...D.DEFAULTS,lazy:!0,placeholderChar:"_"},$.STOP_CHAR="`",$.ESCAPE_CHAR="\\",$.InputDefinition=T,$.FixedDefinition=I,k.MaskedPattern=$;class N extends ${get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{to:t=this.to||0,from:s=this.from||0,maxLength:i=this.maxLength||0,autofix:a=this.autofix,...n}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,i),this.autofix=a;let r=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0"),u=0;for(;u<l.length&&l[u]===r[u];)++u;n.mask=l.slice(0,u).replace(/0/g,"\\0")+"0".repeat(this.maxLength-u),super._update(n)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="",[,i,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(i.length)+a,s="9".repeat(i.length)+a),[t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9")]}doPrepareChar(e,t){let s;return void 0===t&&(t={}),[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(void 0===t&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);let s=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),[a,n]=this.boundaries(this.value+e);return Number(n)<this.from?super._appendCharRaw(s[this.value.length],t):Number(a)>this.to?!t.tail&&"pad"===this.autofix&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(i[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){let t=this.value;if(-1===t.search(/[^0]/)&&t.length<=this._matchFrom)return!0;let[s,i]=this.boundaries(t);return this.from<=Number(i)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){let t=new S;if(this.value.length===this.maxLength)return t;let s=this.value,i=this.maxLength-this.value.length;if(i){this.reset();for(let s=0;s<i;++s)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(e=>this._appendCharRaw(e))}return t}}k.MaskedRange=N;class j extends ${static extractPatternOptions(e){let{mask:t,pattern:s,...i}=e;return{...i,mask:u(t)?t:s}}constructor(e){super(j.extractPatternOptions({...j.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){let{mask:t,pattern:s,blocks:i,...a}={...j.DEFAULTS,...e},n=Object.assign({},j.GET_DEFAULT_BLOCKS());e.min&&(n.Y.from=e.min.getFullYear()),e.max&&(n.Y.to=e.max.getFullYear()),e.min&&e.max&&n.Y.from===n.Y.to&&(n.m.from=e.min.getMonth()+1,n.m.to=e.max.getMonth()+1,n.m.from===n.m.to&&(n.d.from=e.min.getDate(),n.d.to=e.max.getDate())),Object.assign(n,this.blocks,i),super._update({...a,mask:u(t)?t:s,blocks:n})}doValidate(e){let t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&null!=t&&(null==this.min||this.min<=t)&&(null==this.max||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(j.extractPatternOptions(e))}}j.GET_DEFAULT_BLOCKS=()=>({d:{mask:N,from:1,to:31,maxLength:2},m:{mask:N,from:1,to:12,maxLength:2},Y:{mask:N,from:1900,to:9999}}),j.DEFAULTS={...$.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:(e,t)=>{let[s,i,a]=e.split(".").map(Number);return new Date(a,i-1,s)}},k.MaskedDate=j;class P extends D{constructor(e){super({...P.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{let{expose:t,...s}=b(e),i=x({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});return t&&(this.exposeMask=i),i}):[])}_appendCharRaw(e,t){void 0===t&&(t={});let s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){void 0===e&&(e=""),void 0===t&&(t={}),void 0===s&&(s="");let i=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,a=this.rawInputValue,n=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:a,r=a.slice(n.length),l=this.currentMask,u=new S,o=null==l?void 0:l.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),n&&(this.currentMask.append(n,{raw:!0}),u.tailShift=this.currentMask.value.length-i.length),r&&(u.tailShift+=this.currentMask.append(r,{raw:!0,tail:!0}).tailShift)):o&&(this.currentMask.state=o)),u}_appendPlaceholder(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){let t=new S;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:(null==(t=e._beforeTailState)?void 0:t.currentMaskRef)===this.currentMask&&(null==(s=e._beforeTailState)?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return void 0===t&&(t={}),void 0===s&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){void 0===t&&(t={});let[s,i]=super.doPrepare(e,t);if(this.currentMask){let e;[s,e]=super.doPrepare(s,this.currentMaskFlags(t)),i=i.aggregate(e)}return[s,i]}doPrepareChar(e,t){void 0===t&&(t={});let[s,i]=super.doPrepareChar(e,t);if(this.currentMask){let e;[s,e]=super.doPrepareChar(s,this.currentMaskFlags(t)),i=i.aggregate(e)}return[s,i]}reset(){var e;null==(e=this.currentMask)||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!(null==(e=this.currentMask)?void 0:e.isComplete)}get isFilled(){var e;return!!(null==(e=this.currentMask)?void 0:e.isFilled)}remove(e,t){let s=new S;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:null==(e=this.currentMask)?void 0:e.state}}set state(e){let{compiledMasks:t,currentMaskRef:s,currentMask:i,...a}=e;t&&this.compiledMasks.forEach((e,s)=>e.state=t[s]),null!=s&&(this.currentMask=s,this.currentMask.state=i),super.state=a}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;let{mask:i,...a}=e[s];return g(t,a)&&t.maskEquals(i)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!(null==(t=this.currentMask)?void 0:t.typedValueEquals(e))}}P.DEFAULTS={...D.DEFAULTS,dispatch:(e,t,s,i)=>{if(!t.compiledMasks.length)return;let a=t.rawInputValue,n=t.compiledMasks.map((n,r)=>{let l=t.currentMask===n,u=l?n.displayValue.length:n.nearestInputPos(n.displayValue.length,c);return n.rawInputValue!==a?(n.reset(),n.append(a,{raw:!0})):l||n.remove(u),n.append(e,t.currentMaskFlags(s)),n.appendTail(i),{index:r,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(u,n.nearestInputPos(n.displayValue.length,c)))}});return n.sort((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[n[0].index]}},k.MaskedDynamic=P;class O extends ${constructor(e){super({...O.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){let{enum:t,...s}=e;if(t){let e=t.map(e=>e.length),i=Math.min(...e),a=Math.max(...e)-i;s.mask="*".repeat(i),a&&(s.mask+="["+"*".repeat(a)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){void 0===t&&(t={});let s=Math.min(this.nearestInputPos(0,m),this.value.length),i=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,s));if(i.length){1===i.length&&this._forEachBlocksInRange(0,this.value.length,(e,s)=>{let a=i[0][s];s>=this.value.length||a===e.value||(e.reset(),e._appendChar(a,t))});let e=super._appendCharRaw(i[0][this.value.length],t);return 1===i.length&&i[0].slice(this.unmaskedValue.length).split("").forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new S({skip:!this.isComplete})}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new B("",e)}remove(e,t){let s;if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),e===t)return new S;let i=Math.min(super.nearestInputPos(0,m),this.value.length);for(s=e;s>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice(i,s),i)).length>1);--s);let a=super.remove(s,t);return a.tailShift+=s-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}}O.DEFAULTS={...$.DEFAULTS,matchValue:(e,t,s)=>e.indexOf(t,s)===s},k.MaskedEnum=O;class L extends D{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}k.MaskedFunction=L;class z extends D{constructor(e){super({...z.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"("+f(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=RegExp(e+"\\d*"+t),this._mapToRadixRegExp=RegExp("["+this.mapToRadix.map(f).join("")+"]","g"),this._thousandsSeparatorRegExp=RegExp(f(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){let t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){void 0===t&&(t={});let[s,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(i.skip=!0),!s||this.allowPositive||this.value||"-"===s||i.aggregate(this._appendChar("-")),[s,i]}_separatorsCount(e,t){void 0===t&&(t=!1);let s=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return void 0===e&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){let s;void 0===t&&(t={});let i=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);let n=this._value;this._value+=e;let r=!isNaN(this.number),l=!1;if(r){let e;null!=this.min&&this.min<0&&this.number<this.min&&(e=this.min),null!=this.max&&this.max>0&&this.number>this.max&&(e=this.max),null!=e&&(this.autofix?(this._value=this.format(e,this).replace(z.UNMASKED_RADIX,this.radix),l||(l=n===this._value&&!t.tail)):r=!1),r&&(r=!!this._value.match(this._numberRegExp))}r?s=new S({inserted:this._value.slice(n.length),rawInserted:l?"":e,skip:l}):(this._value=n,s=new S),this._value=this._insertThousandsSeparators(this._value);let u=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(u);return s.tailShift+=(o-a)*this.thousandsSeparator.length,s}_findSeparatorAround(e){if(this.thousandsSeparator){let t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return -1}_adjustRangeWithSeparators(e,t){let s=this._findSeparatorAround(e);s>=0&&(e=s);let i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);let s=this.value.slice(0,e),i=this.value.slice(t),a=this._separatorsCount(s.length);return this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+i)),new S({tailShift:(this._separatorsCountFromSlice(s)-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case h:case d:case c:{let s=this._findSeparatorAround(e-1);if(s>=0){let i=s+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===c)return s}break}case p:case m:{let t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){let e=this.number,t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){let t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,s,i)=>t+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;let t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){void 0===t&&(t={});let i=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===z.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,z.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(z.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return null!=this.min&&this.min<0||null!=this.max&&this.max<0}get allowPositive(){return null!=this.min&&this.min>0||null!=this.max&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||z.EMPTY_VALUES.includes(e)&&z.EMPTY_VALUES.includes(this.typedValue))&&(0!==e||""!==this.value)}}z.UNMASKED_RADIX=".",z.EMPTY_VALUES=[...D.EMPTY_VALUES,0],z.DEFAULTS={...D.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[z.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},k.MaskedNumber=z;let U={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function q(e,t,s){void 0===t&&(t=U.MASKED),void 0===s&&(s=U.MASKED);let i=x(e);return e=>i.runIsolated(i=>(i[t]=e,i[s]))}k.PIPE_TYPE=U,k.createPipe=q,k.pipe=function(e,t,s,i){return q(t,s,i)(e)};class H extends ${get repeatFrom(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)?e:0}get repeatTo(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,i;let{repeat:a,...n}=b(e);this._blockOpts=Object.assign({},this._blockOpts,n);let r=x(this._blockOpts);this.repeat=null!=(t=null!=(s=null!=a?a:r.repeat)?s:this.repeat)?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&(null==(i=this._blocks)?void 0:i.length)||0,this.repeatFrom)),blocks:{m:r},eager:r.eager,overwrite:r.overwrite,skipInvalid:r.skipInvalid,lazy:r.lazy,placeholderChar:r.placeholderChar,displayChar:r.displayChar})}_allocateBlock(e){return e<this._blocks.length?this._blocks[e]:this.repeatTo===1/0||this._blocks.length<this.repeatTo?(this._blocks.push(x(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]):void 0}_appendCharRaw(e,t){void 0===t&&(t={});let s=new S;for(let l=null!=(i=null==(a=this._mapPosToBlock(this.displayValue.length))?void 0:a.index)?i:Math.max(this._blocks.length-1,0),u,o;u=null!=(n=this._blocks[l])?n:o=!o&&this._allocateBlock(l);++l){var i,a,n,r;let h=u._appendChar(e,{...t,_beforeTailState:null==(r=t._beforeTailState)||null==(r=r._blocks)?void 0:r[l]});if(h.skip&&o){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(h),h.consumed)break}return s}_trimEmptyTail(e,t){var s,i;let a;void 0===e&&(e=0);let n=Math.max((null==(s=this._mapPosToBlock(e))?void 0:s.index)||0,this.repeatFrom,0);null!=t&&(a=null==(i=this._mapPosToBlock(t))?void 0:i.index),null==a&&(a=this._blocks.length-1);let r=0;for(let e=a;n<=e&&!this._blocks[e].unmaskedValue;--e,++r);r&&(this._blocks.splice(a-r+1,r),this.mask=this.mask.slice(r))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return(void 0===e&&(e=0),null==t&&this.repeatTo===1/0)?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}k.RepeatBlock=H;try{globalThis.IMask=k}catch{}var K=s(14051);let Z={mask:K.oneOfType([K.array,K.func,K.string,K.instanceOf(RegExp),K.oneOf([Date,Number,k.Masked]),K.instanceOf(k.Masked)]),value:K.any,unmask:K.oneOfType([K.bool,K.oneOf(["typed"])]),prepare:K.func,prepareChar:K.func,validate:K.func,commit:K.func,overwrite:K.oneOfType([K.bool,K.oneOf(["shift"])]),eager:K.oneOfType([K.bool,K.oneOf(["append","remove"])]),skipInvalid:K.bool,onAccept:K.func,onComplete:K.func,placeholderChar:K.string,displayChar:K.string,lazy:K.bool,definitions:K.object,blocks:K.object,enum:K.arrayOf(K.string),maxLength:K.number,from:K.number,to:K.number,pattern:K.string,format:K.func,parse:K.func,autofix:K.oneOfType([K.bool,K.oneOf(["pad"])]),radix:K.string,thousandsSeparator:K.string,mapToRadix:K.arrayOf(K.string),scale:K.number,normalizeZeros:K.bool,padFractionalZeros:K.bool,min:K.oneOfType([K.number,K.instanceOf(Date)]),max:K.oneOfType([K.number,K.instanceOf(Date)]),dispatch:K.func,inputRef:K.oneOfType([K.func,K.shape({current:K.object})])},Y=Object.keys(Z).filter(e=>"value"!==e),W=["value","unmask","onAccept","onComplete","inputRef"],G=Y.filter(e=>0>W.indexOf(e)),X=(a=e=>{let{inputRef:t,...s}=e;return l.createElement("input",{...s,ref:t})},(n=class extends l.Component{constructor(e){super(e),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let e=this.props,t=this._extractMaskOptionsFromProps(e);if(t.mask)this.maskRef?(this.maskRef.updateOptions(t),"value"in e&&void 0!==e.value&&(this.maskValue=e.value)):this.initMask(t);else if(this.destroyMask(),"value"in e&&void 0!==e.value){var s;null!=(s=this.element)&&s.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=e.value:this.element.value=e.value}}componentWillUnmount(){this.destroyMask()}_inputRef(e){this.element=e,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=e:this.props.inputRef(e))}initMask(e){void 0===e&&(e=this._extractMaskOptionsFromProps(this.props)),this.maskRef=k(this.element,e).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(e){let{...t}=e;return Object.keys(t).filter(e=>0>G.indexOf(e)).forEach(e=>{delete t[e]}),t}_extractNonMaskProps(e){let{...t}=e;return Y.forEach(e=>{"maxLength"!==e&&delete t[e]}),"defaultValue"in t||(t.defaultValue=e.mask?"":t.value),delete t.value,t}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(e){this.maskRef&&(e=null==e&&"typed"!==this.props.unmask?"":e,"typed"===this.props.unmask?this.maskRef.typedValue=e:this.props.unmask?this.maskRef.unmaskedValue=e:this.maskRef.value=e)}_onAccept(e){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,e)}_onComplete(e){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,e)}render(){return l.createElement(a,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}}).displayName=void 0,n.propTypes=void 0,(i=n).displayName="IMask("+(a.displayName||a.name||"Component")+")",i.propTypes=Z,l.forwardRef((e,t)=>l.createElement(i,{...e,ref:t})));l.forwardRef((e,t)=>l.createElement(X,{...e,ref:t}));var J=s(37637);let Q=(0,l.forwardRef)(({maskOpts:e,value:t="",autoFocus:s=!1,onChange:i,onKeyDown:a,...n},u)=>{let[o,h]=(0,l.useState)(""),{ref:d,setValue:c,unmaskedValue:p}=function(e,t){let{onAccept:s,onComplete:i,ref:a=(0,l.useRef)(null),defaultValue:n,defaultUnmaskedValue:r,defaultTypedValue:u}=void 0===t?{}:t,o=(0,l.useRef)(null),[h,d]=(0,l.useState)({}),[c,p]=(0,l.useState)(""),[m,f]=(0,l.useState)(""),[g,v]=(0,l.useState)(),_=(0,l.useCallback)(()=>{var e;null==(e=o.current)||e.destroy(),o.current=null},[]),b=(0,l.useCallback)(()=>{let e=o.current;e&&(d({value:e.value,unmaskedValue:e.unmaskedValue,typedValue:e.typedValue}),v(e.typedValue),f(e.unmaskedValue),p(e.value))},[]),x=(0,l.useCallback)(e=>{let t=o.current;t&&(b(),null==s||s(t.value,t,e))},[s]),C=(0,l.useCallback)(e=>o.current&&(null==i?void 0:i(o.current.value,o.current,e)),[i]);return(0,l.useEffect)(()=>{let{value:e,...t}=h,s=o.current;s&&void 0!==c&&(e!==c&&(s.value=c,s.value!==c&&x()),d(t))},[c]),(0,l.useEffect)(()=>{let{unmaskedValue:e,...t}=h,s=o.current;s&&void 0!==m&&(e!==m&&(s.unmaskedValue=m,s.unmaskedValue!==m&&x()),d(t))},[m]),(0,l.useEffect)(()=>{let{typedValue:e,...t}=h,s=o.current;s&&void 0!==g&&(e!==g&&(s.typedValue=g,s.masked.typedValueEquals(g)||x()),d(t))},[g]),(0,l.useEffect)(()=>{let t=a.current;if(!t||!(null!=e&&e.mask))return _();let s=o.current;s?null==s||s.updateOptions(e):t&&null!=e&&e.mask&&(o.current=k(t,e),b(),void 0!==n&&p(n),void 0!==r&&f(r),void 0!==u&&v(u))},[e,_,x]),(0,l.useEffect)(()=>{if(!o.current)return;let e=o.current;return e.on("accept",x),e.on("complete",C),()=>{e.off("accept",x),e.off("complete",C)}},[x,C]),(0,l.useEffect)(()=>_,[_]),{ref:a,maskRef:o,value:c,setValue:p,unmaskedValue:m,setUnmaskedValue:f,typedValue:g,setTypedValue:v}}(e,{onAccept:(e,t)=>{h(e),null==i||i(t.unmaskedValue,e)}});return(0,l.useEffect)(()=>{t!==p&&(c(t),h(t))},[t,c,p]),(0,l.useImperativeHandle)(u,()=>d.current),(0,r.jsx)(J.I,{...n,autoFocus:s,inputRef:d,value:o,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),c(""),h(""),null==i||i("","")),null==a||a(e)}})});Q.displayName="InputMasked"},82114:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},82726:(e,t,s)=>{"use strict";s.d(t,{C:()=>o});var i=s(95155),a=s(57349),n=s(55727),r=s(29722);let l=(0,s(7596).g)("check-all","sc"),u=Object.freeze({wrapper:`${l}__wrapper`,link:`${l}__link`,icon:`${l}__icon`,iconGray:`${l}__icon--gray`}),o=({children:e,className:t,linkClassName:s,iconGrayBackground:l,Link:o,event:h,href:d,dataLayerPush:c,onClick:p})=>{let m=o??n.N;return(0,i.jsx)("div",{className:(0,r.A)(u.wrapper,t),onClick:()=>{h&&c(h)},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(null==p||p())},children:(0,i.jsxs)(m,{className:(0,r.A)(u.link,s),href:d,children:[e,(0,i.jsx)("span",{className:(0,r.A)(u.icon,{[u.iconGray]:l}),children:(0,i.jsx)(a.K,{size:24})})]})})}},86253:(e,t,s)=>{"use strict";s.d(t,{l:()=>i});let i={display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"}},86969:(e,t,s)=>{"use strict";s.d(t,{C:()=>p});var i=s(95155),a=s(29722),n=s(12115),r=s(26048),l=s(86253),u=s(83640);function o(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 h(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"}))}s(25968);let d=(0,u.g)("caption"),c=Object.freeze({caption:d,captionWithIcon:`${d}--with-icon`,content:`${d}__content`,icon:`${d}__icon`,text:`${d}__text`,size:{s:`${d}--s`,m:`${d}--m`},states:{success:`${d}--success`,error:`${d}--error`,warning:`${d}--warning`}});function p({as:e,children:t,state:s="default",size:n="m",text:u,withoutIcon:d=!1,lineClamp:m,role:f,dataQa:g,dataId:v,className:k,style:_,...b}){let x=u||t,C=!d&&["success","error","warning"].includes(s),y="success"===s?o:h,A=(0,a.A)(k,c.caption,c.size[n],{[c.captionWithIcon]:C,[c.states.success]:"success"===s,[c.states.error]:"error"===s,[c.states.warning]:"warning"===s});return(0,i.jsx)(e||"div",{className:A,style:_,role:f,...b,"data-id":v,"data-qa":g,children:(0,i.jsxs)("div",{className:c.content,children:[C&&x&&(0,i.jsx)(r.P,{className:c.icon,children:(0,i.jsx)(y,{})}),(0,i.jsx)("span",{className:(0,a.A)(c.text),style:{...m?{WebkitLineClamp:m,lineClamp:m,...l.l}:void 0},children:x})]})})}p.displayName="Caption"},92670:(e,t,s)=>{"use strict";s.d(t,{p:()=>a});let i=["credits","microCredits","autoCredits","cards"],a=(e,t)=>{if(typeof window>"u")return;let{pathname:s}=window.location;if("/"!==s&&"/home"!==s&&"/home/"!==s)return;let a=t=>{try{e({event:"data-event",eventCategory:t,eventAction:"click_button",eventLabel:"undefined",eventNameCard:"undefined",eventUrl:"undefined",eventValue:"undefined"})}catch{return}};"deposits"===t?a("ab_homepage_tolko_vklad"):(t&&i.includes(t)&&a("ab_homepage_tolko_kredit"),a("ab_homepage_krome_vkladov"))}}}]);