@meduza/ui-kit-2 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -954,7 +954,7 @@ const Toolbar = ({
954
954
  }, children));
955
955
  };
956
956
 
957
- var styles$p = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
957
+ var styles$p = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isCustom":"Meta-module_isCustom__AeFf1","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
958
958
 
959
959
  const Meta = ({
960
960
  hasSource,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-intersection-observer"),o=require("dayjs");require("dayjs/locale/ru");var l=require("dayjs/plugin/relativeTime"),a=require("react-router-dom");const r=e=>e.filter((([,e])=>e)).map((([e])=>e)).join(" "),n=()=>e.createElement("svg",{width:"30px",height:"30px",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",null,e.createElement("path",{d:"M15 0C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15zm0 2c7.18 0 13 5.82 13 13s-5.82 13-13 13S2 22.18 2 15 7.82 2 15 2z",opacity:"0.3"})),e.createElement("g",{fillRule:"evenodd"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 15 15",to:"360 15 15",dur:"1000ms",repeatCount:"indefinite"}),e.createElement("path",{d:"M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"})));var i={root:"Button-module_root__9OQ5b",gold:"Button-module_gold__q-XBP",isLoading:"Button-module_isLoading__Z53G4",gray:"Button-module_gray__fypDq",sand:"Button-module_sand__e5v-k",dark:"Button-module_dark__qv4NQ",light:"Button-module_light__TLYLT",black:"Button-module_black__GIsbk",red:"Button-module_red__kybni",default:"Button-module_default__utLb-",isInSpoiler:"Button-module_isInSpoiler__pGp-w",ghost:"Button-module_ghost__1s5-r",isInDropdown:"Button-module_isInDropdown__gN7TI",loader:"Button-module_loader__r0Mjs",isFancy:"Button-module_isFancy__gTRmu"};const d=({theme:t="gold",size:o="default",state:l="isDefault",styleContext:a="isInToolbar",appearance:d,disabled:c=!1,onClick:s,children:m})=>e.createElement("button",{"data-testid":"button",className:r([[i.root,!0],[i[o],!!o],[i[t],!!t],[i[d],!!d],[i[l],!!l&&!!i[l]],[i[a],!!a]]),disabled:c,onClick:()=>{!c&&s&&s()},type:"button"},"isLoading"===l?e.createElement("span",{className:i.loader},e.createElement(n,null)):m),c={meduzaLogo:{width:544,height:115,content:'<path d="M59.1008614,49.65632 L59.1008614,106.01472 L84.9480411,114.24 L84.9480411,49.65632 L101.574882,49.65632 L101.574882,106.01472 L127.270909,114.24 L144.048902,91.392 L127.422062,91.392 L127.422062,35.7952 L101.726035,26.80832 L84.9480411,46.60992 L84.9480411,35.7952 L59.2520145,26.80832 L42.4740206,46.60992 L42.4740206,35.7952 L16.7779939,26.80832 L0,49.65632 L16.6268408,49.65632 L16.6268408,106.01472 L42.4740206,114.24 L42.4740206,49.65632 L59.1008614,49.65632 L59.1008614,49.65632 Z M336.61795,91.392 L336.61795,35.0336 L310.770769,26.80832 L310.770769,105.25312 L336.466796,114.24 L353.24479,94.4384 L353.24479,105.25312 L378.940817,114.24 L395.71881,91.392 L379.091969,91.392 L379.091969,35.0336 L353.24479,26.80832 L353.24479,91.392 L336.61795,91.392 L336.61795,91.392 Z M527.373159,38.08 L502.130592,26.80832 L472.202278,41.1264 L502.130592,52.39808 L461.016949,72.352 L461.016949,104.94848 L486.86413,114.24 L502.130592,94.28608 L502.130592,105.25312 L527.977771,114.24 L544,91.23968 L527.373159,91.23968 L527.373159,38.08 L527.373159,38.08 Z M177.453737,114.24 L207.079744,102.35904 L177.453737,91.23968 L177.453737,75.24608 L216.300083,56.3584 L194.231731,26.80832 L151.606557,47.37152 L151.606557,103.12064 L177.453737,114.24 L177.453737,114.24 Z M455.424284,89.56416 L423.984441,79.968 L453.459295,42.19264 L416.577937,26.80832 L397.230341,51.48416 L428.821339,61.23264 L398.741873,98.85568 L436.076687,114.24 L455.424284,89.56416 L455.424284,89.56416 Z M486.86413,91.392 L486.86413,68.84864 L502.130592,61.53728 L502.130592,91.392 L486.86413,91.392 L486.86413,91.392 Z M177.453737,41.58336 L190.452904,59.55712 L177.453737,65.80224 L177.453737,41.58336 L177.453737,41.58336 Z M222.95082,103.12064 L248.797999,114.24 L291.27202,97.18016 L291.27202,29.7024 L222.95082,0 L222.95082,26.30784 L265.424841,43.21536 L265.424841,97.33248 L248.797999,91.23968 L248.797999,43.71584 L222.95082,51.94112 L222.95082,103.12064 L222.95082,103.12064 Z" />'},menu:{width:24,height:24,content:'<path d="M2 21h20M2 12h20M2 3h20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />'},fb:{width:16,height:18,content:'<path d="M15.117 1H.883A.883.883 0 0 0 0 1.883v14.234A.883.883 0 0 0 .883 17h7.663v-6.196H6.461V8.389h2.085V6.61a2.91 2.91 0 0 1 3.106-3.192c.622-.003 1.244.03 1.863.095v2.16h-1.279c-1.002 0-1.196.476-1.196 1.176v1.541h2.39l-.31 2.415h-2.08V17h4.077a.883.883 0 0 0 .883-.883V1.883A.883.883 0 0 0 15.117 1" />'},tw:{width:20,height:18,content:'<path d="M20 3.1c-.7.3-1.5.6-2.4.7.8-.5 1.5-1.4 1.8-2.4-.8.5-1.7.8-2.6 1-.7-.8-1.8-1.4-3-1.4-2.3 0-4.1 1.9-4.1 4.3 0 .3 0 .7.1 1-3.3-.1-6.4-1.8-8.4-4.4-.3.6-.5 1.4-.5 2.2 0 1.5.7 2.8 1.8 3.6-.7 0-1.3-.2-1.9-.5v.1c0 2.1 1.4 3.8 3.3 4.2-.3.1-.7.2-1.1.2-.3 0-.5 0-.8-.1.5 1.7 2 2.9 3.8 3-1.3 1-3.1 1.6-5 1.6-.3 0-.7 0-1-.1C1.8 17.3 4 18 6.3 18 13.8 18 18 11.5 18 5.8v-.6c.8-.5 1.5-1.2 2-2.1" fill-rule="nonzero"/>'},vk:{width:20,height:18,content:'<path d="M16.517 9.851s2.587-3.768 2.886-5.058c.1-.396-.1-.694-.498-.694h-2.288c-.498 0-.697.199-.896.595 0 0-1.194 2.678-2.686 4.364-.498.496-.697.694-.995.694-.2 0-.299-.198-.299-.694V4.793c0-.595-.1-.793-.597-.793H7.463c-.2 0-.398.198-.398.397 0 .595.796.694.796 2.28v3.174c0 .595 0 .893-.299.893-.796 0-2.686-2.777-3.681-5.851-.2-.595-.398-.794-.995-.794H.597C.299 4.1 0 4.298 0 4.694c0 .595.697 3.471 3.483 7.34C5.373 14.611 7.86 16 10.05 16c1.393 0 1.691-.198 1.691-.793v-1.984c0-.496.2-.694.498-.694s.895.1 2.189 1.388C15.92 15.405 16.02 16 16.915 16h2.587c.299 0 .498-.1.498-.595 0-.595-.796-1.587-1.89-2.876-.498-.595-1.195-1.29-1.493-1.686-.398-.397-.299-.595-.1-.992" fill-rule="nonzero"/>'},ok:{width:9,height:18,content:'<path d="M4.5 2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4m0 5.7c-.9 0-1.6-.8-1.6-1.7 0-.9.7-1.6 1.6-1.6.9 0 1.7.7 1.7 1.7 0 .8-.8 1.6-1.7 1.6" fill-rule="nonzero"/> <path d="M6.127 12.982a9.194 9.194 0 0 0 2.307-.904c.602-.301.703-1.004.402-1.507-.301-.502-1.104-.703-1.605-.401-1.605 1.004-3.812 1.004-5.417 0-.502-.302-1.304-.201-1.605.3-.401.604-.2 1.206.401 1.608a9.194 9.194 0 0 0 2.307.904L.61 15.092c-.502.401-.502 1.104 0 1.607a1.357 1.357 0 0 0 1.705 0l2.207-2.11L6.73 16.7a1.357 1.357 0 0 0 1.705 0c.502-.402.502-1.105 0-1.608l-2.307-2.109" fill-rule="nonzero"/>'},tg:{width:18,height:18,content:'<path d="M9 18c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm-1.5-7.4c1.1 1 2 3.3 2 3.3.4.2.7.1.8-.4l2.1-7.4c.1-.6-.2-.8-.6-.7L4 8.3c-.6.2-.6.5-.1.7 0 .1 2.4.6 3.6 1.6z" fill-rule="nonzero"/>'},meduzaSymbol:{width:24,height:18,content:'<path d="M10.026233,17.0968697 L13.9737671,18.3530831 L13.9737671,10.9855851 L13.9737671,8.48948164 L16.5131165,8.48948164 L16.5131165,17.0968697 L20.4375656,18.3530831 L23,14.8636014 L20.4606507,14.8636014 L20.4606507,6.37252945 L16.5362015,5 L13.9737671,8.02421743 L13.9737671,6.37252945 L10.049318,5 L7.48688354,8.02421743 L7.48688354,6.37252945 L3.56243443,5 L1,8.48948164 L3.53934943,8.48948164 L3.53934943,17.0968697 L7.48688354,18.3530831 L7.48688354,8.48948164 L10.026233,8.48948164 L10.026233,17.0968697 Z" />'},backward:{width:25,height:27,content:'<path d="M13 0v2.01c6.672.263 12 5.754 12 12.49C25 21.404 19.404 27 12.5 27S0 21.404 0 14.5c0-3.493 1.441-6.758 3.936-9.105a.75.75 0 111.028 1.092A10.965 10.965 0 001.5 14.5c0 6.075 4.925 11 11 11s11-4.925 11-11c0-5.907-4.656-10.727-10.499-10.989L13 6 8 3l5-3zm3.295 11.33v1.25h-3.16v1.63c.32-.32.86-.56 1.47-.56 1.13 0 2.14.81 2.14 2.16 0 1.42-1.06 2.31-2.67 2.31-1.16 0-2-.38-2.57-1l.79-.99c.45.47 1.07.73 1.77.73.79 0 1.24-.45 1.24-.99 0-.59-.44-.99-1.2-.99-.55 0-1 .16-1.4.54l-.99-.26v-3.83h4.58zm-5.94 0V18h-1.42v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24z" fill-rule="nonzero"/>'},forward:{width:25,height:27,content:'<path d="M12 0l5 3-5 3V3.511C6.157 3.773 1.5 8.592 1.5 14.5c0 6.075 4.925 11 11 11s11-4.925 11-11c0-3.075-1.267-5.946-3.464-8.013a.75.75 0 011.028-1.092A12.465 12.465 0 0125 14.5C25 21.404 19.404 27 12.5 27S0 21.404 0 14.5C0 7.764 5.328 2.272 12 2.01V0zm4.295 11.33v1.25h-3.16v1.63c.32-.32.86-.56 1.47-.56 1.13 0 2.14.81 2.14 2.16 0 1.42-1.06 2.31-2.67 2.31-1.16 0-2-.38-2.57-1l.79-.99c.45.47 1.07.73 1.77.73.79 0 1.24-.45 1.24-.99 0-.59-.44-.99-1.2-.99-.55 0-1 .16-1.4.54l-.99-.26v-3.83h4.58zm-5.94 0V18h-1.42v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24z" fill-rule="nonzero"/>'},download:{width:25,height:27,content:'<path d="M12.5 2C19.404 2 25 7.596 25 14.5S19.404 27 12.5 27 0 21.404 0 14.5 5.596 2 12.5 2zm0 1.5c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm6 15.75a.75.75 0 01.102 1.493l-.102.007h-12a.75.75 0 01-.102-1.493l.102-.007h12zm-6-12a.75.75 0 01.743.648L13.25 8v7.598l1.834-1.222a.75.75 0 11.832 1.248l-3 2a.75.75 0 01-.832 0l-3-2a.75.75 0 11.832-1.248l1.834 1.223V8a.75.75 0 01.648-.743l.102-.007z" fill-rule="nonzero" fill="currentColor" />'},play:{width:62,height:62,content:'<path d="M24.35 41.772a.5.5 0 0 1-.739-.439V20.667a.5.5 0 0 1 .74-.44l18.944 10.334a.5.5 0 0 1 0 .878L24.351 41.772z" fill-rule="nonzero"/>'},pause:{width:22,height:22,content:'<path d="M12.832 4h2.8c.276 0 .5.224.5.5v12.394c0 .277-.224.5-.5.5h-2.8c-.276 0-.5-.223-.5-.5V4.5c0-.276.224-.5.5-.5zM6.5 4h2.8c.277 0 .5.224.5.5v12.394c0 .277-.223.5-.5.5H6.5c-.276 0-.5-.223-.5-.5V4.5c0-.276.224-.5.5-.5z" />'},speedHalf:{width:25,height:27,content:'<path d="M7.212 15.198V12.29l-.676.724L6 12.406 7.35 11h.825v4.198h-.963zM8.056 18H7.3l4.23-7h.765l-4.24 7zm2.99 0v-.735c1.717-1.27 2.134-1.679 2.134-2.14 0-.389-.288-.578-.665-.578-.467 0-.884.263-1.083.525l-.496-.64c.417-.493 1.053-.693 1.599-.693.913 0 1.599.462 1.599 1.312 0 .682-.556 1.28-1.708 2.14h1.737V18h-3.118zm5.998-2.918l-1.39 1.48-.567-.577 1.4-1.49-1.4-1.48.566-.588 1.39 1.49 1.4-1.49.557.588-1.4 1.48 1.4 1.49-.556.577-1.4-1.48z" /><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" />'},speedOne:{width:25,height:27,content:'<path d="M9.955 18v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24V18h-1.42zm4.6-2.78l-1.4 1.41-.57-.55 1.41-1.42-1.41-1.41.57-.56 1.4 1.42 1.41-1.42.56.56-1.41 1.41 1.41 1.42-.56.55-1.41-1.41z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'},speedOneHalf:{width:25,height:27,content:'<path d="M5.62 18v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24V18H5.62zm3.37-2.67v-2.77l-.68.69-.54-.58 1.36-1.34h.83v4h-.97zM9.84 18h-.76l4.26-6.67h.77L9.84 18zm3.01 0v-.7c1.73-1.21 2.15-1.6 2.15-2.04 0-.37-.29-.55-.67-.55-.47 0-.89.25-1.09.5l-.5-.61c.42-.47 1.06-.66 1.61-.66.92 0 1.61.44 1.61 1.25 0 .65-.56 1.22-1.72 2.04h1.75V18h-3.14zm6.04-2.78l-1.4 1.41-.57-.55 1.41-1.42-1.41-1.41.57-.56 1.4 1.42 1.41-1.42.56.56-1.41 1.41 1.41 1.42-.56.55-1.41-1.41z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'},speedTwo:{width:25,height:27,content:'<path d="M7.147 18v-1.158c2.685-2.078 3.471-2.792 3.471-3.64 0-.6-.52-.9-1.061-.9-.748 0-1.318.311-1.76.797L7 12.127C7.64 11.352 8.613 11 9.527 11c1.396 0 2.507.827 2.507 2.202 0 1.18-.924 2.203-2.625 3.506h2.675V18H7.147zm7.916-2.874l-1.377 1.457-.56-.568 1.386-1.468-1.386-1.458.56-.58 1.377 1.469 1.386-1.468.551.579-1.386 1.458L17 16.015l-.55.568-1.387-1.457z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'},podcastBookmark:{width:25,height:27,content:'<path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75zm-.75 1.499v9.176l-3.3-2.8-.098-.07a.75.75 0 00-.873.07l-3.3 2.799V9.749h7.571z" data-stroke="true" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75z" data-fill="true" />'},reaction:{width:16,height:16,content:'<path data-theme="light" fill="#D09959" d="M1 2h14v12H1z"/> <path d="M0 1.778C0 .8.8 0 1.778 0h12.444C15.2 0 16 .8 16 1.778v12.444C16 15.2 15.2 16 14.222 16H1.778C.8 16 0 15.2 0 14.222V1.778zM6.8 11.7l2.5.8V6.2h1.6v5.5l2.5.8 1.6-2.3h-1.6V4.8L10.9 4 9.3 5.9V4.8L6.8 4 5.1 5.9V4.8L2.6 4 1 6.2h1.6v5.5l2.5.8V6.2h1.7v5.5z" />'},cross:{width:18,height:18,content:'<path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" vector-effect="non-scaling-stroke" d="M2 2l14 14M16 2L2 16" />'},link:{width:24,height:24,content:'<path d="M9.158 18.928c-1.065 0-2.13-.405-2.94-1.215-1.624-1.623-1.624-4.262 0-5.884l.643-.645c.327-.326.854-.326 1.18 0 .325.326.325.853 0 1.178l-.645.645c-.972.972-.972 2.554 0 3.526.973.972 2.554.973 3.526 0l2.842-2.84c.97-.972.97-2.555 0-3.527-.325-.325-.325-.854 0-1.18.325-.324.853-.324 1.178 0 1.623 1.625 1.623 4.264 0 5.885l-2.84 2.84c-.81.81-1.877 1.216-2.942 1.216" /> <path d="M10.578 14.184c-.213 0-.426-.082-.59-.244-.784-.785-1.217-1.83-1.217-2.94 0-1.113.433-2.158 1.22-2.944l2.84-2.84c1.622-1.62 4.26-1.62 5.883 0 1.622 1.623 1.622 4.262 0 5.883l-.645.643c-.325.326-.852.326-1.178 0-.325-.325-.325-.852 0-1.178l.645-.644c.972-.97.972-2.554 0-3.526s-2.556-.972-3.527 0l-2.84 2.842c-.47.47-.73 1.096-.73 1.762 0 .667.26 1.293.73 1.763.325.327.325.854 0 1.18-.163.162-.376.244-.59.244" />'},search:{width:16,height:16,content:'<g transform="translate(2 1)" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" vector-effect="non-scaling-stroke"><circle cx="5.5" cy="5.5" r="5.5"/><path d="M11.37 13.442l-.995-1.272"/></g>'},card:{width:15,height:15,content:'<path d="M9 5.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H4a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5zm-.5 1h-4v4h4v-4zm2.5-3a.5.5 0 0 1 .5.5v5a.5.5 0 1 1-1 0V4.5H6a.5.5 0 0 1 0-1h5z" fill-rule="nonzero"/>'},podcast:{width:15,height:15,content:'<path d="M5.252 11.432A.5.5 0 0 1 4.5 11V4a.5.5 0 0 1 .752-.432l6 3.5a.5.5 0 0 1 0 .864l-6 3.5zm.248-1.303L10.008 7.5 5.5 4.87v5.26z" fill-rule="nonzero" />'},arrow:{width:12,height:12,content:'<path d="M3 7l3 3.5L9 7M6 10V1" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" vector-effect="non-scaling-stroke" />'},brent:{width:9,height:12,content:'<g fill="#999" fill-rule="nonzero"><path d="M4.332 0l.528.606c2.528 2.902 3.804 5.07 3.804 6.634A4.332 4.332 0 110 7.24C0 5.676 1.276 3.508 3.804.606L4.332 0zm0 2.143l-.176.212C2.313 4.589 1.4 6.248 1.4 7.24a2.932 2.932 0 105.864 0c0-.992-.914-2.651-2.756-4.885l-.176-.212z"/><path d="M2.973 7.475c0 .415.417.863.835.924l.097.008v.7c-.79 0-1.548-.716-1.626-1.5l-.006-.132h.7z"/></g> '},user:{width:16,height:16,content:'<path fill="currentColor" fill-rule="nonzero" d="M8 1a4.25 4.25 0 012.676 7.552 6.751 6.751 0 014.074 6.198.75.75 0 11-1.5 0 5.25 5.25 0 00-10.5 0 .75.75 0 11-1.5 0 6.752 6.752 0 014.074-6.199A4.25 4.25 0 018 1zm0 1.5A2.75 2.75 0 108 8a2.75 2.75 0 000-5.5z" />'},bookmark:{width:17,height:21,content:'<path d="M16 20l-7.5-6.333L1 20V1h15z" stroke="currentColor" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/>'},shareBookmark:{width:11,height:15,content:'<path clip-rule="evenodd" d="M10 14 5.5 9.667 1 14V1h9v13Z" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>'},receipt:{width:10,height:13,content:'<g fill="currentColor" fill-rule="nonzero"><path d="M10 0H0v13l2-1.74 1.5 1.305L5 11.26l1.5 1.305L8 11.26 10 13V0zM9 .997v9.81l-1-.87-1.5 1.304L5 9.937 3.5 11.24 2 9.937l-1 .87V.996h8z"/><path d="M7 3v1H3V3zM7 6v1H3V6z"/></g>'},read:{width:15,height:15,content:'<g fill="none" fill-rule="evenodd"><path opacity=".98" d="M0 0h15v15H0z"/><path d="M13.085 1.694a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" fill-rule="nonzero"/><path d="M6.454 12.997l-.06-.01-.078-.023a.49.49 0 01-.266-.24l.011.015a2.349 2.349 0 00-.535-.607c-.89-.745-2.117-.917-3.813-.12a.5.5 0 01-.706-.37L1 11.558V4.568a.5.5 0 01.287-.453c2.053-.963 3.695-.733 4.88.26.327.272.556.548.698.77l.084.144.018.04.022.076.01.071L7 11.233l.126-.09c.95-.656 2.16-.857 3.608-.417l.266.087v-2.81a.5.5 0 01.41-.491l.09-.008a.5.5 0 01.492.41l.008.09v3.555a.5.5 0 01-.713.452c-1.696-.796-2.922-.624-3.813.12a2.533 2.533 0 00-.497.544l-.038.064a.486.486 0 01-.485.258zm-4.29-8.17L2 4.892v5.92c1.637-.572 2.977-.348 4 .42l.002-5.58a2.605 2.605 0 00-.476-.513c-.81-.677-1.897-.88-3.362-.314z" fill="currentColor" fill-rule="nonzero"/></g>'},listened:{width:15,height:15,content:'<g fill-rule="nonzero"><path d="M4.978 4.354a.5.5 0 01-.332.624c-1.197.367-2.064 1.527-2.14 2.897l-.005.167a.749.749 0 01.999.708v3a.75.75 0 01-1.458.248L2 12a1 1 0 01-1-1v-1a1 1 0 01.5-.866V8.072c0-1.886 1.172-3.535 2.854-4.05a.5.5 0 01.624.332zM10 7a.5.5 0 01.492.41l.008.09.001 1.634a1 1 0 01.492.745L11 10v1a1 1 0 01-.883.993L10 12l-.042-.002a.75.75 0 01-1.451-.146L8.5 11.75v-3a.75.75 0 011.001-.707L9.5 7.5l.008-.09A.5.5 0 0110 7z" fill="currentColor" /><path d="M11.585 1.194a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" /></g>'},magic:{width:15,height:15,content:'<g fill-rule="evenodd" clip-rule="evenodd"> <path d="M7.804.4a.6.6 0 0 1 .6.6v2.035a.6.6 0 0 1-1.2 0V1a.6.6 0 0 1 .6-.6ZM7.804 10.577a.6.6 0 0 1 .6.6v2.035a.6.6 0 1 1-1.2 0v-2.035a.6.6 0 0 1 .6-.6ZM14.636 7.106a.6.6 0 0 1-.6.6h-2.078a.6.6 0 1 1 0-1.2h2.078a.6.6 0 0 1 .6.6ZM4.25 7.106a.6.6 0 0 1-.6.6H1.573a.6.6 0 0 1 0-1.2H3.65a.6.6 0 0 1 .6.6ZM12.639 2.37a.585.585 0 0 1 0 .84l-1.442 1.412a.615.615 0 0 1-.857 0 .585.585 0 0 1 0-.84l1.442-1.412a.615.615 0 0 1 .857 0ZM12.639 11.843a.615.615 0 0 1-.857 0L10.34 10.43a.585.585 0 0 1 0-.84.615.615 0 0 1 .857 0l1.442 1.413a.585.585 0 0 1 0 .84ZM5.269 4.621a.615.615 0 0 1-.858 0L2.97 3.208a.585.585 0 0 1 0-.84.615.615 0 0 1 .858 0l1.442 1.413a.585.585 0 0 1 0 .84ZM8.926 6.074a.6.6 0 0 1 0 .849l-.863.863-.849-.849.863-.863a.6.6 0 0 1 .849 0ZM7.348 8.5l-5.924 5.924a.6.6 0 1 1-.848-.848L6.5 7.652l.848.848Z"/> </g>'}};var s={root:"SvgSymbol-module_root__WctNR",small:"SvgSymbol-module_small__h9V-w",normal:"SvgSymbol-module_normal__gFAVe",medium:"SvgSymbol-module_medium__QaYjY",large:"SvgSymbol-module_large__o6A4o",adaptive:"SvgSymbol-module_adaptive__gL9qn",fb:"SvgSymbol-module_fb__HZqcB",vk:"SvgSymbol-module_vk__XctB2",ok:"SvgSymbol-module_ok__IM6Z9",tw:"SvgSymbol-module_tw__fio-Q",tg:"SvgSymbol-module_tg__GRhd-",magic:"SvgSymbol-module_magic__N-jKk",reaction:"SvgSymbol-module_reaction__xSbgo",card:"SvgSymbol-module_card__2nVFu",podcast:"SvgSymbol-module_podcast__Yp05r",read:"SvgSymbol-module_read__Bu653",listened:"SvgSymbol-module_listened__AOn7j",menu:"SvgSymbol-module_menu__z-dLm",cross:"SvgSymbol-module_cross__3Xej1",isInFeature:"SvgSymbol-module_isInFeature__BmyI-",isInCard:"SvgSymbol-module_isInCard__USxBS",isInTopicBlockItem:"SvgSymbol-module_isInTopicBlockItem__cnCgw",isInPageStatic:"SvgSymbol-module_isInPageStatic__7kMP-",isInMaterialMeta:"SvgSymbol-module_isInMaterialMeta__lIKJO",isInAudioPlayer:"SvgSymbol-module_isInAudioPlayer__mamWa",isInEpisodeBlock:"SvgSymbol-module_isInEpisodeBlock__oZ6JG",isInButtonPlaybackRate:"SvgSymbol-module_isInButtonPlaybackRate__NnADm",isInButtonBackward:"SvgSymbol-module_isInButtonBackward__x8L9a",isInButtonForward:"SvgSymbol-module_isInButtonForward__TtixK",isInToolbar:"SvgSymbol-module_isInToolbar__RzbaX",play:"SvgSymbol-module_play__dAES0",meduzaLogo:"SvgSymbol-module_meduzaLogo__aVKzZ",arrow:"SvgSymbol-module_arrow__lWTSJ",oil:"SvgSymbol-module_oil__VFGTp",search:"SvgSymbol-module_search__h06cc",user:"SvgSymbol-module_user__ORMm-",bookmark:"SvgSymbol-module_bookmark__JPKyG",shareBookmark:"SvgSymbol-module_shareBookmark__7w9X9",receipt:"SvgSymbol-module_receipt__o3V8u",isInHeader:"SvgSymbol-module_isInHeader__M5Tzw"};const m=({icon:t,size:o,styleContext:l})=>{const a=c[t];return e.createElement("svg",{"data-testid":"svg-symbol",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:r([[s.root,!0],[s[o],!!s[o]],[s[t],!!s[t]],[s[l],!!s[l]]]),width:a.width,height:a.height,viewBox:`0 0 ${a.width} ${a.height}`,dangerouslySetInnerHTML:{__html:a.content}})};var _={root:"Switcher-module_root__cBsJB",dark:"Switcher-module_dark__1QQsH",control:"Switcher-module_control__60WMX",input:"Switcher-module_input__5UDnv",knob:"Switcher-module_knob__PwA1A",children:"Switcher-module_children__uLapU",left:"Switcher-module_left__5-HNa",right:"Switcher-module_right__82Edk",isInPanel:"Switcher-module_isInPanel__-nBSf",isInMenu:"Switcher-module_isInMenu__RQVhp",isInLive:"Switcher-module_isInLive__ZyMCT"};const u=(e,t,o)=>{const l=Array.isArray(t)?t.filter((e=>o[e])).map((e=>[[o[e]],!0])):[[o[t],!!t&&!!o[t]]];return e.concat(l)},p=e.createContext({lightBox:null}),h=p.Provider,k=(e,t,o)=>{const l=window.top,a=`mdzKitMsg=${JSON.stringify({category:e,element:t,action:o})}`;void 0!==l&&l.postMessage(a,"*")};var b={root:"Lazy-module_root__DWw8D"};const g=({children:o,threshold:l})=>{const[a,n,i]=t.useInView({threshold:l||0}),[d,c]=e.useState(!1);return e.useEffect((()=>{i&&i.boundingClientRect&&i.boundingClientRect.y<0&&c(!0)}),[i]),e.useEffect((()=>{n&&c(!0)}),[n]),e.createElement("div",{className:r([[b.root,!0],[b.visible,d]]),ref:a,"data-testid":"lazy"},d&&o)},v={325:"(min-width: 0)",520:"(min-width: 325px)",600:"(min-width: 600px)",650:"(min-width: 650px)",980:"(min-width: 1000px)",1335:"(min-width: 1000px)"},y={xs:[325],superFull:[1335,650,520,325],full:[980,650,520,325],default:[650,520,325],narrow:[600,325]},E={ru:{tg:"Телеграм",fb:"Фейсбук",tw:"Твиттер",pdf:"PDF",unblock:"Magic link",bookmark:"В закладки",reaction:"Напишите нам"},en:{tg:"Telegram",fb:"Fb",tw:"Twitter",pdf:"PDF",unblock:"Magic link",bookmark:"Add to bookmarks"}},f=e=>e.replace(/([_][a-z])/gi,(e=>e.toUpperCase().replace("_",""))),S=({source:t,fallbackSource:o,optimized:l,alt:a,display:r,onLoad:n})=>{const[i,d]=e.useState(!1);e.useEffect((()=>{d(!window.HTMLPictureElement)}),[]);const c=y[f(r)]||y.default;return e.createElement("picture",null,t&&e.createElement("source",{media:"(min-width: 325px)",srcSet:`${t[1]} 2x`}),l&&!l.w325&&e.createElement("source",{media:"(min-width: 0)",srcSet:`${l.original}`}),l&&c.map((t=>{const o=l[`w${t}`];return o?e.createElement(e.Fragment,{key:t},e.createElement("source",{type:"image/webp",media:v[t],srcSet:`${o["2x_webp"]} 2x, ${o["1x_webp"]} 1x `}),e.createElement("source",{type:"image/png",media:v[t],srcSet:`${o["2x"]} 2x, ${o["1x"]} 1x `})):null})),e.createElement("img",{src:i?o:"data:image/gif;base64,R0lGODlhAQABAPAAAPLy8gAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:a,onLoad:()=>n(!0)}))};var B={root:"Image-module_root__H5wAh",isLoaded:"Image-module_isLoaded__keFnD",wrapper:"Image-module_wrapper__gJtbB",fullscreen:"Image-module_fullscreen__4PU9c",dark:"Image-module_dark__qjo5O"};const L=({alt:t,display:o,optimized:l,width:a,height:n,source:i,lazy:d,ratio:c,styleContext:s,fullscreen:m=!0})=>{const{lightBox:_}=e.useContext(p),[h,b]=e.useState(!d),v=()=>{_&&m&&(!l||l.original)&&(k("","fullscreen_click","click"),_.show(l,a,n,t))},y={maxWidth:a<=649?a:"100%"},E={paddingBottom:100/(c||a/n)+"%"},f=i&&i[0]||l.w325&&l.w325["1x"]||l.original;let L=[[B.root,!0],[B.isLoaded,h],[B.fullscreen,_&&l&&l.original&&m]];return s&&(L=u(L,s,B)),e.createElement("div",{className:r(L),style:y,"data-testid":"image"},e.createElement("div",{className:B.wrapper,style:E,onClick:()=>v(),onKeyPress:()=>v(),role:"button",tabIndex:0},d?e.createElement(e.Fragment,null,e.createElement(g,{threshold:.25},e.createElement(S,{fallbackSource:f,source:i,optimized:l,alt:t,display:o,onLoad:b})),e.createElement("noscript",null,e.createElement("img",{src:f,alt:t}))):e.createElement(S,{fallbackSource:f,source:i,optimized:l,alt:t,display:o,onLoad:b})))},w=({children:t,onClose:o})=>{const[l,a]=e.useState(!0),n=()=>{a(!1),setTimeout(o,350)},i=()=>{n()},d=e=>{"Escape"===e.key&&n()};return e.useEffect((()=>(document.body.dataset.popover="true",window.addEventListener("keydown",d,!1),window.addEventListener("scroll",i,!1),()=>{document.body.removeAttribute("data-popover"),window.removeEventListener("keydown",d,!1),window.removeEventListener("scroll",i,!1)})),[l]),e.createElement("div",{"data-testid":"popover",className:r([["Popover-module_root__nBiV4",!0],["Popover-module_visible__XVQLW",l]])},e.createElement("div",{className:"Popover-module_overlay__NAPar",onClick:()=>n()}),e.createElement("div",{className:"Popover-module_container__y4SB1"},e.createElement("button",{type:"button",className:"Popover-module_dismiss__W8KFF",onClick:()=>n(),"aria-label":"dismiss"}),e.createElement("svg",{width:"100%",className:"Popover-module_background__apiio"},e.createElement("defs",null,e.createElement("mask",{id:"myMask",x:"0",y:"0",width:"100%",height:"100%"},e.createElement("rect",{fill:"white",y:"0",width:"100%",height:"100%",x:"0"}),e.createElement("svg",{x:"50%",overflow:"visible"},e.createElement("g",{transform:"translate(-12 0)"},e.createElement("path",{d:"M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"}))))),e.createElement("rect",{fill:"#F7F7F7",id:"base-mask",mask:"url(#myMask)",x:"0",y:"0",width:"100%",height:"100%"})),e.createElement("div",{className:"Popover-module_body__UJEZf"},t)))},x=({children:t,onClose:o})=>e.createElement("div",{"data-testid":"footnote",className:r([["Footnote-module_root__W5D8G",!0]])},e.createElement("button",{className:"Footnote-module_dismiss__Q2hAX",type:"button",onClick:()=>o()},e.createElement(m,{icon:"cross",size:"unset"})),e.createElement("div",{className:"Footnote-module_body__C-ZC-"},t));var C=()=>({width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}),M={root:"DotsOnImage-module_root__8UQf2",isVisible:"DotsOnImage-module_isVisible__rA5x9",marker:"DotsOnImage-module_marker__pLdQT",show:"DotsOnImage-module_show__Ec0lG",dot:"DotsOnImage-module_dot__e2MWx",isActive:"DotsOnImage-module_isActive__Bhb58",popover:"DotsOnImage-module_popover__zHSbU",isRight:"DotsOnImage-module_isRight__IaUbc",isTop:"DotsOnImage-module_isTop__RMK49",isLeft:"DotsOnImage-module_isLeft__Q6JZ-",isBottom:"DotsOnImage-module_isBottom__c-aLe"};const I=({block:{optimized:o,width:l,height:a,credit:n,display:i,dots:d}})=>{const[c,s]=e.useState(1),[m,_,u]=t.useInView(),p=e.useRef(null),[h,k]=e.useState({title:null,body:null,show:!1,id:null}),[b,g]=e.useState(!1);e.useEffect((()=>{u&&u.boundingClientRect&&u.boundingClientRect.y<0&&g(!0)}),[u]),e.useEffect((()=>{_&&g(!0)}),[_]),e.useEffect((()=>(h.id?document.addEventListener("click",y):document.removeEventListener("click",y),()=>document.removeEventListener("click",y))),[h]),e.useEffect((()=>(v(),window.addEventListener("resize",v),()=>document.removeEventListener("resize",v))),[b]);const v=()=>{const e=window.innerWidth;s(e<375?e/375:1)},y=e=>{-1===e.composedPath().indexOf(p.current)&&k({show:!1})};return e.createElement("div",{className:r([[M.root,!0],[M.isVisible,b]]),"data-testid":"dots-on-image",ref:m},e.createElement(L,{fullscreen:!1,optimized:o,width:l,height:a,alt:n,display:i}),e.createElement("div",{ref:p},d.map((t=>e.createElement("div",{className:M.dot,key:t.id,style:{top:`${t.position.y}%`,left:`${t.position.x}%`,transform:`scale(${c}) translate(-${50/c}%, -${50/c}%)`}},e.createElement("button",{className:r([[M.marker,!0],[M.isActive,t.id===h.id]]),type:"button",style:{backgroundColor:t.icon.color},onClick:()=>(e=>{const t=e.id!==h.id;k({title:e.title,body:e.body,show:t,id:t?e.id:null,style:{top:`${e.position.y}%`,left:`${e.position.x}%`},side:e.position.x>50?"isLeft":"isRight",align:e.position.y>50?"isBottom":"isTop"})})(t)},"svg"===t.icon.type&&e.createElement("div",{dangerouslySetInnerHTML:{__html:t.icon.svg_string}}),"number"===t.icon.type&&t.icon.number)))),h.show&&e.createElement(e.Fragment,null,C().width>=1024?e.createElement("div",{className:r([[M.popover,!0],[M[h.side],!!h.side],[M[h.align],!!h.align]]),style:h.style},e.createElement(x,{onClose:()=>{k({show:!1})}},h.title&&e.createElement("h3",null,h.title),e.createElement("div",{dangerouslySetInnerHTML:{__html:h.body}}))):e.createElement(w,{onClose:()=>{k({show:!1})}},h.title&&e.createElement("h3",null,h.title),e.createElement("div",{dangerouslySetInnerHTML:{__html:h.body}})))))};var T={root:"Tag-module_root__sGbnM",small:"Tag-module_small__hcPrf",large:"Tag-module_large__EKMu6",dark:"Tag-module_dark__9SHCb",light:"Tag-module_light__qlfy3",gold:"Tag-module_gold__u0bzS",gray:"Tag-module_gray__eazPk",inherit:"Tag-module_inherit__z21c-",custom:"Tag-module_custom__NU9-e",is1to1:"Tag-module_is1to1__V-fH5",is1to2:"Tag-module_is1to2__b9Obh",isInSuperBlock:"Tag-module_isInSuperBlock__wrFUY",is1to3:"Tag-module_is1to3__vZT-R",is1to4:"Tag-module_is1to4__MBh5V",slide:"Tag-module_slide__gzptP",game:"Tag-module_game__NmKec",podcastMaterial:"Tag-module_podcastMaterial__O-LBI",richRelated:"Tag-module_richRelated__Qs6Ei",card:"Tag-module_card__TX87-",live:"Tag-module_live__ykyR7",episode:"Tag-module_episode__3OHmN",podcast:"Tag-module_podcast__K6dHn",rich:"Tag-module_rich__vPnWd",isInDynamicBlock:"Tag-module_isInDynamicBlock__WNleF",mobile:"Tag-module_mobile__19oMH",desktop:"Tag-module_desktop__cNyQs"};const N=({children:t,size:o="small",theme:l="gold",styleContext:a,correlation:n,onlyOn:i})=>{let d=[[T.root,!0],[T[o],!!o&&!!T[o]],[T[l],!!l&&!!T[l]],[T[i],!!i&&!!T[i]],[T[n],!!n&&!!T[n]]];return a&&(d=u(d,a,T)),e.createElement("div",{"data-testid":"tag",className:r(d)},t)};var z={root:"MediaCaption-module_root__1r0wu",caption:"MediaCaption-module_caption__ewfcc",credit:"MediaCaption-module_credit__7y4v8",dark:"MediaCaption-module_dark__7a9Cm",video:"MediaCaption-module_video__RDTUa",picture:"MediaCaption-module_picture__abCvw",desktop:"MediaCaption-module_desktop__e0lCY",isDark:"MediaCaption-module_isDark__IFb9X"};const A=({credit:t,caption:o,styleContext:l})=>{let a=[[z.root,!0]];return l&&(a=u(a,l,z)),e.createElement("div",{"data-testid":"media-caption",className:r(a)},o&&e.createElement("div",{className:z.caption,dangerouslySetInnerHTML:{__html:o}}),t&&e.createElement("div",{className:z.credit,dangerouslySetInnerHTML:{__html:t}}))};var R={root:"Table-module_root__fRuZq",card:"Table-module_card__8r-EA",table:"Table-module_table__7Pagp",slide:"Table-module_slide__dgMPV",wrapper:"Table-module_wrapper__AP4Pz",tracks:"Table-module_tracks__mRNG0",default:"Table-module_default__nwBEg",full:"Table-module_full__YZPDz",row:"Table-module_row__9OHT3",cell:"Table-module_cell__yFdqc",fixedColumn:"Table-module_fixedColumn__O2528",white:"Table-module_white__Laj3-",gray:"Table-module_gray__FPFh0",pink:"Table-module_pink__CGkAA",blue:"Table-module_blue__b8BHs",yellow:"Table-module_yellow__YOJgu",orange:"Table-module_orange__B-i8L",green:"Table-module_green__Bt6iC",violet:"Table-module_violet__yTZd7",header:"Table-module_header__YPDzO",s:"Table-module_s__I-CeX",m:"Table-module_m__vxhDf",l:"Table-module_l__GYHhk",xs:"Table-module_xs__imR8t"};const H=({styleContext:t,block:{rows:o,options:l,display:a,columns_widths:n,table_credit:i}})=>{const d={"#ffffff":"white","#f5f5f5":"gray","#feeeee":"pink","#e6f3ff":"blue","#fffde6":"yellow","#fff9f2":"orange","#e7f2ef":"green","#f4f0f8":"violet"};let c=[[R.root,!0],[R[a],!!a&&!!R[a]]];return t&&(c=u(c,t,R)),e.createElement("div",{"data-testid":"table",className:r(c)},e.createElement("div",{className:R.wrapper},e.createElement("div",{className:R.table},e.createElement("div",{className:R.tracks},o.map(((t,o)=>e.createElement("div",{key:t.key,className:R.row},t.cells.map(((t,a)=>e.createElement("div",{key:t.key,className:r([[R.cell,!0],[R.header,l.header&&0===o],[R[d[t.color]],!0],[R[n[a]],!0],[R.fixedColumn,l.fixed_first_column&&0===a]]),dangerouslySetInnerHTML:{__html:t.val}}))))))))),i&&e.createElement(A,{credit:i,styleContext:t}))};var D={root:"MaterialNote-module_root__99HSA",dark:"MaterialNote-module_dark__etjym",note_credit:"MaterialNote-module_note_credit__J1skG",note_caption:"MaterialNote-module_note_caption__G2Ad0",center:"MaterialNote-module_center__mDLEO",default:"MaterialNote-module_default__ozgd7",card:"MaterialNote-module_card__EVuZe",slide:"MaterialNote-module_slide__mg8XV",game:"MaterialNote-module_game__c-r0n",gameSurvey:"MaterialNote-module_gameSurvey__azhu6"};const V=({block:{data:t},styleContext:o})=>{let l=[[D.root,!0]];return o&&(l=u(l,o,D)),e.createElement(e.Fragment,null,e.createElement("div",{"data-testid":"material-note",className:r(l)},t&&t.map((t=>e.createElement("p",{className:D[t.type],key:t.id,dangerouslySetInnerHTML:{__html:t.data}})))))};var P={root:"BookmarkButton-module_root__A-75w",control:"BookmarkButton-module_control__-xy5O",dark:"BookmarkButton-module_dark__GkMEC",light:"BookmarkButton-module_light__1W6tx",isInBookmarks:"BookmarkButton-module_isInBookmarks__YSjjj",isInGrid:"BookmarkButton-module_isInGrid__Desh-"};const O=({styleContext:t,theme:o,isInBookmarks:l,onClick:a})=>{let n=[[P.root,!0],[P.isInBookmarks,l],[P[o],!!o&&!!P[o]]];return t&&(n=u(n,t,P)),e.createElement("div",{"data-testid":"bookmark-button",className:r(n)},e.createElement("button",{className:P.control,onClick:()=>a(),type:"button"},e.createElement(m,{icon:"bookmark",size:"unset"})))};var W={root:"Dropdown-module_root__Wv7S-",active:"Dropdown-module_active__jEkE7",menu:"Dropdown-module_menu__11IQL",isInAudioPanel:"Dropdown-module_isInAudioPanel__UniSV"},F={root:"Toolbar-module_root__RnmlI",list:"Toolbar-module_list__-IhdP",item:"Toolbar-module_item__CWmGM",isInTopbar:"Toolbar-module_isInTopbar__WEDi8",center:"Toolbar-module_center__pvdiJ",game:"Toolbar-module_game__etwIA",gameSurvey:"Toolbar-module_gameSurvey__v4D31",slide:"Toolbar-module_slide__PtB3l",card:"Toolbar-module_card__Lutyq",isDark:"Toolbar-module_isDark__MG6Ar",dark:"Toolbar-module_dark__a9sgz"},G={root:"Meta-module_root__H-Q4d",rich:"Meta-module_rich__dCkJK",podcast:"Meta-module_podcast__MI8gD",episode:"Meta-module_episode__0n9CF",simple:"Meta-module_simple__tztcr",slide:"Meta-module_slide__3OyIN",card:"Meta-module_card__2vqfN",game:"Meta-module_game__HNcgr",isInMaterial:"Meta-module_isInMaterial__vKcTK",isInSearchItem:"Meta-module_isInSearchItem__ENqHo",isInMediaBlock:"Meta-module_isInMediaBlock__TENZG",center:"Meta-module_center__seHro",half:"Meta-module_half__aoa9h",podcastMaterial:"Meta-module_podcastMaterial__GTPyD",light:"Meta-module_light__oW3kc",dark:"Meta-module_dark__tLQNJ",isDark:"Meta-module_isDark__xSl1J",hasSource:"Meta-module_hasSource__OZJ0y",bookmark:"Meta-module_bookmark__jcFWn",mobile:"Meta-module_mobile__PbG8N",desktop:"Meta-module_desktop__W5AB7"};const Z=({hasSource:t,theme:o,children:l,onlyOn:a,styleContext:n})=>{let i=[[G.root,!0],[G[o],!!o&&!!G[o]],[G[a],!!a],[G.hasSource,t]];return n&&(i=u(i,n,G)),e.createElement("div",{"data-testid":"meta",className:r(i)},l)},q=({publishedAt:t,locale:a="ru",type:r})=>{let n;const i="ru"===a?"HH:mm, D MMMM YYYY":"h:mm a, MMMM D, YYYY",d=1e3*t;if(o.locale(a),o.extend(l),"fromNow"===r)n=o(d).fromNow();else if("format"===r)n=o(d).format("HH:mm");else{if("date"!==r)throw new Error("Unknown time type");n=o(d).format(i)}return e.createElement("time",{suppressHydrationWarning:!0,"data-testid":"timestamp",className:"Timestamp-module_root__jPJ6w"},n)},j=({className:t="",tagName:o="div",html:l})=>{const a=e.useRef(null),[r,n]=e.useState(!1);e.useEffect((()=>{n(!0)}),[]);const i=e.useCallback((e=>{if("SCRIPT"!==e.tagName||e.id&&0===e.id.indexOf("script-")){let t=0;const o=e.childNodes;for(;t<o.length;)i(o[t]),t+=1}else{const t=document.createElement("script");t.id=`script-${Math.random().toString(16).slice(2)}`,t.innerHTML=e.innerHTML;const o=e.attributes;for(let e=0;e<o.length;e+=1){const{name:l,value:a}=o[e];t.setAttribute(l,a)}e.parentElement.replaceChild(t,e)}}),[]),d=e.useCallback((()=>{Array.from(a.current.querySelectorAll("a")).forEach((e=>{e.setAttribute("target","_blank")}))}),[]);return e.useEffect((()=>{r&&l.indexOf("script")>-1&&a.current.firstElementChild&&(a.current.firstElementChild.innerHTML=l,i(a.current.firstElementChild),d())}),[r,a,l,i,d]),e.createElement("div",{ref:a},e.createElement(o,{className:t,dangerouslySetInnerHTML:{__html:l}}))};var Q={root:"EmbedBlock-module_root__wNZlD",object:"EmbedBlock-module_object__DONQ0",objectWrap:"EmbedBlock-module_objectWrap__qpbni",gameEmbed:"EmbedBlock-module_gameEmbed__tO5Ha",proportional:"EmbedBlock-module_proportional__zDPfm",default:"EmbedBlock-module_default__np8MO",xs:"EmbedBlock-module_xs__PNHGz",full:"EmbedBlock-module_full__Gmz7o",super_full:"EmbedBlock-module_super_full__-h382",figure:"EmbedBlock-module_figure__fNZB-",dark:"EmbedBlock-module_dark__S2R9f",isInGroupedBlock:"EmbedBlock-module_isInGroupedBlock__Wjj7k",control:"EmbedBlock-module_control__9bJUa",raw_html:"EmbedBlock-module_raw_html__EfYVy",mobileFullwidth:"EmbedBlock-module_mobileFullwidth__1MDT5",isInCard:"EmbedBlock-module_isInCard__WnLHG",isInSlide:"EmbedBlock-module_isInSlide__BtdnY",cc:"EmbedBlock-module_cc__Gyw44",isInSensitiveBlock:"EmbedBlock-module_isInSensitiveBlock__nYajZ",isInAnswer:"EmbedBlock-module_isInAnswer__WuZ0H",picture:"EmbedBlock-module_picture__Weamy",wrapper:"EmbedBlock-module_wrapper__ynT7R",mobile:"EmbedBlock-module_mobile__lEuww",desktop:"EmbedBlock-module_desktop__599S7"};const U=({gif:t,mp4Url:o,style:l})=>{const[a,r]=e.useState(!1),n=e.useRef(null),i=()=>{n.current.play(),r(!1)},d=()=>{const e=n.current;e.setAttribute("poster",e.dataset.gif),r(!1)};return e.useEffect((()=>{const e=n.current,{width:t}=C();return t>=512?(e.setAttribute("autoplay",!0),e.play()):(r(!0),e.pause(),e.addEventListener("touchstart",i)),e.addEventListener("error",d),()=>{e.removeEventListener("touchstart",i),e.removeEventListener("error",d)}}),[]),e.createElement("div",{className:Q.figure},e.createElement("div",{className:Q.objectWrap,style:l,"data-frozen":a},e.createElement("video",{playsInline:!0,muted:!0,loop:!0,autoPlay:!0,preload:"metadata","data-gif":t,ref:n},e.createElement("source",{src:`https://meduza.io${o}`,type:"video/mp4"}))))},Y=({block:t,block:{data:o,data:{html:l,display:a,only_on:n,provider:i,cc:d,optimized:c,small_url:s,large_url:m,gif_url:_,mp4_url:p}},styleContext:h,children:k})=>{const[b,g]=e.useState(!1),v={},y=t.data.height&&t.data.width,E=["youtube","vimeo","onetv","coub","meduza","facebook_video"].indexOf(i)>-1||"dots_on_image"===t.type,f=t=>e.createElement(A,{credit:o.credit,caption:o.caption,styleContext:t||h});y&&(v.paddingBottom=t.data.height/t.data.width*100+"%",v.height=0);let S=[[Q.root,!0],[Q.cc,d],[Q[a],!!a&&Q[a]],[Q[i],!!i&&!!Q[i]],[Q[n],!!n&&Q[n]],[Q.mobileFullwidth,E],[Q.proportional,y]];if(h&&Array.isArray(h)){const e=h.filter((e=>e.startsWith("isIn")&&Q[e])).reduce(((e,t)=>(e.push(t),e)),[]);S=u(S,e,Q)}return e.createElement("figure",{className:r(S)},k&&e.createElement("div",{className:Q.object},e.createElement("div",{className:Q.wrapper,style:v},e.createElement("div",{className:Q.objectWrap},k))),!k&&(a=>{switch(t.type){case"gif":return e.createElement(U,{gif:_,mp4Url:p,style:a});case"image":return e.createElement("div",{className:Q.figure},e.createElement(L,{source:!c&&[s,m],optimized:t.data.optimized,width:t.data.width,height:t.data.height,alt:t.data.caption,display:t.data.display,lazy:t.data.lazy,styleContext:h}));case"game_embed":return e.createElement("div",{className:Q.gameEmbed},e.createElement("iframe",{src:t.data.game_src,id:t.data.game_id,title:"Game embed"}));case"dots_on_image":return e.createElement("div",{className:Q.figure},e.createElement(I,{block:o}));default:return e.createElement("div",{className:Q.object},e.createElement("div",{className:Q.wrapper,style:a},e.createElement(j,{className:Q.objectWrap,html:l})))}})(v),"default"===d&&e.createElement("figcaption",null,f()),"button"===d&&e.createElement("button",{className:Q.control,type:"button","aria-label":"Open",onClick:()=>{g(!b)}}),"button"===d&&b&&e.createElement(w,{onClose:()=>{g(!1)}},f("isInPopover")))},X=({block:t,block:{id:o},styleContext:l,lang:a="ru"})=>{const r=e.useRef(null);return e.useEffect((()=>{(()=>{const e=document.createElement("div"),o=document.createElement("div"),l=document.createElement("script"),n=document.createElement("style"),i=document.createRange();i.setStart(o,0),o.setAttribute("id","content"),l.textContent=`\n function getDocHeight() {\n var doc = document;\n var body = doc.body;\n var html = doc.documentElement;\n var height = Math.max( body.scrollHeight, body.offsetHeight,\n html.clientHeight, html.scrollHeight, html.offsetHeight );\n\n doc.body.style.margin="0";\n\n return document.getElementById('content') ? document.getElementById('content').offsetHeight : height;\n }\n\n function sendDocHeightMsg() {\n var height = getDocHeight();\n var message = JSON.stringify({\n action: {\n type: "UPDATE_HEIGHT",\n payload: {\n id: "${t.id}",\n height: height\n }\n }\n });\n parent.postMessage("mdzMaterialEmbedHeight=" + message, '*');\n }\n\n setInterval(sendDocHeightMsg, 300);\n `,n.type="text/css",n.innerHTML="embed_code"===t.type?".twitter-tweet { padding-top: 15px; margin: 0 !important; }":".twitter-tweet { margin: 0 !important; } .fb-post { display: block; } .instagram-media { min-width: 0 !important; }",o.appendChild(i.createContextualFragment(t.data.html)),e.appendChild(l),e.appendChild(o),o.appendChild(n);const d=r.current.querySelector("iframe").contentDocument;d.open(),d.close(),d.documentElement.setAttribute("lang",a),d.body.appendChild(e)})()}),[]),e.createElement(Y,{block:t,styleContext:l},e.createElement("div",{ref:r,dangerouslySetInnerHTML:{__html:`<iframe id=${o} frameBorder="0" scrolling="no"></iframe>`}}))},$=({block:t,styleContext:o,lang:l})=>t.data&&t.data.wrap_with_iframe?e.createElement(X,{block:t,styleContext:o,lang:l}):e.createElement(Y,{block:t,styleContext:o});var J={root:"QuoteBlock-module_root__4qa1J",center:"QuoteBlock-module_center__1f83y"};const K=({block:{data:t},styleContext:o})=>{let l=[[J.root,!0]];return o&&(l=u(l,o,J)),e.createElement("div",{"data-testid":"quote-block",className:r(l)},e.createElement("p",{dangerouslySetInnerHTML:{__html:t}}))};var ee={root:"CardTitle-module_root__Pvx--",index:"CardTitle-module_index__Keled",title:"CardTitle-module_title__Lkflo",mobile:"CardTitle-module_mobile__6N3hB",desktop:"CardTitle-module_desktop__sBokS"};const te=({block:{data:{only_on:t,index:o,text:l}},styleContext:a})=>e.createElement("div",{"data-testid":"card-title",className:r([[ee.root,!0],[ee[t],!!t],[ee[a],!!a&&!!ee[a]]])},e.createElement("div",{className:ee.index},o),e.createElement("h3",{className:ee.title},l));var oe={root:"ChapterBlock-module_root__iw7d2",subtitle:"ChapterBlock-module_subtitle__IpWgz",mobile:"ChapterBlock-module_mobile__V1Eye",desktop:"ChapterBlock-module_desktop__9xWf4"};const le=({block:{data:t,only_on:o},styleContext:l})=>e.createElement("div",{"data-testid":"chapter-block",className:r([[oe.root,!0],[oe[o],!!o]])},e.createElement("div",{className:r([[oe.subtitle,!0],[oe[l],!!l&&!!oe[l]]]),dangerouslySetInnerHTML:{__html:t}})),ae=(e,t)=>`linear-gradient(-180deg, ${{mediaBlockBottom:[[0,7],[.08,12],[.16,17],[.22,21],[.32,26],[.42,32],[.52,38],[.62,47],[.72,57],[.82,65],[1,82]],mediaBlockTop:[[.5,0],[0,97]]}[t].map((t=>`rgba(${e}, ${t[0]}) ${t[1]}%`))})`;var re={root:"SimpleTitle-module_root__YOzNn",mobile:"SimpleTitle-module_mobile__1QiJd",desktop:"SimpleTitle-module_desktop__ZF5Af"};const ne=({block:{data:{first:t},only_on:o},styleContext:l})=>{let a=[[re.root,!0],[re[o],!0]];return l&&(a=u(a,l,re)),e.createElement("h1",{"data-testid":"simple-title",className:r(a)},t)};var ie={root:"RichTitle-module_root__U5XQu",slide:"RichTitle-module_slide__eU9Ob",game:"RichTitle-module_game__S1csb",podcastMaterial:"RichTitle-module_podcastMaterial__AulVF",half:"RichTitle-module_half__yBMby",featured:"RichTitle-module_featured__ULNQn",isInMediaBlock:"RichTitle-module_isInMediaBlock__2h6rl",mobile:"RichTitle-module_mobile__W5L9E",desktop:"RichTitle-module_desktop__k0PkC"};const de=({block:{only_on:t,data:{featured:o,first:l,second:a,as:n="h1"}},styleContext:i})=>{let d=[[ie.root,!0],[ie[t],!0],[ie.featured,!!o]];return i&&(d=u(d,i,ie)),e.createElement(n,{"data-testid":"rich-title",className:r(d)},l,a&&e.createElement("span",null," ",a))};var ce={p:"SimpleBlock-module_p__7aRnT",h2:"SimpleBlock-module_h2__aWlMn",h3:"SimpleBlock-module_h3__uPh0-",h4:"SimpleBlock-module_h4__MxGXA",lead:"SimpleBlock-module_lead__NzEPT",lead_hr:"SimpleBlock-module_lead_hr__XN0rm",context_p:"SimpleBlock-module_context_p__Mdu1R",blockquote:"SimpleBlock-module_blockquote__nX-Ab",game:"SimpleBlock-module_game__uVeJJ",slide:"SimpleBlock-module_slide__MaaUF",dark:"SimpleBlock-module_dark__qtLhq",divider:"SimpleBlock-module_divider__-VXBu",isInIntro:"SimpleBlock-module_isInIntro__UOePf",center:"SimpleBlock-module_center__D1CsV",isInImportantLead:"SimpleBlock-module_isInImportantLead__qzKDo",podcastMaterial:"SimpleBlock-module_podcastMaterial__XEMjh",isInAnswer:"SimpleBlock-module_isInAnswer__Asx7d",mobile:"SimpleBlock-module_mobile__EVGYJ",desktop:"SimpleBlock-module_desktop__6ZH5e",isDark:"SimpleBlock-module_isDark__ehYKr"};const se=({block:{data:t,type:o,only_on:l},styleContext:a})=>{let n,i=[[ce[o],!!o&&!!ce[o]],[ce[l],!0]];switch(a&&(i=u(i,a,ce)),o){case"context_p":case"lead":case"note_caption":case"note_credit":n="p";break;case"divider":return e.createElement("hr",{className:r(i)});case"lead_hr":n="div";break;default:n=o}return e.createElement(n,{className:r(i),dangerouslySetInnerHTML:{__html:t}})};var me={root:"ListBlock-module_root__dqomP",ol:"ListBlock-module_ol__1l6nP",ul:"ListBlock-module_ul__bgHlv",center:"ListBlock-module_center__bEBN-",isInImportantLead:"ListBlock-module_isInImportantLead__ewcD1",dark:"ListBlock-module_dark__NzpYz",mobile:"ListBlock-module_mobile__qEBsn",desktop:"ListBlock-module_desktop__HN0IU"};const _e=({block:{type:t,data:o,only_on:l},styleContext:a})=>{const n=t;let i=[[me.root,!0],[me[l],!0],[me[t],!!t&&!!me[t]]];return a&&(i=u(i,a,me)),e.createElement(n,{className:r(i),"data-testid":"list-block"},o.map(((t,o)=>e.createElement("li",{key:o,dangerouslySetInnerHTML:{__html:t}}))))};var ue={root:"RelatedBlock-module_root__cr1c-",header:"RelatedBlock-module_header__bfUJD",items:"RelatedBlock-module_items__rzzam",rich:"RelatedBlock-module_rich__1cWdn",first:"RelatedBlock-module_first__ZkcP5",simple:"RelatedBlock-module_simple__m22bj",center:"RelatedBlock-module_center__WVpIJ",isInSlideMaterial:"RelatedBlock-module_isInSlideMaterial__VumDw",mobile:"RelatedBlock-module_mobile__AScBA",desktop:"RelatedBlock-module_desktop__uMXUY"};const pe=({block:{data:{title:t,related:o},only_on:l},styleContext:n})=>{let i=[[ue.root,!0],[ue[l],!0]];return n&&(i=u(i,n,ue)),e.createElement("div",{"data-testid":"related-block",className:r(i)},e.createElement("h3",{className:ue.header},t),e.createElement("ul",{className:ue.items},o.map(((t,o)=>e.createElement("li",{key:t.id||o,className:ue[t.layout]},e.createElement(a.Link,{to:t.full_url||`/${t.url}`},e.createElement("span",{className:ue.first},t.title),t.second_title&&" ",t.second_title&&e.createElement("span",null,t.second_title)))))))};var he={root:"SourceBlock-module_root__9dnI4",text:"SourceBlock-module_text__M5-uy",origin:"SourceBlock-module_origin__fyvxH",center:"SourceBlock-module_center__UOMwy",mobile:"SourceBlock-module_mobile__QVEyg",desktop:"SourceBlock-module_desktop__xdXWm",isDark:"SourceBlock-module_isDark__etwk1"};const ke=({block:{only_on:t,data:{quote:o,origin:l,url:a}},styleContext:n})=>{let i=[[he.root,!0],[he[t],!0]];return n&&(i=u(i,n,he)),e.createElement("blockquote",{"data-testid":"source-block",cite:a,className:r(i)},e.createElement("a",{className:he.text,href:a,target:"_blank",rel:"noopener noreferrer"},o.map(((t,o)=>e.createElement("p",{key:o,dangerouslySetInnerHTML:{__html:t.data}}))),e.createElement("footer",null,e.createElement("cite",{className:he.origin},l))))};var be={root:"SensitiveBlock-module_root__1Nl9-",container:"SensitiveBlock-module_container__GE2tW",overlay:"SensitiveBlock-module_overlay__tEsK8",content:"SensitiveBlock-module_content__RYbdd",button:"SensitiveBlock-module_button__LGEEM",default:"SensitiveBlock-module_default__pkWhC",full:"SensitiveBlock-module_full__hlH41",media:"SensitiveBlock-module_media__nuL1S",super_full:"SensitiveBlock-module_super_full__C7UyP",visible:"SensitiveBlock-module_visible__bXhYO",isInCard:"SensitiveBlock-module_isInCard__uANYL",isInSlide:"SensitiveBlock-module_isInSlide__ZAVUU"};const ge=({block:t,block:{cc:o,caption:l,credit:a,blurred_image:n},block:{item:{data:{display:i}}},styleContext:c})=>{const[s,m]=e.useState(!1);let _=[[be.root,!0],[be.visible,s],[be[i],i&&be[i]]],p=["isInSensitiveBlock"];return c&&(_=u(_,c,be),p=[...c,"isInSensitiveBlock"]),e.createElement("div",{"data-testid":"sensitive-block",className:r(_)},e.createElement("div",{className:be.container},e.createElement("div",{className:be.overlay,style:{backgroundImage:`url(${n})`}},e.createElement("div",{className:be.content},e.createElement("p",{dangerouslySetInnerHTML:{__html:t.title}}),e.createElement("div",{className:be.button},e.createElement(d,{onClick:()=>{m(!0)},theme:"light"},t.button.text)))),e.createElement("div",{className:be.media},e.createElement($,{block:t.item,styleContext:p}))),o&&e.createElement("figcaption",{className:be.figcaption},e.createElement(A,{credit:a,caption:l,styleContext:c})))};var ve={root:"GroupedBlock-module_root__MQQin",hasFigcaption:"GroupedBlock-module_hasFigcaption__Y05ed",item:"GroupedBlock-module_item__-InqF",items:"GroupedBlock-module_items__8X4js",figcaption:"GroupedBlock-module_figcaption__OE5-u",default:"GroupedBlock-module_default__Tha8f",full:"GroupedBlock-module_full__SNwyE",super_full:"GroupedBlock-module_super_full__HTA9D",mobile:"GroupedBlock-module_mobile__xqMw5",desktop:"GroupedBlock-module_desktop__Oobdp"};const ye=({block:t,block:{only_on:o},styleContext:l})=>{const a=Math.min(...t.data.map((e=>e.data&&e.data.height||e.item&&e.item.data.height))),n=t.data.map((e=>(e.data&&e.data.width||e.item&&e.item.data.heigh)/((e.data&&e.data.height||e.item&&e.item.data.heigh)/a))),i=n.reduce(((e,t)=>e+t));let d=[[ve.root,!0],[ve[o],!0],[ve.hasFigcaption,"default"===t.cc],[ve[t.display],!!t.display&&ve[t.display]]];return l&&(d=u(d,l,ve)),e.createElement("div",{"data-testid":"grouped-block",className:r(d)},e.createElement("div",{className:ve.items},t.data.map(((t,o)=>e.createElement("div",{className:ve.item,key:t.id,style:{width:n[o]/i*100+"%"}},e.createElement("sensitive"===t.type?ge:$,{block:t,styleContext:["isInGroupedBlock"]}))))),t.cc&&e.createElement("figcaption",{className:ve.figcaption},e.createElement(A,{credit:t.credit,caption:t.caption,styleContext:l})))};var Ee={root:"MetaItem-module_root__sRbrZ",hasBullets:"MetaItem-module_hasBullets__b1eW9",hasSource:"MetaItem-module_hasSource__35olm",listened:"MetaItem-module_listened__XZWFQ",read:"MetaItem-module_read__O3cUz",datetime:"MetaItem-module_datetime__--O8c"};const fe=({hasSource:t,type:o,children:l,bullets:a})=>e.createElement("div",{"data-testid":"meta-item",className:r([[Ee.root,!0],[Ee[o],!!o&&!!Ee[o]],[Ee.hasSource,!!t],[Ee.hasBullets,!!a]])},l);var Se={root:"MetaItemLive-module_root__XfQiW",gold:"MetaItemLive-module_gold__f1UOy",frame:"MetaItemLive-module_frame__FHByQ",liveMiddle:"MetaItemLive-module_liveMiddle__SX4Gs",liveFirstWave:"MetaItemLive-module_liveFirstWave__QqstP",liveSecondWave:"MetaItemLive-module_liveSecondWave__hlbpt"};const Be=({theme:t="gold"})=>e.createElement("div",{"data-testid":"meta-item-live","data-meta":"live",className:r([[Se.root,!0],[Se[t],!!t&&Se[t]]])},e.createElement("div",{className:Se.frame})),Le=({type:t,lang:o="ru",items:l,children:a})=>{const r={ru:{card:{one:"карточка",two:"карточки",five:"карточек"},podcast:{one:"эпизод",two:"эпизода",five:"эпизодов"}},en:{card:{one:"card",two:"cards",five:"cards"},podcast:{one:"episode",two:"episodes",five:"episodes"}}},n=`${l} ${((e,t,o,l)=>{let a=Math.abs(e);return a%=100,a>=5&&a<=20?l:(a%=10,1===a?t:a>=2&&a<=4?o:l)})(l,r[o][t].one,r[o][t].two,r[o][t].five)}`;return e.createElement(e.Fragment,null,a,e.createElement("span",{className:"DocumentItemsCount-module_root__u4M3y"},n))},we=({lang:t,block:o,isRead:l,isListened:a,bookmarkAction:r,isInBookmarks:n,block:{data:{components:i,theme:d}},styleContext:c})=>{const s=c&&-1!==c.indexOf("dark")?"light":"unset",_=c&&-1!==c.indexOf("podcast"),u=c&&-1!==c.indexOf("slide");let p=[];c&&Array.isArray(c)&&(p=c.filter((e=>"dark"!==e)));const h=!!i.find((e=>"source_name"===e.type));return e.createElement(Z,{styleContext:p,theme:d||s,onlyOn:o.only_on,hasSource:h},i.map((o=>{switch(o.type){case"source_name":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,"ru"===t?"Источник: ":"Source: ",o.url&&e.createElement("a",{href:o.url,rel:"noopener noreferrer",target:"_blank"},o.text),!o.url&&o.text));case"duration":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,e.createElement(m,{icon:"podcast",size:"small"}),o.text));case"datetime":{const l=o.format&&f(o.format)||"date";return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id,type:"datetime"},e.createElement(q,{publishedAt:o.datetime,type:l||"date",locale:t}))}case"items_count":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(Le,{items:o.count,type:_?"podcast":"card",lang:t},e.createElement(m,{icon:"card",size:"unset"})));case"broadcast_active":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,e.createElement(Be,null)," Прямой эфир"));case"broadcast":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,o.with_icon&&e.createElement(Be,null),o.label));case"string":return e.createElement(fe,{bullets:!0,key:o.id},o.text);default:return null}})),(l||a)&&e.createElement(fe,{hasSource:h,bullets:!0,type:a?"listened":"read"},e.createElement(m,{icon:a?"listened":"read",size:"unset"})),u&&"ru"===t&&e.createElement("div",{className:G.bookmark},e.createElement(O,{isInBookmarks:n,onClick:()=>r("bookmark","top")})))};var xe={root:"DonatesTeaser-module_root__XQCVy",main:"DonatesTeaser-module_main__eN9kd",title:"DonatesTeaser-module_title__9umo1",text:"DonatesTeaser-module_text__s6tyf",cta:"DonatesTeaser-module_cta__-50aB",center:"DonatesTeaser-module_center__gxLvW",isInCard:"DonatesTeaser-module_isInCard__vaUhd",isInSlide:"DonatesTeaser-module_isInSlide__Dh4NH",ru:"DonatesTeaser-module_ru__y-PlJ",en:"DonatesTeaser-module_en__0Iisr"};const Ce=({styleContext:t,lang:o="ru"})=>{let l=[[xe.root,!0],[xe[o],xe[o]]];t&&(l=u(l,t,xe));const a={ru:{title:"«Медуза». Работаем 24/7. И&nbsp;только&nbsp;в&nbsp;интересах читателей",subtitle:"Нам срочно нужна ваша поддержка",button:"Хочу помочь",href:"https://support.meduza.io/"},en:{title:"Meduza, working 24/7, always&nbsp;for our readers",subtitle:"We&nbsp;need&nbsp;your&nbsp;help like never&nbsp;before",button:"Okay!",href:"https://support.meduza.io/en"}};return e.createElement("div",{"data-testid":"donates-teaser",className:r(l)},e.createElement("div",{className:xe.main},e.createElement("h3",{className:xe.title},e.createElement("span",{dangerouslySetInnerHTML:{__html:a[o].title}})," ",e.createElement("span",{className:xe.text,dangerouslySetInnerHTML:{__html:a[o].subtitle}}))),e.createElement("div",{className:xe.cta},e.createElement("a",{href:a[o].href,target:"_blank",rel:"noreferrer"},e.createElement("span",null,a[o].button))))};var Me={root:"AnnouncementInText-module_root__C4-Oo",body:"AnnouncementInText-module_body__lZy-L",title:"AnnouncementInText-module_title__cb6i1",footer:"AnnouncementInText-module_footer__jRk9p",button:"AnnouncementInText-module_button__JuT-E",link:"AnnouncementInText-module_link__C0YxL",center:"AnnouncementInText-module_center__1DJjd",isInCard:"AnnouncementInText-module_isInCard__jIqpa",isInSlide:"AnnouncementInText-module_isInSlide__BWO-A",ru:"AnnouncementInText-module_ru__QHQad",en:"AnnouncementInText-module_en__r0PvM"};const Ie=({styleContext:t,lang:o="ru"})=>{let l=[[Me.root,!0],[Me[o],Me[o]]];t&&(l=u(l,t,Me));const a={ru:{title:"&laquo;Медуза&raquo; заблокирована в&nbsp;России. Мы&nbsp;были к&nbsp;этому готовы&nbsp;&mdash; и&nbsp;продолжаем работать. Несмотря&nbsp;ни&nbsp;на&nbsp;что",text:"<p>Нам нужна ваша помощь как никогда. Прямо сейчас. Дальше всем нам будет еще труднее. Мы&nbsp;независимое издание и&nbsp;работаем только в&nbsp;интересах читателей.</p>",button:"Хочу помочь",href:"https://mdza.io/yiNxPZ7Bs-k"},en:{title:"Meduza has been blocked in Russia. We&nbsp;were ready for this and our work continues, no matter what, but we need your support like never before. ",text:"<p>We need it now. Tomorrow could be too late. We are an independent publication, and we work only in the interests of our readers. Many&nbsp;of&nbsp;our&nbsp;readers in Russia can no longer contribute, so we turn to you, our audience around the world.</p>",button:"I want to help",href:"https://support.meduza.io/en"}}[o];return e.createElement("div",{"data-testid":"announcement-in-text",className:r(l)},e.createElement("div",{className:Me.body},e.createElement("h3",{className:Me.title,dangerouslySetInnerHTML:{__html:a.title}}),e.createElement("div",{dangerouslySetInnerHTML:{__html:a.text}})),e.createElement("div",{className:Me.footer},e.createElement("a",{className:Me.link,href:a.href,target:"_blank",rel:"noreferrer"},e.createElement("span",null,a.button)),e.createElement("span",{className:Me.button},e.createElement("span",null,a.button))))},Te=({block:t,styleContext:o,lang:l,isRead:a,isListened:r,bookmarkAction:n,isInBookmarks:i})=>{switch(t.type){case"tag":return e.createElement(N,{size:"large",onlyOn:t.only_on,theme:t.data.theme,styleContext:o},t.data.text);case"simple_title":return e.createElement(ne,{block:t,styleContext:o});case"rich_title":return e.createElement(de,{block:t,styleContext:o});case"meta":return e.createElement(we,{block:t,lang:t.data.lang,styleContext:o,isRead:a,isListened:r,isInBookmarks:i,bookmarkAction:n});case"h1":case"h2":case"h3":case"h4":case"blockquote":case"p":case"context_p":case"divider":case"lead":case"lead_hr":return e.createElement(se,{block:t,styleContext:o});case"quote":return e.createElement(K,{block:t,styleContext:o});case"ol":case"ul":return e.createElement(_e,{block:t,styleContext:o});case"chapter-subtitle":return e.createElement(le,{block:t,styleContext:o});case"card_title":return e.createElement(te,{block:t,styleContext:o});case"related":return e.createElement(pe,{block:t,styleContext:o});case"source":return e.createElement(ke,{block:t,styleContext:o});case"table":return e.createElement(H,{block:t,styleContext:o});case"sensitive":return e.createElement(ge,{block:t,styleContext:o});case"embed":case"embed_code":case"game_embed":case"image":case"dots_on_image":case"gif":return e.createElement($,{block:t,styleContext:o,lang:l});case"grouped":return e.createElement(ye,{block:t,styleContext:o});case"donation":return e.createElement(Ce,{styleContext:o,lang:l});case"material_note":return e.createElement(V,{block:t,styleContext:o});case"announcement_in_text":return e.createElement(Ie,{styleContext:o,lang:l});default:return null}};var Ne={root:"Cover-module_root__3pscq",body:"Cover-module_body__eJpUI",image:"Cover-module_image__frrrH",rich:"Cover-module_rich__YcxWa",dark:"Cover-module_dark__cRucL",light:"Cover-module_light__la-sk",control:"Cover-module_control__WP0G3",isInDynamicBlock:"Cover-module_isInDynamicBlock__qO-yt",mobile:"Cover-module_mobile__aotep",desktop:"Cover-module_desktop__dfbC-"};const ze=({block:{only_on:t,data:{blocks:o,cover:{credit:l,caption:a,urls:n,mobile_ratio:i,gradients:d,cc:c}}},styleContext:s})=>{const[m,_]=e.useState(!1),p={};let h=[[Ne.root,!0],[Ne[t],!!t&&!!Ne[t]]];return s&&(h=u(h,s,Ne)),d&&(h=u(h,["0,0,0"===d.text_rgb?"dark":"light"],Ne),p.backgroundImage=ae(d.bg_rgb,"mediaBlockBottom")),e.createElement("div",{"data-testid":"cover",className:r(h)},e.createElement("div",{className:Ne.image},e.createElement(L,{optimized:n,ratio:i,display:"narrow",lazy:!0})),e.createElement("div",{className:Ne.body,style:p},o.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:s})))),"button"===c&&e.createElement("button",{className:Ne.control,type:"button","aria-label":"Open",onClick:()=>{_(!m)}}),"button"===c&&m&&e.createElement(w,{onClose:()=>{_(!1)}},e.createElement(A,{credit:l,caption:a,styleContext:"isInPopover"})))};var Ae={root:"HalfBlock-module_root__EXQbz",main:"HalfBlock-module_main__eIcRo",body:"HalfBlock-module_body__HPhGj",footer:"HalfBlock-module_footer__TFfCQ",image:"HalfBlock-module_image__XWLbK",mobile:"HalfBlock-module_mobile__uGGpm",desktop:"HalfBlock-module_desktop__p-hAq"};const Re=({block:{only_on:t,data:o,data:{cover:{optimized:l,ratio:a,credit:n,caption:i}}},styleContext:d})=>{let c=[[Ae.root,!0],[Ae[t],!0]];return d&&(c=u(c,d,Ae)),e.createElement("div",{"data-testid":"half-block",className:r(c)},e.createElement("div",{className:Ae.main},e.createElement("div",{className:Ae.image},e.createElement(L,{optimized:l,ratio:a,display:"super_full"})),e.createElement("div",{className:Ae.body},o.blocks.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:["rich"]}))))),e.createElement("div",{className:Ae.footer},e.createElement(A,{credit:n,caption:i,styleContext:d})))};var He={root:"ImportantLead-module_root__-rnt6",slide:"ImportantLead-module_slide__zcovu",mobile:"ImportantLead-module_mobile__msInp",desktop:"ImportantLead-module_desktop__ELC2-"};const De=({block:{only_on:t,data:o},styleContext:l})=>{let a=[[He.root,!0],[He[t],!!t]];return l&&(a=u(a,l,He)),e.createElement("div",{"data-testid":"important-lead",className:r(a)},o.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:"isInImportantLead"}))))};var Ve={root:"Spoiler-module_root__fAbb9",header:"Spoiler-module_header__iEKsQ",body:"Spoiler-module_body__jjqIn",spoiled:"Spoiler-module_spoiled__ENI93",footer:"Spoiler-module_footer__g21Zn",spoilerSticky:"Spoiler-module_spoilerSticky__YTiyF",spoilerStickyBg:"Spoiler-module_spoilerStickyBg__tmDnG",center:"Spoiler-module_center__0XCWo",full:"Spoiler-module_full__FtKDT",default:"Spoiler-module_default__wvlKw",mobile:"Spoiler-module_mobile__PWCMW",desktop:"Spoiler-module_desktop__qTakd"};const Pe=({block:{display:t,button:o,only_on:l,btn_title:a,title:n,blocks:i},styleContext:c})=>{const[s,_]=e.useState(!1),p=e.useRef(null);let h=[[Ve.root,!0],[Ve[l],!!l],[Ve[t],!!t&&Ve[t]],[[Ve.spoiled],!!s]];const b=["center"];c&&(b.concat(c),h=u(h,c,Ve));const g=o?o.collapse:"Свернуть",v=o?o.expand:a;return e.createElement("div",{ref:p,className:r(h),"data-testid":"spoiler"},e.createElement("div",{className:Ve.header},n&&e.createElement("h3",null,n)),e.createElement("div",{className:Ve.body},i.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:b})))),e.createElement("div",{className:Ve.footer},e.createElement(d,{size:"default",theme:"gray",onClick:()=>(_(!s),void(s?(k("","closeSpoiler","click"),p.current.getBoundingClientRect().top<0&&p.current.scrollIntoView({behavior:"smooth"})):k("","openSpoiler","click"))),styleContext:"isInSpoiler"},s?g:v,e.createElement(m,{icon:"arrow"}))))};var Oe={root:"RelatedRichBlock-module_root__-SEe7",wrapper:"RelatedRichBlock-module_wrapper__YkEpr",overlay:"RelatedRichBlock-module_overlay__tWuyR",overlayHeader:"RelatedRichBlock-module_overlayHeader__V3ynX",body:"RelatedRichBlock-module_body__XhS0U",isRich:"RelatedRichBlock-module_isRich__Z2kQ8",hasGradient:"RelatedRichBlock-module_hasGradient__s5Krh",picture:"RelatedRichBlock-module_picture__OmRKx",isCard:"RelatedRichBlock-module_isCard__wkMw-",cover:"RelatedRichBlock-module_cover__3gnIx",tag:"RelatedRichBlock-module_tag__c18sv",center:"RelatedRichBlock-module_center__KANd-",dark:"RelatedRichBlock-module_dark__cnk4R",light:"RelatedRichBlock-module_light__aJLn7",mobile:"RelatedRichBlock-module_mobile__N-G4U",desktop:"RelatedRichBlock-module_desktop__EaPOr"};const We=({block:{only_on:o,data:{blocks:l,url:n,cover:{urls:i,gradients:d,tag:c,layout:s,ratio:m}}},styleContext:_})=>{const p={},h={},b=`is${g=s,g[0].toUpperCase()+g.slice(1)}`;var g;const[v,y]=t.useInView({threshold:0,triggerOnce:!0});e.useEffect((()=>{y&&("mobile"===o&&window.innerWidth<=511||"desktop"===o&&window.innerWidth>=512||!o)&&k("richRelated",n,"view")}),[y]);let E=[[Oe.root,!0],[Oe[b],!!s&&!!Oe[b]],[Oe.hasGradient,!!d],[Oe[o],!!o&&!!Oe[o]]],f=["isInMediaBlock"];return _&&(E=u(E,_,Oe),f=[..._,"isInMediaBlock"]),d&&(h.backgroundImage=ae(d.bg_rgb,"mediaBlockTop"),E=u(E,["0,0,0"===d.text_rgb?"dark":"light"],Oe),"desktop"===o&&(p.backgroundImage=ae(d.bg_rgb,"mediaBlockBottom"))),e.createElement(a.Link,{"data-testid":"related-rich-block",className:r(E),to:`/${n}`,onClick:()=>{k("richRelated",n,"click")},ref:v},"rich"===s&&e.createElement(e.Fragment,null,e.createElement("div",{className:Oe.overlay,style:p}),e.createElement("div",{className:Oe.overlayHeader,style:h})),e.createElement("div",{className:Oe.tag},e.createElement(N,{size:"small",theme:"inherit",styleContext:"richRelated"},c)),e.createElement("div",{className:Oe.cover},e.createElement("div",{className:Oe.picture},e.createElement(L,{optimized:i,ratio:m,display:"narrow"}))),e.createElement("div",{className:Oe.body},l.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:f})))))};var Fe={root:"ToolbarButton-module_root__upsEH",isDark:"ToolbarButton-module_isDark__gWpv-",dark:"ToolbarButton-module_dark__5XOEp",bookmark:"ToolbarButton-module_bookmark__7SWkm",isActive:"ToolbarButton-module_isActive__N4kkV",icon:"ToolbarButton-module_icon__Ldcgq",text:"ToolbarButton-module_text__4R2a0"},Ge={root:"Tooltip-module_root__xK21R",isCenterBottom:"Tooltip-module_isCenterBottom__-qv7D",isLeftBottom:"Tooltip-module_isLeftBottom__0-f5z",isCenterTop:"Tooltip-module_isCenterTop__xQ3Ql",isLeftTop:"Tooltip-module_isLeftTop__yjKrV",body:"Tooltip-module_body__5qgzu",footer:"Tooltip-module_footer__swU9S"};const Ze=e=>e.charAt(0).toUpperCase()+e.slice(1);exports.AnnouncementInText=Ie,exports.BookmarkButton=O,exports.Button=d,exports.ButtonLoader=n,exports.CardTitle=te,exports.ChapterBlock=le,exports.Cover=ze,exports.DocumentItemsCount=Le,exports.DonatesTeaser=Ce,exports.DotsOnImage=I,exports.Dropdown=({children:t,active:o,styleContext:l})=>{let a=[[W.root,!0],[W.active,!!o&&!!W.active]];return l&&(a=u(a,l,W)),e.createElement("div",{"data-testid":"dropdown",className:r(a)},t)},exports.EmbedBlockContainer=$,exports.Footnote=x,exports.GroupedBlock=ye,exports.HalfBlock=Re,exports.Image=L,exports.ImportantLead=De,exports.Lazy=g,exports.ListBlock=_e,exports.MaterialNote=V,exports.MaterialTitle=({children:t})=>e.createElement("h1",{className:"MaterialTitle-module_root__VSphO","data-testid":"material-title"},t),exports.MediaCaption=A,exports.Menu=({children:t})=>e.createElement("div",{"data-testid":"dropdown",className:W.menu},t),exports.Meta=Z,exports.MetaItem=fe,exports.MetaItemLive=Be,exports.Popover=w,exports.Primary=({children:t})=>e.createElement("span",{className:"MaterialTitle-module_primary__XGnpb"},t),exports.QuoteBlock=K,exports.RawHtmlBlock=({block:t,styleContext:o,isRead:l,isListened:a,isInBookmarks:r,bookmarkAction:n,lightBox:i,lang:d})=>{const c={lightBox:i||null};switch(t.type){case"important_lead":return e.createElement(De,{block:t,styleContext:o});case"spoiler":return e.createElement(h,{value:c},e.createElement(Pe,{block:t,styleContext:o}));case"cover":return e.createElement(ze,{block:t,styleContext:o});case"half":return e.createElement(Re,{block:t,styleContext:o});case"related_rich":return e.createElement(We,{block:t,styleContext:o});default:return e.createElement(h,{value:c},e.createElement(Te,{block:t,styleContext:o,isRead:l,isListened:a,isInBookmarks:r,bookmarkAction:n,lang:d}))}},exports.RelatedBlock=pe,exports.RelatedRichBlock=We,exports.RenderBlocks=Te,exports.RichTitle=de,exports.Secondary=({children:t})=>e.createElement("span",{className:"MaterialTitle-module_secondary__7IDEp"},t),exports.SensitiveBlock=ge,exports.SimpleBlock=se,exports.SimpleTitle=ne,exports.SourceBlock=ke,exports.Spoiler=Pe,exports.SvgSymbol=m,exports.Switcher=({enabled:t,children:o,childrenPosition:l="left",onChange:a,styleContext:n,theme:i="light"})=>e.createElement("label",{"data-testid":"switcher",className:r([[_.root,!0],[_[i],!!_[i]],[_[n],!!_[n]]])},o&&"left"===l&&e.createElement("div",{className:r([[_.children,!0],[_.left,!0]])},o),e.createElement("input",{className:_.input,type:"checkbox",checked:t,onChange:a}),e.createElement("span",{className:_.control},e.createElement("span",{className:_.knob})),o&&"right"===l&&e.createElement("div",{className:r([[_.children,!0],[_.right,!0]])},o)),exports.Table=H,exports.Tag=N,exports.Timestamp=q,exports.Toolbar=({children:t,styleContext:o})=>{let l=[[F.root,!0]];return o&&(l=u(l,o,F)),e.createElement("div",{"data-testid":"toolbar",className:r(l)},e.createElement("ul",{className:F.list},t))},exports.ToolbarButton=({type:t,theme:o,isActive:l,lang:a="ru",text:n,icon:i,onClick:d})=>{const c=E[a][t];return e.createElement("button",{"data-testid":"toolbar-button",className:r([[Fe.root,!0],[Fe[t],!!Fe[t]],[Fe[o],!!Fe[o]&&!!o],[Fe.isActive,!!l]]),type:"button",onClick:e=>d(e,t)},i&&e.createElement("div",{className:Fe.icon},e.createElement(m,{size:"medium",icon:i,styleContext:"isInToolbar"})),e.createElement("span",{className:Fe.text},n||c))},exports.ToolbarItem=({children:t})=>e.createElement("li",{className:F.item},t),exports.Tooltip=({children:t,position:o})=>{const[l,a]=o,n=`is${Ze(l)}${Ze(a)}`;return e.createElement("div",{className:r([[Ge.root,!0],[Ge[n],!0]])},e.createElement("div",{className:Ge.body},t))},exports.TooltipFooter=({children:t})=>e.createElement("div",{className:Ge.footer},t);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-intersection-observer"),o=require("dayjs");require("dayjs/locale/ru");var l=require("dayjs/plugin/relativeTime"),a=require("react-router-dom");const r=e=>e.filter((([,e])=>e)).map((([e])=>e)).join(" "),n=()=>e.createElement("svg",{width:"30px",height:"30px",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",null,e.createElement("path",{d:"M15 0C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15zm0 2c7.18 0 13 5.82 13 13s-5.82 13-13 13S2 22.18 2 15 7.82 2 15 2z",opacity:"0.3"})),e.createElement("g",{fillRule:"evenodd"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 15 15",to:"360 15 15",dur:"1000ms",repeatCount:"indefinite"}),e.createElement("path",{d:"M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"})));var i={root:"Button-module_root__9OQ5b",gold:"Button-module_gold__q-XBP",isLoading:"Button-module_isLoading__Z53G4",gray:"Button-module_gray__fypDq",sand:"Button-module_sand__e5v-k",dark:"Button-module_dark__qv4NQ",light:"Button-module_light__TLYLT",black:"Button-module_black__GIsbk",red:"Button-module_red__kybni",default:"Button-module_default__utLb-",isInSpoiler:"Button-module_isInSpoiler__pGp-w",ghost:"Button-module_ghost__1s5-r",isInDropdown:"Button-module_isInDropdown__gN7TI",loader:"Button-module_loader__r0Mjs",isFancy:"Button-module_isFancy__gTRmu"};const d=({theme:t="gold",size:o="default",state:l="isDefault",styleContext:a="isInToolbar",appearance:d,disabled:c=!1,onClick:s,children:m})=>e.createElement("button",{"data-testid":"button",className:r([[i.root,!0],[i[o],!!o],[i[t],!!t],[i[d],!!d],[i[l],!!l&&!!i[l]],[i[a],!!a]]),disabled:c,onClick:()=>{!c&&s&&s()},type:"button"},"isLoading"===l?e.createElement("span",{className:i.loader},e.createElement(n,null)):m),c={meduzaLogo:{width:544,height:115,content:'<path d="M59.1008614,49.65632 L59.1008614,106.01472 L84.9480411,114.24 L84.9480411,49.65632 L101.574882,49.65632 L101.574882,106.01472 L127.270909,114.24 L144.048902,91.392 L127.422062,91.392 L127.422062,35.7952 L101.726035,26.80832 L84.9480411,46.60992 L84.9480411,35.7952 L59.2520145,26.80832 L42.4740206,46.60992 L42.4740206,35.7952 L16.7779939,26.80832 L0,49.65632 L16.6268408,49.65632 L16.6268408,106.01472 L42.4740206,114.24 L42.4740206,49.65632 L59.1008614,49.65632 L59.1008614,49.65632 Z M336.61795,91.392 L336.61795,35.0336 L310.770769,26.80832 L310.770769,105.25312 L336.466796,114.24 L353.24479,94.4384 L353.24479,105.25312 L378.940817,114.24 L395.71881,91.392 L379.091969,91.392 L379.091969,35.0336 L353.24479,26.80832 L353.24479,91.392 L336.61795,91.392 L336.61795,91.392 Z M527.373159,38.08 L502.130592,26.80832 L472.202278,41.1264 L502.130592,52.39808 L461.016949,72.352 L461.016949,104.94848 L486.86413,114.24 L502.130592,94.28608 L502.130592,105.25312 L527.977771,114.24 L544,91.23968 L527.373159,91.23968 L527.373159,38.08 L527.373159,38.08 Z M177.453737,114.24 L207.079744,102.35904 L177.453737,91.23968 L177.453737,75.24608 L216.300083,56.3584 L194.231731,26.80832 L151.606557,47.37152 L151.606557,103.12064 L177.453737,114.24 L177.453737,114.24 Z M455.424284,89.56416 L423.984441,79.968 L453.459295,42.19264 L416.577937,26.80832 L397.230341,51.48416 L428.821339,61.23264 L398.741873,98.85568 L436.076687,114.24 L455.424284,89.56416 L455.424284,89.56416 Z M486.86413,91.392 L486.86413,68.84864 L502.130592,61.53728 L502.130592,91.392 L486.86413,91.392 L486.86413,91.392 Z M177.453737,41.58336 L190.452904,59.55712 L177.453737,65.80224 L177.453737,41.58336 L177.453737,41.58336 Z M222.95082,103.12064 L248.797999,114.24 L291.27202,97.18016 L291.27202,29.7024 L222.95082,0 L222.95082,26.30784 L265.424841,43.21536 L265.424841,97.33248 L248.797999,91.23968 L248.797999,43.71584 L222.95082,51.94112 L222.95082,103.12064 L222.95082,103.12064 Z" />'},menu:{width:24,height:24,content:'<path d="M2 21h20M2 12h20M2 3h20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />'},fb:{width:16,height:18,content:'<path d="M15.117 1H.883A.883.883 0 0 0 0 1.883v14.234A.883.883 0 0 0 .883 17h7.663v-6.196H6.461V8.389h2.085V6.61a2.91 2.91 0 0 1 3.106-3.192c.622-.003 1.244.03 1.863.095v2.16h-1.279c-1.002 0-1.196.476-1.196 1.176v1.541h2.39l-.31 2.415h-2.08V17h4.077a.883.883 0 0 0 .883-.883V1.883A.883.883 0 0 0 15.117 1" />'},tw:{width:20,height:18,content:'<path d="M20 3.1c-.7.3-1.5.6-2.4.7.8-.5 1.5-1.4 1.8-2.4-.8.5-1.7.8-2.6 1-.7-.8-1.8-1.4-3-1.4-2.3 0-4.1 1.9-4.1 4.3 0 .3 0 .7.1 1-3.3-.1-6.4-1.8-8.4-4.4-.3.6-.5 1.4-.5 2.2 0 1.5.7 2.8 1.8 3.6-.7 0-1.3-.2-1.9-.5v.1c0 2.1 1.4 3.8 3.3 4.2-.3.1-.7.2-1.1.2-.3 0-.5 0-.8-.1.5 1.7 2 2.9 3.8 3-1.3 1-3.1 1.6-5 1.6-.3 0-.7 0-1-.1C1.8 17.3 4 18 6.3 18 13.8 18 18 11.5 18 5.8v-.6c.8-.5 1.5-1.2 2-2.1" fill-rule="nonzero"/>'},vk:{width:20,height:18,content:'<path d="M16.517 9.851s2.587-3.768 2.886-5.058c.1-.396-.1-.694-.498-.694h-2.288c-.498 0-.697.199-.896.595 0 0-1.194 2.678-2.686 4.364-.498.496-.697.694-.995.694-.2 0-.299-.198-.299-.694V4.793c0-.595-.1-.793-.597-.793H7.463c-.2 0-.398.198-.398.397 0 .595.796.694.796 2.28v3.174c0 .595 0 .893-.299.893-.796 0-2.686-2.777-3.681-5.851-.2-.595-.398-.794-.995-.794H.597C.299 4.1 0 4.298 0 4.694c0 .595.697 3.471 3.483 7.34C5.373 14.611 7.86 16 10.05 16c1.393 0 1.691-.198 1.691-.793v-1.984c0-.496.2-.694.498-.694s.895.1 2.189 1.388C15.92 15.405 16.02 16 16.915 16h2.587c.299 0 .498-.1.498-.595 0-.595-.796-1.587-1.89-2.876-.498-.595-1.195-1.29-1.493-1.686-.398-.397-.299-.595-.1-.992" fill-rule="nonzero"/>'},ok:{width:9,height:18,content:'<path d="M4.5 2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4m0 5.7c-.9 0-1.6-.8-1.6-1.7 0-.9.7-1.6 1.6-1.6.9 0 1.7.7 1.7 1.7 0 .8-.8 1.6-1.7 1.6" fill-rule="nonzero"/> <path d="M6.127 12.982a9.194 9.194 0 0 0 2.307-.904c.602-.301.703-1.004.402-1.507-.301-.502-1.104-.703-1.605-.401-1.605 1.004-3.812 1.004-5.417 0-.502-.302-1.304-.201-1.605.3-.401.604-.2 1.206.401 1.608a9.194 9.194 0 0 0 2.307.904L.61 15.092c-.502.401-.502 1.104 0 1.607a1.357 1.357 0 0 0 1.705 0l2.207-2.11L6.73 16.7a1.357 1.357 0 0 0 1.705 0c.502-.402.502-1.105 0-1.608l-2.307-2.109" fill-rule="nonzero"/>'},tg:{width:18,height:18,content:'<path d="M9 18c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm-1.5-7.4c1.1 1 2 3.3 2 3.3.4.2.7.1.8-.4l2.1-7.4c.1-.6-.2-.8-.6-.7L4 8.3c-.6.2-.6.5-.1.7 0 .1 2.4.6 3.6 1.6z" fill-rule="nonzero"/>'},meduzaSymbol:{width:24,height:18,content:'<path d="M10.026233,17.0968697 L13.9737671,18.3530831 L13.9737671,10.9855851 L13.9737671,8.48948164 L16.5131165,8.48948164 L16.5131165,17.0968697 L20.4375656,18.3530831 L23,14.8636014 L20.4606507,14.8636014 L20.4606507,6.37252945 L16.5362015,5 L13.9737671,8.02421743 L13.9737671,6.37252945 L10.049318,5 L7.48688354,8.02421743 L7.48688354,6.37252945 L3.56243443,5 L1,8.48948164 L3.53934943,8.48948164 L3.53934943,17.0968697 L7.48688354,18.3530831 L7.48688354,8.48948164 L10.026233,8.48948164 L10.026233,17.0968697 Z" />'},backward:{width:25,height:27,content:'<path d="M13 0v2.01c6.672.263 12 5.754 12 12.49C25 21.404 19.404 27 12.5 27S0 21.404 0 14.5c0-3.493 1.441-6.758 3.936-9.105a.75.75 0 111.028 1.092A10.965 10.965 0 001.5 14.5c0 6.075 4.925 11 11 11s11-4.925 11-11c0-5.907-4.656-10.727-10.499-10.989L13 6 8 3l5-3zm3.295 11.33v1.25h-3.16v1.63c.32-.32.86-.56 1.47-.56 1.13 0 2.14.81 2.14 2.16 0 1.42-1.06 2.31-2.67 2.31-1.16 0-2-.38-2.57-1l.79-.99c.45.47 1.07.73 1.77.73.79 0 1.24-.45 1.24-.99 0-.59-.44-.99-1.2-.99-.55 0-1 .16-1.4.54l-.99-.26v-3.83h4.58zm-5.94 0V18h-1.42v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24z" fill-rule="nonzero"/>'},forward:{width:25,height:27,content:'<path d="M12 0l5 3-5 3V3.511C6.157 3.773 1.5 8.592 1.5 14.5c0 6.075 4.925 11 11 11s11-4.925 11-11c0-3.075-1.267-5.946-3.464-8.013a.75.75 0 011.028-1.092A12.465 12.465 0 0125 14.5C25 21.404 19.404 27 12.5 27S0 21.404 0 14.5C0 7.764 5.328 2.272 12 2.01V0zm4.295 11.33v1.25h-3.16v1.63c.32-.32.86-.56 1.47-.56 1.13 0 2.14.81 2.14 2.16 0 1.42-1.06 2.31-2.67 2.31-1.16 0-2-.38-2.57-1l.79-.99c.45.47 1.07.73 1.77.73.79 0 1.24-.45 1.24-.99 0-.59-.44-.99-1.2-.99-.55 0-1 .16-1.4.54l-.99-.26v-3.83h4.58zm-5.94 0V18h-1.42v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24z" fill-rule="nonzero"/>'},download:{width:25,height:27,content:'<path d="M12.5 2C19.404 2 25 7.596 25 14.5S19.404 27 12.5 27 0 21.404 0 14.5 5.596 2 12.5 2zm0 1.5c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm6 15.75a.75.75 0 01.102 1.493l-.102.007h-12a.75.75 0 01-.102-1.493l.102-.007h12zm-6-12a.75.75 0 01.743.648L13.25 8v7.598l1.834-1.222a.75.75 0 11.832 1.248l-3 2a.75.75 0 01-.832 0l-3-2a.75.75 0 11.832-1.248l1.834 1.223V8a.75.75 0 01.648-.743l.102-.007z" fill-rule="nonzero" fill="currentColor" />'},play:{width:62,height:62,content:'<path d="M24.35 41.772a.5.5 0 0 1-.739-.439V20.667a.5.5 0 0 1 .74-.44l18.944 10.334a.5.5 0 0 1 0 .878L24.351 41.772z" fill-rule="nonzero"/>'},pause:{width:22,height:22,content:'<path d="M12.832 4h2.8c.276 0 .5.224.5.5v12.394c0 .277-.224.5-.5.5h-2.8c-.276 0-.5-.223-.5-.5V4.5c0-.276.224-.5.5-.5zM6.5 4h2.8c.277 0 .5.224.5.5v12.394c0 .277-.223.5-.5.5H6.5c-.276 0-.5-.223-.5-.5V4.5c0-.276.224-.5.5-.5z" />'},speedHalf:{width:25,height:27,content:'<path d="M7.212 15.198V12.29l-.676.724L6 12.406 7.35 11h.825v4.198h-.963zM8.056 18H7.3l4.23-7h.765l-4.24 7zm2.99 0v-.735c1.717-1.27 2.134-1.679 2.134-2.14 0-.389-.288-.578-.665-.578-.467 0-.884.263-1.083.525l-.496-.64c.417-.493 1.053-.693 1.599-.693.913 0 1.599.462 1.599 1.312 0 .682-.556 1.28-1.708 2.14h1.737V18h-3.118zm5.998-2.918l-1.39 1.48-.567-.577 1.4-1.49-1.4-1.48.566-.588 1.39 1.49 1.4-1.49.557.588-1.4 1.48 1.4 1.49-.556.577-1.4-1.48z" /><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" />'},speedOne:{width:25,height:27,content:'<path d="M9.955 18v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24V18h-1.42zm4.6-2.78l-1.4 1.41-.57-.55 1.41-1.42-1.41-1.41.57-.56 1.4 1.42 1.41-1.42.56.56-1.41 1.41 1.41 1.42-.56.55-1.41-1.41z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'},speedOneHalf:{width:25,height:27,content:'<path d="M5.62 18v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24V18H5.62zm3.37-2.67v-2.77l-.68.69-.54-.58 1.36-1.34h.83v4h-.97zM9.84 18h-.76l4.26-6.67h.77L9.84 18zm3.01 0v-.7c1.73-1.21 2.15-1.6 2.15-2.04 0-.37-.29-.55-.67-.55-.47 0-.89.25-1.09.5l-.5-.61c.42-.47 1.06-.66 1.61-.66.92 0 1.61.44 1.61 1.25 0 .65-.56 1.22-1.72 2.04h1.75V18h-3.14zm6.04-2.78l-1.4 1.41-.57-.55 1.41-1.42-1.41-1.41.57-.56 1.4 1.42 1.41-1.42.56.56-1.41 1.41 1.41 1.42-.56.55-1.41-1.41z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'},speedTwo:{width:25,height:27,content:'<path d="M7.147 18v-1.158c2.685-2.078 3.471-2.792 3.471-3.64 0-.6-.52-.9-1.061-.9-.748 0-1.318.311-1.76.797L7 12.127C7.64 11.352 8.613 11 9.527 11c1.396 0 2.507.827 2.507 2.202 0 1.18-.924 2.203-2.625 3.506h2.675V18H7.147zm7.916-2.874l-1.377 1.457-.56-.568 1.386-1.468-1.386-1.458.56-.58 1.377 1.469 1.386-1.468.551.579-1.386 1.458L17 16.015l-.55.568-1.387-1.457z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'},podcastBookmark:{width:25,height:27,content:'<path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75zm-.75 1.499v9.176l-3.3-2.8-.098-.07a.75.75 0 00-.873.07l-3.3 2.799V9.749h7.571z" data-stroke="true" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75z" data-fill="true" />'},reaction:{width:16,height:16,content:'<path data-theme="light" fill="#D09959" d="M1 2h14v12H1z"/> <path d="M0 1.778C0 .8.8 0 1.778 0h12.444C15.2 0 16 .8 16 1.778v12.444C16 15.2 15.2 16 14.222 16H1.778C.8 16 0 15.2 0 14.222V1.778zM6.8 11.7l2.5.8V6.2h1.6v5.5l2.5.8 1.6-2.3h-1.6V4.8L10.9 4 9.3 5.9V4.8L6.8 4 5.1 5.9V4.8L2.6 4 1 6.2h1.6v5.5l2.5.8V6.2h1.7v5.5z" />'},cross:{width:18,height:18,content:'<path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" vector-effect="non-scaling-stroke" d="M2 2l14 14M16 2L2 16" />'},link:{width:24,height:24,content:'<path d="M9.158 18.928c-1.065 0-2.13-.405-2.94-1.215-1.624-1.623-1.624-4.262 0-5.884l.643-.645c.327-.326.854-.326 1.18 0 .325.326.325.853 0 1.178l-.645.645c-.972.972-.972 2.554 0 3.526.973.972 2.554.973 3.526 0l2.842-2.84c.97-.972.97-2.555 0-3.527-.325-.325-.325-.854 0-1.18.325-.324.853-.324 1.178 0 1.623 1.625 1.623 4.264 0 5.885l-2.84 2.84c-.81.81-1.877 1.216-2.942 1.216" /> <path d="M10.578 14.184c-.213 0-.426-.082-.59-.244-.784-.785-1.217-1.83-1.217-2.94 0-1.113.433-2.158 1.22-2.944l2.84-2.84c1.622-1.62 4.26-1.62 5.883 0 1.622 1.623 1.622 4.262 0 5.883l-.645.643c-.325.326-.852.326-1.178 0-.325-.325-.325-.852 0-1.178l.645-.644c.972-.97.972-2.554 0-3.526s-2.556-.972-3.527 0l-2.84 2.842c-.47.47-.73 1.096-.73 1.762 0 .667.26 1.293.73 1.763.325.327.325.854 0 1.18-.163.162-.376.244-.59.244" />'},search:{width:16,height:16,content:'<g transform="translate(2 1)" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" vector-effect="non-scaling-stroke"><circle cx="5.5" cy="5.5" r="5.5"/><path d="M11.37 13.442l-.995-1.272"/></g>'},card:{width:15,height:15,content:'<path d="M9 5.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H4a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5zm-.5 1h-4v4h4v-4zm2.5-3a.5.5 0 0 1 .5.5v5a.5.5 0 1 1-1 0V4.5H6a.5.5 0 0 1 0-1h5z" fill-rule="nonzero"/>'},podcast:{width:15,height:15,content:'<path d="M5.252 11.432A.5.5 0 0 1 4.5 11V4a.5.5 0 0 1 .752-.432l6 3.5a.5.5 0 0 1 0 .864l-6 3.5zm.248-1.303L10.008 7.5 5.5 4.87v5.26z" fill-rule="nonzero" />'},arrow:{width:12,height:12,content:'<path d="M3 7l3 3.5L9 7M6 10V1" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" vector-effect="non-scaling-stroke" />'},brent:{width:9,height:12,content:'<g fill="#999" fill-rule="nonzero"><path d="M4.332 0l.528.606c2.528 2.902 3.804 5.07 3.804 6.634A4.332 4.332 0 110 7.24C0 5.676 1.276 3.508 3.804.606L4.332 0zm0 2.143l-.176.212C2.313 4.589 1.4 6.248 1.4 7.24a2.932 2.932 0 105.864 0c0-.992-.914-2.651-2.756-4.885l-.176-.212z"/><path d="M2.973 7.475c0 .415.417.863.835.924l.097.008v.7c-.79 0-1.548-.716-1.626-1.5l-.006-.132h.7z"/></g> '},user:{width:16,height:16,content:'<path fill="currentColor" fill-rule="nonzero" d="M8 1a4.25 4.25 0 012.676 7.552 6.751 6.751 0 014.074 6.198.75.75 0 11-1.5 0 5.25 5.25 0 00-10.5 0 .75.75 0 11-1.5 0 6.752 6.752 0 014.074-6.199A4.25 4.25 0 018 1zm0 1.5A2.75 2.75 0 108 8a2.75 2.75 0 000-5.5z" />'},bookmark:{width:17,height:21,content:'<path d="M16 20l-7.5-6.333L1 20V1h15z" stroke="currentColor" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/>'},shareBookmark:{width:11,height:15,content:'<path clip-rule="evenodd" d="M10 14 5.5 9.667 1 14V1h9v13Z" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>'},receipt:{width:10,height:13,content:'<g fill="currentColor" fill-rule="nonzero"><path d="M10 0H0v13l2-1.74 1.5 1.305L5 11.26l1.5 1.305L8 11.26 10 13V0zM9 .997v9.81l-1-.87-1.5 1.304L5 9.937 3.5 11.24 2 9.937l-1 .87V.996h8z"/><path d="M7 3v1H3V3zM7 6v1H3V6z"/></g>'},read:{width:15,height:15,content:'<g fill="none" fill-rule="evenodd"><path opacity=".98" d="M0 0h15v15H0z"/><path d="M13.085 1.694a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" fill-rule="nonzero"/><path d="M6.454 12.997l-.06-.01-.078-.023a.49.49 0 01-.266-.24l.011.015a2.349 2.349 0 00-.535-.607c-.89-.745-2.117-.917-3.813-.12a.5.5 0 01-.706-.37L1 11.558V4.568a.5.5 0 01.287-.453c2.053-.963 3.695-.733 4.88.26.327.272.556.548.698.77l.084.144.018.04.022.076.01.071L7 11.233l.126-.09c.95-.656 2.16-.857 3.608-.417l.266.087v-2.81a.5.5 0 01.41-.491l.09-.008a.5.5 0 01.492.41l.008.09v3.555a.5.5 0 01-.713.452c-1.696-.796-2.922-.624-3.813.12a2.533 2.533 0 00-.497.544l-.038.064a.486.486 0 01-.485.258zm-4.29-8.17L2 4.892v5.92c1.637-.572 2.977-.348 4 .42l.002-5.58a2.605 2.605 0 00-.476-.513c-.81-.677-1.897-.88-3.362-.314z" fill="currentColor" fill-rule="nonzero"/></g>'},listened:{width:15,height:15,content:'<g fill-rule="nonzero"><path d="M4.978 4.354a.5.5 0 01-.332.624c-1.197.367-2.064 1.527-2.14 2.897l-.005.167a.749.749 0 01.999.708v3a.75.75 0 01-1.458.248L2 12a1 1 0 01-1-1v-1a1 1 0 01.5-.866V8.072c0-1.886 1.172-3.535 2.854-4.05a.5.5 0 01.624.332zM10 7a.5.5 0 01.492.41l.008.09.001 1.634a1 1 0 01.492.745L11 10v1a1 1 0 01-.883.993L10 12l-.042-.002a.75.75 0 01-1.451-.146L8.5 11.75v-3a.75.75 0 011.001-.707L9.5 7.5l.008-.09A.5.5 0 0110 7z" fill="currentColor" /><path d="M11.585 1.194a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" /></g>'},magic:{width:15,height:15,content:'<g fill-rule="evenodd" clip-rule="evenodd"> <path d="M7.804.4a.6.6 0 0 1 .6.6v2.035a.6.6 0 0 1-1.2 0V1a.6.6 0 0 1 .6-.6ZM7.804 10.577a.6.6 0 0 1 .6.6v2.035a.6.6 0 1 1-1.2 0v-2.035a.6.6 0 0 1 .6-.6ZM14.636 7.106a.6.6 0 0 1-.6.6h-2.078a.6.6 0 1 1 0-1.2h2.078a.6.6 0 0 1 .6.6ZM4.25 7.106a.6.6 0 0 1-.6.6H1.573a.6.6 0 0 1 0-1.2H3.65a.6.6 0 0 1 .6.6ZM12.639 2.37a.585.585 0 0 1 0 .84l-1.442 1.412a.615.615 0 0 1-.857 0 .585.585 0 0 1 0-.84l1.442-1.412a.615.615 0 0 1 .857 0ZM12.639 11.843a.615.615 0 0 1-.857 0L10.34 10.43a.585.585 0 0 1 0-.84.615.615 0 0 1 .857 0l1.442 1.413a.585.585 0 0 1 0 .84ZM5.269 4.621a.615.615 0 0 1-.858 0L2.97 3.208a.585.585 0 0 1 0-.84.615.615 0 0 1 .858 0l1.442 1.413a.585.585 0 0 1 0 .84ZM8.926 6.074a.6.6 0 0 1 0 .849l-.863.863-.849-.849.863-.863a.6.6 0 0 1 .849 0ZM7.348 8.5l-5.924 5.924a.6.6 0 1 1-.848-.848L6.5 7.652l.848.848Z"/> </g>'}};var s={root:"SvgSymbol-module_root__WctNR",small:"SvgSymbol-module_small__h9V-w",normal:"SvgSymbol-module_normal__gFAVe",medium:"SvgSymbol-module_medium__QaYjY",large:"SvgSymbol-module_large__o6A4o",adaptive:"SvgSymbol-module_adaptive__gL9qn",fb:"SvgSymbol-module_fb__HZqcB",vk:"SvgSymbol-module_vk__XctB2",ok:"SvgSymbol-module_ok__IM6Z9",tw:"SvgSymbol-module_tw__fio-Q",tg:"SvgSymbol-module_tg__GRhd-",magic:"SvgSymbol-module_magic__N-jKk",reaction:"SvgSymbol-module_reaction__xSbgo",card:"SvgSymbol-module_card__2nVFu",podcast:"SvgSymbol-module_podcast__Yp05r",read:"SvgSymbol-module_read__Bu653",listened:"SvgSymbol-module_listened__AOn7j",menu:"SvgSymbol-module_menu__z-dLm",cross:"SvgSymbol-module_cross__3Xej1",isInFeature:"SvgSymbol-module_isInFeature__BmyI-",isInCard:"SvgSymbol-module_isInCard__USxBS",isInTopicBlockItem:"SvgSymbol-module_isInTopicBlockItem__cnCgw",isInPageStatic:"SvgSymbol-module_isInPageStatic__7kMP-",isInMaterialMeta:"SvgSymbol-module_isInMaterialMeta__lIKJO",isInAudioPlayer:"SvgSymbol-module_isInAudioPlayer__mamWa",isInEpisodeBlock:"SvgSymbol-module_isInEpisodeBlock__oZ6JG",isInButtonPlaybackRate:"SvgSymbol-module_isInButtonPlaybackRate__NnADm",isInButtonBackward:"SvgSymbol-module_isInButtonBackward__x8L9a",isInButtonForward:"SvgSymbol-module_isInButtonForward__TtixK",isInToolbar:"SvgSymbol-module_isInToolbar__RzbaX",play:"SvgSymbol-module_play__dAES0",meduzaLogo:"SvgSymbol-module_meduzaLogo__aVKzZ",arrow:"SvgSymbol-module_arrow__lWTSJ",oil:"SvgSymbol-module_oil__VFGTp",search:"SvgSymbol-module_search__h06cc",user:"SvgSymbol-module_user__ORMm-",bookmark:"SvgSymbol-module_bookmark__JPKyG",shareBookmark:"SvgSymbol-module_shareBookmark__7w9X9",receipt:"SvgSymbol-module_receipt__o3V8u",isInHeader:"SvgSymbol-module_isInHeader__M5Tzw"};const m=({icon:t,size:o,styleContext:l})=>{const a=c[t];return e.createElement("svg",{"data-testid":"svg-symbol",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:r([[s.root,!0],[s[o],!!s[o]],[s[t],!!s[t]],[s[l],!!s[l]]]),width:a.width,height:a.height,viewBox:`0 0 ${a.width} ${a.height}`,dangerouslySetInnerHTML:{__html:a.content}})};var _={root:"Switcher-module_root__cBsJB",dark:"Switcher-module_dark__1QQsH",control:"Switcher-module_control__60WMX",input:"Switcher-module_input__5UDnv",knob:"Switcher-module_knob__PwA1A",children:"Switcher-module_children__uLapU",left:"Switcher-module_left__5-HNa",right:"Switcher-module_right__82Edk",isInPanel:"Switcher-module_isInPanel__-nBSf",isInMenu:"Switcher-module_isInMenu__RQVhp",isInLive:"Switcher-module_isInLive__ZyMCT"};const u=(e,t,o)=>{const l=Array.isArray(t)?t.filter((e=>o[e])).map((e=>[[o[e]],!0])):[[o[t],!!t&&!!o[t]]];return e.concat(l)},p=e.createContext({lightBox:null}),h=p.Provider,k=(e,t,o)=>{const l=window.top,a=`mdzKitMsg=${JSON.stringify({category:e,element:t,action:o})}`;void 0!==l&&l.postMessage(a,"*")};var b={root:"Lazy-module_root__DWw8D"};const g=({children:o,threshold:l})=>{const[a,n,i]=t.useInView({threshold:l||0}),[d,c]=e.useState(!1);return e.useEffect((()=>{i&&i.boundingClientRect&&i.boundingClientRect.y<0&&c(!0)}),[i]),e.useEffect((()=>{n&&c(!0)}),[n]),e.createElement("div",{className:r([[b.root,!0],[b.visible,d]]),ref:a,"data-testid":"lazy"},d&&o)},v={325:"(min-width: 0)",520:"(min-width: 325px)",600:"(min-width: 600px)",650:"(min-width: 650px)",980:"(min-width: 1000px)",1335:"(min-width: 1000px)"},y={xs:[325],superFull:[1335,650,520,325],full:[980,650,520,325],default:[650,520,325],narrow:[600,325]},E={ru:{tg:"Телеграм",fb:"Фейсбук",tw:"Твиттер",pdf:"PDF",unblock:"Magic link",bookmark:"В закладки",reaction:"Напишите нам"},en:{tg:"Telegram",fb:"Fb",tw:"Twitter",pdf:"PDF",unblock:"Magic link",bookmark:"Add to bookmarks"}},f=e=>e.replace(/([_][a-z])/gi,(e=>e.toUpperCase().replace("_",""))),S=({source:t,fallbackSource:o,optimized:l,alt:a,display:r,onLoad:n})=>{const[i,d]=e.useState(!1);e.useEffect((()=>{d(!window.HTMLPictureElement)}),[]);const c=y[f(r)]||y.default;return e.createElement("picture",null,t&&e.createElement("source",{media:"(min-width: 325px)",srcSet:`${t[1]} 2x`}),l&&!l.w325&&e.createElement("source",{media:"(min-width: 0)",srcSet:`${l.original}`}),l&&c.map((t=>{const o=l[`w${t}`];return o?e.createElement(e.Fragment,{key:t},e.createElement("source",{type:"image/webp",media:v[t],srcSet:`${o["2x_webp"]} 2x, ${o["1x_webp"]} 1x `}),e.createElement("source",{type:"image/png",media:v[t],srcSet:`${o["2x"]} 2x, ${o["1x"]} 1x `})):null})),e.createElement("img",{src:i?o:"data:image/gif;base64,R0lGODlhAQABAPAAAPLy8gAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:a,onLoad:()=>n(!0)}))};var B={root:"Image-module_root__H5wAh",isLoaded:"Image-module_isLoaded__keFnD",wrapper:"Image-module_wrapper__gJtbB",fullscreen:"Image-module_fullscreen__4PU9c",dark:"Image-module_dark__qjo5O"};const L=({alt:t,display:o,optimized:l,width:a,height:n,source:i,lazy:d,ratio:c,styleContext:s,fullscreen:m=!0})=>{const{lightBox:_}=e.useContext(p),[h,b]=e.useState(!d),v=()=>{_&&m&&(!l||l.original)&&(k("","fullscreen_click","click"),_.show(l,a,n,t))},y={maxWidth:a<=649?a:"100%"},E={paddingBottom:100/(c||a/n)+"%"},f=i&&i[0]||l.w325&&l.w325["1x"]||l.original;let L=[[B.root,!0],[B.isLoaded,h],[B.fullscreen,_&&l&&l.original&&m]];return s&&(L=u(L,s,B)),e.createElement("div",{className:r(L),style:y,"data-testid":"image"},e.createElement("div",{className:B.wrapper,style:E,onClick:()=>v(),onKeyPress:()=>v(),role:"button",tabIndex:0},d?e.createElement(e.Fragment,null,e.createElement(g,{threshold:.25},e.createElement(S,{fallbackSource:f,source:i,optimized:l,alt:t,display:o,onLoad:b})),e.createElement("noscript",null,e.createElement("img",{src:f,alt:t}))):e.createElement(S,{fallbackSource:f,source:i,optimized:l,alt:t,display:o,onLoad:b})))},w=({children:t,onClose:o})=>{const[l,a]=e.useState(!0),n=()=>{a(!1),setTimeout(o,350)},i=()=>{n()},d=e=>{"Escape"===e.key&&n()};return e.useEffect((()=>(document.body.dataset.popover="true",window.addEventListener("keydown",d,!1),window.addEventListener("scroll",i,!1),()=>{document.body.removeAttribute("data-popover"),window.removeEventListener("keydown",d,!1),window.removeEventListener("scroll",i,!1)})),[l]),e.createElement("div",{"data-testid":"popover",className:r([["Popover-module_root__nBiV4",!0],["Popover-module_visible__XVQLW",l]])},e.createElement("div",{className:"Popover-module_overlay__NAPar",onClick:()=>n()}),e.createElement("div",{className:"Popover-module_container__y4SB1"},e.createElement("button",{type:"button",className:"Popover-module_dismiss__W8KFF",onClick:()=>n(),"aria-label":"dismiss"}),e.createElement("svg",{width:"100%",className:"Popover-module_background__apiio"},e.createElement("defs",null,e.createElement("mask",{id:"myMask",x:"0",y:"0",width:"100%",height:"100%"},e.createElement("rect",{fill:"white",y:"0",width:"100%",height:"100%",x:"0"}),e.createElement("svg",{x:"50%",overflow:"visible"},e.createElement("g",{transform:"translate(-12 0)"},e.createElement("path",{d:"M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"}))))),e.createElement("rect",{fill:"#F7F7F7",id:"base-mask",mask:"url(#myMask)",x:"0",y:"0",width:"100%",height:"100%"})),e.createElement("div",{className:"Popover-module_body__UJEZf"},t)))},x=({children:t,onClose:o})=>e.createElement("div",{"data-testid":"footnote",className:r([["Footnote-module_root__W5D8G",!0]])},e.createElement("button",{className:"Footnote-module_dismiss__Q2hAX",type:"button",onClick:()=>o()},e.createElement(m,{icon:"cross",size:"unset"})),e.createElement("div",{className:"Footnote-module_body__C-ZC-"},t));var C=()=>({width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}),M={root:"DotsOnImage-module_root__8UQf2",isVisible:"DotsOnImage-module_isVisible__rA5x9",marker:"DotsOnImage-module_marker__pLdQT",show:"DotsOnImage-module_show__Ec0lG",dot:"DotsOnImage-module_dot__e2MWx",isActive:"DotsOnImage-module_isActive__Bhb58",popover:"DotsOnImage-module_popover__zHSbU",isRight:"DotsOnImage-module_isRight__IaUbc",isTop:"DotsOnImage-module_isTop__RMK49",isLeft:"DotsOnImage-module_isLeft__Q6JZ-",isBottom:"DotsOnImage-module_isBottom__c-aLe"};const I=({block:{optimized:o,width:l,height:a,credit:n,display:i,dots:d}})=>{const[c,s]=e.useState(1),[m,_,u]=t.useInView(),p=e.useRef(null),[h,k]=e.useState({title:null,body:null,show:!1,id:null}),[b,g]=e.useState(!1);e.useEffect((()=>{u&&u.boundingClientRect&&u.boundingClientRect.y<0&&g(!0)}),[u]),e.useEffect((()=>{_&&g(!0)}),[_]),e.useEffect((()=>(h.id?document.addEventListener("click",y):document.removeEventListener("click",y),()=>document.removeEventListener("click",y))),[h]),e.useEffect((()=>(v(),window.addEventListener("resize",v),()=>document.removeEventListener("resize",v))),[b]);const v=()=>{const e=window.innerWidth;s(e<375?e/375:1)},y=e=>{-1===e.composedPath().indexOf(p.current)&&k({show:!1})};return e.createElement("div",{className:r([[M.root,!0],[M.isVisible,b]]),"data-testid":"dots-on-image",ref:m},e.createElement(L,{fullscreen:!1,optimized:o,width:l,height:a,alt:n,display:i}),e.createElement("div",{ref:p},d.map((t=>e.createElement("div",{className:M.dot,key:t.id,style:{top:`${t.position.y}%`,left:`${t.position.x}%`,transform:`scale(${c}) translate(-${50/c}%, -${50/c}%)`}},e.createElement("button",{className:r([[M.marker,!0],[M.isActive,t.id===h.id]]),type:"button",style:{backgroundColor:t.icon.color},onClick:()=>(e=>{const t=e.id!==h.id;k({title:e.title,body:e.body,show:t,id:t?e.id:null,style:{top:`${e.position.y}%`,left:`${e.position.x}%`},side:e.position.x>50?"isLeft":"isRight",align:e.position.y>50?"isBottom":"isTop"})})(t)},"svg"===t.icon.type&&e.createElement("div",{dangerouslySetInnerHTML:{__html:t.icon.svg_string}}),"number"===t.icon.type&&t.icon.number)))),h.show&&e.createElement(e.Fragment,null,C().width>=1024?e.createElement("div",{className:r([[M.popover,!0],[M[h.side],!!h.side],[M[h.align],!!h.align]]),style:h.style},e.createElement(x,{onClose:()=>{k({show:!1})}},h.title&&e.createElement("h3",null,h.title),e.createElement("div",{dangerouslySetInnerHTML:{__html:h.body}}))):e.createElement(w,{onClose:()=>{k({show:!1})}},h.title&&e.createElement("h3",null,h.title),e.createElement("div",{dangerouslySetInnerHTML:{__html:h.body}})))))};var T={root:"Tag-module_root__sGbnM",small:"Tag-module_small__hcPrf",large:"Tag-module_large__EKMu6",dark:"Tag-module_dark__9SHCb",light:"Tag-module_light__qlfy3",gold:"Tag-module_gold__u0bzS",gray:"Tag-module_gray__eazPk",inherit:"Tag-module_inherit__z21c-",custom:"Tag-module_custom__NU9-e",is1to1:"Tag-module_is1to1__V-fH5",is1to2:"Tag-module_is1to2__b9Obh",isInSuperBlock:"Tag-module_isInSuperBlock__wrFUY",is1to3:"Tag-module_is1to3__vZT-R",is1to4:"Tag-module_is1to4__MBh5V",slide:"Tag-module_slide__gzptP",game:"Tag-module_game__NmKec",podcastMaterial:"Tag-module_podcastMaterial__O-LBI",richRelated:"Tag-module_richRelated__Qs6Ei",card:"Tag-module_card__TX87-",live:"Tag-module_live__ykyR7",episode:"Tag-module_episode__3OHmN",podcast:"Tag-module_podcast__K6dHn",rich:"Tag-module_rich__vPnWd",isInDynamicBlock:"Tag-module_isInDynamicBlock__WNleF",mobile:"Tag-module_mobile__19oMH",desktop:"Tag-module_desktop__cNyQs"};const N=({children:t,size:o="small",theme:l="gold",styleContext:a,correlation:n,onlyOn:i})=>{let d=[[T.root,!0],[T[o],!!o&&!!T[o]],[T[l],!!l&&!!T[l]],[T[i],!!i&&!!T[i]],[T[n],!!n&&!!T[n]]];return a&&(d=u(d,a,T)),e.createElement("div",{"data-testid":"tag",className:r(d)},t)};var z={root:"MediaCaption-module_root__1r0wu",caption:"MediaCaption-module_caption__ewfcc",credit:"MediaCaption-module_credit__7y4v8",dark:"MediaCaption-module_dark__7a9Cm",video:"MediaCaption-module_video__RDTUa",picture:"MediaCaption-module_picture__abCvw",desktop:"MediaCaption-module_desktop__e0lCY",isDark:"MediaCaption-module_isDark__IFb9X"};const A=({credit:t,caption:o,styleContext:l})=>{let a=[[z.root,!0]];return l&&(a=u(a,l,z)),e.createElement("div",{"data-testid":"media-caption",className:r(a)},o&&e.createElement("div",{className:z.caption,dangerouslySetInnerHTML:{__html:o}}),t&&e.createElement("div",{className:z.credit,dangerouslySetInnerHTML:{__html:t}}))};var R={root:"Table-module_root__fRuZq",card:"Table-module_card__8r-EA",table:"Table-module_table__7Pagp",slide:"Table-module_slide__dgMPV",wrapper:"Table-module_wrapper__AP4Pz",tracks:"Table-module_tracks__mRNG0",default:"Table-module_default__nwBEg",full:"Table-module_full__YZPDz",row:"Table-module_row__9OHT3",cell:"Table-module_cell__yFdqc",fixedColumn:"Table-module_fixedColumn__O2528",white:"Table-module_white__Laj3-",gray:"Table-module_gray__FPFh0",pink:"Table-module_pink__CGkAA",blue:"Table-module_blue__b8BHs",yellow:"Table-module_yellow__YOJgu",orange:"Table-module_orange__B-i8L",green:"Table-module_green__Bt6iC",violet:"Table-module_violet__yTZd7",header:"Table-module_header__YPDzO",s:"Table-module_s__I-CeX",m:"Table-module_m__vxhDf",l:"Table-module_l__GYHhk",xs:"Table-module_xs__imR8t"};const H=({styleContext:t,block:{rows:o,options:l,display:a,columns_widths:n,table_credit:i}})=>{const d={"#ffffff":"white","#f5f5f5":"gray","#feeeee":"pink","#e6f3ff":"blue","#fffde6":"yellow","#fff9f2":"orange","#e7f2ef":"green","#f4f0f8":"violet"};let c=[[R.root,!0],[R[a],!!a&&!!R[a]]];return t&&(c=u(c,t,R)),e.createElement("div",{"data-testid":"table",className:r(c)},e.createElement("div",{className:R.wrapper},e.createElement("div",{className:R.table},e.createElement("div",{className:R.tracks},o.map(((t,o)=>e.createElement("div",{key:t.key,className:R.row},t.cells.map(((t,a)=>e.createElement("div",{key:t.key,className:r([[R.cell,!0],[R.header,l.header&&0===o],[R[d[t.color]],!0],[R[n[a]],!0],[R.fixedColumn,l.fixed_first_column&&0===a]]),dangerouslySetInnerHTML:{__html:t.val}}))))))))),i&&e.createElement(A,{credit:i,styleContext:t}))};var D={root:"MaterialNote-module_root__99HSA",dark:"MaterialNote-module_dark__etjym",note_credit:"MaterialNote-module_note_credit__J1skG",note_caption:"MaterialNote-module_note_caption__G2Ad0",center:"MaterialNote-module_center__mDLEO",default:"MaterialNote-module_default__ozgd7",card:"MaterialNote-module_card__EVuZe",slide:"MaterialNote-module_slide__mg8XV",game:"MaterialNote-module_game__c-r0n",gameSurvey:"MaterialNote-module_gameSurvey__azhu6"};const V=({block:{data:t},styleContext:o})=>{let l=[[D.root,!0]];return o&&(l=u(l,o,D)),e.createElement(e.Fragment,null,e.createElement("div",{"data-testid":"material-note",className:r(l)},t&&t.map((t=>e.createElement("p",{className:D[t.type],key:t.id,dangerouslySetInnerHTML:{__html:t.data}})))))};var P={root:"BookmarkButton-module_root__A-75w",control:"BookmarkButton-module_control__-xy5O",dark:"BookmarkButton-module_dark__GkMEC",light:"BookmarkButton-module_light__1W6tx",isInBookmarks:"BookmarkButton-module_isInBookmarks__YSjjj",isInGrid:"BookmarkButton-module_isInGrid__Desh-"};const O=({styleContext:t,theme:o,isInBookmarks:l,onClick:a})=>{let n=[[P.root,!0],[P.isInBookmarks,l],[P[o],!!o&&!!P[o]]];return t&&(n=u(n,t,P)),e.createElement("div",{"data-testid":"bookmark-button",className:r(n)},e.createElement("button",{className:P.control,onClick:()=>a(),type:"button"},e.createElement(m,{icon:"bookmark",size:"unset"})))};var W={root:"Dropdown-module_root__Wv7S-",active:"Dropdown-module_active__jEkE7",menu:"Dropdown-module_menu__11IQL",isInAudioPanel:"Dropdown-module_isInAudioPanel__UniSV"},F={root:"Toolbar-module_root__RnmlI",list:"Toolbar-module_list__-IhdP",item:"Toolbar-module_item__CWmGM",isInTopbar:"Toolbar-module_isInTopbar__WEDi8",center:"Toolbar-module_center__pvdiJ",game:"Toolbar-module_game__etwIA",gameSurvey:"Toolbar-module_gameSurvey__v4D31",slide:"Toolbar-module_slide__PtB3l",card:"Toolbar-module_card__Lutyq",isDark:"Toolbar-module_isDark__MG6Ar",dark:"Toolbar-module_dark__a9sgz"},G={root:"Meta-module_root__H-Q4d",rich:"Meta-module_rich__dCkJK",podcast:"Meta-module_podcast__MI8gD",episode:"Meta-module_episode__0n9CF",simple:"Meta-module_simple__tztcr",slide:"Meta-module_slide__3OyIN",card:"Meta-module_card__2vqfN",game:"Meta-module_game__HNcgr",isInMaterial:"Meta-module_isInMaterial__vKcTK",isInSearchItem:"Meta-module_isInSearchItem__ENqHo",isInMediaBlock:"Meta-module_isInMediaBlock__TENZG",center:"Meta-module_center__seHro",half:"Meta-module_half__aoa9h",podcastMaterial:"Meta-module_podcastMaterial__GTPyD",light:"Meta-module_light__oW3kc",dark:"Meta-module_dark__tLQNJ",isDark:"Meta-module_isDark__xSl1J",hasSource:"Meta-module_hasSource__OZJ0y",bookmark:"Meta-module_bookmark__jcFWn",isCustom:"Meta-module_isCustom__AeFf1",mobile:"Meta-module_mobile__PbG8N",desktop:"Meta-module_desktop__W5AB7"};const Z=({hasSource:t,theme:o,children:l,onlyOn:a,styleContext:n})=>{let i=[[G.root,!0],[G[o],!!o&&!!G[o]],[G[a],!!a],[G.hasSource,t]];return n&&(i=u(i,n,G)),e.createElement("div",{"data-testid":"meta",className:r(i)},l)},q=({publishedAt:t,locale:a="ru",type:r})=>{let n;const i="ru"===a?"HH:mm, D MMMM YYYY":"h:mm a, MMMM D, YYYY",d=1e3*t;if(o.locale(a),o.extend(l),"fromNow"===r)n=o(d).fromNow();else if("format"===r)n=o(d).format("HH:mm");else{if("date"!==r)throw new Error("Unknown time type");n=o(d).format(i)}return e.createElement("time",{suppressHydrationWarning:!0,"data-testid":"timestamp",className:"Timestamp-module_root__jPJ6w"},n)},j=({className:t="",tagName:o="div",html:l})=>{const a=e.useRef(null),[r,n]=e.useState(!1);e.useEffect((()=>{n(!0)}),[]);const i=e.useCallback((e=>{if("SCRIPT"!==e.tagName||e.id&&0===e.id.indexOf("script-")){let t=0;const o=e.childNodes;for(;t<o.length;)i(o[t]),t+=1}else{const t=document.createElement("script");t.id=`script-${Math.random().toString(16).slice(2)}`,t.innerHTML=e.innerHTML;const o=e.attributes;for(let e=0;e<o.length;e+=1){const{name:l,value:a}=o[e];t.setAttribute(l,a)}e.parentElement.replaceChild(t,e)}}),[]),d=e.useCallback((()=>{Array.from(a.current.querySelectorAll("a")).forEach((e=>{e.setAttribute("target","_blank")}))}),[]);return e.useEffect((()=>{r&&l.indexOf("script")>-1&&a.current.firstElementChild&&(a.current.firstElementChild.innerHTML=l,i(a.current.firstElementChild),d())}),[r,a,l,i,d]),e.createElement("div",{ref:a},e.createElement(o,{className:t,dangerouslySetInnerHTML:{__html:l}}))};var Q={root:"EmbedBlock-module_root__wNZlD",object:"EmbedBlock-module_object__DONQ0",objectWrap:"EmbedBlock-module_objectWrap__qpbni",gameEmbed:"EmbedBlock-module_gameEmbed__tO5Ha",proportional:"EmbedBlock-module_proportional__zDPfm",default:"EmbedBlock-module_default__np8MO",xs:"EmbedBlock-module_xs__PNHGz",full:"EmbedBlock-module_full__Gmz7o",super_full:"EmbedBlock-module_super_full__-h382",figure:"EmbedBlock-module_figure__fNZB-",dark:"EmbedBlock-module_dark__S2R9f",isInGroupedBlock:"EmbedBlock-module_isInGroupedBlock__Wjj7k",control:"EmbedBlock-module_control__9bJUa",raw_html:"EmbedBlock-module_raw_html__EfYVy",mobileFullwidth:"EmbedBlock-module_mobileFullwidth__1MDT5",isInCard:"EmbedBlock-module_isInCard__WnLHG",isInSlide:"EmbedBlock-module_isInSlide__BtdnY",cc:"EmbedBlock-module_cc__Gyw44",isInSensitiveBlock:"EmbedBlock-module_isInSensitiveBlock__nYajZ",isInAnswer:"EmbedBlock-module_isInAnswer__WuZ0H",picture:"EmbedBlock-module_picture__Weamy",wrapper:"EmbedBlock-module_wrapper__ynT7R",mobile:"EmbedBlock-module_mobile__lEuww",desktop:"EmbedBlock-module_desktop__599S7"};const U=({gif:t,mp4Url:o,style:l})=>{const[a,r]=e.useState(!1),n=e.useRef(null),i=()=>{n.current.play(),r(!1)},d=()=>{const e=n.current;e.setAttribute("poster",e.dataset.gif),r(!1)};return e.useEffect((()=>{const e=n.current,{width:t}=C();return t>=512?(e.setAttribute("autoplay",!0),e.play()):(r(!0),e.pause(),e.addEventListener("touchstart",i)),e.addEventListener("error",d),()=>{e.removeEventListener("touchstart",i),e.removeEventListener("error",d)}}),[]),e.createElement("div",{className:Q.figure},e.createElement("div",{className:Q.objectWrap,style:l,"data-frozen":a},e.createElement("video",{playsInline:!0,muted:!0,loop:!0,autoPlay:!0,preload:"metadata","data-gif":t,ref:n},e.createElement("source",{src:`https://meduza.io${o}`,type:"video/mp4"}))))},Y=({block:t,block:{data:o,data:{html:l,display:a,only_on:n,provider:i,cc:d,optimized:c,small_url:s,large_url:m,gif_url:_,mp4_url:p}},styleContext:h,children:k})=>{const[b,g]=e.useState(!1),v={},y=t.data.height&&t.data.width,E=["youtube","vimeo","onetv","coub","meduza","facebook_video"].indexOf(i)>-1||"dots_on_image"===t.type,f=t=>e.createElement(A,{credit:o.credit,caption:o.caption,styleContext:t||h});y&&(v.paddingBottom=t.data.height/t.data.width*100+"%",v.height=0);let S=[[Q.root,!0],[Q.cc,d],[Q[a],!!a&&Q[a]],[Q[i],!!i&&!!Q[i]],[Q[n],!!n&&Q[n]],[Q.mobileFullwidth,E],[Q.proportional,y]];if(h&&Array.isArray(h)){const e=h.filter((e=>e.startsWith("isIn")&&Q[e])).reduce(((e,t)=>(e.push(t),e)),[]);S=u(S,e,Q)}return e.createElement("figure",{className:r(S)},k&&e.createElement("div",{className:Q.object},e.createElement("div",{className:Q.wrapper,style:v},e.createElement("div",{className:Q.objectWrap},k))),!k&&(a=>{switch(t.type){case"gif":return e.createElement(U,{gif:_,mp4Url:p,style:a});case"image":return e.createElement("div",{className:Q.figure},e.createElement(L,{source:!c&&[s,m],optimized:t.data.optimized,width:t.data.width,height:t.data.height,alt:t.data.caption,display:t.data.display,lazy:t.data.lazy,styleContext:h}));case"game_embed":return e.createElement("div",{className:Q.gameEmbed},e.createElement("iframe",{src:t.data.game_src,id:t.data.game_id,title:"Game embed"}));case"dots_on_image":return e.createElement("div",{className:Q.figure},e.createElement(I,{block:o}));default:return e.createElement("div",{className:Q.object},e.createElement("div",{className:Q.wrapper,style:a},e.createElement(j,{className:Q.objectWrap,html:l})))}})(v),"default"===d&&e.createElement("figcaption",null,f()),"button"===d&&e.createElement("button",{className:Q.control,type:"button","aria-label":"Open",onClick:()=>{g(!b)}}),"button"===d&&b&&e.createElement(w,{onClose:()=>{g(!1)}},f("isInPopover")))},X=({block:t,block:{id:o},styleContext:l,lang:a="ru"})=>{const r=e.useRef(null);return e.useEffect((()=>{(()=>{const e=document.createElement("div"),o=document.createElement("div"),l=document.createElement("script"),n=document.createElement("style"),i=document.createRange();i.setStart(o,0),o.setAttribute("id","content"),l.textContent=`\n function getDocHeight() {\n var doc = document;\n var body = doc.body;\n var html = doc.documentElement;\n var height = Math.max( body.scrollHeight, body.offsetHeight,\n html.clientHeight, html.scrollHeight, html.offsetHeight );\n\n doc.body.style.margin="0";\n\n return document.getElementById('content') ? document.getElementById('content').offsetHeight : height;\n }\n\n function sendDocHeightMsg() {\n var height = getDocHeight();\n var message = JSON.stringify({\n action: {\n type: "UPDATE_HEIGHT",\n payload: {\n id: "${t.id}",\n height: height\n }\n }\n });\n parent.postMessage("mdzMaterialEmbedHeight=" + message, '*');\n }\n\n setInterval(sendDocHeightMsg, 300);\n `,n.type="text/css",n.innerHTML="embed_code"===t.type?".twitter-tweet { padding-top: 15px; margin: 0 !important; }":".twitter-tweet { margin: 0 !important; } .fb-post { display: block; } .instagram-media { min-width: 0 !important; }",o.appendChild(i.createContextualFragment(t.data.html)),e.appendChild(l),e.appendChild(o),o.appendChild(n);const d=r.current.querySelector("iframe").contentDocument;d.open(),d.close(),d.documentElement.setAttribute("lang",a),d.body.appendChild(e)})()}),[]),e.createElement(Y,{block:t,styleContext:l},e.createElement("div",{ref:r,dangerouslySetInnerHTML:{__html:`<iframe id=${o} frameBorder="0" scrolling="no"></iframe>`}}))},$=({block:t,styleContext:o,lang:l})=>t.data&&t.data.wrap_with_iframe?e.createElement(X,{block:t,styleContext:o,lang:l}):e.createElement(Y,{block:t,styleContext:o});var J={root:"QuoteBlock-module_root__4qa1J",center:"QuoteBlock-module_center__1f83y"};const K=({block:{data:t},styleContext:o})=>{let l=[[J.root,!0]];return o&&(l=u(l,o,J)),e.createElement("div",{"data-testid":"quote-block",className:r(l)},e.createElement("p",{dangerouslySetInnerHTML:{__html:t}}))};var ee={root:"CardTitle-module_root__Pvx--",index:"CardTitle-module_index__Keled",title:"CardTitle-module_title__Lkflo",mobile:"CardTitle-module_mobile__6N3hB",desktop:"CardTitle-module_desktop__sBokS"};const te=({block:{data:{only_on:t,index:o,text:l}},styleContext:a})=>e.createElement("div",{"data-testid":"card-title",className:r([[ee.root,!0],[ee[t],!!t],[ee[a],!!a&&!!ee[a]]])},e.createElement("div",{className:ee.index},o),e.createElement("h3",{className:ee.title},l));var oe={root:"ChapterBlock-module_root__iw7d2",subtitle:"ChapterBlock-module_subtitle__IpWgz",mobile:"ChapterBlock-module_mobile__V1Eye",desktop:"ChapterBlock-module_desktop__9xWf4"};const le=({block:{data:t,only_on:o},styleContext:l})=>e.createElement("div",{"data-testid":"chapter-block",className:r([[oe.root,!0],[oe[o],!!o]])},e.createElement("div",{className:r([[oe.subtitle,!0],[oe[l],!!l&&!!oe[l]]]),dangerouslySetInnerHTML:{__html:t}})),ae=(e,t)=>`linear-gradient(-180deg, ${{mediaBlockBottom:[[0,7],[.08,12],[.16,17],[.22,21],[.32,26],[.42,32],[.52,38],[.62,47],[.72,57],[.82,65],[1,82]],mediaBlockTop:[[.5,0],[0,97]]}[t].map((t=>`rgba(${e}, ${t[0]}) ${t[1]}%`))})`;var re={root:"SimpleTitle-module_root__YOzNn",mobile:"SimpleTitle-module_mobile__1QiJd",desktop:"SimpleTitle-module_desktop__ZF5Af"};const ne=({block:{data:{first:t},only_on:o},styleContext:l})=>{let a=[[re.root,!0],[re[o],!0]];return l&&(a=u(a,l,re)),e.createElement("h1",{"data-testid":"simple-title",className:r(a)},t)};var ie={root:"RichTitle-module_root__U5XQu",slide:"RichTitle-module_slide__eU9Ob",game:"RichTitle-module_game__S1csb",podcastMaterial:"RichTitle-module_podcastMaterial__AulVF",half:"RichTitle-module_half__yBMby",featured:"RichTitle-module_featured__ULNQn",isInMediaBlock:"RichTitle-module_isInMediaBlock__2h6rl",mobile:"RichTitle-module_mobile__W5L9E",desktop:"RichTitle-module_desktop__k0PkC"};const de=({block:{only_on:t,data:{featured:o,first:l,second:a,as:n="h1"}},styleContext:i})=>{let d=[[ie.root,!0],[ie[t],!0],[ie.featured,!!o]];return i&&(d=u(d,i,ie)),e.createElement(n,{"data-testid":"rich-title",className:r(d)},l,a&&e.createElement("span",null," ",a))};var ce={p:"SimpleBlock-module_p__7aRnT",h2:"SimpleBlock-module_h2__aWlMn",h3:"SimpleBlock-module_h3__uPh0-",h4:"SimpleBlock-module_h4__MxGXA",lead:"SimpleBlock-module_lead__NzEPT",lead_hr:"SimpleBlock-module_lead_hr__XN0rm",context_p:"SimpleBlock-module_context_p__Mdu1R",blockquote:"SimpleBlock-module_blockquote__nX-Ab",game:"SimpleBlock-module_game__uVeJJ",slide:"SimpleBlock-module_slide__MaaUF",dark:"SimpleBlock-module_dark__qtLhq",divider:"SimpleBlock-module_divider__-VXBu",isInIntro:"SimpleBlock-module_isInIntro__UOePf",center:"SimpleBlock-module_center__D1CsV",isInImportantLead:"SimpleBlock-module_isInImportantLead__qzKDo",podcastMaterial:"SimpleBlock-module_podcastMaterial__XEMjh",isInAnswer:"SimpleBlock-module_isInAnswer__Asx7d",mobile:"SimpleBlock-module_mobile__EVGYJ",desktop:"SimpleBlock-module_desktop__6ZH5e",isDark:"SimpleBlock-module_isDark__ehYKr"};const se=({block:{data:t,type:o,only_on:l},styleContext:a})=>{let n,i=[[ce[o],!!o&&!!ce[o]],[ce[l],!0]];switch(a&&(i=u(i,a,ce)),o){case"context_p":case"lead":case"note_caption":case"note_credit":n="p";break;case"divider":return e.createElement("hr",{className:r(i)});case"lead_hr":n="div";break;default:n=o}return e.createElement(n,{className:r(i),dangerouslySetInnerHTML:{__html:t}})};var me={root:"ListBlock-module_root__dqomP",ol:"ListBlock-module_ol__1l6nP",ul:"ListBlock-module_ul__bgHlv",center:"ListBlock-module_center__bEBN-",isInImportantLead:"ListBlock-module_isInImportantLead__ewcD1",dark:"ListBlock-module_dark__NzpYz",mobile:"ListBlock-module_mobile__qEBsn",desktop:"ListBlock-module_desktop__HN0IU"};const _e=({block:{type:t,data:o,only_on:l},styleContext:a})=>{const n=t;let i=[[me.root,!0],[me[l],!0],[me[t],!!t&&!!me[t]]];return a&&(i=u(i,a,me)),e.createElement(n,{className:r(i),"data-testid":"list-block"},o.map(((t,o)=>e.createElement("li",{key:o,dangerouslySetInnerHTML:{__html:t}}))))};var ue={root:"RelatedBlock-module_root__cr1c-",header:"RelatedBlock-module_header__bfUJD",items:"RelatedBlock-module_items__rzzam",rich:"RelatedBlock-module_rich__1cWdn",first:"RelatedBlock-module_first__ZkcP5",simple:"RelatedBlock-module_simple__m22bj",center:"RelatedBlock-module_center__WVpIJ",isInSlideMaterial:"RelatedBlock-module_isInSlideMaterial__VumDw",mobile:"RelatedBlock-module_mobile__AScBA",desktop:"RelatedBlock-module_desktop__uMXUY"};const pe=({block:{data:{title:t,related:o},only_on:l},styleContext:n})=>{let i=[[ue.root,!0],[ue[l],!0]];return n&&(i=u(i,n,ue)),e.createElement("div",{"data-testid":"related-block",className:r(i)},e.createElement("h3",{className:ue.header},t),e.createElement("ul",{className:ue.items},o.map(((t,o)=>e.createElement("li",{key:t.id||o,className:ue[t.layout]},e.createElement(a.Link,{to:t.full_url||`/${t.url}`},e.createElement("span",{className:ue.first},t.title),t.second_title&&" ",t.second_title&&e.createElement("span",null,t.second_title)))))))};var he={root:"SourceBlock-module_root__9dnI4",text:"SourceBlock-module_text__M5-uy",origin:"SourceBlock-module_origin__fyvxH",center:"SourceBlock-module_center__UOMwy",mobile:"SourceBlock-module_mobile__QVEyg",desktop:"SourceBlock-module_desktop__xdXWm",isDark:"SourceBlock-module_isDark__etwk1"};const ke=({block:{only_on:t,data:{quote:o,origin:l,url:a}},styleContext:n})=>{let i=[[he.root,!0],[he[t],!0]];return n&&(i=u(i,n,he)),e.createElement("blockquote",{"data-testid":"source-block",cite:a,className:r(i)},e.createElement("a",{className:he.text,href:a,target:"_blank",rel:"noopener noreferrer"},o.map(((t,o)=>e.createElement("p",{key:o,dangerouslySetInnerHTML:{__html:t.data}}))),e.createElement("footer",null,e.createElement("cite",{className:he.origin},l))))};var be={root:"SensitiveBlock-module_root__1Nl9-",container:"SensitiveBlock-module_container__GE2tW",overlay:"SensitiveBlock-module_overlay__tEsK8",content:"SensitiveBlock-module_content__RYbdd",button:"SensitiveBlock-module_button__LGEEM",default:"SensitiveBlock-module_default__pkWhC",full:"SensitiveBlock-module_full__hlH41",media:"SensitiveBlock-module_media__nuL1S",super_full:"SensitiveBlock-module_super_full__C7UyP",visible:"SensitiveBlock-module_visible__bXhYO",isInCard:"SensitiveBlock-module_isInCard__uANYL",isInSlide:"SensitiveBlock-module_isInSlide__ZAVUU"};const ge=({block:t,block:{cc:o,caption:l,credit:a,blurred_image:n},block:{item:{data:{display:i}}},styleContext:c})=>{const[s,m]=e.useState(!1);let _=[[be.root,!0],[be.visible,s],[be[i],i&&be[i]]],p=["isInSensitiveBlock"];return c&&(_=u(_,c,be),p=[...c,"isInSensitiveBlock"]),e.createElement("div",{"data-testid":"sensitive-block",className:r(_)},e.createElement("div",{className:be.container},e.createElement("div",{className:be.overlay,style:{backgroundImage:`url(${n})`}},e.createElement("div",{className:be.content},e.createElement("p",{dangerouslySetInnerHTML:{__html:t.title}}),e.createElement("div",{className:be.button},e.createElement(d,{onClick:()=>{m(!0)},theme:"light"},t.button.text)))),e.createElement("div",{className:be.media},e.createElement($,{block:t.item,styleContext:p}))),o&&e.createElement("figcaption",{className:be.figcaption},e.createElement(A,{credit:a,caption:l,styleContext:c})))};var ve={root:"GroupedBlock-module_root__MQQin",hasFigcaption:"GroupedBlock-module_hasFigcaption__Y05ed",item:"GroupedBlock-module_item__-InqF",items:"GroupedBlock-module_items__8X4js",figcaption:"GroupedBlock-module_figcaption__OE5-u",default:"GroupedBlock-module_default__Tha8f",full:"GroupedBlock-module_full__SNwyE",super_full:"GroupedBlock-module_super_full__HTA9D",mobile:"GroupedBlock-module_mobile__xqMw5",desktop:"GroupedBlock-module_desktop__Oobdp"};const ye=({block:t,block:{only_on:o},styleContext:l})=>{const a=Math.min(...t.data.map((e=>e.data&&e.data.height||e.item&&e.item.data.height))),n=t.data.map((e=>(e.data&&e.data.width||e.item&&e.item.data.heigh)/((e.data&&e.data.height||e.item&&e.item.data.heigh)/a))),i=n.reduce(((e,t)=>e+t));let d=[[ve.root,!0],[ve[o],!0],[ve.hasFigcaption,"default"===t.cc],[ve[t.display],!!t.display&&ve[t.display]]];return l&&(d=u(d,l,ve)),e.createElement("div",{"data-testid":"grouped-block",className:r(d)},e.createElement("div",{className:ve.items},t.data.map(((t,o)=>e.createElement("div",{className:ve.item,key:t.id,style:{width:n[o]/i*100+"%"}},e.createElement("sensitive"===t.type?ge:$,{block:t,styleContext:["isInGroupedBlock"]}))))),t.cc&&e.createElement("figcaption",{className:ve.figcaption},e.createElement(A,{credit:t.credit,caption:t.caption,styleContext:l})))};var Ee={root:"MetaItem-module_root__sRbrZ",hasBullets:"MetaItem-module_hasBullets__b1eW9",hasSource:"MetaItem-module_hasSource__35olm",listened:"MetaItem-module_listened__XZWFQ",read:"MetaItem-module_read__O3cUz",datetime:"MetaItem-module_datetime__--O8c"};const fe=({hasSource:t,type:o,children:l,bullets:a})=>e.createElement("div",{"data-testid":"meta-item",className:r([[Ee.root,!0],[Ee[o],!!o&&!!Ee[o]],[Ee.hasSource,!!t],[Ee.hasBullets,!!a]])},l);var Se={root:"MetaItemLive-module_root__XfQiW",gold:"MetaItemLive-module_gold__f1UOy",frame:"MetaItemLive-module_frame__FHByQ",liveMiddle:"MetaItemLive-module_liveMiddle__SX4Gs",liveFirstWave:"MetaItemLive-module_liveFirstWave__QqstP",liveSecondWave:"MetaItemLive-module_liveSecondWave__hlbpt"};const Be=({theme:t="gold"})=>e.createElement("div",{"data-testid":"meta-item-live","data-meta":"live",className:r([[Se.root,!0],[Se[t],!!t&&Se[t]]])},e.createElement("div",{className:Se.frame})),Le=({type:t,lang:o="ru",items:l,children:a})=>{const r={ru:{card:{one:"карточка",two:"карточки",five:"карточек"},podcast:{one:"эпизод",two:"эпизода",five:"эпизодов"}},en:{card:{one:"card",two:"cards",five:"cards"},podcast:{one:"episode",two:"episodes",five:"episodes"}}},n=`${l} ${((e,t,o,l)=>{let a=Math.abs(e);return a%=100,a>=5&&a<=20?l:(a%=10,1===a?t:a>=2&&a<=4?o:l)})(l,r[o][t].one,r[o][t].two,r[o][t].five)}`;return e.createElement(e.Fragment,null,a,e.createElement("span",{className:"DocumentItemsCount-module_root__u4M3y"},n))},we=({lang:t,block:o,isRead:l,isListened:a,bookmarkAction:r,isInBookmarks:n,block:{data:{components:i,theme:d}},styleContext:c})=>{const s=c&&-1!==c.indexOf("dark")?"light":"unset",_=c&&-1!==c.indexOf("podcast"),u=c&&-1!==c.indexOf("slide");let p=[];c&&Array.isArray(c)&&(p=c.filter((e=>"dark"!==e)));const h=!!i.find((e=>"source_name"===e.type));return e.createElement(Z,{styleContext:p,theme:d||s,onlyOn:o.only_on,hasSource:h},i.map((o=>{switch(o.type){case"source_name":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,"ru"===t?"Источник: ":"Source: ",o.url&&e.createElement("a",{href:o.url,rel:"noopener noreferrer",target:"_blank"},o.text),!o.url&&o.text));case"duration":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,e.createElement(m,{icon:"podcast",size:"small"}),o.text));case"datetime":{const l=o.format&&f(o.format)||"date";return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id,type:"datetime"},e.createElement(q,{publishedAt:o.datetime,type:l||"date",locale:t}))}case"items_count":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(Le,{items:o.count,type:_?"podcast":"card",lang:t},e.createElement(m,{icon:"card",size:"unset"})));case"broadcast_active":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,e.createElement(Be,null)," Прямой эфир"));case"broadcast":return e.createElement(fe,{hasSource:h,bullets:!0,key:o.id},e.createElement(e.Fragment,null,o.with_icon&&e.createElement(Be,null),o.label));case"string":return e.createElement(fe,{bullets:!0,key:o.id},o.text);default:return null}})),(l||a)&&e.createElement(fe,{hasSource:h,bullets:!0,type:a?"listened":"read"},e.createElement(m,{icon:a?"listened":"read",size:"unset"})),u&&"ru"===t&&e.createElement("div",{className:G.bookmark},e.createElement(O,{isInBookmarks:n,onClick:()=>r("bookmark","top")})))};var xe={root:"DonatesTeaser-module_root__XQCVy",main:"DonatesTeaser-module_main__eN9kd",title:"DonatesTeaser-module_title__9umo1",text:"DonatesTeaser-module_text__s6tyf",cta:"DonatesTeaser-module_cta__-50aB",center:"DonatesTeaser-module_center__gxLvW",isInCard:"DonatesTeaser-module_isInCard__vaUhd",isInSlide:"DonatesTeaser-module_isInSlide__Dh4NH",ru:"DonatesTeaser-module_ru__y-PlJ",en:"DonatesTeaser-module_en__0Iisr"};const Ce=({styleContext:t,lang:o="ru"})=>{let l=[[xe.root,!0],[xe[o],xe[o]]];t&&(l=u(l,t,xe));const a={ru:{title:"«Медуза». Работаем 24/7. И&nbsp;только&nbsp;в&nbsp;интересах читателей",subtitle:"Нам срочно нужна ваша поддержка",button:"Хочу помочь",href:"https://support.meduza.io/"},en:{title:"Meduza, working 24/7, always&nbsp;for our readers",subtitle:"We&nbsp;need&nbsp;your&nbsp;help like never&nbsp;before",button:"Okay!",href:"https://support.meduza.io/en"}};return e.createElement("div",{"data-testid":"donates-teaser",className:r(l)},e.createElement("div",{className:xe.main},e.createElement("h3",{className:xe.title},e.createElement("span",{dangerouslySetInnerHTML:{__html:a[o].title}})," ",e.createElement("span",{className:xe.text,dangerouslySetInnerHTML:{__html:a[o].subtitle}}))),e.createElement("div",{className:xe.cta},e.createElement("a",{href:a[o].href,target:"_blank",rel:"noreferrer"},e.createElement("span",null,a[o].button))))};var Me={root:"AnnouncementInText-module_root__C4-Oo",body:"AnnouncementInText-module_body__lZy-L",title:"AnnouncementInText-module_title__cb6i1",footer:"AnnouncementInText-module_footer__jRk9p",button:"AnnouncementInText-module_button__JuT-E",link:"AnnouncementInText-module_link__C0YxL",center:"AnnouncementInText-module_center__1DJjd",isInCard:"AnnouncementInText-module_isInCard__jIqpa",isInSlide:"AnnouncementInText-module_isInSlide__BWO-A",ru:"AnnouncementInText-module_ru__QHQad",en:"AnnouncementInText-module_en__r0PvM"};const Ie=({styleContext:t,lang:o="ru"})=>{let l=[[Me.root,!0],[Me[o],Me[o]]];t&&(l=u(l,t,Me));const a={ru:{title:"&laquo;Медуза&raquo; заблокирована в&nbsp;России. Мы&nbsp;были к&nbsp;этому готовы&nbsp;&mdash; и&nbsp;продолжаем работать. Несмотря&nbsp;ни&nbsp;на&nbsp;что",text:"<p>Нам нужна ваша помощь как никогда. Прямо сейчас. Дальше всем нам будет еще труднее. Мы&nbsp;независимое издание и&nbsp;работаем только в&nbsp;интересах читателей.</p>",button:"Хочу помочь",href:"https://mdza.io/yiNxPZ7Bs-k"},en:{title:"Meduza has been blocked in Russia. We&nbsp;were ready for this and our work continues, no matter what, but we need your support like never before. ",text:"<p>We need it now. Tomorrow could be too late. We are an independent publication, and we work only in the interests of our readers. Many&nbsp;of&nbsp;our&nbsp;readers in Russia can no longer contribute, so we turn to you, our audience around the world.</p>",button:"I want to help",href:"https://support.meduza.io/en"}}[o];return e.createElement("div",{"data-testid":"announcement-in-text",className:r(l)},e.createElement("div",{className:Me.body},e.createElement("h3",{className:Me.title,dangerouslySetInnerHTML:{__html:a.title}}),e.createElement("div",{dangerouslySetInnerHTML:{__html:a.text}})),e.createElement("div",{className:Me.footer},e.createElement("a",{className:Me.link,href:a.href,target:"_blank",rel:"noreferrer"},e.createElement("span",null,a.button)),e.createElement("span",{className:Me.button},e.createElement("span",null,a.button))))},Te=({block:t,styleContext:o,lang:l,isRead:a,isListened:r,bookmarkAction:n,isInBookmarks:i})=>{switch(t.type){case"tag":return e.createElement(N,{size:"large",onlyOn:t.only_on,theme:t.data.theme,styleContext:o},t.data.text);case"simple_title":return e.createElement(ne,{block:t,styleContext:o});case"rich_title":return e.createElement(de,{block:t,styleContext:o});case"meta":return e.createElement(we,{block:t,lang:t.data.lang,styleContext:o,isRead:a,isListened:r,isInBookmarks:i,bookmarkAction:n});case"h1":case"h2":case"h3":case"h4":case"blockquote":case"p":case"context_p":case"divider":case"lead":case"lead_hr":return e.createElement(se,{block:t,styleContext:o});case"quote":return e.createElement(K,{block:t,styleContext:o});case"ol":case"ul":return e.createElement(_e,{block:t,styleContext:o});case"chapter-subtitle":return e.createElement(le,{block:t,styleContext:o});case"card_title":return e.createElement(te,{block:t,styleContext:o});case"related":return e.createElement(pe,{block:t,styleContext:o});case"source":return e.createElement(ke,{block:t,styleContext:o});case"table":return e.createElement(H,{block:t,styleContext:o});case"sensitive":return e.createElement(ge,{block:t,styleContext:o});case"embed":case"embed_code":case"game_embed":case"image":case"dots_on_image":case"gif":return e.createElement($,{block:t,styleContext:o,lang:l});case"grouped":return e.createElement(ye,{block:t,styleContext:o});case"donation":return e.createElement(Ce,{styleContext:o,lang:l});case"material_note":return e.createElement(V,{block:t,styleContext:o});case"announcement_in_text":return e.createElement(Ie,{styleContext:o,lang:l});default:return null}};var Ne={root:"Cover-module_root__3pscq",body:"Cover-module_body__eJpUI",image:"Cover-module_image__frrrH",rich:"Cover-module_rich__YcxWa",dark:"Cover-module_dark__cRucL",light:"Cover-module_light__la-sk",control:"Cover-module_control__WP0G3",isInDynamicBlock:"Cover-module_isInDynamicBlock__qO-yt",mobile:"Cover-module_mobile__aotep",desktop:"Cover-module_desktop__dfbC-"};const ze=({block:{only_on:t,data:{blocks:o,cover:{credit:l,caption:a,urls:n,mobile_ratio:i,gradients:d,cc:c}}},styleContext:s})=>{const[m,_]=e.useState(!1),p={};let h=[[Ne.root,!0],[Ne[t],!!t&&!!Ne[t]]];return s&&(h=u(h,s,Ne)),d&&(h=u(h,["0,0,0"===d.text_rgb?"dark":"light"],Ne),p.backgroundImage=ae(d.bg_rgb,"mediaBlockBottom")),e.createElement("div",{"data-testid":"cover",className:r(h)},e.createElement("div",{className:Ne.image},e.createElement(L,{optimized:n,ratio:i,display:"narrow",lazy:!0})),e.createElement("div",{className:Ne.body,style:p},o.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:s})))),"button"===c&&e.createElement("button",{className:Ne.control,type:"button","aria-label":"Open",onClick:()=>{_(!m)}}),"button"===c&&m&&e.createElement(w,{onClose:()=>{_(!1)}},e.createElement(A,{credit:l,caption:a,styleContext:"isInPopover"})))};var Ae={root:"HalfBlock-module_root__EXQbz",main:"HalfBlock-module_main__eIcRo",body:"HalfBlock-module_body__HPhGj",footer:"HalfBlock-module_footer__TFfCQ",image:"HalfBlock-module_image__XWLbK",mobile:"HalfBlock-module_mobile__uGGpm",desktop:"HalfBlock-module_desktop__p-hAq"};const Re=({block:{only_on:t,data:o,data:{cover:{optimized:l,ratio:a,credit:n,caption:i}}},styleContext:d})=>{let c=[[Ae.root,!0],[Ae[t],!0]];return d&&(c=u(c,d,Ae)),e.createElement("div",{"data-testid":"half-block",className:r(c)},e.createElement("div",{className:Ae.main},e.createElement("div",{className:Ae.image},e.createElement(L,{optimized:l,ratio:a,display:"super_full"})),e.createElement("div",{className:Ae.body},o.blocks.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:["rich"]}))))),e.createElement("div",{className:Ae.footer},e.createElement(A,{credit:n,caption:i,styleContext:d})))};var He={root:"ImportantLead-module_root__-rnt6",slide:"ImportantLead-module_slide__zcovu",mobile:"ImportantLead-module_mobile__msInp",desktop:"ImportantLead-module_desktop__ELC2-"};const De=({block:{only_on:t,data:o},styleContext:l})=>{let a=[[He.root,!0],[He[t],!!t]];return l&&(a=u(a,l,He)),e.createElement("div",{"data-testid":"important-lead",className:r(a)},o.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:"isInImportantLead"}))))};var Ve={root:"Spoiler-module_root__fAbb9",header:"Spoiler-module_header__iEKsQ",body:"Spoiler-module_body__jjqIn",spoiled:"Spoiler-module_spoiled__ENI93",footer:"Spoiler-module_footer__g21Zn",spoilerSticky:"Spoiler-module_spoilerSticky__YTiyF",spoilerStickyBg:"Spoiler-module_spoilerStickyBg__tmDnG",center:"Spoiler-module_center__0XCWo",full:"Spoiler-module_full__FtKDT",default:"Spoiler-module_default__wvlKw",mobile:"Spoiler-module_mobile__PWCMW",desktop:"Spoiler-module_desktop__qTakd"};const Pe=({block:{display:t,button:o,only_on:l,btn_title:a,title:n,blocks:i},styleContext:c})=>{const[s,_]=e.useState(!1),p=e.useRef(null);let h=[[Ve.root,!0],[Ve[l],!!l],[Ve[t],!!t&&Ve[t]],[[Ve.spoiled],!!s]];const b=["center"];c&&(b.concat(c),h=u(h,c,Ve));const g=o?o.collapse:"Свернуть",v=o?o.expand:a;return e.createElement("div",{ref:p,className:r(h),"data-testid":"spoiler"},e.createElement("div",{className:Ve.header},n&&e.createElement("h3",null,n)),e.createElement("div",{className:Ve.body},i.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:b})))),e.createElement("div",{className:Ve.footer},e.createElement(d,{size:"default",theme:"gray",onClick:()=>(_(!s),void(s?(k("","closeSpoiler","click"),p.current.getBoundingClientRect().top<0&&p.current.scrollIntoView({behavior:"smooth"})):k("","openSpoiler","click"))),styleContext:"isInSpoiler"},s?g:v,e.createElement(m,{icon:"arrow"}))))};var Oe={root:"RelatedRichBlock-module_root__-SEe7",wrapper:"RelatedRichBlock-module_wrapper__YkEpr",overlay:"RelatedRichBlock-module_overlay__tWuyR",overlayHeader:"RelatedRichBlock-module_overlayHeader__V3ynX",body:"RelatedRichBlock-module_body__XhS0U",isRich:"RelatedRichBlock-module_isRich__Z2kQ8",hasGradient:"RelatedRichBlock-module_hasGradient__s5Krh",picture:"RelatedRichBlock-module_picture__OmRKx",isCard:"RelatedRichBlock-module_isCard__wkMw-",cover:"RelatedRichBlock-module_cover__3gnIx",tag:"RelatedRichBlock-module_tag__c18sv",center:"RelatedRichBlock-module_center__KANd-",dark:"RelatedRichBlock-module_dark__cnk4R",light:"RelatedRichBlock-module_light__aJLn7",mobile:"RelatedRichBlock-module_mobile__N-G4U",desktop:"RelatedRichBlock-module_desktop__EaPOr"};const We=({block:{only_on:o,data:{blocks:l,url:n,cover:{urls:i,gradients:d,tag:c,layout:s,ratio:m}}},styleContext:_})=>{const p={},h={},b=`is${g=s,g[0].toUpperCase()+g.slice(1)}`;var g;const[v,y]=t.useInView({threshold:0,triggerOnce:!0});e.useEffect((()=>{y&&("mobile"===o&&window.innerWidth<=511||"desktop"===o&&window.innerWidth>=512||!o)&&k("richRelated",n,"view")}),[y]);let E=[[Oe.root,!0],[Oe[b],!!s&&!!Oe[b]],[Oe.hasGradient,!!d],[Oe[o],!!o&&!!Oe[o]]],f=["isInMediaBlock"];return _&&(E=u(E,_,Oe),f=[..._,"isInMediaBlock"]),d&&(h.backgroundImage=ae(d.bg_rgb,"mediaBlockTop"),E=u(E,["0,0,0"===d.text_rgb?"dark":"light"],Oe),"desktop"===o&&(p.backgroundImage=ae(d.bg_rgb,"mediaBlockBottom"))),e.createElement(a.Link,{"data-testid":"related-rich-block",className:r(E),to:`/${n}`,onClick:()=>{k("richRelated",n,"click")},ref:v},"rich"===s&&e.createElement(e.Fragment,null,e.createElement("div",{className:Oe.overlay,style:p}),e.createElement("div",{className:Oe.overlayHeader,style:h})),e.createElement("div",{className:Oe.tag},e.createElement(N,{size:"small",theme:"inherit",styleContext:"richRelated"},c)),e.createElement("div",{className:Oe.cover},e.createElement("div",{className:Oe.picture},e.createElement(L,{optimized:i,ratio:m,display:"narrow"}))),e.createElement("div",{className:Oe.body},l.map((t=>e.createElement(Te,{key:t.id,block:t,styleContext:f})))))};var Fe={root:"ToolbarButton-module_root__upsEH",isDark:"ToolbarButton-module_isDark__gWpv-",dark:"ToolbarButton-module_dark__5XOEp",bookmark:"ToolbarButton-module_bookmark__7SWkm",isActive:"ToolbarButton-module_isActive__N4kkV",icon:"ToolbarButton-module_icon__Ldcgq",text:"ToolbarButton-module_text__4R2a0"},Ge={root:"Tooltip-module_root__xK21R",isCenterBottom:"Tooltip-module_isCenterBottom__-qv7D",isLeftBottom:"Tooltip-module_isLeftBottom__0-f5z",isCenterTop:"Tooltip-module_isCenterTop__xQ3Ql",isLeftTop:"Tooltip-module_isLeftTop__yjKrV",body:"Tooltip-module_body__5qgzu",footer:"Tooltip-module_footer__swU9S"};const Ze=e=>e.charAt(0).toUpperCase()+e.slice(1);exports.AnnouncementInText=Ie,exports.BookmarkButton=O,exports.Button=d,exports.ButtonLoader=n,exports.CardTitle=te,exports.ChapterBlock=le,exports.Cover=ze,exports.DocumentItemsCount=Le,exports.DonatesTeaser=Ce,exports.DotsOnImage=I,exports.Dropdown=({children:t,active:o,styleContext:l})=>{let a=[[W.root,!0],[W.active,!!o&&!!W.active]];return l&&(a=u(a,l,W)),e.createElement("div",{"data-testid":"dropdown",className:r(a)},t)},exports.EmbedBlockContainer=$,exports.Footnote=x,exports.GroupedBlock=ye,exports.HalfBlock=Re,exports.Image=L,exports.ImportantLead=De,exports.Lazy=g,exports.ListBlock=_e,exports.MaterialNote=V,exports.MaterialTitle=({children:t})=>e.createElement("h1",{className:"MaterialTitle-module_root__VSphO","data-testid":"material-title"},t),exports.MediaCaption=A,exports.Menu=({children:t})=>e.createElement("div",{"data-testid":"dropdown",className:W.menu},t),exports.Meta=Z,exports.MetaItem=fe,exports.MetaItemLive=Be,exports.Popover=w,exports.Primary=({children:t})=>e.createElement("span",{className:"MaterialTitle-module_primary__XGnpb"},t),exports.QuoteBlock=K,exports.RawHtmlBlock=({block:t,styleContext:o,isRead:l,isListened:a,isInBookmarks:r,bookmarkAction:n,lightBox:i,lang:d})=>{const c={lightBox:i||null};switch(t.type){case"important_lead":return e.createElement(De,{block:t,styleContext:o});case"spoiler":return e.createElement(h,{value:c},e.createElement(Pe,{block:t,styleContext:o}));case"cover":return e.createElement(ze,{block:t,styleContext:o});case"half":return e.createElement(Re,{block:t,styleContext:o});case"related_rich":return e.createElement(We,{block:t,styleContext:o});default:return e.createElement(h,{value:c},e.createElement(Te,{block:t,styleContext:o,isRead:l,isListened:a,isInBookmarks:r,bookmarkAction:n,lang:d}))}},exports.RelatedBlock=pe,exports.RelatedRichBlock=We,exports.RenderBlocks=Te,exports.RichTitle=de,exports.Secondary=({children:t})=>e.createElement("span",{className:"MaterialTitle-module_secondary__7IDEp"},t),exports.SensitiveBlock=ge,exports.SimpleBlock=se,exports.SimpleTitle=ne,exports.SourceBlock=ke,exports.Spoiler=Pe,exports.SvgSymbol=m,exports.Switcher=({enabled:t,children:o,childrenPosition:l="left",onChange:a,styleContext:n,theme:i="light"})=>e.createElement("label",{"data-testid":"switcher",className:r([[_.root,!0],[_[i],!!_[i]],[_[n],!!_[n]]])},o&&"left"===l&&e.createElement("div",{className:r([[_.children,!0],[_.left,!0]])},o),e.createElement("input",{className:_.input,type:"checkbox",checked:t,onChange:a}),e.createElement("span",{className:_.control},e.createElement("span",{className:_.knob})),o&&"right"===l&&e.createElement("div",{className:r([[_.children,!0],[_.right,!0]])},o)),exports.Table=H,exports.Tag=N,exports.Timestamp=q,exports.Toolbar=({children:t,styleContext:o})=>{let l=[[F.root,!0]];return o&&(l=u(l,o,F)),e.createElement("div",{"data-testid":"toolbar",className:r(l)},e.createElement("ul",{className:F.list},t))},exports.ToolbarButton=({type:t,theme:o,isActive:l,lang:a="ru",text:n,icon:i,onClick:d})=>{const c=E[a][t];return e.createElement("button",{"data-testid":"toolbar-button",className:r([[Fe.root,!0],[Fe[t],!!Fe[t]],[Fe[o],!!Fe[o]&&!!o],[Fe.isActive,!!l]]),type:"button",onClick:e=>d(e,t)},i&&e.createElement("div",{className:Fe.icon},e.createElement(m,{size:"medium",icon:i,styleContext:"isInToolbar"})),e.createElement("span",{className:Fe.text},n||c))},exports.ToolbarItem=({children:t})=>e.createElement("li",{className:F.item},t),exports.Tooltip=({children:t,position:o})=>{const[l,a]=o,n=`is${Ze(l)}${Ze(a)}`;return e.createElement("div",{className:r([[Ge.root,!0],[Ge[n],!0]])},e.createElement("div",{className:Ge.body},t))},exports.TooltipFooter=({children:t})=>e.createElement("div",{className:Ge.footer},t);
2
2
  //# sourceMappingURL=ui-kit-2.cjs.production.min.js.map