1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[765],{24697:function(u,i,o){"use strict";o.d(i,{y1:function(){return c}});var l=o(2784);function c(u,i,o){var s=this,a=(0,l.useRef)(null),f=(0,l.useRef)(0),d=(0,l.useRef)(null),m=(0,l.useRef)([]),v=(0,l.useRef)(),w=(0,l.useRef)(),h=(0,l.useRef)(u),p=(0,l.useRef)(!0);h.current=u;var _="undefined"!=typeof window,g=!i&&0!==i&&_;if("function"!=typeof u)throw TypeError("Expected a function");i=+i||0;var E=!!(o=o||{}).leading,y=!("trailing"in o)||!!o.trailing,R="maxWait"in o,S="debounceOnServer"in o&&!!o.debounceOnServer,b=R?Math.max(+o.maxWait||0,i):null;return(0,l.useEffect)(function(){return p.current=!0,function(){p.current=!1}},[]),(0,l.useMemo)(function(){var r=function(u){var i=m.current,o=v.current;return m.current=v.current=null,f.current=u,w.current=h.current.apply(o,i)},n=function(u,i){g&&cancelAnimationFrame(d.current),d.current=g?requestAnimationFrame(u):setTimeout(u,i)},t=function(u){if(!p.current)return!1;var o=u-a.current;return!a.current||o>=i||o<0||R&&u-f.current>=b},e=function(u){return d.current=null,y&&m.current?r(u):(m.current=v.current=null,w.current)},c=function r(){var u=Date.now();if(t(u))return e(u);if(p.current){var o=i-(u-a.current);n(r,R?Math.min(o,b-(u-f.current)):o)}},A=function(){if(_||S){var u=Date.now(),o=t(u);if(m.current=[].slice.call(arguments),v.current=s,a.current=u,o){if(!d.current&&p.current)return f.current=a.current,n(c,i),E?r(a.current):w.current;if(R)return n(c,i),r(a.current)}return d.current||n(c,i),w.current}};return A.cancel=function(){d.current&&(g?cancelAnimationFrame(d.current):clearTimeout(d.current)),f.current=0,m.current=a.current=v.current=d.current=null},A.isPending=function(){return!!d.current},A.flush=function(){return d.current?e(Date.now()):w.current},A},[E,R,i,b,y,g,_,S])}},16305:function(u,i,o){"use strict";o.d(i,{Lm:function(){return useWindowWidth}});var l=o(2784),dist_module=u=>{let i=l.useRef(u);return l.useEffect(()=>{i.current=u}),i};let useDebounceCallback=(u,i=100,o=!1)=>{let s=dist_module(u),a=l.useRef(),f=[i,o,s];function _ref(){a.current&&clearTimeout(a.current),a.current=void 0}function _ref2(){a.current=void 0}return l.useEffect(()=>_ref,f),l.useCallback(function(){let u=arguments,{current:l}=a;if(void 0===l&&o)return a.current=setTimeout(_ref2,i),s.current.apply(null,u);l&&clearTimeout(l),a.current=setTimeout(()=>{a.current=void 0,s.current.apply(null,u)},i)},f)},useDebounce=(u,i,o)=>{let s=l.useState(u);return[s[0],useDebounceCallback(s[1],i,o)]};var event_dist_module=function(u,i,o,s){let a=l.useRef(o),f=l.useRef(s);l.useEffect(()=>{a.current=o,f.current=s}),l.useEffect(()=>{let o=u&&"current"in u?u.current:u;if(!o)return;let l=0;function listener(...u){l||a.current.apply(this,u)}o.addEventListener(i,listener);let s=f.current;return()=>{l=1,o.removeEventListener(i,listener),s&&s()}},[u,i])};let s={},a="undefined"==typeof window?null:window,f=a&&void 0!==a.visualViewport?a.visualViewport:null,getSize=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],useWindowSize=function(u){void 0===u&&(u=s);let{wait:i,leading:o,initialWidth:l=0,initialHeight:d=0}=u,[m,v]=useDebounce("undefined"==typeof document?[l,d]:getSize,i,o),setSize=()=>v(getSize);return event_dist_module(a,"resize",setSize),event_dist_module(f,"resize",setSize),event_dist_module(a,"orientationchange",setSize),m},useWindowWidth=u=>useWindowSize(u)[0]},98746:function(u,i,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return o(86113)}])},86113:function(u,i,o){"use strict";o.r(i);var l=o(52322);o(2784);var s=o(21805),a=o(29538),f=o.n(a),d=o(41220),m=o(42289),v=o(24239),w=o(97435),h=o(3268),p=o(54590),_=o(51044);i.default=()=>{let{updateUser:u}=(0,w.a)();return f()(async()=>{try{await v.Z.logout()}catch(u){}u(null),s.Z.remove(m.Z.authCookieName),s.Z.remove(m.Z.authCookieNameJs),(0,_.Ew)(),h.Z.clean(),await (0,p.AL)(),setTimeout(()=>{window.location.href="/"},50)},[]),(0,l.jsx)(d.TK,{})}},51044:function(u,i,o){"use strict";o.d(i,{Ay:function(){return getSearchParamsFromURL},Ew:function(){return removeAutotestAuthUserId},Yq:function(){return removeUndefinedFields}});var l=o(26975);function removeUndefinedFields(u){Object.keys(u).forEach(i=>
1{var o;return null!==(o=u[i])&&void 0!==o?o:delete u[i]})}let getParamsFromURL=u=>{var i,o;let l=u?new URL(u):null;return{searchParams:null==l?void 0:l.searchParams,slug:null==l?void 0:null===(o=l.pathname)||void 0===o?void 0:null===(i=o.split("/"))||void 0===i?void 0:i.slice(2)}},getSearchParamsFromURL=(u,i)=>{if(!u||i&&!window.location.origin)return{};let o=window.location.origin,s=i?"".concat(o).concat(null!=u?u:""):u,{searchParams:a,slug:f}=getParamsFromURL(s),d=null==a?void 0:a.get("lat"),m=null==a?void 0:a.get("lng"),v=null==a?void 0:a.get("zoom");return{slug:f,lat:d&&(0,l.Xp)(d),lng:m&&(0,l.Xp)(m),zoom:v}};function removeAutotestAuthUserId(){window.localStorage.removeItem("autotestAuthUserId")}},29538:function(u,i,o){"use strict";var l=o(2784);function useAsyncEffect(u,i,o){var s="function"==typeof i;l.useEffect(function(){var o,l=!0;return Promise.resolve(u(function(){return l})).then(function(u){o=u}),function(){l=!1,s&&i(o)}},s?o:i)}u.exports=useAsyncEffect,u.exports.useAsyncEffect=useAsyncEffect}},function(u){u.O(0,[4152,1809,1220,9774,2888,179],function(){return u(u.s=98746)}),_N_E=u.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.