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

136 lines
4.7 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 909064
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
!(function (e) {
function t(e, i) {
return i <= 0
? /[]/.source
: e.replace(/<SELF>/g, function () {
return t(e, i - 1);
});
}
var i = /'[{}:=,](?:[^']|'')*'(?!')/,
r = { pattern: /''/, greedy: !0, alias: "operator" },
a = t(
/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(
/<STR>/g,
function () {
return i.source;
},
),
8,
),
n = {
pattern: RegExp(a),
inside: {
message: {
pattern: /^(\{)[\s\S]+(?=\}$)/,
lookbehind: !0,
inside: null,
},
"message-delimiter": { pattern: /./, alias: "punctuation" },
},
};
(e.languages["icu-message-format"] = {
argument: {
pattern: RegExp(a),
greedy: !0,
inside: {
content: {
pattern: /^(\{)[\s\S]+(?=\}$)/,
lookbehind: !0,
inside: {
"argument-name": {
pattern: /^(\s*)[^{}:=,\s]+/,
lookbehind: !0,
},
"choice-style": {
pattern: /^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,
lookbehind: !0,
inside: {
punctuation: /\|/,
range: {
pattern:
/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,
lookbehind: !0,
inside: { operator: /[<#\u2264]/, number: /\S+/ },
},
rest: null,
},
},
"plural-style": {
pattern:
/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,
lookbehind: !0,
inside: {
offset: /^offset:\s*\d+/,
"nested-message": n,
selector: {
pattern: /=\d+|[^{}:=,\s]+/,
inside: {
keyword: /^(?:few|many|one|other|two|zero)$/,
},
},
},
},
"select-style": {
pattern: /^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,
lookbehind: !0,
inside: {
"nested-message": n,
selector: {
pattern: /[^{}:=,\s]+/,
inside: { keyword: /^other$/ },
},
},
},
keyword: /\b(?:choice|plural|select|selectordinal)\b/,
"arg-type": {
pattern:
/\b(?:date|duration|number|ordinal|spellout|time)\b/,
alias: "keyword",
},
"arg-skeleton": {
pattern: /(,\s*)::[^{}:=,\s]+/,
lookbehind: !0,
},
"arg-style": {
pattern:
/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,
lookbehind: !0,
},
"arg-style-text": {
pattern: RegExp(
/(^\s*,\s*(?=\S))/.source +
t(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source, 8) +
"$",
),
lookbehind: !0,
alias: "string",
},
punctuation: /,/,
},
},
"argument-delimiter": { pattern: /./, alias: "operator" },
},
},
escape: r,
string: { pattern: i, greedy: !0, inside: { escape: r } },
}),
(n.inside.message.inside = e.languages["icu-message-format"]),
(e.languages["icu-message-format"].argument.inside.content.inside[
"choice-style"
].inside.rest = e.languages["icu-message-format"]);
})(e);
}
(t.exports = r), (r.displayName = "icuMessageFormat"), (r.aliases = []);
};
export default moduleFactory;