init
Browse files- .gitignore +1 -0
- README.md +57 -0
- derive-lib.mjs +123 -0
- package-lock.json +855 -0
- package.json +15 -0
- readme.txt +4 -0
- server.mjs +35 -0
- static/app.js +111 -0
- static/index.html +38 -0
- static/styles.css +110 -0
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
node_modules/
|
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 切韻音系自動推導器(复刻 - 核心功能)
|
| 2 |
+
|
| 3 |
+
目标:复刻 <https://nk2028.shn.hk/tshet-uinh-autoderiver/> 的**核心功能**:对形如 `風(幫三C東平)` 的带音韵地位标注文本进行推导,并以 `ruby` 形式展示结果。
|
| 4 |
+
|
| 5 |
+
当前内置方案:
|
| 6 |
+
- 切韵拼音(TUPA)
|
| 7 |
+
- 推導盛唐(平水韻)擬音(High Tang)
|
| 8 |
+
|
| 9 |
+
本项目后端使用 **Node.js + Express**,推导逻辑基于 **tshet-uinh + tshet-uinh-examples**(与原站同源生态)。
|
| 10 |
+
|
| 11 |
+
## 运行
|
| 12 |
+
|
| 13 |
+
### 1) 安装依赖
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
cd backend
|
| 17 |
+
npm install
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
### 2) 启动
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
cd backend
|
| 24 |
+
npm run dev
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
打开:<http://127.0.0.1:8000/>
|
| 28 |
+
|
| 29 |
+
## API
|
| 30 |
+
|
| 31 |
+
### `POST /api/derive`
|
| 32 |
+
|
| 33 |
+
请求:
|
| 34 |
+
|
| 35 |
+
```json
|
| 36 |
+
{
|
| 37 |
+
"scheme": "tupa",
|
| 38 |
+
"text": "風(幫三C東平)…"
|
| 39 |
+
}
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
返回(简化):
|
| 43 |
+
|
| 44 |
+
```json
|
| 45 |
+
{
|
| 46 |
+
"scheme": "tupa",
|
| 47 |
+
"tokens": [
|
| 48 |
+
{ "type": "annotated", "ch": "風", "desc": "幫三C東平", "pron": "pung" },
|
| 49 |
+
{ "type": "raw", "text": "…" }
|
| 50 |
+
]
|
| 51 |
+
}
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## 说明 / 后续可扩展
|
| 55 |
+
|
| 56 |
+
- 当前实现只覆盖你选定的「推导结果展示」这条主流程。
|
| 57 |
+
- 如需加入更多方案(白一平转写、unt 擬音、普通话/广州话推导等),可以在 `backend/derive-lib.mjs` 中放开 `scheme`,直接调用 `tshet-uinh-examples` 的其他导出即可(与原站方案列表一致)。
|
derive-lib.mjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import TshetUinh from "tshet-uinh";
|
| 2 |
+
import * as Examples from "tshet-uinh-examples";
|
| 3 |
+
|
| 4 |
+
function tokensFromAnnotatedText(text, derivePron) {
|
| 5 |
+
const tokens = [];
|
| 6 |
+
const re = /([\s\S])\(([^)]+)\)/g;
|
| 7 |
+
let lastIndex = 0;
|
| 8 |
+
for (let m; (m = re.exec(text)); ) {
|
| 9 |
+
const start = m.index;
|
| 10 |
+
if (start > lastIndex) {
|
| 11 |
+
tokens.push({ type: "raw", text: text.slice(lastIndex, start) });
|
| 12 |
+
}
|
| 13 |
+
const ch = m[1];
|
| 14 |
+
const desc = m[2];
|
| 15 |
+
let pron = "";
|
| 16 |
+
try {
|
| 17 |
+
const pos = TshetUinh.音韻地位.from描述(desc);
|
| 18 |
+
pron = derivePron(pos, ch) ?? "";
|
| 19 |
+
} catch {
|
| 20 |
+
// 保底:不中断整段推导
|
| 21 |
+
pron = "";
|
| 22 |
+
}
|
| 23 |
+
tokens.push({ type: "annotated", ch, desc, pron });
|
| 24 |
+
lastIndex = start + m[0].length;
|
| 25 |
+
}
|
| 26 |
+
if (lastIndex < text.length) tokens.push({ type: "raw", text: text.slice(lastIndex) });
|
| 27 |
+
return tokens;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
function choosePositionByChar(ch) {
|
| 31 |
+
const entries = TshetUinh.資料.query字頭(ch);
|
| 32 |
+
if (!entries || !entries.length) return null;
|
| 33 |
+
// 尽量贴近原站:优先选「廣韻」代表条目
|
| 34 |
+
const guangyun = entries.find(e => e?.來源?.文獻 === "廣韻");
|
| 35 |
+
return (guangyun || entries[0]).音韻地位 || null;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
function tokensFromCharText(text, derivePron) {
|
| 39 |
+
const tokens = [];
|
| 40 |
+
let rawBuf = "";
|
| 41 |
+
|
| 42 |
+
const flushRaw = () => {
|
| 43 |
+
if (!rawBuf) return;
|
| 44 |
+
tokens.push({ type: "raw", text: rawBuf });
|
| 45 |
+
rawBuf = "";
|
| 46 |
+
};
|
| 47 |
+
|
| 48 |
+
for (const ch of Array.from(text)) {
|
| 49 |
+
const pos = choosePositionByChar(ch);
|
| 50 |
+
if (!pos) {
|
| 51 |
+
rawBuf += ch;
|
| 52 |
+
continue;
|
| 53 |
+
}
|
| 54 |
+
flushRaw();
|
| 55 |
+
let pron = "";
|
| 56 |
+
try {
|
| 57 |
+
pron = derivePron(pos, ch) ?? "";
|
| 58 |
+
} catch {
|
| 59 |
+
pron = "";
|
| 60 |
+
}
|
| 61 |
+
tokens.push({ type: "annotated", ch, desc: pos.描述, pron });
|
| 62 |
+
}
|
| 63 |
+
flushRaw();
|
| 64 |
+
return tokens;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
function getDeriver(scheme) {
|
| 68 |
+
if (scheme === "tupa") return Examples.tupa({});
|
| 69 |
+
if (scheme === "high_tang") return Examples.high_tang({});
|
| 70 |
+
throw new Error(`Unsupported scheme: ${scheme}`);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
export function derive({ scheme = "tupa", text = "" } = {}) {
|
| 74 |
+
const s = scheme.toString();
|
| 75 |
+
const t = text.toString();
|
| 76 |
+
if (s === "tupa_high_tang") {
|
| 77 |
+
const deriveTupa = getDeriver("tupa");
|
| 78 |
+
const deriveHighTang = getDeriver("high_tang");
|
| 79 |
+
const tokens = /[\s\S]\([^)]+\)/.test(t)
|
| 80 |
+
? // 兼容旧格式:括号内地位直接推导(两套方案)
|
| 81 |
+
(() => {
|
| 82 |
+
const base = tokensFromAnnotatedText(t, () => "");
|
| 83 |
+
return base.map(tok => {
|
| 84 |
+
if (tok.type !== "annotated") return tok;
|
| 85 |
+
const pos = TshetUinh.音韻地位.from描述(tok.desc);
|
| 86 |
+
const tupa = (deriveTupa(pos, tok.ch) ?? "").trim();
|
| 87 |
+
const ipa = (deriveHighTang(pos, tok.ch) ?? "").trim();
|
| 88 |
+
return { ...tok, pron: `${tupa} /${ipa}/` };
|
| 89 |
+
});
|
| 90 |
+
})()
|
| 91 |
+
: // 新格式:按字头查資料推导(两套方案)
|
| 92 |
+
(() => {
|
| 93 |
+
const tokens = [];
|
| 94 |
+
let rawBuf = "";
|
| 95 |
+
const flushRaw = () => {
|
| 96 |
+
if (!rawBuf) return;
|
| 97 |
+
tokens.push({ type: "raw", text: rawBuf });
|
| 98 |
+
rawBuf = "";
|
| 99 |
+
};
|
| 100 |
+
for (const ch of Array.from(t)) {
|
| 101 |
+
const pos = choosePositionByChar(ch);
|
| 102 |
+
if (!pos) {
|
| 103 |
+
rawBuf += ch;
|
| 104 |
+
continue;
|
| 105 |
+
}
|
| 106 |
+
flushRaw();
|
| 107 |
+
const tupa = (deriveTupa(pos, ch) ?? "").trim();
|
| 108 |
+
const ipa = (deriveHighTang(pos, ch) ?? "").trim();
|
| 109 |
+
tokens.push({ type: "annotated", ch, desc: pos.描述, pron: `${tupa} /${ipa}/` });
|
| 110 |
+
}
|
| 111 |
+
flushRaw();
|
| 112 |
+
return tokens;
|
| 113 |
+
})();
|
| 114 |
+
return { scheme: s, tokens };
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
const derivePron = getDeriver(s);
|
| 118 |
+
// 兼容两种输入:
|
| 119 |
+
// 1) 旧格式:風(幫三C東平) —— 直接用括号内地位推导
|
| 120 |
+
// 2) 新格式:只输入汉字 —— 按字头查資料推导
|
| 121 |
+
const tokens = /[\s\S]\([^)]+\)/.test(t) ? tokensFromAnnotatedText(t, derivePron) : tokensFromCharText(t, derivePron);
|
| 122 |
+
return { scheme: s, tokens };
|
| 123 |
+
}
|
package-lock.json
ADDED
|
@@ -0,0 +1,855 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "tshet-uinh-autoderiver-clone",
|
| 3 |
+
"lockfileVersion": 3,
|
| 4 |
+
"requires": true,
|
| 5 |
+
"packages": {
|
| 6 |
+
"": {
|
| 7 |
+
"name": "tshet-uinh-autoderiver-clone",
|
| 8 |
+
"dependencies": {
|
| 9 |
+
"express": "^4.21.2",
|
| 10 |
+
"tshet-uinh": "^0.15.4",
|
| 11 |
+
"tshet-uinh-examples": "20260216.0.0"
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
"node_modules/accepts": {
|
| 15 |
+
"version": "1.3.8",
|
| 16 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
| 17 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
| 18 |
+
"license": "MIT",
|
| 19 |
+
"dependencies": {
|
| 20 |
+
"mime-types": "~2.1.34",
|
| 21 |
+
"negotiator": "0.6.3"
|
| 22 |
+
},
|
| 23 |
+
"engines": {
|
| 24 |
+
"node": ">= 0.6"
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
"node_modules/array-flatten": {
|
| 28 |
+
"version": "1.1.1",
|
| 29 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
| 30 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
| 31 |
+
"license": "MIT"
|
| 32 |
+
},
|
| 33 |
+
"node_modules/body-parser": {
|
| 34 |
+
"version": "1.20.4",
|
| 35 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz",
|
| 36 |
+
"integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==",
|
| 37 |
+
"license": "MIT",
|
| 38 |
+
"dependencies": {
|
| 39 |
+
"bytes": "~3.1.2",
|
| 40 |
+
"content-type": "~1.0.5",
|
| 41 |
+
"debug": "2.6.9",
|
| 42 |
+
"depd": "2.0.0",
|
| 43 |
+
"destroy": "~1.2.0",
|
| 44 |
+
"http-errors": "~2.0.1",
|
| 45 |
+
"iconv-lite": "~0.4.24",
|
| 46 |
+
"on-finished": "~2.4.1",
|
| 47 |
+
"qs": "~6.14.0",
|
| 48 |
+
"raw-body": "~2.5.3",
|
| 49 |
+
"type-is": "~1.6.18",
|
| 50 |
+
"unpipe": "~1.0.0"
|
| 51 |
+
},
|
| 52 |
+
"engines": {
|
| 53 |
+
"node": ">= 0.8",
|
| 54 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
"node_modules/bytes": {
|
| 58 |
+
"version": "3.1.2",
|
| 59 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
| 60 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
| 61 |
+
"license": "MIT",
|
| 62 |
+
"engines": {
|
| 63 |
+
"node": ">= 0.8"
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
"node_modules/call-bind-apply-helpers": {
|
| 67 |
+
"version": "1.0.2",
|
| 68 |
+
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
| 69 |
+
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
| 70 |
+
"license": "MIT",
|
| 71 |
+
"dependencies": {
|
| 72 |
+
"es-errors": "^1.3.0",
|
| 73 |
+
"function-bind": "^1.1.2"
|
| 74 |
+
},
|
| 75 |
+
"engines": {
|
| 76 |
+
"node": ">= 0.4"
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
"node_modules/call-bound": {
|
| 80 |
+
"version": "1.0.4",
|
| 81 |
+
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
| 82 |
+
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
| 83 |
+
"license": "MIT",
|
| 84 |
+
"dependencies": {
|
| 85 |
+
"call-bind-apply-helpers": "^1.0.2",
|
| 86 |
+
"get-intrinsic": "^1.3.0"
|
| 87 |
+
},
|
| 88 |
+
"engines": {
|
| 89 |
+
"node": ">= 0.4"
|
| 90 |
+
},
|
| 91 |
+
"funding": {
|
| 92 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
"node_modules/content-disposition": {
|
| 96 |
+
"version": "0.5.4",
|
| 97 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
| 98 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
| 99 |
+
"license": "MIT",
|
| 100 |
+
"dependencies": {
|
| 101 |
+
"safe-buffer": "5.2.1"
|
| 102 |
+
},
|
| 103 |
+
"engines": {
|
| 104 |
+
"node": ">= 0.6"
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
"node_modules/content-type": {
|
| 108 |
+
"version": "1.0.5",
|
| 109 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
| 110 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
| 111 |
+
"license": "MIT",
|
| 112 |
+
"engines": {
|
| 113 |
+
"node": ">= 0.6"
|
| 114 |
+
}
|
| 115 |
+
},
|
| 116 |
+
"node_modules/cookie": {
|
| 117 |
+
"version": "0.7.2",
|
| 118 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
|
| 119 |
+
"integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
|
| 120 |
+
"license": "MIT",
|
| 121 |
+
"engines": {
|
| 122 |
+
"node": ">= 0.6"
|
| 123 |
+
}
|
| 124 |
+
},
|
| 125 |
+
"node_modules/cookie-signature": {
|
| 126 |
+
"version": "1.0.7",
|
| 127 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
|
| 128 |
+
"integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
|
| 129 |
+
"license": "MIT"
|
| 130 |
+
},
|
| 131 |
+
"node_modules/debug": {
|
| 132 |
+
"version": "2.6.9",
|
| 133 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
| 134 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
| 135 |
+
"license": "MIT",
|
| 136 |
+
"dependencies": {
|
| 137 |
+
"ms": "2.0.0"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"node_modules/depd": {
|
| 141 |
+
"version": "2.0.0",
|
| 142 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
| 143 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
| 144 |
+
"license": "MIT",
|
| 145 |
+
"engines": {
|
| 146 |
+
"node": ">= 0.8"
|
| 147 |
+
}
|
| 148 |
+
},
|
| 149 |
+
"node_modules/destroy": {
|
| 150 |
+
"version": "1.2.0",
|
| 151 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
| 152 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
| 153 |
+
"license": "MIT",
|
| 154 |
+
"engines": {
|
| 155 |
+
"node": ">= 0.8",
|
| 156 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"node_modules/dunder-proto": {
|
| 160 |
+
"version": "1.0.1",
|
| 161 |
+
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
| 162 |
+
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
| 163 |
+
"license": "MIT",
|
| 164 |
+
"dependencies": {
|
| 165 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 166 |
+
"es-errors": "^1.3.0",
|
| 167 |
+
"gopd": "^1.2.0"
|
| 168 |
+
},
|
| 169 |
+
"engines": {
|
| 170 |
+
"node": ">= 0.4"
|
| 171 |
+
}
|
| 172 |
+
},
|
| 173 |
+
"node_modules/ee-first": {
|
| 174 |
+
"version": "1.1.1",
|
| 175 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
| 176 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 177 |
+
"license": "MIT"
|
| 178 |
+
},
|
| 179 |
+
"node_modules/encodeurl": {
|
| 180 |
+
"version": "2.0.0",
|
| 181 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
| 182 |
+
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
| 183 |
+
"license": "MIT",
|
| 184 |
+
"engines": {
|
| 185 |
+
"node": ">= 0.8"
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
"node_modules/es-define-property": {
|
| 189 |
+
"version": "1.0.1",
|
| 190 |
+
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
| 191 |
+
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
| 192 |
+
"license": "MIT",
|
| 193 |
+
"engines": {
|
| 194 |
+
"node": ">= 0.4"
|
| 195 |
+
}
|
| 196 |
+
},
|
| 197 |
+
"node_modules/es-errors": {
|
| 198 |
+
"version": "1.3.0",
|
| 199 |
+
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 200 |
+
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 201 |
+
"license": "MIT",
|
| 202 |
+
"engines": {
|
| 203 |
+
"node": ">= 0.4"
|
| 204 |
+
}
|
| 205 |
+
},
|
| 206 |
+
"node_modules/es-object-atoms": {
|
| 207 |
+
"version": "1.1.1",
|
| 208 |
+
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
| 209 |
+
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
| 210 |
+
"license": "MIT",
|
| 211 |
+
"dependencies": {
|
| 212 |
+
"es-errors": "^1.3.0"
|
| 213 |
+
},
|
| 214 |
+
"engines": {
|
| 215 |
+
"node": ">= 0.4"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"node_modules/escape-html": {
|
| 219 |
+
"version": "1.0.3",
|
| 220 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
| 221 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
| 222 |
+
"license": "MIT"
|
| 223 |
+
},
|
| 224 |
+
"node_modules/etag": {
|
| 225 |
+
"version": "1.8.1",
|
| 226 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
| 227 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
| 228 |
+
"license": "MIT",
|
| 229 |
+
"engines": {
|
| 230 |
+
"node": ">= 0.6"
|
| 231 |
+
}
|
| 232 |
+
},
|
| 233 |
+
"node_modules/express": {
|
| 234 |
+
"version": "4.22.1",
|
| 235 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
|
| 236 |
+
"integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
|
| 237 |
+
"license": "MIT",
|
| 238 |
+
"dependencies": {
|
| 239 |
+
"accepts": "~1.3.8",
|
| 240 |
+
"array-flatten": "1.1.1",
|
| 241 |
+
"body-parser": "~1.20.3",
|
| 242 |
+
"content-disposition": "~0.5.4",
|
| 243 |
+
"content-type": "~1.0.4",
|
| 244 |
+
"cookie": "~0.7.1",
|
| 245 |
+
"cookie-signature": "~1.0.6",
|
| 246 |
+
"debug": "2.6.9",
|
| 247 |
+
"depd": "2.0.0",
|
| 248 |
+
"encodeurl": "~2.0.0",
|
| 249 |
+
"escape-html": "~1.0.3",
|
| 250 |
+
"etag": "~1.8.1",
|
| 251 |
+
"finalhandler": "~1.3.1",
|
| 252 |
+
"fresh": "~0.5.2",
|
| 253 |
+
"http-errors": "~2.0.0",
|
| 254 |
+
"merge-descriptors": "1.0.3",
|
| 255 |
+
"methods": "~1.1.2",
|
| 256 |
+
"on-finished": "~2.4.1",
|
| 257 |
+
"parseurl": "~1.3.3",
|
| 258 |
+
"path-to-regexp": "~0.1.12",
|
| 259 |
+
"proxy-addr": "~2.0.7",
|
| 260 |
+
"qs": "~6.14.0",
|
| 261 |
+
"range-parser": "~1.2.1",
|
| 262 |
+
"safe-buffer": "5.2.1",
|
| 263 |
+
"send": "~0.19.0",
|
| 264 |
+
"serve-static": "~1.16.2",
|
| 265 |
+
"setprototypeof": "1.2.0",
|
| 266 |
+
"statuses": "~2.0.1",
|
| 267 |
+
"type-is": "~1.6.18",
|
| 268 |
+
"utils-merge": "1.0.1",
|
| 269 |
+
"vary": "~1.1.2"
|
| 270 |
+
},
|
| 271 |
+
"engines": {
|
| 272 |
+
"node": ">= 0.10.0"
|
| 273 |
+
},
|
| 274 |
+
"funding": {
|
| 275 |
+
"type": "opencollective",
|
| 276 |
+
"url": "https://opencollective.com/express"
|
| 277 |
+
}
|
| 278 |
+
},
|
| 279 |
+
"node_modules/finalhandler": {
|
| 280 |
+
"version": "1.3.2",
|
| 281 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
|
| 282 |
+
"integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
|
| 283 |
+
"license": "MIT",
|
| 284 |
+
"dependencies": {
|
| 285 |
+
"debug": "2.6.9",
|
| 286 |
+
"encodeurl": "~2.0.0",
|
| 287 |
+
"escape-html": "~1.0.3",
|
| 288 |
+
"on-finished": "~2.4.1",
|
| 289 |
+
"parseurl": "~1.3.3",
|
| 290 |
+
"statuses": "~2.0.2",
|
| 291 |
+
"unpipe": "~1.0.0"
|
| 292 |
+
},
|
| 293 |
+
"engines": {
|
| 294 |
+
"node": ">= 0.8"
|
| 295 |
+
}
|
| 296 |
+
},
|
| 297 |
+
"node_modules/forwarded": {
|
| 298 |
+
"version": "0.2.0",
|
| 299 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
| 300 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
| 301 |
+
"license": "MIT",
|
| 302 |
+
"engines": {
|
| 303 |
+
"node": ">= 0.6"
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
"node_modules/fresh": {
|
| 307 |
+
"version": "0.5.2",
|
| 308 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
| 309 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
| 310 |
+
"license": "MIT",
|
| 311 |
+
"engines": {
|
| 312 |
+
"node": ">= 0.6"
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
"node_modules/function-bind": {
|
| 316 |
+
"version": "1.1.2",
|
| 317 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 318 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 319 |
+
"license": "MIT",
|
| 320 |
+
"funding": {
|
| 321 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
"node_modules/get-intrinsic": {
|
| 325 |
+
"version": "1.3.0",
|
| 326 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
| 327 |
+
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
| 328 |
+
"license": "MIT",
|
| 329 |
+
"dependencies": {
|
| 330 |
+
"call-bind-apply-helpers": "^1.0.2",
|
| 331 |
+
"es-define-property": "^1.0.1",
|
| 332 |
+
"es-errors": "^1.3.0",
|
| 333 |
+
"es-object-atoms": "^1.1.1",
|
| 334 |
+
"function-bind": "^1.1.2",
|
| 335 |
+
"get-proto": "^1.0.1",
|
| 336 |
+
"gopd": "^1.2.0",
|
| 337 |
+
"has-symbols": "^1.1.0",
|
| 338 |
+
"hasown": "^2.0.2",
|
| 339 |
+
"math-intrinsics": "^1.1.0"
|
| 340 |
+
},
|
| 341 |
+
"engines": {
|
| 342 |
+
"node": ">= 0.4"
|
| 343 |
+
},
|
| 344 |
+
"funding": {
|
| 345 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"node_modules/get-proto": {
|
| 349 |
+
"version": "1.0.1",
|
| 350 |
+
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
| 351 |
+
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
| 352 |
+
"license": "MIT",
|
| 353 |
+
"dependencies": {
|
| 354 |
+
"dunder-proto": "^1.0.1",
|
| 355 |
+
"es-object-atoms": "^1.0.0"
|
| 356 |
+
},
|
| 357 |
+
"engines": {
|
| 358 |
+
"node": ">= 0.4"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"node_modules/gopd": {
|
| 362 |
+
"version": "1.2.0",
|
| 363 |
+
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
| 364 |
+
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
| 365 |
+
"license": "MIT",
|
| 366 |
+
"engines": {
|
| 367 |
+
"node": ">= 0.4"
|
| 368 |
+
},
|
| 369 |
+
"funding": {
|
| 370 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
"node_modules/has-symbols": {
|
| 374 |
+
"version": "1.1.0",
|
| 375 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
| 376 |
+
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
| 377 |
+
"license": "MIT",
|
| 378 |
+
"engines": {
|
| 379 |
+
"node": ">= 0.4"
|
| 380 |
+
},
|
| 381 |
+
"funding": {
|
| 382 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 383 |
+
}
|
| 384 |
+
},
|
| 385 |
+
"node_modules/hasown": {
|
| 386 |
+
"version": "2.0.2",
|
| 387 |
+
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 388 |
+
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
| 389 |
+
"license": "MIT",
|
| 390 |
+
"dependencies": {
|
| 391 |
+
"function-bind": "^1.1.2"
|
| 392 |
+
},
|
| 393 |
+
"engines": {
|
| 394 |
+
"node": ">= 0.4"
|
| 395 |
+
}
|
| 396 |
+
},
|
| 397 |
+
"node_modules/http-errors": {
|
| 398 |
+
"version": "2.0.1",
|
| 399 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
|
| 400 |
+
"integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
|
| 401 |
+
"license": "MIT",
|
| 402 |
+
"dependencies": {
|
| 403 |
+
"depd": "~2.0.0",
|
| 404 |
+
"inherits": "~2.0.4",
|
| 405 |
+
"setprototypeof": "~1.2.0",
|
| 406 |
+
"statuses": "~2.0.2",
|
| 407 |
+
"toidentifier": "~1.0.1"
|
| 408 |
+
},
|
| 409 |
+
"engines": {
|
| 410 |
+
"node": ">= 0.8"
|
| 411 |
+
},
|
| 412 |
+
"funding": {
|
| 413 |
+
"type": "opencollective",
|
| 414 |
+
"url": "https://opencollective.com/express"
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
"node_modules/iconv-lite": {
|
| 418 |
+
"version": "0.4.24",
|
| 419 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
| 420 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
| 421 |
+
"license": "MIT",
|
| 422 |
+
"dependencies": {
|
| 423 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
| 424 |
+
},
|
| 425 |
+
"engines": {
|
| 426 |
+
"node": ">=0.10.0"
|
| 427 |
+
}
|
| 428 |
+
},
|
| 429 |
+
"node_modules/inherits": {
|
| 430 |
+
"version": "2.0.4",
|
| 431 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 432 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 433 |
+
"license": "ISC"
|
| 434 |
+
},
|
| 435 |
+
"node_modules/ipaddr.js": {
|
| 436 |
+
"version": "1.9.1",
|
| 437 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
| 438 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
| 439 |
+
"license": "MIT",
|
| 440 |
+
"engines": {
|
| 441 |
+
"node": ">= 0.10"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"node_modules/math-intrinsics": {
|
| 445 |
+
"version": "1.1.0",
|
| 446 |
+
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
| 447 |
+
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
| 448 |
+
"license": "MIT",
|
| 449 |
+
"engines": {
|
| 450 |
+
"node": ">= 0.4"
|
| 451 |
+
}
|
| 452 |
+
},
|
| 453 |
+
"node_modules/media-typer": {
|
| 454 |
+
"version": "0.3.0",
|
| 455 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
| 456 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
| 457 |
+
"license": "MIT",
|
| 458 |
+
"engines": {
|
| 459 |
+
"node": ">= 0.6"
|
| 460 |
+
}
|
| 461 |
+
},
|
| 462 |
+
"node_modules/merge-descriptors": {
|
| 463 |
+
"version": "1.0.3",
|
| 464 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
| 465 |
+
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
| 466 |
+
"license": "MIT",
|
| 467 |
+
"funding": {
|
| 468 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
"node_modules/methods": {
|
| 472 |
+
"version": "1.1.2",
|
| 473 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
| 474 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
| 475 |
+
"license": "MIT",
|
| 476 |
+
"engines": {
|
| 477 |
+
"node": ">= 0.6"
|
| 478 |
+
}
|
| 479 |
+
},
|
| 480 |
+
"node_modules/mime": {
|
| 481 |
+
"version": "1.6.0",
|
| 482 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
| 483 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
| 484 |
+
"license": "MIT",
|
| 485 |
+
"bin": {
|
| 486 |
+
"mime": "cli.js"
|
| 487 |
+
},
|
| 488 |
+
"engines": {
|
| 489 |
+
"node": ">=4"
|
| 490 |
+
}
|
| 491 |
+
},
|
| 492 |
+
"node_modules/mime-db": {
|
| 493 |
+
"version": "1.52.0",
|
| 494 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 495 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
| 496 |
+
"license": "MIT",
|
| 497 |
+
"engines": {
|
| 498 |
+
"node": ">= 0.6"
|
| 499 |
+
}
|
| 500 |
+
},
|
| 501 |
+
"node_modules/mime-types": {
|
| 502 |
+
"version": "2.1.35",
|
| 503 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 504 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 505 |
+
"license": "MIT",
|
| 506 |
+
"dependencies": {
|
| 507 |
+
"mime-db": "1.52.0"
|
| 508 |
+
},
|
| 509 |
+
"engines": {
|
| 510 |
+
"node": ">= 0.6"
|
| 511 |
+
}
|
| 512 |
+
},
|
| 513 |
+
"node_modules/ms": {
|
| 514 |
+
"version": "2.0.0",
|
| 515 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
| 516 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 517 |
+
"license": "MIT"
|
| 518 |
+
},
|
| 519 |
+
"node_modules/negotiator": {
|
| 520 |
+
"version": "0.6.3",
|
| 521 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
| 522 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
| 523 |
+
"license": "MIT",
|
| 524 |
+
"engines": {
|
| 525 |
+
"node": ">= 0.6"
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
"node_modules/object-inspect": {
|
| 529 |
+
"version": "1.13.4",
|
| 530 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
| 531 |
+
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
| 532 |
+
"license": "MIT",
|
| 533 |
+
"engines": {
|
| 534 |
+
"node": ">= 0.4"
|
| 535 |
+
},
|
| 536 |
+
"funding": {
|
| 537 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 538 |
+
}
|
| 539 |
+
},
|
| 540 |
+
"node_modules/on-finished": {
|
| 541 |
+
"version": "2.4.1",
|
| 542 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
| 543 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
| 544 |
+
"license": "MIT",
|
| 545 |
+
"dependencies": {
|
| 546 |
+
"ee-first": "1.1.1"
|
| 547 |
+
},
|
| 548 |
+
"engines": {
|
| 549 |
+
"node": ">= 0.8"
|
| 550 |
+
}
|
| 551 |
+
},
|
| 552 |
+
"node_modules/parseurl": {
|
| 553 |
+
"version": "1.3.3",
|
| 554 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 555 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 556 |
+
"license": "MIT",
|
| 557 |
+
"engines": {
|
| 558 |
+
"node": ">= 0.8"
|
| 559 |
+
}
|
| 560 |
+
},
|
| 561 |
+
"node_modules/path-to-regexp": {
|
| 562 |
+
"version": "0.1.13",
|
| 563 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
|
| 564 |
+
"integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
|
| 565 |
+
"license": "MIT"
|
| 566 |
+
},
|
| 567 |
+
"node_modules/proxy-addr": {
|
| 568 |
+
"version": "2.0.7",
|
| 569 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
| 570 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
| 571 |
+
"license": "MIT",
|
| 572 |
+
"dependencies": {
|
| 573 |
+
"forwarded": "0.2.0",
|
| 574 |
+
"ipaddr.js": "1.9.1"
|
| 575 |
+
},
|
| 576 |
+
"engines": {
|
| 577 |
+
"node": ">= 0.10"
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
"node_modules/qs": {
|
| 581 |
+
"version": "6.14.2",
|
| 582 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
|
| 583 |
+
"integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
|
| 584 |
+
"license": "BSD-3-Clause",
|
| 585 |
+
"dependencies": {
|
| 586 |
+
"side-channel": "^1.1.0"
|
| 587 |
+
},
|
| 588 |
+
"engines": {
|
| 589 |
+
"node": ">=0.6"
|
| 590 |
+
},
|
| 591 |
+
"funding": {
|
| 592 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 593 |
+
}
|
| 594 |
+
},
|
| 595 |
+
"node_modules/range-parser": {
|
| 596 |
+
"version": "1.2.1",
|
| 597 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
| 598 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
| 599 |
+
"license": "MIT",
|
| 600 |
+
"engines": {
|
| 601 |
+
"node": ">= 0.6"
|
| 602 |
+
}
|
| 603 |
+
},
|
| 604 |
+
"node_modules/raw-body": {
|
| 605 |
+
"version": "2.5.3",
|
| 606 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
|
| 607 |
+
"integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
|
| 608 |
+
"license": "MIT",
|
| 609 |
+
"dependencies": {
|
| 610 |
+
"bytes": "~3.1.2",
|
| 611 |
+
"http-errors": "~2.0.1",
|
| 612 |
+
"iconv-lite": "~0.4.24",
|
| 613 |
+
"unpipe": "~1.0.0"
|
| 614 |
+
},
|
| 615 |
+
"engines": {
|
| 616 |
+
"node": ">= 0.8"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
"node_modules/safe-buffer": {
|
| 620 |
+
"version": "5.2.1",
|
| 621 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
| 622 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
| 623 |
+
"funding": [
|
| 624 |
+
{
|
| 625 |
+
"type": "github",
|
| 626 |
+
"url": "https://github.com/sponsors/feross"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "patreon",
|
| 630 |
+
"url": "https://www.patreon.com/feross"
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "consulting",
|
| 634 |
+
"url": "https://feross.org/support"
|
| 635 |
+
}
|
| 636 |
+
],
|
| 637 |
+
"license": "MIT"
|
| 638 |
+
},
|
| 639 |
+
"node_modules/safer-buffer": {
|
| 640 |
+
"version": "2.1.2",
|
| 641 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
| 642 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 643 |
+
"license": "MIT"
|
| 644 |
+
},
|
| 645 |
+
"node_modules/send": {
|
| 646 |
+
"version": "0.19.2",
|
| 647 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
|
| 648 |
+
"integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
|
| 649 |
+
"license": "MIT",
|
| 650 |
+
"dependencies": {
|
| 651 |
+
"debug": "2.6.9",
|
| 652 |
+
"depd": "2.0.0",
|
| 653 |
+
"destroy": "1.2.0",
|
| 654 |
+
"encodeurl": "~2.0.0",
|
| 655 |
+
"escape-html": "~1.0.3",
|
| 656 |
+
"etag": "~1.8.1",
|
| 657 |
+
"fresh": "~0.5.2",
|
| 658 |
+
"http-errors": "~2.0.1",
|
| 659 |
+
"mime": "1.6.0",
|
| 660 |
+
"ms": "2.1.3",
|
| 661 |
+
"on-finished": "~2.4.1",
|
| 662 |
+
"range-parser": "~1.2.1",
|
| 663 |
+
"statuses": "~2.0.2"
|
| 664 |
+
},
|
| 665 |
+
"engines": {
|
| 666 |
+
"node": ">= 0.8.0"
|
| 667 |
+
}
|
| 668 |
+
},
|
| 669 |
+
"node_modules/send/node_modules/ms": {
|
| 670 |
+
"version": "2.1.3",
|
| 671 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 672 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 673 |
+
"license": "MIT"
|
| 674 |
+
},
|
| 675 |
+
"node_modules/serve-static": {
|
| 676 |
+
"version": "1.16.3",
|
| 677 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
|
| 678 |
+
"integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
|
| 679 |
+
"license": "MIT",
|
| 680 |
+
"dependencies": {
|
| 681 |
+
"encodeurl": "~2.0.0",
|
| 682 |
+
"escape-html": "~1.0.3",
|
| 683 |
+
"parseurl": "~1.3.3",
|
| 684 |
+
"send": "~0.19.1"
|
| 685 |
+
},
|
| 686 |
+
"engines": {
|
| 687 |
+
"node": ">= 0.8.0"
|
| 688 |
+
}
|
| 689 |
+
},
|
| 690 |
+
"node_modules/setprototypeof": {
|
| 691 |
+
"version": "1.2.0",
|
| 692 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
| 693 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
| 694 |
+
"license": "ISC"
|
| 695 |
+
},
|
| 696 |
+
"node_modules/side-channel": {
|
| 697 |
+
"version": "1.1.0",
|
| 698 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
| 699 |
+
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
| 700 |
+
"license": "MIT",
|
| 701 |
+
"dependencies": {
|
| 702 |
+
"es-errors": "^1.3.0",
|
| 703 |
+
"object-inspect": "^1.13.3",
|
| 704 |
+
"side-channel-list": "^1.0.0",
|
| 705 |
+
"side-channel-map": "^1.0.1",
|
| 706 |
+
"side-channel-weakmap": "^1.0.2"
|
| 707 |
+
},
|
| 708 |
+
"engines": {
|
| 709 |
+
"node": ">= 0.4"
|
| 710 |
+
},
|
| 711 |
+
"funding": {
|
| 712 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 713 |
+
}
|
| 714 |
+
},
|
| 715 |
+
"node_modules/side-channel-list": {
|
| 716 |
+
"version": "1.0.1",
|
| 717 |
+
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
|
| 718 |
+
"integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
|
| 719 |
+
"license": "MIT",
|
| 720 |
+
"dependencies": {
|
| 721 |
+
"es-errors": "^1.3.0",
|
| 722 |
+
"object-inspect": "^1.13.4"
|
| 723 |
+
},
|
| 724 |
+
"engines": {
|
| 725 |
+
"node": ">= 0.4"
|
| 726 |
+
},
|
| 727 |
+
"funding": {
|
| 728 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 729 |
+
}
|
| 730 |
+
},
|
| 731 |
+
"node_modules/side-channel-map": {
|
| 732 |
+
"version": "1.0.1",
|
| 733 |
+
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
| 734 |
+
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
| 735 |
+
"license": "MIT",
|
| 736 |
+
"dependencies": {
|
| 737 |
+
"call-bound": "^1.0.2",
|
| 738 |
+
"es-errors": "^1.3.0",
|
| 739 |
+
"get-intrinsic": "^1.2.5",
|
| 740 |
+
"object-inspect": "^1.13.3"
|
| 741 |
+
},
|
| 742 |
+
"engines": {
|
| 743 |
+
"node": ">= 0.4"
|
| 744 |
+
},
|
| 745 |
+
"funding": {
|
| 746 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 747 |
+
}
|
| 748 |
+
},
|
| 749 |
+
"node_modules/side-channel-weakmap": {
|
| 750 |
+
"version": "1.0.2",
|
| 751 |
+
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
| 752 |
+
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
| 753 |
+
"license": "MIT",
|
| 754 |
+
"dependencies": {
|
| 755 |
+
"call-bound": "^1.0.2",
|
| 756 |
+
"es-errors": "^1.3.0",
|
| 757 |
+
"get-intrinsic": "^1.2.5",
|
| 758 |
+
"object-inspect": "^1.13.3",
|
| 759 |
+
"side-channel-map": "^1.0.1"
|
| 760 |
+
},
|
| 761 |
+
"engines": {
|
| 762 |
+
"node": ">= 0.4"
|
| 763 |
+
},
|
| 764 |
+
"funding": {
|
| 765 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 766 |
+
}
|
| 767 |
+
},
|
| 768 |
+
"node_modules/statuses": {
|
| 769 |
+
"version": "2.0.2",
|
| 770 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
|
| 771 |
+
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
|
| 772 |
+
"license": "MIT",
|
| 773 |
+
"engines": {
|
| 774 |
+
"node": ">= 0.8"
|
| 775 |
+
}
|
| 776 |
+
},
|
| 777 |
+
"node_modules/toidentifier": {
|
| 778 |
+
"version": "1.0.1",
|
| 779 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
| 780 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
| 781 |
+
"license": "MIT",
|
| 782 |
+
"engines": {
|
| 783 |
+
"node": ">=0.6"
|
| 784 |
+
}
|
| 785 |
+
},
|
| 786 |
+
"node_modules/tshet-uinh": {
|
| 787 |
+
"version": "0.15.4",
|
| 788 |
+
"resolved": "https://registry.npmjs.org/tshet-uinh/-/tshet-uinh-0.15.4.tgz",
|
| 789 |
+
"integrity": "sha512-Bz93oMaSAkMp7pA6kKeBG3s860r9wbUPG1K/brkSkL01GQUK8okKVZcm0ZOVXCdBCWJXz00CXq+jm2IcYlfdkA==",
|
| 790 |
+
"license": "MIT",
|
| 791 |
+
"engines": {
|
| 792 |
+
"node": "^18.18 || ^20.9 || ^21 || >=22"
|
| 793 |
+
}
|
| 794 |
+
},
|
| 795 |
+
"node_modules/tshet-uinh-deriver-tools": {
|
| 796 |
+
"version": "0.2.0",
|
| 797 |
+
"resolved": "https://registry.npmjs.org/tshet-uinh-deriver-tools/-/tshet-uinh-deriver-tools-0.2.0.tgz",
|
| 798 |
+
"integrity": "sha512-r4MKw5fmezav00yGDzJkvfwvGnoKPPMmgjJtICFzKSULqUgKLaQQOGieor2Ts48NKcR+0sqOmW3ne2gTjVJa5w==",
|
| 799 |
+
"license": "MIT",
|
| 800 |
+
"peerDependencies": {
|
| 801 |
+
"tshet-uinh": "^0.15.0"
|
| 802 |
+
}
|
| 803 |
+
},
|
| 804 |
+
"node_modules/tshet-uinh-examples": {
|
| 805 |
+
"version": "20260216.0.0",
|
| 806 |
+
"resolved": "https://registry.npmjs.org/tshet-uinh-examples/-/tshet-uinh-examples-20260216.0.0.tgz",
|
| 807 |
+
"integrity": "sha512-XWk7h+JjvIBf3py8eqpsZNr2mbMGlXPCrSxw+MKmrqPEQGhu8QcBjD/CWCr02bdKKfGcpIPGRt8MDOGxaur+cQ==",
|
| 808 |
+
"license": "MIT",
|
| 809 |
+
"dependencies": {
|
| 810 |
+
"tshet-uinh": "^0.15.1",
|
| 811 |
+
"tshet-uinh-deriver-tools": "^0.2.0"
|
| 812 |
+
}
|
| 813 |
+
},
|
| 814 |
+
"node_modules/type-is": {
|
| 815 |
+
"version": "1.6.18",
|
| 816 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
| 817 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
| 818 |
+
"license": "MIT",
|
| 819 |
+
"dependencies": {
|
| 820 |
+
"media-typer": "0.3.0",
|
| 821 |
+
"mime-types": "~2.1.24"
|
| 822 |
+
},
|
| 823 |
+
"engines": {
|
| 824 |
+
"node": ">= 0.6"
|
| 825 |
+
}
|
| 826 |
+
},
|
| 827 |
+
"node_modules/unpipe": {
|
| 828 |
+
"version": "1.0.0",
|
| 829 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
| 830 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
| 831 |
+
"license": "MIT",
|
| 832 |
+
"engines": {
|
| 833 |
+
"node": ">= 0.8"
|
| 834 |
+
}
|
| 835 |
+
},
|
| 836 |
+
"node_modules/utils-merge": {
|
| 837 |
+
"version": "1.0.1",
|
| 838 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
| 839 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
| 840 |
+
"license": "MIT",
|
| 841 |
+
"engines": {
|
| 842 |
+
"node": ">= 0.4.0"
|
| 843 |
+
}
|
| 844 |
+
},
|
| 845 |
+
"node_modules/vary": {
|
| 846 |
+
"version": "1.1.2",
|
| 847 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
| 848 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
| 849 |
+
"license": "MIT",
|
| 850 |
+
"engines": {
|
| 851 |
+
"node": ">= 0.8"
|
| 852 |
+
}
|
| 853 |
+
}
|
| 854 |
+
}
|
| 855 |
+
}
|
package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "tshet-uinh-autoderiver-clone",
|
| 3 |
+
"private": true,
|
| 4 |
+
"type": "module",
|
| 5 |
+
"scripts": {
|
| 6 |
+
"start": "node server.mjs",
|
| 7 |
+
"dev": "node --watch server.mjs"
|
| 8 |
+
},
|
| 9 |
+
"dependencies": {
|
| 10 |
+
"express": "^4.21.2",
|
| 11 |
+
"tshet-uinh": "^0.15.4",
|
| 12 |
+
"tshet-uinh-examples": "20260216.0.0"
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
|
readme.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
see https://nk2028.shn.hk/tshet-uinh-autoderiver/
|
| 3 |
+
切韻音系自動推導器
|
| 4 |
+
|
server.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import express from "express";
|
| 2 |
+
import path from "path";
|
| 3 |
+
import { fileURLToPath } from "url";
|
| 4 |
+
import { derive } from "./derive-lib.mjs";
|
| 5 |
+
|
| 6 |
+
const __filename = fileURLToPath(import.meta.url);
|
| 7 |
+
const __dirname = path.dirname(__filename);
|
| 8 |
+
|
| 9 |
+
const app = express();
|
| 10 |
+
app.disable("x-powered-by");
|
| 11 |
+
|
| 12 |
+
app.use(express.json({ limit: "1mb" }));
|
| 13 |
+
|
| 14 |
+
// 静态资源:/static/*
|
| 15 |
+
app.use("/static", express.static(path.join(__dirname, "static")));
|
| 16 |
+
|
| 17 |
+
app.get("/", (_req, res) => {
|
| 18 |
+
res.sendFile(path.join(__dirname, "static", "index.html"));
|
| 19 |
+
});
|
| 20 |
+
|
| 21 |
+
app.post("/api/derive", (req, res) => {
|
| 22 |
+
try {
|
| 23 |
+
const { scheme = "tupa", text = "" } = req.body || {};
|
| 24 |
+
res.json(derive({ scheme, text }));
|
| 25 |
+
} catch (e) {
|
| 26 |
+
res.status(400).send(e?.message ? String(e.message) : String(e));
|
| 27 |
+
}
|
| 28 |
+
});
|
| 29 |
+
|
| 30 |
+
const port = Number.parseInt(process.env.PORT || "8000", 10);
|
| 31 |
+
app.listen(port, () => {
|
| 32 |
+
// eslint-disable-next-line no-console
|
| 33 |
+
console.log(`Server listening on http://127.0.0.1:${port}`);
|
| 34 |
+
});
|
| 35 |
+
|
static/app.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const $ = sel => document.querySelector(sel);
|
| 2 |
+
|
| 3 |
+
const inputEl = $("#input");
|
| 4 |
+
const outputEl = $("#output");
|
| 5 |
+
const schemeEl = $("#scheme");
|
| 6 |
+
const btnDerive = $("#btn-derive");
|
| 7 |
+
const btnCopy = $("#btn-copy");
|
| 8 |
+
let lastScheme = schemeEl.value;
|
| 9 |
+
|
| 10 |
+
function setBusy(busy) {
|
| 11 |
+
btnDerive.disabled = busy;
|
| 12 |
+
btnCopy.disabled = busy;
|
| 13 |
+
schemeEl.disabled = busy;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
// 如果用户直接用文件方式打开(file://),API 将不可用
|
| 17 |
+
if (location.protocol === "file:") {
|
| 18 |
+
setBusy(true);
|
| 19 |
+
outputEl.textContent = "检测到你是直接打开了 HTML 文件(file://)。请用后端服务启动后访问 http://127.0.0.1:8000/ 再推导。";
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
function escapeHtml(str) {
|
| 23 |
+
return str
|
| 24 |
+
.replaceAll("&", "&")
|
| 25 |
+
.replaceAll("<", "<")
|
| 26 |
+
.replaceAll(">", ">")
|
| 27 |
+
.replaceAll('"', """)
|
| 28 |
+
.replaceAll("'", "'");
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
function renderTokens(tokens) {
|
| 32 |
+
const parts = [];
|
| 33 |
+
for (const t of tokens) {
|
| 34 |
+
if (t.type === "raw") {
|
| 35 |
+
parts.push(escapeHtml(t.text || ""));
|
| 36 |
+
} else if (t.type === "annotated") {
|
| 37 |
+
const ch = escapeHtml(t.ch || "");
|
| 38 |
+
const rt = escapeHtml(t.pron || "");
|
| 39 |
+
if (lastScheme === "tupa_high_tang") {
|
| 40 |
+
// 对照模式:贴近原站“字(切韵拼音 /IPA/)”的展示风格
|
| 41 |
+
parts.push(`${ch}(${rt})`);
|
| 42 |
+
} else {
|
| 43 |
+
parts.push(`<ruby><rb>${ch}</rb><rt>${rt}</rt></ruby>`);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
outputEl.innerHTML = parts.join("");
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
function romanizationText(tokens) {
|
| 51 |
+
// 导出:单方案输出拼音序列;对照模式输出与屏幕一致的“字(… )”文本
|
| 52 |
+
if (lastScheme === "tupa_high_tang") {
|
| 53 |
+
let out = "";
|
| 54 |
+
for (const t of tokens) {
|
| 55 |
+
if (t.type === "raw") out += t.text || "";
|
| 56 |
+
else if (t.type === "annotated") out += `${t.ch || ""}(${t.pron || ""})`;
|
| 57 |
+
}
|
| 58 |
+
return out;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
let out = "";
|
| 62 |
+
for (const t of tokens) {
|
| 63 |
+
if (t.type === "raw") {
|
| 64 |
+
out += (t.text || "").replace(/[^\n]+/g, m => m.replaceAll(/[^\n]/g, "")); // 仅保留换行
|
| 65 |
+
} else if (t.type === "annotated") {
|
| 66 |
+
const s = (t.pron || "").trim();
|
| 67 |
+
if (!s) continue;
|
| 68 |
+
if (out && !out.endsWith("\n") && !out.endsWith(" ")) out += " ";
|
| 69 |
+
out += s;
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
return out.trim();
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
let lastTokens = [];
|
| 76 |
+
|
| 77 |
+
btnDerive.addEventListener("click", async () => {
|
| 78 |
+
setBusy(true);
|
| 79 |
+
outputEl.textContent = "推导中…";
|
| 80 |
+
try {
|
| 81 |
+
lastScheme = schemeEl.value;
|
| 82 |
+
const resp = await fetch("/api/derive", {
|
| 83 |
+
method: "POST",
|
| 84 |
+
headers: { "Content-Type": "application/json" },
|
| 85 |
+
body: JSON.stringify({ text: inputEl.value, scheme: schemeEl.value }),
|
| 86 |
+
});
|
| 87 |
+
if (!resp.ok) throw new Error(await resp.text());
|
| 88 |
+
const data = await resp.json();
|
| 89 |
+
lastTokens = data.tokens || [];
|
| 90 |
+
renderTokens(lastTokens);
|
| 91 |
+
} catch (e) {
|
| 92 |
+
outputEl.textContent = "推导失败:" + (e?.message || String(e));
|
| 93 |
+
} finally {
|
| 94 |
+
setBusy(false);
|
| 95 |
+
}
|
| 96 |
+
});
|
| 97 |
+
|
| 98 |
+
btnCopy.addEventListener("click", async () => {
|
| 99 |
+
try {
|
| 100 |
+
const text = romanizationText(lastTokens);
|
| 101 |
+
await navigator.clipboard.writeText(text);
|
| 102 |
+
btnCopy.textContent = "已复制";
|
| 103 |
+
setTimeout(() => (btnCopy.textContent = "复制所有结果"), 800);
|
| 104 |
+
} catch (e) {
|
| 105 |
+
alert("复制失败:" + (e?.message || String(e)));
|
| 106 |
+
}
|
| 107 |
+
});
|
| 108 |
+
|
| 109 |
+
// 预置示例(截取自原站示例文章开头)
|
| 110 |
+
inputEl.value =
|
| 111 |
+
"風煙俱淨,天山共色。";
|
static/index.html
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="zh-Hans">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>切韻音系自動推導器(复刻 - 核心功能)</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/styles.css" />
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<header class="header">
|
| 11 |
+
<h1>切韻音系自動推導器(复刻 - 核心功能)</h1>
|
| 12 |
+
<div class="toolbar">
|
| 13 |
+
<button id="btn-derive">推导</button>
|
| 14 |
+
<button id="btn-copy">复制所有结果</button>
|
| 15 |
+
<select id="scheme">
|
| 16 |
+
<option value="tupa">切韵拼音(TUPA)</option>
|
| 17 |
+
<option value="high_tang">推導盛唐(平水韻)擬音</option>
|
| 18 |
+
<option value="tupa_high_tang">切韵拼音 + 盛唐拟音(对照)</option>
|
| 19 |
+
</select>
|
| 20 |
+
</div>
|
| 21 |
+
</header>
|
| 22 |
+
|
| 23 |
+
<main class="main">
|
| 24 |
+
<section class="panel">
|
| 25 |
+
<h2>输入</h2>
|
| 26 |
+
<p class="hint">直接输入汉字(可整段文本)。多音字当前默认取一个代表读音。</p>
|
| 27 |
+
<textarea id="input" spellcheck="false"></textarea>
|
| 28 |
+
</section>
|
| 29 |
+
|
| 30 |
+
<section class="panel">
|
| 31 |
+
<h2>推导结果</h2>
|
| 32 |
+
<div id="output" class="output"></div>
|
| 33 |
+
</section>
|
| 34 |
+
</main>
|
| 35 |
+
|
| 36 |
+
<script src="/static/app.js"></script>
|
| 37 |
+
</body>
|
| 38 |
+
</html>
|
static/styles.css
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
color-scheme: light;
|
| 3 |
+
--border: #e5e5e5;
|
| 4 |
+
--bg: #fafafa;
|
| 5 |
+
--text: #222;
|
| 6 |
+
--muted: #666;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
body {
|
| 10 |
+
margin: 0;
|
| 11 |
+
font-family:
|
| 12 |
+
system-ui,
|
| 13 |
+
-apple-system,
|
| 14 |
+
Segoe UI,
|
| 15 |
+
Roboto,
|
| 16 |
+
"Noto Sans CJK SC",
|
| 17 |
+
"Noto Sans SC",
|
| 18 |
+
Arial,
|
| 19 |
+
sans-serif;
|
| 20 |
+
color: var(--text);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.header {
|
| 24 |
+
padding: 16px 20px;
|
| 25 |
+
border-bottom: 1px solid var(--border);
|
| 26 |
+
background: white;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.header h1 {
|
| 30 |
+
margin: 0 0 12px 0;
|
| 31 |
+
font-size: 18px;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.toolbar {
|
| 35 |
+
display: flex;
|
| 36 |
+
gap: 10px;
|
| 37 |
+
align-items: center;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
button,
|
| 41 |
+
select {
|
| 42 |
+
height: 32px;
|
| 43 |
+
padding: 0 10px;
|
| 44 |
+
border: 1px solid var(--border);
|
| 45 |
+
border-radius: 6px;
|
| 46 |
+
background: white;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
button {
|
| 50 |
+
cursor: pointer;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.main {
|
| 54 |
+
display: grid;
|
| 55 |
+
grid-template-columns: 1fr 1fr;
|
| 56 |
+
gap: 16px;
|
| 57 |
+
padding: 16px;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.panel {
|
| 61 |
+
border: 1px solid var(--border);
|
| 62 |
+
border-radius: 10px;
|
| 63 |
+
background: var(--bg);
|
| 64 |
+
padding: 12px;
|
| 65 |
+
min-height: 60vh;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.panel h2 {
|
| 69 |
+
margin: 0 0 10px 0;
|
| 70 |
+
font-size: 15px;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.hint {
|
| 74 |
+
margin: 0 0 10px 0;
|
| 75 |
+
color: var(--muted);
|
| 76 |
+
font-size: 13px;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
textarea {
|
| 80 |
+
width: 100%;
|
| 81 |
+
height: calc(60vh - 80px);
|
| 82 |
+
resize: vertical;
|
| 83 |
+
padding: 10px;
|
| 84 |
+
border-radius: 8px;
|
| 85 |
+
border: 1px solid var(--border);
|
| 86 |
+
font-size: 14px;
|
| 87 |
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
.output {
|
| 91 |
+
background: white;
|
| 92 |
+
border: 1px solid var(--border);
|
| 93 |
+
border-radius: 8px;
|
| 94 |
+
padding: 12px;
|
| 95 |
+
min-height: calc(60vh - 50px);
|
| 96 |
+
line-height: 2.1;
|
| 97 |
+
white-space: pre-wrap;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
ruby {
|
| 101 |
+
ruby-position: over;
|
| 102 |
+
ruby-align: center;
|
| 103 |
+
padding: 0 1px;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
rt {
|
| 107 |
+
font-size: 12px;
|
| 108 |
+
color: #6f2dbd;
|
| 109 |
+
}
|
| 110 |
+
|