home-atom 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/client/.vite/manifest.json +33 -33
  2. package/dist/client/_next/static/chunks/{app-top-nav-Dh0jEt8u.js → app-top-nav-Co7RIixU.js} +1 -1
  3. package/dist/client/_next/static/chunks/{index-hn3AiVww.js → index-BUxxgh38.js} +3 -3
  4. package/dist/client/_next/static/chunks/{layout-segment-context-DRM8YCgm.js → layout-segment-context-D_cL7vkY.js} +1 -1
  5. package/dist/client/_next/static/chunks/manage-profiles-modal-CWi3qgd4.js +1 -0
  6. package/dist/client/_next/static/chunks/netflix-browser-BrXQctI5.js +2 -0
  7. package/dist/client/_next/static/chunks/playback-activity-66FeikYZ.js +1 -0
  8. package/dist/client/_next/static/chunks/playback-activity-track-switcher-BzvHiv7c.js +1 -0
  9. package/dist/client/_next/static/chunks/{step-forward-CV8I5pPb.js → provider-registry-CWHfJn3B.js} +1 -1
  10. package/dist/client/_next/static/chunks/spotify-app-CJimeMR0.js +1 -0
  11. package/dist/client/_next/static/chunks/storefront-CCeanBPs.js +1 -0
  12. package/dist/client/_next/static/css/index.8o3Y-jts.css +1 -0
  13. package/dist/client/_next/static/css/layout.D2NsWbhP.css +1 -0
  14. package/dist/client/_next/static/css/layout.D4D5fsiD.css +1 -0
  15. package/dist/client/_next/static/css/manage-profiles-modal.BOKESpxI.css +1 -0
  16. package/dist/client/vinext-client-entry-manifest.json +1 -1
  17. package/dist/server/BUILD_ID +1 -1
  18. package/dist/server/__vite_rsc_assets_manifest.js +35 -35
  19. package/dist/server/_next/static/{app-page-cache-DcrtN14Y.js → app-page-cache-CQaSjBaF.js} +1 -1
  20. package/dist/server/_next/static/{app-page-cache-render-DoCquoNb.js → app-page-cache-render-Dty3aMiv.js} +1 -1
  21. package/dist/server/_next/static/{app-route-handler-dispatch-Be2YIqVp.js → app-route-handler-dispatch-DCSrhGNV.js} +1 -1
  22. package/dist/server/_next/static/{cache-headers-BQ-QuzWN.js → cache-headers-lY59goLh.js} +1 -1
  23. package/dist/server/_next/static/css/index.8o3Y-jts.css +1 -0
  24. package/dist/server/_next/static/css/layout.D2NsWbhP.css +1 -0
  25. package/dist/server/_next/static/css/layout.D4D5fsiD.css +1 -0
  26. package/dist/server/_next/static/database-D79CeUrn.js +161 -0
  27. package/dist/server/_next/static/{db-BE1J0NNS.js → db-x8J3Vuoa.js} +1 -1
  28. package/dist/server/_next/static/{downloader-DgnjNL5T.js → downloader-0G-gq1D-.js} +3 -3
  29. package/dist/server/_next/static/episode-sync-Ct5CeY25.js +1 -0
  30. package/dist/server/_next/static/{isr-decision-D1zHgPSI.js → isr-decision-BOA4L6nr.js} +1 -1
  31. package/dist/server/_next/static/netflix-page-Cpp2PgD1.js +1 -0
  32. package/dist/server/_next/static/{page-Cs-erYTy.js → page-BvzzZVuW.js} +1 -1
  33. package/dist/server/_next/static/{page-DlBGATQp.js → page-C27wjUYW.js} +1 -1
  34. package/dist/server/_next/static/{page-DlRXyzSQ.js → page-Rnpx_OjW.js} +1 -1
  35. package/dist/server/_next/static/{providers-B3YELr_F.js → providers-DwLUa_U_.js} +13 -13
  36. package/dist/server/_next/static/{providers-CMBIwNGs.js → providers-_uOQh6hB.js} +1 -1
  37. package/dist/server/_next/static/{request-profile-B1yGQ0l6.js → request-profile-ClcH0i0T.js} +1 -1
  38. package/dist/server/_next/static/route-4xkmbpc4.js +1 -0
  39. package/dist/server/_next/static/{route-CeVsDcbj2.js → route-B0L_rsrg2.js} +1 -1
  40. package/dist/server/_next/static/{route-xtz48fti.js → route-B6q-wR2F.js} +1 -1
  41. package/dist/server/_next/static/{route-DXTJyFWD.js → route-B6zrlXB5.js} +1 -1
  42. package/dist/server/_next/static/{route-CNNiXZoM2.js → route-B99Pvusz2.js} +1 -1
  43. package/dist/server/_next/static/route-B9YeBtG6.js +1 -0
  44. package/dist/server/_next/static/route-BHbJ9hFI2.js +1 -0
  45. package/dist/server/_next/static/{route-mzLdjDCs2.js → route-BR3Y_0V42.js} +1 -1
  46. package/dist/server/_next/static/{route-Cim7D4XQ.js → route-BaGo5TEW.js} +1 -1
  47. package/dist/server/_next/static/{route-DslPFTAK.js → route-BczKcyvV.js} +1 -1
  48. package/dist/server/_next/static/{route-B0WNLJZp.js → route-BiSvZr_s.js} +1 -1
  49. package/dist/server/_next/static/{route-Dbs39TkC.js → route-Bj7s6WXI.js} +1 -1
  50. package/dist/server/_next/static/{route-vD15s2A8.js → route-CGH08Y8C.js} +1 -1
  51. package/dist/server/_next/static/{route-CkH7Cg-p.js → route-CJmc17Dq.js} +1 -1
  52. package/dist/server/_next/static/{route-C74RA7va.js → route-CLvr0Ue3.js} +1 -1
  53. package/dist/server/_next/static/route-CUaIuP8a.js +1 -0
  54. package/dist/server/_next/static/{route-BPcAdbz_.js → route-CcrNbScT.js} +1 -1
  55. package/dist/server/_next/static/route-CiOFTfyw2.js +1 -0
  56. package/dist/server/_next/static/route-Cn7l9eYT.js +1 -0
  57. package/dist/server/_next/static/route-CnKXQb5r2.js +1 -0
  58. package/dist/server/_next/static/{route-CVPPmUto.js → route-D93PQ3NI2.js} +1 -1
  59. package/dist/server/_next/static/{route-D_G2SOlz.js → route-D9ZD1_5T.js} +1 -1
  60. package/dist/server/_next/static/{route-DAyF4BHS.js → route-DWPhX9kT2.js} +1 -1
  61. package/dist/server/_next/static/route-DihT2xS82.js +1 -0
  62. package/dist/server/_next/static/route-Dn-sYYEs.js +1 -0
  63. package/dist/server/_next/static/route-DpzLCx1V.js +1 -0
  64. package/dist/server/_next/static/route-Dswz7MvP2.js +1 -0
  65. package/dist/server/_next/static/route-Dwk0kt8B.js +1 -0
  66. package/dist/server/_next/static/route-DxLQx9eD.js +1 -0
  67. package/dist/server/_next/static/{route-zazqen-A2.js → route-FwNLcs2r2.js} +1 -1
  68. package/dist/server/_next/static/route-GmbSJZjk2.js +1 -0
  69. package/dist/server/_next/static/route-iUxcDN2r.js +1 -0
  70. package/dist/server/_next/static/{route-UWQN8uYr.js → route-j61HPczh.js} +1 -1
  71. package/dist/server/_next/static/{route-CHJzaQu2.js → route-qJ1EJhxJ.js} +1 -1
  72. package/dist/server/_next/static/{route-BWk9YK7r.js → route-sNW0pw7C.js} +1 -1
  73. package/dist/server/_next/static/{seed-cache-oCd9Lfdw.js → seed-cache-DsYPqBld.js} +1 -1
  74. package/dist/server/_next/static/{server-CS40XqUP.js → server-DwVU6UyP.js} +1 -1
  75. package/dist/server/_next/static/storage-fxaUbjG1.js +322 -0
  76. package/dist/server/_next/static/streamer-DUAWx_Tm.js +2 -0
  77. package/dist/server/_next/static/{subtitles-DYBlMnha.js → subtitles-4c0GFlaW.js} +1 -1
  78. package/dist/server/_next/static/{title-progress-CQBrSxvN.js → title-progress-BTypVYBz.js} +1 -1
  79. package/dist/server/index.js +2 -2
  80. package/dist/server/prerendered-routes/404.html +2 -2
  81. package/dist/server/prerendered-routes/index.html +2 -2
  82. package/dist/server/prerendered-routes/index.rsc +2 -2
  83. package/dist/server/ssr/__vite_rsc_assets_manifest.js +35 -35
  84. package/dist/server/ssr/_next/static/css/refresh-cw.BOKESpxI.css +1 -0
  85. package/dist/server/ssr/_next/static/minimize-gPI5ytrc.js +1 -0
  86. package/dist/server/ssr/_next/static/netflix-browser-CXJEizJ6.js +2 -0
  87. package/dist/server/ssr/_next/static/{pin-BQre-tQY.js → pin-DiZl7z2n.js} +1 -1
  88. package/dist/server/ssr/_next/static/playback-activity-AIsC-eO5.js +1 -0
  89. package/dist/server/ssr/_next/static/refresh-cw-DNvHlOAy.js +1 -0
  90. package/dist/server/ssr/_next/static/spotify-app-xyDH0rho.js +1 -0
  91. package/dist/server/ssr/_next/static/storefront-DMeL08z3.js +1 -0
  92. package/dist/server/ssr/index.js +1 -1
  93. package/dist/server/ssr/vinext-client-assets.js +1 -1
  94. package/dist/server/ssr/vinext-server.json +1 -1
  95. package/dist/server/vinext-client-assets.js +1 -1
  96. package/dist/server/vinext-prerender-paths.json +1 -1
  97. package/dist/server/vinext-prerender.json +16 -1
  98. package/dist/server/vinext-server.json +1 -1
  99. package/package.json +4 -2
  100. package/dist/client/_next/static/chunks/manage-profiles-modal-Doi6QM4e.js +0 -1
  101. package/dist/client/_next/static/chunks/netflix-browser-L_Vb9wXK.js +0 -2
  102. package/dist/client/_next/static/chunks/playback-activity-Dug3BRYr.js +0 -1
  103. package/dist/client/_next/static/chunks/playback-activity-track-switcher-CbO6kl8K.js +0 -1
  104. package/dist/client/_next/static/chunks/spotify-app-f93K4FG_.js +0 -1
  105. package/dist/client/_next/static/chunks/storefront-C_nmcuvH.js +0 -1
  106. package/dist/client/_next/static/css/index.BGXy8e6j.css +0 -1
  107. package/dist/client/_next/static/css/layout.AKSLtSR6.css +0 -1
  108. package/dist/client/_next/static/css/layout.D8T68cCD.css +0 -1
  109. package/dist/client/_next/static/css/manage-profiles-modal.BAVyxRRR.css +0 -1
  110. package/dist/server/_next/static/css/index.BGXy8e6j.css +0 -1
  111. package/dist/server/_next/static/css/layout.AKSLtSR6.css +0 -1
  112. package/dist/server/_next/static/css/layout.D8T68cCD.css +0 -1
  113. package/dist/server/_next/static/database-BNnYfHmT.js +0 -114
  114. package/dist/server/_next/static/netflix-page-BRbORN1F.js +0 -1
  115. package/dist/server/_next/static/route-96DdgJBs.js +0 -1
  116. package/dist/server/_next/static/route-BBmE0xf12.js +0 -1
  117. package/dist/server/_next/static/route-BdG5ojMj2.js +0 -1
  118. package/dist/server/_next/static/route-BovNctFc.js +0 -1
  119. package/dist/server/_next/static/route-C2LuSjoh.js +0 -1
  120. package/dist/server/_next/static/route-CCUsQ7AG.js +0 -1
  121. package/dist/server/_next/static/route-CN6VdJwN.js +0 -1
  122. package/dist/server/_next/static/route-CjUCKwSj2.js +0 -1
  123. package/dist/server/_next/static/route-Cn40NftM.js +0 -1
  124. package/dist/server/_next/static/route-DWAMZHLa.js +0 -1
  125. package/dist/server/_next/static/route-DiT9UYUd.js +0 -1
  126. package/dist/server/_next/static/route-jMq6H_yh.js +0 -1
  127. package/dist/server/_next/static/storage-D1zF0J_t.js +0 -288
  128. package/dist/server/_next/static/streamer-B1PRR-dj.js +0 -2
  129. package/dist/server/ssr/_next/static/css/refresh-cw.BAVyxRRR.css +0 -1
  130. package/dist/server/ssr/_next/static/minimize-C9JLgte-.js +0 -1
  131. package/dist/server/ssr/_next/static/netflix-browser-CMAehdwi.js +0 -2
  132. package/dist/server/ssr/_next/static/playback-activity-D5TYX2Ae.js +0 -1
  133. package/dist/server/ssr/_next/static/refresh-cw-CWdWHjqY.js +0 -1
  134. package/dist/server/ssr/_next/static/spotify-app-CE-RaTjZ.js +0 -1
  135. package/dist/server/ssr/_next/static/storefront-C5NNzPMa.js +0 -1
  136. /package/dist/client/_next/static/{e1ce9af7-d770-43d6-845a-511443f19971 → 7c810a6d-59fd-41d6-b465-cf61efaea04f}/_buildManifest.js +0 -0
  137. /package/dist/client/_next/static/{e1ce9af7-d770-43d6-845a-511443f19971 → 7c810a6d-59fd-41d6-b465-cf61efaea04f}/_ssgManifest.js +0 -0
  138. /package/dist/server/_next/static/{layout-Ds3pFa6r.js → layout-D1iejeee.js} +0 -0
  139. /package/dist/server/_next/static/{layout-ClEWbCcj.js → layout-DpOw0OgX.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  /* __VINEXT_PREGENERATED_CONCRETE_PATHS_START__ */
2
2
  globalThis.__VINEXT_PREGENERATED_CONCRETE_PATHS = [["/",["/"]],["/404",["/404"]]];
3
3
  /* __VINEXT_PREGENERATED_CONCRETE_PATHS_END__ */
4
- import{o as e,r as t}from"./_next/static/rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./_next/static/framework~index~layout~layout~page~page~page~layout~page~app-page-cache-render~app-page-cac~nvd6h53m-ydvR7YSg.js";import{n as i,r as a,t as o}from"./_next/static/framework~index-B2E_Di_-.js";import{$ as s,A as c,At as l,B as u,C as d,Ct as f,D as p,Dt as m,E as h,Et as g,F as _,G as v,H as y,I as b,J as x,K as S,L as C,N as w,O as T,Ot as E,P as D,Q as O,R as k,S as A,St as j,T as ee,Tt as M,U as N,V as te,W as P,X as F,Y as ne,Z as re,_ as ie,_t as I,a as ae,at as L,b as oe,bt as se,c as R,ct as ce,d as le,dt as z,et as ue,f as de,g as fe,gt as B,h as pe,ht as me,i as V,it as he,j as ge,jt as _e,k as ve,kt as ye,l as be,lt as xe,m as Se,mt as Ce,n as H,nt as we,ot as Te,p as Ee,pt as U,q as W,r as De,rt as Oe,s as ke,st as Ae,t as je,tt as Me,u as Ne,ut as Pe,v as Fe,vt as Ie,w as Le,x as Re,xt as ze,y as Be,yt as Ve,z as He}from"./_next/static/cache-headers-BQ-QuzWN.js";import{a as Ue,c as We,i as Ge,n as Ke,o as qe,r as Je,s as Ye,t as Xe}from"./_next/static/unified-request-context-CgIMz2dD.js";import{C as Ze,D as Qe,E as $e,F as et,I as tt,L as nt,N as rt,O as it,P as at,S as ot,T as st,_ as ct,a as lt,b as ut,c as dt,d as ft,g as pt,h as mt,i as ht,k as gt,l as _t,m as vt,n as yt,t as bt,u as xt,v as St,w as Ct,x as wt,y as Tt}from"./_next/static/request-context-C1ZJzkex.js";import{i as Et,n as Dt,r as Ot,t as kt}from"./_next/static/base-path-Cmiu3HvG.js";import{t as At}from"./_next/static/instrumentation-BV3gg-L-.js";import{AsyncLocalStorage as jt}from"node:async_hooks";import"./vinext-client-assets.js";import Mt from"./__vite_rsc_assets_manifest.js";function Nt(e){let t=Object.getOwnPropertyDescriptor(globalThis,e);if(!(!t&&Reflect.get(globalThis,e)===void 0)&&(t?t.configurable?Reflect.deleteProperty(globalThis,e):Reflect.set(globalThis,e,void 0):Object.defineProperty(globalThis,e,{configurable:!0,value:void 0,writable:!0}),Reflect.get(globalThis,e)!==void 0))throw Error(`[vinext] Server runtime exposes a non-removable \`${e}\` global. This breaks Next.js SSR semantics where browser globals must be absent.`)}function Pt(){Nt(`window`),Nt(`document`),Reflect.get(globalThis,`AsyncLocalStorage`)===void 0&&Object.defineProperty(globalThis,"AsyncLocalStorage",{configurable:!0,value:jt,writable:!0})}Pt();function Ft(e,t){if(!e)throw t instanceof Error?t:new It(t,Ft)}var It=class extends Error{constructor(e,t){super(e??`TinyAssertionError`),t&&`captureStackTrace`in Error&&Error.captureStackTrace(this,t)}},Lt=e(a(),1);function Rt(e){return new Proxy({},{get(t,n,r){Ft(typeof n==`string`);let[i,a]=n.split(`#`);return Ft(i),Ft(a),e?.onClientReference?.({id:i,name:a}),{id:i+``,name:a,chunks:[],async:!0}}})}function zt(e,t,n){return Lt.renderToReadableStream(e,Rt({onClientReference:n?.onClientReference}),t)}function Bt(e,t,n){return Lt.registerClientReference(e,t,n)}i();var Vt=o(),Ht=/^([0-9a-f]*:HL\[.*?),"stylesheet"(\]|,)/,Ut=` `.repeat(5),Wt=new Set([`T`,`A`,`O`,`o`,`b`,`U`,`S`,`s`,`L`,`l`,`G`,`g`,`M`,`m`,`V`]),Gt=new Set([`I`,`H`,`E`,`N`,`D`,`J`,`W`,`R`,`r`,`X`,`x`,`C`,`P`,`#`]),Kt=new TextDecoder,qt=new TextEncoder;function Jt(e){let t=Kt.decode(e),n=t.replace(Ht,`$1,"style"${Ut}$2`);if(n===t)return e;let r=qt.encode(n);return r.byteLength===e.byteLength?r:e}function Yt(e,t){if(e.byteLength===0)return t;let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e),n.set(t,e.byteLength),n}function Xt(e,t,n=0){for(let r=n;r<e.byteLength;r++)if(e[r]===t)return r;return-1}function Zt(e,t,n){if(t===n)return null;let r=0;for(let i=t;i<n;i++){let t=e[i],n=t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:-1;if(n===-1||(r=r*16+n,!Number.isSafeInteger(r)))return null}return r}function Qt(e){return e===34||e===45||e>=48&&e<=57||e===91||e===102||e===110||e===116||e===123}function $t(e){let t=new Uint8Array,n=0,r=!1;return e.pipeThrough(new TransformStream({transform(e,i){if(r){i.enqueue(e);return}let a=Yt(t,e);for(t=new Uint8Array;a.byteLength>0;){if(n>0){let e=Math.min(n,a.byteLength);i.enqueue(a.slice(0,e)),n-=e,a=a.subarray(e);continue}let e=Xt(a,58);if(e===-1||e+1===a.byteLength){t=a.slice();return}let o=String.fromCharCode(a[e+1]);if(Wt.has(o)){let o=Xt(a,44,e+2);if(o===-1){t=a.slice();return}let s=Zt(a,e+2,o);if(s!=null){i.enqueue(a.slice(0,o+1)),n=s,a=a.subarray(o+1);continue}r=!0,i.enqueue(a);return}let s=a[e+1];if(!Gt.has(o)&&!Qt(s)){r=!0,i.enqueue(a);return}let c=Xt(a,10);if(c===-1){t=a.slice();return}i.enqueue(Jt(a.slice(0,c+1))),a=a.subarray(c+1)}},flush(e){t.byteLength>0&&e.enqueue(n>0?t:Jt(t))}}))}function en(e){return(t,n)=>$t(e(t,n))}function tn(e){return async(t,n)=>({prelude:$t((await e(t,n)).prelude)})}var G=e(n(),1),nn=Symbol.for(`vinext.serverInsertedHTMLContext`),rn=Symbol.for(`vinext.navigation.fallback`);function an(e){return typeof G.createContext==`function`?G.createContext(e):null}function on(){let e=globalThis;return e[nn]||(e[nn]=an(null)),e[nn]??null}on();var sn=Symbol.for(`vinext.navigation.globalAccessors`);function cn(){let e=globalThis;return e[rn]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function ln(){return globalThis[sn]}var un=()=>ln()?.getServerContext()??cn().serverContext,dn=e=>{let t=ln();t?t.setServerContext(e):cn().serverContext=e};function fn(e){un=e.getServerContext,dn=e.setServerContext,e.getInsertedHTMLCallbacks,e.clearInsertedHTMLCallbacks}function pn(){return un()}function mn(e){dn(e)}var hn=`NEXT_REDIRECT;`;function gn(e){if(!e.startsWith(hn))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}}function _n(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 vn(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function yn(e){return vn(e)||_n(e)}function bn(e){return`${e} only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component`}var xn=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function Sn(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&xn.test(e)}function Cn(e){return Sn(e)||e.startsWith(`//`)}function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Tn=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toString`,`valueOf`,`toLocaleString`,`then`,`catch`,`finally`,`status`,`value`,`error`,`displayName`,`_debugInfo`,`toJSON`,`$$typeof`,`__esModule`,`@@iterator`]);function En(e){return Tn.has(e)}function Dn(e,t){e&&e.observeParamAccess(t)}function On(e,t){Dn(e,Object.keys(t))}function kn(e,t){Dn(e,Object.keys(t).filter(e=>!En(e)))}function An(e){return e===`then`||e===`catch`||e===`finally`}function jn(e,t,n,r){if(!t||t.size===0)return e;function i(e){return typeof e==`string`&&t!==null&&t.has(e)}return new Proxy(e,{get(t,a,o){if(typeof a==`string`&&!En(a)&&Dn(n,[a]),!En(a)&&wn(e,a)){if(i(a)){let e=r();if(e)throw e}return Reflect.get(e,a)}return Reflect.get(e,a)},getOwnPropertyDescriptor(t,a){return typeof a==`string`&&!En(a)&&Dn(n,[a]),!En(a)&&wn(e,a)?i(a)?{configurable:!0,enumerable:!0,get(){let e=r();if(e)throw e}}:{configurable:!0,enumerable:!0,value:Reflect.get(e,a),writable:!0}:Reflect.getOwnPropertyDescriptor(e,a)},has(t,r){return typeof r==`string`&&!En(r)&&Dn(n,[r]),Reflect.has(e,r)||!En(r)&&wn(e,r)},ownKeys(){return kn(n,e),Reflect.ownKeys(e).filter(e=>!En(e))}})}function Mn(e,t){return new Proxy(e,t)}function K(e,t){let n={...e},r=ye(),i=r&&Object.keys(n).some(e=>r.fallbackParamNames.has(e))?r.fallbackParamNames:null,a=null,o=null;function s(){return!i||!r?null:a&&o===r.abortController?a:(o=r.abortController,a=E(r,"`params`"),a)}let c=jn(n,i,t,s),l=Promise.resolve(c);function u(e){return typeof e==`string`&&(i?.has(e)??!1)}return Mn(l,{get(e,r,a){if(An(r)){let o=Reflect.get(e,r,a);return typeof o==`function`?(...r)=>(i||On(t,n),Reflect.apply(o,e,r)):o}if(r===`status`&&t?.observeReactPromiseStatus===!0&&On(t,n),typeof r==`string`&&!En(r)&&Dn(t,[r]),!En(r)&&wn(n,r)){if(u(r)){let e=s();if(e)throw e}return Reflect.get(n,r)}let o=Reflect.get(e,r,a);return typeof o==`function`?o.bind(e):o},getOwnPropertyDescriptor(e,r){return typeof r==`string`&&!En(r)&&Dn(t,[r]),!En(r)&&wn(n,r)?u(r)?{configurable:!0,enumerable:!0,get(){let e=s();if(e)throw e}}:{configurable:!0,enumerable:!0,value:Reflect.get(n,r),writable:!0}:Reflect.getOwnPropertyDescriptor(e,r)},has(e,r){return typeof r==`string`&&!En(r)&&Dn(t,[r]),Reflect.has(e,r)||!En(r)&&wn(n,r)},ownKeys(){return kn(t,n),Reflect.ownKeys(n).filter(e=>!En(e))}})}var q=r(),Nn=Symbol.for(`vinext.useCacheFunction`),Pn=Symbol.for(`vinext.useCacheAcceptsSecondArgument`);async function Fn(e,t={},n,r=Promise.resolve(Ln([])),i){if(typeof e.generateViewport==`function`){let a=K(t),o=n===void 0?{params:a}:{params:a,searchParams:K(n,i)};return await e.generateViewport(o,r)}return e.viewport&&typeof e.viewport==`object`?e.viewport:null}var In={width:`device-width`,initialScale:1,themeColor:null,colorScheme:null};function Ln(e){let t={...In};for(let n of e)for(let e in n)switch(e){case`themeColor`:t.themeColor=Bn(n.themeColor);break;case`colorScheme`:t.colorScheme=n.colorScheme||null;break;case`width`:t.width=n.width;break;case`height`:t.height=n.height;break;case`initialScale`:t.initialScale=n.initialScale;break;case`minimumScale`:t.minimumScale=n.minimumScale;break;case`maximumScale`:t.maximumScale=n.maximumScale;break;case`userScalable`:t.userScalable=n.userScalable;break;case`viewportFit`:t.viewportFit=n.viewportFit;break;case`interactiveWidget`:t.interactiveWidget=n.interactiveWidget;break;default:}return t}var Rn={width:`width`,height:`height`,initialScale:`initial-scale`,minimumScale:`minimum-scale`,maximumScale:`maximum-scale`,userScalable:`user-scalable`,viewportFit:`viewport-fit`,interactiveWidget:`interactive-widget`};function zn({viewport:e}){let t=Ln([e]),n=[],r=0,i=[];for(let e of Object.keys(Rn)){let n=t[e];n!=null&&i.push(`${Rn[e]}=${e===`userScalable`?n?`yes`:`no`:n}`)}if(i.length>0&&n.push((0,q.jsx)(`meta`,{name:`viewport`,content:i.join(`, `)},r++)),t.themeColor)for(let e of t.themeColor)n.push((0,q.jsx)(`meta`,{name:`theme-color`,content:e.color,...e.media?{media:e.media}:{}},r++));return t.colorScheme&&n.push((0,q.jsx)(`meta`,{name:`color-scheme`,content:t.colorScheme},r++)),(0,q.jsx)(q.Fragment,{children:n})}function Bn(e){return e?(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?{color:e}:{color:e.color,media:e.media}):null}function Vn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof URL)}function Hn(e){return Vn(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function Un(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`)return e.absolute??e.default??void 0}function Wn(e,t){return e?e.replace(/%s/g,t):t}function Gn(e,t){if(typeof e==`string`)return Wn(t,e);if(e&&typeof e==`object`){let n=e.default===void 0?void 0:Wn(t,e.default);return e.absolute&&(n=e.absolute),n}}function Kn(e){let t={...e},n=Un(t.title);if(t.openGraph){let e={...t.openGraph};!e.title&&n&&(e.title=n),!e.description&&t.description&&(e.description=t.description),t.openGraph=e}if(t.openGraph){let e={},r=t.twitter,i=r?!!r.title:!1,a=r?!!r.description:!1,o=r?Object.prototype.hasOwnProperty.call(r,`images`)&&!!r.images:!1;i||(t.openGraph.title?e.title=t.openGraph.title:n&&(e.title=n)),a||(e.description=t.openGraph.description||t.description||void 0),!o&&t.openGraph.images!==void 0&&(e.images=t.openGraph.images),Object.keys(e).length>0&&(r?t.twitter={...r,...e}:t.twitter=e)}if(t.twitter){let e={...t.twitter};!e.title&&n&&(e.title=n),!e.description&&t.description&&(e.description=t.description),t.twitter=e}if(t.twitter){let e={...t.twitter};if(!e.card){let t=e.images;e.card=(Array.isArray(t)?t.length>0:t)?`summary_large_image`:`summary`}t.twitter=e}return t}function qn(e){if(e.length===0)return{};let t={},n;for(let r of e){let e=r.metadata,i=!!r.isPage,a=r.contributesTitle!==!1;for(let n of Object.keys(e)){if(n===`title`)continue;let r=e[n],i=t[n];n===`other`&&Hn(i)&&Hn(r)?t.other={...i,...r}:t[n]=r}a&&e.title!==void 0&&(t.title=Gn(e.title,n)),a&&!i&&e.title&&typeof e.title==`object`&&e.title.template&&(n=e.title.template)}return t}async function Jn(e,t={},n,r=Promise.resolve({}),i){if(typeof e.generateMetadata==`function`){let a=e.generateMetadata,o=K(t),s=n===void 0?{params:o}:{params:o,searchParams:K(n,i)},c=Reflect.get(a,Nn)===!0,l=Reflect.get(a,Pn);return await(!c||(typeof l==`boolean`?l:a.length>=2)?a(s,r):a(s))}return e.metadata&&typeof e.metadata==`object`?e.metadata:null}function Yn(e){if(typeof e!=`object`||!e||e instanceof URL||Array.isArray(e))return!1;let t=Reflect.get(e,`url`);return typeof t==`string`||t instanceof URL}function Xn(e){return typeof e==`object`&&!(e instanceof URL)&&!Array.isArray(e)&&!Yn(e)}function Zn(e,t){return typeof e==`string`||e instanceof URL?t(e):e}function Qn(e,t){return e?Array.isArray(e)?e.map(e=>Zn(e,t)):[Zn(e,t)]:[]}function $n(e){return typeof e==`string`?e:e.toString()}function er(){let e=process.env.__NEXT_EXPERIMENTAL_HTTPS?`https`:`http`;return new URL(`${e}://localhost:${process.env.PORT||3e3}`)}function tr(){let e=process.env.VERCEL_BRANCH_URL||process.env.VERCEL_URL;return e?new URL(`https://${e}`):null}function nr(){let e=process.env.VERCEL_PROJECT_PRODUCTION_URL;return e?new URL(`https://${e}`):null}function rr(e){let t=er(),n=tr(),r=nr();return process.env.VERCEL_ENV===`preview`&&n?n:e||r||t}function ir(e){return e.replace(/^\/+|\/+$/g,``)}function ar(e,t){if(!e||e===`/`)return t;let n=ir(e),r=ir(t);return r?`/${n}/${r}`:`/${n}`}function or(e,t){return e===`.`||e===`./`?t||`/`:e.startsWith(`./`)?`${t===`/`?``:t.replace(/\/+$/g,``)}/${e.slice(2)}`:e}function sr(e){return e.pathname===`/`&&e.search===``&&e.hash===``?e.origin:e.href}var cr=/^(?:\/((?!\.well-known(?:\/.*)?)((?:[^/]+\/)*)([^/]+\.\w+)))(\/?|$)/i;function lr(e,t,n){let r=$n(e);if(!t)return r;try{let e=Cn(r),i=e?new URL(r,t):new URL(ar(t.pathname,r),t);if(e&&i.origin!==t.origin)return r;n===!0&&i.search===``&&i.pathname!==`/`&&!i.pathname.endsWith(`/`)&&!cr.test(i.pathname)&&(i.pathname+=`/`);let a=sr(i);return n===!0&&a===t.origin?`${t.origin}/`:a}catch{return r}}function ur(e,t,n,r){return e instanceof URL?lr(e,t,r):lr(or(e,n),t,r)}function dr(e,t,n,r){if(e instanceof URL){let i=new URL(n,e);return e.searchParams.forEach((e,t)=>i.searchParams.set(t,e)),lr(i,t,r)}return ur(e,t,n,r)}function fr(e){return typeof e==`object`&&!(e instanceof URL)}function pr(e){return Reflect.get(e,`metadataRoute`)===!0}function mr(e,t){let n=fr(e)?e.url:e,r=fr(e)&&pr(e);return typeof n==`string`&&!Cn(n)&&(!t||r)?lr(n,rr(t)):lr(n,t)}function hr(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function gr(e){return hr(e).replaceAll(`"`,`&quot;`)}function _r(e){return e==null||typeof e==`boolean`?``:Array.isArray(e)?e.map(_r).join(``):typeof e==`string`||typeof e==`number`||typeof e==`bigint`?hr(String(e)):``}function vr(e,t){let n=[];for(let r of t){let t=Reflect.get(e,r);if(t==null||typeof t==`boolean`)continue;let i=r===`hrefLang`?`hreflang`:r;n.push(`${i}="${gr(String(t))}"`)}return n.length>0?` ${n.join(` `)}`:``}function yr(e){if(e==null||typeof e==`boolean`)return``;if(Array.isArray(e))return e.map(yr).join(``);if(!G.isValidElement(e))return _r(e);let t=typeof e.props==`object`&&e.props!==null?e.props:{};if(e.type===G.Fragment)return yr(Reflect.get(t,`children`));if(typeof e.type!=`string`)return``;switch(e.type){case`title`:return`<title>${_r(Reflect.get(t,`children`))}</title>`;case`meta`:return`<meta${vr(t,[`name`,`property`,`content`])}>`;case`link`:return`<link${vr(t,[`data-vinext-streamed-icon`,`rel`,`href`,`hrefLang`,`type`,`sizes`,`color`,`media`,`fetchPriority`])}>`;default:return``}}function br(e,t=`/`,n){return yr(xr({metadata:e,pathname:t,trailingSlash:n?.trailingSlash,streamedIconKey:n?.streamedIconKey}))}function xr({metadata:e,pathname:t=`/`,trailingSlash:n,streamedIconKey:r}){let i=[],a=0,o=e.metadataBase;function s(e){if(e)return lr(e,o)}let c=typeof e.title==`string`?e.title:typeof e.title==`object`?e.title.absolute||e.title.default:void 0;if(c&&i.push((0,q.jsx)(`title`,{children:c},a++)),e.description&&i.push((0,q.jsx)(`meta`,{name:`description`,content:e.description},a++)),e.generator&&i.push((0,q.jsx)(`meta`,{name:`generator`,content:e.generator},a++)),e.applicationName&&i.push((0,q.jsx)(`meta`,{name:`application-name`,content:e.applicationName},a++)),e.referrer&&i.push((0,q.jsx)(`meta`,{name:`referrer`,content:e.referrer},a++)),e.keywords){let t=Array.isArray(e.keywords)?e.keywords.join(`,`):e.keywords;i.push((0,q.jsx)(`meta`,{name:`keywords`,content:t},a++))}if(e.authors){let t=Array.isArray(e.authors)?e.authors:[e.authors];for(let e of t)e.name&&i.push((0,q.jsx)(`meta`,{name:`author`,content:e.name},a++)),e.url&&i.push((0,q.jsx)(`link`,{rel:`author`,href:e.url},a++))}if(e.creator&&i.push((0,q.jsx)(`meta`,{name:`creator`,content:e.creator},a++)),e.publisher&&i.push((0,q.jsx)(`meta`,{name:`publisher`,content:e.publisher},a++)),e.formatDetection){let t=[];e.formatDetection.telephone===!1&&t.push(`telephone=no`),e.formatDetection.address===!1&&t.push(`address=no`),e.formatDetection.email===!1&&t.push(`email=no`),t.length>0&&i.push((0,q.jsx)(`meta`,{name:`format-detection`,content:t.join(`, `)},a++))}if(e.category&&i.push((0,q.jsx)(`meta`,{name:`category`,content:e.category},a++)),e.robots)if(typeof e.robots==`string`)i.push((0,q.jsx)(`meta`,{name:`robots`,content:e.robots},a++));else{let{googleBot:t,...n}=e.robots,r=[];for(let[e,t]of Object.entries(n))t===!0?r.push(e):t===!1?r.push(`no${e}`):(typeof t==`string`||typeof t==`number`)&&r.push(`${e}:${t}`);if(r.length>0&&i.push((0,q.jsx)(`meta`,{name:`robots`,content:r.join(`, `)},a++)),t)if(typeof t==`string`)i.push((0,q.jsx)(`meta`,{name:`googlebot`,content:t},a++));else{let e=[];for(let[n,r]of Object.entries(t))r===!0?e.push(n):r===!1?e.push(`no${n}`):(typeof r==`string`||typeof r==`number`)&&e.push(`${n}:${r}`);e.length>0&&i.push((0,q.jsx)(`meta`,{name:`googlebot`,content:e.join(`, `)},a++))}}if(e.openGraph){let r=e.openGraph;if(r.title&&i.push((0,q.jsx)(`meta`,{property:`og:title`,content:r.title},a++)),r.description&&i.push((0,q.jsx)(`meta`,{property:`og:description`,content:r.description},a++)),r.url&&i.push((0,q.jsx)(`meta`,{property:`og:url`,content:ur(r.url,o,t,n)},a++)),r.siteName&&i.push((0,q.jsx)(`meta`,{property:`og:site_name`,content:r.siteName},a++)),r.type&&i.push((0,q.jsx)(`meta`,{property:`og:type`,content:r.type},a++)),r.locale&&i.push((0,q.jsx)(`meta`,{property:`og:locale`,content:r.locale},a++)),r.publishedTime&&i.push((0,q.jsx)(`meta`,{property:`article:published_time`,content:r.publishedTime},a++)),r.modifiedTime&&i.push((0,q.jsx)(`meta`,{property:`article:modified_time`,content:r.modifiedTime},a++)),r.authors)for(let e of r.authors)i.push((0,q.jsx)(`meta`,{property:`article:author`,content:e},a++));if(r.images){let e=typeof r.images==`string`||r.images instanceof URL?[{url:r.images}]:Array.isArray(r.images)?r.images:[r.images];for(let t of e)i.push((0,q.jsx)(`meta`,{property:`og:image`,content:mr(t,o)},a++)),typeof t!=`string`&&!(t instanceof URL)&&(t.width&&i.push((0,q.jsx)(`meta`,{property:`og:image:width`,content:String(t.width)},a++)),t.height&&i.push((0,q.jsx)(`meta`,{property:`og:image:height`,content:String(t.height)},a++)),t.type&&i.push((0,q.jsx)(`meta`,{property:`og:image:type`,content:t.type},a++)),t.alt&&i.push((0,q.jsx)(`meta`,{property:`og:image:alt`,content:t.alt},a++)))}if(r.videos)for(let e of r.videos)i.push((0,q.jsx)(`meta`,{property:`og:video`,content:s(e.url)},a++)),e.width&&i.push((0,q.jsx)(`meta`,{property:`og:video:width`,content:String(e.width)},a++)),e.height&&i.push((0,q.jsx)(`meta`,{property:`og:video:height`,content:String(e.height)},a++));if(r.audio)for(let e of r.audio)i.push((0,q.jsx)(`meta`,{property:`og:audio`,content:s(e.url)},a++))}if(e.twitter){let t=e.twitter;if(t.card&&i.push((0,q.jsx)(`meta`,{name:`twitter:card`,content:t.card},a++)),t.site&&i.push((0,q.jsx)(`meta`,{name:`twitter:site`,content:t.site},a++)),t.siteId&&i.push((0,q.jsx)(`meta`,{name:`twitter:site:id`,content:t.siteId},a++)),t.title&&i.push((0,q.jsx)(`meta`,{name:`twitter:title`,content:t.title},a++)),t.description&&i.push((0,q.jsx)(`meta`,{name:`twitter:description`,content:t.description},a++)),t.creator&&i.push((0,q.jsx)(`meta`,{name:`twitter:creator`,content:t.creator},a++)),t.creatorId&&i.push((0,q.jsx)(`meta`,{name:`twitter:creator:id`,content:t.creatorId},a++)),t.images){let e=typeof t.images==`string`||t.images instanceof URL?[t.images]:Array.isArray(t.images)?t.images:[t.images];for(let t of e)i.push((0,q.jsx)(`meta`,{name:`twitter:image`,content:mr(t,o)},a++)),typeof t!=`string`&&!(t instanceof URL)&&(t.type&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:type`,content:t.type},a++)),t.width&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:width`,content:String(t.width)},a++)),t.height&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:height`,content:String(t.height)},a++)),t.alt&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:alt`,content:t.alt},a++)))}if(t.card===`player`&&t.players){let e=Array.isArray(t.players)?t.players:[t.players];for(let t of e){let e=t.playerUrl.toString(),n=t.streamUrl.toString();i.push((0,q.jsx)(`meta`,{name:`twitter:player`,content:s(e)},a++)),i.push((0,q.jsx)(`meta`,{name:`twitter:player:stream`,content:s(n)},a++)),i.push((0,q.jsx)(`meta`,{name:`twitter:player:width`,content:String(t.width)},a++)),i.push((0,q.jsx)(`meta`,{name:`twitter:player:height`,content:String(t.height)},a++))}}if(t.card===`app`&&t.app){let{app:e}=t;for(let t of[`iphone`,`ipad`,`googleplay`])if(e.name&&i.push((0,q.jsx)(`meta`,{name:`twitter:app:name:${t}`,content:e.name},a++)),e.id[t]&&i.push((0,q.jsx)(`meta`,{name:`twitter:app:id:${t}`,content:String(e.id[t])},a++)),e.url?.[t]){let n=e.url[t].toString();i.push((0,q.jsx)(`meta`,{name:`twitter:app:url:${t}`,content:s(n)},a++))}}}if(e.icons){let t=Xn(e.icons)?Qn(e.icons.icon,e=>({url:e})):Qn(e.icons,e=>({url:e})),n=0,o=(e,t)=>{for(let{url:o,rel:s,type:c,sizes:l,color:u,media:d,fetchPriority:f}of e)i.push((0,q.jsx)(`link`,{"data-vinext-streamed-icon":r?`${r}:${n++}`:void 0,rel:s||t,href:$n(o),type:c,sizes:l,color:u,media:d,fetchPriority:f},a++))};Xn(e.icons)&&e.icons.shortcut&&o(Qn(e.icons.shortcut,e=>({url:e})),`shortcut icon`),t.length>0&&o(t,`icon`),Xn(e.icons)&&e.icons.apple&&o(Qn(e.icons.apple,e=>({url:e})),`apple-touch-icon`),Xn(e.icons)&&e.icons.other&&o(Qn(e.icons.other,e=>({url:e})),`icon`)}if(e.manifest&&i.push((0,q.jsx)(`link`,{rel:`manifest`,href:$n(e.manifest)},a++)),e.alternates){let r=e.alternates;if(r.canonical&&i.push((0,q.jsx)(`link`,{rel:`canonical`,href:ur(r.canonical,o,t,n)},a++)),r.languages)for(let[e,s]of Object.entries(r.languages))i.push((0,q.jsx)(`link`,{rel:`alternate`,hrefLang:e,href:dr(s,o,t,n)},a++));if(r.media)for(let[e,s]of Object.entries(r.media))i.push((0,q.jsx)(`link`,{rel:`alternate`,media:e,href:dr(s,o,t,n)},a++));if(r.types)for(let[e,s]of Object.entries(r.types))i.push((0,q.jsx)(`link`,{rel:`alternate`,type:e,href:dr(s,o,t,n)},a++))}if(e.verification){let t=e.verification;if(t.google&&i.push((0,q.jsx)(`meta`,{name:`google-site-verification`,content:t.google},a++)),t.yahoo&&i.push((0,q.jsx)(`meta`,{name:`y_key`,content:t.yahoo},a++)),t.yandex&&i.push((0,q.jsx)(`meta`,{name:`yandex-verification`,content:t.yandex},a++)),t.other)for(let[e,n]of Object.entries(t.other)){let t=Array.isArray(n)?n:[n];for(let n of t)i.push((0,q.jsx)(`meta`,{name:e,content:n},a++))}}if(e.appleWebApp){let t=e.appleWebApp;if(t.capable!==!1&&i.push((0,q.jsx)(`meta`,{name:`mobile-web-app-capable`,content:`yes`},a++)),t.title&&i.push((0,q.jsx)(`meta`,{name:`apple-mobile-web-app-title`,content:t.title},a++)),t.statusBarStyle&&i.push((0,q.jsx)(`meta`,{name:`apple-mobile-web-app-status-bar-style`,content:t.statusBarStyle},a++)),t.startupImage){let e=typeof t.startupImage==`string`?[{url:t.startupImage}]:t.startupImage;for(let t of e)i.push((0,q.jsx)(`link`,{rel:`apple-touch-startup-image`,href:s(t.url),...t.media?{media:t.media}:{}},a++))}}if(e.itunes){let{appId:t,appArgument:n}=e.itunes,r=`app-id=${t}`;n&&(r+=`, app-argument=${n}`),i.push((0,q.jsx)(`meta`,{name:`apple-itunes-app`,content:r},a++))}if(e.appLinks){let t=e.appLinks;for(let e of[`ios`,`iphone`,`ipad`,`android`,`windows_phone`,`windows`,`windows_universal`,`web`]){let n=t[e];if(!n)continue;let r=Array.isArray(n)?n:[n];for(let t of r)for(let[n,r]of Object.entries(t)){if(r==null)continue;let t=String(r),o=n===`url`?s(t):t;i.push((0,q.jsx)(`meta`,{property:`al:${e}:${n}`,content:o},a++))}}}if(e.other)for(let[t,n]of Object.entries(e.other)){let e=Array.isArray(n)?n:[n];for(let n of e)i.push((0,q.jsx)(`meta`,{name:t,content:n},a++))}return(0,q.jsx)(q.Fragment,{children:i})}function Sr(e){return yt(e)}function Cr(e,t){return(e??t).split(`:`,1)[0].toLowerCase()}function wr(e){let t=new URL(e.url),n,r;return{headers:e.headers,get cookies(){return n??=Sr(e.headers.get(`cookie`))},get query(){return r??=t.searchParams},host:Cr(e.headers.get(`host`),t.hostname)}}function Tr(e){return new Response(`Bad Request`,{status:400,headers:e?.headers})}function Er(e){return new Response(`This page could not be found`,{status:404,headers:e?.headers})}function Dr(e,t){let n=new Headers(t?.headers);return n.set(`Allow`,e),new Response(`Method Not Allowed`,{status:405,headers:n})}function Or(e){if(!e.startsWith(`/`))return!1;let t=e.slice(1);if(t.startsWith(`/`)||t.startsWith(`\\`))return!0;if(t.length>=3&&t[0]===`%`){let e=t.slice(0,3).toLowerCase();if(e===`%5c`||e===`%2f`)return!0}return!1}new URL(`http://vinext.invalid/`);function kr(e){return Or(e)?Er():null}var Ar=/\.[^/]+\/?$/;function jr(e){return e===`/.well-known`||e.startsWith(`/.well-known/`)}function Mr(e,t){let n=new Headers({[it]:encodeURIComponent(e)});if(t.headers)for(let[e,r]of t.headers)n.append(e,r);return new Response(null,{status:t.status??200,headers:n})}function Nr(e){return e.request.method!==`GET`&&e.request.method!==`HEAD`||e.pathname.endsWith(`.rsc`)||!e.publicFiles.has(e.cleanPathname)?null:Mr(e.cleanPathname,e.middlewareContext)}function Pr(e,t){if(e===`/`||e===`/api`||e.startsWith(`/api/`))return null;let n=e.endsWith(`/`);if(t){if(jr(e))return null;if(Ar.test(e)){let t=Ot(e);return t===e?null:t}return!n&&!e.endsWith(`.rsc`)?`${e}/`:null}return n?Ot(e):null}function Fr(e,t,n,r){if(e===`/`||e===`/api`||e.startsWith(`/api/`))return null;if(Or(e))return Er();let i=Pr(e,n);if(i===null)return null;let a=i.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@/%]/gu,encodeURIComponent);return new Response(null,{status:308,headers:{Location:t+a+r}})}function Ir(e){let t=[];for(let n of e.keys())n.startsWith(`x-middleware-`)&&n!==`x-middleware-cache`&&t.push(n);for(let n of t)e.delete(n)}var Lr=new Set([...lt,...ut]);function Rr(e){let t=new Headers;for(let[n,r]of e)Lr.has(n.toLowerCase())||t.append(n,r);return t}function zr(e){let t=Reflect.get(e,`cf`);return t===void 0?void 0:t}function Br(e,t){let n;try{n=new Request(e,{headers:t})}catch{let r={method:e.method,headers:t,body:e.body??void 0,redirect:e.redirect,signal:e.signal,integrity:e.integrity,cache:e.cache,mode:e.mode,credentials:e.credentials,referrer:e.referrer,referrerPolicy:e.referrerPolicy};e.body&&(r.duplex=`half`),n=new Request(e.url,r)}let r=zr(e);return r!==void 0&&Object.defineProperty(n,"cf",{value:r,enumerable:!0,configurable:!0}),n}function Vr(e,t){let n;try{n=new Request(t,e)}catch{let r={method:e.method,headers:e.headers,body:e.body??void 0,redirect:e.redirect,signal:e.signal,integrity:e.integrity,cache:e.cache,mode:e.mode,credentials:e.credentials,referrer:e.referrer,referrerPolicy:e.referrerPolicy};e.body&&(r.duplex=`half`),n=new Request(t,r)}let r=zr(e);return r!==void 0&&Object.defineProperty(n,"cf",{value:r,enumerable:!0,configurable:!0}),n}var Hr=/([/#?\\]|%(2f|23|3f|5c))/gi;function Ur(e){return e.replace(Hr,e=>encodeURIComponent(e))}function Wr(e){try{return Ur(decodeURIComponent(e))}catch{return e}}function Gr(e){return Ur(decodeURIComponent(e))}function Kr(e){return e.split(`/`).map(e=>Wr(e)).join(`/`)}function qr(e){return Kr(e).split(`/`).filter(Boolean)}function Jr(e){return e.split(`/`).map(e=>Gr(e)).join(`/`)}function Yr(e){try{return decodeURIComponent(e)}catch{return e}}function Xr(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function Zr(e){for(let t of Object.keys(e)){let n=e[t];Array.isArray(n)?e[t]=n.map(Yr):e[t]=Yr(n)}}function Qr(e){return e.split(`/`).filter(Boolean)}function $r(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function ei(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function ti(e){if(!e.startsWith(`/`))throw Error(`[vinext] App Router render pathname must be absolute: ${e}`);return Te(Kr(e))}function ni(e){return e===null||!L(e)?null:ti(e)}function ri(e){let t=e.interceptionContext??null,n=ti(e.targetMatchedPathname??e.displayPathname),r=ti(e.matchedRoutePathname??e.targetMatchedPathname??e.displayPathname),i=ni(e.interceptSourceMatchedUrl??null),a=e.interceptSlotId??null,o=i??r,s=W.encodeRouteId(o,null),c=W.encodePageId(o,null),l=i===null||a===null?null:{sourceMatchedUrl:i,sourceRouteId:W.encodeRouteId(i,null),slotId:a,targetMatchedUrl:n,targetRouteId:W.encodeRouteId(n,null)};return{displayPathname:e.displayPathname,interception:l,interceptionContext:t,matchedRoutePathname:o,pageId:c,routeId:s,targetMatchedPathname:n}}function ii(){return`e5ed15cdde52ae8d50b855c39cc61a7457ff943d8442134a7949c0c5ae003cb0`}function ai(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e.charCodeAt(r)^t.charCodeAt(r);return n===0}function oi(e){return typeof e!=`string`||e.length===0?!1:ai(e,ii())}function si(e){return typeof e==`string`&&oi(e)}async function ci(e){let t=await ce().get(e);if(!t)return null;let n=t.cacheState===`expired`;return{value:t,isStale:n||t.cacheState===`stale`,...n?{isExpired:!0}:{}}}async function li(e,t,n,r,i){await ce().set(e,t,{cacheControl:i===void 0?{revalidate:n}:{revalidate:n,expire:i},revalidate:n,tags:r??[]})}async function ui(e,t,n){let r=n.revalidateSeconds,i=n.tags;process.env.NEXT_PRIVATE_DEBUG_CACHE&&console.debug(`[vinext] ISR: seed`,e);let a={};r!==void 0&&(a.revalidate=r,a.cacheControl=n.expireSeconds===void 0?{revalidate:r}:{revalidate:r,expire:n.expireSeconds}),i&&i.length>0&&(a.tags=i),await ce().set(e,t,a),r!==void 0&&Oi(e,r)}var di=Symbol.for(`vinext.isrCache.pendingRegenerations`),fi=globalThis,pi=fi[di]??=new Map,mi=Symbol.for(`vinext.isrCache.pendingOnDemandRegenerations`);fi[mi]??=new Map;function hi(e,t,n){if(!ce().ownsBackgroundRevalidation||pi.has(e))return;let r=t().catch(t=>{console.error(`[vinext] ISR background regeneration failed for ${e}:`,t),n&&At(t instanceof Error?t:Error(String(t)),{path:e,method:`GET`,headers:{}},{routerKind:n.routerKind,routePath:n.routePath,routeType:n.routeType,revalidateReason:`stale`})}).finally(()=>{pi.delete(e)});pi.set(e,r),bt()?.waitUntil(r)}function gi(e,t,n,r,i){let a={kind:`APP_PAGE`,html:e,rscData:t,headers:i,postponed:void 0,status:n};return r&&(a.renderObservation=r),a}function _i(e){return e===`/`?`/`:e.replace(/\/$/,``)}function vi(e,t,n){let r=_i(t),i=n?`:${n}`:``,a=`${e}:${r}${i}`;return a.length<=200?a:`${e}:__hash:${Ae(r)}${i}`}function yi(e,t,n){return vi(n?`${e}:${n}`:e,t)}function bi(e,t,n=`e1ce9af7-d770-43d6-845a-511443f19971`){return vi(n?`app:${n}`:`app`,e,t)}function xi(e){return bi(e,`html`)}function Si(e){return ni(e)}function Ci(e,t,n=C,r){let i=N(t),a=r==null?null:Si(r),o=[a?`source:${Ae(a)}`:null,i?`slots:${Ae(i)}`:null,te(n)].filter(e=>e!==null).join(`:`);return bi(e,o?`rsc:${o}`:`rsc`)}function wi(e){return bi(e,`route`)}var Ti=1e4,Ei=Symbol.for(`vinext.isrCache.revalidateDurations`),Di=fi[Ei]??=new Map;function Oi(e,t){for(Di.delete(e),Di.set(e,t);Di.size>Ti;){let e=Di.keys().next().value;if(e!==void 0)Di.delete(e);else break}}function ki(e,t){let n=e.indexOf(`?`);if(n===-1)return t;let r=e.slice(n+1).split(`#`)[0];if(!r)return t;let i=t.indexOf(`#`),a=i===-1?t:t.slice(0,i),o=i===-1?``:t.slice(i),s=a.indexOf(`?`),c=s===-1?a:a.slice(0,s),l=s===-1?``:a.slice(s+1),u=new URLSearchParams(r),d=new URLSearchParams(l),f=new Set;for(let e of d.keys())f.add(e);for(let e of f)u.delete(e);for(let[e,t]of d)u.append(e,t);let p=u.toString();return`${c}${p?`?${p}`:``}${o}`}var Ai=/[&><\u2028\u2029]/;function ji(e){let t=e.split(`;`).map(e=>e.trim()),n=t.find(e=>e.startsWith(`script-src`))??t.find(e=>e.startsWith(`default-src`));if(!n)return;let r=n.split(` `).slice(1).map(e=>e.trim()).find(e=>e.startsWith(`'nonce-`)&&e.length>8&&e.endsWith(`'`))?.slice(7,-1);if(r){if(Ai.test(r))throw Error(`Nonce value from Content-Security-Policy contained HTML escape characters.
4
+ import{o as e,r as t}from"./_next/static/rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./_next/static/framework~index~layout~layout~page~page~page~layout~page~app-page-cache-render~app-page-cac~nvd6h53m-ydvR7YSg.js";import{n as i,r as a,t as o}from"./_next/static/framework~index-B2E_Di_-.js";import{$ as s,A as c,At as l,B as u,C as d,Ct as f,D as p,Dt as m,E as h,Et as g,F as _,G as v,H as y,I as b,J as x,K as S,L as C,N as w,O as T,Ot as E,P as D,Q as O,R as k,S as A,St as j,T as ee,Tt as M,U as N,V as te,W as P,X as F,Y as ne,Z as re,_ as ie,_t as I,a as ae,at as L,b as oe,bt as se,c as R,ct as ce,d as le,dt as z,et as ue,f as de,g as fe,gt as B,h as pe,ht as me,i as V,it as he,j as ge,jt as _e,k as ve,kt as ye,l as be,lt as xe,m as Se,mt as Ce,n as H,nt as we,ot as Te,p as Ee,pt as U,q as W,r as De,rt as Oe,s as ke,st as Ae,t as je,tt as Me,u as Ne,ut as Pe,v as Fe,vt as Ie,w as Le,x as Re,xt as ze,y as Be,yt as Ve,z as He}from"./_next/static/cache-headers-lY59goLh.js";import{a as Ue,c as We,i as Ge,n as Ke,o as qe,r as Je,s as Ye,t as Xe}from"./_next/static/unified-request-context-CgIMz2dD.js";import{C as Ze,D as Qe,E as $e,F as et,I as tt,L as nt,N as rt,O as it,P as at,S as ot,T as st,_ as ct,a as lt,b as ut,c as dt,d as ft,g as pt,h as mt,i as ht,k as gt,l as _t,m as vt,n as yt,t as bt,u as xt,v as St,w as Ct,x as wt,y as Tt}from"./_next/static/request-context-C1ZJzkex.js";import{i as Et,n as Dt,r as Ot,t as kt}from"./_next/static/base-path-Cmiu3HvG.js";import{t as At}from"./_next/static/instrumentation-BV3gg-L-.js";import{AsyncLocalStorage as jt}from"node:async_hooks";import"./vinext-client-assets.js";import Mt from"./__vite_rsc_assets_manifest.js";function Nt(e){let t=Object.getOwnPropertyDescriptor(globalThis,e);if(!(!t&&Reflect.get(globalThis,e)===void 0)&&(t?t.configurable?Reflect.deleteProperty(globalThis,e):Reflect.set(globalThis,e,void 0):Object.defineProperty(globalThis,e,{configurable:!0,value:void 0,writable:!0}),Reflect.get(globalThis,e)!==void 0))throw Error(`[vinext] Server runtime exposes a non-removable \`${e}\` global. This breaks Next.js SSR semantics where browser globals must be absent.`)}function Pt(){Nt(`window`),Nt(`document`),Reflect.get(globalThis,`AsyncLocalStorage`)===void 0&&Object.defineProperty(globalThis,"AsyncLocalStorage",{configurable:!0,value:jt,writable:!0})}Pt();function Ft(e,t){if(!e)throw t instanceof Error?t:new It(t,Ft)}var It=class extends Error{constructor(e,t){super(e??`TinyAssertionError`),t&&`captureStackTrace`in Error&&Error.captureStackTrace(this,t)}},Lt=e(a(),1);function Rt(e){return new Proxy({},{get(t,n,r){Ft(typeof n==`string`);let[i,a]=n.split(`#`);return Ft(i),Ft(a),e?.onClientReference?.({id:i,name:a}),{id:i+``,name:a,chunks:[],async:!0}}})}function zt(e,t,n){return Lt.renderToReadableStream(e,Rt({onClientReference:n?.onClientReference}),t)}function Bt(e,t,n){return Lt.registerClientReference(e,t,n)}i();var Vt=o(),Ht=/^([0-9a-f]*:HL\[.*?),"stylesheet"(\]|,)/,Ut=` `.repeat(5),Wt=new Set([`T`,`A`,`O`,`o`,`b`,`U`,`S`,`s`,`L`,`l`,`G`,`g`,`M`,`m`,`V`]),Gt=new Set([`I`,`H`,`E`,`N`,`D`,`J`,`W`,`R`,`r`,`X`,`x`,`C`,`P`,`#`]),Kt=new TextDecoder,qt=new TextEncoder;function Jt(e){let t=Kt.decode(e),n=t.replace(Ht,`$1,"style"${Ut}$2`);if(n===t)return e;let r=qt.encode(n);return r.byteLength===e.byteLength?r:e}function Yt(e,t){if(e.byteLength===0)return t;let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e),n.set(t,e.byteLength),n}function Xt(e,t,n=0){for(let r=n;r<e.byteLength;r++)if(e[r]===t)return r;return-1}function Zt(e,t,n){if(t===n)return null;let r=0;for(let i=t;i<n;i++){let t=e[i],n=t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:-1;if(n===-1||(r=r*16+n,!Number.isSafeInteger(r)))return null}return r}function Qt(e){return e===34||e===45||e>=48&&e<=57||e===91||e===102||e===110||e===116||e===123}function $t(e){let t=new Uint8Array,n=0,r=!1;return e.pipeThrough(new TransformStream({transform(e,i){if(r){i.enqueue(e);return}let a=Yt(t,e);for(t=new Uint8Array;a.byteLength>0;){if(n>0){let e=Math.min(n,a.byteLength);i.enqueue(a.slice(0,e)),n-=e,a=a.subarray(e);continue}let e=Xt(a,58);if(e===-1||e+1===a.byteLength){t=a.slice();return}let o=String.fromCharCode(a[e+1]);if(Wt.has(o)){let o=Xt(a,44,e+2);if(o===-1){t=a.slice();return}let s=Zt(a,e+2,o);if(s!=null){i.enqueue(a.slice(0,o+1)),n=s,a=a.subarray(o+1);continue}r=!0,i.enqueue(a);return}let s=a[e+1];if(!Gt.has(o)&&!Qt(s)){r=!0,i.enqueue(a);return}let c=Xt(a,10);if(c===-1){t=a.slice();return}i.enqueue(Jt(a.slice(0,c+1))),a=a.subarray(c+1)}},flush(e){t.byteLength>0&&e.enqueue(n>0?t:Jt(t))}}))}function en(e){return(t,n)=>$t(e(t,n))}function tn(e){return async(t,n)=>({prelude:$t((await e(t,n)).prelude)})}var G=e(n(),1),nn=Symbol.for(`vinext.serverInsertedHTMLContext`),rn=Symbol.for(`vinext.navigation.fallback`);function an(e){return typeof G.createContext==`function`?G.createContext(e):null}function on(){let e=globalThis;return e[nn]||(e[nn]=an(null)),e[nn]??null}on();var sn=Symbol.for(`vinext.navigation.globalAccessors`);function cn(){let e=globalThis;return e[rn]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function ln(){return globalThis[sn]}var un=()=>ln()?.getServerContext()??cn().serverContext,dn=e=>{let t=ln();t?t.setServerContext(e):cn().serverContext=e};function fn(e){un=e.getServerContext,dn=e.setServerContext,e.getInsertedHTMLCallbacks,e.clearInsertedHTMLCallbacks}function pn(){return un()}function mn(e){dn(e)}var hn=`NEXT_REDIRECT;`;function gn(e){if(!e.startsWith(hn))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}}function _n(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 vn(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function yn(e){return vn(e)||_n(e)}function bn(e){return`${e} only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component`}var xn=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function Sn(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&xn.test(e)}function Cn(e){return Sn(e)||e.startsWith(`//`)}function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Tn=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toString`,`valueOf`,`toLocaleString`,`then`,`catch`,`finally`,`status`,`value`,`error`,`displayName`,`_debugInfo`,`toJSON`,`$$typeof`,`__esModule`,`@@iterator`]);function En(e){return Tn.has(e)}function Dn(e,t){e&&e.observeParamAccess(t)}function On(e,t){Dn(e,Object.keys(t))}function kn(e,t){Dn(e,Object.keys(t).filter(e=>!En(e)))}function An(e){return e===`then`||e===`catch`||e===`finally`}function jn(e,t,n,r){if(!t||t.size===0)return e;function i(e){return typeof e==`string`&&t!==null&&t.has(e)}return new Proxy(e,{get(t,a,o){if(typeof a==`string`&&!En(a)&&Dn(n,[a]),!En(a)&&wn(e,a)){if(i(a)){let e=r();if(e)throw e}return Reflect.get(e,a)}return Reflect.get(e,a)},getOwnPropertyDescriptor(t,a){return typeof a==`string`&&!En(a)&&Dn(n,[a]),!En(a)&&wn(e,a)?i(a)?{configurable:!0,enumerable:!0,get(){let e=r();if(e)throw e}}:{configurable:!0,enumerable:!0,value:Reflect.get(e,a),writable:!0}:Reflect.getOwnPropertyDescriptor(e,a)},has(t,r){return typeof r==`string`&&!En(r)&&Dn(n,[r]),Reflect.has(e,r)||!En(r)&&wn(e,r)},ownKeys(){return kn(n,e),Reflect.ownKeys(e).filter(e=>!En(e))}})}function Mn(e,t){return new Proxy(e,t)}function K(e,t){let n={...e},r=ye(),i=r&&Object.keys(n).some(e=>r.fallbackParamNames.has(e))?r.fallbackParamNames:null,a=null,o=null;function s(){return!i||!r?null:a&&o===r.abortController?a:(o=r.abortController,a=E(r,"`params`"),a)}let c=jn(n,i,t,s),l=Promise.resolve(c);function u(e){return typeof e==`string`&&(i?.has(e)??!1)}return Mn(l,{get(e,r,a){if(An(r)){let o=Reflect.get(e,r,a);return typeof o==`function`?(...r)=>(i||On(t,n),Reflect.apply(o,e,r)):o}if(r===`status`&&t?.observeReactPromiseStatus===!0&&On(t,n),typeof r==`string`&&!En(r)&&Dn(t,[r]),!En(r)&&wn(n,r)){if(u(r)){let e=s();if(e)throw e}return Reflect.get(n,r)}let o=Reflect.get(e,r,a);return typeof o==`function`?o.bind(e):o},getOwnPropertyDescriptor(e,r){return typeof r==`string`&&!En(r)&&Dn(t,[r]),!En(r)&&wn(n,r)?u(r)?{configurable:!0,enumerable:!0,get(){let e=s();if(e)throw e}}:{configurable:!0,enumerable:!0,value:Reflect.get(n,r),writable:!0}:Reflect.getOwnPropertyDescriptor(e,r)},has(e,r){return typeof r==`string`&&!En(r)&&Dn(t,[r]),Reflect.has(e,r)||!En(r)&&wn(n,r)},ownKeys(){return kn(t,n),Reflect.ownKeys(n).filter(e=>!En(e))}})}var q=r(),Nn=Symbol.for(`vinext.useCacheFunction`),Pn=Symbol.for(`vinext.useCacheAcceptsSecondArgument`);async function Fn(e,t={},n,r=Promise.resolve(Ln([])),i){if(typeof e.generateViewport==`function`){let a=K(t),o=n===void 0?{params:a}:{params:a,searchParams:K(n,i)};return await e.generateViewport(o,r)}return e.viewport&&typeof e.viewport==`object`?e.viewport:null}var In={width:`device-width`,initialScale:1,themeColor:null,colorScheme:null};function Ln(e){let t={...In};for(let n of e)for(let e in n)switch(e){case`themeColor`:t.themeColor=Bn(n.themeColor);break;case`colorScheme`:t.colorScheme=n.colorScheme||null;break;case`width`:t.width=n.width;break;case`height`:t.height=n.height;break;case`initialScale`:t.initialScale=n.initialScale;break;case`minimumScale`:t.minimumScale=n.minimumScale;break;case`maximumScale`:t.maximumScale=n.maximumScale;break;case`userScalable`:t.userScalable=n.userScalable;break;case`viewportFit`:t.viewportFit=n.viewportFit;break;case`interactiveWidget`:t.interactiveWidget=n.interactiveWidget;break;default:}return t}var Rn={width:`width`,height:`height`,initialScale:`initial-scale`,minimumScale:`minimum-scale`,maximumScale:`maximum-scale`,userScalable:`user-scalable`,viewportFit:`viewport-fit`,interactiveWidget:`interactive-widget`};function zn({viewport:e}){let t=Ln([e]),n=[],r=0,i=[];for(let e of Object.keys(Rn)){let n=t[e];n!=null&&i.push(`${Rn[e]}=${e===`userScalable`?n?`yes`:`no`:n}`)}if(i.length>0&&n.push((0,q.jsx)(`meta`,{name:`viewport`,content:i.join(`, `)},r++)),t.themeColor)for(let e of t.themeColor)n.push((0,q.jsx)(`meta`,{name:`theme-color`,content:e.color,...e.media?{media:e.media}:{}},r++));return t.colorScheme&&n.push((0,q.jsx)(`meta`,{name:`color-scheme`,content:t.colorScheme},r++)),(0,q.jsx)(q.Fragment,{children:n})}function Bn(e){return e?(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?{color:e}:{color:e.color,media:e.media}):null}function Vn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof URL)}function Hn(e){return Vn(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function Un(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`)return e.absolute??e.default??void 0}function Wn(e,t){return e?e.replace(/%s/g,t):t}function Gn(e,t){if(typeof e==`string`)return Wn(t,e);if(e&&typeof e==`object`){let n=e.default===void 0?void 0:Wn(t,e.default);return e.absolute&&(n=e.absolute),n}}function Kn(e){let t={...e},n=Un(t.title);if(t.openGraph){let e={...t.openGraph};!e.title&&n&&(e.title=n),!e.description&&t.description&&(e.description=t.description),t.openGraph=e}if(t.openGraph){let e={},r=t.twitter,i=r?!!r.title:!1,a=r?!!r.description:!1,o=r?Object.prototype.hasOwnProperty.call(r,`images`)&&!!r.images:!1;i||(t.openGraph.title?e.title=t.openGraph.title:n&&(e.title=n)),a||(e.description=t.openGraph.description||t.description||void 0),!o&&t.openGraph.images!==void 0&&(e.images=t.openGraph.images),Object.keys(e).length>0&&(r?t.twitter={...r,...e}:t.twitter=e)}if(t.twitter){let e={...t.twitter};!e.title&&n&&(e.title=n),!e.description&&t.description&&(e.description=t.description),t.twitter=e}if(t.twitter){let e={...t.twitter};if(!e.card){let t=e.images;e.card=(Array.isArray(t)?t.length>0:t)?`summary_large_image`:`summary`}t.twitter=e}return t}function qn(e){if(e.length===0)return{};let t={},n;for(let r of e){let e=r.metadata,i=!!r.isPage,a=r.contributesTitle!==!1;for(let n of Object.keys(e)){if(n===`title`)continue;let r=e[n],i=t[n];n===`other`&&Hn(i)&&Hn(r)?t.other={...i,...r}:t[n]=r}a&&e.title!==void 0&&(t.title=Gn(e.title,n)),a&&!i&&e.title&&typeof e.title==`object`&&e.title.template&&(n=e.title.template)}return t}async function Jn(e,t={},n,r=Promise.resolve({}),i){if(typeof e.generateMetadata==`function`){let a=e.generateMetadata,o=K(t),s=n===void 0?{params:o}:{params:o,searchParams:K(n,i)},c=Reflect.get(a,Nn)===!0,l=Reflect.get(a,Pn);return await(!c||(typeof l==`boolean`?l:a.length>=2)?a(s,r):a(s))}return e.metadata&&typeof e.metadata==`object`?e.metadata:null}function Yn(e){if(typeof e!=`object`||!e||e instanceof URL||Array.isArray(e))return!1;let t=Reflect.get(e,`url`);return typeof t==`string`||t instanceof URL}function Xn(e){return typeof e==`object`&&!(e instanceof URL)&&!Array.isArray(e)&&!Yn(e)}function Zn(e,t){return typeof e==`string`||e instanceof URL?t(e):e}function Qn(e,t){return e?Array.isArray(e)?e.map(e=>Zn(e,t)):[Zn(e,t)]:[]}function $n(e){return typeof e==`string`?e:e.toString()}function er(){let e=process.env.__NEXT_EXPERIMENTAL_HTTPS?`https`:`http`;return new URL(`${e}://localhost:${process.env.PORT||3e3}`)}function tr(){let e=process.env.VERCEL_BRANCH_URL||process.env.VERCEL_URL;return e?new URL(`https://${e}`):null}function nr(){let e=process.env.VERCEL_PROJECT_PRODUCTION_URL;return e?new URL(`https://${e}`):null}function rr(e){let t=er(),n=tr(),r=nr();return process.env.VERCEL_ENV===`preview`&&n?n:e||r||t}function ir(e){return e.replace(/^\/+|\/+$/g,``)}function ar(e,t){if(!e||e===`/`)return t;let n=ir(e),r=ir(t);return r?`/${n}/${r}`:`/${n}`}function or(e,t){return e===`.`||e===`./`?t||`/`:e.startsWith(`./`)?`${t===`/`?``:t.replace(/\/+$/g,``)}/${e.slice(2)}`:e}function sr(e){return e.pathname===`/`&&e.search===``&&e.hash===``?e.origin:e.href}var cr=/^(?:\/((?!\.well-known(?:\/.*)?)((?:[^/]+\/)*)([^/]+\.\w+)))(\/?|$)/i;function lr(e,t,n){let r=$n(e);if(!t)return r;try{let e=Cn(r),i=e?new URL(r,t):new URL(ar(t.pathname,r),t);if(e&&i.origin!==t.origin)return r;n===!0&&i.search===``&&i.pathname!==`/`&&!i.pathname.endsWith(`/`)&&!cr.test(i.pathname)&&(i.pathname+=`/`);let a=sr(i);return n===!0&&a===t.origin?`${t.origin}/`:a}catch{return r}}function ur(e,t,n,r){return e instanceof URL?lr(e,t,r):lr(or(e,n),t,r)}function dr(e,t,n,r){if(e instanceof URL){let i=new URL(n,e);return e.searchParams.forEach((e,t)=>i.searchParams.set(t,e)),lr(i,t,r)}return ur(e,t,n,r)}function fr(e){return typeof e==`object`&&!(e instanceof URL)}function pr(e){return Reflect.get(e,`metadataRoute`)===!0}function mr(e,t){let n=fr(e)?e.url:e,r=fr(e)&&pr(e);return typeof n==`string`&&!Cn(n)&&(!t||r)?lr(n,rr(t)):lr(n,t)}function hr(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function gr(e){return hr(e).replaceAll(`"`,`&quot;`)}function _r(e){return e==null||typeof e==`boolean`?``:Array.isArray(e)?e.map(_r).join(``):typeof e==`string`||typeof e==`number`||typeof e==`bigint`?hr(String(e)):``}function vr(e,t){let n=[];for(let r of t){let t=Reflect.get(e,r);if(t==null||typeof t==`boolean`)continue;let i=r===`hrefLang`?`hreflang`:r;n.push(`${i}="${gr(String(t))}"`)}return n.length>0?` ${n.join(` `)}`:``}function yr(e){if(e==null||typeof e==`boolean`)return``;if(Array.isArray(e))return e.map(yr).join(``);if(!G.isValidElement(e))return _r(e);let t=typeof e.props==`object`&&e.props!==null?e.props:{};if(e.type===G.Fragment)return yr(Reflect.get(t,`children`));if(typeof e.type!=`string`)return``;switch(e.type){case`title`:return`<title>${_r(Reflect.get(t,`children`))}</title>`;case`meta`:return`<meta${vr(t,[`name`,`property`,`content`])}>`;case`link`:return`<link${vr(t,[`data-vinext-streamed-icon`,`rel`,`href`,`hrefLang`,`type`,`sizes`,`color`,`media`,`fetchPriority`])}>`;default:return``}}function br(e,t=`/`,n){return yr(xr({metadata:e,pathname:t,trailingSlash:n?.trailingSlash,streamedIconKey:n?.streamedIconKey}))}function xr({metadata:e,pathname:t=`/`,trailingSlash:n,streamedIconKey:r}){let i=[],a=0,o=e.metadataBase;function s(e){if(e)return lr(e,o)}let c=typeof e.title==`string`?e.title:typeof e.title==`object`?e.title.absolute||e.title.default:void 0;if(c&&i.push((0,q.jsx)(`title`,{children:c},a++)),e.description&&i.push((0,q.jsx)(`meta`,{name:`description`,content:e.description},a++)),e.generator&&i.push((0,q.jsx)(`meta`,{name:`generator`,content:e.generator},a++)),e.applicationName&&i.push((0,q.jsx)(`meta`,{name:`application-name`,content:e.applicationName},a++)),e.referrer&&i.push((0,q.jsx)(`meta`,{name:`referrer`,content:e.referrer},a++)),e.keywords){let t=Array.isArray(e.keywords)?e.keywords.join(`,`):e.keywords;i.push((0,q.jsx)(`meta`,{name:`keywords`,content:t},a++))}if(e.authors){let t=Array.isArray(e.authors)?e.authors:[e.authors];for(let e of t)e.name&&i.push((0,q.jsx)(`meta`,{name:`author`,content:e.name},a++)),e.url&&i.push((0,q.jsx)(`link`,{rel:`author`,href:e.url},a++))}if(e.creator&&i.push((0,q.jsx)(`meta`,{name:`creator`,content:e.creator},a++)),e.publisher&&i.push((0,q.jsx)(`meta`,{name:`publisher`,content:e.publisher},a++)),e.formatDetection){let t=[];e.formatDetection.telephone===!1&&t.push(`telephone=no`),e.formatDetection.address===!1&&t.push(`address=no`),e.formatDetection.email===!1&&t.push(`email=no`),t.length>0&&i.push((0,q.jsx)(`meta`,{name:`format-detection`,content:t.join(`, `)},a++))}if(e.category&&i.push((0,q.jsx)(`meta`,{name:`category`,content:e.category},a++)),e.robots)if(typeof e.robots==`string`)i.push((0,q.jsx)(`meta`,{name:`robots`,content:e.robots},a++));else{let{googleBot:t,...n}=e.robots,r=[];for(let[e,t]of Object.entries(n))t===!0?r.push(e):t===!1?r.push(`no${e}`):(typeof t==`string`||typeof t==`number`)&&r.push(`${e}:${t}`);if(r.length>0&&i.push((0,q.jsx)(`meta`,{name:`robots`,content:r.join(`, `)},a++)),t)if(typeof t==`string`)i.push((0,q.jsx)(`meta`,{name:`googlebot`,content:t},a++));else{let e=[];for(let[n,r]of Object.entries(t))r===!0?e.push(n):r===!1?e.push(`no${n}`):(typeof r==`string`||typeof r==`number`)&&e.push(`${n}:${r}`);e.length>0&&i.push((0,q.jsx)(`meta`,{name:`googlebot`,content:e.join(`, `)},a++))}}if(e.openGraph){let r=e.openGraph;if(r.title&&i.push((0,q.jsx)(`meta`,{property:`og:title`,content:r.title},a++)),r.description&&i.push((0,q.jsx)(`meta`,{property:`og:description`,content:r.description},a++)),r.url&&i.push((0,q.jsx)(`meta`,{property:`og:url`,content:ur(r.url,o,t,n)},a++)),r.siteName&&i.push((0,q.jsx)(`meta`,{property:`og:site_name`,content:r.siteName},a++)),r.type&&i.push((0,q.jsx)(`meta`,{property:`og:type`,content:r.type},a++)),r.locale&&i.push((0,q.jsx)(`meta`,{property:`og:locale`,content:r.locale},a++)),r.publishedTime&&i.push((0,q.jsx)(`meta`,{property:`article:published_time`,content:r.publishedTime},a++)),r.modifiedTime&&i.push((0,q.jsx)(`meta`,{property:`article:modified_time`,content:r.modifiedTime},a++)),r.authors)for(let e of r.authors)i.push((0,q.jsx)(`meta`,{property:`article:author`,content:e},a++));if(r.images){let e=typeof r.images==`string`||r.images instanceof URL?[{url:r.images}]:Array.isArray(r.images)?r.images:[r.images];for(let t of e)i.push((0,q.jsx)(`meta`,{property:`og:image`,content:mr(t,o)},a++)),typeof t!=`string`&&!(t instanceof URL)&&(t.width&&i.push((0,q.jsx)(`meta`,{property:`og:image:width`,content:String(t.width)},a++)),t.height&&i.push((0,q.jsx)(`meta`,{property:`og:image:height`,content:String(t.height)},a++)),t.type&&i.push((0,q.jsx)(`meta`,{property:`og:image:type`,content:t.type},a++)),t.alt&&i.push((0,q.jsx)(`meta`,{property:`og:image:alt`,content:t.alt},a++)))}if(r.videos)for(let e of r.videos)i.push((0,q.jsx)(`meta`,{property:`og:video`,content:s(e.url)},a++)),e.width&&i.push((0,q.jsx)(`meta`,{property:`og:video:width`,content:String(e.width)},a++)),e.height&&i.push((0,q.jsx)(`meta`,{property:`og:video:height`,content:String(e.height)},a++));if(r.audio)for(let e of r.audio)i.push((0,q.jsx)(`meta`,{property:`og:audio`,content:s(e.url)},a++))}if(e.twitter){let t=e.twitter;if(t.card&&i.push((0,q.jsx)(`meta`,{name:`twitter:card`,content:t.card},a++)),t.site&&i.push((0,q.jsx)(`meta`,{name:`twitter:site`,content:t.site},a++)),t.siteId&&i.push((0,q.jsx)(`meta`,{name:`twitter:site:id`,content:t.siteId},a++)),t.title&&i.push((0,q.jsx)(`meta`,{name:`twitter:title`,content:t.title},a++)),t.description&&i.push((0,q.jsx)(`meta`,{name:`twitter:description`,content:t.description},a++)),t.creator&&i.push((0,q.jsx)(`meta`,{name:`twitter:creator`,content:t.creator},a++)),t.creatorId&&i.push((0,q.jsx)(`meta`,{name:`twitter:creator:id`,content:t.creatorId},a++)),t.images){let e=typeof t.images==`string`||t.images instanceof URL?[t.images]:Array.isArray(t.images)?t.images:[t.images];for(let t of e)i.push((0,q.jsx)(`meta`,{name:`twitter:image`,content:mr(t,o)},a++)),typeof t!=`string`&&!(t instanceof URL)&&(t.type&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:type`,content:t.type},a++)),t.width&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:width`,content:String(t.width)},a++)),t.height&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:height`,content:String(t.height)},a++)),t.alt&&i.push((0,q.jsx)(`meta`,{name:`twitter:image:alt`,content:t.alt},a++)))}if(t.card===`player`&&t.players){let e=Array.isArray(t.players)?t.players:[t.players];for(let t of e){let e=t.playerUrl.toString(),n=t.streamUrl.toString();i.push((0,q.jsx)(`meta`,{name:`twitter:player`,content:s(e)},a++)),i.push((0,q.jsx)(`meta`,{name:`twitter:player:stream`,content:s(n)},a++)),i.push((0,q.jsx)(`meta`,{name:`twitter:player:width`,content:String(t.width)},a++)),i.push((0,q.jsx)(`meta`,{name:`twitter:player:height`,content:String(t.height)},a++))}}if(t.card===`app`&&t.app){let{app:e}=t;for(let t of[`iphone`,`ipad`,`googleplay`])if(e.name&&i.push((0,q.jsx)(`meta`,{name:`twitter:app:name:${t}`,content:e.name},a++)),e.id[t]&&i.push((0,q.jsx)(`meta`,{name:`twitter:app:id:${t}`,content:String(e.id[t])},a++)),e.url?.[t]){let n=e.url[t].toString();i.push((0,q.jsx)(`meta`,{name:`twitter:app:url:${t}`,content:s(n)},a++))}}}if(e.icons){let t=Xn(e.icons)?Qn(e.icons.icon,e=>({url:e})):Qn(e.icons,e=>({url:e})),n=0,o=(e,t)=>{for(let{url:o,rel:s,type:c,sizes:l,color:u,media:d,fetchPriority:f}of e)i.push((0,q.jsx)(`link`,{"data-vinext-streamed-icon":r?`${r}:${n++}`:void 0,rel:s||t,href:$n(o),type:c,sizes:l,color:u,media:d,fetchPriority:f},a++))};Xn(e.icons)&&e.icons.shortcut&&o(Qn(e.icons.shortcut,e=>({url:e})),`shortcut icon`),t.length>0&&o(t,`icon`),Xn(e.icons)&&e.icons.apple&&o(Qn(e.icons.apple,e=>({url:e})),`apple-touch-icon`),Xn(e.icons)&&e.icons.other&&o(Qn(e.icons.other,e=>({url:e})),`icon`)}if(e.manifest&&i.push((0,q.jsx)(`link`,{rel:`manifest`,href:$n(e.manifest)},a++)),e.alternates){let r=e.alternates;if(r.canonical&&i.push((0,q.jsx)(`link`,{rel:`canonical`,href:ur(r.canonical,o,t,n)},a++)),r.languages)for(let[e,s]of Object.entries(r.languages))i.push((0,q.jsx)(`link`,{rel:`alternate`,hrefLang:e,href:dr(s,o,t,n)},a++));if(r.media)for(let[e,s]of Object.entries(r.media))i.push((0,q.jsx)(`link`,{rel:`alternate`,media:e,href:dr(s,o,t,n)},a++));if(r.types)for(let[e,s]of Object.entries(r.types))i.push((0,q.jsx)(`link`,{rel:`alternate`,type:e,href:dr(s,o,t,n)},a++))}if(e.verification){let t=e.verification;if(t.google&&i.push((0,q.jsx)(`meta`,{name:`google-site-verification`,content:t.google},a++)),t.yahoo&&i.push((0,q.jsx)(`meta`,{name:`y_key`,content:t.yahoo},a++)),t.yandex&&i.push((0,q.jsx)(`meta`,{name:`yandex-verification`,content:t.yandex},a++)),t.other)for(let[e,n]of Object.entries(t.other)){let t=Array.isArray(n)?n:[n];for(let n of t)i.push((0,q.jsx)(`meta`,{name:e,content:n},a++))}}if(e.appleWebApp){let t=e.appleWebApp;if(t.capable!==!1&&i.push((0,q.jsx)(`meta`,{name:`mobile-web-app-capable`,content:`yes`},a++)),t.title&&i.push((0,q.jsx)(`meta`,{name:`apple-mobile-web-app-title`,content:t.title},a++)),t.statusBarStyle&&i.push((0,q.jsx)(`meta`,{name:`apple-mobile-web-app-status-bar-style`,content:t.statusBarStyle},a++)),t.startupImage){let e=typeof t.startupImage==`string`?[{url:t.startupImage}]:t.startupImage;for(let t of e)i.push((0,q.jsx)(`link`,{rel:`apple-touch-startup-image`,href:s(t.url),...t.media?{media:t.media}:{}},a++))}}if(e.itunes){let{appId:t,appArgument:n}=e.itunes,r=`app-id=${t}`;n&&(r+=`, app-argument=${n}`),i.push((0,q.jsx)(`meta`,{name:`apple-itunes-app`,content:r},a++))}if(e.appLinks){let t=e.appLinks;for(let e of[`ios`,`iphone`,`ipad`,`android`,`windows_phone`,`windows`,`windows_universal`,`web`]){let n=t[e];if(!n)continue;let r=Array.isArray(n)?n:[n];for(let t of r)for(let[n,r]of Object.entries(t)){if(r==null)continue;let t=String(r),o=n===`url`?s(t):t;i.push((0,q.jsx)(`meta`,{property:`al:${e}:${n}`,content:o},a++))}}}if(e.other)for(let[t,n]of Object.entries(e.other)){let e=Array.isArray(n)?n:[n];for(let n of e)i.push((0,q.jsx)(`meta`,{name:t,content:n},a++))}return(0,q.jsx)(q.Fragment,{children:i})}function Sr(e){return yt(e)}function Cr(e,t){return(e??t).split(`:`,1)[0].toLowerCase()}function wr(e){let t=new URL(e.url),n,r;return{headers:e.headers,get cookies(){return n??=Sr(e.headers.get(`cookie`))},get query(){return r??=t.searchParams},host:Cr(e.headers.get(`host`),t.hostname)}}function Tr(e){return new Response(`Bad Request`,{status:400,headers:e?.headers})}function Er(e){return new Response(`This page could not be found`,{status:404,headers:e?.headers})}function Dr(e,t){let n=new Headers(t?.headers);return n.set(`Allow`,e),new Response(`Method Not Allowed`,{status:405,headers:n})}function Or(e){if(!e.startsWith(`/`))return!1;let t=e.slice(1);if(t.startsWith(`/`)||t.startsWith(`\\`))return!0;if(t.length>=3&&t[0]===`%`){let e=t.slice(0,3).toLowerCase();if(e===`%5c`||e===`%2f`)return!0}return!1}new URL(`http://vinext.invalid/`);function kr(e){return Or(e)?Er():null}var Ar=/\.[^/]+\/?$/;function jr(e){return e===`/.well-known`||e.startsWith(`/.well-known/`)}function Mr(e,t){let n=new Headers({[it]:encodeURIComponent(e)});if(t.headers)for(let[e,r]of t.headers)n.append(e,r);return new Response(null,{status:t.status??200,headers:n})}function Nr(e){return e.request.method!==`GET`&&e.request.method!==`HEAD`||e.pathname.endsWith(`.rsc`)||!e.publicFiles.has(e.cleanPathname)?null:Mr(e.cleanPathname,e.middlewareContext)}function Pr(e,t){if(e===`/`||e===`/api`||e.startsWith(`/api/`))return null;let n=e.endsWith(`/`);if(t){if(jr(e))return null;if(Ar.test(e)){let t=Ot(e);return t===e?null:t}return!n&&!e.endsWith(`.rsc`)?`${e}/`:null}return n?Ot(e):null}function Fr(e,t,n,r){if(e===`/`||e===`/api`||e.startsWith(`/api/`))return null;if(Or(e))return Er();let i=Pr(e,n);if(i===null)return null;let a=i.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@/%]/gu,encodeURIComponent);return new Response(null,{status:308,headers:{Location:t+a+r}})}function Ir(e){let t=[];for(let n of e.keys())n.startsWith(`x-middleware-`)&&n!==`x-middleware-cache`&&t.push(n);for(let n of t)e.delete(n)}var Lr=new Set([...lt,...ut]);function Rr(e){let t=new Headers;for(let[n,r]of e)Lr.has(n.toLowerCase())||t.append(n,r);return t}function zr(e){let t=Reflect.get(e,`cf`);return t===void 0?void 0:t}function Br(e,t){let n;try{n=new Request(e,{headers:t})}catch{let r={method:e.method,headers:t,body:e.body??void 0,redirect:e.redirect,signal:e.signal,integrity:e.integrity,cache:e.cache,mode:e.mode,credentials:e.credentials,referrer:e.referrer,referrerPolicy:e.referrerPolicy};e.body&&(r.duplex=`half`),n=new Request(e.url,r)}let r=zr(e);return r!==void 0&&Object.defineProperty(n,"cf",{value:r,enumerable:!0,configurable:!0}),n}function Vr(e,t){let n;try{n=new Request(t,e)}catch{let r={method:e.method,headers:e.headers,body:e.body??void 0,redirect:e.redirect,signal:e.signal,integrity:e.integrity,cache:e.cache,mode:e.mode,credentials:e.credentials,referrer:e.referrer,referrerPolicy:e.referrerPolicy};e.body&&(r.duplex=`half`),n=new Request(t,r)}let r=zr(e);return r!==void 0&&Object.defineProperty(n,"cf",{value:r,enumerable:!0,configurable:!0}),n}var Hr=/([/#?\\]|%(2f|23|3f|5c))/gi;function Ur(e){return e.replace(Hr,e=>encodeURIComponent(e))}function Wr(e){try{return Ur(decodeURIComponent(e))}catch{return e}}function Gr(e){return Ur(decodeURIComponent(e))}function Kr(e){return e.split(`/`).map(e=>Wr(e)).join(`/`)}function qr(e){return Kr(e).split(`/`).filter(Boolean)}function Jr(e){return e.split(`/`).map(e=>Gr(e)).join(`/`)}function Yr(e){try{return decodeURIComponent(e)}catch{return e}}function Xr(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function Zr(e){for(let t of Object.keys(e)){let n=e[t];Array.isArray(n)?e[t]=n.map(Yr):e[t]=Yr(n)}}function Qr(e){return e.split(`/`).filter(Boolean)}function $r(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function ei(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function ti(e){if(!e.startsWith(`/`))throw Error(`[vinext] App Router render pathname must be absolute: ${e}`);return Te(Kr(e))}function ni(e){return e===null||!L(e)?null:ti(e)}function ri(e){let t=e.interceptionContext??null,n=ti(e.targetMatchedPathname??e.displayPathname),r=ti(e.matchedRoutePathname??e.targetMatchedPathname??e.displayPathname),i=ni(e.interceptSourceMatchedUrl??null),a=e.interceptSlotId??null,o=i??r,s=W.encodeRouteId(o,null),c=W.encodePageId(o,null),l=i===null||a===null?null:{sourceMatchedUrl:i,sourceRouteId:W.encodeRouteId(i,null),slotId:a,targetMatchedUrl:n,targetRouteId:W.encodeRouteId(n,null)};return{displayPathname:e.displayPathname,interception:l,interceptionContext:t,matchedRoutePathname:o,pageId:c,routeId:s,targetMatchedPathname:n}}function ii(){return`5e5b2354d5f1d9bbb2dd36715b2dda3d50758ecc6ce22d785652adf82e65ec50`}function ai(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e.charCodeAt(r)^t.charCodeAt(r);return n===0}function oi(e){return typeof e!=`string`||e.length===0?!1:ai(e,ii())}function si(e){return typeof e==`string`&&oi(e)}async function ci(e){let t=await ce().get(e);if(!t)return null;let n=t.cacheState===`expired`;return{value:t,isStale:n||t.cacheState===`stale`,...n?{isExpired:!0}:{}}}async function li(e,t,n,r,i){await ce().set(e,t,{cacheControl:i===void 0?{revalidate:n}:{revalidate:n,expire:i},revalidate:n,tags:r??[]})}async function ui(e,t,n){let r=n.revalidateSeconds,i=n.tags;process.env.NEXT_PRIVATE_DEBUG_CACHE&&console.debug(`[vinext] ISR: seed`,e);let a={};r!==void 0&&(a.revalidate=r,a.cacheControl=n.expireSeconds===void 0?{revalidate:r}:{revalidate:r,expire:n.expireSeconds}),i&&i.length>0&&(a.tags=i),await ce().set(e,t,a),r!==void 0&&Oi(e,r)}var di=Symbol.for(`vinext.isrCache.pendingRegenerations`),fi=globalThis,pi=fi[di]??=new Map,mi=Symbol.for(`vinext.isrCache.pendingOnDemandRegenerations`);fi[mi]??=new Map;function hi(e,t,n){if(!ce().ownsBackgroundRevalidation||pi.has(e))return;let r=t().catch(t=>{console.error(`[vinext] ISR background regeneration failed for ${e}:`,t),n&&At(t instanceof Error?t:Error(String(t)),{path:e,method:`GET`,headers:{}},{routerKind:n.routerKind,routePath:n.routePath,routeType:n.routeType,revalidateReason:`stale`})}).finally(()=>{pi.delete(e)});pi.set(e,r),bt()?.waitUntil(r)}function gi(e,t,n,r,i){let a={kind:`APP_PAGE`,html:e,rscData:t,headers:i,postponed:void 0,status:n};return r&&(a.renderObservation=r),a}function _i(e){return e===`/`?`/`:e.replace(/\/$/,``)}function vi(e,t,n){let r=_i(t),i=n?`:${n}`:``,a=`${e}:${r}${i}`;return a.length<=200?a:`${e}:__hash:${Ae(r)}${i}`}function yi(e,t,n){return vi(n?`${e}:${n}`:e,t)}function bi(e,t,n=`7c810a6d-59fd-41d6-b465-cf61efaea04f`){return vi(n?`app:${n}`:`app`,e,t)}function xi(e){return bi(e,`html`)}function Si(e){return ni(e)}function Ci(e,t,n=C,r){let i=N(t),a=r==null?null:Si(r),o=[a?`source:${Ae(a)}`:null,i?`slots:${Ae(i)}`:null,te(n)].filter(e=>e!==null).join(`:`);return bi(e,o?`rsc:${o}`:`rsc`)}function wi(e){return bi(e,`route`)}var Ti=1e4,Ei=Symbol.for(`vinext.isrCache.revalidateDurations`),Di=fi[Ei]??=new Map;function Oi(e,t){for(Di.delete(e),Di.set(e,t);Di.size>Ti;){let e=Di.keys().next().value;if(e!==void 0)Di.delete(e);else break}}function ki(e,t){let n=e.indexOf(`?`);if(n===-1)return t;let r=e.slice(n+1).split(`#`)[0];if(!r)return t;let i=t.indexOf(`#`),a=i===-1?t:t.slice(0,i),o=i===-1?``:t.slice(i),s=a.indexOf(`?`),c=s===-1?a:a.slice(0,s),l=s===-1?``:a.slice(s+1),u=new URLSearchParams(r),d=new URLSearchParams(l),f=new Set;for(let e of d.keys())f.add(e);for(let e of f)u.delete(e);for(let[e,t]of d)u.append(e,t);let p=u.toString();return`${c}${p?`?${p}`:``}${o}`}var Ai=/[&><\u2028\u2029]/;function ji(e){let t=e.split(`;`).map(e=>e.trim()),n=t.find(e=>e.startsWith(`script-src`))??t.find(e=>e.startsWith(`default-src`));if(!n)return;let r=n.split(` `).slice(1).map(e=>e.trim()).find(e=>e.startsWith(`'nonce-`)&&e.length>8&&e.endsWith(`'`))?.slice(7,-1);if(r){if(Ai.test(r))throw Error(`Nonce value from Content-Security-Policy contained HTML escape characters.
5
5
  Learn more: https://nextjs.org/docs/messages/nonce-contained-invalid-characters`);return r}}function Mi(e){let t=e?.get(`content-security-policy`)??e?.get(`content-security-policy-report-only`);if(t)return ji(t)}function Ni(...e){for(let t of e){let e=Mi(t);if(e)return e}}function Pi(e){if(e)return e.split(`,`,1)[0]?.trim().split(`:`,1)[0]?.toLowerCase()||void 0}function Fi(e,t,n){if(!e?.length)return;let r=Pi(t),i=n?.toLowerCase();for(let t of e)if(r===Pi(t.domain)||i===t.defaultLocale.toLowerCase()||t.locales?.some(e=>e.toLowerCase()===i))return t}function Ii(e,t,n={}){if(!t||e.startsWith(`/_next/`)||e.startsWith(`/__vinext/`))return e;let r=e.split(`/`,3);if(r[1]&&t.locales.includes(r[1]))return e;let i=Fi(t.domains,n.hostname??void 0)?.defaultLocale??t.defaultLocale;return e===`/`?`/${i}`:`/${i}${e}`}var Li=`/_next/data/`,Ri=`.json`;function zi(e){return e.startsWith(Li)&&e.endsWith(Ri)}function Bi(e,t){if(!t||!zi(e))return null;let n=`${Li}${t}/`;if(!e.startsWith(n))return null;let r=e.slice(n.length,-5);return r.length===0?null:r===`index`?{pagePathname:`/`}:r.endsWith(`/index`)?{pagePathname:`/${r.slice(0,-6)}`}:r.startsWith(`index/`)?{pagePathname:`/${r.slice(6)}`}:{pagePathname:`/${r}`}}function Vi(e,t=!1){return!t||e===`/`||e.endsWith(`/`)?e:`${e}/`}function Hi(){return new Response(`{}`,{status:404,headers:{"Content-Type":`application/json`}})}function Ui(e,t,n=``,r=!1){let i=new URL(e.url),a=!!n&&Dt(i.pathname,n),o=n?Et(i.pathname,n):i.pathname;if(!zi(o))return{isDataReq:!1,request:e,normalizedPathname:null,search:``,notFoundResponse:null};let s=t?Bi(o,t):null;if(!s)return{isDataReq:!1,request:e,normalizedPathname:null,search:``,notFoundResponse:Hi()};let c=Vi(s.pagePathname,r),l=new URL(i);return l.pathname=a?kt(c,n):c,{isDataReq:!0,request:new Request(l,e),normalizedPathname:c,search:i.search,notFoundResponse:null}}function Wi(e){return e.length>1&&e.endsWith(`/`)&&(e=e.slice(0,-1)),e===`/_next/image`||e===`/_vinext/image`}var Gi=[640,750,828,1080,1200,1920,2048,3840],Ki=[16,32,48,64,96,128,256,384],qi=8,Ji=70;function Yi(e,t=[...Gi,...Ki],n,r={isDev:!0}){let i=Xi(e,t,n,r);if(!i||i.imageUrl.startsWith(`/@`)||i.imageUrl.startsWith(`/__vite`)||i.imageUrl.startsWith(`/node_modules`))return null;let a=new URL(i.imageUrl,e.origin);return a.origin===e.origin?a.pathname+a.search:null}function Xi(e,t=[...Gi,...Ki],n,r={}){let i=new Set([`url`,`w`,`q`,`dpl`]);for(let t of e.searchParams.keys())if(!i.has(t)||e.searchParams.getAll(t).length!==1)return null;let a=e.searchParams.get(`url`);if(!a||a.length>3072)return null;let o=e.searchParams.get(`w`),s=e.searchParams.get(`q`);if(!o||!/^[0-9]+$/.test(o)||!s||!/^[0-9]+$/.test(s))return null;let c=Number.parseInt(o,10),l=Number.parseInt(s,10);if(String(c)!==o||String(l)!==s)return null;let u=r.isDev&&c<=qi,d=r.isDev&&l===Ji;if(c<=0||!t.includes(c)&&!u||l<1||l>100||n&&!n.includes(l)&&!d)return null;let f=a.replaceAll(`\\`,`/`);if(!f.startsWith(`/`)||f.startsWith(`//`))return null;try{let e=`https://localhost`;if(new URL(f,e).origin!==e)return null}catch{return null}return{imageUrl:f,width:c,quality:l}}function Zi(e,t){if(!t)return;let n=Math.round(t.handlerStart),r=t.compileEnd===void 0?-1:Math.round(t.compileEnd-t.handlerStart),i=t.responseKind===`html`&&t.renderEnd!==void 0&&t.compileEnd!==void 0?Math.round(t.renderEnd-t.compileEnd):-1;e.set(gt,`${n},${r},${i}`)}function Qi(e,t){t!==void 0&&Number.isInteger(t)&&t>=0&&e.set(St,String(t))}function $i(e,t){if(!t)return;let n={};typeof t.revalidate==`number`&&Number.isFinite(t.revalidate)&&(n.revalidate=t.revalidate),typeof t.expire==`number`&&Number.isFinite(t.expire)&&(n.expire=t.expire),!(n.revalidate===void 0&&n.expire===void 0)&&e.set(Ze,JSON.stringify(n))}function ea(e,t){t&&t.length>0&&e.set(ft,t.join(`,`))}function ta(e){return e.isDraftMode||e.isForceDynamic||e.dynamicUsedDuringBuild||e.revalidateSeconds===0?{cacheControl:De}:(e.isForceStatic||e.isDynamicError)&&!e.revalidateSeconds||e.revalidateSeconds===1/0?{cacheControl:V,cacheState:`STATIC`}:e.revalidateSeconds?{cacheControl:ke(e.revalidateSeconds,e.expireSeconds),cacheState:e.isProduction?`MISS`:void 0}:{}}function na(e){return e.isDraftMode||e.isForceDynamic||e.hasScriptNonce||e.isProgressiveActionRender||e.revalidateSeconds===0?{cacheControl:De,shouldWriteToCache:!1}:(e.isForceStatic||e.isDynamicError)&&e.revalidateSeconds===null?{cacheControl:V,cacheState:e.isProduction?`MISS`:`STATIC`,shouldWriteToCache:e.isProduction}:e.dynamicUsedDuringRender?{cacheControl:De,shouldWriteToCache:!1}:e.revalidateSeconds!==null&&e.revalidateSeconds>0&&e.revalidateSeconds!==1/0?{cacheControl:ke(e.revalidateSeconds,e.expireSeconds),cacheState:e.isProduction?`MISS`:void 0,shouldWriteToCache:e.isProduction}:e.revalidateSeconds===1/0?{cacheControl:V,cacheState:e.isProduction?`MISS`:`STATIC`,shouldWriteToCache:e.isProduction}:{shouldWriteToCache:!1}}function ra(e,t){t&&e.set(`x-edge-runtime`,`1`)}function ia(e,t){let n=new Headers({"Content-Type":le,Vary:de});return ra(n,t.isEdgeRuntime),t.params&&Object.keys(t.params).length>0&&n.set(ot,encodeURIComponent(JSON.stringify(t.params))),t.mountedSlotsHeader&&n.set(wt,t.mountedSlotsHeader),Qi(n,t.dynamicStaleTimeSeconds),t.policy.cacheControl&&n.set(`Cache-Control`,t.policy.cacheControl),t.policy.cacheState&&je(n,t.policy.cacheState),R(n,t.middlewareContext.headers),t.renderedPathAndSearch&&n.set(Ct,encodeURIComponent(t.renderedPathAndSearch)),Ee(n),Se(n),$i(n,t.requestCacheLife),ea(n,t.cacheTags),Zi(n,t.timing),new Response(e,{status:t.middlewareContext.status??200,headers:n})}function aa(e,t){let n=new Headers({"Content-Type":`text/html; charset=utf-8`,Vary:de});return ra(n,t.isEdgeRuntime),t.policy.cacheControl&&n.set(`Cache-Control`,t.policy.cacheControl),t.policy.cacheState&&je(n,t.policy.cacheState),t.draftCookie&&n.append(`Set-Cookie`,t.draftCookie),t.linkHeader&&n.set(`Link`,t.linkHeader),R(n,t.middlewareContext.headers),$i(n,t.requestCacheLife),ea(n,t.cacheTags),Zi(n,t.timing),new Response(e,{status:t.middlewareContext.status??200,headers:n})}function oa(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function sa(e){return gn(e)}function ca(e){return e===`NEXT_NOT_FOUND`?{status:404}:e.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)?{status:parseInt(e.split(`;`)[1],10)}:null}function la(e){if(!_e(e))return!1;for(let[,t]of Object.entries(e))if(typeof t!=`string`&&!(Array.isArray(t)&&t.every(e=>typeof e==`string`)))return!1;return!0}function ua(e){if(!_e(e))return!1;let t=Object.keys(e);return t.length!==2&&t.length!==3||t.some(e=>e!==`fallbackParamNames`&&e!==`params`&&e!==`routePattern`)||`fallbackParamNames`in e&&(!Array.isArray(e.fallbackParamNames)||!e.fallbackParamNames.every(e=>typeof e==`string`))?!1:typeof e.routePattern==`string`&&e.routePattern.startsWith(`/`)&&la(e.params)}function da(e){return e===null||Object.keys(e.params).length===0?null:encodeURIComponent(JSON.stringify(e))}function fa(e){if(e===null||e===``)return null;try{let t=JSON.parse(decodeURIComponent(e));return ua(t)?t:null}catch{return null}}function pa(e,t){if(process.env.VINEXT_PRERENDER!==`1`)return null;let n=e.get(et);if(n===null||t!==void 0&&n!==t)return null;let r=e.get(at);if(r===null)return null;let i=fa(r);if(i===null)throw Error(`[vinext] Invalid internal prerender route params header.`);return i}function ma(e){return pa(e.headers)}function ha(e){try{return decodeURIComponent(e)}catch{return null}}function ga(e,t){if(Array.isArray(e)||Array.isArray(t))return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>{let r=ha(e);return e===t[n]||r!==null&&r===t[n]});let n=ha(e);return e===t||n!==null&&n===t}function _a(e,t,n){if(e===null||e.routePattern!==t||Object.keys(e.params).length!==Object.keys(n).length)return null;for(let[t,r]of Object.entries(e.params)){let e=n[t];if(e===void 0||!ga(r,e))return null}if(e.fallbackParamNames){let n=new Set(t.split(`/`).filter(e=>e.startsWith(`:`)).map(e=>e.endsWith(`+`)||e.endsWith(`*`)?e.slice(1,-1):e.slice(1))),r=e.fallbackParamNames.filter((e,t,r)=>n.has(e)&&r.indexOf(e)===t);return r.length!==e.fallbackParamNames.length||r.length===0?null:{fallbackParamNames:r,kind:`fallback-shell`,params:e.params}}return{kind:`exact`,params:e.params}}function va(e){return Te(Kr(e))}var ya=new Map;function ba(){ya.clear()}function xa(e,t){let n=ya.get(e);n||(n=new Set,ya.set(e,n)),n.add(va(t))}function Sa(e){return ya.get(e)}function Ca(){let e=globalThis.__VINEXT_PREGENERATED_CONCRETE_PATHS,t=wa(e);if(t){ba();for(let[e,n]of t)for(let t of n)xa(e,t)}}function wa(e){if(!Array.isArray(e))return;let t=[];for(let n of e){if(!Array.isArray(n)||n.length!==2)return;let[e,r]=n;if(typeof e!=`string`||!Array.isArray(r))return;let i=[];for(let e of r){if(typeof e!=`string`)return;i.push(e)}t.push([e,i])}return t}var Ta=`https://nextjs.org/docs/messages/failed-to-find-server-action`,Ea=`Server action not found.`;function Da(e){return`Failed to find Server Action${e?` "${e}"`:``}.`}function Oa(e){return`${Da(e)} This request might be from an older or newer deployment.\nRead more: ${Ta}`}function ka(){return new Response(Ea,{status:404,headers:{[dt]:`1`,"content-type":`text/plain`}})}var Aa=`_N_T_`;function ja(e,t){e.includes(t)||e.push(t)}function Ma(e){return!e||e===`.`||e.startsWith(`@`)?null:e}function Na(e,t){let n=[];for(let t of e){let e=Ma(t);e&&n.push(e)}return n.push(t),`/${n.join(`/`)}`}function Pa(e,t){if(ja(e,`${Aa}/layout`),!t.startsWith(`/`))return;let n=t.split(`/`),r=n.length-1;for(let t=1;t<=n.length;t++){let i=n.slice(0,t).join(`/`);i&&(t-1!==r&&(i=`${i}/layout`),ja(e,`${Aa}${i}`))}}function Fa(e,t,n){return Ia(e,t,[...n],`page`)}function Ia(e,t,n,r){let i=[e,`${Aa}${e.length>1&&e.endsWith(`/`)?e.slice(0,-1):e}`];e===`/`&&ja(i,`${Aa}/index`),e===`/index`&&ja(i,`${Aa}/`),Pa(i,Na(n,r));for(let e of t)ja(i,e);return i.map(_)}function La(e){let t=new URL(e.url),n=me();if(!n)return wr(e);let r=Object.fromEntries(n.cookies);return{headers:n.headers,cookies:r,query:t.searchParams,host:Cr(n.headers.get(`host`),t.hostname)}}var Ra=Symbol.for(`vinext.rootParams.fallback`),za=globalThis,Ba=We(`vinext.rootParams.als`),Va=We(`vinext.rootParams.usage.als`),Ha=za[Ra]??={rootParams:null};function Ua(){return Ue()?Ge():Ba.getStore()??Ha}function Wa(e,t){let n={};for(let r of t??[])n[r]=e[r];return n}function Ga(e){Ua().rootParams=e}function Ka(e,t,n){let r={...e,phase:`active`};return n&&(n.transitionToRender=()=>{e.kind===`server-action`&&(r.phase=`render`)}),Va.run(r,t)}function qa(e,t){return Ue()?Ye(t=>{t.rootParams=e},t):Ba.run({rootParams:e},t)}var Ja=32,Ya=64,Xa=128,Za=`__PAGE__`,Qa=`(__SLOT__)`,$a=1,eo=4096,to=2048,no=1,ro=10240,io=`x-nextjs-postponed`;function ao(e){return e.headers.get(`RSC`)===`1`&&e.headers.get(`Next-Router-Prefetch`)===`1`&&e.headers.get(`Next-Router-Segment-Prefetch`)===`/_tree`}function oo(e,t){let{name:n,param:r}=lo(e);return{name:n,param:r,prefetchSize:po(t)??(t==null&&e!==Za?$a:null),prefetchHints:0,slots:null}}function so(e){return e.slots===null&&(e.slots={}),e.slots}function co(e,t,n){so(e)[t]=n}function lo(e){if(e.startsWith(`:`)){let t=e.slice(1);return t.endsWith(`+`)?uo(t.slice(0,-1),`c`):t.endsWith(`*`)?uo(t.slice(0,-1),`oc`):uo(t,`d`)}return e.startsWith(`[[...`)&&e.endsWith(`]]`)?uo(e.slice(5,-2),`oc`):e.startsWith(`[...`)&&e.endsWith(`]`)?uo(e.slice(4,-1),`c`):e.startsWith(`[`)&&e.endsWith(`]`)?uo(e.slice(1,-1),`d`):{name:e,param:null}}function uo(e,t){return{name:e,param:{key:null,siblings:null,type:t}}}function fo(e){if(typeof e!=`object`||!e)return null;let t=e.prefetchSize;return t===`large`?eo:t===`small`?$a:typeof t==`number`&&Number.isFinite(t)&&t>=0?t:null}function po(e){let t=fo(e);return t===null?typeof e!=`object`||!e?null:typeof e.default==`function`?$a:null:t}function mo(e){let t=e.layouts??[],n=e.layoutTreePositions??[],r=new Map;for(let[e,i]of n.entries())r.set(i,t[e]);return r}function ho(e,t){let n=new Map;for(let[r,i]of(t??[]).entries())n.set(i,e?.[r]);return n}async function go(e){let t=mo(e),n=oo(``,t.get(0)),r=new Map([[0,n]]),i=n;for(let[n,a]of e.routeSegments.entries()){let e=n+1,o=oo(a,t.get(e));co(i,`children`,o),r.set(e,o),i=o}co(i,`children`,oo(Za,e.page));for(let t of Object.values(e.slots??{})){let n=t.layoutIndex===void 0||t.layoutIndex<0?e.routeSegments.length:e.layoutTreePositions?.[t.layoutIndex]??e.routeSegments.length,a=r.get(n)??i,o=oo(Qa,t.layout),s=o,c=ho(t.configLayouts,t.configLayoutTreePositions),l=t.routeSegments??[];for(let[e,t]of l.entries()){let n=e+1,r=oo(t,c.get(n));co(s,`children`,r),s=r}co(s,`children`,oo(Za,t.page??t.default)),co(a,t.name,o)}return n}function _o(e,t,n,r){let i=e.prefetchSize,a=i!==null&&i<r.maxSize?i:null,o=!1,s=0,c=1/0,l=!1;for(let t of Object.values(e.slots??{})){l=!0;let e=_o(t,o?null:a,n,r);(t.prefetchHints&Ja)===0?!o&&e<c&&(c=e):(o=!0,s=e)}l||(c=0);let u=e.prefetchHints;o&&(u|=Ya);let d=o?s:c,f=!o;return!n.inlined&&f&&e.name===Za&&d+no<r.maxBundleSize&&(u|=Xa,d+=no,n.inlined=!0),t!==null&&d+t<r.maxBundleSize&&(u|=Ja,d+=t),e.prefetchHints=u,d}function vo(e){let t=e.slots===null?null:Object.fromEntries(Object.entries(e.slots).map(([e,t])=>[e,vo(t)]));return{name:e.name,param:e.param,prefetchHints:e.prefetchHints,slots:t}}function yo(e){return e||{maxBundleSize:ro,maxSize:to}}async function bo(e,t={}){let n=await go(e);_o(n,null,{inlined:!1},yo(t.prefetchInlining));let r=new Headers({"Cache-Control":`no-store`,"Content-Type":le,[io]:`2`,Vary:de});Ee(r);let i=t.deploymentId??oe();i&&r.set(xt,i);let a={tree:vo(n),staleTime:-1};return t.buildId&&(a.buildId=t.buildId),new Response(`0:${JSON.stringify(a)}\n`,{headers:r})}async function xo(e,t,n){if(e.status>=300&&e.status<400)return e;if(!e.headers.has(`x-vinext-static-file`)){let t=e.headers.get(`Vary`);t===null?e.headers.set(`Vary`,de):t!==de&&be(e.headers,de)}return e.headers.has(`Cache-Control`)||ae(e.headers,{cacheControl:``}),e}function So(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var Co=`fnv1a64`,wo={maxEntryCount:64,maxEntryIdLength:512,maxManifestBytes:4096,maxPayloadHashLength:16,maxVariantCacheKeyLength:256},To=/^[0-9a-z]+$/,Eo=new TextEncoder;function Do(e,t={}){return{code:e,fields:t}}function Oo(e,t={}){return{kind:`rejected`,rejection:Do(e,t)}}function ko(e,t,n={}){return{code:e,entryId:t,fields:n}}function Ao(e){return Eo.encode(e).length}function jo(e,t){if(!_e(e))return{kind:`rejected`,rejection:Do(`SKIP_REPLAY_WINDOW_INVALID`,{field:`replayWindow`})};let n=e.validFromVisibleCommitVersion,r=e.validUntilVisibleCommitVersion;return!So(n)||!So(r)||n>r||t<n||t>r?{kind:`rejected`,rejection:Do(`SKIP_REPLAY_WINDOW_INVALID`,{validFromVisibleCommitVersion:So(n)?n:null,validUntilVisibleCommitVersion:So(r)?r:null,visibleCommitVersion:t})}:{kind:`parsed`,replayWindow:{validFromVisibleCommitVersion:n,validUntilVisibleCommitVersion:r}}}function Mo(e,t){return e===void 0||e>=t.validFromVisibleCommitVersion&&e<=t.validUntilVisibleCommitVersion}function No(e){let t=W.parseElementKey(e);return t===null?null:t.kind}function Po(e,t){return typeof e==`string`&&e.length>0&&e.length<=t.maxPayloadHashLength&&To.test(e)}function Fo(e,t,n){if(!_e(e))return ko(`SKIP_ENTRY_MALFORMED`,null,{index:n});let r=e.id;if(typeof r!=`string`||r.length===0)return ko(`SKIP_ENTRY_ID_INVALID`,null,{index:n});if(r.length>t.maxEntryIdLength)return ko(`SKIP_ENTRY_ID_TOO_LONG`,r,{idHash:Io(r),maxEntryIdLength:t.maxEntryIdLength});let i=No(r);if(i===null)return ko(`SKIP_UNKNOWN_ENTRY`,r,{idHash:Io(r)});let a=e.privacy;if(a===`private`)return ko(`SKIP_PRIVATE_ENTRY`,r,{privacy:a});if(a!==`public`)return ko(`SKIP_ENTRY_MALFORMED`,r,{field:`privacy`});let o=e.payloadHash;if(!Po(o,t))return ko(`SKIP_ENTRY_HASH_INVALID`,r,{maxPayloadHashLength:t.maxPayloadHashLength});let s=e.variantCacheKey;if(typeof s!=`string`||s.length===0)return ko(`SKIP_VARIANT_CACHE_KEY_INVALID`,r,{field:`variantCacheKey`});if(s.length>t.maxVariantCacheKeyLength)return ko(`SKIP_VARIANT_CACHE_KEY_TOO_LONG`,r,{maxVariantCacheKeyLength:t.maxVariantCacheKeyLength,variantCacheKeyHash:Io(s)});let c=he(e.artifactCompatibility);return c===null?ko(`SKIP_ARTIFACT_COMPATIBILITY_INVALID`,r,{field:`artifactCompatibility`}):{artifactCompatibility:c,id:r,kind:i,payloadHash:o,privacy:a,variantCacheKey:s}}function Io(e){return Ae(e)}function Lo(e,t={}){let n=e?.trim();if(!n)return{kind:`absent`};let r=t.limits??wo,i=Ao(n);if(i>r.maxManifestBytes)return Oo(`SKIP_MANIFEST_TOO_LARGE`,{manifestBytes:i,maxManifestBytes:r.maxManifestBytes});let a;try{a=JSON.parse(n)}catch{return Oo(`SKIP_MANIFEST_MALFORMED`)}if(!_e(a))return Oo(`SKIP_MANIFEST_MALFORMED`,{field:`manifest`});if(a.schemaVersion!==1)return Oo(`SKIP_MANIFEST_SCHEMA_UNSUPPORTED`,{schemaVersion:typeof a.schemaVersion==`number`||typeof a.schemaVersion==`string`?a.schemaVersion:null});if(a.hashAlgorithm!==`fnv1a64`)return Oo(`SKIP_HASH_ALGORITHM_UNSUPPORTED`,{hashAlgorithm:typeof a.hashAlgorithm==`string`?a.hashAlgorithm:null});let o=a.visibleCommitVersion;if(!So(o))return Oo(`SKIP_VISIBLE_COMMIT_VERSION_INVALID`,{visibleCommitVersion:null});let s=jo(a.replayWindow,o);if(s.kind===`rejected`)return{kind:`rejected`,rejection:s.rejection};let{replayWindow:c}=s;if(!Mo(t.currentVisibleCommitVersion,c))return Oo(`SKIP_VISIBLE_COMMIT_VERSION_MISMATCH`,{currentVisibleCommitVersion:t.currentVisibleCommitVersion??null,validFromVisibleCommitVersion:c.validFromVisibleCommitVersion,validUntilVisibleCommitVersion:c.validUntilVisibleCommitVersion,visibleCommitVersion:o});let l=a.entries;if(!Array.isArray(l))return Oo(`SKIP_MANIFEST_MALFORMED`,{field:`entries`});if(l.length>r.maxEntryCount)return Oo(`SKIP_ENTRY_COUNT_EXCEEDED`,{entryCount:l.length,maxEntryCount:r.maxEntryCount});let u=[],d=[],f=null;for(let e=0;e<l.length;e++){let t=l[e];if(_e(t)&&typeof t.id==`string`){if(f!==null&&t.id<=f)return Oo(`SKIP_ENTRY_ORDER_NON_CANONICAL`,{entryIdHash:Io(t.id),previousEntryIdHash:Io(f)});f=t.id}let n=Fo(t,r,e);`code`in n?d.push(n):u.push(n)}return{entryRejections:d,kind:`parsed`,manifest:{entries:u,hashAlgorithm:Co,replayWindow:c,schemaVersion:1,visibleCommitVersion:o},skipDisposition:{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`}}}var Ro=1024;function zo(e){if(!e)return null;let t=e.replaceAll(`\0`,``);return t.length===0||t.length>Ro||!t.startsWith(`/`)||/\s/.test(t)?null:t}function Bo(e,t=0){if(!Array.isArray(e)||e.length<2||t>64)return null;let n=e[0],r=Array.isArray(n)?n[1]:n;if(typeof r!=`string`||r===`__DEFAULT__`||/^(?:\(\.\)|\(\.\.\)|\(\.\.\.\))/.test(r))return null;let i=e[1];if(!i||typeof i!=`object`||Array.isArray(i))return null;let a=null,o=Reflect.get(i,`children`);if(o!==void 0&&(a=Bo(o,t+1)),a===null){for(let[e,n]of Object.entries(i))if(e!==`children`&&(a=Bo(n,t+1),a!==null))break}return`/${[r===``||r===`children`||r.startsWith(`__PAGE__`)||r.startsWith(`(`)&&r.endsWith(`)`)?``:r.replace(/^\/+/,``),...a===null?[]:a.split(`/`)].filter(Boolean).join(`/`)}`}function Vo(e){if(!e)return null;try{let t=JSON.parse(decodeURIComponent(e));if(Array.isArray(t)){let e=Bo(t);return e===null?null:{pathAndSearch:e}}if(!t||typeof t!=`object`)return null;let n=Reflect.get(t,`pathAndSearch`),r=Reflect.get(t,`routeId`);return typeof n!=`string`||!n.startsWith(`/`)||typeof r!=`string`||r.length===0?null:{pathAndSearch:n}}catch{return null}}function Ho(e,t,n){let r=new URL(e,n),i=t&&Dt(r.pathname,t)?Et(r.pathname,t):r.pathname,a=r.searchParams.toString();return`${i}${a?`?${a}`:``}`}function Uo(e,t,n){try{return Ho(e,t,n)}catch{return null}}function Wo(e,t,n=!1){let r=new URL(e.url),i=kr(r.pathname);if(i)return i;let a;try{a=Jr(r.pathname)}catch{return Tr()}let o=Te(a),s=r.pathname,c=!0;if(t){if(c=Dt(s,t),!c&&!o.startsWith(`/__vinext/`)&&!n)return Er();c&&(o=Et(o,t),s=Et(s,t))}let l=o.endsWith(`.rsc`)||e.headers.get(`RSC`)===`1`,d=Be(o),f=Be(s),p=zo(e.headers.get(Tt)),m=N(e.headers.get(wt)),h=l?y(e.headers.get(Qe)):C;if(l&&h===`navigation`&&e.headers.get(`Next-Router-Prefetch`)===`1`&&e.headers.get(`Next-Router-Segment-Prefetch`)===null){let n=e.headers.get(mt),i=Vo(e.headers.get(vt));if(n&&i){let e=new URL(r);e.pathname=d,e.searchParams.delete(Ne);let a=Uo(i.pathAndSearch,t,r),o=Uo(n,t,r),s=Ho(e.href,t,r);a!==null&&o!==null&&(h=a===o&&a===s?He:u)}}return{clientReuseManifest:l?Lo(e.headers.get(ct)):{kind:`absent`},hadBasePath:c,url:r,pathname:o,cleanPathname:d,requestCleanPathname:f,isRscRequest:l,interceptionContextHeader:p,mountedSlotsHeader:m,renderMode:h}}var Go=new jt;function Ko(e,t){if(process.env.VINEXT_PRERENDER===`1`){let n=new AbortController,r=typeof t?.route==`function`?t.route():t?.route;return Go.run({type:`prerender`,renderSignal:n.signal,route:r},e).finally(()=>n.abort())}return e()}function qo(e,t){if(!t.headers&&t.status==null)return e;let n=new Headers(e.headers);return R(n,t.headers),new Response(e.body,{status:t.status??e.status,statusText:e.statusText,headers:n})}function Jo(e,t){return t in e}function Yo(e){return!e||typeof e!=`object`||!Jo(e,`runtime`)?!1:e.runtime===`edge`||e.runtime===`experimental-edge`}function Xo(e){return!e||typeof e!=`object`?!1:Jo(e,`waitUntil`)&&typeof e.waitUntil==`function`}function Zo(e,t){return console.warn(Oa(t)),e.clearRequestContext(),ka()}async function Qo(e,t){return null}function $o(e,t,n){return{cookies:e.cookies,headers:e.headers,host:e.host,query:new URL(t,n).searchParams}}function es(e){return e.split(`#`,1)[0].split(`?`,1)[0]}async function ts(e,t){return e.status<300||e.status,e}function ns(e){let t=new URL(e.url);return fe(t)?(Fe(t),Vr(e.body?e.clone():e,t.toString())):e}function rs(e){let t=new URL(e.url),n=Be(t.pathname);return n===t.pathname?e:(t.pathname=n,Vr(e.body?e.clone():e,t.toString()))}async function is(e,t,n,r,i,a){let o=!!e.runMiddleware||[...e.configRedirects,...e.configRewrites.beforeFiles,...e.configRewrites.afterFiles,...e.configRewrites.fallback,...e.configHeaders].some(e=>e.basePath===!1),s=Wo(t,e.basePath,o);if(s instanceof Response)return s;let{url:c,isRscRequest:l,interceptionContextHeader:u,mountedSlotsHeader:d,renderMode:f,clientReuseManifest:p,hadBasePath:m}=s,{requestCleanPathname:h}=s,{pathname:g,cleanPathname:_}=s,v=_+c.search,y=v,b=()=>new URL(v,c).searchParams,x=_,S={basePath:e.basePath,hadBasePath:m},C=!0,w=()=>C&&e.matchRequestRoute?e.matchRequestRoute(h):e.matchRoute(_);if(g===`/__vinext/prerender/static-params`||g===`/__vinext/prerender/pages-static-paths`){let{handleAppPrerenderEndpoint:n}=await import(`./_next/static/app-prerender-endpoints-rDLH8gfm.js`),r=await n(t,{isPrerenderEnabled(){return process.env.VINEXT_PRERENDER===`1`},loadPagesRoutes:e.loadPrerenderPagesRoutes,pathname:g,rootParamNamesByPattern:e.rootParamNamesByPattern,staticParamsMap:e.staticParamsMap});if(r)return r}let E=Fr(h,m?e.basePath:``,e.trailingSlash,c.search);if(E)return E;let D=t=>Ii(t,e.i18nConfig,{hostname:c.hostname});D(h);let O=m?await ie({isRscRequest:l,request:t}):null;if(O)return O;let k=rs(t),A=ns(k),j={headers:null,requestHeaders:null,status:null},ee=!1,M=!1,N=si(t.headers.get(`x-prerender-revalidate`))?void 0:e.runMiddleware;if(N){let t=await N({cleanPathname:_,context:j,hadBasePath:m,isDataRequest:i,request:A});if(t.kind===`response`)return ts(t.response,{basePathState:S,configHeaders:e.configHeaders,pathname:D(h),requestContext:n});_=t.cleanPathname,ee=t.rewritten,(ee||_!==s.cleanPathname)&&(C=!1),M=_!==s.cleanPathname,t.search!==null&&(c.search=t.search),v=_+c.search}let te=Ni(t.headers,j.headers),P=La(A),F=m||ee,ne=async()=>m||!F?null:ie({isRscRequest:l,request:t});for(let t of e.configRewrites.beforeFiles){let n=await Qo({basePathState:S,clearRequestContext:e.clearRequestContext,request:k,requestContext:$o(P,v,c),paramsPathname:D(C?h:_),rewrites:[t]},D(_));if(n instanceof Response)return n;n&&(v=ki(v,n),_=es(v),C=!1,F=!0)}let re=await ne();if(re)return re;let I=t.headers.get(`x-rsc-action`)??t.headers.get(`next-action`),ae=t.method.toUpperCase()===`POST`,L=t.headers.get(`content-type`)||``,oe=ae&&!I&&L.startsWith(`multipart/form-data`),se=!1;if(!F&&(I||oe)){let t=null;for(let n of e.configRewrites.afterFiles){let r=await Qo({basePathState:S,clearRequestContext:e.clearRequestContext,request:k,requestContext:$o(P,v,c),paramsPathname:D(C?h:_),rewrites:[n]},D(_));if(r instanceof Response)return r;if(r&&(v=ki(v,r),_=es(v),C=!1,F=!0,t=w(),t))break}if(!t)for(let n of e.configRewrites.fallback){let r=await Qo({basePathState:S,clearRequestContext:e.clearRequestContext,request:k,requestContext:$o(P,v,c),paramsPathname:D(C?h:_),rewrites:[n]},D(_));if(r instanceof Response)return r;if(r&&(v=ki(v,r),_=es(v),C=!1,F=!0,t=w(),t))break}se=F}let ce=await ne();if(ce)return ce;if(F&&Wi(_)){let t=Yi(c,[...e.imageConfig?.deviceSizes??Gi,...e.imageConfig?.imageSizes??Ki],e.imageConfig?.qualities,{isDev:e.isDev});return t?Response.redirect(new URL(t,c.origin).href,302):new Response(`Invalid image optimization parameters`,{status:400})}if(F&&e.handleMetadataRouteRequest){let t=await e.handleMetadataRouteRequest(_);if(t)return qo(t,j)}let le=F?Nr({cleanPathname:_,middlewareContext:j,pathname:g,publicFiles:e.publicFiles,request:t}):null;if(le)return e.clearRequestContext(),le;Fe(c);let z=new URL(v,c);Fe(z),v=z.pathname+z.search+z.hash,e.setNavigationContext({pathname:x,searchParams:b(),params:{}});let ue=F?w():null,de=C?h:_,fe=F&&ue===null&&l&&u!==null?e.matchInterceptRoute?.(de,u)??null:null,B=ue??fe,pe=fe!==null;if(B&&Ga(Wa(B.params,B.route.rootParamNames)),a&&M&&B){let t=new Headers;return R(t,j.headers),t.set(`content-type`,`application/json`),t.set(`x-nextjs-rewrite`,v),e.clearRequestContext(),new Response(`{}`,{headers:t})}if(!F&&ae&&I)return e.clearRequestContext(),Er();let me=null;if(F&&ae&&L.startsWith(`multipart/form-data`)&&!I){if(e.handleProgressiveActionRequest)me=await e.handleProgressiveActionRequest({actionId:I,cleanPathname:_,contentType:L,middlewareContext:j,request:t,routeMatch:B});else if(B?.route.__loadPage&&!B.route.__loadRouteHandler)return Zo(e,null)}if(me instanceof Response)return me;let V=me?.kind===`form-state`?me:null,he=V!==null,ge=V?.formState??null,_e=V&&`actionError`in V?V:null,ve=_e!==null,ye=_e?.actionError,be=ye&&typeof ye==`object`&&`digest`in ye?String(ye.digest):null,xe=be?ca(be)?.status??null:null,Se=xe===null||xe===404?ye:{digest:`NEXT_NOT_FOUND`};ve&&j.status===null&&xe===null&&(j.status=500);let Ce=F&&ae&&I&&e.handleServerActionRequest?await e.handleServerActionRequest({actionId:I,cleanPathname:_,contentType:L,interceptionContext:u,isRscRequest:l,middlewareContext:j,mountedSlotsHeader:d,request:t,scriptNonce:te,routeMatch:B,routePathname:de,searchParams:b()}):null;if(Ce)return Ce;if(F&&ae&&I&&!e.handleServerActionRequest)return Zo(e,I);let H=B,we=async n=>{if(!F)return null;let i=!pe&&(H===null||H.route.isDynamic)?await e.renderPagesFallback?.({appRouteMatch:H??null,allowRscDocumentFallback:M,isDataRequest:r,isRscRequest:l,matchKind:n,middlewareContext:j,pathname:v,pagesDataRequest:a,request:t,url:c})??null:null;if(!i||!a||v===y)return i;let o=new Headers(i.headers);return o.set(`x-nextjs-rewrite`,v),new Response(i.body,{headers:o,status:i.status,statusText:i.statusText})},Te=await we(`static`);if(Te)return e.clearRequestContext(),Te;if(!pe&&!se&&(!H||H.route.isDynamic))for(let t of e.configRewrites.afterFiles){let n=await Qo({basePathState:S,clearRequestContext:e.clearRequestContext,request:k,requestContext:$o(P,v,c),paramsPathname:D(C?h:_),rewrites:[t]},D(_));if(n instanceof Response)return n;if(!n)continue;v=ki(v,n),_=es(v),C=!1,F=!0;let r=await ne();if(r)return r;H=w();let i=await we(`static`);if(i)return e.clearRequestContext(),i;let a=await we(`dynamic`);if(a)return e.clearRequestContext(),a;if(H)break}let Ee=await we(`dynamic`);if(Ee)return e.clearRequestContext(),Ee;if(!se&&!H)for(let t of e.configRewrites.fallback){let n=await Qo({basePathState:S,clearRequestContext:e.clearRequestContext,request:k,requestContext:$o(P,v,c),paramsPathname:D(C?h:_),rewrites:[t]},D(_));if(n instanceof Response)return n;if(!n)continue;v=ki(v,n),_=es(v),C=!1,F=!0;let r=await ne();if(r)return r;H=w();let i=await we(`static`);if(i)return e.clearRequestContext(),i;let a=await we(`dynamic`);if(a)return e.clearRequestContext(),a;if(H)break}if(!F){e.clearRequestContext();let t=new Headers;return R(t,j.headers),Er({headers:t})}if(a){if(e.clearRequestContext(),N&&(j.status===null||j.status===200||j.status===404)){let e=Hi(),t=new Headers(e.headers);return t.set(`x-nextjs-matched-path`,D(x)),v!==y&&t.set(`x-nextjs-rewrite`,v),new Response(`{}`,{status:200,headers:t})}return Hi()}if(!H){let n=await e.renderNotFound({isRscRequest:l,middlewareContext:j,request:t,route:null,scriptNonce:te});if(n)return n;e.clearRequestContext();let r=new Headers;return R(r,j.headers),Er({headers:r})}let{route:U,params:W}=H;e.ensureRouteLoaded&&await e.ensureRouteLoaded(U);let De=b();if(ao(t)&&!U.routeHandler){let t=await bo(U,{buildId:e.buildId,prefetchInlining:e.prefetchInlining});return e.clearRequestContext(),qo(t,j)}let Oe=_a(ma(t),U.pattern,W),ke=Oe?.params??null,Ae=Oe?.kind===`fallback-shell`,je=ke??W,Me=[];e.createPprFallbackShells&&t.method===`GET`&&!l&&!Ae&&U.params&&(Me=e.createPprFallbackShells({params:U.params,pattern:U.pattern,rootParamNames:U.rootParamNames},W)),e.setNavigationContext({pathname:x,searchParams:De,params:je});let Pe=Wa(je,U.rootParamNames);if(Ga(Pe),U.routeHandler){T(Ia(_,[],[...U.routeSegments],`route`));let t=Yo(U.routeHandler)?A:k,n=new URL(t.url),r=Yo(U.routeHandler)?[]:n.searchParams.getAll(Ne);n.search=De.toString();for(let e of r)n.searchParams.append(Ne,e);return e.dispatchMatchedRouteHandler({cleanPathname:_,middlewareContext:j,params:U.isDynamic?je:null,request:new Request(n,t),route:U,searchParams:De})}let Ie=await e.dispatchMatchedPage({clientReuseManifest:p,cleanPathname:_,displayPathname:x,formState:ge,actionError:Se,actionFailed:ve,handlerStart:0,interceptionContext:u,interceptionPathname:C?h:_,isProgressiveActionRender:he,isRscRequest:l,middlewareContext:j,mountedSlotsHeader:d,params:je,pprFallbackCacheShells:Me,pprFallbackShell:Ae?{fallbackParamNames:Oe.fallbackParamNames,routePattern:U.pattern}:void 0,renderedConcreteUrlPaths:Sa(U.pattern),skipStaticParamsValidation:Ae,staticParamsValidationParams:ke===null||Ae?void 0:W,rootParams:Pe,request:t,renderedPathAndSearch:v,route:U,scriptNonce:te,searchParams:De,renderMode:f});return he?as(Ie,V):Ie}function as(e,t){let n=t.pendingCookies.length>0,r=!!t.draftCookie,i=t.revalidationKind!==0;if(!n&&!r&&!i)return e;let a=e=>{for(let n of t.pendingCookies)e.append(`Set-Cookie`,n);t.draftCookie&&e.append(`Set-Cookie`,t.draftCookie),i&&e.set(ht,JSON.stringify(t.revalidationKind))};try{return a(e.headers),e}catch{let t=new Headers(e.headers);return a(t),new Response(e.body,{status:e.status,statusText:e.statusText,headers:t})}}function os(e){return async function(t,n){e.registerCacheAdapters(),await e.ensureInstrumentation?.();let r=t.headers.get(rt),i=new URL(t.url),a=!e.basePath||Dt(i.pathname,e.basePath);a&&(i.pathname=Et(i.pathname,e.basePath));let o=a?Vr(t,i.toString()):null,s=e.renderPagesFallback&&o?Ui(o,e.buildId,``,typeof e.runMiddleware==`function`&&e.trailingSlash):null;if(s?.notFoundResponse)return s.notFoundResponse;let c=s?.isDataReq===!0,l=Xo(n)?n:bt()??null,u=ma(t),d=process.env.VINEXT_PRERENDER===`1`&&t.headers.get(`x-vinext-prerender-secret`)!==null&&t.headers.get(`x-vinext-prerender-speculative`)===`1`,f=l?.isInternalPagesRevalidation?new Headers(t.headers):Rr(t.headers);f.delete(nt),r!==null&&f.set(rt,r);let p=da(u);p!==null&&f.set(at,p),d&&f.set(tt,`1`);let m=t;if(s?.isDataReq){let t=new URL(s.request.url);t.pathname=kt(t.pathname,e.basePath),m=Vr(o,t.toString())}let h=Br(m,f),g=s?.isDataReq?Br(o,f):null,_=Je({headersContext:B(h,{draftModeSecret:e.draftModeSecret}),executionContext:l,unstableCacheRevalidation:`background`}),v=qe(_,()=>Ko(async()=>{A();let t=wr(h),n;try{n=await is(e,h,t,c,c,g)}catch(e){throw e}return xo(n,h,{basePath:e.basePath,configHeaders:e.configHeaders,i18nConfig:e.i18nConfig,requestContext:t})},{route:()=>new URL(h.url).pathname})),y;try{y=await v}catch(e){throw await Xe(_),e}return Ke(y,_)}}function ss(){}function cs(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function ls(e){let t=cs(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}function us(e){return JSON.stringify(e).replace(/</g,`\\u003c`).replace(/>/g,`\\u003e`).replace(/&/g,`\\u0026`).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}function ds(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function fs(e){return e?` nonce="${ds(e)}"`:``}function ps(e,t){return`<script${fs(t)}>${e}<\/script>`}var ms=308;function hs(e,t){if(!t||!e.startsWith(`/`))return e;let n=e.indexOf(`#`),r=e.indexOf(`?`),i=r===-1?n===-1?e.length:n:n===-1?r:Math.min(r,n);return kt(e.slice(0,i),t)+e.slice(i)}function gs(e,t){let n=oa(e);if(!n)return``;if(ca(n)){let e=`<meta name="robots" content="noindex"/>`;return(t.nodeEnv??`production`)===`development`&&(e+=`<meta name="next-error" content="not-found"/>`),e}let r=sa(n);if(!r)return``;let i=r.status===ms?0:1,a=hs(r.url,t.basePath);return`<meta id="__next-page-redirect" http-equiv="refresh" content="`+i+`;url=`+ds(a)+`"/>`}function _s(e,t={}){let n=``;for(let r of e)n+=gs(r,t);return n}function vs(e){return!!(e&&(typeof e==`object`||typeof e==`function`)&&`then`in e&&typeof e.then==`function`)}function ys(e){return`NEXT_REDIRECT;${e.type};${e.url};${e.statusCode};`}var bs=class extends Error{digest;constructor(e){super(`NEXT_REDIRECT`),this.digest=e}};function xs(e){let{digest:t}=e,n=(0,G.createElement)(function(){throw new bs(t)});return e.renderToReadableStream(n,{onError:()=>t})}var Ss=Symbol.for(`vinext.appPage.metadataError`);function Cs(e){if(e&&typeof e==`object`)try{Object.defineProperty(e,Ss,{value:!0,enumerable:!1,configurable:!0,writable:!1})}catch{}return e}function ws(e){return e===403?`Forbidden`:e===401?`Unauthorized`:`Not Found`}function Ts(e,t){let n=new Headers(e.headers);return R(n,t?.headers??null),new Response(e.body,{headers:n,status:e.status,statusText:e.statusText})}function Es(e){if(!(e&&typeof e==`object`&&`digest`in e))return null;let t=String(e.digest),n=Reflect.get(e,Ss)===!0,r=sa(t);if(r)return{kind:`redirect`,location:r.url,statusCode:r.status,type:r.type===`push`?`push`:`replace`,...n?{fromMetadata:!0}:{}};let i=ca(t);return i?{kind:`http-access-fallback`,statusCode:i.status,...n?{fromMetadata:!0}:{}}:null}function Ds(e,t){if(!t||!e.startsWith(`/`))return e;let n=e.indexOf(`?`),r=e.indexOf(`#`),i=n===-1?r:r===-1?n:Math.min(n,r);return`${t}${i===-1?e:e.slice(0,i)}${i===-1?``:e.slice(i)}`}function Os(e,t){try{let n=new URL(e,t),r=new URL(t).origin;return n.origin===r?`${n.pathname}${n.search}${n.hash}`:n.toString()}catch{return e}}function ks(e){let t=new Headers({"Content-Type":`text/html; charset=utf-8`});ra(t,e.isEdgeRuntime),R(t,e.middlewareContext?.headers??null);let n=e.getAndClearPendingCookies?.()??[];for(let e of n)t.append(`Set-Cookie`,e);let r=_s([{digest:e.digest}]);return new Response(`<!DOCTYPE html><html><head>${r}</head><body></body></html>`,{headers:t,status:200})}async function As(e){if(e.specialError.kind===`redirect`){e.clearRequestContext();let t=Ds(e.specialError.location,e.basePath),n=Os(t,e.request.url),r=ys({type:e.specialError.type??`replace`,url:n,statusCode:e.specialError.statusCode});if(e.specialError.fromMetadata===!0&&!e.isRscRequest&&e.serveStreamingMetadata!==!1)return ks({digest:r,getAndClearPendingCookies:e.getAndClearPendingCookies,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext});if(e.buildRscRedirectFlightStream&&e.isRscRequest&&e.buildRscRedirectFlightStream){let t=e.buildRscRedirectFlightStream({digest:r}),i=new Headers({"Content-Type":le});ra(i,e.isEdgeRuntime),Ee(i),Se(i),R(i,e.middlewareContext?.headers??null),i.set(st,n),i.set($e,e.specialError.type??`replace`);let a=e.getAndClearPendingCookies?.()??[];for(let e of a)i.append(`Set-Cookie`,e);return new Response(t,{headers:i,status:200})}let i=e.isRscRequest?await pe(t,e.request):t,a=new Headers({Location:i});R(a,e.middlewareContext?.headers??null);let o=e.getAndClearPendingCookies?.()??[];for(let e of o)a.append(`Set-Cookie`,e);return new Response(null,{headers:a,status:e.specialError.statusCode})}if(e.renderFallbackPage){let t=await e.renderFallbackPage(e.specialError.statusCode);if(t)return Ts(e.specialError.fromMetadata===!0&&e.serveStreamingMetadata!==!1?new Response(t.body,{headers:t.headers,status:200,statusText:t.statusText}):t,e.middlewareContext)}e.clearRequestContext();let t=e.specialError.fromMetadata===!0&&e.serveStreamingMetadata!==!1?200:e.specialError.statusCode;return Ts(new Response(ws(e.specialError.statusCode),{status:t}),e.middlewareContext)}async function js(e){let t={},n=e.classification??null;return{response:await e.runWithSuppressedHookWarning(async()=>{for(let r=e.layoutCount-1;r>=0;r--){let i=n?.buildTimeClassifications?.get(r);if(n&&i){let a=n.getLayoutId(r);t[a]=i===`static`?`s`:`d`;let o=await Ms(e,r);if(o)return o;let s=n.isLayoutObservationDynamic?.(a)===!0;t[a]=i===`dynamic`||s?`d`:`s`,n.debugClassification&&(s&&i===`static`?n.debugClassification(a,{layer:`runtime-probe`,outcome:`dynamic`}):n.debugClassification(a,n.buildTimeReasons?.get(r)??{layer:`no-classifier`}));continue}if(n){let i=n.getLayoutId(r);try{let{dynamicDetected:a}=await n.runWithIsolatedDynamicScope(async()=>{let t=await j(()=>e.probeLayoutAt(r));return t.completed?t.result:null}),o=n.isLayoutObservationDynamic?.(i)===!0,s=a||o;t[i]=s?`d`:`s`,n.debugClassification&&n.debugClassification(i,{layer:`runtime-probe`,outcome:s?`dynamic`:`static`})}catch(a){t[i]=`d`,n.debugClassification&&n.debugClassification(i,{layer:`runtime-probe`,outcome:`dynamic`,error:a instanceof Error?a.message:String(a)});let o=await e.onLayoutError(a,r);if(o)return o}continue}let a=await Ms(e,r);if(a)return a}return null}),layoutFlags:t}}async function Ms(e,t){let n=await j(async()=>{try{let n=e.probeLayoutAt(t);vs(n)&&await n}catch(n){return e.onLayoutError(n,t)}return null});return n.completed?n.result:null}async function Ns(e){return e.runWithSuppressedHookWarning(async()=>{let t=await j(async()=>{try{let t=e.probePage();vs(t)&&(e.awaitAsyncResult?await t:Promise.resolve(t).catch(()=>{}))}catch(t){return e.onError(t)}return null});return t.completed?t.result:null})}async function Ps(e){return e.runWithSuppressedHookWarning(async()=>{let t=await j(async()=>{try{let t=e.probePage();vs(t)&&await t}catch(e){return{error:e,thrown:!0}}return{error:null,thrown:!1}});return t.completed&&t.result.thrown?t.result.error:null})}async function Fs(e){let t=e.getReader(),n=[],r=0;for(;;){let{done:e,value:i}=await t.read();if(e)break;n.push(i),r+=i.byteLength}let i=new Uint8Array(r),a=0;for(let e of n)i.set(e,a),a+=e.byteLength;return i.buffer}async function Is(e){let t=e.getReader(),n=[];for(;;){let{done:e,value:r}=await t.read();if(e)break;n.push(r)}return new ReadableStream({start(e){for(let t of n)e.enqueue(t);e.close()}})}function Ls(e,t){if(!t)return{ssrStream:e};let[n,r]=e.tee();return{ssrStream:n,sideStream:r}}function Rs(e){return!e||e.length===0?``:e.map(e=>`<${e.href}>; rel=preload; as=font; type=${e.type}; crossorigin`).join(`, `)}var zs=Symbol.for(`vinext.originalServerError`);function Bs(e){return!!(e&&typeof e==`object`&&`digest`in e)}var Vs=`BAILOUT_TO_CLIENT_SIDE_RENDERING`,Hs=`DYNAMIC_SERVER_USAGE`;function Us(e){if(!e||typeof e!=`object`)return!1;let t=Reflect.get(e,`name`);return t===`AbortError`||t===`ResponseAborted`}function Ws(e){if(!Bs(e))return;let t=String(e.digest);if(ls(e)||t===Vs||t===Hs)return t}function Gs(e){return e instanceof Error?e.message:String(e)}function Ks(e){return e instanceof Error&&e.stack||``}function qs(e){let t=5381;for(let n=e.length-1;n>=0;n--)t=t*33^e.charCodeAt(n);return(t>>>0).toString()}function Js(e,t=`production`){if(Es(e)||t!==`production`)return e;let n=Error(`An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.`);return n.digest=Bs(e)?String(e.digest):qs(Gs(e)+Ks(e)),Object.defineProperty(n,zs,{configurable:!1,enumerable:!1,value:e,writable:!1}),n}function Ys(e){return t=>{let n=e.nodeEnv??`production`;if(Us(t))return;let r=Ws(t);if(r!==void 0)return r;if(n!==`production`&&t instanceof Error&&t.message.includes(`Only plain objects, and a few built-ins, can be passed to Client Components`)){console.error(`[vinext] RSC serialization error: a non-plain object was passed from a Server Component to a Client Component.
6
6
 
7
7
  Common causes:
@@ -14,4 +14,4 @@ Common causes:
14
14
  * Passing a Date, Map, or Set. Use .toISOString(), [...map.entries()], etc.
15
15
  * Passing Object.create(null). Use { ...obj } to restore a prototype.
16
16
 
17
- Original error:`,t.message);return}if(e.requestInfo&&e.errorContext&&t){let n=typeof t==`object`&&zs in t?Reflect.get(t,zs):t;e.reportRequestError(n instanceof Error?n:Error(Gs(n)),e.requestInfo,e.errorContext)}if(n!==`production`&&t&&!Bs(t)){let e=typeof t==`object`&&zs in t?Reflect.get(t,zs):t;console.error(`[vinext] Server render error:`,e)}if(Bs(t))return String(t.digest);if(t){let e=qs(Gs(t)+Ks(t));if(t instanceof Error)try{Object.assign(t,{digest:e})}catch{}return e}}}function Xs(e,t,n,r){let i=Object.fromEntries(t.headers.entries()),a={path:n,method:t.method,headers:i};return Ys({errorContext:{routerKind:`App Router`,routePath:r||n,routeType:`render`},reportRequestError:e,requestInfo:a})}var Zs=Bt(()=>{throw Error(`Unexpectedly client reference export 'default' is called on server`)},`0b874ad30386`,`default`),Qs={default:Zs},$s=String.raw`[\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|SkypeUriPreview|Yeti|googleweblight`,ec=new Map;function tc(e){let t=e||$s,n=ec.get(t);if(n)return n;let r=new RegExp(t,`i`);return ec.set(t,r),r}function nc(e,t){return!e||!tc(t).test(e)}var rc=Bt(()=>{throw Error(`Unexpectedly client reference export 'ErrorBoundary' is called on server`)},`593f344dc510`,`ErrorBoundary`),ic=Bt(()=>{throw Error(`Unexpectedly client reference export 'ForbiddenBoundary' is called on server`)},`593f344dc510`,`ForbiddenBoundary`),ac=Bt(()=>{throw Error(`Unexpectedly client reference export 'GlobalErrorBoundary' is called on server`)},`593f344dc510`,`GlobalErrorBoundary`),oc=Bt(()=>{throw Error(`Unexpectedly client reference export 'NotFoundBoundary' is called on server`)},`593f344dc510`,`NotFoundBoundary`),sc=Bt(()=>{throw Error(`Unexpectedly client reference export 'RedirectBoundary' is called on server`)},`593f344dc510`,`RedirectBoundary`),cc=Bt(()=>{throw Error(`Unexpectedly client reference export 'SerializedErrorBoundary' is called on server`)},`593f344dc510`,`SerializedErrorBoundary`),lc=Bt(()=>{throw Error(`Unexpectedly client reference export 'UnauthorizedBoundary' is called on server`)},`593f344dc510`,`UnauthorizedBoundary`),uc=Bt(()=>{throw Error(`Unexpectedly client reference export 'LayoutSegmentProvider' is called on server`)},`15c18cfaeeff`,`LayoutSegmentProvider`);function dc(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7?e.slice(5,-2):e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5?e.slice(4,-1):e.startsWith(`[`)&&e.endsWith(`]`)&&!e.includes(`.`)&&e.length>2?e.slice(1,-1):null}function fc(e,t){return e.startsWith(`[[...`)&&Array.isArray(t)&&t.length===0}function pc(e,t){let n=[],r=new Set,i=e??[],a=Math.min(Math.max(t,0),i.length);for(let e=0;e<a;e++){let t=dc(i[e]);!t||r.has(t)||(r.add(t),n.push(t))}return n}function mc(e,t,n){let r={},i=e??[],a=Math.min(Math.max(t,0),i.length);for(let e=0;e<a;e++){let t=i[e],a=dc(t);if(!a)continue;let o=n[a];o===void 0||fc(t,o)||(r[a]=o)}return r}function hc(e,t,n,r=e){let i=new Set(e.map(dc).filter(e=>e!==null)),a={};for(let[e,t]of Object.entries(n))i.has(e)||(a[e]=t);return Object.assign(a,mc(r,t,n)),a}async function gc(...e){try{return await Jn(...e)}catch(e){throw Cs(e)}}function _c(e){return Object.entries(e.slots??{}).map(([t,n])=>{let r=e.layoutTreePositions?.[n.layoutIndex??0]??0,i=mc(e.routeSegments,r,e.params),a=e.slotParams?.[t]??e.params,o=n.notFound?{...i,...yc(n.routeSegments??e.routeSegments,n.notFoundTreePosition??0,a)}:null;if(e.interceptSlotKey===t&&e.interceptPage){let t=e.interceptLayouts??[],a=n.notFoundTreePosition===0?n.notFound??null:null,o=e.interceptNotFound??a,s=o?{...i,...yc(e.interceptNotFoundBranchSegments??e.interceptBranchSegments??e.routeSegments,e.interceptNotFound?e.interceptNotFoundTreePosition??0:n.notFoundTreePosition??0,e.interceptParams??e.params)}:null;return{head:{layoutModules:[n.layout,...t].filter(vc),layoutParams:[...n.layout?[i]:[],...t.filter(vc).map((t,n)=>{let r=e.interceptLayoutSegments?.[n]??[];return{...i,...yc(e.interceptBranchSegments??r,r.length,e.interceptParams??e.params)}})],layoutTreePositions:[...n.layout?[0]:[],...t.filter(vc).map(()=>e.routeSegments.length)],pageModule:e.interceptPage,params:e.interceptParams??e.params,routeSegments:e.interceptSourcePageSegments??e.routeSegments},...o?{notFoundModule:o,notFoundParams:s}:{},ownerTreePosition:r}}return{head:{layoutModules:[n.layout,...n.configLayouts??[]].filter(vc),layoutParams:[...n.layout?[i]:[],...(n.configLayoutTreePositions??[]).map(r=>({...i,...yc(n.routeSegments??e.routeSegments,r,e.slotParams?.[t]??e.params)}))],layoutTreePositions:[...n.layout?[0]:[],...n.configLayoutTreePositions??[]],pageModule:n.page,params:a,routeSegments:n.routeSegments??e.routeSegments},...n.notFound?{notFoundModule:n.notFound,notFoundParams:o}:{},ownerTreePosition:r}}).sort((e,t)=>t.ownerTreePosition-e.ownerTreePosition)}function vc(e){return e!=null}function yc(e,t,n){return hc(e,t,n)}function bc(e){return typeof e?.generateMetadata==`function`}function xc(e){let t=Object.create(null),n=!1;return e?.forEach((e,r)=>{n=!0;let i=t[r];if(Array.isArray(i)){t[r]=[...i,e];return}if(i!==void 0){t[r]=[i,e];return}t[r]=e}),{hasSearchParams:n,pageSearchParams:t}}function Sc(e,t,n,r,i){let a=e.map((e,r)=>({routeSegments:t.slice(0,n[r]??0),metadata:e}));return i&&a.push({routeSegments:t,metadata:r}),a}async function Cc(e,t,n){let r=e;if(n.applyFileBasedMetadata&&n.metadataRoutes.length>0)try{r=await n.applyFileBasedMetadata(e,n.routePath,n.params,n.metadataRoutes,{routeSegments:n.routeSegments??[],metadataSources:t,basePath:n.basePath??``})}catch(e){if(!n.fallbackOnFileMetadataError)throw e;console.error(`[vinext] File-based metadata resolution failed while rendering error boundary for ${n.routePath}:`,e)}return r?Kn(r):null}function wc(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];vc(i)&&n.push({module:i,treePosition:t[r]??0})}return n}async function Tc(e,t,n){let r=[],i=Promise.resolve({});for(let a of e){let e=i,o=mc(n,a.treePosition,t),s=gc(a.module,o,void 0,e);r.push(s),s.catch(()=>null),i=s.then(async t=>t?qn([{metadata:await e},{metadata:t}]):e),i.catch(()=>null)}return Promise.all(r)}function Ec(e,t,n){let r=[],i=Promise.resolve(Ln([]));for(let a of e){let e=i,o=mc(n,a.treePosition,t),s=Fn(a.module,o,void 0,e);r.push(s),s.catch(()=>null),i=Dc(e,s),i.catch(()=>null)}return{resolvedViewport:i,viewportResults:Promise.all(r)}}function Dc(e,t){return Promise.all([e,t]).then(([e,t])=>t?Ln([e,t]):e)}function Oc(e){return[...e.layoutModules??[],e.layoutModule].filter(vc)}function kc(e){return Oc(e).some(bc)||bc(e.pageModule)}async function Ac(e,t,n,r,i,a){let o=e.params??t,s=e.routeSegments??n,c=[],l=[],u=i,d=Oc(e),f=e.layoutTreePositions??[],p=e.layoutParams??[];for(let[e,t]of d.entries()){let n=await gc(t,p[e]??yc(s,f[e]??0,o),void 0,u);c.push(n),l.push({metadata:n,routeSegments:s}),n&&(u=u.then(async e=>qn([{metadata:e},{metadata:n}])),u.catch(()=>null))}if(e.pageModule){let t=await gc(e.pageModule,o,r,u,a);c.push(t),l.push({metadata:t,routeSegments:s})}return{metadataResults:c,metadataSources:l}}function jc(e,t,n,r,i,a){let o=e.params??t,s=e.routeSegments??n,c=Oc(e),l=e.layoutTreePositions??[],u=e.layoutParams??[],d=[],f=i;for(let[e,t]of c.entries()){let n=f,r=Fn(t,u[e]??yc(s,l[e]??0,o),void 0,n);d.push(r),r.catch(()=>null),f=Dc(n,r),f.catch(()=>null)}if(e.pageModule){let t=f,n=Fn(e.pageModule,o,r,t,a);d.push(n),n.catch(()=>null),f=Dc(t,n),f.catch(()=>null)}return{resolvedViewport:f,viewportResults:Promise.all(d)}}function Mc(e){return h(async()=>{let t=[],n=Promise.resolve([]);for(let r of e.sources){let e=n.then(e=>e.length>0?qn(e):{}),i=gc(r.module,r.params,r.searchParams,e,r.searchParamsObserver);t.push(i),i.catch(()=>null),n=Promise.all([n,i]).then(([e,t])=>t?[...e,{metadata:t}]:e),n.catch(()=>null)}let[r,i]=await Promise.all([n,Promise.all(t)]),a=e.sources.flatMap((e,t)=>{let n=i[t]??null;return n||e.includeWhenEmpty?[{metadata:n,routeSegments:e.routeSegments}]:[]});return Cc(r.length>0?qn(r):null,a,e)})}async function Nc(e){let t=Pc(e),[n,r]=await Promise.all([t.metadata,t.viewport]);return{...t,metadata:n,viewport:r}}function Pc(e){return h(()=>Fc(e))}function Fc(e){let t=e.routeSegments??[],n=e.layoutTreePositions??[],r=wc(e.layoutModules,n),i=r.map(e=>e.treePosition),a=r.some(e=>bc(e.module))||bc(e.pageModule),{hasSearchParams:o,pageSearchParams:s}=xc(e.searchParams),c=Tc(r,e.params,t),l=Ec(r,e.params,t),u=l.viewportResults,d=c.then(e=>e.filter(vc));d.catch(()=>null);let f=d.then(e=>e.length>0?qn(e.map(e=>({metadata:e}))):{});f.catch(()=>null);let p=e.pageModule?gc(e.pageModule,e.params,s,f,e.searchParamsObserver):Promise.resolve(null),m=e.parallelRoutes??[],h=Promise.all(m.map(n=>Ac(n,e.params,t,s,f,e.searchParamsObserver))),g=[],_=l.resolvedViewport,v=_,y=e.pageModule?Fn(e.pageModule,e.params,s,v,e.searchParamsObserver):Promise.resolve(null);e.pageModule&&(_=Dc(v,y),_.catch(()=>null));for(let n of m){let r=jc(n,e.params,t,s,_,e.searchParamsObserver);g.push(r.viewportResults),_=r.resolvedViewport}let b=Promise.all(g),x=a||m.some(kc),S=Promise.all([c,p,h]).then(async([n,r,a])=>{let o=a.flatMap(e=>e.metadataResults),s=a.flatMap(e=>e.metadataSources),c=r!=null&&r.title!==void 0,l=[...n.filter(vc).map(e=>({metadata:e})),...r?[{isPage:!0,metadata:r}]:[],...o.filter(vc).map(e=>({contributesTitle:!c,metadata:e}))],u=l.length>0?qn(l):null,d=Sc(n,t,i,r,!!e.pageModule);return d.push(...s),Cc(u,d,e)}),C=Promise.all([u,y,b]).then(([e,t,n])=>Ln([...e.filter(vc),...t?[t]:[],...n.flat().filter(vc)]));return S.catch(()=>null),C.catch(()=>null),{hasDynamicMetadata:x,hasSearchParams:o,metadata:S,pageSearchParams:s,viewport:C}}var Ic=Bt(()=>{throw Error(`Unexpectedly client reference export 'AppRouterScrollTarget' is called on server`)},`9276801271d6`,`AppRouterScrollTarget`),Lc={error:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,textAlign:`center`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},desc:{display:`inline-block`},h1:{display:`inline-block`,margin:`0 20px 0 0`,padding:`0 23px 0 0`,fontSize:24,fontWeight:500,verticalAlign:`top`,lineHeight:`49px`},h2:{fontSize:14,fontWeight:400,lineHeight:`49px`,margin:0}},Rc=404,zc=`This page could not be found.`;function Bc(){return G.createElement(G.Fragment,null,G.createElement(`title`,null,`${Rc}: ${zc}`),G.createElement(`div`,{style:Lc.error},G.createElement(`div`,null,G.createElement(`style`,{dangerouslySetInnerHTML:{__html:`body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}`}}),G.createElement(`h1`,{className:`next-error-h1`,style:Lc.h1},Rc),G.createElement(`div`,{style:Lc.desc},G.createElement(`h2`,{style:Lc.h2},zc)))))}var Vc=Bt(()=>{throw Error(`Unexpectedly client reference export 'Children' is called on server`)},`8c0f216c4604`,`Children`),Hc=Bt(()=>{throw Error(`Unexpectedly client reference export 'ParallelSlot' is called on server`)},`8c0f216c4604`,`ParallelSlot`),Uc=Bt(()=>{throw Error(`Unexpectedly client reference export 'Slot' is called on server`)},`8c0f216c4604`,`Slot`),Wc=Bt(()=>{throw Error(`Unexpectedly client reference export 'StreamedIconsInsertion' is called on server`)},`89c3cac48cb5`,`StreamedIconsInsertion`),Gc=Symbol.for(`vinext.appPagePropsCacheKeyMarker`);function Kc(e){return Object.defineProperty(e,Gc,{configurable:!1,enumerable:!1,value:!0,writable:!1}),e}function qc(e){m(),g(`searchParams`),e&&Ie(),Ve(`searchParams`)}function Jc(e={}){return{observeParamAccess(){qc(e.markDynamic!==!1)}}}function Yc(e,t={}){let n=Jc(t);return t.observeReactPromiseStatus===!0?K(e,{...n,observeReactPromiseStatus:!0}):K(e,n)}var Xc=32,Zc=1e3,Qc=Symbol.for(`react.forward_ref`),$c=Symbol.for(`react.lazy`),el=Symbol.for(`react.memo`),tl=Symbol.for(`react.client.reference`),nl=class extends Error{constructor(e){super(e),this.name=`AppPageSubtreeProbeLimitError`}},rl=class extends Error{constructor(){super(`App page layout subtree probe cannot safely inspect iterable children`),this.name=`AppPageSubtreeProbeUnsupportedIterableError`}};function il(e){return!!(e&&typeof e!=`string`&&typeof e==`object`&&Symbol.iterator in e&&typeof e[Symbol.iterator]==`function`)}function al(e){return(0,G.isValidElement)(e)}function ol(e){return(typeof e==`object`||typeof e==`function`)&&e!==null}function sl(e){return typeof e==`function`}function cl(e){return ol(e)&&Reflect.get(e,`$$typeof`)===tl}function ll(e){return!ol(e)||Reflect.get(e,`$$typeof`)!==el?null:{innerType:Reflect.get(e,`type`)}}function ul(e){if(!ol(e)||Reflect.get(e,`$$typeof`)!==$c)return null;let t=Reflect.get(e,`_init`);return sl(t)?{init:t,payload:Reflect.get(e,`_payload`)}:null}function dl(e){if(!ol(e)||Reflect.get(e,`$$typeof`)!==Qc)return null;let t=Reflect.get(e,`render`);return sl(t)?t:null}async function fl(e){try{return e.init(e.payload)}catch(t){if(!vs(t))throw t;return await t,e.init(e.payload)}}async function pl(e,t={}){let n=t.maxDepth??Xc,r=t.maxNodes??Zc,i=0,a=e=>{if(e>n)throw new nl(`App page layout subtree probe exceeded max depth`);if(i+=1,i>r)throw new nl(`App page layout subtree probe exceeded max nodes`)},o=async(e,t,r,i=0)=>{if(i>n)throw new nl(`App page layout subtree probe exceeded max depth`);if(cl(e))return!1;if(sl(e))return await s(e(t),r+1),!0;let a=ll(e);if(a)return o(a.innerType,t,r,i+1);let c=ul(e);if(c)return o(await fl(c),t,r,i+1);let l=dl(e);return l?(await s(l(t,null),r+1),!0):!1},s=async(e,t)=>{if(a(t),!(e==null||typeof e==`boolean`||typeof e==`number`)&&!(typeof e==`string`||typeof e==`bigint`)){if(vs(e)){await s(await e,t);return}if(Array.isArray(e)){for(let n of e)await s(n,t+1);return}if(il(e)&&!al(e))throw new rl;if(al(e)){if(e.type===G.Fragment||typeof e.type==`string`){await s(e.props.children,t+1);return}await o(e.type,e.props,t)||await s(e.props.children,t+1)}}};await s(e,0)}async function ml(e){try{await pl(e)}catch(e){if(yn(e))return;throw e}}function hl(e){let{pageComponent:t,asyncRouteParams:n,searchParams:r}=e;if(typeof t!=`function`)return null;let{pageSearchParams:i}=xc(r),a=t(Kc({params:n,searchParams:Yc(i,{observeReactPromiseStatus:!0})}));return vs(a)?a.then(async e=>(await ml(e),e)):(0,G.isValidElement)(a)||Array.isArray(a)?ml(a).then(()=>a):a}function gl(e){let{route:t,pageComponent:n,asyncRouteParams:r,searchParams:i,matchedParams:a}=e,o=e.isRscRequest?e.intercept:null,s=[hl({pageComponent:n,asyncRouteParams:r,searchParams:i})],c=o?.slotKey??null;for(let[e,n]of Object.entries(t.slots??{}))c!==null&&e===c||n?.loading?.default||n?.loadings?.some(e=>e?.default)||s.push(hl({pageComponent:n?.page?.default,asyncRouteParams:r,searchParams:i}));let l=o?.slotKey?t.slots?.[o.slotKey]:null,u=!!(l?.loading?.default||l?.loadings?.some((e,t)=>e?.default&&l.loadingTreePositions?.[t]===0)),d=!!(o?.interceptLoadings?.some(e=>e?.default)||u);return o&&!d&&s.push(hl({pageComponent:o.page?.default,asyncRouteParams:e.makeThenableParams(o.matchedParams??a),searchParams:i})),s.map(e=>Promise.resolve(e))}async function _l(e){let t={};if(e.skipProbes)return{response:null,layoutFlags:t};if(e.layoutCount>0){let n=await js({layoutCount:e.layoutCount,async onLayoutError(t,n){let r=e.resolveSpecialError(t);return r?e.renderLayoutSpecialError(r,n):null},probeLayoutAt:e.probeLayoutAt,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)},classification:e.classification});if(t=n.layoutFlags,n.response)return{response:n.response,layoutFlags:t}}return e.hasLoadingBoundary||e.probePageBeforeRender===!1?{response:null,layoutFlags:t}:{response:await Ns({awaitAsyncResult:!0,async onError(t){let n=e.resolveSpecialError(t);return n?e.renderPageSpecialError(n):null},probePage:e.probePage,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)}}),layoutFlags:t}}var vl=`__PAGE__`;function yl(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&!e.includes(`.`)}function bl(e){return e.startsWith(`(`)&&e.endsWith(`)`)}function xl(e){return Array.isArray(e)?e.join(`/`):e}function Sl(e){return ei(e)?{name:e.slice(5,-2),type:`oc`}:$r(e)?{name:e.slice(4,-1),type:`c`}:yl(e)?{name:e.slice(1,-1),type:`d`}:null}function Cl(e,t,n){let r=t[e.name];return e.type===`oc`&&(r===void 0||Array.isArray(r)&&r.length===0)?``:xl(r)??n}function wl(e,t){let n=Sl(e);return n?`${n.name}|${Cl(n,t,e)}|${n.type}`:e}function Tl(e,t,n){let r=e.slice(t),i=[];for(let e of r){if(ei(e)){let t=n[e.slice(5,-2)];if(Array.isArray(t)&&t.length===0)continue;let r=xl(t);r!==void 0&&i.push(r);continue}if($r(e)){let t=e.slice(4,-1);i.push(xl(n[t])??e);continue}if(yl(e)){let t=e.slice(1,-1);i.push(xl(n[t])??e);continue}i.push(e)}return i.push(vl),i}function El(e,t,n){for(let r of e.slice(t))if(!bl(r))return wl(r,n);return``}function Dl(e,t){let n=[];for(let r of e)bl(r)||n.push(wl(r,t));return n.length>0?JSON.stringify(n):``}var Ol=(0,q.jsx)(G.Fragment,{}),kl=Zs,Al=Bc;function jl(e,t,n){return hc(e,t,n)}function J(e){return e?.default??null}function Ml(e){return e?.default??null}function Nl(e,t){let n=e?.slice(0,t)??[];return n.length===0?`/`:`/${n.join(`/`)}`}function Pl(e){let t=e?.revalidate;return typeof t==`number`&&Number.isFinite(t)&&t>0?t:null}function Fl(e){e.layoutParamAccess?.recordLayoutParamScope(e.layoutId,pc(e.routeSegments,e.treePosition));let t=Pl(e.layoutModule);t!==null&&e.layoutParamAccess?.recordLayoutFiniteRevalidate(e.layoutId,t)}function Il(e){let t=e.route.layoutTreePositions?.[e.layoutIndex]??0,n=Nl(e.route.routeSegments,t),r=W.encodeLayoutId(n),i=()=>{let n=e.route.layouts[e.layoutIndex],i=J(n);if(!i)return null;Fl({layoutId:r,layoutModule:n,layoutParamAccess:e.layoutParamAccess,routeSegments:e.route.routeSegments,treePosition:t});let a=mc(e.route.routeSegments,t,e.matchedParams);return pl((0,q.jsx)(i,{params:e.makeThenableParams(a,e.layoutParamAccess?.createThenableParamsObserver(r)),children:Ol}))};return e.layoutParamAccess?e.layoutParamAccess.runLayoutProbe(r,i):i()}function Ll(e){return e.layouts.map((t,n)=>{let r=e.layoutTreePositions?.[n]??0,i=Nl(e.routeSegments,r);return{errorModule:e.errorTreePositions?null:e.errors?.[n]??null,forbiddenModule:e.forbiddens?.[n]??null,id:W.encodeLayoutId(i),layoutModule:t,notFoundModule:e.notFounds?.[n]??null,unauthorizedModule:e.unauthorizeds?.[n]??null,treePath:i,treePosition:r}})}function Rl(e){return(e.templates??[]).map((t,n)=>{let r=e.templateTreePositions?.[n]??0,i=Nl(e.routeSegments,r);return{id:W.encodeTemplateId(i),templateModule:t,treePath:i,treePosition:r}})}function zl(e){return`/${[...e??[],`page`].join(`/`)}`}function Bl(e,t,n){let r=Tl(e,t,n);return r.at(-1)===`__PAGE__`?r.slice(0,-1):r}function Vl(e){return(e.errorPaths??e.errors??[]).flatMap((t,n)=>{if(!t)return[];let r=e.errorTreePositions?.[n];return r===void 0?[]:[{errorModule:t,treePosition:r}]})}function Hl(e){return(e.loadings??[]).flatMap((t,n)=>{if(!t)return[];let r=e.loadingTreePositions?.[n];return r===void 0?[]:[{loadingModule:t,treePosition:r}]})}function Ul(e){let t=null,n=null;for(let[r,i]of(e.loadings??[]).entries()){if(!J(i))continue;let a=e.loadingTreePositions?.[r];a!==void 0&&(a===0?t??={loadingModule:i,treePosition:a}:(n===null||a<n.treePosition)&&(n={loadingModule:i,treePosition:a}))}return n||t||(J(e.loading)?{loadingModule:e.loading,treePosition:e.routeSegments?.length??0}:null)}function Wl(e,t){let n=[],r=(e.loadings?.length??0)>0?e.loadings:e.loading?[e.loading]:[],i=(e.loadingTreePositions?.length??0)>0?e.loadingTreePositions:[0];for(let[e,a]of r.entries()){let r=i[e];!J(a)||r===void 0||t&&r!==0||n.push({loadingModule:a,treePosition:r})}for(let[e,r]of(t?.loadingModules??[]).entries()){let i=t?.loadingTreePositions?.[e];!J(r)||i===void 0||n.push({loadingModule:r,treePosition:i})}return n}function Gl(e){return e.reduce((e,t)=>e===null||t.treePosition<e.treePosition?t:e,null)}function Kl(e,t,n,r,i){let a={};for(let[o,s]of Object.entries(n.slots??{})){let n=s.name,c=s.layoutIndex>=0?s.layoutIndex:t.length-1;if(c!==e)continue;let l=ql(s,t[c]?.treePath??`/`),u=r(o,n),d=i(o,n)?.routeSegments??s.routeSegments;a[n]=(0,q.jsx)(uc,{providerId:l,segmentMap:{children:d?Bl(d,0,u):[]},children:(0,q.jsx)(Uc,{id:l})})}return Object.keys(a).length>0?a:void 0}function ql(e,t){let n=W.encodeSlotId(e.name,t);if(e.id&&e.id!==n)throw Error(`[vinext] App Router slot id mismatch for @${e.name}: graph id ${e.id} does not match wire id ${n}`);return n}function Jl(e,t){return J(t?.pageModule)??J(e.page)?`active`:J(e.default)?`default`:`unmatched`}function Yl(e,t,n,r){let i=[];if(e.childrenSlot){let n=t.find(t=>t.treePath===e.childrenSlot?.ownerTreePath)?.id;i.push({...e.childrenSlot.state===`active`?{activeRouteId:r.routeId}:{},ownerLayoutId:n??null,slotId:e.childrenSlot.id,state:e.childrenSlot.state})}for(let[a,o]of Object.entries(e.slots??{})){let e=t[o.layoutIndex>=0?o.layoutIndex:t.length-1]??null,s=e?.id??null,c=n(a,o.name),l=ql(o,e?.treePath??`/`),u=Jl(o,c),d=u===`active`?r.interception?.slotId===l?r.interception.targetRouteId:W.encodeRouteId(r.routePath,null):null;i.push({...d===null?{}:{activeRouteId:d},ownerLayoutId:s,slotId:l,state:u})}return ne(i,{layoutIds:t.map(e=>e.id)})}function Xl(e,t,n,r,i){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`meta`,{charSet:`utf-8`}),e&&r===`head`?(0,q.jsx)(xr,{metadata:e,pathname:n,trailingSlash:i}):null,(0,q.jsx)(zn,{viewport:t})]})}function Zl(e){let t=e.icons;return t?typeof t==`string`||t instanceof URL||Array.isArray(t)?!Array.isArray(t)||t.length>0:`url`in t||!!(t.shortcut||t.icon||t.apple||t.other):!1}function Ql(e,t){let n=2166136261;for(let e=0;e<t.length;e++)n^=t.charCodeAt(e),n=Math.imul(n,16777619);return`${e}:${(n>>>0).toString(36)}`}var $l=`vinext-pending-streamed-icon-key`,eu=`document.querySelectorAll('body link[rel="icon"], body link[rel="apple-touch-icon"]').forEach(el => document.head.appendChild(el));const a='data-vinext-streamed-icon',o=el=>{const m=el.getAttribute(a),i=m.lastIndexOf(':');return Number(m.slice(i+1))};[...document.querySelectorAll('link['+a+']')].sort((l,r)=>o(l)-o(r)).forEach(el=>document.head.appendChild(el))`;function tu(e,t,n,r,i){if(!e||n!==`body`)return null;let a=Zl(e)?$l:void 0,o=br(e,t,{trailingSlash:r,streamedIconKey:a}),s=a?Ql(t,o):``;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{hidden:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(a?o.replaceAll(`<link data-vinext-streamed-icon="${$l}:`,`<link data-vinext-streamed-icon="${ds(s)}:`):o)+ps(eu,i)}}),(0,q.jsx)(Wc,{metadataKey:s})]})}async function nu(e){try{return tu(await e.metadata,e.pathname,`body`,e.trailingSlash,e.scriptNonce)}catch{return null}}nu.displayName=`Vinext.StreamingMetadata`;async function ru(e){return await e.metadata,null}ru.displayName=`Vinext.MetadataOutlet`;function iu(e,t=!0){if(!e)return null;let n=(0,q.jsx)(Uc,{id:e});return t?(0,q.jsx)(G.Suspense,{fallback:null,children:n}):n}function au(e){return e?(0,q.jsx)(`div`,{hidden:!0,children:(0,q.jsx)(G.Suspense,{fallback:null,children:(0,q.jsx)(Uc,{id:e})})}):null}function ou(e){let t=e.renderIdentity,n=t?.interceptionContext??e.interceptionContext??null,r=e.renderMode??`navigation`,i=e.route.routeSegments??[],a=Dl(i,e.matchedParams),o=t?.routeId??W.encodeRouteId(e.routePath,n),c=t?.pageId??W.encodePageId(e.routePath,n),l=e.route.childrenSlot?.id??c,d=e.streamingMetadata?`__vinext_streaming_metadata_body:${o}`:null,f=e.streamingMetadataOutlet?`__vinext_streaming_metadata_outlet:${o}`:null,p=Ll(e.route),m=Rl(e.route),h=Hl(e.route),g=Vl(e.route),_=e=>{for(let t=h.length-1;t>=0;t--)if(h[t].treePosition<e)return h[t]},y=e=>{let t;for(let n of h)n.treePosition<=e&&(!t||n.treePosition>t.treePosition)&&(t=n);return t},x=r===He,C=r===u,w=C?Ul(e.route):null,T=e.metadataPlacement??`head`,E=new Map,D=new Map,k=new Map,A=new Map;for(let e of p)E.set(e.treePosition,e);for(let e of m)D.set(e.treePosition,e);for(let e of h)k.set(e.treePosition,e);for(let e of g)A.set(e.treePosition,e);let j=new Map;for(let e=0;e<p.length;e++)j.set(p[e].treePosition,e);let ee=new Map,M=new Map,N=[],te=[],ne=new Map,ie=new Map,I=[],ae=p[0]?.treePath??null,L=new Map;for(let t of Object.values(e.route.slots??{})){let e=t.name;L.set(e,(L.get(e)??0)+1)}let oe=Array.from(new Set([...p.map(e=>e.treePosition),...m.map(e=>e.treePosition),...h.map(e=>e.treePosition),...g.map(e=>e.treePosition)])).sort((e,t)=>e-t),se=(t,n)=>{let r=e.slotOverrides?.[t];if(r)return r;if(t===n||(L.get(n)??0)===1)return e.slotOverrides?.[n]},R=C?Object.entries(e.route.slots??{}).flatMap(([e,t])=>Gl(Wl(t,se(e,t.name)??null))?[{ownerTreePosition:t.ownerTreePosition??0}]:[]):[],ce=C?w?.treePosition??R.reduce((e,t)=>Math.max(e,t.ownerTreePosition),0):null,le=e=>ce===null||e<=ce,z={...W.createMetadataEntries({interception:t?.interception??e.interception??null,interceptionContext:n,layoutIds:e.route.ids?.layouts??p.map(e=>e.id),rootLayoutTreePath:ae,routeId:o,sourcePage:zl(e.sourcePageSegments??i),slotBindings:Yl(e.route,p,se,{interception:t?.interception??e.interception??null,interceptionContext:n,routeId:o,routePath:e.routePath})})};if(x)return z[P]=[],z[v]=null,z[l]=null,z[o]=null,z;e.route.staticSiblings&&e.route.staticSiblings.length>0&&(z[S]=e.route.staticSiblings),e.streamingMetadata&&d&&(z[d]=(0,q.jsx)(nu,{metadata:e.streamingMetadataTags??e.streamingMetadata,pathname:e.resolvedMetadataPathname??e.routePath,scriptNonce:e.scriptNonce,trailingSlash:e.trailingSlash})),e.streamingMetadataOutlet&&f&&(z[f]=(0,q.jsx)(ru,{metadata:e.streamingMetadataOutlet}));let ue=(t,n)=>se(t,n)?.params??e.matchedParams;for(let e of oe){if(C&&!le(e))continue;let t=j.get(e);if(t!==void 0){let e=p[t];if(N[t]=[...I],J(e.layoutModule)){let n=F();ee.set(t,n),M.set(e.id,n),I.push(n)}te[t]=[...I]}let n=D.get(e);if(!n||!J(n.templateModule))continue;let r=F();ne.set(n.id,r),ie.set(n.id,[...I]),I.push(r)}let de=J(e.route.loading),fe=J(w?.loadingModule);C&&(fe!==null||R.length>0)&&(z[b]=`LoadingBoundary`),z[l]=C?null:O(e.element,I);for(let t of m){if(C&&!le(t.treePosition))continue;let n=J(t.templateModule);if(!n)continue;let r=n,o=ne.get(t.id),c=o?s((0,q.jsx)(r,{children:(0,q.jsx)(Vc,{})}),o):(0,q.jsx)(r,{children:(0,q.jsx)(Vc,{})}),l=_(t.treePosition),u=J(l?.loadingModule);if(u&&l){let t=u,n=El(i,l.treePosition,e.matchedParams);c=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:c},n||a)}z[t.id]=O(c,ie.get(t.id)??[])}for(let t=0;t<p.length;t++){let n=p[t];if(C&&!le(n.treePosition))continue;let r=J(n.layoutModule);if(!r)continue;let o=mc(e.route.routeSegments,n.treePosition,e.matchedParams);Fl({layoutId:n.id,layoutModule:n.layoutModule,layoutParamAccess:e.layoutParamAccess,routeSegments:e.route.routeSegments,treePosition:n.treePosition});let c={params:e.makeThenableParams(o,e.layoutParamAccess?.createThenableParamsObserver(n.id))};for(let n of Object.values(e.route.slots??{})){let e=n.name;(n.layoutIndex>=0?n.layoutIndex:p.length-1)===t&&(c[e]=(0,q.jsx)(Hc,{name:e}))}let l=r,u=ee.get(t),d=u?s((0,q.jsx)(l,{...c,children:(0,q.jsx)(Vc,{})}),u):(0,q.jsx)(l,{...c,children:(0,q.jsx)(Vc,{})}),f=_(n.treePosition),m=J(f?.loadingModule);if(m&&f){let t=m,n=El(i,f.treePosition,e.matchedParams);d=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:d},n||a)}z[n.id]=O(d,N[t]??[])}for(let[t,n]of Object.entries(e.route.slots??{})){let r=n.name,a=n.layoutIndex>=0?n.layoutIndex:p.length-1,o=p[a]?.treePosition??0,s=n.ownerTreePosition??o,c=C&&w!==null&&s===w.treePosition;if(C&&(w?s>w.treePosition:!le(o)))continue;let l=ql(n,p[a]?.treePath??`/`),u=se(t,r),d=ue(t,r),f=u?.routeSegments??n.routeSegments??[],m=mc(e.route.routeSegments,p[a]?.treePosition??0,e.matchedParams),h=Dl(f,d),g=u?.pageModule!=null||u?.layoutModules!==void 0,_=Wl(n,g?u??null:null),v=c?w:C?Gl(_):null;if(C&&v===null)continue;let b=J(u?.pageModule)??J(n.page),x=J(n.default);if(!b&&x&&e.isRscRequest&&e.mountedSlotIds?.has(l))continue;let S=b??x;if(!S&&!c){z[l]=W.unmatchedSlotValue;continue}let T;if(v)T=(0,q.jsx)(J(v.loadingModule),{});else{let t={params:e.makeThenableParams(d)};e.searchParams!==void 0&&(t.searchParams=e.searchParams),u?.props&&Object.assign(t,u.props),T=e.createPageElement?e.createPageElement(S,t):(0,q.jsx)(S,{...t}),b&&(T=(0,q.jsx)(G.Fragment,{children:T},h))}let E=u?.branchSegments??f,D=new Map,k=(e,t)=>{let n=D.get(e)??[];n.push(t),D.set(e,n)};if(g)for(let[e,t]of(u?.layoutModules??[]).entries()){let n=J(t);if(!n)continue;let r=u?.layoutSegments?.[e]?.length??E.length;k(r,{component:n,params:jl(E,r,d)})}else for(let[e,t]of(n.configLayouts??[]).entries()){let r=J(t);if(!r)continue;let i=n.configLayoutTreePositions?.[e]??0;k(i,{component:r,params:{...m,...jl(f,i,d)}})}let A=b?J(n.layout):null;if(A){let e=D.get(0)??[];D.set(0,[{component:A,params:m},...e])}let j=new Map;for(let e of _){let t=J(e.loadingModule);if(!t)continue;let n=j.get(e.treePosition)??[];n.push(t),j.set(e.treePosition,n)}let ee=Ml(n.error),M=Array.from(new Set([...D.keys(),...j.keys(),...ee?[0]:[]])).filter(e=>!v||!c&&e<=v.treePosition).sort((e,t)=>e-t);for(let t=M.length-1;t>=0;t--){let n=M[t],r=v?[]:j.get(n)??[];for(let e=r.length-1;e>=0;e--){let t=r[e],i=El(E,n,d);T=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:T},i||h)}n===0&&ee&&(T=(0,q.jsx)(rc,{resetKey:h,fallback:ee,children:T}));let i=D.get(n)??[];for(let t=i.length-1;t>=0;t--){let n=i[t],r=n.component;T=(0,q.jsx)(r,{params:e.makeThenableParams(n.params),children:T})}}let N=C?void 0:y(s),P=J(N?.loadingModule);if(P&&N){let t=P,n=El(i,N.treePosition,e.matchedParams);T=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:T},n||h)}z[l]=O(T,a>=0?te[a]??[]:[])}let B=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(uc,{providerId:l,segmentMap:{children:[vl]},children:(0,q.jsx)(Uc,{id:l})}),iu(f,e.streamingMetadataOutletSuspended)]});C?B=fe===null?null:(0,q.jsx)(fe,{}):(B=(0,q.jsx)(sc,{children:B}),de&&(B=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(de,{}),children:B},a)),B=(0,q.jsx)(Ic,{children:B}));let pe=g.length>0?g[g.length-1].errorModule:null,me=J(e.route.notFound)??J(e.rootNotFoundModule),V=me===null?p[0]?.id??null:null,he=me??(V===null?Al:null);he&&(B=(0,q.jsx)(oc,{resetKey:a,fallback:(0,q.jsx)(he,{}),children:B}));let ge=J(e.route.forbidden)??J(e.rootForbiddenModule);ge&&(B=(0,q.jsx)(ic,{resetKey:a,fallback:(0,q.jsx)(ge,{}),children:B}));let _e=J(e.route.unauthorized)??J(e.rootUnauthorizedModule);_e&&(B=(0,q.jsx)(lc,{resetKey:a,fallback:(0,q.jsx)(_e,{}),children:B}));let ve=Ml(e.route.error);ve&&e.route.error!==pe&&(B=(0,q.jsx)(rc,{resetKey:a,fallback:ve,children:B}));let ye=C?oe.filter(le):oe;for(let t=ye.length-1;t>=0;t--){let n=ye[t],r=El(i,n,e.matchedParams),o=B,s=E.get(n),c=D.get(n),l=k.get(n),u=A.get(n);if(!C&&n<i.length){let e=J(l?.loadingModule);e&&(o=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(e,{}),children:o},r||a))}if(s){let e=J(s.notFoundModule)??(s.id===V?Al:null);e&&(o=(0,q.jsx)(oc,{resetKey:r,fallback:(0,q.jsx)(e,{}),children:o}));let t=J(s.forbiddenModule);t&&(o=(0,q.jsx)(ic,{resetKey:r,fallback:(0,q.jsx)(t,{}),children:o}));let n=J(s.unauthorizedModule);n&&(o=(0,q.jsx)(lc,{resetKey:r,fallback:(0,q.jsx)(n,{}),children:o}))}let d=Ml(u?.errorModule??s?.errorModule);if(d&&(o=(0,q.jsx)(rc,{resetKey:r,fallback:d,children:o})),c&&J(c.templateModule)&&(o=(0,q.jsx)(Uc,{id:c.id,children:o},r)),!s){B=o;continue}let f=J(s.layoutModule)!==null,m=j.get(n)??-1,h={children:Bl(e.route.childrenRouteSegments??i,s.treePosition,e.matchedParams)};for(let[t,n]of Object.entries(e.route.slots??{})){let r=n.name;if((n.layoutIndex>=0?n.layoutIndex:p.length-1)!==m)continue;let i=ue(t,r),a=se(t,r);if(!(J(a?.pageModule)!==null||J(n.page)!==null)&&e.isRscRequest&&e.mountedSlotIds?.has(ql(n,s.treePath)))continue;let o=a?.routeSegments??n.routeSegments;h[r]=o?Bl(o,0,i):[]}B=(0,q.jsx)(uc,{providerId:s.id,segmentMap:h,children:f?(0,q.jsx)(Uc,{id:s.id,parallelSlots:Kl(m,p,e.route,ue,se),children:o}):o})}let be=Ml(e.globalErrorModule);return B=(0,q.jsx)(ac,{fallback:kl,children:be?(0,q.jsx)(rc,{fallback:be,children:B}):B}),z[o]=(0,q.jsxs)(q.Fragment,{children:[Xl(e.resolvedMetadata,e.resolvedViewport,e.resolvedMetadataPathname??e.routePath,T,e.trailingSlash),B,tu(e.resolvedMetadata,e.resolvedMetadataPathname??e.routePath,T,e.trailingSlash,e.scriptNonce),au(d)]}),re(z,M),z}function su(e){return e!=null}function cu(e,t){let n=e.routeSegments??[],r=[];for(let[t,i]of e.layoutModules.entries()){if(!su(i))continue;let a=e.layoutTreePositions?.[t]??0;r.push({kind:`source`,source:{includeWhenEmpty:!0,module:i,params:mc(n,a,e.params),routeSegments:n.slice(0,a)}})}let i=e.boundaryModule,a=e.boundaryParams,o=n,s=()=>{if(t===`final`){r.push({kind:`fallback-leaf`});return}i&&r.push({kind:`source`,source:{includeWhenEmpty:!0,module:i,params:a,routeSegments:o}})};e.primaryParallelBranch||s();let c=[...e.primaryParallelBranch?[e.primaryParallelBranch]:[],...[...e.parallelBranches??[]].sort((e,t)=>t.ownerTreePosition-e.ownerTreePosition)];for(let t of c){let c=t.head,l=c.params??e.params,u=c.routeSegments??n,d=[...c.layoutModules??[],c.layoutModule].filter(su),f=c.layoutTreePositions??[],p=c.layoutParams??[];for(let[e,t]of d.entries())r.push({kind:`source`,source:{includeWhenEmpty:!0,module:t,params:p[e]??hc(u,f[e]??0,l),routeSegments:u}});e.branchNotFoundConventions!==!1&&t.notFoundModule&&(i=t.notFoundModule,a=t.notFoundParams??l,o=u),s()}return r.flatMap(e=>e.kind===`source`?[e.source]:i?[{includeWhenEmpty:!0,module:i,params:a,routeSegments:o}]:[])}function lu(e){return cu(e,`final`)}function uu(e){return Mc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath,fallbackOnFileMetadataError:e.fallbackOnFileMetadataError,metadataRoutes:e.metadataRoutes,params:e.params,routePath:e.routePath,routeSegments:e.routeSegments,sources:lu(e)})}async function du(e){let t=Promise.resolve(Ln([]));for(let n of cu(e,`snapshot`)){let e=t,r=Fn(n.module,n.params,void 0,e);r.catch(()=>null),t=Promise.all([e,r]).then(([e,t])=>t?Ln([e,t]):e),t.catch(()=>null)}return t}function fu(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function pu(e){let t=fu();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:fu()}),r=r.dynamicChild.node,t===e.length-1&&r.route===null&&(r.route=n);continue}let a=r.staticChildren.get(i);a||(a=fu(),r.staticChildren.set(i,a)),r=a,t===e.length-1&&r.route===null&&(r.route=n)}}return t}function mu(e,t){return hu(e,t,0,[])}function hu(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Xr(r)}:{route:e.route,params:Xr(r)};let i=t[n],a=e.staticChildren.get(i);if(a){let e=hu(a,t,n+1,r);if(e!==null)return e}if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=hu(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=t.slice(n),a=Xr(r);return a[e.catchAllChild.paramName]=i,{route:e.catchAllChild.route,params:a}}if(e.optionalCatchAllChild!==null){let i=Xr(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function gu(e,t){let n=_u(e,t);return n&&Zr(n),n}function _u(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 vu(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}var yu=`__vinext_page_intercept`;function bu(){return Object.create(null)}function xu(e,t=!1){let n=e.split(`?`)[0],r=n===`/`?`/`:n.replace(/\/$/,``);return t?Qr(r):qr(r)}function Su(e){let t=e.split(`?`)[0];return Qr(t===`/`?`/`:t.replace(/\/$/,``)).map(e=>{try{return decodeURIComponent(e)}catch{return e}})}function Cu(e){try{return encodeURIComponent(decodeURIComponent(e))}catch{return e}}function wu(e){for(let t of Object.keys(e)){let n=e[t];e[t]=Array.isArray(n)?n.map(Cu):Cu(n)}}function Tu(e){return e.routeHandler!=null||typeof e.__loadRouteHandler==`function`}function Eu(e){Tu(e.route)?Zr(e.params):wu(e.params)}function Du(e,t){let n=bu(),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 Ou(e){let t=pu(e),n=Mu(e),r=new Map(e.map((e,t)=>[e,t]));return{matchRoute(e){let n=xu(e,!0),r=mu(t,xu(e,!1));return r?(r.params=Du(r.route.patternParts,n),Eu(r),r):null},matchRequestRoute(e){let n=mu(t,xu(e,!0));return n?(Eu(n),n):null},findIntercept(i,a=null){if(a===null)return null;let o=xu(i,!0),s=Su(a),c=mu(t,s);for(let t of n){if(!ku(s,t))continue;let n=_u(o,t.targetPatternParts);if(n===null)continue;wu(n);let i=c&&t.sourceMatchPatternParts!==null?r.get(c.route)??t.sourceRouteIndex:t.sourceRouteIndex,a=e[i],l=c&&t.sourceMatchPatternParts!==null?c.params:a?_u(s,a.patternParts):null;if(l===null&&t.sourceMatchPatternParts===null)continue;let u=l&&t.sourceMatchPatternParts!==null?Pu(l,t.sourceMatchPatternParts):l??bu();return{...t,page:t.__loadState.page,sourceRouteIndex:i,matchedParams:Nu(u,n),sourceMatchedParams:l??bu()}}return null}}}function ku(e,t){let n=t.sourceMatchPatternParts;return!n||n.length===0||vu(e,n)}function Au(e){return e.startsWith(`:`)?e.endsWith(`*`)?3:e.endsWith(`+`)?2:1:0}function ju(e,t){let n=Math.min(e.targetPatternParts.length,t.targetPatternParts.length);for(let r=0;r<n;r++){let n=e.targetPatternParts[r],i=t.targetPatternParts[r],a=Au(n)-Au(i);if(a!==0)return a;if(n!==i)return n.localeCompare(i)}let r=e.targetPatternParts.length-t.targetPatternParts.length;return r===0?e.targetPattern.localeCompare(t.targetPattern):r}function Mu(e){let t=new Map(e.map((e,t)=>[e.pattern,t])),n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.slots){for(let[e,a]of Object.entries(i.slots))if(a.intercepts)for(let i of a.intercepts){let o=i.sourceMatchPattern??null,s=o?o.split(`/`).filter(Boolean):null,c=o===null?r:t.get(o)??r;n.push({sourceRouteIndex:c,slotKey:e,slotId:typeof a.id==`string`?a.id:null,targetPattern:i.targetPattern,targetPatternParts:i.targetPattern.split(`/`).filter(Boolean),sourceMatchPattern:o,sourceMatchPatternParts:s,sourcePageSegments:i.sourcePageSegments??null,interceptLayouts:i.interceptLayouts,interceptLayoutSegments:i.interceptLayoutSegments,interceptBranchSegments:i.interceptBranchSegments,interceptLoadings:i.interceptLoadings,interceptLoadingTreePositions:i.interceptLoadingTreePositions,interceptNotFoundBranchSegments:i.interceptNotFoundBranchSegments,__loadInterceptLayouts:i.__loadInterceptLayouts,__loadInterceptLoadings:i.__loadInterceptLoadings,page:i.page,__pageLoader:i.__pageLoader,notFound:i.notFound,__loadNotFound:i.__loadNotFound,notFoundTreePosition:i.notFoundTreePosition,__loadState:{page:i.page,pageLoading:null,notFound:i.notFound,notFoundLoading:null,interceptLayoutsLoading:null},params:i.params})}}if(i.siblingIntercepts)for(let e of i.siblingIntercepts){let t=e.sourceMatchPattern??null,i=t?t.split(`/`).filter(Boolean):null;n.push({sourceRouteIndex:r,slotKey:yu,slotId:typeof e.slotId==`string`?e.slotId:null,targetPattern:e.targetPattern,targetPatternParts:e.targetPattern.split(`/`).filter(Boolean),sourceMatchPattern:t,sourceMatchPatternParts:i,sourcePageSegments:e.sourcePageSegments??null,interceptLayouts:e.interceptLayouts,interceptLayoutSegments:e.interceptLayoutSegments,interceptBranchSegments:e.interceptBranchSegments,interceptLoadings:e.interceptLoadings,interceptLoadingTreePositions:e.interceptLoadingTreePositions,interceptNotFoundBranchSegments:e.interceptNotFoundBranchSegments,__loadInterceptLayouts:e.__loadInterceptLayouts,__loadInterceptLoadings:e.__loadInterceptLoadings,page:e.page,__pageLoader:e.__pageLoader,notFound:e.notFound,__loadNotFound:e.__loadNotFound,notFoundTreePosition:e.notFoundTreePosition,__loadState:{page:e.page,pageLoading:null,notFound:e.notFound,notFoundLoading:null,interceptLayoutsLoading:null},params:e.params})}}return n.sort(ju)}function Nu(e,t){return Object.assign(bu(),e,t)}function Pu(e,t){let n=bu();for(let r of t){if(!r.startsWith(`:`))continue;let t=r.endsWith(`+`)||r.endsWith(`*`)?r.slice(1,-1):r.slice(1),i=e[t];i!==void 0&&(n[t]=i)}return n}function Fu(e){let t;return t=e.statusCode===403?e.routeForbiddenModule??e.rootForbiddenModule:e.statusCode===401?e.routeUnauthorizedModule??e.rootUnauthorizedModule:e.routeNotFoundModule??e.rootNotFoundModule,t??null}function Iu(e){return Lu(e).module}function Lu(e){let t=e.routeNotFoundModules,n=e.rootNotFoundModule;if(e.statusCode===403?(t=e.routeForbiddenModules,n=e.rootForbiddenModule):e.statusCode===401&&(t=e.routeUnauthorizedModules,n=e.rootUnauthorizedModule),t)for(let n=e.layoutIndex-1;n>=0;n--){let e=t[n];if(e)return{module:e,layoutIndex:n}}return{module:n??null,layoutIndex:null}}function Ru(e){let t=e.getDefaultExport(e.pageErrorModule);if(t)return{component:t,isGlobalError:!1};let n=e.errorModules??e.layoutErrorModules;if(n)for(let t=n.length-1;t>=0;t--){let r=e.getDefaultExport(n[t]);if(r)return{component:r,isGlobalError:!1}}let r=e.getDefaultExport(e.globalErrorModule);return{component:r??null,isGlobalError:!!r}}function zu(e){let t=e.element;if(!e.skipLayoutWrapping)for(let n=e.layoutModules.length-1;n>=0;n--){let r=e.getDefaultExport(e.layoutModules[n]);if(!r)continue;let i=e.layoutTreePositions?e.layoutTreePositions[n]:0,a=e.makeThenableParams(mc(e.routeSegments,i,e.matchedParams));if(t=e.renderLayout(r,t,a),e.isRscRequest&&e.renderLayoutSegmentProvider&&e.resolveChildSegments){let n=e.resolveChildSegments(e.routeSegments??[],i,e.matchedParams);t=e.renderLayoutSegmentProvider({children:n},t)}}return e.isRscRequest&&e.includeGlobalErrorBoundary&&e.globalErrorComponent&&(t=e.renderErrorBoundary(e.globalErrorComponent,t)),t}async function Bu(e){let t=h(()=>e.renderToReadableStream(e.element,{onError:e.createRscOnErrorHandler()}));if(e.isRscRequest){let n=new Headers({"Content-Type":le,Vary:de});return ra(n,e.isEdgeRuntime),R(n,e.middlewareHeaders??null),Ee(n),Se(n),new Response(t,{status:e.status,headers:n})}return e.createHtmlResponse(t,e.status)}function Vu(e,t,n){return hc(e,t.length,n,t)}var Hu=Symbol.for(`react.client.reference`);function Uu(e){if(typeof e!=`function`)return!0;let t=e;return t.$$typeof===Hu||t.prototype?.isReactComponent!=null}async function Wu(e){let{route:t,params:n,routePath:r,displayPathname:i=r,pageRequest:a,globalErrorModule:o,rootNotFoundModule:s,rootForbiddenModule:c,rootUnauthorizedModule:l,metadataRoutes:u}=e,d=qu(t,r),{opts:f,searchParams:p,isRscRequest:m,mountedSlotsHeader:h,renderMode:g=C,observeMetadataSearchParamsAccess:_=!1,observePageSearchParamsAccess:v=!1,serveStreamingMetadata:y,isProduction:b=!0}=a,x=t.page,S=f?.interceptSlotKey===`__vinext_page_intercept`&&!!f?.interceptPage,w=S?f.interceptPage:x,T=w?.default,E=S?f.interceptParams??n:n,D=S?f?.interceptSourcePageSegments:t.routeSegments,O=!!x,k=ri({displayPathname:i,matchedRoutePathname:r,targetMatchedPathname:r,interceptionContext:f?.interceptionContext??null,interceptSourceMatchedUrl:f?.interceptSourceMatchedUrl??null,interceptSlotId:S?null:f?.interceptSlotId??null});if((O||S)&&!T){let e=null,n=t.ids?.layouts??t.layouts.map((e,n)=>W.encodeLayoutId(Nl(t.routeSegments,t.layoutTreePositions?.[n]??0)));if(t.layouts?.length>0){let n=t.layoutTreePositions?.[0]??0;e=Nl(t.routeSegments,n)}return{...W.createMetadataEntries({interception:k.interception,interceptionContext:k.interceptionContext,layoutIds:n,rootLayoutTreePath:e,routeId:k.routeId,sourcePage:zl(D)}),[k.routeId]:(0,G.createElement)(`div`,null,`Page has no default export`)}}let A=_c({interceptBranchSegments:f?.interceptBranchSegments??null,interceptLayouts:f?.interceptLayouts??null,interceptLayoutSegments:f?.interceptLayoutSegments??null,interceptNotFoundBranchSegments:f?.interceptNotFoundBranchSegments??null,interceptNotFound:f?.interceptNotFound??null,interceptNotFoundTreePosition:f?.interceptNotFoundTreePosition??null,interceptPage:f?.interceptPage??null,interceptParams:f?.interceptParams??null,interceptSlotKey:f?.interceptSlotKey??null,interceptSourcePageSegments:f?.interceptSourcePageSegments??null,layoutTreePositions:t.layoutTreePositions,params:n,routeSegments:t.routeSegments??[],slotParams:d,slots:t.slots??null}),j=S?{head:{layoutModules:f?.interceptLayouts??[],layoutParams:(f?.interceptLayoutSegments??[]).map(e=>Vu(f?.interceptBranchSegments??e,e,E)),pageModule:w??null,params:E,routeSegments:f?.interceptSourcePageSegments??t.routeSegments??[]},...f?.interceptNotFound?{notFoundModule:f.interceptNotFound,notFoundParams:hc(f.interceptNotFoundBranchSegments??f.interceptBranchSegments??t.routeSegments??[],f.interceptNotFoundTreePosition??0,E)}:{},ownerTreePosition:t.routeSegments?.length??0}:null,ee=[...j?[j.head]:[],...A.map(e=>e.head)],M=_?Jc():void 0,N=Pc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,layoutModules:t.layouts,layoutTreePositions:t.layoutTreePositions,metadataRoutes:u,pageModule:S?null:w??null,parallelRoutes:ee,params:E,routePath:t.pattern,routeSegments:t.routeSegments??null,searchParams:p,searchParamsObserver:M}),{hasDynamicMetadata:te,pageSearchParams:P}=N,F=y??nc(a.request.headers.get(`user-agent`)??``,e.htmlLimitedBots),ne=te&&F?`body`:`head`,re=ne===`body`,ie=re?b?N.metadata.catch(e=>{throw Js(e,`production`)}):N.metadata:null;ie?.catch(()=>null);let I=()=>{let e=t.notFound,n=Lu({layoutIndex:t.layouts.length,rootForbiddenModule:c,rootNotFoundModule:s,rootUnauthorizedModule:l,routeForbiddenModules:t.forbiddens,routeNotFoundModules:t.notFounds,routeUnauthorizedModules:t.unauthorizeds,statusCode:404}),r=e??n.module,i=e?t.notFoundTreePosition:n.layoutIndex===null?null:t.layoutTreePositions?.[n.layoutIndex];return{boundaryModule:r,boundaryParams:r&&i!=null?mc(t.routeSegments??[],i,E):{},layoutModules:t.layouts,layoutTreePositions:t.layoutTreePositions,parallelBranches:A,params:E,primaryParallelBranch:j,routeSegments:t.routeSegments??null}},ae=null,L=null,oe=async n=>Es(n)?.kind===`http-access-fallback`?uu({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,...I(),metadataRoutes:u,routePath:t.pattern}).catch(()=>null):null,[se,R]=await Promise.all([re?Promise.resolve(null):N.metadata.catch(e=>(L=Promise.reject(b?Js(e,`production`):e),L.catch(()=>null),oe(e))),N.viewport.catch(async e=>{let t=Es(e);return ae=Promise.reject(b?Js(e,`production`):e),ae.catch(()=>null),t?.kind===`http-access-fallback`?du(I()).catch(()=>({})):{}})]),ce=re?N.metadata.catch(oe):null,le=[ie,L,ae].filter(e=>e!==null).map(e=>Promise.resolve(e)),z=le.length>0?Promise.all(le).then(()=>null):null;z?.catch(()=>null);let ue={params:K(E)},de=Object.keys(P).length>0,fe=(e,t)=>{if(Uu(e)){let n={...t};return p&&(n.searchParams=v?Yc(P,{markDynamic:de}):K(P)),(0,G.createElement)(e,n)}let n=e;return(0,G.createElement)(()=>{let e={...t};return p&&(e.searchParams=v?Yc(P):K(P)),n(e)})},B=p?K(P):void 0,pe=h?new Set(h.split(` `)):null,me=Gu(t,n,r,f),V=S&&T?fe(T,ue):null;if(S&&V!==null){let e=new Map;for(let[t,n]of(f?.interceptLayouts??[]).entries()){if(!n?.default)continue;let r=f?.interceptLayoutSegments?.[t]?.length??0,i=e.get(r)??[];i.push(t),e.set(r,i)}let t=new Map;for(let[e,n]of(f?.interceptLoadings??[]).entries()){if(!n?.default)continue;let r=f?.interceptLoadingTreePositions?.[e];r!==void 0&&t.set(r,e)}let n=Array.from(new Set([...e.keys(),...t.keys()])).sort((e,t)=>e-t);for(let r=n.length-1;r>=0;r--){let i=n[r],a=t.get(i),o=a===void 0?null:f?.interceptLoadings?.[a]?.default;o&&(V=(0,G.createElement)(G.Suspense,{fallback:(0,G.createElement)(o)},V));let s=e.get(i)??[];for(let e=s.length-1;e>=0;e--){let t=s[e],n=f?.interceptLayouts?.[t]?.default;if(!n)continue;let r=f?.interceptLayoutSegments?.[t]??[];V=(0,G.createElement)(n,{params:K(Vu(f?.interceptBranchSegments??r,r,E))},V)}}}return ou({element:S?V:T?fe(T,ue):null,createPageElement:fe,globalErrorModule:o??Qs,isRscRequest:m,layoutParamAccess:e.layoutParamAccess,mountedSlotIds:pe,makeThenableParams:K,matchedParams:n,metadataPlacement:ne,resolvedMetadata:se,resolvedMetadataPathname:r,resolvedViewport:R,scriptNonce:e.scriptNonce,streamingMetadata:ie,streamingMetadataOutlet:z,streamingMetadataOutletSuspended:F,streamingMetadataTags:ce,renderIdentity:k,routePath:r,sourcePageSegments:D,rootNotFoundModule:s??null,rootForbiddenModule:c??null,rootUnauthorizedModule:l??null,route:t,searchParams:B,slotOverrides:me,renderMode:g,trailingSlash:e.trailingSlash})}function Gu(e,t,n,r){let i={};r&&r.interceptSlotKey&&r.interceptPage&&r.interceptSlotKey!==`__vinext_page_intercept`&&(i[r.interceptSlotKey]={branchSegments:r.interceptBranchSegments??null,layoutModules:r.interceptLayouts||null,layoutSegments:r.interceptLayoutSegments??null,loadingModules:r.interceptLoadings||null,loadingTreePositions:r.interceptLoadingTreePositions??null,pageModule:r.interceptPage,params:r.interceptParams||t,routeSegments:Ku(r.interceptSourcePageSegments,r.interceptSlotKey)});let a=qu(e,n);for(let[e,t]of Object.entries(a??{})){let n=i[e];i[e]=n?{...n,params:n.params??t}:{params:t}}return Object.keys(i).length>0?i:null}function Ku(e,t){if(!e)return null;let n=[{prefix:`(...)`,levels:1/0},{prefix:`(..)(..)`,levels:2},{prefix:`(..)`,levels:1},{prefix:`(.)`,levels:0}],r=e.findIndex(e=>n.some(({prefix:t})=>e.startsWith(t)));if(r<0)return null;let i=t.indexOf(`@`),a=(i>=0?t.slice(i+1):``).split(`/`).filter(Boolean),o=a.length;if(o===0||o>r||!a.every((t,n)=>e[n]===t)){let t=null;for(let e=a.length-1;e>=0;e--)if(a[e].startsWith(`@`)){t=a[e];break}let n=-1;if(t){for(let i=r-1;i>=0;i--)if(e[i]===t){n=i;break}}if(n<0)return null;o=n+1}let s=e.slice(o,r).filter(e=>!e.startsWith(`@`)&&!(e.startsWith(`(`)&&e.endsWith(`)`))),c=e[r],l=n.find(({prefix:e})=>c.startsWith(e));if(!l)return null;Number.isFinite(l.levels)?s.splice(Math.max(0,s.length-l.levels),l.levels):s.length=0;let u=c.slice(l.prefix.length);return u&&s.push(u),s.push(...e.slice(r+1).filter(e=>!e.startsWith(`@`)&&!(e.startsWith(`(`)&&e.endsWith(`)`)))),s}function qu(e,t){let n={},r=e.slots;if(r){let i=null,a=Qu(e.params);for(let[e,o]of Object.entries(r)){let r=o.slotPatternParts,s=o.slotParamNames;if(!r||r.length===0||s&&s.every(e=>a.has(e)))continue;i===null&&(i=t.split(`/`).filter(Boolean));let c=gu(i,r);c&&(n[e]=c)}}return Object.keys(n).length>0?n:null}function Ju(e,t){for(let[n,r]of Object.entries(t))e[n]=r}function Yu(e){return typeof e==`object`&&!!e}function Xu(e){return Yu(e)?e?.default!==null&&e?.default!==void 0:!1}function Zu(e,t,n,r){let i={...t},a=qu(e,n);for(let[n,o]of Object.entries(e.slots??{})){let e=r?.interceptSlotKey===n&&r.interceptSlotKey!==`__vinext_page_intercept`&&Xu(r.interceptPage);!e&&!Xu(o.page)&&!Xu(o.default)||Ju(i,e?r?.interceptParams??t:a?.[n]??t)}return i}function Qu(e){let t=new Set;if(e)for(let n of e)t.add(n);return t}function $u(e,t){let n=!1,r=()=>{n||(n=!0,t())},i=new TransformStream({flush(){r()}}),a=e.pipeThrough(i).getReader();return new ReadableStream({pull(e){return a.read().then(({done:t,value:n})=>{t?e.close():e.enqueue(n)},t=>{r(),e.error(t)})},cancel(e){return r(),a.cancel(e)}})}function ed(e){return typeof e==`object`&&!!e&&`htmlStream`in e&&`metadataReady`in e}var td=Promise.resolve();function nd(e,t=null){return ed(e)?e:{htmlStream:e,metadataReady:td,capturedRscData:t,shellErrorRecovered:!1}}function rd(e,t,n){let r=typeof n==`number`?n:6e3;if(r<=0)return``;let i=[];for(let n of[e,t])if(n)for(let e of n.split(`, `))e.length>0&&i.push(e);let a=``;for(let e of i){let t=a.length===0?e:`${a}, ${e}`;if(t.length>r)break;a=t}return a}function id(e){return{links:e.getLinks(),preloads:e.getPreloads(),styles:e.getStyles()}}async function ad(e){let t={formState:e.formState??null,scriptNonce:e.scriptNonce,basePath:e.basePath,clientTraceMetadata:e.clientTraceMetadata,reactMaxHeadersLength:e.reactMaxHeadersLength,rootParams:e.rootParams,sideStream:e.sideStream,capturedRscDataRef:e.capturedRscDataRef,pprFallbackShellSignal:e.pprFallbackShellSignal,waitForAllReady:e.waitForAllReady,initialDevServerError:e.initialDevServerError,fallbackToErrorDocumentOnShellError:e.fallbackToErrorDocumentOnShellError??(e.waitForAllReady!==!0&&e.hasCustomGlobalError===!1),dynamicStaleTimeSeconds:e.dynamicStaleTimeSeconds,getInitialNavigationCacheMetadata:e.getInitialNavigationCacheMetadata};return nd(await e.ssrHandler.handleSsr(e.rscStream,e.navigationContext,e.fontData,t),e.capturedRscDataRef?.value??null)}async function od(e){let{htmlStream:t}=await ad(e),n=$u(t,()=>{e.clearRequestContext()}),r=new Headers({"Content-Type":`text/html; charset=utf-8`,Vary:de});return ra(r,e.isEdgeRuntime),e.fontLinkHeader&&r.set(`Link`,e.fontLinkHeader),R(r,e.middlewareHeaders??null),new Response(n,{status:e.status,headers:r})}async function sd(e){try{let{htmlStream:t,metadataReady:n,capturedRscData:r,linkHeader:i,shellErrorRecovered:a}=nd(await e.renderHtmlStream());return e.onShellRendered?.(),{htmlStream:t,response:null,metadataReady:n,capturedRscData:r,shellErrorRecovered:a===!0,linkHeader:i}}catch(t){let n=e.resolveSpecialError(t);if(n)return{htmlStream:null,response:await e.renderSpecialErrorResponse(n),metadataReady:td,capturedRscData:null,shellErrorRecovered:!1};let r=await e.renderErrorBoundaryResponse(t);if(r)return{htmlStream:null,response:r,metadataReady:td,capturedRscData:null,shellErrorRecovered:!1};throw t}}function cd(e){let t=null,n=null;return{getCapturedError(){return t},getCapturedSpecialError(){return n},onRenderError(r,i,a){return ls(r)?n===null&&(n=r):t=r,e(r,i,a)}}}var ld=Zs;function ud(e){return e?.default??null}function dd(e,t,n){if(!e||!t)return null;let r=n===403?e.forbidden:n===401?e.unauthorized:e.notFound,i=n===403?e.forbiddens:n===401?e.unauthorizeds:e.notFounds;if(t===r&&n===404)return e.notFoundTreePosition??null;if(t===r&&n===403)return e.forbiddenTreePosition??null;if(t===r&&n===401)return e.unauthorizedTreePosition??null;for(let n=(i?.length??0)-1;n>=0;n--)if(i?.[n]===t)return e.layoutTreePositions?.[n]??null;return null}function fd(e){return zu({element:e.element,getDefaultExport:ud,globalErrorComponent:ud(e.globalErrorModule),includeGlobalErrorBoundary:e.includeGlobalErrorBoundary,isRscRequest:e.isRscRequest,layoutModules:e.layoutModules,layoutTreePositions:e.layoutTreePositions,makeThenableParams:e.makeThenableParams,matchedParams:e.matchedParams,renderErrorBoundary(e,t){return(0,G.createElement)(ac,{fallback:ld,children:(0,G.createElement)(rc,{fallback:e,children:t})})},renderLayout(e,t,n){return(0,G.createElement)(e,{children:t,params:n})},renderLayoutSegmentProvider(e,t){return(0,G.createElement)(uc,{segmentMap:e},t)},resolveChildSegments:e.resolveChildSegments,routeSegments:e.routeSegments??[],skipLayoutWrapping:e.skipLayoutWrapping})}function pd(e,t){return!e||t.length===0?[]:Ll({errors:e.errors,layoutTreePositions:e.layoutTreePositions,layouts:t,notFounds:null,routeSegments:e.routeSegments})}function md(e,t){if(!e?.routeSegments)return;if(!e.layouts||t.length>=e.layouts.length)return e.routeSegments;let n=t.length-1;if(n<0)return[];let r=e.layoutTreePositions?.[n]??0;return e.routeSegments.slice(0,r)}function hd(e,t){return!e?.layouts||t.length>=e.layouts.length?e?.layoutTreePositions:e.layoutTreePositions?.slice(0,t.length)}function gd(e){let t=W.encodeRouteId(e.pathname,null),n=pd(e.route,e.layoutModules),r=e.sourcePageSegments??e.route?.routeSegments;return{...W.createMetadataEntries({interceptionContext:null,layoutIds:n.map(e=>e.id),rootLayoutTreePath:n[0]?.treePath??null,routeId:t,sourcePage:r?zl(r):null}),[t]:e.element}}function _d(e,t){return As({basePath:e.basePath,buildRscRedirectFlightStream:t=>xs({renderToReadableStream:e.renderToReadableStream,digest:t.digest}),clearRequestContext:e.clearRequestContext,getAndClearPendingCookies:e.getAndClearPendingCookies,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareContext:e.middlewareContext,serveStreamingMetadata:e.serveStreamingMetadata,request:e.request,specialError:t})}async function vd(e){let t=new URL(e.requestUrl),n=t.pathname,r=gd({element:e.element,layoutModules:e.layoutModules,pathname:n,route:e.route,sourcePageSegments:e.sourcePageSegments}),i=cd(e.createRscOnErrorHandler(n,e.routePattern??n)),a=e=>Es(e)??Es(i.getCapturedSpecialError()),o=t=>_d(e,t),s=e.handleSpecialErrors===!0,c;try{c=await Bu({async createHtmlResponse(r,i){let a=id({getLinks:e.getFontLinks,getPreloads:e.getFontPreloads,getStyles:e.getFontStyles}),o=await e.loadSsrHandler();return od({clearRequestContext:e.clearRequestContext,fontData:a,fontLinkHeader:e.buildFontLinkHeader(a.preloads),isEdgeRuntime:e.isEdgeRuntime,middlewareHeaders:e.middlewareContext.headers,navigationContext:e.getNavigationContext()??{pathname:n,searchParams:t.searchParams,params:e.navigationParams??e.route?.params??{}},rscStream:r,scriptNonce:e.scriptNonce,ssrHandler:o,status:i,initialDevServerError:e.initialDevServerError})},createRscOnErrorHandler(){return i.onRenderError},element:r,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareHeaders:e.middlewareContext.headers,renderToReadableStream:e.renderToReadableStream,status:e.status})}catch(e){let t=s?a(e):null;if(t!==null)return o(t);throw e}if(!s)return c;if(e.isRscRequest&&c.body){let e=await Is(c.body);c=new Response(e,{status:c.status,headers:c.headers})}let l=a();if(!l)return c;if(c.body)try{await c.body.cancel()}catch{}return o(l)}async function yd(e){let t=Fu({rootForbiddenModule:e.rootForbiddenModule,rootNotFoundModule:e.rootNotFoundModule,rootUnauthorizedModule:e.rootUnauthorizedModule,routeForbiddenModule:e.route?.forbidden,routeNotFoundModule:e.route?.notFound,routeUnauthorizedModule:e.route?.unauthorized,statusCode:e.statusCode}),n=e.boundaryModule??t,r=e.boundaryComponent??ud(n);if(!r)return null;let i=e.layoutModules??e.route?.layouts??e.rootLayouts,a=new URL(e.requestUrl).pathname,o=e.routePathname??Be(Et(a,e.basePath??``)),s=md(e.route,i),c=s??[],l;try{if([401,403,404].includes(e.statusCode)){let t=dd(e.route,n,e.statusCode),r=t==null?{}:mc(c,t,e.matchedParams),u=e.intercept,d=u?.interceptSlotKey===`__vinext_page_intercept`&&u.interceptPage!=null,f=d?u.interceptParams??e.matchedParams:e.matchedParams,p=qu({slots:e.route?.slots??null},o),m=_c({interceptBranchSegments:u?.interceptBranchSegments??null,interceptLayouts:u?.interceptLayouts??null,interceptLayoutSegments:u?.interceptLayoutSegments??null,interceptNotFoundBranchSegments:u?.interceptNotFoundBranchSegments??null,interceptNotFound:u?.interceptNotFound??null,interceptNotFoundTreePosition:u?.interceptNotFoundTreePosition??null,interceptPage:u?.interceptPage??null,interceptParams:u?.interceptParams??null,interceptSlotKey:u?.interceptSlotKey??null,interceptSourcePageSegments:u?.interceptSourcePageSegments??null,layoutTreePositions:e.route?.layoutTreePositions,params:e.matchedParams,routeSegments:c,slotParams:p,slots:e.route?.slots??null}),h=d?{head:{layoutModules:u?.interceptLayouts??[],layoutParams:(u?.interceptLayoutSegments??[]).map(e=>hc(u?.interceptBranchSegments??e,e.length,f,e)),pageModule:u?.interceptPage??null,params:f,routeSegments:u?.interceptSourcePageSegments??c},...u?.interceptNotFound?{notFoundModule:u.interceptNotFound,notFoundParams:hc(u.interceptNotFoundBranchSegments??u.interceptBranchSegments??c,u.interceptNotFoundTreePosition??0,f)}:{},ownerTreePosition:c.length}:null,g={boundaryModule:n,boundaryParams:r,branchNotFoundConventions:e.statusCode===404,layoutModules:i,layoutTreePositions:hd(e.route,i),parallelBranches:m,params:e.matchedParams,primaryParallelBranch:h,routeSegments:s},[_,v]=await Promise.all([uu({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,...g,metadataRoutes:e.metadataRoutes,routePath:e.route?.pattern??a}),du(g)]);l={metadata:_,viewport:v}}else l=await Nc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,layoutModules:i,layoutTreePositions:hd(e.route,i),metadataRoutes:e.metadataRoutes,pageModule:n,params:e.matchedParams,routePath:e.route?.pattern??a,routeSegments:s})}catch(t){let n=Es(t);if(n)return _d(e,n);throw t}let{metadata:u,viewport:d}=l,f=[(0,G.createElement)(`meta`,{charSet:`utf-8`,key:`charset`}),(0,G.createElement)(`meta`,{key:`robots`,name:`robots`,content:`noindex`})];u&&f.push((0,G.createElement)(xr,{key:`metadata`,metadata:u,pathname:a,trailingSlash:e.trailingSlash})),f.push((0,G.createElement)(zn,{key:`viewport`,viewport:d}));let p=e.skipLayoutWrapping??!1,m=fd({element:(0,G.createElement)(G.Fragment,null,...f,(0,G.createElement)(r)),globalErrorModule:e.globalErrorModule,includeGlobalErrorBoundary:!0,isRscRequest:e.isRscRequest,layoutModules:i,layoutTreePositions:e.route?.layoutTreePositions,makeThenableParams:e.makeThenableParams,matchedParams:e.matchedParams,resolveChildSegments:e.resolveChildSegments,routeSegments:e.route?.routeSegments,skipLayoutWrapping:p});return vd({...e,element:m,handleSpecialErrors:!0,layoutModules:p?[]:i,navigationParams:e.matchedParams,route:p?null:e.route,routePattern:e.route?.pattern,status:e.statusCode})}async function bd(e){let t=Ru({getDefaultExport:ud,errorModules:e.route?.errorPaths,globalErrorModule:e.globalErrorModule,layoutErrorModules:e.route?.errors,pageErrorModule:e.route?.error});if(!t.component)return null;let n=e.error instanceof Error?e.error:Error(String(e.error));Sd(n);let r=e.errorOrigin===`ssr`?n:e.sanitizeErrorForClient(n),i=e.matchedParams??e.route?.params??{},a=e.route?.layouts??e.rootLayouts,o=new URL(e.requestUrl).pathname,s=[(0,G.createElement)(`meta`,{charSet:`utf-8`,key:`charset`})];if(!t.isGlobalError)try{let{metadata:t,viewport:n}=await Nc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,fallbackOnFileMetadataError:!0,layoutModules:a,layoutTreePositions:e.route?.layoutTreePositions,metadataRoutes:e.metadataRoutes,params:i,routePath:e.route?.pattern??o,routeSegments:e.route?.routeSegments});t&&s.push((0,G.createElement)(xr,{key:`metadata`,metadata:t,pathname:o,trailingSlash:e.trailingSlash})),s.push((0,G.createElement)(zn,{key:`viewport`,viewport:n}))}catch(t){console.error(`[vinext] App page error boundary head resolution failed for ${e.route?.pattern??o}:`,t)}let c=n=>{let o={digest:`digest`in r?String(r.digest):void 0,message:r.message,name:r.name,stack:void 0},c=t.isGlobalError&&n!==ld?(0,G.createElement)(cc,{error:o,fallback:n}):(0,G.createElement)(n,{error:r});return fd({element:(0,G.createElement)(G.Fragment,null,...s,t.isGlobalError?(0,G.createElement)(ac,{fallback:ld,children:c}):c),globalErrorModule:e.globalErrorModule,includeGlobalErrorBoundary:!t.isGlobalError,isRscRequest:e.isRscRequest,layoutModules:a,layoutTreePositions:e.route?.layoutTreePositions,makeThenableParams:e.makeThenableParams,matchedParams:i,resolveChildSegments:e.resolveChildSegments,routeSegments:e.route?.routeSegments,skipLayoutWrapping:t.isGlobalError})},l=async r=>{let o=await vd({...e,element:c(r),initialDevServerError:n,layoutModules:a,navigationParams:i,route:e.route,routePattern:e.route?.pattern,status:t.isGlobalError?500:200});return t.isGlobalError&&(o.headers.set(`Cache-Control`,H),o.headers.delete(`CDN-Cache-Control`),o.headers.delete(`Cloudflare-CDN-Cache-Control`),o.headers.delete(`Cache-Tag`)),o};try{return await l(t.component)}catch(n){if(t.isGlobalError&&!ls(n)&&!Es(n))return console.error(`[vinext] global-error.tsx threw while rendering for ${e.route?.pattern??o}; falling back to the built-in default global-error:`,n),l(ld);throw n}}var xd=/\b(useState|useEffect|useReducer|useRef|useContext|useLayoutEffect|useInsertionEffect|useSyncExternalStore|useTransition|useImperativeHandle|useDeferredValue|useActionState|useOptimistic|useEffectEvent)\b.*is not a function/;function Sd(e){let t=e.message.match(xd);t&&(e.message=bn(`${t[1]}()`))}function Cd(){return G.createElement(`html`,null,G.createElement(`body`,null,G.createElement(Bc)))}var wd={default:Cd},Td={default:Bc},Ed={headers:null,status:null};function Dd(e){let{applyFileBasedMetadata:t,basePath:n=``,htmlLimitedBots:r,clearRequestContext:i,createRscOnErrorHandler:a,fontProviders:o,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:l,globalNotFoundEnabled:u=!1,loadGlobalNotFoundModule:d,makeThenableParams:f,metadataRoutes:p,resolveChildSegments:m,rootBoundaries:h,rscRenderer:g,sanitizer:_,ssrLoader:v,trailingSlash:y}=e,{rootForbiddenModule:b,rootLayouts:x,rootNotFoundModule:S,rootUnauthorizedModule:C}=h,w=l??Qs,T=S??Td,E=null;function D(){return d?(E===null&&(E=Promise.resolve().then(d)),E):null}return{async renderHttpAccessFallback(e,l,h,_,S,E,O,k){let A=nc(_.headers.get(`user-agent`)??``,r),j=l===404&&u&&!e&&!S?.boundaryComponent;if(j&&d){let e=await D(),r=e?.default??null;if(r)return yd({applyFileBasedMetadata:t,basePath:n,trailingSlash:y,boundaryComponent:r,boundaryModule:e??null,buildFontLinkHeader:o.buildFontLinkHeader,clearRequestContext:i,createRscOnErrorHandler(e,t){return a(_,e,t)},getFontLinks:o.getFontLinks,getFontPreloads:o.getFontPreloads,getFontStyles:o.getFontStyles,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:w,isEdgeRuntime:k?.isEdgeRuntime,isRscRequest:h,layoutModules:[],loadSsrHandler:v,makeThenableParams:f,matchedParams:S?.matchedParams??{},middlewareContext:O??Ed,metadataRoutes:p,request:_,requestUrl:_.url,resolveChildSegments:m,rootForbiddenModule:null,rootLayouts:[],rootNotFoundModule:null,rootUnauthorizedModule:null,route:null,renderToReadableStream:g,scriptNonce:E,serveStreamingMetadata:A,skipLayoutWrapping:!0,statusCode:l})}let ee=j?wd:T;return yd({applyFileBasedMetadata:t,basePath:n,trailingSlash:y,boundaryComponent:S?.boundaryComponent??null,boundaryModule:S?.boundaryModule??null,buildFontLinkHeader:o.buildFontLinkHeader,clearRequestContext:i,createRscOnErrorHandler(e,t){return a(_,e,t)},getFontLinks:o.getFontLinks,getFontPreloads:o.getFontPreloads,getFontStyles:o.getFontStyles,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:w,intercept:S?.intercept??null,isEdgeRuntime:k?.isEdgeRuntime,isRscRequest:h,layoutModules:j?[]:S?.layouts??null,loadSsrHandler:v,makeThenableParams:f,matchedParams:S?.matchedParams??e?.params??{},middlewareContext:O??Ed,metadataRoutes:p,request:_,requestUrl:_.url,resolveChildSegments:m,rootForbiddenModule:b,rootLayouts:j?[]:x,rootNotFoundModule:ee,rootUnauthorizedModule:C,route:j?null:e,routePathname:k?.routePathname,renderToReadableStream:g,scriptNonce:E,serveStreamingMetadata:A,skipLayoutWrapping:j,sourcePageSegments:k?.sourcePageSegments,statusCode:l})},renderNotFound(e,t,n,r,i,a,o){return this.renderHttpAccessFallback(e,404,t,n,{matchedParams:r},i,a,o)},renderErrorBoundary(e,r,l,u,d,h,b,S,C=`rsc`){return bd({applyFileBasedMetadata:t,basePath:n,trailingSlash:y,buildFontLinkHeader:o.buildFontLinkHeader,clearRequestContext:i,createRscOnErrorHandler(e,t){return a(u,e,t)},error:r,errorOrigin:C,getFontLinks:o.getFontLinks,getFontPreloads:o.getFontPreloads,getFontStyles:o.getFontStyles,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:w,isEdgeRuntime:S?.isEdgeRuntime,isRscRequest:l,loadSsrHandler:v,makeThenableParams:f,matchedParams:d??e?.params??{},middlewareContext:b??Ed,metadataRoutes:p,request:u,requestUrl:u.url,resolveChildSegments:m,rootLayouts:x,route:e,renderToReadableStream:g,sanitizeErrorForClient:_,scriptNonce:h,sourcePageSegments:S?.sourcePageSegments})}}}function Od(e,t){let n=0,r=e.length;for(;n<r;){let i=n+Math.floor((r-n)/2);if(e[i]===t)return{found:!0,index:i};e[i]<t?n=i+1:r=i}return{found:!1,index:n}}var kd={maxDimensionCount:8,maxDimensionNameLength:64,maxDimensionValueLength:256,maxEncodedLength:1024,maxValuesPerDimension:8,maxVariantsPerRoute:64},Ad=[`connection`,`cookies`,`draftMode`,`headers`,`params`,`searchParams`],jd=new Set([`auth`,`cookie`,`draft-mode`,`header`,`session`]);function Y(e,t={},n=`renderFresh`,r=`affectedOutput`){return{kind:`breakerFallback`,code:e,mode:n,scope:r,fields:t}}function Md(e){return[...new Set(e)].sort()}function Nd(e){return e.trim().toLowerCase()}function Pd(e){return`h:${Ae(e)}`}function Fd(e){return Md(Md(e).map(Pd))}function Id(e){return JSON.stringify(e)}function Ld(e,t){return e.source.localeCompare(t.source)||e.name.localeCompare(t.name)||e.privacy.localeCompare(t.privacy)}function Rd(e){return e}function zd(e){throw Error(`Unhandled cache proof variant: ${String(e)}`)}function Bd(e){switch(e.kind){case`app-html`:return Id([e.kind,e.routeId,Rd(e.rootBoundaryId),Rd(e.renderEpoch)]);case`app-rsc`:return Id([e.kind,e.routeId,Rd(e.rootBoundaryId),Rd(e.renderEpoch),Rd(e.mountedSlotsFingerprint)]);case`layout`:return Id([e.kind,e.routeId,e.layoutId,Rd(e.rootBoundaryId)]);case`page`:return Id([e.kind,e.routeId,e.pageId,Rd(e.rootBoundaryId)]);case`route-handler`:return Id([e.kind,e.routeId,e.routeHandlerId]);case`slot`:return Id([e.kind,e.routeId,e.slotId,Rd(e.rootBoundaryId)]);case`template`:return Id([e.kind,e.routeId,e.templateId,Rd(e.rootBoundaryId)]);default:return zd(e)}}function Vd(e,t){return Number.isInteger(t)&&t>=0?null:Y(`CP_INVALID_VARIANT_BUDGET`,{budgetField:e})}function Hd(e){return Vd(`maxDimensionCount`,e.maxDimensionCount)??Vd(`maxDimensionNameLength`,e.maxDimensionNameLength)??Vd(`maxDimensionValueLength`,e.maxDimensionValueLength)??Vd(`maxEncodedLength`,e.maxEncodedLength)??Vd(`maxValuesPerDimension`,e.maxValuesPerDimension)??Vd(`maxVariantsPerRoute`,e.maxVariantsPerRoute)}function Ud(e,t){let n=Nd(e.name);if(n.length===0)return Y(`CP_DIMENSION_NAME_MISSING`,{source:e.source});if(n.length>t.maxDimensionNameLength)return Y(`CP_DIMENSION_NAME_TOO_LONG`,{maxLength:t.maxDimensionNameLength,nameHash:Pd(n),source:e.source});if(e.privacy===`public`&&jd.has(e.source))return Y(`CP_UNSAFE_PUBLIC_DIMENSION`,{name:n,source:e.source},`privateUncacheable`);let r=Md(e.values);if(r.length===0)return Y(`CP_DIMENSION_VALUES_MISSING`,{name:n,source:e.source});if(r.length>t.maxValuesPerDimension)return Y(`CP_DIMENSION_VALUE_COUNT_EXCEEDED`,{maxValues:t.maxValuesPerDimension,name:n,source:e.source,valueCount:r.length});for(let i of r)if(i.length>t.maxDimensionValueLength)return Y(`CP_DIMENSION_VALUE_TOO_LONG`,{maxLength:t.maxDimensionValueLength,name:n,source:e.source,valueHash:Pd(i)});let i=r.map(Pd);return{encoded:Id([e.source,e.privacy,n,i]),name:n,privacy:e.privacy,source:e.source,valueCount:i.length,valueHashes:i}}function Wd(e){return`code`in e}function Gd(e,t,n){let r=e.get(t),i=r??new Map;r||e.set(t,i);let a=i.get(n),o=a??new Map;return a||i.set(n,o),o}function Kd(e){let t=new Map,n=[];for(let r of e){let e=Nd(r.name),i=Gd(t,r.source,r.privacy),a=i.get(e);if(a){a.values.push(...r.values);continue}let o={name:e,privacy:r.privacy,source:r.source,values:[...r.values]};i.set(e,o),n.push(o)}return n}function qd(e){let t=Hd(e.budget);if(t)return{kind:`breakerFallback`,fallback:t};let n=Kd(e.dimensions);if(n.length>e.budget.maxDimensionCount)return{kind:`breakerFallback`,fallback:Y(`CP_DIMENSION_COUNT_EXCEEDED`,{dimensionCount:n.length,maxDimensionCount:e.budget.maxDimensionCount,routeId:e.output.routeId})};let r=[];for(let t of n){let n=Ud(t,e.budget);if(Wd(n))return{kind:`breakerFallback`,fallback:n};r.push(n)}r.sort(Ld);let i=[`schema:1`,Bd(e.output),...r.map(e=>e.encoded)].join(`|`);return i.length>e.budget.maxEncodedLength?{kind:`breakerFallback`,fallback:Y(`CP_ENCODED_VARIANT_TOO_LONG`,{encodedHash:Pd(i),encodedLength:i.length,maxEncodedLength:e.budget.maxEncodedLength,routeId:e.output.routeId})}:{kind:`variant`,variant:{schemaVersion:1,cacheKey:`cp1:${Ae(i)}`,output:e.output,dimensions:r,encodedLength:i.length,budget:{...e.budget}}}}function Jd(e){return{routeId:e.routeId,variantCacheKeys:Md(e.variantCacheKeys)}}function Yd(e,t){return Y(`CP_ROUTE_VARIANT_CEILING_EXCEEDED`,{existingVariantCount:t,maxVariantsPerRoute:e.budget.maxVariantsPerRoute,routeId:e.output.routeId},`privateUncacheable`,`route`)}function Xd(e){if(e.routeBudget&&e.routeBudget.routeId!==e.variant.output.routeId)return{kind:`breakerFallback`,routeBudget:Jd(e.routeBudget),fallback:Y(`CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH`,{budgetRouteId:e.routeBudget.routeId,routeId:e.variant.output.routeId},`privateUncacheable`,`route`)};let t=Jd(e.routeBudget??{routeId:e.variant.output.routeId,variantCacheKeys:[]}),n=t.variantCacheKeys.length,r=Od(t.variantCacheKeys,e.variant.cacheKey);return n>e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:Yd(e.variant,n)}:r.found?{kind:`variant`,variant:e.variant,routeBudget:t,didConsumeRouteVariantBudget:!1}:n>=e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:Yd(e.variant,n)}:{kind:`variant`,variant:e.variant,routeBudget:{routeId:t.routeId,variantCacheKeys:[...t.variantCacheKeys.slice(0,r.index),e.variant.cacheKey,...t.variantCacheKeys.slice(r.index)]},didConsumeRouteVariantBudget:!0}}function Zd(e){let t=qd({budget:e.budget,dimensions:e.dimensions,output:e.output});return t.kind===`breakerFallback`?{kind:`breakerFallback`,routeBudget:e.routeBudget?Jd(e.routeBudget):null,fallback:t.fallback}:Xd({routeBudget:e.routeBudget,variant:t.variant})}function Qd(e,t){switch(e.kind){case`error`:return t.kind===`error`&&(e.digest??``)===(t.digest??``);case`forbidden`:return t.kind===`forbidden`;case`globalError`:return t.kind===`globalError`&&(e.digest??``)===(t.digest??``);case`notFound`:return t.kind===`notFound`;case`redirect`:return t.kind===`redirect`&&e.status===t.status&&e.location===t.location;case`success`:return t.kind===`success`;case`unauthorized`:return t.kind===`unauthorized`;case`unknown`:return!1;default:return zd(e)}}function $d(e){return e.expected.kind===`unknown`||e.candidate.kind===`unknown`?{kind:`incompatible`,expected:e.expected,candidate:e.candidate,fallback:Y(`CP_BOUNDARY_OUTCOME_UNKNOWN`,{candidateKind:e.candidate.kind,expectedKind:e.expected.kind})}:Qd(e.expected,e.candidate)?{kind:`compatible`,outcome:e.candidate,reason:`CP_BOUNDARY_OUTCOME_MATCH`}:{kind:`incompatible`,expected:e.expected,candidate:e.candidate,fallback:Y(`CP_BOUNDARY_OUTCOME_MISMATCH`,{candidateKind:e.candidate.kind,expectedKind:e.expected.kind})}}function ef(e){switch(e){case`notObserved`:return 0;case`unknown`:return 1;case`observed`:return 2;default:return zd(e)}}function tf(e){let t=new Map;for(let n of e){let e=t.get(n.kind);(e===void 0||ef(n.status)>ef(e))&&t.set(n.kind,n.status)}return[...t.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({kind:e,status:t}))}function nf(e){switch(e){case`public`:return 0;case`publicVariant`:return 1;case`private`:return 2;case`privateUncacheable`:return 3;case`freshRender`:return 4;default:return zd(e)}}function rf(e,t){return nf(t)>nf(e)?t:e}function af(e,t){switch(e){case`public`:case`publicVariant`:case`private`:return null;case`privateUncacheable`:return Y(`CP_PRIVATE_DYNAMIC_DOWNGRADE`,{reasonCodes:t.map(e=>e.code),target:e},`privateUncacheable`);case`freshRender`:return Y(`CP_PRIVATE_DYNAMIC_DOWNGRADE`,{reasonCodes:t.map(e=>e.code),target:e});default:return zd(e)}}function of(e){switch(e){case`connection`:return{code:`CP_DOWNGRADE_DYNAMIC_REQUEST_API`,requestApi:`connection`,target:`freshRender`};case`cookies`:return{code:`CP_DOWNGRADE_PRIVATE_REQUEST_API`,requestApi:`cookies`,target:`private`};case`draftMode`:return{code:`CP_DOWNGRADE_DRAFT_MODE`,requestApi:`draftMode`,target:`privateUncacheable`};case`headers`:return{code:`CP_DOWNGRADE_PRIVATE_REQUEST_API`,requestApi:`headers`,target:`private`};case`params`:return{code:`CP_DOWNGRADE_PUBLIC_REQUEST_API`,requestApi:`params`,target:`publicVariant`};case`searchParams`:return{code:`CP_DOWNGRADE_PUBLIC_REQUEST_API`,requestApi:`searchParams`,target:`publicVariant`};default:return zd(e)}}function sf(e){let t=[],n=`public`;switch(e.cacheability){case`public`:break;case`private`:{let e={code:`CP_DOWNGRADE_CACHEABILITY_PRIVATE`,target:`private`};t.push(e),n=rf(n,e.target);break}case`uncacheable`:{let e={code:`CP_DOWNGRADE_CACHEABILITY_UNCACHEABLE`,target:`privateUncacheable`};t.push(e),n=rf(n,e.target);break}case`unknown`:{let e={code:`CP_DOWNGRADE_CACHEABILITY_UNKNOWN`,target:`freshRender`};t.push(e),n=rf(n,e.target);break}default:zd(e.cacheability)}if(e.completeness!==`complete`){let r={code:`CP_DOWNGRADE_INCOMPLETE_OBSERVATION`,completeness:e.completeness,target:`freshRender`};t.push(r),n=rf(n,r.target)}if(e.dynamicFetches.length>0){let r={code:`CP_DOWNGRADE_DYNAMIC_FETCH`,dynamicFetchCount:e.dynamicFetches.length,target:`freshRender`};t.push(r),n=rf(n,r.target)}let r=tf(e.requestApis);for(let e of r){if(e.status===`notObserved`)continue;let r=e.status===`unknown`?{code:`CP_DOWNGRADE_UNKNOWN_REQUEST_API`,requestApi:e.kind,target:`freshRender`}:of(e.kind);t.push(r),n=rf(n,r.target)}return{target:n,reasons:t,fallback:af(n,t),isPublicCacheCandidate:n===`public`||n===`publicVariant`}}function cf(e){let t=new Set(e.observed),n=e.completeness===`complete`?`notObserved`:`unknown`;return Ad.map(e=>({kind:e,status:t.has(e)?`observed`:n}))}function lf(e){let t=tf(e.requestApis),n=Fd(e.dynamicFetches);return{schemaVersion:1,output:e.output,completeness:e.completeness,boundaryOutcome:e.boundaryOutcome,requestApis:t,dynamicFetches:n,cacheTags:Md(e.cacheTags),pathTags:Md(e.pathTags),cacheability:e.cacheability,downgrade:sf({cacheability:e.cacheability,completeness:e.completeness,dynamicFetches:n,requestApis:t})}}function uf(e,t){if(e.completeness!==`complete`)return!1;let n=new Map;for(let t of tf(e.requestApis))n.set(t.kind,t.status);for(let e of t)if(n.get(e)!==`notObserved`)return!1;return!0}function df(e){return e.kind===`layout`}function ff(e,t,n=`renderFresh`){return{kind:`rejected`,fallback:Y(e,t,n)}}function pf(e,t){let n=null;for(let r of e)r.kind===t&&(n===null||ef(r.status)>ef(n))&&(n=r.status);return n??`missing`}function mf(e){let t=e.target===`privateUncacheable`?`privateUncacheable`:`renderFresh`;return Y(`CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE`,{reasonCodes:e.reasons.map(e=>e.code),target:e.target},t)}function hf(e,t){return e.layoutId===t.layoutId?e.rootBoundaryId===t.rootBoundaryId?e.routeId===t.routeId?null:`routeId`:`rootBoundaryId`:`layoutId`}function gf(e){if(!df(e.currentOutput))return ff(`CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND`,{currentOutputKind:e.currentOutput.kind});if(!df(e.candidateVariant.output))return ff(`CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND`,{candidateOutputKind:e.candidateVariant.output.kind});if(!df(e.candidateObservation.output))return ff(`CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND`,{observationOutputKind:e.candidateObservation.output.kind});let t=e.currentOutput,n=e.candidateVariant.output,r=e.candidateObservation.output,i=tf(e.candidateObservation.requestApis),a={...e.candidateObservation,requestApis:i,downgrade:sf({cacheability:e.candidateObservation.cacheability,completeness:e.candidateObservation.completeness,dynamicFetches:e.candidateObservation.dynamicFetches,requestApis:i})},o=hf(n,r);if(o)return ff(`CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH`,{candidateLayoutId:n.layoutId,candidateRootBoundaryId:n.rootBoundaryId,candidateRouteId:n.routeId,field:o,observationLayoutId:r.layoutId,observationRootBoundaryId:r.rootBoundaryId,observationRouteId:r.routeId});if(t.layoutId!==n.layoutId)return ff(`CP_STATIC_LAYOUT_ID_MISMATCH`,{candidateLayoutId:n.layoutId,currentLayoutId:t.layoutId});if(t.rootBoundaryId===null||n.rootBoundaryId===null)return ff(`CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN`,{candidateRootBoundaryId:n.rootBoundaryId,currentRootBoundaryId:t.rootBoundaryId});if(t.rootBoundaryId!==n.rootBoundaryId)return ff(`CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH`,{candidateRootBoundaryId:n.rootBoundaryId,currentRootBoundaryId:t.rootBoundaryId});let s=$d({candidate:a.boundaryOutcome,expected:{kind:`success`}});if(s.kind===`incompatible`)return{kind:`rejected`,fallback:s.fallback};if(e.candidateVariant.dimensions.length>0)return ff(`CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`,{dimensionCount:e.candidateVariant.dimensions.length,sources:Md(e.candidateVariant.dimensions.map(e=>e.source))});if(!a.downgrade.isPublicCacheCandidate)return{kind:`rejected`,fallback:mf(a.downgrade)};let c=Ad;for(let e of c){let t=pf(a.requestApis,e);if(t!==`notObserved`)return ff(t===`missing`?`CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN`:`CP_STATIC_LAYOUT_REQUEST_API_OBSERVED`,{requestApi:e,status:t})}return{kind:`proof`,proof:{authorizesRuntimeReuse:!0,candidateOutput:n,code:`CP_STATIC_LAYOUT_REUSE_PROVEN`,currentOutput:t,fields:{candidateRouteId:n.routeId,currentRouteId:t.routeId,layoutId:t.layoutId,rootBoundaryId:t.rootBoundaryId},observation:a,requiredNegativeRequestApis:[...c],reuseClass:`static-layout`,variant:e.candidateVariant}}}function _f(e,t,n){return{name:`vinext.cache.static_layout_artifact_reuse`,outcome:e,code:t,fields:n}}function vf(e){return{kind:`fallback`,canReuse:!1,fallback:e,metric:_f(`fallback`,e.code,e.fields)}}function yf(e){if(e.candidateVariant.kind===`breakerFallback`)return vf(e.candidateVariant.fallback);let t=Oe(e.currentArtifactCompatibility,e.candidateArtifactCompatibility,{compatibilityMap:e.compatibilityMap});if(t.kind===`unknown`)return vf(Y(`CP_ARTIFACT_COMPATIBILITY_UNKNOWN`,{compatibilityFallback:t.fallback,reason:t.reason}));if(t.kind===`incompatible`)return vf(Y(`CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE`,{compatibilityFallback:t.fallback,reason:t.reason}));let n=gf({candidateObservation:e.candidateObservation,candidateVariant:e.candidateVariant.variant,currentOutput:e.currentOutput});return n.kind===`rejected`?vf(n.fallback):{kind:`reuse`,canReuse:!0,proof:{...n.proof,candidateArtifactCompatibility:{...e.candidateArtifactCompatibility}},metric:_f(`reuse`,n.proof.code,n.proof.fields)}}function bf(e){let t=e[W.keys.rootLayout];return typeof t==`string`?t:null}function xf(e,t){if(x(e)){let t=e[W.keys.route];if(typeof t==`string`)return t}return W.encodeRouteId(t,null)}function Sf(e){let t=N(e);return t?`slots:${Ae(t)}`:null}function Cf(e,t){let n=new Set(e);return Object.keys(t).length>0&&n.add(`params`),[...n].sort()}function wf(){return{dynamicFetches:[],requestApis:[]}}function Tf(){return{dynamicFetches:Re(),requestApis:z()}}function Ef(){ge(),Re(),z(),Pe(),xe()}function Df(e){return lf({boundaryOutcome:e.boundaryOutcome,cacheability:e.cacheability,cacheTags:e.cacheTags,completeness:e.completeness,dynamicFetches:e.state.dynamicFetches,output:e.output,pathTags:[e.cleanPathname],requestApis:cf({completeness:e.completeness,observed:Cf(e.state.requestApis,e.params)})})}function Of(e){return{kind:`app-rsc`,mountedSlotsFingerprint:Sf(e.mountedSlotsHeader),renderEpoch:e.renderEpoch,rootBoundaryId:e.rootBoundaryId??(x(e.element)?bf(e.element):null),routeId:xf(e.element,e.routePattern)}}function kf(e){return{kind:`app-html`,renderEpoch:e.renderEpoch,rootBoundaryId:e.rootBoundaryId??(x(e.element)?bf(e.element):null),routeId:xf(e.element,e.routePattern)}}var Af=[[`SKIP_LAYOUT_PARAMS_OBSERVATION_INCOMPLETE`,e=>e.completeness!==`complete`],[`SKIP_LAYOUT_PARAMS_PRESENT`,e=>e.paramScopeKeys.length>0],[`SKIP_LAYOUT_PARAMS_OBSERVED`,e=>e.observed],[`SKIP_LAYOUT_DYNAMIC_USAGE_OBSERVED`,e=>e.dynamicUsageObserved],[`SKIP_LAYOUT_REQUEST_API_OBSERVED`,e=>e.requestApis.length>0],[`SKIP_LAYOUT_REVALIDATE_PRESENT`,e=>e.finiteRevalidateSeconds!==null],[`SKIP_LAYOUT_CACHE_LIFE_OBSERVED`,e=>e.cacheLifeObserved],[`SKIP_LAYOUT_UNSTABLE_CACHE_OBSERVED`,e=>e.unstableCaches.length>0],[`SKIP_LAYOUT_CACHE_TAGS_OBSERVED`,e=>e.cacheTags.length>0],[`SKIP_LAYOUT_CACHEABLE_FETCHES_OBSERVED`,e=>e.cacheableFetchCount>0],[`SKIP_LAYOUT_DYNAMIC_FETCHES_OBSERVED`,e=>e.dynamicFetchCount>0]];function jf(e){return{cacheLifeObserved:e.cacheLifeObserved,cacheTags:e.cacheTags,cacheableFetchCount:e.cacheableFetchCount,dynamicFetchCount:e.dynamicFetchCount,dynamicUsageObserved:e.dynamicUsageObserved,finiteRevalidateSeconds:e.finiteRevalidateSeconds,observedParamKeys:e.keys,paramScopeKeys:e.paramScopeKeys,requestApis:e.requestApis,unstableCacheCount:e.unstableCaches.length,unstableCacheKeyHashes:e.unstableCaches.map(e=>e.keyHash),unstableCacheRevalidates:e.unstableCaches.map(e=>String(e.revalidate)),unstableCacheTagCounts:e.unstableCaches.map(e=>String(e.tagCount)),unstableCacheTagHashes:e.unstableCaches.map(e=>e.tagHash??`none`)}}function Mf(e){for(let[t,n]of Af)if(n(e))return{code:t,fields:jf(e)};return null}function Nf(e){return Mf(e)!==null}function Pf(){let e=new Map,t=t=>{let n=e.get(t);if(n)return n;let r={cacheLifeObserved:!1,cacheTags:new Set,cacheableFetches:new Set,dynamicFetches:new Set,dynamicUsageObserved:!1,finiteRevalidateSeconds:null,keys:new Set,observed:!1,paramScopeKeys:new Set,probeComplete:!1,requestApis:new Set,unstableCaches:new Map};return e.set(t,r),r},n=(e,n)=>{let r=t(e);r.observed=!0;for(let e of n)r.keys.add(e)},r=e=>{t(e).probeComplete=!0},i=e=>Ue()?Ye(e=>{e.cacheableFetchUrls=new Set,e.currentRequestTags=[],e.currentFetchSoftTags=[],e.dynamicFetchUrls=new Set,e.dynamicUsageDetected=!1,e.renderRequestApiUsage=new Set,e.requestScopedCacheLife=null,e.unstableCacheObservations=new Map},e):e(),a=e=>{let n=t(e);se()&&(n.dynamicUsageObserved=!0),w()!==null&&(n.cacheLifeObserved=!0);for(let e of d())n.cacheTags.add(e);for(let e of Le())n.cacheableFetches.add(e);for(let e of ee())n.dynamicFetches.add(e);for(let e of ze())n.requestApis.add(e);for(let e of D())n.unstableCaches.set(e.keyHash,e)};return{createThenableParamsObserver(e){return{observeParamAccess(t){n(e,t)}}},getLayoutObservation(t){let n=e.get(t);return n?{cacheLifeObserved:n.cacheLifeObserved,cacheTags:[...n.cacheTags].sort(),cacheableFetchCount:n.cacheableFetches.size,completeness:n.probeComplete?`complete`:`unknown`,dynamicFetchCount:n.dynamicFetches.size,dynamicUsageObserved:n.dynamicUsageObserved,finiteRevalidateSeconds:n.finiteRevalidateSeconds,keys:[...n.keys].sort(),observed:n.observed,paramScopeKeys:[...n.paramScopeKeys].sort(),requestApis:[...n.requestApis].sort(),unstableCaches:[...n.unstableCaches.values()].sort((e,t)=>e.keyHash.localeCompare(t.keyHash))}:{cacheLifeObserved:!1,cacheTags:[],cacheableFetchCount:0,completeness:`unknown`,dynamicFetchCount:0,dynamicUsageObserved:!1,finiteRevalidateSeconds:null,keys:[],observed:!1,paramScopeKeys:[],requestApis:[],unstableCaches:[]}},recordLayoutFiniteRevalidate(e,n){if(!Number.isFinite(n)||n<=0)return;let r=t(e);r.finiteRevalidateSeconds=r.finiteRevalidateSeconds===null?n:Math.min(r.finiteRevalidateSeconds,n)},recordLayoutParamScope(e,n){let r=t(e);for(let e of n)r.paramScopeKeys.add(e)},runLayoutProbe(e,t){return i(()=>{let n=t();return vs(n)?Promise.resolve(n).then(t=>(a(e),r(e),t),t=>{throw a(e),t}):(a(e),r(e),n)})}}}function Ff(e){if(e.method.toUpperCase()!==`POST`)return!1;let t=e.headers.get(`content-type`);return e.headers.has(`x-rsc-action`)||e.headers.has(`next-action`)||t===`application/x-www-form-urlencoded`||t?.startsWith(`multipart/form-data`)===!0}function If(e){let t=e.toUpperCase();return t!==`GET`&&t!==`HEAD`}function Lf(e){return e.dynamicConfig===`force-dynamic`||e.revalidateSeconds===0?!1:e.dynamicConfig===`force-static`||e.dynamicConfig===`error`||e.revalidateSeconds!==null&&e.revalidateSeconds>0||e.hasGenerateStaticParams?!0:!e.isDynamicRoute}function Rf(e){if(!If(e.request.method)||Ff(e.request)||!Lf(e))return null;let t=new Headers;return R(t,e.middlewareHeaders??null),Dr(`GET, HEAD`,{headers:t})}function zf(e,t,n,r){!r||t[n]!=null||e.push(r().then(e=>{t[n]=e}))}function Bf(e,t,n){if(!t||!n)return;let r=t;for(let[t,i]of n.entries())t>=r.length||!i||r[t]!=null||e.push(i().then(e=>{r[t]=e}))}function Vf(e){let t=e.__loadState;if(t?.interceptLayoutsLoading)return t.interceptLayoutsLoading;let n=[];if(Bf(n,e.interceptLayouts,e.__loadInterceptLayouts),Bf(n,e.interceptLoadings,e.__loadInterceptLoadings),n.length===0)return Promise.resolve(e.interceptLayouts??[]);let r=Promise.all(n).then(()=>(t&&(t.interceptLayoutsLoading=null),e.interceptLayouts??[])).catch(e=>{throw t&&(t.interceptLayoutsLoading=null),e});return t&&(t.interceptLayoutsLoading=r),r}function Hf(e){if(!e||e.__loaded)return e;if(e.__loading)return e.__loading;let t=e.__loadPage,n=e.__loadRouteHandler,r=[];zf(r,e,`page`,t),zf(r,e,`routeHandler`,n),zf(r,e,`loading`,e.__loadLoading),zf(r,e,`error`,e.__loadError),zf(r,e,`notFound`,e.__loadNotFound),zf(r,e,`forbidden`,e.__loadForbidden),zf(r,e,`unauthorized`,e.__loadUnauthorized),Bf(r,e.layouts,e.__loadLayouts),Bf(r,e.templates,e.__loadTemplates),Bf(r,e.loadings,e.__loadLoadings),Bf(r,e.errors,e.__loadErrors),Bf(r,e.errorPaths,e.__loadErrorPaths),Bf(r,e.notFounds,e.__loadNotFounds),Bf(r,e.forbiddens,e.__loadForbiddens),Bf(r,e.unauthorizeds,e.__loadUnauthorizeds);for(let t of Object.values(e.slots??{}))zf(r,t,`page`,t.__loadPage),zf(r,t,`default`,t.__loadDefault),zf(r,t,`layout`,t.__loadLayout),Bf(r,t.configLayouts,t.__loadConfigLayouts),zf(r,t,`loading`,t.__loadLoading),Bf(r,t.loadings,t.__loadLoadings),zf(r,t,`error`,t.__loadError),zf(r,t,`notFound`,t.__loadNotFound);if(r.length===0)return e.__loaded=!0,e;let i=Promise.all(r).then(()=>(e.__loaded=!0,e.__loading=null,e)).catch(t=>{throw e.__loading=null,t});return e.__loading=i,i}function Uf(e,t){let n={};for(let r of t){let t=e[r];t!==void 0&&(n[r]=t)}return n}function Wf(e,t){if(t.paramPatternParts&&t.routePatternParts){let n=[];for(let r of t.routePatternParts){if(!r.startsWith(`:`)){n.push(r);continue}let t=e[r.slice(1).replace(/[+*]$/,``)];Array.isArray(t)?n.push(...t.map(encodeURIComponent)):t!==void 0&&n.push(encodeURIComponent(t))}let r=gu(n,t.paramPatternParts);if(r)return r}if(!t.paramAliases)return e;let n={...e};for(let[r,i]of Object.entries(t.paramAliases)){let t=e[r];t!==void 0&&(delete n[r],n[i]=t)}return n}function Gf(e,t){let n=Math.max(0,Math.min(t,e.length)),r=[];for(let t of e.slice(0,n)){let e=dc(t);e&&!r.includes(e)&&r.push(e)}return r}function Kf(e,t){let n=Math.min((t??0)-1,e.length-1);for(;n>=0;){let t=e[n];if(!t.startsWith(`@`)&&!(t.startsWith(`(`)&&t.endsWith(`)`)))break;--n}return n}function qf(e,t,n){let r=t.paramNames??e,i=Gf(t.routeSegments??[],n),a=new Set((t.routeSegments??[]).flatMap(e=>{let t=dc(e);return t?[t]:[]})),o=r.filter(e=>!a.has(e));return[...new Set([...o,...i])]}function Jf(e){let t=[];e.layouts?.forEach((n,r)=>{typeof n?.generateStaticParams==`function`&&t.push({chained:!0,generateStaticParams:n.generateStaticParams,parentParamNames:Gf(e.routeSegments,Kf(e.routeSegments,e.layoutTreePositions?.[r]))})}),typeof e.page?.generateStaticParams==`function`&&t.push({chained:!0,generateStaticParams:e.page.generateStaticParams,parentParamNames:Gf(e.routeSegments,Math.max(0,e.routeSegments.length-1))});let n=e.routeSegments.flatMap(e=>{let t=dc(e);return t?[t]:[]});for(let[r,i]of(e.parallelBranches??[]).entries()){if(!i)continue;let a=i.paramNames??n,o=Object.fromEntries(n.flatMap((e,t)=>{let n=a[t];return n&&n!==e?[[e,n]]:[]})),s=(a,s)=>{typeof a?.generateStaticParams==`function`&&t.push({generateStaticParams:a.generateStaticParams,independentChain:r,...Object.keys(o).length>0?{paramAliases:o}:{},...i.patternParts?{paramPatternParts:i.patternParts}:{},...e.routePatternParts?{routePatternParts:e.routePatternParts}:{},parentParamNames:qf(n,i,s)})};s(i.layout,-1),i.configLayouts?.forEach((e,t)=>{s(e,Kf(i.routeSegments??[],i.configLayoutTreePositions?.[t]))}),s(i.page,Math.max(0,(i.routeSegments?.length??0)-1))}return t}function Yf(e,t,n=!1){let r=Object.keys(e),i=(e,t)=>e===encodeURIComponent(t);return t.some(t=>r.every(r=>{let a=e[r],o=t[r];return Object.hasOwn(t,r)?Array.isArray(a)?Array.isArray(o)&&a.length===o.length&&a.every((e,t)=>typeof o[t]==`string`?i(e,o[t]):e===o[t]):typeof o==`string`?i(a,o):typeof o==`number`||typeof o==`boolean`?String(a)===String(o):JSON.stringify(a)===JSON.stringify(o):n}))}function Xf(e,t){if(!t.paramAliases)return[...e];let n=new Map(Object.entries(t.paramAliases).map(([e,t])=>[t,e]));return e.map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[n.get(e)??e,t])))}async function Zf(e,t,n){let r=(t??[]).map(e=>({params:e,branchParams:{}})),i=r.length>0,a=!1;for(let t of e){let e=i?r:[{params:{},branchParams:{}}],o=[];for(let r of e){let e=Wf({...n,...r.params},t),s=Wf(r.branchParams,t),c=await h(()=>t.generateStaticParams({params:{...Uf(e,t.parentParamNames),...s}}));if(!Array.isArray(c)){i&&o.push(r);continue}a=!0;let l=Xf(c,t);if(l.length===0){i&&o.push(r);continue}for(let e of l)o.push({params:{...r.params,...e},branchParams:{...r.branchParams,...e}})}r=o,i=r.length>0}return{staticParams:r.map(e=>e.params),validated:a}}async function Qf(e){let t=[];for(let n of e){let e=t.length>0,r=e?t:[{}],i=[];for(let t of r){let r=await h(()=>n.generateStaticParams({params:t}));if(Array.isArray(r)&&r.length>0)for(let e of r)typeof e==`object`&&e&&!Array.isArray(e)&&i.push({...t,...e});else e&&i.push(t)}t=i}return t}function $f(e){return(Array.isArray(e)?e:[e]).flatMap(e=>typeof e==`function`?[{generateStaticParams:e,parentParamNames:[]}]:typeof e?.generateStaticParams==`function`?[e]:[])}async function ep(e){if(!e.enforceStaticParamsOnly||!e.isDynamicRoute)return null;let t=$f(e.generateStaticParams);if(t.length===0)return Er();let n=t.filter(e=>e.chained),r=null;n.length>0&&(r=await Qf(n));let i=new Map;for(let e of t.filter(e=>!e.chained)){let t=i.get(e.independentChain??e)??[];t.push(e),i.set(e.independentChain??e,t)}let a=!1;for(let t of i.values()){let n=await Zf(t,r,e.params);if(n.validated&&(a=!0,!Yf(e.params,n.staticParams,!0)))return Er()}return r&&!a&&!Yf(e.params,r)?Er():null}async function tp(e){if(!e.isRscRequest)return{kind:`none`};let t=e.findIntercept(e.cleanPathname);if(!t)return{kind:`none`};let n=t.__loadState;if(n?.page!=null&&(t.page=n.page),t.__pageLoader&&t.page==null){let e=n?.pageLoading??t.__pageLoader().then(e=>(t.page=e,n&&(n.page=e,n.pageLoading=null),e)).catch(e=>{throw n&&(n.pageLoading=null),e});n&&(n.pageLoading=e),await e}if(n?.notFound!=null&&(t.notFound=n.notFound),t.__loadNotFound&&t.notFound==null){let e=n?.notFoundLoading??t.__loadNotFound().then(e=>(t.notFound=e,n&&(n.notFound=e,n.notFoundLoading=null),e)).catch(e=>{throw n&&(n.notFoundLoading=null),e});n&&(n.notFoundLoading=e),await e}(t.__loadInterceptLayouts||t.__loadInterceptLoadings)&&await Vf(t);let r=await e.getSourceRoute(t.sourceRouteIndex);return r?r===e.currentRoute?{kind:`current-route`,intercept:t}:{kind:`source-route`,intercept:t,sourceRoute:r}:{kind:`none`}}async function np(e){let t=await tp({cleanPathname:e.cleanPathname,currentRoute:e.currentRoute,findIntercept:e.findIntercept,getRouteParamNames:e.getRouteParamNames,getSourceRoute:e.getSourceRoute,isRscRequest:e.isRscRequest,toInterceptOpts:e.toInterceptOpts});if(t.kind===`source-route`){let n=t.intercept.sourceMatchedParams??t.intercept.matchedParams;return{interceptOpts:e.toInterceptOpts(t.intercept),navigationParams:{...n,...t.intercept.matchedParams},params:Uf(n,e.getRouteParamNames(t.sourceRoute)),route:t.sourceRoute}}return{interceptOpts:t.kind===`current-route`?e.toInterceptOpts(t.intercept):void 0,navigationParams:e.currentParams,params:e.currentParams,route:e.currentRoute}}async function rp(e){let t=await tp({cleanPathname:e.cleanPathname,currentRoute:e.currentRoute,findIntercept:e.findIntercept,getRouteParamNames:e.getRouteParamNames,getSourceRoute:e.getSourceRoute,isRscRequest:e.isRscRequest,toInterceptOpts:e.toInterceptOpts});if(t.kind===`source-route`){let n=t.sourceRoute,r=e.toInterceptOpts(t.intercept),i=t.intercept.sourceMatchedParams??t.intercept.matchedParams,a={...i,...t.intercept.matchedParams},o=e.resolveSearchParams?await e.resolveSearchParams(n,e.searchParams):e.searchParams,s=Uf(i,e.getRouteParamNames(t.sourceRoute));e.setNavigationContext({params:e.resolveNavigationParams(n,a,e.cleanPathname,r),pathname:e.cleanPathname,searchParams:o});let c=await e.buildPageElement(n,s,r,o,e.layoutParamAccess);return{interceptOpts:void 0,response:await e.renderInterceptResponse(n,c)}}return{interceptOpts:t.kind===`current-route`?e.toInterceptOpts(t.intercept):void 0,response:null}}async function ip(e){try{return{element:await e.buildPageElement(),response:null}}catch(t){let n=e.resolveSpecialError(t),r=(n?await e.probePageSpecialError?.():null)??n;if(r)return{element:null,response:await e.renderSpecialError(r)};let i=await e.renderErrorBoundaryPage(t);if(i)return{element:null,response:i};throw t}}async function ap(e){let t=e.getReader(),n=new TextDecoder,r=[];try{for(;;){let{done:e,value:i}=await t.read();if(e)break;r.push(n.decode(i,{stream:!0}))}return r.push(n.decode()),r.join(``)}finally{t.releaseLock()}}function op(e,t,n={}){if(ae(e,{cacheControl:e.get(`Cache-Control`)??``,pendingDynamicCheck:!0,tags:t}),n.omitCacheState===!0){e.delete(pt),e.delete(_t);return}je(e,`MISS`)}function sp(e){let t=e.revalidateSeconds,n=e.expireSeconds,r=e.requestCacheLife;return r?.revalidate!==void 0&&(t=t===null?r.revalidate:Math.min(t,r.revalidate)),r?.expire!==void 0&&(n=r.expire),t===null||Number.isNaN(t)||t<=0?null:{expireSeconds:n,revalidateSeconds:t}}function cp(e,t){if(!e.body)return e;let[n,r]=e.body.tee(),i=t.isrHtmlKey(t.cleanPathname),a=t.isrRscKey(t.cleanPathname,null,void 0,t.interceptionContext),o=new Headers(e.headers);t.preserveClientResponseHeaders!==!0&&op(o,t.getPageTags(),{omitCacheState:t.omitPendingDynamicCacheState===!0});let s=(async()=>{try{let n=await ap(r);if(t.capturedDynamicUsageBeforeContextCleanup?.()===!0||t.consumeDynamicUsage()){t.isrDebug?.(`HTML cache write skipped (dynamic usage during render)`,i);return}let o=sp({expireSeconds:t.expireSeconds,requestCacheLife:t.getRequestCacheLife?.(),revalidateSeconds:t.revalidateSeconds});if(!o){t.isrDebug?.(`HTML cache write skipped (no cache policy)`,i);return}let s=t.getPageTags(),c=t.consumeRenderObservationState?.()??wf(),l=t.createHtmlRenderObservation?.({cacheTags:s,state:c}),u=t.createRscRenderObservation?.({cacheTags:s,state:c}),d=e.headers.get(`link`),f=[t.isrSet(i,gi(n,void 0,200,l,d?{link:d}:void 0),o.revalidateSeconds,s,o.expireSeconds)];t.capturedRscDataPromise&&f.push(t.capturedRscDataPromise.then(e=>t.isrSet(a,gi(``,e,200,u),o.revalidateSeconds,s,o.expireSeconds))),await Promise.all(f),t.isrDebug?.(`HTML cache written`,i)}catch(e){console.error(`[vinext] ISR cache write error:`,e)}})();return t.waitUntil?.(s),new Response(n,{status:e.status,statusText:e.statusText,headers:o})}function lp(e,t){if(!up(t)||t.preserveClientResponseHeaders===!0)return e;let n=new Headers(e.headers);return op(n,t.getPageTags(),{omitCacheState:t.omitPendingDynamicCacheState===!0}),new Response(e.body,{status:e.status,statusText:e.statusText,headers:n})}function up(e){let t=e.capturedRscDataPromise;if(!t||e.dynamicUsedDuringBuild||e.mountedSlotsHeader)return!1;let n=e.isrRscKey(e.cleanPathname,null,e.renderMode,e.interceptionContext),r=(async()=>{try{let r=await t;if(e.consumeDynamicUsage()){e.isrDebug?.(`RSC cache write skipped (dynamic usage during render)`,n);return}let i=sp({expireSeconds:e.expireSeconds,requestCacheLife:e.getRequestCacheLife?.(),revalidateSeconds:e.revalidateSeconds});if(!i){e.isrDebug?.(`RSC cache write skipped (no cache policy)`,n);return}let a=e.getPageTags(),o=e.consumeRenderObservationState?.()??wf(),s=e.createRscRenderObservation?.({cacheTags:a,state:o});await e.isrSet(n,gi(``,r,200,s),i.revalidateSeconds,a,i.expireSeconds),e.isrDebug?.(`RSC cache written`,n)}catch(e){console.error(`[vinext] ISR RSC cache write error:`,e)}})();return e.waitUntil?.(r),!0}function dp(e){return`static-layout:${Io(e)}`}function fp(e){return ue.map(t=>[t,e.artifactCompatibility[t]])}function pp(e){return Io(JSON.stringify({artifactCompatibilityPairs:fp(e),layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}function mp(e){return{...e.artifactCompatibility,graphVersion:`static-layout-graph:${Io(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId}))}`,renderEpoch:`static-layout:${Io(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}`}}function hp(){return{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`}}function gp(e){return{code:`SKIP_STATIC_LAYOUT_VERIFIED`,enabled:!0,mode:`skipStaticLayout`,skippedEntryIds:[...e]}}function _p(e,t,n={}){return{kind:`rejected`,rejection:{code:t,entryId:e.id,fields:n},skipDisposition:hp()}}function vp(e,t){let n=[];for(let r of ue)e[r]!==t[r]&&n.push(r);return n}function yp(e,t){return vp(e,t).length===0}function bp(e){throw Error(`Unhandled skip/cache proof state: ${String(e)}`)}function xp(e){return{kind:`renderAndSend`,entryRejections:e.entryRejections??[],...e.manifestRejection?{manifestRejection:e.manifestRejection}:{},skipDisposition:hp(),skipIneligibleEntryIds:e.skipIneligibleEntryIds??[],skippedEntryIds:[]}}function Sp(e,t){return{code:`SKIP_VERIFICATION_BUDGET_EXCEEDED`,fields:{totalWireEntries:e,maxWireEntriesToVerify:t}}}function Cp(e,t){switch(t.kind){case`valid`:return null;case`unknown`:return _p(e,`SKIP_CACHE_INVALIDATION_UNKNOWN`);case`invalidated`:return _p(e,`SKIP_CACHE_INVALIDATED`,{invalidationEpoch:t.invalidationEpoch});default:return bp(t)}}function wp(e){let{cacheDecision:t,entry:n}=e;if(t===null)return _p(n,`SKIP_CACHE_PROOF_MISSING`);if(t.kind===`fallback`)return _p(n,`SKIP_CACHE_PROOF_REJECTED`,{cacheProofCode:t.fallback.code,cacheProofMode:t.fallback.mode,cacheProofScope:t.fallback.scope});let{proof:r}=t;if(n.kind!==`layout`||r.reuseClass!==`static-layout`)return _p(n,`SKIP_CACHE_REUSE_CLASS_UNSUPPORTED`,{entryKind:n.kind,reuseClass:r.reuseClass});if(n.id!==r.candidateOutput.layoutId)return _p(n,`SKIP_CACHE_ENTRY_ID_MISMATCH`,{cacheEntryId:r.candidateOutput.layoutId,manifestEntryId:n.id});let i=vp(e.artifact.compatibility,r.candidateArtifactCompatibility);if(i.length>0)return _p(n,`SKIP_CACHE_ARTIFACT_PROOF_MISMATCH`,{mismatchedFields:i});let a=Oe(e.artifact.compatibility,n.artifactCompatibility,{compatibilityMap:e.compatibilityMap});if(a.kind===`unknown`)return _p(n,`SKIP_CACHE_ARTIFACT_COMPATIBILITY_UNKNOWN`,{compatibilityFallback:a.fallback,reason:a.reason});if(a.kind===`incompatible`)return _p(n,`SKIP_CACHE_ARTIFACT_COMPATIBILITY_INCOMPATIBLE`,{compatibilityFallback:a.fallback,reason:a.reason});if(n.variantCacheKey!==r.variant.cacheKey)return _p(n,`SKIP_CACHE_VARIANT_MISMATCH`,{cacheVariantCacheKeyHash:Io(r.variant.cacheKey),entryVariantCacheKeyHash:Io(n.variantCacheKey)});if(e.artifact.payloadHash===null)return _p(n,`SKIP_CACHE_PAYLOAD_HASH_MISSING`);if(n.payloadHash!==e.artifact.payloadHash)return _p(n,`SKIP_CACHE_PAYLOAD_HASH_MISMATCH`,{cachePayloadHash:e.artifact.payloadHash,entryPayloadHash:n.payloadHash});let o=Cp(n,e.artifact.invalidation);if(o)return o;let s=yp(e.artifact.compatibility,n.artifactCompatibility)?gp([n.id]):hp();return{kind:`verified`,code:`SKIP_CACHE_CROSS_CHECK_PASSED`,entryId:n.id,fields:{entryKind:n.kind,reuseClass:r.reuseClass,variantCacheKeyHash:Io(r.variant.cacheKey)},skipDisposition:s}}function Tp(e){let{manifest:t}=e;if(t.kind===`absent`)return xp({});if(t.kind===`rejected`)return xp({manifestRejection:t.rejection});let n=e.maxWireEntriesToVerify??8;if(!Number.isSafeInteger(n)||n<0)throw RangeError(`maxWireEntriesToVerify must be a non-negative safe integer`);let r=t.manifest.entries.length+t.entryRejections.length;if(r>n)return xp({entryRejections:t.entryRejections,manifestRejection:Sp(r,n)});let i=[],a=[],o=[...t.entryRejections];for(let n of t.manifest.entries){let t=e.verifyEntry(n);if(t.kind===`rejected`){o.push(t.rejection);continue}if(t.entryId!==n.id){o.push({code:`SKIP_CACHE_ENTRY_ID_MISMATCH`,entryId:n.id,fields:{verifierEntryId:t.entryId,manifestEntryId:n.id}});continue}t.skipDisposition.enabled?i.push(n.id):a.push(n.id)}return i.length===0?xp({entryRejections:o,skipIneligibleEntryIds:a}):{kind:`skip`,entryRejections:o,skipDisposition:gp(i),skipIneligibleEntryIds:a,skippedEntryIds:i}}function Ep(e){if(!e.isProduction)return{compileEnd:e.compileEnd,handlerStart:e.handlerStart,renderEnd:e.renderEnd,responseKind:e.responseKind}}function Dp(e){return e.isEdgeRuntime&&e.revalidateSeconds===null?(e.peekRequestCacheLife?.()??e.getRequestCacheLife())?.revalidate===void 0?null:{revalidate:0}:e.peekRequestCacheLife?.()??e.getRequestCacheLife()}function Op(){return 0}function kp(e){let t=e.getRequestCacheLife();return e.isEdgeRuntime&&e.revalidateSeconds===null?null:t}function Ap(e){let t=e.revalidateSeconds,n=e.expireSeconds,r=e.requestCacheLife;return r?.revalidate!==void 0&&(t=t===null?r.revalidate:Math.min(t,r.revalidate)),r?.expire!==void 0&&(n=r.expire),{expireSeconds:n,revalidateSeconds:t}}function jp(e){return e.revalidateSeconds===null&&(e.isForceStatic||e.isDynamicError)?1/0:e.revalidateSeconds}function Mp(e){let t=e[W.keys.rootLayout];return typeof t==`string`?t:null}function Np(e,t){if(!x(e))return;let n=Mp(e);return Me({graphVersion:we({routePattern:t,rootBoundaryId:n}),deploymentVersion:`e1ce9af7-d770-43d6-845a-511443f19971`,rootBoundaryId:n})}function Pp(e,t){let n=e[t];return typeof n==`string`?n:null}function Fp(e){let t=Pp(e.element,W.keys.route);return t===null?null:{kind:`layout`,layoutId:e.layoutId,rootBoundaryId:e.artifactCompatibility.rootBoundaryId,routeId:t}}function Ip(){return{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`}}function Lp(e,t,n={}){return{kind:`rejected`,rejection:{code:t,entryId:e.id,fields:n},skipDisposition:Ip()}}function Rp(e,t){let n=t?.getLayoutObservation(e.id);if(!n)return Lp(e,`SKIP_LAYOUT_PARAMS_OBSERVATION_INCOMPLETE`);let r=Mf(n);return r?Lp(e,r.code,r.fields):null}function zp(e){if(!e.isRscRequest||e.clientReuseManifest===void 0)return;let t=e.clientReuseManifest;if(t.kind!==`parsed`||t.manifest.entries.length===0)return;if(!x(e.element)||e.artifactCompatibility===void 0)return{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`};let n=e.element,r=e.artifactCompatibility,i=new Set(Object.entries(e.layoutFlags).filter(([,e])=>e===`s`).map(([e])=>e));return Tp({manifest:t,verifyEntry(t){if(t.kind!==`layout`||!i.has(t.id)||W.parseElementKey(t.id)?.kind!==`layout`)return wp({artifact:{compatibility:r,invalidation:{kind:`unknown`},payloadHash:null},cacheDecision:null,entry:t});let a=Fp({artifactCompatibility:r,element:n,layoutId:t.id});if(a===null)return wp({artifact:{compatibility:r,invalidation:{kind:`unknown`},payloadHash:null},cacheDecision:null,entry:t});let o=Rp(t,e.layoutParamAccess);if(o)return o;let s=dp(t.id),c={...a,routeId:s},l=Zd({budget:kd,dimensions:[],output:c,routeBudget:{routeId:s,variantCacheKeys:[]}}),u=l.kind===`variant`?mp({artifactCompatibility:r,layoutId:t.id,rootBoundaryId:c.rootBoundaryId,routeId:c.routeId,variantCacheKey:l.variant.cacheKey}):r,d=yf({candidateArtifactCompatibility:u,candidateObservation:lf({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:[],completeness:`complete`,dynamicFetches:[],output:c,pathTags:[e.cleanPathname],requestApis:cf({completeness:`complete`,observed:[]})}),candidateVariant:l,currentArtifactCompatibility:u,currentOutput:a});return wp({artifact:{compatibility:u,invalidation:{kind:`valid`},payloadHash:l.kind===`variant`?pp({artifactCompatibility:u,layoutId:t.id,rootBoundaryId:c.rootBoundaryId,routeId:c.routeId,variantCacheKey:l.variant.cacheKey}):null},cacheDecision:d,entry:t})}}).skipDisposition}function Bp(e){return e?.enabled===!0}function Vp(e,t){let n=e.body;if(!n)return e;let r=!1,i=()=>{if(r)return;r=!0;let e=t();e&&(Bs(e)||console.error(`[vinext] Invalid dynamic usage:`,e))},a=new TransformStream({flush(){i()}}),o=n.pipeThrough(a).getReader(),s=new ReadableStream({pull(e){return o.read().then(({done:t,value:n})=>{t?e.close():e.enqueue(n)},t=>{i(),e.error(t)})},cancel(e){return i(),o.cancel(e)}});return new Response(s,{status:e.status,statusText:e.statusText,headers:e.headers})}async function Hp(e){let t=e.probePageBeforeRender??e.isRscRequest,n=e.isRscRequest||t&&!(e.peekDynamicUsage?.()??!1),r=await _l({hasLoadingBoundary:e.hasLoadingBoundary,probePageBeforeRender:n,skipProbes:e.pprFallbackShellSignal!==void 0,layoutCount:e.layoutCount,probeLayoutAt(t){return e.probeLayoutAt(t)},probePage(){return e.probePage()},renderLayoutSpecialError(t,n){return e.renderLayoutSpecialError(t,n)},renderPageSpecialError(t){return e.renderPageSpecialError(t)},resolveSpecialError:Es,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)},classification:e.classification});if(r.response)return r.response;let i=r.layoutFlags,a=Np(e.element,e.routePattern),o=a?.rootBoundaryId??null,s=a?.renderEpoch??null,c=Of({element:e.element,mountedSlotsHeader:e.mountedSlotsHeader,renderEpoch:s,rootBoundaryId:o,routePattern:e.routePattern}),l=kf({element:e.element,renderEpoch:s,rootBoundaryId:o,routePattern:e.routePattern}),u=Df({boundaryOutcome:{kind:`unknown`},cacheability:`unknown`,cacheTags:e.getPageTags(),cleanPathname:e.cleanPathname,completeness:`partial`,output:c,params:e.navigationParams,state:e.peekRenderObservationState?.()??wf()}),d=e.skipDisposition??zp({artifactCompatibility:a,cleanPathname:e.cleanPathname,clientReuseManifest:e.clientReuseManifest,element:e.element,isRscRequest:e.isRscRequest,layoutFlags:i,layoutParamAccess:e.layoutParamAccess}),f=e.isRscRequest&&Bp(d),p=e.dynamicStaleTimeSeconds??(e.isForceDynamic?Op():void 0),m=W.encodeOutgoingPayload({element:e.element,layoutFlags:i,...p!==void 0&&e.isPrerender!==!0&&!e.isForceStatic?{dynamicStaleTimeSeconds:p}:{},...a?{artifactCompatibility:a}:{},renderObservation:u,skipDisposition:e.isRscRequest?d:void 0}),g=e.isProduction?void 0:performance.now(),_=cd(e.createRscOnErrorHandler(e.cleanPathname,e.routePattern)),v=await h(async()=>{if(e.pprFallbackShellSignal&&e.prerenderToReadableStream){let t=e.pprFallbackShellReactSignal??e.pprFallbackShellSignal,n=e.prerenderToReadableStream(m,{onError:_.onRenderError,signal:t});return e.abortPprFallbackShell&&setTimeout(e.abortPprFallbackShell,0),(await n).prelude}return e.renderToReadableStream(m,{onError:_.onRenderError})}),y=null;e.pprFallbackShellSignal&&(y=new Uint8Array(await Fs(v)));let b=e.revalidateSeconds,x=e.expireSeconds,S=e.isPrerender===!0&&e.isSpeculativePrerender!==!0,C=e.isPrerender===!0,w=e.isProgressiveActionRender!==!0&&(e.isProduction||e.isPrerender===!0)&&(b===null||b>0&&b!==1/0)&&!e.isDraftMode&&!e.isForceDynamic&&!f,T=e=>new ReadableStream({start(t){y&&t.enqueue(y),e&&t.close()}}),E=y?{ssrStream:T(!1),...w?{sideStream:T(!0)}:{}}:Ls(v,w),D=E.ssrStream,O={value:null};if(E.sideStream&&e.isRscRequest&&(O.value=Fs(E.sideStream)),e.isRscRequest){let t=null;S&&await Up(O.value),C&&(t=Dp(e),{expireSeconds:x,revalidateSeconds:b}=Ap({expireSeconds:x,requestCacheLife:t,revalidateSeconds:b}));let n=e.consumeDynamicUsage(),r=f?{cacheControl:De}:ta({dynamicUsedDuringBuild:n,isDraftMode:e.isDraftMode,isDynamicError:e.isDynamicError,isForceDynamic:e.isForceDynamic,isForceStatic:e.isForceStatic,isProduction:e.isProduction,expireSeconds:x,revalidateSeconds:b});f&&e.isrDebug?.(`RSC cache write skipped (skip transport payload)`,e.cleanPathname);let i=p!==void 0&&e.isPrerender!==!0&&!e.isForceStatic&&(n||e.isForceDynamic||!w),a=ia(D,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,dynamicStaleTimeSeconds:i?p:void 0,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext,mountedSlotsHeader:e.mountedSlotsHeader,params:e.navigationParams,policy:r,renderedPathAndSearch:e.renderedPathAndSearch,requestCacheLife:t,timing:Ep({compileEnd:g,handlerStart:e.handlerStart,isProduction:e.isProduction,responseKind:`rsc`})});return lp(!e.isProduction&&a.body&&e.consumeInvalidDynamicUsageError?Vp(a,e.consumeInvalidDynamicUsageError):a,{capturedRscDataPromise:e.isProduction&&w?O.value:null,cleanPathname:e.cleanPathname,consumeDynamicUsage:e.consumeDynamicUsage,consumeRenderObservationState:e.consumeRenderObservationState,createRscRenderObservation(t){return Df({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:t.cacheTags,cleanPathname:e.cleanPathname,completeness:`complete`,output:c,params:e.navigationParams,state:t.state})},dynamicUsedDuringBuild:n,getPageTags(){return e.getPageTags()},getRequestCacheLife(){return kp(e)},isrDebug:e.isrDebug,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,omitPendingDynamicCacheState:e.omitPendingDynamicCacheState,renderMode:e.renderMode,preserveClientResponseHeaders:r.cacheState!==`MISS`,expireSeconds:x,revalidateSeconds:jp({isDynamicError:e.isDynamicError,isForceStatic:e.isForceStatic,revalidateSeconds:b}),waitUntil(t){e.waitUntil?.(t)}})}let k=id({getLinks:e.getFontLinks,getPreloads:e.getFontPreloads,getStyles:e.getFontStyles}),A=Rs(k.preloads),j=!1,ee,M=await sd({onShellRendered(){e.isProduction||(ee=performance.now())},renderErrorBoundaryResponse(t){let n=_.getCapturedError();return e.renderErrorBoundaryResponse(n??t,n===null?`ssr`:`rsc`)},async renderHtmlStream(){let t=await e.loadSsrHandler();return ad({capturedRscDataRef:O,getInitialNavigationCacheMetadata:()=>{let t;if(e.isForceStatic)t=`static`;else if(e.isForceDynamic||j||se())t=`dynamic`;else{let n=e.peekRenderObservationState?.();t=n&&(n.dynamicFetches.length>0||n.requestApis.length>0)?`dynamic`:`static`}return{kind:t,...t===`dynamic`&&p!==void 0&&e.isPrerender!==!0&&!w?{dynamicStaleTimeSeconds:p}:{}}},fontData:k,hasCustomGlobalError:e.hasCustomGlobalError,navigationContext:e.getNavigationContext(),basePath:e.basePath,clientTraceMetadata:e.clientTraceMetadata,reactMaxHeadersLength:e.reactMaxHeadersLength,rootParams:e.rootParams,pprFallbackShellSignal:e.pprFallbackShellSignal,formState:e.formState??null,rscStream:D,scriptNonce:e.scriptNonce,sideStream:E.sideStream,ssrHandler:t,fallbackToErrorDocumentOnShellError:e.isPrerender===!0&&e.isSpeculativePrerender===!0?!1:void 0,waitForAllReady:S})},renderSpecialErrorResponse(t){return e.renderPageSpecialError(t)},resolveSpecialError:Es});if(M.response)return M.response;let N=M.htmlStream;if(!N)throw Error(`[vinext] Expected an HTML stream when no fallback response was returned`);let te=rd(M.linkHeader,A,e.reactMaxHeadersLength);if(e.isPrerender===!0&&await M.metadataReady,e.hasLoadingBoundary||!n){let t=_.getCapturedSpecialError();if(t){let n=Es(t);if(n)return N.cancel().catch(()=>{}),e.renderPageSpecialError(n)}}let P=null,F=e.consumeDynamicUsage();j=F;let ne=e.isSpeculativePrerender===!0&&C?()=>F||(e.peekDynamicUsage?.()??se())?(F=!0,j=!0,!0):!1:void 0;(S||C)&&await Up(M.capturedRscData,ne),C&&(P=Dp(e),{expireSeconds:x,revalidateSeconds:b}=Ap({expireSeconds:x,requestCacheLife:P,revalidateSeconds:b})),F||=e.consumeDynamicUsage(),j=F;let re=e.getDraftModeCookieHeader(),ie=F,I=$u(N,()=>{ie||=e.consumeDynamicUsage(),j=ie,e.clearRequestContext()}),L=na({dynamicUsedDuringRender:F,isProgressiveActionRender:e.isProgressiveActionRender===!0,hasScriptNonce:!!e.scriptNonce,isDraftMode:e.isDraftMode,isDynamicError:e.isDynamicError,isForceDynamic:e.isForceDynamic,isForceStatic:e.isForceStatic,isProduction:e.isProduction,expireSeconds:x,revalidateSeconds:b}),oe=Ep({compileEnd:g,handlerStart:e.handlerStart,isProduction:e.isProduction,renderEnd:ee,responseKind:`html`});if(M.shellErrorRecovered){let t=aa(I,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,draftCookie:re,linkHeader:te,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:{headers:e.middlewareContext.headers,status:500},policy:{cacheControl:H},requestCacheLife:P,timing:oe});return ae(t.headers,{cacheControl:H}),t}let R=e.isProduction&&w&&!e.isEdgeRuntime&&b===null&&!e.isDynamicError&&!e.isForceStatic&&!e.scriptNonce&&e.isProgressiveActionRender!==!0&&!F;if(L.shouldWriteToCache||R){let t=aa(I,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,draftCookie:re,linkHeader:te,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext,policy:L,requestCacheLife:P,timing:oe});return e.isPrerender===!0?t:cp(t,{capturedDynamicUsageBeforeContextCleanup(){return ie},capturedRscDataPromise:O.value,cleanPathname:e.cleanPathname,consumeDynamicUsage:e.consumeDynamicUsage,consumeRenderObservationState:e.consumeRenderObservationState,createHtmlRenderObservation(t){return Df({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:t.cacheTags,cleanPathname:e.cleanPathname,completeness:`complete`,output:l,params:e.navigationParams,state:t.state})},createRscRenderObservation(t){return Df({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:t.cacheTags,cleanPathname:e.cleanPathname,completeness:`complete`,output:c,params:e.navigationParams,state:t.state})},getPageTags(){return e.getPageTags()},getRequestCacheLife(){return kp(e)},isrDebug:e.isrDebug,isrHtmlKey:e.isrHtmlKey,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,omitPendingDynamicCacheState:e.omitPendingDynamicCacheState,preserveClientResponseHeaders:!L.shouldWriteToCache,expireSeconds:x,revalidateSeconds:jp({isDynamicError:e.isDynamicError,isForceStatic:e.isForceStatic,revalidateSeconds:b}),waitUntil(t){e.waitUntil?.(t)}})}return aa(I,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,draftCookie:re,linkHeader:te,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext,policy:L,requestCacheLife:P,timing:oe})}async function Up(e,t){if(!e)return;if(!t){try{await e}catch{}return}let n=!1,r=e.catch(()=>{}).then(()=>{n=!0});try{for(;!n&&!t();)await Promise.race([r,new Promise(e=>setTimeout(e,0))])}finally{}}function Wp(e){let t=[];for(let[n,r]of(e.loadings??[]).entries()){if(!r?.default)continue;let i=e.loadingTreePositions?.[n];i!==void 0&&t.push(i)}return t.length===0&&e.loading?.default&&t.push(e.routeSegments.length),t}function Gp(e,t){let n=t.reduce((e,t)=>e===null||t<e?t:e,null);if(n===null)return e.layouts.length;let r=(e.layoutTreePositions??[]).findIndex(e=>e>n);return r===-1?e.layouts.length:r}function Kp(e,t){return t===403?e.forbidden??null:t===401?e.unauthorized??null:t===404?e.notFound??null:null}function qp(e){if(!e)return null;switch(e.dynamic){case`force-dynamic`:return{kind:`dynamic`,reason:{layer:`segment-config`,key:`dynamic`,value:`force-dynamic`}};case`force-static`:case`error`:return{kind:`static`,reason:{layer:`segment-config`,key:`dynamic`,value:e.dynamic}}}return e.revalidate===!1||e.revalidate===1/0?{kind:`static`,reason:{layer:`segment-config`,key:`revalidate`,value:1/0}}:e.revalidate===0?{kind:`dynamic`,reason:{layer:`segment-config`,key:`revalidate`,value:0}}:null}function Jp(e,t){let n=new Map(e.__buildTimeClassifications??[]),r=t?new Map(e.__buildTimeReasons??[]):null;for(let t=0;t<e.layouts.length;t++){let i=qp(e.layouts[t]);i!==null&&(n.set(t,i.kind),r?.set(t,i.reason))}return{buildTimeClassifications:n.size>0?n:null,buildTimeReasons:r&&r.size>0?r:null}}function Yp(e,t){return Jp(e,t!==void 0)}function Xp(e){return e.isProduction&&!e.isProgressiveActionRender&&!e.isDraftMode&&!e.isForceDynamic&&(e.isRscRequest||!e.scriptNonce)&&(e.revalidateSeconds===null||e.revalidateSeconds>0)}function Zp(e){return e.revalidateSeconds===null&&(e.isForceStatic||e.isDynamicError)?1/0:e.revalidateSeconds??0}function Qp(e){return e!=null&&e.size>0}async function $p(e,t){let{createStaticGenerationHeadersContext:n}=await import(`./_next/static/app-static-generation-BX8cz43B.js`),r=Je({headersContext:n({draftModeEnabled:!1,draftModeSecret:e.draftModeSecret,dynamicConfig:e.dynamicConfig,routeKind:`page`,routePattern:e.routePattern}),currentFetchCacheMode:e.currentFetchCacheMode??null,currentForceDynamicFetchDefault:e.dynamicConfig===`force-dynamic`,executionContext:bt(),unstableCacheRevalidation:`foreground`}),i=qe(r,async()=>(A(),c(process.env.VINEXT_PRERENDER===`1`),T(Fa(e.cleanPathname,[],e.routeSegments)),e.setNavigationContext({pathname:e.displayPathname??e.cleanPathname,searchParams:new URLSearchParams,params:e.params}),await h(t)));try{return await i}finally{await Xe(r)}}function em(e,t){return{interceptionContext:e,interceptLayouts:t.interceptLayouts,interceptLayoutSegments:t.interceptLayoutSegments,interceptBranchSegments:t.interceptBranchSegments,interceptLoadings:t.interceptLoadings,interceptLoadingTreePositions:t.interceptLoadingTreePositions,interceptNotFoundBranchSegments:t.interceptNotFoundBranchSegments,interceptNotFound:t.notFound,interceptNotFoundTreePosition:t.notFoundTreePosition,interceptPage:t.page,interceptParams:t.matchedParams,interceptSlotId:t.slotId??null,interceptSlotKey:t.slotKey,interceptSourceMatchedUrl:e,interceptSourcePageSegments:t.sourcePageSegments??null}}async function tm(e){let t=()=>h(()=>nm(e));return!e.pprFallbackShell||!e.pprRuntime?await t():await e.pprRuntime.run(e.pprFallbackShell,t)}async function nm(e){let t=e.route,n=e.dynamicConfig,r=e.revalidateSeconds,i=n===`force-static`,a=n===`error`,o=n===`force-dynamic`,s=process.env.VINEXT_PRERENDER===`1`,c=nc(e.request.headers.get(`user-agent`)??``,e.htmlLimitedBots),l=(!s||e.pprFallbackShell!==void 0)&&c,u=e.renderMode===k,m=I(e.request,e.draftModeSecret),h=me(),g=i||u,_=!g&&Qp(e.searchParams),v=g?new URLSearchParams:e.searchParams,y=Pf(),b=Wp(t),x=b.length>0;if(T(Fa(e.cleanPathname,[],t.routeSegments)),p(e.fetchCache??null),ve(o),e.hasPageModule&&!e.hasPageDefaultExport)return e.clearRequestContext(),new Response(`Page has no default export`,{status:500});let S=Rf({dynamicConfig:n,hasGenerateStaticParams:e.hasGenerateStaticParams,isDynamicRoute:t.isDynamic,middlewareHeaders:e.middlewareContext.headers,request:e.request,revalidateSeconds:r});if(S)return e.clearRequestContext(),S;if(i||a){let{createStaticGenerationHeadersContext:r}=await import(`./_next/static/app-static-generation-BX8cz43B.js`);M(r({draftModeEnabled:m,draftModeSecret:e.draftModeSecret,dynamicConfig:n,routeKind:`page`,routePattern:t.pattern}));let i=Zu(t,e.params,e.cleanPathname,null);e.setNavigationContext({pathname:e.displayPathname??e.cleanPathname,searchParams:new URLSearchParams,params:i})}if(Xp({isDraftMode:m,isForceDynamic:o,isProgressiveActionRender:e.isProgressiveActionRender===!0,isProduction:e.isProduction,isRscRequest:e.isRscRequest,revalidateSeconds:r,scriptNonce:e.scriptNonce})){let{readAppPageCacheResponse:o}=await import(`./_next/static/app-page-cache-DcrtN14Y.js`),s=await o({cleanPathname:e.cleanPathname,clearRequestContext:e.clearRequestContext,hasRequestSearchParams:_,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,isrDebug:e.isrDebug,isrGet:e.isrGet,isrHtmlKey:e.isrHtmlKey,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,middlewareHeaders:e.middlewareContext.headers,middlewareStatus:e.middlewareContext.status,mountedSlotsHeader:e.mountedSlotsHeader,renderMode:e.renderMode,expireSeconds:e.expireSeconds,revalidateSeconds:Zp({isDynamicError:a,isForceStatic:i,revalidateSeconds:r}),renderFreshPageForCache:async()=>{let r=await np({cleanPathname:e.cleanPathname,currentParams:e.params,currentRoute:t,findIntercept:e.findIntercept,getRouteParamNames(e){return e.params},getSourceRoute(t){return e.getSourceRoute(t)},isRscRequest:e.isRscRequest,toInterceptOpts(t){return em(e.interceptionContext,t)}});r.navigationParams=Zu(r.route,r.navigationParams,e.cleanPathname,r.interceptOpts),await e.ensureRouteLoaded?.(r.route);let i=e.resolveRouteDynamicConfig?.(r.route)??(r.route===t?n:void 0);return $p({cleanPathname:e.cleanPathname,displayPathname:e.displayPathname,currentFetchCacheMode:e.resolveRouteFetchCacheMode?.(r.route)??(r.route===t?e.fetchCache??null:null),draftModeSecret:e.draftModeSecret,dynamicConfig:i,params:r.navigationParams,routePattern:r.route.pattern,routeSegments:r.route.routeSegments,setNavigationContext:e.setNavigationContext},async()=>{let{renderAppPageCacheArtifacts:t}=await import(`./_next/static/app-page-cache-render-DoCquoNb.js`),n=await e.buildPageElement(r.route,r.params,r.interceptOpts,new URLSearchParams,void 0,{observeMetadataSearchParamsAccess:i!==`force-static`,observePageSearchParamsAccess:i!==`force-static`,serveStreamingMetadata:!1}),a=e.createRscOnErrorHandler(e.cleanPathname,r.route.pattern),o=await t({basePath:e.basePath,captureRscData:!0,cleanPathname:e.cleanPathname,clientTraceMetadata:e.clientTraceMetadata,element:n,getFontLinks:e.getFontLinks,getFontPreloads:e.getFontPreloads,getFontStyles:e.getFontStyles,getNavigationContext:e.getNavigationContext,loadSsrHandler:e.loadSsrHandler,mountedSlotsHeader:e.mountedSlotsHeader,navigationParams:r.navigationParams,onError:a,reactMaxHeadersLength:e.reactMaxHeadersLength,renderToReadableStream:e.renderToReadableStream,rootParams:e.rootParams,route:r.route,waitForAllReady:!0});return e.clearRequestContext(),{html:o.html,htmlRenderObservation:o.htmlRenderObservation,linkHeader:o.linkHeader,rscData:o.rscData,rscRenderObservation:o.rscRenderObservation,tags:o.tags,cacheControl:o.cacheControl}})},scheduleBackgroundRegeneration(n,r){e.scheduleBackgroundRegeneration(n,r,{routerKind:`App Router`,routePath:t.pattern,routeType:`render`})}});if(s)return s}if(e.skipStaticParamsValidation!==!0&&!(e.isProduction&&o)){let n=await ep({enforceStaticParamsOnly:e.dynamicParamsConfig===!1,generateStaticParams:e.generateStaticParams,isDynamicRoute:t.isDynamic,params:e.staticParamsValidationParams??e.params});if(n)return await e.renderHttpAccessFallbackPage(404,{matchedParams:e.params},e.middlewareContext)||(e.clearRequestContext(),n)}let C=e.pprRuntime?await e.pprRuntime.tryServe(e,r,m,i,o):null;if(C)return C;let E,D=!1,O=await rp({async buildPageElement(t,n,r,i,a){let o=D?E:e.resolveRouteDynamicConfig?.(t);if(o===`force-static`||o===`error`){let{createStaticGenerationHeadersContext:n}=await import(`./_next/static/app-static-generation-BX8cz43B.js`);M(n({draftModeEnabled:m,draftModeSecret:e.draftModeSecret,dynamicConfig:o,routeKind:`page`,routePattern:t.pattern}))}else M(h);return p(e.resolveRouteFetchCacheMode?.(t)??null),ve(o===`force-dynamic`),e.buildPageElement(t,n,r,i,a,{observeMetadataSearchParamsAccess:o!==`force-static`,observePageSearchParamsAccess:o!==`force-static`,serveStreamingMetadata:l})},cleanPathname:e.cleanPathname,currentRoute:t,findIntercept(t){return e.findIntercept(t)},getRouteParamNames(e){return e.params},getSourceRoute(t){return e.getSourceRoute(t)},isRscRequest:e.isRscRequest,layoutParamAccess:y,resolveNavigationParams(e,t,n,r){return Zu(e,t,n,r)},renderInterceptResponse(t,n){let r=e.createRscOnErrorHandler(e.cleanPathname,t.pattern),i=e.renderToReadableStream(n,{onError:r}),a=new Headers({"Content-Type":le,Vary:de});return R(a,e.middlewareContext.headers),Ee(a),Se(a),new Response(i,{status:e.middlewareContext.status??200,headers:a})},async resolveSearchParams(t,n){return await e.ensureRouteLoaded?.(t),E=e.resolveRouteDynamicConfig?.(t),D=!0,E===`force-static`?new URLSearchParams:n},searchParams:e.searchParams,setNavigationContext:e.setNavigationContext,toInterceptOpts(t){return em(e.interceptionContext,t)}});if(O.response)return O.response;let A=()=>ip({buildPageElement(){if(e.actionFailed)throw e.actionError;return e.buildPageElement(t,e.params,O.interceptOpts,v,y,{observeMetadataSearchParamsAccess:!i,observePageSearchParamsAccess:!i,serveStreamingMetadata:l})},async probePageSpecialError(){return x?null:Es(await Ps({probePage:()=>e.probePage(v),runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)}}))},renderErrorBoundaryPage(t){return e.renderErrorBoundaryPage(t)},renderSpecialError(t){return im(e,t,c,O.interceptOpts)},resolveSpecialError:Es}),j=e.pprRuntime?.getState()??null;if(j&&process.env.VINEXT_PRERENDER===`1`&&!e.isRscRequest){let n=await A();if(n.response)return n.response;await e.pprRuntime.warm({element:n.element,onError:e.createRscOnErrorHandler(e.cleanPathname,t.pattern),renderToReadableStream:e.renderToReadableStream,state:j}),Ef()}let N=await A();if(N.response)return N.response;let te=Zu(t,e.params,e.cleanPathname,O.interceptOpts);e.setNavigationContext({pathname:e.displayPathname??e.cleanPathname,searchParams:v,params:te});let P=Yp(t,e.debugClassification),F=e.pprRuntime?.getState()??null,ne=F?.abortController.signal,re=F?.reactAbortController.signal,ie=s&&e.request.headers.get(`x-vinext-prerender-speculative`)===`1`;return Hp({basePath:e.basePath,clientTraceMetadata:e.clientTraceMetadata,reactMaxHeadersLength:e.reactMaxHeadersLength,cleanPathname:e.cleanPathname,clearRequestContext:e.clearRequestContext,consumeDynamicUsage:xe,peekDynamicUsage:se,consumeInvalidDynamicUsageError:Pe,consumeRenderObservationState:Tf,createRscOnErrorHandler(t,n){return e.createRscOnErrorHandler(t,n)},element:N.element,clientReuseManifest:e.clientReuseManifest,getDraftModeCookieHeader:Ce,getFontLinks:e.getFontLinks,getFontPreloads:e.getFontPreloads,getFontStyles:e.getFontStyles,getNavigationContext:e.getNavigationContext,getPageTags(){return Fa(e.cleanPathname,d(),t.routeSegments)},getRequestCacheLife(){return ge()},peekRequestCacheLife(){return w()},handlerStart:e.handlerStart,hasLoadingBoundary:x,omitPendingDynamicCacheState:_,formState:e.formState??null,isProgressiveActionRender:e.isProgressiveActionRender===!0,isDynamicError:a,isDraftMode:m,isForceDynamic:o,isForceStatic:i,isEdgeRuntime:e.isEdgeRuntime===!0,isPrerender:s,isSpeculativePrerender:ie,isProduction:e.isProduction,isRscRequest:e.isRscRequest,isrDebug:e.isrDebug,isrHtmlKey:e.isrHtmlKey,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,expireSeconds:e.expireSeconds,layoutCount:Gp(t,b),loadSsrHandler:e.loadSsrHandler,middlewareContext:e.middlewareContext,navigationParams:te,params:e.params,pprFallbackShellSignal:ne,pprFallbackShellReactSignal:re,renderedPathAndSearch:e.renderedPathAndSearch,abortPprFallbackShell:F?()=>{e.pprRuntime.beginFinalRender(F)}:void 0,layoutParamAccess:y,rootParams:e.rootParams,peekRenderObservationState(){return{dynamicFetches:ee(),requestApis:ze()}},probeLayoutAt(t){return e.probeLayoutAt(t,y)},probePage(){return e.probePage(v)},probePageBeforeRender:e.isRscRequest,classification:{getLayoutId(e){let n=t.layoutTreePositions?.[e]??0;return W.encodeLayoutId(Nl([...t.routeSegments],n))},buildTimeClassifications:P.buildTimeClassifications,buildTimeReasons:P.buildTimeReasons,debugClassification:e.debugClassification,isLayoutObservationDynamic(e){return Nf(y.getLayoutObservation(e))},async runWithIsolatedDynamicScope(e){return f(e)}},dynamicStaleTimeSeconds:e.dynamicStaleTimeSeconds,revalidateSeconds:r,mountedSlotsHeader:e.mountedSlotsHeader,renderMode:e.renderMode??`navigation`,renderErrorBoundaryResponse(t,n){return e.renderErrorBoundaryPage(t,n)},renderLayoutSpecialError(t,n){return rm(e,t,n,c)},renderPageSpecialError(t){return im(e,t,c,O.interceptOpts)},renderToReadableStream:e.renderToReadableStream,hasCustomGlobalError:e.hasCustomGlobalError,prerenderToReadableStream:e.prerenderToReadableStream,routePattern:t.pattern,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)},scriptNonce:e.scriptNonce,waitUntil(e){bt()?.waitUntil(e)}})}async function rm(e,t,n,r){return As({basePath:e.basePath,buildRscRedirectFlightStream:t=>xs({renderToReadableStream:e.renderToReadableStream,digest:t.digest}),clearRequestContext:e.clearRequestContext,getAndClearPendingCookies:U,serveStreamingMetadata:r,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareContext:e.middlewareContext,renderFallbackPage(t){let r=Iu({layoutIndex:n,rootForbiddenModule:e.rootForbiddenModule,rootNotFoundModule:e.rootNotFoundModule,rootUnauthorizedModule:e.rootUnauthorizedModule,routeForbiddenModules:e.route.forbiddens,routeNotFoundModules:e.route.notFounds,routeUnauthorizedModules:e.route.unauthorizeds,statusCode:t}),i={layouts:e.route.layouts.slice(0,n),matchedParams:e.params};return r&&(i.boundaryComponent=r.default,i.boundaryModule=r),e.renderHttpAccessFallbackPage(t,i,null)},request:e.request,specialError:t})}async function im(e,t,n,r){return As({basePath:e.basePath,buildRscRedirectFlightStream:t=>xs({renderToReadableStream:e.renderToReadableStream,digest:t.digest}),clearRequestContext:e.clearRequestContext,getAndClearPendingCookies:U,serveStreamingMetadata:n,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareContext:e.middlewareContext,renderFallbackPage(t){let n=Kp(e.route,t),i=e.route.layouts.length,{module:a,layoutIndex:o}=Lu({layoutIndex:i,rootForbiddenModule:e.rootForbiddenModule,rootNotFoundModule:e.rootNotFoundModule,rootUnauthorizedModule:e.rootUnauthorizedModule,routeForbiddenModules:e.route.forbiddens,routeNotFoundModules:e.route.notFounds,routeUnauthorizedModules:e.route.unauthorizeds,statusCode:t}),s=o!==null&&(n===null||n===a),c={intercept:r,matchedParams:e.params};return s&&o!==null&&(c.layouts=e.route.layouts.slice(0,o+1),a&&(c.boundaryComponent=a.default,c.boundaryModule=a)),e.renderHttpAccessFallbackPage(t,c,null)},request:e.request,specialError:t})}function am(e){return e===`edge`||e===`experimental-edge`}var om=new Set([`auto`,`error`,`force-dynamic`,`force-static`]),sm=new Set([`auto`,`default-cache`,`default-no-store`,`force-cache`,`force-no-store`,`only-cache`,`only-no-store`]);function cm(e){return om.has(e)}function lm(e){return sm.has(e)}function um(e){return e===`edge`||e===`experimental-edge`||e===`nodejs`}function dm(e,t){return t===!1?e===null||e===1/0?1/0:e:typeof t==`number`&&(e===null||t<e)?t:e}function fm(e,t){return typeof t!=`number`||!Number.isInteger(t)||t<0?e:e===void 0?t:Math.min(e,t)}function pm(e){return e.startsWith(`[`)&&e.endsWith(`]`)}function mm(e,t){let n=Math.min(t-1,e.length-1);for(;n>=0;){let t=e[n];if(!t.startsWith(`@`)&&!(t.startsWith(`(`)&&t.endsWith(`)`)))break;--n}return n}function hm(e){return e.parallelBranches?e.parallelBranches.flatMap(e=>e?[e.layout,...e.configLayouts??[],e.page]:[]):e.parallelSegments??[]}function gm(e){let t=hm(e),n=[...e.layouts??[],e.page,...t],r;for(let e of n)e?.dynamicParams===!1?r=!1:e?.dynamicParams===!0&&r!==!1&&(r=!0);if(r!==!1||!e.routeSegments)return r;let i=e.routeSegments,a=-1;for(let e=i.length-1;e>=0;e--)if(pm(i[e])){a=e;break}if(a<0)return r;let o=e.layouts??[],s=e.layoutTreePositions??[],c=!1,l=!1;o.forEach((e,t)=>{mm(i,s[t]??0)===a&&(e?.dynamicParams===!1&&(c=!0),typeof e?.generateStaticParams==`function`&&(l=!0))}),e.page?.dynamicParams===!1&&(c=!0),typeof e.page?.generateStaticParams==`function`&&(l=!0);for(let t of e.parallelBranches??[]){if(!t)continue;let e=i.length-(t.routeSegments?.length??0),n=(e,t)=>{t===a&&(e?.dynamicParams===!1&&(c=!0),typeof e?.generateStaticParams==`function`&&(l=!0))};n(t.layout,e-1),t.configLayouts?.forEach((r,i)=>{n(r,e+(t.configLayoutTreePositions?.[i]??0)-1)}),n(t.page,e+(t.routeSegments?.length??0)-1)}if(!e.parallelBranches)for(let e of t)e?.dynamicParams===!1&&(c=!0),typeof e?.generateStaticParams==`function`&&(l=!0);return c||l?!1:void 0}function _m(e){return e===`default-cache`||e===`force-cache`||e===`only-cache`}function vm(e){return`Route segment config has incompatible fetchCache values including "${e}".`}function ym(e){let t=[...e.layouts??[],e.page],n=hm(e),r={revalidateSeconds:null};r.dynamicParamsConfig=gm(e);let i=!1,a=!1,o=!1,s=!1,c=!1,l=!1;for(let e of t)if(e){if(cm(e.dynamic)&&(e.dynamic===`force-dynamic`&&(l=!0),r.dynamicConfig=l?`force-dynamic`:e.dynamic),um(e.runtime)&&(r.runtime=e.runtime),lm(e.fetchCache)){let t=e.fetchCache;if(c&&(t===`auto`||_m(t))||(t===`force-cache`&&(i=!0),t===`force-no-store`&&(a=!0),t===`only-cache`&&(o=!0),t===`only-no-store`&&(s=!0),i&&a||!i&&!a&&o&&s))throw Error(vm(t));t===`default-no-store`&&(c=!0),i?r.fetchCache=`force-cache`:a?r.fetchCache=`force-no-store`:o?r.fetchCache=`only-cache`:s?r.fetchCache=`only-no-store`:r.fetchCache=t}r.revalidateSeconds=dm(r.revalidateSeconds,e.revalidate)}for(let e of n)if(e){if(e.dynamic===`force-dynamic`?(l=!0,r.dynamicConfig=`force-dynamic`):r.dynamicConfig===void 0&&cm(e.dynamic)&&(r.dynamicConfig=e.dynamic),r.runtime===void 0&&um(e.runtime)&&(r.runtime=e.runtime),lm(e.fetchCache)){let t=e.fetchCache;if(c&&(t===`auto`||_m(t))||(t===`force-cache`&&(i=!0),t===`force-no-store`&&(a=!0),t===`only-cache`&&(o=!0),t===`only-no-store`&&(s=!0),i&&a||!i&&!a&&o&&s))throw Error(vm(t));t===`default-no-store`&&(c=!0),i?r.fetchCache=`force-cache`:a?r.fetchCache=`force-no-store`:o?r.fetchCache=`only-cache`:s?r.fetchCache=`only-no-store`:r.fetchCache===void 0&&(r.fetchCache=t)}r.revalidateSeconds=dm(r.revalidateSeconds,e.revalidate)}for(let t of[e.page,...e.parallelPages??[]])t&&(r.dynamicStaleTimeSeconds=fm(r.dynamicStaleTimeSeconds,t.unstable_dynamicStaleTime));return r.dynamicConfig===`force-dynamic`&&(r.revalidateSeconds=0),r.fetchCache===void 0&&r.dynamicConfig===`error`&&(r.fetchCache=`only-cache`),r}function bm(e){return ym(e).fetchCache??null}function xm(e){return lm(e.fetchCache)?e.fetchCache:null}function Sm(e){return am(e)}var Cm=Symbol.for(`vinext.navigation.fallback`),wm=globalThis,Tm=We(`vinext.navigation.als`),Em=wm[Cm]??={serverContext:null,serverInsertedHTMLCallbacks:[]};function Dm(){return Ue()?Ge():Tm.getStore()??Em}var Om={getServerContext(){return Dm().serverContext},setServerContext(e){Dm().serverContext=e},getInsertedHTMLCallbacks(){return Dm().serverInsertedHTMLCallbacks},clearInsertedHTMLCallbacks(){Dm().serverInsertedHTMLCallbacks=[]}};fn(Om),globalThis[sn]=Om;function km(e){return e.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`).replace(/\n/g,`\\a `).replace(/\r/g,`\\d `)}function Am(e){if(/^--[a-zA-Z0-9_-]+$/.test(e))return e}function jm(e){let t=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`emoji`,`math`,`fangsong`]),n=e.trim();return t.has(n)?n:`'${km(n)}'`}function Mm(e){return Array.isArray(e)?new Set(e).size===1?e[0]:void 0:e}function Nm(e){if(!/[{};]|\/\*|\*\/|<\//i.test(e))return e}function Pm(e){let t=Mm(e);if(!t||t.includes(` `))return;let n=Number(t);return Number.isFinite(n)?n:void 0}function Fm(e){let t=Mm(e);if(!(!t||t.includes(` `)))return Nm(t)}function Im(e){if(e===void 0)return`normal`;let t=Mm(e);if(t&&(t===`normal`||t===`italic`))return t}function Lm(e){let t=e.internalWeight??Pm(e.weight),n=(e.internalStyle?Nm(e.internalStyle):void 0)??(e.google?Im(e.style):Fm(e.style));return{fontFamily:e.fontFamily,...t===void 0?{}:{fontWeight:t},...n?{fontStyle:n}:{}}}function Rm(e,t){let n=t.fontStyle?Nm(t.fontStyle):void 0;return`.${e} { ${[`font-family: ${t.fontFamily}`,...t.fontWeight===void 0?[]:[`font-weight: ${t.fontWeight}`],...n?[`font-style: ${n}`]:[]].join(`; `)}; }\n`}function zm(e){return e.endsWith(`.woff2`)?`font/woff2`:e.endsWith(`.woff`)?`font/woff`:e.endsWith(`.ttf`)?`font/ttf`:e.endsWith(`.otf`)?`font/opentype`:`font/woff2`}function Bm(e,t){if(e.includes(`,`)&&t.includes(`,`)){let[n,r]=e.split(`,`,2),[i,a]=t.split(`,`,2);return n===i?parseInt(r)-parseInt(a):parseInt(n)-parseInt(i)}return parseInt(e)-parseInt(t)}function Vm(e,t,n){let r=[];if(t.wght)for(let e of t.wght)if(!t.ital)r.push([[`wght`,e],...t.variableAxes??[]]);else for(let n of t.ital)r.push([[`ital`,n],[`wght`,e],...t.variableAxes??[]]);else t.variableAxes&&r.push([...t.variableAxes]);if(t.variableAxes)for(let e of r)e.sort(([e],[t])=>{let n=e.charCodeAt(0)>96,r=t.charCodeAt(0)>96;return n&&!r?-1:r&&!n||e>t?1:-1});let i=`https://fonts.googleapis.com/css2?family=${e.replace(/ /g,`+`)}`;if(r.length>0){let e=r[0].map(([e])=>e).join(`,`),t=r.map(e=>e.map(([,e])=>e).join(`,`)).sort(Bm).join(`;`);i=`${i}:${e}@${t}`}return`${i}&display=${n}`}var Hm=Symbol.for(`vinext.font.injectedFonts`),Um=Symbol.for(`vinext.font.injectedClassRules`),Wm=Symbol.for(`vinext.font.injectedVariableRules`),Gm=Symbol.for(`vinext.font.injectedSelfHosted`),Km=Symbol.for(`vinext.font.ssrFontStyles`),qm=Symbol.for(`vinext.font.ssrFontUrls`),Jm=Symbol.for(`vinext.font.ssrFontPreloads`),Ym=Symbol.for(`vinext.font.ssrFontPreloadHrefs`),Xm=globalThis,Zm=Xm[Hm]??=new Set;function Qm(e){return`--font-`+e.toLowerCase().replace(/\s+/g,`-`)}function $m(e){return e.toLowerCase().replace(/[^a-z0-9_-]+/g,`_`).replace(/^_+|_+$/g,``)||`font`}function eh(e){return e?[...new Set((Array.isArray(e)?e:[e]).map(e=>e.trim()).filter(Boolean))].sort().join(`,`):``}function th(e){let t=eh(e);return t===`variable`?``:t}function nh(e){let t=new Set((Array.isArray(e)?e:e?[e]:[]).map(e=>e.trim()).filter(Boolean)),n=t.has(`italic`),r=t.has(`normal`);return n?r?`italic,normal`:`italic`:``}function rh(e){return e?e.map(e=>e.trim()).join(`,`):``}function ih(e){return e===void 0?``:e?`1`:`0`}function ah(e){return e===void 0?``:typeof e==`boolean`?ih(e):e}function oh(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(36).padStart(7,`0`)}function sh(e,t,n,r){return oh([e,n,th(t.weight),nh(t.style),eh(t.subsets),t.display??`swap`,ih(t.preload),rh(r),ah(t.adjustFontFallback),eh(t.axes),t._vinext?.font?.selfHostedCSS??``,t._vinext?.font?.fontWeight?.toString()??``,t._vinext?.font?.fontStyle??``].join(`\0`))}function ch(e,t){let n=t.weight?Array.isArray(t.weight)?t.weight:[t.weight]:[],r=t.style?Array.isArray(t.style)?t.style:[t.style]:[],i=r.includes(`italic`),a=r.includes(`normal`),o=i?[...a?[`0`]:[],`1`]:void 0,s=n.length===1&&n[0]===`variable`?[]:n;return Vm(e,{wght:s.length>0?s:o?[`400`]:void 0,ital:o},t.display??`swap`)}function lh(e){if(!Zm.has(e)&&(Zm.add(e),typeof document<`u`)){let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,document.head.appendChild(t)}}var uh=Xm[Um]??=new Set;function dh(e,t){if(uh.has(e))return;uh.add(e);let n=Rm(e,t);if(typeof document>`u`){mh.push(n);return}let r=document.createElement(`style`);r.textContent=n,r.setAttribute(`data-vinext-font-class`,e),document.head.appendChild(r)}var fh=Xm[Wm]??=new Set;function ph(e,t,n){if(fh.has(e))return;fh.add(e);let r=`.${e} { ${t}: ${n}; }\n`;if(typeof document>`u`){mh.push(r);return}let i=document.createElement(`style`);i.textContent=r,i.setAttribute(`data-vinext-font-variable`,e),document.head.appendChild(i)}var mh=Xm[Km]??=[];function hh(){return[...mh]}var gh=Xm[qm]??=[];function _h(){return[...gh]}var vh=Xm[Jm]??=[],yh=Xm[Ym]??=new Set;function bh(){return[...vh]}function xh(e){if(!(typeof document<`u`))for(let t of e)t.startsWith(`/`)&&!yh.has(t)&&(yh.add(t),vh.push({href:t,type:zm(t)}))}var Sh=Xm[Gm]??=new Set;function Ch(e,t=[]){if(xh(t),Sh.has(e))return;if(Sh.add(e),typeof document>`u`){mh.push(e);return}let n=document.createElement(`style`);n.textContent=e,n.setAttribute(`data-vinext-font-selfhosted`,`true`),document.head.appendChild(n)}function wh(e){return function(t={}){let n=t._vinext?.font,r=t.fallback??[],i=t.adjustFontFallback===!1||!n?.adjustedFallbackCSS?[]:[`'${km(e)} Fallback'`],a=[`'${km(e)}'`,...i,...r.map(jm)].join(`, `),o=Qm(e),s=t.variable?Am(t.variable)??o:o,c=sh(e,t,s,r),l=$m(e),u=`__font_${l}_${c}`,d=`__variable_${l}_${c}`,f=Lm({fontFamily:a,weight:t.weight,style:t.style,internalWeight:n?.fontWeight,internalStyle:n?.fontStyle,google:!0});if(n?.selfHostedCSS)Ch(n.selfHostedCSS,n.preloadUrls);else{let n=ch(e,t);lh(n),typeof document>`u`&&(gh.includes(n)||gh.push(n))}return t.adjustFontFallback!==!1&&n?.adjustedFallbackCSS&&Ch(n.adjustedFallbackCSS),dh(u,f),t.variable&&ph(d,s,a),{className:u,style:f,...t.variable?{variable:d}:{}}}}var Th=new Proxy({},{get(e,t){if(typeof t==`string`)return t==="__esModule"?!0:t==="default"?Th:wh(t.replace(/_/g,` `).replace(/([a-z])([A-Z])/g,`$1 $2`))}}),Eh=Symbol.for(`vinext.fontLocal.injectedFonts`),Dh=Symbol.for(`vinext.fontLocal.injectedClassRules`),Oh=Symbol.for(`vinext.fontLocal.injectedVariableRules`),kh=Symbol.for(`vinext.fontLocal.injectedRootVariables`),Ah=Symbol.for(`vinext.fontLocal.ssrFontStyles`),jh=Symbol.for(`vinext.fontLocal.ssrFontPreloads`),Mh=Symbol.for(`vinext.fontLocal.ssrFontPreloadHrefs`),Nh=globalThis;Nh[Eh]??=new Set;var Ph=Nh[Ah]??=[],Fh=Nh[jh]??=[];Nh[Mh]??=new Set;function Ih(){return[...Ph]}function Lh(){return[...Fh]}Nh[Dh]??=new Set,Nh[Oh]??=new Set,Nh[kh]??=new Set;var Rh=new jt,zh=console.error;console.error=(...e)=>{Rh.getStore()===!0&&typeof e[0]==`string`&&e[0].includes(`Invalid hook call`)||zh.apply(console,e)};function Bh(e){mn(e),e===null&&Ga(null)}function Vh(){M(null),Bh(null)}async function Hh(e){return qa(Wa(e.params,e.rootParamNamesByPattern[e.pattern]),()=>e.fn({params:e.params}))}var Uh=((e,t,n,r)=>function(){return e.createElement(e.Fragment,null,[...t.css.map(t=>e.createElement(`link`,{key:`css:`+t,rel:`stylesheet`,...r?{precedence:r}:{},href:t,"data-rsc-css-href":t})),n&&e.createElement(n,{key:`remove-duplicate-css`})])})(G.default,Mt.serverResources[`app/layout.tsx`],void 0,`vite-rsc/importer-resources`),Wh=t({default:()=>Jh,metadata:()=>Gh,viewport:()=>Kh}),Gh={title:`Apps on Google Play`,description:`A handcrafted Next.js recreation of the Google Play Apps storefront.`,icons:{icon:[{url:`/icons/home.ico`,type:`image/x-icon`}]}},Kh={width:`device-width`,initialScale:1,viewportFit:`cover`};function qh({children:e}){return(0,q.jsx)(`html`,{lang:`en`,children:(0,q.jsx)(`body`,{children:e})})}var Jh=Yh(qh,`default`);function Yh(e,t){if(typeof e!=`function`)return e;function n(t){return G.createElement(G.Fragment,null,G.createElement(Uh),G.createElement(e,t))}return Object.defineProperty(n,"name",{value:t}),n}var Xh=en(zt),Zh=tn(async(e,t)=>(0,Vt.prerender)(e,Rt(),t)),Qh=()=>import(`./_next/static/app-route-handler-dispatch-Be2YIqVp.js`);function $h(){return[...hh(),...Ih()]}function eg(){return[...bh(),...Lh()]}l({cacheMaxMemorySize:void 0});var tg=`299f3fe86e4ec6e72f76c8df4e538db3`;Ca();var ng=process.env.NEXT_PRIVATE_DEBUG_CACHE?console.debug.bind(console,`[vinext] ISR:`):void 0,X=process.env.VINEXT_DEBUG_CLASSIFICATION?function(e,t){console.debug(`[vinext] CLS:`,e,t)}:void 0;function rg(e){return bm({layouts:e.layouts,page:e.page,parallelSegments:Object.values(e.slots??{}).flatMap(e=>[e.layout,...e.configLayouts??[],e.page??e.default])})}function ig(e){return ym({layouts:e.layouts,page:e.page,parallelSegments:Object.values(e.slots??{}).flatMap(e=>[e.layout,...e.configLayouts??[],e.page??e.default])}).dynamicConfig??null}function ag(e){return ym({layouts:e.layouts,page:e.page,parallelSegments:Object.values(e.slots??{}).flatMap(e=>[e.layout,...e.configLayouts??[],e.page??e.default])}).runtime??null}var og=()=>import(`./_next/static/route-CkH7Cg-p.js`),Z=()=>Promise.resolve().then(()=>Wh),sg=()=>import(`./_next/static/route-Cn40NftM.js`),cg=()=>import(`./_next/static/route-CN6VdJwN.js`),lg=()=>import(`./_next/static/route-DWAMZHLa.js`),ug=()=>import(`./_next/static/route-CVPPmUto.js`),dg=()=>import(`./_next/static/route-zazqen-A2.js`),fg=()=>import(`./_next/static/route-B0WNLJZp.js`),pg=()=>import(`./_next/static/route-CCUsQ7AG.js`),mg=()=>import(`./_next/static/route-DXTJyFWD.js`),hg=()=>import(`./_next/static/page-C457kN_n.js`),gg=()=>import(`./_next/static/route-ipFkK3iA.js`),_g=()=>import(`./_next/static/route-CHJzaQu2.js`),vg=()=>import(`./_next/static/route-D_G2SOlz.js`),yg=()=>import(`./_next/static/route-DiT9UYUd.js`),bg=()=>import(`./_next/static/route-96DdgJBs.js`),xg=()=>import(`./_next/static/route-C74RA7va.js`),Sg=()=>import(`./_next/static/route-Cim7D4XQ.js`),Cg=()=>import(`./_next/static/route-BovNctFc.js`),wg=()=>import(`./_next/static/route-DslPFTAK.js`),Tg=()=>import(`./_next/static/route-jMq6H_yh.js`),Eg=()=>import(`./_next/static/route-CNNiXZoM2.js`),Dg=()=>import(`./_next/static/route-DAyF4BHS.js`),Og=()=>import(`./_next/static/route-xtz48fti.js`),kg=()=>import(`./_next/static/route-vD15s2A8.js`),Ag=()=>import(`./_next/static/route-C2LuSjoh.js`),jg=()=>import(`./_next/static/route-UWQN8uYr.js`),Mg=()=>import(`./_next/static/route-BBmE0xf12.js`),Ng=()=>import(`./_next/static/route-CjUCKwSj2.js`),Pg=()=>import(`./_next/static/route-CeVsDcbj2.js`),Fg=()=>import(`./_next/static/route-BdG5ojMj2.js`),Ig=()=>import(`./_next/static/route-mzLdjDCs2.js`),Lg=()=>import(`./_next/static/page-DlRXyzSQ.js`),Rg=()=>import(`./_next/static/layout-ClEWbCcj.js`),zg=()=>import(`./_next/static/page-Cs-erYTy.js`),Bg=()=>import(`./_next/static/page-DlBGATQp.js`),Vg=()=>import(`./_next/static/layout-Ds3pFa6r.js`),Hg=()=>import(`./_next/static/route-Dbs39TkC.js`),Ug=()=>import(`./_next/static/route-BWk9YK7r.js`),Wg=()=>import(`./_next/static/route-BPcAdbz_.js`);function Q(e){return(e=>{switch(e){case 0:return new Map([[0,`static`]]);case 1:return new Map([[0,`static`]]);case 2:return new Map([[0,`static`]]);case 3:return new Map([[0,`static`]]);case 4:return new Map([[0,`static`]]);case 5:return new Map([[0,`static`]]);case 6:return new Map([[0,`static`]]);case 7:return new Map([[0,`static`]]);case 8:return new Map([[0,`static`]]);case 9:return new Map([[0,`static`]]);case 10:return new Map([[0,`static`]]);case 11:return new Map([[0,`static`]]);case 12:return new Map([[0,`static`]]);case 13:return new Map([[0,`static`]]);case 14:return new Map([[0,`static`]]);case 15:return new Map([[0,`static`]]);case 16:return new Map([[0,`static`]]);case 17:return new Map([[0,`static`]]);case 18:return new Map([[0,`static`]]);case 19:return new Map([[0,`static`]]);case 20:return new Map([[0,`static`]]);case 21:return new Map([[0,`static`]]);case 22:return new Map([[0,`static`]]);case 23:return new Map([[0,`static`]]);case 24:return new Map([[0,`static`]]);case 25:return new Map([[0,`static`]]);case 26:return new Map([[0,`static`]]);case 27:return new Map([[0,`static`]]);case 28:return new Map([[0,`static`]]);case 29:return new Map([[0,`static`]]);case 30:return new Map([[0,`static`]]);case 31:return new Map([[0,`static`],[1,`static`]]);case 32:return new Map([[0,`static`],[1,`static`]]);case 33:return new Map([[0,`static`],[1,`static`]]);case 34:return new Map([[0,`static`]]);case 35:return new Map([[0,`static`]]);case 36:return new Map([[0,`static`]]);default:return null}})(e)}function $(e){return null}var Gg=[{__buildTimeClassifications:Q(0),__buildTimeReasons:X?$(0):null,ids:{route:`route:/api/netflix/activity/:sessionId/commands`,page:null,routeHandler:`route-handler:/api/netflix/activity/:sessionId/commands`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/activity/:sessionId/commands`,patternParts:[`api`,`netflix`,`activity`,`:sessionId`,`commands`],isDynamic:!0,params:[`sessionId`],staticSiblings:[`titles`],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:og,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`activity`,`[sessionId]`,`commands`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(1),__buildTimeReasons:X?$(1):null,ids:{route:`route:/api/netflix/profiles/:id/library`,page:null,routeHandler:`route-handler:/api/netflix/profiles/:id/library`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles/:id/library`,patternParts:[`api`,`netflix`,`profiles`,`:id`,`library`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:sg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`,`[id]`,`library`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(2),__buildTimeReasons:X?$(2):null,ids:{route:`route:/api/netflix/profiles/:id/select`,page:null,routeHandler:`route-handler:/api/netflix/profiles/:id/select`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles/:id/select`,patternParts:[`api`,`netflix`,`profiles`,`:id`,`select`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:cg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`,`[id]`,`select`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(3),__buildTimeReasons:X?$(3):null,ids:{route:`route:/api/netflix/providers/:providerId/sync`,page:null,routeHandler:`route-handler:/api/netflix/providers/:providerId/sync`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/providers/:providerId/sync`,patternParts:[`api`,`netflix`,`providers`,`:providerId`,`sync`],isDynamic:!0,params:[`providerId`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:lg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`providers`,`[providerId]`,`sync`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(4),__buildTimeReasons:X?$(4):null,ids:{route:`route:/api/spotify/providers/:id/sync`,page:null,routeHandler:`route-handler:/api/spotify/providers/:id/sync`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/providers/:id/sync`,patternParts:[`api`,`spotify`,`providers`,`:id`,`sync`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:ug,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`providers`,`[id]`,`sync`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(5),__buildTimeReasons:X?$(5):null,ids:{route:`route:/api/spotify/tracks/:id/audio`,page:null,routeHandler:`route-handler:/api/spotify/tracks/:id/audio`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/tracks/:id/audio`,patternParts:[`api`,`spotify`,`tracks`,`:id`,`audio`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:dg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`tracks`,`[id]`,`audio`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(6),__buildTimeReasons:X?$(6):null,ids:{route:`route:/api/netflix/profiles/:id`,page:null,routeHandler:`route-handler:/api/netflix/profiles/:id`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles/:id`,patternParts:[`api`,`netflix`,`profiles`,`:id`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:fg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`,`[id]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(7),__buildTimeReasons:X?$(7):null,ids:{route:`route:/api/netflix/stream/:id`,page:null,routeHandler:`route-handler:/api/netflix/stream/:id`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/stream/:id`,patternParts:[`api`,`netflix`,`stream`,`:id`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:pg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`stream`,`[id]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(8),__buildTimeReasons:X?$(8):null,ids:{route:`route:/api/netflix/titles/:id`,page:null,routeHandler:`route-handler:/api/netflix/titles/:id`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/titles/:id`,patternParts:[`api`,`netflix`,`titles`,`:id`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:mg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`titles`,`[id]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(9),__buildTimeReasons:X?$(9):null,ids:{route:`route:/`,page:`page:/`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/`,patternParts:[],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:hg,routeHandler:null,__loadRouteHandler:null,layouts:[null],__loadLayouts:[Z],routeSegments:[],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(10),__buildTimeReasons:X?$(10):null,ids:{route:`route:/api/access`,page:null,routeHandler:`route-handler:/api/access`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/access`,patternParts:[`api`,`access`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:gg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`access`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(11),__buildTimeReasons:X?$(11):null,ids:{route:`route:/api/keyboard`,page:null,routeHandler:`route-handler:/api/keyboard`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/keyboard`,patternParts:[`api`,`keyboard`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:_g,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`keyboard`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(12),__buildTimeReasons:X?$(12):null,ids:{route:`route:/api/netflix/activity`,page:null,routeHandler:`route-handler:/api/netflix/activity`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/activity`,patternParts:[`api`,`netflix`,`activity`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:vg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`activity`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(13),__buildTimeReasons:X?$(13):null,ids:{route:`route:/api/netflix/activity/titles`,page:null,routeHandler:`route-handler:/api/netflix/activity/titles`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/activity/titles`,patternParts:[`api`,`netflix`,`activity`,`titles`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:yg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`activity`,`titles`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(14),__buildTimeReasons:X?$(14):null,ids:{route:`route:/api/netflix/library`,page:null,routeHandler:`route-handler:/api/netflix/library`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/library`,patternParts:[`api`,`netflix`,`library`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:bg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`library`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(15),__buildTimeReasons:X?$(15):null,ids:{route:`route:/api/netflix/markers`,page:null,routeHandler:`route-handler:/api/netflix/markers`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/markers`,patternParts:[`api`,`netflix`,`markers`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:xg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`markers`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(16),__buildTimeReasons:X?$(16):null,ids:{route:`route:/api/netflix/movies/import`,page:null,routeHandler:`route-handler:/api/netflix/movies/import`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/movies/import`,patternParts:[`api`,`netflix`,`movies`,`import`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Sg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`movies`,`import`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(17),__buildTimeReasons:X?$(17):null,ids:{route:`route:/api/netflix/profiles`,page:null,routeHandler:`route-handler:/api/netflix/profiles`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles`,patternParts:[`api`,`netflix`,`profiles`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Cg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(18),__buildTimeReasons:X?$(18):null,ids:{route:`route:/api/netflix/progress`,page:null,routeHandler:`route-handler:/api/netflix/progress`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/progress`,patternParts:[`api`,`netflix`,`progress`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:wg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`progress`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(19),__buildTimeReasons:X?$(19):null,ids:{route:`route:/api/netflix/search`,page:null,routeHandler:`route-handler:/api/netflix/search`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/search`,patternParts:[`api`,`netflix`,`search`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Tg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`search`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(20),__buildTimeReasons:X?$(20):null,ids:{route:`route:/api/netflix/subtitle-preferences`,page:null,routeHandler:`route-handler:/api/netflix/subtitle-preferences`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/subtitle-preferences`,patternParts:[`api`,`netflix`,`subtitle-preferences`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Eg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`subtitle-preferences`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(21),__buildTimeReasons:X?$(21):null,ids:{route:`route:/api/remote-screen`,page:null,routeHandler:`route-handler:/api/remote-screen`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/remote-screen`,patternParts:[`api`,`remote-screen`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Dg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`remote-screen`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(22),__buildTimeReasons:X?$(22):null,ids:{route:`route:/api/remote-screen/control`,page:null,routeHandler:`route-handler:/api/remote-screen/control`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/remote-screen/control`,patternParts:[`api`,`remote-screen`,`control`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Og,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`remote-screen`,`control`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(23),__buildTimeReasons:X?$(23):null,ids:{route:`route:/api/remote-screen/frame`,page:null,routeHandler:`route-handler:/api/remote-screen/frame`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/remote-screen/frame`,patternParts:[`api`,`remote-screen`,`frame`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:kg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`remote-screen`,`frame`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(24),__buildTimeReasons:X?$(24):null,ids:{route:`route:/api/spotify/downloads`,page:null,routeHandler:`route-handler:/api/spotify/downloads`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/downloads`,patternParts:[`api`,`spotify`,`downloads`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ag,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`downloads`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(25),__buildTimeReasons:X?$(25):null,ids:{route:`route:/api/spotify/music`,page:null,routeHandler:`route-handler:/api/spotify/music`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/music`,patternParts:[`api`,`spotify`,`music`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:jg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`music`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(26),__buildTimeReasons:X?$(26):null,ids:{route:`route:/api/spotify/playlists`,page:null,routeHandler:`route-handler:/api/spotify/playlists`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/playlists`,patternParts:[`api`,`spotify`,`playlists`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Mg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`playlists`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(27),__buildTimeReasons:X?$(27):null,ids:{route:`route:/api/spotify/providers`,page:null,routeHandler:`route-handler:/api/spotify/providers`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/providers`,patternParts:[`api`,`spotify`,`providers`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ng,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`providers`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(28),__buildTimeReasons:X?$(28):null,ids:{route:`route:/api/spotify/recently-played`,page:null,routeHandler:`route-handler:/api/spotify/recently-played`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/recently-played`,patternParts:[`api`,`spotify`,`recently-played`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Pg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`recently-played`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(29),__buildTimeReasons:X?$(29):null,ids:{route:`route:/api/spotify/tracks`,page:null,routeHandler:`route-handler:/api/spotify/tracks`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/tracks`,patternParts:[`api`,`spotify`,`tracks`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Fg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`tracks`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(30),__buildTimeReasons:X?$(30):null,ids:{route:`route:/api/trackpad`,page:null,routeHandler:`route-handler:/api/trackpad`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/trackpad`,patternParts:[`api`,`trackpad`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ig,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`trackpad`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(31),__buildTimeReasons:X?$(31):null,ids:{route:`route:/netflix`,page:`page:/netflix`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`,`layout:/netflix`],templates:[],slots:{}},pattern:`/netflix`,patternParts:[`netflix`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:Lg,routeHandler:null,__loadRouteHandler:null,layouts:[null,null],__loadLayouts:[Z,Rg],routeSegments:[`netflix`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0,1],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null,null],__loadErrors:[null,null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null,null],__loadNotFounds:[null,null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null,null],__loadForbiddens:[null,null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null,null],__loadUnauthorizeds:[null,null]},{__buildTimeClassifications:Q(32),__buildTimeReasons:X?$(32):null,ids:{route:`route:/netflix/search`,page:`page:/netflix/search`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`,`layout:/netflix`],templates:[],slots:{}},pattern:`/netflix/search`,patternParts:[`netflix`,`search`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:zg,routeHandler:null,__loadRouteHandler:null,layouts:[null,null],__loadLayouts:[Z,Rg],routeSegments:[`netflix`,`search`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0,1],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null,null],__loadErrors:[null,null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null,null],__loadNotFounds:[null,null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null,null],__loadForbiddens:[null,null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null,null],__loadUnauthorizeds:[null,null]},{__buildTimeClassifications:Q(33),__buildTimeReasons:X?$(33):null,ids:{route:`route:/spotify`,page:`page:/spotify`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`,`layout:/spotify`],templates:[],slots:{}},pattern:`/spotify`,patternParts:[`spotify`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:Bg,routeHandler:null,__loadRouteHandler:null,layouts:[null,null],__loadLayouts:[Z,Vg],routeSegments:[`spotify`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0,1],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null,null],__loadErrors:[null,null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null,null],__loadNotFounds:[null,null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null,null],__loadForbiddens:[null,null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null,null],__loadUnauthorizeds:[null,null]},{__buildTimeClassifications:Q(34),__buildTimeReasons:X?$(34):null,ids:{route:`route:/api/netflix/subtitles/:id/:ownerId/:track`,page:null,routeHandler:`route-handler:/api/netflix/subtitles/:id/:ownerId/:track`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/subtitles/:id/:ownerId/:track`,patternParts:[`api`,`netflix`,`subtitles`,`:id`,`:ownerId`,`:track`],isDynamic:!0,params:[`id`,`ownerId`,`track`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Hg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`subtitles`,`[id]`,`[ownerId]`,`[track]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(35),__buildTimeReasons:X?$(35):null,ids:{route:`route:/api/netflix/media/:id/:path+`,page:null,routeHandler:`route-handler:/api/netflix/media/:id/:path+`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/media/:id/:path+`,patternParts:[`api`,`netflix`,`media`,`:id`,`:path+`],isDynamic:!0,params:[`id`,`path`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ug,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`media`,`[id]`,`[...path]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(36),__buildTimeReasons:X?$(36):null,ids:{route:`route:/api/netflix/stream/:id/:path+`,page:null,routeHandler:`route-handler:/api/netflix/stream/:id/:path+`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/stream/:id/:path+`,patternParts:[`api`,`netflix`,`stream`,`:id`,`:path+`],isDynamic:!0,params:[`id`,`path`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Wg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`stream`,`[id]`,`[...path]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]}],Kg=Ou(Gg),qg=[],Jg=``,Yg=!1,Xg=void 0,Zg=null,Qg=null,$g=null,e_=[Wh],t_=null,n_=(e,t,n)=>Xs(At,e,t,n),r_=Dd({basePath:``,trailingSlash:Yg,htmlLimitedBots:Xg,rootBoundaries:{rootForbiddenModule:Qg,rootLayouts:e_,rootNotFoundModule:Zg,rootUnauthorizedModule:$g},globalErrorModule:null,loadGlobalNotFoundModule:t_,globalNotFoundEnabled:!1,metadataRoutes:qg,ssrLoader(){return import(`./ssr/index.js`)},fontProviders:{buildFontLinkHeader:Rs,getFontLinks:_h,getFontPreloads:eg,getFontStyles:$h},makeThenableParams:K,sanitizer:Js,rscRenderer:Xh,getAndClearPendingCookies:U,getNavigationContext:pn,resolveChildSegments:Tl,clearRequestContext(){Vh()},createRscOnErrorHandler(e,t,n){return n_(e,t,n)}});function i_(e){return Kg.matchRoute(e)}function a_(e){return Kg.matchRequestRoute(e)}function o_(e,t=null){return Kg.findIntercept(e,t)}async function s_(e,t,n,r,i,a=n,o){return await Hf(e),Wu({route:e,params:t,routePath:n,displayPathname:a,pageRequest:r,globalErrorModule:null,rootNotFoundModule:null,rootForbiddenModule:null,rootUnauthorizedModule:null,metadataRoutes:qg,layoutParamAccess:i,basePath:``,trailingSlash:Yg,htmlLimitedBots:Xg,scriptNonce:o})}var c_=null,l_=si,u_=[],d_={beforeFiles:[],afterFiles:[],fallback:[]},f_=[],p_={},m_=new Set([`/icons/home.ico`,`/icons/keyboard.ico`,`/icons/netflix.ico`,`/icons/remote-screen.ico`,`/icons/spotify.ico`]),h_=31536e3,g_=void 0,__=6e3,v_=``,y_=[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384],b_={},x_=!1,S_=!1,C_=Sa;async function w_(e){let{seedMemoryCacheFromPrerender:t}=await import(`./_next/static/seed-cache-oCd9Lfdw.js`);return t(e,{buildAppPageHtmlKey(e){return xi(e)},buildAppPageRscKey(e){return Ci(e)},writeAppPageEntry(e,t,n){return ui(e,t,n)}})}var T_=[],E_=[`localhost`,`127.0.0.1`,`[::1]`];function D_(){return new Response(`Forbidden`,{status:403,headers:{"Content-Type":`text/plain`}})}function O_(e){if(e.headers.get(`sec-fetch-mode`)===`no-cors`&&e.headers.get(`sec-fetch-site`)===`cross-site`)return console.warn(`[vinext] Blocked cross-site no-cors request to `+new URL(e.url).pathname),D_();let t=e.headers.get(`origin`);if(!t)return null;if(t===`null`)return T_.includes(`null`)?null:(console.warn(`[vinext] Blocked request with Origin: null. Add "null" to allowedDevOrigins to allow sandboxed contexts.`),D_());let n;try{n=new URL(t).hostname.toLowerCase()}catch{return D_()}if(E_.includes(n)||n.endsWith(`.localhost`))return null;let r=(e.headers.get(`x-forwarded-host`)||e.headers.get(`host`)||``).split(`,`)[0].trim().split(`:`)[0].toLowerCase();if(r&&n===r)return null;for(let e of T_)if(e.startsWith(`*.`)){let t=e.slice(1);if(n===e.slice(2)||n.endsWith(t))return null}else if(n===e)return null;return console.warn(`[vinext] Blocked cross-origin request from "${t}" to ${new URL(e.url).pathname}. To allow this origin, add it to allowedDevOrigins in next.config.js.`),D_()}var k_={},A_=os({basePath:``,buildId:`e1ce9af7-d770-43d6-845a-511443f19971`,ensureRouteLoaded:Hf,prefetchInlining:!1,clearRequestContext(){Vh()},registerCacheAdapters:ss,configHeaders:f_,configRedirects:u_,configRewrites:d_,imageConfig:p_,isDev:!1,draftModeSecret:tg,dispatchMatchedPage({clientReuseManifest:e,cleanPathname:t,displayPathname:n,formState:r,actionError:i,actionFailed:a,handlerStart:o,interceptionContext:s,interceptionPathname:c,isProgressiveActionRender:l,isRscRequest:u,middlewareContext:d,mountedSlotsHeader:f,params:p,pprFallbackCacheShells:m,pprFallbackShell:h,renderedConcreteUrlPaths:g,skipStaticParamsValidation:_,staticParamsValidationParams:v,rootParams:y,request:b,renderedPathAndSearch:x,route:S,scriptNonce:C,searchParams:w,renderMode:T}){let E=S.page?.default,D=ym({layouts:S.layouts,layoutTreePositions:S.layoutTreePositions,page:S.page,parallelBranches:Object.values(S.slots??{}).map(e=>({layout:e.layout,configLayouts:e.configLayouts,configLayoutTreePositions:e.configLayoutTreePositions,page:e.page??e.default,routeSegments:e.routeSegments})),parallelPages:Object.values(S.slots??{}).map(e=>e.page??e.default),routeSegments:S.routeSegments}),O=Jf({layouts:S.layouts,layoutTreePositions:S.layoutTreePositions,page:S.page,parallelBranches:Object.values(S.slots??{}).map(e=>({layout:e.layout,configLayouts:e.configLayouts,configLayoutTreePositions:e.configLayoutTreePositions,page:e.page??e.default,paramNames:e.slotParamNames,patternParts:e.slotPatternParts,routeSegments:e.routeSegments})),routePatternParts:S.patternParts,routeSegments:S.routeSegments}),k=K(p);return tm({basePath:``,ensureRouteLoaded:Hf,clientTraceMetadata:g_,reactMaxHeadersLength:__,buildPageElement(e,r,i,a,o,s){return s_(e,r,t,{opts:i,searchParams:a,isRscRequest:u,request:b,mountedSlotsHeader:f,renderMode:T,observeMetadataSearchParamsAccess:s?.observeMetadataSearchParamsAccess===!0,observePageSearchParamsAccess:s?.observePageSearchParamsAccess===!0,serveStreamingMetadata:s?.serveStreamingMetadata,isProduction:!0},o,n,C)},clientReuseManifest:e,cleanPathname:t,displayPathname:n,clearRequestContext(){Vh()},createRscOnErrorHandler(e,t){return n_(b,e,t)},debugClassification:X,draftModeSecret:tg,dynamicConfig:D.dynamicConfig,dynamicStaleTimeSeconds:D.dynamicStaleTimeSeconds,dynamicParamsConfig:D.dynamicParamsConfig,fetchCache:D.fetchCache??null,isEdgeRuntime:Sm(D.runtime),findIntercept(e){return o_(e===t?c:e,s)},generateStaticParams:O,getFontLinks:_h,getFontPreloads:eg,getFontStyles:$h,getNavigationContext:pn,getSourceRoute(e){return Gg[e]},hasCustomGlobalError:!1,hasGenerateStaticParams:O.length>0,hasPageDefaultExport:!!E,hasPageModule:!!S.page,handlerStart:o,htmlLimitedBots:Xg,interceptionContext:s,expireSeconds:h_,formState:r,actionError:i,actionFailed:a,isProgressiveActionRender:l,isProduction:!0,isRscRequest:u,isrDebug:ng,isrGet:ci,isrHtmlKey:xi,isrRscKey:Ci,isrSet:li,loadSsrHandler(){return import(`./ssr/index.js`)},middlewareContext:d,mountedSlotsHeader:f,params:p,pprFallbackCacheShells:m,pprFallbackShell:h,pprRuntime:void 0,renderedConcreteUrlPaths:g,skipStaticParamsValidation:_,staticParamsValidationParams:v,rootParams:y,probeLayoutAt(e,t){return Il({layoutIndex:e,layoutParamAccess:t,makeThenableParams:K,matchedParams:p,route:S})},async probePage(e=w){let t=o_(c,s);return t&&t.__pageLoader&&t.page==null&&(t.page=await t.__pageLoader()),Promise.all(gl({route:S,pageComponent:E,asyncRouteParams:k,searchParams:e,intercept:t,isRscRequest:u,matchedParams:p,makeThenableParams:K}))},renderErrorBoundaryPage(e,t){let n=o_(c,s);return r_.renderErrorBoundary(S,e,u,b,p,C,d,{isEdgeRuntime:Sm(D.runtime),sourcePageSegments:n?.slotKey===`__vinext_page_intercept`?n.sourcePageSegments:null},t)},renderHttpAccessFallbackPage(e,n,r){let i=o_(c,s);return r_.renderHttpAccessFallback(S,e,u,b,n,C,r,{isEdgeRuntime:Sm(D.runtime),routePathname:t,sourcePageSegments:i?.slotKey===`__vinext_page_intercept`?i.sourcePageSegments:null})},renderToReadableStream:Xh,prerenderToReadableStream:Zh,request:b,revalidateSeconds:D.revalidateSeconds,renderedPathAndSearch:x,resolveRouteFetchCacheMode(e){return rg(e)},resolveRouteDynamicConfig(e){return ig(e)},rootForbiddenModule:Qg,rootNotFoundModule:Zg,rootUnauthorizedModule:$g,route:S,runWithSuppressedHookWarning(e){return Rh.run(!0,e)},scheduleBackgroundRegeneration(e,t,n){hi(e,t,n)},scriptNonce:C,searchParams:w,setNavigationContext:Bh,renderMode:T})},async dispatchMatchedRouteHandler({cleanPathname:e,middlewareContext:t,params:n,request:r,route:i,searchParams:a}){let{dispatchAppRouteHandler:o}=await Qh();return o({basePath:``,cleanPathname:e,clearRequestContext(){Vh()},draftModeSecret:tg,i18n:null,trailingSlash:Yg,isrDebug:ng,isrGet:ci,isrRouteKey:wi,isrSet:li,middlewareContext:t,middlewareRequestHeaders:t.requestHeaders,params:n,request:r,route:{pattern:i.pattern,routeHandler:i.routeHandler,routeSegments:i.routeSegments},scheduleBackgroundRegeneration:hi,searchParams:a})},i18nConfig:null,matchRoute:i_,matchRequestRoute:a_,matchInterceptRoute(e,t){let n=o_(e,t);if(!n)return null;let r=Gg[n.sourceRouteIndex];if(!r)return null;let i=Object.create(null);for(let e of r.params)Object.prototype.hasOwnProperty.call(n.sourceMatchedParams,e)&&(i[e]=n.sourceMatchedParams[e]);return{route:r,params:i}},publicFiles:m_,renderNotFound({isRscRequest:e,matchedParams:t,middlewareContext:n,request:r,route:i,scriptNonce:a}){let o=i?Sm(ag(i)):!1;return r_.renderNotFound(i,e,r,t,a,n,{isEdgeRuntime:o})},rootParamNamesByPattern:{},setNavigationContext:Bh,staticParamsMap:k_,trailingSlash:Yg,validateDevRequestOrigin:O_});export{Ir as A,va as C,gi as D,ra as E,K as M,mn as N,yi as O,Bt as P,ba as S,sa as T,us as _,v_ as __assetPrefix,Jg as __basePath,S_ as __hasPagesDir,c_ as __i18nConfig,y_ as __imageAllowedWidths,b_ as __imageConfig,x_ as __inlineCss,up as a,l_ as authorizeOnDemandRevalidate,Ia as b,Tf as c,Of as d,A_ as default,uf as f,Ls as g,k_ as generateStaticParamsMap,C_ as getRenderedConcreteUrlPathsForRoute,Rs as h,lp as i,Er as j,ui as k,kf as l,ed as m,xm as n,ap as o,rd as p,cp as r,Ff as s,w_ as seedMemoryCacheFromPrerender,Hh as t,Df as u,Ka as v,ca as w,xa as x,Fa as y};
17
+ Original error:`,t.message);return}if(e.requestInfo&&e.errorContext&&t){let n=typeof t==`object`&&zs in t?Reflect.get(t,zs):t;e.reportRequestError(n instanceof Error?n:Error(Gs(n)),e.requestInfo,e.errorContext)}if(n!==`production`&&t&&!Bs(t)){let e=typeof t==`object`&&zs in t?Reflect.get(t,zs):t;console.error(`[vinext] Server render error:`,e)}if(Bs(t))return String(t.digest);if(t){let e=qs(Gs(t)+Ks(t));if(t instanceof Error)try{Object.assign(t,{digest:e})}catch{}return e}}}function Xs(e,t,n,r){let i=Object.fromEntries(t.headers.entries()),a={path:n,method:t.method,headers:i};return Ys({errorContext:{routerKind:`App Router`,routePath:r||n,routeType:`render`},reportRequestError:e,requestInfo:a})}var Zs=Bt(()=>{throw Error(`Unexpectedly client reference export 'default' is called on server`)},`0b874ad30386`,`default`),Qs={default:Zs},$s=String.raw`[\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|SkypeUriPreview|Yeti|googleweblight`,ec=new Map;function tc(e){let t=e||$s,n=ec.get(t);if(n)return n;let r=new RegExp(t,`i`);return ec.set(t,r),r}function nc(e,t){return!e||!tc(t).test(e)}var rc=Bt(()=>{throw Error(`Unexpectedly client reference export 'ErrorBoundary' is called on server`)},`593f344dc510`,`ErrorBoundary`),ic=Bt(()=>{throw Error(`Unexpectedly client reference export 'ForbiddenBoundary' is called on server`)},`593f344dc510`,`ForbiddenBoundary`),ac=Bt(()=>{throw Error(`Unexpectedly client reference export 'GlobalErrorBoundary' is called on server`)},`593f344dc510`,`GlobalErrorBoundary`),oc=Bt(()=>{throw Error(`Unexpectedly client reference export 'NotFoundBoundary' is called on server`)},`593f344dc510`,`NotFoundBoundary`),sc=Bt(()=>{throw Error(`Unexpectedly client reference export 'RedirectBoundary' is called on server`)},`593f344dc510`,`RedirectBoundary`),cc=Bt(()=>{throw Error(`Unexpectedly client reference export 'SerializedErrorBoundary' is called on server`)},`593f344dc510`,`SerializedErrorBoundary`),lc=Bt(()=>{throw Error(`Unexpectedly client reference export 'UnauthorizedBoundary' is called on server`)},`593f344dc510`,`UnauthorizedBoundary`),uc=Bt(()=>{throw Error(`Unexpectedly client reference export 'LayoutSegmentProvider' is called on server`)},`15c18cfaeeff`,`LayoutSegmentProvider`);function dc(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7?e.slice(5,-2):e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5?e.slice(4,-1):e.startsWith(`[`)&&e.endsWith(`]`)&&!e.includes(`.`)&&e.length>2?e.slice(1,-1):null}function fc(e,t){return e.startsWith(`[[...`)&&Array.isArray(t)&&t.length===0}function pc(e,t){let n=[],r=new Set,i=e??[],a=Math.min(Math.max(t,0),i.length);for(let e=0;e<a;e++){let t=dc(i[e]);!t||r.has(t)||(r.add(t),n.push(t))}return n}function mc(e,t,n){let r={},i=e??[],a=Math.min(Math.max(t,0),i.length);for(let e=0;e<a;e++){let t=i[e],a=dc(t);if(!a)continue;let o=n[a];o===void 0||fc(t,o)||(r[a]=o)}return r}function hc(e,t,n,r=e){let i=new Set(e.map(dc).filter(e=>e!==null)),a={};for(let[e,t]of Object.entries(n))i.has(e)||(a[e]=t);return Object.assign(a,mc(r,t,n)),a}async function gc(...e){try{return await Jn(...e)}catch(e){throw Cs(e)}}function _c(e){return Object.entries(e.slots??{}).map(([t,n])=>{let r=e.layoutTreePositions?.[n.layoutIndex??0]??0,i=mc(e.routeSegments,r,e.params),a=e.slotParams?.[t]??e.params,o=n.notFound?{...i,...yc(n.routeSegments??e.routeSegments,n.notFoundTreePosition??0,a)}:null;if(e.interceptSlotKey===t&&e.interceptPage){let t=e.interceptLayouts??[],a=n.notFoundTreePosition===0?n.notFound??null:null,o=e.interceptNotFound??a,s=o?{...i,...yc(e.interceptNotFoundBranchSegments??e.interceptBranchSegments??e.routeSegments,e.interceptNotFound?e.interceptNotFoundTreePosition??0:n.notFoundTreePosition??0,e.interceptParams??e.params)}:null;return{head:{layoutModules:[n.layout,...t].filter(vc),layoutParams:[...n.layout?[i]:[],...t.filter(vc).map((t,n)=>{let r=e.interceptLayoutSegments?.[n]??[];return{...i,...yc(e.interceptBranchSegments??r,r.length,e.interceptParams??e.params)}})],layoutTreePositions:[...n.layout?[0]:[],...t.filter(vc).map(()=>e.routeSegments.length)],pageModule:e.interceptPage,params:e.interceptParams??e.params,routeSegments:e.interceptSourcePageSegments??e.routeSegments},...o?{notFoundModule:o,notFoundParams:s}:{},ownerTreePosition:r}}return{head:{layoutModules:[n.layout,...n.configLayouts??[]].filter(vc),layoutParams:[...n.layout?[i]:[],...(n.configLayoutTreePositions??[]).map(r=>({...i,...yc(n.routeSegments??e.routeSegments,r,e.slotParams?.[t]??e.params)}))],layoutTreePositions:[...n.layout?[0]:[],...n.configLayoutTreePositions??[]],pageModule:n.page,params:a,routeSegments:n.routeSegments??e.routeSegments},...n.notFound?{notFoundModule:n.notFound,notFoundParams:o}:{},ownerTreePosition:r}}).sort((e,t)=>t.ownerTreePosition-e.ownerTreePosition)}function vc(e){return e!=null}function yc(e,t,n){return hc(e,t,n)}function bc(e){return typeof e?.generateMetadata==`function`}function xc(e){let t=Object.create(null),n=!1;return e?.forEach((e,r)=>{n=!0;let i=t[r];if(Array.isArray(i)){t[r]=[...i,e];return}if(i!==void 0){t[r]=[i,e];return}t[r]=e}),{hasSearchParams:n,pageSearchParams:t}}function Sc(e,t,n,r,i){let a=e.map((e,r)=>({routeSegments:t.slice(0,n[r]??0),metadata:e}));return i&&a.push({routeSegments:t,metadata:r}),a}async function Cc(e,t,n){let r=e;if(n.applyFileBasedMetadata&&n.metadataRoutes.length>0)try{r=await n.applyFileBasedMetadata(e,n.routePath,n.params,n.metadataRoutes,{routeSegments:n.routeSegments??[],metadataSources:t,basePath:n.basePath??``})}catch(e){if(!n.fallbackOnFileMetadataError)throw e;console.error(`[vinext] File-based metadata resolution failed while rendering error boundary for ${n.routePath}:`,e)}return r?Kn(r):null}function wc(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];vc(i)&&n.push({module:i,treePosition:t[r]??0})}return n}async function Tc(e,t,n){let r=[],i=Promise.resolve({});for(let a of e){let e=i,o=mc(n,a.treePosition,t),s=gc(a.module,o,void 0,e);r.push(s),s.catch(()=>null),i=s.then(async t=>t?qn([{metadata:await e},{metadata:t}]):e),i.catch(()=>null)}return Promise.all(r)}function Ec(e,t,n){let r=[],i=Promise.resolve(Ln([]));for(let a of e){let e=i,o=mc(n,a.treePosition,t),s=Fn(a.module,o,void 0,e);r.push(s),s.catch(()=>null),i=Dc(e,s),i.catch(()=>null)}return{resolvedViewport:i,viewportResults:Promise.all(r)}}function Dc(e,t){return Promise.all([e,t]).then(([e,t])=>t?Ln([e,t]):e)}function Oc(e){return[...e.layoutModules??[],e.layoutModule].filter(vc)}function kc(e){return Oc(e).some(bc)||bc(e.pageModule)}async function Ac(e,t,n,r,i,a){let o=e.params??t,s=e.routeSegments??n,c=[],l=[],u=i,d=Oc(e),f=e.layoutTreePositions??[],p=e.layoutParams??[];for(let[e,t]of d.entries()){let n=await gc(t,p[e]??yc(s,f[e]??0,o),void 0,u);c.push(n),l.push({metadata:n,routeSegments:s}),n&&(u=u.then(async e=>qn([{metadata:e},{metadata:n}])),u.catch(()=>null))}if(e.pageModule){let t=await gc(e.pageModule,o,r,u,a);c.push(t),l.push({metadata:t,routeSegments:s})}return{metadataResults:c,metadataSources:l}}function jc(e,t,n,r,i,a){let o=e.params??t,s=e.routeSegments??n,c=Oc(e),l=e.layoutTreePositions??[],u=e.layoutParams??[],d=[],f=i;for(let[e,t]of c.entries()){let n=f,r=Fn(t,u[e]??yc(s,l[e]??0,o),void 0,n);d.push(r),r.catch(()=>null),f=Dc(n,r),f.catch(()=>null)}if(e.pageModule){let t=f,n=Fn(e.pageModule,o,r,t,a);d.push(n),n.catch(()=>null),f=Dc(t,n),f.catch(()=>null)}return{resolvedViewport:f,viewportResults:Promise.all(d)}}function Mc(e){return h(async()=>{let t=[],n=Promise.resolve([]);for(let r of e.sources){let e=n.then(e=>e.length>0?qn(e):{}),i=gc(r.module,r.params,r.searchParams,e,r.searchParamsObserver);t.push(i),i.catch(()=>null),n=Promise.all([n,i]).then(([e,t])=>t?[...e,{metadata:t}]:e),n.catch(()=>null)}let[r,i]=await Promise.all([n,Promise.all(t)]),a=e.sources.flatMap((e,t)=>{let n=i[t]??null;return n||e.includeWhenEmpty?[{metadata:n,routeSegments:e.routeSegments}]:[]});return Cc(r.length>0?qn(r):null,a,e)})}async function Nc(e){let t=Pc(e),[n,r]=await Promise.all([t.metadata,t.viewport]);return{...t,metadata:n,viewport:r}}function Pc(e){return h(()=>Fc(e))}function Fc(e){let t=e.routeSegments??[],n=e.layoutTreePositions??[],r=wc(e.layoutModules,n),i=r.map(e=>e.treePosition),a=r.some(e=>bc(e.module))||bc(e.pageModule),{hasSearchParams:o,pageSearchParams:s}=xc(e.searchParams),c=Tc(r,e.params,t),l=Ec(r,e.params,t),u=l.viewportResults,d=c.then(e=>e.filter(vc));d.catch(()=>null);let f=d.then(e=>e.length>0?qn(e.map(e=>({metadata:e}))):{});f.catch(()=>null);let p=e.pageModule?gc(e.pageModule,e.params,s,f,e.searchParamsObserver):Promise.resolve(null),m=e.parallelRoutes??[],h=Promise.all(m.map(n=>Ac(n,e.params,t,s,f,e.searchParamsObserver))),g=[],_=l.resolvedViewport,v=_,y=e.pageModule?Fn(e.pageModule,e.params,s,v,e.searchParamsObserver):Promise.resolve(null);e.pageModule&&(_=Dc(v,y),_.catch(()=>null));for(let n of m){let r=jc(n,e.params,t,s,_,e.searchParamsObserver);g.push(r.viewportResults),_=r.resolvedViewport}let b=Promise.all(g),x=a||m.some(kc),S=Promise.all([c,p,h]).then(async([n,r,a])=>{let o=a.flatMap(e=>e.metadataResults),s=a.flatMap(e=>e.metadataSources),c=r!=null&&r.title!==void 0,l=[...n.filter(vc).map(e=>({metadata:e})),...r?[{isPage:!0,metadata:r}]:[],...o.filter(vc).map(e=>({contributesTitle:!c,metadata:e}))],u=l.length>0?qn(l):null,d=Sc(n,t,i,r,!!e.pageModule);return d.push(...s),Cc(u,d,e)}),C=Promise.all([u,y,b]).then(([e,t,n])=>Ln([...e.filter(vc),...t?[t]:[],...n.flat().filter(vc)]));return S.catch(()=>null),C.catch(()=>null),{hasDynamicMetadata:x,hasSearchParams:o,metadata:S,pageSearchParams:s,viewport:C}}var Ic=Bt(()=>{throw Error(`Unexpectedly client reference export 'AppRouterScrollTarget' is called on server`)},`9276801271d6`,`AppRouterScrollTarget`),Lc={error:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,textAlign:`center`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},desc:{display:`inline-block`},h1:{display:`inline-block`,margin:`0 20px 0 0`,padding:`0 23px 0 0`,fontSize:24,fontWeight:500,verticalAlign:`top`,lineHeight:`49px`},h2:{fontSize:14,fontWeight:400,lineHeight:`49px`,margin:0}},Rc=404,zc=`This page could not be found.`;function Bc(){return G.createElement(G.Fragment,null,G.createElement(`title`,null,`${Rc}: ${zc}`),G.createElement(`div`,{style:Lc.error},G.createElement(`div`,null,G.createElement(`style`,{dangerouslySetInnerHTML:{__html:`body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}`}}),G.createElement(`h1`,{className:`next-error-h1`,style:Lc.h1},Rc),G.createElement(`div`,{style:Lc.desc},G.createElement(`h2`,{style:Lc.h2},zc)))))}var Vc=Bt(()=>{throw Error(`Unexpectedly client reference export 'Children' is called on server`)},`8c0f216c4604`,`Children`),Hc=Bt(()=>{throw Error(`Unexpectedly client reference export 'ParallelSlot' is called on server`)},`8c0f216c4604`,`ParallelSlot`),Uc=Bt(()=>{throw Error(`Unexpectedly client reference export 'Slot' is called on server`)},`8c0f216c4604`,`Slot`),Wc=Bt(()=>{throw Error(`Unexpectedly client reference export 'StreamedIconsInsertion' is called on server`)},`89c3cac48cb5`,`StreamedIconsInsertion`),Gc=Symbol.for(`vinext.appPagePropsCacheKeyMarker`);function Kc(e){return Object.defineProperty(e,Gc,{configurable:!1,enumerable:!1,value:!0,writable:!1}),e}function qc(e){m(),g(`searchParams`),e&&Ie(),Ve(`searchParams`)}function Jc(e={}){return{observeParamAccess(){qc(e.markDynamic!==!1)}}}function Yc(e,t={}){let n=Jc(t);return t.observeReactPromiseStatus===!0?K(e,{...n,observeReactPromiseStatus:!0}):K(e,n)}var Xc=32,Zc=1e3,Qc=Symbol.for(`react.forward_ref`),$c=Symbol.for(`react.lazy`),el=Symbol.for(`react.memo`),tl=Symbol.for(`react.client.reference`),nl=class extends Error{constructor(e){super(e),this.name=`AppPageSubtreeProbeLimitError`}},rl=class extends Error{constructor(){super(`App page layout subtree probe cannot safely inspect iterable children`),this.name=`AppPageSubtreeProbeUnsupportedIterableError`}};function il(e){return!!(e&&typeof e!=`string`&&typeof e==`object`&&Symbol.iterator in e&&typeof e[Symbol.iterator]==`function`)}function al(e){return(0,G.isValidElement)(e)}function ol(e){return(typeof e==`object`||typeof e==`function`)&&e!==null}function sl(e){return typeof e==`function`}function cl(e){return ol(e)&&Reflect.get(e,`$$typeof`)===tl}function ll(e){return!ol(e)||Reflect.get(e,`$$typeof`)!==el?null:{innerType:Reflect.get(e,`type`)}}function ul(e){if(!ol(e)||Reflect.get(e,`$$typeof`)!==$c)return null;let t=Reflect.get(e,`_init`);return sl(t)?{init:t,payload:Reflect.get(e,`_payload`)}:null}function dl(e){if(!ol(e)||Reflect.get(e,`$$typeof`)!==Qc)return null;let t=Reflect.get(e,`render`);return sl(t)?t:null}async function fl(e){try{return e.init(e.payload)}catch(t){if(!vs(t))throw t;return await t,e.init(e.payload)}}async function pl(e,t={}){let n=t.maxDepth??Xc,r=t.maxNodes??Zc,i=0,a=e=>{if(e>n)throw new nl(`App page layout subtree probe exceeded max depth`);if(i+=1,i>r)throw new nl(`App page layout subtree probe exceeded max nodes`)},o=async(e,t,r,i=0)=>{if(i>n)throw new nl(`App page layout subtree probe exceeded max depth`);if(cl(e))return!1;if(sl(e))return await s(e(t),r+1),!0;let a=ll(e);if(a)return o(a.innerType,t,r,i+1);let c=ul(e);if(c)return o(await fl(c),t,r,i+1);let l=dl(e);return l?(await s(l(t,null),r+1),!0):!1},s=async(e,t)=>{if(a(t),!(e==null||typeof e==`boolean`||typeof e==`number`)&&!(typeof e==`string`||typeof e==`bigint`)){if(vs(e)){await s(await e,t);return}if(Array.isArray(e)){for(let n of e)await s(n,t+1);return}if(il(e)&&!al(e))throw new rl;if(al(e)){if(e.type===G.Fragment||typeof e.type==`string`){await s(e.props.children,t+1);return}await o(e.type,e.props,t)||await s(e.props.children,t+1)}}};await s(e,0)}async function ml(e){try{await pl(e)}catch(e){if(yn(e))return;throw e}}function hl(e){let{pageComponent:t,asyncRouteParams:n,searchParams:r}=e;if(typeof t!=`function`)return null;let{pageSearchParams:i}=xc(r),a=t(Kc({params:n,searchParams:Yc(i,{observeReactPromiseStatus:!0})}));return vs(a)?a.then(async e=>(await ml(e),e)):(0,G.isValidElement)(a)||Array.isArray(a)?ml(a).then(()=>a):a}function gl(e){let{route:t,pageComponent:n,asyncRouteParams:r,searchParams:i,matchedParams:a}=e,o=e.isRscRequest?e.intercept:null,s=[hl({pageComponent:n,asyncRouteParams:r,searchParams:i})],c=o?.slotKey??null;for(let[e,n]of Object.entries(t.slots??{}))c!==null&&e===c||n?.loading?.default||n?.loadings?.some(e=>e?.default)||s.push(hl({pageComponent:n?.page?.default,asyncRouteParams:r,searchParams:i}));let l=o?.slotKey?t.slots?.[o.slotKey]:null,u=!!(l?.loading?.default||l?.loadings?.some((e,t)=>e?.default&&l.loadingTreePositions?.[t]===0)),d=!!(o?.interceptLoadings?.some(e=>e?.default)||u);return o&&!d&&s.push(hl({pageComponent:o.page?.default,asyncRouteParams:e.makeThenableParams(o.matchedParams??a),searchParams:i})),s.map(e=>Promise.resolve(e))}async function _l(e){let t={};if(e.skipProbes)return{response:null,layoutFlags:t};if(e.layoutCount>0){let n=await js({layoutCount:e.layoutCount,async onLayoutError(t,n){let r=e.resolveSpecialError(t);return r?e.renderLayoutSpecialError(r,n):null},probeLayoutAt:e.probeLayoutAt,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)},classification:e.classification});if(t=n.layoutFlags,n.response)return{response:n.response,layoutFlags:t}}return e.hasLoadingBoundary||e.probePageBeforeRender===!1?{response:null,layoutFlags:t}:{response:await Ns({awaitAsyncResult:!0,async onError(t){let n=e.resolveSpecialError(t);return n?e.renderPageSpecialError(n):null},probePage:e.probePage,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)}}),layoutFlags:t}}var vl=`__PAGE__`;function yl(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&!e.includes(`.`)}function bl(e){return e.startsWith(`(`)&&e.endsWith(`)`)}function xl(e){return Array.isArray(e)?e.join(`/`):e}function Sl(e){return ei(e)?{name:e.slice(5,-2),type:`oc`}:$r(e)?{name:e.slice(4,-1),type:`c`}:yl(e)?{name:e.slice(1,-1),type:`d`}:null}function Cl(e,t,n){let r=t[e.name];return e.type===`oc`&&(r===void 0||Array.isArray(r)&&r.length===0)?``:xl(r)??n}function wl(e,t){let n=Sl(e);return n?`${n.name}|${Cl(n,t,e)}|${n.type}`:e}function Tl(e,t,n){let r=e.slice(t),i=[];for(let e of r){if(ei(e)){let t=n[e.slice(5,-2)];if(Array.isArray(t)&&t.length===0)continue;let r=xl(t);r!==void 0&&i.push(r);continue}if($r(e)){let t=e.slice(4,-1);i.push(xl(n[t])??e);continue}if(yl(e)){let t=e.slice(1,-1);i.push(xl(n[t])??e);continue}i.push(e)}return i.push(vl),i}function El(e,t,n){for(let r of e.slice(t))if(!bl(r))return wl(r,n);return``}function Dl(e,t){let n=[];for(let r of e)bl(r)||n.push(wl(r,t));return n.length>0?JSON.stringify(n):``}var Ol=(0,q.jsx)(G.Fragment,{}),kl=Zs,Al=Bc;function jl(e,t,n){return hc(e,t,n)}function J(e){return e?.default??null}function Ml(e){return e?.default??null}function Nl(e,t){let n=e?.slice(0,t)??[];return n.length===0?`/`:`/${n.join(`/`)}`}function Pl(e){let t=e?.revalidate;return typeof t==`number`&&Number.isFinite(t)&&t>0?t:null}function Fl(e){e.layoutParamAccess?.recordLayoutParamScope(e.layoutId,pc(e.routeSegments,e.treePosition));let t=Pl(e.layoutModule);t!==null&&e.layoutParamAccess?.recordLayoutFiniteRevalidate(e.layoutId,t)}function Il(e){let t=e.route.layoutTreePositions?.[e.layoutIndex]??0,n=Nl(e.route.routeSegments,t),r=W.encodeLayoutId(n),i=()=>{let n=e.route.layouts[e.layoutIndex],i=J(n);if(!i)return null;Fl({layoutId:r,layoutModule:n,layoutParamAccess:e.layoutParamAccess,routeSegments:e.route.routeSegments,treePosition:t});let a=mc(e.route.routeSegments,t,e.matchedParams);return pl((0,q.jsx)(i,{params:e.makeThenableParams(a,e.layoutParamAccess?.createThenableParamsObserver(r)),children:Ol}))};return e.layoutParamAccess?e.layoutParamAccess.runLayoutProbe(r,i):i()}function Ll(e){return e.layouts.map((t,n)=>{let r=e.layoutTreePositions?.[n]??0,i=Nl(e.routeSegments,r);return{errorModule:e.errorTreePositions?null:e.errors?.[n]??null,forbiddenModule:e.forbiddens?.[n]??null,id:W.encodeLayoutId(i),layoutModule:t,notFoundModule:e.notFounds?.[n]??null,unauthorizedModule:e.unauthorizeds?.[n]??null,treePath:i,treePosition:r}})}function Rl(e){return(e.templates??[]).map((t,n)=>{let r=e.templateTreePositions?.[n]??0,i=Nl(e.routeSegments,r);return{id:W.encodeTemplateId(i),templateModule:t,treePath:i,treePosition:r}})}function zl(e){return`/${[...e??[],`page`].join(`/`)}`}function Bl(e,t,n){let r=Tl(e,t,n);return r.at(-1)===`__PAGE__`?r.slice(0,-1):r}function Vl(e){return(e.errorPaths??e.errors??[]).flatMap((t,n)=>{if(!t)return[];let r=e.errorTreePositions?.[n];return r===void 0?[]:[{errorModule:t,treePosition:r}]})}function Hl(e){return(e.loadings??[]).flatMap((t,n)=>{if(!t)return[];let r=e.loadingTreePositions?.[n];return r===void 0?[]:[{loadingModule:t,treePosition:r}]})}function Ul(e){let t=null,n=null;for(let[r,i]of(e.loadings??[]).entries()){if(!J(i))continue;let a=e.loadingTreePositions?.[r];a!==void 0&&(a===0?t??={loadingModule:i,treePosition:a}:(n===null||a<n.treePosition)&&(n={loadingModule:i,treePosition:a}))}return n||t||(J(e.loading)?{loadingModule:e.loading,treePosition:e.routeSegments?.length??0}:null)}function Wl(e,t){let n=[],r=(e.loadings?.length??0)>0?e.loadings:e.loading?[e.loading]:[],i=(e.loadingTreePositions?.length??0)>0?e.loadingTreePositions:[0];for(let[e,a]of r.entries()){let r=i[e];!J(a)||r===void 0||t&&r!==0||n.push({loadingModule:a,treePosition:r})}for(let[e,r]of(t?.loadingModules??[]).entries()){let i=t?.loadingTreePositions?.[e];!J(r)||i===void 0||n.push({loadingModule:r,treePosition:i})}return n}function Gl(e){return e.reduce((e,t)=>e===null||t.treePosition<e.treePosition?t:e,null)}function Kl(e,t,n,r,i){let a={};for(let[o,s]of Object.entries(n.slots??{})){let n=s.name,c=s.layoutIndex>=0?s.layoutIndex:t.length-1;if(c!==e)continue;let l=ql(s,t[c]?.treePath??`/`),u=r(o,n),d=i(o,n)?.routeSegments??s.routeSegments;a[n]=(0,q.jsx)(uc,{providerId:l,segmentMap:{children:d?Bl(d,0,u):[]},children:(0,q.jsx)(Uc,{id:l})})}return Object.keys(a).length>0?a:void 0}function ql(e,t){let n=W.encodeSlotId(e.name,t);if(e.id&&e.id!==n)throw Error(`[vinext] App Router slot id mismatch for @${e.name}: graph id ${e.id} does not match wire id ${n}`);return n}function Jl(e,t){return J(t?.pageModule)??J(e.page)?`active`:J(e.default)?`default`:`unmatched`}function Yl(e,t,n,r){let i=[];if(e.childrenSlot){let n=t.find(t=>t.treePath===e.childrenSlot?.ownerTreePath)?.id;i.push({...e.childrenSlot.state===`active`?{activeRouteId:r.routeId}:{},ownerLayoutId:n??null,slotId:e.childrenSlot.id,state:e.childrenSlot.state})}for(let[a,o]of Object.entries(e.slots??{})){let e=t[o.layoutIndex>=0?o.layoutIndex:t.length-1]??null,s=e?.id??null,c=n(a,o.name),l=ql(o,e?.treePath??`/`),u=Jl(o,c),d=u===`active`?r.interception?.slotId===l?r.interception.targetRouteId:W.encodeRouteId(r.routePath,null):null;i.push({...d===null?{}:{activeRouteId:d},ownerLayoutId:s,slotId:l,state:u})}return ne(i,{layoutIds:t.map(e=>e.id)})}function Xl(e,t,n,r,i){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`meta`,{charSet:`utf-8`}),e&&r===`head`?(0,q.jsx)(xr,{metadata:e,pathname:n,trailingSlash:i}):null,(0,q.jsx)(zn,{viewport:t})]})}function Zl(e){let t=e.icons;return t?typeof t==`string`||t instanceof URL||Array.isArray(t)?!Array.isArray(t)||t.length>0:`url`in t||!!(t.shortcut||t.icon||t.apple||t.other):!1}function Ql(e,t){let n=2166136261;for(let e=0;e<t.length;e++)n^=t.charCodeAt(e),n=Math.imul(n,16777619);return`${e}:${(n>>>0).toString(36)}`}var $l=`vinext-pending-streamed-icon-key`,eu=`document.querySelectorAll('body link[rel="icon"], body link[rel="apple-touch-icon"]').forEach(el => document.head.appendChild(el));const a='data-vinext-streamed-icon',o=el=>{const m=el.getAttribute(a),i=m.lastIndexOf(':');return Number(m.slice(i+1))};[...document.querySelectorAll('link['+a+']')].sort((l,r)=>o(l)-o(r)).forEach(el=>document.head.appendChild(el))`;function tu(e,t,n,r,i){if(!e||n!==`body`)return null;let a=Zl(e)?$l:void 0,o=br(e,t,{trailingSlash:r,streamedIconKey:a}),s=a?Ql(t,o):``;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{hidden:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(a?o.replaceAll(`<link data-vinext-streamed-icon="${$l}:`,`<link data-vinext-streamed-icon="${ds(s)}:`):o)+ps(eu,i)}}),(0,q.jsx)(Wc,{metadataKey:s})]})}async function nu(e){try{return tu(await e.metadata,e.pathname,`body`,e.trailingSlash,e.scriptNonce)}catch{return null}}nu.displayName=`Vinext.StreamingMetadata`;async function ru(e){return await e.metadata,null}ru.displayName=`Vinext.MetadataOutlet`;function iu(e,t=!0){if(!e)return null;let n=(0,q.jsx)(Uc,{id:e});return t?(0,q.jsx)(G.Suspense,{fallback:null,children:n}):n}function au(e){return e?(0,q.jsx)(`div`,{hidden:!0,children:(0,q.jsx)(G.Suspense,{fallback:null,children:(0,q.jsx)(Uc,{id:e})})}):null}function ou(e){let t=e.renderIdentity,n=t?.interceptionContext??e.interceptionContext??null,r=e.renderMode??`navigation`,i=e.route.routeSegments??[],a=Dl(i,e.matchedParams),o=t?.routeId??W.encodeRouteId(e.routePath,n),c=t?.pageId??W.encodePageId(e.routePath,n),l=e.route.childrenSlot?.id??c,d=e.streamingMetadata?`__vinext_streaming_metadata_body:${o}`:null,f=e.streamingMetadataOutlet?`__vinext_streaming_metadata_outlet:${o}`:null,p=Ll(e.route),m=Rl(e.route),h=Hl(e.route),g=Vl(e.route),_=e=>{for(let t=h.length-1;t>=0;t--)if(h[t].treePosition<e)return h[t]},y=e=>{let t;for(let n of h)n.treePosition<=e&&(!t||n.treePosition>t.treePosition)&&(t=n);return t},x=r===He,C=r===u,w=C?Ul(e.route):null,T=e.metadataPlacement??`head`,E=new Map,D=new Map,k=new Map,A=new Map;for(let e of p)E.set(e.treePosition,e);for(let e of m)D.set(e.treePosition,e);for(let e of h)k.set(e.treePosition,e);for(let e of g)A.set(e.treePosition,e);let j=new Map;for(let e=0;e<p.length;e++)j.set(p[e].treePosition,e);let ee=new Map,M=new Map,N=[],te=[],ne=new Map,ie=new Map,I=[],ae=p[0]?.treePath??null,L=new Map;for(let t of Object.values(e.route.slots??{})){let e=t.name;L.set(e,(L.get(e)??0)+1)}let oe=Array.from(new Set([...p.map(e=>e.treePosition),...m.map(e=>e.treePosition),...h.map(e=>e.treePosition),...g.map(e=>e.treePosition)])).sort((e,t)=>e-t),se=(t,n)=>{let r=e.slotOverrides?.[t];if(r)return r;if(t===n||(L.get(n)??0)===1)return e.slotOverrides?.[n]},R=C?Object.entries(e.route.slots??{}).flatMap(([e,t])=>Gl(Wl(t,se(e,t.name)??null))?[{ownerTreePosition:t.ownerTreePosition??0}]:[]):[],ce=C?w?.treePosition??R.reduce((e,t)=>Math.max(e,t.ownerTreePosition),0):null,le=e=>ce===null||e<=ce,z={...W.createMetadataEntries({interception:t?.interception??e.interception??null,interceptionContext:n,layoutIds:e.route.ids?.layouts??p.map(e=>e.id),rootLayoutTreePath:ae,routeId:o,sourcePage:zl(e.sourcePageSegments??i),slotBindings:Yl(e.route,p,se,{interception:t?.interception??e.interception??null,interceptionContext:n,routeId:o,routePath:e.routePath})})};if(x)return z[P]=[],z[v]=null,z[l]=null,z[o]=null,z;e.route.staticSiblings&&e.route.staticSiblings.length>0&&(z[S]=e.route.staticSiblings),e.streamingMetadata&&d&&(z[d]=(0,q.jsx)(nu,{metadata:e.streamingMetadataTags??e.streamingMetadata,pathname:e.resolvedMetadataPathname??e.routePath,scriptNonce:e.scriptNonce,trailingSlash:e.trailingSlash})),e.streamingMetadataOutlet&&f&&(z[f]=(0,q.jsx)(ru,{metadata:e.streamingMetadataOutlet}));let ue=(t,n)=>se(t,n)?.params??e.matchedParams;for(let e of oe){if(C&&!le(e))continue;let t=j.get(e);if(t!==void 0){let e=p[t];if(N[t]=[...I],J(e.layoutModule)){let n=F();ee.set(t,n),M.set(e.id,n),I.push(n)}te[t]=[...I]}let n=D.get(e);if(!n||!J(n.templateModule))continue;let r=F();ne.set(n.id,r),ie.set(n.id,[...I]),I.push(r)}let de=J(e.route.loading),fe=J(w?.loadingModule);C&&(fe!==null||R.length>0)&&(z[b]=`LoadingBoundary`),z[l]=C?null:O(e.element,I);for(let t of m){if(C&&!le(t.treePosition))continue;let n=J(t.templateModule);if(!n)continue;let r=n,o=ne.get(t.id),c=o?s((0,q.jsx)(r,{children:(0,q.jsx)(Vc,{})}),o):(0,q.jsx)(r,{children:(0,q.jsx)(Vc,{})}),l=_(t.treePosition),u=J(l?.loadingModule);if(u&&l){let t=u,n=El(i,l.treePosition,e.matchedParams);c=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:c},n||a)}z[t.id]=O(c,ie.get(t.id)??[])}for(let t=0;t<p.length;t++){let n=p[t];if(C&&!le(n.treePosition))continue;let r=J(n.layoutModule);if(!r)continue;let o=mc(e.route.routeSegments,n.treePosition,e.matchedParams);Fl({layoutId:n.id,layoutModule:n.layoutModule,layoutParamAccess:e.layoutParamAccess,routeSegments:e.route.routeSegments,treePosition:n.treePosition});let c={params:e.makeThenableParams(o,e.layoutParamAccess?.createThenableParamsObserver(n.id))};for(let n of Object.values(e.route.slots??{})){let e=n.name;(n.layoutIndex>=0?n.layoutIndex:p.length-1)===t&&(c[e]=(0,q.jsx)(Hc,{name:e}))}let l=r,u=ee.get(t),d=u?s((0,q.jsx)(l,{...c,children:(0,q.jsx)(Vc,{})}),u):(0,q.jsx)(l,{...c,children:(0,q.jsx)(Vc,{})}),f=_(n.treePosition),m=J(f?.loadingModule);if(m&&f){let t=m,n=El(i,f.treePosition,e.matchedParams);d=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:d},n||a)}z[n.id]=O(d,N[t]??[])}for(let[t,n]of Object.entries(e.route.slots??{})){let r=n.name,a=n.layoutIndex>=0?n.layoutIndex:p.length-1,o=p[a]?.treePosition??0,s=n.ownerTreePosition??o,c=C&&w!==null&&s===w.treePosition;if(C&&(w?s>w.treePosition:!le(o)))continue;let l=ql(n,p[a]?.treePath??`/`),u=se(t,r),d=ue(t,r),f=u?.routeSegments??n.routeSegments??[],m=mc(e.route.routeSegments,p[a]?.treePosition??0,e.matchedParams),h=Dl(f,d),g=u?.pageModule!=null||u?.layoutModules!==void 0,_=Wl(n,g?u??null:null),v=c?w:C?Gl(_):null;if(C&&v===null)continue;let b=J(u?.pageModule)??J(n.page),x=J(n.default);if(!b&&x&&e.isRscRequest&&e.mountedSlotIds?.has(l))continue;let S=b??x;if(!S&&!c){z[l]=W.unmatchedSlotValue;continue}let T;if(v)T=(0,q.jsx)(J(v.loadingModule),{});else{let t={params:e.makeThenableParams(d)};e.searchParams!==void 0&&(t.searchParams=e.searchParams),u?.props&&Object.assign(t,u.props),T=e.createPageElement?e.createPageElement(S,t):(0,q.jsx)(S,{...t}),b&&(T=(0,q.jsx)(G.Fragment,{children:T},h))}let E=u?.branchSegments??f,D=new Map,k=(e,t)=>{let n=D.get(e)??[];n.push(t),D.set(e,n)};if(g)for(let[e,t]of(u?.layoutModules??[]).entries()){let n=J(t);if(!n)continue;let r=u?.layoutSegments?.[e]?.length??E.length;k(r,{component:n,params:jl(E,r,d)})}else for(let[e,t]of(n.configLayouts??[]).entries()){let r=J(t);if(!r)continue;let i=n.configLayoutTreePositions?.[e]??0;k(i,{component:r,params:{...m,...jl(f,i,d)}})}let A=b?J(n.layout):null;if(A){let e=D.get(0)??[];D.set(0,[{component:A,params:m},...e])}let j=new Map;for(let e of _){let t=J(e.loadingModule);if(!t)continue;let n=j.get(e.treePosition)??[];n.push(t),j.set(e.treePosition,n)}let ee=Ml(n.error),M=Array.from(new Set([...D.keys(),...j.keys(),...ee?[0]:[]])).filter(e=>!v||!c&&e<=v.treePosition).sort((e,t)=>e-t);for(let t=M.length-1;t>=0;t--){let n=M[t],r=v?[]:j.get(n)??[];for(let e=r.length-1;e>=0;e--){let t=r[e],i=El(E,n,d);T=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:T},i||h)}n===0&&ee&&(T=(0,q.jsx)(rc,{resetKey:h,fallback:ee,children:T}));let i=D.get(n)??[];for(let t=i.length-1;t>=0;t--){let n=i[t],r=n.component;T=(0,q.jsx)(r,{params:e.makeThenableParams(n.params),children:T})}}let N=C?void 0:y(s),P=J(N?.loadingModule);if(P&&N){let t=P,n=El(i,N.treePosition,e.matchedParams);T=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(t,{}),children:T},n||h)}z[l]=O(T,a>=0?te[a]??[]:[])}let B=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(uc,{providerId:l,segmentMap:{children:[vl]},children:(0,q.jsx)(Uc,{id:l})}),iu(f,e.streamingMetadataOutletSuspended)]});C?B=fe===null?null:(0,q.jsx)(fe,{}):(B=(0,q.jsx)(sc,{children:B}),de&&(B=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(de,{}),children:B},a)),B=(0,q.jsx)(Ic,{children:B}));let pe=g.length>0?g[g.length-1].errorModule:null,me=J(e.route.notFound)??J(e.rootNotFoundModule),V=me===null?p[0]?.id??null:null,he=me??(V===null?Al:null);he&&(B=(0,q.jsx)(oc,{resetKey:a,fallback:(0,q.jsx)(he,{}),children:B}));let ge=J(e.route.forbidden)??J(e.rootForbiddenModule);ge&&(B=(0,q.jsx)(ic,{resetKey:a,fallback:(0,q.jsx)(ge,{}),children:B}));let _e=J(e.route.unauthorized)??J(e.rootUnauthorizedModule);_e&&(B=(0,q.jsx)(lc,{resetKey:a,fallback:(0,q.jsx)(_e,{}),children:B}));let ve=Ml(e.route.error);ve&&e.route.error!==pe&&(B=(0,q.jsx)(rc,{resetKey:a,fallback:ve,children:B}));let ye=C?oe.filter(le):oe;for(let t=ye.length-1;t>=0;t--){let n=ye[t],r=El(i,n,e.matchedParams),o=B,s=E.get(n),c=D.get(n),l=k.get(n),u=A.get(n);if(!C&&n<i.length){let e=J(l?.loadingModule);e&&(o=(0,q.jsx)(G.Suspense,{fallback:(0,q.jsx)(e,{}),children:o},r||a))}if(s){let e=J(s.notFoundModule)??(s.id===V?Al:null);e&&(o=(0,q.jsx)(oc,{resetKey:r,fallback:(0,q.jsx)(e,{}),children:o}));let t=J(s.forbiddenModule);t&&(o=(0,q.jsx)(ic,{resetKey:r,fallback:(0,q.jsx)(t,{}),children:o}));let n=J(s.unauthorizedModule);n&&(o=(0,q.jsx)(lc,{resetKey:r,fallback:(0,q.jsx)(n,{}),children:o}))}let d=Ml(u?.errorModule??s?.errorModule);if(d&&(o=(0,q.jsx)(rc,{resetKey:r,fallback:d,children:o})),c&&J(c.templateModule)&&(o=(0,q.jsx)(Uc,{id:c.id,children:o},r)),!s){B=o;continue}let f=J(s.layoutModule)!==null,m=j.get(n)??-1,h={children:Bl(e.route.childrenRouteSegments??i,s.treePosition,e.matchedParams)};for(let[t,n]of Object.entries(e.route.slots??{})){let r=n.name;if((n.layoutIndex>=0?n.layoutIndex:p.length-1)!==m)continue;let i=ue(t,r),a=se(t,r);if(!(J(a?.pageModule)!==null||J(n.page)!==null)&&e.isRscRequest&&e.mountedSlotIds?.has(ql(n,s.treePath)))continue;let o=a?.routeSegments??n.routeSegments;h[r]=o?Bl(o,0,i):[]}B=(0,q.jsx)(uc,{providerId:s.id,segmentMap:h,children:f?(0,q.jsx)(Uc,{id:s.id,parallelSlots:Kl(m,p,e.route,ue,se),children:o}):o})}let be=Ml(e.globalErrorModule);return B=(0,q.jsx)(ac,{fallback:kl,children:be?(0,q.jsx)(rc,{fallback:be,children:B}):B}),z[o]=(0,q.jsxs)(q.Fragment,{children:[Xl(e.resolvedMetadata,e.resolvedViewport,e.resolvedMetadataPathname??e.routePath,T,e.trailingSlash),B,tu(e.resolvedMetadata,e.resolvedMetadataPathname??e.routePath,T,e.trailingSlash,e.scriptNonce),au(d)]}),re(z,M),z}function su(e){return e!=null}function cu(e,t){let n=e.routeSegments??[],r=[];for(let[t,i]of e.layoutModules.entries()){if(!su(i))continue;let a=e.layoutTreePositions?.[t]??0;r.push({kind:`source`,source:{includeWhenEmpty:!0,module:i,params:mc(n,a,e.params),routeSegments:n.slice(0,a)}})}let i=e.boundaryModule,a=e.boundaryParams,o=n,s=()=>{if(t===`final`){r.push({kind:`fallback-leaf`});return}i&&r.push({kind:`source`,source:{includeWhenEmpty:!0,module:i,params:a,routeSegments:o}})};e.primaryParallelBranch||s();let c=[...e.primaryParallelBranch?[e.primaryParallelBranch]:[],...[...e.parallelBranches??[]].sort((e,t)=>t.ownerTreePosition-e.ownerTreePosition)];for(let t of c){let c=t.head,l=c.params??e.params,u=c.routeSegments??n,d=[...c.layoutModules??[],c.layoutModule].filter(su),f=c.layoutTreePositions??[],p=c.layoutParams??[];for(let[e,t]of d.entries())r.push({kind:`source`,source:{includeWhenEmpty:!0,module:t,params:p[e]??hc(u,f[e]??0,l),routeSegments:u}});e.branchNotFoundConventions!==!1&&t.notFoundModule&&(i=t.notFoundModule,a=t.notFoundParams??l,o=u),s()}return r.flatMap(e=>e.kind===`source`?[e.source]:i?[{includeWhenEmpty:!0,module:i,params:a,routeSegments:o}]:[])}function lu(e){return cu(e,`final`)}function uu(e){return Mc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath,fallbackOnFileMetadataError:e.fallbackOnFileMetadataError,metadataRoutes:e.metadataRoutes,params:e.params,routePath:e.routePath,routeSegments:e.routeSegments,sources:lu(e)})}async function du(e){let t=Promise.resolve(Ln([]));for(let n of cu(e,`snapshot`)){let e=t,r=Fn(n.module,n.params,void 0,e);r.catch(()=>null),t=Promise.all([e,r]).then(([e,t])=>t?Ln([e,t]):e),t.catch(()=>null)}return t}function fu(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function pu(e){let t=fu();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:fu()}),r=r.dynamicChild.node,t===e.length-1&&r.route===null&&(r.route=n);continue}let a=r.staticChildren.get(i);a||(a=fu(),r.staticChildren.set(i,a)),r=a,t===e.length-1&&r.route===null&&(r.route=n)}}return t}function mu(e,t){return hu(e,t,0,[])}function hu(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Xr(r)}:{route:e.route,params:Xr(r)};let i=t[n],a=e.staticChildren.get(i);if(a){let e=hu(a,t,n+1,r);if(e!==null)return e}if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=hu(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=t.slice(n),a=Xr(r);return a[e.catchAllChild.paramName]=i,{route:e.catchAllChild.route,params:a}}if(e.optionalCatchAllChild!==null){let i=Xr(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function gu(e,t){let n=_u(e,t);return n&&Zr(n),n}function _u(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 vu(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}var yu=`__vinext_page_intercept`;function bu(){return Object.create(null)}function xu(e,t=!1){let n=e.split(`?`)[0],r=n===`/`?`/`:n.replace(/\/$/,``);return t?Qr(r):qr(r)}function Su(e){let t=e.split(`?`)[0];return Qr(t===`/`?`/`:t.replace(/\/$/,``)).map(e=>{try{return decodeURIComponent(e)}catch{return e}})}function Cu(e){try{return encodeURIComponent(decodeURIComponent(e))}catch{return e}}function wu(e){for(let t of Object.keys(e)){let n=e[t];e[t]=Array.isArray(n)?n.map(Cu):Cu(n)}}function Tu(e){return e.routeHandler!=null||typeof e.__loadRouteHandler==`function`}function Eu(e){Tu(e.route)?Zr(e.params):wu(e.params)}function Du(e,t){let n=bu(),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 Ou(e){let t=pu(e),n=Mu(e),r=new Map(e.map((e,t)=>[e,t]));return{matchRoute(e){let n=xu(e,!0),r=mu(t,xu(e,!1));return r?(r.params=Du(r.route.patternParts,n),Eu(r),r):null},matchRequestRoute(e){let n=mu(t,xu(e,!0));return n?(Eu(n),n):null},findIntercept(i,a=null){if(a===null)return null;let o=xu(i,!0),s=Su(a),c=mu(t,s);for(let t of n){if(!ku(s,t))continue;let n=_u(o,t.targetPatternParts);if(n===null)continue;wu(n);let i=c&&t.sourceMatchPatternParts!==null?r.get(c.route)??t.sourceRouteIndex:t.sourceRouteIndex,a=e[i],l=c&&t.sourceMatchPatternParts!==null?c.params:a?_u(s,a.patternParts):null;if(l===null&&t.sourceMatchPatternParts===null)continue;let u=l&&t.sourceMatchPatternParts!==null?Pu(l,t.sourceMatchPatternParts):l??bu();return{...t,page:t.__loadState.page,sourceRouteIndex:i,matchedParams:Nu(u,n),sourceMatchedParams:l??bu()}}return null}}}function ku(e,t){let n=t.sourceMatchPatternParts;return!n||n.length===0||vu(e,n)}function Au(e){return e.startsWith(`:`)?e.endsWith(`*`)?3:e.endsWith(`+`)?2:1:0}function ju(e,t){let n=Math.min(e.targetPatternParts.length,t.targetPatternParts.length);for(let r=0;r<n;r++){let n=e.targetPatternParts[r],i=t.targetPatternParts[r],a=Au(n)-Au(i);if(a!==0)return a;if(n!==i)return n.localeCompare(i)}let r=e.targetPatternParts.length-t.targetPatternParts.length;return r===0?e.targetPattern.localeCompare(t.targetPattern):r}function Mu(e){let t=new Map(e.map((e,t)=>[e.pattern,t])),n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.slots){for(let[e,a]of Object.entries(i.slots))if(a.intercepts)for(let i of a.intercepts){let o=i.sourceMatchPattern??null,s=o?o.split(`/`).filter(Boolean):null,c=o===null?r:t.get(o)??r;n.push({sourceRouteIndex:c,slotKey:e,slotId:typeof a.id==`string`?a.id:null,targetPattern:i.targetPattern,targetPatternParts:i.targetPattern.split(`/`).filter(Boolean),sourceMatchPattern:o,sourceMatchPatternParts:s,sourcePageSegments:i.sourcePageSegments??null,interceptLayouts:i.interceptLayouts,interceptLayoutSegments:i.interceptLayoutSegments,interceptBranchSegments:i.interceptBranchSegments,interceptLoadings:i.interceptLoadings,interceptLoadingTreePositions:i.interceptLoadingTreePositions,interceptNotFoundBranchSegments:i.interceptNotFoundBranchSegments,__loadInterceptLayouts:i.__loadInterceptLayouts,__loadInterceptLoadings:i.__loadInterceptLoadings,page:i.page,__pageLoader:i.__pageLoader,notFound:i.notFound,__loadNotFound:i.__loadNotFound,notFoundTreePosition:i.notFoundTreePosition,__loadState:{page:i.page,pageLoading:null,notFound:i.notFound,notFoundLoading:null,interceptLayoutsLoading:null},params:i.params})}}if(i.siblingIntercepts)for(let e of i.siblingIntercepts){let t=e.sourceMatchPattern??null,i=t?t.split(`/`).filter(Boolean):null;n.push({sourceRouteIndex:r,slotKey:yu,slotId:typeof e.slotId==`string`?e.slotId:null,targetPattern:e.targetPattern,targetPatternParts:e.targetPattern.split(`/`).filter(Boolean),sourceMatchPattern:t,sourceMatchPatternParts:i,sourcePageSegments:e.sourcePageSegments??null,interceptLayouts:e.interceptLayouts,interceptLayoutSegments:e.interceptLayoutSegments,interceptBranchSegments:e.interceptBranchSegments,interceptLoadings:e.interceptLoadings,interceptLoadingTreePositions:e.interceptLoadingTreePositions,interceptNotFoundBranchSegments:e.interceptNotFoundBranchSegments,__loadInterceptLayouts:e.__loadInterceptLayouts,__loadInterceptLoadings:e.__loadInterceptLoadings,page:e.page,__pageLoader:e.__pageLoader,notFound:e.notFound,__loadNotFound:e.__loadNotFound,notFoundTreePosition:e.notFoundTreePosition,__loadState:{page:e.page,pageLoading:null,notFound:e.notFound,notFoundLoading:null,interceptLayoutsLoading:null},params:e.params})}}return n.sort(ju)}function Nu(e,t){return Object.assign(bu(),e,t)}function Pu(e,t){let n=bu();for(let r of t){if(!r.startsWith(`:`))continue;let t=r.endsWith(`+`)||r.endsWith(`*`)?r.slice(1,-1):r.slice(1),i=e[t];i!==void 0&&(n[t]=i)}return n}function Fu(e){let t;return t=e.statusCode===403?e.routeForbiddenModule??e.rootForbiddenModule:e.statusCode===401?e.routeUnauthorizedModule??e.rootUnauthorizedModule:e.routeNotFoundModule??e.rootNotFoundModule,t??null}function Iu(e){return Lu(e).module}function Lu(e){let t=e.routeNotFoundModules,n=e.rootNotFoundModule;if(e.statusCode===403?(t=e.routeForbiddenModules,n=e.rootForbiddenModule):e.statusCode===401&&(t=e.routeUnauthorizedModules,n=e.rootUnauthorizedModule),t)for(let n=e.layoutIndex-1;n>=0;n--){let e=t[n];if(e)return{module:e,layoutIndex:n}}return{module:n??null,layoutIndex:null}}function Ru(e){let t=e.getDefaultExport(e.pageErrorModule);if(t)return{component:t,isGlobalError:!1};let n=e.errorModules??e.layoutErrorModules;if(n)for(let t=n.length-1;t>=0;t--){let r=e.getDefaultExport(n[t]);if(r)return{component:r,isGlobalError:!1}}let r=e.getDefaultExport(e.globalErrorModule);return{component:r??null,isGlobalError:!!r}}function zu(e){let t=e.element;if(!e.skipLayoutWrapping)for(let n=e.layoutModules.length-1;n>=0;n--){let r=e.getDefaultExport(e.layoutModules[n]);if(!r)continue;let i=e.layoutTreePositions?e.layoutTreePositions[n]:0,a=e.makeThenableParams(mc(e.routeSegments,i,e.matchedParams));if(t=e.renderLayout(r,t,a),e.isRscRequest&&e.renderLayoutSegmentProvider&&e.resolveChildSegments){let n=e.resolveChildSegments(e.routeSegments??[],i,e.matchedParams);t=e.renderLayoutSegmentProvider({children:n},t)}}return e.isRscRequest&&e.includeGlobalErrorBoundary&&e.globalErrorComponent&&(t=e.renderErrorBoundary(e.globalErrorComponent,t)),t}async function Bu(e){let t=h(()=>e.renderToReadableStream(e.element,{onError:e.createRscOnErrorHandler()}));if(e.isRscRequest){let n=new Headers({"Content-Type":le,Vary:de});return ra(n,e.isEdgeRuntime),R(n,e.middlewareHeaders??null),Ee(n),Se(n),new Response(t,{status:e.status,headers:n})}return e.createHtmlResponse(t,e.status)}function Vu(e,t,n){return hc(e,t.length,n,t)}var Hu=Symbol.for(`react.client.reference`);function Uu(e){if(typeof e!=`function`)return!0;let t=e;return t.$$typeof===Hu||t.prototype?.isReactComponent!=null}async function Wu(e){let{route:t,params:n,routePath:r,displayPathname:i=r,pageRequest:a,globalErrorModule:o,rootNotFoundModule:s,rootForbiddenModule:c,rootUnauthorizedModule:l,metadataRoutes:u}=e,d=qu(t,r),{opts:f,searchParams:p,isRscRequest:m,mountedSlotsHeader:h,renderMode:g=C,observeMetadataSearchParamsAccess:_=!1,observePageSearchParamsAccess:v=!1,serveStreamingMetadata:y,isProduction:b=!0}=a,x=t.page,S=f?.interceptSlotKey===`__vinext_page_intercept`&&!!f?.interceptPage,w=S?f.interceptPage:x,T=w?.default,E=S?f.interceptParams??n:n,D=S?f?.interceptSourcePageSegments:t.routeSegments,O=!!x,k=ri({displayPathname:i,matchedRoutePathname:r,targetMatchedPathname:r,interceptionContext:f?.interceptionContext??null,interceptSourceMatchedUrl:f?.interceptSourceMatchedUrl??null,interceptSlotId:S?null:f?.interceptSlotId??null});if((O||S)&&!T){let e=null,n=t.ids?.layouts??t.layouts.map((e,n)=>W.encodeLayoutId(Nl(t.routeSegments,t.layoutTreePositions?.[n]??0)));if(t.layouts?.length>0){let n=t.layoutTreePositions?.[0]??0;e=Nl(t.routeSegments,n)}return{...W.createMetadataEntries({interception:k.interception,interceptionContext:k.interceptionContext,layoutIds:n,rootLayoutTreePath:e,routeId:k.routeId,sourcePage:zl(D)}),[k.routeId]:(0,G.createElement)(`div`,null,`Page has no default export`)}}let A=_c({interceptBranchSegments:f?.interceptBranchSegments??null,interceptLayouts:f?.interceptLayouts??null,interceptLayoutSegments:f?.interceptLayoutSegments??null,interceptNotFoundBranchSegments:f?.interceptNotFoundBranchSegments??null,interceptNotFound:f?.interceptNotFound??null,interceptNotFoundTreePosition:f?.interceptNotFoundTreePosition??null,interceptPage:f?.interceptPage??null,interceptParams:f?.interceptParams??null,interceptSlotKey:f?.interceptSlotKey??null,interceptSourcePageSegments:f?.interceptSourcePageSegments??null,layoutTreePositions:t.layoutTreePositions,params:n,routeSegments:t.routeSegments??[],slotParams:d,slots:t.slots??null}),j=S?{head:{layoutModules:f?.interceptLayouts??[],layoutParams:(f?.interceptLayoutSegments??[]).map(e=>Vu(f?.interceptBranchSegments??e,e,E)),pageModule:w??null,params:E,routeSegments:f?.interceptSourcePageSegments??t.routeSegments??[]},...f?.interceptNotFound?{notFoundModule:f.interceptNotFound,notFoundParams:hc(f.interceptNotFoundBranchSegments??f.interceptBranchSegments??t.routeSegments??[],f.interceptNotFoundTreePosition??0,E)}:{},ownerTreePosition:t.routeSegments?.length??0}:null,ee=[...j?[j.head]:[],...A.map(e=>e.head)],M=_?Jc():void 0,N=Pc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,layoutModules:t.layouts,layoutTreePositions:t.layoutTreePositions,metadataRoutes:u,pageModule:S?null:w??null,parallelRoutes:ee,params:E,routePath:t.pattern,routeSegments:t.routeSegments??null,searchParams:p,searchParamsObserver:M}),{hasDynamicMetadata:te,pageSearchParams:P}=N,F=y??nc(a.request.headers.get(`user-agent`)??``,e.htmlLimitedBots),ne=te&&F?`body`:`head`,re=ne===`body`,ie=re?b?N.metadata.catch(e=>{throw Js(e,`production`)}):N.metadata:null;ie?.catch(()=>null);let I=()=>{let e=t.notFound,n=Lu({layoutIndex:t.layouts.length,rootForbiddenModule:c,rootNotFoundModule:s,rootUnauthorizedModule:l,routeForbiddenModules:t.forbiddens,routeNotFoundModules:t.notFounds,routeUnauthorizedModules:t.unauthorizeds,statusCode:404}),r=e??n.module,i=e?t.notFoundTreePosition:n.layoutIndex===null?null:t.layoutTreePositions?.[n.layoutIndex];return{boundaryModule:r,boundaryParams:r&&i!=null?mc(t.routeSegments??[],i,E):{},layoutModules:t.layouts,layoutTreePositions:t.layoutTreePositions,parallelBranches:A,params:E,primaryParallelBranch:j,routeSegments:t.routeSegments??null}},ae=null,L=null,oe=async n=>Es(n)?.kind===`http-access-fallback`?uu({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,...I(),metadataRoutes:u,routePath:t.pattern}).catch(()=>null):null,[se,R]=await Promise.all([re?Promise.resolve(null):N.metadata.catch(e=>(L=Promise.reject(b?Js(e,`production`):e),L.catch(()=>null),oe(e))),N.viewport.catch(async e=>{let t=Es(e);return ae=Promise.reject(b?Js(e,`production`):e),ae.catch(()=>null),t?.kind===`http-access-fallback`?du(I()).catch(()=>({})):{}})]),ce=re?N.metadata.catch(oe):null,le=[ie,L,ae].filter(e=>e!==null).map(e=>Promise.resolve(e)),z=le.length>0?Promise.all(le).then(()=>null):null;z?.catch(()=>null);let ue={params:K(E)},de=Object.keys(P).length>0,fe=(e,t)=>{if(Uu(e)){let n={...t};return p&&(n.searchParams=v?Yc(P,{markDynamic:de}):K(P)),(0,G.createElement)(e,n)}let n=e;return(0,G.createElement)(()=>{let e={...t};return p&&(e.searchParams=v?Yc(P):K(P)),n(e)})},B=p?K(P):void 0,pe=h?new Set(h.split(` `)):null,me=Gu(t,n,r,f),V=S&&T?fe(T,ue):null;if(S&&V!==null){let e=new Map;for(let[t,n]of(f?.interceptLayouts??[]).entries()){if(!n?.default)continue;let r=f?.interceptLayoutSegments?.[t]?.length??0,i=e.get(r)??[];i.push(t),e.set(r,i)}let t=new Map;for(let[e,n]of(f?.interceptLoadings??[]).entries()){if(!n?.default)continue;let r=f?.interceptLoadingTreePositions?.[e];r!==void 0&&t.set(r,e)}let n=Array.from(new Set([...e.keys(),...t.keys()])).sort((e,t)=>e-t);for(let r=n.length-1;r>=0;r--){let i=n[r],a=t.get(i),o=a===void 0?null:f?.interceptLoadings?.[a]?.default;o&&(V=(0,G.createElement)(G.Suspense,{fallback:(0,G.createElement)(o)},V));let s=e.get(i)??[];for(let e=s.length-1;e>=0;e--){let t=s[e],n=f?.interceptLayouts?.[t]?.default;if(!n)continue;let r=f?.interceptLayoutSegments?.[t]??[];V=(0,G.createElement)(n,{params:K(Vu(f?.interceptBranchSegments??r,r,E))},V)}}}return ou({element:S?V:T?fe(T,ue):null,createPageElement:fe,globalErrorModule:o??Qs,isRscRequest:m,layoutParamAccess:e.layoutParamAccess,mountedSlotIds:pe,makeThenableParams:K,matchedParams:n,metadataPlacement:ne,resolvedMetadata:se,resolvedMetadataPathname:r,resolvedViewport:R,scriptNonce:e.scriptNonce,streamingMetadata:ie,streamingMetadataOutlet:z,streamingMetadataOutletSuspended:F,streamingMetadataTags:ce,renderIdentity:k,routePath:r,sourcePageSegments:D,rootNotFoundModule:s??null,rootForbiddenModule:c??null,rootUnauthorizedModule:l??null,route:t,searchParams:B,slotOverrides:me,renderMode:g,trailingSlash:e.trailingSlash})}function Gu(e,t,n,r){let i={};r&&r.interceptSlotKey&&r.interceptPage&&r.interceptSlotKey!==`__vinext_page_intercept`&&(i[r.interceptSlotKey]={branchSegments:r.interceptBranchSegments??null,layoutModules:r.interceptLayouts||null,layoutSegments:r.interceptLayoutSegments??null,loadingModules:r.interceptLoadings||null,loadingTreePositions:r.interceptLoadingTreePositions??null,pageModule:r.interceptPage,params:r.interceptParams||t,routeSegments:Ku(r.interceptSourcePageSegments,r.interceptSlotKey)});let a=qu(e,n);for(let[e,t]of Object.entries(a??{})){let n=i[e];i[e]=n?{...n,params:n.params??t}:{params:t}}return Object.keys(i).length>0?i:null}function Ku(e,t){if(!e)return null;let n=[{prefix:`(...)`,levels:1/0},{prefix:`(..)(..)`,levels:2},{prefix:`(..)`,levels:1},{prefix:`(.)`,levels:0}],r=e.findIndex(e=>n.some(({prefix:t})=>e.startsWith(t)));if(r<0)return null;let i=t.indexOf(`@`),a=(i>=0?t.slice(i+1):``).split(`/`).filter(Boolean),o=a.length;if(o===0||o>r||!a.every((t,n)=>e[n]===t)){let t=null;for(let e=a.length-1;e>=0;e--)if(a[e].startsWith(`@`)){t=a[e];break}let n=-1;if(t){for(let i=r-1;i>=0;i--)if(e[i]===t){n=i;break}}if(n<0)return null;o=n+1}let s=e.slice(o,r).filter(e=>!e.startsWith(`@`)&&!(e.startsWith(`(`)&&e.endsWith(`)`))),c=e[r],l=n.find(({prefix:e})=>c.startsWith(e));if(!l)return null;Number.isFinite(l.levels)?s.splice(Math.max(0,s.length-l.levels),l.levels):s.length=0;let u=c.slice(l.prefix.length);return u&&s.push(u),s.push(...e.slice(r+1).filter(e=>!e.startsWith(`@`)&&!(e.startsWith(`(`)&&e.endsWith(`)`)))),s}function qu(e,t){let n={},r=e.slots;if(r){let i=null,a=Qu(e.params);for(let[e,o]of Object.entries(r)){let r=o.slotPatternParts,s=o.slotParamNames;if(!r||r.length===0||s&&s.every(e=>a.has(e)))continue;i===null&&(i=t.split(`/`).filter(Boolean));let c=gu(i,r);c&&(n[e]=c)}}return Object.keys(n).length>0?n:null}function Ju(e,t){for(let[n,r]of Object.entries(t))e[n]=r}function Yu(e){return typeof e==`object`&&!!e}function Xu(e){return Yu(e)?e?.default!==null&&e?.default!==void 0:!1}function Zu(e,t,n,r){let i={...t},a=qu(e,n);for(let[n,o]of Object.entries(e.slots??{})){let e=r?.interceptSlotKey===n&&r.interceptSlotKey!==`__vinext_page_intercept`&&Xu(r.interceptPage);!e&&!Xu(o.page)&&!Xu(o.default)||Ju(i,e?r?.interceptParams??t:a?.[n]??t)}return i}function Qu(e){let t=new Set;if(e)for(let n of e)t.add(n);return t}function $u(e,t){let n=!1,r=()=>{n||(n=!0,t())},i=new TransformStream({flush(){r()}}),a=e.pipeThrough(i).getReader();return new ReadableStream({pull(e){return a.read().then(({done:t,value:n})=>{t?e.close():e.enqueue(n)},t=>{r(),e.error(t)})},cancel(e){return r(),a.cancel(e)}})}function ed(e){return typeof e==`object`&&!!e&&`htmlStream`in e&&`metadataReady`in e}var td=Promise.resolve();function nd(e,t=null){return ed(e)?e:{htmlStream:e,metadataReady:td,capturedRscData:t,shellErrorRecovered:!1}}function rd(e,t,n){let r=typeof n==`number`?n:6e3;if(r<=0)return``;let i=[];for(let n of[e,t])if(n)for(let e of n.split(`, `))e.length>0&&i.push(e);let a=``;for(let e of i){let t=a.length===0?e:`${a}, ${e}`;if(t.length>r)break;a=t}return a}function id(e){return{links:e.getLinks(),preloads:e.getPreloads(),styles:e.getStyles()}}async function ad(e){let t={formState:e.formState??null,scriptNonce:e.scriptNonce,basePath:e.basePath,clientTraceMetadata:e.clientTraceMetadata,reactMaxHeadersLength:e.reactMaxHeadersLength,rootParams:e.rootParams,sideStream:e.sideStream,capturedRscDataRef:e.capturedRscDataRef,pprFallbackShellSignal:e.pprFallbackShellSignal,waitForAllReady:e.waitForAllReady,initialDevServerError:e.initialDevServerError,fallbackToErrorDocumentOnShellError:e.fallbackToErrorDocumentOnShellError??(e.waitForAllReady!==!0&&e.hasCustomGlobalError===!1),dynamicStaleTimeSeconds:e.dynamicStaleTimeSeconds,getInitialNavigationCacheMetadata:e.getInitialNavigationCacheMetadata};return nd(await e.ssrHandler.handleSsr(e.rscStream,e.navigationContext,e.fontData,t),e.capturedRscDataRef?.value??null)}async function od(e){let{htmlStream:t}=await ad(e),n=$u(t,()=>{e.clearRequestContext()}),r=new Headers({"Content-Type":`text/html; charset=utf-8`,Vary:de});return ra(r,e.isEdgeRuntime),e.fontLinkHeader&&r.set(`Link`,e.fontLinkHeader),R(r,e.middlewareHeaders??null),new Response(n,{status:e.status,headers:r})}async function sd(e){try{let{htmlStream:t,metadataReady:n,capturedRscData:r,linkHeader:i,shellErrorRecovered:a}=nd(await e.renderHtmlStream());return e.onShellRendered?.(),{htmlStream:t,response:null,metadataReady:n,capturedRscData:r,shellErrorRecovered:a===!0,linkHeader:i}}catch(t){let n=e.resolveSpecialError(t);if(n)return{htmlStream:null,response:await e.renderSpecialErrorResponse(n),metadataReady:td,capturedRscData:null,shellErrorRecovered:!1};let r=await e.renderErrorBoundaryResponse(t);if(r)return{htmlStream:null,response:r,metadataReady:td,capturedRscData:null,shellErrorRecovered:!1};throw t}}function cd(e){let t=null,n=null;return{getCapturedError(){return t},getCapturedSpecialError(){return n},onRenderError(r,i,a){return ls(r)?n===null&&(n=r):t=r,e(r,i,a)}}}var ld=Zs;function ud(e){return e?.default??null}function dd(e,t,n){if(!e||!t)return null;let r=n===403?e.forbidden:n===401?e.unauthorized:e.notFound,i=n===403?e.forbiddens:n===401?e.unauthorizeds:e.notFounds;if(t===r&&n===404)return e.notFoundTreePosition??null;if(t===r&&n===403)return e.forbiddenTreePosition??null;if(t===r&&n===401)return e.unauthorizedTreePosition??null;for(let n=(i?.length??0)-1;n>=0;n--)if(i?.[n]===t)return e.layoutTreePositions?.[n]??null;return null}function fd(e){return zu({element:e.element,getDefaultExport:ud,globalErrorComponent:ud(e.globalErrorModule),includeGlobalErrorBoundary:e.includeGlobalErrorBoundary,isRscRequest:e.isRscRequest,layoutModules:e.layoutModules,layoutTreePositions:e.layoutTreePositions,makeThenableParams:e.makeThenableParams,matchedParams:e.matchedParams,renderErrorBoundary(e,t){return(0,G.createElement)(ac,{fallback:ld,children:(0,G.createElement)(rc,{fallback:e,children:t})})},renderLayout(e,t,n){return(0,G.createElement)(e,{children:t,params:n})},renderLayoutSegmentProvider(e,t){return(0,G.createElement)(uc,{segmentMap:e},t)},resolveChildSegments:e.resolveChildSegments,routeSegments:e.routeSegments??[],skipLayoutWrapping:e.skipLayoutWrapping})}function pd(e,t){return!e||t.length===0?[]:Ll({errors:e.errors,layoutTreePositions:e.layoutTreePositions,layouts:t,notFounds:null,routeSegments:e.routeSegments})}function md(e,t){if(!e?.routeSegments)return;if(!e.layouts||t.length>=e.layouts.length)return e.routeSegments;let n=t.length-1;if(n<0)return[];let r=e.layoutTreePositions?.[n]??0;return e.routeSegments.slice(0,r)}function hd(e,t){return!e?.layouts||t.length>=e.layouts.length?e?.layoutTreePositions:e.layoutTreePositions?.slice(0,t.length)}function gd(e){let t=W.encodeRouteId(e.pathname,null),n=pd(e.route,e.layoutModules),r=e.sourcePageSegments??e.route?.routeSegments;return{...W.createMetadataEntries({interceptionContext:null,layoutIds:n.map(e=>e.id),rootLayoutTreePath:n[0]?.treePath??null,routeId:t,sourcePage:r?zl(r):null}),[t]:e.element}}function _d(e,t){return As({basePath:e.basePath,buildRscRedirectFlightStream:t=>xs({renderToReadableStream:e.renderToReadableStream,digest:t.digest}),clearRequestContext:e.clearRequestContext,getAndClearPendingCookies:e.getAndClearPendingCookies,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareContext:e.middlewareContext,serveStreamingMetadata:e.serveStreamingMetadata,request:e.request,specialError:t})}async function vd(e){let t=new URL(e.requestUrl),n=t.pathname,r=gd({element:e.element,layoutModules:e.layoutModules,pathname:n,route:e.route,sourcePageSegments:e.sourcePageSegments}),i=cd(e.createRscOnErrorHandler(n,e.routePattern??n)),a=e=>Es(e)??Es(i.getCapturedSpecialError()),o=t=>_d(e,t),s=e.handleSpecialErrors===!0,c;try{c=await Bu({async createHtmlResponse(r,i){let a=id({getLinks:e.getFontLinks,getPreloads:e.getFontPreloads,getStyles:e.getFontStyles}),o=await e.loadSsrHandler();return od({clearRequestContext:e.clearRequestContext,fontData:a,fontLinkHeader:e.buildFontLinkHeader(a.preloads),isEdgeRuntime:e.isEdgeRuntime,middlewareHeaders:e.middlewareContext.headers,navigationContext:e.getNavigationContext()??{pathname:n,searchParams:t.searchParams,params:e.navigationParams??e.route?.params??{}},rscStream:r,scriptNonce:e.scriptNonce,ssrHandler:o,status:i,initialDevServerError:e.initialDevServerError})},createRscOnErrorHandler(){return i.onRenderError},element:r,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareHeaders:e.middlewareContext.headers,renderToReadableStream:e.renderToReadableStream,status:e.status})}catch(e){let t=s?a(e):null;if(t!==null)return o(t);throw e}if(!s)return c;if(e.isRscRequest&&c.body){let e=await Is(c.body);c=new Response(e,{status:c.status,headers:c.headers})}let l=a();if(!l)return c;if(c.body)try{await c.body.cancel()}catch{}return o(l)}async function yd(e){let t=Fu({rootForbiddenModule:e.rootForbiddenModule,rootNotFoundModule:e.rootNotFoundModule,rootUnauthorizedModule:e.rootUnauthorizedModule,routeForbiddenModule:e.route?.forbidden,routeNotFoundModule:e.route?.notFound,routeUnauthorizedModule:e.route?.unauthorized,statusCode:e.statusCode}),n=e.boundaryModule??t,r=e.boundaryComponent??ud(n);if(!r)return null;let i=e.layoutModules??e.route?.layouts??e.rootLayouts,a=new URL(e.requestUrl).pathname,o=e.routePathname??Be(Et(a,e.basePath??``)),s=md(e.route,i),c=s??[],l;try{if([401,403,404].includes(e.statusCode)){let t=dd(e.route,n,e.statusCode),r=t==null?{}:mc(c,t,e.matchedParams),u=e.intercept,d=u?.interceptSlotKey===`__vinext_page_intercept`&&u.interceptPage!=null,f=d?u.interceptParams??e.matchedParams:e.matchedParams,p=qu({slots:e.route?.slots??null},o),m=_c({interceptBranchSegments:u?.interceptBranchSegments??null,interceptLayouts:u?.interceptLayouts??null,interceptLayoutSegments:u?.interceptLayoutSegments??null,interceptNotFoundBranchSegments:u?.interceptNotFoundBranchSegments??null,interceptNotFound:u?.interceptNotFound??null,interceptNotFoundTreePosition:u?.interceptNotFoundTreePosition??null,interceptPage:u?.interceptPage??null,interceptParams:u?.interceptParams??null,interceptSlotKey:u?.interceptSlotKey??null,interceptSourcePageSegments:u?.interceptSourcePageSegments??null,layoutTreePositions:e.route?.layoutTreePositions,params:e.matchedParams,routeSegments:c,slotParams:p,slots:e.route?.slots??null}),h=d?{head:{layoutModules:u?.interceptLayouts??[],layoutParams:(u?.interceptLayoutSegments??[]).map(e=>hc(u?.interceptBranchSegments??e,e.length,f,e)),pageModule:u?.interceptPage??null,params:f,routeSegments:u?.interceptSourcePageSegments??c},...u?.interceptNotFound?{notFoundModule:u.interceptNotFound,notFoundParams:hc(u.interceptNotFoundBranchSegments??u.interceptBranchSegments??c,u.interceptNotFoundTreePosition??0,f)}:{},ownerTreePosition:c.length}:null,g={boundaryModule:n,boundaryParams:r,branchNotFoundConventions:e.statusCode===404,layoutModules:i,layoutTreePositions:hd(e.route,i),parallelBranches:m,params:e.matchedParams,primaryParallelBranch:h,routeSegments:s},[_,v]=await Promise.all([uu({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,...g,metadataRoutes:e.metadataRoutes,routePath:e.route?.pattern??a}),du(g)]);l={metadata:_,viewport:v}}else l=await Nc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,layoutModules:i,layoutTreePositions:hd(e.route,i),metadataRoutes:e.metadataRoutes,pageModule:n,params:e.matchedParams,routePath:e.route?.pattern??a,routeSegments:s})}catch(t){let n=Es(t);if(n)return _d(e,n);throw t}let{metadata:u,viewport:d}=l,f=[(0,G.createElement)(`meta`,{charSet:`utf-8`,key:`charset`}),(0,G.createElement)(`meta`,{key:`robots`,name:`robots`,content:`noindex`})];u&&f.push((0,G.createElement)(xr,{key:`metadata`,metadata:u,pathname:a,trailingSlash:e.trailingSlash})),f.push((0,G.createElement)(zn,{key:`viewport`,viewport:d}));let p=e.skipLayoutWrapping??!1,m=fd({element:(0,G.createElement)(G.Fragment,null,...f,(0,G.createElement)(r)),globalErrorModule:e.globalErrorModule,includeGlobalErrorBoundary:!0,isRscRequest:e.isRscRequest,layoutModules:i,layoutTreePositions:e.route?.layoutTreePositions,makeThenableParams:e.makeThenableParams,matchedParams:e.matchedParams,resolveChildSegments:e.resolveChildSegments,routeSegments:e.route?.routeSegments,skipLayoutWrapping:p});return vd({...e,element:m,handleSpecialErrors:!0,layoutModules:p?[]:i,navigationParams:e.matchedParams,route:p?null:e.route,routePattern:e.route?.pattern,status:e.statusCode})}async function bd(e){let t=Ru({getDefaultExport:ud,errorModules:e.route?.errorPaths,globalErrorModule:e.globalErrorModule,layoutErrorModules:e.route?.errors,pageErrorModule:e.route?.error});if(!t.component)return null;let n=e.error instanceof Error?e.error:Error(String(e.error));Sd(n);let r=e.errorOrigin===`ssr`?n:e.sanitizeErrorForClient(n),i=e.matchedParams??e.route?.params??{},a=e.route?.layouts??e.rootLayouts,o=new URL(e.requestUrl).pathname,s=[(0,G.createElement)(`meta`,{charSet:`utf-8`,key:`charset`})];if(!t.isGlobalError)try{let{metadata:t,viewport:n}=await Nc({applyFileBasedMetadata:e.applyFileBasedMetadata,basePath:e.basePath??``,fallbackOnFileMetadataError:!0,layoutModules:a,layoutTreePositions:e.route?.layoutTreePositions,metadataRoutes:e.metadataRoutes,params:i,routePath:e.route?.pattern??o,routeSegments:e.route?.routeSegments});t&&s.push((0,G.createElement)(xr,{key:`metadata`,metadata:t,pathname:o,trailingSlash:e.trailingSlash})),s.push((0,G.createElement)(zn,{key:`viewport`,viewport:n}))}catch(t){console.error(`[vinext] App page error boundary head resolution failed for ${e.route?.pattern??o}:`,t)}let c=n=>{let o={digest:`digest`in r?String(r.digest):void 0,message:r.message,name:r.name,stack:void 0},c=t.isGlobalError&&n!==ld?(0,G.createElement)(cc,{error:o,fallback:n}):(0,G.createElement)(n,{error:r});return fd({element:(0,G.createElement)(G.Fragment,null,...s,t.isGlobalError?(0,G.createElement)(ac,{fallback:ld,children:c}):c),globalErrorModule:e.globalErrorModule,includeGlobalErrorBoundary:!t.isGlobalError,isRscRequest:e.isRscRequest,layoutModules:a,layoutTreePositions:e.route?.layoutTreePositions,makeThenableParams:e.makeThenableParams,matchedParams:i,resolveChildSegments:e.resolveChildSegments,routeSegments:e.route?.routeSegments,skipLayoutWrapping:t.isGlobalError})},l=async r=>{let o=await vd({...e,element:c(r),initialDevServerError:n,layoutModules:a,navigationParams:i,route:e.route,routePattern:e.route?.pattern,status:t.isGlobalError?500:200});return t.isGlobalError&&(o.headers.set(`Cache-Control`,H),o.headers.delete(`CDN-Cache-Control`),o.headers.delete(`Cloudflare-CDN-Cache-Control`),o.headers.delete(`Cache-Tag`)),o};try{return await l(t.component)}catch(n){if(t.isGlobalError&&!ls(n)&&!Es(n))return console.error(`[vinext] global-error.tsx threw while rendering for ${e.route?.pattern??o}; falling back to the built-in default global-error:`,n),l(ld);throw n}}var xd=/\b(useState|useEffect|useReducer|useRef|useContext|useLayoutEffect|useInsertionEffect|useSyncExternalStore|useTransition|useImperativeHandle|useDeferredValue|useActionState|useOptimistic|useEffectEvent)\b.*is not a function/;function Sd(e){let t=e.message.match(xd);t&&(e.message=bn(`${t[1]}()`))}function Cd(){return G.createElement(`html`,null,G.createElement(`body`,null,G.createElement(Bc)))}var wd={default:Cd},Td={default:Bc},Ed={headers:null,status:null};function Dd(e){let{applyFileBasedMetadata:t,basePath:n=``,htmlLimitedBots:r,clearRequestContext:i,createRscOnErrorHandler:a,fontProviders:o,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:l,globalNotFoundEnabled:u=!1,loadGlobalNotFoundModule:d,makeThenableParams:f,metadataRoutes:p,resolveChildSegments:m,rootBoundaries:h,rscRenderer:g,sanitizer:_,ssrLoader:v,trailingSlash:y}=e,{rootForbiddenModule:b,rootLayouts:x,rootNotFoundModule:S,rootUnauthorizedModule:C}=h,w=l??Qs,T=S??Td,E=null;function D(){return d?(E===null&&(E=Promise.resolve().then(d)),E):null}return{async renderHttpAccessFallback(e,l,h,_,S,E,O,k){let A=nc(_.headers.get(`user-agent`)??``,r),j=l===404&&u&&!e&&!S?.boundaryComponent;if(j&&d){let e=await D(),r=e?.default??null;if(r)return yd({applyFileBasedMetadata:t,basePath:n,trailingSlash:y,boundaryComponent:r,boundaryModule:e??null,buildFontLinkHeader:o.buildFontLinkHeader,clearRequestContext:i,createRscOnErrorHandler(e,t){return a(_,e,t)},getFontLinks:o.getFontLinks,getFontPreloads:o.getFontPreloads,getFontStyles:o.getFontStyles,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:w,isEdgeRuntime:k?.isEdgeRuntime,isRscRequest:h,layoutModules:[],loadSsrHandler:v,makeThenableParams:f,matchedParams:S?.matchedParams??{},middlewareContext:O??Ed,metadataRoutes:p,request:_,requestUrl:_.url,resolveChildSegments:m,rootForbiddenModule:null,rootLayouts:[],rootNotFoundModule:null,rootUnauthorizedModule:null,route:null,renderToReadableStream:g,scriptNonce:E,serveStreamingMetadata:A,skipLayoutWrapping:!0,statusCode:l})}let ee=j?wd:T;return yd({applyFileBasedMetadata:t,basePath:n,trailingSlash:y,boundaryComponent:S?.boundaryComponent??null,boundaryModule:S?.boundaryModule??null,buildFontLinkHeader:o.buildFontLinkHeader,clearRequestContext:i,createRscOnErrorHandler(e,t){return a(_,e,t)},getFontLinks:o.getFontLinks,getFontPreloads:o.getFontPreloads,getFontStyles:o.getFontStyles,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:w,intercept:S?.intercept??null,isEdgeRuntime:k?.isEdgeRuntime,isRscRequest:h,layoutModules:j?[]:S?.layouts??null,loadSsrHandler:v,makeThenableParams:f,matchedParams:S?.matchedParams??e?.params??{},middlewareContext:O??Ed,metadataRoutes:p,request:_,requestUrl:_.url,resolveChildSegments:m,rootForbiddenModule:b,rootLayouts:j?[]:x,rootNotFoundModule:ee,rootUnauthorizedModule:C,route:j?null:e,routePathname:k?.routePathname,renderToReadableStream:g,scriptNonce:E,serveStreamingMetadata:A,skipLayoutWrapping:j,sourcePageSegments:k?.sourcePageSegments,statusCode:l})},renderNotFound(e,t,n,r,i,a,o){return this.renderHttpAccessFallback(e,404,t,n,{matchedParams:r},i,a,o)},renderErrorBoundary(e,r,l,u,d,h,b,S,C=`rsc`){return bd({applyFileBasedMetadata:t,basePath:n,trailingSlash:y,buildFontLinkHeader:o.buildFontLinkHeader,clearRequestContext:i,createRscOnErrorHandler(e,t){return a(u,e,t)},error:r,errorOrigin:C,getFontLinks:o.getFontLinks,getFontPreloads:o.getFontPreloads,getFontStyles:o.getFontStyles,getAndClearPendingCookies:s,getNavigationContext:c,globalErrorModule:w,isEdgeRuntime:S?.isEdgeRuntime,isRscRequest:l,loadSsrHandler:v,makeThenableParams:f,matchedParams:d??e?.params??{},middlewareContext:b??Ed,metadataRoutes:p,request:u,requestUrl:u.url,resolveChildSegments:m,rootLayouts:x,route:e,renderToReadableStream:g,sanitizeErrorForClient:_,scriptNonce:h,sourcePageSegments:S?.sourcePageSegments})}}}function Od(e,t){let n=0,r=e.length;for(;n<r;){let i=n+Math.floor((r-n)/2);if(e[i]===t)return{found:!0,index:i};e[i]<t?n=i+1:r=i}return{found:!1,index:n}}var kd={maxDimensionCount:8,maxDimensionNameLength:64,maxDimensionValueLength:256,maxEncodedLength:1024,maxValuesPerDimension:8,maxVariantsPerRoute:64},Ad=[`connection`,`cookies`,`draftMode`,`headers`,`params`,`searchParams`],jd=new Set([`auth`,`cookie`,`draft-mode`,`header`,`session`]);function Y(e,t={},n=`renderFresh`,r=`affectedOutput`){return{kind:`breakerFallback`,code:e,mode:n,scope:r,fields:t}}function Md(e){return[...new Set(e)].sort()}function Nd(e){return e.trim().toLowerCase()}function Pd(e){return`h:${Ae(e)}`}function Fd(e){return Md(Md(e).map(Pd))}function Id(e){return JSON.stringify(e)}function Ld(e,t){return e.source.localeCompare(t.source)||e.name.localeCompare(t.name)||e.privacy.localeCompare(t.privacy)}function Rd(e){return e}function zd(e){throw Error(`Unhandled cache proof variant: ${String(e)}`)}function Bd(e){switch(e.kind){case`app-html`:return Id([e.kind,e.routeId,Rd(e.rootBoundaryId),Rd(e.renderEpoch)]);case`app-rsc`:return Id([e.kind,e.routeId,Rd(e.rootBoundaryId),Rd(e.renderEpoch),Rd(e.mountedSlotsFingerprint)]);case`layout`:return Id([e.kind,e.routeId,e.layoutId,Rd(e.rootBoundaryId)]);case`page`:return Id([e.kind,e.routeId,e.pageId,Rd(e.rootBoundaryId)]);case`route-handler`:return Id([e.kind,e.routeId,e.routeHandlerId]);case`slot`:return Id([e.kind,e.routeId,e.slotId,Rd(e.rootBoundaryId)]);case`template`:return Id([e.kind,e.routeId,e.templateId,Rd(e.rootBoundaryId)]);default:return zd(e)}}function Vd(e,t){return Number.isInteger(t)&&t>=0?null:Y(`CP_INVALID_VARIANT_BUDGET`,{budgetField:e})}function Hd(e){return Vd(`maxDimensionCount`,e.maxDimensionCount)??Vd(`maxDimensionNameLength`,e.maxDimensionNameLength)??Vd(`maxDimensionValueLength`,e.maxDimensionValueLength)??Vd(`maxEncodedLength`,e.maxEncodedLength)??Vd(`maxValuesPerDimension`,e.maxValuesPerDimension)??Vd(`maxVariantsPerRoute`,e.maxVariantsPerRoute)}function Ud(e,t){let n=Nd(e.name);if(n.length===0)return Y(`CP_DIMENSION_NAME_MISSING`,{source:e.source});if(n.length>t.maxDimensionNameLength)return Y(`CP_DIMENSION_NAME_TOO_LONG`,{maxLength:t.maxDimensionNameLength,nameHash:Pd(n),source:e.source});if(e.privacy===`public`&&jd.has(e.source))return Y(`CP_UNSAFE_PUBLIC_DIMENSION`,{name:n,source:e.source},`privateUncacheable`);let r=Md(e.values);if(r.length===0)return Y(`CP_DIMENSION_VALUES_MISSING`,{name:n,source:e.source});if(r.length>t.maxValuesPerDimension)return Y(`CP_DIMENSION_VALUE_COUNT_EXCEEDED`,{maxValues:t.maxValuesPerDimension,name:n,source:e.source,valueCount:r.length});for(let i of r)if(i.length>t.maxDimensionValueLength)return Y(`CP_DIMENSION_VALUE_TOO_LONG`,{maxLength:t.maxDimensionValueLength,name:n,source:e.source,valueHash:Pd(i)});let i=r.map(Pd);return{encoded:Id([e.source,e.privacy,n,i]),name:n,privacy:e.privacy,source:e.source,valueCount:i.length,valueHashes:i}}function Wd(e){return`code`in e}function Gd(e,t,n){let r=e.get(t),i=r??new Map;r||e.set(t,i);let a=i.get(n),o=a??new Map;return a||i.set(n,o),o}function Kd(e){let t=new Map,n=[];for(let r of e){let e=Nd(r.name),i=Gd(t,r.source,r.privacy),a=i.get(e);if(a){a.values.push(...r.values);continue}let o={name:e,privacy:r.privacy,source:r.source,values:[...r.values]};i.set(e,o),n.push(o)}return n}function qd(e){let t=Hd(e.budget);if(t)return{kind:`breakerFallback`,fallback:t};let n=Kd(e.dimensions);if(n.length>e.budget.maxDimensionCount)return{kind:`breakerFallback`,fallback:Y(`CP_DIMENSION_COUNT_EXCEEDED`,{dimensionCount:n.length,maxDimensionCount:e.budget.maxDimensionCount,routeId:e.output.routeId})};let r=[];for(let t of n){let n=Ud(t,e.budget);if(Wd(n))return{kind:`breakerFallback`,fallback:n};r.push(n)}r.sort(Ld);let i=[`schema:1`,Bd(e.output),...r.map(e=>e.encoded)].join(`|`);return i.length>e.budget.maxEncodedLength?{kind:`breakerFallback`,fallback:Y(`CP_ENCODED_VARIANT_TOO_LONG`,{encodedHash:Pd(i),encodedLength:i.length,maxEncodedLength:e.budget.maxEncodedLength,routeId:e.output.routeId})}:{kind:`variant`,variant:{schemaVersion:1,cacheKey:`cp1:${Ae(i)}`,output:e.output,dimensions:r,encodedLength:i.length,budget:{...e.budget}}}}function Jd(e){return{routeId:e.routeId,variantCacheKeys:Md(e.variantCacheKeys)}}function Yd(e,t){return Y(`CP_ROUTE_VARIANT_CEILING_EXCEEDED`,{existingVariantCount:t,maxVariantsPerRoute:e.budget.maxVariantsPerRoute,routeId:e.output.routeId},`privateUncacheable`,`route`)}function Xd(e){if(e.routeBudget&&e.routeBudget.routeId!==e.variant.output.routeId)return{kind:`breakerFallback`,routeBudget:Jd(e.routeBudget),fallback:Y(`CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH`,{budgetRouteId:e.routeBudget.routeId,routeId:e.variant.output.routeId},`privateUncacheable`,`route`)};let t=Jd(e.routeBudget??{routeId:e.variant.output.routeId,variantCacheKeys:[]}),n=t.variantCacheKeys.length,r=Od(t.variantCacheKeys,e.variant.cacheKey);return n>e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:Yd(e.variant,n)}:r.found?{kind:`variant`,variant:e.variant,routeBudget:t,didConsumeRouteVariantBudget:!1}:n>=e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:Yd(e.variant,n)}:{kind:`variant`,variant:e.variant,routeBudget:{routeId:t.routeId,variantCacheKeys:[...t.variantCacheKeys.slice(0,r.index),e.variant.cacheKey,...t.variantCacheKeys.slice(r.index)]},didConsumeRouteVariantBudget:!0}}function Zd(e){let t=qd({budget:e.budget,dimensions:e.dimensions,output:e.output});return t.kind===`breakerFallback`?{kind:`breakerFallback`,routeBudget:e.routeBudget?Jd(e.routeBudget):null,fallback:t.fallback}:Xd({routeBudget:e.routeBudget,variant:t.variant})}function Qd(e,t){switch(e.kind){case`error`:return t.kind===`error`&&(e.digest??``)===(t.digest??``);case`forbidden`:return t.kind===`forbidden`;case`globalError`:return t.kind===`globalError`&&(e.digest??``)===(t.digest??``);case`notFound`:return t.kind===`notFound`;case`redirect`:return t.kind===`redirect`&&e.status===t.status&&e.location===t.location;case`success`:return t.kind===`success`;case`unauthorized`:return t.kind===`unauthorized`;case`unknown`:return!1;default:return zd(e)}}function $d(e){return e.expected.kind===`unknown`||e.candidate.kind===`unknown`?{kind:`incompatible`,expected:e.expected,candidate:e.candidate,fallback:Y(`CP_BOUNDARY_OUTCOME_UNKNOWN`,{candidateKind:e.candidate.kind,expectedKind:e.expected.kind})}:Qd(e.expected,e.candidate)?{kind:`compatible`,outcome:e.candidate,reason:`CP_BOUNDARY_OUTCOME_MATCH`}:{kind:`incompatible`,expected:e.expected,candidate:e.candidate,fallback:Y(`CP_BOUNDARY_OUTCOME_MISMATCH`,{candidateKind:e.candidate.kind,expectedKind:e.expected.kind})}}function ef(e){switch(e){case`notObserved`:return 0;case`unknown`:return 1;case`observed`:return 2;default:return zd(e)}}function tf(e){let t=new Map;for(let n of e){let e=t.get(n.kind);(e===void 0||ef(n.status)>ef(e))&&t.set(n.kind,n.status)}return[...t.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({kind:e,status:t}))}function nf(e){switch(e){case`public`:return 0;case`publicVariant`:return 1;case`private`:return 2;case`privateUncacheable`:return 3;case`freshRender`:return 4;default:return zd(e)}}function rf(e,t){return nf(t)>nf(e)?t:e}function af(e,t){switch(e){case`public`:case`publicVariant`:case`private`:return null;case`privateUncacheable`:return Y(`CP_PRIVATE_DYNAMIC_DOWNGRADE`,{reasonCodes:t.map(e=>e.code),target:e},`privateUncacheable`);case`freshRender`:return Y(`CP_PRIVATE_DYNAMIC_DOWNGRADE`,{reasonCodes:t.map(e=>e.code),target:e});default:return zd(e)}}function of(e){switch(e){case`connection`:return{code:`CP_DOWNGRADE_DYNAMIC_REQUEST_API`,requestApi:`connection`,target:`freshRender`};case`cookies`:return{code:`CP_DOWNGRADE_PRIVATE_REQUEST_API`,requestApi:`cookies`,target:`private`};case`draftMode`:return{code:`CP_DOWNGRADE_DRAFT_MODE`,requestApi:`draftMode`,target:`privateUncacheable`};case`headers`:return{code:`CP_DOWNGRADE_PRIVATE_REQUEST_API`,requestApi:`headers`,target:`private`};case`params`:return{code:`CP_DOWNGRADE_PUBLIC_REQUEST_API`,requestApi:`params`,target:`publicVariant`};case`searchParams`:return{code:`CP_DOWNGRADE_PUBLIC_REQUEST_API`,requestApi:`searchParams`,target:`publicVariant`};default:return zd(e)}}function sf(e){let t=[],n=`public`;switch(e.cacheability){case`public`:break;case`private`:{let e={code:`CP_DOWNGRADE_CACHEABILITY_PRIVATE`,target:`private`};t.push(e),n=rf(n,e.target);break}case`uncacheable`:{let e={code:`CP_DOWNGRADE_CACHEABILITY_UNCACHEABLE`,target:`privateUncacheable`};t.push(e),n=rf(n,e.target);break}case`unknown`:{let e={code:`CP_DOWNGRADE_CACHEABILITY_UNKNOWN`,target:`freshRender`};t.push(e),n=rf(n,e.target);break}default:zd(e.cacheability)}if(e.completeness!==`complete`){let r={code:`CP_DOWNGRADE_INCOMPLETE_OBSERVATION`,completeness:e.completeness,target:`freshRender`};t.push(r),n=rf(n,r.target)}if(e.dynamicFetches.length>0){let r={code:`CP_DOWNGRADE_DYNAMIC_FETCH`,dynamicFetchCount:e.dynamicFetches.length,target:`freshRender`};t.push(r),n=rf(n,r.target)}let r=tf(e.requestApis);for(let e of r){if(e.status===`notObserved`)continue;let r=e.status===`unknown`?{code:`CP_DOWNGRADE_UNKNOWN_REQUEST_API`,requestApi:e.kind,target:`freshRender`}:of(e.kind);t.push(r),n=rf(n,r.target)}return{target:n,reasons:t,fallback:af(n,t),isPublicCacheCandidate:n===`public`||n===`publicVariant`}}function cf(e){let t=new Set(e.observed),n=e.completeness===`complete`?`notObserved`:`unknown`;return Ad.map(e=>({kind:e,status:t.has(e)?`observed`:n}))}function lf(e){let t=tf(e.requestApis),n=Fd(e.dynamicFetches);return{schemaVersion:1,output:e.output,completeness:e.completeness,boundaryOutcome:e.boundaryOutcome,requestApis:t,dynamicFetches:n,cacheTags:Md(e.cacheTags),pathTags:Md(e.pathTags),cacheability:e.cacheability,downgrade:sf({cacheability:e.cacheability,completeness:e.completeness,dynamicFetches:n,requestApis:t})}}function uf(e,t){if(e.completeness!==`complete`)return!1;let n=new Map;for(let t of tf(e.requestApis))n.set(t.kind,t.status);for(let e of t)if(n.get(e)!==`notObserved`)return!1;return!0}function df(e){return e.kind===`layout`}function ff(e,t,n=`renderFresh`){return{kind:`rejected`,fallback:Y(e,t,n)}}function pf(e,t){let n=null;for(let r of e)r.kind===t&&(n===null||ef(r.status)>ef(n))&&(n=r.status);return n??`missing`}function mf(e){let t=e.target===`privateUncacheable`?`privateUncacheable`:`renderFresh`;return Y(`CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE`,{reasonCodes:e.reasons.map(e=>e.code),target:e.target},t)}function hf(e,t){return e.layoutId===t.layoutId?e.rootBoundaryId===t.rootBoundaryId?e.routeId===t.routeId?null:`routeId`:`rootBoundaryId`:`layoutId`}function gf(e){if(!df(e.currentOutput))return ff(`CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND`,{currentOutputKind:e.currentOutput.kind});if(!df(e.candidateVariant.output))return ff(`CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND`,{candidateOutputKind:e.candidateVariant.output.kind});if(!df(e.candidateObservation.output))return ff(`CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND`,{observationOutputKind:e.candidateObservation.output.kind});let t=e.currentOutput,n=e.candidateVariant.output,r=e.candidateObservation.output,i=tf(e.candidateObservation.requestApis),a={...e.candidateObservation,requestApis:i,downgrade:sf({cacheability:e.candidateObservation.cacheability,completeness:e.candidateObservation.completeness,dynamicFetches:e.candidateObservation.dynamicFetches,requestApis:i})},o=hf(n,r);if(o)return ff(`CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH`,{candidateLayoutId:n.layoutId,candidateRootBoundaryId:n.rootBoundaryId,candidateRouteId:n.routeId,field:o,observationLayoutId:r.layoutId,observationRootBoundaryId:r.rootBoundaryId,observationRouteId:r.routeId});if(t.layoutId!==n.layoutId)return ff(`CP_STATIC_LAYOUT_ID_MISMATCH`,{candidateLayoutId:n.layoutId,currentLayoutId:t.layoutId});if(t.rootBoundaryId===null||n.rootBoundaryId===null)return ff(`CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN`,{candidateRootBoundaryId:n.rootBoundaryId,currentRootBoundaryId:t.rootBoundaryId});if(t.rootBoundaryId!==n.rootBoundaryId)return ff(`CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH`,{candidateRootBoundaryId:n.rootBoundaryId,currentRootBoundaryId:t.rootBoundaryId});let s=$d({candidate:a.boundaryOutcome,expected:{kind:`success`}});if(s.kind===`incompatible`)return{kind:`rejected`,fallback:s.fallback};if(e.candidateVariant.dimensions.length>0)return ff(`CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`,{dimensionCount:e.candidateVariant.dimensions.length,sources:Md(e.candidateVariant.dimensions.map(e=>e.source))});if(!a.downgrade.isPublicCacheCandidate)return{kind:`rejected`,fallback:mf(a.downgrade)};let c=Ad;for(let e of c){let t=pf(a.requestApis,e);if(t!==`notObserved`)return ff(t===`missing`?`CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN`:`CP_STATIC_LAYOUT_REQUEST_API_OBSERVED`,{requestApi:e,status:t})}return{kind:`proof`,proof:{authorizesRuntimeReuse:!0,candidateOutput:n,code:`CP_STATIC_LAYOUT_REUSE_PROVEN`,currentOutput:t,fields:{candidateRouteId:n.routeId,currentRouteId:t.routeId,layoutId:t.layoutId,rootBoundaryId:t.rootBoundaryId},observation:a,requiredNegativeRequestApis:[...c],reuseClass:`static-layout`,variant:e.candidateVariant}}}function _f(e,t,n){return{name:`vinext.cache.static_layout_artifact_reuse`,outcome:e,code:t,fields:n}}function vf(e){return{kind:`fallback`,canReuse:!1,fallback:e,metric:_f(`fallback`,e.code,e.fields)}}function yf(e){if(e.candidateVariant.kind===`breakerFallback`)return vf(e.candidateVariant.fallback);let t=Oe(e.currentArtifactCompatibility,e.candidateArtifactCompatibility,{compatibilityMap:e.compatibilityMap});if(t.kind===`unknown`)return vf(Y(`CP_ARTIFACT_COMPATIBILITY_UNKNOWN`,{compatibilityFallback:t.fallback,reason:t.reason}));if(t.kind===`incompatible`)return vf(Y(`CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE`,{compatibilityFallback:t.fallback,reason:t.reason}));let n=gf({candidateObservation:e.candidateObservation,candidateVariant:e.candidateVariant.variant,currentOutput:e.currentOutput});return n.kind===`rejected`?vf(n.fallback):{kind:`reuse`,canReuse:!0,proof:{...n.proof,candidateArtifactCompatibility:{...e.candidateArtifactCompatibility}},metric:_f(`reuse`,n.proof.code,n.proof.fields)}}function bf(e){let t=e[W.keys.rootLayout];return typeof t==`string`?t:null}function xf(e,t){if(x(e)){let t=e[W.keys.route];if(typeof t==`string`)return t}return W.encodeRouteId(t,null)}function Sf(e){let t=N(e);return t?`slots:${Ae(t)}`:null}function Cf(e,t){let n=new Set(e);return Object.keys(t).length>0&&n.add(`params`),[...n].sort()}function wf(){return{dynamicFetches:[],requestApis:[]}}function Tf(){return{dynamicFetches:Re(),requestApis:z()}}function Ef(){ge(),Re(),z(),Pe(),xe()}function Df(e){return lf({boundaryOutcome:e.boundaryOutcome,cacheability:e.cacheability,cacheTags:e.cacheTags,completeness:e.completeness,dynamicFetches:e.state.dynamicFetches,output:e.output,pathTags:[e.cleanPathname],requestApis:cf({completeness:e.completeness,observed:Cf(e.state.requestApis,e.params)})})}function Of(e){return{kind:`app-rsc`,mountedSlotsFingerprint:Sf(e.mountedSlotsHeader),renderEpoch:e.renderEpoch,rootBoundaryId:e.rootBoundaryId??(x(e.element)?bf(e.element):null),routeId:xf(e.element,e.routePattern)}}function kf(e){return{kind:`app-html`,renderEpoch:e.renderEpoch,rootBoundaryId:e.rootBoundaryId??(x(e.element)?bf(e.element):null),routeId:xf(e.element,e.routePattern)}}var Af=[[`SKIP_LAYOUT_PARAMS_OBSERVATION_INCOMPLETE`,e=>e.completeness!==`complete`],[`SKIP_LAYOUT_PARAMS_PRESENT`,e=>e.paramScopeKeys.length>0],[`SKIP_LAYOUT_PARAMS_OBSERVED`,e=>e.observed],[`SKIP_LAYOUT_DYNAMIC_USAGE_OBSERVED`,e=>e.dynamicUsageObserved],[`SKIP_LAYOUT_REQUEST_API_OBSERVED`,e=>e.requestApis.length>0],[`SKIP_LAYOUT_REVALIDATE_PRESENT`,e=>e.finiteRevalidateSeconds!==null],[`SKIP_LAYOUT_CACHE_LIFE_OBSERVED`,e=>e.cacheLifeObserved],[`SKIP_LAYOUT_UNSTABLE_CACHE_OBSERVED`,e=>e.unstableCaches.length>0],[`SKIP_LAYOUT_CACHE_TAGS_OBSERVED`,e=>e.cacheTags.length>0],[`SKIP_LAYOUT_CACHEABLE_FETCHES_OBSERVED`,e=>e.cacheableFetchCount>0],[`SKIP_LAYOUT_DYNAMIC_FETCHES_OBSERVED`,e=>e.dynamicFetchCount>0]];function jf(e){return{cacheLifeObserved:e.cacheLifeObserved,cacheTags:e.cacheTags,cacheableFetchCount:e.cacheableFetchCount,dynamicFetchCount:e.dynamicFetchCount,dynamicUsageObserved:e.dynamicUsageObserved,finiteRevalidateSeconds:e.finiteRevalidateSeconds,observedParamKeys:e.keys,paramScopeKeys:e.paramScopeKeys,requestApis:e.requestApis,unstableCacheCount:e.unstableCaches.length,unstableCacheKeyHashes:e.unstableCaches.map(e=>e.keyHash),unstableCacheRevalidates:e.unstableCaches.map(e=>String(e.revalidate)),unstableCacheTagCounts:e.unstableCaches.map(e=>String(e.tagCount)),unstableCacheTagHashes:e.unstableCaches.map(e=>e.tagHash??`none`)}}function Mf(e){for(let[t,n]of Af)if(n(e))return{code:t,fields:jf(e)};return null}function Nf(e){return Mf(e)!==null}function Pf(){let e=new Map,t=t=>{let n=e.get(t);if(n)return n;let r={cacheLifeObserved:!1,cacheTags:new Set,cacheableFetches:new Set,dynamicFetches:new Set,dynamicUsageObserved:!1,finiteRevalidateSeconds:null,keys:new Set,observed:!1,paramScopeKeys:new Set,probeComplete:!1,requestApis:new Set,unstableCaches:new Map};return e.set(t,r),r},n=(e,n)=>{let r=t(e);r.observed=!0;for(let e of n)r.keys.add(e)},r=e=>{t(e).probeComplete=!0},i=e=>Ue()?Ye(e=>{e.cacheableFetchUrls=new Set,e.currentRequestTags=[],e.currentFetchSoftTags=[],e.dynamicFetchUrls=new Set,e.dynamicUsageDetected=!1,e.renderRequestApiUsage=new Set,e.requestScopedCacheLife=null,e.unstableCacheObservations=new Map},e):e(),a=e=>{let n=t(e);se()&&(n.dynamicUsageObserved=!0),w()!==null&&(n.cacheLifeObserved=!0);for(let e of d())n.cacheTags.add(e);for(let e of Le())n.cacheableFetches.add(e);for(let e of ee())n.dynamicFetches.add(e);for(let e of ze())n.requestApis.add(e);for(let e of D())n.unstableCaches.set(e.keyHash,e)};return{createThenableParamsObserver(e){return{observeParamAccess(t){n(e,t)}}},getLayoutObservation(t){let n=e.get(t);return n?{cacheLifeObserved:n.cacheLifeObserved,cacheTags:[...n.cacheTags].sort(),cacheableFetchCount:n.cacheableFetches.size,completeness:n.probeComplete?`complete`:`unknown`,dynamicFetchCount:n.dynamicFetches.size,dynamicUsageObserved:n.dynamicUsageObserved,finiteRevalidateSeconds:n.finiteRevalidateSeconds,keys:[...n.keys].sort(),observed:n.observed,paramScopeKeys:[...n.paramScopeKeys].sort(),requestApis:[...n.requestApis].sort(),unstableCaches:[...n.unstableCaches.values()].sort((e,t)=>e.keyHash.localeCompare(t.keyHash))}:{cacheLifeObserved:!1,cacheTags:[],cacheableFetchCount:0,completeness:`unknown`,dynamicFetchCount:0,dynamicUsageObserved:!1,finiteRevalidateSeconds:null,keys:[],observed:!1,paramScopeKeys:[],requestApis:[],unstableCaches:[]}},recordLayoutFiniteRevalidate(e,n){if(!Number.isFinite(n)||n<=0)return;let r=t(e);r.finiteRevalidateSeconds=r.finiteRevalidateSeconds===null?n:Math.min(r.finiteRevalidateSeconds,n)},recordLayoutParamScope(e,n){let r=t(e);for(let e of n)r.paramScopeKeys.add(e)},runLayoutProbe(e,t){return i(()=>{let n=t();return vs(n)?Promise.resolve(n).then(t=>(a(e),r(e),t),t=>{throw a(e),t}):(a(e),r(e),n)})}}}function Ff(e){if(e.method.toUpperCase()!==`POST`)return!1;let t=e.headers.get(`content-type`);return e.headers.has(`x-rsc-action`)||e.headers.has(`next-action`)||t===`application/x-www-form-urlencoded`||t?.startsWith(`multipart/form-data`)===!0}function If(e){let t=e.toUpperCase();return t!==`GET`&&t!==`HEAD`}function Lf(e){return e.dynamicConfig===`force-dynamic`||e.revalidateSeconds===0?!1:e.dynamicConfig===`force-static`||e.dynamicConfig===`error`||e.revalidateSeconds!==null&&e.revalidateSeconds>0||e.hasGenerateStaticParams?!0:!e.isDynamicRoute}function Rf(e){if(!If(e.request.method)||Ff(e.request)||!Lf(e))return null;let t=new Headers;return R(t,e.middlewareHeaders??null),Dr(`GET, HEAD`,{headers:t})}function zf(e,t,n,r){!r||t[n]!=null||e.push(r().then(e=>{t[n]=e}))}function Bf(e,t,n){if(!t||!n)return;let r=t;for(let[t,i]of n.entries())t>=r.length||!i||r[t]!=null||e.push(i().then(e=>{r[t]=e}))}function Vf(e){let t=e.__loadState;if(t?.interceptLayoutsLoading)return t.interceptLayoutsLoading;let n=[];if(Bf(n,e.interceptLayouts,e.__loadInterceptLayouts),Bf(n,e.interceptLoadings,e.__loadInterceptLoadings),n.length===0)return Promise.resolve(e.interceptLayouts??[]);let r=Promise.all(n).then(()=>(t&&(t.interceptLayoutsLoading=null),e.interceptLayouts??[])).catch(e=>{throw t&&(t.interceptLayoutsLoading=null),e});return t&&(t.interceptLayoutsLoading=r),r}function Hf(e){if(!e||e.__loaded)return e;if(e.__loading)return e.__loading;let t=e.__loadPage,n=e.__loadRouteHandler,r=[];zf(r,e,`page`,t),zf(r,e,`routeHandler`,n),zf(r,e,`loading`,e.__loadLoading),zf(r,e,`error`,e.__loadError),zf(r,e,`notFound`,e.__loadNotFound),zf(r,e,`forbidden`,e.__loadForbidden),zf(r,e,`unauthorized`,e.__loadUnauthorized),Bf(r,e.layouts,e.__loadLayouts),Bf(r,e.templates,e.__loadTemplates),Bf(r,e.loadings,e.__loadLoadings),Bf(r,e.errors,e.__loadErrors),Bf(r,e.errorPaths,e.__loadErrorPaths),Bf(r,e.notFounds,e.__loadNotFounds),Bf(r,e.forbiddens,e.__loadForbiddens),Bf(r,e.unauthorizeds,e.__loadUnauthorizeds);for(let t of Object.values(e.slots??{}))zf(r,t,`page`,t.__loadPage),zf(r,t,`default`,t.__loadDefault),zf(r,t,`layout`,t.__loadLayout),Bf(r,t.configLayouts,t.__loadConfigLayouts),zf(r,t,`loading`,t.__loadLoading),Bf(r,t.loadings,t.__loadLoadings),zf(r,t,`error`,t.__loadError),zf(r,t,`notFound`,t.__loadNotFound);if(r.length===0)return e.__loaded=!0,e;let i=Promise.all(r).then(()=>(e.__loaded=!0,e.__loading=null,e)).catch(t=>{throw e.__loading=null,t});return e.__loading=i,i}function Uf(e,t){let n={};for(let r of t){let t=e[r];t!==void 0&&(n[r]=t)}return n}function Wf(e,t){if(t.paramPatternParts&&t.routePatternParts){let n=[];for(let r of t.routePatternParts){if(!r.startsWith(`:`)){n.push(r);continue}let t=e[r.slice(1).replace(/[+*]$/,``)];Array.isArray(t)?n.push(...t.map(encodeURIComponent)):t!==void 0&&n.push(encodeURIComponent(t))}let r=gu(n,t.paramPatternParts);if(r)return r}if(!t.paramAliases)return e;let n={...e};for(let[r,i]of Object.entries(t.paramAliases)){let t=e[r];t!==void 0&&(delete n[r],n[i]=t)}return n}function Gf(e,t){let n=Math.max(0,Math.min(t,e.length)),r=[];for(let t of e.slice(0,n)){let e=dc(t);e&&!r.includes(e)&&r.push(e)}return r}function Kf(e,t){let n=Math.min((t??0)-1,e.length-1);for(;n>=0;){let t=e[n];if(!t.startsWith(`@`)&&!(t.startsWith(`(`)&&t.endsWith(`)`)))break;--n}return n}function qf(e,t,n){let r=t.paramNames??e,i=Gf(t.routeSegments??[],n),a=new Set((t.routeSegments??[]).flatMap(e=>{let t=dc(e);return t?[t]:[]})),o=r.filter(e=>!a.has(e));return[...new Set([...o,...i])]}function Jf(e){let t=[];e.layouts?.forEach((n,r)=>{typeof n?.generateStaticParams==`function`&&t.push({chained:!0,generateStaticParams:n.generateStaticParams,parentParamNames:Gf(e.routeSegments,Kf(e.routeSegments,e.layoutTreePositions?.[r]))})}),typeof e.page?.generateStaticParams==`function`&&t.push({chained:!0,generateStaticParams:e.page.generateStaticParams,parentParamNames:Gf(e.routeSegments,Math.max(0,e.routeSegments.length-1))});let n=e.routeSegments.flatMap(e=>{let t=dc(e);return t?[t]:[]});for(let[r,i]of(e.parallelBranches??[]).entries()){if(!i)continue;let a=i.paramNames??n,o=Object.fromEntries(n.flatMap((e,t)=>{let n=a[t];return n&&n!==e?[[e,n]]:[]})),s=(a,s)=>{typeof a?.generateStaticParams==`function`&&t.push({generateStaticParams:a.generateStaticParams,independentChain:r,...Object.keys(o).length>0?{paramAliases:o}:{},...i.patternParts?{paramPatternParts:i.patternParts}:{},...e.routePatternParts?{routePatternParts:e.routePatternParts}:{},parentParamNames:qf(n,i,s)})};s(i.layout,-1),i.configLayouts?.forEach((e,t)=>{s(e,Kf(i.routeSegments??[],i.configLayoutTreePositions?.[t]))}),s(i.page,Math.max(0,(i.routeSegments?.length??0)-1))}return t}function Yf(e,t,n=!1){let r=Object.keys(e),i=(e,t)=>e===encodeURIComponent(t);return t.some(t=>r.every(r=>{let a=e[r],o=t[r];return Object.hasOwn(t,r)?Array.isArray(a)?Array.isArray(o)&&a.length===o.length&&a.every((e,t)=>typeof o[t]==`string`?i(e,o[t]):e===o[t]):typeof o==`string`?i(a,o):typeof o==`number`||typeof o==`boolean`?String(a)===String(o):JSON.stringify(a)===JSON.stringify(o):n}))}function Xf(e,t){if(!t.paramAliases)return[...e];let n=new Map(Object.entries(t.paramAliases).map(([e,t])=>[t,e]));return e.map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[n.get(e)??e,t])))}async function Zf(e,t,n){let r=(t??[]).map(e=>({params:e,branchParams:{}})),i=r.length>0,a=!1;for(let t of e){let e=i?r:[{params:{},branchParams:{}}],o=[];for(let r of e){let e=Wf({...n,...r.params},t),s=Wf(r.branchParams,t),c=await h(()=>t.generateStaticParams({params:{...Uf(e,t.parentParamNames),...s}}));if(!Array.isArray(c)){i&&o.push(r);continue}a=!0;let l=Xf(c,t);if(l.length===0){i&&o.push(r);continue}for(let e of l)o.push({params:{...r.params,...e},branchParams:{...r.branchParams,...e}})}r=o,i=r.length>0}return{staticParams:r.map(e=>e.params),validated:a}}async function Qf(e){let t=[];for(let n of e){let e=t.length>0,r=e?t:[{}],i=[];for(let t of r){let r=await h(()=>n.generateStaticParams({params:t}));if(Array.isArray(r)&&r.length>0)for(let e of r)typeof e==`object`&&e&&!Array.isArray(e)&&i.push({...t,...e});else e&&i.push(t)}t=i}return t}function $f(e){return(Array.isArray(e)?e:[e]).flatMap(e=>typeof e==`function`?[{generateStaticParams:e,parentParamNames:[]}]:typeof e?.generateStaticParams==`function`?[e]:[])}async function ep(e){if(!e.enforceStaticParamsOnly||!e.isDynamicRoute)return null;let t=$f(e.generateStaticParams);if(t.length===0)return Er();let n=t.filter(e=>e.chained),r=null;n.length>0&&(r=await Qf(n));let i=new Map;for(let e of t.filter(e=>!e.chained)){let t=i.get(e.independentChain??e)??[];t.push(e),i.set(e.independentChain??e,t)}let a=!1;for(let t of i.values()){let n=await Zf(t,r,e.params);if(n.validated&&(a=!0,!Yf(e.params,n.staticParams,!0)))return Er()}return r&&!a&&!Yf(e.params,r)?Er():null}async function tp(e){if(!e.isRscRequest)return{kind:`none`};let t=e.findIntercept(e.cleanPathname);if(!t)return{kind:`none`};let n=t.__loadState;if(n?.page!=null&&(t.page=n.page),t.__pageLoader&&t.page==null){let e=n?.pageLoading??t.__pageLoader().then(e=>(t.page=e,n&&(n.page=e,n.pageLoading=null),e)).catch(e=>{throw n&&(n.pageLoading=null),e});n&&(n.pageLoading=e),await e}if(n?.notFound!=null&&(t.notFound=n.notFound),t.__loadNotFound&&t.notFound==null){let e=n?.notFoundLoading??t.__loadNotFound().then(e=>(t.notFound=e,n&&(n.notFound=e,n.notFoundLoading=null),e)).catch(e=>{throw n&&(n.notFoundLoading=null),e});n&&(n.notFoundLoading=e),await e}(t.__loadInterceptLayouts||t.__loadInterceptLoadings)&&await Vf(t);let r=await e.getSourceRoute(t.sourceRouteIndex);return r?r===e.currentRoute?{kind:`current-route`,intercept:t}:{kind:`source-route`,intercept:t,sourceRoute:r}:{kind:`none`}}async function np(e){let t=await tp({cleanPathname:e.cleanPathname,currentRoute:e.currentRoute,findIntercept:e.findIntercept,getRouteParamNames:e.getRouteParamNames,getSourceRoute:e.getSourceRoute,isRscRequest:e.isRscRequest,toInterceptOpts:e.toInterceptOpts});if(t.kind===`source-route`){let n=t.intercept.sourceMatchedParams??t.intercept.matchedParams;return{interceptOpts:e.toInterceptOpts(t.intercept),navigationParams:{...n,...t.intercept.matchedParams},params:Uf(n,e.getRouteParamNames(t.sourceRoute)),route:t.sourceRoute}}return{interceptOpts:t.kind===`current-route`?e.toInterceptOpts(t.intercept):void 0,navigationParams:e.currentParams,params:e.currentParams,route:e.currentRoute}}async function rp(e){let t=await tp({cleanPathname:e.cleanPathname,currentRoute:e.currentRoute,findIntercept:e.findIntercept,getRouteParamNames:e.getRouteParamNames,getSourceRoute:e.getSourceRoute,isRscRequest:e.isRscRequest,toInterceptOpts:e.toInterceptOpts});if(t.kind===`source-route`){let n=t.sourceRoute,r=e.toInterceptOpts(t.intercept),i=t.intercept.sourceMatchedParams??t.intercept.matchedParams,a={...i,...t.intercept.matchedParams},o=e.resolveSearchParams?await e.resolveSearchParams(n,e.searchParams):e.searchParams,s=Uf(i,e.getRouteParamNames(t.sourceRoute));e.setNavigationContext({params:e.resolveNavigationParams(n,a,e.cleanPathname,r),pathname:e.cleanPathname,searchParams:o});let c=await e.buildPageElement(n,s,r,o,e.layoutParamAccess);return{interceptOpts:void 0,response:await e.renderInterceptResponse(n,c)}}return{interceptOpts:t.kind===`current-route`?e.toInterceptOpts(t.intercept):void 0,response:null}}async function ip(e){try{return{element:await e.buildPageElement(),response:null}}catch(t){let n=e.resolveSpecialError(t),r=(n?await e.probePageSpecialError?.():null)??n;if(r)return{element:null,response:await e.renderSpecialError(r)};let i=await e.renderErrorBoundaryPage(t);if(i)return{element:null,response:i};throw t}}async function ap(e){let t=e.getReader(),n=new TextDecoder,r=[];try{for(;;){let{done:e,value:i}=await t.read();if(e)break;r.push(n.decode(i,{stream:!0}))}return r.push(n.decode()),r.join(``)}finally{t.releaseLock()}}function op(e,t,n={}){if(ae(e,{cacheControl:e.get(`Cache-Control`)??``,pendingDynamicCheck:!0,tags:t}),n.omitCacheState===!0){e.delete(pt),e.delete(_t);return}je(e,`MISS`)}function sp(e){let t=e.revalidateSeconds,n=e.expireSeconds,r=e.requestCacheLife;return r?.revalidate!==void 0&&(t=t===null?r.revalidate:Math.min(t,r.revalidate)),r?.expire!==void 0&&(n=r.expire),t===null||Number.isNaN(t)||t<=0?null:{expireSeconds:n,revalidateSeconds:t}}function cp(e,t){if(!e.body)return e;let[n,r]=e.body.tee(),i=t.isrHtmlKey(t.cleanPathname),a=t.isrRscKey(t.cleanPathname,null,void 0,t.interceptionContext),o=new Headers(e.headers);t.preserveClientResponseHeaders!==!0&&op(o,t.getPageTags(),{omitCacheState:t.omitPendingDynamicCacheState===!0});let s=(async()=>{try{let n=await ap(r);if(t.capturedDynamicUsageBeforeContextCleanup?.()===!0||t.consumeDynamicUsage()){t.isrDebug?.(`HTML cache write skipped (dynamic usage during render)`,i);return}let o=sp({expireSeconds:t.expireSeconds,requestCacheLife:t.getRequestCacheLife?.(),revalidateSeconds:t.revalidateSeconds});if(!o){t.isrDebug?.(`HTML cache write skipped (no cache policy)`,i);return}let s=t.getPageTags(),c=t.consumeRenderObservationState?.()??wf(),l=t.createHtmlRenderObservation?.({cacheTags:s,state:c}),u=t.createRscRenderObservation?.({cacheTags:s,state:c}),d=e.headers.get(`link`),f=[t.isrSet(i,gi(n,void 0,200,l,d?{link:d}:void 0),o.revalidateSeconds,s,o.expireSeconds)];t.capturedRscDataPromise&&f.push(t.capturedRscDataPromise.then(e=>t.isrSet(a,gi(``,e,200,u),o.revalidateSeconds,s,o.expireSeconds))),await Promise.all(f),t.isrDebug?.(`HTML cache written`,i)}catch(e){console.error(`[vinext] ISR cache write error:`,e)}})();return t.waitUntil?.(s),new Response(n,{status:e.status,statusText:e.statusText,headers:o})}function lp(e,t){if(!up(t)||t.preserveClientResponseHeaders===!0)return e;let n=new Headers(e.headers);return op(n,t.getPageTags(),{omitCacheState:t.omitPendingDynamicCacheState===!0}),new Response(e.body,{status:e.status,statusText:e.statusText,headers:n})}function up(e){let t=e.capturedRscDataPromise;if(!t||e.dynamicUsedDuringBuild||e.mountedSlotsHeader)return!1;let n=e.isrRscKey(e.cleanPathname,null,e.renderMode,e.interceptionContext),r=(async()=>{try{let r=await t;if(e.consumeDynamicUsage()){e.isrDebug?.(`RSC cache write skipped (dynamic usage during render)`,n);return}let i=sp({expireSeconds:e.expireSeconds,requestCacheLife:e.getRequestCacheLife?.(),revalidateSeconds:e.revalidateSeconds});if(!i){e.isrDebug?.(`RSC cache write skipped (no cache policy)`,n);return}let a=e.getPageTags(),o=e.consumeRenderObservationState?.()??wf(),s=e.createRscRenderObservation?.({cacheTags:a,state:o});await e.isrSet(n,gi(``,r,200,s),i.revalidateSeconds,a,i.expireSeconds),e.isrDebug?.(`RSC cache written`,n)}catch(e){console.error(`[vinext] ISR RSC cache write error:`,e)}})();return e.waitUntil?.(r),!0}function dp(e){return`static-layout:${Io(e)}`}function fp(e){return ue.map(t=>[t,e.artifactCompatibility[t]])}function pp(e){return Io(JSON.stringify({artifactCompatibilityPairs:fp(e),layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}function mp(e){return{...e.artifactCompatibility,graphVersion:`static-layout-graph:${Io(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId}))}`,renderEpoch:`static-layout:${Io(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}`}}function hp(){return{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`}}function gp(e){return{code:`SKIP_STATIC_LAYOUT_VERIFIED`,enabled:!0,mode:`skipStaticLayout`,skippedEntryIds:[...e]}}function _p(e,t,n={}){return{kind:`rejected`,rejection:{code:t,entryId:e.id,fields:n},skipDisposition:hp()}}function vp(e,t){let n=[];for(let r of ue)e[r]!==t[r]&&n.push(r);return n}function yp(e,t){return vp(e,t).length===0}function bp(e){throw Error(`Unhandled skip/cache proof state: ${String(e)}`)}function xp(e){return{kind:`renderAndSend`,entryRejections:e.entryRejections??[],...e.manifestRejection?{manifestRejection:e.manifestRejection}:{},skipDisposition:hp(),skipIneligibleEntryIds:e.skipIneligibleEntryIds??[],skippedEntryIds:[]}}function Sp(e,t){return{code:`SKIP_VERIFICATION_BUDGET_EXCEEDED`,fields:{totalWireEntries:e,maxWireEntriesToVerify:t}}}function Cp(e,t){switch(t.kind){case`valid`:return null;case`unknown`:return _p(e,`SKIP_CACHE_INVALIDATION_UNKNOWN`);case`invalidated`:return _p(e,`SKIP_CACHE_INVALIDATED`,{invalidationEpoch:t.invalidationEpoch});default:return bp(t)}}function wp(e){let{cacheDecision:t,entry:n}=e;if(t===null)return _p(n,`SKIP_CACHE_PROOF_MISSING`);if(t.kind===`fallback`)return _p(n,`SKIP_CACHE_PROOF_REJECTED`,{cacheProofCode:t.fallback.code,cacheProofMode:t.fallback.mode,cacheProofScope:t.fallback.scope});let{proof:r}=t;if(n.kind!==`layout`||r.reuseClass!==`static-layout`)return _p(n,`SKIP_CACHE_REUSE_CLASS_UNSUPPORTED`,{entryKind:n.kind,reuseClass:r.reuseClass});if(n.id!==r.candidateOutput.layoutId)return _p(n,`SKIP_CACHE_ENTRY_ID_MISMATCH`,{cacheEntryId:r.candidateOutput.layoutId,manifestEntryId:n.id});let i=vp(e.artifact.compatibility,r.candidateArtifactCompatibility);if(i.length>0)return _p(n,`SKIP_CACHE_ARTIFACT_PROOF_MISMATCH`,{mismatchedFields:i});let a=Oe(e.artifact.compatibility,n.artifactCompatibility,{compatibilityMap:e.compatibilityMap});if(a.kind===`unknown`)return _p(n,`SKIP_CACHE_ARTIFACT_COMPATIBILITY_UNKNOWN`,{compatibilityFallback:a.fallback,reason:a.reason});if(a.kind===`incompatible`)return _p(n,`SKIP_CACHE_ARTIFACT_COMPATIBILITY_INCOMPATIBLE`,{compatibilityFallback:a.fallback,reason:a.reason});if(n.variantCacheKey!==r.variant.cacheKey)return _p(n,`SKIP_CACHE_VARIANT_MISMATCH`,{cacheVariantCacheKeyHash:Io(r.variant.cacheKey),entryVariantCacheKeyHash:Io(n.variantCacheKey)});if(e.artifact.payloadHash===null)return _p(n,`SKIP_CACHE_PAYLOAD_HASH_MISSING`);if(n.payloadHash!==e.artifact.payloadHash)return _p(n,`SKIP_CACHE_PAYLOAD_HASH_MISMATCH`,{cachePayloadHash:e.artifact.payloadHash,entryPayloadHash:n.payloadHash});let o=Cp(n,e.artifact.invalidation);if(o)return o;let s=yp(e.artifact.compatibility,n.artifactCompatibility)?gp([n.id]):hp();return{kind:`verified`,code:`SKIP_CACHE_CROSS_CHECK_PASSED`,entryId:n.id,fields:{entryKind:n.kind,reuseClass:r.reuseClass,variantCacheKeyHash:Io(r.variant.cacheKey)},skipDisposition:s}}function Tp(e){let{manifest:t}=e;if(t.kind===`absent`)return xp({});if(t.kind===`rejected`)return xp({manifestRejection:t.rejection});let n=e.maxWireEntriesToVerify??8;if(!Number.isSafeInteger(n)||n<0)throw RangeError(`maxWireEntriesToVerify must be a non-negative safe integer`);let r=t.manifest.entries.length+t.entryRejections.length;if(r>n)return xp({entryRejections:t.entryRejections,manifestRejection:Sp(r,n)});let i=[],a=[],o=[...t.entryRejections];for(let n of t.manifest.entries){let t=e.verifyEntry(n);if(t.kind===`rejected`){o.push(t.rejection);continue}if(t.entryId!==n.id){o.push({code:`SKIP_CACHE_ENTRY_ID_MISMATCH`,entryId:n.id,fields:{verifierEntryId:t.entryId,manifestEntryId:n.id}});continue}t.skipDisposition.enabled?i.push(n.id):a.push(n.id)}return i.length===0?xp({entryRejections:o,skipIneligibleEntryIds:a}):{kind:`skip`,entryRejections:o,skipDisposition:gp(i),skipIneligibleEntryIds:a,skippedEntryIds:i}}function Ep(e){if(!e.isProduction)return{compileEnd:e.compileEnd,handlerStart:e.handlerStart,renderEnd:e.renderEnd,responseKind:e.responseKind}}function Dp(e){return e.isEdgeRuntime&&e.revalidateSeconds===null?(e.peekRequestCacheLife?.()??e.getRequestCacheLife())?.revalidate===void 0?null:{revalidate:0}:e.peekRequestCacheLife?.()??e.getRequestCacheLife()}function Op(){return 0}function kp(e){let t=e.getRequestCacheLife();return e.isEdgeRuntime&&e.revalidateSeconds===null?null:t}function Ap(e){let t=e.revalidateSeconds,n=e.expireSeconds,r=e.requestCacheLife;return r?.revalidate!==void 0&&(t=t===null?r.revalidate:Math.min(t,r.revalidate)),r?.expire!==void 0&&(n=r.expire),{expireSeconds:n,revalidateSeconds:t}}function jp(e){return e.revalidateSeconds===null&&(e.isForceStatic||e.isDynamicError)?1/0:e.revalidateSeconds}function Mp(e){let t=e[W.keys.rootLayout];return typeof t==`string`?t:null}function Np(e,t){if(!x(e))return;let n=Mp(e);return Me({graphVersion:we({routePattern:t,rootBoundaryId:n}),deploymentVersion:`7c810a6d-59fd-41d6-b465-cf61efaea04f`,rootBoundaryId:n})}function Pp(e,t){let n=e[t];return typeof n==`string`?n:null}function Fp(e){let t=Pp(e.element,W.keys.route);return t===null?null:{kind:`layout`,layoutId:e.layoutId,rootBoundaryId:e.artifactCompatibility.rootBoundaryId,routeId:t}}function Ip(){return{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`}}function Lp(e,t,n={}){return{kind:`rejected`,rejection:{code:t,entryId:e.id,fields:n},skipDisposition:Ip()}}function Rp(e,t){let n=t?.getLayoutObservation(e.id);if(!n)return Lp(e,`SKIP_LAYOUT_PARAMS_OBSERVATION_INCOMPLETE`);let r=Mf(n);return r?Lp(e,r.code,r.fields):null}function zp(e){if(!e.isRscRequest||e.clientReuseManifest===void 0)return;let t=e.clientReuseManifest;if(t.kind!==`parsed`||t.manifest.entries.length===0)return;if(!x(e.element)||e.artifactCompatibility===void 0)return{code:`SKIP_MODEL_DISABLED`,enabled:!1,mode:`renderAndSend`};let n=e.element,r=e.artifactCompatibility,i=new Set(Object.entries(e.layoutFlags).filter(([,e])=>e===`s`).map(([e])=>e));return Tp({manifest:t,verifyEntry(t){if(t.kind!==`layout`||!i.has(t.id)||W.parseElementKey(t.id)?.kind!==`layout`)return wp({artifact:{compatibility:r,invalidation:{kind:`unknown`},payloadHash:null},cacheDecision:null,entry:t});let a=Fp({artifactCompatibility:r,element:n,layoutId:t.id});if(a===null)return wp({artifact:{compatibility:r,invalidation:{kind:`unknown`},payloadHash:null},cacheDecision:null,entry:t});let o=Rp(t,e.layoutParamAccess);if(o)return o;let s=dp(t.id),c={...a,routeId:s},l=Zd({budget:kd,dimensions:[],output:c,routeBudget:{routeId:s,variantCacheKeys:[]}}),u=l.kind===`variant`?mp({artifactCompatibility:r,layoutId:t.id,rootBoundaryId:c.rootBoundaryId,routeId:c.routeId,variantCacheKey:l.variant.cacheKey}):r,d=yf({candidateArtifactCompatibility:u,candidateObservation:lf({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:[],completeness:`complete`,dynamicFetches:[],output:c,pathTags:[e.cleanPathname],requestApis:cf({completeness:`complete`,observed:[]})}),candidateVariant:l,currentArtifactCompatibility:u,currentOutput:a});return wp({artifact:{compatibility:u,invalidation:{kind:`valid`},payloadHash:l.kind===`variant`?pp({artifactCompatibility:u,layoutId:t.id,rootBoundaryId:c.rootBoundaryId,routeId:c.routeId,variantCacheKey:l.variant.cacheKey}):null},cacheDecision:d,entry:t})}}).skipDisposition}function Bp(e){return e?.enabled===!0}function Vp(e,t){let n=e.body;if(!n)return e;let r=!1,i=()=>{if(r)return;r=!0;let e=t();e&&(Bs(e)||console.error(`[vinext] Invalid dynamic usage:`,e))},a=new TransformStream({flush(){i()}}),o=n.pipeThrough(a).getReader(),s=new ReadableStream({pull(e){return o.read().then(({done:t,value:n})=>{t?e.close():e.enqueue(n)},t=>{i(),e.error(t)})},cancel(e){return i(),o.cancel(e)}});return new Response(s,{status:e.status,statusText:e.statusText,headers:e.headers})}async function Hp(e){let t=e.probePageBeforeRender??e.isRscRequest,n=e.isRscRequest||t&&!(e.peekDynamicUsage?.()??!1),r=await _l({hasLoadingBoundary:e.hasLoadingBoundary,probePageBeforeRender:n,skipProbes:e.pprFallbackShellSignal!==void 0,layoutCount:e.layoutCount,probeLayoutAt(t){return e.probeLayoutAt(t)},probePage(){return e.probePage()},renderLayoutSpecialError(t,n){return e.renderLayoutSpecialError(t,n)},renderPageSpecialError(t){return e.renderPageSpecialError(t)},resolveSpecialError:Es,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)},classification:e.classification});if(r.response)return r.response;let i=r.layoutFlags,a=Np(e.element,e.routePattern),o=a?.rootBoundaryId??null,s=a?.renderEpoch??null,c=Of({element:e.element,mountedSlotsHeader:e.mountedSlotsHeader,renderEpoch:s,rootBoundaryId:o,routePattern:e.routePattern}),l=kf({element:e.element,renderEpoch:s,rootBoundaryId:o,routePattern:e.routePattern}),u=Df({boundaryOutcome:{kind:`unknown`},cacheability:`unknown`,cacheTags:e.getPageTags(),cleanPathname:e.cleanPathname,completeness:`partial`,output:c,params:e.navigationParams,state:e.peekRenderObservationState?.()??wf()}),d=e.skipDisposition??zp({artifactCompatibility:a,cleanPathname:e.cleanPathname,clientReuseManifest:e.clientReuseManifest,element:e.element,isRscRequest:e.isRscRequest,layoutFlags:i,layoutParamAccess:e.layoutParamAccess}),f=e.isRscRequest&&Bp(d),p=e.dynamicStaleTimeSeconds??(e.isForceDynamic?Op():void 0),m=W.encodeOutgoingPayload({element:e.element,layoutFlags:i,...p!==void 0&&e.isPrerender!==!0&&!e.isForceStatic?{dynamicStaleTimeSeconds:p}:{},...a?{artifactCompatibility:a}:{},renderObservation:u,skipDisposition:e.isRscRequest?d:void 0}),g=e.isProduction?void 0:performance.now(),_=cd(e.createRscOnErrorHandler(e.cleanPathname,e.routePattern)),v=await h(async()=>{if(e.pprFallbackShellSignal&&e.prerenderToReadableStream){let t=e.pprFallbackShellReactSignal??e.pprFallbackShellSignal,n=e.prerenderToReadableStream(m,{onError:_.onRenderError,signal:t});return e.abortPprFallbackShell&&setTimeout(e.abortPprFallbackShell,0),(await n).prelude}return e.renderToReadableStream(m,{onError:_.onRenderError})}),y=null;e.pprFallbackShellSignal&&(y=new Uint8Array(await Fs(v)));let b=e.revalidateSeconds,x=e.expireSeconds,S=e.isPrerender===!0&&e.isSpeculativePrerender!==!0,C=e.isPrerender===!0,w=e.isProgressiveActionRender!==!0&&(e.isProduction||e.isPrerender===!0)&&(b===null||b>0&&b!==1/0)&&!e.isDraftMode&&!e.isForceDynamic&&!f,T=e=>new ReadableStream({start(t){y&&t.enqueue(y),e&&t.close()}}),E=y?{ssrStream:T(!1),...w?{sideStream:T(!0)}:{}}:Ls(v,w),D=E.ssrStream,O={value:null};if(E.sideStream&&e.isRscRequest&&(O.value=Fs(E.sideStream)),e.isRscRequest){let t=null;S&&await Up(O.value),C&&(t=Dp(e),{expireSeconds:x,revalidateSeconds:b}=Ap({expireSeconds:x,requestCacheLife:t,revalidateSeconds:b}));let n=e.consumeDynamicUsage(),r=f?{cacheControl:De}:ta({dynamicUsedDuringBuild:n,isDraftMode:e.isDraftMode,isDynamicError:e.isDynamicError,isForceDynamic:e.isForceDynamic,isForceStatic:e.isForceStatic,isProduction:e.isProduction,expireSeconds:x,revalidateSeconds:b});f&&e.isrDebug?.(`RSC cache write skipped (skip transport payload)`,e.cleanPathname);let i=p!==void 0&&e.isPrerender!==!0&&!e.isForceStatic&&(n||e.isForceDynamic||!w),a=ia(D,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,dynamicStaleTimeSeconds:i?p:void 0,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext,mountedSlotsHeader:e.mountedSlotsHeader,params:e.navigationParams,policy:r,renderedPathAndSearch:e.renderedPathAndSearch,requestCacheLife:t,timing:Ep({compileEnd:g,handlerStart:e.handlerStart,isProduction:e.isProduction,responseKind:`rsc`})});return lp(!e.isProduction&&a.body&&e.consumeInvalidDynamicUsageError?Vp(a,e.consumeInvalidDynamicUsageError):a,{capturedRscDataPromise:e.isProduction&&w?O.value:null,cleanPathname:e.cleanPathname,consumeDynamicUsage:e.consumeDynamicUsage,consumeRenderObservationState:e.consumeRenderObservationState,createRscRenderObservation(t){return Df({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:t.cacheTags,cleanPathname:e.cleanPathname,completeness:`complete`,output:c,params:e.navigationParams,state:t.state})},dynamicUsedDuringBuild:n,getPageTags(){return e.getPageTags()},getRequestCacheLife(){return kp(e)},isrDebug:e.isrDebug,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,omitPendingDynamicCacheState:e.omitPendingDynamicCacheState,renderMode:e.renderMode,preserveClientResponseHeaders:r.cacheState!==`MISS`,expireSeconds:x,revalidateSeconds:jp({isDynamicError:e.isDynamicError,isForceStatic:e.isForceStatic,revalidateSeconds:b}),waitUntil(t){e.waitUntil?.(t)}})}let k=id({getLinks:e.getFontLinks,getPreloads:e.getFontPreloads,getStyles:e.getFontStyles}),A=Rs(k.preloads),j=!1,ee,M=await sd({onShellRendered(){e.isProduction||(ee=performance.now())},renderErrorBoundaryResponse(t){let n=_.getCapturedError();return e.renderErrorBoundaryResponse(n??t,n===null?`ssr`:`rsc`)},async renderHtmlStream(){let t=await e.loadSsrHandler();return ad({capturedRscDataRef:O,getInitialNavigationCacheMetadata:()=>{let t;if(e.isForceStatic)t=`static`;else if(e.isForceDynamic||j||se())t=`dynamic`;else{let n=e.peekRenderObservationState?.();t=n&&(n.dynamicFetches.length>0||n.requestApis.length>0)?`dynamic`:`static`}return{kind:t,...t===`dynamic`&&p!==void 0&&e.isPrerender!==!0&&!w?{dynamicStaleTimeSeconds:p}:{}}},fontData:k,hasCustomGlobalError:e.hasCustomGlobalError,navigationContext:e.getNavigationContext(),basePath:e.basePath,clientTraceMetadata:e.clientTraceMetadata,reactMaxHeadersLength:e.reactMaxHeadersLength,rootParams:e.rootParams,pprFallbackShellSignal:e.pprFallbackShellSignal,formState:e.formState??null,rscStream:D,scriptNonce:e.scriptNonce,sideStream:E.sideStream,ssrHandler:t,fallbackToErrorDocumentOnShellError:e.isPrerender===!0&&e.isSpeculativePrerender===!0?!1:void 0,waitForAllReady:S})},renderSpecialErrorResponse(t){return e.renderPageSpecialError(t)},resolveSpecialError:Es});if(M.response)return M.response;let N=M.htmlStream;if(!N)throw Error(`[vinext] Expected an HTML stream when no fallback response was returned`);let te=rd(M.linkHeader,A,e.reactMaxHeadersLength);if(e.isPrerender===!0&&await M.metadataReady,e.hasLoadingBoundary||!n){let t=_.getCapturedSpecialError();if(t){let n=Es(t);if(n)return N.cancel().catch(()=>{}),e.renderPageSpecialError(n)}}let P=null,F=e.consumeDynamicUsage();j=F;let ne=e.isSpeculativePrerender===!0&&C?()=>F||(e.peekDynamicUsage?.()??se())?(F=!0,j=!0,!0):!1:void 0;(S||C)&&await Up(M.capturedRscData,ne),C&&(P=Dp(e),{expireSeconds:x,revalidateSeconds:b}=Ap({expireSeconds:x,requestCacheLife:P,revalidateSeconds:b})),F||=e.consumeDynamicUsage(),j=F;let re=e.getDraftModeCookieHeader(),ie=F,I=$u(N,()=>{ie||=e.consumeDynamicUsage(),j=ie,e.clearRequestContext()}),L=na({dynamicUsedDuringRender:F,isProgressiveActionRender:e.isProgressiveActionRender===!0,hasScriptNonce:!!e.scriptNonce,isDraftMode:e.isDraftMode,isDynamicError:e.isDynamicError,isForceDynamic:e.isForceDynamic,isForceStatic:e.isForceStatic,isProduction:e.isProduction,expireSeconds:x,revalidateSeconds:b}),oe=Ep({compileEnd:g,handlerStart:e.handlerStart,isProduction:e.isProduction,renderEnd:ee,responseKind:`html`});if(M.shellErrorRecovered){let t=aa(I,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,draftCookie:re,linkHeader:te,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:{headers:e.middlewareContext.headers,status:500},policy:{cacheControl:H},requestCacheLife:P,timing:oe});return ae(t.headers,{cacheControl:H}),t}let R=e.isProduction&&w&&!e.isEdgeRuntime&&b===null&&!e.isDynamicError&&!e.isForceStatic&&!e.scriptNonce&&e.isProgressiveActionRender!==!0&&!F;if(L.shouldWriteToCache||R){let t=aa(I,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,draftCookie:re,linkHeader:te,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext,policy:L,requestCacheLife:P,timing:oe});return e.isPrerender===!0?t:cp(t,{capturedDynamicUsageBeforeContextCleanup(){return ie},capturedRscDataPromise:O.value,cleanPathname:e.cleanPathname,consumeDynamicUsage:e.consumeDynamicUsage,consumeRenderObservationState:e.consumeRenderObservationState,createHtmlRenderObservation(t){return Df({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:t.cacheTags,cleanPathname:e.cleanPathname,completeness:`complete`,output:l,params:e.navigationParams,state:t.state})},createRscRenderObservation(t){return Df({boundaryOutcome:{kind:`success`},cacheability:`public`,cacheTags:t.cacheTags,cleanPathname:e.cleanPathname,completeness:`complete`,output:c,params:e.navigationParams,state:t.state})},getPageTags(){return e.getPageTags()},getRequestCacheLife(){return kp(e)},isrDebug:e.isrDebug,isrHtmlKey:e.isrHtmlKey,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,omitPendingDynamicCacheState:e.omitPendingDynamicCacheState,preserveClientResponseHeaders:!L.shouldWriteToCache,expireSeconds:x,revalidateSeconds:jp({isDynamicError:e.isDynamicError,isForceStatic:e.isForceStatic,revalidateSeconds:b}),waitUntil(t){e.waitUntil?.(t)}})}return aa(I,{cacheTags:e.isPrerender===!0?e.getPageTags():void 0,draftCookie:re,linkHeader:te,isEdgeRuntime:e.isEdgeRuntime,middlewareContext:e.middlewareContext,policy:L,requestCacheLife:P,timing:oe})}async function Up(e,t){if(!e)return;if(!t){try{await e}catch{}return}let n=!1,r=e.catch(()=>{}).then(()=>{n=!0});try{for(;!n&&!t();)await Promise.race([r,new Promise(e=>setTimeout(e,0))])}finally{}}function Wp(e){let t=[];for(let[n,r]of(e.loadings??[]).entries()){if(!r?.default)continue;let i=e.loadingTreePositions?.[n];i!==void 0&&t.push(i)}return t.length===0&&e.loading?.default&&t.push(e.routeSegments.length),t}function Gp(e,t){let n=t.reduce((e,t)=>e===null||t<e?t:e,null);if(n===null)return e.layouts.length;let r=(e.layoutTreePositions??[]).findIndex(e=>e>n);return r===-1?e.layouts.length:r}function Kp(e,t){return t===403?e.forbidden??null:t===401?e.unauthorized??null:t===404?e.notFound??null:null}function qp(e){if(!e)return null;switch(e.dynamic){case`force-dynamic`:return{kind:`dynamic`,reason:{layer:`segment-config`,key:`dynamic`,value:`force-dynamic`}};case`force-static`:case`error`:return{kind:`static`,reason:{layer:`segment-config`,key:`dynamic`,value:e.dynamic}}}return e.revalidate===!1||e.revalidate===1/0?{kind:`static`,reason:{layer:`segment-config`,key:`revalidate`,value:1/0}}:e.revalidate===0?{kind:`dynamic`,reason:{layer:`segment-config`,key:`revalidate`,value:0}}:null}function Jp(e,t){let n=new Map(e.__buildTimeClassifications??[]),r=t?new Map(e.__buildTimeReasons??[]):null;for(let t=0;t<e.layouts.length;t++){let i=qp(e.layouts[t]);i!==null&&(n.set(t,i.kind),r?.set(t,i.reason))}return{buildTimeClassifications:n.size>0?n:null,buildTimeReasons:r&&r.size>0?r:null}}function Yp(e,t){return Jp(e,t!==void 0)}function Xp(e){return e.isProduction&&!e.isProgressiveActionRender&&!e.isDraftMode&&!e.isForceDynamic&&(e.isRscRequest||!e.scriptNonce)&&(e.revalidateSeconds===null||e.revalidateSeconds>0)}function Zp(e){return e.revalidateSeconds===null&&(e.isForceStatic||e.isDynamicError)?1/0:e.revalidateSeconds??0}function Qp(e){return e!=null&&e.size>0}async function $p(e,t){let{createStaticGenerationHeadersContext:n}=await import(`./_next/static/app-static-generation-BX8cz43B.js`),r=Je({headersContext:n({draftModeEnabled:!1,draftModeSecret:e.draftModeSecret,dynamicConfig:e.dynamicConfig,routeKind:`page`,routePattern:e.routePattern}),currentFetchCacheMode:e.currentFetchCacheMode??null,currentForceDynamicFetchDefault:e.dynamicConfig===`force-dynamic`,executionContext:bt(),unstableCacheRevalidation:`foreground`}),i=qe(r,async()=>(A(),c(process.env.VINEXT_PRERENDER===`1`),T(Fa(e.cleanPathname,[],e.routeSegments)),e.setNavigationContext({pathname:e.displayPathname??e.cleanPathname,searchParams:new URLSearchParams,params:e.params}),await h(t)));try{return await i}finally{await Xe(r)}}function em(e,t){return{interceptionContext:e,interceptLayouts:t.interceptLayouts,interceptLayoutSegments:t.interceptLayoutSegments,interceptBranchSegments:t.interceptBranchSegments,interceptLoadings:t.interceptLoadings,interceptLoadingTreePositions:t.interceptLoadingTreePositions,interceptNotFoundBranchSegments:t.interceptNotFoundBranchSegments,interceptNotFound:t.notFound,interceptNotFoundTreePosition:t.notFoundTreePosition,interceptPage:t.page,interceptParams:t.matchedParams,interceptSlotId:t.slotId??null,interceptSlotKey:t.slotKey,interceptSourceMatchedUrl:e,interceptSourcePageSegments:t.sourcePageSegments??null}}async function tm(e){let t=()=>h(()=>nm(e));return!e.pprFallbackShell||!e.pprRuntime?await t():await e.pprRuntime.run(e.pprFallbackShell,t)}async function nm(e){let t=e.route,n=e.dynamicConfig,r=e.revalidateSeconds,i=n===`force-static`,a=n===`error`,o=n===`force-dynamic`,s=process.env.VINEXT_PRERENDER===`1`,c=nc(e.request.headers.get(`user-agent`)??``,e.htmlLimitedBots),l=(!s||e.pprFallbackShell!==void 0)&&c,u=e.renderMode===k,m=I(e.request,e.draftModeSecret),h=me(),g=i||u,_=!g&&Qp(e.searchParams),v=g?new URLSearchParams:e.searchParams,y=Pf(),b=Wp(t),x=b.length>0;if(T(Fa(e.cleanPathname,[],t.routeSegments)),p(e.fetchCache??null),ve(o),e.hasPageModule&&!e.hasPageDefaultExport)return e.clearRequestContext(),new Response(`Page has no default export`,{status:500});let S=Rf({dynamicConfig:n,hasGenerateStaticParams:e.hasGenerateStaticParams,isDynamicRoute:t.isDynamic,middlewareHeaders:e.middlewareContext.headers,request:e.request,revalidateSeconds:r});if(S)return e.clearRequestContext(),S;if(i||a){let{createStaticGenerationHeadersContext:r}=await import(`./_next/static/app-static-generation-BX8cz43B.js`);M(r({draftModeEnabled:m,draftModeSecret:e.draftModeSecret,dynamicConfig:n,routeKind:`page`,routePattern:t.pattern}));let i=Zu(t,e.params,e.cleanPathname,null);e.setNavigationContext({pathname:e.displayPathname??e.cleanPathname,searchParams:new URLSearchParams,params:i})}if(Xp({isDraftMode:m,isForceDynamic:o,isProgressiveActionRender:e.isProgressiveActionRender===!0,isProduction:e.isProduction,isRscRequest:e.isRscRequest,revalidateSeconds:r,scriptNonce:e.scriptNonce})){let{readAppPageCacheResponse:o}=await import(`./_next/static/app-page-cache-CQaSjBaF.js`),s=await o({cleanPathname:e.cleanPathname,clearRequestContext:e.clearRequestContext,hasRequestSearchParams:_,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,isrDebug:e.isrDebug,isrGet:e.isrGet,isrHtmlKey:e.isrHtmlKey,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,middlewareHeaders:e.middlewareContext.headers,middlewareStatus:e.middlewareContext.status,mountedSlotsHeader:e.mountedSlotsHeader,renderMode:e.renderMode,expireSeconds:e.expireSeconds,revalidateSeconds:Zp({isDynamicError:a,isForceStatic:i,revalidateSeconds:r}),renderFreshPageForCache:async()=>{let r=await np({cleanPathname:e.cleanPathname,currentParams:e.params,currentRoute:t,findIntercept:e.findIntercept,getRouteParamNames(e){return e.params},getSourceRoute(t){return e.getSourceRoute(t)},isRscRequest:e.isRscRequest,toInterceptOpts(t){return em(e.interceptionContext,t)}});r.navigationParams=Zu(r.route,r.navigationParams,e.cleanPathname,r.interceptOpts),await e.ensureRouteLoaded?.(r.route);let i=e.resolveRouteDynamicConfig?.(r.route)??(r.route===t?n:void 0);return $p({cleanPathname:e.cleanPathname,displayPathname:e.displayPathname,currentFetchCacheMode:e.resolveRouteFetchCacheMode?.(r.route)??(r.route===t?e.fetchCache??null:null),draftModeSecret:e.draftModeSecret,dynamicConfig:i,params:r.navigationParams,routePattern:r.route.pattern,routeSegments:r.route.routeSegments,setNavigationContext:e.setNavigationContext},async()=>{let{renderAppPageCacheArtifacts:t}=await import(`./_next/static/app-page-cache-render-Dty3aMiv.js`),n=await e.buildPageElement(r.route,r.params,r.interceptOpts,new URLSearchParams,void 0,{observeMetadataSearchParamsAccess:i!==`force-static`,observePageSearchParamsAccess:i!==`force-static`,serveStreamingMetadata:!1}),a=e.createRscOnErrorHandler(e.cleanPathname,r.route.pattern),o=await t({basePath:e.basePath,captureRscData:!0,cleanPathname:e.cleanPathname,clientTraceMetadata:e.clientTraceMetadata,element:n,getFontLinks:e.getFontLinks,getFontPreloads:e.getFontPreloads,getFontStyles:e.getFontStyles,getNavigationContext:e.getNavigationContext,loadSsrHandler:e.loadSsrHandler,mountedSlotsHeader:e.mountedSlotsHeader,navigationParams:r.navigationParams,onError:a,reactMaxHeadersLength:e.reactMaxHeadersLength,renderToReadableStream:e.renderToReadableStream,rootParams:e.rootParams,route:r.route,waitForAllReady:!0});return e.clearRequestContext(),{html:o.html,htmlRenderObservation:o.htmlRenderObservation,linkHeader:o.linkHeader,rscData:o.rscData,rscRenderObservation:o.rscRenderObservation,tags:o.tags,cacheControl:o.cacheControl}})},scheduleBackgroundRegeneration(n,r){e.scheduleBackgroundRegeneration(n,r,{routerKind:`App Router`,routePath:t.pattern,routeType:`render`})}});if(s)return s}if(e.skipStaticParamsValidation!==!0&&!(e.isProduction&&o)){let n=await ep({enforceStaticParamsOnly:e.dynamicParamsConfig===!1,generateStaticParams:e.generateStaticParams,isDynamicRoute:t.isDynamic,params:e.staticParamsValidationParams??e.params});if(n)return await e.renderHttpAccessFallbackPage(404,{matchedParams:e.params},e.middlewareContext)||(e.clearRequestContext(),n)}let C=e.pprRuntime?await e.pprRuntime.tryServe(e,r,m,i,o):null;if(C)return C;let E,D=!1,O=await rp({async buildPageElement(t,n,r,i,a){let o=D?E:e.resolveRouteDynamicConfig?.(t);if(o===`force-static`||o===`error`){let{createStaticGenerationHeadersContext:n}=await import(`./_next/static/app-static-generation-BX8cz43B.js`);M(n({draftModeEnabled:m,draftModeSecret:e.draftModeSecret,dynamicConfig:o,routeKind:`page`,routePattern:t.pattern}))}else M(h);return p(e.resolveRouteFetchCacheMode?.(t)??null),ve(o===`force-dynamic`),e.buildPageElement(t,n,r,i,a,{observeMetadataSearchParamsAccess:o!==`force-static`,observePageSearchParamsAccess:o!==`force-static`,serveStreamingMetadata:l})},cleanPathname:e.cleanPathname,currentRoute:t,findIntercept(t){return e.findIntercept(t)},getRouteParamNames(e){return e.params},getSourceRoute(t){return e.getSourceRoute(t)},isRscRequest:e.isRscRequest,layoutParamAccess:y,resolveNavigationParams(e,t,n,r){return Zu(e,t,n,r)},renderInterceptResponse(t,n){let r=e.createRscOnErrorHandler(e.cleanPathname,t.pattern),i=e.renderToReadableStream(n,{onError:r}),a=new Headers({"Content-Type":le,Vary:de});return R(a,e.middlewareContext.headers),Ee(a),Se(a),new Response(i,{status:e.middlewareContext.status??200,headers:a})},async resolveSearchParams(t,n){return await e.ensureRouteLoaded?.(t),E=e.resolveRouteDynamicConfig?.(t),D=!0,E===`force-static`?new URLSearchParams:n},searchParams:e.searchParams,setNavigationContext:e.setNavigationContext,toInterceptOpts(t){return em(e.interceptionContext,t)}});if(O.response)return O.response;let A=()=>ip({buildPageElement(){if(e.actionFailed)throw e.actionError;return e.buildPageElement(t,e.params,O.interceptOpts,v,y,{observeMetadataSearchParamsAccess:!i,observePageSearchParamsAccess:!i,serveStreamingMetadata:l})},async probePageSpecialError(){return x?null:Es(await Ps({probePage:()=>e.probePage(v),runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)}}))},renderErrorBoundaryPage(t){return e.renderErrorBoundaryPage(t)},renderSpecialError(t){return im(e,t,c,O.interceptOpts)},resolveSpecialError:Es}),j=e.pprRuntime?.getState()??null;if(j&&process.env.VINEXT_PRERENDER===`1`&&!e.isRscRequest){let n=await A();if(n.response)return n.response;await e.pprRuntime.warm({element:n.element,onError:e.createRscOnErrorHandler(e.cleanPathname,t.pattern),renderToReadableStream:e.renderToReadableStream,state:j}),Ef()}let N=await A();if(N.response)return N.response;let te=Zu(t,e.params,e.cleanPathname,O.interceptOpts);e.setNavigationContext({pathname:e.displayPathname??e.cleanPathname,searchParams:v,params:te});let P=Yp(t,e.debugClassification),F=e.pprRuntime?.getState()??null,ne=F?.abortController.signal,re=F?.reactAbortController.signal,ie=s&&e.request.headers.get(`x-vinext-prerender-speculative`)===`1`;return Hp({basePath:e.basePath,clientTraceMetadata:e.clientTraceMetadata,reactMaxHeadersLength:e.reactMaxHeadersLength,cleanPathname:e.cleanPathname,clearRequestContext:e.clearRequestContext,consumeDynamicUsage:xe,peekDynamicUsage:se,consumeInvalidDynamicUsageError:Pe,consumeRenderObservationState:Tf,createRscOnErrorHandler(t,n){return e.createRscOnErrorHandler(t,n)},element:N.element,clientReuseManifest:e.clientReuseManifest,getDraftModeCookieHeader:Ce,getFontLinks:e.getFontLinks,getFontPreloads:e.getFontPreloads,getFontStyles:e.getFontStyles,getNavigationContext:e.getNavigationContext,getPageTags(){return Fa(e.cleanPathname,d(),t.routeSegments)},getRequestCacheLife(){return ge()},peekRequestCacheLife(){return w()},handlerStart:e.handlerStart,hasLoadingBoundary:x,omitPendingDynamicCacheState:_,formState:e.formState??null,isProgressiveActionRender:e.isProgressiveActionRender===!0,isDynamicError:a,isDraftMode:m,isForceDynamic:o,isForceStatic:i,isEdgeRuntime:e.isEdgeRuntime===!0,isPrerender:s,isSpeculativePrerender:ie,isProduction:e.isProduction,isRscRequest:e.isRscRequest,isrDebug:e.isrDebug,isrHtmlKey:e.isrHtmlKey,isrRscKey:e.isrRscKey,isrSet:e.isrSet,interceptionContext:e.interceptionContext,expireSeconds:e.expireSeconds,layoutCount:Gp(t,b),loadSsrHandler:e.loadSsrHandler,middlewareContext:e.middlewareContext,navigationParams:te,params:e.params,pprFallbackShellSignal:ne,pprFallbackShellReactSignal:re,renderedPathAndSearch:e.renderedPathAndSearch,abortPprFallbackShell:F?()=>{e.pprRuntime.beginFinalRender(F)}:void 0,layoutParamAccess:y,rootParams:e.rootParams,peekRenderObservationState(){return{dynamicFetches:ee(),requestApis:ze()}},probeLayoutAt(t){return e.probeLayoutAt(t,y)},probePage(){return e.probePage(v)},probePageBeforeRender:e.isRscRequest,classification:{getLayoutId(e){let n=t.layoutTreePositions?.[e]??0;return W.encodeLayoutId(Nl([...t.routeSegments],n))},buildTimeClassifications:P.buildTimeClassifications,buildTimeReasons:P.buildTimeReasons,debugClassification:e.debugClassification,isLayoutObservationDynamic(e){return Nf(y.getLayoutObservation(e))},async runWithIsolatedDynamicScope(e){return f(e)}},dynamicStaleTimeSeconds:e.dynamicStaleTimeSeconds,revalidateSeconds:r,mountedSlotsHeader:e.mountedSlotsHeader,renderMode:e.renderMode??`navigation`,renderErrorBoundaryResponse(t,n){return e.renderErrorBoundaryPage(t,n)},renderLayoutSpecialError(t,n){return rm(e,t,n,c)},renderPageSpecialError(t){return im(e,t,c,O.interceptOpts)},renderToReadableStream:e.renderToReadableStream,hasCustomGlobalError:e.hasCustomGlobalError,prerenderToReadableStream:e.prerenderToReadableStream,routePattern:t.pattern,runWithSuppressedHookWarning(t){return e.runWithSuppressedHookWarning(t)},scriptNonce:e.scriptNonce,waitUntil(e){bt()?.waitUntil(e)}})}async function rm(e,t,n,r){return As({basePath:e.basePath,buildRscRedirectFlightStream:t=>xs({renderToReadableStream:e.renderToReadableStream,digest:t.digest}),clearRequestContext:e.clearRequestContext,getAndClearPendingCookies:U,serveStreamingMetadata:r,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareContext:e.middlewareContext,renderFallbackPage(t){let r=Iu({layoutIndex:n,rootForbiddenModule:e.rootForbiddenModule,rootNotFoundModule:e.rootNotFoundModule,rootUnauthorizedModule:e.rootUnauthorizedModule,routeForbiddenModules:e.route.forbiddens,routeNotFoundModules:e.route.notFounds,routeUnauthorizedModules:e.route.unauthorizeds,statusCode:t}),i={layouts:e.route.layouts.slice(0,n),matchedParams:e.params};return r&&(i.boundaryComponent=r.default,i.boundaryModule=r),e.renderHttpAccessFallbackPage(t,i,null)},request:e.request,specialError:t})}async function im(e,t,n,r){return As({basePath:e.basePath,buildRscRedirectFlightStream:t=>xs({renderToReadableStream:e.renderToReadableStream,digest:t.digest}),clearRequestContext:e.clearRequestContext,getAndClearPendingCookies:U,serveStreamingMetadata:n,isEdgeRuntime:e.isEdgeRuntime,isRscRequest:e.isRscRequest,middlewareContext:e.middlewareContext,renderFallbackPage(t){let n=Kp(e.route,t),i=e.route.layouts.length,{module:a,layoutIndex:o}=Lu({layoutIndex:i,rootForbiddenModule:e.rootForbiddenModule,rootNotFoundModule:e.rootNotFoundModule,rootUnauthorizedModule:e.rootUnauthorizedModule,routeForbiddenModules:e.route.forbiddens,routeNotFoundModules:e.route.notFounds,routeUnauthorizedModules:e.route.unauthorizeds,statusCode:t}),s=o!==null&&(n===null||n===a),c={intercept:r,matchedParams:e.params};return s&&o!==null&&(c.layouts=e.route.layouts.slice(0,o+1),a&&(c.boundaryComponent=a.default,c.boundaryModule=a)),e.renderHttpAccessFallbackPage(t,c,null)},request:e.request,specialError:t})}function am(e){return e===`edge`||e===`experimental-edge`}var om=new Set([`auto`,`error`,`force-dynamic`,`force-static`]),sm=new Set([`auto`,`default-cache`,`default-no-store`,`force-cache`,`force-no-store`,`only-cache`,`only-no-store`]);function cm(e){return om.has(e)}function lm(e){return sm.has(e)}function um(e){return e===`edge`||e===`experimental-edge`||e===`nodejs`}function dm(e,t){return t===!1?e===null||e===1/0?1/0:e:typeof t==`number`&&(e===null||t<e)?t:e}function fm(e,t){return typeof t!=`number`||!Number.isInteger(t)||t<0?e:e===void 0?t:Math.min(e,t)}function pm(e){return e.startsWith(`[`)&&e.endsWith(`]`)}function mm(e,t){let n=Math.min(t-1,e.length-1);for(;n>=0;){let t=e[n];if(!t.startsWith(`@`)&&!(t.startsWith(`(`)&&t.endsWith(`)`)))break;--n}return n}function hm(e){return e.parallelBranches?e.parallelBranches.flatMap(e=>e?[e.layout,...e.configLayouts??[],e.page]:[]):e.parallelSegments??[]}function gm(e){let t=hm(e),n=[...e.layouts??[],e.page,...t],r;for(let e of n)e?.dynamicParams===!1?r=!1:e?.dynamicParams===!0&&r!==!1&&(r=!0);if(r!==!1||!e.routeSegments)return r;let i=e.routeSegments,a=-1;for(let e=i.length-1;e>=0;e--)if(pm(i[e])){a=e;break}if(a<0)return r;let o=e.layouts??[],s=e.layoutTreePositions??[],c=!1,l=!1;o.forEach((e,t)=>{mm(i,s[t]??0)===a&&(e?.dynamicParams===!1&&(c=!0),typeof e?.generateStaticParams==`function`&&(l=!0))}),e.page?.dynamicParams===!1&&(c=!0),typeof e.page?.generateStaticParams==`function`&&(l=!0);for(let t of e.parallelBranches??[]){if(!t)continue;let e=i.length-(t.routeSegments?.length??0),n=(e,t)=>{t===a&&(e?.dynamicParams===!1&&(c=!0),typeof e?.generateStaticParams==`function`&&(l=!0))};n(t.layout,e-1),t.configLayouts?.forEach((r,i)=>{n(r,e+(t.configLayoutTreePositions?.[i]??0)-1)}),n(t.page,e+(t.routeSegments?.length??0)-1)}if(!e.parallelBranches)for(let e of t)e?.dynamicParams===!1&&(c=!0),typeof e?.generateStaticParams==`function`&&(l=!0);return c||l?!1:void 0}function _m(e){return e===`default-cache`||e===`force-cache`||e===`only-cache`}function vm(e){return`Route segment config has incompatible fetchCache values including "${e}".`}function ym(e){let t=[...e.layouts??[],e.page],n=hm(e),r={revalidateSeconds:null};r.dynamicParamsConfig=gm(e);let i=!1,a=!1,o=!1,s=!1,c=!1,l=!1;for(let e of t)if(e){if(cm(e.dynamic)&&(e.dynamic===`force-dynamic`&&(l=!0),r.dynamicConfig=l?`force-dynamic`:e.dynamic),um(e.runtime)&&(r.runtime=e.runtime),lm(e.fetchCache)){let t=e.fetchCache;if(c&&(t===`auto`||_m(t))||(t===`force-cache`&&(i=!0),t===`force-no-store`&&(a=!0),t===`only-cache`&&(o=!0),t===`only-no-store`&&(s=!0),i&&a||!i&&!a&&o&&s))throw Error(vm(t));t===`default-no-store`&&(c=!0),i?r.fetchCache=`force-cache`:a?r.fetchCache=`force-no-store`:o?r.fetchCache=`only-cache`:s?r.fetchCache=`only-no-store`:r.fetchCache=t}r.revalidateSeconds=dm(r.revalidateSeconds,e.revalidate)}for(let e of n)if(e){if(e.dynamic===`force-dynamic`?(l=!0,r.dynamicConfig=`force-dynamic`):r.dynamicConfig===void 0&&cm(e.dynamic)&&(r.dynamicConfig=e.dynamic),r.runtime===void 0&&um(e.runtime)&&(r.runtime=e.runtime),lm(e.fetchCache)){let t=e.fetchCache;if(c&&(t===`auto`||_m(t))||(t===`force-cache`&&(i=!0),t===`force-no-store`&&(a=!0),t===`only-cache`&&(o=!0),t===`only-no-store`&&(s=!0),i&&a||!i&&!a&&o&&s))throw Error(vm(t));t===`default-no-store`&&(c=!0),i?r.fetchCache=`force-cache`:a?r.fetchCache=`force-no-store`:o?r.fetchCache=`only-cache`:s?r.fetchCache=`only-no-store`:r.fetchCache===void 0&&(r.fetchCache=t)}r.revalidateSeconds=dm(r.revalidateSeconds,e.revalidate)}for(let t of[e.page,...e.parallelPages??[]])t&&(r.dynamicStaleTimeSeconds=fm(r.dynamicStaleTimeSeconds,t.unstable_dynamicStaleTime));return r.dynamicConfig===`force-dynamic`&&(r.revalidateSeconds=0),r.fetchCache===void 0&&r.dynamicConfig===`error`&&(r.fetchCache=`only-cache`),r}function bm(e){return ym(e).fetchCache??null}function xm(e){return lm(e.fetchCache)?e.fetchCache:null}function Sm(e){return am(e)}var Cm=Symbol.for(`vinext.navigation.fallback`),wm=globalThis,Tm=We(`vinext.navigation.als`),Em=wm[Cm]??={serverContext:null,serverInsertedHTMLCallbacks:[]};function Dm(){return Ue()?Ge():Tm.getStore()??Em}var Om={getServerContext(){return Dm().serverContext},setServerContext(e){Dm().serverContext=e},getInsertedHTMLCallbacks(){return Dm().serverInsertedHTMLCallbacks},clearInsertedHTMLCallbacks(){Dm().serverInsertedHTMLCallbacks=[]}};fn(Om),globalThis[sn]=Om;function km(e){return e.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`).replace(/\n/g,`\\a `).replace(/\r/g,`\\d `)}function Am(e){if(/^--[a-zA-Z0-9_-]+$/.test(e))return e}function jm(e){let t=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`emoji`,`math`,`fangsong`]),n=e.trim();return t.has(n)?n:`'${km(n)}'`}function Mm(e){return Array.isArray(e)?new Set(e).size===1?e[0]:void 0:e}function Nm(e){if(!/[{};]|\/\*|\*\/|<\//i.test(e))return e}function Pm(e){let t=Mm(e);if(!t||t.includes(` `))return;let n=Number(t);return Number.isFinite(n)?n:void 0}function Fm(e){let t=Mm(e);if(!(!t||t.includes(` `)))return Nm(t)}function Im(e){if(e===void 0)return`normal`;let t=Mm(e);if(t&&(t===`normal`||t===`italic`))return t}function Lm(e){let t=e.internalWeight??Pm(e.weight),n=(e.internalStyle?Nm(e.internalStyle):void 0)??(e.google?Im(e.style):Fm(e.style));return{fontFamily:e.fontFamily,...t===void 0?{}:{fontWeight:t},...n?{fontStyle:n}:{}}}function Rm(e,t){let n=t.fontStyle?Nm(t.fontStyle):void 0;return`.${e} { ${[`font-family: ${t.fontFamily}`,...t.fontWeight===void 0?[]:[`font-weight: ${t.fontWeight}`],...n?[`font-style: ${n}`]:[]].join(`; `)}; }\n`}function zm(e){return e.endsWith(`.woff2`)?`font/woff2`:e.endsWith(`.woff`)?`font/woff`:e.endsWith(`.ttf`)?`font/ttf`:e.endsWith(`.otf`)?`font/opentype`:`font/woff2`}function Bm(e,t){if(e.includes(`,`)&&t.includes(`,`)){let[n,r]=e.split(`,`,2),[i,a]=t.split(`,`,2);return n===i?parseInt(r)-parseInt(a):parseInt(n)-parseInt(i)}return parseInt(e)-parseInt(t)}function Vm(e,t,n){let r=[];if(t.wght)for(let e of t.wght)if(!t.ital)r.push([[`wght`,e],...t.variableAxes??[]]);else for(let n of t.ital)r.push([[`ital`,n],[`wght`,e],...t.variableAxes??[]]);else t.variableAxes&&r.push([...t.variableAxes]);if(t.variableAxes)for(let e of r)e.sort(([e],[t])=>{let n=e.charCodeAt(0)>96,r=t.charCodeAt(0)>96;return n&&!r?-1:r&&!n||e>t?1:-1});let i=`https://fonts.googleapis.com/css2?family=${e.replace(/ /g,`+`)}`;if(r.length>0){let e=r[0].map(([e])=>e).join(`,`),t=r.map(e=>e.map(([,e])=>e).join(`,`)).sort(Bm).join(`;`);i=`${i}:${e}@${t}`}return`${i}&display=${n}`}var Hm=Symbol.for(`vinext.font.injectedFonts`),Um=Symbol.for(`vinext.font.injectedClassRules`),Wm=Symbol.for(`vinext.font.injectedVariableRules`),Gm=Symbol.for(`vinext.font.injectedSelfHosted`),Km=Symbol.for(`vinext.font.ssrFontStyles`),qm=Symbol.for(`vinext.font.ssrFontUrls`),Jm=Symbol.for(`vinext.font.ssrFontPreloads`),Ym=Symbol.for(`vinext.font.ssrFontPreloadHrefs`),Xm=globalThis,Zm=Xm[Hm]??=new Set;function Qm(e){return`--font-`+e.toLowerCase().replace(/\s+/g,`-`)}function $m(e){return e.toLowerCase().replace(/[^a-z0-9_-]+/g,`_`).replace(/^_+|_+$/g,``)||`font`}function eh(e){return e?[...new Set((Array.isArray(e)?e:[e]).map(e=>e.trim()).filter(Boolean))].sort().join(`,`):``}function th(e){let t=eh(e);return t===`variable`?``:t}function nh(e){let t=new Set((Array.isArray(e)?e:e?[e]:[]).map(e=>e.trim()).filter(Boolean)),n=t.has(`italic`),r=t.has(`normal`);return n?r?`italic,normal`:`italic`:``}function rh(e){return e?e.map(e=>e.trim()).join(`,`):``}function ih(e){return e===void 0?``:e?`1`:`0`}function ah(e){return e===void 0?``:typeof e==`boolean`?ih(e):e}function oh(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(36).padStart(7,`0`)}function sh(e,t,n,r){return oh([e,n,th(t.weight),nh(t.style),eh(t.subsets),t.display??`swap`,ih(t.preload),rh(r),ah(t.adjustFontFallback),eh(t.axes),t._vinext?.font?.selfHostedCSS??``,t._vinext?.font?.fontWeight?.toString()??``,t._vinext?.font?.fontStyle??``].join(`\0`))}function ch(e,t){let n=t.weight?Array.isArray(t.weight)?t.weight:[t.weight]:[],r=t.style?Array.isArray(t.style)?t.style:[t.style]:[],i=r.includes(`italic`),a=r.includes(`normal`),o=i?[...a?[`0`]:[],`1`]:void 0,s=n.length===1&&n[0]===`variable`?[]:n;return Vm(e,{wght:s.length>0?s:o?[`400`]:void 0,ital:o},t.display??`swap`)}function lh(e){if(!Zm.has(e)&&(Zm.add(e),typeof document<`u`)){let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,document.head.appendChild(t)}}var uh=Xm[Um]??=new Set;function dh(e,t){if(uh.has(e))return;uh.add(e);let n=Rm(e,t);if(typeof document>`u`){mh.push(n);return}let r=document.createElement(`style`);r.textContent=n,r.setAttribute(`data-vinext-font-class`,e),document.head.appendChild(r)}var fh=Xm[Wm]??=new Set;function ph(e,t,n){if(fh.has(e))return;fh.add(e);let r=`.${e} { ${t}: ${n}; }\n`;if(typeof document>`u`){mh.push(r);return}let i=document.createElement(`style`);i.textContent=r,i.setAttribute(`data-vinext-font-variable`,e),document.head.appendChild(i)}var mh=Xm[Km]??=[];function hh(){return[...mh]}var gh=Xm[qm]??=[];function _h(){return[...gh]}var vh=Xm[Jm]??=[],yh=Xm[Ym]??=new Set;function bh(){return[...vh]}function xh(e){if(!(typeof document<`u`))for(let t of e)t.startsWith(`/`)&&!yh.has(t)&&(yh.add(t),vh.push({href:t,type:zm(t)}))}var Sh=Xm[Gm]??=new Set;function Ch(e,t=[]){if(xh(t),Sh.has(e))return;if(Sh.add(e),typeof document>`u`){mh.push(e);return}let n=document.createElement(`style`);n.textContent=e,n.setAttribute(`data-vinext-font-selfhosted`,`true`),document.head.appendChild(n)}function wh(e){return function(t={}){let n=t._vinext?.font,r=t.fallback??[],i=t.adjustFontFallback===!1||!n?.adjustedFallbackCSS?[]:[`'${km(e)} Fallback'`],a=[`'${km(e)}'`,...i,...r.map(jm)].join(`, `),o=Qm(e),s=t.variable?Am(t.variable)??o:o,c=sh(e,t,s,r),l=$m(e),u=`__font_${l}_${c}`,d=`__variable_${l}_${c}`,f=Lm({fontFamily:a,weight:t.weight,style:t.style,internalWeight:n?.fontWeight,internalStyle:n?.fontStyle,google:!0});if(n?.selfHostedCSS)Ch(n.selfHostedCSS,n.preloadUrls);else{let n=ch(e,t);lh(n),typeof document>`u`&&(gh.includes(n)||gh.push(n))}return t.adjustFontFallback!==!1&&n?.adjustedFallbackCSS&&Ch(n.adjustedFallbackCSS),dh(u,f),t.variable&&ph(d,s,a),{className:u,style:f,...t.variable?{variable:d}:{}}}}var Th=new Proxy({},{get(e,t){if(typeof t==`string`)return t==="__esModule"?!0:t==="default"?Th:wh(t.replace(/_/g,` `).replace(/([a-z])([A-Z])/g,`$1 $2`))}}),Eh=Symbol.for(`vinext.fontLocal.injectedFonts`),Dh=Symbol.for(`vinext.fontLocal.injectedClassRules`),Oh=Symbol.for(`vinext.fontLocal.injectedVariableRules`),kh=Symbol.for(`vinext.fontLocal.injectedRootVariables`),Ah=Symbol.for(`vinext.fontLocal.ssrFontStyles`),jh=Symbol.for(`vinext.fontLocal.ssrFontPreloads`),Mh=Symbol.for(`vinext.fontLocal.ssrFontPreloadHrefs`),Nh=globalThis;Nh[Eh]??=new Set;var Ph=Nh[Ah]??=[],Fh=Nh[jh]??=[];Nh[Mh]??=new Set;function Ih(){return[...Ph]}function Lh(){return[...Fh]}Nh[Dh]??=new Set,Nh[Oh]??=new Set,Nh[kh]??=new Set;var Rh=new jt,zh=console.error;console.error=(...e)=>{Rh.getStore()===!0&&typeof e[0]==`string`&&e[0].includes(`Invalid hook call`)||zh.apply(console,e)};function Bh(e){mn(e),e===null&&Ga(null)}function Vh(){M(null),Bh(null)}async function Hh(e){return qa(Wa(e.params,e.rootParamNamesByPattern[e.pattern]),()=>e.fn({params:e.params}))}var Uh=((e,t,n,r)=>function(){return e.createElement(e.Fragment,null,[...t.css.map(t=>e.createElement(`link`,{key:`css:`+t,rel:`stylesheet`,...r?{precedence:r}:{},href:t,"data-rsc-css-href":t})),n&&e.createElement(n,{key:`remove-duplicate-css`})])})(G.default,Mt.serverResources[`app/layout.tsx`],void 0,`vite-rsc/importer-resources`),Wh=t({default:()=>Jh,metadata:()=>Gh,viewport:()=>Kh}),Gh={title:`Apps on Google Play`,description:`A handcrafted Next.js recreation of the Google Play Apps storefront.`,icons:{icon:[{url:`/icons/home.ico`,type:`image/x-icon`}]}},Kh={width:`device-width`,initialScale:1,viewportFit:`cover`};function qh({children:e}){return(0,q.jsx)(`html`,{lang:`en`,children:(0,q.jsx)(`body`,{children:e})})}var Jh=Yh(qh,`default`);function Yh(e,t){if(typeof e!=`function`)return e;function n(t){return G.createElement(G.Fragment,null,G.createElement(Uh),G.createElement(e,t))}return Object.defineProperty(n,"name",{value:t}),n}var Xh=en(zt),Zh=tn(async(e,t)=>(0,Vt.prerender)(e,Rt(),t)),Qh=()=>import(`./_next/static/app-route-handler-dispatch-DCSrhGNV.js`);function $h(){return[...hh(),...Ih()]}function eg(){return[...bh(),...Lh()]}l({cacheMaxMemorySize:void 0});var tg=`e0af51c31d679daaee6ca80273d3d9e8`;Ca();var ng=process.env.NEXT_PRIVATE_DEBUG_CACHE?console.debug.bind(console,`[vinext] ISR:`):void 0,X=process.env.VINEXT_DEBUG_CLASSIFICATION?function(e,t){console.debug(`[vinext] CLS:`,e,t)}:void 0;function rg(e){return bm({layouts:e.layouts,page:e.page,parallelSegments:Object.values(e.slots??{}).flatMap(e=>[e.layout,...e.configLayouts??[],e.page??e.default])})}function ig(e){return ym({layouts:e.layouts,page:e.page,parallelSegments:Object.values(e.slots??{}).flatMap(e=>[e.layout,...e.configLayouts??[],e.page??e.default])}).dynamicConfig??null}function ag(e){return ym({layouts:e.layouts,page:e.page,parallelSegments:Object.values(e.slots??{}).flatMap(e=>[e.layout,...e.configLayouts??[],e.page??e.default])}).runtime??null}var og=()=>import(`./_next/static/route-CJmc17Dq.js`),Z=()=>Promise.resolve().then(()=>Wh),sg=()=>import(`./_next/static/route-Dwk0kt8B.js`),cg=()=>import(`./_next/static/route-Dn-sYYEs.js`),lg=()=>import(`./_next/static/route-CUaIuP8a.js`),ug=()=>import(`./_next/static/route-D93PQ3NI2.js`),dg=()=>import(`./_next/static/route-FwNLcs2r2.js`),fg=()=>import(`./_next/static/route-BiSvZr_s.js`),pg=()=>import(`./_next/static/route-DihT2xS82.js`),mg=()=>import(`./_next/static/route-B6zrlXB5.js`),hg=()=>import(`./_next/static/page-C457kN_n.js`),gg=()=>import(`./_next/static/route-ipFkK3iA.js`),_g=()=>import(`./_next/static/route-qJ1EJhxJ.js`),vg=()=>import(`./_next/static/route-D9ZD1_5T.js`),yg=()=>import(`./_next/static/route-Cn7l9eYT.js`),bg=()=>import(`./_next/static/route-iUxcDN2r.js`),xg=()=>import(`./_next/static/route-B9YeBtG6.js`),Sg=()=>import(`./_next/static/route-CLvr0Ue3.js`),Cg=()=>import(`./_next/static/route-BaGo5TEW.js`),wg=()=>import(`./_next/static/route-DxLQx9eD.js`),Tg=()=>import(`./_next/static/route-4xkmbpc4.js`),Eg=()=>import(`./_next/static/route-BczKcyvV.js`),Dg=()=>import(`./_next/static/route-DpzLCx1V.js`),Og=()=>import(`./_next/static/route-Dswz7MvP2.js`),kg=()=>import(`./_next/static/route-B99Pvusz2.js`),Ag=()=>import(`./_next/static/route-DWPhX9kT2.js`),jg=()=>import(`./_next/static/route-B6q-wR2F.js`),Mg=()=>import(`./_next/static/route-CGH08Y8C.js`),Ng=()=>import(`./_next/static/route-GmbSJZjk2.js`),Pg=()=>import(`./_next/static/route-j61HPczh.js`),Fg=()=>import(`./_next/static/route-CiOFTfyw2.js`),Ig=()=>import(`./_next/static/route-CnKXQb5r2.js`),Lg=()=>import(`./_next/static/route-B0L_rsrg2.js`),Rg=()=>import(`./_next/static/route-BHbJ9hFI2.js`),zg=()=>import(`./_next/static/route-BR3Y_0V42.js`),Bg=()=>import(`./_next/static/page-Rnpx_OjW.js`),Vg=()=>import(`./_next/static/layout-DpOw0OgX.js`),Hg=()=>import(`./_next/static/page-BvzzZVuW.js`),Ug=()=>import(`./_next/static/page-C27wjUYW.js`),Wg=()=>import(`./_next/static/layout-D1iejeee.js`),Gg=()=>import(`./_next/static/route-Bj7s6WXI.js`),Kg=()=>import(`./_next/static/route-sNW0pw7C.js`),qg=()=>import(`./_next/static/route-CcrNbScT.js`);function Q(e){return(e=>{switch(e){case 0:return new Map([[0,`static`]]);case 1:return new Map([[0,`static`]]);case 2:return new Map([[0,`static`]]);case 3:return new Map([[0,`static`]]);case 4:return new Map([[0,`static`]]);case 5:return new Map([[0,`static`]]);case 6:return new Map([[0,`static`]]);case 7:return new Map([[0,`static`]]);case 8:return new Map([[0,`static`]]);case 9:return new Map([[0,`static`]]);case 10:return new Map([[0,`static`]]);case 11:return new Map([[0,`static`]]);case 12:return new Map([[0,`static`]]);case 13:return new Map([[0,`static`]]);case 14:return new Map([[0,`static`]]);case 15:return new Map([[0,`static`]]);case 16:return new Map([[0,`static`]]);case 17:return new Map([[0,`static`]]);case 18:return new Map([[0,`static`]]);case 19:return new Map([[0,`static`]]);case 20:return new Map([[0,`static`]]);case 21:return new Map([[0,`static`]]);case 22:return new Map([[0,`static`]]);case 23:return new Map([[0,`static`]]);case 24:return new Map([[0,`static`]]);case 25:return new Map([[0,`static`]]);case 26:return new Map([[0,`static`]]);case 27:return new Map([[0,`static`]]);case 28:return new Map([[0,`static`]]);case 29:return new Map([[0,`static`]]);case 30:return new Map([[0,`static`]]);case 31:return new Map([[0,`static`]]);case 32:return new Map([[0,`static`]]);case 33:return new Map([[0,`static`]]);case 34:return new Map([[0,`static`],[1,`static`]]);case 35:return new Map([[0,`static`],[1,`static`]]);case 36:return new Map([[0,`static`],[1,`static`]]);case 37:return new Map([[0,`static`]]);case 38:return new Map([[0,`static`]]);case 39:return new Map([[0,`static`]]);default:return null}})(e)}function $(e){return null}var Jg=[{__buildTimeClassifications:Q(0),__buildTimeReasons:X?$(0):null,ids:{route:`route:/api/netflix/activity/:sessionId/commands`,page:null,routeHandler:`route-handler:/api/netflix/activity/:sessionId/commands`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/activity/:sessionId/commands`,patternParts:[`api`,`netflix`,`activity`,`:sessionId`,`commands`],isDynamic:!0,params:[`sessionId`],staticSiblings:[`titles`],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:og,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`activity`,`[sessionId]`,`commands`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(1),__buildTimeReasons:X?$(1):null,ids:{route:`route:/api/netflix/profiles/:id/library`,page:null,routeHandler:`route-handler:/api/netflix/profiles/:id/library`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles/:id/library`,patternParts:[`api`,`netflix`,`profiles`,`:id`,`library`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:sg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`,`[id]`,`library`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(2),__buildTimeReasons:X?$(2):null,ids:{route:`route:/api/netflix/profiles/:id/select`,page:null,routeHandler:`route-handler:/api/netflix/profiles/:id/select`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles/:id/select`,patternParts:[`api`,`netflix`,`profiles`,`:id`,`select`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:cg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`,`[id]`,`select`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(3),__buildTimeReasons:X?$(3):null,ids:{route:`route:/api/netflix/providers/:providerId/sync`,page:null,routeHandler:`route-handler:/api/netflix/providers/:providerId/sync`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/providers/:providerId/sync`,patternParts:[`api`,`netflix`,`providers`,`:providerId`,`sync`],isDynamic:!0,params:[`providerId`],staticSiblings:[`order`],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:lg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`providers`,`[providerId]`,`sync`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(4),__buildTimeReasons:X?$(4):null,ids:{route:`route:/api/spotify/providers/:id/sync`,page:null,routeHandler:`route-handler:/api/spotify/providers/:id/sync`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/providers/:id/sync`,patternParts:[`api`,`spotify`,`providers`,`:id`,`sync`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:ug,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`providers`,`[id]`,`sync`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(5),__buildTimeReasons:X?$(5):null,ids:{route:`route:/api/spotify/tracks/:id/audio`,page:null,routeHandler:`route-handler:/api/spotify/tracks/:id/audio`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/tracks/:id/audio`,patternParts:[`api`,`spotify`,`tracks`,`:id`,`audio`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:dg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`tracks`,`[id]`,`audio`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(6),__buildTimeReasons:X?$(6):null,ids:{route:`route:/api/netflix/profiles/:id`,page:null,routeHandler:`route-handler:/api/netflix/profiles/:id`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles/:id`,patternParts:[`api`,`netflix`,`profiles`,`:id`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:fg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`,`[id]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(7),__buildTimeReasons:X?$(7):null,ids:{route:`route:/api/netflix/stream/:id`,page:null,routeHandler:`route-handler:/api/netflix/stream/:id`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/stream/:id`,patternParts:[`api`,`netflix`,`stream`,`:id`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:pg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`stream`,`[id]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(8),__buildTimeReasons:X?$(8):null,ids:{route:`route:/api/netflix/titles/:id`,page:null,routeHandler:`route-handler:/api/netflix/titles/:id`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/titles/:id`,patternParts:[`api`,`netflix`,`titles`,`:id`],isDynamic:!0,params:[`id`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:mg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`titles`,`[id]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(9),__buildTimeReasons:X?$(9):null,ids:{route:`route:/`,page:`page:/`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/`,patternParts:[],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:hg,routeHandler:null,__loadRouteHandler:null,layouts:[null],__loadLayouts:[Z],routeSegments:[],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(10),__buildTimeReasons:X?$(10):null,ids:{route:`route:/api/access`,page:null,routeHandler:`route-handler:/api/access`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/access`,patternParts:[`api`,`access`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:gg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`access`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(11),__buildTimeReasons:X?$(11):null,ids:{route:`route:/api/keyboard`,page:null,routeHandler:`route-handler:/api/keyboard`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/keyboard`,patternParts:[`api`,`keyboard`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:_g,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`keyboard`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(12),__buildTimeReasons:X?$(12):null,ids:{route:`route:/api/netflix/activity`,page:null,routeHandler:`route-handler:/api/netflix/activity`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/activity`,patternParts:[`api`,`netflix`,`activity`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:vg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`activity`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(13),__buildTimeReasons:X?$(13):null,ids:{route:`route:/api/netflix/activity/titles`,page:null,routeHandler:`route-handler:/api/netflix/activity/titles`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/activity/titles`,patternParts:[`api`,`netflix`,`activity`,`titles`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:yg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`activity`,`titles`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(14),__buildTimeReasons:X?$(14):null,ids:{route:`route:/api/netflix/episode-sync`,page:null,routeHandler:`route-handler:/api/netflix/episode-sync`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/episode-sync`,patternParts:[`api`,`netflix`,`episode-sync`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:bg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`episode-sync`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(15),__buildTimeReasons:X?$(15):null,ids:{route:`route:/api/netflix/library`,page:null,routeHandler:`route-handler:/api/netflix/library`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/library`,patternParts:[`api`,`netflix`,`library`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:xg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`library`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(16),__buildTimeReasons:X?$(16):null,ids:{route:`route:/api/netflix/markers`,page:null,routeHandler:`route-handler:/api/netflix/markers`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/markers`,patternParts:[`api`,`netflix`,`markers`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Sg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`markers`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(17),__buildTimeReasons:X?$(17):null,ids:{route:`route:/api/netflix/movies/import`,page:null,routeHandler:`route-handler:/api/netflix/movies/import`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/movies/import`,patternParts:[`api`,`netflix`,`movies`,`import`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Cg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`movies`,`import`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(18),__buildTimeReasons:X?$(18):null,ids:{route:`route:/api/netflix/new-episodes`,page:null,routeHandler:`route-handler:/api/netflix/new-episodes`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/new-episodes`,patternParts:[`api`,`netflix`,`new-episodes`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:wg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`new-episodes`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(19),__buildTimeReasons:X?$(19):null,ids:{route:`route:/api/netflix/profiles`,page:null,routeHandler:`route-handler:/api/netflix/profiles`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/profiles`,patternParts:[`api`,`netflix`,`profiles`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Tg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`profiles`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(20),__buildTimeReasons:X?$(20):null,ids:{route:`route:/api/netflix/progress`,page:null,routeHandler:`route-handler:/api/netflix/progress`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/progress`,patternParts:[`api`,`netflix`,`progress`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Eg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`progress`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(21),__buildTimeReasons:X?$(21):null,ids:{route:`route:/api/netflix/providers/order`,page:null,routeHandler:`route-handler:/api/netflix/providers/order`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/providers/order`,patternParts:[`api`,`netflix`,`providers`,`order`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Dg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`providers`,`order`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(22),__buildTimeReasons:X?$(22):null,ids:{route:`route:/api/netflix/search`,page:null,routeHandler:`route-handler:/api/netflix/search`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/search`,patternParts:[`api`,`netflix`,`search`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Og,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`search`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(23),__buildTimeReasons:X?$(23):null,ids:{route:`route:/api/netflix/subtitle-preferences`,page:null,routeHandler:`route-handler:/api/netflix/subtitle-preferences`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/subtitle-preferences`,patternParts:[`api`,`netflix`,`subtitle-preferences`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:kg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`subtitle-preferences`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(24),__buildTimeReasons:X?$(24):null,ids:{route:`route:/api/remote-screen`,page:null,routeHandler:`route-handler:/api/remote-screen`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/remote-screen`,patternParts:[`api`,`remote-screen`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ag,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`remote-screen`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(25),__buildTimeReasons:X?$(25):null,ids:{route:`route:/api/remote-screen/control`,page:null,routeHandler:`route-handler:/api/remote-screen/control`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/remote-screen/control`,patternParts:[`api`,`remote-screen`,`control`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:jg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`remote-screen`,`control`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(26),__buildTimeReasons:X?$(26):null,ids:{route:`route:/api/remote-screen/frame`,page:null,routeHandler:`route-handler:/api/remote-screen/frame`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/remote-screen/frame`,patternParts:[`api`,`remote-screen`,`frame`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Mg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`remote-screen`,`frame`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(27),__buildTimeReasons:X?$(27):null,ids:{route:`route:/api/spotify/downloads`,page:null,routeHandler:`route-handler:/api/spotify/downloads`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/downloads`,patternParts:[`api`,`spotify`,`downloads`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ng,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`downloads`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(28),__buildTimeReasons:X?$(28):null,ids:{route:`route:/api/spotify/music`,page:null,routeHandler:`route-handler:/api/spotify/music`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/music`,patternParts:[`api`,`spotify`,`music`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Pg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`music`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(29),__buildTimeReasons:X?$(29):null,ids:{route:`route:/api/spotify/playlists`,page:null,routeHandler:`route-handler:/api/spotify/playlists`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/playlists`,patternParts:[`api`,`spotify`,`playlists`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Fg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`playlists`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(30),__buildTimeReasons:X?$(30):null,ids:{route:`route:/api/spotify/providers`,page:null,routeHandler:`route-handler:/api/spotify/providers`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/providers`,patternParts:[`api`,`spotify`,`providers`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Ig,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`providers`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(31),__buildTimeReasons:X?$(31):null,ids:{route:`route:/api/spotify/recently-played`,page:null,routeHandler:`route-handler:/api/spotify/recently-played`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/recently-played`,patternParts:[`api`,`spotify`,`recently-played`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Lg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`recently-played`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(32),__buildTimeReasons:X?$(32):null,ids:{route:`route:/api/spotify/tracks`,page:null,routeHandler:`route-handler:/api/spotify/tracks`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/spotify/tracks`,patternParts:[`api`,`spotify`,`tracks`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Rg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`spotify`,`tracks`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(33),__buildTimeReasons:X?$(33):null,ids:{route:`route:/api/trackpad`,page:null,routeHandler:`route-handler:/api/trackpad`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/trackpad`,patternParts:[`api`,`trackpad`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:zg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`trackpad`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(34),__buildTimeReasons:X?$(34):null,ids:{route:`route:/netflix`,page:`page:/netflix`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`,`layout:/netflix`],templates:[],slots:{}},pattern:`/netflix`,patternParts:[`netflix`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:Bg,routeHandler:null,__loadRouteHandler:null,layouts:[null,null],__loadLayouts:[Z,Vg],routeSegments:[`netflix`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0,1],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null,null],__loadErrors:[null,null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null,null],__loadNotFounds:[null,null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null,null],__loadForbiddens:[null,null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null,null],__loadUnauthorizeds:[null,null]},{__buildTimeClassifications:Q(35),__buildTimeReasons:X?$(35):null,ids:{route:`route:/netflix/search`,page:`page:/netflix/search`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`,`layout:/netflix`],templates:[],slots:{}},pattern:`/netflix/search`,patternParts:[`netflix`,`search`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:Hg,routeHandler:null,__loadRouteHandler:null,layouts:[null,null],__loadLayouts:[Z,Vg],routeSegments:[`netflix`,`search`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0,1],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null,null],__loadErrors:[null,null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null,null],__loadNotFounds:[null,null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null,null],__loadForbiddens:[null,null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null,null],__loadUnauthorizeds:[null,null]},{__buildTimeClassifications:Q(36),__buildTimeReasons:X?$(36):null,ids:{route:`route:/spotify`,page:`page:/spotify`,routeHandler:null,rootBoundary:`root-boundary:/`,layouts:[`layout:/`,`layout:/spotify`],templates:[],slots:{}},pattern:`/spotify`,patternParts:[`spotify`],isDynamic:!1,params:[],staticSiblings:[],rootParamNames:[],page:null,__loadPage:Ug,routeHandler:null,__loadRouteHandler:null,layouts:[null,null],__loadLayouts:[Z,Wg],routeSegments:[`spotify`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0,1],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null,null],__loadErrors:[null,null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null,null],__loadNotFounds:[null,null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null,null],__loadForbiddens:[null,null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null,null],__loadUnauthorizeds:[null,null]},{__buildTimeClassifications:Q(37),__buildTimeReasons:X?$(37):null,ids:{route:`route:/api/netflix/subtitles/:id/:ownerId/:track`,page:null,routeHandler:`route-handler:/api/netflix/subtitles/:id/:ownerId/:track`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/subtitles/:id/:ownerId/:track`,patternParts:[`api`,`netflix`,`subtitles`,`:id`,`:ownerId`,`:track`],isDynamic:!0,params:[`id`,`ownerId`,`track`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Gg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`subtitles`,`[id]`,`[ownerId]`,`[track]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(38),__buildTimeReasons:X?$(38):null,ids:{route:`route:/api/netflix/media/:id/:path+`,page:null,routeHandler:`route-handler:/api/netflix/media/:id/:path+`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/media/:id/:path+`,patternParts:[`api`,`netflix`,`media`,`:id`,`:path+`],isDynamic:!0,params:[`id`,`path`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:Kg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`media`,`[id]`,`[...path]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]},{__buildTimeClassifications:Q(39),__buildTimeReasons:X?$(39):null,ids:{route:`route:/api/netflix/stream/:id/:path+`,page:null,routeHandler:`route-handler:/api/netflix/stream/:id/:path+`,rootBoundary:`root-boundary:/`,layouts:[`layout:/`],templates:[],slots:{}},pattern:`/api/netflix/stream/:id/:path+`,patternParts:[`api`,`netflix`,`stream`,`:id`,`:path+`],isDynamic:!0,params:[`id`,`path`],staticSiblings:[],rootParamNames:[],page:null,__loadPage:null,routeHandler:null,__loadRouteHandler:qg,layouts:[null],__loadLayouts:[Z],routeSegments:[`api`,`netflix`,`stream`,`[id]`,`[...path]`],childrenRouteSegments:null,templateTreePositions:[],layoutTreePositions:[0],templates:[],__loadTemplates:[],loadings:[],__loadLoadings:[],loadingTreePositions:[],errors:[null],__loadErrors:[null],errorPaths:[],__loadErrorPaths:[],errorTreePositions:[],slots:{},childrenSlot:null,siblingIntercepts:[],loading:null,__loadLoading:null,error:null,__loadError:null,notFound:null,__loadNotFound:null,notFoundTreePosition:null,notFounds:[null],__loadNotFounds:[null],forbidden:null,__loadForbidden:null,forbiddenTreePosition:null,forbiddens:[null],__loadForbiddens:[null],unauthorized:null,__loadUnauthorized:null,unauthorizedTreePosition:null,unauthorizeds:[null],__loadUnauthorizeds:[null]}],Yg=Ou(Jg),Xg=[],Zg=``,Qg=!1,$g=void 0,e_=null,t_=null,n_=null,r_=[Wh],i_=null,a_=(e,t,n)=>Xs(At,e,t,n),o_=Dd({basePath:``,trailingSlash:Qg,htmlLimitedBots:$g,rootBoundaries:{rootForbiddenModule:t_,rootLayouts:r_,rootNotFoundModule:e_,rootUnauthorizedModule:n_},globalErrorModule:null,loadGlobalNotFoundModule:i_,globalNotFoundEnabled:!1,metadataRoutes:Xg,ssrLoader(){return import(`./ssr/index.js`)},fontProviders:{buildFontLinkHeader:Rs,getFontLinks:_h,getFontPreloads:eg,getFontStyles:$h},makeThenableParams:K,sanitizer:Js,rscRenderer:Xh,getAndClearPendingCookies:U,getNavigationContext:pn,resolveChildSegments:Tl,clearRequestContext(){Vh()},createRscOnErrorHandler(e,t,n){return a_(e,t,n)}});function s_(e){return Yg.matchRoute(e)}function c_(e){return Yg.matchRequestRoute(e)}function l_(e,t=null){return Yg.findIntercept(e,t)}async function u_(e,t,n,r,i,a=n,o){return await Hf(e),Wu({route:e,params:t,routePath:n,displayPathname:a,pageRequest:r,globalErrorModule:null,rootNotFoundModule:null,rootForbiddenModule:null,rootUnauthorizedModule:null,metadataRoutes:Xg,layoutParamAccess:i,basePath:``,trailingSlash:Qg,htmlLimitedBots:$g,scriptNonce:o})}var d_=null,f_=si,p_=[],m_={beforeFiles:[],afterFiles:[],fallback:[]},h_=[],g_={},__=new Set([`/icons/home.ico`,`/icons/keyboard.ico`,`/icons/netflix.ico`,`/icons/remote-screen.ico`,`/icons/spotify.ico`]),v_=31536e3,y_=void 0,b_=6e3,x_=``,S_=[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384],C_={},w_=!1,T_=!1,E_=Sa;async function D_(e){let{seedMemoryCacheFromPrerender:t}=await import(`./_next/static/seed-cache-DsYPqBld.js`);return t(e,{buildAppPageHtmlKey(e){return xi(e)},buildAppPageRscKey(e){return Ci(e)},writeAppPageEntry(e,t,n){return ui(e,t,n)}})}var O_=[],k_=[`localhost`,`127.0.0.1`,`[::1]`];function A_(){return new Response(`Forbidden`,{status:403,headers:{"Content-Type":`text/plain`}})}function j_(e){if(e.headers.get(`sec-fetch-mode`)===`no-cors`&&e.headers.get(`sec-fetch-site`)===`cross-site`)return console.warn(`[vinext] Blocked cross-site no-cors request to `+new URL(e.url).pathname),A_();let t=e.headers.get(`origin`);if(!t)return null;if(t===`null`)return O_.includes(`null`)?null:(console.warn(`[vinext] Blocked request with Origin: null. Add "null" to allowedDevOrigins to allow sandboxed contexts.`),A_());let n;try{n=new URL(t).hostname.toLowerCase()}catch{return A_()}if(k_.includes(n)||n.endsWith(`.localhost`))return null;let r=(e.headers.get(`x-forwarded-host`)||e.headers.get(`host`)||``).split(`,`)[0].trim().split(`:`)[0].toLowerCase();if(r&&n===r)return null;for(let e of O_)if(e.startsWith(`*.`)){let t=e.slice(1);if(n===e.slice(2)||n.endsWith(t))return null}else if(n===e)return null;return console.warn(`[vinext] Blocked cross-origin request from "${t}" to ${new URL(e.url).pathname}. To allow this origin, add it to allowedDevOrigins in next.config.js.`),A_()}var M_={},N_=os({basePath:``,buildId:`7c810a6d-59fd-41d6-b465-cf61efaea04f`,ensureRouteLoaded:Hf,prefetchInlining:!1,clearRequestContext(){Vh()},registerCacheAdapters:ss,configHeaders:h_,configRedirects:p_,configRewrites:m_,imageConfig:g_,isDev:!1,draftModeSecret:tg,dispatchMatchedPage({clientReuseManifest:e,cleanPathname:t,displayPathname:n,formState:r,actionError:i,actionFailed:a,handlerStart:o,interceptionContext:s,interceptionPathname:c,isProgressiveActionRender:l,isRscRequest:u,middlewareContext:d,mountedSlotsHeader:f,params:p,pprFallbackCacheShells:m,pprFallbackShell:h,renderedConcreteUrlPaths:g,skipStaticParamsValidation:_,staticParamsValidationParams:v,rootParams:y,request:b,renderedPathAndSearch:x,route:S,scriptNonce:C,searchParams:w,renderMode:T}){let E=S.page?.default,D=ym({layouts:S.layouts,layoutTreePositions:S.layoutTreePositions,page:S.page,parallelBranches:Object.values(S.slots??{}).map(e=>({layout:e.layout,configLayouts:e.configLayouts,configLayoutTreePositions:e.configLayoutTreePositions,page:e.page??e.default,routeSegments:e.routeSegments})),parallelPages:Object.values(S.slots??{}).map(e=>e.page??e.default),routeSegments:S.routeSegments}),O=Jf({layouts:S.layouts,layoutTreePositions:S.layoutTreePositions,page:S.page,parallelBranches:Object.values(S.slots??{}).map(e=>({layout:e.layout,configLayouts:e.configLayouts,configLayoutTreePositions:e.configLayoutTreePositions,page:e.page??e.default,paramNames:e.slotParamNames,patternParts:e.slotPatternParts,routeSegments:e.routeSegments})),routePatternParts:S.patternParts,routeSegments:S.routeSegments}),k=K(p);return tm({basePath:``,ensureRouteLoaded:Hf,clientTraceMetadata:y_,reactMaxHeadersLength:b_,buildPageElement(e,r,i,a,o,s){return u_(e,r,t,{opts:i,searchParams:a,isRscRequest:u,request:b,mountedSlotsHeader:f,renderMode:T,observeMetadataSearchParamsAccess:s?.observeMetadataSearchParamsAccess===!0,observePageSearchParamsAccess:s?.observePageSearchParamsAccess===!0,serveStreamingMetadata:s?.serveStreamingMetadata,isProduction:!0},o,n,C)},clientReuseManifest:e,cleanPathname:t,displayPathname:n,clearRequestContext(){Vh()},createRscOnErrorHandler(e,t){return a_(b,e,t)},debugClassification:X,draftModeSecret:tg,dynamicConfig:D.dynamicConfig,dynamicStaleTimeSeconds:D.dynamicStaleTimeSeconds,dynamicParamsConfig:D.dynamicParamsConfig,fetchCache:D.fetchCache??null,isEdgeRuntime:Sm(D.runtime),findIntercept(e){return l_(e===t?c:e,s)},generateStaticParams:O,getFontLinks:_h,getFontPreloads:eg,getFontStyles:$h,getNavigationContext:pn,getSourceRoute(e){return Jg[e]},hasCustomGlobalError:!1,hasGenerateStaticParams:O.length>0,hasPageDefaultExport:!!E,hasPageModule:!!S.page,handlerStart:o,htmlLimitedBots:$g,interceptionContext:s,expireSeconds:v_,formState:r,actionError:i,actionFailed:a,isProgressiveActionRender:l,isProduction:!0,isRscRequest:u,isrDebug:ng,isrGet:ci,isrHtmlKey:xi,isrRscKey:Ci,isrSet:li,loadSsrHandler(){return import(`./ssr/index.js`)},middlewareContext:d,mountedSlotsHeader:f,params:p,pprFallbackCacheShells:m,pprFallbackShell:h,pprRuntime:void 0,renderedConcreteUrlPaths:g,skipStaticParamsValidation:_,staticParamsValidationParams:v,rootParams:y,probeLayoutAt(e,t){return Il({layoutIndex:e,layoutParamAccess:t,makeThenableParams:K,matchedParams:p,route:S})},async probePage(e=w){let t=l_(c,s);return t&&t.__pageLoader&&t.page==null&&(t.page=await t.__pageLoader()),Promise.all(gl({route:S,pageComponent:E,asyncRouteParams:k,searchParams:e,intercept:t,isRscRequest:u,matchedParams:p,makeThenableParams:K}))},renderErrorBoundaryPage(e,t){let n=l_(c,s);return o_.renderErrorBoundary(S,e,u,b,p,C,d,{isEdgeRuntime:Sm(D.runtime),sourcePageSegments:n?.slotKey===`__vinext_page_intercept`?n.sourcePageSegments:null},t)},renderHttpAccessFallbackPage(e,n,r){let i=l_(c,s);return o_.renderHttpAccessFallback(S,e,u,b,n,C,r,{isEdgeRuntime:Sm(D.runtime),routePathname:t,sourcePageSegments:i?.slotKey===`__vinext_page_intercept`?i.sourcePageSegments:null})},renderToReadableStream:Xh,prerenderToReadableStream:Zh,request:b,revalidateSeconds:D.revalidateSeconds,renderedPathAndSearch:x,resolveRouteFetchCacheMode(e){return rg(e)},resolveRouteDynamicConfig(e){return ig(e)},rootForbiddenModule:t_,rootNotFoundModule:e_,rootUnauthorizedModule:n_,route:S,runWithSuppressedHookWarning(e){return Rh.run(!0,e)},scheduleBackgroundRegeneration(e,t,n){hi(e,t,n)},scriptNonce:C,searchParams:w,setNavigationContext:Bh,renderMode:T})},async dispatchMatchedRouteHandler({cleanPathname:e,middlewareContext:t,params:n,request:r,route:i,searchParams:a}){let{dispatchAppRouteHandler:o}=await Qh();return o({basePath:``,cleanPathname:e,clearRequestContext(){Vh()},draftModeSecret:tg,i18n:null,trailingSlash:Qg,isrDebug:ng,isrGet:ci,isrRouteKey:wi,isrSet:li,middlewareContext:t,middlewareRequestHeaders:t.requestHeaders,params:n,request:r,route:{pattern:i.pattern,routeHandler:i.routeHandler,routeSegments:i.routeSegments},scheduleBackgroundRegeneration:hi,searchParams:a})},i18nConfig:null,matchRoute:s_,matchRequestRoute:c_,matchInterceptRoute(e,t){let n=l_(e,t);if(!n)return null;let r=Jg[n.sourceRouteIndex];if(!r)return null;let i=Object.create(null);for(let e of r.params)Object.prototype.hasOwnProperty.call(n.sourceMatchedParams,e)&&(i[e]=n.sourceMatchedParams[e]);return{route:r,params:i}},publicFiles:__,renderNotFound({isRscRequest:e,matchedParams:t,middlewareContext:n,request:r,route:i,scriptNonce:a}){let o=i?Sm(ag(i)):!1;return o_.renderNotFound(i,e,r,t,a,n,{isEdgeRuntime:o})},rootParamNamesByPattern:{},setNavigationContext:Bh,staticParamsMap:M_,trailingSlash:Qg,validateDevRequestOrigin:j_});export{Ir as A,va as C,gi as D,ra as E,K as M,mn as N,yi as O,Bt as P,ba as S,sa as T,us as _,x_ as __assetPrefix,Zg as __basePath,T_ as __hasPagesDir,d_ as __i18nConfig,S_ as __imageAllowedWidths,C_ as __imageConfig,w_ as __inlineCss,up as a,f_ as authorizeOnDemandRevalidate,Ia as b,Tf as c,Of as d,N_ as default,uf as f,Ls as g,M_ as generateStaticParamsMap,E_ as getRenderedConcreteUrlPathsForRoute,Rs as h,lp as i,Er as j,ui as k,kf as l,ed as m,xm as n,ap as o,rd as p,cp as r,Ff as s,D_ as seedMemoryCacheFromPrerender,Hh as t,Df as u,Ka as v,ca as w,xa as x,Fa as y};