(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1158],{76583:function(){},27565:function(){},86034:function(){},90373:function(){},97960:function(e,t,n){"use strict";n.d(t,{TagManagerNoscript:function(){return s},TagManagerScript:function(){return o}});var r=n(48667),i=n(2265);function o(e){let{mtmURL:t,mtmID:n,ytmID:o,autoInit:s=!0,isolated:a=!1}=e;return i.createElement(i.Fragment,null,i.createElement("meta",{name:"ytm-v2",id:"analytics-ytm-meta"}),i.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:"\n    (function(w) {\n  /*! @script-version 1.0.0 */\n  /*! js-cookie v3.0.5 | MIT */\n  !function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){\"use strict\";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if(\"undefined\"!=typeof document){\"number\"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c=\"\";for(var u in i)i[u]&&(c+=\"; \"+u,!0!==i[u]&&(c+=\"=\"+i[u].split(\";\")[0]));return document.cookie=t+\"=\"+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if(\"undefined\"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split(\"; \"):[],o={},r=0;r<t.length;r++){var i=t[r].split(\"=\"),c=i.slice(1).join(\"=\");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,\"\",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'\"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:\"/\"});return t}));\n  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}\n  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}\n  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n  var browserId=Cookies.get('browserId')||w.browserId||(function(){\n    try{return w.localStorage.getItem('browserId');}catch(e){return null;}\n  })()||uuidv4();\n  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){\n    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}\n  })()||uuidv4();\n  if(!browserId.match(uuidv4re)){browserId=uuidv4();}\n  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}\n  w.browserId=browserId;\n  w.browserSessionId=sessionId;\n  try{\n    w.localStorage.setItem('browserId', browserId);\n    w.sessionStorage.setItem('browserId', sessionId);\n    w.sessionStorage.setItem('browserSessionId', sessionId);\n  }catch(e){}\n  var domain=normalizeDomain(w.location.hostname);\n  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};\n  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));\n  Cookies.set('browserSessionId',sessionId,cookieOptions);\n  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];\n  w.dataLayer.push({event:'system-event',browser_id:browserId,session_id:sessionId});\n  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});\n})(window);\n  "}}),i.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function(e){let{mtmURL:t,mtmID:n}=e;return"\n    (function(w,l,d){\n      w._mtm_initialized=false;\n      w[l]=w[l]||[];\n      w[l].push({...(w._session||{})});\n      w._init_mtm=function(){\n        if(w._mtm_initialized)return;\n        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});\n        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];\n        g.type='text/javascript';\n        g.async=true;\n        g.src='".concat(t,"/js/container_").concat(n,".js';\n        s.parentNode.insertBefore(g,s);\n        g.onload=function(){\n          w._mtm_initialized=true;\n        };\n      }\n    })(window,'_mtm',document);\n  ")}({mtmURL:t,mtmID:n})}}),!a&&i.createElement("script",{id:"analytics-ytm-script",dangerouslySetInnerHTML:{__html:function(e){let{ytmID:t,isolated:n=!1}=e;return"\n    (function(w,l,d, isolated){\n    w._ytm_initialized=false;\n      w[l]=w[l]||function(){(w[l].a=w[l].a||[]).push(arguments)};\n      w[l].l=1*new Date();\n      w._init_ytm=function(){\n        if(w._ytm_initialized)return;\n        var j;\n        for(j=0;j<d.scripts.length;j++){\n          if(d.scripts[j].src==='https://mc.yandex.ru/metrika/tag.js?id=".concat(t,"'){\n            return;\n          }\n        }\n        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];\n        g.type='text/javascript';\n        g.async=true;\n        g.src='https://mc.yandex.ru/metrika/tag.js?id=").concat(t,"';\n        s.parentNode.insertBefore(g,s);\n        g.onload = function () {\n        w._ytm_initialized=true;\n        if(isolated)return;\n          w.ym('").concat(t,"', 'init', {\n            ssr: true,\n            webvisor: true,\n            clickmap: true,\n            ecommerce: 'dataLayer',\n            referrer: d.referrer,\n            url: d.location.href,\n            accurateTrackBounce: true,\n            trackLinks: true,\n          });\n        };\n      }\n    })(window,'ym',document, ").concat(n,");\n  ")}({ytmID:o})}}),s&&i.createElement(r.default,{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:"\n    (function(w,m,y){\n      if(typeof w[m]==='function')w[m]();\n      if(typeof w[y]==='function')w[y]();\n    })(window,'_init_mtm','_init_ytm');\n  "}}))}function s(e){let{mtmURL:t,mtmID:n,ytmID:r,isolated:o=!1}=e;return i.createElement(i.Fragment,null,i.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function(e){let{mtmURL:t,mtmID:n}=e;return'<img src="'.concat(t,"/matomo.php?idsite=").concat(n,'&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />')}({mtmURL:t,mtmID:n})}}),!o&&i.createElement("noscript",{id:"analytics-ytm-noscript",dangerouslySetInnerHTML:{__html:function(e){let{ytmID:t}=e;return'<img src="https://mc.yandex.ru/watch/'.concat(t,'" style="position:absolute; left:-9999px;" alt="" />')}({ytmID:r})}}))}}}]);