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

49 lines
1.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
* Module id: 479682
* 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 }),
Object.defineProperty(r, "interpolateAs", {
enumerable: !0,
get: function () {
return a;
},
});
let n = e.r(453636),
o = e.r(790237);
function a(e, t, r) {
let a = "",
i = (0, o.getRouteRegex)(e),
l = i.groups,
s = (t !== e ? (0, n.getRouteMatcher)(i)(t) : "") || r;
a = e;
let c = Object.keys(l);
return (
c.every((e) => {
let t = s[e] || "",
{ repeat: r, optional: n } = l[e],
o = `[${r ? "..." : ""}${e}]`;
return (
n && (o = `${!t ? "/" : ""}[${o}]`),
r && !Array.isArray(t) && (t = [t]),
(n || e in s) &&
(a =
a.replace(
o,
r
? t.map((e) => encodeURIComponent(e)).join("/")
: encodeURIComponent(t),
) || "/")
);
}) || (a = ""),
{ params: c, result: a }
);
}
};
export default moduleFactory;