@wsxjs/wsx-press 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/client.cjs +1 -0
- package/dist/client.js +1256 -0
- package/dist/index-ChO3PMD5.js +461 -0
- package/dist/index-uNJnOC7n.cjs +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +8 -0
- package/dist/node.cjs +47 -0
- package/dist/node.js +1708 -0
- package/package.json +90 -0
- package/src/client/components/DocLayout.css +49 -0
- package/src/client/components/DocLayout.wsx +92 -0
- package/src/client/components/DocPage.css +56 -0
- package/src/client/components/DocPage.wsx +480 -0
- package/src/client/components/DocSearch.css +113 -0
- package/src/client/components/DocSearch.wsx +328 -0
- package/src/client/components/DocSidebar.css +97 -0
- package/src/client/components/DocSidebar.wsx +173 -0
- package/src/client/components/DocTOC.css +105 -0
- package/src/client/components/DocTOC.wsx +262 -0
- package/src/client/index.ts +32 -0
- package/src/client/styles/code.css +242 -0
- package/src/client/styles/index.css +12 -0
- package/src/client/styles/reset.css +116 -0
- package/src/client/styles/theme.css +171 -0
- package/src/client/styles/typography.css +239 -0
- package/src/index.ts +26 -0
- package/src/node/index.ts +16 -0
- package/src/node/metadata.ts +113 -0
- package/src/node/plugin.ts +223 -0
- package/src/node/search.ts +53 -0
- package/src/node/toc.ts +148 -0
- package/src/node/typedoc.ts +96 -0
- package/src/types/wsx.d.ts +11 -0
- package/src/types.test.ts +118 -0
- package/src/types.ts +150 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
function K(e) {
|
|
2
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
+
}
|
|
4
|
+
var T = { exports: {} };
|
|
5
|
+
function G(e) {
|
|
6
|
+
try {
|
|
7
|
+
return JSON.stringify(e);
|
|
8
|
+
} catch {
|
|
9
|
+
return '"[Circular]"';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
var X = $;
|
|
13
|
+
function $(e, t, r) {
|
|
14
|
+
var s = r && r.stringify || G, i = 1;
|
|
15
|
+
if (typeof e == "object" && e !== null) {
|
|
16
|
+
var u = t.length + i;
|
|
17
|
+
if (u === 1) return e;
|
|
18
|
+
var h = new Array(u);
|
|
19
|
+
h[0] = s(e);
|
|
20
|
+
for (var c = 1; c < u; c++)
|
|
21
|
+
h[c] = s(t[c]);
|
|
22
|
+
return h.join(" ");
|
|
23
|
+
}
|
|
24
|
+
if (typeof e != "string")
|
|
25
|
+
return e;
|
|
26
|
+
var f = t.length;
|
|
27
|
+
if (f === 0) return e;
|
|
28
|
+
for (var n = "", o = 1 - i, l = -1, m = e && e.length || 0, a = 0; a < m; ) {
|
|
29
|
+
if (e.charCodeAt(a) === 37 && a + 1 < m) {
|
|
30
|
+
switch (l = l > -1 ? l : 0, e.charCodeAt(a + 1)) {
|
|
31
|
+
case 100:
|
|
32
|
+
// 'd'
|
|
33
|
+
case 102:
|
|
34
|
+
if (o >= f || t[o] == null) break;
|
|
35
|
+
l < a && (n += e.slice(l, a)), n += Number(t[o]), l = a + 2, a++;
|
|
36
|
+
break;
|
|
37
|
+
case 105:
|
|
38
|
+
if (o >= f || t[o] == null) break;
|
|
39
|
+
l < a && (n += e.slice(l, a)), n += Math.floor(Number(t[o])), l = a + 2, a++;
|
|
40
|
+
break;
|
|
41
|
+
case 79:
|
|
42
|
+
// 'O'
|
|
43
|
+
case 111:
|
|
44
|
+
// 'o'
|
|
45
|
+
case 106:
|
|
46
|
+
if (o >= f || t[o] === void 0) break;
|
|
47
|
+
l < a && (n += e.slice(l, a));
|
|
48
|
+
var w = typeof t[o];
|
|
49
|
+
if (w === "string") {
|
|
50
|
+
n += "'" + t[o] + "'", l = a + 2, a++;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
if (w === "function") {
|
|
54
|
+
n += t[o].name || "<anonymous>", l = a + 2, a++;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
n += s(t[o]), l = a + 2, a++;
|
|
58
|
+
break;
|
|
59
|
+
case 115:
|
|
60
|
+
if (o >= f)
|
|
61
|
+
break;
|
|
62
|
+
l < a && (n += e.slice(l, a)), n += String(t[o]), l = a + 2, a++;
|
|
63
|
+
break;
|
|
64
|
+
case 37:
|
|
65
|
+
l < a && (n += e.slice(l, a)), n += "%", l = a + 2, a++, o--;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
++o;
|
|
69
|
+
}
|
|
70
|
+
++a;
|
|
71
|
+
}
|
|
72
|
+
return l === -1 ? e : (l < m && (n += e.slice(l)), n);
|
|
73
|
+
}
|
|
74
|
+
const N = X;
|
|
75
|
+
T.exports = g;
|
|
76
|
+
const j = ce().console || {}, J = {
|
|
77
|
+
mapHttpRequest: _,
|
|
78
|
+
mapHttpResponse: _,
|
|
79
|
+
wrapRequestSerializer: F,
|
|
80
|
+
wrapResponseSerializer: F,
|
|
81
|
+
wrapErrorSerializer: F,
|
|
82
|
+
req: _,
|
|
83
|
+
res: _,
|
|
84
|
+
err: H,
|
|
85
|
+
errWithCause: H
|
|
86
|
+
};
|
|
87
|
+
function v(e, t) {
|
|
88
|
+
return e === "silent" ? 1 / 0 : t.levels.values[e];
|
|
89
|
+
}
|
|
90
|
+
const A = Symbol("pino.logFuncs"), C = Symbol("pino.hierarchy"), U = {
|
|
91
|
+
error: "log",
|
|
92
|
+
fatal: "error",
|
|
93
|
+
warn: "error",
|
|
94
|
+
info: "log",
|
|
95
|
+
debug: "log",
|
|
96
|
+
trace: "log"
|
|
97
|
+
};
|
|
98
|
+
function q(e, t) {
|
|
99
|
+
const r = {
|
|
100
|
+
logger: t,
|
|
101
|
+
parent: e[C]
|
|
102
|
+
};
|
|
103
|
+
t[C] = r;
|
|
104
|
+
}
|
|
105
|
+
function Q(e, t, r) {
|
|
106
|
+
const s = {};
|
|
107
|
+
t.forEach((i) => {
|
|
108
|
+
s[i] = r[i] ? r[i] : j[i] || j[U[i] || "log"] || y;
|
|
109
|
+
}), e[A] = s;
|
|
110
|
+
}
|
|
111
|
+
function Y(e, t) {
|
|
112
|
+
return Array.isArray(e) ? e.filter(function(s) {
|
|
113
|
+
return s !== "!stdSerializers.err";
|
|
114
|
+
}) : e === !0 ? Object.keys(t) : !1;
|
|
115
|
+
}
|
|
116
|
+
function g(e) {
|
|
117
|
+
e = e || {}, e.browser = e.browser || {};
|
|
118
|
+
const t = e.browser.transmit;
|
|
119
|
+
if (t && typeof t.send != "function")
|
|
120
|
+
throw Error("pino: transmit option must have a send function");
|
|
121
|
+
const r = e.browser.write || j;
|
|
122
|
+
e.browser.write && (e.browser.asObject = !0);
|
|
123
|
+
const s = e.serializers || {}, i = Y(e.browser.serialize, s);
|
|
124
|
+
let u = e.browser.serialize;
|
|
125
|
+
Array.isArray(e.browser.serialize) && e.browser.serialize.indexOf("!stdSerializers.err") > -1 && (u = !1);
|
|
126
|
+
const h = Object.keys(e.customLevels || {}), c = ["error", "fatal", "warn", "info", "debug", "trace"].concat(h);
|
|
127
|
+
typeof r == "function" && c.forEach(function(b) {
|
|
128
|
+
r[b] = r;
|
|
129
|
+
}), (e.enabled === !1 || e.browser.disabled) && (e.level = "silent");
|
|
130
|
+
const f = e.level || "info", n = Object.create(r);
|
|
131
|
+
n.log || (n.log = y), Q(n, c, r), q({}, n), Object.defineProperty(n, "levelVal", {
|
|
132
|
+
get: l
|
|
133
|
+
}), Object.defineProperty(n, "level", {
|
|
134
|
+
get: m,
|
|
135
|
+
set: a
|
|
136
|
+
});
|
|
137
|
+
const o = {
|
|
138
|
+
transmit: t,
|
|
139
|
+
serialize: i,
|
|
140
|
+
asObject: e.browser.asObject,
|
|
141
|
+
asObjectBindingsOnly: e.browser.asObjectBindingsOnly,
|
|
142
|
+
formatters: e.browser.formatters,
|
|
143
|
+
levels: c,
|
|
144
|
+
timestamp: oe(e),
|
|
145
|
+
messageKey: e.messageKey || "msg",
|
|
146
|
+
onChild: e.onChild || y
|
|
147
|
+
};
|
|
148
|
+
n.levels = Z(e), n.level = f, n.isLevelEnabled = function(b) {
|
|
149
|
+
return this.levels.values[b] ? this.levels.values[b] >= this.levels.values[this.level] : !1;
|
|
150
|
+
}, n.setMaxListeners = n.getMaxListeners = n.emit = n.addListener = n.on = n.prependListener = n.once = n.prependOnceListener = n.removeListener = n.removeAllListeners = n.listeners = n.listenerCount = n.eventNames = n.write = n.flush = y, n.serializers = s, n._serialize = i, n._stdErrSerialize = u, n.child = function(...b) {
|
|
151
|
+
return w.call(this, o, ...b);
|
|
152
|
+
}, t && (n._logEvent = V());
|
|
153
|
+
function l() {
|
|
154
|
+
return v(this.level, this);
|
|
155
|
+
}
|
|
156
|
+
function m() {
|
|
157
|
+
return this._level;
|
|
158
|
+
}
|
|
159
|
+
function a(b) {
|
|
160
|
+
if (b !== "silent" && !this.levels.values[b])
|
|
161
|
+
throw Error("unknown level " + b);
|
|
162
|
+
this._level = b, p(this, o, n, "error"), p(this, o, n, "fatal"), p(this, o, n, "warn"), p(this, o, n, "info"), p(this, o, n, "debug"), p(this, o, n, "trace"), h.forEach((d) => {
|
|
163
|
+
p(this, o, n, d);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function w(b, d, O) {
|
|
167
|
+
if (!d)
|
|
168
|
+
throw new Error("missing bindings for child Pino");
|
|
169
|
+
O = O || {}, i && d.serializers && (O.serializers = d.serializers);
|
|
170
|
+
const M = O.serializers;
|
|
171
|
+
if (i && M) {
|
|
172
|
+
var z = Object.assign({}, s, M), B = e.browser.serialize === !0 ? Object.keys(z) : i;
|
|
173
|
+
delete d.serializers, x([d], B, z, this._stdErrSerialize);
|
|
174
|
+
}
|
|
175
|
+
function D(E) {
|
|
176
|
+
this._childLevel = (E._childLevel | 0) + 1, this.bindings = d, z && (this.serializers = z, this._serialize = B), t && (this._logEvent = V(
|
|
177
|
+
[].concat(E._logEvent.bindings, d)
|
|
178
|
+
));
|
|
179
|
+
}
|
|
180
|
+
D.prototype = this;
|
|
181
|
+
const L = new D(this);
|
|
182
|
+
return q(this, L), L.child = function(...E) {
|
|
183
|
+
return w.call(this, b, ...E);
|
|
184
|
+
}, L.level = O.level || this.level, b.onChild(L), L;
|
|
185
|
+
}
|
|
186
|
+
return n;
|
|
187
|
+
}
|
|
188
|
+
function Z(e) {
|
|
189
|
+
const t = e.customLevels || {}, r = Object.assign({}, g.levels.values, t), s = Object.assign({}, g.levels.labels, ee(t));
|
|
190
|
+
return {
|
|
191
|
+
values: r,
|
|
192
|
+
labels: s
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function ee(e) {
|
|
196
|
+
const t = {};
|
|
197
|
+
return Object.keys(e).forEach(function(r) {
|
|
198
|
+
t[e[r]] = r;
|
|
199
|
+
}), t;
|
|
200
|
+
}
|
|
201
|
+
g.levels = {
|
|
202
|
+
values: {
|
|
203
|
+
fatal: 60,
|
|
204
|
+
error: 50,
|
|
205
|
+
warn: 40,
|
|
206
|
+
info: 30,
|
|
207
|
+
debug: 20,
|
|
208
|
+
trace: 10
|
|
209
|
+
},
|
|
210
|
+
labels: {
|
|
211
|
+
10: "trace",
|
|
212
|
+
20: "debug",
|
|
213
|
+
30: "info",
|
|
214
|
+
40: "warn",
|
|
215
|
+
50: "error",
|
|
216
|
+
60: "fatal"
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
g.stdSerializers = J;
|
|
220
|
+
g.stdTimeFunctions = Object.assign({}, { nullTime: I, epochTime: R, unixTime: ae, isoTime: le });
|
|
221
|
+
function te(e) {
|
|
222
|
+
const t = [];
|
|
223
|
+
e.bindings && t.push(e.bindings);
|
|
224
|
+
let r = e[C];
|
|
225
|
+
for (; r.parent; )
|
|
226
|
+
r = r.parent, r.logger.bindings && t.push(r.logger.bindings);
|
|
227
|
+
return t.reverse();
|
|
228
|
+
}
|
|
229
|
+
function p(e, t, r, s) {
|
|
230
|
+
if (Object.defineProperty(e, s, {
|
|
231
|
+
value: v(e.level, r) > v(s, r) ? y : r[A][s],
|
|
232
|
+
writable: !0,
|
|
233
|
+
enumerable: !0,
|
|
234
|
+
configurable: !0
|
|
235
|
+
}), e[s] === y) {
|
|
236
|
+
if (!t.transmit) return;
|
|
237
|
+
const u = t.transmit.level || e.level, h = v(u, r);
|
|
238
|
+
if (v(s, r) < h) return;
|
|
239
|
+
}
|
|
240
|
+
e[s] = ne(e, t, r, s);
|
|
241
|
+
const i = te(e);
|
|
242
|
+
i.length !== 0 && (e[s] = re(i, e[s]));
|
|
243
|
+
}
|
|
244
|
+
function re(e, t) {
|
|
245
|
+
return function() {
|
|
246
|
+
return t.apply(this, [...e, ...arguments]);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function ne(e, t, r, s) {
|
|
250
|
+
return /* @__PURE__ */ function(i) {
|
|
251
|
+
return function() {
|
|
252
|
+
const h = t.timestamp(), c = new Array(arguments.length), f = Object.getPrototypeOf && Object.getPrototypeOf(this) === j ? j : this;
|
|
253
|
+
for (var n = 0; n < c.length; n++) c[n] = arguments[n];
|
|
254
|
+
var o = !1;
|
|
255
|
+
if (t.serialize && (x(c, this._serialize, this.serializers, this._stdErrSerialize), o = !0), t.asObject || t.formatters ? i.call(f, ...ie(this, s, c, h, t)) : i.apply(f, c), t.transmit) {
|
|
256
|
+
const l = t.transmit.level || e._level, m = v(l, r), a = v(s, r);
|
|
257
|
+
if (a < m) return;
|
|
258
|
+
se(this, {
|
|
259
|
+
ts: h,
|
|
260
|
+
methodLevel: s,
|
|
261
|
+
methodValue: a,
|
|
262
|
+
transmitValue: r.levels.values[t.transmit.level || e._level],
|
|
263
|
+
send: t.transmit.send,
|
|
264
|
+
val: v(e._level, r)
|
|
265
|
+
}, c, o);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
}(e[A][s]);
|
|
269
|
+
}
|
|
270
|
+
function ie(e, t, r, s, i) {
|
|
271
|
+
const {
|
|
272
|
+
level: u,
|
|
273
|
+
log: h = (l) => l
|
|
274
|
+
} = i.formatters || {}, c = r.slice();
|
|
275
|
+
let f = c[0];
|
|
276
|
+
const n = {};
|
|
277
|
+
let o = (e._childLevel | 0) + 1;
|
|
278
|
+
if (o < 1 && (o = 1), s && (n.time = s), u) {
|
|
279
|
+
const l = u(t, e.levels.values[t]);
|
|
280
|
+
Object.assign(n, l);
|
|
281
|
+
} else
|
|
282
|
+
n.level = e.levels.values[t];
|
|
283
|
+
if (i.asObjectBindingsOnly) {
|
|
284
|
+
if (f !== null && typeof f == "object")
|
|
285
|
+
for (; o-- && typeof c[0] == "object"; )
|
|
286
|
+
Object.assign(n, c.shift());
|
|
287
|
+
return [h(n), ...c];
|
|
288
|
+
} else {
|
|
289
|
+
if (f !== null && typeof f == "object") {
|
|
290
|
+
for (; o-- && typeof c[0] == "object"; )
|
|
291
|
+
Object.assign(n, c.shift());
|
|
292
|
+
f = c.length ? N(c.shift(), c) : void 0;
|
|
293
|
+
} else typeof f == "string" && (f = N(c.shift(), c));
|
|
294
|
+
return f !== void 0 && (n[i.messageKey] = f), [h(n)];
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function x(e, t, r, s) {
|
|
298
|
+
for (const i in e)
|
|
299
|
+
if (s && e[i] instanceof Error)
|
|
300
|
+
e[i] = g.stdSerializers.err(e[i]);
|
|
301
|
+
else if (typeof e[i] == "object" && !Array.isArray(e[i]) && t)
|
|
302
|
+
for (const u in e[i])
|
|
303
|
+
t.indexOf(u) > -1 && u in r && (e[i][u] = r[u](e[i][u]));
|
|
304
|
+
}
|
|
305
|
+
function se(e, t, r, s = !1) {
|
|
306
|
+
const i = t.send, u = t.ts, h = t.methodLevel, c = t.methodValue, f = t.val, n = e._logEvent.bindings;
|
|
307
|
+
s || x(
|
|
308
|
+
r,
|
|
309
|
+
e._serialize || Object.keys(e.serializers),
|
|
310
|
+
e.serializers,
|
|
311
|
+
e._stdErrSerialize === void 0 ? !0 : e._stdErrSerialize
|
|
312
|
+
), e._logEvent.ts = u, e._logEvent.messages = r.filter(function(o) {
|
|
313
|
+
return n.indexOf(o) === -1;
|
|
314
|
+
}), e._logEvent.level.label = h, e._logEvent.level.value = c, i(h, e._logEvent, f), e._logEvent = V(n);
|
|
315
|
+
}
|
|
316
|
+
function V(e) {
|
|
317
|
+
return {
|
|
318
|
+
ts: 0,
|
|
319
|
+
messages: [],
|
|
320
|
+
bindings: e || [],
|
|
321
|
+
level: { label: "", value: 0 }
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
function H(e) {
|
|
325
|
+
const t = {
|
|
326
|
+
type: e.constructor.name,
|
|
327
|
+
msg: e.message,
|
|
328
|
+
stack: e.stack
|
|
329
|
+
};
|
|
330
|
+
for (const r in e)
|
|
331
|
+
t[r] === void 0 && (t[r] = e[r]);
|
|
332
|
+
return t;
|
|
333
|
+
}
|
|
334
|
+
function oe(e) {
|
|
335
|
+
return typeof e.timestamp == "function" ? e.timestamp : e.timestamp === !1 ? I : R;
|
|
336
|
+
}
|
|
337
|
+
function _() {
|
|
338
|
+
return {};
|
|
339
|
+
}
|
|
340
|
+
function F(e) {
|
|
341
|
+
return e;
|
|
342
|
+
}
|
|
343
|
+
function y() {
|
|
344
|
+
}
|
|
345
|
+
function I() {
|
|
346
|
+
return !1;
|
|
347
|
+
}
|
|
348
|
+
function R() {
|
|
349
|
+
return Date.now();
|
|
350
|
+
}
|
|
351
|
+
function ae() {
|
|
352
|
+
return Math.round(Date.now() / 1e3);
|
|
353
|
+
}
|
|
354
|
+
function le() {
|
|
355
|
+
return new Date(Date.now()).toISOString();
|
|
356
|
+
}
|
|
357
|
+
function ce() {
|
|
358
|
+
function e(t) {
|
|
359
|
+
return typeof t < "u" && t;
|
|
360
|
+
}
|
|
361
|
+
try {
|
|
362
|
+
return typeof globalThis < "u" || Object.defineProperty(Object.prototype, "globalThis", {
|
|
363
|
+
get: function() {
|
|
364
|
+
return delete Object.prototype.globalThis, this.globalThis = this;
|
|
365
|
+
},
|
|
366
|
+
configurable: !0
|
|
367
|
+
}), globalThis;
|
|
368
|
+
} catch {
|
|
369
|
+
return e(self) || e(window) || e(this) || {};
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
T.exports.default = g;
|
|
373
|
+
T.exports.pino = g;
|
|
374
|
+
var ue = T.exports;
|
|
375
|
+
const k = /* @__PURE__ */ K(ue);
|
|
376
|
+
function S() {
|
|
377
|
+
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
378
|
+
}
|
|
379
|
+
function fe() {
|
|
380
|
+
var e;
|
|
381
|
+
return typeof process < "u" && ((e = process.versions) == null ? void 0 : e.node) !== void 0;
|
|
382
|
+
}
|
|
383
|
+
function he() {
|
|
384
|
+
return typeof window < "u" && typeof document < "u";
|
|
385
|
+
}
|
|
386
|
+
const P = {
|
|
387
|
+
name: "WSX",
|
|
388
|
+
level: S() ? "info" : "debug",
|
|
389
|
+
pretty: !S()
|
|
390
|
+
};
|
|
391
|
+
function be(e = {}) {
|
|
392
|
+
const { name: t, level: r, pretty: s, pinoOptions: i } = { ...P, ...e }, u = {
|
|
393
|
+
name: t || P.name,
|
|
394
|
+
level: r || P.level,
|
|
395
|
+
...i
|
|
396
|
+
};
|
|
397
|
+
if (he() && (u.browser = {
|
|
398
|
+
asObject: !1,
|
|
399
|
+
// Use console methods directly (default behavior)
|
|
400
|
+
write: void 0,
|
|
401
|
+
// Use default console write
|
|
402
|
+
...(i == null ? void 0 : i.browser) || {}
|
|
403
|
+
// Allow override via pinoOptions
|
|
404
|
+
}), s && fe() && !S())
|
|
405
|
+
try {
|
|
406
|
+
return k(
|
|
407
|
+
u,
|
|
408
|
+
k.transport({
|
|
409
|
+
target: "pino-pretty",
|
|
410
|
+
options: {
|
|
411
|
+
colorize: !0,
|
|
412
|
+
translateTime: "HH:MM:ss.l",
|
|
413
|
+
ignore: "pid,hostname",
|
|
414
|
+
singleLine: !1
|
|
415
|
+
}
|
|
416
|
+
})
|
|
417
|
+
);
|
|
418
|
+
} catch {
|
|
419
|
+
return console.warn("[wsx-logger] pino-pretty not available, using default formatter"), k(u);
|
|
420
|
+
}
|
|
421
|
+
return k(u);
|
|
422
|
+
}
|
|
423
|
+
class W {
|
|
424
|
+
constructor(t = {}) {
|
|
425
|
+
this.isProd = S(), this.pinoLogger = be(t);
|
|
426
|
+
}
|
|
427
|
+
debug(t, ...r) {
|
|
428
|
+
this.isProd || (r.length > 0 ? this.pinoLogger.debug({ args: r }, t) : this.pinoLogger.debug(t));
|
|
429
|
+
}
|
|
430
|
+
info(t, ...r) {
|
|
431
|
+
this.isProd ? r.length > 0 ? this.pinoLogger.info({ args: r }, t) : this.pinoLogger.info(t) : r.length > 0 ? this.pinoLogger.info({ args: r }, t) : this.pinoLogger.info(t);
|
|
432
|
+
}
|
|
433
|
+
warn(t, ...r) {
|
|
434
|
+
r.length > 0 ? this.pinoLogger.warn({ args: r }, t) : this.pinoLogger.warn(t);
|
|
435
|
+
}
|
|
436
|
+
error(t, ...r) {
|
|
437
|
+
r.length > 0 ? this.pinoLogger.error({ args: r }, t) : this.pinoLogger.error(t);
|
|
438
|
+
}
|
|
439
|
+
fatal(t, ...r) {
|
|
440
|
+
r.length > 0 ? this.pinoLogger.fatal({ args: r }, t) : this.pinoLogger.fatal(t);
|
|
441
|
+
}
|
|
442
|
+
trace(t, ...r) {
|
|
443
|
+
this.isProd || (r.length > 0 ? this.pinoLogger.trace({ args: r }, t) : this.pinoLogger.trace(t));
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Get the underlying pino logger instance
|
|
447
|
+
*/
|
|
448
|
+
getPinoLogger() {
|
|
449
|
+
return this.pinoLogger;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
new W();
|
|
453
|
+
function de(e, t = {}) {
|
|
454
|
+
return new W({
|
|
455
|
+
...t,
|
|
456
|
+
name: t.name || `WSX:${e}`
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
export {
|
|
460
|
+
de as L
|
|
461
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T={exports:{}};function G(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var X=$;function $(e,t,r){var s=r&&r.stringify||G,i=1;if(typeof e=="object"&&e!==null){var u=t.length+i;if(u===1)return e;var h=new Array(u);h[0]=s(e);for(var c=1;c<u;c++)h[c]=s(t[c]);return h.join(" ")}if(typeof e!="string")return e;var f=t.length;if(f===0)return e;for(var n="",o=1-i,l=-1,m=e&&e.length||0,a=0;a<m;){if(e.charCodeAt(a)===37&&a+1<m){switch(l=l>-1?l:0,e.charCodeAt(a+1)){case 100:case 102:if(o>=f||t[o]==null)break;l<a&&(n+=e.slice(l,a)),n+=Number(t[o]),l=a+2,a++;break;case 105:if(o>=f||t[o]==null)break;l<a&&(n+=e.slice(l,a)),n+=Math.floor(Number(t[o])),l=a+2,a++;break;case 79:case 111:case 106:if(o>=f||t[o]===void 0)break;l<a&&(n+=e.slice(l,a));var w=typeof t[o];if(w==="string"){n+="'"+t[o]+"'",l=a+2,a++;break}if(w==="function"){n+=t[o].name||"<anonymous>",l=a+2,a++;break}n+=s(t[o]),l=a+2,a++;break;case 115:if(o>=f)break;l<a&&(n+=e.slice(l,a)),n+=String(t[o]),l=a+2,a++;break;case 37:l<a&&(n+=e.slice(l,a)),n+="%",l=a+2,a++,o--;break}++o}++a}return l===-1?e:(l<m&&(n+=e.slice(l)),n)}const N=X;T.exports=g;const j=ce().console||{},J={mapHttpRequest:_,mapHttpResponse:_,wrapRequestSerializer:F,wrapResponseSerializer:F,wrapErrorSerializer:F,req:_,res:_,err:H,errWithCause:H};function v(e,t){return e==="silent"?1/0:t.levels.values[e]}const A=Symbol("pino.logFuncs"),C=Symbol("pino.hierarchy"),U={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function q(e,t){const r={logger:t,parent:e[C]};t[C]=r}function Q(e,t,r){const s={};t.forEach(i=>{s[i]=r[i]?r[i]:j[i]||j[U[i]||"log"]||y}),e[A]=s}function Y(e,t){return Array.isArray(e)?e.filter(function(s){return s!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function g(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const r=e.browser.write||j;e.browser.write&&(e.browser.asObject=!0);const s=e.serializers||{},i=Y(e.browser.serialize,s);let u=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(u=!1);const h=Object.keys(e.customLevels||{}),c=["error","fatal","warn","info","debug","trace"].concat(h);typeof r=="function"&&c.forEach(function(b){r[b]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");const f=e.level||"info",n=Object.create(r);n.log||(n.log=y),Q(n,c,r),q({},n),Object.defineProperty(n,"levelVal",{get:l}),Object.defineProperty(n,"level",{get:m,set:a});const o={transmit:t,serialize:i,asObject:e.browser.asObject,asObjectBindingsOnly:e.browser.asObjectBindingsOnly,formatters:e.browser.formatters,levels:c,timestamp:oe(e),messageKey:e.messageKey||"msg",onChild:e.onChild||y};n.levels=Z(e),n.level=f,n.isLevelEnabled=function(b){return this.levels.values[b]?this.levels.values[b]>=this.levels.values[this.level]:!1},n.setMaxListeners=n.getMaxListeners=n.emit=n.addListener=n.on=n.prependListener=n.once=n.prependOnceListener=n.removeListener=n.removeAllListeners=n.listeners=n.listenerCount=n.eventNames=n.write=n.flush=y,n.serializers=s,n._serialize=i,n._stdErrSerialize=u,n.child=function(...b){return w.call(this,o,...b)},t&&(n._logEvent=V());function l(){return v(this.level,this)}function m(){return this._level}function a(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,p(this,o,n,"error"),p(this,o,n,"fatal"),p(this,o,n,"warn"),p(this,o,n,"info"),p(this,o,n,"debug"),p(this,o,n,"trace"),h.forEach(d=>{p(this,o,n,d)})}function w(b,d,O){if(!d)throw new Error("missing bindings for child Pino");O=O||{},i&&d.serializers&&(O.serializers=d.serializers);const x=O.serializers;if(i&&x){var z=Object.assign({},s,x),B=e.browser.serialize===!0?Object.keys(z):i;delete d.serializers,M([d],B,z,this._stdErrSerialize)}function D(E){this._childLevel=(E._childLevel|0)+1,this.bindings=d,z&&(this.serializers=z,this._serialize=B),t&&(this._logEvent=V([].concat(E._logEvent.bindings,d)))}D.prototype=this;const L=new D(this);return q(this,L),L.child=function(...E){return w.call(this,b,...E)},L.level=O.level||this.level,b.onChild(L),L}return n}function Z(e){const t=e.customLevels||{},r=Object.assign({},g.levels.values,t),s=Object.assign({},g.levels.labels,ee(t));return{values:r,labels:s}}function ee(e){const t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}g.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};g.stdSerializers=J;g.stdTimeFunctions=Object.assign({},{nullTime:I,epochTime:R,unixTime:ae,isoTime:le});function te(e){const t=[];e.bindings&&t.push(e.bindings);let r=e[C];for(;r.parent;)r=r.parent,r.logger.bindings&&t.push(r.logger.bindings);return t.reverse()}function p(e,t,r,s){if(Object.defineProperty(e,s,{value:v(e.level,r)>v(s,r)?y:r[A][s],writable:!0,enumerable:!0,configurable:!0}),e[s]===y){if(!t.transmit)return;const u=t.transmit.level||e.level,h=v(u,r);if(v(s,r)<h)return}e[s]=ne(e,t,r,s);const i=te(e);i.length!==0&&(e[s]=re(i,e[s]))}function re(e,t){return function(){return t.apply(this,[...e,...arguments])}}function ne(e,t,r,s){return function(i){return function(){const h=t.timestamp(),c=new Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===j?j:this;for(var n=0;n<c.length;n++)c[n]=arguments[n];var o=!1;if(t.serialize&&(M(c,this._serialize,this.serializers,this._stdErrSerialize),o=!0),t.asObject||t.formatters?i.call(f,...ie(this,s,c,h,t)):i.apply(f,c),t.transmit){const l=t.transmit.level||e._level,m=v(l,r),a=v(s,r);if(a<m)return;se(this,{ts:h,methodLevel:s,methodValue:a,transmitValue:r.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:v(e._level,r)},c,o)}}}(e[A][s])}function ie(e,t,r,s,i){const{level:u,log:h=l=>l}=i.formatters||{},c=r.slice();let f=c[0];const n={};let o=(e._childLevel|0)+1;if(o<1&&(o=1),s&&(n.time=s),u){const l=u(t,e.levels.values[t]);Object.assign(n,l)}else n.level=e.levels.values[t];if(i.asObjectBindingsOnly){if(f!==null&&typeof f=="object")for(;o--&&typeof c[0]=="object";)Object.assign(n,c.shift());return[h(n),...c]}else{if(f!==null&&typeof f=="object"){for(;o--&&typeof c[0]=="object";)Object.assign(n,c.shift());f=c.length?N(c.shift(),c):void 0}else typeof f=="string"&&(f=N(c.shift(),c));return f!==void 0&&(n[i.messageKey]=f),[h(n)]}}function M(e,t,r,s){for(const i in e)if(s&&e[i]instanceof Error)e[i]=g.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i])&&t)for(const u in e[i])t.indexOf(u)>-1&&u in r&&(e[i][u]=r[u](e[i][u]))}function se(e,t,r,s=!1){const i=t.send,u=t.ts,h=t.methodLevel,c=t.methodValue,f=t.val,n=e._logEvent.bindings;s||M(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=u,e._logEvent.messages=r.filter(function(o){return n.indexOf(o)===-1}),e._logEvent.level.label=h,e._logEvent.level.value=c,i(h,e._logEvent,f),e._logEvent=V(n)}function V(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function H(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function oe(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?I:R}function _(){return{}}function F(e){return e}function y(){}function I(){return!1}function R(){return Date.now()}function ae(){return Math.round(Date.now()/1e3)}function le(){return new Date(Date.now()).toISOString()}function ce(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}T.exports.default=g;T.exports.pino=g;var ue=T.exports;const k=K(ue);function S(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function fe(){var e;return typeof process<"u"&&((e=process.versions)==null?void 0:e.node)!==void 0}function he(){return typeof window<"u"&&typeof document<"u"}const P={name:"WSX",level:S()?"info":"debug",pretty:!S()};function be(e={}){const{name:t,level:r,pretty:s,pinoOptions:i}={...P,...e},u={name:t||P.name,level:r||P.level,...i};if(he()&&(u.browser={asObject:!1,write:void 0,...(i==null?void 0:i.browser)||{}}),s&&fe()&&!S())try{return k(u,k.transport({target:"pino-pretty",options:{colorize:!0,translateTime:"HH:MM:ss.l",ignore:"pid,hostname",singleLine:!1}}))}catch{return console.warn("[wsx-logger] pino-pretty not available, using default formatter"),k(u)}return k(u)}class W{constructor(t={}){this.isProd=S(),this.pinoLogger=be(t)}debug(t,...r){this.isProd||(r.length>0?this.pinoLogger.debug({args:r},t):this.pinoLogger.debug(t))}info(t,...r){this.isProd?r.length>0?this.pinoLogger.info({args:r},t):this.pinoLogger.info(t):r.length>0?this.pinoLogger.info({args:r},t):this.pinoLogger.info(t)}warn(t,...r){r.length>0?this.pinoLogger.warn({args:r},t):this.pinoLogger.warn(t)}error(t,...r){r.length>0?this.pinoLogger.error({args:r},t):this.pinoLogger.error(t)}fatal(t,...r){r.length>0?this.pinoLogger.fatal({args:r},t):this.pinoLogger.fatal(t)}trace(t,...r){this.isProd||(r.length>0?this.pinoLogger.trace({args:r},t):this.pinoLogger.trace(t))}getPinoLogger(){return this.pinoLogger}}new W;function de(e,t={}){return new W({...t,name:t.name||`WSX:${e}`})}exports.L=de;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class t extends Error{constructor(r,o,e){super(r),this.name="DocumentLoadError",this.code=o,this.details=e}}exports.DocumentLoadError=t;
|
package/dist/index.js
ADDED
package/dist/node.cjs
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";var _e=Object.defineProperty;var ie=a=>{throw TypeError(a)};var Ie=(a,t,e)=>t in a?_e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var k=(a,t,e)=>Ie(a,typeof t!="symbol"?t+"":t,e),Ae=(a,t,e)=>t.has(a)||ie("Cannot "+e);var re=(a,t,e)=>t.has(a)?ie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,e);var O=(a,t,e)=>(Ae(a,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ce=require("glob"),x=require("path"),m=require("fs-extra"),Q=require("typedoc"),je=require("./index-uNJnOC7n.cjs");async function C(a){const t=await Ce.glob("**/*.md",{cwd:a,absolute:!0}),e={};for(const n of t){const i=x.relative(a,n),r=await m.readFile(n,"utf-8"),s=ue(r),l=i.replace(/\.md$/,""),o=x.dirname(i);e[l]={title:s.title||x.basename(n,".md"),category:o==="."?".":o,route:`/docs/${l}`,...s}}return fe(e)}function ue(a){const t=a.match(/^---\n([\s\S]*?)\n---/);if(!t)return{};const e=t[1],n={};return e.split(`
|
|
2
|
+
`).forEach(i=>{const r=i.indexOf(":");if(r===-1)return;const s=i.substring(0,r).trim(),l=i.substring(r+1).trim();s&&l&&(s==="title"||s==="description"||s==="category"?n[s]=l:s==="tags"?n.tags=l.replace(/[[\]]/g,"").split(",").map(o=>o.trim()):n[s]=l)}),n}function fe(a){const t=new Map;for(const[e,n]of Object.entries(a)){const i=n.category;t.has(i)||t.set(i,[]),t.get(i).push(e)}for(const[e,n]of t){n.sort();for(let i=0;i<n.length;i++){const r=n[i];a[r].prev=i>0?`/docs/${n[i-1]}`:null,a[r].next=i<n.length-1?`/docs/${n[i+1]}`:null}}return a}async function H(a,t){const e=[];for(const[n,i]of Object.entries(a)){const r=x.join(t,`${n}.md`),l=(await m.readFile(r,"utf-8")).replace(/^---[\s\S]*?---/,"").replace(/```[\s\S]*?```/g,"").replace(/[#*`_[\]()]/g,"").trim();e.push({id:n,title:i.title,category:i.category,route:i.route,content:l.substring(0,500)})}return{documents:e,options:{keys:[{name:"title",weight:.7},{name:"content",weight:.3}],threshold:.3,includeScore:!0,includeMatches:!0}}}async function ge(a){const{entryPoints:t,tsconfig:e,outputDir:n,excludePrivate:i=!0,excludeProtected:r=!1,excludeInternal:s=!0,publicPath:l="/api/"}=a;for(const o of t)if(!await m.pathExists(o))throw new Error(`Entry point not found: ${o}`);if(!await m.pathExists(e))throw new Error(`TypeScript config not found: ${e}`);await m.ensureDir(n);try{const o=await Q.Application.bootstrapWithPlugins({entryPoints:t,tsconfig:e,plugin:["typedoc-plugin-markdown"],theme:"markdown",readme:"none",excludePrivate:i,excludeProtected:r,excludeInternal:s,publicPath:l});o.options.addReader(new Q.TSConfigReader),o.options.addReader(new Q.TypeDocReader);const p=await o.convert();if(!p)throw new Error("Failed to convert TypeScript project");await o.generateDocs(p,n)}catch(o){throw new Error(`Failed to generate API documentation: ${o instanceof Error?o.message:String(o)}`)}}function G(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let I=G();function de(a){I=a}const ke=/[&<>"']/,Pe=new RegExp(ke.source,"g"),xe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ee=new RegExp(xe.source,"g"),ve={"&":"&","<":"<",">":">",'"':""","'":"'"},oe=a=>ve[a];function b(a,t){if(t){if(ke.test(a))return a.replace(Pe,oe)}else if(xe.test(a))return a.replace(Ee,oe);return a}const Oe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Le(a){return a.replace(Oe,(t,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const De=/(^|[^\[])\^/g;function d(a,t){let e=typeof a=="string"?a:a.source;t=t||"";const n={replace:(i,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(De,"$1"),e=e.replace(i,s),n},getRegex:()=>new RegExp(e,t)};return n}function le(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch{return null}return a}const j={exec:()=>null};function ae(a,t){const e=a.replace(/\|/g,(r,s,l)=>{let o=!1,p=s;for(;--p>=0&&l[p]==="\\";)o=!o;return o?"|":" |"}),n=e.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function L(a,t,e){const n=a.length;if(n===0)return"";let i=0;for(;i<n&&a.charAt(n-i-1)===t;)i++;return a.slice(0,n-i)}function qe(a,t){if(a.indexOf(t[1])===-1)return-1;let e=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===t[0])e++;else if(a[n]===t[1]&&(e--,e<0))return n;return-1}function ce(a,t,e,n){const i=t.href,r=t.title?b(t.title):null,s=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:e,href:i,title:r,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:e,href:i,title:r,text:b(s)}}function Ze(a,t){const e=a.match(/^(\s+)(?:```)/);if(e===null)return t;const n=e[1];return t.split(`
|
|
3
|
+
`).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[s]=r;return s.length>=n.length?i.slice(n.length):i}).join(`
|
|
4
|
+
`)}class q{constructor(t){k(this,"options");k(this,"rules");k(this,"lexer");this.options=t||I}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:L(n,`
|
|
5
|
+
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],i=Ze(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(/#$/.test(n)){const i=L(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=e[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
6
|
+
$1`);n=L(n.replace(/^ *>[ \t]?/gm,""),`
|
|
7
|
+
`);const i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:e[0],tokens:r,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const i=n.length>1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const s=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",o="",p=!1;for(;t;){let c=!1;if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;l=e[0],t=t.substring(l.length);let u=e[2].split(`
|
|
8
|
+
`,1)[0].replace(/^\t+/,N=>" ".repeat(3*N.length)),h=t.split(`
|
|
9
|
+
`,1)[0],f=0;this.options.pedantic?(f=2,o=u.trimStart()):(f=e[2].search(/[^ ]/),f=f>4?1:f,o=u.slice(f),f+=e[1].length);let w=!1;if(!u&&/^ *$/.test(h)&&(l+=h+`
|
|
10
|
+
`,t=t.substring(h.length+1),c=!0),!c){const N=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),te=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ne=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),se=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;t;){const F=t.split(`
|
|
11
|
+
`,1)[0];if(h=F,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),ne.test(h)||se.test(h)||N.test(h)||te.test(t))break;if(h.search(/[^ ]/)>=f||!h.trim())o+=`
|
|
12
|
+
`+h.slice(f);else{if(w||u.search(/[^ ]/)>=4||ne.test(u)||se.test(u)||te.test(u))break;o+=`
|
|
13
|
+
`+h}!w&&!h.trim()&&(w=!0),l+=F+`
|
|
14
|
+
`,t=t.substring(F.length+1),u=h.slice(f)}}r.loose||(p?r.loose=!0:/\n *\n *$/.test(l)&&(p=!0));let y=null,R;this.options.gfm&&(y=/^\[[ xX]\] /.exec(o),y&&(R=y[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:l,task:!!y,checked:R,loose:!1,text:o,tokens:[]}),r.raw+=l}r.items[r.items.length-1].raw=l.trimEnd(),r.items[r.items.length-1].text=o.trimEnd(),r.raw=r.raw.trimEnd();for(let c=0;c<r.items.length;c++)if(this.lexer.state.top=!1,r.items[c].tokens=this.lexer.blockTokens(r.items[c].text,[]),!r.loose){const u=r.items[c].tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));r.loose=h}if(r.loose)for(let c=0;c<r.items.length;c++)r.items[c].loose=!0;return r}}html(t){const e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){const e=this.rules.block.def.exec(t);if(e){const n=e[1].toLowerCase().replace(/\s+/g," "),i=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:r}}}table(t){const e=this.rules.block.table.exec(t);if(!e||!/[:|]/.test(e[2]))return;const n=ae(e[1]),i=e[2].replace(/^\||\| *$/g,"").split("|"),r=e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split(`
|
|
15
|
+
`):[],s={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===i.length){for(const l of i)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(const l of n)s.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of r)s.rows.push(ae(l,s.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return s}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n=e[1].charAt(e[1].length-1)===`
|
|
16
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:b(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const s=L(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=qe(e[2],"()");if(s>-1){const o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let i=e[2],r="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),ce(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const i=(n[2]||n[1]).replace(/\s+/g," "),r=e[i.toLowerCase()];if(!r){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return ce(n,r,n[0],this.lexer)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...i[0]].length-1;let l,o,p=s,c=0;const u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,e=e.slice(-1*t.length+s);(i=u.exec(e))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(o=[...l].length,i[3]||i[4]){p+=o;continue}else if((i[5]||i[6])&&s%3&&!((s+o)%3)){c+=o;continue}if(p-=o,p>0)continue;o=Math.min(o,o+p+c);const h=[...i[0]][0].length,f=t.slice(0,s+i.index+h+o);if(Math.min(s,o)%2){const y=f.slice(1,-1);return{type:"em",raw:f,text:y,tokens:this.lexer.inlineTokens(y)}}const w=f.slice(2,-2);return{type:"strong",raw:f,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(/\n/g," ");const i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=b(n,!0),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let n,i;return e[2]==="@"?(n=b(e[1]),i="mailto:"+n):(n=b(e[1]),i=n),{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let e;if(e=this.rules.inline.url.exec(t)){let i,r;if(e[2]==="@")i=b(e[0]),r="mailto:"+i;else{let s;do s=e[0],e[0]=((n=this.rules.inline._backpedal.exec(e[0]))==null?void 0:n[0])??"";while(s!==e[0]);i=b(e[0]),e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){let n;return this.lexer.state.inRawBlock?n=e[0]:n=b(e[0]),{type:"text",raw:e[0],text:n}}}}const Be=/^(?: *(?:\n|$))+/,Me=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Ne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,me=/(?:[*+-]|\d{1,9}[.)])/,we=d(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,me).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),U=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Qe=/^[^\n]+/,X=/(?!\s*\])(?:\\.|[^\[\]\\])+/,He=d(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",X).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Je=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,me).getRegex(),M="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,We=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",K).replace("tag",M).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),be=d(U).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",M).getRegex(),Ge=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",be).getRegex(),V={blockquote:Ge,code:Me,def:He,fences:Ne,heading:Fe,hr:E,html:We,lheading:we,list:Je,newline:Be,paragraph:be,table:j,text:Qe},he=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",M).getRegex(),Ue={...V,table:he,paragraph:d(U).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",he).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",M).getRegex()},Xe={...V,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",K).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:j,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(U).replace("hr",E).replace("heading",` *#{1,6} *[^
|
|
17
|
+
]`).replace("lheading",we).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ye=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,$e=/^( {2,}|\\)\n(?!\s*$)/,Ve=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,v="\\p{P}\\p{S}",Ye=d(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,v).getRegex(),et=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,tt=d(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,v).getRegex(),nt=d("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,v).getRegex(),st=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,v).getRegex(),it=d(/\\([punct])/,"gu").replace(/punct/g,v).getRegex(),rt=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ot=d(K).replace("(?:-->|$)","-->").getRegex(),lt=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ot).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Z=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,at=d(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Z).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Te=d(/^!?\[(label)\]\[(ref)\]/).replace("label",Z).replace("ref",X).getRegex(),ze=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",X).getRegex(),ct=d("reflink|nolink(?!\\()","g").replace("reflink",Te).replace("nolink",ze).getRegex(),Y={_backpedal:j,anyPunctuation:it,autolink:rt,blockSkip:et,br:$e,code:Ke,del:j,emStrongLDelim:tt,emStrongRDelimAst:nt,emStrongRDelimUnd:st,escape:ye,link:at,nolink:ze,punctuation:Ye,reflink:Te,reflinkSearch:ct,tag:lt,text:Ve,url:j},ht={...Y,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",Z).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z).getRegex()},J={...Y,escape:d(ye).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},pt={...J,br:d($e).replace("{2,}","*").getRegex(),text:d(J.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},D={normal:V,gfm:Ue,pedantic:Xe},A={normal:Y,gfm:J,breaks:pt,pedantic:ht};class T{constructor(t){k(this,"tokens");k(this,"options");k(this,"state");k(this,"tokenizer");k(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||I,this.options.tokenizer=this.options.tokenizer||new q,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:D.normal,inline:A.normal};this.options.pedantic?(e.block=D.pedantic,e.inline=A.pedantic):this.options.gfm&&(e.block=D.gfm,this.options.breaks?e.inline=A.breaks:e.inline=A.gfm),this.tokenizer.rules=e}static get rules(){return{block:D,inline:A}}static lex(t,e){return new T(e).lex(t)}static lexInline(t,e){return new T(e).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
18
|
+
`),this.blockTokens(t,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const n=this.inlineQueue[e];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(l,o,p)=>o+" ".repeat(p.length));let n,i,r,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.call({lexer:this},t,e))?(t=t.substring(n.raw.length),e.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&e.length>0?e[e.length-1].raw+=`
|
|
19
|
+
`:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),i=e[e.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
20
|
+
`+n.raw,i.text+=`
|
|
21
|
+
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),i=e[e.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
22
|
+
`+n.raw,i.text+=`
|
|
23
|
+
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const o=t.slice(1);let p;this.options.extensions.startBlock.forEach(c=>{p=c.call({lexer:this},o),typeof p=="number"&&p>=0&&(l=Math.min(l,p))}),l<1/0&&l>=0&&(r=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){i=e[e.length-1],s&&i.type==="paragraph"?(i.raw+=`
|
|
24
|
+
`+n.raw,i.text+=`
|
|
25
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),s=r.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),i=e[e.length-1],i&&i.type==="text"?(i.raw+=`
|
|
26
|
+
`+n.raw,i.text+=`
|
|
27
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,i,r,s=t,l,o,p;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(p=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(n=c.call({lexer:this},t,e))?(t=t.substring(n.raw.length),e.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=e[e.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=e[e.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,s,p)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const u=t.slice(1);let h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},u),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(r=t.substring(0,c+1))}if(n=this.tokenizer.inlineText(r)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(p=n.raw.slice(-1)),o=!0,i=e[e.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):e.push(n);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return e}}class B{constructor(t){k(this,"options");this.options=t||I}code(t,e,n){var r;const i=(r=(e||"").match(/^\S*/))==null?void 0:r[0];return t=t.replace(/\n$/,"")+`
|
|
28
|
+
`,i?'<pre><code class="language-'+b(i)+'">'+(n?t:b(t,!0))+`</code></pre>
|
|
29
|
+
`:"<pre><code>"+(n?t:b(t,!0))+`</code></pre>
|
|
30
|
+
`}blockquote(t){return`<blockquote>
|
|
31
|
+
${t}</blockquote>
|
|
32
|
+
`}html(t,e){return t}heading(t,e,n){return`<h${e}>${t}</h${e}>
|
|
33
|
+
`}hr(){return`<hr>
|
|
34
|
+
`}list(t,e,n){const i=e?"ol":"ul",r=e&&n!==1?' start="'+n+'"':"";return"<"+i+r+`>
|
|
35
|
+
`+t+"</"+i+`>
|
|
36
|
+
`}listitem(t,e,n){return`<li>${t}</li>
|
|
37
|
+
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
38
|
+
`}table(t,e){return e&&(e=`<tbody>${e}</tbody>`),`<table>
|
|
39
|
+
<thead>
|
|
40
|
+
`+t+`</thead>
|
|
41
|
+
`+e+`</table>
|
|
42
|
+
`}tablerow(t){return`<tr>
|
|
43
|
+
${t}</tr>
|
|
44
|
+
`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
45
|
+
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,e,n){const i=le(t);if(i===null)return n;t=i;let r='<a href="'+t+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>",r}image(t,e,n){const i=le(t);if(i===null)return n;t=i;let r=`<img src="${t}" alt="${n}"`;return e&&(r+=` title="${e}"`),r+=">",r}text(t){return t}}class ee{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class z{constructor(t){k(this,"options");k(this,"renderer");k(this,"textRenderer");this.options=t||I,this.options.renderer=this.options.renderer||new B,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee}static parse(t,e){return new z(e).parse(t)}static parseInline(t,e){return new z(e).parseInline(t)}parse(t,e=!0){let n="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const s=r,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=l||"";continue}}switch(r.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{const s=r;n+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Le(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=r;n+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=r;let l="",o="";for(let c=0;c<s.header.length;c++)o+=this.renderer.tablecell(this.parseInline(s.header[c].tokens),{header:!0,align:s.align[c]});l+=this.renderer.tablerow(o);let p="";for(let c=0;c<s.rows.length;c++){const u=s.rows[c];o="";for(let h=0;h<u.length;h++)o+=this.renderer.tablecell(this.parseInline(u[h].tokens),{header:!1,align:s.align[h]});p+=this.renderer.tablerow(o)}n+=this.renderer.table(l,p);continue}case"blockquote":{const s=r,l=this.parse(s.tokens);n+=this.renderer.blockquote(l);continue}case"list":{const s=r,l=s.ordered,o=s.start,p=s.loose;let c="";for(let u=0;u<s.items.length;u++){const h=s.items[u],f=h.checked,w=h.task;let y="";if(h.task){const R=this.renderer.checkbox(!!f);p?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=R+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=R+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:R+" "}):y+=R+" "}y+=this.parse(h.tokens,p),c+=this.renderer.listitem(y,w,!!f)}n+=this.renderer.list(c,l,o);continue}case"html":{const s=r;n+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=r;n+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=r,l=s.tokens?this.parseInline(s.tokens):s.text;for(;i+1<t.length&&t[i+1].type==="text";)s=t[++i],l+=`
|
|
46
|
+
`+(s.tokens?this.parseInline(s.tokens):s.text);n+=e?this.renderer.paragraph(l):l;continue}default:{const s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,e){e=e||this.renderer;let n="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const s=this.options.extensions.renderers[r.type].call({parser:this},r);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=s||"";continue}}switch(r.type){case"escape":{const s=r;n+=e.text(s.text);break}case"html":{const s=r;n+=e.html(s.text);break}case"link":{const s=r;n+=e.link(s.href,s.title,this.parseInline(s.tokens,e));break}case"image":{const s=r;n+=e.image(s.href,s.title,s.text);break}case"strong":{const s=r;n+=e.strong(this.parseInline(s.tokens,e));break}case"em":{const s=r;n+=e.em(this.parseInline(s.tokens,e));break}case"codespan":{const s=r;n+=e.codespan(s.text);break}case"br":{n+=e.br();break}case"del":{const s=r;n+=e.del(this.parseInline(s.tokens,e));break}case"text":{const s=r;n+=e.text(s.text);break}default:{const s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class P{constructor(t){k(this,"options");this.options=t||I}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}k(P,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var _,W,Re;class ut{constructor(...t){re(this,_);k(this,"defaults",G());k(this,"options",this.setOptions);k(this,"parse",O(this,_,W).call(this,T.lex,z.parse));k(this,"parseInline",O(this,_,W).call(this,T.lexInline,z.parseInline));k(this,"Parser",z);k(this,"Renderer",B);k(this,"TextRenderer",ee);k(this,"Lexer",T);k(this,"Tokenizer",q);k(this,"Hooks",P);this.use(...t)}walkTokens(t,e){var i,r;let n=[];for(const s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{const l=s;for(const o of l.header)n=n.concat(this.walkTokens(o.tokens,e));for(const o of l.rows)for(const p of o)n=n.concat(this.walkTokens(p.tokens,e));break}case"list":{const l=s;n=n.concat(this.walkTokens(l.items,e));break}default:{const l=s;(r=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&r[l.type]?this.defaults.extensions.childTokens[l.type].forEach(o=>{const p=l[o].flat(1/0);n=n.concat(this.walkTokens(p,e))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const s=e.renderers[r.name];s?e.renderers[r.name]=function(...l){let o=r.renderer.apply(this,l);return o===!1&&(o=s.apply(this,l)),o}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),i.extensions=e),n.renderer){const r=this.defaults.renderer||new B(this.defaults);for(const s in n.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,o=n.renderer[l],p=r[l];r[l]=(...c)=>{let u=o.apply(r,c);return u===!1&&(u=p.apply(r,c)),u||""}}i.renderer=r}if(n.tokenizer){const r=this.defaults.tokenizer||new q(this.defaults);for(const s in n.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,o=n.tokenizer[l],p=r[l];r[l]=(...c)=>{let u=o.apply(r,c);return u===!1&&(u=p.apply(r,c)),u}}i.tokenizer=r}if(n.hooks){const r=this.defaults.hooks||new P;for(const s in n.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,o=n.hooks[l],p=r[l];P.passThroughHooks.has(s)?r[l]=c=>{if(this.defaults.async)return Promise.resolve(o.call(r,c)).then(h=>p.call(r,h));const u=o.call(r,c);return p.call(r,u)}:r[l]=(...c)=>{let u=o.apply(r,c);return u===!1&&(u=p.apply(r,c)),u}}i.hooks=r}if(n.walkTokens){const r=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(l){let o=[];return o.push(s.call(this,l)),r&&(o=o.concat(r.call(this,l))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return T.lex(t,e??this.defaults)}parser(t,e){return z.parse(t,e??this.defaults)}}_=new WeakSet,W=function(t,e){return(n,i)=>{const r={...i},s={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=O(this,_,Re).call(this,!!s.silent,!!s.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(o=>t(o,s)).then(o=>s.hooks?s.hooks.processAllTokens(o):o).then(o=>s.walkTokens?Promise.all(this.walkTokens(o,s.walkTokens)).then(()=>o):o).then(o=>e(o,s)).then(o=>s.hooks?s.hooks.postprocess(o):o).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let o=t(n,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let p=e(o,s);return s.hooks&&(p=s.hooks.postprocess(p)),p}catch(o){return l(o)}}},Re=function(t,e){return n=>{if(n.message+=`
|
|
47
|
+
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+b(n.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(n);throw n}};const S=new ut;function g(a,t){return S.parse(a,t)}g.options=g.setOptions=function(a){return S.setOptions(a),g.defaults=S.defaults,de(g.defaults),g};g.getDefaults=G;g.defaults=I;g.use=function(...a){return S.use(...a),g.defaults=S.defaults,de(g.defaults),g};g.walkTokens=function(a,t){return S.walkTokens(a,t)};g.parseInline=S.parseInline;g.Parser=z;g.parser=z.parse;g.Renderer=B;g.TextRenderer=ee;g.Lexer=T;g.lexer=T.lex;g.Tokenizer=q;g.Hooks=P;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;z.parse;T.lex;function ft(a){const t=a.replace(/^---[\s\S]*?---\n/,"");try{const e=g.lexer(t),n=[],i=[];for(const r of e)if(r.type==="heading"){const s=r,l=s.depth,o=Se(s.tokens),p=gt(o),c={level:l,text:o,id:p,children:[]};for(;i.length>0&&i[i.length-1].level>=l;)i.pop();i.length===0?n.push(c):i[i.length-1].children.push(c),i.push(c)}return n}catch(e){return console.warn("Failed to extract TOC from markdown:",e),[]}}function Se(a){return a.map(t=>{if(t.type==="text")return t.text;if(t.type==="strong"||t.type==="em"){const e=t;if("tokens"in e&&Array.isArray(e.tokens))return Se(e.tokens)}return""}).join("")}function gt(a){return a.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}async function pe(a,t){const e={};for(const[n,i]of Object.entries(a)){const r=x.join(t,`${n}.md`);if(await m.pathExists(r)){const s=await m.readFile(r,"utf-8"),l=ft(s);e[n]=l}}return e}const $=je.L("WSXPress");function dt(a){const{docsRoot:t,api:e,outputDir:n=".wsx-press"}=a;let i,r;return{name:"vite-plugin-wsx-press",enforce:"pre",configResolved(s){const l=o=>o.startsWith("/")||/^[A-Za-z]:/.test(o)||o.startsWith("\\\\");i=l(n)?n:x.resolve(s.root,n),r=l(t)?t:x.resolve(s.root,t)},async buildStart(){try{if(!i||!r){const c=u=>u.startsWith("/")||/^[A-Za-z]:/.test(u)||u.startsWith("\\\\");i=c(n)?n:x.resolve(process.cwd(),n),r=c(t)?t:x.resolve(process.cwd(),t)}await m.ensureDir(i),$.info("Starting documentation generation..."),$.info(`Docs root: ${r}`),$.info(`Output dir: ${i}`);const s=await C(r),l=x.join(i,"docs-meta.json");await m.writeJSON(l,s,{spaces:2}),$.info(`✅ Generated docs-meta.json with ${Object.keys(s).length} documents`);const o=await H(s,r),p=x.join(i,"search-index.json");await m.writeJSON(p,o,{spaces:2}),$.info("✅ Generated search-index.json"),$.info("Generating TOC collection...");try{const c=await pe(s,r),u=x.join(i,"docs-toc.json");await m.writeJSON(u,c,{spaces:2}),$.info(`✅ Generated docs-toc.json with ${Object.keys(c).length} documents`)}catch(c){$.error("❌ Failed to generate TOC collection:",c)}if(e){const c=e.outputDir||x.join(r,"api");await ge({...e,outputDir:x.isAbsolute(c)?c:x.resolve(process.cwd(),c)})}}catch(s){throw $.error("Failed to generate documentation:",s),s}},configureServer(s){s.middlewares.use("/.wsx-press",async(l,o,p)=>{try{const h=new URL(l.url||"/",`http://${l.headers.host}`).pathname.replace(/^\/\.wsx-press\/?/,"").replace(/^\//,"");if(h==="docs-meta.json"||h==="search-index.json"||h==="docs-toc.json"){const f=x.join(i,h);if(await m.pathExists(f)){const w=await m.readFile(f,"utf-8");o.setHeader("Content-Type","application/json"),o.end(w);return}}if(h==="docs-meta.json"){const f=await C(r);await m.ensureDir(i),await m.writeJSON(x.join(i,"docs-meta.json"),f,{spaces:2}),o.setHeader("Content-Type","application/json"),o.end(JSON.stringify(f,null,2));return}if(h==="search-index.json"){const f=await C(r),w=await H(f,r);await m.ensureDir(i),await m.writeJSON(x.join(i,"search-index.json"),w,{spaces:2}),o.setHeader("Content-Type","application/json"),o.end(JSON.stringify(w,null,2));return}if(h==="docs-toc.json"){const f=await C(r),w=await pe(f,r);await m.ensureDir(i),await m.writeJSON(x.join(i,"docs-toc.json"),w,{spaces:2}),o.setHeader("Content-Type","application/json"),o.end(JSON.stringify(w,null,2));return}p()}catch(c){$.error("Middleware error:",c),o.statusCode=500,o.end(JSON.stringify({error:String(c)}))}})}}}exports.addPrevNextLinks=fe;exports.extractFrontmatter=ue;exports.generateApiDocs=ge;exports.generateSearchIndex=H;exports.scanDocsMetadata=C;exports.wsxPress=dt;
|