PageSourceSearch

https://deepsnowkelkat.com/_next/static/chunks/link-DWAEmR5r.js

js deepsnowkelkat.com collected 2026-10-09 01:00:31 UTC 12,600 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/vinext-BkU5BShN.js","_next/static/chunks/rolldown-runtime-B0Z9INg1.js","_next/static/chunks/framework-BgKh9psm.js"])))=>i.map(i=>d[i]);
2import{a as e,r as t}from"./rolldown-runtime-B0Z9INg1.js";import{i as n,r}from"./framework-BgKh9psm.js";import{Bt as i,Ct as a,Ht as o,St as s,Vt as c,_i as l,a as u,ai as d,at as ee,b as te,bi as f,c as ne,d as p,dt as m,f as re,ft as h,g as ie,gi as ae,gt as oe,h as se,ht as g,l as ce,lt as _,m as le,mt as v,nt as y,o as b,ot as x,p as S,pt as C,rt as w,s as ue,u as T,ut as E,vi as D,xt as O}from"./vinext-BkU5BShN.js";import{i as k,n as A,t as j}from"./query-bcr4G9Rw.js";D(),i(),m(),_(),A(),d(),a();var M=t({canAutoPrefetchFullAppRoute:()=>S,default:()=>$,resolveAutoAppRoutePrefetch:()=>se,resolveLinkPrefetchMode:()=>W,useLinkStatus:()=>R});a(),ee(),le();var N=e(n(),1),P=e(r(),1);w();var F=null,I=null;function de(){return I??=y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.z(),e.V)).then(e=>(F=e,e)),__vite__mapDeps([0,1,2]))}var L=(0,N.createContext)({pending:!1});function R(){return(0,N.useContext)(L)}var z=0;function B(){z+=1,b()}f({notifyLinkNavigationStart:B});var V=``,H=!1;function fe(e){if(typeof e==`string`)return e;let t=e.pathname??``;if(e.query){let n=k(e.query);t=j(t,n)}return e.hash&&(t+=e.hash.startsWith(`#`)?e.hash:`#${e.hash}`),t}function pe(e){return e}function U(e){let t=e.split(`?`),n=t.shift()??``,r=t.join(`?`);return n.replace(/\\/g,`/`).replace(/\/\/+/g,`/`)+(r?`?${r}`:``)}function me(e){if(e.startsWith(`//`))return e;let t=e.match(/^[a-z][a-z0-9+.-]*:\/\//i),n=t?e.slice(t[0].length):e;if(!(n.split(`?`,1)[0]||``).match(/(\/\/|\\)/))return e;let r=p();console.error(`Invalid href '${e}' passed to next/router in page: '${r}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let i=U(n);return(t?t[0]:``)+i}function W(e,t){return t||e===!1?`disabled`:e===!0?`full`:`auto`}function he(){return l()?`app`:`pages`}function ge(e,t,n=`low`,r,i){let a=z,o=T({href:e,basePath:V,currentOrigin:window.location.origin});if(o==null)return;let s=v(o,window.location.href,V,H),c=r===void 0?o:T({href:r,basePath:V,currentOrigin:window.location.origin})??o;v(c,window.location.href,V,H);let u=new URL(s,window.location.href);if(u.origin===window.location.origin&&u.pathname===window.location.pathname&&u.search===window.location.search||t===`auto`&&n===`low`&&u.origin===window.location.origin&&u.pathname===window.location.pathname&&u.search!==window.location.search&&u.hash!==``)return;let d=()=>{(async()=>{if(l()){if(E(window.navigator?.userAgent??``))return;let[e,{AppElementsWire:r},i,{resolveAppPrefetchRscRequest:c},{APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:l,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:u},d,ee]=await Promise.all([de(),y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.Er(),e.Cr)),__vite__mapDeps([0,1,2])),y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.Dn(),e.Sn)),__vite__mapDeps([0,1,2])),y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.v(),e._)),__vite__mapDeps([0,1,2])),y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.Nn(),e.Mn)),__vite__mapDeps([0,1,2])),y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.Qr(),e.Zr)),__vite__mapDeps([0,1,2])),null]);if(a!==z)return;let{getPrefetchInterceptionContext:te,getPrefetchCache:f,getPrefetchedUrls:ne,getMountedSlotsHeader:p,createAppPrefetchRequestHeaders:m,discardLearningOnlyPrefetchCacheEntry:re,fetchRouteTreeGatedPrefetch:h,hasFreshLearningOnlyPrefetchCacheEntry:ae,hasSearchAgnosticPrefetchShellForRoute:oe,hasPrefetchCacheEntryForNavigation:g,prefetchRscResponse:ce,prepareNavigationPrefetchSnapshot:_,DYNAMIC_NAVIGATION_CACHE_TTL:le,PREFETCH_CACHE_TTL:v}=e,{createRscRequestUrl:b}=i,{NEXT_ROUTER_PREFETCH_HEADER:S,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:C,VINEXT_MOUNTED_SLOTS_HEADER:w}=d,ue=o,T=te(s),D=p(),O=t===`auto`?se(ue):ie();if(!O.shouldPrefetch)return;let k=!O.cacheForNavigation,A=new URL(s,window.location.href).search!==``,j=t===`auto`&&k&&A,M=j&&oe(await b(s,new Headers),T,D),N=m({interceptionContext:T,fetchPriority:n,prefetchKind:t===`full`?`full`:`auto`,renderMode:k?M?u:j?l:u:void 0});D&&N.set(w,D);let P=k||t===`auto`,F=O.requiresRouteTreePrefetch===!0;F&&t===`auto`&&O.cacheForNavigation?(N.set(S,`1`),N.set(C,`/__PAGE__`)):P&&(N.set(S,`1`),N.set(C,`1`));let{additionalRscUrls:I,rscUrl:L}=await c({fullHref:s,headers:N,rewrittenPrefetchHref:null});if(a!==z)return;let R=r.encodeCacheKey(L,T),B=ne();if(O.cacheForNavigation&&re(L,T),!O.cacheForNavigation&&ae(L,T))return;let V=()=>x(e=>fetch(L,{headers:N,credentials:`include`,priority:n,signal:e,purpose:`prefetch`}),n),H=async()=>{let e=m({interceptionContext:T,fetchPriority:n,renderMode:u});e.set(S,`1`),e.set(C,`1`),D&&e.set(w,D);let t=await b(s,e),i=r.encodeCacheKey(t,T),a=f(),o=a.get(i);o===void 0&&(ne().add(i),ce(t,x(r=>fetch(t,{headers:e,credentials:`include`,priority:n,signal:r,purpose:`prefetch`}),n),T,D,void 0,{cacheForNavigation:!1,optimisticRouteShell:!0,prefetchKind:`loading-shell`}),o=a.get(i)),await o?.pending?.catch(()=>{})},fe=async()=>{let e=m({interceptionContext:T,fetchPriority:n,renderMode:u});e.set(S,`1`),e.set(C,`1`),D&&e.set(w,D);let t=await b(s,e);return fetch(t,{method:`HEAD`,headers:e,credentials:`include`,priority:n,purpose:`prefetch`})},pe=O.cacheForNavigation&&g(L,T,D);if(pe||O.cacheForNavigation&&g(L,T,D,{additionalRscUrls:I})){!pe&&!B.has(R)&&I.length>0&&O.prefetchShellFirst&&D===null&&(B.add(R),fe().then(e=>e.arrayBuffer()).catch(()=>{}));return}B.add(R);let U=F&&t===`auto`&&O.prefetchShellFirst,me=t===`full`&&A&&O.prefetchShellFirst&&D===null,W=(t===`full-after-shell`||me)&&O.prefetchShellFirst,he=O.cacheForNavigation&&(U||W)?(async()=>W?(await H(),V()):h({fetchFullRscPayload:V,fetchRouteTree:(e,t)=>
2x(r=>fetch(e,{headers:t,credentials:`include`,priority:n,signal:r,purpose:`prefetch`}),n),fullHref:s,headers:N,interceptionContext:T,mountedSlotsHeader:D}))():V();t===`full`&&O.cacheForNavigation&&O.prefetchShellFirst&&D===null&&!me&&H(),ce(L,he,T,D,void 0,{cacheForNavigation:O.cacheForNavigation,fallbackTtlMs:O.fallbackTtl===`dynamic`?le:v,dynamicStaleTime:O.dynamicStaleTime,optimisticRouteShell:k,prefetchKind:k?`loading-shell`:`navigation`,prepareSnapshot:O.cacheForNavigation?_:void 0,searchAgnosticShell:j&&!M})}})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)})};if(n===`high`||l()){d();return}(window.requestIdleCallback??(e=>setTimeout(e,100)))(d)}async function _e(e){if(!l())return;let[{getPrefetchCache:t},{stripRscCacheBustingSearchParam:n,stripRscSuffix:r}]=await Promise.all([de(),y(()=>import(`./vinext-BkU5BShN.js`).then(e=>(e.Dn(),e.Sn)),__vite__mapDeps([0,1,2]))]),i;try{i=new URL(v(e,window.location.href,V,H),window.location.href)}catch{return}for(let[e,a]of t()){if(a.optimisticRouteShell===!0||a.prefetchKind===`route-tree`)continue;let[t]=e.split(`\0`,1),o;try{o=new URL(t,window.location.href)}catch{continue}n(o),r(o.pathname)===i.pathname&&o.search===i.search&&(a.cacheForNavigation=!0)}}var G=null,K=new WeakMap,ve=new Set,q=[],J=!1;function Y(){for(J=!1;;){let e=q.pop();if(!e)return;e.queuedViewportPrefetch=!1,e.isVisible&&e.routerMode===`app`&&ge(e.href,e.mode,`low`,e.pagesRouteHref)}}function X(e){e.queuedViewportPrefetch||(e.queuedViewportPrefetch=!0,q.push(e),!J&&(J=!0,queueMicrotask(Y)))}function ye(e,t){if(e.isVisible=t,t){if(ve.add(e),e.routerMode===`pages`&&e.viewportPrefetched)return;e.routerMode===`app`?X(e):ge(e.href,e.mode,`low`,e.pagesRouteHref,e.locale),e.viewportPrefetched=!0}else ve.delete(e)}function be(){f({pingVisibleLinks:xe})}function xe(){for(let e of ve)e.isVisible&&e.routerMode===`app`&&X(e)}function Se(){return typeof IntersectionObserver>`u`?null:G||(G=new IntersectionObserver(e=>{for(let t of e){let e=K.get(t.target);e&&ye(e,t.isIntersecting||t.intersectionRatio>0)}},{rootMargin:`250px`}),G)}function Z(){return window.__VINEXT_DEFAULT_LOCALE__}function Q(){return re({basePath:V,domainLocales:Ce(),hostname:we()})}function Ce(){return window.__NEXT_DATA__?.domainLocales}function we(){return window.location.hostname}function Te(e,t){return s(e,t,{basePath:V,currentHostname:we(),domainItems:Ce()})}function Ee(e,t){if(e!==`/`&&!e.startsWith(`/?`)&&!e.startsWith(`/#`))return;let n;try{n=new URL(e,`http://vinext.local`)}catch{return}if(n.origin===`http://vinext.local`&&n.pathname===`/`)return`/${t}${n.search}${n.hash}`}function De(e,t){if(t===!1)return e;let n=t??Q();if(n===void 0||h(e))return e;let r=Te(e,n);if(r)return r;let i=Z()??``;if(n.toLowerCase()===i.toLowerCase()){let t=Ee(e,n);if(t)return t}return O(e,n,i)}var $=(0,N.forwardRef)(function({href:e,as:t,replace:n=!1,prefetch:r,scroll:i=!0,shallow:a=!1,children:s,onClick:l,onMouseEnter:d,onTouchStart:ee,onNavigate:f,unstable_dynamicOnHover:p=!1,legacyBehavior:m=!1,passHref:re=!1,transitionTypes:ie,...se},_){(0,N.useContext)(te);let le=t===void 0?void 0:fe(t),y=fe(e),{locale:b,...x}=se,S=s;m&&(typeof s==`string`||typeof s==`number`)&&(S=N.createElement(`a`,null,s)),h(y)&&(y.startsWith(`//`)||g(y,V));let w=le??void 0??y,E=typeof w==`string`&&w.startsWith(`#`)&&!ae()?.functions.navigate?pe(w):w,D=typeof E==`string`?me(E):E,O=typeof D==`string`&&c(D),k=De(O?`/`:D,b),A=C(k,H),j=A,M=C(oe(A,V),H),[I,R]=(0,N.useState)(!1),z=(0,N.useRef)(!0),B=(0,N.useRef)(null),U=(0,N.useRef)(e=>{z.current&&R(e)});(0,N.useEffect)(()=>{z.current=!0;let e=U.current;return()=>{z.current=!1,B.current?.(),B.current=null,e&&u(e)}},[]);let G=(0,N.useRef)(null),q=he(),J=q===`pages`&&a,Y=!J&&r,X=W(Y,O),ye=ce({nodeEnv:`production`,prefetch:Y,isDangerous:O}),xe=(0,N.useCallback)(e=>{G.current=e,typeof _==`function`?_(e):_&&(_.current=e)},[_]);(0,N.useEffect)(()=>{if(!ye)return;let e=G.current;if(!e)return;let t=T({href:A,basePath:V,currentOrigin:window.location.origin});if(t==null)return;let n=Se();if(!n)return;be();let r={href:t,isVisible:!1,locale:b,mode:X,pagesRouteHref:j===A?void 0:T({href:j,basePath:V,currentOrigin:window.location.origin})??void 0,queuedViewportPrefetch:!1,routerMode:q,viewportPrefetched:!1};return K.set(e,r),n.observe(e),()=>{n.unobserve(e),K.delete(e),ve.delete(r),r.isVisible=!1}},[ye,X,q,A,j,b]);let Z=(0,N.useCallback)(()=>
2{if(J||!ne({nodeEnv:`production`,prefetch:Y,isDangerous:O,routerMode:q}))return;let e=p?`full-after-shell`:X;if(p&&G.current){let e=K.get(G.current);e&&(e.mode=`full-after-shell`),_e(A)}ge(A,e,`high`,j===A?void 0:j,b)},[Y,O,J,X,q,A,j,b,p]),Q=(0,N.useCallback)(()=>{if(q!==`pages`||typeof window.requestAnimationFrame!=`function`){Z();return}B.current?.();let e=window.requestAnimationFrame(()=>{B.current=null,Z()});B.current=()=>window.cancelAnimationFrame(e)},[Z,q]),Ce=(0,N.useCallback)(e=>{d?.(e),Q()},[d,Q]),we=(0,N.useCallback)(e=>{ee?.(e),Q()},[ee,Q]),Te=async(e,t={})=>{if(B.current?.(),B.current=null,!t.skipLinkOnClick&&l&&l(e),e.defaultPrevented||e.currentTarget.hasAttribute(`download`)||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.currentTarget.target&&e.currentTarget.target!==`_self`)return;let r=A;if(h(D)){let t=g(D,V);if(t==null){n&&(e.preventDefault(),window.location.replace(D));return}r=t}e.preventDefault();let a=!!ae()?.functions.navigate,o=v(r,window.location.href,V,H);if(f)try{let e=new URL(o,window.location.origin),t=!1,n={url:e,preventDefault(){t=!0},get defaultPrevented(){return t}};if(f(n),n.defaultPrevented)return}catch{}if(a){let{navigateClientSide:e}=F??await de(),t=U.current;t&&ue(t),R(!0),N.startTransition(()=>{e(r,n?`replace`:`push`,i,!1).finally(()=>{z.current&&R(!1),t&&u(t)})});return}n?window.location.replace(o):window.location.assign(o)},Ee=x,$=N.useMemo(()=>({pending:I}),[I]);if(O){let e=e=>{l&&l(e),o()};if(m){let e=N.Children.only(S),t=e.props.onClick,n=e.props.ref,r=N.cloneElement(e,{ref:e=>{G.current=e,typeof n==`function`?n(e):n&&(n.current=e)},onClick:e=>{t&&t(e),o()}});return(0,P.jsx)(L.Provider,{value:$,children:r})}return(0,P.jsx)(L.Provider,{value:$,children:(0,P.jsx)(`a`,{ref:xe,onClick:e,onMouseEnter:Ce,onTouchStart:we,...Ee,children:S})})}if(m){let e=N.Children.only(S),t=e.props,n=e.type===`a`&&`href`in t,r=re||e.type===`a`&&!n,i=t.onClick,a=t.onMouseEnter,o=t.onTouchStart,s=t.ref,c={ref:e=>{G.current=e,typeof s==`function`?s(e):s&&(s.current=e)},onClick:e=>{if(i&&i(e),!e.defaultPrevented)return Te(e,{skipLinkOnClick:!0})},onMouseEnter:e=>{a&&a(e),Z()},onTouchStart:e=>{o&&o(e),Z()}};r&&(c.href=M);let l=N.cloneElement(e,c);return(0,P.jsx)(L.Provider,{value:$,children:l})}return(0,P.jsx)(L.Provider,{value:$,children:(0,P.jsx)(`a`,{ref:xe,href:M,onClick:Te,onMouseEnter:Ce,onTouchStart:we,...Ee,children:S})})});export{M as n,$ as t};

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.