//sazhentsy-magazin.ru/wp-content/cache/wpfc-minified/lxrbol9u/60m7k.js |
//sazhentsy-magazin.ru/wp-content/cache/wpfc-minified/qtmgungy/60m7k.js |
//www.googletagmanager.com/gtag/js?id=G-JF6PLN1N6R |
data:text/javascript;base64,CgkJKGZ1bmN0aW9uICgpIHsKCQkJdmFyIGMgPSBkb2N1bWVudC5ib2R5LmNsYXNzTmFtZTsKCQkJYyA9IGMucmVwbGFjZSgvd29vY29tbWVyY2Utbm8tanMvLCAnd29vY29tbWVyY2UtanMnKTsKCQkJZG9jdW1lbnQuYm9keS5jbGFzc05hbWUgPSBjOwoJCX0pKCk7Cgk= |
data:text/javascript;base64,Ci8qIDwhW0NEQVRBWyAqLwp2YXIgZmJfdGltZW91dCwgZmJfb3B0cz17J292ZXJsYXlTaG93Jzp0cnVlLCdoaWRlT25PdmVybGF5Q2xpY2snOnRydWUsJ3Nob3dDbG9zZUJ1dHRvbic6dHJ1ZSwnbWFyZ2luJzoyMCwnZW5hYmxlRXNjYXBlQnV0dG9uJzp0cnVlLCdhdXRvU2NhbGUnOnRydWUgfTsKaWYodHlwZW9mIGVhc3lfZmFuY3lib3hfaGFuZGxlcj09PSd1bmRlZmluZWQnKXsKdmFyIGVhc3lfZmFuY3lib3hfaGFuZGxlcj1mdW5jdGlvbigpewpqUXVlcnkoWyIubm9saWdodGJveCIsImEud3AtYmxvY2stZmlsZWVzY19odG1sX19idXR0b24iLCJhLnBpbi1pdC1idXR0b24iLCJhW2hyZWYqPSdwaW50ZXJlc3QuY29tXC9waW5cL2NyZWF0ZSddIiwiYVtocmVmKj0nZmFjZWJvb2suY29tXC9zaGFyZSddIiwiYVtocmVmKj0ndHdpdHRlci5jb21cL3NoYXJlJ10iXS5qb2luKCcsJykpLmFkZENsYXNzKCdub2ZhbmN5Ym94Jyk7CmpRdWVyeSgnYS5mYW5jeWJveC1jbG9zZScpLm9uKCdjbGljaycsZnVuY3Rpb24oZSl7ZS5wcmV2ZW50RGVmYXVsdCgpO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lkZXJfMTc5JykuYWRkQ2xhc3MoJ2ZsZXhzbGlkZXInKTsKICAgICAgICAgICAgJCgnI21ldGFzbGlkZXJfMTc5JykuZmxleHNsaWRlcih7IAogICAgICAgICAgICAgICAgc2xpZGVzaG93U3BlZWQ6MzAwMCwKICAgICAgICAgICAgICAgIGFuaW1hdGlvbjoiZmFkZSIsCiAgICAgICAgICAgICAgICBjb250cm9sTmF2OnRydWUsCiAgICAgICAgICAgICAgICBkaXJlY3Rpb25OYXY6dHJ1ZSwKICAgICAgICAgICAgICAgIHBhdXNlT25Ib3Zlcjp0cnVlLAogICAgICAgICAgICAgICAgZGlyZWN0aW9uOiJob3Jpem9udGFsIiwKICAgICAgICAgICAgICAgIHJldmVyc2U6ZmFsc2UsCiAgICAgICAgICAgICAgICBrZXlib2FyZDpmYWxzZSwKICAgICAgICAgICAgICAgIHRvdWNoOjEsCiAgICAgICAgICAgICAgICBhbmltYXRpb25TcGVlZDo2MDAsCiAgICAgICAgICAgICAgICBwcmV2VGV4dDoiUHJldmlvdXMiLAogICAgICAgICAgICAgICAgbmV4dFRleHQ6Ik5leHQiLAogICAgICAgICAgICAgICAgc21vb3RoSGVpZ2h0OmZhbHNlLAogICAgICAgICAgICAgICAgZmFkZUZpcnN0U2xpZGU6ZmFsc2UsCiAgICAgICAgICAgICAgICBzbGlkZXNob3c6dHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgJChkb2N1bWVudCkudHJpZ2dlcignbWV0YXNsaWRlci9pbml0aWFsaXplZCcsICcjbWV0YXNsaWRlcl8xNzknKTsKICAgICAgICB9OwogICAgICAgIHZhciB0aW1lcl9tZXRhc2xpZGVyXzE3OSA9IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgc2xpZGVyID0gIXdpbmRvdy5qUXVlcnkgPyB3aW5kb3cuc2V0VGltZW91dCh0aW1lcl9tZXRhc2xpZGVyXzE3OSwgMTAwKSA6ICFqUXVlcnkuaXNSZWFkeSA/IHdpbmRvdy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WUsYVt0XS5hcHBlbmRDaGlsZChlKX0pOw== |
data:text/javascript;base64,d2luZG93LmxhenlMb2FkT3B0aW9ucyA9IHsKICAgICAgICAgICAgICAgIGVsZW1lbnRzX3NlbGVjdG9yOiAiaW1nW2RhdGEtbGF6eS1zcmNdLC5yb2NrZXQtbGF6eWxvYWQsaWZyYW1lW2RhdGEtbGF6eS1zcmNdIiwKICAgICAgICAgICAgICAgIGRhdGFfc3JjOiAibGF6eS1zcmMiLAogICAgICAgICAgICAgICAgZGF0YV9zcmNzZXQ6ICJsYXp5LXNyY3NldCIsCiAgICAgICAgICAgICAgICBkYXRhX3NpemVzOiAibGF6eS1zaXplcyIsCiAgICAgICAgICAgICAgICBjbGFzc19sb2FkaW5nOiAibGF6eWxvYWRpbmciLAogICAgICAgICAgICAgICAgY2xhc3NfbG9hZGVkOiAibGF6eWxvYWRlZCIsCiAgICAgICAgICAgICAgICB0aHJlc2hvbGQ6IDMwMCwKICAgICAgICAgICAgICAgIGNhbGxiYWNrX2xvYWRlZDogZnVuY3Rpb24oZWxlbWVudCkgewogICAgICAgICAgICAgICAgICAgIGlmICggZWxlbWVudC50YWdOYW1lID09PSAiSUZSQU1FIiAmJiBlbGVtZW50LmRhdGFzZXQucm9ja2V0TGF6eWxvYWQgPT0gImZpdHZpZHNjb21wYXRpYmxlIiApIHsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQuY2xhc3NMaXN0LmNvbnRhaW5zKCJsYXp5bG9hZGVkIikgKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIHdpbmRvdy5qUXVlcnkgIT0gInVuZGVmaW5lZCIpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoalF1ZXJ5LmZuLmZpdFZpZHMpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgalF1ZXJ5KGVsZW1lbnQpLnBhcmVudCgpLmZpdFZpZHMoKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9fTsKICAgICAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcignTGF6eUxvYWQ6OkluaXRpYWxpemVkJywgZnVuY3Rpb24gKGUpIHsKICAgICAgICAgICAgdmFyIGxhenlMb2FkSW5zdGFuY2UgPSBlLmRldGFpbC5pbnN0YW5jZTsKCiAgICAgICAgICAgIGlmICh3aW5kb3cuTXV0YXRpb25PYnNlcnZlcikgewogICAgICAgICAgICAgICAgdmFyIG9ic2VydmVyID0gbmV3IE11dGF0aW9uT2JzZXJ2ZXIoZnVuY3Rpb24obXV0YXRpb25zKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGltYWdlX2NvdW50ID0gMDsKICAgICAgICAgICAgICAgICAgICB2YXIgaWZyYW1lX2NvdW50ID0gMDsKICAgICAgICAgICAgICAgICAgICB2YXIgcm9ja2V0bGF6eV9jb3VudCA9IDA7CgogICAgICAgICAgICAgICAgICAgIG11dGF0aW9ucy5mb3JFYWNoKGZ1bmN0aW9uKG11dGF0aW9uKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBtdXRhdGlvbi5hZGRlZE5vZGVzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG11dGF0aW9uLmFkZGVkTm9kZXNbaV0uZ2V0RWxlbWVudHNCeVRhZ05hbWUgIT09ICdmdW5jdGlvbicpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG11dGF0aW9uLmFkZGVkTm9kZXNbaV0uZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSAhPT0gJ2Z1bmN0aW9uJykgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbWFnZXMgPSBtdXRhdGlvbi5hZGRlZE5vZGVzW2ldLmdldEVsZW1lbnRzQnlUYWdOYW1lKCdpbWcnKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzX2ltYWdlID0gbXV0YXRpb24uYWRkZWROb2Rlc1tpXS50YWdOYW1lID09ICJJTUciOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWZyYW1lcyA9IG11dGF0aW9uLmFkZGVkTm9kZXNbaV0uZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2lmcmFtZScpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNfaWZyYW1lID0gbXV0YXRpb24uYWRkZWROb2Rlc1tpXS50YWdOYW1lID09ICJJRlJBTUUiOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgcm9ja2V0X2xhenkgPSBtdXRhdGlvbi5hZGRlZE5vZGVzW2ldLmdldEVsZW1lbnRzQnlDbGFzc05hbWUoJ3JvY2tldC1sYXp5bG9hZCcpOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGltYWdlX2NvdW50ICs9IGltYWdlcy5sZW5ndGg7CgkJCSAgICAgICAgICAgICAgICBpZnJhbWVfY291bnQgKz0gaWZyYW1lcy5sZW5ndGg7CgkJCSAgICAgICAgICAgICAgICByb2NrZXRsYXp5X2NvdW50ICs9IHJvY2tldF9sYXp5Lmxlbmd0aDsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZihpc19pbWFnZSl7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1hZ2VfY291bnQgKz0gMTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZihpc19pZnJhbWUpewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZV9jb3VudCArPSAxOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSApOwoKICAgICAgICAgICAgICAgICAgICBpZihpbWFnZV9jb3VudCA+IDAgfHwgaWZyYW1lX2NvdW50ID4gMCB8fCByb2NrZXRsYXp5X2NvdW50ID4gMCl7CiAgICAgICAgICAgICAgICAgICAgICAgIGxhenlMb2FkSW5zdGFuY2UudXBkYXRlKCk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSApOwoKICAgICAgICAgICAgICAgIHZhciBiICAgICAgPSBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYm9keSIpWzBdOwogICAgICAgICAgICAgICAgdmFyIGNvbmZpZyA9IHsgY2hpbGRMaXN0OiB0cnVlLCBzdWJ0cmVlOiB0cnVlIH07CgogICAgICAgICAgICAgICAgb2JzZXJ2ZXIub2JzZXJ2ZShiLCBjb25maWcpOwogICAgICAgICAgICB9CiAgICAgICAgfSwgZmFsc2UpOw== |