/*! For license information please see 2.8f9f6167.chunk.js.LICENSE.txt */ (this.webpackJsonpform=this.webpackJsonpform||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(244)},function(e,t,n){"use strict";e.exports=n(265)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(102);function a(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"vkuiClass"!==n&&(t[n]=e[n]);if(e.vkuiClass){var r=e.className,a=Object(o.a)(e.vkuiClass);t.className=r?r+" "+a:a}return t}function i(e,t){var n=arguments;if(!t||!("vkuiClass"in t))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=n[0],i[1]=a(t);for(var c=2;c>>0;if(0===r)return!1;var o,a,i=0|t,c=Math.max(i>=0?i:r-Math.abs(i),0);for(;c>>0,r=arguments[1],o=0;o=r.window.innerWidth-70)||r.state.browserSwipe||r.setState({browserSwipe:!0}),n===m.b&&null!==o&&void 0!==o&&o.isWebView&&r.props.onSwipeBack){var a,i;if(r.state.animated&&e.startX<=70||!r.window)return;if(e.startX<=70&&!r.state.swipingBack&&(null!==(a=null===(i=r.props.history)||void 0===i?void 0:i.length)&&void 0!==a?a:0)>1){var c;if(null!==r.state.activePanel)r.scrolls[r.state.activePanel]=null===(c=r.props.scroll)||void 0===c?void 0:c.getScroll().y;r.setState({swipingBack:!0,swipebackStartX:e.startX,swipeBackPrevPanel:r.state.activePanel,swipeBackNextPanel:r.props.history.slice(-2)[0]})}if(r.state.swipingBack){var l=0;if(e.shiftX<0)l=0;else if(e.shiftX>r.window.innerWidth-r.state.swipebackStartX){var u;l=null===(u=r.window)||void 0===u?void 0:u.innerWidth}else l=e.shiftX;r.setState({swipeBackShift:l})}}}})),$()(W()(r),"onEnd",(function(e){if(r.state.swipingBack&&r.window){var t,n,o=r.state.swipeBackShift/e.duration*1e3;0===r.state.swipeBackShift?r.onSwipeBackCancel():r.state.swipeBackShift>=(null!==(t=null===(n=r.window)||void 0===n?void 0:n.innerWidth)&&void 0!==t?t:0)?r.onSwipeBackSuccess():o>250||r.state.swipebackStartX+r.state.swipeBackShift>r.window.innerWidth/2?r.setState({swipeBackResult:oe.success}):r.setState({swipeBackResult:oe.fail})}})),r.state={animated:!1,visiblePanels:[e.activePanel],activePanel:e.activePanel,isBack:void 0,prevPanel:null,nextPanel:null,swipingBack:!1,swipebackStartX:0,swipeBackShift:0,swipeBackNextPanel:null,swipeBackPrevPanel:null,swipeBackResult:null,browserSwipe:!1},r}return K()(n,[{key:"document",get:function(){return this.props.document}},{key:"window",get:function(){return this.props.window}},{key:"panels",get:function(){return d.Children.toArray(this.props.children)}},{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){var e=M(this.props);e&&(ie[e]=this.scrolls)}},{key:"componentDidUpdate",value:function(e,t){var n,r=this;if(this.props.popout&&!e.popout&&this.blurActiveElement(),this.props.modal&&!e.modal&&this.blurActiveElement(),e.activePanel!==this.props.activePanel&&!t.swipingBack&&!t.browserSwipe){var o,a=this.panels.map((function(e){return M(e.props)})).find((function(t){return t===e.activePanel||t===r.props.activePanel}))===this.props.activePanel;this.scrolls[e.activePanel]=null===(o=this.props.scroll)||void 0===o?void 0:o.getScroll().y,this.shouldDisableTransitionMotion()?this.flushTransition(e.activePanel,a):(this.blurActiveElement(),this.setState({visiblePanels:[e.activePanel,this.props.activePanel],prevPanel:e.activePanel,nextPanel:this.props.activePanel,activePanel:null,animated:!0,isBack:a}),Q.supported||(this.animationFinishTimeout&&clearTimeout(this.animationFinishTimeout),this.animationFinishTimeout=setTimeout(this.transitionEndHandler,this.props.platform===m.a||this.props.platform===m.d?300:600)))}if(e.activePanel!==this.props.activePanel&&t.swipingBack){var i=this.props.activePanel,c=e.activePanel;null!==t.swipeBackPrevPanel&&(this.scrolls[t.swipeBackPrevPanel]=0),this.setState({swipeBackPrevPanel:null,swipeBackNextPanel:null,swipingBack:!1,swipeBackResult:null,swipebackStartX:0,swipeBackShift:0,activePanel:i,visiblePanels:[i]},(function(){var t;null!==r.state.activePanel&&(null===(t=r.props.scroll)||void 0===t||t.scrollTo(0,r.scrolls[r.state.activePanel]));e.onTransition&&e.onTransition({isBack:!0,from:c,to:i})}))}(!t.swipingBack&&this.state.swipingBack&&this.props.onSwipeBackStart&&this.props.onSwipeBackStart(),!t.swipeBackResult&&this.state.swipeBackResult&&this.waitTransitionFinish(this.pickPanel(this.state.swipeBackNextPanel),this.swipingBackTransitionEndHandler),t.swipeBackResult!==oe.fail||this.state.swipeBackResult||null===this.state.activePanel)||(null===(n=this.props.scroll)||void 0===n||n.scrollTo(0,this.scrolls[this.state.activePanel]));e.activePanel!==this.props.activePanel&&this.state.browserSwipe&&this.setState({browserSwipe:!1,nextPanel:null,prevPanel:null,animated:!1,visiblePanels:[this.props.activePanel],activePanel:this.props.activePanel})}},{key:"shouldDisableTransitionMotion",value:function(){var e,t;return!1===(null===(e=this.props.configProvider)||void 0===e?void 0:e.transitionMotionEnabled)||!(null!==(t=this.props.splitCol)&&void 0!==t&&t.animate)}},{key:"waitTransitionFinish",value:function(e,t){J.supported&&J.name&&e?(e.removeEventListener(J.name,t),e.addEventListener(J.name,t)):(this.transitionFinishTimeout&&clearTimeout(this.transitionFinishTimeout),this.transitionFinishTimeout=setTimeout(t,this.props.platform===m.a||this.props.platform===m.d?300:600))}},{key:"blurActiveElement",value:function(){var e;"undefined"!==typeof this.window&&null!==(e=this.document)&&void 0!==e&&e.activeElement&&this.document.activeElement.blur()}},{key:"pickPanel",value:function(e){if(null!==e)return this.panelNodes[e]}},{key:"flushTransition",value:function(e,t){var n=this,r=this.props.activePanel;t&&(this.scrolls[e]=0),this.setState({prevPanel:null,nextPanel:null,visiblePanels:[r],activePanel:r,animated:!1,isBack:void 0},(function(){var o;null===(o=n.props.scroll)||void 0===o||o.scrollTo(0,t?n.scrolls[r]:0),n.props.onTransition&&n.props.onTransition({isBack:t,from:e,to:r})}))}},{key:"onSwipeBackSuccess",value:function(){this.props.onSwipeBack&&this.props.onSwipeBack()}},{key:"onSwipeBackCancel",value:function(){this.props.onSwipeBackCancel&&this.props.onSwipeBackCancel(),this.setState({swipeBackPrevPanel:null,swipeBackNextPanel:null,swipingBack:!1,swipeBackResult:null,swipebackStartX:0,swipeBackShift:0})}},{key:"calcPanelSwipeStyles",value:function(e){if(!r.a||!this.window)return{};var t=e===this.state.swipeBackPrevPanel,n=e===this.state.swipeBackNextPanel;if(!t&&!n||this.state.swipeBackResult)return{};var o="".concat(this.state.swipeBackShift,"px"),a="".concat(100*this.state.swipeBackShift/this.window.innerWidth/2-50,"%"),i=.3*(this.window.innerWidth-this.state.swipeBackShift)/this.window.innerWidth;return this.state.swipeBackResult?t?{boxShadow:"-2px 0 12px rgba(0, 0, 0, ".concat(i,")")}:{}:n?{transform:"translate3d(".concat(a,", 0, 0)"),WebkitTransform:"translate3d(".concat(a,", 0, 0)")}:t?{transform:"translate3d(".concat(o,", 0, 0)"),WebkitTransform:"translate3d(".concat(o,", 0, 0)"),boxShadow:"-2px 0 12px rgba(0, 0, 0, ".concat(i,")")}:{}}},{key:"render",value:function(){var e=this,t=this.props,n=t.popout,r=t.modal,o=t.platform,a=(t.activePanel,t.splitCol,t.configProvider,t.history,t.nav,t.onTransition,t.onSwipeBack,t.onSwipeBackStart,t.onSwipeBackCancel,t.window,t.document,t.scroll,s()(t,ae)),c=this.state,l=c.prevPanel,u=c.nextPanel,d=c.activePanel,p=c.swipeBackPrevPanel,m=c.swipeBackNextPanel,b=c.swipeBackResult,g=c.isBack,y=c.animated,w=!!n,O=!!r,j=this.panels.filter((function(t){var n=M(t.props);return void 0!==n&&e.state.visiblePanels.includes(n)||n===p||n===m})),C=this.shouldDisableTransitionMotion(),E={"View--animated":!C&&y,"View--swiping-back":!C&&this.state.swipingBack,"View--no-motion":C};return Object(f.a)(ee.a,i()({Component:"section"},a,{vkuiClass:Object(v.a)(Object(h.a)("View",o),E),onMoveX:this.onMoveX,onEnd:this.onEnd}),Object(f.a)("div",{vkuiClass:"View__panels"},j.map((function(t){var n,r=M(t.props),o=y&&r===(g?l:u),a=r===l||r===p||r===m||r===u&&g;return Object(f.a)("div",{vkuiClass:Object(v.a)("View__panel",{"View__panel--active":r===d,"View__panel--prev":r===l,"View__panel--next":r===u,"View__panel--swipe-back-prev":r===p,"View__panel--swipe-back-next":r===m,"View__panel--swipe-back-success":b===oe.success,"View__panel--swipe-back-failed":b===oe.fail}),onAnimationEnd:o?e.transitionEndHandler:void 0,ref:function(t){return void 0!==r&&(e.panelNodes[r]=t)},style:e.calcPanelSwipeStyles(r),key:r},Object(f.a)("div",{vkuiClass:"View__panel-in",style:{marginTop:a?-(null!==(n=e.scrolls[r])&&void 0!==n?n:0):void 0}},Object(f.a)(P,{entering:r===u||r===m},t)))}))),Object(f.a)(x.a,null,w&&Object(f.a)("div",{vkuiClass:"View__popout"},n),O&&Object(f.a)("div",{vkuiClass:"View__modal"},r)))}}]),n}(d.Component));$()(ce,"defaultProps",{history:[]});var le=re(re(re(ne(Object(R.e)(ce)),O,"splitCol"),b.a,"configProvider"),k,"scroll"),ue=["fixed"],se="data-tooltip-container",fe=d.forwardRef((function(e,t){var n=e.fixed,r=void 0!==n&&n,o=s()(e,ue);return o[se]=r?"fixed":"true",Object(f.a)("div",i()({},o,{ref:t}))})),de=n(34),pe=["centered","children","getRootRef","sizeX","nav"],ve=Object(de.a)((function(e){var t=e.centered,n=void 0!==t&&t,r=e.children,o=e.getRootRef,a=e.sizeX,c=(e.nav,s()(e,pe)),l=Object(D.a)();return Object(f.a)("div",i()({},c,{ref:o,vkuiClass:Object(v.a)(Object(h.a)("Panel",l),"Panel--".concat(a),$()({"Panel--centered":n},"Panel--sizeX-".concat(a),!0))}),Object(f.a)(ee.a,{Component:fe,vkuiClass:"Panel__in"},l===m.b&&Object(f.a)("div",{vkuiClass:"Panel__fade"}),Object(f.a)("div",{vkuiClass:"Panel__in-before"}),n?Object(f.a)("div",{vkuiClass:"Panel__centered"},r):r,Object(f.a)("div",{vkuiClass:"Panel__in-after"})))}),{sizeX:!0}),he=n(58),me=["children","style","vertical","getRootRef","getRef","filled"],be=function(e){var t=e.children,n=e.style,r=e.vertical,o=e.getRootRef,a=e.getRef,c=e.filled,u=s()(e,me),p=Object(D.a)(),m=d.useState(void 0),b=l()(m,2),g=b[0],w=b[1],j=Object(R.d)().window,x=d.useContext(O).colRef,C=function(){return w(null!==x&&void 0!==x&&x.current?"".concat(x.current.offsetWidth,"px"):void 0)};return d.useEffect(C,[x]),Object(he.a)(j,"resize",C),Object(f.a)(fe,i()({},u,{fixed:!0,ref:o,vkuiClass:Object(v.a)(Object(h.a)("FixedLayout",p),{"FixedLayout--filled":c},"FixedLayout--".concat(r)),style:y()(y()({},n),{},{width:g})}),Object(f.a)("div",{vkuiClass:"FixedLayout__in",ref:a},t))},ge=["wide","expanded"],ye=function(e){var t=e.wide,n=e.expanded,r=s()(e,ge),o=Object(D.a)();return Object(f.a)("div",i()({},r,{"aria-hidden":"true",vkuiClass:Object(v.a)(Object(h.a)("Separator",o),{"Separator--wide":t})}),Object(f.a)("div",{vkuiClass:Object(v.a)("Separator__in",{"Separator__in--expanded":n})}))},we=d.memo(ye),Oe=n(45),je=n(53),xe=d.createContext({updateModalHeight:function(){},registerModal:function(){},isInsideModal:!1});function Ce(e,t){var n=d.useContext(xe),r=d.useRef({}).current;return Object(A.a)((function(){if(void 0!==e){n.registerModal(y()(y()({},r),{},{type:t,id:e}));var o=Object.keys(r).reduce((function(e,t){return y()(y()({},e),{},$()({},t,null))}),{type:t,id:e});return function(){return n.registerModal(o)}}}),[]),{refs:d.useRef({modalElement:function(e){return r.modalElement=e},innerElement:function(e){return r.innerElement=e},headerElement:function(e){return r.headerElement=e},contentElement:function(e){return r.contentElement=e}}).current}}var Ee=xe,ke=["left","children","right","separator","visor","transparent","shadow","getRef","getRootRef","sizeX","sizeY","fixed"],Se=function(e){var t=e.children,n=e.left,r=e.right,o=d.useContext(b.a).webviewType,a=d.useContext(Ee).isInsideModal,i=Object(D.a)();return Object(f.a)(fe,{fixed:!0,vkuiClass:"PanelHeader__in"},Object(f.a)("div",{vkuiClass:"PanelHeader__left"},n),Object(f.a)("div",{vkuiClass:"PanelHeader__content"},i===m.d?Object(f.a)(je.a,{weight:"medium"},t):Object(f.a)("span",{vkuiClass:"PanelHeader__content-in"},t)),Object(f.a)("div",{vkuiClass:"PanelHeader__right"},(o===b.b.INTERNAL||a)&&r))},Ne=function(e){var t=e.left,n=(e.children,e.right),r=e.separator,o=e.visor,a=e.transparent,c=e.shadow,l=e.getRef,u=e.getRootRef,p=e.sizeX,g=(e.sizeY,e.fixed),y=s()(e,ke),w=Object(D.a)(),O=d.useContext(b.a).webviewType,j=d.useContext(Ee).isInsideModal,x=c&&p===Oe.b.REGULAR,C=void 0!==g?g:w!==m.c.VKCOM;return Object(f.a)("div",i()({},y,{vkuiClass:Object(v.a)(Object(h.a)("PanelHeader",w),{"PanelHeader--trnsp":a,"PanelHeader--shadow":x,"PanelHeader--vis":o,"PanelHeader--sep":r&&o,"PanelHeader--vkapps":O===b.b.VKAPPS&&!j,"PanelHeader--no-left":!t,"PanelHeader--no-right":!n,"PanelHeader--fixed":C},"PanelHeader--sizeX-".concat(p)),ref:C?u:l}),C?Object(f.a)(be,{vkuiClass:"PanelHeader__fixed",vertical:"top",getRootRef:l},Object(f.a)(Se,e)):Object(f.a)(Se,e),r&&o&&w!==m.d&&Object(f.a)(we,{vkuiClass:"PanelHeader__separator",expanded:p===Oe.b.REGULAR}))};Ne.defaultProps={separator:!0,transparent:!1,visor:!0};var _e=Object(de.a)(Ne,{sizeX:!0,sizeY:!0}),Pe=["popout","modal","viewWidth","viewHeight","hasMouse","children","getRootRef"],Me=function(e){var t=e.popout,n=e.modal,r=e.viewWidth,o=e.viewHeight,a=e.hasMouse,c=e.children,l=e.getRootRef,u=s()(e,Pe),p=Object(R.d)().document,v=r>=Oe.d.SMALL_TABLET&&(a||o>=Oe.c.MEDIUM);return d.useEffect((function(){t&&Object(R.b)(p)}),[p,t]),Object(f.a)("div",i()({},u,{vkuiClass:"PopoutRoot",ref:l}),c,Object(f.a)(x.a,null,!!t&&Object(f.a)("div",{vkuiClass:v?"PopoutRoot--absolute":"PopoutRoot__popout"},t),!!n&&Object(f.a)("div",{vkuiClass:"PopoutRoot__modal"},n)))};Me.displayName="PopoutRoot";var Te=Object(de.a)(Me,{viewWidth:!0,viewHeight:!0,hasMouse:!0}),Re=["popout","modal","header","children","getRootRef","getRef"],Ae=function(e){var t=e.popout,n=e.modal,r=e.header,o=e.children,a=e.getRootRef,c=e.getRef,l=s()(e,Re),u=Object(D.a)();return Object(f.a)(Te,{vkuiClass:Object(h.a)("SplitLayout",u),popout:t,modal:n,getRootRef:a},r,Object(f.a)("div",i()({},l,{ref:c,vkuiClass:Object(v.a)("SplitLayout__inner",{"SplitLayout__inner--header":!!r})}),o))},Ie=["alignY","alignX","closing","hasMask","fixed","children","onClick"],De=function(e){var t=e.alignY,n=void 0===t?"center":t,r=e.alignX,o=void 0===r?"center":r,a=e.closing,c=void 0!==a&&a,u=e.hasMask,p=void 0===u||u,b=e.fixed,g=void 0===b||b,y=e.children,w=e.onClick,O=s()(e,Ie),j=Object(D.a)(),x=d.useState(!p),C=l()(x,2),E=C[0],k=C[1],S=d.useRef(null),N=function(e){e&&"vkui-animation-full-fade-in"!==e.animationName||k(!0)},_=Object(I.a)(N,j===m.b?300:200);d.useEffect((function(){!E&&_.set()}),[_,E]);var P=Object(R.d)().window;Object(he.a)(P,"touchmove",(function(e){return e.preventDefault()}),{passive:!1});var M=Object(h.a)("PopoutWrapper",j);return Object(f.a)("div",i()({},O,{vkuiClass:Object(v.a)(M,"PopoutWrapper--v-".concat(n),"PopoutWrapper--h-".concat(o),{"PopoutWrapper--closing":c,"PopoutWrapper--opened":E,"PopoutWrapper--fixed":g,"PopoutWrapper--masked":p}),onAnimationEnd:E?void 0:N,ref:S}),Object(f.a)("div",{vkuiClass:"PopoutWrapper__container"},Object(f.a)("div",{vkuiClass:"PopoutWrapper__overlay",onClick:w}),Object(f.a)("div",{vkuiClass:"PopoutWrapper__content"},y)))},Le=n(122);var ze,Be=n(67);!function(e){e.PAGE="page",e.CARD="card"}(ze||(ze={}));var Fe=n(52),Ve=n(79),Ke=n(92),He=["Component","onClose","restoreFocus","timeout","getRootRef","children"],We=Ve.a.join(),Ue=function(e){var t=e.Component,n=void 0===t?"div":t,r=e.onClose,o=void 0===r?C.g:r,a=e.restoreFocus,c=void 0===a||a,u=e.timeout,p=void 0===u?0:u,v=e.getRootRef,h=e.children,m=s()(e,He),b=Object(Fe.a)(v),g=Object(R.d)(),y=g.document,w=g.window,O=d.useState(null),j=l()(O,2),x=j[0],E=j[1],k=d.useState(null),S=l()(k,2),N=S[0],_=S[1],P=d.useContext(Ke.a).keyboardInput,M=Object(I.a)((function(){var e;!P||null!==(e=b.current)&&void 0!==e&&e.contains(y.activeElement)||null===x||void 0===x||!x.length||x[0].focus()}),p);Object(A.a)((function(){M.set()}),[]),Object(A.a)((function(){if(!b.current)return Object(C.g)();var e=[];return Array.prototype.forEach.call(b.current.querySelectorAll(We),(function(t){var n=w.getComputedStyle(t),r=n.display,o=n.visibility;"none"!==r&&"hidden"!==o&&e.push(t)})),null!==e&&void 0!==e&&e.length&&E(e),Object(C.g)()}),[h]);var T=Object(I.a)((function(){N&&N.focus()}),p);Object(A.a)((function(){return c&&y.activeElement?(_(y.activeElement),function(){T.set()}):Object(C.g)()}),[c]);return Object(he.a)(y,"keydown",(function(e){if(Object(Ve.c)(e)===Ve.b.TAB&&null!==x&&void 0!==x&&x.length){var t=x.length-1,n=x.findIndex((function(t){return t===e.target})),r=-1===n||n===t&&!e.shiftKey;if(r||0===n&&e.shiftKey){e.preventDefault();var a=x[r?0:t];return a!==y.activeElement&&a.focus(),!1}}return Object(Ve.c)(e)===Ve.b.ESCAPE&&o(),!0}),{capture:!0}),Object(f.a)(n,i()({ref:b},m),h)},Ye=n(69),Ge=n.n(Ye);function qe(e){return d.Children.toArray(e)}Object(T.a)("ModalRoot");function Xe(e,t){if("setActive"===t.type&&t.id!==e.activeModal){var n=t.id,r=e.exitingModal||e.activeModal,o=e.history?Ge()(e.history):[],a=Boolean(n&&o.includes(n));return null===n?o=[]:a?o=o.splice(0,o.indexOf(n)+1):o.push(n),{activeModal:n,enteringModal:null,exitingModal:r,history:o,isBack:a}}return"entered"===t.type&&t.id===e.enteringModal?y()(y()({},e),{},{enteringModal:null}):"exited"===t.type&&t.id===e.exitingModal?y()(y()({},e),{},{exitingModal:null}):"inited"===t.type&&t.id===e.activeModal?y()(y()({},e),{},{enteringModal:t.id}):e}function $e(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C.g,o=d.useRef({}).current;qe(t).forEach((function(e){var t=e.props,n=M(t),r=void 0!==n&&o[n]||{id:null!==n&&void 0!==n?n:null};r.onClose=e.props.onClose,r.dynamicContentHeight=!!t.dynamicContentHeight,"number"===typeof t.settlingHeight&&(r.settlingHeight=t.settlingHeight),null!==r.id&&(o[r.id]=r)}));var a=e&&!o[e],i=a?null:e,c=d.useReducer(Xe,{activeModal:i,enteringModal:null,exitingModal:null,history:i?[i]:[],isBack:!1}),u=l()(c,2),s=u[0],f=u[1];Object(A.a)((function(){f({type:"setActive",id:null!==i&&void 0!==i?i:null})}),[e]),Object(A.a)((function(){s.activeModal&&(r(o[s.activeModal]),f({type:"inited",id:s.activeModal}))}),[s.activeModal]);var p=function(e){var t;return null!=e&&(null===(t=o[e])||void 0===t?void 0:t.type)===ze.CARD},v=d.useCallback((function(e){return f({type:"entered",id:e})}),[]),h=d.useCallback((function(e){return f({type:"exited",id:e})}),[]),m=Boolean(s.exitingModal&&(p(e)||p(s.exitingModal))),b=d.useCallback((function(e){return o[e]}),[o]);function g(){var e=s.activeModal&&o[s.activeModal];e&&(Object(C.d)(e.onClose)?e.onClose():Object(C.d)(n)&&n(e.id))}return y()(y()({onEnter:v,onExit:h},s),{},{delayEnter:m,getModalState:b,closeActiveModal:g})}function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.g;return function(t){return function(n){var r=$e(n.activeModal,n.children,n.onClose,e);return Object(f.a)(t,i()({},n,r))}}}var Qe=["id"],Je=Object(T.a)("ModalRoot");function et(e,t){return!!t&&(e>=t[0]&&e<=t[1])}function tt(e){return Math.max(0,Math.min(98,e))}var nt=function(e){Y()(n,e);var t=q()(n);function n(e){var r;return F()(this,n),r=t.call(this,e),$()(W()(r),"documentScrolling",!1),$()(W()(r),"maskElementRef",void 0),$()(W()(r),"viewportRef",d.createRef()),$()(W()(r),"maskAnimationFrame",void 0),$()(W()(r),"modalRootContext",void 0),$()(W()(r),"frameIds",void 0),$()(W()(r),"restoreFocusTo",void 0),$()(W()(r),"preventTouch",(function(e){if(!e)return!1;for(;e.originalEvent;)e=e.originalEvent;return e.preventDefault&&e.preventDefault(),!1})),$()(W()(r),"updateModalTranslate",(function(){var e=r.getModalState(r.props.activeModal);e&&r.animateTranslate(e,e.translateY)})),$()(W()(r),"updateModalHeight",(function(){var e=r.getModalState(r.props.activeModal);e&&e.type===ze.PAGE&&e.dynamicContentHeight&&(r.props.enteringModal?r.waitTransitionFinish(e,(function(){requestAnimationFrame((function(){return r.checkPageContentHeight()}))})):requestAnimationFrame((function(){return r.checkPageContentHeight()})))})),$()(W()(r),"onTouchMove",(function(e){if(!r.props.exitingModal){var t=r.getModalState(r.props.activeModal);if(t)return t.type===ze.PAGE?r.onPageTouchMove(e,t):t.type===ze.CARD?r.onCardTouchMove(e,t):void 0}})),$()(W()(r),"onTouchEnd",(function(e){var t=r.getModalState(r.props.activeModal);return(null===t||void 0===t?void 0:t.type)===ze.PAGE?r.onPageTouchEnd(e,t):(null===t||void 0===t?void 0:t.type)===ze.CARD?r.onCardTouchEnd(e,t):void 0})),$()(W()(r),"onScroll",(function(e){var t,n=r.props.activeModal,o=e.target;if(n){var a=r.getModalState(n);(null===a||void 0===a?void 0:a.type)===ze.PAGE&&null!==a&&void 0!==a&&null!==(t=a.contentElement)&&void 0!==t&&t.contains(o)&&(a.contentScrolled=!0,a.contentScrollStopTimeout&&clearTimeout(a.contentScrollStopTimeout),a.contentScrollStopTimeout=setTimeout((function(){a.contentScrolled&&(a.contentScrolled=!1)}),250))}})),r.state={touchDown:!1,dragging:!1},r.maskElementRef=d.createRef(),r.modalRootContext={updateModalHeight:r.updateModalHeight,registerModal:function(e){var t=e.id,n=s()(e,Qe);return Object.assign(r.getModalState(t),n)},onClose:function(){return r.props.closeActiveModal()},isInsideModal:!0},r.frameIds={},r}return K()(n,[{key:"timeout",get:function(){return this.props.platform===m.a||this.props.platform===m.d?320:400}},{key:"document",get:function(){return this.props.document}},{key:"window",get:function(){return this.props.window}},{key:"getModalState",value:function(e){if(e)return this.props.getModalState(e)}},{key:"getModals",value:function(){return d.Children.toArray(this.props.children)}},{key:"componentDidMount",value:function(){var e;this.props.platform===m.b&&(null===(e=this.window)||void 0===e||e.addEventListener("resize",this.updateModalTranslate,!1))}},{key:"componentWillUnmount",value:function(){this.toggleDocumentScrolling(!0),this.window.removeEventListener("resize",this.updateModalTranslate,!1)}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.exitingModal&&this.props.exitingModal!==e.exitingModal&&this.closeModal(this.props.exitingModal),this.props.enteringModal&&this.props.enteringModal!==e.enteringModal){var n=this.props.enteringModal,r=this.getModalState(n);this.waitTransitionFinish(r,(function(){null!==r&&void 0!==r&&r.innerElement&&(r.innerElement.style.transitionDelay=""),t.props.onEnter(n)})),null!==r&&void 0!==r&&r.innerElement&&(r.innerElement.style.transitionDelay=this.props.delayEnter?"".concat(this.timeout,"ms"):"",this.animateTranslate(r,r.translateY))}this.props.activeModal&&!e.activeModal&&(this.restoreFocusTo=this.document.activeElement),this.props.activeModal||this.props.exitingModal||!this.restoreFocusTo||(this.restoreFocusTo.focus(),this.restoreFocusTo=null),this.toggleDocumentScrolling(!this.props.activeModal&&!this.props.exitingModal)}},{key:"toggleDocumentScrolling",value:function(e){this.documentScrolling!==e&&(this.documentScrolling=e,e?this.window.removeEventListener("touchmove",this.preventTouch,{passive:!1}):this.window.addEventListener("touchmove",this.preventTouch,{passive:!1}))}},{key:"checkPageContentHeight",value:function(){var e=this.getModalState(this.props.activeModal);if((null===e||void 0===e?void 0:e.type)===ze.PAGE&&null!==e&&void 0!==e&&e.modalElement){var t=y()({},e);ot(e);var n=y()({},e),r=!1;t.expandable===n.expandable?t.translateYFrom!==n.translateYFrom&&(r=!0):r=!0,r&&this.animateTranslate(e,e.translateY)}}},{key:"closeModal",value:function(e){var t,n,r,o=this;this.setState({touchDown:!1});var a=this.getModalState(e);if(a){var i=this.getModalState(this.props.activeModal),c=!!i&&i.type===ze.PAGE,l=!!a&&a.type===ze.PAGE;this.waitTransitionFinish(a,(function(){return o.props.onExit(e)}));var u=l&&c&&(null!==(t=a.translateY)&&void 0!==t?t:0)<=(null!==(n=null===i||void 0===i?void 0:i.translateYFrom)&&void 0!==n?n:0)&&!this.props.isBack?(null!==(r=null===i||void 0===i?void 0:i.translateYFrom)&&void 0!==r?r:0)+10:100;this.animateTranslate(a,u),i||this.setMaskOpacity(a,0)}else e&&Je("[closeActiveModal] Modal ".concat(e," does not exist - not closing"))}},{key:"onPageTouchMove",value:function(e,t){var n,r,o=e.shiftY,a=e.originalEvent,i=a.target;if(e.isY){if(null===(n=t.innerElement)||void 0===n||!n.contains(i))return a.preventDefault();a.stopPropagation();var c,l=t.expandable,u=t.contentScrolled,s=t.collapsed,f=t.expanded;if(!this.state.touchDown)t.touchStartContentScrollTop=null===(c=t.contentElement)||void 0===c?void 0:c.scrollTop,this.setState({touchDown:!0});if(!u&&(null===t.touchMovePositive&&(t.touchMovePositive=o>0),!t.expandable||s||f&&t.touchMovePositive&&0===t.touchStartContentScrollTop||null!==(r=t.headerElement)&&void 0!==r&&r.contains(i))){var d;if(a.preventDefault(),!l&&o<0||!this.window)return;!this.state.dragging&&this.setState({dragging:!0});var p=o/this.window.innerHeight*100,v=Object(Be.d)(p,72,.8,this.props.platform===m.a||this.props.platform===m.d);t.touchShiftYPercent=p,t.translateYCurrent=tt((null!==(d=t.translateY)&&void 0!==d?d:0)+v),this.animateTranslate(t,t.translateYCurrent),this.setMaskOpacity(t)}}else{var h;null!==(h=this.viewportRef.current)&&void 0!==h&&h.contains(i)&&a.preventDefault()}}},{key:"onCardTouchMove",value:function(e,t){var n,r=e.originalEvent,o=e.shiftY,a=r.target;if(null!==(n=t.innerElement)&&void 0!==n&&n.contains(a)){var i;this.state.touchDown||this.setState({touchDown:!0,dragging:!0});var c=o/t.innerElement.offsetHeight*100,l=Object(Be.d)(c,72,1.2,this.props.platform===m.a||this.props.platform===m.d);t.touchShiftYPercent=c,t.translateYCurrent=Math.max(0,(null!==(i=t.translateY)&&void 0!==i?i:0)+l),this.animateTranslate(t,t.translateYCurrent),this.setMaskOpacity(t)}}},{key:"onPageTouchEnd",value:function(e,t){var n,r=this,o=e.startY,a=e.shiftY;if(t.contentScrolled=!1,t.touchMovePositive=null,this.state.dragging&&this.window){var i,c,l,u,s=(o+a)/this.window.innerHeight*100,f=null!==(i=t.translateYCurrent)&&void 0!==i?i:0;if(f=tt(f+f/e.duration*240*.6*((null!==(c=t.touchShiftYPercent)&&void 0!==c?c:0)<0?-1:1)),100!==t.settlingHeight)if(et(f,t.expandedRange))f=null!==(l=null===(u=t.expandedRange)||void 0===u?void 0:u[0])&&void 0!==l?l:0;else if(et(f,t.collapsedRange)){var d;f=null!==(d=t.translateYFrom)&&void 0!==d?d:0}else if(et(f,t.hiddenRange))f=100;else{var p;f=null!==(p=t.translateYFrom)&&void 0!==p?p:0}else f=et(f,[0,25])?0:100;100!==f&&s>=75&&(f=100),t.translateY=f,t.translateYCurrent=f,t.collapsed=f>0&&f=30?100:0,t.translateY=c,t.hidden=100===c,t.hidden&&this.props.closeActiveModal(),n=function(){t.hidden||r.animateTranslate(t,t.translateY),r.setMaskOpacity(t)}}this.setState({touchDown:!1,dragging:!1},n)}},{key:"waitTransitionFinish",value:function(e,t){if(J.supported){var n;null===e||void 0===e||null===(n=e.innerElement)||void 0===n||n.addEventListener(J.name,(function n(){var r;null===e||void 0===e||null===(r=e.innerElement)||void 0===r||r.removeEventListener(J.name,n),t()}))}else setTimeout(t,this.timeout)}},{key:"animateTranslate",value:function(e,t){var n="animateTranslateFrame".concat(e.id);cancelAnimationFrame(this.frameIds[n]),this.frameIds[n]=requestAnimationFrame((function(){var n,r;n=e.innerElement,r="translate3d(0, ".concat(t,"%, 0)"),n&&(n.style.transform=r,n.style.webkitTransform=r)}))}},{key:"setMaskOpacity",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;null===r&&(null===(t=this.props.history)||void 0===t?void 0:t[0])!==e.id||(this.maskAnimationFrame&&cancelAnimationFrame(this.maskAnimationFrame),this.maskAnimationFrame=requestAnimationFrame((function(){if(n.maskElementRef.current){var t=e.translateY,o=void 0===t?0:t,a=e.translateYCurrent,i=null===r?1-((void 0===a?0:a)-o)/(100-o)||0:r;n.maskElementRef.current.style.opacity=Math.max(0,Math.min(100,i)).toString()}})))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.activeModal,o=n.exitingModal,a=n.enteringModal,i=this.state,c=i.touchDown,l=i.dragging;return r||o?Object(f.a)(Le.a.Provider,{value:!0},Object(f.a)(Ee.Provider,{value:this.modalRootContext},Object(f.a)(ee.a,{vkuiClass:Object(v.a)(Object(h.a)("ModalRoot",this.props.platform),{"ModalRoot--vkapps":(null===(e=this.props.configProvider)||void 0===e?void 0:e.webviewType)===b.b.VKAPPS,"ModalRoot--touched":c,"ModalRoot--switching":!(!a&&!o)}),onMove:this.onTouchMove,onEnd:this.onTouchEnd,onScroll:this.onScroll},Object(f.a)("div",{vkuiClass:"ModalRoot__mask",onClick:this.props.closeActiveModal,ref:this.maskElementRef}),Object(f.a)("div",{vkuiClass:"ModalRoot__viewport",ref:this.viewportRef},this.getModals().map((function(e){var n=M(e.props),i=t.getModalState(n);if(n!==r&&n!==o||!i)return null;var c=y()({},i),u=c.type===ze.PAGE,s="modal-".concat(n);return Object(f.a)(Ue,{key:s,getRootRef:function(e){var r=t.getModalState(n);r&&(r.modalElement=e)},onClose:t.props.closeActiveModal,timeout:t.timeout,vkuiClass:Object(v.a)("ModalRoot__modal",{"ModalRoot__modal--active":n===r,"ModalRoot__modal--prev":n===o,"ModalRoot__modal--next":o&&n===r||n===a,"ModalRoot__modal--dragging":l,"ModalRoot__modal--expandable":u&&c.expandable,"ModalRoot__modal--expanded":u&&c.expanded,"ModalRoot__modal--collapsed":u&&c.collapsed}),restoreFocus:!1},e)})))))):null}}]),n}(d.Component),rt=re(ne(Object(R.e)(Ze((function(e){switch(e.type){case ze.PAGE:return e.settlingHeight=e.settlingHeight||75,ot(e);case ze.CARD:return function(e){e.translateY=0}(e)}}))(nt))),b.a,"configProvider");function ot(e){var t,n=e.contentElement,r=(null===n||void 0===n?void 0:n.firstElementChild).offsetHeight,o=e.translateY;e.expandable=r>(null!==(t=null===n||void 0===n?void 0:n.clientHeight)&&void 0!==t?t:0)||100===e.settlingHeight;var a,i,c,l,u,s=!1,f=!1;if(e.expandable){var d,p=(a=100-(null!==(d=e.settlingHeight)&&void 0!==d?d:0))/2,v=100-a;c=[0,p],l=[p,a+v/4],u=[a+v/4,100],s=a>0,f=a<=0,i=a}else{var h,m,b,g,y;c=[i=a=100-(r+(null!==(h=null===(m=e.headerElement)||void 0===m?void 0:m.offsetHeight)&&void 0!==h?h:0))/(null!==(b=null===(g=e.innerElement)||void 0===g||null===(y=g.parentElement)||void 0===y?void 0:y.offsetHeight)&&void 0!==b?b:0)*100,i+25],l=[i+25,i+25],u=[i+25,i+100]}(e.expandable&&i>(null!==o&&void 0!==o?o:0)||100===e.settlingHeight)&&(i=0),e.expandedRange=c,e.collapsedRange=l,e.hiddenRange=u,e.translateY=i,e.translateYFrom=a,e.collapsed=s,e.expanded=f}var at=["id"],it=(Object(T.a)("ModalRoot"),function(e){Y()(n,e);var t=q()(n);function n(e){var r;return F()(this,n),r=t.call(this,e),$()(W()(r),"maskElementRef",void 0),$()(W()(r),"maskAnimationFrame",void 0),$()(W()(r),"modalRootContext",void 0),$()(W()(r),"restoreFocusTo",void 0),r.maskElementRef=d.createRef(),r.modalRootContext={updateModalHeight:function(){},registerModal:function(e){var t=e.id,n=s()(e,at);return Object.assign(r.getModalState(t),n)},onClose:function(){return r.props.closeActiveModal()},isInsideModal:!0},r}return K()(n,[{key:"timeout",get:function(){return this.props.platform===m.a||this.props.platform===m.d?320:400}},{key:"modals",get:function(){return d.Children.toArray(this.props.children)}},{key:"getModalState",value:function(e){if(null!==e)return this.props.getModalState(e)}},{key:"componentDidUpdate",value:function(e){var t,n,r=this;if(this.props.exitingModal&&this.props.exitingModal!==e.exitingModal&&this.closeModal(this.props.exitingModal),this.props.enteringModal&&this.props.enteringModal!==e.enteringModal){var o=this.props.enteringModal,a=this.getModalState(o);requestAnimationFrame((function(){r.props.enteringModal===o&&(r.waitTransitionFinish(a,(function(){return r.props.onEnter(o)})),r.animateModalOpacity(a,!0))}))}this.props.activeModal&&!e.activeModal&&(this.restoreFocusTo=null!==(t=null===(n=this.props.document)||void 0===n?void 0:n.activeElement)&&void 0!==t?t:void 0);this.props.activeModal||this.props.exitingModal||!this.restoreFocusTo||(this.restoreFocusTo.focus(),this.restoreFocusTo=void 0)}},{key:"closeModal",value:function(e){var t=this,n=this.getModalState(e);n&&(this.waitTransitionFinish(n,(function(){return t.props.onExit(e)})),this.animateModalOpacity(n,!1),this.props.activeModal||this.setMaskOpacity(n,0))}},{key:"waitTransitionFinish",value:function(e,t){if(J.supported){var n;null===e||void 0===e||null===(n=e.innerElement)||void 0===n||n.addEventListener(J.name,(function n(){var r;null===e||void 0===e||null===(r=e.innerElement)||void 0===r||r.removeEventListener(J.name,n),t()}))}else setTimeout(t,this.timeout)}},{key:"animateModalOpacity",value:function(e,t){null!==e&&void 0!==e&&e.innerElement&&(e.innerElement.style.transitionDelay=t&&this.props.delayEnter?"".concat(this.timeout,"ms"):"",e.innerElement.style.opacity=t?"1":"0")}},{key:"setMaskOpacity",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;null===r&&(null===(t=this.props.history)||void 0===t?void 0:t[0])!==e.id||(this.maskAnimationFrame&&cancelAnimationFrame(this.maskAnimationFrame),this.maskAnimationFrame=requestAnimationFrame((function(){if(n.maskElementRef.current){var t=e.translateY,o=void 0===t?0:t,a=e.translateYCurrent,i=null===r?1-((void 0===a?0:a)-o)/(100-o)||0:r;n.maskElementRef.current.style.opacity=Math.max(0,Math.min(100,i)).toString()}})))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.exitingModal,o=n.activeModal,a=n.enteringModal;return o||r?Object(f.a)(Ee.Provider,{value:this.modalRootContext},Object(f.a)("div",{vkuiClass:Object(v.a)(Object(h.a)("ModalRoot",this.props.platform),{"ModalRoot--vkapps":(null===(e=this.props.configProvider)||void 0===e?void 0:e.webviewType)===b.b.VKAPPS},"ModalRoot--desktop")},Object(f.a)("div",{vkuiClass:"ModalRoot__mask",ref:this.maskElementRef,onClick:this.props.closeActiveModal}),Object(f.a)("div",{vkuiClass:"ModalRoot__viewport"},this.modals.map((function(e){var n=M(e.props);if(n!==o&&n!==r)return null;var i="modal-".concat(n);return Object(f.a)(Ue,{restoreFocus:!1,onClose:t.props.closeActiveModal,timeout:t.timeout,key:i,vkuiClass:Object(v.a)("ModalRoot__modal",{"ModalRoot__modal--active":!r&&!a&&n===o,"ModalRoot__modal--prev":n===r,"ModalRoot__modal--next":Boolean(r)&&n===o})},e)}))))):null}}]),n}(d.Component)),ct=re(ne(Object(R.e)(Ze()(it))),b.a,"configProvider"),lt=function(e){var t=e.viewWidth,n=e.viewHeight,r=e.hasMouse,o=t>=Oe.d.SMALL_TABLET&&(r||n>=Oe.c.MEDIUM)?ct:rt;return Object(f.a)(o,e)};lt.displayName="ModalRoot";var ut=Object(de.a)(lt,{viewWidth:!0,viewHeight:!0,hasMouse:!0}),st=n(382),ft=n(57),dt=function(e){var t=Object(D.a)();return Object(f.a)(ft.a,i()({vkuiClass:Object(h.a)("ModalDismissButton",t)},e,{activeMode:"ModalDismissButton--active",hoverMode:"ModalDismissButton--hover"}),Object(f.a)(st.a,null))};dt.defaultProps={"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var pt=dt,vt=["children","header","viewWidth","viewHeight","sizeX","hasMouse","onClose","settlingHeight","dynamicContentHeight","getModalContentRef","nav"],ht=(Object(T.a)("ModalPage"),function(e){var t=Object(D.a)(),n=d.useContext(xe).updateModalHeight,r=e.children,o=e.header,a=e.viewWidth,c=e.viewHeight,l=e.sizeX,u=e.hasMouse,p=e.onClose,m=(e.settlingHeight,e.dynamicContentHeight,e.getModalContentRef),b=(e.nav,s()(e,vt));d.useEffect((function(){n()}),[r,n]);var g=a>=Oe.d.SMALL_TABLET&&(u||c>=Oe.c.MEDIUM),y=a>=Oe.d.SMALL_TABLET,w=d.useContext(xe),O=Ce(M(e),ze.PAGE).refs;return Object(f.a)("div",i()({},b,{vkuiClass:Object(v.a)(Object(h.a)("ModalPage",t),"ModalPage--sizeX-".concat(l),{"ModalPage--desktop":g})}),Object(f.a)("div",{vkuiClass:"ModalPage__in-wrap",ref:O.innerElement},Object(f.a)("div",{vkuiClass:"ModalPage__in"},Object(f.a)("div",{vkuiClass:"ModalPage__header",ref:O.headerElement},o),Object(f.a)("div",{vkuiClass:"ModalPage__content-wrap"},Object(f.a)("div",{vkuiClass:"ModalPage__content",ref:Object(C.f)(O.contentElement,m)},Object(f.a)("div",{vkuiClass:"ModalPage__content-in"},r))),y&&Object(f.a)(pt,{onClick:p||w.onClose}))))});ht.defaultProps={settlingHeight:75};var mt=Object(de.a)(ht,{viewWidth:!0,viewHeight:!0,sizeX:!0,hasMouse:!0}),bt=["children","weight","Component"],gt=function(e){var t=e.children,n=e.weight,r=void 0===n?"regular":n,o=e.Component,a=void 0===o?"h3":o,c=s()(e,bt),l=Object(D.a)();return Object(f.a)(a,i()({},c,{vkuiClass:Object(v.a)(Object(h.a)("Headline",l),"Headline--w-".concat(r))}),t)},yt=["children","weight","level","Component"],wt=function(e){var t=e.children,n=e.weight,r=void 0===n?"regular":n,o=e.level,a=void 0===o?"1":o,c=e.Component,l=s()(e,yt),u=Object(D.a)();if(c||(c="h"+a),u===m.a&&"3"===a){var d="regular"===r?r:"medium";return Object(f.a)(gt,i()({Component:c},l,{weight:d}),t)}return Object(f.a)(c,i()({},l,{vkuiClass:Object(v.a)(Object(h.a)("Title",u),"Title--w-".concat(r),"Title--l-".concat(a))}),t)},Ot=["children","primary","label"],jt=function(e){var t=e.primary,n=e.children,r=Object(D.a)();return r===m.b?Object(f.a)(wt,{Component:"span",level:"3",weight:t?"semibold":"regular"},n):Object(f.a)(je.a,{weight:r===m.d?"regular":"medium"},n)},xt=(Object(T.a)("PanelHeaderButton"),function(e){var t,n,r=e.children,o=e.primary,a=void 0!==o&&o,c=e.label,l=s()(e,Ot),u=Object(C.e)(r),d=Object(C.e)(c),p=Object(D.a)();switch(p){case m.a:t="background",n="background";break;case m.b:t="background",n="opacity";break;case m.d:t="PanelHeaderButton--hover",n="PanelHeaderButton--active"}return Object(f.a)(ft.a,i()({},l,{hoverMode:t,Component:l.href?"a":"button",activeEffectDelay:200,activeMode:n,vkuiClass:Object(v.a)(Object(h.a)("PanelHeaderButton",p),{"PanelHeaderButton--primary":a,"PanelHeaderButton--primitive":u,"PanelHeaderButton--notPrimitive":!u&&!d})}),u?Object(f.a)(jt,{primary:a},r):r,d?Object(f.a)(jt,{primary:a},c):c)}),Ct=n(17),Et=n.n(Ct),kt=n(18),St=n(10),Nt=n(19),_t="0 0 24 24",Pt="dismiss_24",Mt=!1;function Tt(){Mt||(Object(St.a)(new Et.a({id:Pt,viewBox:_t,content:''})),Mt=!0)}var Rt=function(e){return Object(St.b)((function(){Tt()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:_t,id:Pt,width:isNaN(e.width)?24:+e.width,height:isNaN(e.height)?24:+e.height}))};Rt.mountIcon=Tt;var At=Rt;var It={passive:!0,capture:!1};function Dt(){var e,t=Object(R.d)(),n=t.window,r=t.document,o=d.useState(!1),a=l()(o,2),i=a[0],c=a[1],u=d.useState(!1),s=l()(u,2),f=s[0],p=s[1],v=d.useRef(null),h=d.useCallback((function(e){var t,o;v.current&&clearTimeout(v.current);var a=(!0===e||"focusin"===e.type)&&("INPUT"===(null===r||void 0===r||null===(t=r.activeElement)||void 0===t?void 0:t.tagName)||"TEXTAREA"===(null===r||void 0===r||null===(o=r.activeElement)||void 0===o?void 0:o.tagName));c(a),p(!1),v.current=setTimeout((function(){c(a),p(function(e){var t=e.innerHeight,n=e.screen.availHeight;return Math.round(100*(1-t/n))>24}(n))}),300)}),[null===r||void 0===r||null===(e=r.activeElement)||void 0===e?void 0:e.tagName,n]);return d.useEffect((function(){h(!0)}),[h]),Object(he.a)(r,"focusout",h,It),Object(he.a)(r,"focusin",h,It),{isOpened:i,isPrecise:f}}var Lt=["getRootRef","icon","header","subheader","children","actions","actionsLayout","viewWidth","hasMouse","viewHeight","onClose"],zt=Object(de.a)((function(e){var t=e.getRootRef,n=e.icon,r=e.header,o=e.subheader,a=e.children,c=e.actions,l=e.actionsLayout,u=e.viewWidth,d=e.hasMouse,p=e.viewHeight,b=e.onClose,g=s()(e,Lt),y=Object(D.a)(),w=u>=Oe.d.SMALL_TABLET&&(d||p>=Oe.c.MEDIUM),O=Dt().isOpened,j=u>=Oe.d.SMALL_TABLET,x=y===m.b&&!j;return Object(f.a)("div",i()({},g,{vkuiClass:Object(v.a)(Object(h.a)("ModalCardBase",y),{"ModalCardBase--desktop":w}),ref:t}),Object(f.a)("div",{vkuiClass:Object(v.a)("ModalCardBase__container",{"ModalCardBase__container--softwareKeyboardOpened":O})},Object(C.c)(n)&&Object(f.a)("div",{vkuiClass:"ModalCardBase__icon"},n),Object(C.c)(r)&&Object(f.a)(wt,{level:"2",weight:"semibold",vkuiClass:"ModalCardBase__header"},r),Object(C.c)(o)&&Object(f.a)(gt,{weight:"regular",vkuiClass:"ModalCardBase__subheader"},o),a,Object(C.c)(c)&&Object(f.a)("div",{vkuiClass:Object(v.a)("ModalCardBase__actions",{"ModalCardBase__actions--v":"vertical"===l})},c),j&&Object(f.a)(pt,{onClick:b}),x&&Object(f.a)(xt,{vkuiClass:"ModalCard__dismiss",onClick:b},Object(f.a)(At,null))))}),{viewWidth:!0,viewHeight:!0,hasMouse:!0}),Bt=["icon","header","subheader","children","actions","actionsLayout","onClose","platform","viewWidth","viewHeight","hasMouse","nav"],Ft=(Object(T.a)("ModalCard"),function(e){var t=e.icon,n=e.header,r=e.subheader,o=e.children,a=e.actions,c=e.actionsLayout,l=e.onClose,u=e.platform,p=e.viewWidth,m=e.viewHeight,b=e.hasMouse,g=(e.nav,s()(e,Bt)),y=p>=Oe.d.SMALL_TABLET&&(b||m>=Oe.c.MEDIUM),w=d.useContext(Ee),O=Ce(M(e),ze.CARD).refs;return Object(f.a)("div",i()({},g,{vkuiClass:Object(v.a)(Object(h.a)("ModalCard",u),{"ModalCard--desktop":y})}),Object(f.a)(zt,{vkuiClass:"ModalCard__in",getRootRef:O.innerElement,icon:t,header:n,subheader:r,actions:a,actionsLayout:c,onClose:l||w.onClose},o))});Ft.defaultProps={actionsLayout:"horizontal"};var Vt=Object(de.a)(ne(Ft),{viewWidth:!0,viewHeight:!0,hasMouse:!0}),Kt=["children","weight","Component"],Ht=function(e){var t=e.children,n=e.weight,r=void 0===n?"regular":n,o=e.Component,a=void 0===o?"h4":o,c=s()(e,Kt),l=Object(D.a)();return Object(f.a)(a,i()({},c,{vkuiClass:Object(v.a)(Object(h.a)("Subhead",l),"Subhead--w-".concat(r))}),t)},Wt=n(51),Ut=n(101),Yt=["size","sizeY","platform"],Gt=["size","mode","appearance","stretched","align","children","before","after","getRootRef","sizeY","Component","loading","onClick"],qt=function(e){var t=e.size,n=e.sizeY,r=e.platform,o=s()(e,Yt),a=n===Oe.b.COMPACT;switch(t){case"l":return a?Object(f.a)(je.a,i()({weight:"medium"},o)):Object(f.a)(wt,i()({level:"3",weight:"medium"},o));case"m":return a?Object(f.a)(Ht,i()({weight:r===m.d?"regular":"medium"},o)):Object(f.a)(je.a,i()({weight:"medium"},o));default:return r===m.b?Object(f.a)(Ht,i()({weight:"medium"},o)):r===m.d?Object(f.a)(Wt.a,i()({level:"1",weight:"regular"},o)):a?Object(f.a)(Wt.a,i()({level:"1",weight:"medium"},o)):Object(f.a)(Ht,i()({weight:"medium"},o))}};var Xt=function(e){var t,n=Object(D.a)(),r=e.size,o=e.mode,a=e.appearance,c=e.stretched,l=e.align,u=e.children,p=e.before,h=e.after,m=e.getRootRef,g=e.sizeY,y=e.Component,w=void 0===y?"button":y,O=e.loading,j=e.onClick,x=s()(e,Gt),C=Boolean(p||h),E=function(e,t){var n=e,r=t;if(void 0===e)switch(t){case"tertiary":case"secondary":case"primary":case"outline":n="accent";break;case"commerce":r="primary",n="positive";break;case"destructive":r="primary",n="negative";break;case"overlay_primary":r="primary",n="overlay";break;case"overlay_secondary":r="secondary",n="overlay";break;case"overlay_outline":r="outline",n="overlay"}return{resolvedAppearance:n,resolvedMode:r}}(a,o),k=E.resolvedMode,S=E.resolvedAppearance,N=d.useContext(b.a).hasNewTokens;return Object(f.a)(ft.a,i()({},x,{Component:x.href?"a":w,onClick:O?void 0:j,focusVisibleMode:"outside",vkuiClass:Object(v.a)("Button","Button--sz-".concat(r),"Button--lvl-".concat(k),"Button--clr-".concat(S),"Button--aln-".concat(l),"Button--sizeY-".concat(g),(t={},$()(t,"Button--stretched",c),$()(t,"Button--with-icon",C),$()(t,"Button--singleIcon",Boolean(!u&&!h&&p||!u&&h&&!p)),t)),getRootRef:m,hoverMode:N?"Button--hover":"background",activeMode:N?"Button--active":"opacity"}),O&&Object(f.a)(Ut.a,{size:"small",vkuiClass:"Button__spinner"}),Object(f.a)("span",{vkuiClass:"Button__in"},p&&Object(f.a)("span",{vkuiClass:"Button__before"},p),u&&Object(f.a)(qt,{size:r,sizeY:g,platform:n,vkuiClass:"Button__content",Component:"span"},u),h&&Object(f.a)("span",{vkuiClass:"Button__after"},h)))};Xt.defaultProps={mode:"primary",align:"center",size:"s",stretched:!1,stopPropagation:!0};var $t=Object(de.a)(Xt,{sizeY:!0}),Zt=["icon","sizeY","children","Component"],Qt=(Object(T.a)("IconButton"),function(e){var t=e.icon,n=e.sizeY,r=e.children,o=e.Component,a=s()(e,Zt),c=Object(D.a)();return Object(f.a)(ft.a,i()({},a,{Component:a.href?"a":o,activeEffectDelay:200,activeMode:c===m.b?"opacity":"IconButton--active",vkuiClass:Object(v.a)(Object(h.a)("IconButton",c),"IconButton--sizeY-".concat(n))}),t||r)});Qt.defaultProps={Component:"button"};var Jt=Object(de.a)(Qt,{sizeY:!0}),en=["mode","children","getRootRef"],tn=function(e){var t=e.mode,n=e.children,r=e.getRootRef,o=s()(e,en),a=Object(D.a)();return Object(f.a)("div",i()({},o,{ref:r,vkuiClass:Object(v.a)(Object(h.a)("Card",a),"Card--md-".concat(t))}),Object(f.a)("div",{vkuiClass:"Card__in"},n))};tn.defaultProps={mode:"tint"};var nn=tn,rn="0 0 16 24",on="chevron_24",an=!1;function cn(){an||(Object(St.a)(new Et.a({id:on,viewBox:rn,content:''})),an=!0)}var ln=function(e){return Object(St.b)((function(){cn()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:rn,id:on,width:isNaN(e.width)?16:+e.width,height:isNaN(e.height)?24:+e.height}))};ln.mountIcon=cn;var un=ln,sn=n(56),fn=["badge","before","indicator","children","after","description","expandable","multiline","sizeY"],dn=function(e){return Object(sn.a)().sizeY===Oe.b.COMPACT?Object(f.a)(je.a,i()({Component:"span",weight:"regular"},e)):Object(f.a)(wt,i()({Component:"span",level:"3",weight:"regular"},e))},pn=Object(de.a)((function(e){var t=e.badge,n=e.before,r=e.indicator,o=e.children,a=e.after,c=e.description,l=e.expandable,u=e.multiline,d=e.sizeY,p=s()(e,fn),b=Object(D.a)(),g=Object(C.c)(a)||l&&b===m.b;return Object(f.a)(ft.a,i()({},p,{vkuiClass:Object(v.a)(Object(h.a)("SimpleCell",b),{"SimpleCell--exp":l,"SimpleCell--mult":u},"SimpleCell--sizeY-".concat(d))}),n,Object(f.a)("div",{vkuiClass:"SimpleCell__main"},Object(f.a)("div",{vkuiClass:"SimpleCell__content"},Object(f.a)(dn,{vkuiClass:"SimpleCell__children"},o),Object(C.c)(t)&&Object(f.a)("span",{vkuiClass:"SimpleCell__badge"},t)),c&&Object(f.a)(Ht,{Component:"span",weight:"regular",vkuiClass:"SimpleCell__description"},c)),Object(C.c)(r)&&Object(f.a)(dn,{Component:"span",vkuiClass:"SimpleCell__indicator"},r),g&&Object(f.a)("div",{vkuiClass:"SimpleCell__after"},a,l&&b===m.b&&Object(f.a)(un,null)))}),{sizeY:!0}),vn=["centered","mode"],hn=function(e){var t=e.centered,n=void 0!==t&&t,r=e.mode,o=void 0===r?"primary":r,a=s()(e,vn),c=Object(D.a)();return Object(f.a)(pn,i()({stopPropagation:!0},a,{vkuiClass:Object(v.a)(Object(h.a)("CellButton",c),"CellButton--".concat(o),$()({},"CellButton--centered",n))}))},mn=["platform","mode"],bn=["platform"],gn=["mode"],yn=["mode","children","subtitle","indicator","aside","getRootRef","multiline"],wn=function(e){var t=e.platform,n=e.mode,r=s()(e,mn);if(t===m.c.IOS)switch(n){case"primary":case"tertiary":return Object(f.a)(wt,i()({weight:"semibold",level:"3"},r));case"secondary":return Object(f.a)(Wt.a,i()({level:"1",weight:"semibold",caps:!0},r))}if(t===m.c.VKCOM)switch(n){case"primary":return Object(f.a)(gt,i()({weight:"regular"},r));case"secondary":case"tertiary":return Object(f.a)(Wt.a,i()({level:"1",weight:"regular"},r))}switch(n){case"primary":case"tertiary":return Object(f.a)(gt,i()({weight:"medium"},r));case"secondary":return Object(f.a)(Wt.a,i()({level:"1",weight:"medium",caps:!0},r))}return null},On=function(e){var t=e.platform,n=s()(e,bn);return t===m.c.VKCOM?Object(f.a)(Ht,i()({weight:"regular"},n)):Object(f.a)(je.a,i()({weight:"regular"},n))},jn=function(e){var t=e.mode,n=s()(e,gn);return"secondary"===t?Object(f.a)(Ht,i()({weight:"regular"},n)):Object(f.a)(Wt.a,i()({weight:"regular",level:"1"},n))},xn=function(e){var t=e.mode,n=e.children,r=e.subtitle,o=e.indicator,a=e.aside,c=e.getRootRef,l=e.multiline,u=s()(e,yn),d=Object(D.a)();return Object(f.a)("header",i()({},u,{ref:c,vkuiClass:Object(v.a)(Object(h.a)("Header",d),"Header--mode-".concat(t),{"Header--pi":Object(C.e)(o)})}),Object(f.a)("div",{vkuiClass:"Header__main"},Object(f.a)(wn,{vkuiClass:"Header__content",Component:"span",mode:t,platform:d},Object(f.a)("span",{vkuiClass:Object(v.a)("Header__content-in",{"Header__content-in--multiline":l})},n),Object(C.c)(o)&&Object(f.a)(Wt.a,{vkuiClass:"Header__indicator",weight:"primary"===t||"secondary"===t?"medium":"regular",level:"1"},o)),Object(C.c)(r)&&Object(f.a)(jn,{vkuiClass:"Header__subtitle",Component:"span"},r)),Object(C.c)(a)&&Object(f.a)(On,{vkuiClass:"Header__aside",Component:"span",platform:d},a))};xn.defaultProps={mode:"primary"};var Cn=xn,En=["header","description","children","separator","getRootRef","mode","sizeX"],kn=function(e){var t=e.header,n=e.description,r=e.children,o=e.separator,a=e.getRootRef,c=e.mode,l=e.sizeX,u=s()(e,En),p=d.useContext(Ee).isInsideModal,m=Object(D.a)(),b=c;return c||(b=l===Oe.b.COMPACT||p?"plain":"card"),Object(f.a)("section",i()({},u,{ref:a,vkuiClass:Object(v.a)(Object(h.a)("Group",m),"Group--sizeX-".concat(l),"Group--".concat(b))}),Object(f.a)("div",{vkuiClass:"Group__inner"},t,r,Object(C.c)(n)&&Object(f.a)(Wt.a,{vkuiClass:"Group__description",weight:"regular",level:"1"},n)),"hide"!==o&&Object(f.a)(we,{vkuiClass:Object(v.a)("Group__separator",{"Group__separator--force":"show"===o}),expanded:"card"===b}))};kn.defaultProps={separator:"auto"};var Sn=Object(de.a)(kn,{sizeX:!0}),Nn=n(384),_n=["getRootRef","children","onRemove","removePlaceholder","align"],Pn=function(e){var t=e.onRemoveClick,n=e.removePlaceholder,r=e.removePlaceholderString,o=e.children,a=Object(R.d)().window,i=d.useRef(null),c=d.useState(0),u=l()(c,2),s=u[0],p=u[1];Object(he.a)(a,"click",(function(){s>0&&p(0)}),{capture:!0});return Object(f.a)("div",{vkuiClass:"Removable__content",style:{transform:"translateX(-".concat(null!==s&&void 0!==s?s:0,"px)")},onTransitionEnd:function(){var e;s>0&&(null===i||void 0===i||null===(e=i.current)||void 0===e||e.focus())}},Object(f.a)(Jt,{hasActive:!1,hasHover:!1,"aria-label":r,vkuiClass:"Removable__action Removable__toggle",onClick:function(e){if(e.stopPropagation(),i.current){var t=i.current.offsetWidth;p(t)}},disabled:s>0},Object(f.a)("i",{vkuiClass:"Removable__toggle-in",role:"presentation"})),o,Object(f.a)("span",{vkuiClass:"Removable__offset","aria-hidden":"true"}),Object(f.a)(ft.a,{Component:"button",hasActive:!1,hasHover:!1,disabled:0===s,getRootRef:i,vkuiClass:"Removable__remove",onClick:t},Object(f.a)("span",{vkuiClass:"Removable__remove-in"},n)))},Mn=function(e){var t=e.getRootRef,n=e.children,r=e.onRemove,o=void 0===r?C.g:r,a=e.removePlaceholder,c=void 0===a?"\u0423\u0434\u0430\u043b\u0438\u0442\u044c":a,l=e.align,u=void 0===l?"center":l,d=s()(e,_n),p=Object(D.a)(),b=Object(sn.a)().sizeY,g=Object(Fe.a)(t),y=function(e){e.preventDefault(),o(e)},w=Object(C.b)(c);return Object(f.a)("div",i()({},d,{ref:g,vkuiClass:Object(v.a)(Object(h.a)("Removable",p),"Removable--".concat(u),"Removable--sizeY-".concat(b))}),(p===m.a||p===m.d)&&Object(f.a)("div",{vkuiClass:"Removable__content"},n,Object(f.a)(Jt,{activeMode:"opacity",hoverMode:"opacity",vkuiClass:"Removable__action",onClick:y,"aria-label":w},Object(f.a)(Nn.a,{role:"presentation"}))),p===m.b&&Object(f.a)(Pn,{onRemoveClick:y,removePlaceholder:c,removePlaceholderString:w},n))},Tn=d.createContext({toggleDrag:C.g}),Rn="0 0 24 24",An="reorder_ios_24",In=!1;function Dn(){In||(Object(St.a)(new Et.a({id:An,viewBox:Rn,content:''})),In=!0)}var Ln=function(e){return Object(St.b)((function(){Dn()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Rn,id:An,width:isNaN(e.width)?24:+e.width,height:isNaN(e.height)?24:+e.height}))};Ln.mountIcon=Dn;var zn=Ln,Bn="0 0 24 24",Fn="reorder_24",Vn=!1;function Kn(){Vn||(Object(St.a)(new Et.a({id:Fn,viewBox:Bn,content:''})),Vn=!0)}var Hn=function(e){return Object(St.b)((function(){Kn()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Bn,id:Fn,width:isNaN(e.width)?24:+e.width,height:isNaN(e.height)?24:+e.height}))};Hn.mountIcon=Kn;var Wn=Hn,Un=["onDragStart","onDragMove","onDragEnd"],Yn=function(e){var t=e.onDragStart,n=e.onDragMove,r=e.onDragEnd,o=s()(e,Un),a=Object(D.a)(),c=d.useCallback((function(e){e.preventDefault()}),[]);return Object(f.a)(ee.a,i()({vkuiClass:Object(v.a)(Object(h.a)("CellDragger",a)),onStart:t,onMoveY:n,onEnd:r,onClick:c},o),a===m.b?Object(f.a)(zn,null):Object(f.a)(Wn,null))},Gn="0 0 24 24",qn="check_box_off_24",Xn=!1;function $n(){Xn||(Object(St.a)(new Et.a({id:qn,viewBox:Gn,content:''})),Xn=!0)}var Zn=function(e){return Object(St.b)((function(){$n()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Gn,id:qn,width:isNaN(e.width)?24:+e.width,height:isNaN(e.height)?24:+e.height}))};Zn.mountIcon=$n;var Qn=Zn,Jn=n(383),er="0 0 24 24",tr="check_box_on_24",nr=!1;function rr(){nr||(Object(St.a)(new Et.a({id:tr,viewBox:er,content:''})),nr=!0)}var or=function(e){return Object(St.b)((function(){rr()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:er,id:tr,width:isNaN(e.width)?24:+e.width,height:isNaN(e.height)?24:+e.height}))};or.mountIcon=rr;var ar=or,ir="0 0 24 24",cr="check_circle_on_24",lr=!1;function ur(){lr||(Object(St.a)(new Et.a({id:cr,viewBox:ir,content:''})),lr=!0)}var sr=function(e){return Object(St.b)((function(){ur()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:ir,id:cr,width:isNaN(e.width)?24:+e.width,height:isNaN(e.height)?24:+e.height}))};sr.mountIcon=ur;var fr=sr,dr=["className","style"],pr=function(e){var t=e.className,n=e.style,r=s()(e,dr),o=Object(D.a)(),a=o===m.a?Qn:Jn.a,c=o===m.a?ar:fr;return Object(f.a)("div",{vkuiClass:Object(v.a)(Object(h.a)("CellCheckbox",o)),className:t,style:n},Object(f.a)("input",i()({vkuiClass:"CellCheckbox__input",type:"checkbox"},r)),Object(f.a)(a,{vkuiClass:"CellCheckbox__icon CellCheckbox__icon--off"}),Object(f.a)(c,{vkuiClass:"CellCheckbox__icon CellCheckbox__icon--on"}))},vr=["mode","onRemove","removePlaceholder","onDragFinish","before","after","disabled","removable","draggable","selectable","Component","onChange","name","value","checked","defaultChecked","getRootRef","draggerLabel","className","style"],hr=["dragging","rootElRef"],mr=(Object(T.a)("Cell"),function(e){var t=e.mode,n=e.onRemove,r=void 0===n?C.g:n,o=e.removePlaceholder,a=void 0===o?"\u0423\u0434\u0430\u043b\u0438\u0442\u044c":o,c=e.onDragFinish,u=e.before,p=e.after,b=e.disabled,g=e.removable,y=e.draggable,w=e.selectable,O=e.Component,j=e.onChange,x=e.name,E=e.value,k=e.checked,S=e.defaultChecked,N=(e.getRootRef,e.draggerLabel),_=void 0===N?"\u041f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u044f\u0447\u0435\u0439\u043a\u0443":N,P=e.className,M=e.style,T=s()(e,vr),R=t;t||!w&&!g||(R=w?"selectable":"removable");var A,I,L="selectable"===R,z="removable"===R,B=Object(D.a)(),F=function(e){var t=e.onDragFinish,n=d.useState(!1),r=l()(n,2),o=r[0],a=r[1],i=d.useRef(null),c=d.useState([]),u=l()(c,2),s=u[0],f=u[1],p=d.useState(0),v=l()(p,2),h=v[0],m=v[1],b=d.useState(0),g=l()(b,2),y=g[0],w=g[1],O=d.useState(0),j=l()(O,2),x=j[0],C=j[1],E=d.useState(void 0),k=l()(E,2),S=k[0],N=k[1];return{onDragStart:function(){var e,t=i.current;if(t){a(!0);var n=[];null!==(e=t.parentElement)&&void 0!==e&&e.childNodes&&(n=Array.from(t.parentElement.children));var r=n.indexOf(t);m(r),w(r),f(n),C(0)}},onDragMove:function(e){e.originalEvent.preventDefault();var t=i.current;if(t){t.style.transform="translateY(".concat(e.shiftY,"px)");var n=t.getBoundingClientRect();N(x-e.shiftY<0?"down":"up"),C(e.shiftY),w(h),s.forEach((function(e,t){var r=e.getBoundingClientRect(),o=r.height/2,a=n.bottom>r.top+o,i=n.topt&&(i&&("up"===S&&(e.style.transform="translateY(100%)"),w((function(e){return e-1}))),a&&"down"===S&&(e.style.transform="translateY(0)"))}))}},onDragEnd:function(){var e=h,n=y;s.forEach((function(e){e.style.transform=""})),f([]),w(0),m(0),N(void 0),C(0),a(!1),t&&t({from:e,to:n})},dragging:o,rootElRef:i}}({onDragFinish:c}),V=F.dragging,K=F.rootElRef,H=s()(F,hr),W=d.useContext(Tn).toggleDrag;if(d.useEffect((function(){if(V)return W(!0),function(){return W(!1)}}),[V,W]),y&&(A=Object(f.a)(Yn,i()({vkuiClass:"Cell__dragger","aria-label":_},H))),L){var U={name:x,value:E,onChange:j,defaultChecked:S,checked:k,disabled:b};I=Object(f.a)(pr,i()({vkuiClass:"Cell__checkbox"},U))}var Y=y&&!L||z||b,G=!Y&&!V,q=Object(v.a)(Object(h.a)("Cell",B),{"Cell--dragging":V,"Cell--removable":z,"Cell--selectable":L,"Cell--disabled":b}),X=Object(f.a)(pn,i()({hasActive:G,hasHover:G},T,{vkuiClass:"Cell__content",disabled:Y,Component:L?"label":O,before:Object(f.a)(d.Fragment,null,y&&(B===m.a||B===m.d)&&A,L&&I,u),after:Object(f.a)(d.Fragment,null,y&&B===m.b&&A,p)}));return z?Object(f.a)(Mn,{vkuiClass:q,className:P,style:M,getRootRef:K,removePlaceholder:a,onRemove:function(e){return r(e,null===K||void 0===K?void 0:K.current)}},X):Object(f.a)("div",{vkuiClass:q,className:P,style:M,ref:K},X)}),br=["children","text","caption","before","after","bottom","actions","multiline","sizeY"],gr=Object(de.a)((function(e){var t=e.children,n=e.text,r=e.caption,o=e.before,a=e.after,c=e.bottom,l=e.actions,u=e.multiline,d=e.sizeY,p=s()(e,br),m=Object(D.a)();return Object(f.a)(ft.a,i()({},p,{vkuiClass:Object(v.a)(Object(h.a)("RichCell",m),{"RichCell--mult":u},"RichCell--sizeY-".concat(d))}),o,Object(f.a)("div",{vkuiClass:"RichCell__in"},a,Object(f.a)(je.a,{weight:"medium",vkuiClass:"RichCell__content"},Object(f.a)("div",{vkuiClass:"RichCell__children"},t),Object(C.c)(a)&&Object(f.a)("div",{vkuiClass:"RichCell__after"},a)),Object(C.c)(n)&&Object(f.a)(je.a,{weight:"regular",vkuiClass:"RichCell__text"},n),Object(C.c)(r)&&Object(f.a)(Ht,{Component:"span",weight:"regular",vkuiClass:"RichCell__caption"},r),(Object(C.c)(c)||Object(C.c)(l))&&Object(f.a)("div",{vkuiClass:"RichCell__bottom"},c,Object(C.c)(l)&&Object(f.a)("div",{vkuiClass:"RichCell__actions"},l))))}),{sizeY:!0}),yr=["header","children"],wr=function(e){var t=e.header,n=e.children,r=s()(e,yr),o=Object(D.a)();return Object(f.a)(gt,i()({},r,{vkuiClass:Object(h.a)("InfoRow",o),weight:"regular"}),Object(C.c)(t)&&Object(f.a)(Ht,{Component:"span",vkuiClass:"InfoRow__header",weight:"regular"},t),n)},Or="0 0 12 12",jr="circle_12",xr=!1;function Cr(){xr||(Object(St.a)(new Et.a({id:jr,viewBox:Or,content:''})),xr=!0)}var Er=function(e){return Object(St.b)((function(){Cr()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Or,id:jr,width:isNaN(e.width)?12:+e.width,height:isNaN(e.height)?12:+e.height}))};Er.mountIcon=Cr;var kr=Er,Sr="0 0 8 12",Nr="online_mobile_12",_r=!1;function Pr(){_r||(Object(St.a)(new Et.a({id:Nr,viewBox:Sr,content:''})),_r=!0)}var Mr=function(e){return Object(St.b)((function(){Pr()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Sr,id:Nr,width:isNaN(e.width)?8:+e.width,height:isNaN(e.height)?12:+e.height}))};Mr.mountIcon=Pr;var Tr=Mr,Rr=["alt","crossOrigin","decoding","height","loading","referrerPolicy","sizes","src","srcSet","useMap","width","getRef","size","shadow","mode","className","children","getRootRef","style","aria-label","badge","overlayIcon","overlayMode","overlayAction","onClick"],Ar=function(e){var t=e.alt,n=e.crossOrigin,r=e.decoding,o=e.height,a=e.loading,c=e.referrerPolicy,u=e.sizes,p=e.src,m=e.srcSet,b=e.useMap,g=e.width,w=e.getRef,O=e.size,j=void 0===O?48:O,x=e.shadow,C=void 0===x||x,E=e.mode,k=void 0===E?"default":E,S=e.className,N=e.children,_=e.getRootRef,P=e.style,M=e["aria-label"],T=e.badge,R=e.overlayIcon,A=e.overlayMode,I=void 0===A?"light":A,L=e.overlayAction,z=e.onClick,B=s()(e,Rr),F=Object(D.a)(),V=Object(sn.a)().hasMouse,K=d.useState(!1),H=l()(K,2),W=H[0],U=H[1],Y=null!==L&&void 0!==L?L:V?"hover":"always",G="50%";switch(k){case"image":j<64&&(G=4),j>=64&&j<96&&(G=6),j>=96&&(G=8);break;case"app":j<=40&&(G=8),j>40&&j<56&&(G=10),j>=56&&j<64&&(G=12),j>=64&&j<84&&(G=16),j>=84&&(G=18)}var q=p||m;return Object(f.a)("div",i()({},B,{vkuiClass:Object(v.a)(Object(h.a)("Avatar",F),"Avatar--type-".concat(k),"Avatar--sz-".concat(j),{"Avatar--shadow":C,"Avatar--failed":W}),className:S,ref:_,role:q?"img":"presentation","aria-label":t||M,onClick:R?void 0:z,style:y()(y()({},P),{},{width:j,height:j,borderRadius:G})}),q&&Object(f.a)("img",{crossOrigin:n,decoding:r,height:o,loading:a,referrerPolicy:c,sizes:u,src:p,srcSet:m,useMap:b,width:g,ref:w,onError:function(){U(!0)},onLoad:function(){U(!1)},vkuiClass:"Avatar__img",alt:""}),N&&Object(f.a)("div",{vkuiClass:"Avatar__children"},N),R&&Object(f.a)(ft.a,{Component:"button",vkuiClass:Object(v.a)("Avatar__overlay",{"Avatar__overlay--visible":"always"===Y,"Avatar__overlay--light":"light"===I,"Avatar__overlay--dark":"dark"===I}),hoverMode:"Avatar__overlay--visible",focusVisibleMode:"Avatar__overlay--focus-visible",hasActive:!1,onClick:z},R),T&&Object(f.a)("div",{vkuiClass:Object(v.a)("Avatar__badge",{"Avatar__badge--large":j>=96,"Avatar__badge--shadow":"online"!==T&&"online-mobile"!==T})},"online"===T?Object(f.a)("div",{vkuiClass:"Avatar__badge-online"},Object(f.a)(kr,{width:j>=72?15:12,height:j>=72?15:12})):"online-mobile"===T?Object(f.a)("div",{vkuiClass:"Avatar__badge-online-mobile"},Object(f.a)(Tr,{width:j>=72?9:8,height:j>=72?15:12})):T))},Ir=(n(62),n(61)),Dr=n.n(Ir),Lr=n(375),zr=["children","isShown","offsetX","offsetY","alignX","alignY","onClose","cornerOffset","cornerAbsoluteOffset"],Br=function(e){return d.isValidElement(e)&&"string"===typeof e.type},Fr=Object(h.a)("Tooltip"),Vr=(Object(T.a)("Tooltip"),d.forwardRef((function(e,t){var n=e.mode,r=void 0===n?"accent":n,o=e.header,a=e.text,c=e.arrowRef,l=e.style,u=void 0===l?{}:l,s=e.attributes;return Object(f.a)("div",{vkuiClass:Object(v.a)(Fr,"Tooltip--".concat(r))},Object(f.a)("div",i()({vkuiClass:"Tooltip__container",ref:t,style:u.container},null===s||void 0===s?void 0:s.container),Object(f.a)("div",i()({vkuiClass:"Tooltip__corner",style:u.arrow},null===s||void 0===s?void 0:s.arrow,{ref:c})),Object(f.a)("div",{vkuiClass:"Tooltip__content"},o&&Object(f.a)(Ht,{weight:"semibold",vkuiClass:"Tooltip__title"},o),a&&Object(f.a)(Ht,{weight:"regular",vkuiClass:"Tooltip__text"},a))))})));function Kr(e){switch(e){case"left":return"start";case"right":return"end";default:return""}}var Hr=function(e){var t,n,r=e.children,o=e.isShown,a=e.offsetX,c=void 0===a?0:a,u=e.offsetY,p=void 0===u?15:u,v=e.alignX,h=e.alignY,m=e.onClose,b=e.cornerOffset,g=void 0===b?0:b,y=e.cornerAbsoluteOffset,w=s()(e,zr),O=_().entering,j=o&&!O,x=d.useState(null),C=l()(x,2),E=C[0],k=C[1],S=d.useState(null),N=l()(S,2),P=N[0],M=N[1],T=d.useState(),A=l()(T,2),I=A[0],D=A[1],L=d.useMemo((function(){return null===I||void 0===I?void 0:I.closest("[".concat(se,"]"))}),[I]),z=d.useMemo((function(){return"fixed"===(null===I||void 0===I?void 0:I.style.position)?"fixed":"absolute"}),[I]);var B=d.useMemo((function(){return{name:"arrowOffset",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state;r.modifiersData.arrow&&(!function(e){return e.startsWith("top")||e.startsWith("bottom")}(r.placement)?void 0!==y?r.modifiersData.arrow.y=y:void 0!==(null===(n=r.modifiersData.arrow)||void 0===n?void 0:n.y)&&(r.modifiersData.arrow.y+=g):void 0!==y?r.modifiersData.arrow.x=y:void 0!==(null===(t=r.modifiersData.arrow)||void 0===t?void 0:t.x)&&(r.modifiersData.arrow.x+=g))}}}),[g,y]),F=function(e,t){return[t||"bottom",Kr(e||"left")].filter((function(e){return!!e})).join("-")}(v,h),V=Object(Lr.a)(I,E,{strategy:z,placement:F,modifiers:[{name:"offset",options:{offset:[c,p]}},{name:"arrow",options:{element:P,padding:14}},{name:"preventOverflow"},{name:"flip"},B]}),K=V.styles,H=V.attributes,W=Object(R.d)().document;Object(he.a)(W,"click",j&&m,{passive:!0});var U=d.isValidElement(r)&&(Br(r)?r.ref:r.props.getRootRef),Y=Object(Fe.a)(D,U),G=d.isValidElement(r)?d.cloneElement(r,$()({},Br(r)?"ref":"getRootRef",Y)):r;return Object(f.a)(d.Fragment,null,G,j&&null!=I&&Dr.a.createPortal(Object(f.a)(Vr,i()({},w,{ref:function(e){return k(e)},arrowRef:function(e){return M(e)},style:{arrow:K.arrow,container:K.popper},attributes:{arrow:null!==(t=H.arrow)&&void 0!==t?t:null,container:null!==(n=H.popper)&&void 0!==n?n:null}})),L))};Hr.defaultProps={offsetX:0,offsetY:15,cornerOffset:0,isShown:!0,mode:"accent"};var Wr=Hr,Ur=["size","platform"],Yr=["mode","size","children"],Gr=function(e){var t=e.size,n=e.platform,r=s()(e,Ur);return"s"===t?Object(f.a)(Wt.a,i()({level:"2",weight:n===m.d?"medium":"regular"},r)):Object(f.a)(je.a,i()({weight:"medium"},r))},qr=function(e){var t=e.mode,n=e.size,r=e.children,o=s()(e,Yr),a=Object(D.a)();return 0===d.Children.count(r)?null:Object(f.a)("span",i()({},o,{vkuiClass:Object(v.a)(Object(h.a)("Counter",a),"Counter--".concat(t),"Counter--s-".concat(n))}),Object(C.c)(r)&&Object(f.a)(Gr,{platform:a,size:n,vkuiClass:"Counter__in"},r))};qr.defaultProps={mode:"secondary",size:"m"};var Xr=d.memo(qr),$r=["size","separator","style"],Zr=function(e){var t=e.size,n=e.separator,r=e.style,o=s()(e,$r),a=Object(D.a)(),c=y()({height:t},r);return Object(f.a)("div",i()({},o,{"aria-hidden":"true",vkuiClass:Object(v.a)(Object(h.a)("Spacing",a),{"Spacing--separator":!!n,"Spacing--separator-center":!0===n||"center"===n,"Spacing--separator-top":"top"===n,"Spacing--separator-bottom":"bottom"===n}),style:c}))};Zr.defaultProps={size:8};var Qr=["icon","header","action","children","stretched","getRootRef"],Jr=function(e){var t=e.icon,n=e.header,r=e.action,o=e.children,a=e.stretched,c=e.getRootRef,l=s()(e,Qr);return Object(f.a)("div",i()({},l,{ref:c,vkuiClass:Object(v.a)("Placeholder",{"Placeholder--stretched":a})}),Object(f.a)("div",{vkuiClass:"Placeholder__in"},Object(C.c)(t)&&Object(f.a)("div",{vkuiClass:"Placeholder__icon"},t),Object(C.c)(n)&&Object(f.a)(wt,{level:"2",weight:"medium",vkuiClass:"Placeholder__header"},n),Object(C.c)(o)&&Object(f.a)(gt,{weight:"regular",vkuiClass:"Placeholder__text"},o),Object(C.c)(r)&&Object(f.a)("div",{vkuiClass:"Placeholder__action"},r)))},eo=["children","Component","getRef","onSubmit"],to=function(e){return e.preventDefault()},no=function(e){var t=e.children,n=e.Component,r=void 0===n?"form":n,o=e.getRef,a=e.onSubmit,c=void 0===a?to:a,l=s()(e,eo),u=Object(D.a)();return Object(f.a)(r,i()({},l,{vkuiClass:Object(h.a)("FormLayout",u),onSubmit:c,ref:o}),Object(f.a)("div",{vkuiClass:"FormLayout__container"},t),"form"===r&&Object(f.a)("input",{type:"submit",vkuiClass:"FormLayout__submit",value:""}))},ro=["children","top","bottom","status","Component","removable","onRemove","removePlaceholder","getRootRef"],oo=function(e){var t=e.children,n=e.top,r=e.bottom,o=e.status,a=void 0===o?"default":o,c=e.Component,l=void 0===c?"div":c,u=e.removable,p=e.onRemove,m=void 0===p?C.g:p,b=e.removePlaceholder,g=void 0===b?"\u0423\u0434\u0430\u043b\u0438\u0442\u044c":b,y=e.getRootRef,w=s()(e,ro),O=Object(D.a)(),j=Object(Fe.a)(y),x=Object(sn.a)().sizeY,E=Object(f.a)(d.Fragment,null,Object(C.c)(n)&&Object(f.a)(Ht,{weight:"regular",vkuiClass:"FormItem__top"},n),t,Object(C.c)(r)&&Object(f.a)(Wt.a,{level:"1",weight:"regular",vkuiClass:"FormItem__bottom"},r));return Object(f.a)(l,i()({},w,{ref:j,vkuiClass:Object(v.a)(Object(h.a)("FormItem",O),"FormItem--".concat(a),"FormItem--sizeY-".concat(x),{"FormItem--withTop":Object(C.c)(n),"FormItem--removable":u})}),u?Object(f.a)(Mn,{align:"start",onRemove:function(e){null!==j&&void 0!==j&&j.current&&m(e,j.current)},removePlaceholder:g},Object(f.a)("div",{vkuiClass:"FormItem__removable"},E)):E)},ao=["children","mode","removable","removePlaceholder","onRemove","getRootRef"],io=function(e){var t=e.children,n=e.mode,r=void 0===n?"vertical":n,o=e.removable,a=e.removePlaceholder,c=void 0===a?"\u0423\u0434\u0430\u043b\u0438\u0442\u044c":a,l=e.onRemove,u=void 0===l?C.g:l,d=e.getRootRef,p=s()(e,ao),m=Object(D.a)(),b=Object(sn.a)().sizeY,g=o&&"horizontal"===r,y=Object(Fe.a)(d);return Object(f.a)("div",i()({ref:y,vkuiClass:Object(v.a)(Object(h.a)("FormLayoutGroup",m),"FormLayoutGroup--sizeY-".concat(b),"FormLayoutGroup--".concat(r),{"FormLayoutGroup--removable":g})},p),g?Object(f.a)(Mn,{vkuiClass:"FormLayoutGroup__removable",align:"start",removePlaceholder:c,onRemove:function(e){null!==y&&void 0!==y&&y.current&&u(e,y.current)}},t):t)},co=n(71),lo=["align","getRef","className","getRootRef","sizeY","style","after"],uo=function(e){var t=e.align,n=e.getRef,r=e.className,o=e.getRootRef,a=e.sizeY,c=e.style,l=e.after,u=s()(e,lo),d=Object(D.a)();return Object(f.a)(co.a,{vkuiClass:Object(v.a)(Object(h.a)("Input",d),$()({},"Input--".concat(t),!!t),"Input--sizeY-".concat(a)),style:c,className:r,getRootRef:o,after:l,disabled:u.disabled},Object(f.a)("input",i()({},u,{vkuiClass:"Input__el",ref:n})))};uo.defaultProps={type:"text"};var so=Object(de.a)(uo,{sizeY:!0});function fo(e,t){var n=e.hasOwnProperty("value"),r=d.useState(t.defaultValue),o=l()(r,2),a=o[0],i=o[1],c=d.useCallback((function(t){!n&&i(t.target.value),e.onChange&&e.onChange(t)}),[n,e]);return[n?e.value:a,c]}var po=["defaultValue","grow","style","onResize","className","getRootRef","getRef","sizeY","rows"],vo=d.memo((function(e){var t=e.defaultValue,n=void 0===t?"":t,r=e.grow,o=void 0===r||r,a=e.style,c=e.onResize,u=e.className,p=e.getRootRef,m=e.getRef,b=e.sizeY,g=e.rows,y=void 0===g?2:g,w=s()(e,po),O=fo(w,{defaultValue:n}),j=l()(O,2),x=j[0],C=j[1],E=d.useRef(),k=Object(Fe.a)(m),S=Object(D.a)();return d.useEffect((function(){var e=k.current;o&&null!==e&&void 0!==e&&e.offsetParent&&(e.style.height="",e.style.height="".concat(e.scrollHeight,"px"),e.scrollHeight!==E.current&&c&&(c(e),E.current=e.scrollHeight))}),[o,x,b,k,c]),Object(f.a)(co.a,{vkuiClass:Object(v.a)(Object(h.a)("Textarea",S),"Textarea--sizeY-".concat(b)),className:u,style:a,getRootRef:p,disabled:w.disabled},Object(f.a)("textarea",i()({},w,{rows:y,vkuiClass:"Textarea__el",value:x,onChange:C,ref:k})))})),ho=Object(de.a)(vo,{sizeY:!0}),mo=n(95),bo=["style","defaultValue","align","placeholder","children","className","getRef","getRootRef","disabled","sizeX","sizeY","multiline"],go=Object(de.a)((function(e){var t,n=e.style,r=e.defaultValue,o=void 0===r?"":r,a=e.align,c=e.placeholder,u=e.children,p=e.className,b=e.getRef,g=e.getRootRef,y=e.disabled,w=e.sizeX,O=e.sizeY,j=e.multiline,x=s()(e,bo),C=Object(D.a)(),E=d.useState(""),k=l()(E,2),S=k[0],N=k[1],_=d.useState(!1),P=l()(_,2),M=P[0],T=P[1],R=fo(x,{defaultValue:o}),I=l()(R,2),L=I[0],z=I[1],B=Object(Fe.a)(b);Object(A.a)((function(){var e,t=null===(e=B.current)||void 0===e?void 0:e.options[B.current.selectedIndex];t&&(N(t.text),T(""===t.value&&null!=c))}),[L,u]);var F=C===m.d||O===Oe.b.COMPACT?je.a:gt;return Object(f.a)(co.a,{Component:"label",vkuiClass:Object(v.a)(Object(h.a)("Select",C),(t={},$()(t,"Select--not-selected",M),$()(t,"Select--align-".concat(a),!!a),$()(t,"Select--sizeX--".concat(w),!!w),$()(t,"Select--sizeY--".concat(O),!!O),$()(t,"Select--multiline",j),t)),className:p,style:n,getRootRef:g,disabled:y,after:Object(f.a)(mo.a,null)},Object(f.a)("select",i()({},x,{disabled:y,vkuiClass:"Select__el",onChange:z,value:L,ref:B}),c&&Object(f.a)("option",{value:""},c),u),Object(f.a)(F,{Component:"div",weight:"regular",vkuiClass:"Select__container"},Object(f.a)("span",{vkuiClass:"Select__title"},S)))}),{sizeX:!0,sizeY:!0}),yo=["tabIndex","placeholder","children","align","getRootRef","multiline","disabled","onClick","sizeX","sizeY"],wo=function(e){var t,n=e.tabIndex,r=e.placeholder,o=e.children,a=e.align,c=e.getRootRef,l=e.multiline,u=e.disabled,d=e.onClick,p=e.sizeX,b=e.sizeY,g=s()(e,yo),y=Object(D.a)(),w=y===m.d||b===Oe.b.COMPACT?je.a:gt;return Object(f.a)(co.a,i()({},g,{tabIndex:u?void 0:n,vkuiClass:Object(v.a)(Object(h.a)("Select",y),"Select--mimicry",(t={"Select--not-selected":!o,"Select--multiline":l},$()(t,"Select--align-".concat(a),!!a),$()(t,"Select--sizeX--".concat(p),!!p),$()(t,"Select--sizeY--".concat(b),!!b),t)),getRootRef:c,onClick:u?void 0:d,disabled:u,after:Object(f.a)(mo.a,null)}),Object(f.a)(w,{Component:"div",weight:"regular",vkuiClass:"Select__container"},Object(f.a)("span",{vkuiClass:"Select__title"},o||r)))};wo.defaultProps={tabIndex:0};var Oo=Object(de.a)(wo,{sizeX:!0,sizeY:!0}),jo=n(98),xo=n(123);var Co=n(138),Eo=["searchable","name","className","getRef","getRootRef","popupDirection","options","sizeY","platform","style","onChange","onBlur","onFocus","onClick","renderOption","children","emptyText","onInputChange","filterFn","renderDropdown","onOpen","onClose","fetching"],ko=["option"],So=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t>=e.length-1?-1:e.findIndex((function(e,n){return n>t&&!e.disabled}))},No=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,n=-1;if(void 0===e||t<=0)return n;for(var r=t-1;r>=0;r--){var o=e[r];if(!o.disabled){n=r;break}}return n},_o=(Object(T.a)("CustomSelect"),function(e){Y()(n,e);var t=q()(n);function n(e){var r;F()(this,n),r=t.call(this,e),$()(W()(r),"keyboardInput",void 0),$()(W()(r),"isControlledOutside",!1),$()(W()(r),"selectEl",null),$()(W()(r),"scrollBoxRef",d.createRef()),$()(W()(r),"containerRef",d.createRef()),$()(W()(r),"resetKeyboardInput",(function(){r.keyboardInput=""})),$()(W()(r),"getSelectedItem",(function(){var e=r.state,t=e.selectedOptionIndex,n=e.options;return null!==n&&void 0!==n&&n.length?void 0!==t?n[t]:void 0:null})),$()(W()(r),"filter",(function(e,t,n){return"function"===typeof n?e.filter((function(e){return n(t,e)})):e})),$()(W()(r),"open",(function(){r.setState((function(e){return{opened:!0,focusedOptionIndex:e.selectedOptionIndex}}),(function(){var e=r.state.selectedOptionIndex;void 0!==e&&r.isValidIndex(e)&&r.scrollToElement(e,!0)})),"function"===typeof r.props.onOpen&&r.props.onOpen()})),$()(W()(r),"close",(function(){r.resetKeyboardInput(),r.setState((function(){return{inputValue:"",opened:!1,focusedOptionIndex:-1,options:r.props.options}})),"function"===typeof r.props.onClose&&r.props.onClose()})),$()(W()(r),"selectFocused",(function(){var e=r.state.focusedOptionIndex;void 0!==e&&r.select(e)})),$()(W()(r),"select",(function(e){var t;if(r.isValidIndex(e)){var n=null===(t=r.state.options)||void 0===t?void 0:t[e];r.setState({nativeSelectValue:null===n||void 0===n?void 0:n.value},(function(){var e,t=new Event("change",{bubbles:!0});null===(e=r.selectEl)||void 0===e||e.dispatchEvent(t)})),r.close()}})),$()(W()(r),"onClick",(function(){r.state.opened?r.close():r.open()})),$()(W()(r),"onFocus",(function(){var e,t=new Event("focus");null===(e=r.selectEl)||void 0===e||e.dispatchEvent(t)})),$()(W()(r),"onBlur",(function(){var e;r.close();var t=new Event("blur");null===(e=r.selectEl)||void 0===e||e.dispatchEvent(t)})),$()(W()(r),"focusOptionByIndex",(function(e){var t,n,o,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!(void 0===e||e<0||e>(null!==(t=null===(n=r.state.options)||void 0===n?void 0:n.length)&&void 0!==t?t:0)-1)){var i=null===(o=r.state.options)||void 0===o?void 0:o[e];null!==i&&void 0!==i&&i.disabled||(a&&r.scrollToElement(e),r.setState((function(){return{focusedOptionIndex:e}})))}})),$()(W()(r),"focusOption",(function(e){var t=r.state.focusedOptionIndex;if("next"===e){var n=So(r.state.options,t);t=-1===n?So(r.state.options):n}else if("prev"===e){var o=No(r.state.options,t);t=-1===o?No(r.state.options):o}r.focusOptionByIndex(t)})),$()(W()(r),"handleOptionHover",(function(e){var t;r.focusOptionByIndex(Array.prototype.indexOf.call(null===(t=e.currentTarget.parentNode)||void 0===t?void 0:t.children,e.currentTarget),!1)})),$()(W()(r),"handleOptionDown",(function(e){e.preventDefault()})),$()(W()(r),"handleOptionClick",(function(e){var t,n,o=Array.prototype.indexOf.call(null===(t=e.currentTarget.parentNode)||void 0===t?void 0:t.children,e.currentTarget),a=null===(n=r.state.options)||void 0===n?void 0:n[o];a&&!a.disabled&&r.selectFocused()})),$()(W()(r),"resetFocusedOption",(function(){r.setState({focusedOptionIndex:-1})})),$()(W()(r),"onKeyboardInput",(function(e){var t,n=r.keyboardInput+e,o=null===(t=r.state.options)||void 0===t?void 0:t.findIndex((function(e){return e.label.toLowerCase().includes(n)}));void 0!==o&&o>-1&&r.focusOptionByIndex(o),r.keyboardInput=n})),$()(W()(r),"onLabelClick",(function(e){var t;null!==(t=r.scrollBoxRef.current)&&void 0!==t&&t.contains(e.target)&&e.preventDefault()})),$()(W()(r),"onNativeSelectChange",(function(e){var t,n,o=r.findSelectedIndex(r.state.options,e.currentTarget.value);r.state.selectedOptionIndex!==o&&(r.isControlledOutside||r.setState({selectedOptionIndex:o}),null===(t=(n=r.props).onChange)||void 0===t||t.call(n,e))})),$()(W()(r),"onInputChange",(function(e){if(r.props.onInputChange){var t=r.props.onInputChange(e,r.props.options);t?r.setState({options:t,selectedOptionIndex:r.findSelectedIndex(t,r.state.nativeSelectValue),inputValue:e.target.value}):r.setState({inputValue:e.target.value})}else{var n=r.filter(r.props.options,e.target.value,r.props.filterFn);r.setState({options:n,selectedOptionIndex:r.findSelectedIndex(n,r.state.nativeSelectValue),inputValue:e.target.value})}})),$()(W()(r),"onInputKeyDown",(function(e){switch(["ArrowUp","ArrowDown","Escape","Enter"].includes(e.key)&&r.areOptionsShown&&e.preventDefault(),e.key){case"ArrowUp":r.areOptionsShown&&r.focusOption("prev");break;case"ArrowDown":r.areOptionsShown&&r.focusOption("next");break;case"Escape":r.close();break;case"Enter":r.areOptionsShown&&r.selectFocused()}})),$()(W()(r),"handleKeyDownSelect",(function(e){var t=r.state.opened;if(1!==e.key.length||" "===e.key)switch(["ArrowUp","ArrowDown","Escape","Enter"].includes(e.key)&&r.areOptionsShown&&e.preventDefault(),e.key){case"ArrowUp":t?r.areOptionsShown&&r.focusOption("prev"):r.open();break;case"ArrowDown":t?r.areOptionsShown&&r.focusOption("next"):r.open();break;case"Escape":r.close();break;case"Enter":case"Spacebar":case" ":t?r.areOptionsShown&&r.selectFocused():r.open()}else r.onKeyboardInput(e.key)})),$()(W()(r),"handleKeyUp",Object(C.a)(r.resetKeyboardInput,1e3)),$()(W()(r),"renderOption",(function(e,t){var n=r.state,o=n.focusedOptionIndex,a=n.selectedOptionIndex,i=r.props.renderOption,c=t===o,l=t===a;return Object(f.a)(d.Fragment,{key:"".concat(e.value)},i({option:e,hovered:c,children:e.label,selected:l,disabled:e.disabled,onClick:r.handleOptionClick,onMouseDown:r.handleOptionDown,onMouseEnter:r.handleOptionHover}))})),$()(W()(r),"selectRef",(function(e){r.selectEl=e,r.props.getRef&&Object(C.h)(e,r.props.getRef)})),$()(W()(r),"onPlacementChange",(function(e){r.setState((function(){return{popperPlacement:e}}))}));var o=e.value,a=e.defaultValue,i=void 0!==o?o:a;return r.keyboardInput="",r.state={opened:!1,focusedOptionIndex:-1,selectedOptionIndex:r.findSelectedIndex(e.options,i),nativeSelectValue:i,options:e.options,inputValue:""},void 0!==e.value&&(r.isControlledOutside=!0),r}return K()(n,[{key:"areOptionsShown",get:function(){return null!==this.scrollBoxRef.current}},{key:"findSelectedIndex",value:function(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.findIndex((function(e){return t="number"===typeof e.value?Number(t):t,e.value===t})))&&void 0!==n?n:-1}},{key:"isValidIndex",value:function(e){var t,n;return e>=0&&e<(null!==(t=null===(n=this.state.options)||void 0===n?void 0:n.length)&&void 0!==t?t:0)}},{key:"scrollToElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.scrollBoxRef.current,r=n?n.children[e]:null;if(r&&n){var o=n.offsetHeight,a=n.scrollTop,i=r.offsetTop,c=r.offsetHeight;t?n.scrollTop=i-o/2+c/2:i+c>o+a?n.scrollTop=i-o+c:i0?a.map(this.renderOption):Object(f.a)(Wt.a,{level:"1",weight:"regular",vkuiClass:"CustomSelect__empty"},this.props.emptyText);t="function"===typeof x?x({defaultDropdownContent:_}):_;var P=null===(e=this.state.popperPlacement)||void 0===e?void 0:e.includes("top");return Object(f.a)("label",{vkuiClass:Object(h.a)("CustomSelect",g),className:d,style:y,ref:Object(C.f)(this.containerRef,p),onClick:this.onLabelClick},r&&l?Object(f.a)(so,i()({},k,{autoFocus:!0,onBlur:this.onBlur,vkuiClass:Object(v.a)({CustomSelect__open:r,"CustomSelect__open--popupDirectionTop":P}),value:this.state.inputValue,onKeyDown:this.onInputKeyDown,onChange:this.onInputChange,onClick:j,after:Object(f.a)(mo.a,null),placeholder:k.placeholder})):Object(f.a)(Oo,i()({},k,{"aria-hidden":!0,onClick:this.onClick,onKeyDown:this.handleKeyDownSelect,onKeyUp:this.handleKeyUp,onFocus:this.onFocus,onBlur:this.onBlur,vkuiClass:Object(v.a)({CustomSelect__open:r,"CustomSelect__open--popupDirectionTop":P})}),N),Object(f.a)("select",{ref:this.selectRef,name:u,onChange:this.onNativeSelectChange,onBlur:w,onFocus:O,onClick:j,value:o,"aria-hidden":!0,vkuiClass:"CustomSelect__control"},b.map((function(e){return Object(f.a)("option",{key:"".concat(e.value),value:e.value})}))),r&&Object(f.a)(Co.a,{targetRef:this.containerRef,placement:m,scrollBoxRef:this.scrollBoxRef,onPlacementChange:this.onPlacementChange,onMouseLeave:this.resetFocusedOption,fetching:E},t))}}]),n}(d.Component));$()(_o,"defaultProps",{searchable:!1,renderOption:function(e){e.option;var t=s()(e,ko);return Object(f.a)(jo.a,t)},options:[],emptyText:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",filterFn:xo.a});var Po=ne(Object(de.a)(_o,{sizeY:!0})),Mo=["hasMouse"],To=["children"],Ro=["options","popupDirection","renderOption"],Ao=Object(de.a)((function(e){var t=e.hasMouse,n=s()(e,Mo);if(t){n.children;var r=s()(n,To);return Object(f.a)(Po,r)}var o=n.options,a=void 0===o?[]:o,i=(n.popupDirection,n.renderOption,s()(n,Ro));return Object(f.a)(go,i,a.map((function(e){var t=e.label,n=e.value;return Object(f.a)("option",{value:n,key:"".concat(n)},t)})))}),{hasMouse:!0}),Io="0 0 28 28",Do="arrow_left_outline_28",Lo=!1;function zo(){Lo||(Object(St.a)(new Et.a({id:Do,viewBox:Io,content:''})),Lo=!0)}var Bo=function(e){return Object(St.b)((function(){zo()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Io,id:Do,width:isNaN(e.width)?28:+e.width,height:isNaN(e.height)?28:+e.height}))};Bo.mountIcon=zo;var Fo=Bo,Vo="0 0 28 28",Ko="chevron_left_outline_28",Ho=!1;function Wo(){Ho||(Object(St.a)(new Et.a({id:Ko,viewBox:Vo,content:''})),Ho=!0)}var Uo=function(e){return Object(St.b)((function(){Wo()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Vo,id:Ko,width:isNaN(e.width)?28:+e.width,height:isNaN(e.height)?28:+e.height}))};Uo.mountIcon=Wo;var Yo=Uo,Go="0 0 20 28",qo="chevron_back_28",Xo=!1;function $o(){Xo||(Object(St.a)(new Et.a({id:qo,viewBox:Go,content:''})),Xo=!0)}var Zo=function(e){return Object(St.b)((function(){$o()}),[]),p.a.createElement(Nt.a,Object(kt.assign)({},e,{viewBox:Go,id:qo,width:isNaN(e.width)?20:+e.width,height:isNaN(e.height)?28:+e.height}))};Zo.mountIcon=$o;var Qo=Zo,Jo=["label","sizeX"],ea=function(e){var t=e.label,n=e.sizeX,r=s()(e,Jo),o=Object(D.a)(),a=o===m.d||o===m.b&&n===Oe.b.REGULAR;return Object(f.a)(xt,i()({},r,{vkuiClass:Object(v.a)(Object(h.a)("PanelHeaderBack",o),{"PanelHeaderBack--has-label":a&&!!t}),label:a&&t}),o===m.a&&Object(f.a)(Fo,null),o===m.d&&Object(f.a)(Yo,null),o===m.b&&Object(f.a)(Qo,null))};ea.defaultProps={"aria-label":"\u041d\u0430\u0437\u0430\u0434"};var ta=d.memo(Object(de.a)(ea,{sizeX:!0})),na=n(121),ra=n(174);var oa=n(54),aa=n.n(oa),ia={bottom:null,top:null,left:null,right:null};function ca(e){var t=e.detail,n=t.type,r=t.data;switch(n){case"VKWebAppUpdateConfig":case"VKWebAppUpdateInsets":var o=r.insets;if(o)return y()(y()({},o),{},{bottom:o.bottom>150?0:o.bottom})}return null}aa.a.subscribe((function(e){var t=ca(e);t&&(ia=t)}));var la,ua,sa=d.createContext(void 0),fa=["children","mode","embedded","sizeX","hasMouse","noLegacyClasses","scroll"],da=(Object(T.a)("AppRoot"),Object(de.a)((function(e){var t=e.children,n=e.mode,r=e.embedded,o=e.sizeX,a=e.hasMouse,c=e.noLegacyClasses,u=void 0!==c&&c,p=e.scroll,h=void 0===p?"global":p,m=s()(e,fa),b=n||(r?"embedded":"full"),g=function(){var e=Object(R.d)().document,t=d.useState(!1),n=l()(t,2),r=n[0],o=n[1],a=d.useCallback((function(e){Object(Ve.c)(e)===Ve.b.TAB&&o(!0)}),[]),i=d.useCallback((function(){o(!1)}),[]),c={passive:!0,capture:!0};return Object(he.a)(e,"keydown",a,c),Object(he.a)(e,"mousedown",i,c),Object(he.a)(e,"touchstart",i,c),r}(),y=d.useRef(null),w=d.useState(null),O=l()(w,2),j=O[0],x=O[1],S=Object(R.d)(),N=S.window,_=S.document,P=function(){var e=d.useState(ia),t=l()(e,2),n=t[0],r=t[1];return Object(A.a)((function(){function e(e){var t=ca(e);t&&r(t)}return aa.a.subscribe(e),function(){aa.a.unsubscribe(e)}}),[]),n}(),M=d.useContext(sa),T=d.useRef(!1);T.current||(_&&"full"===b&&_.documentElement.classList.add("vkui"),na.a.noConflict=u,T.current=!0),Object(A.a)((function(){var e=_.createElement("div");return e.classList.add("vkui__portal-root"),_.body.appendChild(e),x(e),function(){var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)}}),[]),Object(A.a)((function(){var e,t;if("partial"===b)return C.g;var n=null===(e=y.current)||void 0===e?void 0:e.parentElement,r=["vkui__root"].concat("embedded"===b?"vkui__root--embedded":[]);return null===n||void 0===n||(t=n.classList).add.apply(t,Ge()(r)),function(){var e;null===n||void 0===n||(e=n.classList).remove.apply(e,Ge()(r)),"full"===b&&(null===_||void 0===_||_.documentElement.classList.remove("vkui"))}}),[]),Object(A.a)((function(){var e;if("partial"===b||null===(e=y.current)||void 0===e||!e.parentElement)return C.g;var t=y.current.parentElement;for(var n in P)if(P.hasOwnProperty(n)&&"number"===typeof P[n]){var r=P[n];t.style.setProperty("--safe-area-inset-".concat(n),"".concat(r,"px")),j&&j.style.setProperty("--safe-area-inset-".concat(n),"".concat(r,"px"))}return function(){for(var e in P)P.hasOwnProperty(e)&&(t.style.removeProperty("--safe-area-inset-".concat(e)),j&&j.style.removeProperty("--safe-area-inset-".concat(e)))}}),[P,j]),Object(A.a)((function(){var e;if("partial"===b||o!==Oe.b.REGULAR)return C.g;var t="embedded"===b?null===(e=y.current)||void 0===e?void 0:e.parentElement:_.body;return null===t||void 0===t||t.classList.add("vkui--sizeX-regular"),function(){return null===t||void 0===t?void 0:t.classList.remove("vkui--sizeX-regular")}}),[o]);var I=d.useMemo((function(){return"contain"===h?(e=y,{getScroll:function(){var t,n,r,o;return{x:null!==(t=null===(n=e.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,y:null!==(r=null===(o=e.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0}},scrollTo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e.current;null===r||void 0===r||r.scrollTo(t?E(t,0,r.scrollWidth-r.clientWidth):0,n?E(n,0,r.scrollHeight-r.clientHeight):0)}}):function(e,t){return{getScroll:function(){return{x:e.pageXOffset,y:e.pageYOffset}},scrollTo:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.scrollTo(n?E(n,0,t.body.scrollWidth-e.innerWidth):0,r?E(r,0,t.body.scrollHeight-e.innerHeight):0)}}}(N,_);var e}),[_,h,N]);Object(A.a)((function(){var e;null===j||void 0===j||j.setAttribute("scheme",null!==(e=null===M||void 0===M?void 0:M.scheme)&&void 0!==e?e:"")}),[j,null===M||void 0===M?void 0:M.scheme]);var D=Object(f.a)(Ke.a.Provider,{value:{appRoot:y,portalRoot:j,embedded:"embedded"===b,keyboardInput:g,mode:b}},Object(f.a)(k.Provider,{value:I},Object(f.a)(ra.b,{classPrefix:"vkui",globalClasses:!u},t)));return"partial"===b?D:Object(f.a)("div",i()({ref:y,vkuiClass:Object(v.a)("AppRoot",{"AppRoot--no-mouse":!a})},m),D)}),{sizeX:!0,hasMouse:!0})),pa=function(e){var t=d.useRef(null),n=d.useState({}),r=l()(n,2)[1],o=Object(R.d)().window;return t.current||(t.current=va(o?o.innerWidth:0,o?o.innerHeight:0,e)),d.useEffect((function(){function n(){if(null!==t.current){var n=va(o.innerWidth,o.innerHeight,e),a=t.current,i=a.viewWidth,c=a.viewHeight,l=a.sizeX,u=a.sizeY,s=a.hasMouse,f=a.deviceHasHover;i===n.viewWidth&&c===n.viewHeight&&l===n.sizeX&&u===n.sizeY&&s===n.hasMouse&&f===n.deviceHasHover||(t.current=n,r({}))}}return n(),o.addEventListener("resize",n,!1),function(){o.removeEventListener("resize",n,!1)}}),[e.viewWidth,e.viewHeight,e.sizeX,e.sizeY,e.hasMouse,e.deviceHasHover,o,e]),Object(f.a)(Oe.a.Provider,{value:t.current},e.children)};function va(e,t,n){var o,a,i=Oe.d.SMALL_MOBILE,c=Oe.c.SMALL,l=Oe.b.REGULAR,u=Oe.b.REGULAR,s=null!==(o=n.hasMouse)&&void 0!==o?o:r.d,f=null!==(a=n.deviceHasHover)&&void 0!==a?a:r.c;return i=e>=1280?Oe.d.DESKTOP:e>=1024?Oe.d.TABLET:e>=768?Oe.d.SMALL_TABLET:e>=320?Oe.d.MOBILE:Oe.d.SMALL_MOBILE,c=t>=720?Oe.c.MEDIUM:t>414?Oe.c.SMALL:Oe.c.EXTRA_SMALL,n.viewWidth&&(i=n.viewWidth),n.viewHeight&&(c=n.viewHeight),i<=Oe.d.MOBILE&&(u=Oe.b.COMPACT),(i>=Oe.d.SMALL_TABLET&&s||c<=Oe.c.EXTRA_SMALL)&&(l=Oe.b.COMPACT),n.sizeX&&(u=n.sizeX),n.sizeY&&(l=n.sizeY),{viewWidth:i,viewHeight:c,sizeX:u,sizeY:l,hasMouse:s,deviceHasHover:f}}function ha(e){var t=e.platform;switch(e.appearance){case"dark":return t===m.d?la.VKCOM_DARK:la.SPACE_GRAY;case"light":return t===m.d?la.VKCOM_LIGHT:la.BRIGHT_LIGHT}}!function(e){e.DEPRECATED_CLIENT_LIGHT="client_light",e.DEPRECATED_CLIENT_DARK="client_dark",e.VKCOM="vkcom",e.BRIGHT_LIGHT="bright_light",e.SPACE_GRAY="space_gray",e.VKCOM_LIGHT="vkcom_light",e.VKCOM_DARK="vkcom_dark"}(la||(la={})),function(e){e.DARK="dark",e.LIGHT="light"}(ua||(ua={}));Object(T.a)("scheme");var ma=function(e){var t=e.children,n=e.appearance,r=void 0===n?"light":n,o=Object(D.a)(),a=d.useMemo((function(){return{scheme:ha({platform:o,appearance:r}),appearance:r}}),[r,o]);return Object(f.a)(sa.Provider,{value:a},d.Children.map(t,(function(e){return d.isValidElement(e)?d.cloneElement(e,{className:Object(v.b)(e.props.className,"vkui".concat(a.scheme))}):e})))},ba=["children"];Object(T.a)("ConfigProvider");var ga=function(e){var t=e.children,n=s()(e,ba),o=y()(y()({},b.c),n),a=o.platform,i=o.appearance,c=function(e){var t=e.platform,n=e.scheme,r=e.appearance;if(r)return ha({platform:t,appearance:r});if("inherit"===n)return n;if(n===la.VKCOM)return la.VKCOM_LIGHT;if(t===m.d&&(n===la.BRIGHT_LIGHT||n===la.SPACE_GRAY))return la.VKCOM_LIGHT;switch(n){case la.DEPRECATED_CLIENT_LIGHT:return la.BRIGHT_LIGHT;case la.DEPRECATED_CLIENT_DARK:return la.SPACE_GRAY;default:return n}}({scheme:o.scheme,platform:a,appearance:i}),u=Object(R.d)().document,p=null===u||void 0===u?void 0:u.body;Object(A.a)((function(){return"inherit"===c?C.g:(null===p||void 0===p||p.setAttribute("scheme",c),function(){return null===p||void 0===p?void 0:p.removeAttribute("scheme")})}),[c]);var v=function(e){return e===la.SPACE_GRAY||e===la.VKCOM_DARK?"dark":"light"}(function(e,t){var n="inherit"===t,o=d.useCallback((function(){if(n&&r.a&&e)return e.getAttribute("scheme")}),[n,e]),a=d.useState(o()),i=l()(a,2),c=i[0],u=i[1];return d.useEffect((function(){if(!n||!e)return C.g;u(o());var t=new MutationObserver((function(){return u(o())}));return t.observe(e,{attributes:!0,attributeFilter:["scheme"]}),function(){return t.disconnect()}}),[o,n,e]),"inherit"===t?c:t}(p,c));Object(A.a)((function(){var e=function(e,t){var n;switch(e){case m.c.ANDROID:n="vkBase";break;case m.c.IOS:n="vkIOS";break;case m.c.VKCOM:n="vkCom";break;default:n=e}return"vkui--".concat(n,"--").concat(t)}(a,v);return null===p||void 0===p||p.classList.add(e),function(){null===p||void 0===p||p.classList.remove(e)}}),[a,v]);var h=S(y()({appearance:v},o));return Object(f.a)(b.a.Provider,{value:h},Object(f.a)(ma,{appearance:h.appearance},t))},ya=function(){return d.useContext(b.a).appearance}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(62),o=n.n(r);function a(){for(var e=[],t=0;t1?e:e[0]||""}function i(){var e=a.apply(void 0,arguments);return"string"===typeof e?e:e.join(" ")}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return w}));var r=n(0),o=n.n(r),a=o.a.createContext(null);var i=function(e){e()},c={notify:function(){}};function l(){var e=i,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var u=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=c,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=l())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=c)},e}(),s="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,i=e.children,c=Object(r.useMemo)((function(){var e=new u(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=Object(r.useMemo)((function(){return t.getState()}),[t]);s((function(){var e=c.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[c,l]);var f=n||a;return o.a.createElement(f.Provider,{value:c},i)};n(6),n(86),n(147),n(97);function d(){return Object(r.useContext)(a)}function p(e){void 0===e&&(e=a);var t=e===a?d:function(){return Object(r.useContext)(e)};return function(){return t().store}}var v=p();function h(e){void 0===e&&(e=a);var t=e===a?v:p(e);return function(){return t().dispatch}}var m=h(),b=function(e,t){return e===t};function g(e){void 0===e&&(e=a);var t=e===a?d:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=b);var o=t(),a=function(e,t,n,o){var a,i=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return new u(n,o)}),[n,o]),l=Object(r.useRef)(),f=Object(r.useRef)(),d=Object(r.useRef)(),p=Object(r.useRef)(),v=n.getState();try{if(e!==f.current||v!==d.current||l.current){var h=e(v);a=void 0!==p.current&&t(h,p.current)?p.current:h}else a=p.current}catch(m){throw l.current&&(m.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),m}return s((function(){f.current=e,d.current=v,p.current=a,l.current=void 0})),s((function(){function e(){try{var e=n.getState(),r=f.current(e);if(t(r,p.current))return;p.current=r,d.current=e}catch(m){l.current=m}i()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),a}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(a),a}}var y,w=g(),O=n(61);y=O.unstable_batchedUpdates,i=y},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(110);var o=n(128),a=n(93);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){e.exports=n(262)},function(e,t,n){(function(t){var n;n=function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};function n(e,t){return e(t={exports:{}},t.exports),t.exports}e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))},"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;var r=n((function(e,t){e.exports=function(){function e(e){return e&&"object"===typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?a(t(n),n,r):n}function r(t,r,o){var i=t.slice();return r.forEach((function(r,c){"undefined"===typeof i[c]?i[c]=n(r,o):e(r)?i[c]=a(t[c],r,o):-1===t.indexOf(r)&&i.push(n(r,o))})),i}function o(t,r,o){var i={};return e(t)&&Object.keys(t).forEach((function(e){i[e]=n(t[e],o)})),Object.keys(r).forEach((function(c){e(r[c])&&t[c]?i[c]=a(t[c],r[c],o):i[c]=n(r[c],o)})),i}function a(e,t,a){var i=Array.isArray(t),c=(a||{arrayMerge:r}).arrayMerge||r;return i?Array.isArray(e)?c(e,t,a):n(t,a):o(e,t,a)}return a.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return a(e,n,t)}))},a}()})),o=n((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),a=o.svg,i=o.xlink,c={};c[a.name]=a.uri,c[i.name]=i.uri;var l=function(e,t){void 0===e&&(e="");var n=function(e){return Object.keys(e).map((function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'})).join(" ")}(r(c,t||{}));return""+e+""},u=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e);return u},e.exports=n()}).call(this,n(112))},function(e,t,n){"use strict";function r(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={display:"block"};var d=function(e){var t=e.width,n=e.height,c=e.viewBox,u=e.id,d=e.className,p=e.style,v=e.fill,h=e.getRootRef,m=e.Component,b=s(e,["width","height","viewBox","id","className","style","fill","getRootRef","Component"]),g=Math.max(t,n),y=Object(r.useContext)(a.a),w=function(e,t){for(var n=t.classPrefix,r=t.globalClasses,o="",a=0;a1&&void 0!==arguments[1]?arguments[1]:Object(r.e)();return"".concat(e," ").concat(e,"--").concat(t)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l}));var r,o=n(120);!function(e){e.ANDROID="android",e.IOS="ios",e.VKCOM="vkcom"}(r||(r={}));var a=r.ANDROID,i=r.IOS,c=r.VKCOM;function l(e){return e||(e=Object(o.a)()),"ios"===e.system?i:a}l()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(100),a=n(47);function i(){var e=r.useContext(o.a),t=r.useContext(a.a).platform;return e.platform||t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(86);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){var r=n(254),o=n(255),a=n(141),i=n(256);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(u){return void n(u)}c.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,l,"next",e)}function l(e){r(i,o,a,c,l,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},function(e,t,n){var r=n(13);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===c(e)?e.get(t):e[t]}function s(e,t,n){var r=c(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return F&&e instanceof Map}function p(e){return V&&e instanceof Set}function v(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=q(e);delete t[U];for(var n=G(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&i(e,(function(e,t){return m(t,!0)}),!0)),e}function b(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=X[e];return t||r(18,e),t}function w(){return z}function O(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){x(e),e.p.forEach(E),e.p=null}function x(e){e===z&&(z=e.l)}function C(e){return z={p:[],l:z,h:e,m:!0,_:0}}function E(e){var t=e[U];0===t.i||1===t.i?t.j():t.g=!0}function k(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||y("ES5").S(t,e,o),o?(n[U].P&&(j(t),r(4)),a(e)&&(e=S(t,e),t.l||_(t,e)),t.u&&y("Patches").M(n[U],e,t.u,t.s)):e=S(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==H?e:void 0}function S(e,t,n){if(g(t))return t;var r=t[U];if(!r)return i(t,(function(o,a){return N(e,r,t,o,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return _(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=h(r.k):r.o;i(3===r.i?new Set(o):o,(function(t,a){return N(e,r,o,t,a,n)})),_(e,o,!1),n&&e.u&&y("Patches").R(r,n,e.u,e.s)}return r.o}function N(e,t,n,r,i,c){if(o(i)){var u=S(e,i,c&&t&&3!==t.i&&!l(t.D,r)?c.concat(r):void 0);if(s(n,r,u),!o(u))return;e.m=!1}if(a(i)&&!g(i)){if(!e.h.F&&e._<1)return;S(e,i),t&&t.A.l||_(e,i)}}function _(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&m(t,n)}function P(e,t){var n=e[U];return(n?v(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function T(e){e.P||(e.P=!0,e.l&&T(e.l))}function R(e){e.o||(e.o=h(e.t))}function A(e,t,n){var r=d(t)?y("MapSet").N(t,n):p(t)?y("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,a=$;n&&(o=[r],a=Z);var i=Proxy.revocable(o,a),c=i.revoke,l=i.proxy;return r.k=l,r.j=c,l}(t,n):y("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function I(e){return o(e)||r(22,e),function e(t){if(!a(t))return t;var n,r=t[U],o=c(t);if(r){if(!r.P&&(r.i<4||!y("ES5").K(r)))return r.t;r.I=!0,n=D(t,o),r.I=!1}else n=D(t,o);return i(n,(function(t,o){r&&u(r.t,t)===o||s(n,t,e(o))})),3===o?new Set(n):n}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}var L,z,B="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),F="undefined"!=typeof Map,V="undefined"!=typeof Set,K="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=B?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),W=B?Symbol.for("immer-draftable"):"__$immer_draftable",U=B?Symbol.for("immer-state"):"__$immer_state",Y=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,q=Object.getOwnPropertyDescriptors||function(e){var t={};return G(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},$={get:function(e,t){if(t===U)return e;var n=v(e);if(!l(n,t))return function(e,t,n){var r,o=M(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!a(r)?r:r===P(e.t,t)?(R(e),e.o[t]=A(e.A.h,r,e)):r},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,n){var r=M(v(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=P(v(e),t),a=null==o?void 0:o[U];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,o)&&(void 0!==n||l(e.t,t)))return!0;R(e),T(e)}return e.o[t]===n&&"number"!=typeof n||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.D[t]=!1,R(e),T(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=v(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Z={};i($,(function(e,t){Z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Z.deleteProperty=function(e,t){return $.deleteProperty.call(this,e[0],t)},Z.set=function(e,t,n){return $.set.call(this,e[0],t,n,e[0])};var Q=function(){function e(e){var t=this;this.O=K,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var c=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var a=y("Patches").$;return o(e)?a(e,t):this.produce(e,(function(e){return a(e,t.slice(n+1))}))},e}(),J=new Q,ee=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J);t.a=ee},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(9),o=n.n(r),a=n(2),i=n(0),c=n(49),l=function(){return{window:c.a?window:void 0,document:c.a?document:void 0}},u=i.createContext(l()),s=function(){return i.useContext(u)};function f(e){return function(t){var n=s();return Object(a.a)(e,o()({},t,n))}}function d(e){e&&e.activeElement&&e.activeElement.blur()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function c(e){i.delete(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=a+=1;function o(t){if(0===t)c(n),e();else{var a=r((function(){o(t-1)}));i.set(n,a)}}return o(t),n}l.cancel=function(e){var t=i.get(e);return c(t),o(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=n(49).a?r.useLayoutEffect:r.useEffect},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(149);var o=n(28),a=n(64);function i(e,t){if(t&&("object"===Object(o.a)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(a.a)(e)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"g",(function(){return g})),n.d(t,"b",(function(){return y}));var r=n(28),o=n(15),a=n(3),i=n(25),c=n(46),l=n(65),u=n(31),s=n(42),f=["children"];function d(e,t){return null!==e&&void 0!==e?e:t}function p(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function v(e){return function e(t){return Object(l.a)(t).map((function(t){if(!Object(s.h)(t))return Object(u.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,c=Object(i.a)(r,f),l=Object(a.a)({key:n},c),d=e(o);return d.length&&(l.children=d),l})).filter((function(e){return e}))}(e)}function h(e,t,n){var r=p(n),i=r._title,l=r.key,u=r.children,f=new Set(!0===t?[]:t),v=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(p,h){for(var m,b=Object(s.g)(r?r.pos:"0",h),g=d(p[l],b),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,c=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=a||l,s={},f={},p={posEntities:s,keyEntities:f};return n&&(p=n(p)||p),m(e,(function(e){var t=e.node,n=e.index,o=e.pos,a=e.key,i=e.parentPos,c=e.level,l={node:t,nodes:e.nodes,index:n,key:a,pos:o,level:c},u=d(a,o);s[o]=l,f[u]=l,l.parent=s[i],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),r&&r(l,p)}),{externalGetKey:u,childrenPropName:i,fieldNames:c}),o&&o(p),p}function g(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,c=t.halfCheckedKeys,l=t.dragOverNodeKey,u=t.dropPosition,s=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==c.indexOf(e),pos:String(s?s.pos:""),dragOver:l===e&&0===u,dragOverGapTop:l===e&&-1===u,dragOverGapBottom:l===e&&1===u}}function y(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,c=e.loading,l=e.halfChecked,s=e.dragOver,f=e.dragOverGapTop,d=e.dragOverGapBottom,p=e.pos,v=e.active,h=e.eventKey,m=Object(a.a)(Object(a.a)({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:c,halfChecked:l,dragOver:s,dragOverGapTop:f,dragOverGapBottom:d,pos:p,active:v,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Object(u.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return v})),n.d(t,"i",(function(){return h})),n.d(t,"e",(function(){return m}));var r=n(15),o=n(28),a=(n(6),n(25),n(0),n(31));n(85);function i(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function c(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function u(e,t){return"".concat(e,"-").concat(t)}function s(e){return e&&e.type&&e.type.isTreeNode}function f(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n}function d(e){if(e.parent){var t=l(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function p(e,t,n,r,o,a,i,c,u,s){var f,p=e.clientX,v=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,b=h.height,g=(("rtl"===s?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-p)-12)/r,y=c[n.props.eventKey];if(v-1.5?a({dragNode:N,dropNode:_,dropPosition:1})?E=1:P=!1:a({dragNode:N,dropNode:_,dropPosition:0})?E=0:a({dragNode:N,dropNode:_,dropPosition:1})?E=1:P=!1:a({dragNode:N,dropNode:_,dropPosition:1})?E=1:P=!1,{dropPosition:E,dropLevelOffset:k,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:C,dropContainerKey:0===E?null:(null===(f=y.parent)||void 0===f?void 0:f.key)||null,dropAllowed:P}}function v(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function h(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(o.a)(e))return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function m(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=t[e];if(r){n.add(e);var a=r.parent;r.node.disabled||a&&o(a.key)}}}return(e||[]).forEach((function(e){o(e)})),Object(r.a)(n)}},,function(e,t,n){"use strict";function r(e){var t={};return function(n){t[n]||(console.error("[VKUI/".concat(e,"] ").concat(n)),t[n]=!0)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return l}));var r,o,a,i=n(0),c=n(49);!function(e){e.COMPACT="compact",e.REGULAR="regular"}(r||(r={})),function(e){e[e.SMALL_MOBILE=1]="SMALL_MOBILE",e[e.MOBILE=2]="MOBILE",e[e.SMALL_TABLET=3]="SMALL_TABLET",e[e.TABLET=4]="TABLET",e[e.DESKTOP=5]="DESKTOP"}(o||(o={})),function(e){e[e.EXTRA_SMALL=1]="EXTRA_SMALL",e[e.SMALL=2]="SMALL",e[e.MEDIUM=3]="MEDIUM"}(a||(a={}));var l=i.createContext({sizeX:r.COMPACT,sizeY:r.REGULAR,hasMouse:c.d,deviceHasHover:c.c,viewWidth:0,viewHeight:0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u}));var r,o=n(0),a=n(54),i=n.n(a),c=n(22);!function(e){e.VKAPPS="vkapps",e.INTERNAL="internal"}(r||(r={}));var l={webviewType:r.VKAPPS,isWebView:i.a.isWebView(),transitionMotionEnabled:!0,platform:Object(c.e)(),hasNewTokens:!1},u=o.createContext(l)},,function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return u}));var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o=r&&!!window.addEventListener;var a={supported:!1,name:"animationend"},i={supported:!1,name:"transitionend"};r&&("undefined"!==typeof AnimationEvent?a.supported=!0:"undefined"!==typeof WebKitAnimationEvent&&(a.supported=!0,a.name="webkitAnimationEnd"),"undefined"!==typeof TransitionEvent?i.supported=!0:"undefined"!==typeof WebKitTransitionEvent&&(i.supported=!0,i.name="webkitTransitionEnd"));n(62);var c=function(){};if(o)try{var l=Object.defineProperty({},"passive",{get:function(){!0}});window.addEventListener("test",c,l),window.removeEventListener("test",c,l)}catch(m){}!function(){if(!r)return!1;var e=!1;try{document.createElement("div").scrollTo({top:0,get behavior(){return e=!0,"smooth"}})}catch(m){}}();n(69);n(13);n(72),n(73);function u(e){e||(e=r?navigator.userAgent.toLowerCase():"");var t=function(e){if(!r)return!1;var t=!/ipad|iphone|ipod/.test(e);if(/mac os/.test(e)&&t&&"boolean"===typeof navigator.standalone)return!0;return!1}(e),n=t||-1!==e.indexOf("ipad"),o=!n&&-1!==e.search(/iphone|ipod/),a=o||n,i=a&&e.match(/OS ([\d_]+) like Mac OS X/i),c=0,l=0;t?(c=13,l=0):i&&(c=+(i=i[1].split("_"))[0],l=+i[1]),i=null;var u=c<13&&!(11===c&&l<3),s=a&&function(e){if(!r)return!1;var t=window.webkit;if(t&&t.messageHandlers)return!0;var n=/constructor/i.test(String(window.HTMLElement)),o=!!window.indexedDB;if(-1===e.indexOf("safari")||-1===e.indexOf("version")||navigator.standalone){if(!o&&n||!window.statusbar||!window.statusbar.visible);else if(!n||o)return!0}else;return!1}(e),f=!1;return r&&(f=a&&375===screen.width&&812===screen.height&&3===window.devicePixelRatio),{isIPad:n,isIPhone:o,isIOS:a,isIPadOS:t,iosMajor:c,iosMinor:l,isWKWebView:s,isScrollBasedViewport:u,isIPhoneX:f,isIOSChrome:-1!==e.search(/crios/i)}}var s,f,d=u(),p=(d.isIPad,d.isIPhone,d.isIOS),v=d.isIPadOS;d.iosMajor,d.iosMinor,d.isWKWebView,d.isScrollBasedViewport,d.isIPhoneX,d.isIOSChrome;if(r)if(p&&!v)s=!1,f=!1,!0,!0;else if("ontouchstart"in document||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>0){var h=!/android|mobile|tablet/i.test(navigator.userAgent);s=window.matchMedia&&matchMedia("(pointer)").matches?matchMedia("(pointer: fine)").matches:h,f=s&&(window.matchMedia&&matchMedia("(hover)").matches?matchMedia("(hover: hover)").matches:h)}else s=!0,f=!0;else s=!1,!1,f=!1,!1},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(28),o=n(97),a=n(104);function i(e,t){"function"===typeof e?e(t):"object"===Object(r.a)(e)&&e&&"current"in e&&(e.current=t)}function c(){for(var e=arguments.length,t=new Array(e),n=0;n");return t}function x(){var e=j(b),t=e[0],n=e[1],o=j(h);return Object(r.useEffect)((function(){function e(){n(o.historyItems)}return o.createListener(["*"],e),function(){return o.removeListener(["*"],e)}}),[o.historyItems]),t}function C(){return x().slice(-1)[0]||{}}var E=function(){return j(h)},k=function(){function e(){var e=this;this.listeners=[],this.tasks=[],this.isFrozenLifecycle=!1,this.historyItems=[],this.lifecycle=function(){if(!e.isFrozenLifecycle){e.syncRunTasks();var t=e.convertSearchParams(e.location.search);e.getListenersForCurrentLocation().forEach((function(e){return(0,e.handler)(t)}))}},this.observer=function(){var t=e.historyItems.slice(-2)[0],n=a({},e.convertSearchParams(e.location.search),e.history.state);e.historyItems=t&&l(t,n)?e.historyItems.slice(0,-1):[].concat(e.historyItems,[n])},this.syncRunTasks=function(){e.tasks.forEach((function(e){return e()}))},this.createListener=function(t,n){e.listeners.push({keys:t,handler:n})},this.removeListener=function(t,n){e.listeners=e.listeners.filter((function(e){return e.handler!==n&&!c(e.keys,t)}))},this.createTask=function(t){e.tasks.push(t)},this.removeTask=function(t){e.tasks=e.tasks.filter((function(e){return e!==t}))},this.createPhantomTask=function(t){e.createTask((function n(){t(),e.removeTask(n)}))},this.findListenersByKeys=function(t){return e.listeners.filter((function(e){return u(t,e.keys)}))},this.push=function(t,n){return void 0===n&&(n={}),new Promise((function(r){if(e.convertSearchParams(t)===e.location.search&&l(n,e.history.state))return r();e.createPhantomTask(r),e.history.pushState(n,"",e.convertSearchParams(t)),e.dispatchEvent(n)}))},this.duplicateRecord=function(t){return void 0===t&&(t=e.history.state),new Promise((function(n){e.createPhantomTask(n),e.history.pushState(t,"",e.location.search),e.dispatchEvent(t)}))},this.replace=function(t,n){return void 0===n&&(n={}),new Promise((function(r){if(e.convertSearchParams(t)===e.location.search&&l(n,e.history.state))return r();e.historyItems=e.historyItems.slice(0,-1),e.createPhantomTask(r),e.history.replaceState(n,"",e.convertSearchParams(t)),e.dispatchEvent(n)}))},this.back=function(){return new Promise((function(t){e.createPhantomTask(t),e.history.back()}))},this.go=this.history.go.bind(this.history),this.freezeLifecycle=function(){e.isFrozenLifecycle=!0},this.unfreezeLifecycle=function(){e.isFrozenLifecycle=!1},window.addEventListener("popstate",this.observer),window.addEventListener("popstate",this.lifecycle)}var t,n=e.prototype;return n.getListenersForCurrentLocation=function(){return this.findListenersByKeys([].concat(Object.keys(this.convertSearchParams(this.location.search)),["*"]))},n.convertSearchParams=function(e){return"string"==typeof e?Object.fromEntries(new URLSearchParams(e.replace("#","?"))):"#"+new URLSearchParams(e)},n.dispatchEvent=function(e){window.dispatchEvent(new PopStateEvent("popstate",{state:e}))},(t=[{key:"location",get:function(){return a({},window.location,{search:window.location.hash})}},{key:"history",get:function(){return window.history}}])&&function(e,t){for(var n=0;n>>0,1):P.set(e,[]))},emit:function(e,t){var n=P.get(e);n&&n.slice().map((function(e){e(t)})),(n=P.get("*"))&&n.slice().map((function(n){n(e,t)}))}},A=0,I=1,D=2,L=3,z=v.createContext({onHoverChange:h.e});t.a=Object(j.a)((function(e){var t,n=e.children,r=e.Component,a=e.onClick,c=e.onKeyDown,u=e.activeEffectDelay,f=void 0===u?600:u,j=e.stopPropagation,P=void 0!==j&&j,F=e.getRootRef,V=e.sizeX,K=e.hasMouse,H=e.deviceHasHover,W=e.hasHover,U=void 0===W||W,Y=e.hoverMode,G=void 0===Y?"background":Y,q=e.hasActive,X=void 0===q||q,$=e.activeMode,Z=void 0===$?"background":$,Q=e.focusVisibleMode,J=void 0===Q?"inside":Q,ee=s()(e,T);r=r||(ee.href?"a":"div");var te=v.useContext(z).onHoverChange,ne=v.useContext(b.a),re=Object(N.a)(),oe=function(){var e=Object(v.useState)(!1),t=d()(e,2),n=t[0],r=t[1];return{focusVisible:Object(v.useContext)(_.a).keyboardInput&&n,onFocus:Object(v.useCallback)((function(e){e.stopPropagation(),r(!0)}),[r]),onBlur:Object(v.useCallback)((function(e){e.stopPropagation(),r(!1)}),[r])}}(),ae=oe.focusVisible,ie=oe.onBlur,ce=oe.onFocus,le=v.useState([]),ue=d()(le,2),se=ue[0],fe=ue[1],de=v.useState(!1),pe=d()(de,2),ve=pe[0],he=pe[1],me=v.useState(!1),be=d()(me,2),ge=be[0],ye=be[1],we=ge&&!ee.disabled,Oe=X&&!ve&&!ee.disabled,je=H&&U&&!ve,xe="a"!==r&&"button"!==r&&!ee.contentEditable,Ce=["opacity","background"].includes(G),Ee=["opacity","background"].includes(Z),ke=["inside","outside"].includes(J),Se=function(e,t){var n=v.useMemo((function(){return Math.round(1e8*Math.random()).toString(16)}),[]),r=v.useState(A),o=d()(r,2),a=o[0],i=o[1],c=function(){return i(A)},l=function(){return e&&i(D)},u=Object(k.a)(l,70),s=Object(k.a)(c,t);return Object(C.a)((function(){return a===I?(u.set(),u.clear):a===L?s.clear:(a===D&&R.emit("active",n),h.e)}),[a]),Object(C.a)((function(){if(a===A)return h.e;var e=function(e){e!==n&&c()};return R.on("active",e),function(){return R.off("active",e)}}),[a===A]),Object(C.a)((function(){!e&&c()}),[e]),[a,{delayStart:function(){e&&i(I)},start:l,stop:function(e){if(e)return i(L),s.set(e);c()}}]}(Oe,f),Ne=d()(Se,2),_e=Ne[0],Pe=Ne[1],Me=Pe.start,Te=Pe.stop,Re=Pe.delayStart,Ae=_e===D||_e===L,Ie=Object(S.a)(F),De=v.useRef({onHoverChange:he}).current;Object(C.a)((function(){return we?(te(!0),function(){return te(!1)}):h.e}),[we]);var Le=Object(g.a)(Object(y.a)("Tappable",re),"Tappable--sizeX-".concat(V),je&&we&&!Ce&&G,Oe&&Ae&&!Ee&&Z,ae&&!ke&&J,(t={"Tappable--active":Oe&&Ae,"Tappable--mouse":K},i()(t,"Tappable--hover-".concat(G),je&&we&&Ce),i()(t,"Tappable--active-".concat(Z),Oe&&Ae&&Ee),i()(t,"Tappable--focus-visible",ae),t)),ze={onStart:M((function(e){var t=e.originalEvent;if(Oe){if(t.touches&&t.touches.length>1)return Te();if(re===w.a){var n=function(e){var t=null===e||void 0===e?void 0:e.getBoundingClientRect();return{top:null===t||void 0===t?void 0:t.top,left:null===t||void 0===t?void 0:t.left,width:null===e||void 0===e?void 0:e.offsetWidth,height:null===e||void 0===e?void 0:e.offsetHeight}}(Ie.current),r=n.top,o=n.left,a=Object(O.a)(t)-(null!==o&&void 0!==o?o:0),i=Object(O.b)(t)-(null!==r&&void 0!==r?r:0);fe([].concat(l()(se),[{x:a,y:i,id:Date.now().toString()}]))}Re()}}),ee.onStart),onMove:M((function(e){e.isSlide&&Te()}),ee.onMove),onEnd:M((function(e){var t=e.duration;if(_e!==A){_e===I&&Me();var n=t-70;Te(n>=100?0:f-n)}}),ee.onEnd),onClick:a,onKeyDown:M((function(e){var t;xe&&Object(x.d)(e)&&(e.preventDefault(),null===(t=Ie.current)||void 0===t||t.click())}),c)},Be=ee.href?"link":"button";return Object(p.a)(m.a,o()({onEnter:function(){return ye(!0)},onLeave:function(){return ye(!1)},type:"button"===r?"button":void 0,tabIndex:xe&&!ee.disabled?0:void 0,role:xe?Be:void 0,"aria-disabled":xe?ee.disabled:void 0,stopPropagation:P&&!ne&&!ee.disabled},ee,{slideThreshold:20,usePointerHover:!0,vkuiClass:Le,Component:r,getRootRef:Ie,onBlur:M(ie,ee.onBlur),onFocus:M(ce,ee.onFocus)},ee.disabled?{}:ze),Object(p.a)(z.Provider,{value:De},n),re===w.a&&!K&&Oe&&"background"===Z&&Object(p.a)("span",{"aria-hidden":"true",vkuiClass:"Tappable__waves"},se.map((function(e){return Object(p.a)(B,o()({},e,{key:e.id,onClear:function(){return fe(se.filter((function(t){return t.id!==e.id})))}}))}))),je&&"background"===G&&Object(p.a)("span",{"aria-hidden":"true",vkuiClass:"Tappable__hoverShadow"}),!ee.disabled&&ke&&Object(p.a)(E,{mode:J}))}),{sizeX:!0,hasMouse:!0,deviceHasHover:!0});function B(e){var t=e.x,n=e.y,r=e.onClear,o=Object(k.a)(r,225);return v.useEffect((function(){return o.set()}),[o]),Object(p.a)("span",{vkuiClass:"Tappable__wave",style:{top:n,left:t}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),o=n(90);function a(e,t,n,a){var i=Object(o.a)(t,n,a);Object(r.a)((function(){n&&e?i.add(e):i.remove()}),[Boolean(n),Boolean(e)])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5),o=n(0),a=n(76);function i(e,t){var n=t||{},i=n.defaultValue,c=n.value,l=n.onChange,u=n.postState,s=Object(a.a)((function(){return void 0!==c?c:void 0!==i?"function"===typeof i?i():i:"function"===typeof e?e():e})),f=Object(r.a)(s,2),d=f[0],p=f[1],v=void 0!==c?c:d;u&&(v=u(v));var h=o.useRef(l);h.current=l;var m=o.useCallback((function(e,t){p(e,t),v!==e&&h.current&&h.current(e,v)}),[v,h]),b=o.useRef(!0);return o.useEffect((function(){b.current?b.current=!1:void 0===c&&p(c)}),[c]),[v,m]}},function(e,t,n){e.exports=n(290)()},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(245)},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n.n(r),a=n(97);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):Object(a.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},function(e,t,n){"use strict";var r=n(6),o=n(0),a=n(65),i=(n(31),n(3)),c=n(50),l=n(87),u=n(130),s=new Map;var f=new u.a((function(e){e.forEach((function(e){var t,n=e.target;null===(t=s.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var d=n(33),p=n(32),v=n(40),h=n(39),m=function(e){Object(v.a)(n,e);var t=Object(h.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),b=o.createContext(null);function g(e){var t=e.children,n=e.disabled,r=o.useRef(null),a=o.useRef(null),u=o.useContext(b),d="function"===typeof t,p=d?t(r):t,v=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!d&&o.isValidElement(p)&&Object(c.c)(p),g=h?p.ref:null,y=o.useMemo((function(){return Object(c.a)(g,r)}),[g,r]),w=o.useRef(e);w.current=e;var O=o.useCallback((function(e){var t=w.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,c=o.height,l=e.offsetWidth,s=e.offsetHeight,f=Math.floor(a),d=Math.floor(c);if(v.current.width!==f||v.current.height!==d||v.current.offsetWidth!==l||v.current.offsetHeight!==s){var p={width:f,height:d,offsetWidth:l,offsetHeight:s};v.current=p;var h=l===Math.round(a)?a:l,m=s===Math.round(c)?c:s,b=Object(i.a)(Object(i.a)({},p),{},{offsetWidth:h,offsetHeight:m});null===u||void 0===u||u(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return o.useEffect((function(){var e,t,o=Object(l.a)(r.current)||Object(l.a)(a.current);return o&&!n&&(e=o,t=O,s.has(e)||(s.set(e,new Set),f.observe(e)),s.get(e).add(t)),function(){return function(e,t){s.has(e)&&(s.get(e).delete(t),s.get(e).size||(f.unobserve(e),s.delete(e)))}(o,O)}}),[r.current,n]),o.createElement(m,{ref:a},h?o.cloneElement(p,{ref:y}):p)}function y(e){var t=e.children;return("function"===typeof t?[t]:Object(a.a)(t)).map((function(t,n){var a=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return o.createElement(g,Object(r.a)({},e,{key:a}),t)}))}y.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),a=o.useRef([]),i=o.useContext(b),c=o.useCallback((function(e,t,o){r.current+=1;var c=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){c===r.current&&(null===n||void 0===n||n(a.current),a.current=[])})),null===i||void 0===i||i(e,t,o)}),[n,i]);return o.createElement(b.Provider,{value:c},t)};t.a=y},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return l}));var r=n(49),o=function(e){return null!=e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX},a=function(e){return null!=e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY},i=function(){return r.a&&"ontouchstart"in window};function c(){return i()?["touchstart","touchmove","touchend","touchcancel"]:["mousedown","mousemove","mouseup","mouseleave"]}function l(e,t,n,r){if(r||e<0)return e;var o=e*n;return o*t/(o+t)}},function(e,t,n){"use strict";var r=n(154),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return"undefined"===typeof e}function c(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function s(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n1)return Y(e);if(!o&&!i){var y=m>=k&&m>g,w=g>=k&&g>m,O=y&&(!!c||!!a),j=w&&(!!b||!!a);Object.assign(F.current,{isY:w,isX:y,isSlideX:O,isSlideY:j,isSlide:O||j})}null!==(p=F.current)&&void 0!==p&&p.isSlide&&(Object.assign(F.current,{shiftX:v,shiftY:h,shiftXAbs:m,shiftYAbs:g}),V(e,[a,F.current.isSlideX&&c,F.current.isSlideY&&b]))}}),G),Object(v.a)(z[2],Y,G),Object(v.a)(z[3],Y,G)];function X(e){e&&q.forEach((function(t){return t.add(e)}))}return Object(u.a)(P,o()({},D,{onDragStart:function(e){var t=e.target;"A"!==t.tagName&&"IMG"!==t.tagName||e.preventDefault()},onClickCapture:function(e){if(!B.current)return x&&x(e);e.target.closest("a")&&e.preventDefault(),R?e.stopPropagation():x&&x(e),B.current=!1},ref:U}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(9),o=n.n(r),a=n(26),i=n.n(a),c=n(11),l=n.n(c),u=n(2),s=n(0),f=n(21),d=n(12),p=n(23),v=n(20),h=n(56),m=["Component","children","getRootRef","after","disabled"],b=function(e){var t=e.Component,n=void 0===t?"div":t,r=e.children,a=e.getRootRef,c=e.after,b=e.disabled,g=l()(e,m),y=Object(p.a)(),w=Object(h.a)().sizeY,O=s.useState(!1),j=i()(O,2),x=j[0],C=j[1];return Object(u.a)(n,o()({role:"presentation"},g,{ref:a,onMouseEnter:function(e){e.stopPropagation(),C(!0)},onMouseLeave:function(e){e.stopPropagation(),C(!1)},vkuiClass:Object(d.a)(Object(f.a)("FormField",y),"FormField--sizeY-".concat(w),{"FormField--disabled":b})}),r,Object(v.c)(c)&&Object(u.a)("div",{role:"presentation",vkuiClass:"FormField__after"},c),Object(u.a)("div",{role:"presentation",vkuiClass:Object(d.a)("FormField__border",{"FormField__border--hover":!b&&x})}))}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(e,t){for(var n=0;n