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

118 lines
3.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 3031b844bcc7ca89.9a38197d85.js
* Module id: 999518
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, n) => {
var r = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,
i = /\n/g,
a = /^\s*/,
s = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,
o = /^:\s*/,
l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,
c = /^[;\s]*/,
u = /^\s+|\s+$/g;
function h(e) {
return e ? e.replace(u, "") : "";
}
t.exports = function (e, t) {
if ("string" != typeof e)
throw TypeError("First argument must be a string");
if (!e) return [];
t = t || {};
var n = 1,
u = 1;
function p(e) {
var t = e.match(i);
t && (n += t.length);
var r = e.lastIndexOf("\n");
u = ~r ? e.length - r : u + e.length;
}
function d() {
var e = { line: n, column: u };
return function (t) {
return (t.position = new m(e)), T(a), t;
};
}
function m(e) {
(this.start = e),
(this.end = { line: n, column: u }),
(this.source = t.source);
}
m.prototype.content = e;
var f = [];
function E(r) {
var i = Error(t.source + ":" + n + ":" + u + ": " + r);
if (
((i.reason = r),
(i.filename = t.source),
(i.line = n),
(i.column = u),
(i.source = e),
t.silent)
)
f.push(i);
else throw i;
}
function T(t) {
var n = t.exec(e);
if (n) {
var r = n[0];
return p(r), (e = e.slice(r.length)), n;
}
}
function g(e) {
var t;
for (e = e || []; (t = A()); ) !1 !== t && e.push(t);
return e;
}
function A() {
var t = d();
if ("/" == e.charAt(0) && "*" == e.charAt(1)) {
for (
var n = 2;
"" != e.charAt(n) && ("*" != e.charAt(n) || "/" != e.charAt(n + 1));
)
++n;
if (((n += 2), "" === e.charAt(n - 1)))
return E("End of comment missing");
var r = e.slice(2, n - 2);
return (
(u += 2),
p(r),
(e = e.slice(n)),
(u += 2),
t({ type: "comment", comment: r })
);
}
}
T(a);
var _,
k = [];
for (
g(k);
(_ = (function () {
var e = d(),
t = T(s);
if (t) {
if ((A(), !T(o))) return E("property missing ':'");
var n = T(l),
i = e({
type: "declaration",
property: h(t[0].replace(r, "")),
value: n ? h(n[0].replace(r, "")) : "",
});
return T(c), i;
}
})());
)
!1 !== _ && (k.push(_), g(k));
return k;
};
};
export default moduleFactory;