(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(15370)}])},3187:(e,t,r)=>{"use strict";function n(e){return e.startsWith("https://")}function o(e){let t=e.indexOf("?");return -1!==t?e.slice(0,t):e}function i(e){return e.join(",")}function u(e){return""!==e?e.split(","):[]}r.d(t,{m:()=>o,pi:()=>u,t9:()=>i,vh:()=>n})},4361:(e,t,r)=>{e.exports=r(51806)},5552:(e,t,r)=>{"use strict";r.d(t,{_I:()=>h,qC:()=>a,sw:()=>l});var n=r(37876),o=r(14232),i=r(20912),u=r(61289),f=function(e){return e.Mobile="mobile",e.Desktop="desktop",e}(f||{});let s=(0,o.createContext)(void 0);function a(e){let{children:t}=e,r=(0,u.Ul)(),[f,a]=(0,o.useState)(()=>({size:r?"mobile":"desktop"})),c=(0,i.D)("md");return(0,o.useEffect)(()=>{void 0!==c&&a(e=>({...e,size:c?"desktop":"mobile"}))},[c]),(0,n.jsx)(s.Provider,{value:f,children:t})}function c(){return function(){let e=(0,o.useContext)(s);if(!e)throw Error("The context of the screen is used outside of the provider");return e}().size}function l(){return"mobile"===c()}function h(){return"desktop"===c()}},7482:(e,t,r)=>{"use strict";r.d(t,{jS:()=>i,Ee:()=>u,Lg:()=>f,W9:()=>s,Fl:()=>o});let n=o("finuslugi","credits");function o(e,t){return"".concat(e).concat(".").concat(t)}function i(){return new c("local",n)}function u(){return new c("session",n)}function f(){return new c("local","local")}function s(){return new c("session","session")}var a=function(e){return e.Local="local",e.Session="session",e}(a||{});class c{read(e){var t;return null!=(t=this.storage.getItem("".concat(this.prefix).concat(e)))?t:void 0}readJson(e){let t=this.read(e);try{return void 0!==t?function(e){try{return JSON.parse(e)}catch(e){throw Error("Failed to parse JSON",{cause:e})}}(t):void 0}catch(t){throw Error("Failed to read ".concat(this.type,' storage json: "').concat(this.prefix).concat(e,'"'),{cause:t})}}write(e,t){try{this.storage.setItem("".concat(this.prefix).concat(e),t)}catch(t){throw Error("Failed to write ".concat(this.type,' storage: "').concat(this.prefix).concat(e,'"'),{cause:t})}}writeJson(e,t){try{this.write(e,function(e){try{return JSON.stringify(e)}catch(e){throw Error("Failed to stringify JSON",{cause:e})}}(t))}catch(t){throw Error("Failed to write ".concat(this.type,' storage json: "').concat(this.prefix).concat(e,'"'),{cause:t})}}remove(e){try{this.storage.removeItem("".concat(this.prefix).concat(e))}catch(t){throw Error("Failed to remove ".concat(this.type,' storage: "').concat(this.prefix).concat(e,'"'),{cause:t})}}constructor(e,t){this.storage="local"!==e?window.sessionStorage:window.localStorage,this.type=e,this.prefix=void 0!==t?"".concat(t).concat("."):""}}},10534:(e,t,r)=>{"use strict";r.d(t,{Mn:()=>o,dW:()=>u,fK:()=>i});var n=r(14232),o=function(e){return e.Blue="blue",e.Gray="gray",e}({});let i=(0,n.createContext)(void 0),u=()=>{let e=(0,n.useContext)(i);if(!e)throw Error('Should use "usePartnerColor" inside of "PartnerColorContext"');return e}},14e3:(e,t,r)=>{e.exports=r(95092)},14159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return i}});let n=r(88365)._(r(14232)),o=n.default.createContext(null);function i(e){let t=(0,n.useContext)(o);t&&t(e)}},15370:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(37876);r(78090),r(15653),r(73449),r(24818),r(32719);var o=r(4361),i=r.n(o),u=r(14232),f=r(10534),s=r(33126),a=r(82065),c=r(5552),l=r(35987),h=r(14e3),d=r(17092);let p="entrance_page",y=30/1440;var g=r(61289),v=r(77336),b=r(83024);function m(e){let{Component:t,pageProps:r}=e,o=(0,u.useRef)((0,h.usePathname)()),i=(0,a.l)();return(0,u.useEffect)(()=>{i[p]||(0,d.u)(p,o.current,y)},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t,{...r}),(0,n.jsx)("div",{id:"portal-root"})]})}function E(e){let{Component:t,pageProps:r,config:o,userAgent:i}=e,h=(0,u.useState)(f.Mn.Blue);return(0,n.jsx)(s.sG,{value:o,children:(0,n.jsx)(g.WJ,{value:i,children:(0,n.jsx)(a.v,{children:(0,n.jsx)(b.Bs,{children:(0,n.jsx)(v.N,{children:(0,n.jsx)(c.qC,{children:(0,n.jsx)(l.N2,{children:(0,n.jsx)(f.fK.Provider,{value:h,children:(0,n.jsx)(m,{Component:t,pageProps:r})})})})})})})})})}E.getInitialProps=async e=>{if(!e.ctx.req)throw Error("Context response not found");let t=await i().getInitialProps(e),r=(0,s.zj)();return{...t,config:{...r,serverDate:r.serverDate.toISOString()},userAgent:(0,g.Xc)(e.ctx.req.headers)}}},15653:()=>{},15861:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}function f(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var s=[],a=!1,c=-1;function l(){a&&n&&(a=!1,n.length?s=n.concat(s):c=-1,s.length&&h())}function h(){if(!a){var e=f(l);a=!0;for(var t=s.length;t;){for(n=s,s=[];++c<t;)n&&n[c].run();c=-1,t=s.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new d(e,t)),1!==s.length||a||f(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},u=!0;try{t[e](i,i.exports,n),u=!1}finally{u&&delete r[e]}return i.exports}n.ab="//",e.exports=n(229)}()},17092:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(33126);let o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,o=(0,n.zj)().mainBaseUrl,i=window.location.host.indexOf("localhost")>=0?"":"; domain=".concat(["",...o.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join(".")),u=new Date(new Date().getTime()+24*r*36e5).toUTCString();document.cookie="".concat(encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),"=").concat(encodeURIComponent("string"==typeof t?t:JSON.stringify(t)).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),"; SameSite=Strict").concat(/^https:\/\//gi.test(o)?"; Secure":"").concat(i,"; expires=").concat(u,"; path=/;")}},18444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(34318).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20912:(e,t,r)=>{"use strict";r.d(t,{D:()=>u,K:()=>i});var n=r(14232);let o={xl:"screen and (min-width: 1500px)",lg:"screen and (min-width: 1200px)",md:"screen and (min-width: 900px)",sm:"screen and (min-width: 600px)",xs:"screen and (min-width: 374px)"},i=e=>{let t=(0,n.useRef)(null),[r,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{var r,n;!t.current&&window&&(t.current=null==(n=window)?void 0:n.matchMedia(o[e]||e));let u=()=>{i(!!t.current&&t.current.matches)};return u(),null==(r=t.current)||r.addEventListener("change",u),()=>{var e;return null==(e=t.current)?void 0:e.removeEventListener("change",u)}},[e]),r};function u(e){let[t,r]=(0,n.useState)();return(0,n.useEffect)(()=>{let t=window.matchMedia(o[e]),n=()=>{r(t.matches)};return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e]),t}},24818:()=>{},32719:()=>{},33126:(e,t,r)=>{"use strict";r.d(t,{UK:()=>d,sG:()=>h,zj:()=>c});var n=r(37876),o=r(14232),i=r(63273),u=r(65364);function f(e){let t=u.env[e];if(!t)throw Error('The "'.concat(e,'" environment variable is ').concat(void 0!==t?"empty":"not defined"));return t}function s(e,t){let r=f(e);if(void 0===t)throw Error('The "'.concat(e,'" environment variable is not defined at runtime'));if(t!==r)throw Error('The "'.concat(e,'" environment variable is not the same at build/run-times ("').concat(t,'" !== "').concat(r,'")'));return r}let a=function(){if((0,i.oc)())return;if((0,i.I8)())return{serverDate:new Date,appVersion:"",basePath:"",mainBaseUrl:"",mainApiUrl:"",savingsApiUrl:"",checkerApiUrl:"",mpScApiUrl:"",lkBaseUrl:"",lkApiUrl:"",assetsBaseUrl:"",trackerBaseUrl:"",productsApiUrl:"",productsApiKey:void 0,blocksApiUrl:"",apiUsername:void 0,apiPassword:void 0,gtmId:"",mtmUrl:"",mtmId:"",isYandexRealty:!1,isStoloto:!1,isChecker:!1};let e=new Date,t=s("APP_VERSION","1.1087.0"),r=s("BASE_PATH","/kredity"),n=f("MAIN_BASE_URL"),o=f("MAIN_API_URL"),a=f("SAVINGS_API_URL"),c=f("CREDIT_CHECKER_API_URL"),l=f("MP_SC_API_URL"),h=f("LK_BASE_URL"),d=f("LK_API_URL"),p=f("ASSETS_BASE_URL"),y=f("TRACKER_BASE_URL"),g=f("PRODUCTS_API_URL"),v=u.env.PRODUCTS_API_KEY,b=f("BLOCKS_API_URL"),m=u.env.API_USERNAME,E=u.env.API_PASSWORD,w=f("GTM_ID"),_=f("MTM_URL"),R=f("MTM_ID"),x="true"===f("BUSINESS_TOGGLE_YANDEX_REALTY");return{serverDate:e,appVersion:t,basePath:r,mainBaseUrl:n,mainApiUrl:o,savingsApiUrl:a,checkerApiUrl:c,mpScApiUrl:l,lkBaseUrl:h,lkApiUrl:d,assetsBaseUrl:p,trackerBaseUrl:y,productsApiUrl:g,productsApiKey:v,blocksApiUrl:b,apiUsername:m,apiPassword:E,gtmId:w,mtmUrl:_,mtmId:R,isYandexRealty:x,isStoloto:"true"===f("BUSINESS_TOGGLE_STOLOTO"),isChecker:"true"===f("BUSINESS_TOGGLE_CHECKER")}}();function c(){if(!a)throw Error("Config is not initialized");return a}let l=(0,o.createContext)(a);function h(e){let{value:t,children:r}=e,i=(0,o.useRef)(t).current;return a={...i,serverDate:new Date(i.serverDate)},(0,n.jsx)(l.Provider,{value:a,children:r})}function d(){let e=(0,o.useContext)(l);if(!e)throw Error("The context of the config is used outside of the provider");return e}},34318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,o.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(1677),o=r(40497);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35987:(e,t,r)=>{"use strict";r.d(t,{Ll:()=>s,N2:()=>u,yX:()=>f});var n=r(37876),o=r(14232);let i=(0,o.createContext)(null);function u(e){let{children:t}=e,r=(0,o.useRef)(null);return(0,n.jsx)(i.Provider,{value:r,children:t})}function f(){let e=(0,o.useContext)(i);if(!e)throw Error("useScrollRef must be used inside ScrollProvider");return e}function s(){let e=f();return{scrollSmooth:(0,o.useCallback)(function(){let{offset:t=0,position:r="top"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.current;if(!n)throw Error("Scroll ref is not assigned");let o="top"===r?n.getBoundingClientRect().top+window.scrollY+t:n.getBoundingClientRect().bottom+window.scrollY+t-document.documentElement.clientHeight;window.scrollTo({top:o,behavior:"smooth"})},[e])}}},37601:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61289:(e,t,r)=>{"use strict";r.d(t,{Ul:()=>a,WJ:()=>s,Xc:()=>i});var n=r(37876),o=r(14232);function i(e){return{deviceType:"mobile"===e["device-type"]?"mobile":"unknown"}}var u=function(e){return e.Mobile="mobile",e.Unknown="unknown",e}(u||{});let f=(0,o.createContext)(void 0);function s(e){let{value:t,children:r}=e;return(0,n.jsx)(f.Provider,{value:t,children:r})}function a(){return"mobile"===function(){let e=(0,o.useContext)(f);if(!e)throw Error("The context of the user agent is used outside of the provider");return e}().deviceType}},63273:(e,t,r)=>{"use strict";r.d(t,{I8:()=>u,WG:()=>f,oc:()=>i});var n=r(17892),o=r(65364);function i(){return!0}function u(){return o.env.NEXT_PHASE===n.PHASE_PRODUCTION_BUILD}r(88220).Buffer;let f=e=>window.btoa(e)},65364:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(15861)},69122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return o}});let n=""+r(38811).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function o(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return o.RedirectType},forbidden:function(){return u.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return f.unauthorized},unstable_isUnrecognizedActionError:function(){return l},unstable_rethrow:function(){return s.unstable_rethrow}});let n=r(75026),o=r(61481),i=r(69122),u=r(79331),f=r(90376),s=r(18444);class a extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new a}delete(){throw new a}set(){throw new a}sort(){throw new a}}function l(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73449:()=>{},75026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return l},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return a},permanentRedirect:function(){return s},redirect:function(){return f}});let n=r(46843),o=r(61481),i=void 0;function u(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let i=Object.defineProperty(Error(o.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return i.digest=o.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",i}function f(e,t){var r;throw null!=t||(t=(null==i||null==(r=i.getStore())?void 0:r.isAction)?o.RedirectType.push:o.RedirectType.replace),u(e,t,n.RedirectStatusCode.TemporaryRedirect)}function s(e,t){throw void 0===t&&(t=o.RedirectType.replace),u(e,t,n.RedirectStatusCode.PermanentRedirect)}function a(e){return(0,o.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,o.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function l(e){if(!(0,o.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77336:(e,t,r)=>{"use strict";r.d(t,{N:()=>s,v:()=>a});var n=r(37876),o=r(89099),i=r(14232),u=r(3187);let f=(0,i.createContext)(void 0);function s(e){let{children:t}=e,{asPath:r,query:s}=(0,o.useRouter)(),{utm_source:a,utm_medium:c,utm_campaign:l,utm_term:h,utm_content:d,click_id:p,yclid:y}=s,g=(0,u.m)(r),v=null==a?void 0:a.toString(),b=null==c?void 0:c.toString(),m=null==l?void 0:l.toString(),E=null==h?void 0:h.toString(),w=null==d?void 0:d.toString(),_=null==p?void 0:p.toString(),R=null==y?void 0:y.toString(),x=(0,i.useMemo)(()=>({pathname:g,utmSource:v,utmMedium:b,utmCampaign:m,utmTerm:E,utmContent:w,clickId:_,yandexClickId:R}),[g,v,b,m,E,w,_,R]);return(0,n.jsx)(f.Provider,{value:x,children:t})}function a(){let e=(0,i.useContext)(f);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},78090:()=>{},79331:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(38811).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82065:(e,t,r)=>{"use strict";r.d(t,{l:()=>f,v:()=>u});var n=r(37876),o=r(14232);let i=(0,o.createContext)(void 0);function u(e){let{children:t}=e,[r,u]=(0,o.useState)({});return(0,o.useEffect)(()=>{u(Object.fromEntries(document.cookie.split("; ").map(e=>e.split("="))))},[]),(0,n.jsx)(i.Provider,{value:r,children:t})}function f(){let e=(0,o.useContext)(i);if(void 0===e)throw Error("The context of the cookies is used outside of the provider");return e}},83024:(e,t,r)=>{"use strict";r.d(t,{Bs:()=>c,dO:()=>h,f3:()=>l,fH:()=>d});var n=r(37876),o=r(14232),i=r(82065),u=r(7482);let f=(0,o.createContext)(void 0),s="browserId",a="browserSessionId";function c(e){let{children:t}=e,[r,c]=(0,o.useState)({}),l=(0,i.l)();return(0,o.useEffect)(()=>{var e;let{[s]:t,[a]:r,"auth.gtm_customer_id":n,_ym_uid:o,_ur:i}=l;c({browserId:null!=t?t:(0,u.Lg)().read(s),sessionId:null!=(e=null!=r?r:(0,u.W9)().read(a))?e:(0,u.W9)().read(s),customerId:n,yandexUserId:o,userReturned:i})},[l]),(0,n.jsx)(f.Provider,{value:r,children:t})}function l(){let e=(0,o.useContext)(f);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}function h(){return l().browserId}function d(){return l().customerId}},83817:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88220:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=s(e),u=i[0],f=i[1],a=new o((u+f)*3/4-f),c=0,l=f>0?u-4:u;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],a[c++]=t>>16&255,a[c++]=t>>8&255,a[c++]=255&t;return 2===f&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,a[c++]=255&t),1===f&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,a[c++]=t>>8&255,a[c++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],u=0,f=n-o;u<f;u+=16383)i.push(function(e,t,n){for(var o,i=[],u=t;u<n;u+=3)o=(e[u]<<16&0xff0000)+(e[u+1]<<8&65280)+(255&e[u+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,u,u+16383>f?f:u+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=i.length;u<f;++u)r[u]=i[u],n[i.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function u(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e){var n=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!f.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|d(n,o),s=u(i),a=s.write(n,o);return a!==i&&(s=s.slice(0,a)),s}if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),f.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return f.from(c,t,r);var p=function(e){if(f.isBuffer(e)){var t=0|h(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?u(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return a(e),u(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),r=u(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=f,t.SlowBuffer=function(e){return+e!=e&&(e=0),f.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return(a(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)},f.allocUnsafe=function(e){return c(e)},f.allocUnsafeSlow=function(e){return c(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return S(e).length;default:if(o)return n?-1:O(e).length;t=(""+t).toLowerCase(),o=!0}}function p(e,t,r){var o,i,u,f=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=P[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=this,i=t,u=r,0===i&&u===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,u));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(f)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),f=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,o)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,u=1,f=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;u=2,f/=2,s/=2,r/=2}function a(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(o){var c=-1;for(i=r;i<f;i++)if(a(e,i)===a(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*u}else -1!==c&&(i-=i-c),c=-1}else for(r+s>f&&(r=f-s),i=r;i>=0;i--){for(var l=!0,h=0;h<s;h++)if(a(e,i+h)!==a(t,h)){l=!1;break}if(l)return i}return -1}f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(C(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:+(n<r)},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=f.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(C(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},f.byteLength=d,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},f.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(f.prototype[i]=f.prototype.inspect),f.prototype.compare=function(e,t,r,n,o){if(C(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,u=r-t,s=Math.min(i,u),a=this.slice(n,o),c=e.slice(t,r),l=0;l<s;++l)if(a[l]!==c[l]){i=a[l],u=c[l];break}return i<u?-1:+(u<i)},f.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,u,f,s,a=e[o],c=null,l=a>239?4:a>223?3:a>191?2:1;if(o+l<=r)switch(l){case 1:a<128&&(c=a);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&a)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],u=e[o+2],(192&i)==128&&(192&u)==128&&(s=(15&a)<<12|(63&i)<<6|63&u)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],u=e[o+2],f=e[o+3],(192&i)==128&&(192&u)==128&&(192&f)==128&&(s=(15&a)<<18|(63&i)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(c=s)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=l}var h=n,d=h.length;if(d<=4096)return String.fromCharCode.apply(String,h);for(var p="",y=0;y<d;)p+=String.fromCharCode.apply(String,h.slice(y,y+=4096));return p}function m(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function E(e,t,r,n,o,i){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,i){return t*=1,r>>>=0,i||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,i){return t*=1,r>>>=0,i||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,u,f,s,a,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var u=0;u<n;++u){var f,s=parseInt(t.substr(2*u,2),16);if((f=s)!=f)break;e[r+u]=s}return u}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,T(O(e,this.length-o),this,o,i);case"ascii":return u=t,f=r,T(A(e),this,u,f);case"latin1":case"binary":return function(e,t,r,n){return T(A(t),e,r,n)}(this,e,t,r);case"base64":return s=t,a=r,T(S(e),this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,l=r,T(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,l);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},f.prototype.readUInt8=function(e,t){return e>>>=0,t||m(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return(e>>>=0,t||m(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||m(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||m(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||m(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||m(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||m(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||m(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;E(this,e,t,r,o,0)}var i=1,u=0;for(this[t]=255&e;++u<r&&(i*=256);)this[t+u]=e/i&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;E(this,e,t,r,o,0)}var i=r-1,u=1;for(this[t+i]=255&e;--i>=0&&(u*=256);)this[t+i]=e/u&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,e,t,r,o-1,-o)}var i=0,u=1,f=0;for(this[t]=255&e;++i<r&&(u*=256);)e<0&&0===f&&0!==this[t+i-1]&&(f=1),this[t+i]=(e/u|0)-f&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,e,t,r,o-1,-o)}var i=r-1,u=1,f=0;for(this[t+i]=255&e;--i>=0&&(u*=256);)e<0&&0===f&&0!==this[t+i+1]&&(f=1),this[t+i]=(e/u|0)-f&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var u=f.isBuffer(e)?e:f.from(e,n),s=u.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=u[o%s]}return this};var x=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],u=0;u<n;++u){if((r=e.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319||u+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function S(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){t.read=function(e,t,r,n,o){var i,u,f=8*o-n-1,s=(1<<f)-1,a=s>>1,c=-7,l=r?o-1:0,h=r?-1:1,d=e[t+l];for(l+=h,i=d&(1<<-c)-1,d>>=-c,c+=f;c>0;i=256*i+e[t+l],l+=h,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+e[t+l],l+=h,c-=8);if(0===i)i=1-a;else{if(i===s)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,n),i-=a}return(d?-1:1)*u*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var u,f,s,a=8*i-o-1,c=(1<<a)-1,l=c>>1,h=5960464477539062e-23*(23===o),d=n?0:i-1,p=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(f=+!!isNaN(t),u=c):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+l>=1?t+=h/s:t+=h*Math.pow(2,1-l),t*s>=2&&(u++,s/=2),u+l>=c?(f=0,u=c):u+l>=1?(f=(t*s-1)*Math.pow(2,o),u+=l):(f=t*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;e[r+d]=255&f,d+=p,f/=256,o-=8);for(u=u<<o|f,a+=o;a>0;e[r+d]=255&u,d+=p,u/=256,a-=8);e[r+d-p]|=128*y}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},u=!0;try{t[e](i,i.exports,n),u=!1}finally{u&&delete r[e]}return i.exports}n.ab="//",e.exports=n(72)}()},89099:(e,t,r)=>{e.exports=r(16296)},90376:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(38811).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return s.ReadonlyURLSearchParams},RedirectType:function(){return s.RedirectType},ServerInsertedHTMLContext:function(){return a.ServerInsertedHTMLContext},forbidden:function(){return s.forbidden},notFound:function(){return s.notFound},permanentRedirect:function(){return s.permanentRedirect},redirect:function(){return s.redirect},unauthorized:function(){return s.unauthorized},unstable_isUnrecognizedActionError:function(){return c.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return s.unstable_rethrow},useParams:function(){return y},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return h},useSelectedLayoutSegment:function(){return v},useSelectedLayoutSegments:function(){return g},useServerInsertedHTML:function(){return a.useServerInsertedHTML}});let n=r(14232),o=r(15792),i=r(88797),u=r(37601),f=r(1744),s=r(69591),a=r(14159),c=r(83817),l=void 0;function h(){let e=(0,n.useContext)(i.SearchParamsContext);return(0,n.useMemo)(()=>e?new s.ReadonlyURLSearchParams(e):null,[e])}function d(){return null==l||l("usePathname()"),(0,n.useContext)(i.PathnameContext)}function p(){let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function y(){return null==l||l("useParams()"),(0,n.useContext)(i.PathParamsContext)}function g(e){void 0===e&&(e="children"),null==l||l("useSelectedLayoutSegments()");let t=(0,n.useContext)(o.LayoutRouterContext);return t?function e(t,r,n,o){let i;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)i=t[1][r];else{var s;let e=t[1];i=null!=(s=e.children)?s:Object.values(e)[0]}if(!i)return o;let a=i[0],c=(0,u.getSegmentValue)(a);return!c||c.startsWith(f.PAGE_SEGMENT_KEY)?o:(o.push(c),e(i,r,!1,o))}(t.parentTree,e):null}function v(e){void 0===e&&(e="children"),null==l||l("useSelectedLayoutSegment()");let t=g(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===f.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92),t(16296))),_N_E=e.O()}]);