react-markdown-table-ts 1.3.6 → 1.3.8
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/dist/index.cjs +23 -15
- package/dist/index.mjs +840 -489
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
@@ -1,294 +1,645 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
var
|
1
|
+
import Ie, { useRef as hr, useId as vr, useDeferredValue as br, useTransition as yr, useMemo as wr, useEffect as Ae } from "react";
|
2
|
+
import Er from "prismjs";
|
3
|
+
var K = { exports: {} }, W = {};
|
4
4
|
/**
|
5
5
|
* @license React
|
6
|
-
* react-jsx-runtime.production.js
|
6
|
+
* react-jsx-runtime.production.min.js
|
7
7
|
*
|
8
|
-
* Copyright (c)
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
9
9
|
*
|
10
10
|
* This source code is licensed under the MIT license found in the
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
12
12
|
*/
|
13
|
-
var
|
14
|
-
function
|
15
|
-
if (
|
16
|
-
|
17
|
-
var
|
18
|
-
function
|
19
|
-
var
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
} else d = i;
|
25
|
-
return i = d.ref, {
|
26
|
-
$$typeof: n,
|
27
|
-
type: m,
|
28
|
-
key: a,
|
29
|
-
ref: i !== void 0 ? i : null,
|
30
|
-
props: d
|
31
|
-
};
|
13
|
+
var $e;
|
14
|
+
function _r() {
|
15
|
+
if ($e) return W;
|
16
|
+
$e = 1;
|
17
|
+
var t = Ie, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, d = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
18
|
+
function l(f, o, p) {
|
19
|
+
var s, i = {}, g = null, b = null;
|
20
|
+
p !== void 0 && (g = "" + p), o.key !== void 0 && (g = "" + o.key), o.ref !== void 0 && (b = o.ref);
|
21
|
+
for (s in o) w.call(o, s) && !v.hasOwnProperty(s) && (i[s] = o[s]);
|
22
|
+
if (f && f.defaultProps) for (s in o = f.defaultProps, o) i[s] === void 0 && (i[s] = o[s]);
|
23
|
+
return { $$typeof: a, type: f, key: g, ref: b, props: i, _owner: d.current };
|
32
24
|
}
|
33
|
-
return
|
25
|
+
return W.Fragment = c, W.jsx = l, W.jsxs = l, W;
|
34
26
|
}
|
35
|
-
var
|
27
|
+
var H = {};
|
36
28
|
/**
|
37
29
|
* @license React
|
38
30
|
* react-jsx-runtime.development.js
|
39
31
|
*
|
40
|
-
* Copyright (c)
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
41
33
|
*
|
42
34
|
* This source code is licensed under the MIT license found in the
|
43
35
|
* LICENSE file in the root directory of this source tree.
|
44
36
|
*/
|
45
|
-
var
|
46
|
-
function
|
47
|
-
return
|
48
|
-
|
49
|
-
|
50
|
-
if (typeof e
|
51
|
-
return
|
52
|
-
|
37
|
+
var Oe;
|
38
|
+
function Rr() {
|
39
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
40
|
+
var t = Ie, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), f = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), S = Symbol.iterator, C = "@@iterator";
|
41
|
+
function $(e) {
|
42
|
+
if (e === null || typeof e != "object")
|
43
|
+
return null;
|
44
|
+
var r = S && e[S] || e[C];
|
45
|
+
return typeof r == "function" ? r : null;
|
46
|
+
}
|
47
|
+
var R = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
48
|
+
function E(e) {
|
49
|
+
{
|
50
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
51
|
+
n[u - 1] = arguments[u];
|
52
|
+
j("error", e, n);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
function j(e, r, n) {
|
56
|
+
{
|
57
|
+
var u = R.ReactDebugCurrentFrame, y = u.getStackAddendum();
|
58
|
+
y !== "" && (r += "%s", n = n.concat([y]));
|
59
|
+
var _ = n.map(function(h) {
|
60
|
+
return String(h);
|
61
|
+
});
|
62
|
+
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
var Y = !1, De = !1, Me = !1, ze = !1, Le = !1, ae;
|
66
|
+
ae = Symbol.for("react.module.reference");
|
67
|
+
function We(e) {
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === w || e === v || Le || e === d || e === p || e === s || ze || e === b || Y || De || Me || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === i || e.$$typeof === l || e.$$typeof === f || e.$$typeof === o || // This needs to include all possible module reference object
|
69
|
+
// types supported by any Flight configuration anywhere since
|
70
|
+
// we don't know which Flight build this will end up being used
|
71
|
+
// with.
|
72
|
+
e.$$typeof === ae || e.getModuleId !== void 0));
|
73
|
+
}
|
74
|
+
function He(e, r, n) {
|
75
|
+
var u = e.displayName;
|
76
|
+
if (u)
|
77
|
+
return u;
|
78
|
+
var y = r.displayName || r.name || "";
|
79
|
+
return y !== "" ? n + "(" + y + ")" : n;
|
80
|
+
}
|
81
|
+
function ie(e) {
|
82
|
+
return e.displayName || "Context";
|
83
|
+
}
|
84
|
+
function P(e) {
|
85
|
+
if (e == null)
|
86
|
+
return null;
|
87
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
88
|
+
return e.displayName || e.name || null;
|
89
|
+
if (typeof e == "string")
|
90
|
+
return e;
|
53
91
|
switch (e) {
|
54
|
-
case
|
92
|
+
case w:
|
55
93
|
return "Fragment";
|
56
|
-
case
|
94
|
+
case c:
|
95
|
+
return "Portal";
|
96
|
+
case v:
|
57
97
|
return "Profiler";
|
58
|
-
case
|
98
|
+
case d:
|
59
99
|
return "StrictMode";
|
60
|
-
case
|
100
|
+
case p:
|
61
101
|
return "Suspense";
|
62
|
-
case
|
102
|
+
case s:
|
63
103
|
return "SuspenseList";
|
64
|
-
case ne:
|
65
|
-
return "Activity";
|
66
104
|
}
|
67
105
|
if (typeof e == "object")
|
68
|
-
switch (typeof
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
return
|
75
|
-
case
|
76
|
-
return (e.
|
77
|
-
case
|
78
|
-
var
|
79
|
-
return
|
80
|
-
case
|
81
|
-
|
82
|
-
case O:
|
83
|
-
c = e._payload, e = e._init;
|
106
|
+
switch (e.$$typeof) {
|
107
|
+
case f:
|
108
|
+
var r = e;
|
109
|
+
return ie(r) + ".Consumer";
|
110
|
+
case l:
|
111
|
+
var n = e;
|
112
|
+
return ie(n._context) + ".Provider";
|
113
|
+
case o:
|
114
|
+
return He(e, e.render, "ForwardRef");
|
115
|
+
case i:
|
116
|
+
var u = e.displayName || null;
|
117
|
+
return u !== null ? u : P(e.type) || "Memo";
|
118
|
+
case g: {
|
119
|
+
var y = e, _ = y._payload, h = y._init;
|
84
120
|
try {
|
85
|
-
return
|
121
|
+
return P(h(_));
|
86
122
|
} catch {
|
123
|
+
return null;
|
87
124
|
}
|
125
|
+
}
|
88
126
|
}
|
89
127
|
return null;
|
90
128
|
}
|
91
|
-
|
92
|
-
|
129
|
+
var N = Object.assign, z = 0, oe, se, le, ue, ce, fe, de;
|
130
|
+
function pe() {
|
93
131
|
}
|
94
|
-
|
132
|
+
pe.__reactDisabledLog = !0;
|
133
|
+
function qe() {
|
134
|
+
{
|
135
|
+
if (z === 0) {
|
136
|
+
oe = console.log, se = console.info, le = console.warn, ue = console.error, ce = console.group, fe = console.groupCollapsed, de = console.groupEnd;
|
137
|
+
var e = {
|
138
|
+
configurable: !0,
|
139
|
+
enumerable: !0,
|
140
|
+
value: pe,
|
141
|
+
writable: !0
|
142
|
+
};
|
143
|
+
Object.defineProperties(console, {
|
144
|
+
info: e,
|
145
|
+
log: e,
|
146
|
+
warn: e,
|
147
|
+
error: e,
|
148
|
+
group: e,
|
149
|
+
groupCollapsed: e,
|
150
|
+
groupEnd: e
|
151
|
+
});
|
152
|
+
}
|
153
|
+
z++;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
function Ye() {
|
157
|
+
{
|
158
|
+
if (z--, z === 0) {
|
159
|
+
var e = {
|
160
|
+
configurable: !0,
|
161
|
+
enumerable: !0,
|
162
|
+
writable: !0
|
163
|
+
};
|
164
|
+
Object.defineProperties(console, {
|
165
|
+
log: N({}, e, {
|
166
|
+
value: oe
|
167
|
+
}),
|
168
|
+
info: N({}, e, {
|
169
|
+
value: se
|
170
|
+
}),
|
171
|
+
warn: N({}, e, {
|
172
|
+
value: le
|
173
|
+
}),
|
174
|
+
error: N({}, e, {
|
175
|
+
value: ue
|
176
|
+
}),
|
177
|
+
group: N({}, e, {
|
178
|
+
value: ce
|
179
|
+
}),
|
180
|
+
groupCollapsed: N({}, e, {
|
181
|
+
value: fe
|
182
|
+
}),
|
183
|
+
groupEnd: N({}, e, {
|
184
|
+
value: de
|
185
|
+
})
|
186
|
+
});
|
187
|
+
}
|
188
|
+
z < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
189
|
+
}
|
190
|
+
}
|
191
|
+
var G = R.ReactCurrentDispatcher, X;
|
192
|
+
function V(e, r, n) {
|
193
|
+
{
|
194
|
+
if (X === void 0)
|
195
|
+
try {
|
196
|
+
throw Error();
|
197
|
+
} catch (y) {
|
198
|
+
var u = y.stack.trim().match(/\n( *(at )?)/);
|
199
|
+
X = u && u[1] || "";
|
200
|
+
}
|
201
|
+
return `
|
202
|
+
` + X + e;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
var Z = !1, U;
|
206
|
+
{
|
207
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
208
|
+
U = new Ve();
|
209
|
+
}
|
210
|
+
function ge(e, r) {
|
211
|
+
if (!e || Z)
|
212
|
+
return "";
|
213
|
+
{
|
214
|
+
var n = U.get(e);
|
215
|
+
if (n !== void 0)
|
216
|
+
return n;
|
217
|
+
}
|
218
|
+
var u;
|
219
|
+
Z = !0;
|
220
|
+
var y = Error.prepareStackTrace;
|
221
|
+
Error.prepareStackTrace = void 0;
|
222
|
+
var _;
|
223
|
+
_ = G.current, G.current = null, qe();
|
95
224
|
try {
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
225
|
+
if (r) {
|
226
|
+
var h = function() {
|
227
|
+
throw Error();
|
228
|
+
};
|
229
|
+
if (Object.defineProperty(h.prototype, "props", {
|
230
|
+
set: function() {
|
231
|
+
throw Error();
|
232
|
+
}
|
233
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
234
|
+
try {
|
235
|
+
Reflect.construct(h, []);
|
236
|
+
} catch (A) {
|
237
|
+
u = A;
|
238
|
+
}
|
239
|
+
Reflect.construct(e, [], h);
|
240
|
+
} else {
|
241
|
+
try {
|
242
|
+
h.call();
|
243
|
+
} catch (A) {
|
244
|
+
u = A;
|
245
|
+
}
|
246
|
+
e.call(h.prototype);
|
247
|
+
}
|
248
|
+
} else {
|
249
|
+
try {
|
250
|
+
throw Error();
|
251
|
+
} catch (A) {
|
252
|
+
u = A;
|
253
|
+
}
|
254
|
+
e();
|
255
|
+
}
|
256
|
+
} catch (A) {
|
257
|
+
if (A && u && typeof A.stack == "string") {
|
258
|
+
for (var m = A.stack.split(`
|
259
|
+
`), T = u.stack.split(`
|
260
|
+
`), k = m.length - 1, x = T.length - 1; k >= 1 && x >= 0 && m[k] !== T[x]; )
|
261
|
+
x--;
|
262
|
+
for (; k >= 1 && x >= 0; k--, x--)
|
263
|
+
if (m[k] !== T[x]) {
|
264
|
+
if (k !== 1 || x !== 1)
|
265
|
+
do
|
266
|
+
if (k--, x--, x < 0 || m[k] !== T[x]) {
|
267
|
+
var O = `
|
268
|
+
` + m[k].replace(" at new ", " at ");
|
269
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, O), O;
|
270
|
+
}
|
271
|
+
while (k >= 1 && x >= 0);
|
272
|
+
break;
|
273
|
+
}
|
274
|
+
}
|
275
|
+
} finally {
|
276
|
+
Z = !1, G.current = _, Ye(), Error.prepareStackTrace = y;
|
277
|
+
}
|
278
|
+
var D = e ? e.displayName || e.name : "", I = D ? V(D) : "";
|
279
|
+
return typeof e == "function" && U.set(e, I), I;
|
280
|
+
}
|
281
|
+
function Ue(e, r, n) {
|
282
|
+
return ge(e, !1);
|
283
|
+
}
|
284
|
+
function Be(e) {
|
285
|
+
var r = e.prototype;
|
286
|
+
return !!(r && r.isReactComponent);
|
287
|
+
}
|
288
|
+
function B(e, r, n) {
|
289
|
+
if (e == null)
|
290
|
+
return "";
|
291
|
+
if (typeof e == "function")
|
292
|
+
return ge(e, Be(e));
|
293
|
+
if (typeof e == "string")
|
294
|
+
return V(e);
|
295
|
+
switch (e) {
|
296
|
+
case p:
|
297
|
+
return V("Suspense");
|
298
|
+
case s:
|
299
|
+
return V("SuspenseList");
|
300
|
+
}
|
301
|
+
if (typeof e == "object")
|
302
|
+
switch (e.$$typeof) {
|
303
|
+
case o:
|
304
|
+
return Ue(e.render);
|
305
|
+
case i:
|
306
|
+
return B(e.type, r, n);
|
307
|
+
case g: {
|
308
|
+
var u = e, y = u._payload, _ = u._init;
|
309
|
+
try {
|
310
|
+
return B(_(y), r, n);
|
311
|
+
} catch {
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
return "";
|
316
|
+
}
|
317
|
+
var L = Object.prototype.hasOwnProperty, me = {}, he = R.ReactDebugCurrentFrame;
|
318
|
+
function J(e) {
|
319
|
+
if (e) {
|
320
|
+
var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
|
321
|
+
he.setExtraStackFrame(n);
|
322
|
+
} else
|
323
|
+
he.setExtraStackFrame(null);
|
324
|
+
}
|
325
|
+
function Je(e, r, n, u, y) {
|
326
|
+
{
|
327
|
+
var _ = Function.call.bind(L);
|
328
|
+
for (var h in e)
|
329
|
+
if (_(e, h)) {
|
330
|
+
var m = void 0;
|
331
|
+
try {
|
332
|
+
if (typeof e[h] != "function") {
|
333
|
+
var T = Error((u || "React class") + ": " + n + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
334
|
+
throw T.name = "Invariant Violation", T;
|
335
|
+
}
|
336
|
+
m = e[h](r, h, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
337
|
+
} catch (k) {
|
338
|
+
m = k;
|
339
|
+
}
|
340
|
+
m && !(m instanceof Error) && (J(y), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", n, h, typeof m), J(null)), m instanceof Error && !(m.message in me) && (me[m.message] = !0, J(y), E("Failed %s type: %s", n, m.message), J(null));
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
var Ke = Array.isArray;
|
345
|
+
function Q(e) {
|
346
|
+
return Ke(e);
|
347
|
+
}
|
348
|
+
function Ge(e) {
|
349
|
+
{
|
350
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
351
|
+
return n;
|
352
|
+
}
|
353
|
+
}
|
354
|
+
function Xe(e) {
|
115
355
|
try {
|
116
|
-
|
117
|
-
return c ? "<" + c + ">" : "<...>";
|
356
|
+
return ve(e), !1;
|
118
357
|
} catch {
|
119
|
-
return
|
358
|
+
return !0;
|
120
359
|
}
|
121
360
|
}
|
122
|
-
function
|
123
|
-
|
124
|
-
return e === null ? null : e.getOwner();
|
361
|
+
function ve(e) {
|
362
|
+
return "" + e;
|
125
363
|
}
|
126
|
-
function
|
127
|
-
|
364
|
+
function be(e) {
|
365
|
+
if (Xe(e))
|
366
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), ve(e);
|
367
|
+
}
|
368
|
+
var ye = R.ReactCurrentOwner, Ze = {
|
369
|
+
key: !0,
|
370
|
+
ref: !0,
|
371
|
+
__self: !0,
|
372
|
+
__source: !0
|
373
|
+
}, we, Ee;
|
374
|
+
function Qe(e) {
|
375
|
+
if (L.call(e, "ref")) {
|
376
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
377
|
+
if (r && r.isReactWarning)
|
378
|
+
return !1;
|
379
|
+
}
|
380
|
+
return e.ref !== void 0;
|
128
381
|
}
|
129
|
-
function
|
382
|
+
function er(e) {
|
130
383
|
if (L.call(e, "key")) {
|
131
|
-
var
|
132
|
-
if (
|
384
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
385
|
+
if (r && r.isReactWarning)
|
386
|
+
return !1;
|
133
387
|
}
|
134
388
|
return e.key !== void 0;
|
135
389
|
}
|
136
|
-
function
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
)
|
390
|
+
function rr(e, r) {
|
391
|
+
typeof e.ref == "string" && ye.current;
|
392
|
+
}
|
393
|
+
function nr(e, r) {
|
394
|
+
{
|
395
|
+
var n = function() {
|
396
|
+
we || (we = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
397
|
+
};
|
398
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
399
|
+
get: n,
|
400
|
+
configurable: !0
|
401
|
+
});
|
142
402
|
}
|
143
|
-
h.isReactWarning = !0, Object.defineProperty(e, "key", {
|
144
|
-
get: h,
|
145
|
-
configurable: !0
|
146
|
-
});
|
147
403
|
}
|
148
|
-
function
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
404
|
+
function tr(e, r) {
|
405
|
+
{
|
406
|
+
var n = function() {
|
407
|
+
Ee || (Ee = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
408
|
+
};
|
409
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
410
|
+
get: n,
|
411
|
+
configurable: !0
|
412
|
+
});
|
413
|
+
}
|
153
414
|
}
|
154
|
-
function
|
155
|
-
var
|
156
|
-
|
157
|
-
$$typeof:
|
415
|
+
var ar = function(e, r, n, u, y, _, h) {
|
416
|
+
var m = {
|
417
|
+
// This tag allows us to uniquely identify this as a React Element
|
418
|
+
$$typeof: a,
|
419
|
+
// Built-in properties that belong on the element
|
158
420
|
type: e,
|
159
|
-
key:
|
421
|
+
key: r,
|
422
|
+
ref: n,
|
160
423
|
props: h,
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
424
|
+
// Record the component responsible for creating this element.
|
425
|
+
_owner: _
|
426
|
+
};
|
427
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
166
428
|
configurable: !1,
|
167
429
|
enumerable: !1,
|
168
430
|
writable: !0,
|
169
|
-
value:
|
170
|
-
}), Object.defineProperty(
|
431
|
+
value: !1
|
432
|
+
}), Object.defineProperty(m, "_self", {
|
171
433
|
configurable: !1,
|
172
434
|
enumerable: !1,
|
173
|
-
writable: !
|
174
|
-
value:
|
175
|
-
}), Object.defineProperty(
|
176
|
-
configurable: !1,
|
177
|
-
enumerable: !1,
|
178
|
-
writable: !0,
|
179
|
-
value: N
|
180
|
-
}), Object.defineProperty(e, "_debugTask", {
|
435
|
+
writable: !1,
|
436
|
+
value: u
|
437
|
+
}), Object.defineProperty(m, "_source", {
|
181
438
|
configurable: !1,
|
182
439
|
enumerable: !1,
|
183
|
-
writable: !
|
184
|
-
value:
|
185
|
-
}), Object.freeze && (Object.freeze(
|
186
|
-
}
|
187
|
-
function
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
440
|
+
writable: !1,
|
441
|
+
value: y
|
442
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
443
|
+
};
|
444
|
+
function ir(e, r, n, u, y) {
|
445
|
+
{
|
446
|
+
var _, h = {}, m = null, T = null;
|
447
|
+
n !== void 0 && (be(n), m = "" + n), er(r) && (be(r.key), m = "" + r.key), Qe(r) && (T = r.ref, rr(r, y));
|
448
|
+
for (_ in r)
|
449
|
+
L.call(r, _) && !Ze.hasOwnProperty(_) && (h[_] = r[_]);
|
450
|
+
if (e && e.defaultProps) {
|
451
|
+
var k = e.defaultProps;
|
452
|
+
for (_ in k)
|
453
|
+
h[_] === void 0 && (h[_] = k[_]);
|
454
|
+
}
|
455
|
+
if (m || T) {
|
456
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
457
|
+
m && nr(h, x), T && tr(h, x);
|
458
|
+
}
|
459
|
+
return ar(e, m, T, y, u, ye.current, h);
|
460
|
+
}
|
461
|
+
}
|
462
|
+
var ee = R.ReactCurrentOwner, _e = R.ReactDebugCurrentFrame;
|
463
|
+
function F(e) {
|
464
|
+
if (e) {
|
465
|
+
var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
|
466
|
+
_e.setExtraStackFrame(n);
|
467
|
+
} else
|
468
|
+
_e.setExtraStackFrame(null);
|
469
|
+
}
|
470
|
+
var re;
|
471
|
+
re = !1;
|
472
|
+
function ne(e) {
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
474
|
+
}
|
475
|
+
function Re() {
|
476
|
+
{
|
477
|
+
if (ee.current) {
|
478
|
+
var e = P(ee.current.type);
|
479
|
+
if (e)
|
480
|
+
return `
|
481
|
+
|
482
|
+
Check the render method of \`` + e + "`.";
|
483
|
+
}
|
484
|
+
return "";
|
485
|
+
}
|
486
|
+
}
|
487
|
+
function or(e) {
|
488
|
+
return "";
|
489
|
+
}
|
490
|
+
var ke = {};
|
491
|
+
function sr(e) {
|
492
|
+
{
|
493
|
+
var r = Re();
|
494
|
+
if (!r) {
|
495
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
496
|
+
n && (r = `
|
497
|
+
|
498
|
+
Check the top-level render call using <` + n + ">.");
|
499
|
+
}
|
500
|
+
return r;
|
501
|
+
}
|
502
|
+
}
|
503
|
+
function xe(e, r) {
|
504
|
+
{
|
505
|
+
if (!e._store || e._store.validated || e.key != null)
|
506
|
+
return;
|
507
|
+
e._store.validated = !0;
|
508
|
+
var n = sr(r);
|
509
|
+
if (ke[n])
|
510
|
+
return;
|
511
|
+
ke[n] = !0;
|
512
|
+
var u = "";
|
513
|
+
e && e._owner && e._owner !== ee.current && (u = " It was passed a child from " + P(e._owner.type) + "."), F(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, u), F(null);
|
514
|
+
}
|
515
|
+
}
|
516
|
+
function Se(e, r) {
|
517
|
+
{
|
518
|
+
if (typeof e != "object")
|
519
|
+
return;
|
520
|
+
if (Q(e))
|
521
|
+
for (var n = 0; n < e.length; n++) {
|
522
|
+
var u = e[n];
|
523
|
+
ne(u) && xe(u, r);
|
524
|
+
}
|
525
|
+
else if (ne(e))
|
526
|
+
e._store && (e._store.validated = !0);
|
527
|
+
else if (e) {
|
528
|
+
var y = $(e);
|
529
|
+
if (typeof y == "function" && y !== e.entries)
|
530
|
+
for (var _ = y.call(e), h; !(h = _.next()).done; )
|
531
|
+
ne(h.value) && xe(h.value, r);
|
532
|
+
}
|
533
|
+
}
|
534
|
+
}
|
535
|
+
function lr(e) {
|
536
|
+
{
|
537
|
+
var r = e.type;
|
538
|
+
if (r == null || typeof r == "string")
|
539
|
+
return;
|
540
|
+
var n;
|
541
|
+
if (typeof r == "function")
|
542
|
+
n = r.propTypes;
|
543
|
+
else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
|
544
|
+
// Inner props are checked in the reconciler.
|
545
|
+
r.$$typeof === i))
|
546
|
+
n = r.propTypes;
|
547
|
+
else
|
548
|
+
return;
|
549
|
+
if (n) {
|
550
|
+
var u = P(r);
|
551
|
+
Je(n, e.props, "prop", u, e);
|
552
|
+
} else if (r.PropTypes !== void 0 && !re) {
|
553
|
+
re = !0;
|
554
|
+
var y = P(r);
|
555
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
556
|
+
}
|
557
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
558
|
+
}
|
559
|
+
}
|
560
|
+
function ur(e) {
|
561
|
+
{
|
562
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
563
|
+
var u = r[n];
|
564
|
+
if (u !== "children" && u !== "key") {
|
565
|
+
F(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), F(null);
|
566
|
+
break;
|
567
|
+
}
|
568
|
+
}
|
569
|
+
e.ref !== null && (F(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
570
|
+
}
|
571
|
+
}
|
572
|
+
var Ce = {};
|
573
|
+
function Te(e, r, n, u, y, _) {
|
574
|
+
{
|
575
|
+
var h = We(e);
|
576
|
+
if (!h) {
|
577
|
+
var m = "";
|
578
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
579
|
+
var T = or();
|
580
|
+
T ? m += T : m += Re();
|
581
|
+
var k;
|
582
|
+
e === null ? k = "null" : Q(e) ? k = "array" : e !== void 0 && e.$$typeof === a ? (k = "<" + (P(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, m);
|
583
|
+
}
|
584
|
+
var x = ir(e, r, n, y, _);
|
585
|
+
if (x == null)
|
586
|
+
return x;
|
587
|
+
if (h) {
|
588
|
+
var O = r.children;
|
589
|
+
if (O !== void 0)
|
590
|
+
if (u)
|
591
|
+
if (Q(O)) {
|
592
|
+
for (var D = 0; D < O.length; D++)
|
593
|
+
Se(O[D], e);
|
594
|
+
Object.freeze && Object.freeze(O);
|
595
|
+
} else
|
596
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
597
|
+
else
|
598
|
+
Se(O, e);
|
599
|
+
}
|
600
|
+
if (L.call(r, "key")) {
|
601
|
+
var I = P(e), A = Object.keys(r).filter(function(mr) {
|
602
|
+
return mr !== "key";
|
603
|
+
}), te = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
|
604
|
+
if (!Ce[I + te]) {
|
605
|
+
var gr = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
|
606
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
207
607
|
let props = %s;
|
208
608
|
<%s {...props} />
|
209
609
|
React keys must be passed directly to JSX without using spread:
|
210
610
|
let props = %s;
|
211
|
-
<%s key={someKey} {...props} />`,
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
w
|
216
|
-
), Y[w + b] = !0);
|
217
|
-
}
|
218
|
-
if (w = null, h !== void 0 && (s(h), w = "" + h), a(c) && (s(c.key), w = "" + c.key), "key" in c) {
|
219
|
-
h = {};
|
220
|
-
for (var I in c)
|
221
|
-
I !== "key" && (h[I] = c[I]);
|
222
|
-
} else h = c;
|
223
|
-
return w && u(
|
224
|
-
h,
|
225
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
226
|
-
), f(
|
227
|
-
e,
|
228
|
-
w,
|
229
|
-
h,
|
230
|
-
i(),
|
231
|
-
N,
|
232
|
-
M
|
233
|
-
);
|
234
|
-
}
|
235
|
-
function r(e) {
|
236
|
-
p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === O && (e._payload.status === "fulfilled" ? p(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
237
|
-
}
|
238
|
-
function p(e) {
|
239
|
-
return typeof e == "object" && e !== null && e.$$typeof === v;
|
240
|
-
}
|
241
|
-
var g = oe, v = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), te = Symbol.for("react.client.reference"), z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, re = Array.isArray, P = console.createTask ? console.createTask : function() {
|
242
|
-
return null;
|
243
|
-
};
|
244
|
-
g = {
|
245
|
-
react_stack_bottom_frame: function(e) {
|
246
|
-
return e();
|
611
|
+
<%s key={someKey} {...props} />`, te, I, gr, I), Ce[I + te] = !0;
|
612
|
+
}
|
613
|
+
}
|
614
|
+
return e === w ? ur(x) : lr(x), x;
|
247
615
|
}
|
248
|
-
}
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
h,
|
259
|
-
!1,
|
260
|
-
b ? Error("react-stack-top-frame") : F,
|
261
|
-
b ? P(m(e)) : q
|
262
|
-
);
|
263
|
-
}, T.jsxs = function(e, c, h) {
|
264
|
-
var b = 1e4 > z.recentlyCreatedOwnerStacks++;
|
265
|
-
return o(
|
266
|
-
e,
|
267
|
-
c,
|
268
|
-
h,
|
269
|
-
!0,
|
270
|
-
b ? Error("react-stack-top-frame") : F,
|
271
|
-
b ? P(m(e)) : q
|
272
|
-
);
|
273
|
-
};
|
274
|
-
})()), T;
|
616
|
+
}
|
617
|
+
function cr(e, r, n) {
|
618
|
+
return Te(e, r, n, !0);
|
619
|
+
}
|
620
|
+
function fr(e, r, n) {
|
621
|
+
return Te(e, r, n, !1);
|
622
|
+
}
|
623
|
+
var dr = fr, pr = cr;
|
624
|
+
H.Fragment = w, H.jsx = dr, H.jsxs = pr;
|
625
|
+
})()), H;
|
275
626
|
}
|
276
|
-
var
|
277
|
-
function
|
278
|
-
return
|
627
|
+
var je;
|
628
|
+
function kr() {
|
629
|
+
return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = _r() : K.exports = Rr()), K.exports;
|
279
630
|
}
|
280
|
-
var
|
281
|
-
(function(
|
282
|
-
var
|
283
|
-
function s
|
284
|
-
return
|
285
|
-
return
|
286
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
631
|
+
var M = kr();
|
632
|
+
(function(t) {
|
633
|
+
var a = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
634
|
+
function c(s) {
|
635
|
+
return s = s.replace(/<inner>/g, function() {
|
636
|
+
return a;
|
637
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + s + ")");
|
287
638
|
}
|
288
|
-
var
|
289
|
-
return
|
290
|
-
}),
|
291
|
-
|
639
|
+
var w = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, d = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
640
|
+
return w;
|
641
|
+
}), v = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
642
|
+
t.languages.markdown = t.languages.extend("markup", {}), t.languages.insertBefore("markdown", "prolog", {
|
292
643
|
"front-matter-block": {
|
293
644
|
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
294
645
|
lookbehind: !0,
|
@@ -298,7 +649,7 @@ var S = ge();
|
|
298
649
|
"front-matter": {
|
299
650
|
pattern: /\S+(?:\s+\S+)*/,
|
300
651
|
alias: ["yaml", "language-yaml"],
|
301
|
-
inside:
|
652
|
+
inside: t.languages.yaml
|
302
653
|
}
|
303
654
|
}
|
304
655
|
},
|
@@ -308,33 +659,33 @@ var S = ge();
|
|
308
659
|
alias: "punctuation"
|
309
660
|
},
|
310
661
|
table: {
|
311
|
-
pattern: RegExp("^" +
|
662
|
+
pattern: RegExp("^" + d + v + "(?:" + d + ")*", "m"),
|
312
663
|
inside: {
|
313
664
|
"table-data-rows": {
|
314
|
-
pattern: RegExp("^(" +
|
665
|
+
pattern: RegExp("^(" + d + v + ")(?:" + d + ")*$"),
|
315
666
|
lookbehind: !0,
|
316
667
|
inside: {
|
317
668
|
"table-data": {
|
318
|
-
pattern: RegExp(
|
319
|
-
inside:
|
669
|
+
pattern: RegExp(w),
|
670
|
+
inside: t.languages.markdown
|
320
671
|
},
|
321
672
|
punctuation: /\|/
|
322
673
|
}
|
323
674
|
},
|
324
675
|
"table-line": {
|
325
|
-
pattern: RegExp("^(" +
|
676
|
+
pattern: RegExp("^(" + d + ")" + v + "$"),
|
326
677
|
lookbehind: !0,
|
327
678
|
inside: {
|
328
679
|
punctuation: /\||:?-{3,}:?/
|
329
680
|
}
|
330
681
|
},
|
331
682
|
"table-header-row": {
|
332
|
-
pattern: RegExp("^" +
|
683
|
+
pattern: RegExp("^" + d + "$"),
|
333
684
|
inside: {
|
334
685
|
"table-header": {
|
335
|
-
pattern: RegExp(
|
686
|
+
pattern: RegExp(w),
|
336
687
|
alias: "important",
|
337
|
-
inside:
|
688
|
+
inside: t.languages.markdown
|
338
689
|
},
|
339
690
|
punctuation: /\|/
|
340
691
|
}
|
@@ -428,7 +779,7 @@ var S = ge();
|
|
428
779
|
// **strong**
|
429
780
|
// __strong__
|
430
781
|
// allow one nested instance of italic text using the same delimiter
|
431
|
-
pattern:
|
782
|
+
pattern: c(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
|
432
783
|
lookbehind: !0,
|
433
784
|
greedy: !0,
|
434
785
|
inside: {
|
@@ -445,7 +796,7 @@ var S = ge();
|
|
445
796
|
// *em*
|
446
797
|
// _em_
|
447
798
|
// allow one nested instance of bold text using the same delimiter
|
448
|
-
pattern:
|
799
|
+
pattern: c(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
|
449
800
|
lookbehind: !0,
|
450
801
|
greedy: !0,
|
451
802
|
inside: {
|
@@ -462,7 +813,7 @@ var S = ge();
|
|
462
813
|
// ~~strike through~~
|
463
814
|
// ~strike~
|
464
815
|
// eslint-disable-next-line regexp/strict
|
465
|
-
pattern:
|
816
|
+
pattern: c(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
466
817
|
lookbehind: !0,
|
467
818
|
greedy: !0,
|
468
819
|
inside: {
|
@@ -487,7 +838,7 @@ var S = ge();
|
|
487
838
|
// [example](http://example.com "Optional title")
|
488
839
|
// [example][id]
|
489
840
|
// [example] [id]
|
490
|
-
pattern:
|
841
|
+
pattern: c(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
|
491
842
|
lookbehind: !0,
|
492
843
|
greedy: !0,
|
493
844
|
inside: {
|
@@ -512,78 +863,78 @@ var S = ge();
|
|
512
863
|
}
|
513
864
|
}
|
514
865
|
}
|
515
|
-
}), ["url", "bold", "italic", "strike"].forEach(function(
|
516
|
-
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(
|
517
|
-
|
866
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(s) {
|
867
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(i) {
|
868
|
+
s !== i && (t.languages.markdown[s].inside.content.inside[i] = t.languages.markdown[i]);
|
518
869
|
});
|
519
|
-
}),
|
520
|
-
if (
|
870
|
+
}), t.hooks.add("after-tokenize", function(s) {
|
871
|
+
if (s.language !== "markdown" && s.language !== "md")
|
521
872
|
return;
|
522
|
-
function
|
523
|
-
if (!(!
|
524
|
-
for (var
|
525
|
-
var
|
526
|
-
if (
|
527
|
-
|
873
|
+
function i(g) {
|
874
|
+
if (!(!g || typeof g == "string"))
|
875
|
+
for (var b = 0, S = g.length; b < S; b++) {
|
876
|
+
var C = g[b];
|
877
|
+
if (C.type !== "code") {
|
878
|
+
i(C.content);
|
528
879
|
continue;
|
529
880
|
}
|
530
|
-
var
|
531
|
-
if (
|
532
|
-
var
|
533
|
-
|
534
|
-
var
|
535
|
-
|
881
|
+
var $ = C.content[1], R = C.content[3];
|
882
|
+
if ($ && R && $.type === "code-language" && R.type === "code-block" && typeof $.content == "string") {
|
883
|
+
var E = $.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
884
|
+
E = (/[a-z][\w-]*/i.exec(E) || [""])[0].toLowerCase();
|
885
|
+
var j = "language-" + E;
|
886
|
+
R.alias ? typeof R.alias == "string" ? R.alias = [R.alias, j] : R.alias.push(j) : R.alias = [j];
|
536
887
|
}
|
537
888
|
}
|
538
889
|
}
|
539
|
-
|
540
|
-
}),
|
541
|
-
if (
|
542
|
-
for (var
|
543
|
-
var
|
544
|
-
if (
|
545
|
-
|
890
|
+
i(s.tokens);
|
891
|
+
}), t.hooks.add("wrap", function(s) {
|
892
|
+
if (s.type === "code-block") {
|
893
|
+
for (var i = "", g = 0, b = s.classes.length; g < b; g++) {
|
894
|
+
var S = s.classes[g], C = /language-(.+)/.exec(S);
|
895
|
+
if (C) {
|
896
|
+
i = C[1];
|
546
897
|
break;
|
547
898
|
}
|
548
899
|
}
|
549
|
-
var
|
550
|
-
if (
|
551
|
-
|
552
|
-
else if (
|
553
|
-
var
|
554
|
-
|
555
|
-
var
|
556
|
-
|
900
|
+
var $ = t.languages[i];
|
901
|
+
if ($)
|
902
|
+
s.content = t.highlight(p(s.content), $, i);
|
903
|
+
else if (i && i !== "none" && t.plugins.autoloader) {
|
904
|
+
var R = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
905
|
+
s.attributes.id = R, t.plugins.autoloader.loadLanguages(i, function() {
|
906
|
+
var E = document.getElementById(R);
|
907
|
+
E && (E.innerHTML = t.highlight(E.textContent, t.languages[i], i));
|
557
908
|
});
|
558
909
|
}
|
559
910
|
}
|
560
911
|
});
|
561
|
-
var
|
912
|
+
var l = RegExp(t.languages.markup.tag.pattern.source, "gi"), f = {
|
562
913
|
amp: "&",
|
563
914
|
lt: "<",
|
564
915
|
gt: ">",
|
565
916
|
quot: '"'
|
566
|
-
},
|
567
|
-
function
|
568
|
-
var
|
569
|
-
return
|
570
|
-
if (
|
571
|
-
var
|
572
|
-
return
|
917
|
+
}, o = String.fromCodePoint || String.fromCharCode;
|
918
|
+
function p(s) {
|
919
|
+
var i = s.replace(l, "");
|
920
|
+
return i = i.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(g, b) {
|
921
|
+
if (b = b.toLowerCase(), b[0] === "#") {
|
922
|
+
var S;
|
923
|
+
return b[1] === "x" ? S = parseInt(b.slice(2), 16) : S = Number(b.slice(1)), o(S);
|
573
924
|
} else {
|
574
|
-
var
|
575
|
-
return
|
925
|
+
var C = f[b];
|
926
|
+
return C || g;
|
576
927
|
}
|
577
|
-
}),
|
928
|
+
}), i;
|
578
929
|
}
|
579
|
-
|
930
|
+
t.languages.md = t.languages.markdown;
|
580
931
|
})(Prism);
|
581
|
-
var
|
582
|
-
function
|
583
|
-
return
|
932
|
+
var Pe = {}, Ne;
|
933
|
+
function xr() {
|
934
|
+
return Ne || (Ne = 1, (function() {
|
584
935
|
if (typeof Prism > "u" || typeof document > "u")
|
585
936
|
return;
|
586
|
-
var
|
937
|
+
var t = "line-numbers", a = /\n(?!$)/g, c = Prism.plugins.lineNumbers = {
|
587
938
|
/**
|
588
939
|
* Get node for provided line number
|
589
940
|
*
|
@@ -591,14 +942,14 @@ function me() {
|
|
591
942
|
* @param {number} number line number
|
592
943
|
* @returns {Element|undefined}
|
593
944
|
*/
|
594
|
-
getLine: function(
|
595
|
-
if (!(
|
596
|
-
var
|
597
|
-
if (
|
598
|
-
var
|
599
|
-
|
600
|
-
var
|
601
|
-
return
|
945
|
+
getLine: function(l, f) {
|
946
|
+
if (!(l.tagName !== "PRE" || !l.classList.contains(t))) {
|
947
|
+
var o = l.querySelector(".line-numbers-rows");
|
948
|
+
if (o) {
|
949
|
+
var p = parseInt(l.getAttribute("data-start"), 10) || 1, s = p + (o.children.length - 1);
|
950
|
+
f < p && (f = p), f > s && (f = s);
|
951
|
+
var i = f - p;
|
952
|
+
return o.children[i];
|
602
953
|
}
|
603
954
|
}
|
604
955
|
},
|
@@ -610,8 +961,8 @@ function me() {
|
|
610
961
|
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
611
962
|
* @returns {void}
|
612
963
|
*/
|
613
|
-
resize: function(
|
614
|
-
|
964
|
+
resize: function(l) {
|
965
|
+
w([l]);
|
615
966
|
},
|
616
967
|
/**
|
617
968
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
@@ -625,112 +976,112 @@ function me() {
|
|
625
976
|
*/
|
626
977
|
assumeViewportIndependence: !0
|
627
978
|
};
|
628
|
-
function
|
629
|
-
if (
|
630
|
-
var
|
631
|
-
return
|
632
|
-
}),
|
633
|
-
var
|
634
|
-
var
|
635
|
-
if (!(!
|
636
|
-
var
|
637
|
-
|
638
|
-
var
|
639
|
-
return
|
640
|
-
element:
|
641
|
-
lines:
|
979
|
+
function w(l) {
|
980
|
+
if (l = l.filter(function(o) {
|
981
|
+
var p = d(o), s = p["white-space"];
|
982
|
+
return s === "pre-wrap" || s === "pre-line";
|
983
|
+
}), l.length != 0) {
|
984
|
+
var f = l.map(function(o) {
|
985
|
+
var p = o.querySelector("code"), s = o.querySelector(".line-numbers-rows");
|
986
|
+
if (!(!p || !s)) {
|
987
|
+
var i = o.querySelector(".line-numbers-sizer"), g = p.textContent.split(a);
|
988
|
+
i || (i = document.createElement("span"), i.className = "line-numbers-sizer", p.appendChild(i)), i.innerHTML = "0", i.style.display = "block";
|
989
|
+
var b = i.getBoundingClientRect().height;
|
990
|
+
return i.innerHTML = "", {
|
991
|
+
element: o,
|
992
|
+
lines: g,
|
642
993
|
lineHeights: [],
|
643
|
-
oneLinerHeight:
|
644
|
-
sizer:
|
994
|
+
oneLinerHeight: b,
|
995
|
+
sizer: i
|
645
996
|
};
|
646
997
|
}
|
647
998
|
}).filter(Boolean);
|
648
|
-
|
649
|
-
var
|
650
|
-
|
651
|
-
if (
|
652
|
-
var
|
653
|
-
|
999
|
+
f.forEach(function(o) {
|
1000
|
+
var p = o.sizer, s = o.lines, i = o.lineHeights, g = o.oneLinerHeight;
|
1001
|
+
i[s.length - 1] = void 0, s.forEach(function(b, S) {
|
1002
|
+
if (b && b.length > 1) {
|
1003
|
+
var C = p.appendChild(document.createElement("span"));
|
1004
|
+
C.style.display = "block", C.textContent = b;
|
654
1005
|
} else
|
655
|
-
|
1006
|
+
i[S] = g;
|
656
1007
|
});
|
657
|
-
}),
|
658
|
-
for (var
|
659
|
-
|
660
|
-
}),
|
661
|
-
var
|
662
|
-
|
663
|
-
|
1008
|
+
}), f.forEach(function(o) {
|
1009
|
+
for (var p = o.sizer, s = o.lineHeights, i = 0, g = 0; g < s.length; g++)
|
1010
|
+
s[g] === void 0 && (s[g] = p.children[i++].getBoundingClientRect().height);
|
1011
|
+
}), f.forEach(function(o) {
|
1012
|
+
var p = o.sizer, s = o.element.querySelector(".line-numbers-rows");
|
1013
|
+
p.style.display = "none", p.innerHTML = "", o.lineHeights.forEach(function(i, g) {
|
1014
|
+
s.children[g].style.height = i + "px";
|
664
1015
|
});
|
665
1016
|
});
|
666
1017
|
}
|
667
1018
|
}
|
668
|
-
function
|
669
|
-
return
|
1019
|
+
function d(l) {
|
1020
|
+
return l ? window.getComputedStyle ? getComputedStyle(l) : l.currentStyle || null : null;
|
670
1021
|
}
|
671
|
-
var
|
1022
|
+
var v = void 0;
|
672
1023
|
window.addEventListener("resize", function() {
|
673
|
-
|
674
|
-
}), Prism.hooks.add("complete", function(
|
675
|
-
if (
|
676
|
-
var
|
1024
|
+
c.assumeViewportIndependence && v === window.innerWidth || (v = window.innerWidth, w(Array.prototype.slice.call(document.querySelectorAll("pre." + t))));
|
1025
|
+
}), Prism.hooks.add("complete", function(l) {
|
1026
|
+
if (l.code) {
|
1027
|
+
var f = (
|
677
1028
|
/** @type {Element} */
|
678
|
-
|
679
|
-
),
|
1029
|
+
l.element
|
1030
|
+
), o = (
|
680
1031
|
/** @type {HTMLElement} */
|
681
|
-
|
1032
|
+
f.parentNode
|
682
1033
|
);
|
683
|
-
if (!(!
|
684
|
-
|
685
|
-
var
|
686
|
-
|
1034
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !f.querySelector(".line-numbers-rows") && Prism.util.isActive(f, t)) {
|
1035
|
+
f.classList.remove(t), o.classList.add(t);
|
1036
|
+
var p = l.code.match(a), s = p ? p.length + 1 : 1, i, g = new Array(s + 1).join("<span></span>");
|
1037
|
+
i = document.createElement("span"), i.setAttribute("aria-hidden", "true"), i.className = "line-numbers-rows", i.innerHTML = g, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), l.element.appendChild(i), w([o]), Prism.hooks.run("line-numbers", l);
|
687
1038
|
}
|
688
1039
|
}
|
689
|
-
}), Prism.hooks.add("line-numbers", function(
|
690
|
-
|
1040
|
+
}), Prism.hooks.add("line-numbers", function(l) {
|
1041
|
+
l.plugins = l.plugins || {}, l.plugins.lineNumbers = !0;
|
691
1042
|
});
|
692
|
-
})()),
|
1043
|
+
})()), Pe;
|
693
1044
|
}
|
694
|
-
|
695
|
-
function
|
696
|
-
return
|
1045
|
+
xr();
|
1046
|
+
function Fe(t) {
|
1047
|
+
return t.useTabs ? " " : t.hasPadding ? " " : "";
|
697
1048
|
}
|
698
|
-
class
|
1049
|
+
class Sr {
|
699
1050
|
padding;
|
700
|
-
constructor(
|
701
|
-
this.padding =
|
1051
|
+
constructor(a) {
|
1052
|
+
this.padding = Fe(a);
|
702
1053
|
}
|
703
|
-
formatCell(
|
704
|
-
const
|
705
|
-
switch (
|
1054
|
+
formatCell(a, c, w) {
|
1055
|
+
const d = w;
|
1056
|
+
switch (c) {
|
706
1057
|
case "right":
|
707
|
-
return `${this.padding}${
|
1058
|
+
return `${this.padding}${a.padStart(d)}${this.padding}`;
|
708
1059
|
case "center": {
|
709
|
-
const
|
710
|
-
return `${this.padding}${" ".repeat(
|
1060
|
+
const v = d - a.length, l = Math.floor(v / 2), f = v - l;
|
1061
|
+
return `${this.padding}${" ".repeat(l)}${a}${" ".repeat(f)}${this.padding}`;
|
711
1062
|
}
|
712
1063
|
default:
|
713
|
-
return `${this.padding}${
|
1064
|
+
return `${this.padding}${a.padEnd(d)}${this.padding}`;
|
714
1065
|
}
|
715
1066
|
}
|
716
1067
|
}
|
717
|
-
class
|
1068
|
+
class Cr {
|
718
1069
|
static indicators = {
|
719
|
-
left: (
|
720
|
-
right: (
|
721
|
-
center: (
|
722
|
-
none: (
|
1070
|
+
left: (a) => `:${"-".repeat(a - 1)}`,
|
1071
|
+
right: (a) => `${"-".repeat(a - 1)}:`,
|
1072
|
+
center: (a) => `:${"-".repeat(a - 2)}:`,
|
1073
|
+
none: (a) => "-".repeat(a)
|
723
1074
|
};
|
724
|
-
static formatIndicator(
|
725
|
-
return this.indicators[
|
1075
|
+
static formatIndicator(a, c) {
|
1076
|
+
return this.indicators[a](c);
|
726
1077
|
}
|
727
1078
|
}
|
728
|
-
class
|
1079
|
+
class Tr {
|
729
1080
|
config;
|
730
1081
|
cellFormatter;
|
731
1082
|
adjustedAlignments;
|
732
|
-
constructor(
|
733
|
-
this.config =
|
1083
|
+
constructor(a) {
|
1084
|
+
this.config = a, this.cellFormatter = new Sr(a), this.adjustedAlignments = this.getAdjustedAlignments();
|
734
1085
|
}
|
735
1086
|
getAdjustedAlignments() {
|
736
1087
|
return this.config.columnAlignments.length < this.config.columnCount ? [
|
@@ -738,159 +1089,159 @@ class we {
|
|
738
1089
|
...Array(this.config.columnCount - this.config.columnAlignments.length).fill("none")
|
739
1090
|
] : Array.from(this.config.columnAlignments);
|
740
1091
|
}
|
741
|
-
formatRow(
|
742
|
-
return `|${Array.from({ length: this.config.columnCount }, (
|
743
|
-
let
|
744
|
-
this.config.replaceNewlines && (
|
745
|
-
const
|
746
|
-
return this.cellFormatter.formatCell(
|
1092
|
+
formatRow(a) {
|
1093
|
+
return `|${Array.from({ length: this.config.columnCount }, (w, d) => {
|
1094
|
+
let v = a[d] ?? "";
|
1095
|
+
this.config.replaceNewlines && (v = v.replace(/\n/g, "<br>"));
|
1096
|
+
const l = this.adjustedAlignments[d], f = this.config.columnWidths ? this.config.columnWidths[d] : v.length;
|
1097
|
+
return this.cellFormatter.formatCell(v, l, f);
|
747
1098
|
}).join("|")}|`;
|
748
1099
|
}
|
749
1100
|
formatAlignmentRow() {
|
750
|
-
const
|
751
|
-
return `|${Array.from({ length: this.config.columnCount }, (
|
752
|
-
const
|
753
|
-
return `${
|
1101
|
+
const a = Fe(this.config);
|
1102
|
+
return `|${Array.from({ length: this.config.columnCount }, (w, d) => {
|
1103
|
+
const v = this.adjustedAlignments[d], l = this.config.columnWidths ? this.config.columnWidths[d] : 3, f = Cr.formatIndicator(v, l);
|
1104
|
+
return `${a}${f}${a}`;
|
754
1105
|
}).join("|")}|`;
|
755
1106
|
}
|
756
1107
|
}
|
757
|
-
function
|
758
|
-
const
|
759
|
-
return
|
760
|
-
for (let
|
761
|
-
const
|
762
|
-
|
763
|
-
}
|
764
|
-
}),
|
1108
|
+
function Ar(t, a) {
|
1109
|
+
const c = new Array(a).fill(3);
|
1110
|
+
return t.forEach((w) => {
|
1111
|
+
for (let d = 0; d < a; d++) {
|
1112
|
+
const v = w[d] ?? "";
|
1113
|
+
c[d] = Math.max(c[d], v.length);
|
1114
|
+
}
|
1115
|
+
}), c;
|
765
1116
|
}
|
766
|
-
function
|
767
|
-
const
|
768
|
-
return Math.max(
|
1117
|
+
function $r(t) {
|
1118
|
+
const a = t.inputDataHeader.length, c = t.inputDataBody.map((w) => w.length);
|
1119
|
+
return Math.max(a, ...c);
|
769
1120
|
}
|
770
|
-
function
|
771
|
-
return
|
772
|
-
[
|
773
|
-
|
1121
|
+
function Or(t, a, c) {
|
1122
|
+
return c ? Ar(
|
1123
|
+
[t.inputDataHeader, ...t.inputDataBody],
|
1124
|
+
a
|
774
1125
|
) : void 0;
|
775
1126
|
}
|
776
|
-
function
|
777
|
-
const
|
778
|
-
columnCount:
|
779
|
-
columnAlignments:
|
780
|
-
columnWidths:
|
781
|
-
useTabs:
|
782
|
-
replaceNewlines:
|
783
|
-
hasPadding:
|
784
|
-
},
|
1127
|
+
function jr(t, a, c = !0, w = !1, d = !1, v = !0) {
|
1128
|
+
const l = $r(t), f = Or(t, l, c), o = {
|
1129
|
+
columnCount: l,
|
1130
|
+
columnAlignments: a,
|
1131
|
+
columnWidths: f,
|
1132
|
+
useTabs: w,
|
1133
|
+
replaceNewlines: d,
|
1134
|
+
hasPadding: v
|
1135
|
+
}, p = new Tr(o), s = p.formatRow(t.inputDataHeader), i = p.formatAlignmentRow(), g = t.inputDataBody.map((b) => p.formatRow(b)).join(`
|
785
1136
|
`);
|
786
|
-
return `${
|
787
|
-
${
|
788
|
-
${
|
1137
|
+
return `${s}
|
1138
|
+
${i}
|
1139
|
+
${g}`.trimEnd();
|
789
1140
|
}
|
790
|
-
function
|
791
|
-
let
|
792
|
-
for (;
|
793
|
-
|
794
|
-
return
|
1141
|
+
function Pr(t) {
|
1142
|
+
let a = "", c = t;
|
1143
|
+
for (; c >= 0; )
|
1144
|
+
a = String.fromCharCode(c % 26 + 65) + a, c = Math.floor(c / 26) - 1;
|
1145
|
+
return a;
|
795
1146
|
}
|
796
|
-
function
|
797
|
-
return Array.from({ length:
|
1147
|
+
function Nr(t) {
|
1148
|
+
return Array.from({ length: t }, (a, c) => Pr(c));
|
798
1149
|
}
|
799
|
-
class
|
800
|
-
constructor(
|
801
|
-
super(
|
1150
|
+
class q extends Error {
|
1151
|
+
constructor(a, c) {
|
1152
|
+
super(a, c), this.name = "MarkdownTableError", Object.setPrototypeOf(this, q.prototype);
|
802
1153
|
}
|
803
1154
|
}
|
804
|
-
function
|
805
|
-
if (
|
806
|
-
throw new
|
807
|
-
if (
|
808
|
-
throw new
|
1155
|
+
function Ir(t) {
|
1156
|
+
if (t === null || !Array.isArray(t))
|
1157
|
+
throw new q("The 'data' prop must be a two-dimensional array.");
|
1158
|
+
if (t.length === 0)
|
1159
|
+
throw new q("The 'data' array must contain at least one row.");
|
809
1160
|
}
|
810
|
-
const
|
1161
|
+
const Fr = `
|
811
1162
|
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}pre[class*=language-].line-numbers{position:relative;padding-left:2.4em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.5em;text-align:right}
|
812
|
-
`,
|
1163
|
+
`, Dr = `
|
813
1164
|
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#282a36}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}pre[class*=language-].line-numbers{position:relative;padding-left:2.4em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.5em;text-align:right}
|
814
1165
|
`;
|
815
|
-
function
|
816
|
-
return
|
1166
|
+
function Mr(t, a) {
|
1167
|
+
return a ? { inputDataHeader: t[0], inputDataBody: t.slice(1) } : { inputDataHeader: Nr(t[0].length), inputDataBody: t };
|
817
1168
|
}
|
818
|
-
function
|
1169
|
+
function zr(t, a, c, w, d, v, l) {
|
819
1170
|
try {
|
820
|
-
|
821
|
-
const { inputDataHeader:
|
822
|
-
return
|
823
|
-
{ inputDataHeader:
|
824
|
-
|
825
|
-
|
826
|
-
i,
|
1171
|
+
Ir(t);
|
1172
|
+
const { inputDataHeader: f, inputDataBody: o } = Mr(t, a);
|
1173
|
+
return jr(
|
1174
|
+
{ inputDataHeader: f, inputDataBody: o },
|
1175
|
+
c,
|
1176
|
+
w,
|
827
1177
|
d,
|
828
|
-
|
1178
|
+
v,
|
1179
|
+
l
|
829
1180
|
);
|
830
|
-
} catch (
|
831
|
-
if (
|
832
|
-
return `Error: ${
|
833
|
-
throw
|
1181
|
+
} catch (f) {
|
1182
|
+
if (f instanceof q)
|
1183
|
+
return `Error: ${f.message}`;
|
1184
|
+
throw f;
|
834
1185
|
}
|
835
1186
|
}
|
836
|
-
function
|
837
|
-
inputData:
|
838
|
-
hasHeader:
|
839
|
-
columnAlignments:
|
840
|
-
isCompact:
|
841
|
-
hasTabs:
|
842
|
-
hasPadding:
|
843
|
-
convertLineBreaks:
|
844
|
-
className:
|
845
|
-
onGenerate:
|
846
|
-
theme:
|
847
|
-
preStyle:
|
848
|
-
topPadding:
|
849
|
-
minWidth:
|
850
|
-
showLineNumbers:
|
1187
|
+
function Hr({
|
1188
|
+
inputData: t = null,
|
1189
|
+
hasHeader: a = !0,
|
1190
|
+
columnAlignments: c = [],
|
1191
|
+
isCompact: w = !1,
|
1192
|
+
hasTabs: d = !1,
|
1193
|
+
hasPadding: v = !0,
|
1194
|
+
convertLineBreaks: l = !1,
|
1195
|
+
className: f,
|
1196
|
+
onGenerate: o,
|
1197
|
+
theme: p = "light",
|
1198
|
+
preStyle: s,
|
1199
|
+
topPadding: i = 16,
|
1200
|
+
minWidth: g,
|
1201
|
+
showLineNumbers: b = !0
|
851
1202
|
}) {
|
852
|
-
const
|
853
|
-
|
854
|
-
t,
|
855
|
-
s,
|
856
|
-
!m,
|
857
|
-
i,
|
1203
|
+
const S = hr(null), C = vr(), $ = br(t), [, R] = yr(), E = wr(() => zr(
|
1204
|
+
$,
|
858
1205
|
a,
|
859
|
-
|
1206
|
+
c,
|
1207
|
+
!w,
|
1208
|
+
d,
|
1209
|
+
l,
|
1210
|
+
v
|
860
1211
|
), [
|
861
|
-
|
862
|
-
t,
|
863
|
-
s,
|
864
|
-
m,
|
865
|
-
i,
|
1212
|
+
$,
|
866
1213
|
a,
|
867
|
-
|
1214
|
+
c,
|
1215
|
+
w,
|
1216
|
+
d,
|
1217
|
+
l,
|
1218
|
+
v
|
868
1219
|
]);
|
869
|
-
return
|
870
|
-
|
871
|
-
}, [
|
872
|
-
const
|
873
|
-
|
1220
|
+
return Ae(() => {
|
1221
|
+
o && o(E);
|
1222
|
+
}, [E, o]), Ae(() => {
|
1223
|
+
const j = S.current?.querySelector("code");
|
1224
|
+
j && E && R(() => {
|
874
1225
|
requestAnimationFrame(() => {
|
875
|
-
if (
|
876
|
-
const
|
877
|
-
|
1226
|
+
if (Er.highlightElement(j), !b && S.current) {
|
1227
|
+
const Y = S.current.querySelector(".line-numbers-rows");
|
1228
|
+
Y && Y.remove();
|
878
1229
|
}
|
879
1230
|
});
|
880
1231
|
});
|
881
|
-
}, [
|
882
|
-
/* @__PURE__ */
|
883
|
-
|
1232
|
+
}, [E, R, b]), /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
|
1233
|
+
/* @__PURE__ */ M.jsxs("style", { children: [
|
1234
|
+
p === "light" ? Fr : Dr,
|
884
1235
|
`
|
885
1236
|
pre {
|
886
1237
|
position: relative;
|
887
|
-
padding-top: ${
|
1238
|
+
padding-top: ${i}px !important;
|
888
1239
|
}
|
889
1240
|
pre::before {
|
890
1241
|
position: absolute;
|
891
1242
|
top: 8px;
|
892
1243
|
left: 12px;
|
893
|
-
color: ${
|
1244
|
+
color: ${p === "light" ? "#666" : "#999"};
|
894
1245
|
letter-spacing: 2px;
|
895
1246
|
font-size: 12px;
|
896
1247
|
}
|
@@ -907,27 +1258,27 @@ function je({
|
|
907
1258
|
}
|
908
1259
|
`
|
909
1260
|
] }),
|
910
|
-
/* @__PURE__ */
|
1261
|
+
/* @__PURE__ */ M.jsx(
|
911
1262
|
"div",
|
912
1263
|
{
|
913
|
-
id:
|
1264
|
+
id: C,
|
914
1265
|
style: {
|
915
1266
|
position: "relative",
|
916
1267
|
isolation: "isolate",
|
917
1268
|
display: "inline-block"
|
918
1269
|
},
|
919
|
-
children: /* @__PURE__ */
|
1270
|
+
children: /* @__PURE__ */ M.jsx(
|
920
1271
|
"pre",
|
921
1272
|
{
|
922
|
-
ref:
|
923
|
-
className: `${
|
1273
|
+
ref: S,
|
1274
|
+
className: `${f} language-markdown ${b ? "line-numbers" : ""} ${p === "dark" ? "dark-theme" : ""}`,
|
924
1275
|
style: {
|
925
1276
|
width: "fit-content",
|
926
|
-
minWidth:
|
1277
|
+
minWidth: g ? `${g}px` : "min-content",
|
927
1278
|
margin: 0,
|
928
|
-
...
|
1279
|
+
...s
|
929
1280
|
},
|
930
|
-
children: /* @__PURE__ */
|
1281
|
+
children: /* @__PURE__ */ M.jsx("code", { className: "language-markdown", role: "code", children: E })
|
931
1282
|
}
|
932
1283
|
)
|
933
1284
|
}
|
@@ -935,6 +1286,6 @@ function je({
|
|
935
1286
|
] });
|
936
1287
|
}
|
937
1288
|
export {
|
938
|
-
|
939
|
-
|
1289
|
+
Hr as MarkdownTable,
|
1290
|
+
q as MarkdownTableError
|
940
1291
|
};
|