@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.js CHANGED
@@ -1,574 +1,574 @@
1
- import { autoRegister as Y, LightComponent as J, jsx as B } from "@wsxjs/wsx-core";
2
- import { marked as ye } from "marked";
3
- const ge = "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 De;
5
- let Re, Ne;
6
- function se(e, t, r) {
7
- return (t = Me(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
8
- }
9
- function ft(e, t, r, l, v, R) {
10
- function j(n, o, c) {
11
- return function(a, s) {
12
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
16
- for (var c = 0; c < n.length; c++) n[c].call(o);
17
- return o;
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 g(n, o, c, a) {
20
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
21
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
24
- function _(u) {
25
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
28
- if (!C) {
29
- c || Array.isArray(w) || (w = [w]);
30
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
31
- k ? (y || h ? i = { get: ve(function() {
32
- return x(this);
33
- }, a, "get"), set: function(u) {
34
- o[4](this, u);
35
- } } : i[b] = x, y || ve(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
38
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
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
- g(E, "An initializer", "be", !0), D.push(E);
41
- }).bind(null, F) };
40
+ E(T, "An initializer", "be", !0), j.push(T);
41
+ }).bind(null, W) };
42
42
  try {
43
- if (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
43
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
44
44
  else {
45
- var I, q;
46
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
47
- return _(u), i.value;
48
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
49
- return u[a];
50
- }, (s < 2 || s === 4) && (q = function(u, E) {
51
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
54
- return a in u;
53
+ var G = S.access = { has: b ? m.bind() : function(u) {
54
+ return n in u;
55
55
  } };
56
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
57
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
59
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
60
60
  }
61
61
  } finally {
62
- F.v = !0;
62
+ W.v = !0;
63
63
  }
64
64
  }
65
- return (y || h) && z.push(function(u, E) {
66
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
67
- return E;
68
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
69
- }
70
- function O(n, o) {
71
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
72
- }
73
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
74
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
75
- var s, A, D = [], z = function(b) {
76
- return mt(b) === n;
77
- }, H = /* @__PURE__ */ new Map();
78
- function k(b) {
79
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
82
- var h = o[y];
83
- if (Array.isArray(h)) {
84
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
85
- if (!C && !f) {
86
- var T = H.get(i);
87
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 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: " + _);
88
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : Me(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
94
- }(e, t, v, N);
95
- return r.length || O(e, N), { e: L, get c() {
96
- var n = [];
97
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 Me(e) {
101
- var t = dt(e, "string");
102
- return typeof t == "symbol" ? t : t + "";
100
+ function xe(t) {
101
+ var e = Ye(t, "string");
102
+ return typeof e == "symbol" ? e : e + "";
103
103
  }
104
- function dt(e, t) {
105
- if (typeof e != "object" || !e) return e;
106
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
109
- if (typeof l != "object") return l;
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(e);
112
+ return String(t);
113
113
  }
114
- function ve(e, t, r) {
115
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
114
+ function se(t, e, r) {
115
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
116
116
  try {
117
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
117
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
118
118
  } catch {
119
119
  }
120
- return e;
120
+ return t;
121
121
  }
122
- function mt(e) {
123
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
124
- return e;
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
- Ne = [Y({
126
+ ke = [J({
127
127
  tagName: "wsx-marked-heading"
128
128
  })];
129
- let ht;
130
- class pt extends J {
129
+ let Ve;
130
+ class Ze extends F {
131
131
  constructor() {
132
132
  super({
133
- styles: ge,
133
+ styles: ae,
134
134
  styleName: "wsx-marked-heading"
135
- }), se(this, "_autoStyles", ge), se(this, "level", 1), se(this, "text", "");
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(t, r, l) {
141
- t === "level" ? this.level = parseInt(l, 10) || 1 : t === "text" && (this.text = l), this.rerender();
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__ */ B("h1", null, this.text) : this.level === 2 ? /* @__PURE__ */ B("h2", null, this.text) : this.level === 3 ? /* @__PURE__ */ B("h3", null, this.text) : this.level === 4 ? /* @__PURE__ */ B("h4", null, this.text) : this.level === 5 ? /* @__PURE__ */ B("h5", null, this.text) : /* @__PURE__ */ B("h6", null, this.text);
145
- }
146
- }
147
- De = pt;
148
- [ht, Re] = ft(De, [], Ne, 0, void 0, J).c;
149
- Re();
150
- const ke = "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 Ie;
152
- let He, Pe;
153
- function le(e, t, r) {
154
- return (t = qe(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
155
- }
156
- function bt(e, t, r, l, v, R) {
157
- function j(n, o, c) {
158
- return function(a, s) {
159
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
163
- for (var c = 0; c < n.length; c++) n[c].call(o);
164
- return o;
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 g(n, o, c, a) {
167
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
168
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
171
- function _(u) {
172
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
175
- if (!C) {
176
- c || Array.isArray(w) || (w = [w]);
177
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
178
- k ? (y || h ? i = { get: je(function() {
179
- return x(this);
180
- }, a, "get"), set: function(u) {
181
- o[4](this, u);
182
- } } : i[b] = x, y || je(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
185
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
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
- g(E, "An initializer", "be", !0), D.push(E);
188
- }).bind(null, F) };
187
+ E(T, "An initializer", "be", !0), j.push(T);
188
+ }).bind(null, W) };
189
189
  try {
190
- if (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
190
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
191
191
  else {
192
- var I, q;
193
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
194
- return _(u), i.value;
195
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
196
- return u[a];
197
- }, (s < 2 || s === 4) && (q = function(u, E) {
198
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
201
- return a in u;
200
+ var G = S.access = { has: b ? m.bind() : function(u) {
201
+ return n in u;
202
202
  } };
203
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
204
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
206
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
207
207
  }
208
208
  } finally {
209
- F.v = !0;
209
+ W.v = !0;
210
210
  }
211
211
  }
212
- return (y || h) && z.push(function(u, E) {
213
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
214
- return E;
215
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
216
- }
217
- function O(n, o) {
218
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
219
- }
220
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
221
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
222
- var s, A, D = [], z = function(b) {
223
- return gt(b) === n;
224
- }, H = /* @__PURE__ */ new Map();
225
- function k(b) {
226
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
229
- var h = o[y];
230
- if (Array.isArray(h)) {
231
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
232
- if (!C && !f) {
233
- var T = H.get(i);
234
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 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: " + _);
235
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : qe(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
241
- }(e, t, v, N);
242
- return r.length || O(e, N), { e: L, get c() {
243
- var n = [];
244
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 qe(e) {
248
- var t = yt(e, "string");
249
- return typeof t == "symbol" ? t : t + "";
247
+ function Ee(t) {
248
+ var e = tt(t, "string");
249
+ return typeof e == "symbol" ? e : e + "";
250
250
  }
251
- function yt(e, t) {
252
- if (typeof e != "object" || !e) return e;
253
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
256
- if (typeof l != "object") return l;
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(e);
259
+ return String(t);
260
260
  }
261
- function je(e, t, r) {
262
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
261
+ function ce(t, e, r) {
262
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
263
263
  try {
264
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
264
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
265
265
  } catch {
266
266
  }
267
- return e;
267
+ return t;
268
268
  }
269
- function gt(e) {
270
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
271
- return e;
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
- Pe = [Y({
273
+ _e = [J({
274
274
  tagName: "wsx-marked-code"
275
275
  })];
276
- let vt;
277
- class kt extends J {
276
+ let nt;
277
+ class ot extends F {
278
278
  constructor() {
279
279
  super({
280
- styles: ke,
280
+ styles: le,
281
281
  styleName: "wsx-marked-code"
282
- }), le(this, "_autoStyles", ke), le(this, "code", ""), le(this, "language", "");
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(t, r, l) {
288
- t === "code" ? this.code = l || "" : t === "language" && (this.language = l || ""), this.rerender();
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__ */ B("div", null, this.language && /* @__PURE__ */ B("span", { class: "language-label" }, this.language), /* @__PURE__ */ B("pre", null, /* @__PURE__ */ B("code", null, this.code)));
292
- }
293
- }
294
- Ie = kt;
295
- [vt, He] = bt(Ie, [], Pe, 0, void 0, J).c;
296
- He();
297
- const _e = "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 Be;
299
- let Ve, Ke;
300
- function jt(e, t, r) {
301
- return (t = We(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
302
- }
303
- function _t(e, t, r, l, v, R) {
304
- function j(n, o, c) {
305
- return function(a, s) {
306
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
310
- for (var c = 0; c < n.length; c++) n[c].call(o);
311
- return o;
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 g(n, o, c, a) {
314
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
315
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
318
- function _(u) {
319
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
322
- if (!C) {
323
- c || Array.isArray(w) || (w = [w]);
324
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
325
- k ? (y || h ? i = { get: we(function() {
326
- return x(this);
327
- }, a, "get"), set: function(u) {
328
- o[4](this, u);
329
- } } : i[b] = x, y || we(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
332
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
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
- g(E, "An initializer", "be", !0), D.push(E);
335
- }).bind(null, F) };
334
+ E(T, "An initializer", "be", !0), j.push(T);
335
+ }).bind(null, W) };
336
336
  try {
337
- if (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
337
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
338
338
  else {
339
- var I, q;
340
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
341
- return _(u), i.value;
342
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
343
- return u[a];
344
- }, (s < 2 || s === 4) && (q = function(u, E) {
345
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
348
- return a in u;
347
+ var G = S.access = { has: b ? m.bind() : function(u) {
348
+ return n in u;
349
349
  } };
350
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
351
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
353
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
354
354
  }
355
355
  } finally {
356
- F.v = !0;
356
+ W.v = !0;
357
357
  }
358
358
  }
359
- return (y || h) && z.push(function(u, E) {
360
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
361
- return E;
362
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
363
- }
364
- function O(n, o) {
365
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
366
- }
367
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
368
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
369
- var s, A, D = [], z = function(b) {
370
- return xt(b) === n;
371
- }, H = /* @__PURE__ */ new Map();
372
- function k(b) {
373
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
376
- var h = o[y];
377
- if (Array.isArray(h)) {
378
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
379
- if (!C && !f) {
380
- var T = H.get(i);
381
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 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: " + _);
382
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : We(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
388
- }(e, t, v, N);
389
- return r.length || O(e, N), { e: L, get c() {
390
- var n = [];
391
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 We(e) {
395
- var t = wt(e, "string");
396
- return typeof t == "symbol" ? t : t + "";
394
+ function Se(t) {
395
+ var e = st(t, "string");
396
+ return typeof e == "symbol" ? e : e + "";
397
397
  }
398
- function wt(e, t) {
399
- if (typeof e != "object" || !e) return e;
400
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
403
- if (typeof l != "object") return l;
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(e);
406
+ return String(t);
407
407
  }
408
- function we(e, t, r) {
409
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
408
+ function fe(t, e, r) {
409
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
410
410
  try {
411
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
411
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
412
412
  } catch {
413
413
  }
414
- return e;
414
+ return t;
415
415
  }
416
- function xt(e) {
417
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
418
- return e;
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
- Ke = [Y({
420
+ $e = [J({
421
421
  tagName: "wsx-marked-blockquote"
422
422
  })];
423
- let Tt;
424
- class Et extends J {
423
+ let ct;
424
+ class ut extends F {
425
425
  constructor() {
426
426
  super({
427
- styles: _e,
427
+ styles: ue,
428
428
  styleName: "wsx-marked-blockquote"
429
- }), jt(this, "_autoStyles", _e);
429
+ }), it(this, "_autoStyles", ue);
430
430
  }
431
431
  render() {
432
- return /* @__PURE__ */ B("blockquote", null, /* @__PURE__ */ B("slot", null));
432
+ return /* @__PURE__ */ D("blockquote", null, /* @__PURE__ */ D("slot", null));
433
433
  }
434
434
  }
435
- Be = Et;
436
- [Tt, Ve] = _t(Be, [], Ke, 0, void 0, J).c;
437
- Ve();
438
- var Fe;
439
- let Ge, Je;
440
- function Ot(e, t, r) {
441
- return (t = Xe(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
442
- }
443
- function St(e, t, r, l, v, R) {
444
- function j(n, o, c) {
445
- return function(a, s) {
446
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
450
- for (var c = 0; c < n.length; c++) n[c].call(o);
451
- return o;
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 g(n, o, c, a) {
454
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
455
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
458
- function _(u) {
459
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
462
- if (!C) {
463
- c || Array.isArray(w) || (w = [w]);
464
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
465
- k ? (y || h ? i = { get: xe(function() {
466
- return x(this);
467
- }, a, "get"), set: function(u) {
468
- o[4](this, u);
469
- } } : i[b] = x, y || xe(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
472
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
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
- g(E, "An initializer", "be", !0), D.push(E);
475
- }).bind(null, F) };
474
+ E(T, "An initializer", "be", !0), j.push(T);
475
+ }).bind(null, W) };
476
476
  try {
477
- if (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
477
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
478
478
  else {
479
- var I, q;
480
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
481
- return _(u), i.value;
482
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
483
- return u[a];
484
- }, (s < 2 || s === 4) && (q = function(u, E) {
485
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
488
- return a in u;
487
+ var G = S.access = { has: b ? m.bind() : function(u) {
488
+ return n in u;
489
489
  } };
490
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
491
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
493
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
494
494
  }
495
495
  } finally {
496
- F.v = !0;
496
+ W.v = !0;
497
497
  }
498
498
  }
499
- return (y || h) && z.push(function(u, E) {
500
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
501
- return E;
502
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
503
- }
504
- function O(n, o) {
505
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
506
- }
507
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
508
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
509
- var s, A, D = [], z = function(b) {
510
- return zt(b) === n;
511
- }, H = /* @__PURE__ */ new Map();
512
- function k(b) {
513
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
516
- var h = o[y];
517
- if (Array.isArray(h)) {
518
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
519
- if (!C && !f) {
520
- var T = H.get(i);
521
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 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: " + _);
522
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : Xe(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
528
- }(e, t, v, N);
529
- return r.length || O(e, N), { e: L, get c() {
530
- var n = [];
531
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 Xe(e) {
535
- var t = $t(e, "string");
536
- return typeof t == "symbol" ? t : t + "";
534
+ function Ae(t) {
535
+ var e = gt(t, "string");
536
+ return typeof e == "symbol" ? e : e + "";
537
537
  }
538
- function $t(e, t) {
539
- if (typeof e != "object" || !e) return e;
540
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
543
- if (typeof l != "object") return l;
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(e);
546
+ return String(t);
547
547
  }
548
- function xe(e, t, r) {
549
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
548
+ function de(t, e, r) {
549
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
550
550
  try {
551
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
551
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
552
552
  } catch {
553
553
  }
554
- return e;
554
+ return t;
555
555
  }
556
- function zt(e) {
557
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
558
- return e;
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
- Je = [Y({
560
+ Ce = [J({
561
561
  tagName: "wsx-marked-paragraph"
562
562
  })];
563
- let Lt;
564
- class Ct extends J {
563
+ let ht;
564
+ class pt extends F {
565
565
  constructor() {
566
566
  super({
567
567
  styleName: "wsx-marked-paragraph"
568
- }), Ot(this, "content", void 0);
569
- const [t, r] = this.useState("content", "");
568
+ }), ft(this, "content", void 0);
569
+ const [e, r] = this.useState("content", "");
570
570
  Object.defineProperty(this, "content", {
571
- get: t,
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(t, r, l) {
581
- t === "content" && (this.content = l || "");
580
+ attributeChangedCallback(e, r, f) {
581
+ e === "content" && (this.content = f || "");
582
582
  }
583
583
  render() {
584
- return /* @__PURE__ */ B("p", { class: "marked-paragraph" }, this.content);
584
+ return /* @__PURE__ */ D("p", { class: "marked-paragraph" }, this.content);
585
585
  }
586
586
  }
587
- Fe = Ct;
588
- [Lt, Ge] = St(Fe, [], Je, 0, void 0, J).c;
589
- Ge();
590
- var Ue;
591
- let Qe, Ye;
592
- function Te(e, t, r) {
593
- return (t = Ze(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
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 At(e, t, r, l, v, R) {
596
- function j(n, o, c) {
597
- return function(a, s) {
598
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
602
- for (var c = 0; c < n.length; c++) n[c].call(o);
603
- return o;
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 g(n, o, c, a) {
606
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
607
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
610
- function _(u) {
611
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
614
- if (!C) {
615
- c || Array.isArray(w) || (w = [w]);
616
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
617
- k ? (y || h ? i = { get: Ee(function() {
618
- return x(this);
619
- }, a, "get"), set: function(u) {
620
- o[4](this, u);
621
- } } : i[b] = x, y || Ee(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
624
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
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
- g(E, "An initializer", "be", !0), D.push(E);
627
- }).bind(null, F) };
626
+ E(T, "An initializer", "be", !0), j.push(T);
627
+ }).bind(null, W) };
628
628
  try {
629
- if (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
629
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
630
630
  else {
631
- var I, q;
632
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
633
- return _(u), i.value;
634
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
635
- return u[a];
636
- }, (s < 2 || s === 4) && (q = function(u, E) {
637
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
640
- return a in u;
639
+ var G = S.access = { has: b ? m.bind() : function(u) {
640
+ return n in u;
641
641
  } };
642
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
643
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
645
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
646
646
  }
647
647
  } finally {
648
- F.v = !0;
648
+ W.v = !0;
649
649
  }
650
650
  }
651
- return (y || h) && z.push(function(u, E) {
652
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
653
- return E;
654
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
655
- }
656
- function O(n, o) {
657
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
658
- }
659
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
660
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
661
- var s, A, D = [], z = function(b) {
662
- return Rt(b) === n;
663
- }, H = /* @__PURE__ */ new Map();
664
- function k(b) {
665
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
668
- var h = o[y];
669
- if (Array.isArray(h)) {
670
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
671
- if (!C && !f) {
672
- var T = H.get(i);
673
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 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: " + _);
674
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : Ze(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
680
- }(e, t, v, N);
681
- return r.length || O(e, N), { e: L, get c() {
682
- var n = [];
683
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 Ze(e) {
687
- var t = Dt(e, "string");
688
- return typeof t == "symbol" ? t : t + "";
686
+ function ze(t) {
687
+ var e = vt(t, "string");
688
+ return typeof e == "symbol" ? e : e + "";
689
689
  }
690
- function Dt(e, t) {
691
- if (typeof e != "object" || !e) return e;
692
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
695
- if (typeof l != "object") return l;
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(e);
698
+ return String(t);
699
699
  }
700
- function Ee(e, t, r) {
701
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
700
+ function me(t, e, r) {
701
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
702
702
  try {
703
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
703
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
704
704
  } catch {
705
705
  }
706
- return e;
706
+ return t;
707
707
  }
708
- function Rt(e) {
709
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
710
- return e;
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
- Ye = [Y({
712
+ De = [J({
713
713
  tagName: "wsx-marked-list"
714
714
  })];
715
- let Nt;
716
- class Mt extends J {
715
+ let kt;
716
+ class xt extends F {
717
717
  constructor() {
718
- super({
719
- styleName: "wsx-marked-list"
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: t,
721
+ get: e,
724
722
  set: r,
725
723
  enumerable: !0,
726
724
  configurable: !0
727
725
  });
728
- let l = this.reactive([]);
726
+ let f = this.reactive([]);
729
727
  Object.defineProperty(this, "items", {
730
- get: () => l,
731
- set: (v) => {
732
- l = v !== null && typeof v < "u" && (Array.isArray(v) || typeof v == "object") ? this.reactive(v) : v, this.scheduleRerender();
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__ */ B("ol", { class: "marked-list" }, this.items.map((t, r) => /* @__PURE__ */ B("li", { key: r, class: "marked-list-item" }, t))) : /* @__PURE__ */ B("ul", { class: "marked-list" }, this.items.map((t, r) => /* @__PURE__ */ B("li", { key: r, class: "marked-list-item" }, t)));
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
- Ue = Mt;
756
- [Nt, Qe] = At(Ue, [], Ye, 0, void 0, J).c;
757
- Qe();
758
- var et;
759
- let tt, rt;
760
- function It(e, t, r) {
761
- return (t = nt(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
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 Ht(e, t, r, l, v, R) {
764
- function j(n, o, c) {
765
- return function(a, s) {
766
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
770
- for (var c = 0; c < n.length; c++) n[c].call(o);
771
- return o;
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 g(n, o, c, a) {
774
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
775
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
778
- function _(u) {
779
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
782
- if (!C) {
783
- c || Array.isArray(w) || (w = [w]);
784
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
785
- k ? (y || h ? i = { get: Oe(function() {
786
- return x(this);
787
- }, a, "get"), set: function(u) {
788
- o[4](this, u);
789
- } } : i[b] = x, y || Oe(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
792
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
793
- if (u.v) throw de("attempted to call addInitializer after decoration was finished");
794
- g(E, "An initializer", "be", !0), D.push(E);
795
- }).bind(null, F) };
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 (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
782
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
798
783
  else {
799
- var I, q;
800
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
801
- return _(u), i.value;
802
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
803
- return u[a];
804
- }, (s < 2 || s === 4) && (q = function(u, E) {
805
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
808
- return a in u;
792
+ var G = S.access = { has: b ? m.bind() : function(u) {
793
+ return n in u;
809
794
  } };
810
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
811
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
798
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
814
799
  }
815
800
  } finally {
816
- F.v = !0;
801
+ W.v = !0;
817
802
  }
818
803
  }
819
- return (y || h) && z.push(function(u, E) {
820
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
821
- return E;
822
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
823
- }
824
- function O(n, o) {
825
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
826
- }
827
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
828
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
829
- var s, A, D = [], z = function(b) {
830
- return qt(b) === n;
831
- }, H = /* @__PURE__ */ new Map();
832
- function k(b) {
833
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
836
- var h = o[y];
837
- if (Array.isArray(h)) {
838
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
839
- if (!C && !f) {
840
- var T = H.get(i);
841
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 3) throw de("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: " + _);
842
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : nt(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
848
- }(e, t, v, N);
849
- return r.length || O(e, N), { e: L, get c() {
850
- var n = [];
851
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 nt(e) {
855
- var t = Pt(e, "string");
856
- return typeof t == "symbol" ? t : t + "";
839
+ function Pe(t) {
840
+ var e = _t(t, "string");
841
+ return typeof e == "symbol" ? e : e + "";
857
842
  }
858
- function Pt(e, t) {
859
- if (typeof e != "object" || !e) return e;
860
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
863
- if (typeof l != "object") return l;
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(e);
851
+ return String(t);
867
852
  }
868
- function Oe(e, t, r) {
869
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
853
+ function he(t, e, r) {
854
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
870
855
  try {
871
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
856
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
872
857
  } catch {
873
858
  }
874
- return e;
859
+ return t;
875
860
  }
876
- function qt(e) {
877
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
878
- return e;
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
- rt = [Y({
865
+ qe = [J({
881
866
  tagName: "wsx-marked-error"
882
867
  })];
883
- let Bt, de = class extends J {
868
+ let Lt, ne = class extends F {
884
869
  constructor() {
885
870
  super({
886
871
  styleName: "wsx-marked-error"
887
- }), It(this, "message", "");
872
+ }), Tt(this, "message", "");
888
873
  }
889
874
  static get observedAttributes() {
890
875
  return ["message"];
891
876
  }
892
- attributeChangedCallback(t, r, l) {
893
- t === "message" && (this.message = l || "", this.rerender());
877
+ attributeChangedCallback(e, r, f) {
878
+ e === "message" && (this.message = f || "", this.rerender());
894
879
  }
895
880
  render() {
896
- return /* @__PURE__ */ B("div", { class: "error" }, this.message);
881
+ return /* @__PURE__ */ D("div", { class: "error" }, this.message);
897
882
  }
898
883
  };
899
- et = de;
900
- [Bt, tt] = Ht(et, [], rt, 0, void 0, J).c;
901
- tt();
902
- function Vt(e) {
903
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
904
- }
905
- var ae = { exports: {} };
906
- function Kt(e) {
907
- try {
908
- return JSON.stringify(e);
909
- } catch {
910
- return '"[Circular]"';
911
- }
912
- }
913
- var Wt = Ft;
914
- function Ft(e, t, r) {
915
- var l = r && r.stringify || Kt, v = 1;
916
- if (typeof e == "object" && e !== null) {
917
- var R = t.length + v;
918
- if (R === 1) return e;
919
- var j = new Array(R);
920
- j[0] = l(e);
921
- for (var S = 1; S < R; S++)
922
- j[S] = l(t[S]);
923
- return j.join(" ");
924
- }
925
- if (typeof e != "string")
926
- return e;
927
- var g = t.length;
928
- if (g === 0) return e;
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
- ++L;
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 z(k) {
1077
- this._childLevel = (k._childLevel | 0) + 1, this.bindings = c, A && (this.serializers = A, this._serialize = D), t && (this._logEvent = he(
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
- z.prototype = this;
1082
- const H = new z(this);
1083
- return $e(this, H), H.child = function(...k) {
1084
- return n.call(this, o, ...k);
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
- }(e[pe][l]);
1170
- }
1171
- function rr(e, t, r, l, v) {
1172
- const {
1173
- level: R,
1174
- log: j = ($) => $
1175
- } = v.formatters || {}, S = r.slice();
1176
- let g = S[0];
1177
- const m = {};
1178
- let O = (e._childLevel | 0) + 1;
1179
- if (O < 1 && (O = 1), l && (m.time = l), R) {
1180
- const $ = R(t, e.levels.values[t]);
1181
- Object.assign(m, $);
1182
- } else
1183
- m.level = e.levels.values[t];
1184
- if (v.asObjectBindingsOnly) {
1185
- if (g !== null && typeof g == "object")
1186
- for (; O-- && typeof S[0] == "object"; )
1187
- Object.assign(m, S.shift());
1188
- return [j(m), ...S];
1189
- } else {
1190
- if (g !== null && typeof g == "object") {
1191
- for (; O-- && typeof S[0] == "object"; )
1192
- Object.assign(m, S.shift());
1193
- g = S.length ? Se(S.shift(), S) : void 0;
1194
- } else typeof g == "string" && (g = Se(S.shift(), S));
1195
- return g !== void 0 && (m[v.messageKey] = g), [j(m)];
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
- return typeof globalThis < "u" || Object.defineProperty(Object.prototype, "globalThis", {
1264
- get: function() {
1265
- return delete Object.prototype.globalThis, this.globalThis = this;
1266
- },
1267
- configurable: !0
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
- ae.exports.default = X;
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 fr(e = {}) {
1293
- const { name: t, level: r, pretty: l, pinoOptions: v } = { ...ue, ...e }, R = {
1294
- name: t || ue.name,
1295
- level: r || ue.level,
1296
- ...v
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 at {
1325
- constructor(t = {}) {
1326
- this.isProd = oe(), this.pinoLogger = fr(t);
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(t, ...r) {
1329
- this.isProd || (r.length > 0 ? this.pinoLogger.debug({ args: r }, t) : this.pinoLogger.debug(t));
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(t, ...r) {
1332
- this.isProd ? r.length > 0 ? this.pinoLogger.info({ args: r }, t) : this.pinoLogger.info(t) : r.length > 0 ? this.pinoLogger.info({ args: r }, t) : this.pinoLogger.info(t);
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(t, ...r) {
1335
- r.length > 0 ? this.pinoLogger.warn({ args: r }, t) : this.pinoLogger.warn(t);
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(t, ...r) {
1338
- r.length > 0 ? this.pinoLogger.error({ args: r }, t) : this.pinoLogger.error(t);
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(t, ...r) {
1341
- r.length > 0 ? this.pinoLogger.fatal({ args: r }, t) : this.pinoLogger.fatal(t);
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(t, ...r) {
1344
- this.isProd || (r.length > 0 ? this.pinoLogger.trace({ args: r }, t) : this.pinoLogger.trace(t));
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 pino logger instance
1121
+ * Get the underlying loglevel logger instance
1348
1122
  */
1349
- getPinoLogger() {
1350
- return this.pinoLogger;
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 at();
1354
- function dr(e, t = {}) {
1355
- return new at({
1356
- ...t,
1357
- name: t.name || `WSX:${e}`
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
- const Le = "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}";
1361
- function Ce(e) {
1362
- const t = document.createElement("div");
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 jr(e) {
1366
- if (!e || !Array.isArray(e))
1151
+ function Kt(t) {
1152
+ if (!t || !Array.isArray(t))
1367
1153
  return [];
1368
- const t = [];
1369
- return e.forEach((r) => {
1154
+ const e = [];
1155
+ return t.forEach((r) => {
1370
1156
  if (r.type === "paragraph") {
1371
- const l = r;
1372
- l.tokens && Array.isArray(l.tokens) && t.push(...l.tokens);
1373
- } else (r.type === "text" || r.type === "strong" || r.type === "em" || r.type === "link" || r.type === "code" || r.type === "br") && t.push(r);
1374
- }), t;
1375
- }
1376
- function ee(e) {
1377
- return !e || !Array.isArray(e) ? "" : e.map((t) => {
1378
- switch (t.type) {
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 t.text || "";
1166
+ return e.text || "";
1381
1167
  case "strong": {
1382
- const r = t, l = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
1383
- return `<strong>${ee(l)}</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 = t, l = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
1387
- return `<em>${ee(l)}</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 = t, l = r.title ? ` title="${Ce(r.title)}"` : "", v = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
1391
- return `<a href="${r.href || "#"}"${l}>${ee(v)}</a>`;
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>${Ce(t.text || "")}</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 st;
1403
- let lt, ct;
1404
- function fe(e, t, r) {
1405
- return (t = ut(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
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 mr(e, t, r, l, v, R) {
1408
- function j(n, o, c) {
1409
- return function(a, s) {
1410
- return c && c(a), n[o].call(a, s);
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 S(n, o) {
1414
- for (var c = 0; c < n.length; c++) n[c].call(o);
1415
- return o;
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 g(n, o, c, a) {
1418
- if (typeof n != "function" && (a || n !== void 0)) throw new TypeError(o + " must " + (c || "be") + " a function" + (a ? "" : " or undefined"));
1419
- return n;
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 m(n, o, c, a, s, A, D, z, H, k, y, h, p) {
1422
- function _(u) {
1423
- if (!p(u)) throw new TypeError("Attempted to access private element on non-instance");
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 f, w = o[0], x = o[3], C = !z;
1426
- if (!C) {
1427
- c || Array.isArray(w) || (w = [w]);
1428
- var i = {}, T = [], b = s === 3 ? "get" : s === 4 || h ? "set" : "value";
1429
- k ? (y || h ? i = { get: Ae(function() {
1430
- return x(this);
1431
- }, a, "get"), set: function(u) {
1432
- o[4](this, u);
1433
- } } : i[b] = x, y || Ae(i[b], a, s === 2 ? "" : b)) : y || (i = Object.getOwnPropertyDescriptor(n, a));
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 = n, P = w.length - 1; P >= 0; P -= c ? 2 : 1) {
1436
- var K = w[P], W = c ? w[P - 1] : void 0, F = {}, M = { kind: ["field", "accessor", "method", "getter", "setter", "class"][s], name: a, metadata: A, addInitializer: (function(u, E) {
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
- g(E, "An initializer", "be", !0), D.push(E);
1439
- }).bind(null, F) };
1225
+ E(T, "An initializer", "be", !0), j.push(T);
1226
+ }).bind(null, W) };
1440
1227
  try {
1441
- if (C) (f = g(K.call(W, d, M), "class decorators", "return")) && (d = f);
1228
+ if (L) (c = E(K.call(B, d, S), "class decorators", "return")) && (d = c);
1442
1229
  else {
1443
- var I, q;
1444
- M.static = H, M.private = k, k ? s === 2 ? I = function(u) {
1445
- return _(u), i.value;
1446
- } : (s < 4 && (I = j(i, "get", _)), s !== 3 && (q = j(i, "set", _))) : (I = function(u) {
1447
- return u[a];
1448
- }, (s < 2 || s === 4) && (q = function(u, E) {
1449
- u[a] = E;
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 = M.access = { has: k ? p.bind() : function(u) {
1452
- return a in u;
1238
+ var G = S.access = { has: b ? m.bind() : function(u) {
1239
+ return n in u;
1453
1240
  } };
1454
- if (I && (G.get = I), q && (G.set = q), d = K.call(W, h ? { get: i.get, set: i.set } : i[b], M), h) {
1455
- if (typeof d == "object" && d) (f = g(d.get, "accessor.get")) && (i.get = f), (f = g(d.set, "accessor.set")) && (i.set = f), (f = g(d.init, "accessor.init")) && T.push(f);
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 g(d, (y ? "field" : "method") + " decorators", "return") && (y ? T.push(d) : i[b] = d);
1244
+ } else E(d, (y ? "field" : "method") + " decorators", "return") && (y ? x.push(d) : i[h] = d);
1458
1245
  }
1459
1246
  } finally {
1460
- F.v = !0;
1247
+ W.v = !0;
1461
1248
  }
1462
1249
  }
1463
- return (y || h) && z.push(function(u, E) {
1464
- for (var V = T.length - 1; V >= 0; V--) E = T[V].call(u, E);
1465
- return E;
1466
- }), y || C || (k ? h ? z.push(j(i, "get"), j(i, "set")) : z.push(s === 2 ? i[b] : j.call.bind(i[b])) : Object.defineProperty(n, a, i)), d;
1467
- }
1468
- function O(n, o) {
1469
- return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: o });
1470
- }
1471
- if (arguments.length >= 6) var $ = R[Symbol.metadata || Symbol.for("Symbol.metadata")];
1472
- var N = Object.create($ ?? null), L = function(n, o, c, a) {
1473
- var s, A, D = [], z = function(b) {
1474
- return pr(b) === n;
1475
- }, H = /* @__PURE__ */ new Map();
1476
- function k(b) {
1477
- b && D.push(S.bind(null, b));
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 < o.length; y++) {
1480
- var h = o[y];
1481
- if (Array.isArray(h)) {
1482
- var p = h[1], _ = h[2], f = h.length > 3, w = 16 & p, x = !!(8 & p), C = (p &= 7) == 0, i = _ + "/" + x;
1483
- if (!C && !f) {
1484
- var T = H.get(i);
1485
- if (T === !0 || T === 3 && p !== 4 || T === 4 && p !== 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: " + _);
1486
- H.set(i, !(p > 2) || p);
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
- m(x ? n : n.prototype, h, w, f ? "#" + _ : ut(_), p, a, x ? A = A || [] : s = s || [], D, x, f, C, p === 1, x && f ? z : c);
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 k(s), k(A), D;
1492
- }(e, t, v, N);
1493
- return r.length || O(e, N), { e: L, get c() {
1494
- var n = [];
1495
- return r.length && [O(m(e, [r], l, e.name, 5, N, n), N), S.bind(null, n, e)];
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 ut(e) {
1499
- var t = hr(e, "string");
1500
- return typeof t == "symbol" ? t : t + "";
1285
+ function Fe(t) {
1286
+ var e = Dt(t, "string");
1287
+ return typeof e == "symbol" ? e : e + "";
1501
1288
  }
1502
- function hr(e, t) {
1503
- if (typeof e != "object" || !e) return e;
1504
- var r = e[Symbol.toPrimitive];
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 l = r.call(e, t);
1507
- if (typeof l != "object") return l;
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(e);
1297
+ return String(t);
1511
1298
  }
1512
- function Ae(e, t, r) {
1513
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
1299
+ function ye(t, e, r) {
1300
+ typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
1514
1301
  try {
1515
- Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
1302
+ Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
1516
1303
  } catch {
1517
1304
  }
1518
- return e;
1305
+ return t;
1519
1306
  }
1520
- function pr(e) {
1521
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
1522
- return e;
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 ie = dr("Markdown");
1525
- ct = [Y({
1311
+ const re = At("Markdown");
1312
+ Xe = [J({
1526
1313
  tagName: "wsx-markdown"
1527
1314
  })];
1528
- let br;
1529
- class yr extends J {
1315
+ let Nt;
1316
+ class Ht extends F {
1530
1317
  constructor() {
1531
- super({
1532
- styles: Le,
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: t,
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(t) {
1340
+ setCustomRenderers(e) {
1564
1341
  this.customRenderers = {
1565
1342
  ...this.customRenderers,
1566
- ...t
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__ */ B("div", { class: "marked-content" });
1356
+ return /* @__PURE__ */ D("div", { class: "marked-content" });
1580
1357
  try {
1581
- const t = ye.lexer(this.markdown);
1582
- return /* @__PURE__ */ B("div", { class: "marked-content" }, this.renderTokens(t));
1583
- } catch (t) {
1584
- return ie.error("Failed to render markdown", t), /* @__PURE__ */ B("div", { class: "marked-content" }, /* @__PURE__ */ B("wsx-marked-error", { message: `Error: ${t}` }));
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(t) {
1595
- return t.map((r) => this.renderToken(r)).filter((r) => r !== null);
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(t) {
1602
- const r = this.customRenderers[t.type];
1374
+ renderToken(e) {
1375
+ const r = this.customRenderers[e.type];
1603
1376
  if (r) {
1604
- const l = r(t, () => this.defaultRenderToken(t));
1605
- if (l !== null)
1606
- return l;
1377
+ const f = r(e, () => this.defaultRenderToken(e));
1378
+ if (f !== null)
1379
+ return f;
1607
1380
  }
1608
- return this.defaultRenderToken(t);
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(t) {
1615
- switch (t.type) {
1387
+ defaultRenderToken(e) {
1388
+ switch (e.type) {
1616
1389
  case "heading": {
1617
- const r = t;
1618
- return /* @__PURE__ */ B("wsx-marked-heading", { level: r.depth.toString(), text: ee(r.tokens) });
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 = t;
1622
- return /* @__PURE__ */ B("wsx-marked-code", { code: r.text, language: r.lang || "" });
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 = t;
1626
- return /* @__PURE__ */ B("wsx-marked-blockquote", null, this.renderTokens(r.tokens));
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__ */ B("wsx-marked-paragraph", { content: ee(t.tokens) });
1402
+ return /* @__PURE__ */ D("wsx-marked-paragraph", { content: V(e.tokens) });
1630
1403
  case "list": {
1631
- const r = t, l = r.items.map((v) => {
1632
- if (!v.tokens || !Array.isArray(v.tokens))
1633
- return ie.warn("List item has no tokens or tokens is not an array", {
1634
- item: v
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 R = this.renderTokens(v.tokens);
1637
- if (R.length === 0)
1409
+ const q = this.renderTokens(O.tokens);
1410
+ if (q.length === 0)
1638
1411
  return "";
1639
- const j = document.createElement("div");
1640
- R.forEach((g) => {
1641
- g && j.appendChild(g);
1412
+ const w = document.createElement("div");
1413
+ q.forEach((E) => {
1414
+ E && w.appendChild(E);
1642
1415
  });
1643
- const S = j.innerHTML;
1644
- return S || ie.warn("tempContainer.innerHTML is empty after appending elements", {
1645
- renderedElementsCount: R.length,
1646
- itemTokens: v.tokens
1647
- }), S;
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__ */ B("wsx-marked-list", { ordered: r.ordered ? "true" : "false", items: JSON.stringify(l) });
1422
+ return /* @__PURE__ */ D("wsx-marked-list", { ordered: r.ordered ? "true" : "false", items: f });
1650
1423
  }
1651
1424
  case "html":
1652
- return /* @__PURE__ */ B("div", null, t.text);
1425
+ return /* @__PURE__ */ D("div", null, e.text);
1653
1426
  case "hr":
1654
- return /* @__PURE__ */ B("hr", null);
1427
+ return /* @__PURE__ */ D("hr", null);
1655
1428
  case "space":
1656
1429
  return null;
1657
1430
  case "text":
1658
- return /* @__PURE__ */ B("span", null, t.text || "");
1431
+ return /* @__PURE__ */ D("span", null, e.text || "");
1659
1432
  default: {
1660
- const l = new ye.Renderer()[t.type], v = (l == null ? void 0 : l(t)) || "";
1661
- return v ? /* @__PURE__ */ B("div", null, v) : null;
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
- st = yr;
1667
- [br, lt] = mr(st, [], ct, 0, void 0, J).c;
1668
- lt();
1439
+ We = Ht;
1440
+ [Nt, Ge] = Mt(We, [], Xe, 0, void 0, F).c;
1441
+ Ge();
1669
1442
  export {
1670
- Tt as Blockquote,
1671
- vt as Code,
1672
- Bt as Error,
1673
- ht as Heading,
1674
- Nt as List,
1675
- br as Markdown,
1676
- Lt as Paragraph,
1677
- Ce as escapeHtml,
1678
- jr as extractInlineTokens,
1679
- ee as renderInlineTokens
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
  };