Files
scrap/node_modules/next/dist/compiled/next-server/app-route-experimental.runtime.dev.js
2024-09-24 03:52:46 +00:00

7 lines
64 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={"./dist/compiled/@edge-runtime/cookies/index.js":e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};function i(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 s(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,o]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=o?o:"true"))}catch{}}return t}function c(e){var t,r;if(!e)return;let[[n,o],...a]=s(e),{domain:i,expires:c,httponly:d,maxage:f,path:p,samesite:h,secure:m,partitioned:y,priority:g}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:n,value:decodeURIComponent(o),domain:i,...c&&{expires:new Date(c)},...d&&{httpOnly:!0},..."string"==typeof f&&{maxAge:Number(f)},path:p,...h&&{sameSite:l.includes(t=(t=h).toLowerCase())?t:void 0},...m&&{secure:!0},...g&&{priority:u.includes(r=(r=g).toLowerCase())?r:void 0},...y&&{partitioned:!0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{RequestCookies:()=>d,ResponseCookies:()=>f,parseCookie:()=>s,parseSetCookie:()=>c,stringifyCookie:()=>i}),e.exports=((e,a,i,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let c of n(a))o.call(e,c)||c===i||t(e,c,{get:()=>a[c],enumerable:!(s=r(a,c))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var l=["strict","lax","none"],u=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of s(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])=>i(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])=>i(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("; ")}},f=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let o=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,a,i=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}(o)){let t=c(e);t&&this._parsed.set(t.name,t)}}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.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,o=this._parsed;return o.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=i(r);t.append("set-cookie",e)}}(o,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(i).join("; ")}}},"./dist/compiled/cookie/index.js":e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var t={};(()=>{/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var o={},a=t.split(n),i=(r||{}).decode||e,s=0;s<a.length;s++){var c=a[s],l=c.indexOf("=");if(!(l<0)){var u=c.substr(0,l).trim(),d=c.substr(++l,c.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==o[u]&&(o[u]=function(e,t){try{return t(e)}catch(t){return e}}(d,i))}}return o},t.serialize=function(e,t,n){var a=n||{},i=a.encode||r;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var s=i(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var c=e+"="+s;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(a.domain){if(!o.test(a.domain))throw TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invalid");c+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(c+="; HttpOnly"),a.secure&&(c+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var e=decodeURIComponent,r=encodeURIComponent,n=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/})(),e.exports=t})()},"./dist/compiled/react-experimental/cjs/react.development.js":(e,t,r)=>{"use strict";e=r.nmd(e),function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r,n,o,a,i,s,c,l,u,d,f,p,h={current:null},m={current:null},y={transition:null},g={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1},v={},b=null;v.setExtraStackFrame=function(e){b=e},v.getCurrentStack=null,v.getStackAddendum=function(){var e="";b&&(e+=b);var t=v.getCurrentStack;return t&&(e+=t()||""),e};var w={ReactCurrentDispatcher:h,ReactCurrentCache:m,ReactCurrentBatchConfig:y,ReactCurrentOwner:{current:null}};function x(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];R("warn",e,r)}function S(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];R("error",e,r)}function R(e,t,r){var n=w.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}w.ReactDebugCurrentFrame=v,w.ReactCurrentActQueue=g;var _=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),N=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.debug_trace_mode"),H=Symbol.for("react.offscreen"),I=Symbol.for("react.cache"),U=Symbol.for("react.postpone"),F=Symbol.iterator;function q(e){if(null===e||"object"!=typeof e)return null;var t=F&&e[F]||e["@@iterator"];return"function"==typeof t?t:null}var B={};function G(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;B[o]||(S("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),B[o]=!0)}var z={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){G(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){G(e,"replaceState")},enqueueSetState:function(e,t,r,n){G(e,"setState")}},V=Object.assign,W={};function Y(e,t,r){this.props=e,this.context=t,this.refs=W,this.updater=r||z}Object.freeze(W),Y.prototype.isReactComponent={},Y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var J={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},K=function(e,t){Object.defineProperty(Y.prototype,e,{get:function(){x("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var X in J)J.hasOwnProperty(X)&&K(X,J[X]);function Q(){}function Z(e,t,r){this.props=e,this.context=t,this.refs=W,this.updater=r||z}Q.prototype=Y.prototype;var ee=Z.prototype=new Q;ee.constructor=Z,V(ee,Y.prototype),ee.isPureReactComponent=!0;var et=Array.isArray;function er(e){if(function(e){try{return!1}catch(e){return!0}}(0))return S("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"),""+e}function en(e){return e.displayName||"Context"}var eo=Symbol.for("react.client.reference");function ea(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===eo?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case P:return"Profiler";case O:return"StrictMode";case A:return"Suspense";case $:return"SuspenseList";case I:return"Cache"}if("object"==typeof e)switch("number"==typeof e.tag&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case T:return en(e._context)+".Provider";case N:return en(e)+".Consumer";case E:break;case j:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case M:var t=e.displayName||null;if(null!==t)return t;return ea(e.type)||"Memo";case D:var r=e._payload,n=e._init;try{return ea(n(r))}catch(e){}}return null}var ei=Object.prototype.hasOwnProperty,es=Symbol.for("react.client.reference");function ec(e){return"string"==typeof e||"function"==typeof e||e===k||e===P||e===O||e===A||e===$||e===H||e===I||"object"==typeof e&&null!==e&&(e.$$typeof===D||e.$$typeof===M||e.$$typeof===N||e.$$typeof===T||e.$$typeof===j||e.$$typeof===es||void 0!==e.getModuleId)}var el=0;function eu(){}eu.__reactDisabledLog=!0;var ed=w.ReactCurrentDispatcher;function ef(e,t){if(void 0===l)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);l=r&&r[1]||""}return"\n"+l+e}var ep=!1;function eh(e,t){if(!e||ep)return"";var l,d=u.get(e);if(void 0!==d)return d;ep=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0,l=ed.current,ed.current=null,function(){if(0===el){r=console.log,n=console.info,o=console.warn,a=console.error,i=console.group,s=console.groupCollapsed,c=console.groupEnd;var e={configurable:!0,enumerable:!0,value:eu,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}el++}();var p={DetermineComponentFrameRoot:function(){var r;try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}var o=e();o&&"function"==typeof o.catch&&o.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});try{var m=p.DetermineComponentFrameRoot(),y=m[0],g=m[1];if(y&&g){for(var v=y.split("\n"),b=g.split("\n"),w=0,x=0;w<v.length&&!v[w].includes("DetermineComponentFrameRoot");)w++;for(;x<b.length&&!b[x].includes("DetermineComponentFrameRoot");)x++;if(w===v.length||x===b.length)for(w=v.length-1,x=b.length-1;w>=1&&x>=0&&v[w]!==b[x];)x--;for(;w>=1&&x>=0;w--,x--)if(v[w]!==b[x]){if(1!==w||1!==x)do if(w--,--x<0||v[w]!==b[x]){var R="\n"+v[w].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),"function"==typeof e&&u.set(e,R),R}while(w>=1&&x>=0)break}}}finally{ep=!1,ed.current=l,function(){if(0==--el){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},e,{value:r}),info:V({},e,{value:n}),warn:V({},e,{value:o}),error:V({},e,{value:a}),group:V({},e,{value:i}),groupCollapsed:V({},e,{value:s}),groupEnd:V({},e,{value:c})})}el<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=f}var _=e?e.displayName||e.name:"",C=_?ef(_):"";return"function"==typeof e&&u.set(e,C),C}u=new("function"==typeof WeakMap?WeakMap:Map);var em=w.ReactCurrentOwner,ey=w.ReactDebugCurrentFrame,eg=Symbol.for("react.client.reference");function ev(e){if(ei.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function eb(e){if(ei.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function ew(){var e=ea(this.type);p[e]||(p[e]=!0,S("Accessing element.ref is no longer supported. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));var t=this.props.ref;return void 0!==t?t:null}function ex(e,t,r,n,o,a,i){var s,c,l=i.ref;return s=void 0!==l?l:null,c={$$typeof:_,type:e,key:t,props:i,_owner:a},null!==s?Object.defineProperty(c,"ref",{enumerable:!1,get:ew}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function eS(e,t,r){if(ec(e))for(var n=2;n<arguments.length;n++)e_(arguments[n],e);else{var o,a,i="";((void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e)?a="null":et(e)?a="array":void 0!==e&&e.$$typeof===_?(a="<"+(ea(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,S("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,i)}var s={},c=null;if(null!=t)for(o in ev(t)&&function(e,t){if("string"==typeof e.ref&&em.current&&t&&em.current.stateNode!==t){var r=ea(em.current.type);f[r]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ea(em.current.type),e.ref),f[r]=!0)}}(t,t.__self),eb(t)&&(er(t.key),c=""+t.key),t)ei.call(t,o)&&"key"!==o&&"__self"!==o&&"__source"!==o&&(s[o]=t[o]);var l=arguments.length-2;if(1===l)s.children=r;else if(l>1){for(var u=Array(l),p=0;p<l;p++)u[p]=arguments[p+2];Object.freeze&&Object.freeze(u),s.children=u}if(e&&e.defaultProps){var h=e.defaultProps;for(o in h)void 0===s[o]&&(s[o]=h[o])}if(c){var m,y="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&((m=function(){d||(d=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",y))}).isReactWarning=!0,Object.defineProperty(s,"key",{get:m,configurable:!0}))}var g=ex(e,c,null,void 0,void 0,em.current,s);return e===k&&function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){eP(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),eP(null);break}}}(g),g}f={},p={};var eR=!1;function e_(e,t){if("object"==typeof e&&e){if(e.$$typeof===eg);else if(et(e))for(var r=0;r<e.length;r++){var n=e[r];eC(n)&&eO(n,t)}else if(eC(e))e._store&&(e._store.validated=!0);else{var o=q(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)eC(a.value)&&eO(a.value,t)}}}function eC(e){return"object"==typeof e&&null!==e&&e.$$typeof===_}var ek={};function eO(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=function(){if(em.current){var e=ea(em.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}();if(!t){var r=ea(e);r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!ek[r]){ek[r]=!0;var n="";e&&e._owner&&e._owner!==em.current&&(n=" It was passed a child from "+ea(e._owner.type)+"."),eP(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),eP(null)}}}function eP(e){if(e){var t=e._owner,r=function e(t,r){if(null==t)return"";if("function"==typeof t)return eh(t,!!((n=t.prototype)&&n.isReactComponent));if("string"==typeof t)return ef(t);switch(t){case A:return ef("Suspense");case $:return ef("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case j:return eh(t.render,!1);case M:return e(t.type,r);case D:var n,o=t._payload,a=t._init;try{return e(a(o),r)}catch(e){}}return""}(e.type,t?t.type:null);ey.setExtraStackFrame(r)}else ey.setExtraStackFrame(null)}var eT=!1,eE=/\/+/g;function eN(e){return e.replace(eE,"$&/")}function ej(e,t){if("object"==typeof e&&null!==e&&null!=e.key){var r,n;return er(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})}return t.toString(36)}function eA(){}function e$(e,t,r){if(null==e)return e;var n=[],o=0;return function e(t,r,n,o,a){var i=typeof t;("undefined"===i||"boolean"===i)&&(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case _:case C:s=!0;break;case D:var c=t._payload;return e((0,t._init)(c),r,n,o,a)}}if(s){var l,u,d=t,f=a(d),p=""===o?"."+ej(d,0):o;if(et(f)){var h="";null!=p&&(h=eN(p)+"/"),e(f,r,h,"",function(e){return e})}else null!=f&&(eC(f)&&(f.key&&(!d||d.key!==f.key)&&er(f.key),l=f,u=n+(f.key&&(!d||d.key!==f.key)?eN(""+f.key)+"/":"")+p,f=ex(l.type,u,null,void 0,void 0,l._owner,l.props)),r.push(f));return 1}var m=0,y=""===o?".":o+":";if(et(t))for(var g=0;g<t.length;g++)w=y+ej(b=t[g],g),m+=e(b,r,n,w,a);else{var v=q(t);if("function"==typeof v){var b,w,S,R=t;v===R.entries&&(eT||x("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),eT=!0);for(var k=v.call(R),O=0;!(S=k.next()).done;)w=y+ej(b=S.value,O++),m+=e(b,r,n,w,a)}else if("object"===i){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(eA,eA):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,o,a);var P=String(t);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===P?"object with keys {"+Object.keys(t).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}}return m}(e,n,"","",function(e){return t.call(r,e,o++)}),n}function eM(e){if(-1===e._status){var t=(0,e._result)();t.then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status){var r=e._result;return void 0===r&&S("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||S("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function eD(){return new WeakMap}function eL(){return{s:0,v:void 0,o:null,p:null}}function eH(){var e=h.current;return null===e&&S("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function eI(e,t){return eH().useOptimistic(e,t)}function eU(){}var eF="function"==typeof reportError?reportError:function(e){console.error(e)},eq=!1,eB=null;function eG(t){if(null===eB)try{var r=("require"+Math.random()).slice(0,7);eB=(e&&e[r]).call(e,"timers").setImmediate}catch(e){eB=function(e){!1===eq&&(eq=!0,"undefined"==typeof MessageChannel&&S("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return eB(t)}var ez=0,eV=!1;function eW(e,t){t!==ez-1&&S("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ez=t}function eY(e,t,r){var n=g.current;if(null!==n){if(0!==n.length)try{eK(n),eG(function(){return eY(e,t,r)})}catch(e){r(e)}else g.current=null,t(e)}else t(e)}var eJ=!1;function eK(e){if(!eJ){eJ=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){g.didUsePromise=!1;var n=r(!1);if(null!==n){if(g.didUsePromise){e[t]=r,e.splice(0,t);return}r=n}else break}e.length=0}catch(r){throw e.splice(0,t+1),r}finally{eJ=!1}}}var eX="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:eG;t.Children={map:e$,forEach:function(e,t,r){e$(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return e$(e,function(){t++}),t},toArray:function(e){return e$(e,function(e){return e})||[]},only:function(e){if(!eC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=Y,t.Fragment=k,t.Profiler=P,t.PureComponent=Z,t.StrictMode=O,t.Suspense=A,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w,t.act=function(e){var t,r=g.isBatchingLegacy,n=g.current,o=ez;ez++;var a=g.current=null!==n?n:[];g.isBatchingLegacy=!0;var i=!1;try{g.didScheduleLegacyUpdate=!1,t=e();var s=g.didScheduleLegacyUpdate;!r&&s&&eK(a),g.isBatchingLegacy=r}catch(e){throw g.isBatchingLegacy=r,eW(n,o),e}if(null!==t&&"object"==typeof t&&"function"==typeof t.then){var c=t;return eX(function(){i||eV||(eV=!0,S("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){i=!0,c.then(function(r){if(eW(n,o),0===o)try{eK(a),eG(function(){return eY(r,e,t)})}catch(e){t(e)}else e(r)},function(e){eW(n,o),t(e)})}}}var l=t;return eW(n,o),0===o&&(eK(a),0!==a.length&&eX(function(){i||eV||(eV=!0,S("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),g.current=null),{then:function(e,t){i=!0,0===o?(g.current=a,eG(function(){return eY(l,e,t)})):e(l)}}},t.cache=function(e){return function(){var t,r=m.current;if(!r)return e.apply(null,arguments);var n=r.getCacheForType(eD),o=n.get(e);void 0===o?(t=eL(),n.set(e,t)):t=o;for(var a=0,i=arguments.length;a<i;a++){var s=arguments[a];if("function"==typeof s||"object"==typeof s&&null!==s){var c=t.o;null===c&&(t.o=c=new WeakMap);var l=c.get(s);void 0===l?(t=eL(),c.set(s,t)):t=l}else{var u=t.p;null===u&&(t.p=u=new Map);var d=u.get(s);void 0===d?(t=eL(),u.set(s,t)):t=d}}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var f=e.apply(null,arguments),p=t;return p.s=1,p.v=f,f}catch(e){var h=t;throw h.s=2,h.v=e,e}}},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n,o,a=V({},e.props),i=e.key,s=e._owner;if(null!=t)for(n in ev(t)&&(s=em.current),eb(t)&&(er(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)ei.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&!("ref"===n&&void 0===t.ref)&&(void 0===t[n]&&void 0!==o?a[n]=o[n]:a[n]=t[n]);var c=arguments.length-2;if(1===c)a.children=r;else if(c>1){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}for(var d=ex(e.type,i,null,void 0,void 0,s,a),f=2;f<arguments.length;f++)e_(arguments[f],d.type);return d},t.createContext=function(e){var t={$$typeof:N,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};t.Provider={$$typeof:T,_context:t};var r={$$typeof:N,_context:t};return Object.defineProperties(r,{Provider:{get:function(){return t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){}}}),t.Consumer=r,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=eS,t.createFactory=function(e){var t=eS.bind(null,e);return t.type=e,eR||(eR=!0,x("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return x("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.experimental_useEffectEvent=function(e){return eH().useEffectEvent(e)},t.experimental_useOptimistic=function(e,t){return S("useOptimistic is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."),eI(e,t)},t.forwardRef=function(e){null!=e&&e.$$typeof===M?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?S("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&S("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&S("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,r={$$typeof:j,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=eC,t.lazy=function(e){var t,r,n={$$typeof:D,_payload:{_status:-1,_result:e},_init:eM};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){S("It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){S("It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){ec(e)||S("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:M,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=y.transition,n=new Set;y.transition={_callbacks:n};var o=y.transition;y.transition._updatedFibers=new Set;try{var a=e();"object"==typeof a&&null!==a&&"function"==typeof a.then&&(n.forEach(function(e){return e(o,a)}),a.then(eU,eF))}catch(e){eF(e)}finally{(function(e,t){if(null===e&&t._updatedFibers){var r=t._updatedFibers.size;t._updatedFibers.clear(),r>10&&x("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")}})(r,o),y.transition=r}},t.unstable_Activity=H,t.unstable_Cache=I,t.unstable_DebugTracingMode=L,t.unstable_SuspenseList=$,t.unstable_getCacheForType=function(e){var t=m.current;return t?t.getCacheForType(e):e()},t.unstable_getCacheSignal=function(){var e=m.current;if(!e){var t=new AbortController,r=Error("This CacheSignal was requested outside React which means that it is immediately aborted.");return t.abort(r),t.signal}return e.getCacheSignal()},t.unstable_postpone=function(e){var t=Error(e);throw t.$$typeof=U,t},t.unstable_useCacheRefresh=function(){return eH().useCacheRefresh()},t.unstable_useMemoCache=function(e){return eH().useMemoCache(e)},t.use=function(e){return eH().use(e)},t.useCallback=function(e,t){return eH().useCallback(e,t)},t.useContext=function(e){var t=eH();return e.$$typeof===E&&S("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return eH().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return eH().useDeferredValue(e,t)},t.useEffect=function(e,t){return eH().useEffect(e,t)},t.useId=function(){return eH().useId()},t.useImperativeHandle=function(e,t,r){return eH().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return eH().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return eH().useLayoutEffect(e,t)},t.useMemo=function(e,t){return eH().useMemo(e,t)},t.useOptimistic=eI,t.useReducer=function(e,t,r){return eH().useReducer(e,t,r)},t.useRef=function(e){return eH().useRef(e)},t.useState=function(e){return eH().useState(e)},t.useSyncExternalStore=function(e,t,r){return eH().useSyncExternalStore(e,t,r)},t.useTransition=function(){return eH().useTransition()},t.version="18.3.0-experimental-14898b6a9-20240318","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()},"./dist/compiled/react-experimental/index.js":(e,t,r)=>{"use strict";e.exports=r("./dist/compiled/react-experimental/cjs/react.development.js")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n](a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";r.r(n),r.d(n,{AppRouteRouteModule:()=>eO,default:()=>eP,hasNonStaticMethods:()=>eT});var e,t,o,a,i,s,c,l,u,d,f,p,h,m,y,g={};r.r(g),r.d(g,{DynamicServerError:()=>B,isDynamicServerError:()=>G});var v={};r.r(v),r.d(v,{AppRouterContext:()=>eS,GlobalLayoutRouterContext:()=>e_,LayoutRouterContext:()=>eR,MissingSlotContext:()=>ek,TemplateContext:()=>eC});var b={};r.r(b),r.d(b,{appRouterContext:()=>v});class w{constructor({userland:e,definition:t}){this.userland=e,this.definition=t}}let x="Next-Action",S=[["RSC"],["Next-Router-State-Tree"],["Next-Router-Prefetch"]];class R{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}class _ extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new _}}class C extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return R.get(t,r,n);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return R.get(t,a,n)},set(t,r,n,o){if("symbol"==typeof r)return R.set(t,r,n,o);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);return R.set(t,i??r,n,o)},has(t,r){if("symbol"==typeof r)return R.has(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==o&&R.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return R.deleteProperty(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===o||R.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return _.callable;default:return R.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new C(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}var k=r("./dist/compiled/@edge-runtime/cookies/index.js");let O=require("next/dist/client/components/static-generation-async-storage.external.js");class P extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new P}}class T{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return P.callable;default:return R.get(e,t,r)}}})}}let E=Symbol.for("next.mutated.cookies");function N(e,t){let r=function(e){let t=e[E];return t&&Array.isArray(t)&&0!==t.length?t:[]}(t);if(0===r.length)return!1;let n=new k.ResponseCookies(e),o=n.getAll();for(let e of r)n.set(e);for(let e of o)n.set(e);return!0}class j{static wrap(e,t){let r=new k.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],o=new Set,a=()=>{let e=O.staticGenerationAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),n=r.getAll().filter(e=>o.has(e.name)),t){let e=[];for(let t of n){let r=new k.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case E:return n;case"delete":return function(...t){o.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{a()}};case"set":return function(...t){o.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{a()}};default:return R.get(e,t,r)}}})}}let A="_N_T_",$={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"};({...$,GROUP:{serverOnly:[$.reactServerComponents,$.actionBrowser,$.appMetadataRoute,$.appRouteHandler,$.instrument],clientOnly:[$.serverSideRendering,$.appPagesBrowser],nonClientServerTarget:[$.middleware,$.api],app:[$.reactServerComponents,$.actionBrowser,$.appMetadataRoute,$.appRouteHandler,$.serverSideRendering,$.appPagesBrowser,$.shared,$.instrument]}});let M=require("next/dist/server/lib/trace/tracer");(function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"})(e||(e={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(t||(t={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(o||(o={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.createComponentTree="NextNodeServer.createComponentTree",e.clientComponentLoading="NextNodeServer.clientComponentLoading",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.startResponse="NextNodeServer.startResponse",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(a||(a={})),(i||(i={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(s||(s={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(c||(c={})),(l||(l={})).executeRoute="Router.executeRoute",(u||(u={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(f||(f={})),(p||(p={})).execute="Middleware.execute";let D="__prerender_bypass";Symbol("__next_preview_data"),Symbol(D);class L{constructor(e,t,r,n){var o;let a=e&&function(e,t){let r=C.from(e.headers);return{isOnDemandRevalidate:r.get("x-prerender-revalidate")===t.previewModeId,revalidateOnlyGenerated:r.has("x-prerender-revalidate-if-generated")}}(t,e).isOnDemandRevalidate,i=null==(o=r.get(D))?void 0:o.value;this.isEnabled=!!(!a&&i&&e&&(i===e.previewModeId||"development-id"===e.previewModeId)),this._previewModeId=null==e?void 0:e.previewModeId,this._mutableCookies=n}enable(){if(!this._previewModeId)throw Error("Invariant: previewProps missing previewModeId this should never happen");this._mutableCookies.set({name:D,value:this._previewModeId,httpOnly:!0,sameSite:"lax",secure:!1,path:"/"})}disable(){this._mutableCookies.set({name:D,value:"",httpOnly:!0,sameSite:"lax",secure:!1,path:"/",expires:new Date(0)})}}function H(e,t){if("x-middleware-set-cookie"in e.headers&&"string"==typeof e.headers["x-middleware-set-cookie"]){let r=e.headers["x-middleware-set-cookie"],n=new Headers;for(let e of function(e){var t,r,n,o,a,i=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}(r))n.append("set-cookie",e);for(let e of new k.ResponseCookies(n).getAll())t.set(e)}}let I={wrap(e,{req:t,res:r,renderOpts:n},o){let a;function i(e){r&&r.setHeader("Set-Cookie",e)}n&&"previewProps"in n&&(a=n.previewProps);let s={},c={get headers(){return s.headers||(s.headers=function(e){let t=C.from(e);for(let e of S)t.delete(e.toString().toLowerCase());return C.seal(t)}(t.headers)),s.headers},get cookies(){if(!s.cookies){let e=new k.RequestCookies(C.from(t.headers));H(t,e),s.cookies=T.seal(e)}return s.cookies},get mutableCookies(){if(!s.mutableCookies){let e=function(e,t){let r=new k.RequestCookies(C.from(e));return j.wrap(r,t)}(t.headers,(null==n?void 0:n.onUpdateCookies)||(r?i:void 0));H(t,e),s.mutableCookies=e}return s.mutableCookies},get draftMode(){return s.draftMode||(s.draftMode=new L(a,t,this.cookies,this.mutableCookies)),s.draftMode},reactLoadableManifest:(null==n?void 0:n.reactLoadableManifest)||{},assetPrefix:(null==n?void 0:n.assetPrefix)||""};return e.run(c,o,c)}};var U=r("./dist/compiled/react-experimental/index.js"),F=r.n(U);let q="DYNAMIC_SERVER_USAGE";class B extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=q}}function G(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===q}class z extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}let V="function"==typeof F().unstable_postpone;function W(e,t){let r=new URL(e.urlPathname,"http://n").pathname;if(e.isUnstableCacheCallback)throw Error(`Route ${r} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new z(`Route ${r} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)J(e.prerenderState,t,r);else if(e.revalidate=0,e.isStaticGeneration){let n=new B(`Route ${r} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}function Y(e,t){e.prerenderState&&J(e.prerenderState,t,e.urlPathname)}function J(e,t,r){(function(){if(!V)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")})();let n=`Route ${r} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),F().unstable_postpone(n)}let K={wrap(e,{urlPathname:t,renderOpts:r,requestEndedState:n},o){let a=!r.supportsDynamicResponse&&!r.isDraftMode&&!r.isServerAction,i=a&&r.experimental.ppr?{isDebugSkeleton:r.isDebugPPRSkeleton,dynamicAccesses:[]}:null,s={isStaticGeneration:a,urlPathname:t,pagePath:r.originalPathname,incrementalCache:r.incrementalCache||globalThis.__incrementalCache,isRevalidate:r.isRevalidate,isPrerendering:r.nextExport,fetchCache:r.fetchCache,isOnDemandRevalidate:r.isOnDemandRevalidate,isDraftMode:r.isDraftMode,prerenderState:i,requestEndedState:n};return r.store=s,e.run(s,o,s)}};function X(){return new Response(null,{status:400})}function Q(){return new Response(null,{status:405})}let Z=["GET","HEAD","OPTIONS","POST","PUT","DELETE","PATCH"],{env:ee,stdout:et}=(null==(h=globalThis)?void 0:h.process)??{},er=ee&&!ee.NO_COLOR&&(ee.FORCE_COLOR||(null==et?void 0:et.isTTY)&&!ee.CI&&"dumb"!==ee.TERM),en=(e,t,r,n)=>{let o=e.substring(0,n)+r,a=e.substring(n+t.length),i=a.indexOf(t);return~i?o+en(a,t,r,i):o+a},eo=(e,t,r=e)=>er?n=>{let o=""+n,a=o.indexOf(t,e.length);return~a?e+en(o,t,r,a)+t:e+o+t}:String,ea=eo("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m");eo("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),eo("\x1b[3m","\x1b[23m"),eo("\x1b[4m","\x1b[24m"),eo("\x1b[7m","\x1b[27m"),eo("\x1b[8m","\x1b[28m"),eo("\x1b[9m","\x1b[29m"),eo("\x1b[30m","\x1b[39m");let ei=eo("\x1b[31m","\x1b[39m"),es=eo("\x1b[32m","\x1b[39m"),ec=eo("\x1b[33m","\x1b[39m");eo("\x1b[34m","\x1b[39m");let el=eo("\x1b[35m","\x1b[39m");eo("\x1b[38;2;173;127;168m","\x1b[39m"),eo("\x1b[36m","\x1b[39m");let eu=eo("\x1b[37m","\x1b[39m");eo("\x1b[90m","\x1b[39m"),eo("\x1b[40m","\x1b[49m"),eo("\x1b[41m","\x1b[49m"),eo("\x1b[42m","\x1b[49m"),eo("\x1b[43m","\x1b[49m"),eo("\x1b[44m","\x1b[49m"),eo("\x1b[45m","\x1b[49m"),eo("\x1b[46m","\x1b[49m"),eo("\x1b[47m","\x1b[49m");let ed={wait:eu(ea("○")),error:ei(ea("")),warn:ec(ea("⚠")),ready:"▲",info:eu(ea(" ")),event:es(ea("✓")),trace:el(ea("»"))},ef={log:"log",warn:"warn",error:"error"};function ep(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in ef?ef[e]:"log",n=ed[e];0===t.length?console[r](""):console[r](" "+n,...t)}function eh(...e){ep("error",...e)}let em=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;e<r.length+1;e++){let n=r.slice(0,e).join("/");n&&(n.endsWith("/page")||n.endsWith("/route")||(n=`${n}${n.endsWith("/")?"":"/"}layout`),t.push(n))}}return t};function ey(e){var t,r;let n=[],{pagePath:o,urlPathname:a}=e;if(Array.isArray(e.tags)||(e.tags=[]),o)for(let r of em(o))r=`${A}${r}`,(null==(t=e.tags)?void 0:t.includes(r))||e.tags.push(r),n.push(r);if(a){let t=new URL(a,"http://n").pathname,o=`${A}${t}`;(null==(r=e.tags)?void 0:r.includes(o))||e.tags.push(o),n.push(o)}return n}function eg(e,t){var r;if(!e||(null==(r=e.requestEndedState)?void 0:r.ended))return;e.fetchMetrics??=[];let n=["url","status","method"];!e.fetchMetrics.some(e=>n.every(r=>e[r]===t[r]))&&(e.fetchMetrics.push({...t,end:Date.now(),idx:e.nextFetchId||0}),e.fetchMetrics.length>10&&(e.fetchMetrics.sort((e,t)=>{let r=e.end-e.start,n=t.end-t.start;return r<n?1:r>n?-1:0}),e.fetchMetrics=e.fetchMetrics.slice(0,10)))}let ev=require("next/dist/client/components/request-async-storage.external.js"),eb=require("next/dist/client/components/action-async-storage.external.js");function ew(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,o]=e.digest.split(";",4),a=Number(o);return"NEXT_REDIRECT"===t&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(a)&&a in m}(function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"})(m||(m={})),function(e){e.push="push",e.replace="replace"}(y||(y={}));let ex=["HEAD","OPTIONS"],eS=F().createContext(null),eR=F().createContext(null),e_=F().createContext(null),eC=F().createContext(null);eS.displayName="AppRouterContext",eR.displayName="LayoutRouterContext",e_.displayName="GlobalLayoutRouterContext",eC.displayName="TemplateContext";let ek=F().createContext(new Set);class eO extends w{static #e=this.sharedModules=b;constructor({userland:e,definition:t,resolvedPagePath:r,nextConfigOutput:n}){if(super({userland:e,definition:t}),this.requestAsyncStorage=ev.requestAsyncStorage,this.staticGenerationAsyncStorage=O.staticGenerationAsyncStorage,this.serverHooks=g,this.actionAsyncStorage=eb.actionAsyncStorage,this.resolvedPagePath=r,this.nextConfigOutput=n,this.methods=function(e){let t=Z.reduce((t,r)=>({...t,[r]:e[r]??Q}),{}),r=new Set(Z.filter(t=>e[t]));for(let n of ex.filter(e=>!r.has(e))){if("HEAD"===n){e.GET&&(t.HEAD=e.GET,r.add("HEAD"));continue}if("OPTIONS"===n){let e=["OPTIONS",...r];!r.has("HEAD")&&r.has("GET")&&e.push("HEAD");let n={Allow:e.sort().join(", ")};t.OPTIONS=()=>new Response(null,{status:204,headers:n}),r.add("OPTIONS");continue}throw Error(`Invariant: should handle all automatic implementable methods, got method: ${n}`)}return t}(e),this.hasNonStaticMethods=eT(e),this.dynamic=this.userland.dynamic,"export"===this.nextConfigOutput){if(this.dynamic&&"auto"!==this.dynamic){if("force-dynamic"===this.dynamic)throw Error(`export const dynamic = "force-dynamic" on page "${t.pathname}" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export`)}else this.dynamic="error"}for(let e of Z.map(e=>e.toLowerCase()))e in this.userland&&eh(`Detected lowercase method '${e}' in '${this.resolvedPagePath}'. Export the uppercase '${e.toUpperCase()}' method name to fix this error.`);"default"in this.userland&&eh(`Detected default export in '${this.resolvedPagePath}'. Export a named export for each HTTP method instead.`),Z.some(e=>e in this.userland)||eh(`No HTTP methods exported in '${this.resolvedPagePath}'. Export a named export for each HTTP method.`)}resolve(e){return Z.includes(e)?this.methods[e]:X}async execute(e,t){let r=this.resolve(e.method),n={req:e};n.renderOpts={previewProps:t.prerenderManifest.preview};let o={urlPathname:e.nextUrl.pathname,renderOpts:t.renderOpts};o.renderOpts.fetchCache=this.userland.fetchCache;let i=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let t,r;e.headers instanceof Headers?(t=e.headers.get(x.toLowerCase())??null,r=e.headers.get("content-type")):(t=e.headers[x.toLowerCase()]??null,r=e.headers["content-type"]??null);let n=!!("POST"===e.method&&"application/x-www-form-urlencoded"===r),o=!!("POST"===e.method&&(null==r?void 0:r.startsWith("multipart/form-data"))),a=!!(void 0!==t&&"string"==typeof t&&"POST"===e.method);return{actionId:t,isURLEncodedAction:n,isMultipartAction:o,isFetchAction:a,isServerAction:!!(a||n||o)}}(e).isServerAction},()=>I.wrap(this.requestAsyncStorage,n,()=>K.wrap(this.staticGenerationAsyncStorage,o,n=>{var o;let i=n.isStaticGeneration;if(this.hasNonStaticMethods){if(i){let e=new B("Route is configured with methods that cannot be statically generated.");throw n.dynamicUsageDescription=e.message,n.dynamicUsageStack=e.stack,e}n.revalidate=0}let s=e;switch(this.dynamic){case"force-dynamic":n.forceDynamic=!0;break;case"force-static":n.forceStatic=!0,s=new Proxy(e,eH);break;case"error":n.dynamicShouldError=!0,i&&(s=new Proxy(e,eU));break;default:s=function(e,t){let r={get(e,n,o){switch(n){case"search":case"searchParams":case"url":case"href":case"toJSON":case"toString":case"origin":return W(t,`nextUrl.${n}`),R.get(e,n,o);case"clone":return e[ej]||(e[ej]=()=>new Proxy(e.clone(),r));default:return R.get(e,n,o)}}},n={get(e,o){switch(o){case"nextUrl":return e[eE]||(e[eE]=new Proxy(e.nextUrl,r));case"headers":case"cookies":case"url":case"body":case"blob":case"json":case"text":case"arrayBuffer":case"formData":return W(t,`request.${o}`),R.get(e,o,e);case"clone":return e[eN]||(e[eN]=()=>new Proxy(e.clone(),n));default:return R.get(e,o,e)}}};return new Proxy(e,n)}(e,n)}n.revalidate??=this.userland.revalidate??!1;let l=function(e){let t="/app/";e.includes(t)||(t="\\app\\");let[,...r]=e.split(t);return(t[0]+r.join(t)).split(".").slice(0,-1).join(".")}(this.resolvedPagePath);return null==(o=(0,M.getTracer)().getRootSpanAttributes())||o.set("next.route",l),(0,M.getTracer)().trace(d.runHandler,{spanName:`executing api route (app) ${l}`,attributes:{"next.route":l}},async()=>{var e,o;!function(e){var t;if("__nextPatched"in(t=globalThis.fetch)&&!0===t.__nextPatched)return;let r=globalThis.fetch;globalThis.fetch=function(e,{serverHooks:{DynamicServerError:t},staticGenerationAsyncStorage:r}){let n=async(n,o)=>{var i,s;let l;try{(l=new URL(n instanceof Request?n.url:n)).username="",l.password=""}catch{l=void 0}let u=(null==l?void 0:l.href)??"",d=Date.now(),f=(null==o?void 0:null==(i=o.method)?void 0:i.toUpperCase())||"GET",p=(null==o?void 0:null==(s=o.next)?void 0:s.internal)===!0,h="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return(0,M.getTracer)().trace(p?a.internalFetch:c.fetch,{hideSpan:h,kind:M.SpanKind.CLIENT,spanName:["fetch",f,u].filter(Boolean).join(" "),attributes:{"http.url":u,"http.method":f,"net.peer.name":null==l?void 0:l.hostname,"net.peer.port":(null==l?void 0:l.port)||void 0}},async()=>{var a;let i,s,c;if(p)return e(n,o);let l=r.getStore();if(!l||l.isDraftMode)return e(n,o);let f=n&&"object"==typeof n&&"string"==typeof n.method,h=e=>(null==o?void 0:o[e])||(f?n[e]:null),m=e=>{var t,r,a;return void 0!==(null==o?void 0:null==(t=o.next)?void 0:t[e])?null==o?void 0:null==(r=o.next)?void 0:r[e]:f?null==(a=n.next)?void 0:a[e]:void 0},y=m("revalidate"),g=function(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let a=e[o];if("string"!=typeof a?n.push({tag:a,reason:"invalid type, must be a string"}):a.length>256?n.push({tag:a,reason:"exceeded max length of 256"}):r.push(a),r.length>64){console.warn(`Warning: exceeded max tag count for ${t}, dropped tags:`,e.slice(o).join(", "));break}}if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}(m("tags")||[],`fetch ${n.toString()}`);if(Array.isArray(g))for(let e of(l.tags||(l.tags=[]),g))l.tags.includes(e)||l.tags.push(e);let v=ey(l),b=l.fetchCache,w=!!l.isUnstableNoStore,x=h("cache"),S="";"string"==typeof x&&void 0!==y&&(f&&"default"===x||function(...e){ep("warn",...e)}(`fetch for ${u} on ${l.urlPathname} specified "cache: ${x}" and "revalidate: ${y}", only one should be specified.`),x=void 0),"force-cache"===x?y=!1:("no-cache"===x||"no-store"===x||"force-no-store"===b||"only-no-store"===b)&&(y=0),("no-cache"===x||"no-store"===x)&&(S=`cache: ${x}`),c=function(e,t){try{let r;if(!1===e)r=e;else if("number"==typeof e&&!isNaN(e)&&e>-1)r=e;else if(void 0!==e)throw Error(`Invalid revalidate value "${e}" on "${t}", must be a non-negative number or "false"`);return r}catch(e){if(e instanceof Error&&e.message.includes("Invalid revalidate"))throw e;return}}(y,l.urlPathname);let R=h("headers"),_="function"==typeof(null==R?void 0:R.get)?R:new Headers(R||{}),C=_.get("authorization")||_.get("cookie"),k=!["get","head"].includes((null==(a=h("method"))?void 0:a.toLowerCase())||"get"),O=(C||k)&&0===l.revalidate;switch(b){case"force-no-store":S="fetchCache = force-no-store";break;case"only-no-store":if("force-cache"===x||void 0!==c&&(!1===c||c>0))throw Error(`cache: 'force-cache' used on fetch for ${u} with 'export const fetchCache = 'only-no-store'`);S="fetchCache = only-no-store";break;case"only-cache":if("no-store"===x)throw Error(`cache: 'no-store' used on fetch for ${u} with 'export const fetchCache = 'only-cache'`);break;case"force-cache":(void 0===y||0===y)&&(S="fetchCache = force-cache",c=!1)}void 0===c?"default-cache"===b?(c=!1,S="fetchCache = default-cache"):O?(c=0,S="auto no cache"):"default-no-store"===b?(c=0,S="fetchCache = default-no-store"):w?(c=0,S="noStore call"):(S="auto cache",c="boolean"!=typeof l.revalidate&&void 0!==l.revalidate&&l.revalidate):S||(S=`revalidate: ${c}`),l.forceStatic&&0===c||O||void 0!==l.revalidate&&("number"!=typeof c||!1!==l.revalidate&&("number"!=typeof l.revalidate||!(c<l.revalidate)))||(0===c&&Y(l,"revalidate: 0"),l.revalidate=c);let P="number"==typeof c&&c>0||!1===c;if(l.incrementalCache&&P)try{i=await l.incrementalCache.fetchCacheKey(u,f?n:o)}catch(e){console.error("Failed to generate cache key for",n)}let T=l.nextFetchId??1;l.nextFetchId=T+1;let E="number"!=typeof c?31536e3:c,N=async(t,r)=>{let a=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(f){let e=n,t={body:e._ogBody||e.body};for(let r of a)t[r]=e[r];n=new Request(e.url,t)}else if(o){let{_ogBody:e,body:r,signal:n,...a}=o;o={...a,body:e||r,signal:t?void 0:n}}let s={...o,next:{...null==o?void 0:o.next,fetchType:"origin",fetchIdx:T}};return e(n,s).then(async e=>{if(t||eg(l,{start:d,url:u,cacheReason:r||S,cacheStatus:0===c||r?"skip":"miss",status:e.status,method:s.method||"GET"}),200===e.status&&l.incrementalCache&&i&&P){let t=Buffer.from(await e.arrayBuffer());try{await l.incrementalCache.set(i,{kind:"FETCH",data:{headers:Object.fromEntries(e.headers.entries()),body:t.toString("base64"),status:e.status,url:e.url},revalidate:E},{fetchCache:!0,revalidate:c,fetchUrl:u,fetchIdx:T,tags:g})}catch(e){console.warn("Failed to set fetch cache",n,e)}let r=new Response(t,{headers:new Headers(e.headers),status:e.status});return Object.defineProperty(r,"url",{value:e.url}),r}return e})},j=()=>Promise.resolve(),A=!1;if(i&&l.incrementalCache){j=await l.incrementalCache.lock(i);let e=l.isOnDemandRevalidate?null:await l.incrementalCache.get(i,{kindHint:"fetch",revalidate:c,fetchUrl:u,fetchIdx:T,tags:g,softTags:v});if(e?await j():s="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind){if(l.isRevalidate&&e.isStale)A=!0;else{e.isStale&&(l.pendingRevalidates??={},l.pendingRevalidates[i]||(l.pendingRevalidates[i]=N(!0).catch(console.error).finally(()=>{l.pendingRevalidates??={},delete l.pendingRevalidates[i||""]})));let t=e.value.data;eg(l,{start:d,url:u,cacheReason:S,cacheStatus:"hit",status:t.status||200,method:(null==o?void 0:o.method)||"GET"});let r=new Response(Buffer.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}}if(l.isStaticGeneration&&o&&"object"==typeof o){let{cache:e}=o;if(!l.forceStatic&&"no-store"===e){let e=`no-store fetch ${n}${l.urlPathname?` ${l.urlPathname}`:""}`;Y(l,e),l.revalidate=0;let r=new t(e);throw l.dynamicUsageErr=r,l.dynamicUsageDescription=e,r}let r="next"in o,{next:a={}}=o;if("number"==typeof a.revalidate&&(void 0===l.revalidate||"number"==typeof l.revalidate&&a.revalidate<l.revalidate)){if(!l.forceDynamic&&!l.forceStatic&&0===a.revalidate){let e=`revalidate: 0 fetch ${n}${l.urlPathname?` ${l.urlPathname}`:""}`;Y(l,e);let r=new t(e);throw l.dynamicUsageErr=r,l.dynamicUsageDescription=e,r}l.forceStatic&&0===a.revalidate||(l.revalidate=a.revalidate)}r&&delete o.next}if(!i||!A)return N(!1,s).finally(j);{l.pendingRevalidates??={};let e=l.pendingRevalidates[i];return e?(await e).clone():l.pendingRevalidates[i]=N(!0,s).finally(async()=>{l.pendingRevalidates??={},delete l.pendingRevalidates[i||""],await j()})}})};return n.__nextPatched=!0,n.__nextGetStaticStore=()=>r,n._nextOriginalFetch=e,n}(r,e)}({serverHooks:this.serverHooks,staticGenerationAsyncStorage:this.staticGenerationAsyncStorage});let i=await r(s,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0!==n&&(t[r]=n);return t}(t.params):void 0});if(!(i instanceof Response))throw Error(`No response is returned from route handler '${this.resolvedPagePath}'. Ensure you return a \`Response\` or a \`NextResponse\` in all branches of your handler.`);t.renderOpts.fetchMetrics=n.fetchMetrics,t.renderOpts.waitUntil=Promise.all([null==(e=n.incrementalCache)?void 0:e.revalidateTag(n.revalidatedTags||[]),...Object.values(n.pendingRevalidates||{})]),ey(n),t.renderOpts.fetchTags=null==(o=n.tags)?void 0:o.join(",");let l=this.requestAsyncStorage.getStore();if(l&&l.mutableCookies){let e=new Headers(i.headers);if(N(e,l.mutableCookies))return new Response(i.body,{status:i.status,statusText:i.statusText,headers:e})}return i})})));if(!(i instanceof Response))return new Response(null,{status:500});if(i.headers.has("x-middleware-rewrite"))throw Error("NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.");if("1"===i.headers.get("x-middleware-next"))throw Error("NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler");return i}async handle(e,t){try{return await this.execute(e,t)}catch(t){let e=function(e){if(ew(e)){let t=ew(e)?e.digest.split(";",3)[2]:null;if(!t)throw Error("Invariant: Unexpected redirect url format");let r=function(e){if(!ew(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(e);return function(e,t,r){let n=new Headers({location:e});return N(n,t),new Response(null,{status:r,headers:n})}(t,e.mutableCookies,r)}return"object"==typeof e&&null!==e&&"digest"in e&&"NEXT_NOT_FOUND"===e.digest&&new Response(null,{status:404})}(t);if(!e)throw t;return e}}}let eP=eO;function eT(e){return!!e.POST||!!e.POST||!!e.DELETE||!!e.PATCH||!!e.OPTIONS}let eE=Symbol("nextUrl"),eN=Symbol("clone"),ej=Symbol("clone"),eA=Symbol("searchParams"),e$=Symbol("href"),eM=Symbol("toString"),eD=Symbol("headers"),eL=Symbol("cookies"),eH={get(e,t,r){switch(t){case"headers":return e[eD]||(e[eD]=C.seal(new Headers({})));case"cookies":return e[eL]||(e[eL]=T.seal(new k.RequestCookies(new Headers({}))));case"nextUrl":return e[eE]||(e[eE]=new Proxy(e.nextUrl,eI));case"url":return r.nextUrl.href;case"geo":case"ip":return;case"clone":return e[eN]||(e[eN]=()=>new Proxy(e.clone(),eH));default:return R.get(e,t,r)}}},eI={get(e,t,r){switch(t){case"search":return"";case"searchParams":return e[eA]||(e[eA]=new URLSearchParams);case"href":return e[e$]||(e[e$]=function(e){let t=new URL(e);return t.host="localhost:3000",t.search="",t.protocol="http",t}(e.href).href);case"toJSON":case"toString":return e[eM]||(e[eM]=()=>r.href);case"url":return;case"clone":return e[ej]||(e[ej]=()=>new Proxy(e.clone(),eI));default:return R.get(e,t,r)}}},eU={get(e,t,r){switch(t){case"nextUrl":return e[eE]||(e[eE]=new Proxy(e.nextUrl,eF));case"headers":case"cookies":case"url":case"body":case"blob":case"json":case"text":case"arrayBuffer":case"formData":throw new z(`Route ${e.nextUrl.pathname} with \`dynamic = "error"\` couldn't be rendered statically because it used \`request.${t}\`.`);case"clone":return e[eN]||(e[eN]=()=>new Proxy(e.clone(),eU));default:return R.get(e,t,r)}}},eF={get(e,t,r){switch(t){case"search":case"searchParams":case"url":case"href":case"toJSON":case"toString":case"origin":throw new z(`Route ${e.pathname} with \`dynamic = "error"\` couldn't be rendered statically because it used \`nextUrl.${t}\`.`);case"clone":return e[ej]||(e[ej]=()=>new Proxy(e.clone(),eF));default:return R.get(e,t,r)}}}})(),module.exports=n})();
//# sourceMappingURL=app-route-experimental.runtime.dev.js.map