"use strict";(self.webpackChunk_toloka_portal_gatsby_renderer=self.webpackChunk_toloka_portal_gatsby_renderer||[]).push([[4588],{31451:function(e,t,i){i.d(t,{YD:function(){return p}});var n=i(67294);function s(){return s=Object.assign||function(e){for(var t=1;t=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(i=s.get(t.target))||i.forEach((function(e){e(o,t)}))}))}),e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:a,elements:s},o.set(t,i)}return i}(i),s=n.id,a=n.observer,r=n.elements,c=r.get(e)||[];return r.has(e)||r.set(e,c),c.push(t),a.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(r.delete(e),a.unobserve(e)),0===r.size&&(a.disconnect(),o.delete(s))}}function d(e){return"function"!=typeof e.children}var h=function(e){var t,i;function o(t){var i;return(i=e.call(this,t)||this).node=null,i._unobserveCb=null,i.handleNode=function(e){i.node&&(i.unobserve(),e||i.props.triggerOnce||i.props.skip||i.setState({inView:!!i.props.initialInView,entry:void 0})),i.node=e||null,i.observeNode()},i.handleChange=function(e,t){e&&i.props.triggerOnce&&i.unobserve(),d(i.props)||i.setState({inView:e,entry:t}),i.props.onChange&&i.props.onChange(e,t)},i.state={inView:!!t.initialInView,entry:void 0},i}i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var a=o.prototype;return a.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},a.componentWillUnmount=function(){this.unobserve(),this.node=null},a.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,i=e.root,n=e.rootMargin,s=e.trackVisibility,o=e.delay;this._unobserveCb=c(this.node,this.handleChange,{threshold:t,root:i,rootMargin:n,trackVisibility:s,delay:o})}},a.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},a.render=function(){if(!d(this.props)){var e=this.state,t=e.inView,i=e.entry;return this.props.children({inView:t,entry:i,ref:this.handleNode})}var o=this.props,a=o.children,r=o.as,l=o.tag,c=function(e,t){if(null==e)return{};var i,n,s={},o=Object.keys(e);for(n=0;n=0||(s[i]=e[i]);return s}(o,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView"]);return(0,n.createElement)(r||l||"div",s({ref:this.handleNode},c),a)},o}(n.Component);function p(e){var t=void 0===e?{}:e,i=t.threshold,s=t.delay,o=t.trackVisibility,a=t.rootMargin,r=t.root,l=t.triggerOnce,d=t.skip,h=t.initialInView,p=(0,n.useRef)(),u=(0,n.useState)({inView:!!h}),f=u[0],m=u[1],x=(0,n.useCallback)((function(e){void 0!==p.current&&(p.current(),p.current=void 0),d||e&&(p.current=c(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&p.current&&(p.current(),p.current=void 0)}),{root:r,rootMargin:a,threshold:i,trackVisibility:o,delay:s}))}),[Array.isArray(i)?i.toString():i,r,a,l,d,o,s]);(0,n.useEffect)((function(){p.current||!f.entry||l||d||m({inView:!!h})}));var j=[x,f.inView,f.entry];return j.ref=j[0],j.inView=j[1],j.entry=j[2],j}h.displayName="InView",h.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},58381:function(e,t,i){i.d(t,{F:function(){return m}});var n="cn_dd",s="cn_q",o="cn_bn",a="cn_6",r="cn_bC",l="cn_dh",c=i(79700),d=i.n(c),h=i(46237),p=i(84401),u=i(56338),f=i(85893),m=function(e){var t=e.title,i=e.text,c=e.link,m=e.fractal,x=e.button,j=e.titleLevel,v=void 0===j?2:j;return(0,f.jsxs)(u.e,{className:d()(l,"card-links"),href:c,children:[(0,f.jsx)("div",{className:n,children:m}),(0,f.jsxs)("div",{className:r,children:[(0,f.jsx)(h.D,{className:s,level:v,children:t}),i?(0,f.jsx)("p",{className:o,children:i}):null,(0,f.jsx)(p.z,{className:a,url:x.url,type:x.type,view:x.view,size:x.size,children:x.text})]})]})}},28767:function(e,t,i){i.d(t,{w:function(){return _}});var n="d7_dh",s="d7_fv",o="d7_gN",a="d7_bl",r="d7_js",l="d7_bC",c="d7_jt",d="d7_d0",h="d7_h",p="d7_q",u="d7_bn",f="d7_ck",m="d7_jv",x="d7_jw",j="d7_fJ",v=i(79700),g=i.n(v),w=i(68042),y=i(4511),b=i(67294),k=i(56338),M=i(79615),C=i(85893),_=function(e){var t=e.title,i=e.text,v=e.link,_=e.image,L=e.readMore,F=e.className,Z=e.tags,O=e.target,N=e.theme,T=e.isSmallCard,I=e.imageId,D=(0,b.useMemo)((function(){var e=g()(n,"card-links",v||L?c:"",F,"light"===N?s:"dark",T?o:"",t?"":r);return v?{className:e,href:v,target:O}:{className:e}}),[v,F,N,T,t]);return(0,b.createElement)(v?k.e:"div",D,(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:a,children:[_?(0,C.jsx)(w.t.WithMediaQueries,{path:_,formats:[{type:"image/webp",fileName:"image.webp"},{type:"image/jpeg",fileName:"image.jpg"}],alt:"Picture of the card",width:392,height:417}):null,I?(0,C.jsx)(M.P,{version:"v1",sizes:[560],imageId:I}):null]}),(0,C.jsxs)("div",{className:l,children:[(0,C.jsx)("div",{className:d,children:(0,C.jsxs)("div",{className:u,children:[t?(0,C.jsx)("p",{className:p,children:t}):null,(0,C.jsx)("p",{className:h,children:i}),Z?(0,C.jsx)("ul",{className:x,children:Z.map((function(e){return(0,C.jsx)("li",{className:j,children:e},e)}))}):null]})}),L?(0,C.jsx)(y.r,{className:g()(f,v?void 0:m),iconPosition:v?"right":void 0,children:L}):null]})]}))}},49916:function(e,t,i){i.d(t,{_:function(){return d}});var n="fj_Z",s="fj_dd",o=i(79700),a=i.n(o),r=i(31451),l=i(67294),c=i(85893),d=function(e){var t=e.fractalClassName,i=e.wrapperClassName,o=e.onActiveClassName,d=e.fractalSrc,h=(0,r.YD)({triggerOnce:!0}),p=h.ref,u=h.inView,f=(0,l.useRef)(null),m=(0,l.useState)(!1),x=m[0],j=m[1],v=(0,l.useCallback)((function(){setTimeout((function(){return j(!0)}),300)}),[]);return(0,l.useEffect)((function(){f.current&&f.current.complete&&v()}),[]),(0,c.jsx)("div",{ref:p,className:a()(n,i),children:(0,c.jsx)("img",{onLoad:v,className:a()(s,u&&x?o:void 0,t),ref:f,src:d,alt:"Fractal"})})}},96520:function(e,t,i){i.d(t,{P:function(){return l}});var n="bP_C",s="bP_Z",o="bP_q",a="bP_h",r=i(85893),l=function(e){var t=e.bricks,i=e.style;return(0,r.jsx)("div",{className:n,children:t.map((function(e,t){return(0,r.jsxs)("div",{className:s,style:i,children:[e.title?(0,r.jsx)("span",{className:o,children:e.title}):null,e.text?(0,r.jsx)("span",{className:a,children:e.text}):null,e.additional]},t)}))})}},15663:function(e,t,i){i.d(t,{l:function(){return d}});var n="M_C",s="M_bC",o="M_cn",a="M_cp",r=i(79700),l=i.n(r),c=i(85893),d=function(e){var t=e.noSidePaddings,i=e.className,r=e.noScrollOnDesktop,d=e.children,h=e.style;return(0,c.jsx)("div",{className:l()(n,"scroll-wrap",t?o:void 0,r?a:void 0,i),children:(0,c.jsx)("div",{className:s,style:h,children:d})})}},95610:function(e,t,i){i.d(t,{h:function(){return v}});var n=i(4942),s="bL_Z",o="bL_cl",a="bL_3",r="dj_3",l="dj_gc",c="dj_q",d="dj_dG",h="dj_h",p="dj_c8",u=i(85893),f=function(e){var t=e.title,i=e.text;return(0,u.jsxs)("button",{className:r,onClick:function(e){return e.target.classList.toggle(p)},children:[(0,u.jsx)("div",{className:l,children:(0,u.jsx)("span",{className:c,children:t})}),(0,u.jsx)("div",{className:d,children:(0,u.jsx)("div",{className:h,children:i})})]})},m=i(1532);function x(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function j(e){for(var t=1;t