54 lines
599 KiB
JavaScript
54 lines
599 KiB
JavaScript
|
|
(()=>{var e,t,r={"./dist/build/webpack/alias/react-dom-server-experimental.js"(e,t,r){"use strict";var n;function a(){throw Object.defineProperty(Error("Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo."),"__NEXT_ERROR_CODE",{value:"E1021",enumerable:!1,configurable:!0})}t.version=(n=r("./dist/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js")).version,t.renderToReadableStream=n.renderToReadableStream,t.renderToString=a,t.renderToStaticMarkup=a,n.resume&&(t.resume=n.resume)},"./dist/compiled/@edge-runtime/cookies/index.js"(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i={},s={RequestCookies:()=>h,ResponseCookies:()=>p,parseCookie:()=>u,parseSetCookie:()=>c,stringifyCookie:()=>l};for(var o in s)t(i,o,{get:s[o],enumerable:!0});function l(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function u(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function c(e){if(!e)return;let[[t,r],...n]=u(e),{domain:a,expires:i,httponly:s,maxage:o,path:l,samesite:c,secure:h,partitioned:p,priority:m}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,v={name:t,value:decodeURIComponent(r),domain:a,...i&&{expires:new Date(i)},...s&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...c&&{sameSite:d.includes(g=(g=c).toLowerCase())?g:void 0},...h&&{secure:!0},...m&&{priority:f.includes(y=(y=m).toLowerCase())?y:void 0},...p&&{partitioned:!0}};let e={};for(let t in v)v[t]&&(e[t]=v[t]);return e}}e.exports=((e,i,s,o)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of n(i))a.call(e,l)||l===s||t(e,l,{get:()=>i[l],enumerable:!(o=r(i,l))||o.enumerable});return e})(t({},"__esModule",{value:!0}),i);var d=["strict","lax","none"],f=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of u(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>l(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>l(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a
|
|||
|
|
--${w}`,B),this._writecb=null,this._finalcb=null,this.write(d)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,r){let n;this._writecb=r,this._bparser.push(e,0),this._writecb&&(n=this._writecb,this._writecb=null,n&&n())}_destroy(e,t){this._hparser=null,this._bparser=y,e||(e=w(this));let r=this._fileStream;r&&(this._fileStream=null,r.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=b.bind(null,this,e):b(this,e)}}},506:function(e,t,r){let{Writable:n}=r(781),{getDecoder:a}=r(318);function i(e,t,r,n){if(r>=n)return n;if(-1===e._byte){let a=l[t[r++]];if(-1===a)return -1;if(a>=8&&(e._encode=2),r<n){let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((a<<4)+n):e._val+=String.fromCharCode((a<<4)+n),e._byte=-2,e._lastPos=r}else e._byte=a}else{let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+n):e._val+=String.fromCharCode((e._byte<<4)+n),e._byte=-2,e._lastPos=r}return r}function s(e,t,r,n){if(e._bytesKey>e.fieldNameSizeLimit){for(!e._keyTrunc&&e._lastPos<r&&(e._key+=t.latin1Slice(e._lastPos,r-1)),e._keyTrunc=!0;r<n;++r){let n=t[r];if(61===n||38===n)break;++e._bytesKey}e._lastPos=r}return r}function o(e,t,r,n){if(e._bytesVal>e.fieldSizeLimit){for(!e._valTrunc&&e._lastPos<r&&(e._val+=t.latin1Slice(e._lastPos,r-1)),e._valTrunc=!0;r<n&&38!==t[r];++r)++e._bytesVal;e._lastPos=r}return r}let l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports=class extends n{constructor(e){super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0});let t=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(t=e.conType.params.charset),this.charset=t;const r=e.limits;this.fieldSizeLimit=r&&"number"==typeof r.fieldSize?r.fieldSize:1048576,this.fieldsLimit=r&&"number"==typeof r.fields?r.fields:1/0,this.fieldNameSizeLimit=r&&"number"==typeof r.fieldNameSize?r.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=a(t)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,r){if(this._fields>=this.fieldsLimit)return r();let n=0,a=e.length;if(this._lastPos=0,-2!==this._byte){if(-1===(n=i(this,e,n,a)))return r(Error("Malformed urlencoded form"));if(n>=a)return r();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;n<a;)if(this._inKey){for(n=s(this,e,n,a);n<a;){switch(e[n]){case 61:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue;case 43:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._key+=" ",this._lastPos=n+1;break;
|
|||
|
|
${t}`))}function R(){let e=new AbortController;return e.abort(Object.defineProperty(new d.m("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function k(e){let t=l.workAsyncStorage.getStore(),r=o.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&i.use((0,u.W5)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let s=r.fallbackRouteParams;if(s&&s.size>0){var n,a;return n=t.route,a=r.dynamicTracking,void(function(){if(!p)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}(),a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:e}),i.unstable_postpone(y(n,e)))}break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new f.z(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new f.z(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new f.z(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function x(e){let t=l.workAsyncStorage.getStore(),r=o.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,o.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":i.use((0,u.W5)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new d.m(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new f.z(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new f.z(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new f.z(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let P=/\n\s+at Suspense \(<anonymous>\)/,C=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${c.ri} \\([^\\n]*\\)`),T=RegExp(`\\n\\s+at ${c.NJ}[\\n\\s]`),A=RegExp(`\\n\\s+at ${c.A$}[\\n\\s]`),O=RegExp(`\\n\\s+at ${c.DQ}[\\n\\s]`),j=RegExp(`\\n\\s+at ${h.B}[\\n\\s]`);function $(e,t,r,n){if(!O.test(t)){if(T.test(t)){r.hasDynamicMetadata=!0;return}if(A.test(t)){r.hasDynamicViewport=!0;return}if(C.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(P.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=L(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of <Su
|
|||
|
|
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|||
|
|
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function H(e,t,r,n){if(n.syncDynamicErrorWithStack)throw F(e,n.syncDynamicErrorWithStack),new s.f;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)F(e,n[t]);throw new s.f}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new s.f;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new s.f}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new s.f}function B(e,t,r,n,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:i}=r;if(i.length>0)return i;if(a.renderedIds.size<a.expectedIds.size){let{thrownErrorsOutsideBoundary:t,createInstantStack:n}=r;if(0===t.length){let t=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,r=null!==n?n():Error();return r.name="Error",r.message=t,[r]}if(1===t.length){let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,a=null!==n?n():Error();return a.name="Error",a.message=r,[a,t[0]]}{let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,a=null!==n?n():Error();return a.name="Error",a.message=r,[a,...t]}}if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new f.z(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},"./dist/esm/server/app-render/instant-validation/boundary-constants.js"(e,t,r){"use strict";r.d(t,{B:()=>n});let n="__next_instant_validation_boundary__"},"./dist/esm/server/app-render/instant-validation/instant-samples-client.js"(e,t,r){"use strict";r.r(t),r.d(t,{expectCompleteParamsInClientValidation:()=>l,instrumentParamsForClientValidation:()=>o,instrumentSearchParamsForClientValidation:()=>u});var n=r("../../app-render/work-unit-async-storage.external"),a=r("../../app-render/work-async-storage.external"),i=r("./dist/esm/server/app-render/instant-validation/instant-samples.js"),s=r("./dist/esm/server/app-render/instant-validation/instant-validation-error.js");function o(e){let t=a.workAsyncStorage.getStore(),r=n.workUnitAsyncStorage.getStore();if(t&&r&&"validation-client"===r.type&&r.validationSamples){let n=new Set(Object.keys(r.validationSamples.params??{}));return(0,i.createExhaustiveParamsProxy)(e,n,t.route)}return e}function l(e){let t=a.workAsyncStorage.getStore(),r=n.workUnitAsyncStorage.getStore();if(t&&r&&"validation-client"===r.type&&r.validationSamples){let n=r.fallbackRouteParams;if(n&&n.size>0){let r=Array.from(n.keys());(0,i.trackMissingSampleErrorAndThrow)(Object.defineProperty(new s.D(`Route "${t.route}" called ${e} but param${r.length>1?"s":""} ${r.map(e=>`"${e}"`).join(", ")} ${r.length>1?"are":"is"} not defined in the \`samples\` of \`unstable_instant\`. ${e} requires all route params to be provided.`),"__NEXT_ERROR_CODE",{value:"E1109",enumerable:!1,c
|
|||
|
|
<template
|
|||
|
|
data-next-error-message="Missing ${t.map(e=>`<${e}>`).join(t.length>1?" and ":"")} tags in the root layout.
|
|||
|
|
Read more at https://nextjs.org/docs/messages/missing-root-layout-tags"
|
|||
|
|
data-next-error-digest="NEXT_MISSING_ROOT_TAGS"
|
|||
|
|
data-next-error-stack=""
|
|||
|
|
></template>
|
|||
|
|
`))}})):null,es(),en(i)])}async function ec(e,{getServerInsertedHTML:t,getServerInsertedMetadata:r,deploymentId:n}){return el(e,[et(),new TransformStream({transform(e,t){z(e,H.CLOSED.BODY_AND_HTML)||z(e,H.CLOSED.BODY)||z(e,H.CLOSED.HTML)||(e=q(e,H.CLOSED.BODY),e=q(e,H.CLOSED.HTML),t.enqueue(e))}}),n?eo(n):null,en(t),er(r)])}async function ed(e,{inlinedDataStream:t,getServerInsertedHTML:r,getServerInsertedMetadata:n,deploymentId:a}){return el(e,[et(),a?eo(a):null,en(r),er(n),ea(t,!0),es()])}async function ef(e,{inlinedDataStream:t,getServerInsertedHTML:r,getServerInsertedMetadata:n,deploymentId:a}){let i,s,o,l;return el(e,[et(),a?eo(a):null,en(r),(i=V("1","/_full",void 0,void 0),s=`${X._A}=${i}`,o=`<script>__NEXT_CLIENT_RESUME=fetch(location.pathname+'?${s}',{credentials:'same-origin',headers:{'${X.hY}': '1','${X._V}': '1','${X.qm}': '/_full'}})</script>`,l=!1,new TransformStream({transform(e,t){if(l)return void t.enqueue(e);let r=B(e,H.CLOSED.HEAD);if(-1===r)return void t.enqueue(e);let n=G.encode(o),a=new Uint8Array(e.length+n.length);a.set(e.slice(0,r)),a.set(n,r),a.set(e.slice(r),r+n.length),t.enqueue(a),l=!0}})),er(n),ea(t,!0),es()])}async function eh(e,{delayDataUntilFirstHtmlChunk:t,inlinedDataStream:r,getServerInsertedHTML:n,getServerInsertedMetadata:a,deploymentId:i}){return el(e,[et(),i?eo(i):null,en(n),er(a),ea(r,t),es()])}var ep=a("./dist/esm/lib/constants.js");function em(e){for(let t of[ep.AA,ep.h])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}function eg(e,t,r){if(e){for(let n of(r&&(r=r.toLowerCase()),e))if(t===n.domain?.split(":",1)[0].toLowerCase()||r===n.defaultLocale.toLowerCase()||n.locales?.some(e=>e.toLowerCase()===r))return n}}function ey(e){return e.replace(/\/$/,"")||"/"}function ev(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function eb(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=ev(e);return`${t}${r}${n}${a}`}function ew(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=ev(e);return`${r}${t}${n}${a}`}function eS(e,t){if("string"!=typeof e)return!1;let{pathname:r}=ev(e);return r===t||r.startsWith(t+"/")}function e_(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}let eE=new WeakMap;function eR(e,t){let r;if(!t)return{pathname:e};let n=eE.get(t);n||(n=t.map(e=>e.toLowerCase()),eE.set(t,n));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),s=n.indexOf(i);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}function ek(e,t){if(!eS(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}let ex=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function eP(e,t){let r=new URL(String(e),t&&String(t));return ex.test(r.hostname)&&(r.hostname="localhost"),r}let eC=Symbol("NextURLInternal");class eT{constructor(e,t,r){let n,a;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,a=r||{}):a=r||t||{},this[eC]={url:eP(e,n??a.base),options:a,basePath:""},this.analyze()}analyze(){var e,t,r,n,a;let i=function(e,t){let{basePath:r,i18n:n,trailingSlash:a}=t.nextConfig??{},i={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):a};r&&eS(i.pathname,r)&&(i.pathname=ek(i.pathname,r),i.basePath=r);let s=i.pathname;if(i.pathname.startsWith("/_next/data/")&&i.pathname.endsWith(".json")){let e=i.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");i.buildId=e[0],s="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(i.pathname=s)}if(n){let e=t.i18nProvider?t.i18nProvider.analyze(i.pathname):eR(i.pathname,n.locales);i.locale=e.detectedLocale,i.pathname=e.pathname??i.pathname,!e.detectedLocale&&i.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(s):eR(s,n.locales)).detectedLocale&&(i.locale=e.detectedLocale)}return i}(this[eC].url.pathname,{nextConfig:this[eC].op
|
|||
|
|
|
|||
|
|
${t}`);return}if(e.message.includes("createContext is not a function"))return void tI(e,'createContext 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/context-in-server-component');for(let t of t$)if(RegExp(`\\b${t}\\b.*is not a function`).test(e.message))return void tI(e,`${t} 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 tM=a("./dist/esm/shared/lib/lazy-dynamic/bailout-to-csr.js"),tL=a("./dist/esm/client/components/hooks-server-context.js"),tU=a("./dist/esm/client/components/is-next-router-error.js"),tF=a("./dist/esm/server/app-render/dynamic-rendering.js");function tH(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function tB(e){let t;return tH(e)?e:Object.defineProperty(Error(!function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}(e)?e+"":(t=new WeakSet,JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r}))),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}let tz=(e,t)=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e?`${t}@${e.__NEXT_ERROR_CODE}`:t;function tq(e){return"object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message&&e.message.startsWith("This rendered a large document (>")}var tX=a("./dist/esm/server/app-render/instant-validation/instant-validation-error.js");function tV(e){if((0,tM.C)(e)||(0,tU.p)(e)||(0,tL.isDynamicServerError)(e)||(0,tF.AA)(e)||(0,tX.R)(e))return e.digest}function tW(e,t,r,n,a){return i=>{var s;if("string"==typeof i)return tj()(i).toString();if(eM(i))return;let o=tV(i);if(o)return o;if(tq(i))return void console.error(i);let l=tB(i),u=!1;if(l.digest?r.has(l.digest)&&(l=r.get(l.digest),u=!0):l.digest=tz(l,tj()(l.message+(l.stack||"")).toString()),r.has(l.digest)||r.set(l.digest,l),e&&tN(l),!(t&&(null==l||null==(s=l.message)?void 0:s.includes("The specific message is omitted in production builds to avoid leaking sensitive details.")))){let e=a??(0,I.getTracer)().getActiveScopeSpan();e&&(e.recordException(l),e.setAttribute("error.type",l.name),e.setStatus({code:I.SpanStatusCode.ERROR,message:l.message})),n(l,u)}return l.digest}}function tG(e,t,r,n,a,i){return(s,o)=>{var l;if(tq(s))return void console.error(s);let u=!0;if(n.push(s),eM(s))return;let c=tV(s);if(c)return c;let d=tB(s);if(d.digest?r.has(d.digest)&&(s=r.get(d.digest),u=!1):d.digest=tz(d,tj()(d.message+((null==o?void 0:o.componentStack)||d.stack||"")).toString()),e&&tN(d),!(t&&(null==d||null==(l=d.message)?void 0:l.includes("The specific message is omitted in production builds to avoid leaking sensitive details.")))&&u){let e=i??(0,I.getTracer)().getActiveScopeSpan();e&&(e.recordException(d),e.setAttribute("error.type",d.name),e.setStatus({code:I.SpanStatusCode.ERROR,message:d.message})),a(d,o)}return d.digest}}let tJ={catchall:"c","catchall-intercepted-(..)(..)":"ci(..)(..)","catchall-intercepted-(.)":"ci(.)","catchall-intercepted-(..)":"ci(..)","catchall-intercepted-(...)":"ci(...)","optional-catchall":"oc",dynamic:"d","dynamic-intercepted-(..)(..)":"di(..)(..)","dynamic-intercepted-(.)":"di(.)","dynamic-intercepted-(..)":"di(..)","dynamic-intercepted-(...)":"di(...)"};var tK=a("./dist/esm/shared/lib/router/utils/get-segment-param.js"),tY=a("./dist/compiled/superstruct/index.cjs"),tQ=a.n(tY);let tZ=tQ().enums(["c","ci(..)(..)","ci(.)","ci(..)","ci(...)","oc","d","di(..)(..)","di(.)","di(..)","di(...)"]),t0=tQ().union([tQ().string(),tQ().tuple([tQ().string(),tQ().string(),tZ,tQ().nullable(tQ().array(tQ().string()))])]),t1=tQ().tuple([t0,tQ().record(tQ().string(),tQ().lazy(()=>t1)),tQ().optional(tQ().nullable(tQ().tuple([tQ().string(),tQ().string()]))),tQ().optional(tQ().nullable(tQ().union([tQ().literal("refetch"),tQ().literal("inside-shared-layout"),tQ().literal("metadata-only")]))),tQ
|
|||
|
|
To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}));return}r(null,e)}});if(E)if(R){try{u=rA(_,S)}catch(e){return P(e)}let t=a("./dist/compiled/busboy/index.js")({defParamCharset:"utf8",headers:e.headers,limits:{fieldSize:C}}),r=new AbortController;try{[,c]=await Promise.all([g(w,O,t,{signal:r.signal}),n(t,S,{temporaryReferences:h})])}catch(e){throw r.abort(),e}}else{let e,t=new f,r=new Request("http://localhost",{method:"POST",headers:{"Content-Type":b},body:p.toWeb(t),duplex:"half"}),n=new AbortController;try{[,e]=await Promise.all([g(w,O,t,{signal:n.signal}),r.formData()])}catch(e){throw n.abort(),e}if(!1===function(e,t){let r=!1;for(let i of e.keys())if(i.startsWith(rj)){if(i.startsWith(rI)){var n,a;if(n=i,a=t,n.length!==rI.length+42||null==a[n.slice(rI.length)])return!1;r=!0}else if(i.startsWith(r$)){let n=rj+i.slice(r$.length)+":0",a=e.getAll(n);if(1!==a.length)return!1;let s=a[0];if("string"!=typeof s||function(e,t){if(!1===e.startsWith(rD))return!0;let r=rD.length,n=r+42,a=e.slice(r,n);return 42!==a.length||'"'!==e[n]||null==t[a]}(s,t))return!1;r=!0}}return r}(e,S))throw Object.defineProperty(Error(`Failed to find Server Action. This request might be from an older or newer deployment.
|
|||
|
|
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E975",enumerable:!1,configurable:!0});let a=await l(e,S);if("function"!=typeof a)return null;{v&&rm(v);let{actionResult:t}=await rT(a,[],i,s,$),r=await d(t,e,S);return{type:"done",result:void 0,formState:r}}}else{if(!R)return null;try{u=rA(_,S)}catch(e){return P(e)}let e=new f,t=[];await Promise.all([g(w,O,e),(async()=>{for await(let r of e)t.push(Buffer.from(r))})()]);let n=Buffer.concat(t).toString("utf-8");c=await r(n,S,{temporaryReferences:h})}}let d=(await r.__next_app__.require(u))[_],{type:f}=ry(_),{actionResult:p,skipPageRendering:m}=(performance.now(),await rT(d,c,i,s,$).finally(()=>{!function(e,{workStore:t,requestStore:r}){var n;let a=+(null!=(n=t.pendingRevalidatedTags)&&!!n.some(e=>void 0===e.profile)),i=+!!(0,tm.YX)(r.mutableCookies).length;a||i?e.setHeader(X.ZL,JSON.stringify(r_.Du)):void 0!==t.pathWasRevalidated&&t.pathWasRevalidated!==r_.e9&&e.setHeader(X.ZL,JSON.stringify(t.pathWasRevalidated))}(t,{workStore:i,requestStore:s})}));if(!R)return null;{let t=!!m&&(0,rb.C)(i);return{type:"done",result:await n(e,l,s,{actionResult:Promise.resolve(p),skipPageRendering:m,temporaryReferences:h,waitUntil:!1===t?void 0:t})}}})}catch(r){if((0,tk.n)(r)){let n=tx(r),a=tP(r);if(t.statusCode=rv.Q.SeeOther,u.statusCode=rv.Q.SeeOther,R)return{type:"done",result:await rx(e,t,O,n,a,l.renderOpts.basePath,i,s.url.pathname)};return t.setHeader("Location",n),{type:"done",result:eF.EMPTY}}if((0,tR.RM)(r)){if(t.statusCode=(0,tR.jT)(r),u.statusCode=t.statusCode,R){let t=Promise.reject(r);try{await t}catch{}return{type:"done",result:await n(e,l,s,{skipPageRendering:!1,actionResult:t,temporaryReferences:h})}}return{type:"not-found"}}if(R){t.statusCode=500,u.statusCode=500;let a=Promise.reject(r);try{await a}catch{}return{type:"done",result:await n(e,l,s,{actionResult:a,skipPageRendering:void 0===i.pathWasRevalidated||i.pathWasRevalidated===r_.e9||$,temporaryReferences:h})}}throw r}}async function rT(e,t,r,n,a){n.phase="action";let i=a;if(t.length>1e3)throw Object.defineProperty(Error(`Server Action arguments list is too long (${t.length}). Maximum allowed is 1000.`),"__NEXT_ERROR_CODE",{value:"E986",enumerable:!1,configurable:!0});try{let a=await eV.workUnitAsyncStorage.run(n,()=>e.apply(null,t));return i||=void 0===r.pathWasRevalidated||r.pathWasRevalidated===r_.e9,{actionResult:a,skipPageRendering:i}}finally{!i&&(n.phase="render",n.cookies=tm.Ck.seal((0,tm.m0)(n.mutableCookies)),r.isDraftMode=n.draftMode.isEnabled,await (0,rb.C)(r))}}function rA(e,t){var r;if(!e)throw Object.defineProperty(new eU.z("Missing 'next-action' header."),"__NEXT_ERROR_CODE",{value:"E664",enumerable:!1,configurable:!0});let n=null==(r=t[e])?void 0:r.id;if(!n)throw rO(e);return n}function rO(e){return Object.defineProperty(Error(`Failed to find Server Action${e?` "${e}"`:""}. This request might be from an older or newer deployment.
|
|||
|
|
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E974",enumerable:!1,configurable:!0})}let rj="$ACTION_",r$="$ACTION_REF_",rI="$ACTION_ID_",rD='{"id":"',rN=$.createContext(null);function rM(e){let t=(0,$.useContext)(rN);t&&t(e)}function rL(){let e=[],t=t=>{e.push(t)};return{ServerInsertedHTMLProvider:({children:e})=>(0,O.jsx)(rN.Provider,{value:t,children:e}),renderServerInsertedHTML:()=>e.map((e,t)=>(0,O.jsx)($.Fragment,{children:e()},"__next_server_inserted__"+t))}}function rU(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}var rF=a("./dist/compiled/react-dom-experimental/index.js");function rH(e,t,r,n,a,i,s){var o;let l,u=[],c={src:"",crossOrigin:r},d=((null==(o=e.rootMainFilesTree)?void 0:o[s])||e.rootMainFiles).map(rU);if(0===d.length)throw Object.defineProperty(Error("Invariant: missing bootstrap script. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E459",enumerable:!1,configurable:!0});if(n){c.src=`${t}/_next/`+d[0]+a,c.integrity=n[d[0]];for(let e=1;e<d.length;e++){let r=`${t}/_next/`+d[e]+a,i=n[d[e]];u.push(r,i)}l=()=>{for(let e=0;e<u.length;e+=2)rF.preinit(u[e],{as:"script",integrity:u[e+1],crossOrigin:r,nonce:i})}}else{c.src=`${t}/_next/`+d[0]+a;for(let e=1;e<d.length;e++){let r=`${t}/_next/`+d[e]+a;u.push(r)}l=()=>{for(let e=0;e<u.length;e++)rF.preinit(u[e],{as:"script",nonce:i,crossOrigin:r})}}return[l,c]}function rB({polyfills:e,renderServerInsertedHTML:t,serverCapturedErrors:r,tracingMetadata:n,basePath:a}){let i=0,s=e.map(e=>(0,O.jsx)("script",{...e},e.src)),o=(n||[]).map(({key:e,value:t},r)=>(0,O.jsx)("meta",{name:e,content:t},`next-trace-data-${r}`));return async function(){let e=[];for(;i<r.length;){let t=r[i];if(i++,(0,tR.RM)(t))e.push((0,O.jsx)("meta",{name:"robots",content:"noindex"},t.digest),null);else if((0,tk.n)(t)){let r=eb(tx(t),a),n=tC(t)===rv.Q.PermanentRedirect;r&&e.push((0,O.jsx)("meta",{id:"__next-page-redirect",httpEquiv:"refresh",content:`${+!n};url=${r}`},t.digest))}}let n=t();if(0===s.length&&0===o.length&&0===e.length&&Array.isArray(n)&&0===n.length)return"";let l=await (0,eH.renderToReadableStream)((0,O.jsxs)(O.Fragment,{children:[s,n,o,e]}),{progressiveChunkSize:1048576});return s=[],o=[],ee(l)}}let rz=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];function rq(e,t,r,n){let a=e.replace(/\.[^.]+$/,""),i=new Set,s=new Set,{entryCSSFiles:o,entryJSFiles:l}=eY(),u=o[a],c=null==l?void 0:l[a];if(u)for(let e of u)t.has(e.path)||(n&&t.add(e.path),i.add(e));if(c)for(let e of c)r.has(e)||(n&&r.add(e),s.add(e));return{styles:[...i],scripts:[...s]}}function rX(e,t,r){if(!e||!t)return null;let n=t.replace(/\.[^.]+$/,""),a=new Set,i=!1,s=e.app[n];if(s)for(let e of(i=!0,s))r.has(e)||(a.add(e),r.add(e));return a.size?[...a].sort():i&&0===r.size?[]:null}function rV(e){let[,t,{loading:r}]=e;return!!r||Object.values(t).some(e=>rV(e))}function rW(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=ry(e.$$id);return"use-cache"===t}async function rG(e){let t,r,n,{layout:a,page:i,defaultPage:s}=e[2],o=void 0!==a,l=void 0!==i,u=void 0!==s&&e[0]===t3.WO;return o?(t=await a[0](),r="layout",n=a[1]):l?(t=await i[0](),r="page",n=i[1]):u&&(t=await s[0](),r="page",n=s[1]),{mod:t,modType:r,filePath:n}}function rJ(e){return e.default||e}function rK(e){let[t,r,n,a]=e,{layout:i,template:s}=n,{page:o}=n;o=t===t3.WO?n.defaultPage:o;let l=i?.[1]||s?.[1]||o?.[1];return{page:o,segment:t,modules:n,conventionPath:l,parallelRoutes:r,staticSiblings:a}}function rY(e,t){let r="";return e.sharedContext.clientAssetToken&&(r+=`?dpl=${e.sharedContext.clientAssetToken}`),r}function rQ(e,t,r){let{componentMod:{createElement:n}}=t;return e.map((e,a)=>{let i="next",s=`${t.assetPrefix}/_next/${rU(e.path)}${rY(t,!0)}`;return e.inlined&&!t.parsedRequestHeaders.isRSCRequest?n("style",{key:a,nonce:t.nonce,precedence:i,href:s},e.content):(null==r||r.push(()=>{t.componentMod.preloadStyle(s,t.renderOpts.crossOrigin,t.nonce)}),n("link",{key:a,rel:"stylesheet",href:s,precedence:i,crossOrigin:t.re
|
|||
|
|
:root {
|
|||
|
|
--next-error-bg: #fff;
|
|||
|
|
--next-error-text: #171717;
|
|||
|
|
--next-error-title: #171717;
|
|||
|
|
--next-error-message: #171717;
|
|||
|
|
--next-error-digest: #666666;
|
|||
|
|
--next-error-btn-text: #fff;
|
|||
|
|
--next-error-btn-bg: #171717;
|
|||
|
|
--next-error-btn-border: none;
|
|||
|
|
--next-error-btn-secondary-text: #171717;
|
|||
|
|
--next-error-btn-secondary-bg: transparent;
|
|||
|
|
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|||
|
|
}
|
|||
|
|
@media (prefers-color-scheme: dark) {
|
|||
|
|
:root {
|
|||
|
|
--next-error-bg: #0a0a0a;
|
|||
|
|
--next-error-text: #ededed;
|
|||
|
|
--next-error-title: #ededed;
|
|||
|
|
--next-error-message: #ededed;
|
|||
|
|
--next-error-digest: #a0a0a0;
|
|||
|
|
--next-error-btn-text: #0a0a0a;
|
|||
|
|
--next-error-btn-bg: #ededed;
|
|||
|
|
--next-error-btn-border: none;
|
|||
|
|
--next-error-btn-secondary-text: #ededed;
|
|||
|
|
--next-error-btn-secondary-bg: transparent;
|
|||
|
|
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|||
|
|
`.replace(/\n\s*/g,"");function of(){return(0,O.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:on,children:(0,O.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}let oh=function({error:e}){let t=e?.digest,r=!!t;return s9({error:e}),(0,O.jsxs)("html",{id:"__next_error__",children:[(0,O.jsx)("head",{children:(0,O.jsx)("style",{dangerouslySetInnerHTML:{__html:od}})}),(0,O.jsxs)("body",{children:[(0,O.jsx)("div",{style:ot,children:(0,O.jsxs)("div",{style:or,children:[(0,O.jsx)(of,{}),(0,O.jsx)("h1",{style:oa,children:"This page couldn’t load"}),(0,O.jsx)("p",{style:oi,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,O.jsxs)("div",{style:oo,children:[(0,O.jsx)("form",{style:os,children:(0,O.jsx)("button",{type:"submit",style:ol,children:"Reload"})}),!r&&(0,O.jsx)("button",{type:"button",style:ou,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,O.jsxs)("p",{style:oc,children:["ERROR ",t]})]})]})};var op=a("./dist/esm/lib/framework/boundary-constants.js");let om={[op.NJ]:function({children:e}){return e},[op.A$]:function({children:e}){return e},[op.DQ]:function({children:e}){return e},[op.ri]:function({children:e}){return e}};om[op.NJ.slice(0)],om[op.A$.slice(0)],om[op.DQ.slice(0)];let og=om[op.ri.slice(0)],oy={};function ov({appRouterState:e}){return(0,$.useInsertionEffect)(()=>{process.env.__NEXT_APP_NAV_FAIL_HANDLING&&(window.next.__pendingUrl=void 0);let{tree:t,pushRef:r,canonicalUrl:n,renderedSearch:a}=e,i={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:a}};r.pendingPush&&nW(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(i,"",n)):window.history.replaceState(i,"",n),n2=t},[e]),(0,$.useEffect)(()=>{iS(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function ob(e){null==e&&(e={});let t=window.history.state,r=t?.__NA;r&&(e.__NA=r);let n=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function ow({headCacheNode:e}){let t=null!==e?e.head:null,r=null!==e?e.prefetchHead:null,n=null!==r?r:t;return(0,$.useDeferredValue)(t,n)}function oS({actionQueue:e,globalError:t,webSocket:r,staticIndicatorState:n}){let a,i=(0,n1.n5)(e),{canonicalUrl:s}=i,{searchParams:o,pathname:l}=(0,$.useMemo)(()=>{var e;let t=new URL(s,"http://n");return{searchParams:t.searchParams,pathname:eS(t.pathname,aa)?(e=t.pathname,process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!eS(e,aa)||0===ai.length||(e=e.slice(ai.length)).startsWith("/")||(e=`/${e}`),e):t.pathname}},[s]);(0,$.useEffect)(()=>{let e,t=(e=function e(t){let r=(e=>{if("string"==typeof e)return"children"===e?"":e.startsWith(t3.OG)?"page":e;let[t,,r]=e;switch(r){case"c":return`[...${t}]`;case"ci(..)(..)":return`(..)(..)[...${t}]`;case"ci(.)":return`(.)[...${t}]`;case"ci(..)":return`(..)[...${t}]`;case"ci(...)":return`(...)[...${t}]`;case"oc":return`[[...${t}]]`;case"d":default:return`[${t}]`;case"di(..)(..)":return`(..)(..)[${t}]`;case"di(.)":return`(.)[${t}]`;case"di(..)":return`(..)[${t}]`;case"di(...)":return`(...)[${t}]`}})(t[0]);if(r===t3.WO)return;if("page"===r)return[r];let n=t[1]??{},a=n.children?e(n.children):void 0;if(void 0!==a)return""===r?a:[as(r),...a];for(let[t,a]of Object.entries(n)){if("children"===t)continue;let n=e(a);if(void 0!==n)return""===r?n:[as(r),...n]}}(i.tree))?`/${e.join("/")}`:void 0;void 0!==t?window.next.__internal_src_page=t:delete window.next.__internal_src_page},[i.tree]),(0,$.useEffect)((
|
|||
|
|
|
|||
|
|
Original Error: ${n}`),"__NEXT_ERROR_CODE",{value:"E949",enumerable:!1,configurable:!0});e.stack="Error: "+e.message+a.slice(i),console.error(e);return}}}else"string"==typeof e&&(n=e);if(n)return void console.error(`Route ${t} errored during ${r}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
|
|||
|
|
|
|||
|
|
Original Message: ${n}`);console.error(`Route ${t} errored during ${r}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`),console.error(e)}}let oP=require("next/dist/server/node-environment-extensions/fast-set-immediate.external.js"),oC=!0;function oT(){console.warn("Next.js cannot guarantee that Cache Components will run as expected due to the current runtime's implementation of `setTimeout()`.\nPlease report a github issue here: https://github.com/vercel/next.js/issues/new/")}function oA(){}function oO(e,...t){return new Promise((r,n)=>{let a,i=function(e=0){{let n=!0,a=null,i=!1,s=!1;function t(e){return i=!0,oC&&(0,oP.unpatchedSetImmediate)(()=>{s=!0}),e()}function r(e){return oC&&s&&(oC=!1,oT()),e()}return function(s){if(i)throw Object.defineProperty(new eU.z("Cannot schedule more timers into a group that already executed"),"__NEXT_ERROR_CODE",{value:"E935",enumerable:!1,configurable:!0});let o=setTimeout(n?t:r,e,s);if(n=!1,!oC)return o;try{"_idleStart"in o&&"number"==typeof o._idleStart?null===a?a=o._idleStart:o._idleStart=a:(oC=!1,oT())}catch(e){console.error(Object.defineProperty(new eU.z("An unexpected error occurred while adjusting `_idleStart` on an atomic timer",{cause:e}),"__NEXT_ERROR_CODE",{value:"E933",enumerable:!1,configurable:!0})),oC=!1,oT()}return o}}}(),s=[];s.push(i(()=>{try{(0,oP.DANGEROUSLY_runPendingImmediatesAfterCurrentTask)(),a=e(),(0,s0.Q)(a)&&a.then(oA,oA)}catch(e){for(let e=1;e<s.length;e++)clearTimeout(s[e]);n(e)}}));for(let e=0;e<t.length;e++){let r=t[e],a=s.length;s.push(i(()=>{try{(0,oP.DANGEROUSLY_runPendingImmediatesAfterCurrentTask)(),r()}catch(e){for(;++a<s.length;)clearTimeout(s[a]);n(e)}}))}s.push(i(()=>{try{(0,oP.expectNoPendingImmediates)(),r(a)}catch(e){n(e)}}))})}let oj=require("next/dist/server/app-render/console-async-storage.external.js");class o${constructor(){this.count=0,this.earlyListeners=[],this.listeners=[],this.tickPending=!1,this.pendingTimeoutCleanup=null,this.subscribedSignals=null,this.invokeListenersIfNoPendingReads=()=>{if(this.pendingTimeoutCleanup=null,0===this.count){for(let e=0;e<this.listeners.length;e++)this.listeners[e]();this.listeners.length=0}}}noMorePendingCaches(){var e;let t,r;this.tickPending||(this.tickPending=!0,queueMicrotask(()=>process.nextTick(()=>{if(this.tickPending=!1,0===this.count){for(let e=0;e<this.earlyListeners.length;e++)this.earlyListeners[e]();this.earlyListeners.length=0}}))),this.pendingTimeoutCleanup&&this.pendingTimeoutCleanup(),this.pendingTimeoutCleanup=(e=this.invokeListenersIfNoPendingReads,r=setImmediate(()=>{t=clearTimeout.bind(null,setTimeout(e,0))}),t=clearImmediate.bind(null,r),()=>t())}inputReady(){return new Promise(e=>{this.earlyListeners.push(e),0===this.count&&this.noMorePendingCaches()})}cacheReady(){return new Promise(e=>{this.listeners.push(e),0===this.count&&this.noMorePendingCaches()})}beginRead(){if(this.count++,this.pendingTimeoutCleanup&&(this.pendingTimeoutCleanup(),this.pendingTimeoutCleanup=null),null!==this.subscribedSignals)for(let e of this.subscribedSignals)e.beginRead()}endRead(){if(0===this.count)throw Object.defineProperty(new eU.z("CacheSignal got more endRead() calls than beginRead() calls"),"__NEXT_ERROR_CODE",{value:"E678",enumerable:!1,configurable:!0});if(this.count--,0===this.count&&this.noMorePendingCaches(),null!==this.subscribedSignals)for(let e of this.subscribedSignals)e.endRead()}hasPendingReads(){return this.count>0}trackRead(e){this.beginRead();let t=this.endRead.bind(this);return e.then(t,t),e}subscribeToReads(e){if(e===this)throw Object.defineProperty(new eU.z("A CacheSignal cannot subscribe to itself"),"__NEXT_ERROR_CODE",{value:"E679",enumerable:!1,configurable:!0});null===this.subscribedSignals&&(this.subscribedSignals=new Set),this.subscribedSignals.add(e);for(let t=0;t<this.count;t++)e.beginRead();return this.unsubscribeFromReads.bind(this,e)}unsubscribeFromReads(e){this.subscribedSignals&&this.subscribedSignals.delete(e)}}func
|
|||
|
|
${e}`),V(y),y}if((0,tR.RM)(y))r.statusCode=(0,tR.jT)(y),o.statusCode=r.statusCode,t=(0,tR.qe)(r.statusCode);else if((0,tk.n)(y)){t="redirect",r.statusCode=tC(y),o.statusCode=r.statusCode;let n=eb(tx(y),v),a=new Headers;(0,tm.IN)(a,e.mutableCookies)&&Y("set-cookie",Array.from(a.values())),Y("location",n)}else f||(r.statusCode=500,o.statusCode=r.statusCode);let[m,g]=rH(b,d,S,T,rY(n,!1),h,"/_not-found/page");try{if(s=await eV.workUnitAsyncStorage.run(e,lP,a,n,k.has(y.digest)?null:y,t),l=eV.workUnitAsyncStorage.run(e,ts,n.componentMod,s,Z,{filterStackFrame:u,onError:I}),null===G)throw V(y),y}catch(e){throw V(e),e}try{let{stream:t,allReady:r}=await eV.workUnitAsyncStorage.run(e,tl,(0,O.jsx)(lT,{reactServerStream:l,ServerInsertedHTMLProvider:N,preinitScripts:m,nonce:h,images:n.renderOpts.images}),{nonce:h,bootstrapScriptContent:q,bootstrapScripts:[g],formState:i});return r.finally(()=>{X.isRecording()&&X.end()}),await (c={inlinedDataStream:tr(G.consume(),h,i),isStaticGeneration:!0!==A||!!C,deploymentId:n.sharedContext.deploymentId,getServerInsertedHTML:rB({polyfills:H,renderServerInsertedHTML:M,serverCapturedErrors:[],basePath:v,tracingMetadata:U}),getServerInsertedMetadata:L,validateRootLayout:!1},eu(t,c))}catch(e){throw V(e),e}}})}async function lI(e,t,r){let n=[],a=[],i=[],s=e.getReader(),o=!1;function l(){o||(o=!0,s.cancel())}r&&r.addEventListener("abort",l,{once:!0});try{for(;!o;){let{done:e,value:r}=await s.read();if(e){l();break}switch(t.currentStage){case nn.D.Before:throw Object.defineProperty(new eU.z("Unexpected stream chunk while in Before stage"),"__NEXT_ERROR_CODE",{value:"E942",enumerable:!1,configurable:!0});case nn.D.EarlyStatic:case nn.D.Static:n.push(r);case nn.D.EarlyRuntime:case nn.D.Runtime:a.push(r);case nn.D.Dynamic:i.push(r);break;case nn.D.Abandoned:break;default:t.currentStage}}}catch(e){if(!o)throw e}return{staticChunks:n,runtimeChunks:a,dynamicChunks:i}}async function lD(e,t){let r=0,n=e.getReader();for(t.onStage(nn.D.EarlyRuntime,()=>{n.cancel()});;){let{done:e,value:a}=await n.read();if(e)break;if(t.currentStage<=nn.D.Static)r+=a.byteLength;else{n.cancel();break}}return r}function lN(e,t,r,n){return{cookies:e.delayUntilStage(nn.D.Runtime,"cookies",t),earlyCookies:e.delayUntilStage(nn.D.EarlyRuntime,"cookies",t),mutableCookies:e.delayUntilStage(nn.D.Runtime,"cookies",r),earlyMutableCookies:e.delayUntilStage(nn.D.EarlyRuntime,"cookies",r),headers:e.delayUntilStage(nn.D.Runtime,"headers",n),earlyHeaders:e.delayUntilStage(nn.D.EarlyRuntime,"headers",n),sharedParamsParent:e.delayUntilStage(nn.D.Runtime,void 0,"<internal params>"),earlySharedParamsParent:e.delayUntilStage(nn.D.EarlyRuntime,void 0,"<internal params>"),sharedSearchParamsParent:e.delayUntilStage(nn.D.Runtime,void 0,"<internal searchParams>"),earlySharedSearchParamsParent:e.delayUntilStage(nn.D.EarlyRuntime,void 0,"<internal searchParams>"),connection:e.delayUntilStage(nn.D.Dynamic,"connection",void 0)}}async function lM(e,t,r,n,i,s,o,l,u){let c,{implicitTags:d,nonce:f,workStore:h}=o,p=new AbortController,m=new AbortController,g=new AbortController,{ServerInsertedHTMLProvider:y}=rL();c="prerender-client"===e?{type:"prerender-client",phase:"render",rootParams:n,fallbackRouteParams:i,implicitTags:d,renderSignal:g.signal,controller:p,cacheSignal:null,dynamicTracking:null,allowEmptyStaticShell:s,revalidate:ep.AR,expire:ep.AR,stale:ep.AR,tags:[...d.tags],prerenderResumeDataCache:null,renderResumeDataCache:null,hmrRefreshHash:void 0,varyParamsAccumulator:null}:{type:"validation-client",phase:"render",rootParams:n,implicitTags:d,renderSignal:g.signal,controller:p,cacheSignal:null,dynamicTracking:null,revalidate:ep.AR,expire:ep.AR,stale:ep.AR,tags:[...d.tags],prerenderResumeDataCache:null,renderResumeDataCache:null,hmrRefreshHash:void 0,varyParamsAccumulator:null,boundaryState:null,validationSamples:l,validationSampleTracking:u,fallbackRouteParams:i};let v=function(e,t,r){{let{Readable:n}=a("node:stream"),i=0,s=new n({read(){for(;i<e.length;)this.push(e[i]),i++}});return r.addEventListener("abort",()=>{for(;i<e.length;)s.push(e[i]),i++;for(;i<t.l
|
|||
|
|
${e}`),R}if(null===V)throw R;(0,tR.RM)(R)?(t.statusCode=(0,tR.jT)(R),n.statusCode=t.statusCode,e=(0,tR.qe)(t.statusCode)):(0,tk.n)(R)?(e="redirect",t.statusCode=tC(R),n.statusCode=t.statusCode,o=eb(tx(R),y),t.setHeader("location",o),W("location")):i||(t.statusCode=500,n.statusCode=t.statusCode);let[s,d]=rH(v,c,w,P,rY(r,!1),h,"/_not-found/page"),S=Q={type:"prerender-legacy",phase:"render",rootParams:j,implicitTags:f,revalidate:void 0!==(null==Q?void 0:Q.revalidate)?Q.revalidate:ep.AR,expire:void 0!==(null==Q?void 0:Q.expire)?Q.expire:ep.AR,stale:void 0!==(null==Q?void 0:Q.stale)?Q.stale:ep.AR,tags:[...(null==Q?void 0:Q.tags)||f.tags]},_=await eV.workUnitAsyncStorage.run(S,lP,a,r,H.has(R.digest)?void 0:R,e),E=eV.workUnitAsyncStorage.run(S,ts,b,_,Y,{filterStackFrame:u,onError:z});try{let{stream:e}=await eV.workUnitAsyncStorage.run(S,tl,(0,O.jsx)(lT,{reactServerStream:E,ServerInsertedHTMLProvider:$,preinitScripts:s,nonce:h,images:r.renderOpts.images}),{nonce:h,bootstrapScripts:[d],formState:null});if(lz(g)){let e=await Z(V.asStream());n.flightData=e,await lV(e,S,b,m,r.pagePath,n)}let t=V.consumeAsStream();return{digestErrorsMap:H,ssrErrors:q,stream:await (l={inlinedDataStream:tr(t,h,null),isStaticGeneration:!0,getServerInsertedHTML:rB({polyfills:L,renderServerInsertedHTML:D,serverCapturedErrors:[],basePath:y,tracingMetadata:M}),getServerInsertedMetadata:N,validateRootLayout:!1,deploymentId:r.sharedContext.deploymentId},eu(e,l)),dynamicAccess:null,collectedRevalidate:null!==Q?Q.revalidate:ep.AR,collectedExpire:null!==Q?Q.expire:ep.AR,collectedStale:K(null!==Q?Q.stale:ep.AR),collectedTags:null!==Q?Q.tags:null}}catch(e){throw e}}}let lX=async(e,t)=>{let r=rK(e).modules["global-error"];if(!r)throw Object.defineProperty(Error("Invariant: global-error module is required but not found in loader tree"),"__NEXT_ERROR_CODE",{value:"E983",enumerable:!1,configurable:!0});let{componentMod:{createElement:n}}=t,[a,i]=await rZ({ctx:t,filePath:r[1],getComponent:r[0],injectedCSS:new Set,injectedJS:new Set});return{GlobalError:a,styles:i}};async function lV(e,t,r,n,a,i){let s,{clientModules:o,edgeRscModuleMapping:l,rscModuleMapping:u}=eY(),c={moduleLoading:null,moduleMap:u,serverModuleMap:eZ()},d=oN(n.experimental)(t.stale),f=n.experimental.prefetchInlining;if(f)if(n.isBuildTimePrerendering)i.prefetchHints=s=await r.collectPrefetchHints(e,d,o,c,f.maxSize,f.maxBundleSize);else{var h;s=(null==(h=n.prefetchHints)?void 0:h[a])??null}else s=null;i.segmentData=await r.collectSegmentData(n.cacheComponents,e,d,o,c,!!n.experimental.prefetchInlining,s)}require("next/dist/build/adapter/setup-node-env.external.js"),a("./dist/esm/shared/lib/modern-browserslist-target.js");let lW="build-manifest.json";[...process?.features?.typescript?["next.config.mts"]:[]],Symbol("polyfills");let lG=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,lJ=/\/\[[^/]+\](?=\/|$)/;function lK(e,t=!0){return((0,nE.m1)(e)&&(e=(0,nE.$8)(e).interceptedRoute),t)?lJ.test(e):lG.test(e)}function lY(e){return eS(e||"/","/_next/data")&&"/index"===(e=e.replace(/\/_next\/data\/[^/]{1,}/,"").replace(/\.json$/,""))?"/":e}var lQ=a("./dist/esm/shared/lib/page-path/ensure-leading-slash.js");function lZ(e){let t=/^\/index(\/|$)/.test(e)&&!lK(e)?`/index${e}`:"/"===e?"/index":(0,lQ.A)(e);{let{posix:e}=a("path"),r=e.normalize(t);if(r!==t)throw new oV.MK(`Requested and resolved page mismatch: ${t} ${r}`)}return t}let l0=["ico","jpg","jpeg","png","svg"],l1=["jpg","jpeg","png"],l2=["jpg","jpeg","png","gif"],l3=["jpg","jpeg","png","gif"],l4=(e,t)=>t&&0!==t.length?`(?:\\.(${e.join("|")})|(\\.(${t.join("|")})))`:`(\\.(?:${e.join("|")}))`,l6=/^[\\/]favicon\.ico$/,l8=/^[\\/]robots\.txt$/,l9=/^[\\/]manifest\.json$/,l5=/^[\\/]manifest\.webmanifest$/,l7=/[\\/]sitemap\.xml$/,ue=new Map;var ut=a("./dist/esm/shared/lib/isomorphic/path.js"),ur=a.n(ut),un=a("./tags-manifest.external");class ua{constructor(e){this.fs=e,this.tasks=[]}findOrCreateTask(e){for(let t of this.tasks)if(t[0]===e)return t;let t=this.fs.mkdir(e);t.catch(()=>{});let r=[e,t,[]];return this.tasks.push(r),r}append(e,t){let r=this.findOrCreateTask(ur().dirname(e)),
|
|||
|
|
//# sourceMappingURL=app-page-experimental.runtime.prod.js.map
|