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

84 lines
1.8 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: b715dd3a8a120944.5a7f07e15c.js
* Module id: 437425
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(168823),
r = e.i(505e3);
let i = () => {
let [e, t] = [
Math.floor(4 * Math.random() + 1),
Math.floor(8 * Math.random() + 17),
],
r = [
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"g",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",
]
.sort(() => 0.4 - Math.random())
.slice(e, t)
.slice(0, 8)
.join("");
return new Date().getTime() + r;
};
e.s(["createRandomId", 0, i], 437425);
let o = (e, r, i = {}) => {
(0, t.setCookie)(e, r, { ...i, maxAge: 31536e4 });
};
e.s(
[
"getCookieWebid",
0,
(e) => {
let n = (0, t.getCookie)(r.WEBID_COOKIE_KEY, e);
if (!n || "string" != typeof n) {
let t = i();
return (
o(r.WEBID_COOKIE_KEY, t, { ...e, sameSite: "none", secure: !0 }),
window.localStorage?.setItem("cid", t),
t
);
}
return window.localStorage?.setItem("cid", n), n;
},
"setCookieLongTerm",
0,
o,
"setCookieSession",
0,
(e, r, i) => {
(0, t.setCookie)(e, r, { ...i });
},
],
135623,
);
};
export default moduleFactory;