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

62 lines
2.1 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 822067
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
function t(e) {
return RegExp(
/([ \t])/.source + "(?:" + e + ")" + /(?=[\s;]|$)/.source,
"i",
);
}
e.languages.csp = {
directive: {
pattern:
/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,
lookbehind: !0,
alias: "property",
},
scheme: { pattern: t(/[a-z][a-z0-9.+-]*:/.source), lookbehind: !0 },
none: { pattern: t(/'none'/.source), lookbehind: !0, alias: "keyword" },
nonce: {
pattern: t(/'nonce-[-+/\w=]+'/.source),
lookbehind: !0,
alias: "number",
},
hash: {
pattern: t(/'sha(?:256|384|512)-[-+/\w=]+'/.source),
lookbehind: !0,
alias: "number",
},
host: {
pattern: t(
/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source +
"|" +
/\*[^\s;,']*/.source +
"|" +
/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source,
),
lookbehind: !0,
alias: "url",
inside: { important: /\*/ },
},
keyword: [
{
pattern: t(/'unsafe-[a-z-]+'/.source),
lookbehind: !0,
alias: "unsafe",
},
{ pattern: t(/'[a-z-]+'/.source), lookbehind: !0, alias: "safe" },
],
punctuation: /;/,
};
}
(t.exports = r), (r.displayName = "csp"), (r.aliases = []);
};
export default moduleFactory;