@wsxjs/wsx-marked-components 0.0.19 → 0.0.21
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 +1 -1
- package/dist/index.js +1023 -1250
- package/package.json +5 -5
- package/src/List.wsx +1 -24
- package/src/Markdown.wsx +2 -33
package/dist/index.js
CHANGED
|
@@ -1,574 +1,574 @@
|
|
|
1
|
-
import { autoRegister as
|
|
2
|
-
import { marked as
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
function
|
|
7
|
-
return (
|
|
8
|
-
}
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
return function(
|
|
12
|
-
return
|
|
1
|
+
import { autoRegister as J, LightComponent as F, jsx as D } from "@wsxjs/wsx-core";
|
|
2
|
+
import { marked as ie } from "marked";
|
|
3
|
+
const ae = "wsx-marked-heading{display:block}wsx-marked-heading h1{font-size:2.5rem;font-weight:700;margin:1.5rem 0 1rem;color:var(--text-primary, #2c3e50);border-bottom:2px solid var(--primary-red, #dc2626);padding-bottom:.5rem}wsx-marked-heading h2{font-size:2rem;font-weight:600;margin:1.25rem 0 .75rem;color:var(--text-primary, #2c3e50)}wsx-marked-heading h3{font-size:1.5rem;font-weight:600;margin:1rem 0 .5rem;color:var(--text-primary, #2c3e50)}wsx-marked-heading h4,wsx-marked-heading h5,wsx-marked-heading h6{font-size:1.25rem;font-weight:600;margin:.75rem 0 .5rem;color:var(--text-primary, #2c3e50)}";
|
|
4
|
+
var ve;
|
|
5
|
+
let be, ke;
|
|
6
|
+
function Z(t, e, r) {
|
|
7
|
+
return (e = xe(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
8
|
+
}
|
|
9
|
+
function Je(t, e, r, f, O, q) {
|
|
10
|
+
function w(o, a, l) {
|
|
11
|
+
return function(n, s) {
|
|
12
|
+
return l && l(n), o[a].call(n, s);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var
|
|
17
|
-
return
|
|
15
|
+
function N(o, a) {
|
|
16
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
17
|
+
return a;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
if (typeof
|
|
21
|
-
return
|
|
19
|
+
function E(o, a, l, n) {
|
|
20
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
21
|
+
return o;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
if (!
|
|
23
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
24
|
+
function p(u) {
|
|
25
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
if (!
|
|
29
|
-
|
|
30
|
-
var i = {},
|
|
31
|
-
|
|
32
|
-
return
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
} } : i[
|
|
27
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
28
|
+
if (!L) {
|
|
29
|
+
l || Array.isArray(v) || (v = [v]);
|
|
30
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
31
|
+
b ? (y || g ? i = { get: se(function() {
|
|
32
|
+
return k(this);
|
|
33
|
+
}, n, "get"), set: function(u) {
|
|
34
|
+
a[4](this, u);
|
|
35
|
+
} } : i[h] = k, y || se(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
36
36
|
}
|
|
37
|
-
for (var d =
|
|
38
|
-
var K =
|
|
37
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
38
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
39
39
|
if (u.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
40
|
-
|
|
41
|
-
}).bind(null,
|
|
40
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
41
|
+
}).bind(null, W) };
|
|
42
42
|
try {
|
|
43
|
-
if (
|
|
43
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
44
44
|
else {
|
|
45
|
-
var I,
|
|
46
|
-
|
|
47
|
-
return
|
|
48
|
-
} : (s < 4 && (I =
|
|
49
|
-
return u[
|
|
50
|
-
}, (s < 2 || s === 4) && (
|
|
51
|
-
u[
|
|
45
|
+
var I, M;
|
|
46
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
47
|
+
return p(u), i.value;
|
|
48
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
49
|
+
return u[n];
|
|
50
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
51
|
+
u[n] = T;
|
|
52
52
|
}));
|
|
53
|
-
var G =
|
|
54
|
-
return
|
|
53
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
54
|
+
return n in u;
|
|
55
55
|
} };
|
|
56
|
-
if (I && (G.get = I),
|
|
57
|
-
if (typeof d == "object" && d) (
|
|
56
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
57
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
58
58
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
59
|
-
} else
|
|
59
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
60
60
|
}
|
|
61
61
|
} finally {
|
|
62
|
-
|
|
62
|
+
W.v = !0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
return (y ||
|
|
66
|
-
for (var
|
|
67
|
-
return
|
|
68
|
-
}), y ||
|
|
69
|
-
}
|
|
70
|
-
function
|
|
71
|
-
return Object.defineProperty(
|
|
72
|
-
}
|
|
73
|
-
if (arguments.length >= 6) var
|
|
74
|
-
var
|
|
75
|
-
var s,
|
|
76
|
-
return
|
|
77
|
-
},
|
|
78
|
-
function
|
|
79
|
-
|
|
65
|
+
return (y || g) && _.push(function(u, T) {
|
|
66
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
67
|
+
return T;
|
|
68
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
69
|
+
}
|
|
70
|
+
function H(o, a) {
|
|
71
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
72
|
+
}
|
|
73
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
74
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
75
|
+
var s, $, j = [], _ = function(h) {
|
|
76
|
+
return Qe(h) === o;
|
|
77
|
+
}, A = /* @__PURE__ */ new Map();
|
|
78
|
+
function b(h) {
|
|
79
|
+
h && j.push(N.bind(null, h));
|
|
80
80
|
}
|
|
81
|
-
for (var y = 0; y <
|
|
82
|
-
var
|
|
83
|
-
if (Array.isArray(
|
|
84
|
-
var
|
|
85
|
-
if (!
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
88
|
-
|
|
81
|
+
for (var y = 0; y < a.length; y++) {
|
|
82
|
+
var g = a[y];
|
|
83
|
+
if (Array.isArray(g)) {
|
|
84
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
85
|
+
if (!L && !c) {
|
|
86
|
+
var x = A.get(i);
|
|
87
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
88
|
+
A.set(i, !(m > 2) || m);
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : xe(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
return
|
|
94
|
-
}(
|
|
95
|
-
return r.length ||
|
|
96
|
-
var
|
|
97
|
-
return r.length && [
|
|
93
|
+
return b(s), b($), j;
|
|
94
|
+
}(t, e, O, C);
|
|
95
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
96
|
+
var o = [];
|
|
97
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
98
98
|
} };
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
var
|
|
102
|
-
return typeof
|
|
100
|
+
function xe(t) {
|
|
101
|
+
var e = Ye(t, "string");
|
|
102
|
+
return typeof e == "symbol" ? e : e + "";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (typeof
|
|
106
|
-
var r =
|
|
104
|
+
function Ye(t, e) {
|
|
105
|
+
if (typeof t != "object" || !t) return t;
|
|
106
|
+
var r = t[Symbol.toPrimitive];
|
|
107
107
|
if (r !== void 0) {
|
|
108
|
-
var
|
|
109
|
-
if (typeof
|
|
108
|
+
var f = r.call(t, e);
|
|
109
|
+
if (typeof f != "object") return f;
|
|
110
110
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
111
111
|
}
|
|
112
|
-
return String(
|
|
112
|
+
return String(t);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
typeof
|
|
114
|
+
function se(t, e, r) {
|
|
115
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
116
116
|
try {
|
|
117
|
-
Object.defineProperty(
|
|
117
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
118
118
|
} catch {
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
if (Object(
|
|
124
|
-
return
|
|
122
|
+
function Qe(t) {
|
|
123
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
124
|
+
return t;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
ke = [J({
|
|
127
127
|
tagName: "wsx-marked-heading"
|
|
128
128
|
})];
|
|
129
|
-
let
|
|
130
|
-
class
|
|
129
|
+
let Ve;
|
|
130
|
+
class Ze extends F {
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
|
-
styles:
|
|
133
|
+
styles: ae,
|
|
134
134
|
styleName: "wsx-marked-heading"
|
|
135
|
-
}),
|
|
135
|
+
}), Z(this, "_autoStyles", ae), Z(this, "level", 1), Z(this, "text", "");
|
|
136
136
|
}
|
|
137
137
|
static get observedAttributes() {
|
|
138
138
|
return ["level", "text"];
|
|
139
139
|
}
|
|
140
|
-
attributeChangedCallback(
|
|
141
|
-
|
|
140
|
+
attributeChangedCallback(e, r, f) {
|
|
141
|
+
e === "level" ? this.level = parseInt(f, 10) || 1 : e === "text" && (this.text = f), this.rerender();
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
|
-
return this.level === 1 ? /* @__PURE__ */
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
[
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
var
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
return (
|
|
155
|
-
}
|
|
156
|
-
function
|
|
157
|
-
function
|
|
158
|
-
return function(
|
|
159
|
-
return
|
|
144
|
+
return this.level === 1 ? /* @__PURE__ */ D("h1", null, this.text) : this.level === 2 ? /* @__PURE__ */ D("h2", null, this.text) : this.level === 3 ? /* @__PURE__ */ D("h3", null, this.text) : this.level === 4 ? /* @__PURE__ */ D("h4", null, this.text) : this.level === 5 ? /* @__PURE__ */ D("h5", null, this.text) : /* @__PURE__ */ D("h6", null, this.text);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
ve = Ze;
|
|
148
|
+
[Ve, be] = Je(ve, [], ke, 0, void 0, F).c;
|
|
149
|
+
be();
|
|
150
|
+
const le = "wsx-marked-code{display:block;margin:1rem 0}wsx-marked-code pre{background:var(--bg-secondary, #f5f5f5);border:1px solid var(--border-color, #e0e0e0);border-radius:8px;padding:1rem;overflow-x:auto;font-family:Courier New,monospace;font-size:.9rem;line-height:1.5}wsx-marked-code code{background:transparent;padding:0;border:none;font-family:inherit}wsx-marked-code .language-label{display:inline-block;background:var(--primary-red, #dc2626);color:#fff;padding:.25rem .5rem;font-size:.75rem;border-radius:4px 4px 0 0;margin-bottom:-1px}";
|
|
151
|
+
var Te;
|
|
152
|
+
let we, _e;
|
|
153
|
+
function ee(t, e, r) {
|
|
154
|
+
return (e = Ee(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
155
|
+
}
|
|
156
|
+
function et(t, e, r, f, O, q) {
|
|
157
|
+
function w(o, a, l) {
|
|
158
|
+
return function(n, s) {
|
|
159
|
+
return l && l(n), o[a].call(n, s);
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
for (var
|
|
164
|
-
return
|
|
162
|
+
function N(o, a) {
|
|
163
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
164
|
+
return a;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
if (typeof
|
|
168
|
-
return
|
|
166
|
+
function E(o, a, l, n) {
|
|
167
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
168
|
+
return o;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
function
|
|
172
|
-
if (!
|
|
170
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
171
|
+
function p(u) {
|
|
172
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
173
173
|
}
|
|
174
|
-
var
|
|
175
|
-
if (!
|
|
176
|
-
|
|
177
|
-
var i = {},
|
|
178
|
-
|
|
179
|
-
return
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
} } : i[
|
|
174
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
175
|
+
if (!L) {
|
|
176
|
+
l || Array.isArray(v) || (v = [v]);
|
|
177
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
178
|
+
b ? (y || g ? i = { get: ce(function() {
|
|
179
|
+
return k(this);
|
|
180
|
+
}, n, "get"), set: function(u) {
|
|
181
|
+
a[4](this, u);
|
|
182
|
+
} } : i[h] = k, y || ce(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
183
183
|
}
|
|
184
|
-
for (var d =
|
|
185
|
-
var K =
|
|
184
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
185
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
186
186
|
if (u.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
187
|
-
|
|
188
|
-
}).bind(null,
|
|
187
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
188
|
+
}).bind(null, W) };
|
|
189
189
|
try {
|
|
190
|
-
if (
|
|
190
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
191
191
|
else {
|
|
192
|
-
var I,
|
|
193
|
-
|
|
194
|
-
return
|
|
195
|
-
} : (s < 4 && (I =
|
|
196
|
-
return u[
|
|
197
|
-
}, (s < 2 || s === 4) && (
|
|
198
|
-
u[
|
|
192
|
+
var I, M;
|
|
193
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
194
|
+
return p(u), i.value;
|
|
195
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
196
|
+
return u[n];
|
|
197
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
198
|
+
u[n] = T;
|
|
199
199
|
}));
|
|
200
|
-
var G =
|
|
201
|
-
return
|
|
200
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
201
|
+
return n in u;
|
|
202
202
|
} };
|
|
203
|
-
if (I && (G.get = I),
|
|
204
|
-
if (typeof d == "object" && d) (
|
|
203
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
204
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
205
205
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
206
|
-
} else
|
|
206
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
207
207
|
}
|
|
208
208
|
} finally {
|
|
209
|
-
|
|
209
|
+
W.v = !0;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
return (y ||
|
|
213
|
-
for (var
|
|
214
|
-
return
|
|
215
|
-
}), y ||
|
|
216
|
-
}
|
|
217
|
-
function
|
|
218
|
-
return Object.defineProperty(
|
|
219
|
-
}
|
|
220
|
-
if (arguments.length >= 6) var
|
|
221
|
-
var
|
|
222
|
-
var s,
|
|
223
|
-
return
|
|
224
|
-
},
|
|
225
|
-
function
|
|
226
|
-
|
|
212
|
+
return (y || g) && _.push(function(u, T) {
|
|
213
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
214
|
+
return T;
|
|
215
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
216
|
+
}
|
|
217
|
+
function H(o, a) {
|
|
218
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
219
|
+
}
|
|
220
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
221
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
222
|
+
var s, $, j = [], _ = function(h) {
|
|
223
|
+
return rt(h) === o;
|
|
224
|
+
}, A = /* @__PURE__ */ new Map();
|
|
225
|
+
function b(h) {
|
|
226
|
+
h && j.push(N.bind(null, h));
|
|
227
227
|
}
|
|
228
|
-
for (var y = 0; y <
|
|
229
|
-
var
|
|
230
|
-
if (Array.isArray(
|
|
231
|
-
var
|
|
232
|
-
if (!
|
|
233
|
-
var
|
|
234
|
-
if (
|
|
235
|
-
|
|
228
|
+
for (var y = 0; y < a.length; y++) {
|
|
229
|
+
var g = a[y];
|
|
230
|
+
if (Array.isArray(g)) {
|
|
231
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
232
|
+
if (!L && !c) {
|
|
233
|
+
var x = A.get(i);
|
|
234
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
235
|
+
A.set(i, !(m > 2) || m);
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : Ee(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
return
|
|
241
|
-
}(
|
|
242
|
-
return r.length ||
|
|
243
|
-
var
|
|
244
|
-
return r.length && [
|
|
240
|
+
return b(s), b($), j;
|
|
241
|
+
}(t, e, O, C);
|
|
242
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
243
|
+
var o = [];
|
|
244
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
245
245
|
} };
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
var
|
|
249
|
-
return typeof
|
|
247
|
+
function Ee(t) {
|
|
248
|
+
var e = tt(t, "string");
|
|
249
|
+
return typeof e == "symbol" ? e : e + "";
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
if (typeof
|
|
253
|
-
var r =
|
|
251
|
+
function tt(t, e) {
|
|
252
|
+
if (typeof t != "object" || !t) return t;
|
|
253
|
+
var r = t[Symbol.toPrimitive];
|
|
254
254
|
if (r !== void 0) {
|
|
255
|
-
var
|
|
256
|
-
if (typeof
|
|
255
|
+
var f = r.call(t, e);
|
|
256
|
+
if (typeof f != "object") return f;
|
|
257
257
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
258
258
|
}
|
|
259
|
-
return String(
|
|
259
|
+
return String(t);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
typeof
|
|
261
|
+
function ce(t, e, r) {
|
|
262
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
263
263
|
try {
|
|
264
|
-
Object.defineProperty(
|
|
264
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
265
265
|
} catch {
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return t;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
if (Object(
|
|
271
|
-
return
|
|
269
|
+
function rt(t) {
|
|
270
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
271
|
+
return t;
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
_e = [J({
|
|
274
274
|
tagName: "wsx-marked-code"
|
|
275
275
|
})];
|
|
276
|
-
let
|
|
277
|
-
class
|
|
276
|
+
let nt;
|
|
277
|
+
class ot extends F {
|
|
278
278
|
constructor() {
|
|
279
279
|
super({
|
|
280
|
-
styles:
|
|
280
|
+
styles: le,
|
|
281
281
|
styleName: "wsx-marked-code"
|
|
282
|
-
}),
|
|
282
|
+
}), ee(this, "_autoStyles", le), ee(this, "code", ""), ee(this, "language", "");
|
|
283
283
|
}
|
|
284
284
|
static get observedAttributes() {
|
|
285
285
|
return ["code", "language"];
|
|
286
286
|
}
|
|
287
|
-
attributeChangedCallback(
|
|
288
|
-
|
|
287
|
+
attributeChangedCallback(e, r, f) {
|
|
288
|
+
e === "code" ? this.code = f || "" : e === "language" && (this.language = f || ""), this.rerender();
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
|
-
return /* @__PURE__ */
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
[
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
var
|
|
299
|
-
let
|
|
300
|
-
function
|
|
301
|
-
return (
|
|
302
|
-
}
|
|
303
|
-
function
|
|
304
|
-
function
|
|
305
|
-
return function(
|
|
306
|
-
return
|
|
291
|
+
return /* @__PURE__ */ D("div", null, this.language && /* @__PURE__ */ D("span", { class: "language-label" }, this.language), /* @__PURE__ */ D("pre", null, /* @__PURE__ */ D("code", null, this.code)));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
Te = ot;
|
|
295
|
+
[nt, we] = et(Te, [], _e, 0, void 0, F).c;
|
|
296
|
+
we();
|
|
297
|
+
const ue = "wsx-marked-blockquote{display:block;margin:1rem 0;padding:1rem 1.5rem;border-left:4px solid var(--primary-red, #dc2626);background:var(--bg-secondary, #f9f9f9);border-radius:4px;font-style:italic;color:var(--text-secondary, #666)}";
|
|
298
|
+
var Le;
|
|
299
|
+
let je, $e;
|
|
300
|
+
function it(t, e, r) {
|
|
301
|
+
return (e = Se(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
302
|
+
}
|
|
303
|
+
function at(t, e, r, f, O, q) {
|
|
304
|
+
function w(o, a, l) {
|
|
305
|
+
return function(n, s) {
|
|
306
|
+
return l && l(n), o[a].call(n, s);
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
for (var
|
|
311
|
-
return
|
|
309
|
+
function N(o, a) {
|
|
310
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
311
|
+
return a;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
if (typeof
|
|
315
|
-
return
|
|
313
|
+
function E(o, a, l, n) {
|
|
314
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
315
|
+
return o;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
function
|
|
319
|
-
if (!
|
|
317
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
318
|
+
function p(u) {
|
|
319
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
if (!
|
|
323
|
-
|
|
324
|
-
var i = {},
|
|
325
|
-
|
|
326
|
-
return
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
} } : i[
|
|
321
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
322
|
+
if (!L) {
|
|
323
|
+
l || Array.isArray(v) || (v = [v]);
|
|
324
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
325
|
+
b ? (y || g ? i = { get: fe(function() {
|
|
326
|
+
return k(this);
|
|
327
|
+
}, n, "get"), set: function(u) {
|
|
328
|
+
a[4](this, u);
|
|
329
|
+
} } : i[h] = k, y || fe(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
330
330
|
}
|
|
331
|
-
for (var d =
|
|
332
|
-
var K =
|
|
331
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
332
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
333
333
|
if (u.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
334
|
-
|
|
335
|
-
}).bind(null,
|
|
334
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
335
|
+
}).bind(null, W) };
|
|
336
336
|
try {
|
|
337
|
-
if (
|
|
337
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
338
338
|
else {
|
|
339
|
-
var I,
|
|
340
|
-
|
|
341
|
-
return
|
|
342
|
-
} : (s < 4 && (I =
|
|
343
|
-
return u[
|
|
344
|
-
}, (s < 2 || s === 4) && (
|
|
345
|
-
u[
|
|
339
|
+
var I, M;
|
|
340
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
341
|
+
return p(u), i.value;
|
|
342
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
343
|
+
return u[n];
|
|
344
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
345
|
+
u[n] = T;
|
|
346
346
|
}));
|
|
347
|
-
var G =
|
|
348
|
-
return
|
|
347
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
348
|
+
return n in u;
|
|
349
349
|
} };
|
|
350
|
-
if (I && (G.get = I),
|
|
351
|
-
if (typeof d == "object" && d) (
|
|
350
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
351
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
352
352
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
353
|
-
} else
|
|
353
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
354
354
|
}
|
|
355
355
|
} finally {
|
|
356
|
-
|
|
356
|
+
W.v = !0;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
return (y ||
|
|
360
|
-
for (var
|
|
361
|
-
return
|
|
362
|
-
}), y ||
|
|
363
|
-
}
|
|
364
|
-
function
|
|
365
|
-
return Object.defineProperty(
|
|
366
|
-
}
|
|
367
|
-
if (arguments.length >= 6) var
|
|
368
|
-
var
|
|
369
|
-
var s,
|
|
370
|
-
return
|
|
371
|
-
},
|
|
372
|
-
function
|
|
373
|
-
|
|
359
|
+
return (y || g) && _.push(function(u, T) {
|
|
360
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
361
|
+
return T;
|
|
362
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
363
|
+
}
|
|
364
|
+
function H(o, a) {
|
|
365
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
366
|
+
}
|
|
367
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
368
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
369
|
+
var s, $, j = [], _ = function(h) {
|
|
370
|
+
return lt(h) === o;
|
|
371
|
+
}, A = /* @__PURE__ */ new Map();
|
|
372
|
+
function b(h) {
|
|
373
|
+
h && j.push(N.bind(null, h));
|
|
374
374
|
}
|
|
375
|
-
for (var y = 0; y <
|
|
376
|
-
var
|
|
377
|
-
if (Array.isArray(
|
|
378
|
-
var
|
|
379
|
-
if (!
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
382
|
-
|
|
375
|
+
for (var y = 0; y < a.length; y++) {
|
|
376
|
+
var g = a[y];
|
|
377
|
+
if (Array.isArray(g)) {
|
|
378
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
379
|
+
if (!L && !c) {
|
|
380
|
+
var x = A.get(i);
|
|
381
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
382
|
+
A.set(i, !(m > 2) || m);
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : Se(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
return
|
|
388
|
-
}(
|
|
389
|
-
return r.length ||
|
|
390
|
-
var
|
|
391
|
-
return r.length && [
|
|
387
|
+
return b(s), b($), j;
|
|
388
|
+
}(t, e, O, C);
|
|
389
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
390
|
+
var o = [];
|
|
391
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
392
392
|
} };
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
var
|
|
396
|
-
return typeof
|
|
394
|
+
function Se(t) {
|
|
395
|
+
var e = st(t, "string");
|
|
396
|
+
return typeof e == "symbol" ? e : e + "";
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
if (typeof
|
|
400
|
-
var r =
|
|
398
|
+
function st(t, e) {
|
|
399
|
+
if (typeof t != "object" || !t) return t;
|
|
400
|
+
var r = t[Symbol.toPrimitive];
|
|
401
401
|
if (r !== void 0) {
|
|
402
|
-
var
|
|
403
|
-
if (typeof
|
|
402
|
+
var f = r.call(t, e);
|
|
403
|
+
if (typeof f != "object") return f;
|
|
404
404
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
405
405
|
}
|
|
406
|
-
return String(
|
|
406
|
+
return String(t);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
typeof
|
|
408
|
+
function fe(t, e, r) {
|
|
409
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
410
410
|
try {
|
|
411
|
-
Object.defineProperty(
|
|
411
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
412
412
|
} catch {
|
|
413
413
|
}
|
|
414
|
-
return
|
|
414
|
+
return t;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
if (Object(
|
|
418
|
-
return
|
|
416
|
+
function lt(t) {
|
|
417
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
418
|
+
return t;
|
|
419
419
|
}
|
|
420
|
-
|
|
420
|
+
$e = [J({
|
|
421
421
|
tagName: "wsx-marked-blockquote"
|
|
422
422
|
})];
|
|
423
|
-
let
|
|
424
|
-
class
|
|
423
|
+
let ct;
|
|
424
|
+
class ut extends F {
|
|
425
425
|
constructor() {
|
|
426
426
|
super({
|
|
427
|
-
styles:
|
|
427
|
+
styles: ue,
|
|
428
428
|
styleName: "wsx-marked-blockquote"
|
|
429
|
-
}),
|
|
429
|
+
}), it(this, "_autoStyles", ue);
|
|
430
430
|
}
|
|
431
431
|
render() {
|
|
432
|
-
return /* @__PURE__ */
|
|
432
|
+
return /* @__PURE__ */ D("blockquote", null, /* @__PURE__ */ D("slot", null));
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
|
|
436
|
-
[
|
|
437
|
-
|
|
438
|
-
var
|
|
439
|
-
let
|
|
440
|
-
function
|
|
441
|
-
return (
|
|
442
|
-
}
|
|
443
|
-
function
|
|
444
|
-
function
|
|
445
|
-
return function(
|
|
446
|
-
return
|
|
435
|
+
Le = ut;
|
|
436
|
+
[ct, je] = at(Le, [], $e, 0, void 0, F).c;
|
|
437
|
+
je();
|
|
438
|
+
var Ie;
|
|
439
|
+
let Oe, Ce;
|
|
440
|
+
function ft(t, e, r) {
|
|
441
|
+
return (e = Ae(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
442
|
+
}
|
|
443
|
+
function dt(t, e, r, f, O, q) {
|
|
444
|
+
function w(o, a, l) {
|
|
445
|
+
return function(n, s) {
|
|
446
|
+
return l && l(n), o[a].call(n, s);
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
for (var
|
|
451
|
-
return
|
|
449
|
+
function N(o, a) {
|
|
450
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
451
|
+
return a;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
if (typeof
|
|
455
|
-
return
|
|
453
|
+
function E(o, a, l, n) {
|
|
454
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
455
|
+
return o;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
function
|
|
459
|
-
if (!
|
|
457
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
458
|
+
function p(u) {
|
|
459
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
if (!
|
|
463
|
-
|
|
464
|
-
var i = {},
|
|
465
|
-
|
|
466
|
-
return
|
|
467
|
-
},
|
|
468
|
-
|
|
469
|
-
} } : i[
|
|
461
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
462
|
+
if (!L) {
|
|
463
|
+
l || Array.isArray(v) || (v = [v]);
|
|
464
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
465
|
+
b ? (y || g ? i = { get: de(function() {
|
|
466
|
+
return k(this);
|
|
467
|
+
}, n, "get"), set: function(u) {
|
|
468
|
+
a[4](this, u);
|
|
469
|
+
} } : i[h] = k, y || de(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
470
470
|
}
|
|
471
|
-
for (var d =
|
|
472
|
-
var K =
|
|
471
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
472
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
473
473
|
if (u.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
474
|
-
|
|
475
|
-
}).bind(null,
|
|
474
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
475
|
+
}).bind(null, W) };
|
|
476
476
|
try {
|
|
477
|
-
if (
|
|
477
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
478
478
|
else {
|
|
479
|
-
var I,
|
|
480
|
-
|
|
481
|
-
return
|
|
482
|
-
} : (s < 4 && (I =
|
|
483
|
-
return u[
|
|
484
|
-
}, (s < 2 || s === 4) && (
|
|
485
|
-
u[
|
|
479
|
+
var I, M;
|
|
480
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
481
|
+
return p(u), i.value;
|
|
482
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
483
|
+
return u[n];
|
|
484
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
485
|
+
u[n] = T;
|
|
486
486
|
}));
|
|
487
|
-
var G =
|
|
488
|
-
return
|
|
487
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
488
|
+
return n in u;
|
|
489
489
|
} };
|
|
490
|
-
if (I && (G.get = I),
|
|
491
|
-
if (typeof d == "object" && d) (
|
|
490
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
491
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
492
492
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
493
|
-
} else
|
|
493
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
494
494
|
}
|
|
495
495
|
} finally {
|
|
496
|
-
|
|
496
|
+
W.v = !0;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
return (y ||
|
|
500
|
-
for (var
|
|
501
|
-
return
|
|
502
|
-
}), y ||
|
|
503
|
-
}
|
|
504
|
-
function
|
|
505
|
-
return Object.defineProperty(
|
|
506
|
-
}
|
|
507
|
-
if (arguments.length >= 6) var
|
|
508
|
-
var
|
|
509
|
-
var s,
|
|
510
|
-
return
|
|
511
|
-
},
|
|
512
|
-
function
|
|
513
|
-
|
|
499
|
+
return (y || g) && _.push(function(u, T) {
|
|
500
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
501
|
+
return T;
|
|
502
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
503
|
+
}
|
|
504
|
+
function H(o, a) {
|
|
505
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
506
|
+
}
|
|
507
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
508
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
509
|
+
var s, $, j = [], _ = function(h) {
|
|
510
|
+
return mt(h) === o;
|
|
511
|
+
}, A = /* @__PURE__ */ new Map();
|
|
512
|
+
function b(h) {
|
|
513
|
+
h && j.push(N.bind(null, h));
|
|
514
514
|
}
|
|
515
|
-
for (var y = 0; y <
|
|
516
|
-
var
|
|
517
|
-
if (Array.isArray(
|
|
518
|
-
var
|
|
519
|
-
if (!
|
|
520
|
-
var
|
|
521
|
-
if (
|
|
522
|
-
|
|
515
|
+
for (var y = 0; y < a.length; y++) {
|
|
516
|
+
var g = a[y];
|
|
517
|
+
if (Array.isArray(g)) {
|
|
518
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
519
|
+
if (!L && !c) {
|
|
520
|
+
var x = A.get(i);
|
|
521
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
522
|
+
A.set(i, !(m > 2) || m);
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : Ae(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
return
|
|
528
|
-
}(
|
|
529
|
-
return r.length ||
|
|
530
|
-
var
|
|
531
|
-
return r.length && [
|
|
527
|
+
return b(s), b($), j;
|
|
528
|
+
}(t, e, O, C);
|
|
529
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
530
|
+
var o = [];
|
|
531
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
532
532
|
} };
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
var
|
|
536
|
-
return typeof
|
|
534
|
+
function Ae(t) {
|
|
535
|
+
var e = gt(t, "string");
|
|
536
|
+
return typeof e == "symbol" ? e : e + "";
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
if (typeof
|
|
540
|
-
var r =
|
|
538
|
+
function gt(t, e) {
|
|
539
|
+
if (typeof t != "object" || !t) return t;
|
|
540
|
+
var r = t[Symbol.toPrimitive];
|
|
541
541
|
if (r !== void 0) {
|
|
542
|
-
var
|
|
543
|
-
if (typeof
|
|
542
|
+
var f = r.call(t, e);
|
|
543
|
+
if (typeof f != "object") return f;
|
|
544
544
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
545
545
|
}
|
|
546
|
-
return String(
|
|
546
|
+
return String(t);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
typeof
|
|
548
|
+
function de(t, e, r) {
|
|
549
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
550
550
|
try {
|
|
551
|
-
Object.defineProperty(
|
|
551
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
552
552
|
} catch {
|
|
553
553
|
}
|
|
554
|
-
return
|
|
554
|
+
return t;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
if (Object(
|
|
558
|
-
return
|
|
556
|
+
function mt(t) {
|
|
557
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
558
|
+
return t;
|
|
559
559
|
}
|
|
560
|
-
|
|
560
|
+
Ce = [J({
|
|
561
561
|
tagName: "wsx-marked-paragraph"
|
|
562
562
|
})];
|
|
563
|
-
let
|
|
564
|
-
class
|
|
563
|
+
let ht;
|
|
564
|
+
class pt extends F {
|
|
565
565
|
constructor() {
|
|
566
566
|
super({
|
|
567
567
|
styleName: "wsx-marked-paragraph"
|
|
568
|
-
}),
|
|
569
|
-
const [
|
|
568
|
+
}), ft(this, "content", void 0);
|
|
569
|
+
const [e, r] = this.useState("content", "");
|
|
570
570
|
Object.defineProperty(this, "content", {
|
|
571
|
-
get:
|
|
571
|
+
get: e,
|
|
572
572
|
set: r,
|
|
573
573
|
enumerable: !0,
|
|
574
574
|
configurable: !0
|
|
@@ -577,821 +577,607 @@ class Ct extends J {
|
|
|
577
577
|
static get observedAttributes() {
|
|
578
578
|
return ["content"];
|
|
579
579
|
}
|
|
580
|
-
attributeChangedCallback(
|
|
581
|
-
|
|
580
|
+
attributeChangedCallback(e, r, f) {
|
|
581
|
+
e === "content" && (this.content = f || "");
|
|
582
582
|
}
|
|
583
583
|
render() {
|
|
584
|
-
return /* @__PURE__ */
|
|
584
|
+
return /* @__PURE__ */ D("p", { class: "marked-paragraph" }, this.content);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
|
|
588
|
-
[
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
let
|
|
592
|
-
function
|
|
593
|
-
return (
|
|
587
|
+
Ie = pt;
|
|
588
|
+
[ht, Oe] = dt(Ie, [], Ce, 0, void 0, F).c;
|
|
589
|
+
Oe();
|
|
590
|
+
var Re;
|
|
591
|
+
let Me, De;
|
|
592
|
+
function ge(t, e, r) {
|
|
593
|
+
return (e = ze(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
function
|
|
597
|
-
return function(
|
|
598
|
-
return
|
|
595
|
+
function yt(t, e, r, f, O, q) {
|
|
596
|
+
function w(o, a, l) {
|
|
597
|
+
return function(n, s) {
|
|
598
|
+
return l && l(n), o[a].call(n, s);
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
for (var
|
|
603
|
-
return
|
|
601
|
+
function N(o, a) {
|
|
602
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
603
|
+
return a;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
if (typeof
|
|
607
|
-
return
|
|
605
|
+
function E(o, a, l, n) {
|
|
606
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
607
|
+
return o;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
function
|
|
611
|
-
if (!
|
|
609
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
610
|
+
function p(u) {
|
|
611
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
612
612
|
}
|
|
613
|
-
var
|
|
614
|
-
if (!
|
|
615
|
-
|
|
616
|
-
var i = {},
|
|
617
|
-
|
|
618
|
-
return
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
} } : i[
|
|
613
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
614
|
+
if (!L) {
|
|
615
|
+
l || Array.isArray(v) || (v = [v]);
|
|
616
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
617
|
+
b ? (y || g ? i = { get: me(function() {
|
|
618
|
+
return k(this);
|
|
619
|
+
}, n, "get"), set: function(u) {
|
|
620
|
+
a[4](this, u);
|
|
621
|
+
} } : i[h] = k, y || me(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
622
622
|
}
|
|
623
|
-
for (var d =
|
|
624
|
-
var K =
|
|
623
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
624
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
625
625
|
if (u.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
626
|
-
|
|
627
|
-
}).bind(null,
|
|
626
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
627
|
+
}).bind(null, W) };
|
|
628
628
|
try {
|
|
629
|
-
if (
|
|
629
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
630
630
|
else {
|
|
631
|
-
var I,
|
|
632
|
-
|
|
633
|
-
return
|
|
634
|
-
} : (s < 4 && (I =
|
|
635
|
-
return u[
|
|
636
|
-
}, (s < 2 || s === 4) && (
|
|
637
|
-
u[
|
|
631
|
+
var I, M;
|
|
632
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
633
|
+
return p(u), i.value;
|
|
634
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
635
|
+
return u[n];
|
|
636
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
637
|
+
u[n] = T;
|
|
638
638
|
}));
|
|
639
|
-
var G =
|
|
640
|
-
return
|
|
639
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
640
|
+
return n in u;
|
|
641
641
|
} };
|
|
642
|
-
if (I && (G.get = I),
|
|
643
|
-
if (typeof d == "object" && d) (
|
|
642
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
643
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
644
644
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
645
|
-
} else
|
|
645
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
646
646
|
}
|
|
647
647
|
} finally {
|
|
648
|
-
|
|
648
|
+
W.v = !0;
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
return (y ||
|
|
652
|
-
for (var
|
|
653
|
-
return
|
|
654
|
-
}), y ||
|
|
655
|
-
}
|
|
656
|
-
function
|
|
657
|
-
return Object.defineProperty(
|
|
658
|
-
}
|
|
659
|
-
if (arguments.length >= 6) var
|
|
660
|
-
var
|
|
661
|
-
var s,
|
|
662
|
-
return
|
|
663
|
-
},
|
|
664
|
-
function
|
|
665
|
-
|
|
651
|
+
return (y || g) && _.push(function(u, T) {
|
|
652
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
653
|
+
return T;
|
|
654
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
655
|
+
}
|
|
656
|
+
function H(o, a) {
|
|
657
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
658
|
+
}
|
|
659
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
660
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
661
|
+
var s, $, j = [], _ = function(h) {
|
|
662
|
+
return bt(h) === o;
|
|
663
|
+
}, A = /* @__PURE__ */ new Map();
|
|
664
|
+
function b(h) {
|
|
665
|
+
h && j.push(N.bind(null, h));
|
|
666
666
|
}
|
|
667
|
-
for (var y = 0; y <
|
|
668
|
-
var
|
|
669
|
-
if (Array.isArray(
|
|
670
|
-
var
|
|
671
|
-
if (!
|
|
672
|
-
var
|
|
673
|
-
if (
|
|
674
|
-
|
|
667
|
+
for (var y = 0; y < a.length; y++) {
|
|
668
|
+
var g = a[y];
|
|
669
|
+
if (Array.isArray(g)) {
|
|
670
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
671
|
+
if (!L && !c) {
|
|
672
|
+
var x = A.get(i);
|
|
673
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
674
|
+
A.set(i, !(m > 2) || m);
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : ze(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
return
|
|
680
|
-
}(
|
|
681
|
-
return r.length ||
|
|
682
|
-
var
|
|
683
|
-
return r.length && [
|
|
679
|
+
return b(s), b($), j;
|
|
680
|
+
}(t, e, O, C);
|
|
681
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
682
|
+
var o = [];
|
|
683
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
684
684
|
} };
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
var
|
|
688
|
-
return typeof
|
|
686
|
+
function ze(t) {
|
|
687
|
+
var e = vt(t, "string");
|
|
688
|
+
return typeof e == "symbol" ? e : e + "";
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
if (typeof
|
|
692
|
-
var r =
|
|
690
|
+
function vt(t, e) {
|
|
691
|
+
if (typeof t != "object" || !t) return t;
|
|
692
|
+
var r = t[Symbol.toPrimitive];
|
|
693
693
|
if (r !== void 0) {
|
|
694
|
-
var
|
|
695
|
-
if (typeof
|
|
694
|
+
var f = r.call(t, e);
|
|
695
|
+
if (typeof f != "object") return f;
|
|
696
696
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
697
697
|
}
|
|
698
|
-
return String(
|
|
698
|
+
return String(t);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
typeof
|
|
700
|
+
function me(t, e, r) {
|
|
701
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
702
702
|
try {
|
|
703
|
-
Object.defineProperty(
|
|
703
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
704
704
|
} catch {
|
|
705
705
|
}
|
|
706
|
-
return
|
|
706
|
+
return t;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
if (Object(
|
|
710
|
-
return
|
|
708
|
+
function bt(t) {
|
|
709
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
710
|
+
return t;
|
|
711
711
|
}
|
|
712
|
-
|
|
712
|
+
De = [J({
|
|
713
713
|
tagName: "wsx-marked-list"
|
|
714
714
|
})];
|
|
715
|
-
let
|
|
716
|
-
class
|
|
715
|
+
let kt;
|
|
716
|
+
class xt extends F {
|
|
717
717
|
constructor() {
|
|
718
|
-
super(
|
|
719
|
-
|
|
720
|
-
}), Te(this, "ordered", void 0), Te(this, "items", void 0);
|
|
721
|
-
const [t, r] = this.useState("ordered", !1);
|
|
718
|
+
super(), ge(this, "ordered", void 0), ge(this, "items", void 0);
|
|
719
|
+
const [e, r] = this.useState("ordered", !1);
|
|
722
720
|
Object.defineProperty(this, "ordered", {
|
|
723
|
-
get:
|
|
721
|
+
get: e,
|
|
724
722
|
set: r,
|
|
725
723
|
enumerable: !0,
|
|
726
724
|
configurable: !0
|
|
727
725
|
});
|
|
728
|
-
let
|
|
726
|
+
let f = this.reactive([]);
|
|
729
727
|
Object.defineProperty(this, "items", {
|
|
730
|
-
get: () =>
|
|
731
|
-
set: (
|
|
732
|
-
|
|
728
|
+
get: () => f,
|
|
729
|
+
set: (O) => {
|
|
730
|
+
f = O !== null && typeof O < "u" && (Array.isArray(O) || typeof O == "object") ? this.reactive(O) : O, this.scheduleRerender();
|
|
733
731
|
},
|
|
734
732
|
enumerable: !0,
|
|
735
733
|
configurable: !0
|
|
736
734
|
});
|
|
737
735
|
}
|
|
738
|
-
static get observedAttributes() {
|
|
739
|
-
return ["ordered", "items"];
|
|
740
|
-
}
|
|
741
|
-
attributeChangedCallback(t, r, l) {
|
|
742
|
-
if (t === "ordered")
|
|
743
|
-
this.ordered = l === "true";
|
|
744
|
-
else if (t === "items")
|
|
745
|
-
try {
|
|
746
|
-
this.items = JSON.parse(l || "[]");
|
|
747
|
-
} catch {
|
|
748
|
-
this.items = [];
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
736
|
render() {
|
|
752
|
-
return this.ordered ? /* @__PURE__ */
|
|
737
|
+
return this.ordered ? /* @__PURE__ */ D("ol", { class: "marked-list" }, this.items.map((e, r) => /* @__PURE__ */ D("li", { key: r, class: "marked-list-item" }, e))) : /* @__PURE__ */ D("ul", { class: "marked-list" }, this.items.map((e, r) => /* @__PURE__ */ D("li", { key: r, class: "marked-list-item" }, e)));
|
|
753
738
|
}
|
|
754
739
|
}
|
|
755
|
-
|
|
756
|
-
[
|
|
757
|
-
|
|
758
|
-
var
|
|
759
|
-
let
|
|
760
|
-
function
|
|
761
|
-
return (
|
|
740
|
+
Re = xt;
|
|
741
|
+
[kt, Me] = yt(Re, [], De, 0, void 0, F).c;
|
|
742
|
+
Me();
|
|
743
|
+
var Ne;
|
|
744
|
+
let He, qe;
|
|
745
|
+
function Tt(t, e, r) {
|
|
746
|
+
return (e = Pe(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
762
747
|
}
|
|
763
|
-
function
|
|
764
|
-
function
|
|
765
|
-
return function(
|
|
766
|
-
return
|
|
748
|
+
function wt(t, e, r, f, O, q) {
|
|
749
|
+
function w(o, a, l) {
|
|
750
|
+
return function(n, s) {
|
|
751
|
+
return l && l(n), o[a].call(n, s);
|
|
767
752
|
};
|
|
768
753
|
}
|
|
769
|
-
function
|
|
770
|
-
for (var
|
|
771
|
-
return
|
|
754
|
+
function N(o, a) {
|
|
755
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
756
|
+
return a;
|
|
772
757
|
}
|
|
773
|
-
function
|
|
774
|
-
if (typeof
|
|
775
|
-
return
|
|
758
|
+
function E(o, a, l, n) {
|
|
759
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
760
|
+
return o;
|
|
776
761
|
}
|
|
777
|
-
function
|
|
778
|
-
function
|
|
779
|
-
if (!
|
|
762
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
763
|
+
function p(u) {
|
|
764
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
780
765
|
}
|
|
781
|
-
var
|
|
782
|
-
if (!
|
|
783
|
-
|
|
784
|
-
var i = {},
|
|
785
|
-
|
|
786
|
-
return
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
} } : i[
|
|
766
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
767
|
+
if (!L) {
|
|
768
|
+
l || Array.isArray(v) || (v = [v]);
|
|
769
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
770
|
+
b ? (y || g ? i = { get: he(function() {
|
|
771
|
+
return k(this);
|
|
772
|
+
}, n, "get"), set: function(u) {
|
|
773
|
+
a[4](this, u);
|
|
774
|
+
} } : i[h] = k, y || he(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
790
775
|
}
|
|
791
|
-
for (var d =
|
|
792
|
-
var K =
|
|
793
|
-
if (u.v) throw
|
|
794
|
-
|
|
795
|
-
}).bind(null,
|
|
776
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
777
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
778
|
+
if (u.v) throw ne("attempted to call addInitializer after decoration was finished");
|
|
779
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
780
|
+
}).bind(null, W) };
|
|
796
781
|
try {
|
|
797
|
-
if (
|
|
782
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
798
783
|
else {
|
|
799
|
-
var I,
|
|
800
|
-
|
|
801
|
-
return
|
|
802
|
-
} : (s < 4 && (I =
|
|
803
|
-
return u[
|
|
804
|
-
}, (s < 2 || s === 4) && (
|
|
805
|
-
u[
|
|
784
|
+
var I, M;
|
|
785
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
786
|
+
return p(u), i.value;
|
|
787
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
788
|
+
return u[n];
|
|
789
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
790
|
+
u[n] = T;
|
|
806
791
|
}));
|
|
807
|
-
var G =
|
|
808
|
-
return
|
|
792
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
793
|
+
return n in u;
|
|
809
794
|
} };
|
|
810
|
-
if (I && (G.get = I),
|
|
811
|
-
if (typeof d == "object" && d) (
|
|
795
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
796
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
812
797
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
813
|
-
} else
|
|
798
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
814
799
|
}
|
|
815
800
|
} finally {
|
|
816
|
-
|
|
801
|
+
W.v = !0;
|
|
817
802
|
}
|
|
818
803
|
}
|
|
819
|
-
return (y ||
|
|
820
|
-
for (var
|
|
821
|
-
return
|
|
822
|
-
}), y ||
|
|
823
|
-
}
|
|
824
|
-
function
|
|
825
|
-
return Object.defineProperty(
|
|
826
|
-
}
|
|
827
|
-
if (arguments.length >= 6) var
|
|
828
|
-
var
|
|
829
|
-
var s,
|
|
830
|
-
return
|
|
831
|
-
},
|
|
832
|
-
function
|
|
833
|
-
|
|
804
|
+
return (y || g) && _.push(function(u, T) {
|
|
805
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
806
|
+
return T;
|
|
807
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
808
|
+
}
|
|
809
|
+
function H(o, a) {
|
|
810
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
811
|
+
}
|
|
812
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
813
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
814
|
+
var s, $, j = [], _ = function(h) {
|
|
815
|
+
return Et(h) === o;
|
|
816
|
+
}, A = /* @__PURE__ */ new Map();
|
|
817
|
+
function b(h) {
|
|
818
|
+
h && j.push(N.bind(null, h));
|
|
834
819
|
}
|
|
835
|
-
for (var y = 0; y <
|
|
836
|
-
var
|
|
837
|
-
if (Array.isArray(
|
|
838
|
-
var
|
|
839
|
-
if (!
|
|
840
|
-
var
|
|
841
|
-
if (
|
|
842
|
-
|
|
820
|
+
for (var y = 0; y < a.length; y++) {
|
|
821
|
+
var g = a[y];
|
|
822
|
+
if (Array.isArray(g)) {
|
|
823
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
824
|
+
if (!L && !c) {
|
|
825
|
+
var x = A.get(i);
|
|
826
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw ne("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
827
|
+
A.set(i, !(m > 2) || m);
|
|
843
828
|
}
|
|
844
|
-
|
|
829
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : Pe(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
845
830
|
}
|
|
846
831
|
}
|
|
847
|
-
return
|
|
848
|
-
}(
|
|
849
|
-
return r.length ||
|
|
850
|
-
var
|
|
851
|
-
return r.length && [
|
|
832
|
+
return b(s), b($), j;
|
|
833
|
+
}(t, e, O, C);
|
|
834
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
835
|
+
var o = [];
|
|
836
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
852
837
|
} };
|
|
853
838
|
}
|
|
854
|
-
function
|
|
855
|
-
var
|
|
856
|
-
return typeof
|
|
839
|
+
function Pe(t) {
|
|
840
|
+
var e = _t(t, "string");
|
|
841
|
+
return typeof e == "symbol" ? e : e + "";
|
|
857
842
|
}
|
|
858
|
-
function
|
|
859
|
-
if (typeof
|
|
860
|
-
var r =
|
|
843
|
+
function _t(t, e) {
|
|
844
|
+
if (typeof t != "object" || !t) return t;
|
|
845
|
+
var r = t[Symbol.toPrimitive];
|
|
861
846
|
if (r !== void 0) {
|
|
862
|
-
var
|
|
863
|
-
if (typeof
|
|
847
|
+
var f = r.call(t, e);
|
|
848
|
+
if (typeof f != "object") return f;
|
|
864
849
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
865
850
|
}
|
|
866
|
-
return String(
|
|
851
|
+
return String(t);
|
|
867
852
|
}
|
|
868
|
-
function
|
|
869
|
-
typeof
|
|
853
|
+
function he(t, e, r) {
|
|
854
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
870
855
|
try {
|
|
871
|
-
Object.defineProperty(
|
|
856
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
872
857
|
} catch {
|
|
873
858
|
}
|
|
874
|
-
return
|
|
859
|
+
return t;
|
|
875
860
|
}
|
|
876
|
-
function
|
|
877
|
-
if (Object(
|
|
878
|
-
return
|
|
861
|
+
function Et(t) {
|
|
862
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
863
|
+
return t;
|
|
879
864
|
}
|
|
880
|
-
|
|
865
|
+
qe = [J({
|
|
881
866
|
tagName: "wsx-marked-error"
|
|
882
867
|
})];
|
|
883
|
-
let
|
|
868
|
+
let Lt, ne = class extends F {
|
|
884
869
|
constructor() {
|
|
885
870
|
super({
|
|
886
871
|
styleName: "wsx-marked-error"
|
|
887
|
-
}),
|
|
872
|
+
}), Tt(this, "message", "");
|
|
888
873
|
}
|
|
889
874
|
static get observedAttributes() {
|
|
890
875
|
return ["message"];
|
|
891
876
|
}
|
|
892
|
-
attributeChangedCallback(
|
|
893
|
-
|
|
877
|
+
attributeChangedCallback(e, r, f) {
|
|
878
|
+
e === "message" && (this.message = f || "", this.rerender());
|
|
894
879
|
}
|
|
895
880
|
render() {
|
|
896
|
-
return /* @__PURE__ */
|
|
881
|
+
return /* @__PURE__ */ D("div", { class: "error" }, this.message);
|
|
897
882
|
}
|
|
898
883
|
};
|
|
899
|
-
|
|
900
|
-
[
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
for (var m = "", O = 1 - v, $ = -1, N = e && e.length || 0, L = 0; L < N; ) {
|
|
930
|
-
if (e.charCodeAt(L) === 37 && L + 1 < N) {
|
|
931
|
-
switch ($ = $ > -1 ? $ : 0, e.charCodeAt(L + 1)) {
|
|
932
|
-
case 100:
|
|
933
|
-
// 'd'
|
|
934
|
-
case 102:
|
|
935
|
-
if (O >= g || t[O] == null) break;
|
|
936
|
-
$ < L && (m += e.slice($, L)), m += Number(t[O]), $ = L + 2, L++;
|
|
937
|
-
break;
|
|
938
|
-
case 105:
|
|
939
|
-
if (O >= g || t[O] == null) break;
|
|
940
|
-
$ < L && (m += e.slice($, L)), m += Math.floor(Number(t[O])), $ = L + 2, L++;
|
|
941
|
-
break;
|
|
942
|
-
case 79:
|
|
943
|
-
// 'O'
|
|
944
|
-
case 111:
|
|
945
|
-
// 'o'
|
|
946
|
-
case 106:
|
|
947
|
-
if (O >= g || t[O] === void 0) break;
|
|
948
|
-
$ < L && (m += e.slice($, L));
|
|
949
|
-
var n = typeof t[O];
|
|
950
|
-
if (n === "string") {
|
|
951
|
-
m += "'" + t[O] + "'", $ = L + 2, L++;
|
|
952
|
-
break;
|
|
953
|
-
}
|
|
954
|
-
if (n === "function") {
|
|
955
|
-
m += t[O].name || "<anonymous>", $ = L + 2, L++;
|
|
956
|
-
break;
|
|
957
|
-
}
|
|
958
|
-
m += l(t[O]), $ = L + 2, L++;
|
|
959
|
-
break;
|
|
960
|
-
case 115:
|
|
961
|
-
if (O >= g)
|
|
962
|
-
break;
|
|
963
|
-
$ < L && (m += e.slice($, L)), m += String(t[O]), $ = L + 2, L++;
|
|
964
|
-
break;
|
|
965
|
-
case 37:
|
|
966
|
-
$ < L && (m += e.slice($, L)), m += "%", $ = L + 2, L++, O--;
|
|
967
|
-
break;
|
|
884
|
+
Ne = ne;
|
|
885
|
+
[Lt, He] = wt(Ne, [], qe, 0, void 0, F).c;
|
|
886
|
+
He();
|
|
887
|
+
var jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
888
|
+
function $t(t) {
|
|
889
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
890
|
+
}
|
|
891
|
+
var Ue = { exports: {} };
|
|
892
|
+
(function(t) {
|
|
893
|
+
(function(e, r) {
|
|
894
|
+
t.exports ? t.exports = r() : e.log = r();
|
|
895
|
+
})(jt, function() {
|
|
896
|
+
var e = function() {
|
|
897
|
+
}, r = "undefined", f = typeof window !== r && typeof window.navigator !== r && /Trident\/|MSIE /.test(window.navigator.userAgent), O = [
|
|
898
|
+
"trace",
|
|
899
|
+
"debug",
|
|
900
|
+
"info",
|
|
901
|
+
"warn",
|
|
902
|
+
"error"
|
|
903
|
+
], q = {}, w = null;
|
|
904
|
+
function N(a, l) {
|
|
905
|
+
var n = a[l];
|
|
906
|
+
if (typeof n.bind == "function")
|
|
907
|
+
return n.bind(a);
|
|
908
|
+
try {
|
|
909
|
+
return Function.prototype.bind.call(n, a);
|
|
910
|
+
} catch {
|
|
911
|
+
return function() {
|
|
912
|
+
return Function.prototype.apply.apply(n, [a, arguments]);
|
|
913
|
+
};
|
|
968
914
|
}
|
|
969
|
-
++O;
|
|
970
915
|
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
return $ === -1 ? e : ($ < N && (m += e.slice($)), m);
|
|
974
|
-
}
|
|
975
|
-
const Se = Wt;
|
|
976
|
-
ae.exports = X;
|
|
977
|
-
const te = sr().console || {}, Gt = {
|
|
978
|
-
mapHttpRequest: re,
|
|
979
|
-
mapHttpResponse: re,
|
|
980
|
-
wrapRequestSerializer: ce,
|
|
981
|
-
wrapResponseSerializer: ce,
|
|
982
|
-
wrapErrorSerializer: ce,
|
|
983
|
-
req: re,
|
|
984
|
-
res: re,
|
|
985
|
-
err: ze,
|
|
986
|
-
errWithCause: ze
|
|
987
|
-
};
|
|
988
|
-
function U(e, t) {
|
|
989
|
-
return e === "silent" ? 1 / 0 : t.levels.values[e];
|
|
990
|
-
}
|
|
991
|
-
const pe = Symbol("pino.logFuncs"), me = Symbol("pino.hierarchy"), Jt = {
|
|
992
|
-
error: "log",
|
|
993
|
-
fatal: "error",
|
|
994
|
-
warn: "error",
|
|
995
|
-
info: "log",
|
|
996
|
-
debug: "log",
|
|
997
|
-
trace: "log"
|
|
998
|
-
};
|
|
999
|
-
function $e(e, t) {
|
|
1000
|
-
const r = {
|
|
1001
|
-
logger: t,
|
|
1002
|
-
parent: e[me]
|
|
1003
|
-
};
|
|
1004
|
-
t[me] = r;
|
|
1005
|
-
}
|
|
1006
|
-
function Xt(e, t, r) {
|
|
1007
|
-
const l = {};
|
|
1008
|
-
t.forEach((v) => {
|
|
1009
|
-
l[v] = r[v] ? r[v] : te[v] || te[Jt[v] || "log"] || Z;
|
|
1010
|
-
}), e[pe] = l;
|
|
1011
|
-
}
|
|
1012
|
-
function Ut(e, t) {
|
|
1013
|
-
return Array.isArray(e) ? e.filter(function(l) {
|
|
1014
|
-
return l !== "!stdSerializers.err";
|
|
1015
|
-
}) : e === !0 ? Object.keys(t) : !1;
|
|
1016
|
-
}
|
|
1017
|
-
function X(e) {
|
|
1018
|
-
e = e || {}, e.browser = e.browser || {};
|
|
1019
|
-
const t = e.browser.transmit;
|
|
1020
|
-
if (t && typeof t.send != "function")
|
|
1021
|
-
throw Error("pino: transmit option must have a send function");
|
|
1022
|
-
const r = e.browser.write || te;
|
|
1023
|
-
e.browser.write && (e.browser.asObject = !0);
|
|
1024
|
-
const l = e.serializers || {}, v = Ut(e.browser.serialize, l);
|
|
1025
|
-
let R = e.browser.serialize;
|
|
1026
|
-
Array.isArray(e.browser.serialize) && e.browser.serialize.indexOf("!stdSerializers.err") > -1 && (R = !1);
|
|
1027
|
-
const j = Object.keys(e.customLevels || {}), S = ["error", "fatal", "warn", "info", "debug", "trace"].concat(j);
|
|
1028
|
-
typeof r == "function" && S.forEach(function(o) {
|
|
1029
|
-
r[o] = r;
|
|
1030
|
-
}), (e.enabled === !1 || e.browser.disabled) && (e.level = "silent");
|
|
1031
|
-
const g = e.level || "info", m = Object.create(r);
|
|
1032
|
-
m.log || (m.log = Z), Xt(m, S, r), $e({}, m), Object.defineProperty(m, "levelVal", {
|
|
1033
|
-
get: $
|
|
1034
|
-
}), Object.defineProperty(m, "level", {
|
|
1035
|
-
get: N,
|
|
1036
|
-
set: L
|
|
1037
|
-
});
|
|
1038
|
-
const O = {
|
|
1039
|
-
transmit: t,
|
|
1040
|
-
serialize: v,
|
|
1041
|
-
asObject: e.browser.asObject,
|
|
1042
|
-
asObjectBindingsOnly: e.browser.asObjectBindingsOnly,
|
|
1043
|
-
formatters: e.browser.formatters,
|
|
1044
|
-
levels: S,
|
|
1045
|
-
timestamp: ir(e),
|
|
1046
|
-
messageKey: e.messageKey || "msg",
|
|
1047
|
-
onChild: e.onChild || Z
|
|
1048
|
-
};
|
|
1049
|
-
m.levels = Qt(e), m.level = g, m.isLevelEnabled = function(o) {
|
|
1050
|
-
return this.levels.values[o] ? this.levels.values[o] >= this.levels.values[this.level] : !1;
|
|
1051
|
-
}, m.setMaxListeners = m.getMaxListeners = m.emit = m.addListener = m.on = m.prependListener = m.once = m.prependOnceListener = m.removeListener = m.removeAllListeners = m.listeners = m.listenerCount = m.eventNames = m.write = m.flush = Z, m.serializers = l, m._serialize = v, m._stdErrSerialize = R, m.child = function(...o) {
|
|
1052
|
-
return n.call(this, O, ...o);
|
|
1053
|
-
}, t && (m._logEvent = he());
|
|
1054
|
-
function $() {
|
|
1055
|
-
return U(this.level, this);
|
|
1056
|
-
}
|
|
1057
|
-
function N() {
|
|
1058
|
-
return this._level;
|
|
1059
|
-
}
|
|
1060
|
-
function L(o) {
|
|
1061
|
-
if (o !== "silent" && !this.levels.values[o])
|
|
1062
|
-
throw Error("unknown level " + o);
|
|
1063
|
-
this._level = o, Q(this, O, m, "error"), Q(this, O, m, "fatal"), Q(this, O, m, "warn"), Q(this, O, m, "info"), Q(this, O, m, "debug"), Q(this, O, m, "trace"), j.forEach((c) => {
|
|
1064
|
-
Q(this, O, m, c);
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
function n(o, c, a) {
|
|
1068
|
-
if (!c)
|
|
1069
|
-
throw new Error("missing bindings for child Pino");
|
|
1070
|
-
a = a || {}, v && c.serializers && (a.serializers = c.serializers);
|
|
1071
|
-
const s = a.serializers;
|
|
1072
|
-
if (v && s) {
|
|
1073
|
-
var A = Object.assign({}, l, s), D = e.browser.serialize === !0 ? Object.keys(A) : v;
|
|
1074
|
-
delete c.serializers, be([c], D, A, this._stdErrSerialize);
|
|
916
|
+
function E() {
|
|
917
|
+
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
1075
918
|
}
|
|
1076
|
-
function
|
|
1077
|
-
|
|
1078
|
-
[].concat(k._logEvent.bindings, c)
|
|
1079
|
-
));
|
|
919
|
+
function P(a) {
|
|
920
|
+
return a === "debug" && (a = "log"), typeof console === r ? !1 : a === "trace" && f ? E : console[a] !== void 0 ? N(console, a) : console.log !== void 0 ? N(console, "log") : e;
|
|
1080
921
|
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
}, H.level = a.level || this.level, o.onChild(H), H;
|
|
1086
|
-
}
|
|
1087
|
-
return m;
|
|
1088
|
-
}
|
|
1089
|
-
function Qt(e) {
|
|
1090
|
-
const t = e.customLevels || {}, r = Object.assign({}, X.levels.values, t), l = Object.assign({}, X.levels.labels, Yt(t));
|
|
1091
|
-
return {
|
|
1092
|
-
values: r,
|
|
1093
|
-
labels: l
|
|
1094
|
-
};
|
|
1095
|
-
}
|
|
1096
|
-
function Yt(e) {
|
|
1097
|
-
const t = {};
|
|
1098
|
-
return Object.keys(e).forEach(function(r) {
|
|
1099
|
-
t[e[r]] = r;
|
|
1100
|
-
}), t;
|
|
1101
|
-
}
|
|
1102
|
-
X.levels = {
|
|
1103
|
-
values: {
|
|
1104
|
-
fatal: 60,
|
|
1105
|
-
error: 50,
|
|
1106
|
-
warn: 40,
|
|
1107
|
-
info: 30,
|
|
1108
|
-
debug: 20,
|
|
1109
|
-
trace: 10
|
|
1110
|
-
},
|
|
1111
|
-
labels: {
|
|
1112
|
-
10: "trace",
|
|
1113
|
-
20: "debug",
|
|
1114
|
-
30: "info",
|
|
1115
|
-
40: "warn",
|
|
1116
|
-
50: "error",
|
|
1117
|
-
60: "fatal"
|
|
1118
|
-
}
|
|
1119
|
-
};
|
|
1120
|
-
X.stdSerializers = Gt;
|
|
1121
|
-
X.stdTimeFunctions = Object.assign({}, { nullTime: it, epochTime: ot, unixTime: or, isoTime: ar });
|
|
1122
|
-
function Zt(e) {
|
|
1123
|
-
const t = [];
|
|
1124
|
-
e.bindings && t.push(e.bindings);
|
|
1125
|
-
let r = e[me];
|
|
1126
|
-
for (; r.parent; )
|
|
1127
|
-
r = r.parent, r.logger.bindings && t.push(r.logger.bindings);
|
|
1128
|
-
return t.reverse();
|
|
1129
|
-
}
|
|
1130
|
-
function Q(e, t, r, l) {
|
|
1131
|
-
if (Object.defineProperty(e, l, {
|
|
1132
|
-
value: U(e.level, r) > U(l, r) ? Z : r[pe][l],
|
|
1133
|
-
writable: !0,
|
|
1134
|
-
enumerable: !0,
|
|
1135
|
-
configurable: !0
|
|
1136
|
-
}), e[l] === Z) {
|
|
1137
|
-
if (!t.transmit) return;
|
|
1138
|
-
const R = t.transmit.level || e.level, j = U(R, r);
|
|
1139
|
-
if (U(l, r) < j) return;
|
|
1140
|
-
}
|
|
1141
|
-
e[l] = tr(e, t, r, l);
|
|
1142
|
-
const v = Zt(e);
|
|
1143
|
-
v.length !== 0 && (e[l] = er(v, e[l]));
|
|
1144
|
-
}
|
|
1145
|
-
function er(e, t) {
|
|
1146
|
-
return function() {
|
|
1147
|
-
return t.apply(this, [...e, ...arguments]);
|
|
1148
|
-
};
|
|
1149
|
-
}
|
|
1150
|
-
function tr(e, t, r, l) {
|
|
1151
|
-
return /* @__PURE__ */ function(v) {
|
|
1152
|
-
return function() {
|
|
1153
|
-
const j = t.timestamp(), S = new Array(arguments.length), g = Object.getPrototypeOf && Object.getPrototypeOf(this) === te ? te : this;
|
|
1154
|
-
for (var m = 0; m < S.length; m++) S[m] = arguments[m];
|
|
1155
|
-
var O = !1;
|
|
1156
|
-
if (t.serialize && (be(S, this._serialize, this.serializers, this._stdErrSerialize), O = !0), t.asObject || t.formatters ? v.call(g, ...rr(this, l, S, j, t)) : v.apply(g, S), t.transmit) {
|
|
1157
|
-
const $ = t.transmit.level || e._level, N = U($, r), L = U(l, r);
|
|
1158
|
-
if (L < N) return;
|
|
1159
|
-
nr(this, {
|
|
1160
|
-
ts: j,
|
|
1161
|
-
methodLevel: l,
|
|
1162
|
-
methodValue: L,
|
|
1163
|
-
transmitValue: r.levels.values[t.transmit.level || e._level],
|
|
1164
|
-
send: t.transmit.send,
|
|
1165
|
-
val: U(e._level, r)
|
|
1166
|
-
}, S, O);
|
|
922
|
+
function H() {
|
|
923
|
+
for (var a = this.getLevel(), l = 0; l < O.length; l++) {
|
|
924
|
+
var n = O[l];
|
|
925
|
+
this[n] = l < a ? e : this.methodFactory(n, a, this.name);
|
|
1167
926
|
}
|
|
927
|
+
if (this.log = this.debug, typeof console === r && a < this.levels.SILENT)
|
|
928
|
+
return "No console available for logging";
|
|
929
|
+
}
|
|
930
|
+
function U(a) {
|
|
931
|
+
return function() {
|
|
932
|
+
typeof console !== r && (H.call(this), this[a].apply(this, arguments));
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
function C(a, l, n) {
|
|
936
|
+
return P(a) || U.apply(this, arguments);
|
|
937
|
+
}
|
|
938
|
+
function X(a, l) {
|
|
939
|
+
var n = this, s, $, j, _ = "loglevel";
|
|
940
|
+
typeof a == "string" ? _ += ":" + a : typeof a == "symbol" && (_ = void 0);
|
|
941
|
+
function A(p) {
|
|
942
|
+
var c = (O[p] || "silent").toUpperCase();
|
|
943
|
+
if (!(typeof window === r || !_)) {
|
|
944
|
+
try {
|
|
945
|
+
window.localStorage[_] = c;
|
|
946
|
+
return;
|
|
947
|
+
} catch {
|
|
948
|
+
}
|
|
949
|
+
try {
|
|
950
|
+
window.document.cookie = encodeURIComponent(_) + "=" + c + ";";
|
|
951
|
+
} catch {
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
function b() {
|
|
956
|
+
var p;
|
|
957
|
+
if (!(typeof window === r || !_)) {
|
|
958
|
+
try {
|
|
959
|
+
p = window.localStorage[_];
|
|
960
|
+
} catch {
|
|
961
|
+
}
|
|
962
|
+
if (typeof p === r)
|
|
963
|
+
try {
|
|
964
|
+
var c = window.document.cookie, v = encodeURIComponent(_), k = c.indexOf(v + "=");
|
|
965
|
+
k !== -1 && (p = /^([^;]+)/.exec(
|
|
966
|
+
c.slice(k + v.length + 1)
|
|
967
|
+
)[1]);
|
|
968
|
+
} catch {
|
|
969
|
+
}
|
|
970
|
+
return n.levels[p] === void 0 && (p = void 0), p;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
function y() {
|
|
974
|
+
if (!(typeof window === r || !_)) {
|
|
975
|
+
try {
|
|
976
|
+
window.localStorage.removeItem(_);
|
|
977
|
+
} catch {
|
|
978
|
+
}
|
|
979
|
+
try {
|
|
980
|
+
window.document.cookie = encodeURIComponent(_) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
981
|
+
} catch {
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
function g(p) {
|
|
986
|
+
var c = p;
|
|
987
|
+
if (typeof c == "string" && n.levels[c.toUpperCase()] !== void 0 && (c = n.levels[c.toUpperCase()]), typeof c == "number" && c >= 0 && c <= n.levels.SILENT)
|
|
988
|
+
return c;
|
|
989
|
+
throw new TypeError("log.setLevel() called with invalid level: " + p);
|
|
990
|
+
}
|
|
991
|
+
n.name = a, n.levels = {
|
|
992
|
+
TRACE: 0,
|
|
993
|
+
DEBUG: 1,
|
|
994
|
+
INFO: 2,
|
|
995
|
+
WARN: 3,
|
|
996
|
+
ERROR: 4,
|
|
997
|
+
SILENT: 5
|
|
998
|
+
}, n.methodFactory = l || C, n.getLevel = function() {
|
|
999
|
+
return j ?? $ ?? s;
|
|
1000
|
+
}, n.setLevel = function(p, c) {
|
|
1001
|
+
return j = g(p), c !== !1 && A(j), H.call(n);
|
|
1002
|
+
}, n.setDefaultLevel = function(p) {
|
|
1003
|
+
$ = g(p), b() || n.setLevel(p, !1);
|
|
1004
|
+
}, n.resetLevel = function() {
|
|
1005
|
+
j = null, y(), H.call(n);
|
|
1006
|
+
}, n.enableAll = function(p) {
|
|
1007
|
+
n.setLevel(n.levels.TRACE, p);
|
|
1008
|
+
}, n.disableAll = function(p) {
|
|
1009
|
+
n.setLevel(n.levels.SILENT, p);
|
|
1010
|
+
}, n.rebuild = function() {
|
|
1011
|
+
if (w !== n && (s = g(w.getLevel())), H.call(n), w === n)
|
|
1012
|
+
for (var p in q)
|
|
1013
|
+
q[p].rebuild();
|
|
1014
|
+
}, s = g(
|
|
1015
|
+
w ? w.getLevel() : "WARN"
|
|
1016
|
+
);
|
|
1017
|
+
var m = b();
|
|
1018
|
+
m != null && (j = g(m)), H.call(n);
|
|
1019
|
+
}
|
|
1020
|
+
w = new X(), w.getLogger = function(l) {
|
|
1021
|
+
if (typeof l != "symbol" && typeof l != "string" || l === "")
|
|
1022
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
1023
|
+
var n = q[l];
|
|
1024
|
+
return n || (n = q[l] = new X(
|
|
1025
|
+
l,
|
|
1026
|
+
w.methodFactory
|
|
1027
|
+
)), n;
|
|
1168
1028
|
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}
|
|
1198
|
-
function be(e, t, r, l) {
|
|
1199
|
-
for (const v in e)
|
|
1200
|
-
if (l && e[v] instanceof Error)
|
|
1201
|
-
e[v] = X.stdSerializers.err(e[v]);
|
|
1202
|
-
else if (typeof e[v] == "object" && !Array.isArray(e[v]) && t)
|
|
1203
|
-
for (const R in e[v])
|
|
1204
|
-
t.indexOf(R) > -1 && R in r && (e[v][R] = r[R](e[v][R]));
|
|
1205
|
-
}
|
|
1206
|
-
function nr(e, t, r, l = !1) {
|
|
1207
|
-
const v = t.send, R = t.ts, j = t.methodLevel, S = t.methodValue, g = t.val, m = e._logEvent.bindings;
|
|
1208
|
-
l || be(
|
|
1209
|
-
r,
|
|
1210
|
-
e._serialize || Object.keys(e.serializers),
|
|
1211
|
-
e.serializers,
|
|
1212
|
-
e._stdErrSerialize === void 0 ? !0 : e._stdErrSerialize
|
|
1213
|
-
), e._logEvent.ts = R, e._logEvent.messages = r.filter(function(O) {
|
|
1214
|
-
return m.indexOf(O) === -1;
|
|
1215
|
-
}), e._logEvent.level.label = j, e._logEvent.level.value = S, v(j, e._logEvent, g), e._logEvent = he(m);
|
|
1216
|
-
}
|
|
1217
|
-
function he(e) {
|
|
1218
|
-
return {
|
|
1219
|
-
ts: 0,
|
|
1220
|
-
messages: [],
|
|
1221
|
-
bindings: e || [],
|
|
1222
|
-
level: { label: "", value: 0 }
|
|
1223
|
-
};
|
|
1224
|
-
}
|
|
1225
|
-
function ze(e) {
|
|
1226
|
-
const t = {
|
|
1227
|
-
type: e.constructor.name,
|
|
1228
|
-
msg: e.message,
|
|
1229
|
-
stack: e.stack
|
|
1230
|
-
};
|
|
1231
|
-
for (const r in e)
|
|
1232
|
-
t[r] === void 0 && (t[r] = e[r]);
|
|
1233
|
-
return t;
|
|
1234
|
-
}
|
|
1235
|
-
function ir(e) {
|
|
1236
|
-
return typeof e.timestamp == "function" ? e.timestamp : e.timestamp === !1 ? it : ot;
|
|
1237
|
-
}
|
|
1238
|
-
function re() {
|
|
1239
|
-
return {};
|
|
1240
|
-
}
|
|
1241
|
-
function ce(e) {
|
|
1242
|
-
return e;
|
|
1243
|
-
}
|
|
1244
|
-
function Z() {
|
|
1245
|
-
}
|
|
1246
|
-
function it() {
|
|
1247
|
-
return !1;
|
|
1248
|
-
}
|
|
1249
|
-
function ot() {
|
|
1250
|
-
return Date.now();
|
|
1251
|
-
}
|
|
1252
|
-
function or() {
|
|
1253
|
-
return Math.round(Date.now() / 1e3);
|
|
1254
|
-
}
|
|
1255
|
-
function ar() {
|
|
1256
|
-
return new Date(Date.now()).toISOString();
|
|
1257
|
-
}
|
|
1258
|
-
function sr() {
|
|
1259
|
-
function e(t) {
|
|
1260
|
-
return typeof t < "u" && t;
|
|
1261
|
-
}
|
|
1029
|
+
var o = typeof window !== r ? window.log : void 0;
|
|
1030
|
+
return w.noConflict = function() {
|
|
1031
|
+
return typeof window !== r && window.log === w && (window.log = o), w;
|
|
1032
|
+
}, w.getLoggers = function() {
|
|
1033
|
+
return q;
|
|
1034
|
+
}, w.default = w, w;
|
|
1035
|
+
});
|
|
1036
|
+
})(Ue);
|
|
1037
|
+
var St = Ue.exports;
|
|
1038
|
+
const It = /* @__PURE__ */ $t(St), Ke = {
|
|
1039
|
+
trace: "trace",
|
|
1040
|
+
debug: "debug",
|
|
1041
|
+
info: "info",
|
|
1042
|
+
warn: "warn",
|
|
1043
|
+
error: "error",
|
|
1044
|
+
silent: "silent"
|
|
1045
|
+
}, Ot = {
|
|
1046
|
+
0: "trace",
|
|
1047
|
+
1: "debug",
|
|
1048
|
+
2: "info",
|
|
1049
|
+
3: "warn",
|
|
1050
|
+
4: "error",
|
|
1051
|
+
5: "silent"
|
|
1052
|
+
};
|
|
1053
|
+
function oe() {
|
|
1054
|
+
var t, e;
|
|
1055
|
+
if (typeof process < "u")
|
|
1056
|
+
return process.env.NODE_ENV === "production" || process.env.MODE === "production";
|
|
1262
1057
|
try {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
}), globalThis;
|
|
1058
|
+
const r = globalThis;
|
|
1059
|
+
if ((e = (t = r.import) == null ? void 0 : t.meta) != null && e.env) {
|
|
1060
|
+
const f = r.import.meta.env;
|
|
1061
|
+
return f.MODE === "production" || f.PROD === !0;
|
|
1062
|
+
}
|
|
1269
1063
|
} catch {
|
|
1270
|
-
return e(self) || e(window) || e(this) || {};
|
|
1271
1064
|
}
|
|
1065
|
+
return !1;
|
|
1272
1066
|
}
|
|
1273
|
-
|
|
1274
|
-
ae.exports.pino = X;
|
|
1275
|
-
var lr = ae.exports;
|
|
1276
|
-
const ne = /* @__PURE__ */ Vt(lr);
|
|
1277
|
-
function oe() {
|
|
1278
|
-
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
1279
|
-
}
|
|
1280
|
-
function cr() {
|
|
1281
|
-
var e;
|
|
1282
|
-
return typeof process < "u" && ((e = process.versions) == null ? void 0 : e.node) !== void 0;
|
|
1283
|
-
}
|
|
1284
|
-
function ur() {
|
|
1285
|
-
return typeof window < "u" && typeof document < "u";
|
|
1286
|
-
}
|
|
1287
|
-
const ue = {
|
|
1067
|
+
const Q = {
|
|
1288
1068
|
name: "WSX",
|
|
1289
1069
|
level: oe() ? "info" : "debug",
|
|
1290
1070
|
pretty: !oe()
|
|
1291
1071
|
};
|
|
1292
|
-
function
|
|
1293
|
-
const { name:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
};
|
|
1298
|
-
if (ur() && (R.browser = {
|
|
1299
|
-
asObject: !1,
|
|
1300
|
-
// Use console methods directly (default behavior)
|
|
1301
|
-
write: void 0,
|
|
1302
|
-
// Use default console write
|
|
1303
|
-
...(v == null ? void 0 : v.browser) || {}
|
|
1304
|
-
// Allow override via pinoOptions
|
|
1305
|
-
}), l && cr() && !oe())
|
|
1306
|
-
try {
|
|
1307
|
-
return ne(
|
|
1308
|
-
R,
|
|
1309
|
-
ne.transport({
|
|
1310
|
-
target: "pino-pretty",
|
|
1311
|
-
options: {
|
|
1312
|
-
colorize: !0,
|
|
1313
|
-
translateTime: "HH:MM:ss.l",
|
|
1314
|
-
ignore: "pid,hostname",
|
|
1315
|
-
singleLine: !1
|
|
1316
|
-
}
|
|
1317
|
-
})
|
|
1318
|
-
);
|
|
1319
|
-
} catch {
|
|
1320
|
-
return console.warn("[wsx-logger] pino-pretty not available, using default formatter"), ne(R);
|
|
1321
|
-
}
|
|
1322
|
-
return ne(R);
|
|
1072
|
+
function Ct(t = {}) {
|
|
1073
|
+
const { name: e, level: r } = { ...Q, ...t }, f = e || Q.name, O = It.getLogger(f), q = r || Q.level;
|
|
1074
|
+
return O.setLevel(Ke[q]), O;
|
|
1075
|
+
}
|
|
1076
|
+
function Y(t, e) {
|
|
1077
|
+
return t ? `[${t}] ${e}` : e;
|
|
1323
1078
|
}
|
|
1324
|
-
class
|
|
1325
|
-
constructor(
|
|
1326
|
-
this.isProd = oe(), this.
|
|
1079
|
+
class Be {
|
|
1080
|
+
constructor(e = {}) {
|
|
1081
|
+
this.isProd = oe(), this.name = e.name || Q.name, this.currentLevel = e.level || Q.level, this.logInstance = Ct(e);
|
|
1327
1082
|
}
|
|
1328
|
-
debug(
|
|
1329
|
-
this.isProd ||
|
|
1083
|
+
debug(e, ...r) {
|
|
1084
|
+
if (!this.isProd || this.shouldLog("debug")) {
|
|
1085
|
+
const f = Y(this.name, e);
|
|
1086
|
+
r.length > 0 ? this.logInstance.debug(f, ...r) : this.logInstance.debug(f);
|
|
1087
|
+
}
|
|
1330
1088
|
}
|
|
1331
|
-
info(
|
|
1332
|
-
|
|
1089
|
+
info(e, ...r) {
|
|
1090
|
+
if (this.shouldLog("info")) {
|
|
1091
|
+
const f = Y(this.name, e);
|
|
1092
|
+
r.length > 0 ? this.logInstance.info(f, ...r) : this.logInstance.info(f);
|
|
1093
|
+
}
|
|
1333
1094
|
}
|
|
1334
|
-
warn(
|
|
1335
|
-
|
|
1095
|
+
warn(e, ...r) {
|
|
1096
|
+
const f = Y(this.name, e);
|
|
1097
|
+
r.length > 0 ? this.logInstance.warn(f, ...r) : this.logInstance.warn(f);
|
|
1336
1098
|
}
|
|
1337
|
-
error(
|
|
1338
|
-
|
|
1099
|
+
error(e, ...r) {
|
|
1100
|
+
const f = Y(this.name, e);
|
|
1101
|
+
r.length > 0 ? this.logInstance.error(f, ...r) : this.logInstance.error(f);
|
|
1339
1102
|
}
|
|
1340
|
-
fatal(
|
|
1341
|
-
|
|
1103
|
+
fatal(e, ...r) {
|
|
1104
|
+
const f = Y(this.name, e);
|
|
1105
|
+
r.length > 0 ? this.logInstance.error(`[FATAL] ${f}`, ...r) : this.logInstance.error(`[FATAL] ${f}`);
|
|
1342
1106
|
}
|
|
1343
|
-
trace(
|
|
1344
|
-
this.isProd ||
|
|
1107
|
+
trace(e, ...r) {
|
|
1108
|
+
if (!this.isProd || this.shouldLog("trace")) {
|
|
1109
|
+
const f = Y(this.name, e);
|
|
1110
|
+
r.length > 0 ? this.logInstance.trace(f, ...r) : this.logInstance.trace(f);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Check if a log level should be logged based on current level
|
|
1115
|
+
*/
|
|
1116
|
+
shouldLog(e) {
|
|
1117
|
+
const r = ["trace", "debug", "info", "warn", "error", "silent"], f = r.indexOf(this.currentLevel);
|
|
1118
|
+
return r.indexOf(e) >= f;
|
|
1345
1119
|
}
|
|
1346
1120
|
/**
|
|
1347
|
-
* Get the underlying
|
|
1121
|
+
* Get the underlying loglevel logger instance
|
|
1348
1122
|
*/
|
|
1349
|
-
|
|
1350
|
-
return this.
|
|
1123
|
+
getLoglevelLogger() {
|
|
1124
|
+
return this.logInstance;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Set the log level dynamically
|
|
1128
|
+
*/
|
|
1129
|
+
setLevel(e) {
|
|
1130
|
+
this.currentLevel = e, this.logInstance.setLevel(Ke[e]);
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Get the current log level
|
|
1134
|
+
*/
|
|
1135
|
+
getLevel() {
|
|
1136
|
+
const e = this.logInstance.getLevel();
|
|
1137
|
+
return Ot[e] || this.currentLevel;
|
|
1351
1138
|
}
|
|
1352
1139
|
}
|
|
1353
|
-
new
|
|
1354
|
-
function
|
|
1355
|
-
return new
|
|
1356
|
-
...
|
|
1357
|
-
name:
|
|
1140
|
+
new Be();
|
|
1141
|
+
function At(t, e = {}) {
|
|
1142
|
+
return new Be({
|
|
1143
|
+
...e,
|
|
1144
|
+
name: e.name || `WSX:${t}`
|
|
1358
1145
|
});
|
|
1359
1146
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
return t.textContent = e, t.innerHTML;
|
|
1147
|
+
function pe(t) {
|
|
1148
|
+
const e = document.createElement("div");
|
|
1149
|
+
return e.textContent = t, e.innerHTML;
|
|
1364
1150
|
}
|
|
1365
|
-
function
|
|
1366
|
-
if (!
|
|
1151
|
+
function Kt(t) {
|
|
1152
|
+
if (!t || !Array.isArray(t))
|
|
1367
1153
|
return [];
|
|
1368
|
-
const
|
|
1369
|
-
return
|
|
1154
|
+
const e = [];
|
|
1155
|
+
return t.forEach((r) => {
|
|
1370
1156
|
if (r.type === "paragraph") {
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1373
|
-
} else (r.type === "text" || r.type === "strong" || r.type === "em" || r.type === "link" || r.type === "code" || r.type === "br") &&
|
|
1374
|
-
}),
|
|
1375
|
-
}
|
|
1376
|
-
function
|
|
1377
|
-
return !
|
|
1378
|
-
switch (
|
|
1157
|
+
const f = r;
|
|
1158
|
+
f.tokens && Array.isArray(f.tokens) && e.push(...f.tokens);
|
|
1159
|
+
} else (r.type === "text" || r.type === "strong" || r.type === "em" || r.type === "link" || r.type === "code" || r.type === "br") && e.push(r);
|
|
1160
|
+
}), e;
|
|
1161
|
+
}
|
|
1162
|
+
function V(t) {
|
|
1163
|
+
return !t || !Array.isArray(t) ? "" : t.map((e) => {
|
|
1164
|
+
switch (e.type) {
|
|
1379
1165
|
case "text":
|
|
1380
|
-
return
|
|
1166
|
+
return e.text || "";
|
|
1381
1167
|
case "strong": {
|
|
1382
|
-
const r =
|
|
1383
|
-
return `<strong>${
|
|
1168
|
+
const r = e, f = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
|
|
1169
|
+
return `<strong>${V(f)}</strong>`;
|
|
1384
1170
|
}
|
|
1385
1171
|
case "em": {
|
|
1386
|
-
const r =
|
|
1387
|
-
return `<em>${
|
|
1172
|
+
const r = e, f = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
|
|
1173
|
+
return `<em>${V(f)}</em>`;
|
|
1388
1174
|
}
|
|
1389
1175
|
case "link": {
|
|
1390
|
-
const r =
|
|
1391
|
-
return `<a href="${r.href || "#"}"${
|
|
1176
|
+
const r = e, f = r.title ? ` title="${pe(r.title)}"` : "", O = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
|
|
1177
|
+
return `<a href="${r.href || "#"}"${f}>${V(O)}</a>`;
|
|
1392
1178
|
}
|
|
1393
1179
|
case "code":
|
|
1394
|
-
return `<code>${
|
|
1180
|
+
return `<code>${pe(e.text || "")}</code>`;
|
|
1395
1181
|
case "br":
|
|
1396
1182
|
return "<br>";
|
|
1397
1183
|
default:
|
|
@@ -1399,154 +1185,145 @@ function ee(e) {
|
|
|
1399
1185
|
}
|
|
1400
1186
|
}).join("");
|
|
1401
1187
|
}
|
|
1402
|
-
var
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1188
|
+
const Rt = "wsx-markdown{display:block}.marked-content{line-height:1.7;color:var(--text-primary, #2c3e50)}.marked-content .marked-paragraph{margin:1rem 0;line-height:1.7}.marked-content .marked-list{margin:1rem 0;padding-left:2rem}.marked-content .marked-list-item{margin:.5rem 0;line-height:1.6}.marked-content a{color:var(--primary-red, #dc2626);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease}.marked-content a:hover{border-bottom-color:var(--primary-red, #dc2626)}.marked-content strong{font-weight:600;color:var(--text-primary, #2c3e50)}.marked-content em{font-style:italic}.marked-content hr{border:none;border-top:2px solid var(--border-color, #e0e0e0);margin:2rem 0}.marked-content img{max-width:100%;height:auto;border-radius:8px;margin:1rem 0}.error{color:#dc2626;padding:1rem;background:#fee2e2;border-radius:6px;border:1px solid #fecaca}";
|
|
1189
|
+
var We;
|
|
1190
|
+
let Ge, Xe;
|
|
1191
|
+
function te(t, e, r) {
|
|
1192
|
+
return (e = Fe(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
1406
1193
|
}
|
|
1407
|
-
function
|
|
1408
|
-
function
|
|
1409
|
-
return function(
|
|
1410
|
-
return
|
|
1194
|
+
function Mt(t, e, r, f, O, q) {
|
|
1195
|
+
function w(o, a, l) {
|
|
1196
|
+
return function(n, s) {
|
|
1197
|
+
return l && l(n), o[a].call(n, s);
|
|
1411
1198
|
};
|
|
1412
1199
|
}
|
|
1413
|
-
function
|
|
1414
|
-
for (var
|
|
1415
|
-
return
|
|
1200
|
+
function N(o, a) {
|
|
1201
|
+
for (var l = 0; l < o.length; l++) o[l].call(a);
|
|
1202
|
+
return a;
|
|
1416
1203
|
}
|
|
1417
|
-
function
|
|
1418
|
-
if (typeof
|
|
1419
|
-
return
|
|
1204
|
+
function E(o, a, l, n) {
|
|
1205
|
+
if (typeof o != "function" && (n || o !== void 0)) throw new TypeError(a + " must " + (l || "be") + " a function" + (n ? "" : " or undefined"));
|
|
1206
|
+
return o;
|
|
1420
1207
|
}
|
|
1421
|
-
function
|
|
1422
|
-
function
|
|
1423
|
-
if (!
|
|
1208
|
+
function P(o, a, l, n, s, $, j, _, A, b, y, g, m) {
|
|
1209
|
+
function p(u) {
|
|
1210
|
+
if (!m(u)) throw new TypeError("Attempted to access private element on non-instance");
|
|
1424
1211
|
}
|
|
1425
|
-
var
|
|
1426
|
-
if (!
|
|
1427
|
-
|
|
1428
|
-
var i = {},
|
|
1429
|
-
|
|
1430
|
-
return
|
|
1431
|
-
},
|
|
1432
|
-
|
|
1433
|
-
} } : i[
|
|
1212
|
+
var c, v = a[0], k = a[3], L = !_;
|
|
1213
|
+
if (!L) {
|
|
1214
|
+
l || Array.isArray(v) || (v = [v]);
|
|
1215
|
+
var i = {}, x = [], h = s === 3 ? "get" : s === 4 || g ? "set" : "value";
|
|
1216
|
+
b ? (y || g ? i = { get: ye(function() {
|
|
1217
|
+
return k(this);
|
|
1218
|
+
}, n, "get"), set: function(u) {
|
|
1219
|
+
a[4](this, u);
|
|
1220
|
+
} } : i[h] = k, y || ye(i[h], n, s === 2 ? "" : h)) : y || (i = Object.getOwnPropertyDescriptor(o, n));
|
|
1434
1221
|
}
|
|
1435
|
-
for (var d =
|
|
1436
|
-
var K =
|
|
1222
|
+
for (var d = o, R = v.length - 1; R >= 0; R -= l ? 2 : 1) {
|
|
1223
|
+
var K = v[R], B = l ? v[R - 1] : void 0, W = {}, S = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: n, metadata: $, addInitializer: (function(u, T) {
|
|
1437
1224
|
if (u.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
1438
|
-
|
|
1439
|
-
}).bind(null,
|
|
1225
|
+
E(T, "An initializer", "be", !0), j.push(T);
|
|
1226
|
+
}).bind(null, W) };
|
|
1440
1227
|
try {
|
|
1441
|
-
if (
|
|
1228
|
+
if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
|
|
1442
1229
|
else {
|
|
1443
|
-
var I,
|
|
1444
|
-
|
|
1445
|
-
return
|
|
1446
|
-
} : (s < 4 && (I =
|
|
1447
|
-
return u[
|
|
1448
|
-
}, (s < 2 || s === 4) && (
|
|
1449
|
-
u[
|
|
1230
|
+
var I, M;
|
|
1231
|
+
S.static = A, S.private = b, b ? s === 2 ? I = function(u) {
|
|
1232
|
+
return p(u), i.value;
|
|
1233
|
+
} : (s < 4 && (I = w(i, "get", p)), s !== 3 && (M = w(i, "set", p))) : (I = function(u) {
|
|
1234
|
+
return u[n];
|
|
1235
|
+
}, (s < 2 || s === 4) && (M = function(u, T) {
|
|
1236
|
+
u[n] = T;
|
|
1450
1237
|
}));
|
|
1451
|
-
var G =
|
|
1452
|
-
return
|
|
1238
|
+
var G = S.access = { has: b ? m.bind() : function(u) {
|
|
1239
|
+
return n in u;
|
|
1453
1240
|
} };
|
|
1454
|
-
if (I && (G.get = I),
|
|
1455
|
-
if (typeof d == "object" && d) (
|
|
1241
|
+
if (I && (G.get = I), M && (G.set = M), d = K.call(B, g ? { get: i.get, set: i.set } : i[h], S), g) {
|
|
1242
|
+
if (typeof d == "object" && d) (c = E(d.get, "accessor.get")) && (i.get = c), (c = E(d.set, "accessor.set")) && (i.set = c), (c = E(d.init, "accessor.init")) && x.push(c);
|
|
1456
1243
|
else if (d !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
1457
|
-
} else
|
|
1244
|
+
} else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
|
|
1458
1245
|
}
|
|
1459
1246
|
} finally {
|
|
1460
|
-
|
|
1247
|
+
W.v = !0;
|
|
1461
1248
|
}
|
|
1462
1249
|
}
|
|
1463
|
-
return (y ||
|
|
1464
|
-
for (var
|
|
1465
|
-
return
|
|
1466
|
-
}), y ||
|
|
1467
|
-
}
|
|
1468
|
-
function
|
|
1469
|
-
return Object.defineProperty(
|
|
1470
|
-
}
|
|
1471
|
-
if (arguments.length >= 6) var
|
|
1472
|
-
var
|
|
1473
|
-
var s,
|
|
1474
|
-
return
|
|
1475
|
-
},
|
|
1476
|
-
function
|
|
1477
|
-
|
|
1250
|
+
return (y || g) && _.push(function(u, T) {
|
|
1251
|
+
for (var z = x.length - 1; z >= 0; z--) T = x[z].call(u, T);
|
|
1252
|
+
return T;
|
|
1253
|
+
}), y || L || (b ? g ? _.push(w(i, "get"), w(i, "set")) : _.push(s === 2 ? i[h] : w.call.bind(i[h])) : Object.defineProperty(o, n, i)), d;
|
|
1254
|
+
}
|
|
1255
|
+
function H(o, a) {
|
|
1256
|
+
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: a });
|
|
1257
|
+
}
|
|
1258
|
+
if (arguments.length >= 6) var U = q[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
1259
|
+
var C = Object.create(U ?? null), X = function(o, a, l, n) {
|
|
1260
|
+
var s, $, j = [], _ = function(h) {
|
|
1261
|
+
return zt(h) === o;
|
|
1262
|
+
}, A = /* @__PURE__ */ new Map();
|
|
1263
|
+
function b(h) {
|
|
1264
|
+
h && j.push(N.bind(null, h));
|
|
1478
1265
|
}
|
|
1479
|
-
for (var y = 0; y <
|
|
1480
|
-
var
|
|
1481
|
-
if (Array.isArray(
|
|
1482
|
-
var
|
|
1483
|
-
if (!
|
|
1484
|
-
var
|
|
1485
|
-
if (
|
|
1486
|
-
|
|
1266
|
+
for (var y = 0; y < a.length; y++) {
|
|
1267
|
+
var g = a[y];
|
|
1268
|
+
if (Array.isArray(g)) {
|
|
1269
|
+
var m = g[1], p = g[2], c = g.length > 3, v = 16 & m, k = !!(8 & m), L = (m &= 7) == 0, i = p + "/" + k;
|
|
1270
|
+
if (!L && !c) {
|
|
1271
|
+
var x = A.get(i);
|
|
1272
|
+
if (x === !0 || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
1273
|
+
A.set(i, !(m > 2) || m);
|
|
1487
1274
|
}
|
|
1488
|
-
|
|
1275
|
+
P(k ? o : o.prototype, g, v, c ? "#" + p : Fe(p), m, n, k ? $ = $ || [] : s = s || [], j, k, c, L, m === 1, k && c ? _ : l);
|
|
1489
1276
|
}
|
|
1490
1277
|
}
|
|
1491
|
-
return
|
|
1492
|
-
}(
|
|
1493
|
-
return r.length ||
|
|
1494
|
-
var
|
|
1495
|
-
return r.length && [
|
|
1278
|
+
return b(s), b($), j;
|
|
1279
|
+
}(t, e, O, C);
|
|
1280
|
+
return r.length || H(t, C), { e: X, get c() {
|
|
1281
|
+
var o = [];
|
|
1282
|
+
return r.length && [H(P(t, [r], f, t.name, 5, C, o), C), N.bind(null, o, t)];
|
|
1496
1283
|
} };
|
|
1497
1284
|
}
|
|
1498
|
-
function
|
|
1499
|
-
var
|
|
1500
|
-
return typeof
|
|
1285
|
+
function Fe(t) {
|
|
1286
|
+
var e = Dt(t, "string");
|
|
1287
|
+
return typeof e == "symbol" ? e : e + "";
|
|
1501
1288
|
}
|
|
1502
|
-
function
|
|
1503
|
-
if (typeof
|
|
1504
|
-
var r =
|
|
1289
|
+
function Dt(t, e) {
|
|
1290
|
+
if (typeof t != "object" || !t) return t;
|
|
1291
|
+
var r = t[Symbol.toPrimitive];
|
|
1505
1292
|
if (r !== void 0) {
|
|
1506
|
-
var
|
|
1507
|
-
if (typeof
|
|
1293
|
+
var f = r.call(t, e);
|
|
1294
|
+
if (typeof f != "object") return f;
|
|
1508
1295
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1509
1296
|
}
|
|
1510
|
-
return String(
|
|
1297
|
+
return String(t);
|
|
1511
1298
|
}
|
|
1512
|
-
function
|
|
1513
|
-
typeof
|
|
1299
|
+
function ye(t, e, r) {
|
|
1300
|
+
typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
|
|
1514
1301
|
try {
|
|
1515
|
-
Object.defineProperty(
|
|
1302
|
+
Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
|
|
1516
1303
|
} catch {
|
|
1517
1304
|
}
|
|
1518
|
-
return
|
|
1305
|
+
return t;
|
|
1519
1306
|
}
|
|
1520
|
-
function
|
|
1521
|
-
if (Object(
|
|
1522
|
-
return
|
|
1307
|
+
function zt(t) {
|
|
1308
|
+
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
1309
|
+
return t;
|
|
1523
1310
|
}
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1311
|
+
const re = At("Markdown");
|
|
1312
|
+
Xe = [J({
|
|
1526
1313
|
tagName: "wsx-markdown"
|
|
1527
1314
|
})];
|
|
1528
|
-
let
|
|
1529
|
-
class
|
|
1315
|
+
let Nt;
|
|
1316
|
+
class Ht extends F {
|
|
1530
1317
|
constructor() {
|
|
1531
|
-
super({
|
|
1532
|
-
|
|
1533
|
-
styleName: "wsx-markdown",
|
|
1534
|
-
lightDOM: !0
|
|
1535
|
-
}), fe(this, "_autoStyles", Le), fe(this, "markdown", void 0), fe(this, "customRenderers", {}), ie.info("Markdown initialized");
|
|
1536
|
-
const [t, r] = this.useState("markdown", "");
|
|
1318
|
+
super(), te(this, "_autoStyles", Rt), te(this, "markdown", void 0), te(this, "customRenderers", {});
|
|
1319
|
+
const [e, r] = this.useState("markdown", "");
|
|
1537
1320
|
Object.defineProperty(this, "markdown", {
|
|
1538
|
-
get:
|
|
1321
|
+
get: e,
|
|
1539
1322
|
set: r,
|
|
1540
1323
|
enumerable: !0,
|
|
1541
1324
|
configurable: !0
|
|
1542
1325
|
});
|
|
1543
1326
|
}
|
|
1544
|
-
static get observedAttributes() {
|
|
1545
|
-
return ["markdown"];
|
|
1546
|
-
}
|
|
1547
|
-
attributeChangedCallback(t, r, l) {
|
|
1548
|
-
t === "markdown" && (this.markdown = l || "", this.rerender());
|
|
1549
|
-
}
|
|
1550
1327
|
/**
|
|
1551
1328
|
* Set custom renderers for specific token types
|
|
1552
1329
|
*
|
|
@@ -1560,10 +1337,10 @@ class yr extends J {
|
|
|
1560
1337
|
* });
|
|
1561
1338
|
* ```
|
|
1562
1339
|
*/
|
|
1563
|
-
setCustomRenderers(
|
|
1340
|
+
setCustomRenderers(e) {
|
|
1564
1341
|
this.customRenderers = {
|
|
1565
1342
|
...this.customRenderers,
|
|
1566
|
-
...
|
|
1343
|
+
...e
|
|
1567
1344
|
}, this.rerender();
|
|
1568
1345
|
}
|
|
1569
1346
|
/**
|
|
@@ -1576,105 +1353,101 @@ class yr extends J {
|
|
|
1576
1353
|
}
|
|
1577
1354
|
render() {
|
|
1578
1355
|
if (!this.markdown)
|
|
1579
|
-
return /* @__PURE__ */
|
|
1356
|
+
return /* @__PURE__ */ D("div", { class: "marked-content" });
|
|
1580
1357
|
try {
|
|
1581
|
-
const
|
|
1582
|
-
return /* @__PURE__ */
|
|
1583
|
-
} catch (
|
|
1584
|
-
return
|
|
1358
|
+
const e = ie.lexer(this.markdown);
|
|
1359
|
+
return /* @__PURE__ */ D("div", { class: "marked-content" }, this.renderTokens(e));
|
|
1360
|
+
} catch (e) {
|
|
1361
|
+
return re.error("Failed to render markdown", e), /* @__PURE__ */ D("div", { class: "marked-content" }, /* @__PURE__ */ D("wsx-marked-error", { message: `Error: ${e}` }));
|
|
1585
1362
|
}
|
|
1586
1363
|
}
|
|
1587
|
-
onConnected() {
|
|
1588
|
-
const t = this.getAttribute("markdown");
|
|
1589
|
-
t && (this.markdown = t);
|
|
1590
|
-
}
|
|
1591
1364
|
/**
|
|
1592
1365
|
* Convert marked tokens to WSX JSX elements
|
|
1593
1366
|
*/
|
|
1594
|
-
renderTokens(
|
|
1595
|
-
return
|
|
1367
|
+
renderTokens(e) {
|
|
1368
|
+
return e.map((r) => this.renderToken(r)).filter((r) => r !== null);
|
|
1596
1369
|
}
|
|
1597
1370
|
/**
|
|
1598
1371
|
* Render a single token to WSX JSX element
|
|
1599
1372
|
* Supports custom renderers for extensibility
|
|
1600
1373
|
*/
|
|
1601
|
-
renderToken(
|
|
1602
|
-
const r = this.customRenderers[
|
|
1374
|
+
renderToken(e) {
|
|
1375
|
+
const r = this.customRenderers[e.type];
|
|
1603
1376
|
if (r) {
|
|
1604
|
-
const
|
|
1605
|
-
if (
|
|
1606
|
-
return
|
|
1377
|
+
const f = r(e, () => this.defaultRenderToken(e));
|
|
1378
|
+
if (f !== null)
|
|
1379
|
+
return f;
|
|
1607
1380
|
}
|
|
1608
|
-
return this.defaultRenderToken(
|
|
1381
|
+
return this.defaultRenderToken(e);
|
|
1609
1382
|
}
|
|
1610
1383
|
/**
|
|
1611
1384
|
* Default token rendering logic
|
|
1612
1385
|
* This is the core rendering implementation
|
|
1613
1386
|
*/
|
|
1614
|
-
defaultRenderToken(
|
|
1615
|
-
switch (
|
|
1387
|
+
defaultRenderToken(e) {
|
|
1388
|
+
switch (e.type) {
|
|
1616
1389
|
case "heading": {
|
|
1617
|
-
const r =
|
|
1618
|
-
return /* @__PURE__ */
|
|
1390
|
+
const r = e;
|
|
1391
|
+
return /* @__PURE__ */ D("wsx-marked-heading", { level: r.depth.toString(), text: V(r.tokens) });
|
|
1619
1392
|
}
|
|
1620
1393
|
case "code": {
|
|
1621
|
-
const r =
|
|
1622
|
-
return /* @__PURE__ */
|
|
1394
|
+
const r = e;
|
|
1395
|
+
return /* @__PURE__ */ D("wsx-marked-code", { code: r.text, language: r.lang || "" });
|
|
1623
1396
|
}
|
|
1624
1397
|
case "blockquote": {
|
|
1625
|
-
const r =
|
|
1626
|
-
return /* @__PURE__ */
|
|
1398
|
+
const r = e;
|
|
1399
|
+
return /* @__PURE__ */ D("wsx-marked-blockquote", null, this.renderTokens(r.tokens));
|
|
1627
1400
|
}
|
|
1628
1401
|
case "paragraph":
|
|
1629
|
-
return /* @__PURE__ */
|
|
1402
|
+
return /* @__PURE__ */ D("wsx-marked-paragraph", { content: V(e.tokens) });
|
|
1630
1403
|
case "list": {
|
|
1631
|
-
const r =
|
|
1632
|
-
if (!
|
|
1633
|
-
return
|
|
1634
|
-
item:
|
|
1404
|
+
const r = e, f = r.items.map((O) => {
|
|
1405
|
+
if (!O.tokens || !Array.isArray(O.tokens))
|
|
1406
|
+
return re.warn("List item has no tokens or tokens is not an array", {
|
|
1407
|
+
item: O
|
|
1635
1408
|
}), "";
|
|
1636
|
-
const
|
|
1637
|
-
if (
|
|
1409
|
+
const q = this.renderTokens(O.tokens);
|
|
1410
|
+
if (q.length === 0)
|
|
1638
1411
|
return "";
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
|
|
1412
|
+
const w = document.createElement("div");
|
|
1413
|
+
q.forEach((E) => {
|
|
1414
|
+
E && w.appendChild(E);
|
|
1642
1415
|
});
|
|
1643
|
-
const
|
|
1644
|
-
return
|
|
1645
|
-
renderedElementsCount:
|
|
1646
|
-
itemTokens:
|
|
1647
|
-
}),
|
|
1416
|
+
const N = w.innerHTML;
|
|
1417
|
+
return N || re.warn("tempContainer.innerHTML is empty after appending elements", {
|
|
1418
|
+
renderedElementsCount: q.length,
|
|
1419
|
+
itemTokens: O.tokens
|
|
1420
|
+
}), N;
|
|
1648
1421
|
});
|
|
1649
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ D("wsx-marked-list", { ordered: r.ordered ? "true" : "false", items: f });
|
|
1650
1423
|
}
|
|
1651
1424
|
case "html":
|
|
1652
|
-
return /* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ D("div", null, e.text);
|
|
1653
1426
|
case "hr":
|
|
1654
|
-
return /* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ D("hr", null);
|
|
1655
1428
|
case "space":
|
|
1656
1429
|
return null;
|
|
1657
1430
|
case "text":
|
|
1658
|
-
return /* @__PURE__ */
|
|
1431
|
+
return /* @__PURE__ */ D("span", null, e.text || "");
|
|
1659
1432
|
default: {
|
|
1660
|
-
const
|
|
1661
|
-
return
|
|
1433
|
+
const f = new ie.Renderer()[e.type], O = (f == null ? void 0 : f(e)) || "";
|
|
1434
|
+
return O ? /* @__PURE__ */ D("div", null, O) : null;
|
|
1662
1435
|
}
|
|
1663
1436
|
}
|
|
1664
1437
|
}
|
|
1665
1438
|
}
|
|
1666
|
-
|
|
1667
|
-
[
|
|
1668
|
-
|
|
1439
|
+
We = Ht;
|
|
1440
|
+
[Nt, Ge] = Mt(We, [], Xe, 0, void 0, F).c;
|
|
1441
|
+
Ge();
|
|
1669
1442
|
export {
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1443
|
+
ct as Blockquote,
|
|
1444
|
+
nt as Code,
|
|
1445
|
+
Lt as Error,
|
|
1446
|
+
Ve as Heading,
|
|
1447
|
+
kt as List,
|
|
1448
|
+
Nt as Markdown,
|
|
1449
|
+
ht as Paragraph,
|
|
1450
|
+
pe as escapeHtml,
|
|
1451
|
+
Kt as extractInlineTokens,
|
|
1452
|
+
V as renderInlineTokens
|
|
1680
1453
|
};
|