Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

147 lines
3.8 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: c412b79b8f787345.3b8bfd201f.js
* Module id: 911861
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
"use strict";
Object.defineProperty(r, "__esModule", { value: !0 });
var a = {
DecodeError: function () {
return x;
},
MiddlewareNotFoundError: function () {
return y;
},
MissingStaticPage: function () {
return w;
},
NormalizeError: function () {
return b;
},
PageNotFoundError: function () {
return v;
},
SP: function () {
return h;
},
ST: function () {
return g;
},
WEB_VITALS: function () {
return s;
},
execOnce: function () {
return l;
},
getDisplayName: function () {
return c;
},
getLocationOrigin: function () {
return u;
},
getURL: function () {
return d;
},
isAbsoluteUrl: function () {
return o;
},
isResSent: function () {
return f;
},
loadGetInitialProps: function () {
return m;
},
normalizeRepeatedSlashes: function () {
return p;
},
stringifyError: function () {
return j;
},
};
for (var n in a) Object.defineProperty(r, n, { enumerable: !0, get: a[n] });
let s = ["CLS", "FCP", "FID", "INP", "LCP", "TTFB"];
function l(e) {
let t,
r = !1;
return (...a) => (r || ((r = !0), (t = e(...a))), t);
}
let i = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/,
o = (e) => i.test(e);
function u() {
let { protocol: e, hostname: t, port: r } = window.location;
return `${e}//${t}${r ? ":" + r : ""}`;
}
function d() {
let { href: e } = window.location,
t = u();
return e.substring(t.length);
}
function c(e) {
return "string" == typeof e ? e : e.displayName || e.name || "Unknown";
}
function f(e) {
return e.finished || e.headersSent;
}
function p(e) {
let t = e.split("?");
return (
t[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") +
(t[1] ? `?${t.slice(1).join("?")}` : "")
);
}
async function m(e, t) {
let r = t.res || (t.ctx && t.ctx.res);
if (!e.getInitialProps)
return t.ctx && t.Component
? { pageProps: await m(t.Component, t.ctx) }
: {};
let a = await e.getInitialProps(t);
if (r && f(r)) return a;
if (!a)
throw Object.defineProperty(
Error(
`"${c(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`,
),
"__NEXT_ERROR_CODE",
{ value: "E394", enumerable: !1, configurable: !0 },
);
return a;
}
let h = "u" > typeof performance,
g =
h &&
["mark", "measure", "getEntriesByName"].every(
(e) => "function" == typeof performance[e],
);
class x extends Error {}
class b extends Error {}
class v extends Error {
constructor(e) {
super(),
(this.code = "ENOENT"),
(this.name = "PageNotFoundError"),
(this.message = `Cannot find module for page: ${e}`);
}
}
class w extends Error {
constructor(e, t) {
super(),
(this.message = `Failed to load static file for page: ${e} ${t}`);
}
}
class y extends Error {
constructor() {
super(),
(this.code = "ENOENT"),
(this.message = "Cannot find the middleware module");
}
}
function j(e) {
return JSON.stringify({ message: e.message, stack: e.stack });
}
};
export default moduleFactory;