@wsxjs/wsx-base-components 0.0.22 → 0.0.24

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,40 +1,40 @@
1
- import { autoRegister as te, WebComponent as Q, jsx as $, LightComponent as _e } from "@wsxjs/wsx-core";
1
+ import { autoRegister as te, WebComponent as J, jsx as $, LightComponent as _e } from "@wsxjs/wsx-core";
2
2
  const yt = ':host{position:relative;display:inline-flex;padding:.25em .625em;box-sizing:border-box;vertical-align:middle;line-height:1.8;overflow:hidden;align-items:center;justify-content:center;font-size:14px;color:var(--fontColor, #333);border-radius:var(--borderRadius, .25em);background:var(--fontColor, #333);transition:background .3s,box-shadow .3s,border-color .3s,color .3s}:host([size="xxxs"]){padding:.03125em .0625em;font-size:6px;line-height:1;min-width:10px;min-height:8px;border-radius:1px}:host([size="xxs"]){padding:.0625em .125em;font-size:8px;line-height:1.1;min-width:14px;min-height:12px;border-radius:2px}:host([size="xs"]){padding:.125em .25em;font-size:10px;line-height:1.2;min-width:18px;min-height:16px;border-radius:3px}:host([size="sm"]){padding:.25em .5em;font-size:12px;line-height:1.4;min-width:24px;min-height:20px;border-radius:4px}:host([size="md"]){padding:.375em .75em;font-size:14px;line-height:1.5;min-width:32px;min-height:28px;border-radius:6px}:host([size="lg"]){padding:.5em 1em;font-size:14px;line-height:1.6;min-width:40px;min-height:32px;border-radius:6px}:host([size="xl"]){padding:.625em 1.25em;font-size:16px;line-height:1.6;min-width:48px;min-height:40px;border-radius:8px}:host([shape="circle"]){border-radius:50%}:host([disabled]),:host([loading]){pointer-events:none;opacity:.6}:host([block]){display:flex}:host([disabled]:not([variant])){background:#0000001a}:host([disabled]) .btn,:host([loading]) .btn{cursor:not-allowed;pointer-events:all}:host(:not([variant="primary"]):not([variant="danger"]):not([disabled]):hover),:host(:not([variant="primary"]):not([variant="danger"]):focus-within),:host([variant="flat"][focus]){color:var(--themeColor, #42b983);border-color:var(--themeColor, #42b983)}:host(:not([variant="primary"]):not([variant="danger"])) .btn:after{background-image:radial-gradient(circle,var(--themeColor, #42b983) 10%,transparent 10.01%)}:host([variant="primary"]){color:#fff;background:var(--themeBackground, var(--themeColor, #42b983))}:host([variant="danger"]){color:#fff;background:var(--themeBackground, var(--dangerColor, #ff7875))}:host([variant="dashed"]){border-style:dashed}:host([variant="flat"]),:host([variant="primary"]),:host([variant="danger"]){border:0;padding:calc(.25em + 1px) calc(.625em + 1px)}:host([variant="flat"]) .btn:before{content:"";position:absolute;background:var(--themeColor, #42b983);pointer-events:none;left:0;right:0;top:0;bottom:0;opacity:0;transition:.3s}:host([variant="flat"]:not([disabled]):hover) .btn:before{opacity:.1}:host(:not([disabled]):hover){z-index:1}:host([variant="flat"]:focus-within) .btn:before,:host([variant="flat"][focus]) .btn:before{opacity:.2}.btn{background:none;outline:0;border:0;position:absolute;left:0;top:0;width:100%;height:100%;padding:0;-webkit-user-select:none;user-select:none;cursor:unset}.loading{margin-right:.35em}::-moz-focus-inner{border:0}.btn:before{content:"";display:block;position:absolute;width:100%;height:100%;left:0;top:0;transition:.2s;background:#fff;opacity:0}:host(:not([disabled]):active) .btn:before{opacity:.2}.btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--x, 0);top:var(--y, 0);pointer-events:none;background-image:radial-gradient(circle,#fff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}.btn:not([disabled]):active:after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}.icon{margin-right:.35em;transition:none}:host(:empty) .icon{margin:auto}:host(:empty){padding:.65em}:host([type="flat"]:empty),:host([type="primary"]:empty){padding:calc(.65em + 1px)}::slotted(.icon){transition:none}:host([href]){cursor:pointer}';
3
3
  var Ie;
4
4
  let Fe, Le;
5
5
  function K(t, e, r) {
6
6
  return (e = Re(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
7
7
  }
8
- function xt(t, e, r, i, S, A) {
8
+ function kt(t, e, r, o, S, A) {
9
9
  function b(a, s, c) {
10
- return function(o, n) {
11
- return c && c(o), a[s].call(o, n);
10
+ return function(i, n) {
11
+ return c && c(i), a[s].call(i, n);
12
12
  };
13
13
  }
14
- function O(a, s) {
14
+ function T(a, s) {
15
15
  for (var c = 0; c < a.length; c++) a[c].call(s);
16
16
  return s;
17
17
  }
18
- function y(a, s, c, o) {
19
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
18
+ function y(a, s, c, i) {
19
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
20
20
  return a;
21
21
  }
22
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
23
- function T(f) {
22
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
23
+ function O(f) {
24
24
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
25
25
  }
26
26
  var g, _ = s[0], I = s[3], M = !p;
27
27
  if (!M) {
28
28
  c || Array.isArray(_) || (_ = [_]);
29
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
30
- k ? (m || d ? l = { get: he(function() {
29
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
30
+ x ? (m || u ? l = { get: he(function() {
31
31
  return I(this);
32
- }, o, "get"), set: function(f) {
32
+ }, i, "get"), set: function(f) {
33
33
  s[4](this, f);
34
- } } : l[E] = I, m || he(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
34
+ } } : l[E] = I, m || he(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
35
35
  }
36
36
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
37
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
37
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
38
38
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
39
39
  y(N, "An initializer", "be", !0), h.push(N);
40
40
  }).bind(null, Y) };
@@ -42,17 +42,17 @@ function xt(t, e, r, i, S, A) {
42
42
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
43
43
  else {
44
44
  var P, U;
45
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
46
- return T(f), l.value;
47
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
48
- return f[o];
45
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
46
+ return O(f), l.value;
47
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
48
+ return f[i];
49
49
  }, (n < 2 || n === 4) && (U = function(f, N) {
50
- f[o] = N;
50
+ f[i] = N;
51
51
  }));
52
- var V = z.access = { has: k ? v.bind() : function(f) {
53
- return o in f;
52
+ var V = z.access = { has: x ? v.bind() : function(f) {
53
+ return i in f;
54
54
  } };
55
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
55
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
56
56
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
57
57
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
58
58
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -61,39 +61,39 @@ function xt(t, e, r, i, S, A) {
61
61
  Y.v = !0;
62
62
  }
63
63
  }
64
- return (m || d) && p.push(function(f, N) {
64
+ return (m || u) && p.push(function(f, N) {
65
65
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
66
66
  return N;
67
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
67
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
68
68
  }
69
69
  function F(a, s) {
70
70
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
71
71
  }
72
72
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
73
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
74
- var n, u, h = [], p = function(E) {
75
- return kt(E) === a;
76
- }, x = /* @__PURE__ */ new Map();
77
- function k(E) {
78
- E && h.push(O.bind(null, E));
73
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
74
+ var n, d, h = [], p = function(E) {
75
+ return xt(E) === a;
76
+ }, k = /* @__PURE__ */ new Map();
77
+ function x(E) {
78
+ E && h.push(T.bind(null, E));
79
79
  }
80
80
  for (var m = 0; m < s.length; m++) {
81
- var d = s[m];
82
- if (Array.isArray(d)) {
83
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
81
+ var u = s[m];
82
+ if (Array.isArray(u)) {
83
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
84
84
  if (!M && !g) {
85
- var R = x.get(l);
86
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
87
- x.set(l, !(v > 2) || v);
85
+ var R = k.get(l);
86
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
87
+ k.set(l, !(v > 2) || v);
88
88
  }
89
- D(I ? a : a.prototype, d, _, g ? "#" + T : Re(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
89
+ D(I ? a : a.prototype, u, _, g ? "#" + O : Re(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
90
90
  }
91
91
  }
92
- return k(n), k(u), h;
92
+ return x(n), x(d), h;
93
93
  }(t, e, S, L);
94
94
  return r.length || F(t, L), { e: j, get c() {
95
95
  var a = [];
96
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
96
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
97
97
  } };
98
98
  }
99
99
  function Re(t) {
@@ -104,8 +104,8 @@ function wt(t, e) {
104
104
  if (typeof t != "object" || !t) return t;
105
105
  var r = t[Symbol.toPrimitive];
106
106
  if (r !== void 0) {
107
- var i = r.call(t, e);
108
- if (typeof i != "object") return i;
107
+ var o = r.call(t, e);
108
+ if (typeof o != "object") return o;
109
109
  throw new TypeError("@@toPrimitive must return a primitive value.");
110
110
  }
111
111
  return String(t);
@@ -118,7 +118,7 @@ function he(t, e, r) {
118
118
  }
119
119
  return t;
120
120
  }
121
- function kt(t) {
121
+ function xt(t) {
122
122
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
123
123
  return t;
124
124
  }
@@ -126,7 +126,7 @@ Le = [te({
126
126
  tagName: "wsx-button"
127
127
  })];
128
128
  let Et;
129
- class St extends Q {
129
+ class St extends J {
130
130
  static get observedAttributes() {
131
131
  return ["disabled", "icon", "loading", "href", "type", "target", "rel", "download", "toggle", "checked", "variant", "shape", "block", "size"];
132
132
  }
@@ -136,7 +136,7 @@ class St extends Q {
136
136
  ...e
137
137
  }), K(this, "_autoStyles", yt), K(this, "disabled", !1), K(this, "loading", !1), K(this, "toggle", !1), K(this, "checked", !1), K(this, "icon", null), K(this, "href", null), K(this, "type", null), K(this, "target", "_blank"), K(this, "rel", null), K(this, "download", null), K(this, "variant", "flat"), K(this, "size", "md"), K(this, "btnElement", void 0), K(this, "iconElement", void 0), K(this, "loadingElement", void 0), K(this, "handleMouseDown", (r) => {
138
138
  if (this.disabled) return;
139
- const i = this.getBoundingClientRect(), S = r.clientX - i.left, A = r.clientY - i.top;
139
+ const o = this.getBoundingClientRect(), S = r.clientX - o.left, A = r.clientY - o.top;
140
140
  this.style.setProperty("--x", `${S}px`), this.style.setProperty("--y", `${A}px`);
141
141
  }), K(this, "handleKeyDown", (r) => {
142
142
  (r.code === "Enter" || r.code === "Space") && r.stopPropagation();
@@ -147,10 +147,10 @@ class St extends Q {
147
147
  render() {
148
148
  const e = !!this.href, r = /* @__PURE__ */ $("a", { href: this.disabled || this.loading ? void 0 : this.href, target: this.target, rel: this.rel || void 0, download: this.download || void 0, className: "btn", onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown, ref: (S) => {
149
149
  this.btnElement = S, S && setTimeout(() => this.updateButtonState(), 0);
150
- } }, this.renderContent()), i = /* @__PURE__ */ $("button", { type: this.type || "button", disabled: this.disabled, className: "btn", onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown, ref: (S) => {
150
+ } }, this.renderContent()), o = /* @__PURE__ */ $("button", { type: this.type || "button", disabled: this.disabled, className: "btn", onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown, ref: (S) => {
151
151
  this.btnElement = S, S && setTimeout(() => this.updateButtonState(), 0);
152
152
  }, "data-wsx-key": "Button-button-text-0" }, this.renderContent());
153
- return /* @__PURE__ */ $("div", { className: "wsx-button-container" }, e ? r : i);
153
+ return /* @__PURE__ */ $("div", { className: "wsx-button-container" }, e ? r : o);
154
154
  }
155
155
  renderContent() {
156
156
  const e = [];
@@ -177,43 +177,43 @@ class St extends Q {
177
177
  /**
178
178
  * 属性变化处理
179
179
  */
180
- onAttributeChanged(e, r, i) {
180
+ onAttributeChanged(e, r, o) {
181
181
  switch (e) {
182
182
  case "disabled":
183
- this.disabled = i !== null, this.rerender();
183
+ this.disabled = o !== null, this.rerender();
184
184
  break;
185
185
  case "loading":
186
- this.loading = i !== null, this.updateButtonState(), this.rerender();
186
+ this.loading = o !== null, this.updateButtonState(), this.rerender();
187
187
  break;
188
188
  case "icon":
189
- this.icon = i, this.rerender();
189
+ this.icon = o, this.rerender();
190
190
  break;
191
191
  case "href":
192
- this.href = i, this.rerender();
192
+ this.href = o, this.rerender();
193
193
  break;
194
194
  case "type":
195
- this.type = i, this.updateButtonState();
195
+ this.type = o, this.updateButtonState();
196
196
  break;
197
197
  case "target":
198
- this.target = i || "_blank";
198
+ this.target = o || "_blank";
199
199
  break;
200
200
  case "rel":
201
- this.rel = i;
201
+ this.rel = o;
202
202
  break;
203
203
  case "download":
204
- this.download = i;
204
+ this.download = o;
205
205
  break;
206
206
  case "toggle":
207
- this.toggle = i !== null;
207
+ this.toggle = o !== null;
208
208
  break;
209
209
  case "checked":
210
- this.checked = i !== null;
210
+ this.checked = o !== null;
211
211
  break;
212
212
  case "variant":
213
- this.variant = i || "flat";
213
+ this.variant = o || "flat";
214
214
  break;
215
215
  case "size":
216
- this.size = i || "md";
216
+ this.size = o || "md";
217
217
  break;
218
218
  }
219
219
  }
@@ -259,7 +259,7 @@ class St extends Q {
259
259
  }
260
260
  }
261
261
  Ie = St;
262
- [Et, Fe] = xt(Ie, [], Le, 0, void 0, Q).c;
262
+ [Et, Fe] = kt(Ie, [], Le, 0, void 0, J).c;
263
263
  Fe();
264
264
  const At = ':host{display:inline-flex}::slotted(wsx-button:not(:first-of-type):not(:last-of-type)){border-radius:0}::slotted(wsx-button){margin:0!important}::slotted(wsx-button:not(:first-of-type)){margin-left:-1px!important}::slotted(wsx-button[type]:not([type="dashed"]):not(:first-of-type)){margin-left:1px!important}::slotted(wsx-button:first-of-type){border-top-right-radius:0;border-bottom-right-radius:0}::slotted(wsx-button:last-of-type){border-top-left-radius:0;border-bottom-left-radius:0}';
265
265
  var Ne;
@@ -267,36 +267,36 @@ let $e, De;
267
267
  function ge(t, e, r) {
268
268
  return (e = Me(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
269
269
  }
270
- function Ot(t, e, r, i, S, A) {
270
+ function Tt(t, e, r, o, S, A) {
271
271
  function b(a, s, c) {
272
- return function(o, n) {
273
- return c && c(o), a[s].call(o, n);
272
+ return function(i, n) {
273
+ return c && c(i), a[s].call(i, n);
274
274
  };
275
275
  }
276
- function O(a, s) {
276
+ function T(a, s) {
277
277
  for (var c = 0; c < a.length; c++) a[c].call(s);
278
278
  return s;
279
279
  }
280
- function y(a, s, c, o) {
281
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
280
+ function y(a, s, c, i) {
281
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
282
282
  return a;
283
283
  }
284
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
285
- function T(f) {
284
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
285
+ function O(f) {
286
286
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
287
287
  }
288
288
  var g, _ = s[0], I = s[3], M = !p;
289
289
  if (!M) {
290
290
  c || Array.isArray(_) || (_ = [_]);
291
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
292
- k ? (m || d ? l = { get: fe(function() {
291
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
292
+ x ? (m || u ? l = { get: fe(function() {
293
293
  return I(this);
294
- }, o, "get"), set: function(f) {
294
+ }, i, "get"), set: function(f) {
295
295
  s[4](this, f);
296
- } } : l[E] = I, m || fe(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
296
+ } } : l[E] = I, m || fe(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
297
297
  }
298
298
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
299
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
299
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
300
300
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
301
301
  y(N, "An initializer", "be", !0), h.push(N);
302
302
  }).bind(null, Y) };
@@ -304,17 +304,17 @@ function Ot(t, e, r, i, S, A) {
304
304
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
305
305
  else {
306
306
  var P, U;
307
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
308
- return T(f), l.value;
309
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
310
- return f[o];
307
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
308
+ return O(f), l.value;
309
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
310
+ return f[i];
311
311
  }, (n < 2 || n === 4) && (U = function(f, N) {
312
- f[o] = N;
312
+ f[i] = N;
313
313
  }));
314
- var V = z.access = { has: k ? v.bind() : function(f) {
315
- return o in f;
314
+ var V = z.access = { has: x ? v.bind() : function(f) {
315
+ return i in f;
316
316
  } };
317
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
317
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
318
318
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
319
319
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
320
320
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -323,51 +323,51 @@ function Ot(t, e, r, i, S, A) {
323
323
  Y.v = !0;
324
324
  }
325
325
  }
326
- return (m || d) && p.push(function(f, N) {
326
+ return (m || u) && p.push(function(f, N) {
327
327
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
328
328
  return N;
329
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
329
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
330
330
  }
331
331
  function F(a, s) {
332
332
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
333
333
  }
334
334
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
335
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
336
- var n, u, h = [], p = function(E) {
335
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
336
+ var n, d, h = [], p = function(E) {
337
337
  return Ct(E) === a;
338
- }, x = /* @__PURE__ */ new Map();
339
- function k(E) {
340
- E && h.push(O.bind(null, E));
338
+ }, k = /* @__PURE__ */ new Map();
339
+ function x(E) {
340
+ E && h.push(T.bind(null, E));
341
341
  }
342
342
  for (var m = 0; m < s.length; m++) {
343
- var d = s[m];
344
- if (Array.isArray(d)) {
345
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
343
+ var u = s[m];
344
+ if (Array.isArray(u)) {
345
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
346
346
  if (!M && !g) {
347
- var R = x.get(l);
348
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
349
- x.set(l, !(v > 2) || v);
347
+ var R = k.get(l);
348
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
349
+ k.set(l, !(v > 2) || v);
350
350
  }
351
- D(I ? a : a.prototype, d, _, g ? "#" + T : Me(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
351
+ D(I ? a : a.prototype, u, _, g ? "#" + O : Me(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
352
352
  }
353
353
  }
354
- return k(n), k(u), h;
354
+ return x(n), x(d), h;
355
355
  }(t, e, S, L);
356
356
  return r.length || F(t, L), { e: j, get c() {
357
357
  var a = [];
358
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
358
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
359
359
  } };
360
360
  }
361
361
  function Me(t) {
362
- var e = Tt(t, "string");
362
+ var e = Ot(t, "string");
363
363
  return typeof e == "symbol" ? e : e + "";
364
364
  }
365
- function Tt(t, e) {
365
+ function Ot(t, e) {
366
366
  if (typeof t != "object" || !t) return t;
367
367
  var r = t[Symbol.toPrimitive];
368
368
  if (r !== void 0) {
369
- var i = r.call(t, e);
370
- if (typeof i != "object") return i;
369
+ var o = r.call(t, e);
370
+ if (typeof o != "object") return o;
371
371
  throw new TypeError("@@toPrimitive must return a primitive value.");
372
372
  }
373
373
  return String(t);
@@ -388,7 +388,7 @@ De = [te({
388
388
  tagName: "wsx-button-group"
389
389
  })];
390
390
  let _t;
391
- class It extends Q {
391
+ class It extends J {
392
392
  static get observedAttributes() {
393
393
  return ["disabled"];
394
394
  }
@@ -404,10 +404,10 @@ class It extends Q {
404
404
  /**
405
405
  * 属性变化处理
406
406
  */
407
- onAttributeChanged(e, r, i) {
407
+ onAttributeChanged(e, r, o) {
408
408
  switch (e) {
409
409
  case "disabled":
410
- this.disabled = i !== null, setTimeout(() => {
410
+ this.disabled = o !== null, setTimeout(() => {
411
411
  this.updateChildrenDisabledState();
412
412
  }, 0);
413
413
  break;
@@ -462,9 +462,9 @@ class It extends Q {
462
462
  }
463
463
  }
464
464
  Ne = It;
465
- [_t, $e] = Ot(Ne, [], De, 0, void 0, Q).c;
465
+ [_t, $e] = Tt(Ne, [], De, 0, void 0, J).c;
466
466
  $e();
467
- var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
467
+ var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
468
468
  function ze(t) {
469
469
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
470
470
  }
@@ -472,24 +472,24 @@ var Pe = { exports: {} };
472
472
  (function(t) {
473
473
  (function(e, r) {
474
474
  t.exports ? t.exports = r() : e.log = r();
475
- })(de, function() {
475
+ })(ue, function() {
476
476
  var e = function() {
477
- }, r = "undefined", i = typeof window !== r && typeof window.navigator !== r && /Trident\/|MSIE /.test(window.navigator.userAgent), S = [
477
+ }, r = "undefined", o = typeof window !== r && typeof window.navigator !== r && /Trident\/|MSIE /.test(window.navigator.userAgent), S = [
478
478
  "trace",
479
479
  "debug",
480
480
  "info",
481
481
  "warn",
482
482
  "error"
483
483
  ], A = {}, b = null;
484
- function O(s, c) {
485
- var o = s[c];
486
- if (typeof o.bind == "function")
487
- return o.bind(s);
484
+ function T(s, c) {
485
+ var i = s[c];
486
+ if (typeof i.bind == "function")
487
+ return i.bind(s);
488
488
  try {
489
- return Function.prototype.bind.call(o, s);
489
+ return Function.prototype.bind.call(i, s);
490
490
  } catch {
491
491
  return function() {
492
- return Function.prototype.apply.apply(o, [s, arguments]);
492
+ return Function.prototype.apply.apply(i, [s, arguments]);
493
493
  };
494
494
  }
495
495
  }
@@ -497,12 +497,12 @@ var Pe = { exports: {} };
497
497
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
498
498
  }
499
499
  function D(s) {
500
- return s === "debug" && (s = "log"), typeof console === r ? !1 : s === "trace" && i ? y : console[s] !== void 0 ? O(console, s) : console.log !== void 0 ? O(console, "log") : e;
500
+ return s === "debug" && (s = "log"), typeof console === r ? !1 : s === "trace" && o ? y : console[s] !== void 0 ? T(console, s) : console.log !== void 0 ? T(console, "log") : e;
501
501
  }
502
502
  function F() {
503
503
  for (var s = this.getLevel(), c = 0; c < S.length; c++) {
504
- var o = S[c];
505
- this[o] = c < s ? e : this.methodFactory(o, s, this.name);
504
+ var i = S[c];
505
+ this[i] = c < s ? e : this.methodFactory(i, s, this.name);
506
506
  }
507
507
  if (this.log = this.debug, typeof console === r && s < this.levels.SILENT)
508
508
  return "No console available for logging";
@@ -512,14 +512,14 @@ var Pe = { exports: {} };
512
512
  typeof console !== r && (F.call(this), this[s].apply(this, arguments));
513
513
  };
514
514
  }
515
- function L(s, c, o) {
515
+ function L(s, c, i) {
516
516
  return D(s) || C.apply(this, arguments);
517
517
  }
518
518
  function j(s, c) {
519
- var o = this, n, u, h, p = "loglevel";
519
+ var i = this, n, d, h, p = "loglevel";
520
520
  typeof s == "string" ? p += ":" + s : typeof s == "symbol" && (p = void 0);
521
- function x(T) {
522
- var g = (S[T] || "silent").toUpperCase();
521
+ function k(O) {
522
+ var g = (S[O] || "silent").toUpperCase();
523
523
  if (!(typeof window === r || !p)) {
524
524
  try {
525
525
  window.localStorage[p] = g;
@@ -532,22 +532,22 @@ var Pe = { exports: {} };
532
532
  }
533
533
  }
534
534
  }
535
- function k() {
536
- var T;
535
+ function x() {
536
+ var O;
537
537
  if (!(typeof window === r || !p)) {
538
538
  try {
539
- T = window.localStorage[p];
539
+ O = window.localStorage[p];
540
540
  } catch {
541
541
  }
542
- if (typeof T === r)
542
+ if (typeof O === r)
543
543
  try {
544
544
  var g = window.document.cookie, _ = encodeURIComponent(p), I = g.indexOf(_ + "=");
545
- I !== -1 && (T = /^([^;]+)/.exec(
545
+ I !== -1 && (O = /^([^;]+)/.exec(
546
546
  g.slice(I + _.length + 1)
547
547
  )[1]);
548
548
  } catch {
549
549
  }
550
- return o.levels[T] === void 0 && (T = void 0), T;
550
+ return i.levels[O] === void 0 && (O = void 0), O;
551
551
  }
552
552
  }
553
553
  function m() {
@@ -562,49 +562,49 @@ var Pe = { exports: {} };
562
562
  }
563
563
  }
564
564
  }
565
- function d(T) {
566
- var g = T;
567
- if (typeof g == "string" && o.levels[g.toUpperCase()] !== void 0 && (g = o.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= o.levels.SILENT)
565
+ function u(O) {
566
+ var g = O;
567
+ if (typeof g == "string" && i.levels[g.toUpperCase()] !== void 0 && (g = i.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= i.levels.SILENT)
568
568
  return g;
569
- throw new TypeError("log.setLevel() called with invalid level: " + T);
569
+ throw new TypeError("log.setLevel() called with invalid level: " + O);
570
570
  }
571
- o.name = s, o.levels = {
571
+ i.name = s, i.levels = {
572
572
  TRACE: 0,
573
573
  DEBUG: 1,
574
574
  INFO: 2,
575
575
  WARN: 3,
576
576
  ERROR: 4,
577
577
  SILENT: 5
578
- }, o.methodFactory = c || L, o.getLevel = function() {
579
- return h ?? u ?? n;
580
- }, o.setLevel = function(T, g) {
581
- return h = d(T), g !== !1 && x(h), F.call(o);
582
- }, o.setDefaultLevel = function(T) {
583
- u = d(T), k() || o.setLevel(T, !1);
584
- }, o.resetLevel = function() {
585
- h = null, m(), F.call(o);
586
- }, o.enableAll = function(T) {
587
- o.setLevel(o.levels.TRACE, T);
588
- }, o.disableAll = function(T) {
589
- o.setLevel(o.levels.SILENT, T);
590
- }, o.rebuild = function() {
591
- if (b !== o && (n = d(b.getLevel())), F.call(o), b === o)
592
- for (var T in A)
593
- A[T].rebuild();
594
- }, n = d(
578
+ }, i.methodFactory = c || L, i.getLevel = function() {
579
+ return h ?? d ?? n;
580
+ }, i.setLevel = function(O, g) {
581
+ return h = u(O), g !== !1 && k(h), F.call(i);
582
+ }, i.setDefaultLevel = function(O) {
583
+ d = u(O), x() || i.setLevel(O, !1);
584
+ }, i.resetLevel = function() {
585
+ h = null, m(), F.call(i);
586
+ }, i.enableAll = function(O) {
587
+ i.setLevel(i.levels.TRACE, O);
588
+ }, i.disableAll = function(O) {
589
+ i.setLevel(i.levels.SILENT, O);
590
+ }, i.rebuild = function() {
591
+ if (b !== i && (n = u(b.getLevel())), F.call(i), b === i)
592
+ for (var O in A)
593
+ A[O].rebuild();
594
+ }, n = u(
595
595
  b ? b.getLevel() : "WARN"
596
596
  );
597
- var v = k();
598
- v != null && (h = d(v)), F.call(o);
597
+ var v = x();
598
+ v != null && (h = u(v)), F.call(i);
599
599
  }
600
600
  b = new j(), b.getLogger = function(c) {
601
601
  if (typeof c != "symbol" && typeof c != "string" || c === "")
602
602
  throw new TypeError("You must supply a name when creating a logger.");
603
- var o = A[c];
604
- return o || (o = A[c] = new j(
603
+ var i = A[c];
604
+ return i || (i = A[c] = new j(
605
605
  c,
606
606
  b.methodFactory
607
- )), o;
607
+ )), i;
608
608
  };
609
609
  var a = typeof window !== r ? window.log : void 0;
610
610
  return b.noConflict = function() {
@@ -637,8 +637,8 @@ function pe() {
637
637
  try {
638
638
  const r = globalThis;
639
639
  if ((e = (t = r.import) == null ? void 0 : t.meta) != null && e.env) {
640
- const i = r.import.meta.env;
641
- return i.MODE === "production" || i.PROD === !0;
640
+ const o = r.import.meta.env;
641
+ return o.MODE === "production" || o.PROD === !0;
642
642
  }
643
643
  } catch {
644
644
  }
@@ -650,7 +650,7 @@ const ie = {
650
650
  pretty: !pe()
651
651
  };
652
652
  function Nt(t = {}) {
653
- const { name: e, level: r } = { ...ie, ...t }, i = e || ie.name, S = Lt.getLogger(i), A = r || ie.level;
653
+ const { name: e, level: r } = { ...ie, ...t }, o = e || ie.name, S = Lt.getLogger(o), A = r || ie.level;
654
654
  return S.setLevel(je[A]), S;
655
655
  }
656
656
  function re(t, e) {
@@ -662,40 +662,40 @@ class Be {
662
662
  }
663
663
  debug(e, ...r) {
664
664
  if (!this.isProd || this.shouldLog("debug")) {
665
- const i = re(this.name, e);
666
- r.length > 0 ? this.logInstance.debug(i, ...r) : this.logInstance.debug(i);
665
+ const o = re(this.name, e);
666
+ r.length > 0 ? this.logInstance.debug(o, ...r) : this.logInstance.debug(o);
667
667
  }
668
668
  }
669
669
  info(e, ...r) {
670
670
  if (this.shouldLog("info")) {
671
- const i = re(this.name, e);
672
- r.length > 0 ? this.logInstance.info(i, ...r) : this.logInstance.info(i);
671
+ const o = re(this.name, e);
672
+ r.length > 0 ? this.logInstance.info(o, ...r) : this.logInstance.info(o);
673
673
  }
674
674
  }
675
675
  warn(e, ...r) {
676
- const i = re(this.name, e);
677
- r.length > 0 ? this.logInstance.warn(i, ...r) : this.logInstance.warn(i);
676
+ const o = re(this.name, e);
677
+ r.length > 0 ? this.logInstance.warn(o, ...r) : this.logInstance.warn(o);
678
678
  }
679
679
  error(e, ...r) {
680
- const i = re(this.name, e);
681
- r.length > 0 ? this.logInstance.error(i, ...r) : this.logInstance.error(i);
680
+ const o = re(this.name, e);
681
+ r.length > 0 ? this.logInstance.error(o, ...r) : this.logInstance.error(o);
682
682
  }
683
683
  fatal(e, ...r) {
684
- const i = re(this.name, e);
685
- r.length > 0 ? this.logInstance.error(`[FATAL] ${i}`, ...r) : this.logInstance.error(`[FATAL] ${i}`);
684
+ const o = re(this.name, e);
685
+ r.length > 0 ? this.logInstance.error(`[FATAL] ${o}`, ...r) : this.logInstance.error(`[FATAL] ${o}`);
686
686
  }
687
687
  trace(e, ...r) {
688
688
  if (!this.isProd || this.shouldLog("trace")) {
689
- const i = re(this.name, e);
690
- r.length > 0 ? this.logInstance.trace(i, ...r) : this.logInstance.trace(i);
689
+ const o = re(this.name, e);
690
+ r.length > 0 ? this.logInstance.trace(o, ...r) : this.logInstance.trace(o);
691
691
  }
692
692
  }
693
693
  /**
694
694
  * Check if a log level should be logged based on current level
695
695
  */
696
696
  shouldLog(e) {
697
- const r = ["trace", "debug", "info", "warn", "error", "silent"], i = r.indexOf(this.currentLevel);
698
- return r.indexOf(e) >= i;
697
+ const r = ["trace", "debug", "info", "warn", "error", "silent"], o = r.indexOf(this.currentLevel);
698
+ return r.indexOf(e) >= o;
699
699
  }
700
700
  /**
701
701
  * Get the underlying loglevel logger instance
@@ -753,9 +753,9 @@ function jt(t) {
753
753
  }
754
754
  function Bt(t, e) {
755
755
  let r = null;
756
- return (...i) => {
756
+ return (...o) => {
757
757
  r || (r = setTimeout(() => {
758
- t(...i), r = null;
758
+ t(...o), r = null;
759
759
  }, e));
760
760
  };
761
761
  }
@@ -766,39 +766,39 @@ function _r(t, e) {
766
766
  const Ir = "ce-inline-toolbar__dropdown", Fr = "ce-conversion-toolbar--showed", Ut = '.color-section{display:inline-block;position:relative}.color-popover{display:inline-block;position:relative;overflow:visible}.color-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #e1e5e9;border-radius:3px;background:var(--theme-color, #000);color:transparent;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.color-btn:hover:not(.disabled){border-color:#3f51b5;box-shadow:0 2px 8px #3f51b54d}.color-btn.disabled{opacity:.5;cursor:not-allowed}.color-indicator{font-size:12px;line-height:1;-webkit-user-select:none;user-select:none}.color-panel{position:absolute;top:100%;left:0;z-index:10000;background:#fff;border:1px solid #e1e5e9;border-radius:6px;box-shadow:0 4px 20px #00000026;padding:8px;margin-top:4px;box-sizing:border-box;transform-origin:top left;animation:colorPanelShow .2s ease-out}@keyframes colorPanelShow{0%{opacity:0;transform:scale(.9) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;min-width:160px}.color-cube{width:20px;height:20px;border:1px solid #e1e5e9;border-radius:3px;cursor:pointer;transition:all .2s ease;box-sizing:border-box;background-color:var(--cube-color, #000)}.color-cube:hover{border-color:#3f51b5;transform:scale(1.1);box-shadow:0 2px 8px #3f51b566;z-index:1}.color-cube:active{transform:scale(.95)}.color-cube.custom-picker{background:linear-gradient(45deg,red,#ff8000,#ff0,#80ff00 42%,#0f0 57%,#00ff80,#0ff 85%,#0080ff);position:relative}.color-cube.custom-picker:after{content:"+";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:700;text-shadow:0 0 2px rgba(0,0,0,.8);pointer-events:none}:host([disabled]) .color-btn{opacity:.5;cursor:not-allowed}:host([open]) .color-panel{display:block}:host(:not([open])) .color-panel{display:none}@media (max-width: 768px){.color-panel{position:fixed;top:auto;left:50%;bottom:10px;transform:translate(-50%);width:90vw;max-width:300px}.color-grid{grid-template-columns:repeat(8,1fr);gap:6px}.color-cube{width:24px;height:24px}}@media (prefers-color-scheme: dark){.color-panel{background:#2d2d2d;border-color:#404040;color:#fff}.color-btn,.color-cube{border-color:#404040}}';
767
767
  var He;
768
768
  let Ge, We;
769
- function X(t, e, r) {
769
+ function q(t, e, r) {
770
770
  return (e = Ve(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
771
771
  }
772
- function Ht(t, e, r, i, S, A) {
772
+ function Ht(t, e, r, o, S, A) {
773
773
  function b(a, s, c) {
774
- return function(o, n) {
775
- return c && c(o), a[s].call(o, n);
774
+ return function(i, n) {
775
+ return c && c(i), a[s].call(i, n);
776
776
  };
777
777
  }
778
- function O(a, s) {
778
+ function T(a, s) {
779
779
  for (var c = 0; c < a.length; c++) a[c].call(s);
780
780
  return s;
781
781
  }
782
- function y(a, s, c, o) {
783
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
782
+ function y(a, s, c, i) {
783
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
784
784
  return a;
785
785
  }
786
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
787
- function T(f) {
786
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
787
+ function O(f) {
788
788
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
789
789
  }
790
790
  var g, _ = s[0], I = s[3], M = !p;
791
791
  if (!M) {
792
792
  c || Array.isArray(_) || (_ = [_]);
793
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
794
- k ? (m || d ? l = { get: be(function() {
793
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
794
+ x ? (m || u ? l = { get: be(function() {
795
795
  return I(this);
796
- }, o, "get"), set: function(f) {
796
+ }, i, "get"), set: function(f) {
797
797
  s[4](this, f);
798
- } } : l[E] = I, m || be(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
798
+ } } : l[E] = I, m || be(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
799
799
  }
800
800
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
801
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
801
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
802
802
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
803
803
  y(N, "An initializer", "be", !0), h.push(N);
804
804
  }).bind(null, Y) };
@@ -806,17 +806,17 @@ function Ht(t, e, r, i, S, A) {
806
806
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
807
807
  else {
808
808
  var P, U;
809
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
810
- return T(f), l.value;
811
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
812
- return f[o];
809
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
810
+ return O(f), l.value;
811
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
812
+ return f[i];
813
813
  }, (n < 2 || n === 4) && (U = function(f, N) {
814
- f[o] = N;
814
+ f[i] = N;
815
815
  }));
816
- var V = z.access = { has: k ? v.bind() : function(f) {
817
- return o in f;
816
+ var V = z.access = { has: x ? v.bind() : function(f) {
817
+ return i in f;
818
818
  } };
819
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
819
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
820
820
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
821
821
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
822
822
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -825,39 +825,39 @@ function Ht(t, e, r, i, S, A) {
825
825
  Y.v = !0;
826
826
  }
827
827
  }
828
- return (m || d) && p.push(function(f, N) {
828
+ return (m || u) && p.push(function(f, N) {
829
829
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
830
830
  return N;
831
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
831
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
832
832
  }
833
833
  function F(a, s) {
834
834
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
835
835
  }
836
836
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
837
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
838
- var n, u, h = [], p = function(E) {
837
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
838
+ var n, d, h = [], p = function(E) {
839
839
  return Wt(E) === a;
840
- }, x = /* @__PURE__ */ new Map();
841
- function k(E) {
842
- E && h.push(O.bind(null, E));
840
+ }, k = /* @__PURE__ */ new Map();
841
+ function x(E) {
842
+ E && h.push(T.bind(null, E));
843
843
  }
844
844
  for (var m = 0; m < s.length; m++) {
845
- var d = s[m];
846
- if (Array.isArray(d)) {
847
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
845
+ var u = s[m];
846
+ if (Array.isArray(u)) {
847
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
848
848
  if (!M && !g) {
849
- var R = x.get(l);
850
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
851
- x.set(l, !(v > 2) || v);
849
+ var R = k.get(l);
850
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
851
+ k.set(l, !(v > 2) || v);
852
852
  }
853
- D(I ? a : a.prototype, d, _, g ? "#" + T : Ve(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
853
+ D(I ? a : a.prototype, u, _, g ? "#" + O : Ve(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
854
854
  }
855
855
  }
856
- return k(n), k(u), h;
856
+ return x(n), x(d), h;
857
857
  }(t, e, S, L);
858
858
  return r.length || F(t, L), { e: j, get c() {
859
859
  var a = [];
860
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
860
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
861
861
  } };
862
862
  }
863
863
  function Ve(t) {
@@ -868,8 +868,8 @@ function Gt(t, e) {
868
868
  if (typeof t != "object" || !t) return t;
869
869
  var r = t[Symbol.toPrimitive];
870
870
  if (r !== void 0) {
871
- var i = r.call(t, e);
872
- if (typeof i != "object") return i;
871
+ var o = r.call(t, e);
872
+ if (typeof o != "object") return o;
873
873
  throw new TypeError("@@toPrimitive must return a primitive value.");
874
874
  }
875
875
  return String(t);
@@ -891,7 +891,7 @@ We = [te({
891
891
  tagName: "color-picker"
892
892
  })];
893
893
  let Yt;
894
- class Kt extends Q {
894
+ class Kt extends J {
895
895
  static get observedAttributes() {
896
896
  return ["disabled", "selected-color", "open"];
897
897
  }
@@ -899,23 +899,23 @@ class Kt extends Q {
899
899
  super({
900
900
  styleName: "base-color-picker",
901
901
  ...e
902
- }), X(this, "_autoStyles", Ut), X(this, "colorCollections", void 0), X(this, "onColorPicked", void 0), X(this, "hasCustomPicker", void 0), X(this, "defaultColor", void 0), X(this, "pluginType", void 0), X(this, "disabled", void 0), X(this, "selectedColor", void 0), X(this, "customColor", void 0), X(this, "isOpen", void 0), X(this, "colorBtn", void 0), X(this, "colorPanel", void 0), X(this, "handleButtonClick", (r) => {
902
+ }), q(this, "_autoStyles", Ut), q(this, "colorCollections", void 0), q(this, "onColorPicked", void 0), q(this, "hasCustomPicker", void 0), q(this, "defaultColor", void 0), q(this, "pluginType", void 0), q(this, "disabled", void 0), q(this, "selectedColor", void 0), q(this, "customColor", void 0), q(this, "isOpen", void 0), q(this, "colorBtn", void 0), q(this, "colorPanel", void 0), q(this, "handleButtonClick", (r) => {
903
903
  r.stopPropagation(), this.togglePanel();
904
- }), X(this, "handlePanelClick", (r) => {
904
+ }), q(this, "handlePanelClick", (r) => {
905
905
  r.stopPropagation();
906
- }), X(this, "handleColorSelect", (r) => {
906
+ }), q(this, "handleColorSelect", (r) => {
907
907
  var S;
908
- const i = se(r);
909
- this.setSelectedColor(i), this.closePanel(), zt(i, this.pluginType), (S = this.onColorPicked) == null || S.call(this, i), this.dispatchEvent(new CustomEvent("colorchange", {
908
+ const o = se(r);
909
+ this.setSelectedColor(o), this.closePanel(), zt(o, this.pluginType), (S = this.onColorPicked) == null || S.call(this, o), this.dispatchEvent(new CustomEvent("colorchange", {
910
910
  detail: {
911
- color: i
911
+ color: o
912
912
  },
913
913
  bubbles: !0,
914
914
  composed: !0
915
915
  })), oe.debug("Color selected", {
916
- color: i
916
+ color: o
917
917
  });
918
- }), X(this, "handleCustomPickerClick", () => {
918
+ }), q(this, "handleCustomPickerClick", () => {
919
919
  const r = document.createElement("input");
920
920
  r.type = "color", r.value = this.customColor, r.style.cssText = `
921
921
  position: fixed;
@@ -923,10 +923,10 @@ class Kt extends Q {
923
923
  opacity: 0;
924
924
  pointer-events: none;
925
925
  `;
926
- const i = Bt((S) => {
927
- var O;
926
+ const o = Bt((S) => {
927
+ var T;
928
928
  const A = S.target, b = se(A.value);
929
- this.setSelectedColor(b), this.setCustomColor(b), document.body.removeChild(r), (O = this.onColorPicked) == null || O.call(this, b), this.dispatchEvent(new CustomEvent("colorchange", {
929
+ this.setSelectedColor(b), this.setCustomColor(b), document.body.removeChild(r), (T = this.onColorPicked) == null || T.call(this, b), this.dispatchEvent(new CustomEvent("colorchange", {
930
930
  detail: {
931
931
  color: b
932
932
  },
@@ -936,10 +936,10 @@ class Kt extends Q {
936
936
  color: b
937
937
  });
938
938
  }, 30);
939
- r.addEventListener("input", i), document.body.appendChild(r), requestAnimationFrame(() => {
939
+ r.addEventListener("input", o), document.body.appendChild(r), requestAnimationFrame(() => {
940
940
  r.focus(), r.click();
941
941
  });
942
- }), X(this, "handleDocumentClick", (r) => {
942
+ }), q(this, "handleDocumentClick", (r) => {
943
943
  this.isOpen && !this.contains(r.target) && this.closePanel();
944
944
  }), this.colorCollections = e.colorCollections || Vt, this.onColorPicked = e.onColorPicked, this.hasCustomPicker = e.hasCustomPicker || !1, this.pluginType = e.pluginType || "text", this.disabled = e.disabled || !1, this.defaultColor = se(e.defaultColor || this.colorCollections[0]), this.selectedColor = this.defaultColor, this.customColor = jt(this.pluginType) || "", this.isOpen = !1, oe.debug("ColorPicker initialized", {
945
945
  colorCollections: this.colorCollections.length,
@@ -1037,16 +1037,16 @@ class Kt extends Q {
1037
1037
  /**
1038
1038
  * 属性变化处理
1039
1039
  */
1040
- onAttributeChanged(e, r, i) {
1040
+ onAttributeChanged(e, r, o) {
1041
1041
  switch (e) {
1042
1042
  case "disabled":
1043
- this.disabled = i !== null, this.rerender();
1043
+ this.disabled = o !== null, this.rerender();
1044
1044
  break;
1045
1045
  case "selected-color":
1046
- i && i !== this.selectedColor && (this.selectedColor = i, this.updateColorButton());
1046
+ o && o !== this.selectedColor && (this.selectedColor = o, this.updateColorButton());
1047
1047
  break;
1048
1048
  case "open":
1049
- this.isOpen = i !== null;
1049
+ this.isOpen = o !== null;
1050
1050
  break;
1051
1051
  }
1052
1052
  }
@@ -1071,44 +1071,44 @@ class Kt extends Q {
1071
1071
  }
1072
1072
  }
1073
1073
  He = Kt;
1074
- [Yt, Ge] = Ht(He, [], We, 0, void 0, Q).c;
1074
+ [Yt, Ge] = Ht(He, [], We, 0, void 0, J).c;
1075
1075
  Ge();
1076
1076
  const Zt = ":host{display:block}.theme-switcher-container{position:relative;display:flex;align-items:center}.theme-switcher-btn{width:var(--theme-switcher-width, 2.5rem);height:var(--theme-switcher-height, 2.5rem);padding:var(--theme-switcher-padding, .5rem);border-radius:var(--theme-switcher-border-radius, 8px);background:var(--theme-switcher-bg, #dc2626);border:var(--theme-switcher-border, none);color:var(--theme-switcher-color, white);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--theme-switcher-transition, .3s ease);box-shadow:var(--theme-switcher-shadow, 0 4px 15px rgba(220, 38, 38, .4));font-weight:var(--theme-switcher-font-weight, 600);font-family:var(--theme-switcher-font-family, inherit)}.theme-switcher-btn:hover{background:var(--theme-switcher-hover-bg, #b91c1c);transform:var(--theme-switcher-hover-transform, translateY(-2px));box-shadow:var(--theme-switcher-hover-shadow, 0 8px 25px rgba(220, 38, 38, .5))}.theme-switcher-btn:active{transform:var(--theme-switcher-active-transform, translateY(0))}.theme-switcher-icon{font-size:var(--theme-switcher-icon-size, 1rem);line-height:1;transition:transform var(--theme-switcher-icon-transition, .3s ease)}.theme-switcher-btn:hover .theme-switcher-icon{transform:var(--theme-switcher-icon-hover-transform, rotate(360deg))}.theme-switcher-btn[data-theme=light]{background:var(--theme-switcher-light-bg, #dc2626);color:var(--theme-switcher-light-color, white)}.theme-switcher-btn[data-theme=light]:hover{background:var(--theme-switcher-light-hover-bg, #b91c1c)}.theme-switcher-btn[data-theme=dark]{background:var(--theme-switcher-dark-bg, #dc2626);color:var(--theme-switcher-dark-color, white)}.theme-switcher-btn[data-theme=dark]:hover{background:var(--theme-switcher-dark-hover-bg, #b91c1c)}.theme-switcher-btn[data-theme=auto]{background:var(--theme-switcher-auto-bg, linear-gradient(135deg, #dc2626, #b91c1c));color:var(--theme-switcher-auto-color, white)}.theme-switcher-btn[data-theme=auto]:hover{background:var(--theme-switcher-auto-hover-bg, linear-gradient(135deg, #b91c1c, #991b1b))}@media (max-width: 768px){.theme-switcher-btn{width:var(--theme-switcher-mobile-width, 2rem);height:var(--theme-switcher-mobile-height, 2rem)}.theme-switcher-icon{font-size:var(--theme-switcher-mobile-icon-size, .9rem)}}";
1077
1077
  var Ye;
1078
1078
  let Ke, Ze;
1079
- function ue(t, e, r) {
1079
+ function de(t, e, r) {
1080
1080
  return (e = Xe(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1081
1081
  }
1082
- function Xt(t, e, r, i, S, A) {
1082
+ function Xt(t, e, r, o, S, A) {
1083
1083
  function b(a, s, c) {
1084
- return function(o, n) {
1085
- return c && c(o), a[s].call(o, n);
1084
+ return function(i, n) {
1085
+ return c && c(i), a[s].call(i, n);
1086
1086
  };
1087
1087
  }
1088
- function O(a, s) {
1088
+ function T(a, s) {
1089
1089
  for (var c = 0; c < a.length; c++) a[c].call(s);
1090
1090
  return s;
1091
1091
  }
1092
- function y(a, s, c, o) {
1093
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
1092
+ function y(a, s, c, i) {
1093
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1094
1094
  return a;
1095
1095
  }
1096
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
1097
- function T(f) {
1096
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1097
+ function O(f) {
1098
1098
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1099
1099
  }
1100
1100
  var g, _ = s[0], I = s[3], M = !p;
1101
1101
  if (!M) {
1102
1102
  c || Array.isArray(_) || (_ = [_]);
1103
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
1104
- k ? (m || d ? l = { get: me(function() {
1103
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1104
+ x ? (m || u ? l = { get: me(function() {
1105
1105
  return I(this);
1106
- }, o, "get"), set: function(f) {
1106
+ }, i, "get"), set: function(f) {
1107
1107
  s[4](this, f);
1108
- } } : l[E] = I, m || me(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
1108
+ } } : l[E] = I, m || me(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1109
1109
  }
1110
1110
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1111
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
1111
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1112
1112
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1113
1113
  y(N, "An initializer", "be", !0), h.push(N);
1114
1114
  }).bind(null, Y) };
@@ -1116,17 +1116,17 @@ function Xt(t, e, r, i, S, A) {
1116
1116
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1117
1117
  else {
1118
1118
  var P, U;
1119
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
1120
- return T(f), l.value;
1121
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
1122
- return f[o];
1119
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1120
+ return O(f), l.value;
1121
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1122
+ return f[i];
1123
1123
  }, (n < 2 || n === 4) && (U = function(f, N) {
1124
- f[o] = N;
1124
+ f[i] = N;
1125
1125
  }));
1126
- var V = z.access = { has: k ? v.bind() : function(f) {
1127
- return o in f;
1126
+ var V = z.access = { has: x ? v.bind() : function(f) {
1127
+ return i in f;
1128
1128
  } };
1129
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
1129
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1130
1130
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1131
1131
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1132
1132
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -1135,39 +1135,39 @@ function Xt(t, e, r, i, S, A) {
1135
1135
  Y.v = !0;
1136
1136
  }
1137
1137
  }
1138
- return (m || d) && p.push(function(f, N) {
1138
+ return (m || u) && p.push(function(f, N) {
1139
1139
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1140
1140
  return N;
1141
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
1141
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1142
1142
  }
1143
1143
  function F(a, s) {
1144
1144
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1145
1145
  }
1146
1146
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1147
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
1148
- var n, u, h = [], p = function(E) {
1147
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
1148
+ var n, d, h = [], p = function(E) {
1149
1149
  return Qt(E) === a;
1150
- }, x = /* @__PURE__ */ new Map();
1151
- function k(E) {
1152
- E && h.push(O.bind(null, E));
1150
+ }, k = /* @__PURE__ */ new Map();
1151
+ function x(E) {
1152
+ E && h.push(T.bind(null, E));
1153
1153
  }
1154
1154
  for (var m = 0; m < s.length; m++) {
1155
- var d = s[m];
1156
- if (Array.isArray(d)) {
1157
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
1155
+ var u = s[m];
1156
+ if (Array.isArray(u)) {
1157
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1158
1158
  if (!M && !g) {
1159
- var R = x.get(l);
1160
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
1161
- x.set(l, !(v > 2) || v);
1159
+ var R = k.get(l);
1160
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
1161
+ k.set(l, !(v > 2) || v);
1162
1162
  }
1163
- D(I ? a : a.prototype, d, _, g ? "#" + T : Xe(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1163
+ D(I ? a : a.prototype, u, _, g ? "#" + O : Xe(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1164
1164
  }
1165
1165
  }
1166
- return k(n), k(u), h;
1166
+ return x(n), x(d), h;
1167
1167
  }(t, e, S, L);
1168
1168
  return r.length || F(t, L), { e: j, get c() {
1169
1169
  var a = [];
1170
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
1170
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1171
1171
  } };
1172
1172
  }
1173
1173
  function Xe(t) {
@@ -1178,8 +1178,8 @@ function qt(t, e) {
1178
1178
  if (typeof t != "object" || !t) return t;
1179
1179
  var r = t[Symbol.toPrimitive];
1180
1180
  if (r !== void 0) {
1181
- var i = r.call(t, e);
1182
- if (typeof i != "object") return i;
1181
+ var o = r.call(t, e);
1182
+ if (typeof o != "object") return o;
1183
1183
  throw new TypeError("@@toPrimitive must return a primitive value.");
1184
1184
  }
1185
1185
  return String(t);
@@ -1200,13 +1200,13 @@ Ze = [te({
1200
1200
  tagName: "theme-switcher"
1201
1201
  })];
1202
1202
  let Jt;
1203
- class er extends Q {
1203
+ class er extends J {
1204
1204
  constructor() {
1205
1205
  super({
1206
1206
  styleName: "theme-switcher"
1207
- }), ue(this, "_autoStyles", Zt), ue(this, "currentTheme", "auto"), ue(this, "toggleTheme", () => {
1208
- const e = ["auto", "light", "dark"], i = (e.indexOf(this.currentTheme) + 1) % e.length;
1209
- this.setTheme(e[i]);
1207
+ }), de(this, "_autoStyles", Zt), de(this, "currentTheme", "auto"), de(this, "toggleTheme", () => {
1208
+ const e = ["auto", "light", "dark"], o = (e.indexOf(this.currentTheme) + 1) % e.length;
1209
+ this.setTheme(e[o]);
1210
1210
  }), this.initTheme();
1211
1211
  }
1212
1212
  render() {
@@ -1240,7 +1240,7 @@ class er extends Q {
1240
1240
  }
1241
1241
  }
1242
1242
  Ye = er;
1243
- [Jt, Ke] = Xt(Ye, [], Ze, 0, void 0, Q).c;
1243
+ [Jt, Ke] = Xt(Ye, [], Ze, 0, void 0, J).c;
1244
1244
  Ke();
1245
1245
  const ve = ":host{display:inline-block;position:relative}.dropdown-container{position:relative;display:inline-block}.dropdown-button{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;min-width:120px;background:var(--dropdown-bg, rgba(255, 255, 255, .1));border:1px solid var(--dropdown-border, rgba(255, 255, 255, .2));border-radius:var(--dropdown-border-radius, .5rem);color:var(--dropdown-color, currentColor);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;text-align:left}.dropdown-button:hover:not(.disabled){background:var(--dropdown-hover-bg, rgba(255, 255, 255, .15));border-color:var(--dropdown-hover-border, rgba(255, 255, 255, .3))}.dropdown-button:focus:not(.disabled){outline:2px solid var(--dropdown-focus-color, var(--focus-color, #dc2626));outline-offset:2px}.dropdown-button.open{background:var(--dropdown-open-bg, rgba(255, 255, 255, .2))}.dropdown-button.disabled{opacity:.5;cursor:not-allowed}.dropdown-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-arrow{font-size:.625rem;opacity:.7;transition:transform .2s ease;flex-shrink:0}.dropdown-button.open .dropdown-arrow{transform:rotate(180deg)}.dropdown-menu{position:absolute;z-index:1000;min-width:160px;max-width:300px;max-height:300px;overflow-y:auto;background:var(--dropdown-menu-bg, #ffffff);border:1px solid var(--dropdown-menu-border, #e5e7eb);border-radius:var(--dropdown-border-radius, .5rem);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:.25rem;margin:.25rem 0 0}[data-theme=dark] .dropdown-menu{background:var(--dropdown-menu-bg-dark, #1f2937);border-color:var(--dropdown-menu-border-dark, #374151)}.dropdown-menu.dropdown-top{bottom:100%;margin:0 0 .25rem}.dropdown-menu.dropdown-bottom{top:100%;margin:.25rem 0 0}.dropdown-menu.dropdown-left{left:0}.dropdown-menu.dropdown-right{right:0}.dropdown-menu.dropdown-center{left:50%;transform:translate(-50%)}.dropdown-menu.dropdown-top.dropdown-center{transform:translate(-50%) translateY(-100%)}.dropdown-option{display:flex;align-items:center;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:.375rem;color:var(--dropdown-option-color, #1f2937);cursor:pointer;font-size:.875rem;text-align:left;transition:background-color .15s ease}[data-theme=dark] .dropdown-option{color:var(--dropdown-option-color-dark, #f3f4f6)}.dropdown-option:hover:not(.disabled){background:var(--dropdown-option-hover-bg, #f3f4f6)}[data-theme=dark] .dropdown-option:hover:not(.disabled){background:var(--dropdown-option-hover-bg-dark, #374151)}.dropdown-option.selected{background:var(--dropdown-option-selected-bg, #dc2626);color:var(--dropdown-option-selected-color, #ffffff);font-weight:600}.dropdown-option.selected:hover{background:var(--dropdown-option-selected-hover-bg, #b91c1c)}.dropdown-option.disabled{opacity:.5;cursor:not-allowed}.dropdown-empty{padding:.5rem .75rem;color:var(--dropdown-empty-color, #9ca3af);font-size:.875rem;text-align:center}@media (max-width: 768px){.dropdown-button{min-width:100px;padding:.375rem .5rem;font-size:.8125rem}.dropdown-menu{min-width:140px;max-width:200px}}";
1246
1246
  var qe;
@@ -1248,36 +1248,36 @@ let Qe, Je;
1248
1248
  function ee(t, e, r) {
1249
1249
  return (e = et(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1250
1250
  }
1251
- function tr(t, e, r, i, S, A) {
1251
+ function tr(t, e, r, o, S, A) {
1252
1252
  function b(a, s, c) {
1253
- return function(o, n) {
1254
- return c && c(o), a[s].call(o, n);
1253
+ return function(i, n) {
1254
+ return c && c(i), a[s].call(i, n);
1255
1255
  };
1256
1256
  }
1257
- function O(a, s) {
1257
+ function T(a, s) {
1258
1258
  for (var c = 0; c < a.length; c++) a[c].call(s);
1259
1259
  return s;
1260
1260
  }
1261
- function y(a, s, c, o) {
1262
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
1261
+ function y(a, s, c, i) {
1262
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1263
1263
  return a;
1264
1264
  }
1265
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
1266
- function T(f) {
1265
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1266
+ function O(f) {
1267
1267
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1268
1268
  }
1269
1269
  var g, _ = s[0], I = s[3], M = !p;
1270
1270
  if (!M) {
1271
1271
  c || Array.isArray(_) || (_ = [_]);
1272
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
1273
- k ? (m || d ? l = { get: ye(function() {
1272
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1273
+ x ? (m || u ? l = { get: ye(function() {
1274
1274
  return I(this);
1275
- }, o, "get"), set: function(f) {
1275
+ }, i, "get"), set: function(f) {
1276
1276
  s[4](this, f);
1277
- } } : l[E] = I, m || ye(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
1277
+ } } : l[E] = I, m || ye(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1278
1278
  }
1279
1279
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1280
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
1280
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1281
1281
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1282
1282
  y(N, "An initializer", "be", !0), h.push(N);
1283
1283
  }).bind(null, Y) };
@@ -1285,17 +1285,17 @@ function tr(t, e, r, i, S, A) {
1285
1285
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1286
1286
  else {
1287
1287
  var P, U;
1288
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
1289
- return T(f), l.value;
1290
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
1291
- return f[o];
1288
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1289
+ return O(f), l.value;
1290
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1291
+ return f[i];
1292
1292
  }, (n < 2 || n === 4) && (U = function(f, N) {
1293
- f[o] = N;
1293
+ f[i] = N;
1294
1294
  }));
1295
- var V = z.access = { has: k ? v.bind() : function(f) {
1296
- return o in f;
1295
+ var V = z.access = { has: x ? v.bind() : function(f) {
1296
+ return i in f;
1297
1297
  } };
1298
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
1298
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1299
1299
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1300
1300
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1301
1301
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -1304,39 +1304,39 @@ function tr(t, e, r, i, S, A) {
1304
1304
  Y.v = !0;
1305
1305
  }
1306
1306
  }
1307
- return (m || d) && p.push(function(f, N) {
1307
+ return (m || u) && p.push(function(f, N) {
1308
1308
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1309
1309
  return N;
1310
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
1310
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1311
1311
  }
1312
1312
  function F(a, s) {
1313
1313
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1314
1314
  }
1315
1315
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1316
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
1317
- var n, u, h = [], p = function(E) {
1316
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
1317
+ var n, d, h = [], p = function(E) {
1318
1318
  return nr(E) === a;
1319
- }, x = /* @__PURE__ */ new Map();
1320
- function k(E) {
1321
- E && h.push(O.bind(null, E));
1319
+ }, k = /* @__PURE__ */ new Map();
1320
+ function x(E) {
1321
+ E && h.push(T.bind(null, E));
1322
1322
  }
1323
1323
  for (var m = 0; m < s.length; m++) {
1324
- var d = s[m];
1325
- if (Array.isArray(d)) {
1326
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
1324
+ var u = s[m];
1325
+ if (Array.isArray(u)) {
1326
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1327
1327
  if (!M && !g) {
1328
- var R = x.get(l);
1329
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
1330
- x.set(l, !(v > 2) || v);
1328
+ var R = k.get(l);
1329
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
1330
+ k.set(l, !(v > 2) || v);
1331
1331
  }
1332
- D(I ? a : a.prototype, d, _, g ? "#" + T : et(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1332
+ D(I ? a : a.prototype, u, _, g ? "#" + O : et(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1333
1333
  }
1334
1334
  }
1335
- return k(n), k(u), h;
1335
+ return x(n), x(d), h;
1336
1336
  }(t, e, S, L);
1337
1337
  return r.length || F(t, L), { e: j, get c() {
1338
1338
  var a = [];
1339
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
1339
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1340
1340
  } };
1341
1341
  }
1342
1342
  function et(t) {
@@ -1347,8 +1347,8 @@ function rr(t, e) {
1347
1347
  if (typeof t != "object" || !t) return t;
1348
1348
  var r = t[Symbol.toPrimitive];
1349
1349
  if (r !== void 0) {
1350
- var i = r.call(t, e);
1351
- if (typeof i != "object") return i;
1350
+ var o = r.call(t, e);
1351
+ if (typeof o != "object") return o;
1352
1352
  throw new TypeError("@@toPrimitive must return a primitive value.");
1353
1353
  }
1354
1354
  return String(t);
@@ -1369,7 +1369,7 @@ Je = [te({
1369
1369
  tagName: "wsx-dropdown"
1370
1370
  })];
1371
1371
  let or;
1372
- class ir extends Q {
1372
+ class ir extends J {
1373
1373
  constructor(e = {}) {
1374
1374
  super({
1375
1375
  styles: ve,
@@ -1386,8 +1386,8 @@ class ir extends Q {
1386
1386
  this.setValue(b), this.config.trigger === "click" && this.closeDropdown();
1387
1387
  }), ee(this, "attachOutsideClickHandler", () => {
1388
1388
  this.config.trigger !== "hover" && (this.outsideClickHandler = (b) => {
1389
- const O = b.target;
1390
- this.dropdownElement && this.buttonElement && !this.dropdownElement.contains(O) && !this.buttonElement.contains(O) && this.closeDropdown();
1389
+ const T = b.target;
1390
+ this.dropdownElement && this.buttonElement && !this.dropdownElement.contains(T) && !this.buttonElement.contains(T) && this.closeDropdown();
1391
1391
  }, document.addEventListener("click", this.outsideClickHandler, !0));
1392
1392
  }), ee(this, "detachOutsideClickHandler", () => {
1393
1393
  this.outsideClickHandler && (document.removeEventListener("click", this.outsideClickHandler, !0), this.outsideClickHandler = void 0);
@@ -1398,10 +1398,10 @@ class ir extends Q {
1398
1398
  trigger: "click",
1399
1399
  ...e
1400
1400
  };
1401
- const [r, i] = this.useState("selectedValue", "");
1401
+ const [r, o] = this.useState("selectedValue", "");
1402
1402
  Object.defineProperty(this, "selectedValue", {
1403
1403
  get: r,
1404
- set: i,
1404
+ set: o,
1405
1405
  enumerable: !0,
1406
1406
  configurable: !0
1407
1407
  });
@@ -1437,8 +1437,8 @@ class ir extends Q {
1437
1437
  return this.selectedValue || void 0;
1438
1438
  }
1439
1439
  render() {
1440
- const e = this.options.find((i) => i.value === this.selectedValue && this.selectedValue !== ""), r = (e == null ? void 0 : e.label) || this.config.placeholder || "Select...";
1441
- return /* @__PURE__ */ $("div", { class: "dropdown-container" }, /* @__PURE__ */ $("button", { ref: (i) => this.buttonElement = i, class: `dropdown-button ${this.isOpen ? "open" : ""} ${this.config.disabled ? "disabled" : ""}`, onClick: this.config.trigger === "click" ? this.toggleDropdown : void 0, onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0, disabled: this.config.disabled, "aria-expanded": this.isOpen, "aria-haspopup": "listbox", "data-wsx-key": "Dropdown-button-text-1" }, /* @__PURE__ */ $("span", { class: "dropdown-text" }, r), /* @__PURE__ */ $("span", { class: "dropdown-arrow" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (i) => this.dropdownElement = i, class: `dropdown-menu dropdown-${this.config.position} dropdown-${this.config.align}`, role: "listbox", onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0 }, this.options.length === 0 ? /* @__PURE__ */ $("div", { class: "dropdown-empty" }, "No options") : this.options.map((i) => /* @__PURE__ */ $("button", { key: i.value, class: `dropdown-option ${i.value === this.selectedValue && this.selectedValue !== "" ? "selected" : ""} ${i.disabled ? "disabled" : ""}`, onClick: () => !i.disabled && this.selectOption(i.value), role: "option", "aria-selected": i.value === this.selectedValue && this.selectedValue !== "", disabled: i.disabled, "data-wsx-key": "Dropdown-button-text-0" }, i.render ? i.render() : /* @__PURE__ */ $("span", null, i.label)))));
1440
+ const e = this.options.find((o) => o.value === this.selectedValue && this.selectedValue !== ""), r = (e == null ? void 0 : e.label) || this.config.placeholder || "Select...";
1441
+ return /* @__PURE__ */ $("div", { class: "dropdown-container" }, /* @__PURE__ */ $("button", { ref: (o) => this.buttonElement = o, class: `dropdown-button ${this.isOpen ? "open" : ""} ${this.config.disabled ? "disabled" : ""}`, onClick: this.config.trigger === "click" ? this.toggleDropdown : void 0, onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0, disabled: this.config.disabled, "aria-expanded": this.isOpen, "aria-haspopup": "listbox", "data-wsx-key": "Dropdown-button-text-1" }, /* @__PURE__ */ $("span", { class: "dropdown-text" }, r), /* @__PURE__ */ $("span", { class: "dropdown-arrow" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (o) => this.dropdownElement = o, class: `dropdown-menu dropdown-${this.config.position} dropdown-${this.config.align}`, role: "listbox", onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0 }, this.options.length === 0 ? /* @__PURE__ */ $("div", { class: "dropdown-empty" }, "No options") : this.options.map((o) => /* @__PURE__ */ $("button", { key: o.value, class: `dropdown-option ${o.value === this.selectedValue && this.selectedValue !== "" ? "selected" : ""} ${o.disabled ? "disabled" : ""}`, onClick: () => !o.disabled && this.selectOption(o.value), role: "option", "aria-selected": o.value === this.selectedValue && this.selectedValue !== "", disabled: o.disabled, "data-wsx-key": "Dropdown-button-text-0" }, o.render ? o.render() : /* @__PURE__ */ $("span", null, o.label)))));
1442
1442
  }
1443
1443
  /**
1444
1444
  * 组件断开连接时清理
@@ -1449,44 +1449,44 @@ class ir extends Q {
1449
1449
  }
1450
1450
  }
1451
1451
  qe = ir;
1452
- [or, Qe] = tr(qe, [], Je, 0, void 0, Q).c;
1452
+ [or, Qe] = tr(qe, [], Je, 0, void 0, J).c;
1453
1453
  Qe();
1454
- const xe = ":host{display:inline-block;position:relative}.combobox-container{position:relative;display:inline-block;width:100%}.combobox-input-wrapper{position:relative;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;min-width:200px;background:var(--combobox-bg, rgba(255, 255, 255, .1));border:1px solid var(--combobox-border, rgba(255, 255, 255, .2));border-radius:var(--combobox-border-radius, .5rem);transition:all .2s ease}.combobox-input-wrapper:focus-within{background:var(--combobox-focus-bg, rgba(255, 255, 255, .15));border-color:var(--combobox-focus-border, var(--focus-color, #dc2626));outline:2px solid var(--combobox-focus-outline, rgba(220, 38, 38, .2));outline-offset:2px}.combobox-tags{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;flex:1}.combobox-tag{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background:var(--combobox-tag-bg, #dc2626);color:var(--combobox-tag-color, #ffffff);border-radius:.25rem;font-size:.75rem;font-weight:500}.combobox-tag-remove{background:none;border:none;color:var(--combobox-tag-color, #ffffff);cursor:pointer;font-size:1rem;line-height:1;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .15s ease}.combobox-tag-remove:hover{background:#fff3}.combobox-tag-more{padding:.25rem .5rem;color:var(--combobox-tag-color, #ffffff);font-size:.75rem;font-weight:500}.combobox-input{flex:1;border:none;background:transparent;color:var(--combobox-color, currentColor);font-size:.875rem;font-weight:500;outline:none;min-width:0}.combobox-input::placeholder{color:var(--combobox-placeholder-color, rgba(255, 255, 255, .5))}.combobox-input:disabled{opacity:.5;cursor:not-allowed}.combobox-arrow{background:none;border:none;color:var(--combobox-arrow-color, currentColor);cursor:pointer;font-size:.625rem;opacity:.7;transition:transform .2s ease;flex-shrink:0;padding:.25rem;display:flex;align-items:center;justify-content:center}.combobox-arrow:hover{opacity:1}.combobox-arrow.open{transform:rotate(180deg)}.combobox-arrow:disabled{opacity:.5;cursor:not-allowed}.combobox-menu{position:absolute;z-index:1000;min-width:100%;max-width:300px;max-height:300px;overflow-y:auto;background:var(--combobox-menu-bg, #ffffff);border:1px solid var(--combobox-menu-border, #e5e7eb);border-radius:var(--combobox-border-radius, .5rem);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:.25rem;margin:.25rem 0 0}[data-theme=dark] .combobox-menu{background:var(--combobox-menu-bg-dark, #1f2937);border-color:var(--combobox-menu-border-dark, #374151)}.combobox-menu.combobox-top{bottom:100%;margin:0 0 .25rem}.combobox-menu.combobox-bottom{top:100%;margin:.25rem 0 0}.combobox-menu.combobox-left{left:0}.combobox-menu.combobox-right{right:0}.combobox-menu.combobox-center{left:50%;transform:translate(-50%)}.combobox-menu.combobox-top.combobox-center{transform:translate(-50%) translateY(-100%)}.combobox-option{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:.375rem;color:var(--combobox-option-color, #1f2937);cursor:pointer;font-size:.875rem;text-align:left;transition:background-color .15s ease}[data-theme=dark] .combobox-option{color:var(--combobox-option-color-dark, #f3f4f6)}.combobox-option:hover:not(.disabled){background:var(--combobox-option-hover-bg, #f3f4f6)}[data-theme=dark] .combobox-option:hover:not(.disabled){background:var(--combobox-option-hover-bg-dark, #374151)}.combobox-option.selected{background:var(--combobox-option-selected-bg, #dc2626);color:var(--combobox-option-selected-color, #ffffff);font-weight:600}.combobox-option.selected:hover{background:var(--combobox-option-selected-hover-bg, #b91c1c)}.combobox-option.disabled{opacity:.5;cursor:not-allowed}.combobox-checkbox{width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.75rem;font-weight:700}.combobox-empty{padding:.5rem .75rem;color:var(--combobox-empty-color, #9ca3af);font-size:.875rem;text-align:center}@media (max-width: 768px){.combobox-input-wrapper{min-width:150px;padding:.375rem .5rem}.combobox-input{font-size:.8125rem}.combobox-menu{max-width:200px}}";
1454
+ const ke = ":host{display:inline-block;position:relative}.combobox-container{position:relative;display:inline-block;width:100%}.combobox-input-wrapper{position:relative;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;min-width:200px;background:var(--combobox-bg, rgba(255, 255, 255, .1));border:1px solid var(--combobox-border, rgba(255, 255, 255, .2));border-radius:var(--combobox-border-radius, .5rem);transition:all .2s ease}.combobox-input-wrapper:focus-within{background:var(--combobox-focus-bg, rgba(255, 255, 255, .15));border-color:var(--combobox-focus-border, var(--focus-color, #dc2626));outline:2px solid var(--combobox-focus-outline, rgba(220, 38, 38, .2));outline-offset:2px}.combobox-tags{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;flex:1}.combobox-tag{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background:var(--combobox-tag-bg, #dc2626);color:var(--combobox-tag-color, #ffffff);border-radius:.25rem;font-size:.75rem;font-weight:500}.combobox-tag-remove{background:none;border:none;color:var(--combobox-tag-color, #ffffff);cursor:pointer;font-size:1rem;line-height:1;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .15s ease}.combobox-tag-remove:hover{background:#fff3}.combobox-tag-more{padding:.25rem .5rem;color:var(--combobox-tag-color, #ffffff);font-size:.75rem;font-weight:500}.combobox-input{flex:1;border:none;background:transparent;color:var(--combobox-color, currentColor);font-size:.875rem;font-weight:500;outline:none;min-width:0}.combobox-input::placeholder{color:var(--combobox-placeholder-color, rgba(255, 255, 255, .5))}.combobox-input:disabled{opacity:.5;cursor:not-allowed}.combobox-arrow{background:none;border:none;color:var(--combobox-arrow-color, currentColor);cursor:pointer;font-size:.625rem;opacity:.7;transition:transform .2s ease;flex-shrink:0;padding:.25rem;display:flex;align-items:center;justify-content:center}.combobox-arrow:hover{opacity:1}.combobox-arrow.open{transform:rotate(180deg)}.combobox-arrow:disabled{opacity:.5;cursor:not-allowed}.combobox-menu{position:absolute;z-index:1000;min-width:100%;max-width:300px;max-height:300px;overflow-y:auto;background:var(--combobox-menu-bg, #ffffff);border:1px solid var(--combobox-menu-border, #e5e7eb);border-radius:var(--combobox-border-radius, .5rem);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:.25rem;margin:.25rem 0 0}[data-theme=dark] .combobox-menu{background:var(--combobox-menu-bg-dark, #1f2937);border-color:var(--combobox-menu-border-dark, #374151)}.combobox-menu.combobox-top{bottom:100%;margin:0 0 .25rem}.combobox-menu.combobox-bottom{top:100%;margin:.25rem 0 0}.combobox-menu.combobox-left{left:0}.combobox-menu.combobox-right{right:0}.combobox-menu.combobox-center{left:50%;transform:translate(-50%)}.combobox-menu.combobox-top.combobox-center{transform:translate(-50%) translateY(-100%)}.combobox-option{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:.375rem;color:var(--combobox-option-color, #1f2937);cursor:pointer;font-size:.875rem;text-align:left;transition:background-color .15s ease}[data-theme=dark] .combobox-option{color:var(--combobox-option-color-dark, #f3f4f6)}.combobox-option:hover:not(.disabled){background:var(--combobox-option-hover-bg, #f3f4f6)}[data-theme=dark] .combobox-option:hover:not(.disabled){background:var(--combobox-option-hover-bg-dark, #374151)}.combobox-option.selected{background:var(--combobox-option-selected-bg, #dc2626);color:var(--combobox-option-selected-color, #ffffff);font-weight:600}.combobox-option.selected:hover{background:var(--combobox-option-selected-hover-bg, #b91c1c)}.combobox-option.disabled{opacity:.5;cursor:not-allowed}.combobox-checkbox{width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.75rem;font-weight:700}.combobox-empty{padding:.5rem .75rem;color:var(--combobox-empty-color, #9ca3af);font-size:.875rem;text-align:center}@media (max-width: 768px){.combobox-input-wrapper{min-width:150px;padding:.375rem .5rem}.combobox-input{font-size:.8125rem}.combobox-menu{max-width:200px}}";
1455
1455
  var tt;
1456
1456
  let rt, nt;
1457
- function q(t, e, r) {
1457
+ function Q(t, e, r) {
1458
1458
  return (e = ot(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1459
1459
  }
1460
- function ar(t, e, r, i, S, A) {
1460
+ function ar(t, e, r, o, S, A) {
1461
1461
  function b(a, s, c) {
1462
- return function(o, n) {
1463
- return c && c(o), a[s].call(o, n);
1462
+ return function(i, n) {
1463
+ return c && c(i), a[s].call(i, n);
1464
1464
  };
1465
1465
  }
1466
- function O(a, s) {
1466
+ function T(a, s) {
1467
1467
  for (var c = 0; c < a.length; c++) a[c].call(s);
1468
1468
  return s;
1469
1469
  }
1470
- function y(a, s, c, o) {
1471
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
1470
+ function y(a, s, c, i) {
1471
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1472
1472
  return a;
1473
1473
  }
1474
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
1475
- function T(f) {
1474
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1475
+ function O(f) {
1476
1476
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1477
1477
  }
1478
1478
  var g, _ = s[0], I = s[3], M = !p;
1479
1479
  if (!M) {
1480
1480
  c || Array.isArray(_) || (_ = [_]);
1481
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
1482
- k ? (m || d ? l = { get: we(function() {
1481
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1482
+ x ? (m || u ? l = { get: we(function() {
1483
1483
  return I(this);
1484
- }, o, "get"), set: function(f) {
1484
+ }, i, "get"), set: function(f) {
1485
1485
  s[4](this, f);
1486
- } } : l[E] = I, m || we(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
1486
+ } } : l[E] = I, m || we(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1487
1487
  }
1488
1488
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1489
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
1489
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1490
1490
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1491
1491
  y(N, "An initializer", "be", !0), h.push(N);
1492
1492
  }).bind(null, Y) };
@@ -1494,17 +1494,17 @@ function ar(t, e, r, i, S, A) {
1494
1494
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1495
1495
  else {
1496
1496
  var P, U;
1497
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
1498
- return T(f), l.value;
1499
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
1500
- return f[o];
1497
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1498
+ return O(f), l.value;
1499
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1500
+ return f[i];
1501
1501
  }, (n < 2 || n === 4) && (U = function(f, N) {
1502
- f[o] = N;
1502
+ f[i] = N;
1503
1503
  }));
1504
- var V = z.access = { has: k ? v.bind() : function(f) {
1505
- return o in f;
1504
+ var V = z.access = { has: x ? v.bind() : function(f) {
1505
+ return i in f;
1506
1506
  } };
1507
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
1507
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1508
1508
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1509
1509
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1510
1510
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -1513,39 +1513,39 @@ function ar(t, e, r, i, S, A) {
1513
1513
  Y.v = !0;
1514
1514
  }
1515
1515
  }
1516
- return (m || d) && p.push(function(f, N) {
1516
+ return (m || u) && p.push(function(f, N) {
1517
1517
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1518
1518
  return N;
1519
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
1519
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1520
1520
  }
1521
1521
  function F(a, s) {
1522
1522
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1523
1523
  }
1524
1524
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1525
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
1526
- var n, u, h = [], p = function(E) {
1525
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
1526
+ var n, d, h = [], p = function(E) {
1527
1527
  return lr(E) === a;
1528
- }, x = /* @__PURE__ */ new Map();
1529
- function k(E) {
1530
- E && h.push(O.bind(null, E));
1528
+ }, k = /* @__PURE__ */ new Map();
1529
+ function x(E) {
1530
+ E && h.push(T.bind(null, E));
1531
1531
  }
1532
1532
  for (var m = 0; m < s.length; m++) {
1533
- var d = s[m];
1534
- if (Array.isArray(d)) {
1535
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
1533
+ var u = s[m];
1534
+ if (Array.isArray(u)) {
1535
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1536
1536
  if (!M && !g) {
1537
- var R = x.get(l);
1538
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
1539
- x.set(l, !(v > 2) || v);
1537
+ var R = k.get(l);
1538
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
1539
+ k.set(l, !(v > 2) || v);
1540
1540
  }
1541
- D(I ? a : a.prototype, d, _, g ? "#" + T : ot(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1541
+ D(I ? a : a.prototype, u, _, g ? "#" + O : ot(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1542
1542
  }
1543
1543
  }
1544
- return k(n), k(u), h;
1544
+ return x(n), x(d), h;
1545
1545
  }(t, e, S, L);
1546
1546
  return r.length || F(t, L), { e: j, get c() {
1547
1547
  var a = [];
1548
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
1548
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1549
1549
  } };
1550
1550
  }
1551
1551
  function ot(t) {
@@ -1556,8 +1556,8 @@ function sr(t, e) {
1556
1556
  if (typeof t != "object" || !t) return t;
1557
1557
  var r = t[Symbol.toPrimitive];
1558
1558
  if (r !== void 0) {
1559
- var i = r.call(t, e);
1560
- if (typeof i != "object") return i;
1559
+ var o = r.call(t, e);
1560
+ if (typeof o != "object") return o;
1561
1561
  throw new TypeError("@@toPrimitive must return a primitive value.");
1562
1562
  }
1563
1563
  return String(t);
@@ -1578,26 +1578,26 @@ nt = [te({
1578
1578
  tagName: "wsx-combobox"
1579
1579
  })];
1580
1580
  let cr;
1581
- class ur extends Q {
1581
+ class dr extends J {
1582
1582
  constructor(e = {}) {
1583
1583
  super({
1584
- styles: xe,
1584
+ styles: ke,
1585
1585
  styleName: "wsx-combobox"
1586
- }), q(this, "_autoStyles", xe), q(this, "options", []), q(this, "selectedValue", void 0), q(this, "searchQuery", void 0), q(this, "isOpen", void 0), q(this, "config", {}), q(this, "inputElement", void 0), q(this, "dropdownElement", void 0), q(this, "outsideClickHandler", void 0), q(this, "handleInput", (y) => {
1586
+ }), Q(this, "_autoStyles", ke), Q(this, "options", []), Q(this, "selectedValue", void 0), Q(this, "searchQuery", void 0), Q(this, "isOpen", void 0), Q(this, "config", {}), Q(this, "inputElement", void 0), Q(this, "dropdownElement", void 0), Q(this, "outsideClickHandler", void 0), Q(this, "handleInput", (y) => {
1587
1587
  if (!this.config.searchable) return;
1588
1588
  const D = y.target;
1589
1589
  this.searchQuery = D.value, this.rerender();
1590
- }), q(this, "toggleDropdown", () => {
1590
+ }), Q(this, "toggleDropdown", () => {
1591
1591
  this.config.disabled || (this.isOpen = !this.isOpen, this.isOpen && this.config.searchable && this.inputElement && this.inputElement.focus(), this.rerender(), this.isOpen ? setTimeout(() => {
1592
1592
  this.attachOutsideClickHandler();
1593
1593
  }, 0) : (this.detachOutsideClickHandler(), this.searchQuery = ""));
1594
- }), q(this, "openDropdown", () => {
1594
+ }), Q(this, "openDropdown", () => {
1595
1595
  this.config.disabled || this.isOpen || (this.isOpen = !0, this.config.searchable && this.inputElement && this.inputElement.focus(), this.rerender(), setTimeout(() => {
1596
1596
  this.attachOutsideClickHandler();
1597
1597
  }, 0));
1598
- }), q(this, "closeDropdown", () => {
1598
+ }), Q(this, "closeDropdown", () => {
1599
1599
  this.isOpen && (this.isOpen = !1, this.searchQuery = "", this.rerender(), this.detachOutsideClickHandler());
1600
- }), q(this, "selectOption", (y) => {
1600
+ }), Q(this, "selectOption", (y) => {
1601
1601
  if (this.config.multiple) {
1602
1602
  const D = Array.isArray(this.selectedValue) ? this.selectedValue : [], F = D.includes(y) ? D.filter((C) => C !== y) : [...D, y];
1603
1603
  this.selectedValue = F;
@@ -1609,7 +1609,7 @@ class ur extends Q {
1609
1609
  },
1610
1610
  bubbles: !0
1611
1611
  }));
1612
- }), q(this, "removeValue", (y) => {
1612
+ }), Q(this, "removeValue", (y) => {
1613
1613
  if (!this.config.multiple) return;
1614
1614
  const D = Array.isArray(this.selectedValue) ? this.selectedValue : [];
1615
1615
  this.selectedValue = D.filter((F) => F !== y), this.rerender(), this.dispatchEvent(new CustomEvent("change", {
@@ -1618,12 +1618,12 @@ class ur extends Q {
1618
1618
  },
1619
1619
  bubbles: !0
1620
1620
  }));
1621
- }), q(this, "attachOutsideClickHandler", () => {
1621
+ }), Q(this, "attachOutsideClickHandler", () => {
1622
1622
  this.outsideClickHandler = (y) => {
1623
1623
  const D = y.target;
1624
1624
  this.dropdownElement && this.inputElement && !this.dropdownElement.contains(D) && !this.inputElement.contains(D) && this.closeDropdown();
1625
1625
  }, document.addEventListener("click", this.outsideClickHandler, !0);
1626
- }), q(this, "detachOutsideClickHandler", () => {
1626
+ }), Q(this, "detachOutsideClickHandler", () => {
1627
1627
  this.outsideClickHandler && (document.removeEventListener("click", this.outsideClickHandler, !0), this.outsideClickHandler = void 0);
1628
1628
  }), this.config = {
1629
1629
  placeholder: "Select or search...",
@@ -1633,10 +1633,10 @@ class ur extends Q {
1633
1633
  position: "bottom",
1634
1634
  ...e
1635
1635
  };
1636
- const [r, i] = this.useState("selectedValue", "");
1636
+ const [r, o] = this.useState("selectedValue", "");
1637
1637
  Object.defineProperty(this, "selectedValue", {
1638
1638
  get: r,
1639
- set: i,
1639
+ set: o,
1640
1640
  enumerable: !0,
1641
1641
  configurable: !0
1642
1642
  });
@@ -1647,10 +1647,10 @@ class ur extends Q {
1647
1647
  enumerable: !0,
1648
1648
  configurable: !0
1649
1649
  });
1650
- const [b, O] = this.useState("isOpen", !1);
1650
+ const [b, T] = this.useState("isOpen", !1);
1651
1651
  Object.defineProperty(this, "isOpen", {
1652
1652
  get: b,
1653
- set: O,
1653
+ set: T,
1654
1654
  enumerable: !0,
1655
1655
  configurable: !0
1656
1656
  });
@@ -1666,7 +1666,7 @@ class ur extends Q {
1666
1666
  */
1667
1667
  setValue(e) {
1668
1668
  if (this.selectedValue = e, this.inputElement && !this.config.multiple) {
1669
- const r = this.options.find((i) => i.value === (Array.isArray(e) ? e[0] : e));
1669
+ const r = this.options.find((o) => o.value === (Array.isArray(e) ? e[0] : e));
1670
1670
  this.inputElement.value = (r == null ? void 0 : r.label) || "";
1671
1671
  }
1672
1672
  this.rerender(), this.dispatchEvent(new CustomEvent("change", {
@@ -1692,27 +1692,27 @@ class ur extends Q {
1692
1692
  return this.options.filter((r) => r.label.toLowerCase().includes(e) || r.value.toLowerCase().includes(e));
1693
1693
  }
1694
1694
  render() {
1695
- const e = this.getFilteredOptions(), r = this.config.multiple, i = Array.isArray(this.selectedValue) ? this.selectedValue : this.selectedValue ? [this.selectedValue] : [];
1695
+ const e = this.getFilteredOptions(), r = this.config.multiple, o = Array.isArray(this.selectedValue) ? this.selectedValue : this.selectedValue ? [this.selectedValue] : [];
1696
1696
  let S = "";
1697
1697
  if (r)
1698
- if (i.length === 0)
1698
+ if (o.length === 0)
1699
1699
  S = this.config.placeholder || "Select...";
1700
- else if (i.length === 1) {
1701
- const A = this.options.find((b) => b.value === i[0]);
1702
- S = (A == null ? void 0 : A.label) || i[0];
1700
+ else if (o.length === 1) {
1701
+ const A = this.options.find((b) => b.value === o[0]);
1702
+ S = (A == null ? void 0 : A.label) || o[0];
1703
1703
  } else
1704
- S = `${i.length} selected`;
1704
+ S = `${o.length} selected`;
1705
1705
  else {
1706
1706
  const A = this.options.find((b) => b.value === this.selectedValue);
1707
1707
  S = (A == null ? void 0 : A.label) || this.config.placeholder || "Select...";
1708
1708
  }
1709
- return /* @__PURE__ */ $("div", { class: "combobox-container" }, /* @__PURE__ */ $("div", { class: "combobox-input-wrapper" }, r && i.length > 0 && /* @__PURE__ */ $("div", { class: "combobox-tags" }, i.slice(0, 2).map((A) => {
1710
- const b = this.options.find((O) => O.value === A);
1711
- return /* @__PURE__ */ $("span", { key: A, class: "combobox-tag" }, (b == null ? void 0 : b.label) || A, /* @__PURE__ */ $("button", { class: "combobox-tag-remove", onClick: (O) => {
1712
- O.stopPropagation(), this.removeValue(A);
1709
+ return /* @__PURE__ */ $("div", { class: "combobox-container" }, /* @__PURE__ */ $("div", { class: "combobox-input-wrapper" }, r && o.length > 0 && /* @__PURE__ */ $("div", { class: "combobox-tags" }, o.slice(0, 2).map((A) => {
1710
+ const b = this.options.find((T) => T.value === A);
1711
+ return /* @__PURE__ */ $("span", { key: A, class: "combobox-tag" }, (b == null ? void 0 : b.label) || A, /* @__PURE__ */ $("button", { class: "combobox-tag-remove", onClick: (T) => {
1712
+ T.stopPropagation(), this.removeValue(A);
1713
1713
  }, "data-wsx-key": "Combobox-button-text-3" }, "×"));
1714
- }), i.length > 2 && /* @__PURE__ */ $("span", { class: "combobox-tag-more" }, "+", i.length - 2)), /* @__PURE__ */ $("input", { ref: (A) => this.inputElement = A, type: "text", class: "combobox-input", placeholder: S, value: this.config.searchable && this.isOpen ? this.searchQuery : "", onInput: this.handleInput, onFocus: this.openDropdown, onClick: this.openDropdown, disabled: this.config.disabled, readonly: !this.config.searchable, "data-wsx-key": "Combobox-input-text-1-3" }), /* @__PURE__ */ $("button", { class: `combobox-arrow ${this.isOpen ? "open" : ""}`, onClick: this.toggleDropdown, disabled: this.config.disabled, "data-wsx-key": "Combobox-button-text-1-5" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (A) => this.dropdownElement = A, class: `combobox-menu combobox-${this.config.position} combobox-${this.config.align}`, role: "listbox" }, e.length === 0 ? /* @__PURE__ */ $("div", { class: "combobox-empty" }, this.config.searchable && this.searchQuery ? "No results found" : "No options") : e.map((A) => {
1715
- const b = r ? i.includes(A.value) : A.value === this.selectedValue;
1714
+ }), o.length > 2 && /* @__PURE__ */ $("span", { class: "combobox-tag-more" }, "+", o.length - 2)), /* @__PURE__ */ $("input", { ref: (A) => this.inputElement = A, type: "text", class: "combobox-input", placeholder: S, value: this.config.searchable && this.isOpen ? this.searchQuery : "", onInput: this.handleInput, onFocus: this.openDropdown, onClick: this.openDropdown, disabled: this.config.disabled, readonly: !this.config.searchable, "data-wsx-key": "Combobox-input-text-1-3" }), /* @__PURE__ */ $("button", { class: `combobox-arrow ${this.isOpen ? "open" : ""}`, onClick: this.toggleDropdown, disabled: this.config.disabled, "data-wsx-key": "Combobox-button-text-1-5" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (A) => this.dropdownElement = A, class: `combobox-menu combobox-${this.config.position} combobox-${this.config.align}`, role: "listbox" }, e.length === 0 ? /* @__PURE__ */ $("div", { class: "combobox-empty" }, this.config.searchable && this.searchQuery ? "No results found" : "No options") : e.map((A) => {
1715
+ const b = r ? o.includes(A.value) : A.value === this.selectedValue;
1716
1716
  return /* @__PURE__ */ $("button", { key: A.value, class: `combobox-option ${b ? "selected" : ""} ${A.disabled ? "disabled" : ""}`, onClick: () => !A.disabled && this.selectOption(A.value), role: "option", "aria-selected": b, disabled: A.disabled, "data-wsx-key": "Combobox-button-text-0" }, r && /* @__PURE__ */ $("span", { class: "combobox-checkbox" }, b ? "✓" : ""), A.render ? A.render() : /* @__PURE__ */ $("span", null, A.label));
1717
1717
  })));
1718
1718
  }
@@ -1724,10 +1724,10 @@ class ur extends Q {
1724
1724
  (e = super.onDisconnected) == null || e.call(this), this.detachOutsideClickHandler();
1725
1725
  }
1726
1726
  }
1727
- tt = ur;
1728
- [cr, rt] = ar(tt, [], nt, 0, void 0, Q).c;
1727
+ tt = dr;
1728
+ [cr, rt] = ar(tt, [], nt, 0, void 0, J).c;
1729
1729
  rt();
1730
- class ke {
1730
+ class xe {
1731
1731
  /**
1732
1732
  * 检测 overflow 并计算可见/隐藏项
1733
1733
  * @param config 配置对象
@@ -1736,30 +1736,30 @@ class ke {
1736
1736
  static detect(e) {
1737
1737
  const {
1738
1738
  container: r,
1739
- items: i,
1739
+ items: o,
1740
1740
  gap: S = 16,
1741
1741
  reservedWidth: A = 0,
1742
1742
  overflowButtonWidth: b = 0,
1743
- padding: O = 0,
1743
+ padding: T = 0,
1744
1744
  minVisibleItems: y = 1
1745
1745
  } = e;
1746
- if (!r || i.length === 0)
1746
+ if (!r || o.length === 0)
1747
1747
  return {
1748
1748
  visibleIndices: [],
1749
1749
  hiddenIndices: [],
1750
1750
  needsOverflow: !1
1751
1751
  };
1752
- const F = r.offsetWidth - A - O * 2;
1752
+ const F = r.offsetWidth - A - T * 2;
1753
1753
  let C = 0;
1754
1754
  const L = [], j = [];
1755
- for (let o = 0; o < i.length; o++) {
1756
- const n = i[o];
1755
+ for (let i = 0; i < o.length; i++) {
1756
+ const n = o[i];
1757
1757
  if (!n || n.offsetWidth === 0) {
1758
- L.push(o);
1758
+ L.push(i);
1759
1759
  continue;
1760
1760
  }
1761
- const u = n.offsetWidth + (o > 0 ? S : 0);
1762
- C + u <= F ? (C += u, L.push(o)) : j.push(o);
1761
+ const d = n.offsetWidth + (i > 0 ? S : 0);
1762
+ C + d <= F ? (C += d, L.push(i)) : j.push(i);
1763
1763
  }
1764
1764
  if (j.length === 0)
1765
1765
  return {
@@ -1770,18 +1770,18 @@ class ke {
1770
1770
  const a = F - b - S;
1771
1771
  C = 0;
1772
1772
  const s = [], c = [];
1773
- for (let o = 0; o < i.length; o++) {
1774
- const n = i[o];
1773
+ for (let i = 0; i < o.length; i++) {
1774
+ const n = o[i];
1775
1775
  if (!n || n.offsetWidth === 0) {
1776
- s.length < y ? s.push(o) : c.push(o);
1776
+ s.length < y ? s.push(i) : c.push(i);
1777
1777
  continue;
1778
1778
  }
1779
- const u = n.offsetWidth + (s.length > 0 ? S : 0);
1780
- C + u <= a ? (C += u, s.push(o)) : c.push(o);
1779
+ const d = n.offsetWidth + (s.length > 0 ? S : 0);
1780
+ C + d <= a ? (C += d, s.push(i)) : c.push(i);
1781
1781
  }
1782
- if (s.length < y && i.length > 0) {
1783
- const o = y - s.length, n = c.splice(0, o);
1784
- s.push(...n), s.sort((u, h) => u - h);
1782
+ if (s.length < y && o.length > 0) {
1783
+ const i = y - s.length, n = c.splice(0, i);
1784
+ s.push(...n), s.sort((d, h) => d - h);
1785
1785
  }
1786
1786
  return {
1787
1787
  visibleIndices: s,
@@ -1796,9 +1796,9 @@ class ke {
1796
1796
  * @returns 总宽度
1797
1797
  */
1798
1798
  static calculateTotalWidth(e, r = 16) {
1799
- return e.length === 0 ? 0 : e.reduce((i, S, A) => {
1799
+ return e.length === 0 ? 0 : e.reduce((o, S, A) => {
1800
1800
  const b = S.offsetWidth || 0;
1801
- return i + b + (A > 0 ? r : 0);
1801
+ return o + b + (A > 0 ? r : 0);
1802
1802
  }, 0);
1803
1803
  }
1804
1804
  /**
@@ -1808,8 +1808,8 @@ class ke {
1808
1808
  */
1809
1809
  static getElementTotalWidth(e) {
1810
1810
  if (!e) return 0;
1811
- const r = window.getComputedStyle(e), i = e.offsetWidth, S = parseFloat(r.marginLeft) || 0, A = parseFloat(r.marginRight) || 0;
1812
- return i + S + A;
1811
+ const r = window.getComputedStyle(e), o = e.offsetWidth, S = parseFloat(r.marginLeft) || 0, A = parseFloat(r.marginRight) || 0;
1812
+ return o + S + A;
1813
1813
  }
1814
1814
  }
1815
1815
  const Ee = ':host{display:block}.responsive-nav{position:fixed;top:0;left:0;right:0;z-index:1000;background:var(--nav-bg, var(--bg-primary));-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid var(--nav-border, var(--border-color));transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px #0000000d}.responsive-nav.nav-scrolled{background:var(--nav-bg-scrolled, var(--bg-primary));box-shadow:0 4px 24px var(--nav-shadow, var(--card-shadow));border-bottom-color:var(--nav-border, var(--border-color))}.nav-container{max-width:1280px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:72px;gap:1.5rem}.nav-brand{display:flex;align-items:center;gap:.75rem;font-weight:800;font-size:1.5rem;color:var(--nav-brand-color, var(--text-primary));flex-shrink:0;transition:transform .2s ease;cursor:pointer}.nav-brand:hover{transform:scale(1.05)}.nav-brand-icon{display:flex;align-items:center;font-size:1.8rem;transition:transform .3s ease}.nav-brand:hover .nav-brand-icon{transform:rotate(5deg) scale(1.1)}.nav-brand-text{background:linear-gradient(135deg,var(--hero-gradient-start, var(--primary-red)),var(--hero-gradient-end, var(--accent-orange)));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.02em;position:relative}.nav-menu{display:flex;align-items:center;gap:.5rem;flex:1;justify-content:flex-end;overflow:visible;padding-right:.5rem}wsx-link.nav-link{display:inline-flex;align-items:center;flex-shrink:0}wsx-link.nav-link::part(link){color:var(--nav-link-color, var(--text-secondary));text-decoration:none!important;font-weight:500;font-size:.95rem;transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;white-space:nowrap;padding:.5rem .75rem;border-radius:.5rem;display:inline-flex;align-items:center}wsx-link.nav-link::part(link):hover{color:var(--nav-link-hover-color, var(--text-primary));background:var(--nav-link-hover-bg, var(--bg-secondary));text-decoration:none!important;transform:translateY(-1px)}wsx-link.nav-link::part(link):after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important}wsx-link.nav-link::part(link):hover:after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important}wsx-link.nav-link::part(link):before{display:none}wsx-link.nav-link[active]::part(link),wsx-link.nav-link.nav-link-active::part(link){color:var(--nav-link-active-color, var(--primary-red))!important;font-weight:600;background:var(--nav-link-active-bg, var(--bg-secondary));text-decoration:none!important}wsx-link.nav-link[active]::part(link):after,wsx-link.nav-link.nav-link-active::part(link):after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important}wsx-link.nav-link[active]::part(link):before,wsx-link.nav-link.nav-link-active::part(link):before{content:"";display:block;position:absolute;bottom:.125rem;left:50%;transform:translate(-50%);width:calc(100% - 1.5rem);height:3px;background:linear-gradient(135deg,var(--hero-gradient-start, var(--primary-red)),var(--hero-gradient-end, var(--accent-orange)));border-radius:2px;z-index:1}.nav-link{color:var(--nav-link-color, var(--text-secondary));text-decoration:none;font-weight:500;font-size:.95rem;transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;white-space:nowrap;flex-shrink:0;padding:.5rem .75rem;border-radius:.5rem;display:inline-flex;align-items:center}.nav-link:hover{color:var(--nav-link-hover-color, var(--text-primary));background:var(--nav-link-hover-bg, var(--bg-secondary));transform:translateY(-1px)}.nav-link:after{content:"";position:absolute;bottom:.25rem;left:50%;transform:translate(-50%);width:0;height:2px;background:linear-gradient(135deg,var(--hero-gradient-start, var(--primary-red)),var(--hero-gradient-end, var(--accent-orange)));border-radius:2px;transition:width .3s cubic-bezier(.4,0,.2,1)}.nav-link:hover:after{width:calc(100% - 1.5rem)}.nav-link-active{color:var(--nav-link-active-color, var(--primary-red))!important;font-weight:600;background:var(--nav-link-active-bg, var(--bg-secondary))}.nav-link-active:after{width:calc(100% - 1.5rem)!important;height:3px!important;bottom:.125rem!important}.nav-overflow{position:relative;flex-shrink:0}.nav-overflow-button{padding:.5rem .875rem;background:var(--nav-overflow-bg, transparent);border:1px solid var(--nav-overflow-border, var(--border-color));border-radius:.5rem;color:var(--nav-link-color, var(--text-secondary));cursor:pointer;font-size:.875rem;font-weight:500;transition:all .25s cubic-bezier(.4,0,.2,1);display:inline-flex;align-items:center;gap:.25rem}.nav-overflow-button:hover{background:var(--nav-overflow-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));border-color:var(--nav-overflow-hover-border, var(--border-color));transform:translateY(-1px);box-shadow:0 2px 8px var(--card-shadow)}.nav-overflow-menu{position:absolute;top:calc(100% + .75rem);right:0;min-width:180px;background:var(--nav-overflow-menu-bg, var(--bg-primary));border:1px solid var(--nav-overflow-menu-border, var(--border-color));border-radius:.75rem;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;padding:.5rem;z-index:1001;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);animation:slideDown .2s cubic-bezier(.4,0,.2,1)}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}wsx-link.nav-overflow-link::part(link){display:block;padding:.625rem .875rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none!important;font-weight:500;font-size:.9rem;border-radius:.5rem;transition:all .2s cubic-bezier(.4,0,.2,1);margin-bottom:.25rem;border-left:3px solid transparent}wsx-link.nav-overflow-link::part(link):hover{background:var(--nav-overflow-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));text-decoration:none!important;transform:translate(4px)}wsx-link.nav-overflow-link[active]::part(link),wsx-link.nav-overflow-link.nav-link-active::part(link){background:var(--nav-overflow-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);padding-left:.625rem}.nav-overflow-link{display:block;padding:.625rem .875rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none;font-weight:500;font-size:.9rem;border-radius:.5rem;transition:all .2s cubic-bezier(.4,0,.2,1);margin-bottom:.25rem;border-left:3px solid transparent}.nav-overflow-link:hover{background:var(--nav-overflow-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));transform:translate(4px)}.nav-overflow-link.nav-link-active{background:var(--nav-overflow-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);padding-left:.625rem}.nav-actions{display:flex;align-items:center;gap:.75rem;flex-shrink:0;margin-left:.5rem;z-index:1002;padding-left:.75rem;border-left:1px solid var(--nav-actions-border, var(--border-color))}.nav-action{display:flex;align-items:center;transition:transform .2s ease}.nav-action:hover{transform:scale(1.05)}.nav-toggle{display:none;flex-direction:column;gap:5px;background:var(--nav-toggle-bg, transparent);border:1px solid var(--nav-toggle-border, var(--border-color));border-radius:.5rem;cursor:pointer;padding:.625rem .5rem;z-index:1001;transition:all .25s ease}.nav-toggle:hover{background:var(--nav-toggle-hover-bg, var(--bg-secondary));border-color:var(--nav-toggle-hover-border, var(--border-color))}.nav-toggle-line{width:24px;height:3px;background:var(--nav-toggle-color, var(--text-primary));border-radius:3px;transition:all .3s cubic-bezier(.4,0,.2,1);transform-origin:center}.nav-toggle-line.open:nth-child(1){transform:rotate(45deg) translate(8px,8px)}.nav-toggle-line.open:nth-child(2){opacity:0}.nav-toggle-line.open:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}.nav-mobile-menu{position:fixed;top:72px;left:0;right:0;background:var(--nav-mobile-bg, var(--bg-primary));-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);flex-direction:column;padding:1.5rem;gap:.5rem;transform:translateY(-100%);opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);border-bottom:1px solid var(--nav-border, var(--border-color));max-height:calc(100vh - 72px);overflow-y:auto;z-index:999;box-shadow:0 4px 24px #0000001a}.nav-mobile-menu.open{transform:translateY(0);opacity:1;visibility:visible}wsx-link.nav-mobile-link::part(link){display:block;padding:.875rem 1.25rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none!important;font-weight:500;font-size:1rem;border-radius:.625rem;transition:all .25s cubic-bezier(.4,0,.2,1);border-left:3px solid transparent}wsx-link.nav-mobile-link::part(link):hover{background:var(--nav-mobile-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));text-decoration:none!important;transform:translate(4px);border-left-color:var(--primary-red)}wsx-link.nav-mobile-link[active]::part(link),wsx-link.nav-mobile-link.nav-link-active::part(link){background:var(--nav-mobile-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);box-shadow:0 2px 8px var(--card-shadow)}.nav-mobile-link{display:block;padding:.875rem 1.25rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none;font-weight:500;font-size:1rem;border-radius:.625rem;transition:all .25s cubic-bezier(.4,0,.2,1);border-left:3px solid transparent}.nav-mobile-link:hover{background:var(--nav-mobile-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));transform:translate(4px);border-left-color:var(--primary-red)}.nav-mobile-link.nav-link-active{background:var(--nav-mobile-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);box-shadow:0 2px 8px var(--card-shadow)}@media (max-width: 768px){.nav-container{padding:0 1.25rem;height:68px}.nav-brand{font-size:1.35rem}.nav-menu{display:none}.nav-actions{margin-left:0;gap:.5rem;padding-left:.5rem;border-left:none}.nav-toggle{display:flex;margin-left:.5rem}.nav-mobile-menu{display:flex;top:68px;max-height:calc(100vh - 68px)}}@media (min-width: 769px){.nav-mobile-menu{display:none!important}}@media (prefers-reduced-motion: no-preference){.responsive-nav,.nav-link,.nav-overflow-button,.nav-toggle{transition-duration:.25s}}@media (prefers-reduced-motion: reduce){.responsive-nav,.nav-link,.nav-overflow-button,.nav-toggle,.nav-mobile-menu{transition:none;animation:none}}';
@@ -1818,36 +1818,36 @@ let at, st;
1818
1818
  function Z(t, e, r) {
1819
1819
  return (e = lt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1820
1820
  }
1821
- function dr(t, e, r, i, S, A) {
1821
+ function ur(t, e, r, o, S, A) {
1822
1822
  function b(a, s, c) {
1823
- return function(o, n) {
1824
- return c && c(o), a[s].call(o, n);
1823
+ return function(i, n) {
1824
+ return c && c(i), a[s].call(i, n);
1825
1825
  };
1826
1826
  }
1827
- function O(a, s) {
1827
+ function T(a, s) {
1828
1828
  for (var c = 0; c < a.length; c++) a[c].call(s);
1829
1829
  return s;
1830
1830
  }
1831
- function y(a, s, c, o) {
1832
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
1831
+ function y(a, s, c, i) {
1832
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1833
1833
  return a;
1834
1834
  }
1835
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
1836
- function T(f) {
1835
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1836
+ function O(f) {
1837
1837
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1838
1838
  }
1839
1839
  var g, _ = s[0], I = s[3], M = !p;
1840
1840
  if (!M) {
1841
1841
  c || Array.isArray(_) || (_ = [_]);
1842
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
1843
- k ? (m || d ? l = { get: Se(function() {
1842
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1843
+ x ? (m || u ? l = { get: Se(function() {
1844
1844
  return I(this);
1845
- }, o, "get"), set: function(f) {
1845
+ }, i, "get"), set: function(f) {
1846
1846
  s[4](this, f);
1847
- } } : l[E] = I, m || Se(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
1847
+ } } : l[E] = I, m || Se(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1848
1848
  }
1849
1849
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1850
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
1850
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1851
1851
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1852
1852
  y(N, "An initializer", "be", !0), h.push(N);
1853
1853
  }).bind(null, Y) };
@@ -1855,17 +1855,17 @@ function dr(t, e, r, i, S, A) {
1855
1855
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1856
1856
  else {
1857
1857
  var P, U;
1858
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
1859
- return T(f), l.value;
1860
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
1861
- return f[o];
1858
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1859
+ return O(f), l.value;
1860
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1861
+ return f[i];
1862
1862
  }, (n < 2 || n === 4) && (U = function(f, N) {
1863
- f[o] = N;
1863
+ f[i] = N;
1864
1864
  }));
1865
- var V = z.access = { has: k ? v.bind() : function(f) {
1866
- return o in f;
1865
+ var V = z.access = { has: x ? v.bind() : function(f) {
1866
+ return i in f;
1867
1867
  } };
1868
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
1868
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1869
1869
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1870
1870
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1871
1871
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -1874,39 +1874,39 @@ function dr(t, e, r, i, S, A) {
1874
1874
  Y.v = !0;
1875
1875
  }
1876
1876
  }
1877
- return (m || d) && p.push(function(f, N) {
1877
+ return (m || u) && p.push(function(f, N) {
1878
1878
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1879
1879
  return N;
1880
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
1880
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1881
1881
  }
1882
1882
  function F(a, s) {
1883
1883
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1884
1884
  }
1885
1885
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1886
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
1887
- var n, u, h = [], p = function(E) {
1886
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
1887
+ var n, d, h = [], p = function(E) {
1888
1888
  return hr(E) === a;
1889
- }, x = /* @__PURE__ */ new Map();
1890
- function k(E) {
1891
- E && h.push(O.bind(null, E));
1889
+ }, k = /* @__PURE__ */ new Map();
1890
+ function x(E) {
1891
+ E && h.push(T.bind(null, E));
1892
1892
  }
1893
1893
  for (var m = 0; m < s.length; m++) {
1894
- var d = s[m];
1895
- if (Array.isArray(d)) {
1896
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
1894
+ var u = s[m];
1895
+ if (Array.isArray(u)) {
1896
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1897
1897
  if (!M && !g) {
1898
- var R = x.get(l);
1899
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
1900
- x.set(l, !(v > 2) || v);
1898
+ var R = k.get(l);
1899
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
1900
+ k.set(l, !(v > 2) || v);
1901
1901
  }
1902
- D(I ? a : a.prototype, d, _, g ? "#" + T : lt(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1902
+ D(I ? a : a.prototype, u, _, g ? "#" + O : lt(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1903
1903
  }
1904
1904
  }
1905
- return k(n), k(u), h;
1905
+ return x(n), x(d), h;
1906
1906
  }(t, e, S, L);
1907
1907
  return r.length || F(t, L), { e: j, get c() {
1908
1908
  var a = [];
1909
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
1909
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1910
1910
  } };
1911
1911
  }
1912
1912
  function lt(t) {
@@ -1917,8 +1917,8 @@ function pr(t, e) {
1917
1917
  if (typeof t != "object" || !t) return t;
1918
1918
  var r = t[Symbol.toPrimitive];
1919
1919
  if (r !== void 0) {
1920
- var i = r.call(t, e);
1921
- if (typeof i != "object") return i;
1920
+ var o = r.call(t, e);
1921
+ if (typeof o != "object") return o;
1922
1922
  throw new TypeError("@@toPrimitive must return a primitive value.");
1923
1923
  }
1924
1924
  return String(t);
@@ -1939,7 +1939,7 @@ st = [te({
1939
1939
  tagName: "wsx-responsive-nav"
1940
1940
  })];
1941
1941
  let gr;
1942
- class fr extends Q {
1942
+ class fr extends J {
1943
1943
  constructor(e) {
1944
1944
  super({
1945
1945
  styles: Ee,
@@ -1958,10 +1958,10 @@ class fr extends Q {
1958
1958
  const L = C.target, j = this.querySelector(".nav-overflow"), a = j == null ? void 0 : j.querySelector(".nav-overflow-menu"), s = j == null ? void 0 : j.querySelector(".nav-overflow-button");
1959
1959
  a && s && !a.contains(L) && !s.contains(L) && this.closeOverflow();
1960
1960
  }), Z(this, "updateVisibleItems", () => {
1961
- var u;
1961
+ var d;
1962
1962
  if (!this.navigation.autoOverflow || this.isMobile || !this.navMenuElement) {
1963
1963
  if (!this.isMobile) {
1964
- const h = this.navigation.items.map((p, x) => x);
1964
+ const h = this.navigation.items.map((p, k) => k);
1965
1965
  JSON.stringify(h.sort()) !== JSON.stringify(this.visibleItemIndices.sort()) && (this.visibleItemIndices = h, this.hiddenItemIndices = [], this.rerender());
1966
1966
  }
1967
1967
  return;
@@ -1970,19 +1970,19 @@ class fr extends Q {
1970
1970
  for (let h = 0; h < this.navigation.items.length; h++) {
1971
1971
  let p = this.navItemsElements[h];
1972
1972
  if (!p) {
1973
- const x = Array.from(this.navMenuElement.querySelectorAll(".nav-link"));
1974
- x[h] && (p = x[h], this.navItemsElements[h] = p);
1973
+ const k = Array.from(this.navMenuElement.querySelectorAll(".nav-link"));
1974
+ k[h] && (p = k[h], this.navItemsElements[h] = p);
1975
1975
  }
1976
1976
  if (p)
1977
1977
  C.push(p);
1978
1978
  else {
1979
- const x = document.createElement("wsx-link");
1980
- x.textContent = this.navigation.items[h].label, x.style.visibility = "hidden", x.style.position = "absolute", document.body.appendChild(x), C.push(x), setTimeout(() => {
1981
- x.parentElement && x.parentElement.removeChild(x);
1979
+ const k = document.createElement("wsx-link");
1980
+ k.textContent = this.navigation.items[h].label, k.style.visibility = "hidden", k.style.position = "absolute", document.body.appendChild(k), C.push(k), setTimeout(() => {
1981
+ k.parentElement && k.parentElement.removeChild(k);
1982
1982
  }, 0);
1983
1983
  }
1984
1984
  }
1985
- const L = (u = this.navMenuElement.parentElement) == null ? void 0 : u.querySelector(".nav-actions"), j = L ? Array.from(L.children).reduce((h, p) => h + ke.getElementTotalWidth(p), 0) + 8 : 0, c = ke.detect({
1985
+ const L = (d = this.navMenuElement.parentElement) == null ? void 0 : d.querySelector(".nav-actions"), j = L ? Array.from(L.children).reduce((h, p) => h + xe.getElementTotalWidth(p), 0) + 8 : 0, c = xe.detect({
1986
1986
  container: this.navMenuElement,
1987
1987
  items: C,
1988
1988
  gap: 16,
@@ -1990,10 +1990,10 @@ class fr extends Q {
1990
1990
  overflowButtonWidth: 90,
1991
1991
  padding: 0,
1992
1992
  minVisibleItems: 1
1993
- }), o = c.visibleIndices, n = c.hiddenIndices;
1993
+ }), i = c.visibleIndices, n = c.hiddenIndices;
1994
1994
  C.forEach((h) => {
1995
1995
  h.parentElement === document.body && document.body.removeChild(h);
1996
- }), (JSON.stringify(o.sort()) !== JSON.stringify(this.visibleItemIndices.sort()) || JSON.stringify(n.sort()) !== JSON.stringify(this.hiddenItemIndices.sort())) && (this.visibleItemIndices = o, this.hiddenItemIndices = n, this.rerender());
1996
+ }), (JSON.stringify(i.sort()) !== JSON.stringify(this.visibleItemIndices.sort()) || JSON.stringify(n.sort()) !== JSON.stringify(this.hiddenItemIndices.sort())) && (this.visibleItemIndices = i, this.hiddenItemIndices = n, this.rerender());
1997
1997
  }), Z(this, "checkMobile", () => {
1998
1998
  var L;
1999
1999
  const C = window.innerWidth <= (((L = this.navigation) == null ? void 0 : L.mobileBreakpoint) || 768);
@@ -2014,9 +2014,9 @@ class fr extends Q {
2014
2014
  enumerable: !0,
2015
2015
  configurable: !0
2016
2016
  });
2017
- const [i, S] = this.useState("isMobileMenuOpen", !1);
2017
+ const [o, S] = this.useState("isMobileMenuOpen", !1);
2018
2018
  Object.defineProperty(this, "isMobileMenuOpen", {
2019
- get: i,
2019
+ get: o,
2020
2020
  set: S,
2021
2021
  enumerable: !0,
2022
2022
  configurable: !0
@@ -2039,9 +2039,9 @@ class fr extends Q {
2039
2039
  enumerable: !0,
2040
2040
  configurable: !0
2041
2041
  });
2042
- const [O, y] = this.useState("isMobile", !1);
2042
+ const [T, y] = this.useState("isMobile", !1);
2043
2043
  Object.defineProperty(this, "isMobile", {
2044
- get: O,
2044
+ get: T,
2045
2045
  set: y,
2046
2046
  enumerable: !0,
2047
2047
  configurable: !0
@@ -2055,14 +2055,14 @@ class fr extends Q {
2055
2055
  });
2056
2056
  }
2057
2057
  render() {
2058
- var r, i;
2059
- if (!((r = this.navigation) != null && r.items) || ((i = this.navigation) == null ? void 0 : i.items.length) === 0)
2058
+ var r, o;
2059
+ if (!((r = this.navigation) != null && r.items) || ((o = this.navigation) == null ? void 0 : o.items.length) === 0)
2060
2060
  return /* @__PURE__ */ $("nav", { class: "responsive-nav" });
2061
2061
  const e = this.hiddenItemIndices.map((S) => this.navigation.items[S]);
2062
2062
  return /* @__PURE__ */ $("nav", { class: "responsive-nav" }, /* @__PURE__ */ $("div", { class: "nav-container" }, /* @__PURE__ */ $("div", { class: "nav-brand" }, /* @__PURE__ */ $("slot", { name: "brand-icon" }, this.navigation.brandIcon && typeof this.navigation.brandIcon == "string" && /* @__PURE__ */ $("span", { class: "nav-brand-icon" }, this.navigation.brandIcon)), this.navigation.brand && /* @__PURE__ */ $("span", { class: "nav-brand-text" }, this.navigation.brand)), !this.isMobile && /* @__PURE__ */ $("div", { ref: (S) => this.navMenuElement = S, class: "nav-menu" }, this.navigation.items.map((S, A) => {
2063
2063
  const b = this.visibleItemIndices.includes(A);
2064
- return /* @__PURE__ */ $("wsx-link", { key: `nav-${A}`, ref: (O) => {
2065
- O && (this.navItemsElements[A] = O);
2064
+ return /* @__PURE__ */ $("wsx-link", { key: `nav-${A}`, ref: (T) => {
2065
+ T && (this.navItemsElements[A] = T);
2066
2066
  }, to: S.to, class: `nav-link ${b ? "" : "hidden-item"}`, "active-class": "nav-link-active", exact: S.exact, style: b ? "" : "position: absolute; visibility: hidden; pointer-events: none;" }, S.label);
2067
2067
  }), this.navigation.autoOverflow && e.length > 0 && !this.isMobile && /* @__PURE__ */ $("div", { class: "nav-overflow" }, /* @__PURE__ */ $("button", { class: "nav-overflow-button", onClick: this.toggleOverflow, "data-wsx-key": "ResponsiveNav-button-text-1-1" }, "More ▼"), this.isOverflowOpen && /* @__PURE__ */ $("div", { class: "nav-overflow-menu" }, e.map((S, A) => {
2068
2068
  const b = this.hiddenItemIndices[A];
@@ -2073,8 +2073,8 @@ class fr extends Q {
2073
2073
  * 组件连接时初始化
2074
2074
  */
2075
2075
  onConnected() {
2076
- var r, i, S;
2077
- if ((r = super.onConnected) == null || r.call(this), !((i = this.navigation) != null && i.items) || ((S = this.navigation) == null ? void 0 : S.items.length) === 0)
2076
+ var r, o, S;
2077
+ if ((r = super.onConnected) == null || r.call(this), !((o = this.navigation) != null && o.items) || ((S = this.navigation) == null ? void 0 : S.items.length) === 0)
2078
2078
  try {
2079
2079
  this.visibleItemIndices = this.navigation.items.map((A, b) => b), this.rerender();
2080
2080
  } catch (A) {
@@ -2083,7 +2083,7 @@ class fr extends Q {
2083
2083
  this.checkMobile();
2084
2084
  const e = (A = 0) => {
2085
2085
  A > 10 || setTimeout(() => {
2086
- this.navMenuElement && (this.navigation.items.every((O, y) => this.navItemsElements[y]) || A > 5 ? this.updateVisibleItems() : e(A + 1));
2086
+ this.navMenuElement && (this.navigation.items.every((T, y) => this.navItemsElements[y]) || A > 5 ? this.updateVisibleItems() : e(A + 1));
2087
2087
  }, 50);
2088
2088
  };
2089
2089
  e(), this.resizeHandler = () => {
@@ -2107,43 +2107,43 @@ class fr extends Q {
2107
2107
  }
2108
2108
  }
2109
2109
  it = fr;
2110
- [gr, at] = dr(it, [], st, 0, void 0, Q).c;
2110
+ [gr, at] = ur(it, [], st, 0, void 0, J).c;
2111
2111
  at();
2112
2112
  var ct;
2113
- let ut, dt;
2113
+ let dt, ut;
2114
2114
  function ne(t, e, r) {
2115
2115
  return (e = pt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
2116
2116
  }
2117
- function br(t, e, r, i, S, A) {
2117
+ function br(t, e, r, o, S, A) {
2118
2118
  function b(a, s, c) {
2119
- return function(o, n) {
2120
- return c && c(o), a[s].call(o, n);
2119
+ return function(i, n) {
2120
+ return c && c(i), a[s].call(i, n);
2121
2121
  };
2122
2122
  }
2123
- function O(a, s) {
2123
+ function T(a, s) {
2124
2124
  for (var c = 0; c < a.length; c++) a[c].call(s);
2125
2125
  return s;
2126
2126
  }
2127
- function y(a, s, c, o) {
2128
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
2127
+ function y(a, s, c, i) {
2128
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
2129
2129
  return a;
2130
2130
  }
2131
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
2132
- function T(f) {
2131
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
2132
+ function O(f) {
2133
2133
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
2134
2134
  }
2135
2135
  var g, _ = s[0], I = s[3], M = !p;
2136
2136
  if (!M) {
2137
2137
  c || Array.isArray(_) || (_ = [_]);
2138
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
2139
- k ? (m || d ? l = { get: Ae(function() {
2138
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
2139
+ x ? (m || u ? l = { get: Ae(function() {
2140
2140
  return I(this);
2141
- }, o, "get"), set: function(f) {
2141
+ }, i, "get"), set: function(f) {
2142
2142
  s[4](this, f);
2143
- } } : l[E] = I, m || Ae(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
2143
+ } } : l[E] = I, m || Ae(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
2144
2144
  }
2145
2145
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
2146
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
2146
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
2147
2147
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
2148
2148
  y(N, "An initializer", "be", !0), h.push(N);
2149
2149
  }).bind(null, Y) };
@@ -2151,17 +2151,17 @@ function br(t, e, r, i, S, A) {
2151
2151
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
2152
2152
  else {
2153
2153
  var P, U;
2154
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
2155
- return T(f), l.value;
2156
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
2157
- return f[o];
2154
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
2155
+ return O(f), l.value;
2156
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
2157
+ return f[i];
2158
2158
  }, (n < 2 || n === 4) && (U = function(f, N) {
2159
- f[o] = N;
2159
+ f[i] = N;
2160
2160
  }));
2161
- var V = z.access = { has: k ? v.bind() : function(f) {
2162
- return o in f;
2161
+ var V = z.access = { has: x ? v.bind() : function(f) {
2162
+ return i in f;
2163
2163
  } };
2164
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
2164
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
2165
2165
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
2166
2166
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
2167
2167
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -2170,39 +2170,39 @@ function br(t, e, r, i, S, A) {
2170
2170
  Y.v = !0;
2171
2171
  }
2172
2172
  }
2173
- return (m || d) && p.push(function(f, N) {
2173
+ return (m || u) && p.push(function(f, N) {
2174
2174
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
2175
2175
  return N;
2176
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
2176
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
2177
2177
  }
2178
2178
  function F(a, s) {
2179
2179
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
2180
2180
  }
2181
2181
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
2182
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
2183
- var n, u, h = [], p = function(E) {
2182
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
2183
+ var n, d, h = [], p = function(E) {
2184
2184
  return vr(E) === a;
2185
- }, x = /* @__PURE__ */ new Map();
2186
- function k(E) {
2187
- E && h.push(O.bind(null, E));
2185
+ }, k = /* @__PURE__ */ new Map();
2186
+ function x(E) {
2187
+ E && h.push(T.bind(null, E));
2188
2188
  }
2189
2189
  for (var m = 0; m < s.length; m++) {
2190
- var d = s[m];
2191
- if (Array.isArray(d)) {
2192
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
2190
+ var u = s[m];
2191
+ if (Array.isArray(u)) {
2192
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
2193
2193
  if (!M && !g) {
2194
- var R = x.get(l);
2195
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
2196
- x.set(l, !(v > 2) || v);
2194
+ var R = k.get(l);
2195
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
2196
+ k.set(l, !(v > 2) || v);
2197
2197
  }
2198
- D(I ? a : a.prototype, d, _, g ? "#" + T : pt(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
2198
+ D(I ? a : a.prototype, u, _, g ? "#" + O : pt(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
2199
2199
  }
2200
2200
  }
2201
- return k(n), k(u), h;
2201
+ return x(n), x(d), h;
2202
2202
  }(t, e, S, L);
2203
2203
  return r.length || F(t, L), { e: j, get c() {
2204
2204
  var a = [];
2205
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
2205
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
2206
2206
  } };
2207
2207
  }
2208
2208
  function pt(t) {
@@ -2213,8 +2213,8 @@ function mr(t, e) {
2213
2213
  if (typeof t != "object" || !t) return t;
2214
2214
  var r = t[Symbol.toPrimitive];
2215
2215
  if (r !== void 0) {
2216
- var i = r.call(t, e);
2217
- if (typeof i != "object") return i;
2216
+ var o = r.call(t, e);
2217
+ if (typeof o != "object") return o;
2218
2218
  throw new TypeError("@@toPrimitive must return a primitive value.");
2219
2219
  }
2220
2220
  return String(t);
@@ -2231,28 +2231,28 @@ function vr(t) {
2231
2231
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
2232
2232
  return t;
2233
2233
  }
2234
- const Oe = Ue("SvgIcon");
2235
- dt = [te({
2234
+ const Te = Ue("SvgIcon");
2235
+ ut = [te({
2236
2236
  tagName: "svg-icon"
2237
2237
  })];
2238
2238
  let yr;
2239
- class xr extends Q {
2239
+ class kr extends J {
2240
2240
  constructor() {
2241
- super(), ne(this, "size", void 0), ne(this, "color", void 0), ne(this, "name", void 0), ne(this, "handleClick", (O) => {
2242
- Oe.debug("SVG icon clicked", {
2241
+ super(), ne(this, "size", void 0), ne(this, "color", void 0), ne(this, "name", void 0), ne(this, "handleClick", (T) => {
2242
+ Te.debug("SVG icon clicked", {
2243
2243
  name: this.name
2244
2244
  }), this.dispatchEvent(new CustomEvent("icon-click", {
2245
2245
  detail: {
2246
2246
  name: this.name,
2247
- originalEvent: O
2247
+ originalEvent: T
2248
2248
  },
2249
2249
  bubbles: !0
2250
2250
  }));
2251
- }), ne(this, "handleMouseEnter", (O) => {
2252
- const y = O.target;
2251
+ }), ne(this, "handleMouseEnter", (T) => {
2252
+ const y = T.target;
2253
2253
  y.style.transform = "scale(1.1)";
2254
- }), ne(this, "handleMouseLeave", (O) => {
2255
- const y = O.target;
2254
+ }), ne(this, "handleMouseLeave", (T) => {
2255
+ const y = T.target;
2256
2256
  y.style.transform = "scale(1)";
2257
2257
  });
2258
2258
  const [e, r] = this.useState("size", 24);
@@ -2262,9 +2262,9 @@ class xr extends Q {
2262
2262
  enumerable: !0,
2263
2263
  configurable: !0
2264
2264
  });
2265
- const [i, S] = this.useState("color", "currentColor");
2265
+ const [o, S] = this.useState("color", "currentColor");
2266
2266
  Object.defineProperty(this, "color", {
2267
- get: i,
2267
+ get: o,
2268
2268
  set: S,
2269
2269
  enumerable: !0,
2270
2270
  configurable: !0
@@ -2278,7 +2278,7 @@ class xr extends Q {
2278
2278
  });
2279
2279
  }
2280
2280
  render() {
2281
- const e = this.size || "24", r = this.color || "currentColor", i = this.name || "star", S = {
2281
+ const e = this.size || "24", r = this.color || "currentColor", o = this.name || "star", S = {
2282
2282
  star: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
2283
2283
  heart: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z",
2284
2284
  check: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",
@@ -2286,19 +2286,19 @@ class xr extends Q {
2286
2286
  github: "M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22",
2287
2287
  play: "M8 5v14l11-7z",
2288
2288
  settings: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1 1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
2289
- }, A = S[i] || S.star;
2289
+ }, A = S[o] || S.star;
2290
2290
  return /* @__PURE__ */ $("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: r, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "svg-icon", onClick: this.handleClick, style: "cursor: pointer; transition: transform 0.2s ease; display: inline-block;", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, /* @__PURE__ */ $("path", { d: A, fill: r }));
2291
2291
  }
2292
2292
  static get observedAttributes() {
2293
2293
  return ["name", "size", "color"];
2294
2294
  }
2295
- onAttributeChanged(e, r, i) {
2296
- Oe.debug(`Attribute ${e} changed from ${r} to ${i}`), this.connected && this.rerender();
2295
+ onAttributeChanged(e, r, o) {
2296
+ Te.debug(`Attribute ${e} changed from ${r} to ${o}`), this.connected && this.rerender();
2297
2297
  }
2298
2298
  }
2299
- ct = xr;
2300
- [yr, ut] = br(ct, [], dt, 0, void 0, Q).c;
2301
- ut();
2299
+ ct = kr;
2300
+ [yr, dt] = br(ct, [], ut, 0, void 0, J).c;
2301
+ dt();
2302
2302
  var ht = { exports: {} };
2303
2303
  (function(t) {
2304
2304
  var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
@@ -2310,8 +2310,8 @@ var ht = { exports: {} };
2310
2310
  * @namespace
2311
2311
  * @public
2312
2312
  */
2313
- var r = function(i) {
2314
- var S = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, A = 0, b = {}, O = {
2313
+ var r = function(o) {
2314
+ var S = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, A = 0, b = {}, T = {
2315
2315
  /**
2316
2316
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
2317
2317
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -2333,7 +2333,7 @@ var ht = { exports: {} };
2333
2333
  * @memberof Prism
2334
2334
  * @public
2335
2335
  */
2336
- manual: i.Prism && i.Prism.manual,
2336
+ manual: o.Prism && o.Prism.manual,
2337
2337
  /**
2338
2338
  * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
2339
2339
  * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
@@ -2355,7 +2355,7 @@ var ht = { exports: {} };
2355
2355
  * @memberof Prism
2356
2356
  * @public
2357
2357
  */
2358
- disableWorkerMessageHandler: i.Prism && i.Prism.disableWorkerMessageHandler,
2358
+ disableWorkerMessageHandler: o.Prism && o.Prism.disableWorkerMessageHandler,
2359
2359
  /**
2360
2360
  * A namespace for utility methods.
2361
2361
  *
@@ -2366,8 +2366,8 @@ var ht = { exports: {} };
2366
2366
  * @memberof Prism
2367
2367
  */
2368
2368
  util: {
2369
- encode: function n(u) {
2370
- return u instanceof y ? new y(u.type, n(u.content), u.alias) : Array.isArray(u) ? u.map(n) : u.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
2369
+ encode: function n(d) {
2370
+ return d instanceof y ? new y(d.type, n(d.content), d.alias) : Array.isArray(d) ? d.map(n) : d.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
2371
2371
  },
2372
2372
  /**
2373
2373
  * Returns the name of the type of the given value.
@@ -2407,30 +2407,30 @@ var ht = { exports: {} };
2407
2407
  * @returns {T}
2408
2408
  * @template T
2409
2409
  */
2410
- clone: function n(u, h) {
2410
+ clone: function n(d, h) {
2411
2411
  h = h || {};
2412
- var p, x;
2413
- switch (O.util.type(u)) {
2412
+ var p, k;
2413
+ switch (T.util.type(d)) {
2414
2414
  case "Object":
2415
- if (x = O.util.objId(u), h[x])
2416
- return h[x];
2415
+ if (k = T.util.objId(d), h[k])
2416
+ return h[k];
2417
2417
  p = /** @type {Record<string, any>} */
2418
- {}, h[x] = p;
2419
- for (var k in u)
2420
- u.hasOwnProperty(k) && (p[k] = n(u[k], h));
2418
+ {}, h[k] = p;
2419
+ for (var x in d)
2420
+ d.hasOwnProperty(x) && (p[x] = n(d[x], h));
2421
2421
  return (
2422
2422
  /** @type {any} */
2423
2423
  p
2424
2424
  );
2425
2425
  case "Array":
2426
- return x = O.util.objId(u), h[x] ? h[x] : (p = [], h[x] = p, /** @type {Array} */
2426
+ return k = T.util.objId(d), h[k] ? h[k] : (p = [], h[k] = p, /** @type {Array} */
2427
2427
  /** @type {any} */
2428
- u.forEach(function(m, d) {
2429
- p[d] = n(m, h);
2428
+ d.forEach(function(m, u) {
2429
+ p[u] = n(m, h);
2430
2430
  }), /** @type {any} */
2431
2431
  p);
2432
2432
  default:
2433
- return u;
2433
+ return d;
2434
2434
  }
2435
2435
  },
2436
2436
  /**
@@ -2443,9 +2443,9 @@ var ht = { exports: {} };
2443
2443
  */
2444
2444
  getLanguage: function(n) {
2445
2445
  for (; n; ) {
2446
- var u = S.exec(n.className);
2447
- if (u)
2448
- return u[1].toLowerCase();
2446
+ var d = S.exec(n.className);
2447
+ if (d)
2448
+ return d[1].toLowerCase();
2449
2449
  n = n.parentElement;
2450
2450
  }
2451
2451
  return "none";
@@ -2457,8 +2457,8 @@ var ht = { exports: {} };
2457
2457
  * @param {string} language
2458
2458
  * @returns {void}
2459
2459
  */
2460
- setLanguage: function(n, u) {
2461
- n.className = n.className.replace(RegExp(S, "gi"), ""), n.classList.add("language-" + u);
2460
+ setLanguage: function(n, d) {
2461
+ n.className = n.className.replace(RegExp(S, "gi"), ""), n.classList.add("language-" + d);
2462
2462
  },
2463
2463
  /**
2464
2464
  * Returns the script element that is currently executing.
@@ -2480,10 +2480,10 @@ var ht = { exports: {} };
2480
2480
  } catch (p) {
2481
2481
  var n = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack) || [])[1];
2482
2482
  if (n) {
2483
- var u = document.getElementsByTagName("script");
2484
- for (var h in u)
2485
- if (u[h].src == n)
2486
- return u[h];
2483
+ var d = document.getElementsByTagName("script");
2484
+ for (var h in d)
2485
+ if (d[h].src == n)
2486
+ return d[h];
2487
2487
  }
2488
2488
  return null;
2489
2489
  }
@@ -2507,12 +2507,12 @@ var ht = { exports: {} };
2507
2507
  * @param {boolean} [defaultActivation=false]
2508
2508
  * @returns {boolean}
2509
2509
  */
2510
- isActive: function(n, u, h) {
2511
- for (var p = "no-" + u; n; ) {
2512
- var x = n.classList;
2513
- if (x.contains(u))
2510
+ isActive: function(n, d, h) {
2511
+ for (var p = "no-" + d; n; ) {
2512
+ var k = n.classList;
2513
+ if (k.contains(d))
2514
2514
  return !0;
2515
- if (x.contains(p))
2515
+ if (k.contains(p))
2516
2516
  return !1;
2517
2517
  n = n.parentElement;
2518
2518
  }
@@ -2562,10 +2562,10 @@ var ht = { exports: {} };
2562
2562
  * 'color': /\b(?:red|green|blue)\b/
2563
2563
  * });
2564
2564
  */
2565
- extend: function(n, u) {
2566
- var h = O.util.clone(O.languages[n]);
2567
- for (var p in u)
2568
- h[p] = u[p];
2565
+ extend: function(n, d) {
2566
+ var h = T.util.clone(T.languages[n]);
2567
+ for (var p in d)
2568
+ h[p] = d[p];
2569
2569
  return h;
2570
2570
  },
2571
2571
  /**
@@ -2643,31 +2643,31 @@ var ht = { exports: {} };
2643
2643
  * @returns {Grammar} The new grammar object.
2644
2644
  * @public
2645
2645
  */
2646
- insertBefore: function(n, u, h, p) {
2646
+ insertBefore: function(n, d, h, p) {
2647
2647
  p = p || /** @type {any} */
2648
- O.languages;
2649
- var x = p[n], k = {};
2650
- for (var m in x)
2651
- if (x.hasOwnProperty(m)) {
2652
- if (m == u)
2653
- for (var d in h)
2654
- h.hasOwnProperty(d) && (k[d] = h[d]);
2655
- h.hasOwnProperty(m) || (k[m] = x[m]);
2648
+ T.languages;
2649
+ var k = p[n], x = {};
2650
+ for (var m in k)
2651
+ if (k.hasOwnProperty(m)) {
2652
+ if (m == d)
2653
+ for (var u in h)
2654
+ h.hasOwnProperty(u) && (x[u] = h[u]);
2655
+ h.hasOwnProperty(m) || (x[m] = k[m]);
2656
2656
  }
2657
2657
  var v = p[n];
2658
- return p[n] = k, O.languages.DFS(O.languages, function(T, g) {
2659
- g === v && T != n && (this[T] = k);
2660
- }), k;
2658
+ return p[n] = x, T.languages.DFS(T.languages, function(O, g) {
2659
+ g === v && O != n && (this[O] = x);
2660
+ }), x;
2661
2661
  },
2662
2662
  // Traverse a language definition with Depth First Search
2663
- DFS: function n(u, h, p, x) {
2664
- x = x || {};
2665
- var k = O.util.objId;
2666
- for (var m in u)
2667
- if (u.hasOwnProperty(m)) {
2668
- h.call(u, m, u[m], p || m);
2669
- var d = u[m], v = O.util.type(d);
2670
- v === "Object" && !x[k(d)] ? (x[k(d)] = !0, n(d, h, null, x)) : v === "Array" && !x[k(d)] && (x[k(d)] = !0, n(d, h, m, x));
2663
+ DFS: function n(d, h, p, k) {
2664
+ k = k || {};
2665
+ var x = T.util.objId;
2666
+ for (var m in d)
2667
+ if (d.hasOwnProperty(m)) {
2668
+ h.call(d, m, d[m], p || m);
2669
+ var u = d[m], v = T.util.type(u);
2670
+ v === "Object" && !k[x(u)] ? (k[x(u)] = !0, n(u, h, null, k)) : v === "Array" && !k[x(u)] && (k[x(u)] = !0, n(u, h, m, k));
2671
2671
  }
2672
2672
  }
2673
2673
  },
@@ -2684,8 +2684,8 @@ var ht = { exports: {} };
2684
2684
  * @memberof Prism
2685
2685
  * @public
2686
2686
  */
2687
- highlightAll: function(n, u) {
2688
- O.highlightAllUnder(document, n, u);
2687
+ highlightAll: function(n, d) {
2688
+ T.highlightAllUnder(document, n, d);
2689
2689
  },
2690
2690
  /**
2691
2691
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -2702,15 +2702,15 @@ var ht = { exports: {} };
2702
2702
  * @memberof Prism
2703
2703
  * @public
2704
2704
  */
2705
- highlightAllUnder: function(n, u, h) {
2705
+ highlightAllUnder: function(n, d, h) {
2706
2706
  var p = {
2707
2707
  callback: h,
2708
2708
  container: n,
2709
2709
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
2710
2710
  };
2711
- O.hooks.run("before-highlightall", p), p.elements = Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)), O.hooks.run("before-all-elements-highlight", p);
2712
- for (var x = 0, k; k = p.elements[x++]; )
2713
- O.highlightElement(k, u === !0, p.callback);
2711
+ T.hooks.run("before-highlightall", p), p.elements = Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)), T.hooks.run("before-all-elements-highlight", p);
2712
+ for (var k = 0, x; x = p.elements[k++]; )
2713
+ T.highlightElement(x, d === !0, p.callback);
2714
2714
  },
2715
2715
  /**
2716
2716
  * Highlights the code inside a single element.
@@ -2740,39 +2740,39 @@ var ht = { exports: {} };
2740
2740
  * @memberof Prism
2741
2741
  * @public
2742
2742
  */
2743
- highlightElement: function(n, u, h) {
2744
- var p = O.util.getLanguage(n), x = O.languages[p];
2745
- O.util.setLanguage(n, p);
2746
- var k = n.parentElement;
2747
- k && k.nodeName.toLowerCase() === "pre" && O.util.setLanguage(k, p);
2748
- var m = n.textContent, d = {
2743
+ highlightElement: function(n, d, h) {
2744
+ var p = T.util.getLanguage(n), k = T.languages[p];
2745
+ T.util.setLanguage(n, p);
2746
+ var x = n.parentElement;
2747
+ x && x.nodeName.toLowerCase() === "pre" && T.util.setLanguage(x, p);
2748
+ var m = n.textContent, u = {
2749
2749
  element: n,
2750
2750
  language: p,
2751
- grammar: x,
2751
+ grammar: k,
2752
2752
  code: m
2753
2753
  };
2754
2754
  function v(g) {
2755
- d.highlightedCode = g, O.hooks.run("before-insert", d), d.element.innerHTML = d.highlightedCode, O.hooks.run("after-highlight", d), O.hooks.run("complete", d), h && h.call(d.element);
2755
+ u.highlightedCode = g, T.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, T.hooks.run("after-highlight", u), T.hooks.run("complete", u), h && h.call(u.element);
2756
2756
  }
2757
- if (O.hooks.run("before-sanity-check", d), k = d.element.parentElement, k && k.nodeName.toLowerCase() === "pre" && !k.hasAttribute("tabindex") && k.setAttribute("tabindex", "0"), !d.code) {
2758
- O.hooks.run("complete", d), h && h.call(d.element);
2757
+ if (T.hooks.run("before-sanity-check", u), x = u.element.parentElement, x && x.nodeName.toLowerCase() === "pre" && !x.hasAttribute("tabindex") && x.setAttribute("tabindex", "0"), !u.code) {
2758
+ T.hooks.run("complete", u), h && h.call(u.element);
2759
2759
  return;
2760
2760
  }
2761
- if (O.hooks.run("before-highlight", d), !d.grammar) {
2762
- v(O.util.encode(d.code));
2761
+ if (T.hooks.run("before-highlight", u), !u.grammar) {
2762
+ v(T.util.encode(u.code));
2763
2763
  return;
2764
2764
  }
2765
- if (u && i.Worker) {
2766
- var T = new Worker(O.filename);
2767
- T.onmessage = function(g) {
2765
+ if (d && o.Worker) {
2766
+ var O = new Worker(T.filename);
2767
+ O.onmessage = function(g) {
2768
2768
  v(g.data);
2769
- }, T.postMessage(JSON.stringify({
2770
- language: d.language,
2771
- code: d.code,
2769
+ }, O.postMessage(JSON.stringify({
2770
+ language: u.language,
2771
+ code: u.code,
2772
2772
  immediateClose: !0
2773
2773
  }));
2774
2774
  } else
2775
- v(O.highlight(d.code, d.grammar, d.language));
2775
+ v(T.highlight(u.code, u.grammar, u.language));
2776
2776
  },
2777
2777
  /**
2778
2778
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -2794,15 +2794,15 @@ var ht = { exports: {} };
2794
2794
  * @example
2795
2795
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
2796
2796
  */
2797
- highlight: function(n, u, h) {
2797
+ highlight: function(n, d, h) {
2798
2798
  var p = {
2799
2799
  code: n,
2800
- grammar: u,
2800
+ grammar: d,
2801
2801
  language: h
2802
2802
  };
2803
- if (O.hooks.run("before-tokenize", p), !p.grammar)
2803
+ if (T.hooks.run("before-tokenize", p), !p.grammar)
2804
2804
  throw new Error('The language "' + p.language + '" has no grammar.');
2805
- return p.tokens = O.tokenize(p.code, p.grammar), O.hooks.run("after-tokenize", p), y.stringify(O.util.encode(p.tokens), p.language);
2805
+ return p.tokens = T.tokenize(p.code, p.grammar), T.hooks.run("after-tokenize", p), y.stringify(T.util.encode(p.tokens), p.language);
2806
2806
  },
2807
2807
  /**
2808
2808
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -2828,15 +2828,15 @@ var ht = { exports: {} };
2828
2828
  * }
2829
2829
  * });
2830
2830
  */
2831
- tokenize: function(n, u) {
2832
- var h = u.rest;
2831
+ tokenize: function(n, d) {
2832
+ var h = d.rest;
2833
2833
  if (h) {
2834
2834
  for (var p in h)
2835
- u[p] = h[p];
2836
- delete u.rest;
2835
+ d[p] = h[p];
2836
+ delete d.rest;
2837
2837
  }
2838
- var x = new C();
2839
- return L(x, x.head, n), F(n, x, u, x.head, 0), a(x);
2838
+ var k = new C();
2839
+ return L(k, k.head, n), F(n, k, d, k.head, 0), a(k);
2840
2840
  },
2841
2841
  /**
2842
2842
  * @namespace
@@ -2857,9 +2857,9 @@ var ht = { exports: {} };
2857
2857
  * @param {HookCallback} callback The callback function which is given environment variables.
2858
2858
  * @public
2859
2859
  */
2860
- add: function(n, u) {
2861
- var h = O.hooks.all;
2862
- h[n] = h[n] || [], h[n].push(u);
2860
+ add: function(n, d) {
2861
+ var h = T.hooks.all;
2862
+ h[n] = h[n] || [], h[n].push(d);
2863
2863
  },
2864
2864
  /**
2865
2865
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -2870,67 +2870,67 @@ var ht = { exports: {} };
2870
2870
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
2871
2871
  * @public
2872
2872
  */
2873
- run: function(n, u) {
2874
- var h = O.hooks.all[n];
2873
+ run: function(n, d) {
2874
+ var h = T.hooks.all[n];
2875
2875
  if (!(!h || !h.length))
2876
- for (var p = 0, x; x = h[p++]; )
2877
- x(u);
2876
+ for (var p = 0, k; k = h[p++]; )
2877
+ k(d);
2878
2878
  }
2879
2879
  },
2880
2880
  Token: y
2881
2881
  };
2882
- i.Prism = O;
2883
- function y(n, u, h, p) {
2884
- this.type = n, this.content = u, this.alias = h, this.length = (p || "").length | 0;
2882
+ o.Prism = T;
2883
+ function y(n, d, h, p) {
2884
+ this.type = n, this.content = d, this.alias = h, this.length = (p || "").length | 0;
2885
2885
  }
2886
- y.stringify = function n(u, h) {
2887
- if (typeof u == "string")
2888
- return u;
2889
- if (Array.isArray(u)) {
2886
+ y.stringify = function n(d, h) {
2887
+ if (typeof d == "string")
2888
+ return d;
2889
+ if (Array.isArray(d)) {
2890
2890
  var p = "";
2891
- return u.forEach(function(v) {
2891
+ return d.forEach(function(v) {
2892
2892
  p += n(v, h);
2893
2893
  }), p;
2894
2894
  }
2895
- var x = {
2896
- type: u.type,
2897
- content: n(u.content, h),
2895
+ var k = {
2896
+ type: d.type,
2897
+ content: n(d.content, h),
2898
2898
  tag: "span",
2899
- classes: ["token", u.type],
2899
+ classes: ["token", d.type],
2900
2900
  attributes: {},
2901
2901
  language: h
2902
- }, k = u.alias;
2903
- k && (Array.isArray(k) ? Array.prototype.push.apply(x.classes, k) : x.classes.push(k)), O.hooks.run("wrap", x);
2902
+ }, x = d.alias;
2903
+ x && (Array.isArray(x) ? Array.prototype.push.apply(k.classes, x) : k.classes.push(x)), T.hooks.run("wrap", k);
2904
2904
  var m = "";
2905
- for (var d in x.attributes)
2906
- m += " " + d + '="' + (x.attributes[d] || "").replace(/"/g, "&quot;") + '"';
2907
- return "<" + x.tag + ' class="' + x.classes.join(" ") + '"' + m + ">" + x.content + "</" + x.tag + ">";
2905
+ for (var u in k.attributes)
2906
+ m += " " + u + '="' + (k.attributes[u] || "").replace(/"/g, "&quot;") + '"';
2907
+ return "<" + k.tag + ' class="' + k.classes.join(" ") + '"' + m + ">" + k.content + "</" + k.tag + ">";
2908
2908
  };
2909
- function D(n, u, h, p) {
2910
- n.lastIndex = u;
2911
- var x = n.exec(h);
2912
- if (x && p && x[1]) {
2913
- var k = x[1].length;
2914
- x.index += k, x[0] = x[0].slice(k);
2909
+ function D(n, d, h, p) {
2910
+ n.lastIndex = d;
2911
+ var k = n.exec(h);
2912
+ if (k && p && k[1]) {
2913
+ var x = k[1].length;
2914
+ k.index += x, k[0] = k[0].slice(x);
2915
2915
  }
2916
- return x;
2916
+ return k;
2917
2917
  }
2918
- function F(n, u, h, p, x, k) {
2918
+ function F(n, d, h, p, k, x) {
2919
2919
  for (var m in h)
2920
2920
  if (!(!h.hasOwnProperty(m) || !h[m])) {
2921
- var d = h[m];
2922
- d = Array.isArray(d) ? d : [d];
2923
- for (var v = 0; v < d.length; ++v) {
2924
- if (k && k.cause == m + "," + v)
2921
+ var u = h[m];
2922
+ u = Array.isArray(u) ? u : [u];
2923
+ for (var v = 0; v < u.length; ++v) {
2924
+ if (x && x.cause == m + "," + v)
2925
2925
  return;
2926
- var T = d[v], g = T.inside, _ = !!T.lookbehind, I = !!T.greedy, M = T.alias;
2927
- if (I && !T.pattern.global) {
2928
- var l = T.pattern.toString().match(/[imsuy]*$/)[0];
2929
- T.pattern = RegExp(T.pattern.source, l + "g");
2926
+ var O = u[v], g = O.inside, _ = !!O.lookbehind, I = !!O.greedy, M = O.alias;
2927
+ if (I && !O.pattern.global) {
2928
+ var l = O.pattern.toString().match(/[imsuy]*$/)[0];
2929
+ O.pattern = RegExp(O.pattern.source, l + "g");
2930
2930
  }
2931
- for (var R = T.pattern || T, E = p.next, w = x; E !== u.tail && !(k && w >= k.reach); w += E.value.length, E = E.next) {
2931
+ for (var R = O.pattern || O, E = p.next, w = k; E !== d.tail && !(x && w >= x.reach); w += E.value.length, E = E.next) {
2932
2932
  var B = E.value;
2933
- if (u.length > n.length)
2933
+ if (d.length > n.length)
2934
2934
  return;
2935
2935
  if (!(B instanceof y)) {
2936
2936
  var W = 1, G;
@@ -2942,22 +2942,22 @@ var ht = { exports: {} };
2942
2942
  E = E.next, z += E.value.length;
2943
2943
  if (z -= E.value.length, w = z, E.value instanceof y)
2944
2944
  continue;
2945
- for (var P = E; P !== u.tail && (z < Y || typeof P.value == "string"); P = P.next)
2945
+ for (var P = E; P !== d.tail && (z < Y || typeof P.value == "string"); P = P.next)
2946
2946
  W++, z += P.value.length;
2947
2947
  W--, B = n.slice(w, z), G.index -= w;
2948
2948
  } else if (G = D(R, 0, B, _), !G)
2949
2949
  continue;
2950
2950
  var U = G.index, V = G[0], f = B.slice(0, U), N = B.slice(U + V.length), H = w + B.length;
2951
- k && H > k.reach && (k.reach = H);
2951
+ x && H > x.reach && (x.reach = H);
2952
2952
  var ae = E.prev;
2953
- f && (ae = L(u, ae, f), w += f.length), j(u, ae, W);
2954
- var vt = new y(m, g ? O.tokenize(V, g) : V, M, V);
2955
- if (E = L(u, ae, vt), N && L(u, E, N), W > 1) {
2953
+ f && (ae = L(d, ae, f), w += f.length), j(d, ae, W);
2954
+ var vt = new y(m, g ? T.tokenize(V, g) : V, M, V);
2955
+ if (E = L(d, ae, vt), N && L(d, E, N), W > 1) {
2956
2956
  var ce = {
2957
2957
  cause: m + "," + v,
2958
2958
  reach: H
2959
2959
  };
2960
- F(n, u, h, E.prev, w, ce), k && ce.reach > k.reach && (k.reach = ce.reach);
2960
+ F(n, d, h, E.prev, w, ce), x && ce.reach > x.reach && (x.reach = ce.reach);
2961
2961
  }
2962
2962
  }
2963
2963
  }
@@ -2965,40 +2965,40 @@ var ht = { exports: {} };
2965
2965
  }
2966
2966
  }
2967
2967
  function C() {
2968
- var n = { value: null, prev: null, next: null }, u = { value: null, prev: n, next: null };
2969
- n.next = u, this.head = n, this.tail = u, this.length = 0;
2968
+ var n = { value: null, prev: null, next: null }, d = { value: null, prev: n, next: null };
2969
+ n.next = d, this.head = n, this.tail = d, this.length = 0;
2970
2970
  }
2971
- function L(n, u, h) {
2972
- var p = u.next, x = { value: h, prev: u, next: p };
2973
- return u.next = x, p.prev = x, n.length++, x;
2971
+ function L(n, d, h) {
2972
+ var p = d.next, k = { value: h, prev: d, next: p };
2973
+ return d.next = k, p.prev = k, n.length++, k;
2974
2974
  }
2975
- function j(n, u, h) {
2976
- for (var p = u.next, x = 0; x < h && p !== n.tail; x++)
2975
+ function j(n, d, h) {
2976
+ for (var p = d.next, k = 0; k < h && p !== n.tail; k++)
2977
2977
  p = p.next;
2978
- u.next = p, p.prev = u, n.length -= x;
2978
+ d.next = p, p.prev = d, n.length -= k;
2979
2979
  }
2980
2980
  function a(n) {
2981
- for (var u = [], h = n.head.next; h !== n.tail; )
2982
- u.push(h.value), h = h.next;
2983
- return u;
2981
+ for (var d = [], h = n.head.next; h !== n.tail; )
2982
+ d.push(h.value), h = h.next;
2983
+ return d;
2984
2984
  }
2985
- if (!i.document)
2986
- return i.addEventListener && (O.disableWorkerMessageHandler || i.addEventListener("message", function(n) {
2987
- var u = JSON.parse(n.data), h = u.language, p = u.code, x = u.immediateClose;
2988
- i.postMessage(O.highlight(p, O.languages[h], h)), x && i.close();
2989
- }, !1)), O;
2990
- var s = O.util.currentScript();
2991
- s && (O.filename = s.src, s.hasAttribute("data-manual") && (O.manual = !0));
2985
+ if (!o.document)
2986
+ return o.addEventListener && (T.disableWorkerMessageHandler || o.addEventListener("message", function(n) {
2987
+ var d = JSON.parse(n.data), h = d.language, p = d.code, k = d.immediateClose;
2988
+ o.postMessage(T.highlight(p, T.languages[h], h)), k && o.close();
2989
+ }, !1)), T;
2990
+ var s = T.util.currentScript();
2991
+ s && (T.filename = s.src, s.hasAttribute("data-manual") && (T.manual = !0));
2992
2992
  function c() {
2993
- O.manual || O.highlightAll();
2993
+ T.manual || T.highlightAll();
2994
2994
  }
2995
- if (!O.manual) {
2996
- var o = document.readyState;
2997
- o === "loading" || o === "interactive" && s && s.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
2995
+ if (!T.manual) {
2996
+ var i = document.readyState;
2997
+ i === "loading" || i === "interactive" && s && s.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
2998
2998
  }
2999
- return O;
2999
+ return T;
3000
3000
  }(e);
3001
- t.exports && (t.exports = r), typeof de < "u" && (de.Prism = r), r.languages.markup = {
3001
+ t.exports && (t.exports = r), typeof ue < "u" && (ue.Prism = r), r.languages.markup = {
3002
3002
  comment: {
3003
3003
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
3004
3004
  greedy: !0
@@ -3075,8 +3075,8 @@ var ht = { exports: {} };
3075
3075
  },
3076
3076
  /&#x?[\da-f]{1,8};/i
3077
3077
  ]
3078
- }, r.languages.markup.tag.inside["attr-value"].inside.entity = r.languages.markup.entity, r.languages.markup.doctype.inside["internal-subset"].inside = r.languages.markup, r.hooks.add("wrap", function(i) {
3079
- i.type === "entity" && (i.attributes.title = i.content.replace(/&amp;/, "&"));
3078
+ }, r.languages.markup.tag.inside["attr-value"].inside.entity = r.languages.markup.entity, r.languages.markup.doctype.inside["internal-subset"].inside = r.languages.markup, r.hooks.add("wrap", function(o) {
3079
+ o.type === "entity" && (o.attributes.title = o.content.replace(/&amp;/, "&"));
3080
3080
  }), Object.defineProperty(r.languages.markup.tag, "addInlined", {
3081
3081
  /**
3082
3082
  * Adds an inlined language to markup.
@@ -3096,13 +3096,13 @@ var ht = { exports: {} };
3096
3096
  lookbehind: !0,
3097
3097
  inside: r.languages[A]
3098
3098
  }, b.cdata = /^<!\[CDATA\[|\]\]>$/i;
3099
- var O = {
3099
+ var T = {
3100
3100
  "included-cdata": {
3101
3101
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
3102
3102
  inside: b
3103
3103
  }
3104
3104
  };
3105
- O["language-" + A] = {
3105
+ T["language-" + A] = {
3106
3106
  pattern: /[\s\S]+/,
3107
3107
  inside: r.languages[A]
3108
3108
  };
@@ -3113,7 +3113,7 @@ var ht = { exports: {} };
3113
3113
  }), "i"),
3114
3114
  lookbehind: !0,
3115
3115
  greedy: !0,
3116
- inside: O
3116
+ inside: T
3117
3117
  }, r.languages.insertBefore("markup", "cdata", y);
3118
3118
  }
3119
3119
  }), Object.defineProperty(r.languages.markup.tag, "addAttribute", {
@@ -3128,10 +3128,10 @@ var ht = { exports: {} };
3128
3128
  * @example
3129
3129
  * addAttribute('style', 'css');
3130
3130
  */
3131
- value: function(i, S) {
3131
+ value: function(o, S) {
3132
3132
  r.languages.markup.tag.inside["special-attr"].push({
3133
3133
  pattern: RegExp(
3134
- /(^|["'\s])/.source + "(?:" + i + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
3134
+ /(^|["'\s])/.source + "(?:" + o + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
3135
3135
  "i"
3136
3136
  ),
3137
3137
  lookbehind: !0,
@@ -3158,9 +3158,9 @@ var ht = { exports: {} };
3158
3158
  }
3159
3159
  });
3160
3160
  }
3161
- }), r.languages.html = r.languages.markup, r.languages.mathml = r.languages.markup, r.languages.svg = r.languages.markup, r.languages.xml = r.languages.extend("markup", {}), r.languages.ssml = r.languages.xml, r.languages.atom = r.languages.xml, r.languages.rss = r.languages.xml, function(i) {
3161
+ }), r.languages.html = r.languages.markup, r.languages.mathml = r.languages.markup, r.languages.svg = r.languages.markup, r.languages.xml = r.languages.extend("markup", {}), r.languages.ssml = r.languages.xml, r.languages.atom = r.languages.xml, r.languages.rss = r.languages.xml, function(o) {
3162
3162
  var S = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
3163
- i.languages.css = {
3163
+ o.languages.css = {
3164
3164
  comment: /\/\*[\s\S]*?\*\//,
3165
3165
  atrule: {
3166
3166
  pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + S.source + ")*?" + /(?:;|(?=\s*\{))/.source),
@@ -3209,8 +3209,8 @@ var ht = { exports: {} };
3209
3209
  lookbehind: !0
3210
3210
  },
3211
3211
  punctuation: /[(){};:,]/
3212
- }, i.languages.css.atrule.inside.rest = i.languages.css;
3213
- var A = i.languages.markup;
3212
+ }, o.languages.css.atrule.inside.rest = o.languages.css;
3213
+ var A = o.languages.markup;
3214
3214
  A && (A.tag.addInlined("style", "css"), A.tag.addAttribute("style", "css"));
3215
3215
  }(r), r.languages.clike = {
3216
3216
  comment: [
@@ -3376,7 +3376,7 @@ var ht = { exports: {} };
3376
3376
  if (typeof r > "u" || typeof document > "u")
3377
3377
  return;
3378
3378
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
3379
- var i = "Loading…", S = function(s, c) {
3379
+ var o = "Loading…", S = function(s, c) {
3380
3380
  return "✖ Error " + s + " while fetching file: " + c;
3381
3381
  }, A = "✖ Error: File does not exist or is empty", b = {
3382
3382
  js: "javascript",
@@ -3388,18 +3388,18 @@ var ht = { exports: {} };
3388
3388
  bat: "batch",
3389
3389
  h: "c",
3390
3390
  tex: "latex"
3391
- }, O = "data-src-status", y = "loading", D = "loaded", F = "failed", C = "pre[data-src]:not([" + O + '="' + D + '"]):not([' + O + '="' + y + '"])';
3392
- function L(s, c, o) {
3391
+ }, T = "data-src-status", y = "loading", D = "loaded", F = "failed", C = "pre[data-src]:not([" + T + '="' + D + '"]):not([' + T + '="' + y + '"])';
3392
+ function L(s, c, i) {
3393
3393
  var n = new XMLHttpRequest();
3394
3394
  n.open("GET", s, !0), n.onreadystatechange = function() {
3395
- n.readyState == 4 && (n.status < 400 && n.responseText ? c(n.responseText) : n.status >= 400 ? o(S(n.status, n.statusText)) : o(A));
3395
+ n.readyState == 4 && (n.status < 400 && n.responseText ? c(n.responseText) : n.status >= 400 ? i(S(n.status, n.statusText)) : i(A));
3396
3396
  }, n.send(null);
3397
3397
  }
3398
3398
  function j(s) {
3399
3399
  var c = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(s || "");
3400
3400
  if (c) {
3401
- var o = Number(c[1]), n = c[2], u = c[3];
3402
- return n ? u ? [o, Number(u)] : [o, void 0] : [o, o];
3401
+ var i = Number(c[1]), n = c[2], d = c[3];
3402
+ return n ? d ? [i, Number(d)] : [i, void 0] : [i, i];
3403
3403
  }
3404
3404
  }
3405
3405
  r.hooks.add("before-highlightall", function(s) {
@@ -3410,30 +3410,30 @@ var ht = { exports: {} };
3410
3410
  s.element
3411
3411
  );
3412
3412
  if (c.matches(C)) {
3413
- s.code = "", c.setAttribute(O, y);
3414
- var o = c.appendChild(document.createElement("CODE"));
3415
- o.textContent = i;
3416
- var n = c.getAttribute("data-src"), u = s.language;
3417
- if (u === "none") {
3413
+ s.code = "", c.setAttribute(T, y);
3414
+ var i = c.appendChild(document.createElement("CODE"));
3415
+ i.textContent = o;
3416
+ var n = c.getAttribute("data-src"), d = s.language;
3417
+ if (d === "none") {
3418
3418
  var h = (/\.(\w+)$/.exec(n) || [, "none"])[1];
3419
- u = b[h] || h;
3419
+ d = b[h] || h;
3420
3420
  }
3421
- r.util.setLanguage(o, u), r.util.setLanguage(c, u);
3421
+ r.util.setLanguage(i, d), r.util.setLanguage(c, d);
3422
3422
  var p = r.plugins.autoloader;
3423
- p && p.loadLanguages(u), L(
3423
+ p && p.loadLanguages(d), L(
3424
3424
  n,
3425
- function(x) {
3426
- c.setAttribute(O, D);
3427
- var k = j(c.getAttribute("data-range"));
3428
- if (k) {
3429
- var m = x.split(/\r\n?|\n/g), d = k[0], v = k[1] == null ? m.length : k[1];
3430
- d < 0 && (d += m.length), d = Math.max(0, Math.min(d - 1, m.length)), v < 0 && (v += m.length), v = Math.max(0, Math.min(v, m.length)), x = m.slice(d, v).join(`
3431
- `), c.hasAttribute("data-start") || c.setAttribute("data-start", String(d + 1));
3425
+ function(k) {
3426
+ c.setAttribute(T, D);
3427
+ var x = j(c.getAttribute("data-range"));
3428
+ if (x) {
3429
+ var m = k.split(/\r\n?|\n/g), u = x[0], v = x[1] == null ? m.length : x[1];
3430
+ u < 0 && (u += m.length), u = Math.max(0, Math.min(u - 1, m.length)), v < 0 && (v += m.length), v = Math.max(0, Math.min(v, m.length)), k = m.slice(u, v).join(`
3431
+ `), c.hasAttribute("data-start") || c.setAttribute("data-start", String(u + 1));
3432
3432
  }
3433
- o.textContent = x, r.highlightElement(o);
3433
+ i.textContent = k, r.highlightElement(i);
3434
3434
  },
3435
- function(x) {
3436
- c.setAttribute(O, F), o.textContent = x;
3435
+ function(k) {
3436
+ c.setAttribute(T, F), i.textContent = k;
3437
3437
  }
3438
3438
  );
3439
3439
  }
@@ -3446,8 +3446,8 @@ var ht = { exports: {} };
3446
3446
  * @param {ParentNode} [container=document]
3447
3447
  */
3448
3448
  highlight: function(c) {
3449
- for (var o = (c || document).querySelectorAll(C), n = 0, u; u = o[n++]; )
3450
- r.highlightElement(u);
3449
+ for (var i = (c || document).querySelectorAll(C), n = 0, d; d = i[n++]; )
3450
+ r.highlightElement(d);
3451
3451
  }
3452
3452
  };
3453
3453
  var a = !1;
@@ -3457,7 +3457,7 @@ var ht = { exports: {} };
3457
3457
  }();
3458
3458
  })(ht);
3459
3459
  var wr = ht.exports;
3460
- const Te = /* @__PURE__ */ ze(wr);
3460
+ const Oe = /* @__PURE__ */ ze(wr);
3461
3461
  Prism.languages.markup = {
3462
3462
  comment: {
3463
3463
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -3554,16 +3554,16 @@ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
3554
3554
  * addInlined('style', 'css');
3555
3555
  */
3556
3556
  value: function(e, r) {
3557
- var i = {};
3558
- i["language-" + r] = {
3557
+ var o = {};
3558
+ o["language-" + r] = {
3559
3559
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
3560
3560
  lookbehind: !0,
3561
3561
  inside: Prism.languages[r]
3562
- }, i.cdata = /^<!\[CDATA\[|\]\]>$/i;
3562
+ }, o.cdata = /^<!\[CDATA\[|\]\]>$/i;
3563
3563
  var S = {
3564
3564
  "included-cdata": {
3565
3565
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
3566
- inside: i
3566
+ inside: o
3567
3567
  }
3568
3568
  };
3569
3569
  S["language-" + r] = {
@@ -3856,7 +3856,7 @@ Prism.languages.webmanifest = Prism.languages.json;
3856
3856
  // this looks reasonably well in all themes
3857
3857
  inside: null
3858
3858
  // see below
3859
- }, i = {
3859
+ }, o = {
3860
3860
  bash: r,
3861
3861
  environment: {
3862
3862
  pattern: RegExp("\\$" + e),
@@ -3968,7 +3968,7 @@ Prism.languages.webmanifest = Prism.languages.json;
3968
3968
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
3969
3969
  lookbehind: !0,
3970
3970
  greedy: !0,
3971
- inside: i
3971
+ inside: o
3972
3972
  },
3973
3973
  // Here-document with quotes around the tag
3974
3974
  // → No expansion (so no “inside”).
@@ -3986,7 +3986,7 @@ Prism.languages.webmanifest = Prism.languages.json;
3986
3986
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
3987
3987
  lookbehind: !0,
3988
3988
  greedy: !0,
3989
- inside: i
3989
+ inside: o
3990
3990
  },
3991
3991
  {
3992
3992
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -3999,7 +3999,7 @@ Prism.languages.webmanifest = Prism.languages.json;
3999
3999
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
4000
4000
  greedy: !0,
4001
4001
  inside: {
4002
- entity: i.entity
4002
+ entity: o.entity
4003
4003
  }
4004
4004
  }
4005
4005
  ],
@@ -4007,7 +4007,7 @@ Prism.languages.webmanifest = Prism.languages.json;
4007
4007
  pattern: RegExp("\\$?" + e),
4008
4008
  alias: "constant"
4009
4009
  },
4010
- variable: i.variable,
4010
+ variable: o.variable,
4011
4011
  function: {
4012
4012
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
4013
4013
  lookbehind: !0
@@ -4063,7 +4063,7 @@ Prism.languages.webmanifest = Prism.languages.json;
4063
4063
  "operator",
4064
4064
  "punctuation",
4065
4065
  "number"
4066
- ], A = i.variable[1].inside, b = 0; b < S.length; b++)
4066
+ ], A = o.variable[1].inside, b = 0; b < S.length; b++)
4067
4067
  A[S[b]] = t.languages.bash[S[b]];
4068
4068
  t.languages.sh = t.languages.bash, t.languages.shell = t.languages.bash;
4069
4069
  })(Prism);
@@ -4101,22 +4101,22 @@ Prism.languages.sql = {
4101
4101
  punctuation: /[;[\]()`,.]/
4102
4102
  };
4103
4103
  (function(t) {
4104
- var e = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + r.source + "(?:[ ]+" + e.source + ")?|" + e.source + "(?:[ ]+" + r.source + ")?)", S = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
4104
+ var e = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + r.source + "(?:[ ]+" + e.source + ")?|" + e.source + "(?:[ ]+" + r.source + ")?)", S = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
4105
4105
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
4106
4106
  }), A = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
4107
- function b(O, y) {
4107
+ function b(T, y) {
4108
4108
  y = (y || "").replace(/m/g, "") + "m";
4109
4109
  var D = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
4110
- return i;
4110
+ return o;
4111
4111
  }).replace(/<<value>>/g, function() {
4112
- return O;
4112
+ return T;
4113
4113
  });
4114
4114
  return RegExp(D, y);
4115
4115
  }
4116
4116
  t.languages.yaml = {
4117
4117
  scalar: {
4118
4118
  pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
4119
- return i;
4119
+ return o;
4120
4120
  })),
4121
4121
  lookbehind: !0,
4122
4122
  alias: "string"
@@ -4124,7 +4124,7 @@ Prism.languages.sql = {
4124
4124
  comment: /#.*/,
4125
4125
  key: {
4126
4126
  pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
4127
- return i;
4127
+ return o;
4128
4128
  }).replace(/<<key>>/g, function() {
4129
4129
  return "(?:" + S + "|" + A + ")";
4130
4130
  })),
@@ -4249,8 +4249,8 @@ delete Prism.languages.c.boolean;
4249
4249
  return e;
4250
4250
  }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + F + ")");
4251
4251
  }
4252
- var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, S = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
4253
- return i;
4252
+ var o = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, S = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
4253
+ return o;
4254
4254
  }), A = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
4255
4255
  t.languages.markdown = t.languages.extend("markup", {}), t.languages.insertBefore("markdown", "prolog", {
4256
4256
  "front-matter-block": {
@@ -4279,7 +4279,7 @@ delete Prism.languages.c.boolean;
4279
4279
  lookbehind: !0,
4280
4280
  inside: {
4281
4281
  "table-data": {
4282
- pattern: RegExp(i),
4282
+ pattern: RegExp(o),
4283
4283
  inside: t.languages.markdown
4284
4284
  },
4285
4285
  punctuation: /\|/
@@ -4296,7 +4296,7 @@ delete Prism.languages.c.boolean;
4296
4296
  pattern: RegExp("^" + S + "$"),
4297
4297
  inside: {
4298
4298
  "table-header": {
4299
- pattern: RegExp(i),
4299
+ pattern: RegExp(o),
4300
4300
  alias: "important",
4301
4301
  inside: t.languages.markdown
4302
4302
  },
@@ -4491,12 +4491,12 @@ delete Prism.languages.c.boolean;
4491
4491
  C(s.content);
4492
4492
  continue;
4493
4493
  }
4494
- var c = s.content[1], o = s.content[3];
4495
- if (c && o && c.type === "code-language" && o.type === "code-block" && typeof c.content == "string") {
4494
+ var c = s.content[1], i = s.content[3];
4495
+ if (c && i && c.type === "code-language" && i.type === "code-block" && typeof c.content == "string") {
4496
4496
  var n = c.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
4497
4497
  n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase();
4498
- var u = "language-" + n;
4499
- o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, u] : o.alias.push(u) : o.alias = [u];
4498
+ var d = "language-" + n;
4499
+ i.alias ? typeof i.alias == "string" ? i.alias = [i.alias, d] : i.alias.push(d) : i.alias = [d];
4500
4500
  }
4501
4501
  }
4502
4502
  }
@@ -4514,15 +4514,15 @@ delete Prism.languages.c.boolean;
4514
4514
  if (c)
4515
4515
  F.content = t.highlight(D(F.content), c, C);
4516
4516
  else if (C && C !== "none" && t.plugins.autoloader) {
4517
- var o = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
4518
- F.attributes.id = o, t.plugins.autoloader.loadLanguages(C, function() {
4519
- var n = document.getElementById(o);
4517
+ var i = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
4518
+ F.attributes.id = i, t.plugins.autoloader.loadLanguages(C, function() {
4519
+ var n = document.getElementById(i);
4520
4520
  n && (n.innerHTML = t.highlight(n.textContent, t.languages[C], C));
4521
4521
  });
4522
4522
  }
4523
4523
  }
4524
4524
  });
4525
- var b = RegExp(t.languages.markup.tag.pattern.source, "gi"), O = {
4525
+ var b = RegExp(t.languages.markup.tag.pattern.source, "gi"), T = {
4526
4526
  amp: "&",
4527
4527
  lt: "<",
4528
4528
  gt: ">",
@@ -4535,7 +4535,7 @@ delete Prism.languages.c.boolean;
4535
4535
  var a;
4536
4536
  return j[1] === "x" ? a = parseInt(j.slice(2), 16) : a = Number(j.slice(1)), y(a);
4537
4537
  } else {
4538
- var s = O[j];
4538
+ var s = T[j];
4539
4539
  return s || L;
4540
4540
  }
4541
4541
  }), C;
@@ -4606,7 +4606,7 @@ Prism.languages.python = {
4606
4606
  Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python;
4607
4607
  Prism.languages.py = Prism.languages.python;
4608
4608
  (function(t) {
4609
- var e = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, i = {
4609
+ var e = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, o = {
4610
4610
  pattern: RegExp(/(^|[^\w.])/.source + r + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
4611
4611
  lookbehind: !0,
4612
4612
  inside: {
@@ -4626,20 +4626,20 @@ Prism.languages.py = Prism.languages.python;
4626
4626
  greedy: !0
4627
4627
  },
4628
4628
  "class-name": [
4629
- i,
4629
+ o,
4630
4630
  {
4631
4631
  // variables, parameters, and constructor references
4632
4632
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
4633
4633
  pattern: RegExp(/(^|[^\w.])/.source + r + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),
4634
4634
  lookbehind: !0,
4635
- inside: i.inside
4635
+ inside: o.inside
4636
4636
  },
4637
4637
  {
4638
4638
  // class names based on keyword
4639
4639
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
4640
4640
  pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + r + /[A-Z]\w*\b/.source),
4641
4641
  lookbehind: !0,
4642
- inside: i.inside
4642
+ inside: o.inside
4643
4643
  }
4644
4644
  ],
4645
4645
  keyword: e,
@@ -4676,7 +4676,7 @@ Prism.languages.py = Prism.languages.python;
4676
4676
  generics: {
4677
4677
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
4678
4678
  inside: {
4679
- "class-name": i,
4679
+ "class-name": o,
4680
4680
  keyword: e,
4681
4681
  punctuation: /[<>(),.:]/,
4682
4682
  operator: /[?&|]/
@@ -4687,7 +4687,7 @@ Prism.languages.py = Prism.languages.python;
4687
4687
  pattern: RegExp(/(\bimport\s+)/.source + r + /(?:[A-Z]\w*|\*)(?=\s*;)/.source),
4688
4688
  lookbehind: !0,
4689
4689
  inside: {
4690
- namespace: i.inside.namespace,
4690
+ namespace: o.inside.namespace,
4691
4691
  punctuation: /\./,
4692
4692
  operator: /\*/,
4693
4693
  "class-name": /\w+/
@@ -4698,7 +4698,7 @@ Prism.languages.py = Prism.languages.python;
4698
4698
  lookbehind: !0,
4699
4699
  alias: "static",
4700
4700
  inside: {
4701
- namespace: i.inside.namespace,
4701
+ namespace: o.inside.namespace,
4702
4702
  static: /\b\w+$/,
4703
4703
  punctuation: /\./,
4704
4704
  operator: /\*/,
@@ -4907,12 +4907,12 @@ delete Prism.languages.go["class-name"];
4907
4907
  }), t.languages.ts = t.languages.typescript;
4908
4908
  })(Prism);
4909
4909
  (function(t) {
4910
- var e = t.util.clone(t.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, S = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
4910
+ var e = t.util.clone(t.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, S = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
4911
4911
  function A(y, D) {
4912
4912
  return y = y.replace(/<S>/g, function() {
4913
4913
  return r;
4914
4914
  }).replace(/<BRACES>/g, function() {
4915
- return i;
4915
+ return o;
4916
4916
  }).replace(/<SPREAD>/g, function() {
4917
4917
  return S;
4918
4918
  }), RegExp(y, D);
@@ -4940,7 +4940,7 @@ delete Prism.languages.go["class-name"];
4940
4940
  }, t.languages.jsx.tag);
4941
4941
  var b = function(y) {
4942
4942
  return y ? typeof y == "string" ? y : typeof y.content == "string" ? y.content : y.content.map(b).join("") : "";
4943
- }, O = function(y) {
4943
+ }, T = function(y) {
4944
4944
  for (var D = [], F = 0; F < y.length; F++) {
4945
4945
  var C = y[F], L = !1;
4946
4946
  if (typeof C != "string" && (C.type === "tag" && C.content[0] && C.content[0].type === "tag" ? C.content[0].content[0].content === "</" ? D.length > 0 && D[D.length - 1].tagName === b(C.content[0].content[1]) && D.pop() : C.content[C.content.length - 1].content === "/>" || D.push({
@@ -4950,11 +4950,11 @@ delete Prism.languages.go["class-name"];
4950
4950
  var j = b(C);
4951
4951
  F < y.length - 1 && (typeof y[F + 1] == "string" || y[F + 1].type === "plain-text") && (j += b(y[F + 1]), y.splice(F + 1, 1)), F > 0 && (typeof y[F - 1] == "string" || y[F - 1].type === "plain-text") && (j = b(y[F - 1]) + j, y.splice(F - 1, 1), F--), y[F] = new t.Token("plain-text", j, null, j);
4952
4952
  }
4953
- C.content && typeof C.content != "string" && O(C.content);
4953
+ C.content && typeof C.content != "string" && T(C.content);
4954
4954
  }
4955
4955
  };
4956
4956
  t.hooks.add("after-tokenize", function(y) {
4957
- y.language !== "jsx" && y.language !== "tsx" || O(y.tokens);
4957
+ y.language !== "jsx" && y.language !== "tsx" || T(y.tokens);
4958
4958
  });
4959
4959
  })(Prism);
4960
4960
  (function(t) {
@@ -5048,42 +5048,42 @@ delete Prism.languages.go["class-name"];
5048
5048
  var r = t.languages.tsx.tag;
5049
5049
  r.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + r.pattern.source + ")", r.pattern.flags), r.lookbehind = !0;
5050
5050
  })(Prism);
5051
- const kr = ".code-block{background:var(--bg-secondary, #f9fafb);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px #0000001a;border:1px solid var(--border-color, #e5e7eb)}.code-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:var(--bg-primary, #ffffff);border-bottom:1px solid var(--border-color, #e5e7eb)}.code-title{color:var(--text-primary, #111827);font-weight:600;font-size:.9rem}.code-actions{display:flex;gap:.75rem}.btn-copy,.btn-try{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;font-family:inherit}.btn-copy{background:var(--border-color, #e5e7eb);color:var(--text-primary, #111827)}.btn-copy:hover{background:var(--text-secondary, #6b7280);color:var(--bg-primary, #ffffff)}.btn-copy.copied{background:#10b981;color:#fff}.btn-try{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff}.btn-try:hover{transform:translateY(-2px);box-shadow:0 4px 15px #ea580c4d}.code-content{padding:2rem;margin:0;background:#f8f9fa;color:#24292e;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto;position:relative}@media (prefers-color-scheme: dark){.code-content{background:#2d2d2d;color:#f8f8f2}}.code-segment{margin:0;padding:0;background:transparent}.code-segment:not(:last-child){margin-bottom:1.5rem}.code-content code{display:block;white-space:pre;word-wrap:normal;word-break:normal;tab-size:4;-moz-tab-size:4;-o-tab-size:4}.code-content code[class*=language-]{background:transparent}.code-content .token.comment,.code-content .token.prolog,.code-content .token.doctype,.code-content .token.cdata{color:#5a6268!important;font-style:italic}.code-content .token.punctuation{color:#1a1a1a!important}.code-content .token.property,.code-content .token.tag,.code-content .token.boolean,.code-content .token.number,.code-content .token.constant,.code-content .token.symbol,.code-content .token.deleted{color:#c7254e!important}.code-content .token.selector,.code-content .token.attr-name,.code-content .token.string,.code-content .token.char,.code-content .token.builtin,.code-content .token.inserted{color:#005cc5!important}.code-content .token.operator,.code-content .token.entity,.code-content .token.url,.code-content .language-css .token.string,.code-content .style .token.string{color:#1a1a1a!important}.code-content .token.atrule,.code-content .token.attr-value,.code-content .token.keyword{color:#d73a49!important;font-weight:600}.code-content .token.function,.code-content .token.class-name{color:#6f42c1!important}.code-content .token.regex,.code-content .token.important,.code-content .token.variable{color:#e36209!important}.code-content code[class*=language-]{color:#24292e!important}@media (prefers-color-scheme: dark){.code-content code[class*=language-]{color:#f8f8f2!important}.code-content .token.comment,.code-content .token.prolog,.code-content .token.doctype,.code-content .token.cdata{color:#75715e!important;font-style:italic}.code-content .token.punctuation{color:#f8f8f2!important}.code-content .token.property,.code-content .token.tag,.code-content .token.boolean,.code-content .token.number,.code-content .token.constant,.code-content .token.symbol,.code-content .token.deleted{color:#f92672!important}.code-content .token.selector,.code-content .token.attr-name,.code-content .token.string,.code-content .token.char,.code-content .token.builtin,.code-content .token.inserted{color:#e6db74!important}.code-content .token.operator,.code-content .token.entity,.code-content .token.url,.code-content .language-css .token.string,.code-content .style .token.string{color:#f8f8f2!important}.code-content .token.atrule,.code-content .token.attr-value,.code-content .token.keyword{color:#66d9ef!important;font-weight:500}.code-content .token.function,.code-content .token.class-name{color:#a6e22e!important}.code-content .token.regex,.code-content .token.important,.code-content .token.variable{color:#fd971f!important}}.code-content .token.namespace{opacity:.7}.code-content .token.important,.code-content .token.bold{font-weight:700}.code-content .token.italic{font-style:italic}@media (max-width: 768px){.code-header{flex-direction:column;gap:1rem;align-items:flex-start}.code-actions{width:100%;justify-content:flex-end}.code-content{padding:1.5rem;font-size:.85rem}}";
5051
+ const xr = ".code-block{background:var(--bg-secondary, #fde8d1);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px #0000001a;border:1px solid var(--border-color, #fed7aa)}.code-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:var(--bg-primary, #fef2e5);border-bottom:1px solid var(--border-color, #fed7aa)}.code-title{color:var(--text-primary, #2c3e50);font-weight:600;font-size:.9rem}.code-actions{display:flex;gap:.75rem}.btn-copy,.btn-try{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;font-family:inherit}.btn-copy{background:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.btn-copy:hover{background:var(--text-secondary, #7f8c8d);color:var(--bg-primary, #fef2e5)}.btn-copy.copied{background:#10b981;color:#fff}.btn-try{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff}.btn-try:hover{transform:translateY(-2px);box-shadow:0 4px 15px #ea580c4d}.code-content{padding:2rem;margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto;position:relative}.code-segment{margin:0;padding:0;background:transparent}.code-segment:not(:last-child){margin-bottom:1.5rem}.code-content code{display:block;white-space:pre;word-wrap:normal;word-break:normal;tab-size:4;-moz-tab-size:4;-o-tab-size:4}.code-content code[class*=language-]{background:transparent}.code-block.light{background:var(--bg-secondary, #fde8d1);border-color:var(--border-color, #fed7aa)}.code-block.light .code-header{background:var(--bg-primary, #fef2e5);border-color:var(--border-color, #fed7aa)}.code-block.light .code-title{color:var(--text-primary, #2c3e50)}.code-block.light .btn-copy{background:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.code-block.light .btn-copy:hover{background:var(--text-secondary, #7f8c8d);color:var(--bg-primary, #fef2e5)}.code-block.light .code-content{background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50)}.code-block.light .code-content code[class*=language-]{color:#1a1a1a!important}.code-block.light .code-content .token.comment,.code-block.light .code-content .token.prolog,.code-block.light .code-content .token.doctype,.code-block.light .code-content .token.cdata{color:#6b5b47!important;font-style:italic}.code-block.light .code-content .token.punctuation{color:#1a1a1a!important}.code-block.light .code-content .token.property,.code-block.light .code-content .token.tag,.code-block.light .code-content .token.boolean,.code-block.light .code-content .token.number,.code-block.light .code-content .token.constant,.code-block.light .code-content .token.symbol,.code-block.light .code-content .token.deleted{color:#9f1239!important}.code-block.light .code-content .token.selector,.code-block.light .code-content .token.attr-name,.code-block.light .code-content .token.string,.code-block.light .code-content .token.char,.code-block.light .code-content .token.builtin,.code-block.light .code-content .token.inserted{color:#166534!important}.code-block.light .code-content .token.operator,.code-block.light .code-content .token.entity,.code-block.light .code-content .token.url,.code-block.light .code-content .language-css .token.string,.code-block.light .code-content .style .token.string{color:#1a1a1a!important}.code-block.light .code-content .token.atrule,.code-block.light .code-content .token.attr-value,.code-block.light .code-content .token.keyword{color:#6d28d9!important;font-weight:600}.code-block.light .code-content .token.function,.code-block.light .code-content .token.class-name{color:#0c4a6e!important}.code-block.light .code-content .token.regex,.code-block.light .code-content .token.important,.code-block.light .code-content .token.variable{color:#9a3412!important}.code-block.dark{background:#1e1e1e;border-color:#374151}.code-block.dark .code-header{background:#2d2d2d;border-color:#374151}.code-block.dark .code-title{color:#e5e7eb}.code-block.dark .btn-copy{background:#374151;color:#e5e7eb}.code-block.dark .btn-copy:hover{background:#4b5563;color:#f3f4f6}.code-block.dark .code-content{background:#2d2d2d;color:#f8f8f2}.code-block.dark .code-content code[class*=language-]{color:#f8f8f2!important}.code-block.dark .code-content .token.comment,.code-block.dark .code-content .token.prolog,.code-block.dark .code-content .token.doctype,.code-block.dark .code-content .token.cdata{color:#75715e!important;font-style:italic}.code-block.dark .code-content .token.punctuation{color:#f8f8f2!important}.code-block.dark .code-content .token.property,.code-block.dark .code-content .token.tag,.code-block.dark .code-content .token.boolean,.code-block.dark .code-content .token.number,.code-block.dark .code-content .token.constant,.code-block.dark .code-content .token.symbol,.code-block.dark .code-content .token.deleted{color:#f92672!important}.code-block.dark .code-content .token.selector,.code-block.dark .code-content .token.attr-name,.code-block.dark .code-content .token.string,.code-block.dark .code-content .token.char,.code-block.dark .code-content .token.builtin,.code-block.dark .code-content .token.inserted{color:#e6db74!important}.code-block.dark .code-content .token.operator,.code-block.dark .code-content .token.entity,.code-block.dark .code-content .token.url,.code-block.dark .code-content .language-css .token.string,.code-block.dark .code-content .style .token.string{color:#f8f8f2!important}.code-block.dark .code-content .token.atrule,.code-block.dark .code-content .token.attr-value,.code-block.dark .code-content .token.keyword{color:#66d9ef!important;font-weight:500}.code-block.dark .code-content .token.function,.code-block.dark .code-content .token.class-name{color:#a6e22e!important}.code-block.dark .code-content .token.regex,.code-block.dark .code-content .token.important,.code-block.dark .code-content .token.variable{color:#fd971f!important}.code-content .token.namespace{opacity:.7}.code-content .token.important,.code-content .token.bold{font-weight:700}.code-content .token.italic{font-style:italic}@media (max-width: 768px){.code-header{flex-direction:column;gap:1rem;align-items:flex-start}.code-actions{width:100%;justify-content:flex-end}.code-content{padding:1.5rem;font-size:.85rem}}";
5052
5052
  var gt;
5053
5053
  let ft, bt;
5054
- function J(t, e, r) {
5054
+ function X(t, e, r) {
5055
5055
  return (e = mt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
5056
5056
  }
5057
- function Er(t, e, r, i, S, A) {
5057
+ function Er(t, e, r, o, S, A) {
5058
5058
  function b(a, s, c) {
5059
- return function(o, n) {
5060
- return c && c(o), a[s].call(o, n);
5059
+ return function(i, n) {
5060
+ return c && c(i), a[s].call(i, n);
5061
5061
  };
5062
5062
  }
5063
- function O(a, s) {
5063
+ function T(a, s) {
5064
5064
  for (var c = 0; c < a.length; c++) a[c].call(s);
5065
5065
  return s;
5066
5066
  }
5067
- function y(a, s, c, o) {
5068
- if (typeof a != "function" && (o || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (o ? "" : " or undefined"));
5067
+ function y(a, s, c, i) {
5068
+ if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
5069
5069
  return a;
5070
5070
  }
5071
- function D(a, s, c, o, n, u, h, p, x, k, m, d, v) {
5072
- function T(f) {
5071
+ function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
5072
+ function O(f) {
5073
5073
  if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
5074
5074
  }
5075
5075
  var g, _ = s[0], I = s[3], M = !p;
5076
5076
  if (!M) {
5077
5077
  c || Array.isArray(_) || (_ = [_]);
5078
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || d ? "set" : "value";
5079
- k ? (m || d ? l = { get: Ce(function() {
5078
+ var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
5079
+ x ? (m || u ? l = { get: Ce(function() {
5080
5080
  return I(this);
5081
- }, o, "get"), set: function(f) {
5081
+ }, i, "get"), set: function(f) {
5082
5082
  s[4](this, f);
5083
- } } : l[E] = I, m || Ce(l[E], o, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, o));
5083
+ } } : l[E] = I, m || Ce(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
5084
5084
  }
5085
5085
  for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
5086
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: o, metadata: u, addInitializer: (function(f, N) {
5086
+ var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
5087
5087
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
5088
5088
  y(N, "An initializer", "be", !0), h.push(N);
5089
5089
  }).bind(null, Y) };
@@ -5091,17 +5091,17 @@ function Er(t, e, r, i, S, A) {
5091
5091
  if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
5092
5092
  else {
5093
5093
  var P, U;
5094
- z.static = x, z.private = k, k ? n === 2 ? P = function(f) {
5095
- return T(f), l.value;
5096
- } : (n < 4 && (P = b(l, "get", T)), n !== 3 && (U = b(l, "set", T))) : (P = function(f) {
5097
- return f[o];
5094
+ z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
5095
+ return O(f), l.value;
5096
+ } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
5097
+ return f[i];
5098
5098
  }, (n < 2 || n === 4) && (U = function(f, N) {
5099
- f[o] = N;
5099
+ f[i] = N;
5100
5100
  }));
5101
- var V = z.access = { has: k ? v.bind() : function(f) {
5102
- return o in f;
5101
+ var V = z.access = { has: x ? v.bind() : function(f) {
5102
+ return i in f;
5103
5103
  } };
5104
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, d ? { get: l.get, set: l.set } : l[E], z), d) {
5104
+ if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
5105
5105
  if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
5106
5106
  else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
5107
5107
  } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
@@ -5110,39 +5110,39 @@ function Er(t, e, r, i, S, A) {
5110
5110
  Y.v = !0;
5111
5111
  }
5112
5112
  }
5113
- return (m || d) && p.push(function(f, N) {
5113
+ return (m || u) && p.push(function(f, N) {
5114
5114
  for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
5115
5115
  return N;
5116
- }), m || M || (k ? d ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, o, l)), w;
5116
+ }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
5117
5117
  }
5118
5118
  function F(a, s) {
5119
5119
  return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
5120
5120
  }
5121
5121
  if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
5122
- var L = Object.create(C ?? null), j = function(a, s, c, o) {
5123
- var n, u, h = [], p = function(E) {
5122
+ var L = Object.create(C ?? null), j = function(a, s, c, i) {
5123
+ var n, d, h = [], p = function(E) {
5124
5124
  return Ar(E) === a;
5125
- }, x = /* @__PURE__ */ new Map();
5126
- function k(E) {
5127
- E && h.push(O.bind(null, E));
5125
+ }, k = /* @__PURE__ */ new Map();
5126
+ function x(E) {
5127
+ E && h.push(T.bind(null, E));
5128
5128
  }
5129
5129
  for (var m = 0; m < s.length; m++) {
5130
- var d = s[m];
5131
- if (Array.isArray(d)) {
5132
- var v = d[1], T = d[2], g = d.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = T + "/" + I;
5130
+ var u = s[m];
5131
+ if (Array.isArray(u)) {
5132
+ var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
5133
5133
  if (!M && !g) {
5134
- var R = x.get(l);
5135
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + T);
5136
- x.set(l, !(v > 2) || v);
5134
+ var R = k.get(l);
5135
+ if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 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: " + O);
5136
+ k.set(l, !(v > 2) || v);
5137
5137
  }
5138
- D(I ? a : a.prototype, d, _, g ? "#" + T : mt(T), v, o, I ? u = u || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
5138
+ D(I ? a : a.prototype, u, _, g ? "#" + O : mt(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
5139
5139
  }
5140
5140
  }
5141
- return k(n), k(u), h;
5141
+ return x(n), x(d), h;
5142
5142
  }(t, e, S, L);
5143
5143
  return r.length || F(t, L), { e: j, get c() {
5144
5144
  var a = [];
5145
- return r.length && [F(D(t, [r], i, t.name, 5, L, a), L), O.bind(null, a, t)];
5145
+ return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
5146
5146
  } };
5147
5147
  }
5148
5148
  function mt(t) {
@@ -5153,8 +5153,8 @@ function Sr(t, e) {
5153
5153
  if (typeof t != "object" || !t) return t;
5154
5154
  var r = t[Symbol.toPrimitive];
5155
5155
  if (r !== void 0) {
5156
- var i = r.call(t, e);
5157
- if (typeof i != "object") return i;
5156
+ var o = r.call(t, e);
5157
+ if (typeof o != "object") return o;
5158
5158
  throw new TypeError("@@toPrimitive must return a primitive value.");
5159
5159
  }
5160
5160
  return String(t);
@@ -5174,31 +5174,31 @@ function Ar(t) {
5174
5174
  bt = [te({
5175
5175
  tagName: "wsx-code-block"
5176
5176
  })];
5177
- let Or;
5178
- class Tr extends _e {
5177
+ let Tr;
5178
+ class Or extends _e {
5179
5179
  constructor() {
5180
- super(), J(this, "_autoStyles", kr), J(this, "copied", void 0), J(this, "highlighted", void 0), J(this, "code", void 0), J(this, "segments", void 0), J(this, "codeTitle", void 0), J(this, "language", void 0), J(this, "showCopy", void 0), J(this, "showTryOnline", void 0), J(this, "tryOnlineUrl", void 0), J(this, "onTryOnlineCallback", void 0), J(this, "codeElements", []), J(this, "isHighlighting", !1), J(this, "copyCode", async (n) => {
5181
- const u = n || this.code || this.segments.map((h) => h.code).join(`
5180
+ super(), X(this, "_autoStyles", xr), X(this, "copied", void 0), X(this, "highlighted", void 0), X(this, "code", void 0), X(this, "segments", void 0), X(this, "codeTitle", void 0), X(this, "language", void 0), X(this, "showCopy", void 0), X(this, "showTryOnline", void 0), X(this, "tryOnlineUrl", void 0), X(this, "currentTheme", "light"), X(this, "onTryOnlineCallback", void 0), X(this, "codeElements", []), X(this, "isHighlighting", !1), X(this, "themeObserver", null), X(this, "codeBlockElement", null), X(this, "copyCode", async (n) => {
5181
+ const d = n || this.code || this.segments.map((h) => h.code).join(`
5182
5182
 
5183
5183
  `);
5184
5184
  try {
5185
- await navigator.clipboard.writeText(u), this.copied = !0, setTimeout(() => {
5185
+ await navigator.clipboard.writeText(d), this.copied = !0, setTimeout(() => {
5186
5186
  this.copied = !1;
5187
5187
  }, 2e3);
5188
5188
  } catch (h) {
5189
5189
  console.error("Failed to copy code:", h);
5190
5190
  const p = document.createElement("textarea");
5191
- p.value = u, p.style.position = "fixed", p.style.opacity = "0", document.body.appendChild(p), p.select();
5191
+ p.value = d, p.style.position = "fixed", p.style.opacity = "0", document.body.appendChild(p), p.select();
5192
5192
  try {
5193
5193
  document.execCommand("copy"), this.copied = !0, setTimeout(() => {
5194
5194
  this.copied = !1;
5195
5195
  }, 2e3);
5196
- } catch (x) {
5197
- console.error("Fallback copy failed:", x);
5196
+ } catch (k) {
5197
+ console.error("Fallback copy failed:", k);
5198
5198
  }
5199
5199
  document.body.removeChild(p);
5200
5200
  }
5201
- }), J(this, "openPlayground", () => {
5201
+ }), X(this, "openPlayground", () => {
5202
5202
  this.onTryOnlineCallback ? this.onTryOnlineCallback() : this.tryOnlineUrl ? window.location.href = this.tryOnlineUrl : window.location.href = "/playground";
5203
5203
  });
5204
5204
  const [e, r] = this.useState("copied", !1);
@@ -5208,9 +5208,9 @@ class Tr extends _e {
5208
5208
  enumerable: !0,
5209
5209
  configurable: !0
5210
5210
  });
5211
- const [i, S] = this.useState("highlighted", !1);
5211
+ const [o, S] = this.useState("highlighted", !1);
5212
5212
  Object.defineProperty(this, "highlighted", {
5213
- get: i,
5213
+ get: o,
5214
5214
  set: S,
5215
5215
  enumerable: !0,
5216
5216
  configurable: !0
@@ -5222,11 +5222,11 @@ class Tr extends _e {
5222
5222
  enumerable: !0,
5223
5223
  configurable: !0
5224
5224
  });
5225
- let O = this.reactive([]);
5225
+ let T = this.reactive([]);
5226
5226
  Object.defineProperty(this, "segments", {
5227
- get: () => O,
5227
+ get: () => T,
5228
5228
  set: (n) => {
5229
- O = n !== null && typeof n < "u" && (Array.isArray(n) || typeof n == "object") ? this.reactive(n) : n, this.scheduleRerender();
5229
+ T = n !== null && typeof n < "u" && (Array.isArray(n) || typeof n == "object") ? this.reactive(n) : n, this.scheduleRerender();
5230
5230
  },
5231
5231
  enumerable: !0,
5232
5232
  configurable: !0
@@ -5259,10 +5259,10 @@ class Tr extends _e {
5259
5259
  enumerable: !0,
5260
5260
  configurable: !0
5261
5261
  });
5262
- const [c, o] = this.useState("tryOnlineUrl", "");
5262
+ const [c, i] = this.useState("tryOnlineUrl", "");
5263
5263
  Object.defineProperty(this, "tryOnlineUrl", {
5264
5264
  get: c,
5265
- set: o,
5265
+ set: i,
5266
5266
  enumerable: !0,
5267
5267
  configurable: !0
5268
5268
  });
@@ -5270,7 +5270,47 @@ class Tr extends _e {
5270
5270
  static get observedAttributes() {
5271
5271
  return ["code", "title", "language", "show-copy", "show-try-online", "try-online-url"];
5272
5272
  }
5273
- // 防止重复高亮
5273
+ // 缓存根元素引用
5274
+ /**
5275
+ * 检测当前主题
5276
+ * 优先级: html[data-theme] > html.light/dark > prefers-color-scheme
5277
+ */
5278
+ detectTheme() {
5279
+ var o;
5280
+ const e = document.documentElement, r = e.getAttribute("data-theme");
5281
+ return r === "light" || r === "dark" ? r : e.classList.contains("dark") ? "dark" : e.classList.contains("light") ? "light" : (o = window.matchMedia) != null && o.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
5282
+ }
5283
+ /**
5284
+ * 更新组件根元素的主题类
5285
+ * 直接操作 DOM,不触发重新渲染
5286
+ */
5287
+ updateThemeClass(e) {
5288
+ this.codeBlockElement && (this.codeBlockElement.classList.remove("light", "dark"), this.codeBlockElement.classList.add(e));
5289
+ }
5290
+ /**
5291
+ * 设置主题观察器,监听主题变化
5292
+ */
5293
+ setupThemeObserver() {
5294
+ var e, r;
5295
+ (e = this.themeObserver) == null || e.disconnect(), this.themeObserver = new MutationObserver(() => {
5296
+ const o = this.detectTheme();
5297
+ o !== this.currentTheme && (this.currentTheme = o, this.updateThemeClass(o));
5298
+ }), this.themeObserver.observe(document.documentElement, {
5299
+ attributes: !0,
5300
+ attributeFilter: ["class", "data-theme"]
5301
+ }), (r = window.matchMedia) == null || r.call(window, "(prefers-color-scheme: dark)").addEventListener("change", () => {
5302
+ const o = this.detectTheme();
5303
+ o !== this.currentTheme && (this.currentTheme = o, this.updateThemeClass(o));
5304
+ });
5305
+ }
5306
+ onConnected() {
5307
+ var e;
5308
+ (e = super.onConnected) == null || e.call(this), this.currentTheme = this.detectTheme(), this.setupThemeObserver();
5309
+ }
5310
+ onDisconnected() {
5311
+ var e, r;
5312
+ (e = super.onDisconnected) == null || e.call(this), (r = this.themeObserver) == null || r.disconnect(), this.themeObserver = null;
5313
+ }
5274
5314
  onRendered() {
5275
5315
  var e;
5276
5316
  (e = super.onRendered) == null || e.call(this), this.isHighlighting || this.highlightCode();
@@ -5289,13 +5329,15 @@ class Tr extends _e {
5289
5329
  language: this.language
5290
5330
  }] : [];
5291
5331
  if (e.length === 0)
5292
- return /* @__PURE__ */ $("div", { class: "code-block" });
5293
- const r = e.map((i) => i.code).join(`
5332
+ return /* @__PURE__ */ $("div", { class: `code-block ${this.currentTheme}` });
5333
+ const r = e.map((o) => o.code).join(`
5294
5334
 
5295
5335
  `);
5296
- return /* @__PURE__ */ $("div", { class: "code-block" }, (this.codeTitle || this.showCopy || this.showTryOnline) && /* @__PURE__ */ $("div", { class: "code-header" }, this.codeTitle && /* @__PURE__ */ $("span", { class: "code-title" }, this.codeTitle), /* @__PURE__ */ $("div", { class: "code-actions" }, this.showCopy && /* @__PURE__ */ $("button", { onClick: () => this.copyCode(r), class: `btn-copy ${this.copied ? "copied" : ""}`, "data-wsx-key": "CodeBlock-button-text-3" }, this.copied ? "✓ Copied!" : "Copy"), this.showTryOnline && /* @__PURE__ */ $("button", { onClick: this.openPlayground, class: "btn-try", "data-wsx-key": "CodeBlock-button-text-3" }, "Try Online"))), /* @__PURE__ */ $("div", { class: "code-content" }, e.map((i, S) => /* @__PURE__ */ $("pre", { key: S, class: "code-segment" }, /* @__PURE__ */ $("code", { class: `language-${i.language}`, ref: (A) => {
5336
+ return /* @__PURE__ */ $("div", { class: `code-block ${this.currentTheme}`, ref: (o) => {
5337
+ o && (this.codeBlockElement = o);
5338
+ } }, (this.codeTitle || this.showCopy || this.showTryOnline) && /* @__PURE__ */ $("div", { class: "code-header" }, this.codeTitle && /* @__PURE__ */ $("span", { class: "code-title" }, this.codeTitle), /* @__PURE__ */ $("div", { class: "code-actions" }, this.showCopy && /* @__PURE__ */ $("button", { onClick: () => this.copyCode(r), class: `btn-copy ${this.copied ? "copied" : ""}`, "data-wsx-key": "CodeBlock-button-text-3" }, this.copied ? "✓ Copied!" : "Copy"), this.showTryOnline && /* @__PURE__ */ $("button", { onClick: this.openPlayground, class: "btn-try", "data-wsx-key": "CodeBlock-button-text-3" }, "Try Online"))), /* @__PURE__ */ $("div", { class: "code-content" }, e.map((o, S) => /* @__PURE__ */ $("pre", { key: S, class: "code-segment" }, /* @__PURE__ */ $("code", { class: `language-${o.language}`, ref: (A) => {
5297
5339
  A && (this.codeElements[S] = A);
5298
- } }, i.code)))));
5340
+ } }, o.code)))));
5299
5341
  }
5300
5342
  /**
5301
5343
  * 应用语法高亮
@@ -5308,17 +5350,17 @@ class Tr extends _e {
5308
5350
  try {
5309
5351
  if (this.segments.length > 0)
5310
5352
  this.segments.forEach((e, r) => {
5311
- const i = this.codeElements[r] || this.querySelectorAll("code")[r];
5312
- if (i && !i.hasAttribute("data-prism-highlighted")) {
5353
+ const o = this.codeElements[r] || this.querySelectorAll("code")[r];
5354
+ if (o && !o.hasAttribute("data-prism-highlighted")) {
5313
5355
  const S = e.language.toLowerCase();
5314
- i.className = `language-${S}`, Te.highlightElement(i), i.setAttribute("data-prism-highlighted", "true");
5356
+ o.className = `language-${S}`, Oe.highlightElement(o), o.setAttribute("data-prism-highlighted", "true");
5315
5357
  }
5316
5358
  });
5317
5359
  else if (this.code) {
5318
5360
  const e = this.codeElements[0] || this.querySelector("code");
5319
5361
  if (e && !e.hasAttribute("data-prism-highlighted")) {
5320
5362
  const r = this.language.toLowerCase();
5321
- e.className = `language-${r}`, Te.highlightElement(e), e.setAttribute("data-prism-highlighted", "true");
5363
+ e.className = `language-${r}`, Oe.highlightElement(e), e.setAttribute("data-prism-highlighted", "true");
5322
5364
  }
5323
5365
  }
5324
5366
  this.highlighted = !0;
@@ -5334,19 +5376,19 @@ class Tr extends _e {
5334
5376
  }
5335
5377
  }
5336
5378
  }
5337
- gt = Tr;
5338
- [Or, ft] = Er(gt, [], bt, 0, void 0, _e).c;
5379
+ gt = Or;
5380
+ [Tr, ft] = Er(gt, [], bt, 0, void 0, _e).c;
5339
5381
  ft();
5340
5382
  export {
5341
5383
  Et as Button,
5342
5384
  _t as ButtonGroup,
5343
5385
  Ir as CONVERTER_BTN,
5344
5386
  Fr as CONVERTER_PANEL,
5345
- Or as CodeBlock,
5387
+ Tr as CodeBlock,
5346
5388
  Yt as ColorPicker,
5347
5389
  cr as Combobox,
5348
5390
  or as Dropdown,
5349
- ke as OverflowDetector,
5391
+ xe as OverflowDetector,
5350
5392
  gr as ResponsiveNav,
5351
5393
  yr as SvgIcon,
5352
5394
  Jt as ThemeSwitcher,