1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6],{16463:function(e,t,r){var n=r(71169);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},58064:function(e,t,r){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return u}});let n=r(74590);function u(e){let{createServerReference:t}=r(12139);return t(e,n.callServer)}},70006:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});var n=r(16463);r(74590);var u=(0,r(58064).$)("6d69f692d78a8846fad1639385fd46ffd3739cd7"),c=r(20955);function a(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function o(e,t){if(!function(e,t){if("string"!=typeof e)return!1;let{pathname:r}=a(e);return r===t||r.startsWith("".concat(t,"/"))}(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/".concat(r)}let s=(e,t)=>{let{pathname:r,query:n,hash:u}=a(e);return t?r.endsWith("/")?"".concat(r).concat(n).concat(u):"".concat(r,"/").concat(n).concat(u):"".concat(r.replace(/\/$/,"")||"/").concat(n).concat(u)};function i(e){let{refresh:t,zIndex:i,basePath:l="",trailingSlash:d=!1}=e,f=(0,n.useRouter)(),h=(0,c.useRef)(f),[p,v]=(0,c.useState)();(0,c.useEffect)(()=>{h.current=f},[f]),(0,c.useEffect)(()=>{let e=function(e={}){let t=new AbortController;return Promise.all([r.e(1145),r.e(6912)]).then(r.bind(r,30386)).then(({renderVisualEditing:r})=>{let{signal:n}=t;n.aborted||r(n,e)}),()=>{t.abort()}}({zIndex:i,refresh:t||(e=>{switch(e.source){case"manual":return e.livePreviewEnabled?n():c();case"mutation":return e.livePreviewEnabled?a():s();default:throw Error("Unknown refresh source",{cause:e})}}),history:{subscribe:e=>(v(()=>e),()=>v(void 0)),update:e=>{switch(e.type){case"push":return h.current.push(o(e.url,l));case"pop":return h.current.back();case"replace":return h.current.replace(o(e.url,l));default:throw Error("Unknown update type: ".concat(e.type))}}}}),n=()=>(console.debug("Live preview is setup, calling router.refresh() to refresh the server components without refetching cached data"),h.current.refresh(),Promise.resolve()),c=()=>(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),u()),a=()=>(console.debug("Live preview is setup, mutation is skipped assuming its handled by the live preview"),!1),s=()=>(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),u());return()=>e()},[l,t,i]);let b=(0,n.usePathname)(),m=(0,n.useSearchParams)();return(0,c.useEffect)(()=>{p&&p({type:"push",url:s(function(e,t){if(!e.startsWith("/")||!t)return e;if("/"===e&&t)return t;let{pathname:r,query:n,hash:u}=a(e);return"".concat(t).concat(r).concat(n).concat(u)}("".concat(b).concat((null==m?void 0:m.size)?"?".concat(m):""),l),d)})},[l,p,b,m,d]),null}}}]);
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.