PageSourceSearch

https://app.procarfinder.com/_next/static/chunks/vinext-CENhfBcl.js

js procarfinder.com collected 2026-09-24 14:51:09 UTC 143,726 bytes, 32 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/hybrid-client-route-owner-CT-z-rcc.js","_next/static/chunks/query-DugiHe4Q.js"])))=>i.map(i=>d[i]);
2import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{i as r,n as i,r as a}from"./framework-DTZGTDtF.js";var o=t(r(),1);function s(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var c=Symbol.for(`vinext.navigationRuntime`),l=[`boundaries`,`defaults`,`interceptions`,`interceptionsBySlotId`,`layouts`,`pages`,`rootBoundaries`,`routeHandlers`,`routes`,`slotBindings`,`slots`,`templates`];function u(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function d(){return window}function f(e){return s(e)?m(Reflect.get(e,`clearNavigationCaches`))&&m(Reflect.get(e,`commitHashNavigation`))&&m(Reflect.get(e,`navigateExternal`))&&m(Reflect.get(e,`navigate`))&&m(Reflect.get(e,`getPrefetchRouterState`))&&m(Reflect.get(e,`notifyLinkNavigationStart`))&&m(Reflect.get(e,`pingVisibleLinks`))&&m(Reflect.get(e,`preparePrefetchResponse`))&&m(Reflect.get(e,`claimCurrentHistoryTreeSnapshot`))&&m(Reflect.get(e,`commitAppOwnedHistoryStateWrite`)):!1}function p(e){return typeof e==`string`||Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function ee(e){if(!s(e))return!1;let t=Reflect.get(e,`pathname`),n=Reflect.get(e,`searchParams`);return typeof t==`string`&&Array.isArray(n)&&n.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)}function te(e){return s(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function ne(e){if(!s(e))return!1;let t=Reflect.get(e,`done`),n=Reflect.get(e,`dynamicStaleTimeSeconds`),r=Reflect.get(e,`initialCacheKind`),i=Reflect.get(e,`searchParamsFromBrowser`),a=Reflect.get(e,`nav`),o=Reflect.get(e,`params`),c=Reflect.get(e,`rsc`),l=Reflect.get(e,`staleTimeSeconds`);return(t===void 0||typeof t==`boolean`)&&re(n)&&(r===void 0||r===`dynamic`||r===`static`)&&(i===void 0||typeof i==`boolean`)&&(a===void 0||ee(a))&&(o===void 0||te(o))&&Array.isArray(c)&&c.every(p)&&re(l)}function re(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)&&e>=0}function ie(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function ae(e){return e===null||typeof e==`string`}function oe(e){return s(e)?typeof e.id==`string`&&typeof e.sourcePattern==`string`&&ie(e.sourcePatternParts)&&typeof e.targetPattern==`string`&&ie(e.targetPatternParts)&&typeof e.slotId==`string`&&ae(e.ownerLayoutId)&&ae(e.interceptingRouteId)&&ae(e.targetRouteId):!1}function se(e){return Array.isArray(e)&&e.every(oe)}function ce(e){if(!s(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!s(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!l.every(e=>Reflect.get(n,e)instanceof Map)||!(r instanceof Map)||!(i instanceof Map))return!1;for(let e of r.values())if(!oe(e))return!1;for(let e of i.values())if(!se(e))return!1;return!0}function le(e){if(!s(e))return!1;let t=Reflect.get(e,`routeManifest`),n=Reflect.get(e,`rsc`);return(t===null||ce(t))&&(n===void 0||ne(n))}function ue(e){if(!s(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return le(t)&&f(n)}function m(e){return e===void 0||typeof e==`function`}function h(){let e=d();if(e===null)return null;let t=Reflect.get(e,c);return ue(t)?t:null}function de(){let e=d();if(e===null)return u();let t=Reflect.get(e,c),n=ue(t)?t:u();return Reflect.set(e,c,n),n}function fe(e){let t=de();return t.bootstrap={...t.bootstrap,...e},t}function pe(e){let t=de();return t.functions={...t.functions,...e},t}function me(){return he(de())}function he(e){let t=e.bootstrap.rsc;if(t===void 0){let t={rsc:[]};return e.bootstrap.rsc=t,t}return t}function ge(){return typeof h()?.functions.navigate==`function`}function _e(e,t,n,r){if(e===n)throw Error(`Conflicting app and page routes found for "${e}"`);
2if(!t)return r?`pages`:`app`;if(!r)return`app`;let i=e.split(`/`).filter(Boolean),a=n.split(`/`).filter(Boolean),o=e=>e.startsWith(`:`)?e.endsWith(`*`)?3:e.endsWith(`+`)?2:1:0;for(let e=0;e<Math.min(i.length,a.length);e++){let t=o(i[e]),n=o(a[e]);if(t!==n)return t<n?`pages`:`app`}return i.length===a.length||i.length<a.length?`pages`:`app`}var ve=/([/#?\\]|%(2f|23|3f|5c))/gi;function ye(e){return e.replace(ve,e=>encodeURIComponent(e))}function be(e){try{return ye(decodeURIComponent(e))}catch{return e}}function xe(e){return e.split(`/`).map(e=>be(e)).join(`/`)}function g(e){return xe(e).split(`/`).filter(Boolean)}function Se(e){try{return decodeURIComponent(e)}catch{return e}}function Ce(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function we(e){for(let t of Object.keys(e)){let n=e[t];e[t]=Array.isArray(n)?n.map(Se):Se(n)}}function Te(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function Ee(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function De(e,t){return t?e===t||e.startsWith(t+`/`):!1}function _(e,t){return De(e,t)?e.slice(t.length)||`/`:e}function Oe(e,t){return!t||De(e,t)?e:e===`/`?t:`${t}${e}`}function ke(e){if(e===`/`)return`/`;let t=e.length;for(;t>0&&e.charCodeAt(t-1)===47;)t--;return t===0?`/`:e.slice(0,t)}var Ae=`x-vinext-mw-ctx`,je=`x-vinext-prerender-secret`,Me=`x-vinext-prerender-route-params`,Ne=`x-vinext-prerender-speculative`,Pe=`x-vinext-revalidate-host`,Fe=`x-middleware-override-headers`,Ie=`x-middleware-set-cookie`,Le=`x-middleware-skip`,Re=`x-middleware-`,ze=e({ACTION_FORWARDED_HEADER:()=>ht,ACTION_REDIRECT_HEADER:()=>_t,ACTION_REDIRECT_STATUS_HEADER:()=>yt,ACTION_REDIRECT_TYPE_HEADER:()=>vt,ACTION_REVALIDATED_HEADER:()=>gt,FLIGHT_HEADERS:()=>Ot,INTERNAL_HEADERS:()=>kt,MIDDLEWARE_HEADER_PREFIX:()=>Re,MIDDLEWARE_NEXT_HEADER:()=>bt,MIDDLEWARE_REWRITE_HEADER:()=>xt,MIDDLEWARE_SET_COOKIE_HEADER:()=>Ie,MIDDLEWARE_SKIP_HEADER:()=>Le,NEXTJS_ACTION_NOT_FOUND_HEADER:()=>dt,NEXTJS_CACHE_HEADER:()=>Ve,NEXTJS_DEPLOYMENT_ID_HEADER:()=>mt,NEXT_ACTION_HEADER:()=>ut,NEXT_CACHE_TAGS_HEADER:()=>He,NEXT_HTML_REQUEST_ID_HEADER:()=>Dt,NEXT_REQUEST_ID_HEADER:()=>Et,NEXT_ROUTER_PREFETCH_HEADER:()=>b,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:()=>wt,NEXT_ROUTER_STALE_TIME_HEADER:()=>ft,NEXT_ROUTER_STATE_TREE_HEADER:()=>Ct,NEXT_URL_HEADER:()=>Tt,RSC_ACTION_HEADER:()=>lt,RSC_HEADER:()=>`RSC`,VINEXT_CACHE_HEADER:()=>Be,VINEXT_CLIENT_REUSE_MANIFEST_HEADER:()=>ot,VINEXT_DYNAMIC_STALE_TIME_HEADER:()=>Ze,VINEXT_INTERCEPTION_CONTEXT_HEADER:()=>rt,VINEXT_INTERCEPTION_ID_HEADER:()=>it,VINEXT_INTERNAL_HEADERS:()=>At,VINEXT_METADATA_ROUTE_CACHE_HEADER:()=>nt,VINEXT_MOUNTED_SLOTS_HEADER:()=>v,VINEXT_MW_CTX_HEADER:()=>Ae,VINEXT_PARAMS_HEADER:()=>Xe,VINEXT_PRERENDER_CACHE_LIFE_HEADER:()=>et,VINEXT_PRERENDER_METADATA_ROUTES_PATH:()=>qe,VINEXT_PRERENDER_PAGES_STATIC_PATHS_PATH:()=>Ke,VINEXT_PRERENDER_RENDER_ERROR_HEADER:()=>tt,VINEXT_PRERENDER_ROUTE_PARAMS_HEADER:()=>Me,VINEXT_PRERENDER_SECRET_HEADER:()=>je,VINEXT_PRERENDER_SPECULATIVE_HEADER:()=>Ne,VINEXT_PRERENDER_STATIC_PARAMS_PATH:()=>Ge,VINEXT_RENDERED_PATH_AND_SEARCH_HEADER:()=>$e,VINEXT_REVALIDATE_HEADER:()=>Je,VINEXT_REVALIDATE_HOST_HEADER:()=>Pe,VINEXT_RSC_COMPLETION_METADATA_HEADER:()=>Qe,VINEXT_RSC_MARKER_HEADER:()=>Ye,VINEXT_RSC_REDIRECT_HEADER:()=>st,VINEXT_RSC_REDIRECT_TYPE_HEADER:()=>ct,VINEXT_RSC_RENDER_MODE_HEADER:()=>y,VINEXT_RSC_STATE_FINGERPRINT_HEADER:()=>at,VINEXT_STALE_TIME_PENDING_HEADER:()=>pt,VINEXT_STATIC_FILE_HEADER:()=>Ue,VINEXT_TIMING_HEADER:()=>We}),Be=`X-Vinext-Cache`,Ve=`x-nextjs-cache`,He=`x-next-cache-tags`,Ue=`x-vinext-static-file`,We=`x-vinext-timing`,Ge=`/__vinext/prerender/static-params`,Ke=`/__vinext/prerender/pages-static-paths`,qe=`/__vinext/prerender/metadata-routes`,Je=`x-vinext-revalidate`,Ye=`x-vinext-rsc`,Xe=`X-Vinext-Params`,v=`X-Vinext-Mounted-Slots`,Ze=`X-Vinext-Dynamic-Stale-Time`,Qe=`X-Vinext-Rsc-Completion-Metadata`,$e=`X-Vinext-Rendered-Path-And-Search`,et=`x-vinext-prerender-cache-life`,tt=`x-vinext-prerender-render-error`,nt=`x-vinext-metadata-route-cache`,rt=`X-Vinext-Interception-Context`,it=`X-Vinext-Interception-Id`,y=`X-Vinext-Rsc-Render-Mode`,at=`X-Vinext-Rsc-State-Fingerprint`,ot=`X-Vinext-Client-Reuse-Manifest`,st=`X-Vinext-Rsc-Redirect`,ct=`X-Vinext-Rsc-Redirect-Type`,lt=`x-rsc-action`,ut=`next-action`,dt=`x-nextjs-action-not-found`,ft=`x-nextjs-stale-time`,pt=`X-Vinext-Stale-Time-Pending`,mt=`x-nextjs-deployment-id`,ht=`x-action-forwarded`,gt=`x-action-revalidated`,_t=`x-action-redirect`,vt=`x-action-redirect-type`,yt=`x-action-redirect-status`,bt=`x-middleware-next`,xt=`x-middleware-rewrite`,St=`x-middleware-redirect`,Ct=`Next-Router-State-Tree`,b=`Next-Router-Prefetch`,wt=`Next-Router-Segment-Prefetch`,Tt=`Next-Url`,Et=`x-nextjs-request-id`,Dt=`x-nextjs-html-request-id`,Ot=[`rsc`,`next-router-state-tree`,`next-router-prefetch`,`next-hmr-refresh`,`next-router-segment-prefetch`,`x-vinext-rsc-state-fingerprint`],kt=[xt,St,Ie,Le,Fe,bt,`x-now-route-matches`,`x-matched-path`,`x-nextjs-data`,`x-next-resume-state-length`,ht],At=[Me,Ne,et,Pe];function jt(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\0`)}function Mt(e){if(e===`/`||e.length>1&&e[0]===`/`&&!e.includes(`//`)&&!e.includes(`/./`)&&!e.includes(`/../`)&&!e.endsWith(`/.`)&&!e.endsWith(`/..`))return e;let t=e.split(`/`),n=[];for(let e of t)e!==``&&e!==`.`&&(e===`..`?n.pop():n.push(e));return`/`+n.join(`/`)}var Nt=(e,t)=>
2e<t?-1:+(e>t);function Pt(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;let n=84696351;for(let t=0;t<e.length;t++)n^=e.charCodeAt(t),n=n*16777619>>>0;return t.toString(16).padStart(8,`0`)+n.toString(16).padStart(8,`0`)}var Ft=[`schemaVersion`,`graphVersion`,`deploymentVersion`,`appElementsSchemaVersion`,`rscPayloadSchemaVersion`,`rootBoundaryId`,`renderEpoch`];function It(e={}){return{schemaVersion:1,graphVersion:e.graphVersion??null,deploymentVersion:e.deploymentVersion??null,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId??null,renderEpoch:e.renderEpoch??null}}function Lt(e){return typeof e==`string`||e===null}function Rt(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function zt(e){return!s(e)||!Rt(e)||!Lt(e.graphVersion)||!Lt(e.deploymentVersion)||!Lt(e.rootBoundaryId)||!Lt(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}var x=a(),Bt=new WeakMap;function Vt(e,t){Bt.get(e)?.get(t)?.release()}var Ht=`\0`,Ut=`__sourcePage`,Wt=`__artifactCompatibility`,Gt=`__cacheEntryReuseProof`,Kt=`__dynamicStaleTime`,qt=`__interception`,Jt=`__interceptionContext`,Yt=`__layoutIds`,Xt=`__layoutFlags`,Zt=`__route`,Qt=`__rootLayout`,$t=`__skippedLayoutIds`,en=`__srcPage`,tn=`__slotBindings`,S=`__bfcacheSegmentIdentities`,nn=`__staticSiblings`,rn=`__VINEXT_UNMATCHED_SLOT__`,C=Symbol.for(`vinext.unmatchedSlot`),an=new Set;function on(e){return new Set(e)}var sn=on(`CP_CACHE_ENTRY_PROOF_MISSING.CP_MODEL_DISABLED.CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE.CP_ARTIFACT_COMPATIBILITY_UNKNOWN.CP_DIMENSION_COUNT_EXCEEDED.CP_DIMENSION_NAME_MISSING.CP_DIMENSION_NAME_TOO_LONG.CP_DIMENSION_VALUE_COUNT_EXCEEDED.CP_DIMENSION_VALUE_TOO_LONG.CP_DIMENSION_VALUES_MISSING.CP_ENCODED_VARIANT_TOO_LONG.CP_INVALID_VARIANT_BUDGET.CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH.CP_ROUTE_VARIANT_CEILING_EXCEEDED.CP_UNSAFE_PUBLIC_DIMENSION.CP_BOUNDARY_OUTCOME_MISMATCH.CP_BOUNDARY_OUTCOME_UNKNOWN.CP_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND.CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND.CP_STATIC_LAYOUT_ID_MISMATCH.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH.CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_REQUEST_API_OBSERVED.CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN.CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH.CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN.CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`.split(`.`)),w=Nt;function cn(e,t){return w(e.slotId,t.slotId)}function ln(e,t={}){let n=t.layoutIds?new Set(t.layoutIds):null,r=new Set,i=[];for(let t of e){if(r.has(t.slotId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: duplicate slot id`);if(r.add(t.slotId),n&&t.ownerLayoutId!==null&&!n.has(t.ownerLayoutId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: owner layout id missing from __layoutIds`);i.push({...t})}return i.sort(cn)}function un(e,t){return t===null?e:`${e}${Ht}${t}`}function dn(e,t){return un(`route:${e}`,t)}function fn(e,t){return un(`page:${e}`,t)}function pn(e){return`layout:${e}`}function mn(e){return`template:${e}`}function hn(e,t){return`slot:${e}:${t}`}function gn(e,t){return un(e,t)}function _n(e){let t=e.indexOf(Ht),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)?{interceptionContext:t===-1?null:e.slice(t+1),path:n}:null}function vn(e){return e.startsWith(`/`)?e:null}function T(e){if(e.startsWith(`route:`)){let t=_n(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=_n(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=vn(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=vn(e.slice(9));return t?{kind:`template`,treePath:t}:null}if(e.startsWith(`slot:`)){let t=e.slice(5),n=t.indexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=vn(t.slice(n+1));return i?{kind:`slot`,name:r,treePath:i}:null}return null}function yn(e){let t=T(e)?.kind;return t===`page`||t===`layout`||t===`template`||t===`slot`}function bn(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function xn(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.length>0&&!e.includes(`/`))}function Sn(e){if(typeof e!=`string`||!e.startsWith(`/`))return null;let t=e.slice(1).split(`/`);return xn(t)?t:null}function Cn(e){let t=[...e.layoutIds??[]],n=Sn(e.sourcePage),r={[Zt]:e.routeId,[Jt]:e.interceptionContext,[Yt]:t,[Qt]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[Kt]:e.dynamicStaleTimeSeconds},...e.bfcacheSegmentIdentities&&Object.keys(e.bfcacheSegmentIdentities).length>0?{[S]:e.bfcacheSegmentIdentities}:{},...n===null?{}:{[en]:n}},i=e.interception?{...r,[qt]:e.interception}:r;return e.slotBindings&&e.slotBindings.length>0?{...i,[tn]:ln(e.slotBindings,{layoutIds:t})}:i}function wn(e){let t=!1;for(let[n,r]of Object.entries(e))if(bn(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=bn(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?C:r;return n}function Tn(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;for(let t of Object.values(e))if(t!==`s`&&t!==`d`)return!1;return!0}function En(e){return Tn(e)?e:{}}function Dn(e,t){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);let n=[];for(let r of e){if(typeof r!=`string`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);if(T(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);
2n.push(r)}return n}function On(e){return Dn(e,Yt)}function kn(e){return Dn(e,$t)}function An(e){return e===`active`||e==="default"||e===`unmatched`}function jn(e,t={}){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected array`);let n=[];for(let t of e){if(!s(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||T(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected slot ids`);let r=t.ownerLayoutId;if(r!==null&&(typeof r!=`string`||T(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!An(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||T(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);let o=t.interceptionId;if(o!=null&&(typeof o!=`string`||o.length===0))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception ids`);let c=t.interceptionSourceMatchedUrl;if(c!=null&&typeof c!=`string`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception source URLs`);typeof c==`string`&&Nn(c),n.push({...a===void 0?{}:{activeRouteId:a},...o===void 0?{}:{interceptionId:o},...c===void 0?{}:{interceptionSourceMatchedUrl:c},ownerLayoutId:r,slotId:e,state:i})}return ln(n,t)}function Mn(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function Nn(e){if(!jt(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function Pn(e,t){let n=T(e);if(n?.kind!==`route`||n.path!==t||n.interceptionContext!==null)throw Error(`[vinext] Invalid __interception in App Router payload: expected route ids`);return e}function Fn(e){if(T(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function In(e){if(e==null)return null;if(!s(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=Nn(Mn(e,`sourceMatchedUrl`)),n=Nn(Mn(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:Pn(Mn(e,`sourceRouteId`),t),slotId:Fn(Mn(e,`slotId`)),targetMatchedUrl:n,targetRouteId:Pn(Mn(e,`targetRouteId`),n)}}function Ln(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,o.isValidElement)(e))}function Rn(e,t){return{...e,[Xt]:t}}function zn(e){if(!Ln(e.element))return e.element;let t=Bn(e.skipDisposition),n={};for(let[r,i]of Object.entries(e.element)){if(t.has(r)){Vt(e.element,r);continue}n[r]=i===C?rn:i}return n[Xt]=e.layoutFlags,t.size>0&&(n[$t]=[...t]),n[Wt]=e.artifactCompatibility??It(),e.cacheEntryReuseProof&&(n[Gt]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(n[Kt]=e.dynamicStaleTimeSeconds),n}function Bn(e){if(e?.enabled!==!0)return an;let t=new Set;for(let n of e.skippedEntryIds)T(n)?.kind===`layout`&&t.add(n);return t}function Vn(e){return e===void 0?It():zt(e)??It()}function Hn(e){return e==null?null:typeof e==`string`?e.startsWith(`/`)?e:null:xn(e)?`/${e.join(`/`)}`:null}function Un(){return{kind:`runtime-cache-entry`,decision:null}}function Wn(e){return typeof e==`string`&&sn.has(e)}function Gn(e){return e===`renderFresh`||e===`privateUncacheable`}function Kn(e){return e===`affectedOutput`||e===`route`}function qn(e){if(e===void 0)return null;if(!s(e)||e.kind!==`runtime-cache-entry`)return Un();let t=e.decision;return t===null||!s(t)?Un():t.kind===`reuse`&&t.canReuse===!0&&t.code===`CP_STATIC_LAYOUT_REUSE_PROVEN`&&t.reuseClass===`static-layout`?{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:t.code,kind:`reuse`,reuseClass:t.reuseClass}}:t.kind===`reject`&&t.canReuse===!1&&Wn(t.code)&&Gn(t.mode)&&Kn(t.scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Un()}function Jn(e){if(!s(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!yn(n))return{};t[n]=r}return t}function Yn(e){let t=e[Zt];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[Jt];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[Qt];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);
2if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=En(e[Xt]),a=On(e[Yt]),o=kn(e[$t]),s=jn(e[tn],{layoutIds:a}),c=In(e[qt]),l=Vn(e[Wt]),u=qn(e[Gt]),d=e[Kt],f=typeof d==`number`&&Number.isFinite(d)&&d>=0?d:void 0,p=Object.hasOwn(e,`__srcPage`)?Hn(e[en]):Hn(e[Ut]),ee=Jn(e[S]);return{artifactCompatibility:l,...u?{cacheEntryReuseProof:u}:{},...f===void 0?{}:{dynamicStaleTimeSeconds:f},interception:c,interceptionContext:n??null,layoutIds:a,layoutFlags:i,routeId:t,rootLayoutTreePath:r,bfcacheSegmentIdentities:ee,skippedLayoutIds:o,slotBindings:s,sourcePage:p}}var E={keys:{artifactCompatibility:Wt,cacheEntryReuseProof:Gt,dynamicStaleTime:Kt,interception:qt,interceptionContext:Jt,layoutIds:Yt,layoutFlags:Xt,rootLayout:Qt,route:Zt,bfcacheSegmentIdentities:S,skippedLayoutIds:$t,slotBindings:tn,sourcePageSegments:en},unmatchedSlotValue:rn,createMetadataEntries:Cn,decode:wn,encodeCacheKey:gn,encodeLayoutId:pn,encodeOutgoingPayload:zn,encodePageId:fn,encodeRouteId:dn,encodeSlotId:hn,encodeTemplateId:mn,isSlotId:bn,parseElementKey:T,readMetadata:Yn,withLayoutFlags:Rn},Xn=4096,Zn=256,Qn=16;function $n(e){return e.length===0||e.length>Zn?!1:E.isSlotId(e)}function er(e){if(!e||e.length>Xn)return null;let t=e.split(/\s+/).filter(e=>e&&$n(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,Qn).join(` `)||null}var tr=e({APP_ARTIFACT_COMPATIBILITY_KEY:()=>Wt,APP_BFCACHE_SEGMENT_IDENTITIES_KEY:()=>S,APP_CACHE_ENTRY_REUSE_PROOF_KEY:()=>Gt,APP_DYNAMIC_STALE_TIME_KEY:()=>Kt,APP_INTERCEPTION_CONTEXT_KEY:()=>Jt,APP_INTERCEPTION_KEY:()=>qt,APP_LAYOUT_FLAGS_KEY:()=>Xt,APP_LAYOUT_IDS_KEY:()=>Yt,APP_PREFETCH_LOADING_SHELL_MARKER_KEY:()=>nr,APP_ROOT_LAYOUT_KEY:()=>Qt,APP_ROUTE_KEY:()=>Zt,APP_SKIPPED_LAYOUT_IDS_KEY:()=>$t,APP_SLOT_BINDINGS_KEY:()=>tn,APP_SOURCE_PAGE_SEGMENTS_KEY:()=>en,APP_STATIC_SIBLINGS_KEY:()=>nn,APP_UNMATCHED_SLOT_WIRE_VALUE:()=>rn,AppElementsWire:()=>E,UNMATCHED_SLOT:()=>C,buildOutgoingAppPayload:()=>zn,compareAppElementsSlotIds:()=>w,getMountedSlotIds:()=>rr,getMountedSlotIdsHeader:()=>ir,isAppElementsRecord:()=>Ln,normalizeAppElements:()=>wn,normalizeAppElementsSlotBindings:()=>ln,readAppElementsMetadata:()=>Yn,resolveVisitedResponseInterceptionContext:()=>ar,withLayoutFlags:()=>Rn}),nr=`__prefetchLoadingShell`;function rr(e){return Object.keys(e).filter(t=>{let n=e[t],r=E.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==C}).sort()}function ir(e){return er(rr(e).join(` `))}function ar(e,t){return t??e}var or=Symbol.for(`vinext.appRouterContext`),sr=Symbol.for(`vinext.globalLayoutRouterContext`),cr=Symbol.for(`vinext.layoutRouterContext`),lr=Symbol.for(`vinext.missingSlotContext`),ur=Symbol.for(`vinext.templateContext`);function dr(e,t){if(typeof o.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=o.createContext(t)),n[e]??null}var fr=dr(or,null);dr(sr,null),dr(cr,null),dr(lr,new Set),dr(ur,null);function pr(e,t){let n=mr(e,t);return n&&we(n),n}function mr(e,t){let n=Object.create(null);function r(i,a){if(a===t.length)return i===e.length;let o=t[a];if(o.startsWith(`:`)&&(o.endsWith(`+`)||o.endsWith(`*`))){let t=o.slice(1,-1),s=+!!o.endsWith(`+`);for(let o=i+s;o<=e.length;o++){let s=e.slice(i,o);if(s.length>0?n[t]=s:delete n[t],r(o,a+1))return!0}return delete n[t],!1}if(o.startsWith(`:`)){if(i>=e.length)return!1;let t=o.slice(1);return n[t]=e[i],r(i+1,a+1)?!0:(delete n[t],!1)}return i>=e.length||e[i]!==o?!1:r(i+1,a+1)}return r(0,0)?n:null}function hr(e,t){let n=Object.create(null),r=0;for(let i of e){if(!i.startsWith(`:`)){r+=1;continue}let e=i.endsWith(`+`)||i.endsWith(`*`),a=i.slice(1,e?-1:void 0);if(e){let e=t.slice(r);e.length>0&&(n[a]=[...e]);break}let o=t[r];o!==void 0&&(n[a]=o),r+=1}return n}function gr(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=r===t.length-1;if(i.startsWith(`:`)&&i.endsWith(`+`))return a&&e.length-n>=1;if(i.startsWith(`:`)&&i.endsWith(`*`))return a;if(n>=e.length)return!1;if(i.startsWith(`:`)){n++;continue}if(e[n]!==i)return!1;n++}return!0}function _r(e,t){function n(r,i){if(i===t.length)return r===e.length;let a=t[i];if(a.startsWith(`:`)&&(a.endsWith(`+`)||a.endsWith(`*`))){let t=+!!a.endsWith(`+`);for(let a=r+t;a<=e.length;a++)if(n(a,i+1))return!0;return!1}return a.startsWith(`:`)?n(r,i+1)||r<e.length&&n(r+1,i+1):r>=e.length||e[r]!==a?!1:n(r+1,i+1)}return n(0,0)}var vr=`1.0.0-beta.8`;function yr(e){let t=window.next;if(t){e.version!==void 0&&(t.version=e.version),e.appDir!==void 0&&(t.appDir=e.appDir),e.router!==void 0&&(t.router=e.router),e.__pendingUrl!==void 0&&(t.__pendingUrl=e.__pendingUrl),e.__internal_src_page!==void 0&&(t.__internal_src_page=e.__internal_src_page);return}window.next={version:e.version??vr,...e}}function br(e){if(yr({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function xr(e){try{return decodeURIComponent(e)}catch{return e}}function Sr(e){let t=xr(e.startsWith(`#`)?e.slice(1):e);if(t===``||t===`top`){window.scrollTo(0,0);return}let n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`auto`});return}let r=document.getElementsByName(t)[0];if(r){r.scrollIntoView({behavior:`auto`});return}window.scrollTo(0,0)}function Cr(e,t){requestAnimationFrame(()=>{t&&!t()||Sr(e)}
2)}function wr(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>{if(!i())return;window.scrollTo(e,t);let n=Math.abs(window.scrollY-t)<=1;!i()||n&&a>=r||a>=60||(a+=1,requestAnimationFrame(o))};o()}var Tr=Symbol.for(`vinext.layoutSegmentContext`),Er=Symbol.for(`vinext.serverInsertedHTMLContext`),Dr=Symbol.for(`vinext.bfcacheIdMapContext`),Or=Symbol.for(`vinext.bfcacheSegmentIdContext`),kr=Symbol.for(`vinext.navigation.clientHydrationContext`),Ar=Symbol.for(`vinext.navigation.fallback`);function jr(e){return typeof o.createContext==`function`?o.createContext(e):null}function Mr(){let e=globalThis;return e[Er]||(e[Er]=jr(null)),e[Er]??null}var Nr=Mr();function Pr(){let e=globalThis;return e[Tr]||(e[Tr]=jr({children:[]})),e[Tr]??null}function Fr(){let e=globalThis;return e[Dr]||(e[Dr]=jr(null)),e[Dr]??null}function Ir(){let e=globalThis;return e[Or]||(e[Or]=jr(null)),e[Or]??null}var Lr=Symbol.for(`vinext.navigation.globalAccessors`);function Rr(){let e=globalThis;return e[Ar]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function zr(){return globalThis[Lr]}function Br(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,kr))return e[kr]??null}function Vr(e){globalThis[kr]=e}function Hr(){Vr(null)}var Ur=()=>{{let e=Br();return e===void 0?Rr().serverContext:e}},Wr=e=>{Rr().serverContext=e,Vr(e)},Gr=()=>zr()?.getInsertedHTMLCallbacks()??Rr().serverInsertedHTMLCallbacks,Kr=()=>{let e=zr();e?e.clearInsertedHTMLCallbacks():Rr().serverInsertedHTMLCallbacks=[]};function qr(e){Ur=e.getServerContext,Wr=e.setServerContext,Gr=e.getInsertedHTMLCallbacks,Kr=e.clearInsertedHTMLCallbacks}function D(){return Ur()}function Jr(e){Wr(e)}function Yr(e){Gr().push(e)}function Xr(e){let t=Gr(),n=[];for(let e of t)try{let t=e();t!=null&&n.push(t)}catch{}return e&&(t.length=0),n}function Zr(){return Xr(!0)}function Qr(){return Xr(!1)}function $r(){Kr()}var ei=`NEXT_REDIRECT;`;function ti(e){if(!e.startsWith(ei))return null;let t=e.indexOf(`;`,14);if(t===-1)return null;let n=e.slice(t+1),r=n.match(/;(303|307|308);?$/),i=n!==``&&e.endsWith(`;`);if(i&&!r)return null;let a=r?n.slice(0,-r[0].length):n,o=a;if(!i)try{o=decodeURIComponent(a)}catch{return null}return{status:r?Number(r[1]):307,type:e.slice(14,t)||null,url:o}}var ni=`NEXT_HTTP_ERROR_FALLBACK`;function ri(e){if(!e||typeof e!=`object`||!(`digest`in e))return!1;let t=String(e.digest);return t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)}function ii(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`)return 404;if(t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`))return Number.parseInt(t.split(`;`)[1],10)}return 404}var ai=function(e){return e.push=`push`,e.replace=`replace`,e}({}),oi=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function si(e,t){throw new oi(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t??``};${encodeURIComponent(e)}`)}function ci(e,t=`replace`){throw new oi(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t};${encodeURIComponent(e)};308`)}function li(){throw new oi(`NEXT_NOT_FOUND`,`${ni};404`)}function ui(){throw new oi(`NEXT_FORBIDDEN`,`${ni};403`)}function di(){throw new oi(`NEXT_UNAUTHORIZED`,`${ni};401`)}function fi(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function pi(e){let t=ti(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}function mi(e){return fi(e)||ri(e)}var hi=`BAILOUT_TO_CLIENT_SIDE_RENDERING`,gi=class extends Error{digest=hi;reason;constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e}};function _i(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===hi}var vi=`DYNAMIC_SERVER_USAGE`,yi=class extends Error{digest=vi;description;constructor(e){super(`Dynamic server usage: ${e}`),this.description=e}};function bi(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===vi}function xi(e){if(mi(e)||_i(e)||bi(e))throw e;e instanceof Error&&`cause`in e&&xi(e.cause)}var Si=e({default:()=>Ei}),O={container:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`},card:{marginTop:`-32px`,maxWidth:`325px`,padding:`32px 28px`,textAlign:`left`},icon:{marginBottom:`24px`},title:{fontSize:`24px`,fontWeight:500,letterSpacing:`-0.02em`,lineHeight:`32px`,margin:`0 0 12px 0`,color:`var(--next-error-title)`},message:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,margin:`0 0 20px 0`,color:`var(--next-error-message)`},form:{margin:0},buttonGroup:{display:`flex`,gap:`8px`,alignItems:`center`},button:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,curs
2or:`pointer`,color:`var(--next-error-btn-text)`,background:`var(--next-error-btn-bg)`,border:`var(--next-error-btn-border)`},buttonSecondary:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-secondary-text)`,background:`var(--next-error-btn-secondary-bg)`,border:`var(--next-error-btn-secondary-border)`},digestFooter:{position:`fixed`,bottom:`32px`,left:`0`,right:`0`,textAlign:`center`,fontFamily:`ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace`,fontSize:`12px`,lineHeight:`18px`,fontWeight:400,margin:`0`,color:`var(--next-error-digest)`}},Ci=`
3:root {
4  --next-error-bg: #fff;
5  --next-error-text: #171717;
6  --next-error-title: #171717;
7  --next-error-message: #171717;
8  --next-error-digest: #666666;
9  --next-error-btn-text: #fff;
10  --next-error-btn-bg: #171717;
11  --next-error-btn-border: none;
12  --next-error-btn-secondary-text: #171717;
13  --next-error-btn-secondary-bg: transparent;
14  --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
15}
16@media (prefers-color-scheme: dark) {
17  :root {
18    --next-error-bg: #0a0a0a;
19    --next-error-text: #ededed;
20    --next-error-title: #ededed;
21    --next-error-message: #ededed;
22    --next-error-digest: #a0a0a0;
23    --next-error-btn-text: #0a0a0a;
24    --next-error-btn-bg: #ededed;
25    --next-error-btn-border: none;
26    --next-error-btn-secondary-text: #ededed;
27    --next-error-btn-secondary-bg: transparent;
28    --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
29  }
30}
31body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
32`.replace(/\n\s*/g,``);function wi(){return(0,x.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:O.icon,children:(0,x.jsx)(`path`,{d:`M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z`,fill:`var(--next-error-title)`})})}function Ti(){window.history.length>1?window.history.back():window.location.href=`/`}function Ei({error:e}){let t=e?.digest,n=!!t,r=n?`A server error occurred. Reload to try again.`:`Reload to try again, or go back.`;return(0,x.jsxs)(`html`,{id:`__next_error__`,children:[(0,x.jsx)(`head`,{children:(0,x.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Ci}})}),(0,x.jsxs)(`body`,{children:[(0,x.jsx)(`div`,{style:O.container,children:(0,x.jsxs)(`div`,{style:O.card,children:[(0,x.jsx)(wi,{}),(0,x.jsx)(`h1`,{style:O.title,children:`This page couldn’t load`}),(0,x.jsx)(`p`,{style:O.message,children:r}),(0,x.jsxs)(`div`,{style:O.buttonGroup,children:[(0,x.jsx)(`form`,{style:O.form,children:(0,x.jsx)(`button`,{type:`submit`,style:O.button,children:`Reload`})}),!n&&(0,x.jsx)(`button`,{type:`button`,style:O.buttonSecondary,onClick:Ti,children:`Back`})]})]})}),t&&(0,x.jsxs)(`p`,{style:O.digestFooter,children:[`ERROR `,t]})]})]})}function Di(){return window.next?.__pendingUrl??null}function Oi(e){let t=Di();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function ki(e){if(window.next?.__pendingUrl!==void 0){if(e instanceof URL){if(window.next.__pendingUrl!==e)return}else if(e!==void 0&&window.next.__pendingUrl.href!==new URL(e,window.location.href).href)return;delete window.next.__pendingUrl}}function Ai(e){return!1}function ji(){return()=>{}}var Mi=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},Ni=globalThis,Pi=Symbol.for(`vinext.als.registry`),Fi=Ni[Pi]??=new Set,Ii=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function Li(e){let t=Symbol.for(e),n=Ni[t]??=typeof Mi==`function`?new Mi:new Ii;return Fi.add(n),n}Li(`vinext.pprFallbackShell.als`),Li(`vinext.pprFallbackShell.cacheTaskStack.als`);var Ri=Symbol.for(`vinext.clientNavigationState`),zi=Symbol.for(`vinext.clientNavigationRenderContext`),Bi=``;function Vi(){return globalThis[Ri]}function Hi(){return Vi()?.cachedPathname??_(window.location.pathname,Bi)}function Ui(){return D()?.pathname??`/`}function Wi(e){let t=Vi();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function Gi(){let e=globalThis;return e[zi]??=o.createContext(null)}function Ki(){let e=o.useContext(Gi()),t=o.useSyncExternalStore(Wi,Hi,Ui);return e&&(Vi()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function qi(){if(!fr||typeof o.useContext!=`function`)throw Error(`invariant expected app router to be mou
32nted`);let e=o.useContext(fr);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var Ji=`vinext:dev-error-recovery`;function Yi(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function Xi(e){let t=Yi(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var Zi=e({DevRecoveryBoundary:()=>ha,ErrorBoundary:()=>sa,ErrorBoundaryInner:()=>oa,ForbiddenBoundary:()=>fa,ForbiddenBoundaryInner:()=>da,GlobalErrorBoundary:()=>ca,NotFoundBoundary:()=>ua,RedirectBoundary:()=>aa,RedirectErrorBoundary:()=>ia,SerializedErrorBoundary:()=>Qi,UnauthorizedBoundary:()=>ma,UnauthorizedBoundaryInner:()=>pa});function Qi({fallback:e,error:t}){return(0,x.jsx)(e,{error:Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack}),reset:()=>globalThis.location?.reload()})}function $i(e){return e==null||e===``?null:e}function k(e){return{previousPathname:e.pathname,previousResetKey:$i(e.resetKey)}}function ea(e,t){let n=$i(e.previousResetKey),r=$i(t.previousResetKey);return n!==null||r!==null?n!==r:e.previousPathname!==t.previousPathname}function ta(e){window.addEventListener(Ji,e)}function na(e){window.removeEventListener(Ji,e)}function ra({redirect:e,redirectType:t,reset:n}){let r=qi();return o.useEffect(()=>{o.startTransition(()=>{t===`push`?r.push(e):r.replace(e),n()})},[e,t,n,r]),null}var ia=class extends o.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if(fi(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=pi(e.digest);if(!t)throw e;return{redirect:t.url,redirectType:t.type}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return e!==null&&t!==null?(0,x.jsx)(ra,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null})}):this.props.children}};function aa({children:e}){return(0,x.jsx)(ia,{children:e})}var oa=class extends o.Component{constructor(e){super(e),this.state={error:null,...k(e)}}static getDerivedStateFromProps(e,t){let n=k(e);return t.error&&Ai(t.error.thrownValue)||t.error&&ea(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(Xi(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...k(this.props)})};componentDidMount(){ta(this.handleDevErrorRecovery)}componentWillUnmount(){na(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,x.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function sa({fallback:e,children:t,resetKey:n}){return(0,x.jsx)(oa,{pathname:Ki(),resetKey:n,fallback:e,children:t})}function ca({fallback:e,children:t}){return(0,x.jsx)(oa,{pathname:Ki(),fallback:e,isImplicitRootErrorBoundary:e===Ei,children:t})}var la=class extends o.Component{constructor(e){super(e),this.state={notFound:!1,...k(e)}}static getDerivedStateFromProps(e,t){let n=k(e);return t.notFound&&ea(n,t)?{notFound:!1,...n}:{notFound:t.notFound,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`||t===`NEXT_HTTP_ERROR_FALLBACK;404`)return{notFound:!0}}throw e}render(){return this.state.notFound?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function ua({fallback:e,children:t,resetKey:n}){return(0,x.jsx)(la,{pathname:Ki(),resetKey:n,fallback:e,children:t})}var da=class extends o.Component{constructor(e){super(e),this.state={forbidden:!1,...k(e)}}static getDerivedStateFromProps(e,t){let n=k(e);return t.forbidden&&ea(n,t)?{forbidden:!1,...n}:{forbidden:t.forbidden,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;403`)return{forbidden:!0};throw e}render(){return this.state.forbidden?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function fa({fallback:e,children:t,resetKey:n}){return(0,x.jsx)(da,{pathname:Ki(),resetKey:n,fallback:e,children:t})}var pa=class extends o.Component{constructor(e){super(e),this.state={unauthorized:!1,...k(e)}}static getDerivedStateFromProps(e,t){let n=k(e);return t.unauthorized&&ea(n,t)?{unauthorized:!1,...n}:{unauthorized:t.unauthorized,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FA
32LLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function ma({fallback:e,children:t,resetKey:n}){return(0,x.jsx)(pa,{pathname:Ki(),resetKey:n,fallback:e,children:t})}var ha=class extends o.Component{constructor(e){super(e),this.state={error:null,previousResetKey:e.resetKey}}static getDerivedStateFromProps(e,t){return e.resetKey===t.previousResetKey?null:{error:null,previousResetKey:e.resetKey}}static getDerivedStateFromError(e){if(Xi(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,previousResetKey:this.props.resetKey})};componentDidMount(){ta(this.handleDevErrorRecovery)}componentWillUnmount(){na(this.handleDevErrorRecovery)}componentDidCatch(){this.props.onCatch?.(this.props.resetKey)}render(){return this.state.error?null:this.props.children}},ga=Symbol.for(`vinext.appRouterScrollIntent`);function A(){let e=globalThis;return e[ga]??={nextId:0,pending:null},e[ga]}function _a(e){let t=A();t.nextId+=1;let n={commitId:null,hash:e,headElements:typeof document>`u`?null:new Set(document.head?.children??[]),id:t.nextId,targetHoistedInHead:!1};return t.pending=n,n}function va(){let e=A();e.nextId+=1,e.pending=null}function ya(){return A().pending}function ba(e){return e!=null&&A().nextId===e.id}function xa(e,t){let n=A(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&(n.pending={...r,commitId:t})}function Sa(e,t){let n=A(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function Ca(e,t){if(e==null)return null;let n=A(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var wa=e({AppRouterScrollCommitProvider:()=>Ra,AppRouterScrollTarget:()=>za,AppRouterScrollTargetInner:()=>La}),Ta=t(i(),1),Ea=o.createContext(null),Da=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,Oa=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function ka(){let e=Reflect.get(Ta,Da);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function Aa(e){let t=ka();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function ja(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return Oa.every(e=>n[e]===0)}function Ma(e,t){let n=e.getClientRects();if(n.length===0)return!1;let r=1/0;for(let e of n)e.top<r&&(r=e.top);return r>=0&&r<=t}function Na(e){let t=xr(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function Pa(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function Fa(e){if(!(e instanceof Element)||Pa(e))return null;let t=e;for(;!(t instanceof HTMLElement)||ja(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function Ia(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;Ma(e,r)||(n.scrollTop=0,Ma(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var La=class extends o.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=ya();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;if(t=e.hash===null?null:Na(e.hash),t===null){t=Aa(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&Pa(t)&&!e.headElements?.has(n)){Sa(e,this.props.commitId);return}}let n=Fa(t);if(n===null)return;let r=n.element,i=Ca(e,this.props.commitId);i!==null&&(Ia(r,i.hash),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function Ra({children:e,commitId:t}){return(0,x.jsx)(Ea.Provider,{value:t,children:e})}function za({children:e}){return(0,x.jsx)(La,{commitId:o.useContext(Ea),children:e})}var Ba=`slot:\0vinext_bfcache_segment_`;function Va(e){let t=encodeURIComponent(e);return`${Ba}${t.length}_${t}_`}function Ha(e,t){return`${Va(e)}${t}:/`}function Ua(e){return e.startsWith(Ba)}function Wa(e,t){return Ua(e)&&e.startsWith(Va(t))}function Ga(e){switch(e.kind){case`page`:case`layout`:case`template`:return JSON.stringify([e.kind,e.graphId,e.rootBoundaryId,e.boundSegmentKey]);case`slot-shell`:return JSON.stringify([`slot-shell`,e.slotGraphId,e.ownerLayoutGraphId,e.boundOwnerSegmentKey]);case`slot`:return JSON.stringify([`slot`,e.slotGraphId,e.ownerLayoutGraphId,e.state,e.activeRouteGraphId,e.interceptionTargetRouteGraphId,e.boundSegmentKey]);case`sibling-interception`:return JSON.stringify([`sibling-interception`,e.sourceRouteGraphId,e.interceptionGraphId,e.rootBoundaryId,e.boundSegmentKey,e.sourceBoundSegmentKey])}}var Ka=e({BfcacheIdentityMapContext:()=>to,BfcacheSegmentBoundary:()=>So,Children:()=>Oo,ChildrenContext:()=>Ja,ElementsContext:()=>j,ParallelSlot:()=>ko,ParallelSlotsContext:()=>Ya,Slot:()=>Do,UNMATCHED_SLOT:()=>C,getNonCacheComponentsSegmentKey:()=>Co,mergeElements:()=>Eo,resolveBfcacheSegmentStateKey:()=>wo,stageBfcacheSlotEntryForRender:()=>co,updateBfcacheSlotEntryOrder:()=>ao}),qa=Object.freeze({}),j=o.createContext(qa),Ja=o.createContext(null),Ya=o.createContext(null),Xa=Fr(),Za=Ir(),Qa=Object.freeze({}),$a=3,eo=1,to=o.createContext(Qa);function no(){return!1}function ro(){return no()?$a:eo}function io(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function ao(e,t,n=ro()){let r=io(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function oo(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function so(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function co(e,t,n,r=ro()){let i=new Map(e);i.set(n.stateKey,n);let a=ao(t,n.stateKey,r);return oo(i,a),{entries:a.map(e=>i.get(e)).filter(e=>e!==void 0),order:a,snapshots:i}}function lo(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.values(e);return t.length>0&&t.every(e=>e===`s`||e===`d`)}function uo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`schemaVersion`in e&&`appElementsSchemaVersion`in e&&`rscPayloadSchemaVersion`in e&&`graphVersion`in e&&`deploymentVersion`in e&&`rootBoundaryId`in e&&`renderEpoch`in e}function fo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function po(e){return Array.isArray(e)&&e.length>0&&e.every(fo)}function mo(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function ho(e,t){return e!==`__bfcacheSegmentIdentities`||typeof t!=`object`||!t||Array.isArray(t)?!1:Object.entries(t).every(([e,t])=>{let n=E.parseElementKey(e);return n!==null&&n.kind!==`route`&&typeof t==`string`})}function go(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`sourceMatchedUrl`in e&&typeof e.sourceMatchedUrl==`string`&&`sourceRouteId`in e&&typeof e.sourceRouteId==`string`&&`slotId`in e&&typeof e.slotId==`string`&&`targetMatchedUrl`in e&&typeof e.targetMatchedUrl==`string`&&`targetRouteId`in e&&typeof e.targetRouteId==`string`}function _o(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function vo(e,t){return lo(t)||ho(e,t)||uo(t)||_o(t)||go(t)||mo(e,t)||po(t)}function yo({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,SegmentContext:i}){return(0,x.jsx)(to.Provider,{value:e.stateKeyMap??r,children:(0,x.jsx)(j.Provider,{value:e.elements??t,children:(0,x.jsx)(i.Provider,{value:e.segmentId??n,children:e.content})})})}function bo(e){let t=o.useRef(new Map),[n,r]=o.useState(()=>[e.stateKey]),i=co(t.current,n,e),a=i.order,s=!so(n,a);return o.useLayoutEffect(()=>{t.current=i.snapshots},[i.snapshots]),s&&r(a),i.entries}function xo({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:a}){return(0,x.jsx)(x.Fragment,{children:bo({content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:a}).map(t=>(0,x.jsx)(o.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,x.jsx)(yo,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:a,SegmentContext:i})},t.stateKey))})}function So({children:e,id:t,stateKey:n}){let r=o.useContext(j),i=o.useContext(to),a=wo(t,i,o.useContext(Xa));return!Za||a===void 0?(0,x.jsx)(o.Fragment,{children:e},n):no()?(0,x.jsx)(xo,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:Za,stateKeyMap:i}):(0,x.jsx)(Za.Provider,{value:t,children:e},a)}function Co(e,t){let n=E.parseElementKey(e);return n!==null&&n.kind!==`route`?t:void 0}function wo(e,t,n){return t[e]??n?.[e]}function To({content:e,id:t}){let n=Za,r=o.useContext(j),i=o.useContext(to),a=wo(t,i,o.useContext(Xa));return n?a===void 0?(0,x.jsx)(n.Provider,{value:t,children:e}):no()?(0,x.jsx)(xo,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,x.jsx)(n.Provider,{value:t,children:e},Co(t,a)):(0,x.jsx)(x.Fragment,{children:e})}function Eo(e,t,n={}){let r=typeof n==`boolean`?n:n.clearAbsentSlots??!1,i=typeof n==`boolean`?!n:n.preserveAbsentSlots??!0,a=typeof n==`boolean`?[]:n.preserveElementIds??[],o=typeof n==`boolean`?[]:n.preservePreviousSlotIds??[],s={...t},c=new Set;for(let t of a)if(Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}let l=new Set([...Object.keys(e),...Object.keys(t)].filter(e=>E.isSlotId(e)&&!Ua(e)));if(r)for(let e of l)Object.hasOwn(t,e)||delete s[e];else if(i){for(let t of l)if(!Object.hasOwn(s,t)&&Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}}for(let t of o){if(!E.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];if(n!==void 0&&n!==C){s[t]=n,c.add(t);for(let n of Object.keys(e)){if(!Wa(n,t))continue;let r=e[n];r!==void 0&&(s[n]=r),c.add(n)}}}if(c.size>0){let n=e[S],r=t[S],i=ho(S,n),a=ho(S,r),o=i?{...n}:{},l=a?{...r}:{},u=new Set([...Object.keys(o),...Object.keys(l)]),d=new Set(c);for(let e of d)for(let t of u)Wa(t,e)&&c.add(t);
32for(let e of c){let t=o[e];t===void 0?delete l[e]:l[e]=t}(i||a)&&(s[S]=l)}return s}function Do({id:e,children:t,parallelSlots:n}){let r=o.useContext(j);if(!Object.hasOwn(r,e))return null;let i=r[e];if(vo(e,i)||(i===C&&li(),i===null))return null;let a=(0,x.jsx)(Ya.Provider,{value:n??null,children:(0,x.jsx)(Ja.Provider,{value:t??null,children:i})});return Xa&&Za?(0,x.jsx)(To,{id:e,content:a}):a}function Oo(){return o.useContext(Ja)}function ko({name:e}){return o.useContext(Ya)?.[e]??null}var Ao=e({APP_RSC_RENDER_MODE_NAVIGATION:()=>jo,APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:()=>No,APP_RSC_RENDER_MODE_PREFETCH_EMPTY:()=>Mo,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:()=>Po,getRscRenderModeCacheVariant:()=>Fo,parseAppRscRenderMode:()=>Io}),jo=`navigation`,Mo=`prefetch-empty`,No=`prefetch-dynamic-shell`,Po=`prefetch-loading-shell`;function Fo(e){return e===`prefetch-empty`?`prefetch-empty`:e===`prefetch-dynamic-shell`?`prefetch-dynamic-shell`:e===`prefetch-loading-shell`?`prefetch-loading-shell`:null}function Io(e){switch(e){case Mo:return Mo;case No:return No;case Po:return Po;default:return jo}}var Lo=`x-deployment-id`;function Ro(){}function zo(e,t=void 0){t&&e.set(Lo,t)}function Bo(e){return Pt(JSON.stringify([e.pathAndSearch,e.routeId]))}var Vo=e({VINEXT_RSC_CACHE_BUSTING_SEARCH_PARAM:()=>M,VINEXT_RSC_COMPATIBILITY_ID_HEADER:()=>N,VINEXT_RSC_CONTENT_TYPE:()=>Ho,VINEXT_RSC_RENDER_MODE_HEADER:()=>y,VINEXT_RSC_VARY_HEADER:()=>Uo,applyRscCompatibilityIdHeader:()=>Xo,applyRscDeploymentIdHeader:()=>Zo,computeRscCacheBustingSearchParam:()=>cs,createRscRedirectLocation:()=>hs,createRscRequestHeaders:()=>fs,createRscRequestUrl:()=>P,createServerActionRequestUrl:()=>ms,getVinextRscCompatibilityId:()=>Yo,hasRscCacheBustingSearchParam:()=>ss,isRscCompatibilityIdCompatible:()=>Qo,resolveHardNavigationTargetFromRscResponse:()=>$o,resolveInvalidRscCacheBustingRequest:()=>gs,resolveRscCompatibilityNavigationDecision:()=>es,setRscCacheBustingSearchParam:()=>ls,stripRscCacheBustingSearchParam:()=>us,stripRscSuffix:()=>ds}),M=`_rsc`,N=`X-Vinext-RSC-Compatibility-Id`,Ho=`text/x-component`,Uo=[`RSC`,Ct,b,wt,Tt,rt,it,v,y,at].join(`, `),Wo=12,Go=new TextEncoder;function Ko(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function qo(e){return e??`0`}function Jo(e){return e&&e.length>0?e:null}function Yo(){return Jo(`077c3f23-9b26-418b-960c-6c39ffcc5f01`)}function Xo(e,t=Yo()){let n=Jo(t);n?e.set(N,n):e.delete(N)}function Zo(e){e.delete(mt)}function Qo(e,t=Yo()){let n=Jo(e),r=Jo(t);return r===null||n!==null&&n===r}function $o(e,t,n){if(!e)return t;let r=new URL(e,n);us(r);let i=new URL(t,n),a=ds(r.pathname);i.pathname.length>1&&i.pathname.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`);let o=a+r.search;return i.hash&&(o+=i.hash),o}function es(e){return Qo(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:$o(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function ts(e){let t=Io(e);return t===`navigation`?null:t}function ns(e,t={}){let n=[e.get(b),e.get(wt),e.get(Ct),e.get(Tt),e.get(rt),...t.includeInterceptionIdHeader===!1?[]:[e.get(it)],e.get(v),...t.includeRenderModeHeader===!1?[]:[ts(e.get(y))]],r=e.get(at);return t.includeStateFingerprintHeader!==!1&&r!==null&&n.push(r),n.every(e=>e===null)?null:n.map(qo).join(`,`)}async function rs(e){let t=globalThis.crypto?.subtle;if(!t)return Pt(e);let n=await t.digest(`SHA-256`,Go.encode(e));return Ko(new Uint8Array(n).subarray(0,Wo))}function is(e){let t=ns(e);return t===null?``:Pt(t)}function as(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!os(e))}function os(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===M}catch{return n===M}}function ss(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).some(e=>e.length>0&&os(e))}async function cs(e){let t=ns(e);return t===null?``:rs(t)}function ls(e,t){let n=as(e);n.push(t.length>0?`${M}=${t}`:M),e.search=`?${n.join(`&`)}`}function us(e){let t=as(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function ds(e){return e.endsWith(`.rsc`)?e.slice(0,-4):e}function fs(e={}){let t=new Headers({Accept:Ho,RSC:`1`});zo(t),e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(b,`1`),t.set(Ct,encodeURIComponent(JSON.stringify(e.prefetchRouterState))));let n=e.routerState??e.prefetchRouterState;n&&t.set(at,Bo(n)),e.nextUrl&&t.set(Tt,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(rt,e.interceptionContext),e.interceptionId!==void 0&&e.interceptionId!==null&&t.set(it,e.interceptionId),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(v,e.mountedSlotsHeader),e.clientReuseManifestHeader!==void 0&&e.clientReuseManifestHeader!==null&&t.set(ot,e.clientReuseManifestHeader);let r=e.renderMode??`navigation`;return r!==`navigation`&&t.set(y,r),t}function ps(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}async function P(e,t){let n=new URL(ps(e),`http://vinext.local`);return ls(n,await cs(t)),`${n.pathname}${n.search}`}function ms(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=new URL(n,`http://vinext.local`);return`${r.pathname}${r.search}`}async function hs(e,t){let n=new URL(t.url),r=new URL(e,n);if(r.origin!==n.origin)return r.toString();let i=await P(`${r.pathname}${r.search}`,t.headers);return`${r.origin}${i}`}async function gs(e){if(!e.isRscRequest||e.request.method!==`GET`&&e.request.method!==`HEAD`)return null;let t=new URL(e.request.url),n=t.searchParams.get(M),r=await cs(e.request.headers);if(n===null&&r===``&&t.pathname.endsWith(`.rsc`))return null;let i=new Set([r]);if(n!==null&&n!==r){i.add(is(e.request.headers));let t=[],n=e.request.headers.has(it),r=e.request.headers.has(at),a=ts(e.request.headers.get(y))===null;n||t.push({includeInterceptionIdHeader:!1}),r&&(t.push({includeStateFingerprintHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeStateFingerprintHeader:!1})),a&&(t.push({includeRenderModeHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeRenderModeHeader:!1})),r&&a&&(t.push({includeRenderModeHeader:!1,includeStateFingerprintHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeRenderModeHeader:!1,includeStateFingerprintHeader:!1}));for(let n of t){let t=ns(e.request.headers,n);t===null?i.add(``):(i.add(await rs(t)),i.add(Pt(t)))}}return n!==null&&i.has(n)?null:(ls(t,r),new Response(null,{status:307,headers:{Location:`${t.pathname}${t.search}`}}))}var _s=null;function vs(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function ys(e){return _s=e,_s}function bs(e,t){_s?.onRouterTransitionStart?.(e,t)}function xs(e){if(e.routeManifest===null)return null;let t=_(e.currentPathname,e.basePath),n=_(e.targetPathname,e.basePath),r=g(t),i=g(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(gr(r,n.sourcePatternParts)&&pr(i,n.targetPatternParts)!==null)return t;return null}function Ss(e){if(e.routeManifest===null)return null;let t=_(e.currentPathname,e.basePath),n=e.currentMatchedPathname?_(e.currentMatchedPathname,e.basePath):null,r=_(e.targetPathname,e.basePath),i=g(t),a=n?g(n):null,o=g(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(_r(o,r.targetPatternParts)){if(gr(i,r.sourcePatternParts))return t;
32if(n!==null&&a!==null&&gr(a,r.sourcePatternParts))return n}return null}function F(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var Cs=`__vinext_previousNextUrl`,ws=`__vinext_historyIndex`,Ts=`__vinext_bfcacheIds`,Es=`__vinext_bfcacheVersion`,Ds=`__vinext_externalHistoryState`,Os=`__vinext_treeSnapshotId`,I=`__vinext_treeSnapshotClaimed`,ks=`__vinext_activeRoutePaths`,As=class{#e;#t=new Map;constructor(e){this.#e=e.maxEntries}clear(){this.#t.clear()}remember(e){if(e.historyIndex===null||(this.#t.delete(e.historyIndex),this.#t.set(e.historyIndex,{bfcacheVersion:e.bfcacheVersion,state:e.state}),this.#t.size<=this.#e))return;let t=this.#t.keys().next().value;typeof t==`number`&&this.#t.delete(t)}resolveRestore(e){let t=Qs(e.historyState);if(t===null)return{kind:`skip`,reason:`missing-history-index`,targetHistoryIndex:t};let n=this.#t.get(t);return n?e.guarded?{kind:`skip`,reason:`guarded`,targetHistoryIndex:t}:n.bfcacheVersion===e.currentBfcacheVersion?{kind:`restore`,state:n.state,targetHistoryIndex:t}:(this.#t.delete(t),{kind:`skip`,reason:`stale-bfcache-version`,targetHistoryIndex:t}):{kind:`skip`,reason:`missing-snapshot`,targetHistoryIndex:t}}},js=class{#e;#t=0;#n;constructor(e){let t=Ys(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new As({maxEntries:e.maxHistoryStateSnapshots})}get currentBfcacheVersion(){return this.#e}beginCacheInvalidationGuard(){this.#t+=1;let e=!1;return()=>{e||(e=!0,this.#t=Math.max(0,this.#t-1))}}isCacheInvalidationGuarded(){return this.#t>0}isCurrentBfcacheVersion(e){return Xs(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=Js(e);return t===null?null:this.isCurrentBfcacheVersion(e)?t:null}#r(){this.#e+=1}invalidateClientState(){this.#n.clear(),this.#r()}rememberHistoryStateSnapshot(e){this.#n.remember({bfcacheVersion:this.#e,historyIndex:e.historyIndex,state:e.state})}resolveHistoryStateSnapshotRestore(e){return this.#n.resolveRestore({currentBfcacheVersion:this.#e,guarded:this.isCacheInvalidationGuarded(),historyState:e})}};function Ms(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))t[n]=r;return t}function L(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function Ns(e,t){let n=Ms(e),r=t.bfcacheIds!==void 0&&(t.bfcacheIds===null||Object.keys(t.bfcacheIds).length===0);return t.activeRoutePaths!==void 0&&(t.activeRoutePaths===null||t.activeRoutePaths.length===0?delete n[ks]:n[ks]=[...new Set(t.activeRoutePaths)]),t.previousNextUrl===null?delete n[Cs]:n[Cs]=t.previousNextUrl,t.traversalIndex!==void 0&&(F(t.traversalIndex)?n[ws]=t.traversalIndex:delete n[ws]),t.bfcacheIds!==void 0&&(r?(delete n[Ts],delete n[Es]):n[Ts]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[Es]:F(t.bfcacheVersion)?n[Es]=t.bfcacheVersion:delete n[Es]),Object.keys(n).length>0?n:null}function Ps(e,t){let n=Ks(t),r=Qs(t),i=Js(t),a=Ys(t),o=Us(t);return{...Ns(e,{activeRoutePaths:Ws(t),bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r}),...Fs(),...o===null?{}:{[I]:!0,[Os]:o}}}function Fs(){return{[Ds]:!0}}function Is(e){return L(e)?.[Ds]===!0}function Ls(e){return!Is(e)&&Qs(e)!==null}function Rs(e){let t=Ms(e);return delete t[Ds],Object.keys(t).length>0?t:null}function zs(e,t){let n=Ms(e),r=Us(n);return F(t)?(n[Os]=t,r!==t&&delete n[I]):(delete n[Os],delete n[I]),Object.keys(n).length>0?n:null}function Bs(e,t){let n=Ms(e);return t&&Us(n)!==null?n[I]=!0:delete n[I],Object.keys(n).length>0?n:null}function Vs(e){return L(e)?.[I]===!0}function Hs(e){return zs(e,null)}function Us(e){let t=L(e)?.[Os];return F(t)?t:null}function Ws(e){let t=L(e)?.[ks];if(!Array.isArray(t))return null;let n=[];for(let e of t){if(typeof e!=`string`||!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`?`)||e.includes(`#`)||e.includes(`\\`)||e.includes(`\0`))return null;n.push(e)}return n.length>0?[...new Set(n)]:null}function Gs(e){let t=new Set;for(let n of e){if(n.state!==`active`||n.activeRouteId==null)continue;let e=E.parseElementKey(n.activeRouteId);e?.kind===`route`&&e.interceptionContext===null&&t.add(e.path)}return[...t]}function Ks(e){let t=L(e)?.[Cs];return typeof t==`string`?t:null}function qs(e){let t=E.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}function Js(e){let t=L(e)?.[Ts];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};
32for(let[e,r]of Object.entries(t)){if(!qs(e)||typeof r!=`string`)return null;n[e]=r}return n}function Ys(e){let t=L(e)?.[Es];return F(t)?t:null}function Xs(e,t){let n=Ys(e);return n!==null&&n===t}function Zs(e){let t=Ks(e),n=Js(e),r=Ys(e),i=Ws(e);return t===null&&n===null&&i===null?null:Ns(null,{activeRoutePaths:i,bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function Qs(e){let t=L(e)?.[ws];return F(t)?t:null}function $s(e){let t=Qs(e.historyState),n=`unknown`;return e.currentHistoryIndex!==null&&t!==null&&(t<e.currentHistoryIndex?n=`back`:t>e.currentHistoryIndex&&(n=`forward`)),{direction:n,historyState:e.historyState,targetHistoryIndex:t}}var ec=`__next-page-redirect`;function tc(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`&&t.call(e,ec)!==null}var nc=class{#e=null;#t=0;reset(){this.#e=null}navigate(e,t,n){let r=this.#e;if(r?.href===t&&r.historyUpdateMode===n)return;let i=this.#t+1;this.#t=i,this.#e={href:t,historyUpdateMode:n,token:i};let a=()=>{let r=this.#e;r?.href===t&&r.historyUpdateMode===n&&r.token===i&&(n===`replace`?e.location.replace(t):e.location.assign(t))};if(typeof e.requestAnimationFrame==`function`){e.requestAnimationFrame(()=>{e.setTimeout(a,0)});return}e.setTimeout(a,0)}};new TextEncoder;var rc=new TextDecoder,R=255,ic=0,ac=2,oc=4,sc=256;function cc(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function z(){throw Error(`Invalid or truncated RSC completion metadata footer`)}function lc(e){if(e.byteLength>sc)throw Error(`RSC completion metadata exceeded its framing limit`);if(e.byteLength<6||e[0]!==R||e[1]!==ic)return z();let t=e.byteLength-oc;if(new DataView(e.buffer,e.byteOffset+t,oc).getUint32(0)!==t-ac)return z();try{let n=JSON.parse(rc.decode(e.subarray(ac,t)));if(typeof n!=`object`||!n)return z();let r=n;if(!cc(r.dynamicStaleTimeSeconds))return z();let i=Object.hasOwn(r,`serverStaleTimeSeconds`),a=r.serverStaleTimeSeconds;return i&&a!==null&&!cc(a)?z():{dynamicStaleTimeSeconds:r.dynamicStaleTimeSeconds,...i?{serverStaleTimeSeconds:a}:{}}}catch{return z()}}function uc(e){let t=new Uint8Array(e),n=t.indexOf(R);if(n===-1)return{buffer:e};let r=new Uint8Array(t.byteLength);r.set(t.subarray(0,n));let i=n;for(let e=n;e<t.byteLength;e++){let n=t[e];if(n!==R){r[i++]=n;continue}let a=t[++e];if(a===void 0)throw Error(`Truncated RSC completion metadata escape sequence`);if(a===R){r[i++]=R;continue}if(a!==ic)throw Error(`Invalid RSC completion metadata escape sequence`);return{buffer:r.buffer.slice(0,i),metadata:lc(t.subarray(e-1))}}return{buffer:r.buffer.slice(0,i)}}function dc(e){let t=!1,n;return e.pipeThrough(new TransformStream({transform(e,r){let i=[],a=()=>{i.length!==0&&(r.enqueue(Uint8Array.from(i)),i.length=0)},o=0;for(;o<e.byteLength;){if(n){if(n.push(e[o++]),n.length>sc){r.error(Error(`RSC completion metadata exceeded its framing limit`));return}continue}if(t){let a=e[o++];if(t=!1,a===R){i.push(R);continue}if(a===ic){n=[R,ic];continue}r.error(Error(`Invalid RSC completion metadata escape sequence`));return}let s=e.indexOf(R,o);if(s===-1){a(),r.enqueue(e.subarray(o));return}s>o&&(a(),r.enqueue(e.subarray(o,s))),t=!0,o=s+1}a()},flush(e){if(t){e.error(Error(`Truncated RSC completion metadata escape sequence`));return}if(n){let t=Uint8Array.from(n);try{lc(t)}catch(t){e.error(t)}}}}))}function fc(e){return e.headers.get(`X-Vinext-Rsc-Completion-Metadata`)!==`1`||!e.body?e:new Response(dc(e.body),{headers:e.headers,status:e.status,statusText:e.statusText})}var pc=`[\\u0000-\\u001F \\u200B\\uFEFF]*`,mc=`[\\r\\n\\t]*`;function hc(e){let t=e.split(``).join(mc);return RegExp(`^${pc}${t}${mc}:`,`i`)}var gc=[hc(`javascript`),hc(`data`),hc(`vbscript`)],_c=`Next.js has blocked a javascript: URL as a security precaution.`;function vc(e){let t=``+e;return gc.some(e=>e.test(t))}function yc(){console.error(_c)}function bc(e,t=Error){if(vc(e))throw yc(),new t(_c)}var xc=10;function Sc(e,t){return t===null||!vc(t)?!1:(e.body?.cancel().catch(()=>{}),yc(),!0)}function Cc(e,t){let n=new URL(e,t);return us(n),`${ds(n.pathname)}${n.search}${n.hash}`}function wc(e,t){let n=new URL(e,t);return`${n.pathname}${n.search}${n.hash}`}function Tc(e){if(e.targetUrl.origin!==e.origin)return{href:e.targetUrl.href,kind:`terminal-hard-navigation`,reason:`externalRedirect`,redirectDepth:e.redirectDepth};let t=e.redirectedHref;if(t===Cc(e.currentHref,e.origin))return{href:t,kind:`no-redirect`};let n=e.maxRedirectDepth??xc;return e.redirectDepth>
32=n?{href:t,kind:`terminal-hard-navigation`,reason:`maxRedirectsExceeded`,redirectDepth:e.redirectDepth}:{href:t,historyUpdateMode:e.historyUpdateMode,kind:`follow`,previousNextUrl:e.requestPreviousNextUrl,redirectDepth:e.redirectDepth+1}}function Ec(e){let t=new URL(e.responseUrl,e.origin);return Tc({...e,redirectedHref:$o(t.href,e.currentHref,e.origin),targetUrl:t})}function Dc(e){let t=new URL(e.streamedRedirectTarget,e.origin);return Tc({...e,redirectedHref:wc(e.streamedRedirectTarget,e.origin),targetUrl:t})}var B={cacheProofRejected:`NC_CACHE_REJECT`,cacheReuseTokenRejected:`NC_CACHE_TOKEN_REJECT`,commitCurrent:`NC_COMMIT`,crossDocumentFlight:`NC_CROSS_DOC_FLIGHT`,fetchFresh:`NC_FETCH_FRESH`,invalidRscPayload:`NC_RSC_INVALID`,interceptedCommitCurrent:`NC_INTERCEPT_COMMIT`,interceptedRejectedIncompatibleRoot:`NC_INTERCEPT_REJECT_ROOT`,interceptedRejectedMissingProof:`NC_INTERCEPT_REJECT_MISSING_PROOF`,interceptedRejectedMissingSlotProof:`NC_INTERCEPT_REJECT_SLOT`,interceptedRejectedTargetMismatch:`NC_INTERCEPT_REJECT_TARGET`,interceptedRejectedUndeclaredTopology:`NC_INTERCEPT_REJECT_GRAPH`,interceptedRejectedUnknownSource:`NC_INTERCEPT_REJECT_SOURCE`,optimisticRouteShell:`NC_OPTIMISTIC_SHELL`,prefetchOnly:`NC_PREFETCH_ONLY`,prefetchResponseReuse:`NC_PREFETCH_REUSE`,proceedToCommit:`NC_RSC_PROCEED`,redirectFollow:`NC_RSC_REDIRECT_FOLLOW`,redirectTerminalDepth:`NC_RSC_REDIRECT_DEPTH`,redirectTerminalExternal:`NC_RSC_REDIRECT_EXTERNAL`,requestWork:`NC_REQUEST`,rootBoundaryChanged:`NC_ROOT`,rootBoundaryUnknown:`NC_ROOT_UNKNOWN`,rscCompatibilityMismatch:`NC_RSC_COMPAT_MISMATCH`,rscNavigationError:`NC_RSC_NAV_ERROR`,sameDocumentScroll:`NC_SAME_DOC_SCROLL`,samePageRefresh:`NC_SAME_PAGE_REFRESH`,samePageSearch:`NC_SAME_PAGE_SEARCH`,serverActionRedirectCompatibilityMismatch:`NC_SA_REDIRECT_COMPAT`,serverActionRscCompatibilityMismatch:`NC_SA_RSC_COMPAT`,staleOperation:`NC_STALE`,streamedRedirectLoop:`NC_RSC_STREAMED_REDIRECT_LOOP`,visitedResponseReuse:`NC_VISITED_REUSE`},Oc={hardNavigate:`NT_HARD_NAVIGATE`,noCommit:`NT_NO_COMMIT`,visibleCommit:`NT_VISIBLE_COMMIT`};function kc(e){return{...e.activeNavigationId===void 0?{}:{activeNavigationId:e.activeNavigationId},currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.currentVisibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,...e.startedNavigationId===void 0?{}:{startedNavigationId:e.startedNavigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion}}function Ac(e,t={}){return{code:e,fields:{...t}}}function V(e,t={}){return{schemaVersion:0,entries:[Ac(e,t)]}}function jc(e,t,n={}){return{schemaVersion:e.schemaVersion,entries:[Ac(t,n),...e.entries]}}var Mc=[`navigation`,`visibleCommit`,`graphVersion`,`cacheVariant`];function Nc(e,t,n){switch(e){case`navigation`:return t.navigationId===n.activeNavigationId?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleNavigation`};case`visibleCommit`:return t.baseVisibleCommitVersion===n.visibleCommitVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleVisibleCommit`};case`graphVersion`:return t.graphVersion===null||n.graphVersion===null?{kind:`absent`,missingReason:`graphVersionMissing`}:t.graphVersion===n.graphVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`graphVersionMismatch`};case`cacheVariant`:{let e=t.cacheVariantFingerprint,r=n.installedCacheVariantFingerprint;return e===void 0||r===null?{kind:`absent`,missingReason:`cacheVariantMissing`}:e===r?{kind:`satisfied`}:{kind:`mismatch`,reason:`cacheVariantMismatch`}}default:throw Error(`[vinext] Unknown operation-token dimension: `+String(e))}}function Pc(e,t,n){let r=new Set(n.require),i=new Set([...n.check,...n.require]);for(let n of Mc){if(!i.has(n))continue;let a=Nc(n,e,t);if(a.kind===`mismatch`)return{authorized:!1,reason:a.reason};if(a.kind===`absent`&&r.has(n))return{authorized:!1,reason:a.missingReason}}return{authorized:!0,token:e}}function Fc(e,t){return Pc(e,{activeNavigationId:t.activeNavigationId,visibleCommitVersion:t.visibleCommitVersion,graphVersion:e.graphVersion,installedCacheVariantFingerprint:e.cacheVariantFingerprint??null},{check:[`navigation`,`visibleCommit`],require:[`navigation`,`visibleCommit`]})}function Ic(e,t){return Pc(e,{activeNavigationId:e.navigationId,visibleCommitVersion:e.baseVisibleCommitVersion,graphVersion:t.graphVersion,installedCacheVariantFingerprint:t.installedCacheVariantFingerprint},{check:[`graphVersion`,`cacheVariant`],require:[]})}function Lc(e,t){return e===`push`||t===`push`?`push`:`replace`}var Rc=`\0`,zc=`CP_CACHE_ENTRY_PROOF_MISSING`;function Bc(e){let t=e.work.kind===`traverseFlight`?{traverseDirection:e.work.direction}:{};return{kind:`requestWork`,token:e.state.nextOperationToken,work:e.work,trace:V(B.requestWork,{eventKind:e.eventKind,targetHref:Vc(e.work),...t})}}function Vc(e){switch(e.kind){case`flight`:case`prefetch`:return e.href;case`traverseFlight`:return null;default:throw Error(`[vinext] Unknown requested navigation work: `+String(e))}}function Hc(e,t={}){return{fetchResultSource:e.source,...t}}function Uc(e){return{discardBody:e.discardBody,kind:`hardNavigate`,...e.hardNavigationMode===void 0?{}:{hardNavigationMode:e.hardNavigationMode},reason:e.reason,trace:V(e.reasonCode,Hc(e.facts,{...e.redirectSignal===void 0?{}:{redirectSignal:e.redirectSignal},redirectDepth:e.facts.redirectDepth,targetHref:e.url})),url:e.url}}function Wc(e){return{discardBody:e.discardBody,kind:`followRedirect`,redirect:e.redirect,trace:V(B.redirectFollow,Hc(e.facts,{redirectDepth:e.redirect.redirectDepth,redirectSignal:e.redirectSignal,targetHref:e.redirect.href}))}}function Gc(e){switch(e){case`externalRedirect`:return{hardNavigationReason:`externalRedirectTarget`,traceReasonCode:B.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:B.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function Kc(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=$o(e.responseUrl,e.currentHref,e.origin);
32return Uc({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:B.invalidRscPayload,url:t})}let t=es({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl});if(t.kind===`hard-navigate`)return Uc({discardBody:!1,facts:e,reason:`rscCompatibilityMismatch`,reasonCode:B.rscCompatibilityMismatch,url:t.hardNavigationTarget});if(e.responseUrl!==null){let t=Ec({currentHref:e.currentHref,historyUpdateMode:e.effectiveHistoryUpdateMode,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,responseUrl:e.responseUrl});if(t.kind===`terminal-hard-navigation`){let n=Gc(t.reason);return Uc({discardBody:!1,facts:e,reason:n.hardNavigationReason,reasonCode:n.traceReasonCode,redirectSignal:`response-url`,url:t.href})}if(t.kind===`follow`)return Wc({discardBody:!1,facts:e,redirect:{href:t.href,historyUpdateMode:e.effectiveHistoryUpdateMode,previousNextUrl:t.previousNextUrl,redirectDepth:t.redirectDepth},redirectSignal:`response-url`})}if(e.streamedRedirectTarget!==null){let t=Lc(e.effectiveHistoryUpdateMode,e.streamedRedirectType),n=Dc({currentHref:e.currentHref,historyUpdateMode:t,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,streamedRedirectTarget:e.streamedRedirectTarget});if(n.kind===`terminal-hard-navigation`){let r=Gc(n.reason);return Uc({discardBody:!0,facts:e,reason:r.hardNavigationReason,reasonCode:r.traceReasonCode,redirectSignal:`streamed-header`,hardNavigationMode:t===`push`?`assign`:`replace`,url:n.href})}return n.kind===`follow`?Wc({discardBody:!0,facts:e,redirect:{href:n.href,historyUpdateMode:t,previousNextUrl:n.previousNextUrl,redirectDepth:n.redirectDepth},redirectSignal:`streamed-header`}):Uc({discardBody:!0,facts:e,reason:`streamedRedirectLoop`,reasonCode:B.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:V(B.proceedToCommit,Hc(e))}}function qc(e,t){return V(e,{targetHref:t.targetHref})}function Jc(e,t,n){return n===`browser`?_(e,t):e}function Yc(e){let t,n;try{t=new URL(e.currentHref),n=new URL(e.targetHref,e.currentHref)}catch{return{bypassNavigationCache:!1,kind:`flightNavigation`,trace:qc(B.crossDocumentFlight,e)}}let r=Jc(t.pathname,e.basePath,e.currentUrlSpace),i=Jc(n.pathname,e.basePath,`browser`),a=t.origin===n.origin&&r===i,o=t.searchParams.toString()===n.searchParams.toString();return a&&t.search===n.search&&t.hash===n.hash?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:qc(B.samePageRefresh,e)}:a&&o&&t.hash!==n.hash?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:qc(B.sameDocumentScroll,e)}:a&&!o?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:qc(B.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:qc(B.crossDocumentFlight,e)}}function Xc(e){return e.candidate===`missing`?{kind:`miss`}:e.mountedSlotsMatch?e.navigationKind===`refresh`?{kind:`evict`,reason:`refresh`}:e.fresh?{kind:`reuse`}:{kind:`evict`,reason:`stale`}:{kind:`evict`,reason:`mountedSlotsMismatch`}}function Zc(e,t,n={}){return V(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function Qc(e,t){return{kind:`fetchFresh`,reason:t,trace:Zc(B.fetchFresh,e,{freshFetchReason:t})}}function $c(e){return e.navigationKind===`refresh`?Qc(e,`refresh`):!e.bypassNavigationCache&&e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:Zc(B.visitedResponseReuse,e)}:!e.bypassNavigationCache&&e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:Zc(B.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:Zc(B.optimisticRouteShell,e)}:Qc(e,e.bypassNavigationCache?`cacheBypassed`:e.optimisticRouteShell.reason):e.bypassNavigationCache?Qc(e,`cacheBypassed`):Qc(e,`cacheMiss`)}function el(e){return e.visitedResponse.status===`available`?{kind:`skip`,reason:`visitedResponseAvailable`}:e.navigationKind===`refresh`?{kind:`skip`,reason:`refresh`}:e.bypassNavigationCache?{kind:`skip`,reason:`cacheBypassed`}:{kind:`probe`}}function tl(e){return{layoutIds:e.layoutIds,rootBoundaryId:e.rootBoundaryId,rootLayoutTreePath:e.rootBoundaryId,slotBindings:e.slotBindings}}function nl(e){let t=e.indexOf(Rc);return t===-1?e:e.slice(0,t)}function rl(e){let t=nl(e);return t.startsWith(`route:/`)?t.slice(6):null}function il(e){try{return new URL(e,`https://vinext.local`).pathname}catch{let[t=``]=e.split(`#`),[n=``]=t.split(`?`);return n===``?`/`:n}}function al(e){return g(il(e))}function ol(e,t){let n=al(t);for(let t of e.segmentGraph.routes.values())if(pr(n,t.patternParts)!==null)return t;return null}function sl(e,t){return pr(al(t),e.patternParts)!==null}function cl(e){let t=nl(e.routeId),n=e.routeManifest.segmentGraph.routes.get(t);if(n&&sl(n,e.matchedUrl))return n;let r=n===void 0?rl(e.routeId):null;if(r!==null){let t=ol(e.routeManifest,r);
32if(t!==null)return t}return ol(e.routeManifest,e.matchedUrl)}function ll(e,t){return t.interception===null?cl({matchedUrl:t.matchedUrl,routeId:t.routeId,routeManifest:e}):cl({matchedUrl:t.interception.sourceMatchedUrl,routeId:t.interception.sourceRouteId,routeManifest:e})}function ul(e,t){let n=[];for(let r of t.slotIds){let i=e.segmentGraph.slotBindings.get(`${t.id}::${r}`);i&&n.push({ownerLayoutId:i.ownerLayoutId,slotId:i.slotId,state:i.state})}return n.sort((e,t)=>w(e.slotId,t.slotId))}function dl(e,t){return t.rootBoundaryId===null?null:e.segmentGraph.rootBoundaries.get(t.rootBoundaryId)?.treePath??null}function fl(e){let t=e.routeManifest===null?null:ll(e.routeManifest,e.snapshot);if(t===null||e.routeManifest===null)return{kind:`unknown`};let n=e.slotBindingSource===`manifestTarget`&&e.snapshot.interception===null;return{kind:`known`,topology:{layoutIds:t.layoutIds,rootBoundaryId:t.rootBoundaryId,rootLayoutTreePath:dl(e.routeManifest,t),slotBindings:n?ul(e.routeManifest,t):e.snapshot.slotBindings}}}function pl(e,t){let n=al(t.sourceMatchedUrl),r=al(t.targetMatchedUrl),i=cl({matchedUrl:t.targetMatchedUrl,routeId:t.targetRouteId,routeManifest:e}),a=e.segmentGraph.interceptionsBySlotId.get(t.slotId)??[];for(let e of a){if(!gr(n,e.sourcePatternParts))continue;let t=pr(r,e.targetPatternParts),a=t===null&&_r(r,e.targetPatternParts);if(!(t===null&&!a)&&!(!a&&e.targetRouteId!==null&&i?.id!==e.targetRouteId))return e}return null}function ml(e){return e.state.traceFields?{...e.state.traceFields,currentRootLayoutTreePath:e.currentRootLayoutTreePath,nextRootLayoutTreePath:e.nextRootLayoutTreePath}:kc({currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.state.visibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,startedVisibleCommitVersion:e.event.token.baseVisibleCommitVersion})}function hl(e,t){return e===null||t===null?`rootBoundaryUnknown`:e===t?`currentRootBoundary`:`rootBoundaryChanged`}function gl(e,t){return _l(tl(e),tl(t))}function _l(e,t){if(hl(e.rootBoundaryId,t.rootBoundaryId)!==`currentRootBoundary`)return[];let n=[],r=Math.min(e.layoutIds.length,t.layoutIds.length);for(let i=0;i<r;i++){let r=e.layoutIds[i];if(r!==t.layoutIds[i])break;n.push(r)}return n}function vl(e,t){return yl(e,gl(e,t))}function yl(e,t){if(t.length===0)return[];let n=new Set(t),r=[],i=new Set;for(let t of e.mountedParallelSlots)t.ownerLayoutId!==null&&n.has(t.ownerLayoutId)&&(i.has(t.slotId)||(r.push(t.slotId),i.add(t.slotId)));return r}function bl(e,t){let n=gl(e,t);return[...n,...yl(e,n)]}function xl(e){return _l(e.currentTopology,e.targetTopology)}function Sl(e){if(e.lane===`traverse`)return[];let t=_l(e.currentTopology,e.targetTopology);if(t.length===0)return[];let n=wl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings}),r=Cl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings});return[...new Set([...n,...r])].sort(w)}function Cl(e){let t=new Set(e.preservedLayoutIds),n=new Set(e.targetSlotBindings.map(e=>e.slotId));return e.currentSlotBindings.filter(e=>{let r=E.parseElementKey(e.slotId);return e.state===`active`&&e.ownerLayoutId!==null&&t.has(e.ownerLayoutId)&&r?.kind===`slot`&&r.name===`children`&&!n.has(e.slotId)}).map(e=>e.slotId).sort(w)}function wl(e){let t=new Set(e.preservedLayoutIds),n=new Set;for(let t of e.currentSlotBindings)t.state!==`unmatched`&&n.add(t.slotId);let r=[],i=new Set;for(let a of e.targetSlotBindings)a.ownerLayoutId!==null&&t.has(a.ownerLayoutId)&&a.state!==`active`&&n.has(a.slotId)&&(i.has(a.slotId)||(r.push(a.slotId),i.add(a.slotId)));return r.sort(w)}function Tl(e){let t=new Map(e.currentSlotBindings.map(e=>[e.slotId,e])),n=new Set(e.preservedLayoutIds),r=[];for(let i of e.targetSlotBindings){if(i.slotId===e.targetInterceptionSlotId||i.state!==`active`||i.ownerLayoutId===null||!n.has(i.ownerLayoutId))continue;let a=t.get(i.slotId);a?.state===`active`&&a.ownerLayoutId===i.ownerLayoutId&&(a.activeRouteId&&i.activeRouteId&&a.activeRouteId!==i.activeRouteId||r.push(i.slotId))}return r.sort(w)}function El(e){return e.interception?{matchedUrl:e.interception.sourceMatchedUrl,routeId:e.interception.sourceRouteId}:{matchedUrl:rl(e.routeId)??e.matchedUrl,routeId:e.routeId}}function Dl(e){return{kind:`hardNavigate`,reason:`interceptionProofRejected`,token:e.event.token,trace:V(e.reasonCode,e.traceFields),url:e.event.result.href}}function Ol(e){return e===void 0?{kind:`accepted`,decision:null}:e.decision===null?{kind:`rejected`,decision:null}:e.decision.canReuse?{kind:`accepted`,decision:e.decision}:{kind:`rejected`,decision:e.decision}}function kl(e,t){return t===null?{...e,cacheProofCode:zc}:{...e,cacheProofCode:t.code,cacheProofMode:t.mode,cacheProofScope:t.scope}}function Al(e){return{kind:`hardNavigate`,reason:`cacheProofRejected`,token:e.event.token,trace:V(B.cacheProofRejected,kl(e.traceFields,e.rejection.decision)),url:e.event.result.href}}function jl(e){return{kind:`hardNavigate`,reason:`cacheReuseTokenRejected`,token:e.event.token,trace:V(B.cacheReuseTokenRejected,{...e.traceFields,cacheReuseTokenReason:e.reason}),url:e.event.result.href}}function Ml(e,t){return t===null?e:{...e,cacheProofCode:t.code,cacheProofReuseClass:t.reuseClass}}function Nl(e){return e===null?{}:{cacheEntryReuseDecision:e}}function Pl(e){let t=e.targetSnapshot.interception;if(!t)return{kind:`rejected`,reasonCode:B.interceptedRejectedMissingProof};if(t.targetMatchedUrl!==e.targetSnapshot.matchedUrl)return{kind:`rejected`,reasonCode:B.interceptedRejectedTargetMismatch};let n=El(e.currentSnapshot);if(!e.restoredHistorySnapshot&&(t.sourceMatchedUrl!==n.matchedUrl||t.sourceRouteId!==n.routeId))return{kind:`rejected`,reasonCode:B.interceptedRejectedUnknownSource};let r=e.routeManifest===null?null:pl(e.routeManifest,t);if(e.routeManifest!==null&&r===null)return{kind:`rejected`,reasonCode:B.interceptedRejectedUndeclaredTopology};let i=_l(e.currentTopology,e.targetTopology);if(i.length===0)return{kind:`rejected`,reasonCode:B.interceptedRejectedIncompatibleRoot};let a=new Set(i),o=e.targetTopology.slotBindings.find(e=>e.slotId===t.slotId);if(!o||o.state!==`active`||o.ownerLayoutId===null||!a.has(o.ownerLayoutId))return{kind:`rejected`,reasonCode:B.interceptedRejectedMissingSlotProof};if(r!==null&&o.ownerLayoutId!==r.ownerLayoutId)return{kind:`rejected`,reasonCode:B.interceptedRejectedUndeclaredTopology};let s=wl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetSlotBindings:e.targetTopology.slotBindings}).filter(e=>e!==t.slotId),c=e.lane===`navigation`?Tl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetInterceptionSlotId:t.slotId,targetSlotBindings:e.targetTopology.slotBindings}):[];return{kind:`approved`,preserveElementIds:i,preservePreviousSlotIds:[...new Set([...s,...c])].sort(w)}}function Fl(e){let t=e.event.result.targetSnapshot,n=fl({routeManifest:e.routeManifest,slotBindingSource:`snapshot`,snapshot:e.state.visibleSnapshot}),r=fl({routeManifest:e.routeManifest,slotBindingSource:`manifestTarget`,snapshot:t}),i=ml({currentRootLayoutTreePath:n.kind===`known`?n.topology.rootLayoutTreePath:null,event:e.event,nextRootLayoutTreePath:r.kind===`known`?r.topology.rootLayoutTreePath:null,state:e.state});if(e.event.token.lane===`prefetch`)return{kind:`noCommit`,reason:`prefetchOnly`,token:e.event.token,trace:V(B.prefetchOnly,i)};let a=Ol(e.event.result.cacheEntryReuseProof);if(a.kind===`rejected`)return Al({event:e.event,rejection:a,traceFields:i});let o=a.decision;if(o!==null){let t=Ic(e.event.token,{graphVersion:e.routeManifest?.graphVersion??null,installedCacheVariantFingerprint:null});if(!t.authorized)return jl({event:e.event,reason:t.reason,traceFields:i})}let s=Ml(i,o),c=Nl(o);if(t.interception!==null){if(n.kind===`unknown`||r.kind===`unknown`)return Dl({event:e.event,reasonCode:B.interceptedRejectedUndeclaredTopology,traceFields:s});let i=Pl({currentSnapshot:e.state.visibleSnapshot,currentTopology:n.topology,lane:e.event.token.lane,restoredHistorySnapshot:e.event.result.restoredHistorySnapshot===!0,routeManifest:e.routeManifest,targetSnapshot:t,targetTopology:r.topology});return i.kind===`rejected`?Dl({event:e.event,reasonCode:i.reasonCode,traceFields:s}):{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:i.preserveElementIds,preservePreviousSlotIds:i.preservePreviousSlotIds,reason:`interceptedCurrentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:V(B.interceptedCommitCurrent,s)}}let l=n.kind===`unknown`||r.kind===`unknown`?`rootBoundaryUnknown`:hl(n.topology.rootBoundaryId,r.topology.rootBoundaryId);if(l===`rootBoundaryChanged`)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:V(B.rootBoundaryChanged,s),url:e.event.result.href};if(l===`rootBoundaryUnknown`)return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:[],preservePreviousSlotIds:[],reason:`unprovenTopologyFallback`,targetSnapshot:t},token:e.event.token,trace:V(B.rootBoundaryUnknown,s)};if(n.kind!==`known`||r.kind!==`known`)throw Error(`[vinext] Current-root navigation planning requires manifest topology`);return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:xl({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),preservePreviousSlotIds:Sl({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),reason:`currentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:V(B.commitCurrent,s)}}function Il(e){switch(e.event.kind){case`navigate`:return Bc({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`flight`,mode:e.event.mode}});case`refresh`:return Bc({eventKind:e.event.kind,state:e.state,work:{href:e.state.visibleSnapshot.displayUrl,kind:`flight`,mode:`refresh`}});case`traverse`:return Bc({eventKind:e.event.kind,state:e.state,work:{direction:e.event.direction,historyState:e.event.historyState,kind:`traverseFlight`}});case`prefetch`:return Bc({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`prefetch`}});case`flightResponseArrived`:return Fl({event:e.event,routeManifest:e.routeManifest,state:e.state});default:{let t=e.event;throw Error(`[vinext] Unknown navigation event: `+String(t))}}}function Ll(e){if(e.clientCompatibilityId===null||!e.isRscContentType||es({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:V(B.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:V(B.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:V(B.serverActionRscCompatibilityMismatch,{targetHref:t})}}function Rl(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:V(B.rscNavigationError,{targetHref:e.currentHref})}}var zl={classifyEarlyNavigationIntent:Yc,classifyNavigationPrefetchProbe:el,classifyNavigationReuse:$c,classifyRscFetchResult:Kc,classifyRscNavigationError:Rl,classifyRootBoundaryTransition:hl,classifyServerActionResult:Ll,classifyVisitedResponseCac
32heCandidate:Xc,plan:Il,resolveCurrentRootBoundaryElementPersistence:bl,resolveMountedParallelSlotPersistence:vl,resolveSameLayoutAncestorPersistence:gl};function Bl(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function Vl(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function Hl(e){let t=Vl();for(let n of e){let e=n.patternParts;if(e.length===0){t.route===null&&(t.route=n);continue}let r=t;for(let t=0;t<e.length;t++){let i=e[t];if(i.endsWith(`+`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.catchAllChild===null&&(r.catchAllChild={paramName:a,route:n});break}if(i.endsWith(`*`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.optionalCatchAllChild===null&&(r.optionalCatchAllChild={paramName:a,route:n});break}if(i.startsWith(`:`)){let a=i.slice(1);r.dynamicChild===null&&(r.dynamicChild={paramName:a,node:Vl()}),r=r.dynamicChild.node,t===e.length-1&&r.route===null&&(r.route=n);continue}let a=r.staticChildren.get(i);a||(a=Vl(),r.staticChildren.set(i,a)),r=a,t===e.length-1&&r.route===null&&(r.route=n)}}return t}function Ul(e,t){let n=Wl(e,t);return n&&we(n.params),n}function Wl(e,t){return Gl(e,t,0,[])}function Gl(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Ce(r)}:{route:e.route,params:Ce(r)};let i=t[n],a=e.staticChildren.get(i);if(a){let e=Gl(a,t,n+1,r);if(e!==null)return e}if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=Gl(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=t.slice(n),a=Ce(r);return a[e.catchAllChild.paramName]=i,{route:e.catchAllChild.route,params:a}}if(e.optionalCatchAllChild!==null){let i=Ce(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function Kl(){return new WeakMap}function ql(e,t){let n=e.get(t);return n||(n=Hl(t),e.set(t,n)),n}function Jl(e,t,n){let r=e.split(`?`)[0],i=r===`/`?`/`:r.replace(/\/$/,``);i=xe(i);let a=i.split(`/`).filter(Boolean);return Ul(ql(n,t),a)}function Yl(e){if(e)return e.split(`,`,1)[0]?.trim().split(`:`,1)[0]?.toLowerCase()||void 0}function Xl(e,t,n){if(!e?.length)return;let r=Yl(t),i=n?.toLowerCase();for(let t of e)if(r===Yl(t.domain)||i===t.defaultLocale.toLowerCase()||t.locales?.some(e=>e.toLowerCase()===i))return t}function Zl(e,t,n){let r=t.toLowerCase();if(r===n.toLowerCase())return e;let i=e.startsWith(`/`)?e:`/${e}`,a=(i.split(/[?#]/,1)[0]??i).toLowerCase(),o=`/${r}`;return a===o||a.startsWith(`${o}/`)?e.startsWith(`/`)?e:i:`/${t}${i}`}function Ql(e,t){if(!t?.length)return;let n=e.startsWith(`/`)?e:`/${e}`,r=(n.split(/[?#]/,1)[0]??n).split(`/`).find(Boolean);if(!r)return;let i=r.toLowerCase();return t.find(e=>e.toLowerCase()===i)}function $l(e,t=``){return t?t+e:e}function eu(e,t,{basePath:n,currentHostname:r,domainItems:i}){if(!i?.length)return;let a=Xl(i,void 0,t);if(!a)return;let o=Xl(i,r??void 0),s=Zl(e,t,a.defaultLocale);if(!(o&&Yl(o.domain)===Yl(a.domain)))return`${`http${a.http?``:`s`}://`}${a.domain}${$l(s,n)}`}var tu=Kl(),nu=Kl();function ru(e){return`/`+e.join(`/`)}function iu(e,t){let n;try{n=new URL(e,window.location.href)}catch{return null}if(n.origin!==window.location.origin)return null;let r=_(n.pathname,t),i=Ql(r,window.__VINEXT_LOCALES__);if(!i)return r;let a=i.length+1;return r.length===a?`/`:r.slice(a)}function au(e,t){let n=iu(e,t);if(n===null)return{appMatch:null,pagesMatch:null};let r=window.__VINEXT_LINK_PREFETCH_ROUTES__,i=window.__VINEXT_PAGES_LINK_PREFETCH_ROUTES__;return{appMatch:r?Jl(n,r,tu)?.route??null:null,pagesMatch:i?Jl(n,i,nu)?.route??null:null}}function ou({appMatch:e,pagesMatch:t}){if(e===null&&t===null)return null;if(t===null)return e.documentOnly?`document`:`app`;if(e===null)return t.documentOnly?`document`:`pages`;let n=_e(ru(t.patternParts),t.isDynamic,ru(e.patternParts),e.isDynamic);return(n===`app`?e:t).documentOnly?`document`:n}var su=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function cu(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&su.test(e)}function lu(e){return cu(e)||e.startsWith(`//`)}function uu(){let{origin:e,href:t}=window.location;if(e)return e;try{return new URL(t).origin}catch{return null}}function du(e){let t=uu();if(!t)return null;try{let n=e.startsWith(`//`)?new URL(e,t):new URL(e);if(n.origin===t)return n.pathname+n.search+n.hash}catch{}return null}function fu(e,t){let n=du(e);if(n==null||!t)return n;try{let e=new URL(n,`http://vinext.local`);return De(e.pathname,t)?_(e.pathname,t)+e.search+e.hash:null}catch{return n}}function pu(e){let t=e.indexOf(`#`),n=e.indexOf(`?`),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):``,hash:t>-1?e.slice(t):``}:{pathname:e,query:``,hash:``}}function mu(e){return e.replace(/\/$/,``)||`/`}function hu(e,t){if(!e.startsWith(`/`)||e.startsWith(`//`))return e;let{pathname:n,query:r,hash:i}=pu(e);return t?/\.[^/]+\/?$/.test(n)?`${mu(n)}${r}${i}`:n.endsWith(`/`)?`${n}${r}${i}`:`${n}/${r}${i}`:`${mu(n)}${r}${i}`}function gu(e,t){return!t||!e.startsWith(`/`)||lu(e)?e:t+e}function _u(e,t,n=``){let r=t??window.location.href;if(!r||e.startsWith(`/`)||lu(e))return e;try{let t=new URL(e,r);return(n&&t.pathname===n?``:n?_(t.pathname,n):t.pathname)+t.search+t.hash}catch{return e}}function vu(e,t,n=``){let r=_u(e,t,n);return n?r===``?n:r.startsWith(`?`)||r.startsWith(`#`)?n+r:gu(r,n):gu(r,n)}function yu(e,t,n=``){try{let r=new URL(t),i=new URL(e,t);return _(r.pathname,n)===_(i.pathname,n)&&r.search===i.search&&i.hash!==``}catch{return!1}}var bu=String.raw`(?:^|[^\w-])[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|meta-externalagent|meta-externalfetcher|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|Skype
32UriPreview|Yeti|googleweblight`,xu=/Googlebot(?!-)|Googlebot$/i,Su=new Map;function Cu(e){let t=e||bu,n=Su.get(t);if(n)return n;let r=new RegExp(t,`i`);return Su.set(t,r),r}function wu(e,t){return e?xu.test(e)?!0:Cu(t).test(e):!1}var Tu=`_b_0_`,Eu=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},H=class extends URLSearchParams{append(){throw new Eu}delete(){throw new Eu}set(){throw new Eu}sort(){throw new Eu}},Du=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function U(){let e=globalThis[Du];if(!e)return null;try{return e()}catch{return null}}var Ou=e({cancelAppPrefetchFetch:()=>Lu,promoteAppPrefetchFetch:()=>Ru,releaseAppPrefetchFetchSlot:()=>Fu,scheduleAppPrefetchFetch:()=>Iu}),ku=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),Au=4,W=[],G=new WeakMap,ju=0,Mu=!1;function Nu(){for(Mu=!1;ju<Au;){let e=W.shift();if(!e)return;ju+=1,e()}}function Pu(){Mu||(Mu=!0,queueMicrotask(Nu))}function Fu(e){let t=e[ku];t!==void 0&&(e[ku]=void 0,t())}function Iu(e,t){let n=new AbortController;if(t===`high`){let t=e(n.signal);return G.set(t,{cancel:()=>n.abort()}),t.then(e=>{e[ku]=()=>G.delete(t)},()=>G.delete(t)),t}let r,i,a=!1,o=new Promise((t,s)=>{i=s,r=()=>{a=!0;let r=!1,i=()=>{r||(r=!0,G.delete(o),--ju,Nu())};try{e(n.signal).then(e=>{e[ku]=i,t(e)},e=>{G.delete(o),i(),s(e)})}catch(e){G.delete(o),i(),s(e)}}});return W.push(r),G.set(o,{runner:r,cancel:()=>{if(a){n.abort();return}let e=W.indexOf(r);e!==-1&&(W.splice(e,1),G.delete(o),n.abort(),i(n.signal.reason))}}),Pu(),o}function Lu(e){e!==void 0&&G.get(e)?.cancel()}function Ru(e){if(e===void 0)return;let t=G.get(e)?.runner;if(t===void 0)return;let n=W.indexOf(t);n!==-1&&(W.splice(n,1),ju+=1,t())}var zu=class extends Error{constructor(...e){super(...e),this.name=`UnrecognizedActionError`}};function Bu(e){return!!(e&&typeof e==`object`&&e instanceof zu)}var Vu=`modulepreload`,Hu=function(e){return`/`+e},Uu={},Wu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Hu(t,n),t=s(t),t in Uu)return;Uu[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Vu,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Gu=e({BailoutToCSRError:()=>gi,DYNAMIC_NAVIGATION_CACHE_TTL:()=>od,DynamicServerError:()=>yi,GLOBAL_ACCESSORS_KEY:()=>Lr,HTTP_ERROR_FALLBACK_ERROR_CODE:()=>ni,MAX_PREFETCH_CACHE_SIZE:()=>rd,PREFETCH_CACHE_TTL:()=>K,ReadonlyURLSearchParams:()=>H,RedirectType:()=>ai,ServerInsertedHTMLContext:()=>Nr,UnrecognizedActionError:()=>zu,__basePath:()=>``,_registerStateAccessors:()=>qr,activateNavigationSnapshot:()=>Ff,appRouterInstance:()=>xp,applyAppRouterScrollFallback:()=>op,clearPendingPathname:()=>Jf,clearServerInsertedHTML:()=>$r,commitClientNavigationState:()=>Q,consumePrefetchResponse:()=>_f,consumePrefetchResponseForNavigation:()=>yf,createAppPrefetchRequestHeaders:()=>fd,createCachedRscResponseSnapshot:()=>of,createClientNavigationRenderSnapshot:()=>Bf,createSnapshotPathAndSearch:()=>Vf,decodeRedirectError:()=>pi,deletePrefetchResponseSnapshot:()=>rf,disableNavigationResponsePrefetchCacheReuse:()=>tf,discardLearningOnlyPrefetchCacheEntry:()=>Jd,fetchRouteTreeGatedPrefetch:()=>pf,flushServerInsertedHTML:()=>Zr,forbidden:()=>ui,getAccessFallbackHTTPStatus:()=>ii,getBfcacheIdMapContext:()=>Fr,getBfcacheSegmentIdContext:()=>Ir,getClientNavigationRenderContext:()=>Rf,getClientNavigationState:()=>Z,getClientParams:()=>Kf,getCurrentInterceptionContext:()=>ld,getCurrentNextUrl:()=>
32dd,getFreshPrefetchCacheEntry:()=>pd,getLayoutSegmentContext:()=>Pr,getMountedSlotsHeader:()=>Cf,getNavigationContext:()=>D,getPrefetchCache:()=>q,getPrefetchInterceptionContext:()=>ud,getPrefetchedUrls:()=>J,hasFreshLearningOnlyPrefetchCacheEntry:()=>kd,hasPrefetchCacheEntryForNavigation:()=>Od,hasSearchAgnosticPrefetchShellForRoute:()=>Ad,invalidatePrefetchCache:()=>ef,isBailoutToCSRError:()=>_i,isDynamicServerError:()=>bi,isHTTPAccessFallbackError:()=>ri,isNextRouterError:()=>mi,isRedirectError:()=>fi,navigateClientSide:()=>pp,notFound:()=>li,peekPrefetchResponseForNavigation:()=>gf,permanentRedirect:()=>ci,prefetchRscResponse:()=>mf,preloadHybridClientRouteOwner:()=>Ju,prepareNavigationPrefetchSnapshot:()=>ff,pushHistoryStateWithoutNotify:()=>np,redirect:()=>si,renderServerInsertedHTML:()=>Qr,replaceClientParamsWithoutNotify:()=>Gf,replaceHistoryStateWithoutNotify:()=>rp,resolveCachedRscResponseExpiresAt:()=>bd,resolveCachedRscResponseTtlMs:()=>yd,resolveLoadedHybridClientRewriteHref:()=>Yu,resolvePrefetchCacheEntryMountedSlotsHeader:()=>Sd,restoreRscResponse:()=>df,saveScrollPosition:()=>ip,seedPrefetchResponseSnapshot:()=>nf,setClientParams:()=>Wf,setMountedSlotsHeader:()=>Sf,setNavigationContext:()=>Jr,setPendingPathname:()=>qf,snapshotRscResponse:()=>lf,storePrefetchResponse:()=>af,unauthorized:()=>di,unstable_isUnrecognizedActionError:()=>Bu,unstable_rethrow:()=>xi,useClientNavigationRenderSnapshot:()=>zf,useParams:()=>ep,usePathname:()=>Qf,useRouter:()=>Sp,useSearchParams:()=>$f,useSelectedLayoutSegment:()=>Cp,useSelectedLayoutSegments:()=>wp,useServerInsertedHTML:()=>Tp}),Ku=null,qu=null;async function Ju(){Ku||=(qu??=Wu(()=>import(`./hybrid-client-route-owner-CT-z-rcc.js`),__vite__mapDeps([0,1])),await qu)}function Yu(e,t){return Ku?.resolveHybridClientRewriteHref(e,t)??null}function Xu(e){return null}function Zu(e=`children`){let t=Pr();if(!t)return[];try{return(o.useContext(t)[e]??[]).filter(e=>!e.startsWith(`__PAGE__`))}catch{return[]}}var Qu=Symbol(`vinext.navigation.readonlySearchParams`),$u=Symbol(`vinext.navigation.readonlySearchParamsSource`),ed=Symbol(`vinext.navigation.readonlySearchParamsSourceKey`),td=Symbol.for(`vinext.navigation.pagesNavigationNotify`),nd=``,rd=52428800,id=rd*.9;function ad(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var od=ad(`0`,3e4),K=ad(`300`,3e4),sd=30,cd=sd*1e3;function ld(){return _(window.location.pathname,``)}function ud(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return xs({basePath:``,currentPathname:window.location.pathname,routeManifest:h()?.bootstrap.routeManifest??null,targetPathname:t.pathname})}function dd(){return window.location.pathname+window.location.search}function fd(e){let t=h()?.functions.getPrefetchRouterState?.()??null;return fs({...e,nextUrl:dd(),includePrefetchHeader:e.prefetchKind!==`full`,prefetchRouterState:t})}function q(){return window.__VINEXT_RSC_PREFETCH_CACHE__||(window.__VINEXT_RSC_PREFETCH_CACHE__=new Map),window.__VINEXT_RSC_PREFETCH_CACHE__}function pd(e){let t=q(),n=t.get(e);if(n===void 0||n.pending||Y(n)>Date.now())return n;X(t,J(),e,n,!0)}function J(){return window.__VINEXT_RSC_PREFETCHED_URLS__||(window.__VINEXT_RSC_PREFETCHED_URLS__=new Set),window.__VINEXT_RSC_PREFETCHED_URLS__}function md(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function hd(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function gd(e){if(e===null||e===``)return;let t=Number(e);return md(t)?t:void 0}function _d(e){if(e!==void 0)return e.kind===`pending`?sd:Math.max(e.seconds,sd)}function vd(e){let t=e.dynamicStaleTimeSeconds,n=_d(e.serverStaleTime);return md(t)?n===void 0?t:Math.min(t,n):n}function yd(e,t){let n=vd(e);return n===void 0?t:n*1e3}function bd(e,t,n){return hd(t.expiresAt)?t.expiresAt:e+yd(t,n)}function xd(e,t,n,r){if(hd(t.expiresAt))return t.expiresAt;let i=t.serverStaleTime?.kind===`pending`&&r!==`verbatim`?void 0:_d(t.serverStaleTime);if(i!==void 0)return e+i*1e3;if(r===`ignore`)return e+Math.max(n,cd);let a=md(t.dynamicStaleTimeSeconds)?t.dynamicStaleTimeSeconds:void 0;return a===void 0?e+Math.max(n,cd):r===`verbatim`?e+a*1e3:e+Math.max(a===0?n:a*1e3,cd)}function Y(e){return e.expiresAt===void 0?e.snapshot?bd(e.timestamp,e.snapshot,K):e.timestamp+K:e.expiresAt}function Sd(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function Cd(e){try{let t=new URL(e,`http://vinext.local`);return us(t),`${t.pathname}${t.search}`}catch{return null}}function wd(e){try{return ds(new URL(e,`http://vinext.local`).pathname)}catch{return null}}function Td(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function Ed(e,t){return Sd(e)===t||(e.snapshot?.mountedSlotsHeader??null)===t}function Dd(e,t,n,r=[]){let i=q(),a=[e,...r];for(let e of a){let r=E.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&Ed(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>Cd(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=Td(e);if(i.interceptionContext!==t)continue;let a=Cd(i.rscUrl);if(!(a===null||!o.has(a))&&Ed(r,n))return{cacheKey:e,entry:r}}return null}function Od(e,t=null,n=null,r={}){let i=Dd(e,t,n,r.additionalRscUrls);return i===null?!1:i.entry.pending!==void 0||Y(i.entry)>Date.now()?(Id(q(),i.cacheKey,i.entry),Qd(i.cacheKey,i.entry,r.onInvalidate),!0):(X(q(),J(),i.cacheKey,i.entry,r.notifyInvali
32dation??!0),!1)}function kd(e,t=null){let n=E.encodeCacheKey(e,t),r=q(),i=r.get(n);return i?.cacheForNavigation===!1?i.pending!==void 0||Y(i)>Date.now()?(Id(r,n,i),!0):(X(r,J(),n,i,!0),!1):!1}function Ad(e,t=null,n=null){let r=wd(e);if(r===null)return!1;let i=q();for(let[e,a]of i){if(a.searchAgnosticShell!==!0)continue;let o=Td(e);if(o.interceptionContext===t&&wd(o.rscUrl)===r&&Ed(a,n)){if(a.pending!==void 0||Y(a)>Date.now())return!0;X(i,J(),e,a,!0)}}return!1}function jd(e){return e.snapshot?.buffer.byteLength??e.size??0}var Md=null,Nd=0;function Pd(e){if(Md===e)return Nd;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=jd(r));return Md=e,Nd=t,t}function Fd(e,t){Md===e&&(Nd=Math.max(0,Nd+t))}function Id(e,t,n){if(e.get(t)===n){e.delete(t),e.set(t,n);for(let r of n.cacheKeys??[])r!==t&&e.get(r)===n&&(e.delete(r),e.set(r,n))}}function Ld(){let e=q(),t=Pd(e);if(t<=52428800)return;let n=Date.now(),r=J();for(let[t,i]of e)Y(i)<=n&&X(e,r,t,i,!0);if(t=Pd(e),t<=52428800)return;let i=0;for(;t>id&&i<e.size;){let n=e.keys().next().value;if(n!==void 0){let a=e.get(n);if(a){let o=jd(a);if(a.pending!==void 0&&o===0){Id(e,n,a),i+=1;continue}t-=o,X(e,r,n,a,!0),i=0}else e.delete(n),r.delete(n),i+=1}else break}}var Rd=new Set;function zd(e){let t={destination:e,cancelled:!1};return Rd.add(t),t}function Bd(e){for(let t of Rd)(e===null||t.destination===e)&&(t.cancelled=!0)}function Vd(e){let t=e;if(Bl(e)){let n=fu(e,``);if(n==null)return null;t=n}let n=vu(t,window.location.href,``);try{let e=new URL(n,window.location.href);return`${e.pathname}${e.search}`}catch{return n.split(`#`,1)[0]}}function Hd(e){e.invalidationTimer!==void 0&&(clearTimeout(e.invalidationTimer),e.invalidationTimer=void 0)}function Ud(e){try{e()}catch(e){typeof reportError==`function`?reportError(e):console.error(e)}}function Wd(e){Hd(e);let t=e.onInvalidateCallbacks;if(e.onInvalidateCallbacks=void 0,t!==void 0)for(let e of t)Ud(e)}var Gd=new Set;function Kd(e){let t=e.onInvalidateCallbacks;if(t===void 0||t.size===0)return;let n=Math.max(0,Y(e)-Date.now()),r={callbacks:t,timer:setTimeout(()=>qd(r),n)};Gd.add(r)}function qd(e){if(Gd.delete(e)){clearTimeout(e.timer);for(let t of e.callbacks)Ud(t)}}function X(e,t,n,r,i){let a=r.cacheKeys??new Set([n]),o=!1;for(let n of a)e.get(n)===r&&(e.delete(n),t.delete(n),o=!0);o&&(Fd(e,-jd(r)),r.cacheKeys=void 0,i?Wd(r):(Hd(r),r.onInvalidateCallbacks=void 0))}function Jd(e,t=null){let n=q(),r=J(),i=Cd(e);if(i===null)return!1;let a=[];for(let[e,r]of n){if(r.cacheForNavigation!==!1||r.prefetchKind!==`navigation`)continue;let n=Td(e);n.interceptionContext===t&&Cd(n.rscUrl)===i&&a.push([e,r])}for(let[e,t]of a)Lu(t.fetchPromise),X(n,r,e,t,!0);return a.length>0}function Yd(e){let t=q(),n=t.get(e);n&&X(t,J(),e,n,!0)}function Xd(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;Hd(t);let n=Math.max(0,Y(t)-Date.now());t.invalidationTimer=setTimeout(()=>{Yd(e)},n)}function Zd(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function Qd(e,t,n){n!==void 0&&(Zd(t,n),t.outcome===`cache-seeded`&&Xd(e,t))}function $d(e,t){if(t===void 0)return;let n=q().get(e);n&&Qd(e,n,t)}function ef(){Bd(null);let e=q(),t=J();for(let[n,r]of e)X(e,t,n,r,!0);t.clear();for(let e of Gd)qd(e);h()?.functions.pingVisibleLinks?.()}function tf(){let e=!1;for(let t of new Set(q().values()))t.prefetchKind===void 0&&t.reuseAfterHistoryRestore!==!0&&(e||=t.cacheForNavigation!==!1,t.cacheForNavigation=!1);e&&h()?.functions.pingVisibleLinks?.()}function nf(e,t,n=null,r=null,i=od,a=!1){let o=E.encodeCacheKey(e,n),s=q(),c=s.get(o);c&&X(s,J(),o,c,!1);let l=Date.now(),u={cacheForNavigation:!0,cacheKeys:new Set([o]),expiresAt:bd(l,t,i),mountedSlotsHeader:r,outcome:`cache-seeded`,reuseAfterHistoryRestore:a,size:t.buffer.byteLength,snapshot:t,timestamp:l};s.set(o,u),Fd(s,t.buffer.byteLength),J().add(o),Xd(o,u),Ld()}function rf(e,t,n=null){let r=E.encodeCacheKey(e,n),i=q(),a=i.get(r);a?.snapshot===t&&X(i,J(),r,a,!1)}function af(e,t,n=null,r){let i=E.encodeCacheKey(e,n),a=q(),o=J(),s=a.get(i);s&&X(a,o,i,s,!1);
32let c={cacheKeys:new Set([i]),mountedSlotsHeader:null,outcome:`pending`,timestamp:Date.now()};Zd(c,r?.onInvalidate),c.pending=lf(t).then(e=>{if(a.get(i)!==c)return;let t=jd(c);c.mountedSlotsHeader=e.mountedSlotsHeader??null,c.snapshot=e,c.size=e.buffer.byteLength,Fd(a,c.size-t),c.expiresAt=bd(c.timestamp,e,K),Ld()}).catch(()=>{X(a,o,i,c,!1)}).finally(()=>{a.get(i)===c&&(c.pending=void 0,c.snapshot&&(c.outcome=`cache-seeded`,Xd(i,c)))}),a.set(i,c)}function of(e,t,n=null){let r=gd(e.headers.get(Ze)),i=e.headers.get(Qe),a=i===`1`?uc(t):{buffer:t},o=i===`resolved`?r:a.metadata?.dynamicStaleTimeSeconds??r,s=o??r,c=sf(e.headers),l=a.metadata!==void 0&&Object.hasOwn(a.metadata,`serverStaleTimeSeconds`)?a.metadata?.serverStaleTimeSeconds===null?void 0:{kind:`resolved`,seconds:a.metadata.serverStaleTimeSeconds}:c;return{compatibilityIdHeader:e.headers.get(N),buffer:a.buffer,...o===void 0?{}:{completedDynamicStaleTimeSeconds:o},contentType:e.headers.get(`content-type`)??`text/x-component`,...s===void 0?{}:{dynamicStaleTimeSeconds:s},mountedSlotsHeader:e.headers.get(v),paramsHeader:e.headers.get(Xe),renderedPathAndSearch:cf(e.headers.get($e)),...l===void 0?{}:{serverStaleTime:l},url:n??e.url}}function sf(e){if(e.get(`X-Vinext-Stale-Time-Pending`)===`1`)return{kind:`pending`};let t=gd(e.get(ft));return t===void 0?void 0:{kind:`resolved`,seconds:t}}function cf(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function lf(e){try{let t=of(e,await e.arrayBuffer()),n=uf.get(e);return n===void 0?t:{...t,expiresAt:n}}finally{Fu(e)}}var uf=new WeakMap;function df(e,t=!0){let n=new Headers({"content-type":e.contentType});e.mountedSlotsHeader!=null&&n.set(v,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(N,e.compatibilityIdHeader),md(e.dynamicStaleTimeSeconds)&&n.set(Ze,String(e.dynamicStaleTimeSeconds)),md(e.completedDynamicStaleTimeSeconds)&&n.set(Qe,`resolved`),e.serverStaleTime?.kind===`pending`?n.set(pt,`1`):e.serverStaleTime!==void 0&&n.set(ft,String(e.serverStaleTime.seconds)),e.paramsHeader!=null&&n.set(Xe,e.paramsHeader),e.renderedPathAndSearch!=null&&n.set($e,encodeURIComponent(e.renderedPathAndSearch));let r=new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n});return hd(e.expiresAt)&&uf.set(r,e.expiresAt),r}async function ff(e){let t=h()?.functions.preparePrefetchResponse;if(!t)throw Error(`App Router prefetch preparation is unavailable`);return await t(df(e))}async function pf(e){let{fetchFullRscPayload:t,fetchRouteTree:n,fullHref:r,headers:i,interceptionContext:a,mountedSlotsHeader:o}=e,s=new Headers(i);s.set(b,`1`),s.set(wt,`/_tree`);let c=await P(r,s),l=E.encodeCacheKey(c,a),u=pd(l);u===void 0&&(J().add(l),mf(c,n(c,s),a,o,void 0,{cacheForNavigation:!1,optimisticRouteShell:!1,prefetchKind:`route-tree`}),u=pd(l)),await u?.pending?.catch(()=>{}),u=pd(l);let d=u?.snapshot?.renderedPathAndSearch;if(d){let e=gf(await P(d,i),a,o);if(e)return df(e)}return t()}function mf(e,t,n=null,r=null,i,a={}){let o=E.encodeCacheKey(e,n),s=q(),c=J(),l=Date.now(),u=s.get(o);u&&X(s,c,o,u,!1);let d={cacheForNavigation:a.cacheForNavigation??!0,cacheKeys:new Set([o]),mountedSlotsHeader:r,optimisticRouteShell:a.optimisticRouteShell===!0,outcome:`pending`,prefetchKind:a.prefetchKind??(a.optimisticRouteShell===!0?`loading-shell`:`navigation`),searchAgnosticShell:a.searchAgnosticShell===!0,timestamp:l};Zd(d,i?.onInvalidate),d.fetchPromise=t,d.pending=t.then(async e=>{if(e.ok){let t=await lf(e);if(s.get(o)!==d)return;let n=jd(d);if(d.snapshot=t,d.size=t.buffer.byteLength,Fd(s,d.size-n),d.expiresAt=xd(d.timestamp,d.snapshot,a.fallbackTtlMs??K,a.searchAgnosticShell===!0?`ignore`:a.dynamicStaleTime??(a.optimisticRouteShell===!0?`ignore`:`verbatim`)),a.prepareSnapshot)try{let e=await a.prepareSnapshot(t);if(s.get(o)!==d)return;d.preparedElements=e}catch{}hf(s,c,o,d),Ld()}else Fu(e),X(s,c,o,d,!1)}).catch(()=>{X(s,c,o,d,!1)}).finally(()=>{s.get(o)===d&&(d.pending=void 0,d.fetchPromise=void 0,d.snapshot&&(d.outcome=`cache-seeded`,Xd(o,d)))}),s.set(o,d),Ld()}function hf(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=Td(n),o=E.encodeCacheKey(i,a.interceptionContext);if(o===n)return;let s=e.get(o);s&&s!==r&&X(e,t,o,s,!1),r.cacheKeys??=new Set([n]),r.cacheKeys.add(o),e.set(o,r),t.add(o)}function gf(e,t=null,n=null,r){let i=Dd(e,t,n,r?.additionalRscUrls);if(!i)return null;let{cacheKey:a,entry:o}=i;return o.pending||o.outcome!==`cache-seeded`||o.cacheForNavigation===!1||!o.snapshot?null:Y(o)<=Date.now()?(X(q(),J(),a,o,!0),null):o.expiresAt!==void 0||o.snapshot.expiresAt!==void 0?{...o.snapshot,expiresAt:Y(o)}:o.snapshot}function _f(e,t=null,n=null,r){let i=q(),a=E.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!Ed(o,n)&&X(i,J(),a,o,!1);let s=Dd(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return vf(c,l,n)}function vf(e,t,n,r=!1){let i=q();
32if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!Ed(t,n))return null;if(!r&&Y(t)<=Date.now())return X(i,J(),e,t,!0),null;Kd(t),X(i,J(),e,t,!1);let a=t.snapshot;return t.expiresAt!==void 0||t.snapshot.expiresAt!==void 0?{...a,expiresAt:Y(t),...t.preparedElements?{preparedElements:t.preparedElements}:{}}:t.preparedElements?{...a,preparedElements:t.preparedElements}:a}return null}async function yf(e,t=null,n=null,r){let i=q(),a=Dd(e,t,n,r?.additionalRscUrls);if(!a)return null;let{cacheKey:o,entry:s}=a;if(r?.shouldConsume?.()===!1)return null;let c=s.pending!==void 0;return s.pending!==void 0&&(Ru(s.fetchPromise),await s.pending.catch(()=>{}),i.get(o)!==s||r?.shouldConsume?.()===!1)?null:vf(o,s,n,c)}var bf=Symbol.for(`vinext.clientNavigationState`),xf=Symbol.for(`vinext.mountedSlotsHeader`);function Sf(e){let t=window;t[xf]=e}function Cf(){return window[xf]??null}function Z(){let e=window;return e[bf]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new H(window.location.search),cachedPathname:_(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[bf]}function wf(){let e=Z();if(e)for(let t of e.listeners)t()}globalThis[td]=wf;var Tf=null,Ef=new WeakMap,Df=null,Of=null;function kf(e){let t=Ef.get(e);if(t)return t;let n=e.toString();if(Df===n&&Of)return Ef.set(e,Of),Of;let r=new H(e);return Ef.set(e,r),Df=n,Of=r,r}function Af(){let e=U();return e?e.pathname:Z()?.cachedPathname??`/`}var jf=null;function Mf(){if(D())return Pf();let e=U();return e?kf(e.searchParams):Z()?.cachedReadonlySearchParams||(jf===null&&(jf=new H),jf)}function Nf(){let e=Z();if(!e)return!1;let t=!1,n=_(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let r=window.location.search;return r!==e.cachedSearch&&(e.cachedSearch=r,e.cachedReadonlySearchParams=new H(r),t=!0),t}function Pf(){let e=D();if(!e){let e=U();return e?kf(e.searchParams):(Tf===null&&(Tf=new H),Tf)}let t=e.searchParams,n=e[Qu],r=e[$u];if(n&&r===t)return n;let i=t.toString();if(n&&e[ed]===i)return e[$u]=t,n;let a=new H(t);return e[Qu]=a,e[$u]=t,e[ed]=i,a}function Ff(){let e=Z();e&&e.navigationSnapshotActiveCount++}var If={},Lf=Symbol.for(`vinext.clientNavigationRenderContext`);function Rf(){if(typeof o.createContext!=`function`)return null;let e=globalThis;return e[Lf]||(e[Lf]=o.createContext(null)),e[Lf]??null}function zf(){let e=Rf();if(!e||typeof o.useContext!=`function`)return null;try{return o.useContext(e)}catch{return null}}function Bf(e,t){let n=window.location.origin,r=new URL(e,n);return{pathname:_(r.pathname,``),search:r.search,searchParams:new H(r.search),params:t}}function Vf(e){return e.pathname+e.search}var Hf=If,Uf=`{}`;function Wf(e){let t=Z();if(!t){let t=JSON.stringify(e);t!==Uf&&(Hf=e,Uf=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,wf())}function Gf(e){let t=Z();if(!t)return;let n=JSON.stringify(e);n!==t.clientParamsJson&&n!==t.pendingClientParamsJson&&(t.pendingClientParams=e,t.pendingClientParamsJson=n,t.hasPendingNavigationUpdate=!0)}function Kf(){return Z()?.clientParams??Hf}function qf(e,t){let n=Z();n&&(n.pendingPathname=_(e,``),n.pendingPathnameNavId=t)}function Jf(e){let t=Z();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function Yf(){let e=Z(),t=D();if(t)return t.params;let n=U();return n?n.params:e?.clientParams??If}function Xf(){let e=D();if(e)return e.params;let t=U();return t?t.params:If}function Zf(e){let t=Z();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function Qf(){let e=zf(),t=o.useSyncExternalStore(Zf,Af,()=>{let e=D();if(e)return e.pathname;let t=U();return t?t.pathname:`/`});return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function $f(){let e=zf(),t=o.useSyncExternalStore(Zf,Mf,Pf);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.searchParams:t}function ep(){let e=zf(),t=o.useSyncExternalStore(Zf,Yf,Xf);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.params:t}function tp(e){let t=Z();if(!t)return e();t.suppressUrlNotifyCount+=1;try{return e()}finally{--t.suppressUrlNotifyCount}}function Q(e,t){let n=Z();if(!n)return;(t?.releaseSnapshot??e!==void 0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=Nf(),i=!1;
32n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null,i=!0),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let a=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,(r||i)&&Hr(),a&&wf()}function np(e,t,n){tp(()=>{Z()?.originalPushState.call(window.history,e,t,n)})}function rp(e,t,n){tp(()=>{Z()?.originalReplaceState.call(window.history,e,t,n)})}function ip(){rp({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function ap(e,t,n){let r=h()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=Zs(window.history.state);t===`replace`?rp(i,``,e):np(i,``,e)}function op(e){if(!(typeof document>`u`)){if(e.hash!==null){Cr(e.hash,()=>ba(e));return}e.targetHoistedInHead||(document.documentElement.scrollTop=0)}}function sp(e){queueMicrotask(()=>{let t=ya();if(t===null||t.id!==e.id)return;let n=Ca(e);n&&op(n)})}function cp(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>wr(t,n)):wr(t,n)})}}function lp(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}function up(){h()?.functions.notifyLinkNavigationStart?.()}function dp(e){let t=Vd(e);t!==null&&!yu(e,window.location.href,``)&&Bd(t),up()}function fp(){let e=Vd(window.location.href);e!==null&&Bd(e),up()}async function pp(e,t,n,r=!1,i=`transition`){dp(e);let a=e;if(Bl(e)){let n=fu(e,``);if(n==null){bs(e,t);let n=h()?.functions.navigateExternal;if(n){await n(e,t);return}lp(e,t),await new Promise(()=>{});return}a=n}let o=Xu(a);if(o===`pages`||o===`document`){let e=vu(a,window.location.href,``);bs(e,t),t===`push`&&ip(),lp(e,t),await new Promise(()=>{});return}let s=vu(a,window.location.href,``);bs(s,t),t===`push`&&ip();let c=zl.classifyEarlyNavigationIntent({basePath:``,currentUrlSpace:`browser`,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){va(),ap(s,c.mode,c.scroll),ki(s),Q(),c.scroll&&Sr(c.hash);return}if(tc(typeof document>`u`?void 0:document)){let e=h()?.functions.navigateExternal;if(e){await e(s,t);return}lp(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),u=l===-1?``:s.slice(l),d=n?_a(u||null):null;n||va();let f=h()?.functions.navigate;try{f?await f(s,0,`navigate`,t,void 0,r,void 0,d,i,c.bypassNavigationCache):(t===`replace`?rp(null,``,s):np(null,``,s),Q())}catch(e){throw d&&Ca(d),e}d&&sp(d)}var mp=0;function hp(){mp+=1;let e=!1;return()=>{e||(e=!0,mp=Math.max(0,mp-1))}}function gp(){return mp>0}function _p(e){queueMicrotask(e)}var vp={bfcacheId:`0`,push(e,t){bc(e),dp(e);let n=hp();try{o.startTransition(()=>{pp(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}_p(n)},replace(e,t){bc(e),dp(e);let n=hp();try{o.startTransition(()=>{pp(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}_p(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){if(h()?.functions.clearNavigationCaches?.(),gp())return;let e=h()?.functions.navigate;e&&o.startTransition(()=>{e(window.location.href,0,`refresh`,void 0,void 0,!0)})},prefetch(e,t){if(bc(e),wu(window.navigator?.userAgent??``))return;try{new URL(gu(e,``),window.location.href)}catch{throw Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`)}let n=Bl(e)?fu(e,``):e;if(n==null)return;let r=Vd(n);if(r===null)return;let i=ud(r),a=Cf(),o=fd({fetchPriority:`low`,interceptionContext:i,mountedSlotsHeader:a||null}),s=zd(r);(async()=>{let e=Xu(r);if(e===`pages`||e===`document`)return;let n=t?.kind===`full`?`full`:`auto`,{resolveAutoAppRoutePrefetch:c,resolveFullAppRoutePrefetch:l}=await Wu(async()=>{let{resolveAutoAppRoutePrefetch:e,resolveFullAppRoutePrefetch:t}=await Promise.resolve().then(()=>Pp);return{resolveAutoAppRoutePrefetch:e,resolveFullAppRoutePrefetch:t}},void 0),u=n===`full`?l():c(r),d=u.shouldPrefetch&&u.cacheForNavigation,f=u.requiresRouteTreePrefetch===!0;d&&n===`full`&&o.delete(b),d&&n===`auto`&&(o.set(b,`1`),o.set(wt,f?`/__PAGE__`:`1`));let[p,...ee]=await Promise.all([P(r,o)]);if(s.cancelled)return;let te=E.encodeCacheKey(p,i),ne=J();if(d){if(Jd(p,i),Od(p,i,a,{additionalRscUrls:ee,onInvalidate:t?.onInvalidate}))return}else if(kd(p,i)){$d(te,t?.onInvalidate);return}ne.add(te);let re=()=>Iu(e=>fetch(p,{headers:o,credentials:`include`,priority:`low`,signal:e}),`low`);mf(p,d&&n===`auto`&&f?pf({fetchFullRscPayload:re,fetchRouteTree:(e,t)=>
32Iu(n=>fetch(e,{headers:t,credentials:`include`,priority:`low`,signal:n}),`low`),fullHref:r,headers:o,interceptionContext:i,mountedSlotsHeader:a}):re(),i,a,t,d?{cacheForNavigation:!0,fallbackTtlMs:u.fallbackTtl===`dynamic`?od:K,dynamicStaleTime:u.dynamicStaleTime,optimisticRouteShell:!1,prefetchKind:`navigation`,prepareSnapshot:ff}:{cacheForNavigation:!1,fallbackTtlMs:u.fallbackTtl===`dynamic`?od:K,dynamicStaleTime:u.dynamicStaleTime,optimisticRouteShell:!0,prefetchKind:`navigation`})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)}).finally(()=>{Rd.delete(s)})}};function yp(e){return!e||e===`0`?Tu:e}function bp(){let e=Ir(),t=Fr();if(!e||!t||typeof o.useContext!=`function`)return yp(null);try{let n=o.useContext(e),r=o.useContext(t);return yp(n===null?null:r?.[n])}catch{return yp(null)}}var xp=vp;function Sp(){if(!fr||typeof o.useContext!=`function`||typeof o.useMemo!=`function`)throw Error(`invariant expected app router to be mounted`);let e=o.useContext(fr);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=bp();return o.useMemo(()=>({...e,bfcacheId:t}),[e,t])}function Cp(e){let t=wp(e);return t.length===0?null:e===void 0||e===`children`?t[0]:t[t.length-1]}function wp(e){return Zu(e)}function Tp(e){typeof document<`u`||Yr(e)}{let e=Z();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,()=>{fp()}),window.addEventListener(`popstate`,e=>{ge()||(Q(),cp(e.state))}),window.history.pushState=function(t,n,r){if(Ls(t)){let i=window.history.state;e.originalPushState.call(window.history,t,n,r),h()?.functions.commitAppOwnedHistoryStateWrite?.(`push`,i);return}let i=window.history.state;e.originalPushState.call(window.history,Ps(t,window.history.state),n,r),h()?.functions.claimCurrentHistoryTreeSnapshot?.(`push`,i),e.suppressUrlNotifyCount===0&&(up(),Q())},window.history.replaceState=function(t,n,r){if(Ls(t)){let i=window.history.state;e.originalReplaceState.call(window.history,t,n,r),h()?.functions.commitAppOwnedHistoryStateWrite?.(`replace`,i);return}let i=window.history.state;e.originalReplaceState.call(window.history,Ps(t,window.history.state),n,r),h()?.functions.claimCurrentHistoryTreeSnapshot?.(`replace`,i),e.suppressUrlNotifyCount===0&&(up(),Q())})}var Ep=Symbol.for(`vinext.routerContext`),Dp=globalThis,Op=Dp[Ep]??(Dp[Ep]=(0,o.createContext)(null));function kp({basePath:e,domainLocales:t,hostname:n}){return Ql(_(window.location.pathname,e),window.__VINEXT_LOCALES__)||(Xl(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}function Ap(){return window.location?.pathname??`/`}function jp(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function Mp(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function Np(e){let{href:t,basePath:n,currentOrigin:r}=e;if(!lu(t))return t;if(r===void 0)return null;try{let e=new URL(r),i=t.startsWith(`//`)?new URL(t,e.origin):new URL(t);return i.origin===e.origin?n?De(i.pathname,n)?_(i.pathname,n)+i.search+i.hash:null:i.pathname+i.search+i.hash:null}catch{return null}}var Pp=e({canAutoPrefetchFullAppRoute:()=>zp,resolveAutoAppRoutePrefetch:()=>Bp,resolveFullAppRoutePrefetch:()=>Vp}),Fp=``,Ip=Kl();function Lp(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${_(t.pathname,Fp)}${t.search}`:null}var Rp={cacheForNavigation:!1,dynamicStaleTime:`verbatim`,fallbackTtl:`static`,prefetchShellFirst:!1,shouldPrefetch:!1};function zp(e){return Bp(e).cacheForNavigation}function Bp(e){let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return Rp;let n=Lp(e);if(n===null)return Rp;let r=Jl(n,t,Ip);if(!r)return Rp;let i=r.route,a=new URL(n,`http://vinext.local`).search!==``;i.patternParts.length===1&&i.patternParts[0]?.startsWith(`:`);let o=i.isDynamic&&!1,s=!a&&!o&&!i.canPrefetchLoadingShell&&i.requiresDynamicNavigationRequest!==!0;return{cacheForNavigation:s,dynamicStaleTime:s?`verbatim`:`ignore`,fallbackTtl:`static`,prefetchShellFirst:a||!i.isDynamic,shouldPrefetch:!0}}function Vp(){return{cacheForNavigation:!0,dynamicStaleTime:`full-prefetch`,fallbackTtl:`static`,prefetchShellFirst:!0,shouldPrefetch:!0}}var $=null,Hp=!1;function Up(e){$&&$!==e&&$(!1),$=e,Hp=!0}function Wp(e){$===e&&($=null)}function Gp(){if(Hp){Hp=!1;return}$&&=($(!1),null)}function Kp(e,t){let n=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useCallback)(i=>{if(i===null){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=qp(e,i)),t&&(r.current=qp(t,i))},[e,t])}function qp(e,t){if(typeof e==`function`){let n=e(t);return typeof n==`function`?n:()=>e(null)}return e.current=t,()=>{e.current=null}}var Jp=t(n(((e,t)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;
32if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t;for(t=0;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}return(t=e.match(r.twoOctet))?(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>
32>16&255),n.push(i>>8&255),n.push(i&255),n})():(t=e.match(r.threeOctet))?(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})():null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=this.toNormalizedString(),n=0,r=-1,i;for(;i=e.exec(t);)i[0].length>r&&(n=i.index,r=i[0].length);return r<0?t:`${t.substring(0,n)}::${t.substring(n+r)}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.parse=function(e){let t=this.parser(e);if(t.parts===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,"toString",{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.
32slice(0,-1)),t=l(t+o,6),t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch{throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`)}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(e)}))(),1),Yp=new Map;function Xp(e,t){let n=`${t}\0${e}`,r=Yp.get(n);if(r!==void 0)return r;let i=`^`,a=t===`.`?`.+`:`.*`,o=t===`.`?`[^.]+`:`[^/]+`,s=e.split(`**`);for(let e=0;e<s.length;e++){e>0&&(i+=a);let t=s[e].split(`*`);for(let e=0;e<t.length;e++)e>0&&(i+=o),i+=t[e].replace(/[.+?^${}()|[\]\\]/g,`\\$&`)}i+=`$`;let c=new RegExp(i);return Yp.set(n,c),c}function Zp(e,t){return!(e.protocol!==void 0&&e.protocol.replace(/:$/,``)!==t.protocol.replace(/:$/,``)||e.port!==void 0&&e.port!==t.port||!Xp(e.hostname,`.`).test(t.hostname)||e.search!==void 0&&e.search!==t.search||!Xp(e.pathname??`**`,`/`).test(t.pathname))}function Qp(e,t,n){return e.some(e=>n.hostname===e)||t.some(e=>Zp(e,n))}function $p(e){e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1));try{let t=Jp.default.parse(e);return t instanceof Jp.default.IPv6&&t.isIPv4MappedAddress()?t.toIPv4Address().range()!==`unicast`:t.range()!==`unicast`}catch{return!1}}var em=e({StreamedIconsInsertion:()=>im,reconcileStreamedIcons:()=>rm}),tm=`data-vinext-streamed-icon`;function nm(e,t){let n=e.getAttribute(tm),r=`${t}:`;if(!n?.startsWith(r))return null;let i=Number(n.slice(r.length));return Number.isInteger(i)&&i>=0?i:null}function rm(e){document.querySelectorAll(`body link[${tm}]`).forEach(e=>document.head.appendChild(e));let t=[...document.querySelectorAll(`head link[${tm}]`)],n=new Map;for(let r of t){let t=nm(r,e);if(t===null){r.remove();continue}let i=n.get(t);i&&i.remove(),n.set(t,r)}for(let[,e]of[...n].sort(([e],[t])=>e-t))document.head.appendChild(e)}function im({metadataKey:e}){return(0,o.useLayoutEffect)(()=>rm(e),[e]),null}export{Iu as $,ct as $n,us as $t,tf as A,Jr as An,Bs as At,rp as B,ir as Bn,Gs as Bt,Q as C,ji as Cn,fc as Ct,Bf as D,fi as Dn,Rs as Dt,of as E,pi as En,Hs as Et,ef as F,hr as Fn,Ws as Ft,nf as G,E as Gn,bs as Gt,Sd as H,Jt as Hn,xs as Ht,Gu as I,pr as In,Js as It,qf as J,Pt as Jn,Ho as Jt,Wf as K,ln as Kn,ys as Kt,gf as L,fr as Ln,Ks as Lt,Cf as M,Cr as Mn,qs as Mt,q as N,yr as Nn,Is as Nt,Vf as O,Fr as On,Ps as Ot,Od as P,br as Pn,Vs as Pt,Ou as Q,st as Qn,Yo as Qt,np as R,tr as Rn,Qs as Rt,Jf as S,Oi as Sn,yc as St,yf as T,Si as Tn,js as Tt,df as U,qt as Un,Ss as Ut,bd as V,ar as Vn,$s as Vt,ip as W,tn as Wn,vs as Wt,Sp as X,ot as Xn,fs as Xt,Qf as Y,Mt as Yn,Vo as Yt,Wu as Z,Xe as Zn,P as Zt,od as _,ca as _n,kc as _t,Wp as a,Do as an,we as ar,gu as at,Ff as b,Xi as bn,Sc as bt,zp as c,Ha as cn,xe as cr,iu as ct,Mp as d,Wa as dn,h as dr,Bl as dt,ds as en,ze as er,wu as et,jp as f,Ra as fn,ge as fr,zl as ft,Op as g,Ca as gn,Oc as gt,kp as h,xa as hn,s as hr,B as ht,Kp as i,j as in,Ce as ir,fu as it,Rf as j,wr as jn,zs as jt,rf as k,Pr as kn,Ns as kt,Bp as l,Ga as ln,g as lr,Zl as lt,Ap as m,_a as mn,pe as mr,Fc as mt,Qp as n,Ao as nn,ke as nr,hu as nt,Gp as o,Eo as on,Te as or,au as ot,Np as p,wa as pn,fe as pr,wl as pt,Sf as q,Ft as qn,N as qt,$p as r,to as rn,_ as rr,vu as rt,Up as s,Ka as 
32sn,Ee as sr,ou as st,em as t,Ro as tn,Oe as tr,lu as tt,Vp as u,Ua as un,me as ur,eu as ut,K as v,aa as vn,V as vt,_f as w,Ei as wn,nc as wt,xp as x,ki as xn,vc as xt,nd as y,Zi as yn,jc as yt,Gf as z,rr as zn,Us as zt};

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.