(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9207],{26159:(e,t,r)=>{"use strict";r.d(t,{L:()=>u,g:()=>s});var o=r(12115),n=r(56853);let i=null,s=()=>i,u=({env:e})=>{let t=(0,o.useRef)(!1);return t.current||(i=e,t.current=!0),(0,o.useEffect)(()=>{"production"===e.NODE_ENV&&(0,n.yu)()},[e.NODE_ENV]),null}},44535:(e,t,r)=>{Promise.resolve().then(r.bind(r,26159)),Promise.resolve().then(r.bind(r,79433)),Promise.resolve().then(r.bind(r,75241)),Promise.resolve().then(r.bind(r,52581)),Promise.resolve().then(r.bind(r,49989))},49989:(e,t,r)=>{"use strict";r.d(t,{UserParamsProvider:()=>d,f:()=>m});var o=r(95155),n=r(12115),i=r(98668);function s(e){return sessionStorage.getItem(e)??void 0}let u=(0,n.createContext)(void 0),a="browserId",c="browserSessionId";function d({children:e}){let[t,r]=(0,n.useState)({});return(0,n.useEffect)(()=>{let{[a]:e,[c]:t,"auth.gtm_customer_id":o,_ym_uid:n}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));r({browserId:e??i.A.getItem(a)??void 0,sessionId:t??s(c)??s(a),customerId:o,yandexId:n})},[]),(0,o.jsx)(u.Provider,{value:t,children:e})}function m(){let e=(0,n.useContext)(u);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},52581:(e,t,r)=>{"use strict";r.d(t,{BinomParamsProvider:()=>u,v:()=>a});var o=r(95155),n=r(12115),i=r(73321);let s=(0,n.createContext)(void 0);function u({children:e}){let t=(0,i.useSearchParams)(),r=(0,i.usePathname)(),a=t.get("utm_source")?.toString(),c=t.get("utm_campaign")?.toString(),d=t.get("utm_content")?.toString(),m=t.get("utm_medium")?.toString(),l=t.get("utm_term")?.toString(),f=t.get("click_id")?.toString(),g=(0,n.useMemo)(()=>({pathname:r,utmSource:a,utmMedium:m,utmCampaign:c,utmTerm:l,utmContent:d,clickId:f}),[r,a,m,c,l,d,f]);return(0,o.jsx)(s.Provider,{value:g,children:e})}function a(){let e=(0,n.useContext)(s);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},56853:(e,t,r)=>{"use strict";function o(){return typeof window>"u"}function n(e){o()||(Array.isArray(window.dataLayer)?window.dataLayer.push(e):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}function i(){o()?console.warn("Cant initialize tag manager on server side"):("function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm())}r.d(t,{Fj:()=>n,yu:()=>i})},73321:(e,t,r)=>{"use strict";var o=r(74645);r.o(o,"notFound")&&r.d(t,{notFound:function(){return o.notFound}}),r.o(o,"usePathname")&&r.d(t,{usePathname:function(){return o.usePathname}}),r.o(o,"useRouter")&&r.d(t,{useRouter:function(){return o.useRouter}}),r.o(o,"useSearchParams")&&r.d(t,{useSearchParams:function(){return o.useSearchParams}})},75241:(e,t,r)=>{"use strict";r.d(t,{UserParamsProvider:()=>d,f:()=>m});var o=r(95155),n=r(12115),i=r(98668);function s(e){return sessionStorage.getItem(e)??void 0}let u=(0,n.createContext)(void 0),a="browserId",c="browserSessionId";function d({children:e}){let[t,r]=(0,n.useState)({});return(0,n.useEffect)(()=>{let{[a]:e,[c]:t,"auth.gtm_customer_id":o,_ym_uid:n}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));r({browserId:e??i.A.getItem(a)??void 0,sessionId:t??s(c)??s(a),customerId:o,yandexId:n})},[]),(0,o.jsx)(u.Provider,{value:t,children:e})}function m(){let e=(0,n.useContext)(u);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},79433:(e,t,r)=>{"use strict";r.d(t,{BinomParamsProvider:()=>u,v:()=>a});var o=r(95155),n=r(12115),i=r(73321);let s=(0,n.createContext)(void 0);function u({children:e}){let t=(0,i.useSearchParams)(),r=(0,i.usePathname)(),a=t.get("utm_source")?.toString(),c=t.get("utm_campaign")?.toString(),d=t.get("utm_content")?.toString(),m=t.get("utm_medium")?.toString(),l=t.get("utm_term")?.toString(),f=t.get("click_id")?.toString(),g=(0,n.useMemo)(()=>({pathname:r,utmSource:a,utmMedium:m,utmCampaign:c,utmTerm:l,utmContent:d,clickId:f}),[r,a,m,c,l,d,f]);return(0,o.jsx)(s.Provider,{value:g,children:e})}function a(){let e=(0,n.useContext)(s);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},98668:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=o.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}}}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=44535)),_N_E=e.O()}]);