!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c9a11339-d448-4de8-bd23-baec75654b53",e._sentryDebugIdIdentifier="sentry-dbid-c9a11339-d448-4de8-bd23-baec75654b53")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{69299:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9450)}])},71575:function(e,n,t){"use strict";t.d(n,{s:function(){return o}});var r=t(31549),u=t(44194),d=t(71401),i=t(22167),s=t(38442),a=t(63422);let o=e=>{let{children:n}=e,{me:t,loading:o}=(0,s.KR)(),{replace:f,query:l}=(0,i.useRouter)(),c=(0,d.usePathname)(),b=!!(null==t?void 0:t.type)&&!o,_=e=>{e!==c&&f({pathname:e,query:l})};return((0,u.useEffect)(()=>{var e,n;if(!b)return;if(t.type!==a.FWD.Operator){_("/map");return}let r=null===(n=t.operator)||void 0===n?void 0:null===(e=n.marketplaceSettings)||void 0===e?void 0:e.enabled;if("/"===c||!r&&"/market"===c){_("/buildings");return}},[t,o,c]),b)?(0,r.jsx)(r.Fragment,{children:n}):null}},9450:function(e,n,t){"use strict";t.r(n);var r=t(71575);n.default=r.s}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=69299)}),_N_E=e.O()}]);