akpm-knowledge-base-chat 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +294 -294
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 1.0.5 */
1
+ /* Version: 1.0.6 */
2
2
  var gi = Object.defineProperty;
3
3
  var ur = (t) => {
4
4
  throw TypeError(t);
@@ -8,7 +8,7 @@ var $ = (t, e, n) => vi(t, typeof e != "symbol" ? e + "" : e, n), fr = (t, e, n)
8
8
  var H = (t, e, n) => (fr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), un = (t, e, n) => e.has(t) ? ur("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), fn = (t, e, n, r) => (fr(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const _i = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_i);
11
- const On = 1, Nn = 2, Br = 4, bi = 8, mi = 16, ki = 1, wi = 2, Hr = 4, yi = 8, xi = 16, $i = 4, Si = 1, Ei = 2, Ur = "[", Mn = "[!", qn = "]", je = {}, U = Symbol();
11
+ const On = 1, Nn = 2, Br = 4, bi = 8, mi = 16, ki = 1, wi = 2, Hr = 4, xi = 8, yi = 16, $i = 4, Si = 1, Ei = 2, Ur = "[", Mn = "[!", Dn = "]", qe = {}, U = Symbol();
12
12
  function Ti(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
@@ -59,27 +59,27 @@ function Li(t) {
59
59
  return Pi.includes(t);
60
60
  }
61
61
  const _n = !1;
62
- var Zt = Array.isArray, zi = Array.prototype.indexOf, Dn = Array.from, Rt = Object.keys, At = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Gr = Object.getOwnPropertyDescriptors, Oi = Object.prototype, Ni = Array.prototype, Fn = Object.getPrototypeOf;
62
+ var Zt = Array.isArray, zi = Array.prototype.indexOf, Fn = Array.from, Rt = Object.keys, At = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Gr = Object.getOwnPropertyDescriptors, Oi = Object.prototype, Ni = Array.prototype, jn = Object.getPrototypeOf;
63
63
  function Mi(t) {
64
64
  return typeof t == "function";
65
65
  }
66
66
  const nt = () => {
67
67
  };
68
- function qi(t) {
68
+ function Di(t) {
69
69
  return t();
70
70
  }
71
71
  function Pt(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const Y = 2, Zr = 4, Vt = 8, Qt = 16, ge = 32, ze = 64, Lt = 128, Oe = 256, zt = 512, j = 1024, we = 2048, Ne = 4096, ae = 8192, Qe = 16384, Vr = 32768, Wt = 65536, Di = 1 << 17, Fi = 1 << 19, Qr = 1 << 20, Ae = Symbol("$state"), Wr = Symbol("legacy props"), ji = Symbol("");
75
+ const Y = 2, Zr = 4, Vt = 8, Qt = 16, ge = 32, ze = 64, Lt = 128, Oe = 256, zt = 512, q = 1024, we = 2048, Ne = 4096, ae = 8192, Qe = 16384, Vr = 32768, Wt = 65536, Fi = 1 << 17, ji = 1 << 19, Qr = 1 << 20, Ae = Symbol("$state"), Wr = Symbol("legacy props"), qi = Symbol("");
76
76
  function Yr(t) {
77
77
  return t === this.v;
78
78
  }
79
79
  function Bi(t, e) {
80
80
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
81
81
  }
82
- function jn(t) {
82
+ function qn(t) {
83
83
  return !Bi(t, this.v);
84
84
  }
85
85
  function Hi(t) {
@@ -128,14 +128,14 @@ function G(t, e) {
128
128
  };
129
129
  return n;
130
130
  }
131
- function xe(t) {
131
+ function ye(t) {
132
132
  return /* @__PURE__ */ Jr(G(t));
133
133
  }
134
134
  // @__NO_SIDE_EFFECTS__
135
135
  function Yt(t, e = !1) {
136
136
  var r;
137
137
  const n = G(t);
138
- return e || (n.equals = jn), We && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
138
+ return e || (n.equals = qn), We && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
140
  function wt(t, e = !1) {
141
141
  return /* @__PURE__ */ Jr(/* @__PURE__ */ Yt(t, e));
@@ -156,14 +156,14 @@ function E(t, e) {
156
156
  (ce === null || !ce.includes(t)) && Ki(), bn(t, e);
157
157
  }
158
158
  function bn(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = _s(), Kr(t, we), _t() && T !== null && T.f & j && !(T.f & (ge | ze)) && (ve === null ? go([t]) : ve.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = _s(), Kr(t, we), _t() && T !== null && T.f & q && !(T.f & (ge | ze)) && (ve === null ? go([t]) : ve.push(t))), e;
160
160
  }
161
161
  function Kr(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = _t(), s = n.length, i = 0; i < s; i++) {
165
165
  var o = n[i], l = o.f;
166
- l & we || !r && o === T || (oe(o, e), l & (j | Oe) && (l & Y ? Kr(
166
+ l & we || !r && o === T || (oe(o, e), l & (q | Oe) && (l & Y ? Kr(
167
167
  /** @type {Derived} */
168
168
  o,
169
169
  Ne
@@ -183,19 +183,19 @@ function me(t) {
183
183
  let R;
184
184
  function te(t) {
185
185
  if (t === null)
186
- throw Jt(), je;
186
+ throw Jt(), qe;
187
187
  return R = t;
188
188
  }
189
189
  function Ue() {
190
190
  return te(
191
191
  /** @type {TemplateNode} */
192
- /* @__PURE__ */ ye(R)
192
+ /* @__PURE__ */ xe(R)
193
193
  );
194
194
  }
195
195
  function M(t) {
196
196
  if (I) {
197
- if (/* @__PURE__ */ ye(R) !== null)
198
- throw Jt(), je;
197
+ if (/* @__PURE__ */ xe(R) !== null)
198
+ throw Jt(), qe;
199
199
  R = t;
200
200
  }
201
201
  }
@@ -206,14 +206,14 @@ function mn() {
206
206
  /** @type {Comment} */
207
207
  e.data
208
208
  );
209
- if (n === qn) {
209
+ if (n === Dn) {
210
210
  if (t === 0) return e;
211
211
  t -= 1;
212
212
  } else (n === Ur || n === Mn) && (t += 1);
213
213
  }
214
214
  var r = (
215
215
  /** @type {TemplateNode} */
216
- /* @__PURE__ */ ye(e)
216
+ /* @__PURE__ */ xe(e)
217
217
  );
218
218
  e.remove(), e = r;
219
219
  }
@@ -221,7 +221,7 @@ function mn() {
221
221
  function N(t, e = null, n) {
222
222
  if (typeof t != "object" || t === null || Ae in t)
223
223
  return t;
224
- const r = Fn(t);
224
+ const r = jn(t);
225
225
  if (r !== Oi && r !== Ni)
226
226
  return t;
227
227
  var s = /* @__PURE__ */ new Map(), i = Zt(t), o = G(0);
@@ -354,10 +354,10 @@ function W(t) {
354
354
  return Xr.call(t);
355
355
  }
356
356
  // @__NO_SIDE_EFFECTS__
357
- function ye(t) {
357
+ function xe(t) {
358
358
  return es.call(t);
359
359
  }
360
- function q(t, e) {
360
+ function D(t, e) {
361
361
  if (!I)
362
362
  return /* @__PURE__ */ W(t);
363
363
  var n = (
@@ -381,7 +381,7 @@ function wn(t, e) {
381
381
  t
382
382
  )
383
383
  );
384
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ ye(n) : n;
384
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ xe(n) : n;
385
385
  }
386
386
  return R;
387
387
  }
@@ -389,7 +389,7 @@ function ie(t, e = 1, n = !1) {
389
389
  let r = I ? R : t;
390
390
  for (var s; e--; )
391
391
  s = r, r = /** @type {TemplateNode} */
392
- /* @__PURE__ */ ye(r);
392
+ /* @__PURE__ */ xe(r);
393
393
  if (!I)
394
394
  return r;
395
395
  var i = r == null ? void 0 : r.nodeType;
@@ -432,7 +432,7 @@ function ut(t) {
432
432
  // @__NO_SIDE_EFFECTS__
433
433
  function ns(t) {
434
434
  const e = /* @__PURE__ */ ut(t);
435
- return e.equals = jn, e;
435
+ return e.equals = qn, e;
436
436
  }
437
437
  function rs(t) {
438
438
  var e = t.children;
@@ -472,7 +472,7 @@ function ss(t) {
472
472
  return e;
473
473
  }
474
474
  function is(t) {
475
- var e = ss(t), n = (Ce || t.f & Oe) && t.deps !== null ? Ne : j;
475
+ var e = ss(t), n = (Ce || t.f & Oe) && t.deps !== null ? Ne : q;
476
476
  oe(t, n), t.equals(e) || (t.v = e, t.wv = _s());
477
477
  }
478
478
  function Bn(t) {
@@ -579,7 +579,7 @@ function lo() {
579
579
  if (m(t.l.r2)) {
580
580
  for (var e of t.l.r1) {
581
581
  var n = e.effect;
582
- n.f & j && oe(n, Ne), Xe(n) && tn(n), e.ran = !1;
582
+ n.f & q && oe(n, Ne), Xe(n) && tn(n), e.ran = !1;
583
583
  }
584
584
  t.l.r2.v = !1;
585
585
  }
@@ -633,11 +633,11 @@ function ao(t) {
633
633
  }
634
634
  function he(t, e = !0) {
635
635
  var n = !1;
636
- if ((e || t.f & Fi) && t.nodes_start !== null) {
636
+ if ((e || t.f & ji) && t.nodes_start !== null) {
637
637
  for (var r = t.nodes_start, s = t.nodes_end; r !== null; ) {
638
638
  var i = r === s ? null : (
639
639
  /** @type {TemplateNode} */
640
- /* @__PURE__ */ ye(r)
640
+ /* @__PURE__ */ xe(r)
641
641
  );
642
642
  r.remove(), r = i;
643
643
  }
@@ -687,7 +687,7 @@ function Mt(t) {
687
687
  }
688
688
  function hs(t, e) {
689
689
  if (t.f & ae) {
690
- t.f ^= ae, t.f & j || (t.f ^= j), Xe(t) && (oe(t, we), nn(t));
690
+ t.f ^= ae, t.f & q || (t.f ^= q), Xe(t) && (oe(t, we), nn(t));
691
691
  for (var n = t.first; n !== null; ) {
692
692
  var r = n.next, s = (n.f & Wt) !== 0 || (n.f & ge) !== 0;
693
693
  hs(n, s ? e : !1), n = r;
@@ -698,25 +698,25 @@ function hs(t, e) {
698
698
  }
699
699
  }
700
700
  const co = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
701
- let qt = !1, Dt = !1, yn = [], xn = [];
701
+ let Dt = !1, Ft = !1, xn = [], yn = [];
702
702
  function ds() {
703
- qt = !1;
704
- const t = yn.slice();
705
- yn = [], Pt(t);
706
- }
707
- function ps() {
708
703
  Dt = !1;
709
704
  const t = xn.slice();
710
705
  xn = [], Pt(t);
711
706
  }
707
+ function ps() {
708
+ Ft = !1;
709
+ const t = yn.slice();
710
+ yn = [], Pt(t);
711
+ }
712
712
  function Ke(t) {
713
- qt || (qt = !0, queueMicrotask(ds)), yn.push(t);
713
+ Dt || (Dt = !0, queueMicrotask(ds)), xn.push(t);
714
714
  }
715
715
  function uo(t) {
716
- Dt || (Dt = !0, co(ps)), xn.push(t);
716
+ Ft || (Ft = !0, co(ps)), yn.push(t);
717
717
  }
718
718
  function fo() {
719
- qt && ds(), Dt && ps();
719
+ Dt && ds(), Ft && ps();
720
720
  }
721
721
  function Un(t) {
722
722
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
@@ -746,7 +746,7 @@ let Z = null, Q = 0, ve = null;
746
746
  function go(t) {
747
747
  ve = t;
748
748
  }
749
- let vs = 1, Ft = 0, Ce = !1, P = null;
749
+ let vs = 1, jt = 0, Ce = !1, P = null;
750
750
  function _s() {
751
751
  return ++vs;
752
752
  }
@@ -777,7 +777,7 @@ function Xe(t) {
777
777
  ), i.wv > t.wv)
778
778
  return !0;
779
779
  }
780
- (!r || T !== null && !Ce) && oe(t, j);
780
+ (!r || T !== null && !Ce) && oe(t, q);
781
781
  }
782
782
  return !1;
783
783
  }
@@ -819,7 +819,7 @@ function bs(t, e, n = 0) {
819
819
  i,
820
820
  e,
821
821
  n + 1
822
- ) : e === i && (n === 0 ? oe(i, we) : i.f & j && oe(i, Ne), nn(
822
+ ) : e === i && (n === 0 ? oe(i, we) : i.f & q && oe(i, Ne), nn(
823
823
  /** @type {Effect} */
824
824
  i
825
825
  ));
@@ -829,7 +829,7 @@ function ms(t) {
829
829
  var d;
830
830
  var e = Z, n = Q, r = ve, s = z, i = Ce, o = ce, l = P, u = Se, a = t.f;
831
831
  Z = /** @type {null | Value[]} */
832
- null, Q = 0, ve = null, z = a & (ge | ze) ? null : t, Ce = !Be && (a & Oe) !== 0, ce = null, P = t.ctx, Se = !1, Ft++;
832
+ null, Q = 0, ve = null, z = a & (ge | ze) ? null : t, Ce = !Be && (a & Oe) !== 0, ce = null, P = t.ctx, Se = !1, jt++;
833
833
  try {
834
834
  var c = (
835
835
  /** @type {Function} */
@@ -854,7 +854,7 @@ function ms(t) {
854
854
  /** @type {Effect} */
855
855
  t
856
856
  );
857
- return s !== null && Ft++, c;
857
+ return s !== null && jt++, c;
858
858
  } finally {
859
859
  Z = e, Q = n, ve = r, z = s, Ce = i, ce = o, P = l, Se = u;
860
860
  }
@@ -886,7 +886,7 @@ function pt(t, e) {
886
886
  function tn(t) {
887
887
  var e = t.f;
888
888
  if (!(e & Qe)) {
889
- oe(t, j);
889
+ oe(t, q);
890
890
  var n = T, r = P;
891
891
  T = t;
892
892
  try {
@@ -925,9 +925,9 @@ function ws(t) {
925
925
  try {
926
926
  for (var r = 0; r < e; r++) {
927
927
  var s = t[r];
928
- s.f & j || (s.f ^= j);
928
+ s.f & q || (s.f ^= q);
929
929
  var i = [];
930
- ys(s, i), mo(i);
930
+ xs(s, i), mo(i);
931
931
  }
932
932
  } finally {
933
933
  Be = n;
@@ -959,20 +959,20 @@ function nn(t) {
959
959
  e = e.parent;
960
960
  var n = e.f;
961
961
  if (n & (ze | ge)) {
962
- if (!(n & j)) return;
963
- e.f ^= j;
962
+ if (!(n & q)) return;
963
+ e.f ^= q;
964
964
  }
965
965
  }
966
966
  Ie.push(e);
967
967
  }
968
- function ys(t, e) {
968
+ function xs(t, e) {
969
969
  var n = t.first, r = [];
970
970
  e: for (; n !== null; ) {
971
- var s = n.f, i = (s & ge) !== 0, o = i && (s & j) !== 0, l = n.next;
971
+ var s = n.f, i = (s & ge) !== 0, o = i && (s & q) !== 0, l = n.next;
972
972
  if (!o && !(s & ae))
973
973
  if (s & Vt) {
974
974
  if (i)
975
- n.f ^= j;
975
+ n.f ^= q;
976
976
  else
977
977
  try {
978
978
  Xe(n) && tn(n);
@@ -1001,7 +1001,7 @@ function ys(t, e) {
1001
1001
  n = l;
1002
1002
  }
1003
1003
  for (var c = 0; c < r.length; c++)
1004
- u = r[c], e.push(u), ys(u, e);
1004
+ u = r[c], e.push(u), xs(u, e);
1005
1005
  }
1006
1006
  function V(t) {
1007
1007
  var e = Et, n = Ie;
@@ -1034,7 +1034,7 @@ function m(t) {
1034
1034
  if (z !== null && !Se) {
1035
1035
  ce !== null && ce.includes(t) && Ji();
1036
1036
  var s = z.deps;
1037
- t.rv < Ft && (t.rv = Ft, Z === null && s !== null && s[Q] === t ? Q++ : Z === null ? Z = [t] : Z.push(t));
1037
+ t.rv < jt && (t.rv = jt, Z === null && s !== null && s[Q] === t ? Q++ : Z === null ? Z = [t] : Z.push(t));
1038
1038
  } else if (n && /** @type {Derived} */
1039
1039
  t.deps === null)
1040
1040
  for (var i = (
@@ -1066,9 +1066,9 @@ function pe(t) {
1066
1066
  Se = e;
1067
1067
  }
1068
1068
  }
1069
- const yo = -7169;
1069
+ const xo = -7169;
1070
1070
  function oe(t, e) {
1071
- t.f = t.f & yo | e;
1071
+ t.f = t.f & xo | e;
1072
1072
  }
1073
1073
  function $n(t, e = 1) {
1074
1074
  var n = m(t), r = e === 1 ? n++ : n--;
@@ -1112,7 +1112,7 @@ function Te(t) {
1112
1112
  return t || /** @type {T} */
1113
1113
  {};
1114
1114
  }
1115
- function xs(t) {
1115
+ function ys(t) {
1116
1116
  if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
1117
1117
  if (Ae in t)
1118
1118
  Sn(t);
@@ -1132,7 +1132,7 @@ function Sn(t, e = /* @__PURE__ */ new Set()) {
1132
1132
  Sn(t[r], e);
1133
1133
  } catch {
1134
1134
  }
1135
- const n = Fn(t);
1135
+ const n = jn(t);
1136
1136
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1137
1137
  const r = Gr(n);
1138
1138
  for (let s in r) {
@@ -1146,7 +1146,7 @@ function Sn(t, e = /* @__PURE__ */ new Set()) {
1146
1146
  }
1147
1147
  }
1148
1148
  }
1149
- function xo(t, e) {
1149
+ function yo(t, e) {
1150
1150
  if (e) {
1151
1151
  const n = document.body;
1152
1152
  t.autofocus = !0, Ke(() => {
@@ -1336,7 +1336,7 @@ function _r() {
1336
1336
  var t = document.createDocumentFragment(), e = document.createComment(""), n = Ge();
1337
1337
  return t.append(e, n), ue(e, n), t;
1338
1338
  }
1339
- function D(t, e) {
1339
+ function F(t, e) {
1340
1340
  if (I) {
1341
1341
  T.nodes_end = R, Ue();
1342
1342
  return;
@@ -1364,28 +1364,28 @@ function Io(t, e) {
1364
1364
  ); i && (i.nodeType !== 8 || /** @type {Comment} */
1365
1365
  i.data !== Ur); )
1366
1366
  i = /** @type {TemplateNode} */
1367
- /* @__PURE__ */ ye(i);
1367
+ /* @__PURE__ */ xe(i);
1368
1368
  if (!i)
1369
- throw je;
1369
+ throw qe;
1370
1370
  me(!0), te(
1371
1371
  /** @type {Comment} */
1372
1372
  i
1373
1373
  ), Ue();
1374
1374
  const o = Is(t, { ...e, anchor: i });
1375
1375
  if (R === null || R.nodeType !== 8 || /** @type {Comment} */
1376
- R.data !== qn)
1377
- throw Jt(), je;
1376
+ R.data !== Dn)
1377
+ throw Jt(), qe;
1378
1378
  return me(!1), /** @type {Exports} */
1379
1379
  o;
1380
1380
  } catch (o) {
1381
- if (o === je)
1381
+ if (o === qe)
1382
1382
  return e.recover === !1 && Vi(), kn(), ts(n), me(!1), Ts(t, e);
1383
1383
  throw o;
1384
1384
  } finally {
1385
1385
  me(r), te(s);
1386
1386
  }
1387
1387
  }
1388
- const De = /* @__PURE__ */ new Map();
1388
+ const Fe = /* @__PURE__ */ new Map();
1389
1389
  function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: o = !0 }) {
1390
1390
  kn();
1391
1391
  var l = /* @__PURE__ */ new Set(), u = (f) => {
@@ -1395,12 +1395,12 @@ function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1395
1395
  l.add(d);
1396
1396
  var p = Li(d);
1397
1397
  e.addEventListener(d, lt, { passive: p });
1398
- var g = De.get(d);
1399
- g === void 0 ? (document.addEventListener(d, lt, { passive: p }), De.set(d, 1)) : De.set(d, g + 1);
1398
+ var g = Fe.get(d);
1399
+ g === void 0 ? (document.addEventListener(d, lt, { passive: p }), Fe.set(d, 1)) : Fe.set(d, g + 1);
1400
1400
  }
1401
1401
  }
1402
1402
  };
1403
- u(Dn(Es)), En.add(u);
1403
+ u(Fn(Es)), En.add(u);
1404
1404
  var a = void 0, c = io(() => {
1405
1405
  var f = n ?? e.appendChild(Ge());
1406
1406
  return Ze(() => {
@@ -1423,9 +1423,9 @@ function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1423
1423
  e.removeEventListener(h, lt);
1424
1424
  var d = (
1425
1425
  /** @type {number} */
1426
- De.get(h)
1426
+ Fe.get(h)
1427
1427
  );
1428
- --d === 0 ? (document.removeEventListener(h, lt), De.delete(h)) : De.set(h, d);
1428
+ --d === 0 ? (document.removeEventListener(h, lt), Fe.delete(h)) : Fe.set(h, d);
1429
1429
  }
1430
1430
  En.delete(u), f !== n && ((p = f.parentNode) == null || p.removeChild(f));
1431
1431
  };
@@ -1502,7 +1502,7 @@ function Rs(t, e, n, r, s, i = null) {
1502
1502
  I && Ue();
1503
1503
  var c = null, f = !1, h = /* @__PURE__ */ ns(() => {
1504
1504
  var d = n();
1505
- return Zt(d) ? d : d == null ? [] : Dn(d);
1505
+ return Zt(d) ? d : d == null ? [] : Fn(d);
1506
1506
  });
1507
1507
  Xt(() => {
1508
1508
  var d = m(h), p = d.length;
@@ -1520,23 +1520,23 @@ function Rs(t, e, n, r, s, i = null) {
1520
1520
  if (I) {
1521
1521
  for (var v = null, _, k = 0; k < p; k++) {
1522
1522
  if (R.nodeType === 8 && /** @type {Comment} */
1523
- R.data === qn) {
1523
+ R.data === Dn) {
1524
1524
  o = /** @type {Comment} */
1525
1525
  R, g = !0, me(!1);
1526
1526
  break;
1527
1527
  }
1528
- var y = d[k], x = r(y, k);
1528
+ var x = d[k], y = r(x, k);
1529
1529
  _ = As(
1530
1530
  R,
1531
1531
  l,
1532
1532
  v,
1533
1533
  null,
1534
- y,
1535
1534
  x,
1535
+ y,
1536
1536
  k,
1537
1537
  s,
1538
1538
  e
1539
- ), l.items.set(x, _), v = _;
1539
+ ), l.items.set(y, _), v = _;
1540
1540
  }
1541
1541
  p > 0 && te(mn());
1542
1542
  }
@@ -1562,12 +1562,12 @@ function Rs(t, e, n, r, s, i = null) {
1562
1562
  }
1563
1563
  function Ao(t, e, n, r, s, i, o, l) {
1564
1564
  var ir, or, lr, ar;
1565
- var u = (s & bi) !== 0, a = (s & (On | Nn)) !== 0, c = t.length, f = e.items, h = e.first, d = h, p, g = null, b, v = [], _ = [], k, y, x, w;
1565
+ var u = (s & bi) !== 0, a = (s & (On | Nn)) !== 0, c = t.length, f = e.items, h = e.first, d = h, p, g = null, b, v = [], _ = [], k, x, y, w;
1566
1566
  if (u)
1567
1567
  for (w = 0; w < c; w += 1)
1568
- k = t[w], y = o(k, w), x = f.get(y), x !== void 0 && ((ir = x.a) == null || ir.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(x));
1568
+ k = t[w], x = o(k, w), y = f.get(x), y !== void 0 && ((ir = y.a) == null || ir.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
1569
1569
  for (w = 0; w < c; w += 1) {
1570
- if (k = t[w], y = o(k, w), x = f.get(y), x === void 0) {
1570
+ if (k = t[w], x = o(k, w), y = f.get(x), y === void 0) {
1571
1571
  var L = d ? (
1572
1572
  /** @type {TemplateNode} */
1573
1573
  d.e.nodes_start
@@ -1578,15 +1578,15 @@ function Ao(t, e, n, r, s, i, o, l) {
1578
1578
  g,
1579
1579
  g === null ? e.first : g.next,
1580
1580
  k,
1581
- y,
1581
+ x,
1582
1582
  w,
1583
1583
  r,
1584
1584
  s
1585
- ), f.set(y, g), v = [], _ = [], d = g.next;
1585
+ ), f.set(x, g), v = [], _ = [], d = g.next;
1586
1586
  continue;
1587
1587
  }
1588
- if (a && Po(x, k, w, s), x.e.f & ae && (Mt(x.e), u && ((or = x.a) == null || or.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(x))), x !== d) {
1589
- if (p !== void 0 && p.has(x)) {
1588
+ if (a && Po(y, k, w, s), y.e.f & ae && (Mt(y.e), u && ((or = y.a) == null || or.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(y))), y !== d) {
1589
+ if (p !== void 0 && p.has(y)) {
1590
1590
  if (v.length < _.length) {
1591
1591
  var S = _[0], O;
1592
1592
  g = S.prev;
@@ -1597,19 +1597,19 @@ function Ao(t, e, n, r, s, i, o, l) {
1597
1597
  p.delete(_[O]);
1598
1598
  $e(e, B.prev, an.next), $e(e, g, B), $e(e, an, S), d = S, g = an, w -= 1, v = [], _ = [];
1599
1599
  } else
1600
- p.delete(x), br(x, d, n), $e(e, x.prev, x.next), $e(e, x, g === null ? e.first : g.next), $e(e, g, x), g = x;
1600
+ p.delete(y), br(y, d, n), $e(e, y.prev, y.next), $e(e, y, g === null ? e.first : g.next), $e(e, g, y), g = y;
1601
1601
  continue;
1602
1602
  }
1603
- for (v = [], _ = []; d !== null && d.k !== y; )
1603
+ for (v = [], _ = []; d !== null && d.k !== x; )
1604
1604
  (i || !(d.e.f & ae)) && (p ?? (p = /* @__PURE__ */ new Set())).add(d), _.push(d), d = d.next;
1605
1605
  if (d === null)
1606
1606
  continue;
1607
- x = d;
1607
+ y = d;
1608
1608
  }
1609
- v.push(x), g = x, d = x.next;
1609
+ v.push(y), g = y, d = y.next;
1610
1610
  }
1611
1611
  if (d !== null || p !== void 0) {
1612
- for (var tt = p === void 0 ? [] : Dn(p); d !== null; )
1612
+ for (var tt = p === void 0 ? [] : Fn(p); d !== null; )
1613
1613
  (i || !(d.e.f & ae)) && tt.push(d), d = d.next;
1614
1614
  var cn = tt.length;
1615
1615
  if (cn > 0) {
@@ -1626,8 +1626,8 @@ function Ao(t, e, n, r, s, i, o, l) {
1626
1626
  u && Ke(() => {
1627
1627
  var cr;
1628
1628
  if (b !== void 0)
1629
- for (x of b)
1630
- (cr = x.a) == null || cr.apply();
1629
+ for (y of b)
1630
+ (cr = y.a) == null || cr.apply();
1631
1631
  }), T.first = e.first && e.first.e, T.last = g && g.e;
1632
1632
  }
1633
1633
  function Po(t, e, n, r) {
@@ -1666,7 +1666,7 @@ function br(t, e, n) {
1666
1666
  ); i !== r; ) {
1667
1667
  var o = (
1668
1668
  /** @type {TemplateNode} */
1669
- /* @__PURE__ */ ye(i)
1669
+ /* @__PURE__ */ xe(i)
1670
1670
  );
1671
1671
  s.before(i), i = o;
1672
1672
  }
@@ -1687,9 +1687,9 @@ function Ps(t, e, n, r, s) {
1687
1687
  for (var u = Ue(), a = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
1688
1688
  u.data !== ""); )
1689
1689
  a = u, u = /** @type {TemplateNode} */
1690
- /* @__PURE__ */ ye(u);
1690
+ /* @__PURE__ */ xe(u);
1691
1691
  if (u === null)
1692
- throw Jt(), je;
1692
+ throw Jt(), qe;
1693
1693
  ue(R, a), i = te(u);
1694
1694
  return;
1695
1695
  }
@@ -1754,11 +1754,11 @@ function zo(t) {
1754
1754
  if (!e) {
1755
1755
  if (e = !0, t.hasAttribute("value")) {
1756
1756
  var r = t.value;
1757
- jt(t, "value", null), t.value = r;
1757
+ qt(t, "value", null), t.value = r;
1758
1758
  }
1759
1759
  if (t.hasAttribute("checked")) {
1760
1760
  var s = t.checked;
1761
- jt(t, "checked", null), t.checked = s;
1761
+ qt(t, "checked", null), t.checked = s;
1762
1762
  }
1763
1763
  }
1764
1764
  };
@@ -1768,9 +1768,9 @@ function zo(t) {
1768
1768
  function Oo(t, e) {
1769
1769
  e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
1770
1770
  }
1771
- function jt(t, e, n, r) {
1771
+ function qt(t, e, n, r) {
1772
1772
  var s = t.__attributes ?? (t.__attributes = {});
1773
- I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[ji] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Os(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1773
+ I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[qi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Os(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1774
1774
  }
1775
1775
  function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1776
1776
  var l = e || {}, u = t.tagName === "OPTION";
@@ -1793,27 +1793,27 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1793
1793
  var d = v[0] + v[1];
1794
1794
  if (d !== "$$") {
1795
1795
  if (d === "on") {
1796
- const k = {}, y = "$$" + v;
1797
- let x = v.slice(2);
1798
- var p = Ci(x);
1799
- if (Ti(x) && (x = x.slice(0, -7), k.capture = !0), !p && h) {
1796
+ const k = {}, x = "$$" + v;
1797
+ let y = v.slice(2);
1798
+ var p = Ci(y);
1799
+ if (Ti(y) && (y = y.slice(0, -7), k.capture = !0), !p && h) {
1800
1800
  if (_ != null) continue;
1801
- t.removeEventListener(x, l[y], k), l[y] = null;
1801
+ t.removeEventListener(y, l[x], k), l[x] = null;
1802
1802
  }
1803
1803
  if (_ != null)
1804
1804
  if (p)
1805
- t[`__${x}`] = _, bt([x]);
1805
+ t[`__${y}`] = _, bt([y]);
1806
1806
  else {
1807
1807
  let w = function(L) {
1808
1808
  l[v].call(this, L);
1809
1809
  };
1810
- l[y] = So(x, t, w, k);
1810
+ l[x] = So(y, t, w, k);
1811
1811
  }
1812
- else p && (t[`__${x}`] = void 0);
1812
+ else p && (t[`__${y}`] = void 0);
1813
1813
  } else if (v === "style" && _ != null)
1814
1814
  t.style.cssText = _ + "";
1815
1815
  else if (v === "autofocus")
1816
- xo(
1816
+ yo(
1817
1817
  /** @type {HTMLElement} */
1818
1818
  t,
1819
1819
  !!_
@@ -1837,15 +1837,15 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1837
1837
  t
1838
1838
  );
1839
1839
  if (g === "value") {
1840
- let y = k.defaultValue;
1841
- k.removeAttribute(g), k.defaultValue = y;
1840
+ let x = k.defaultValue;
1841
+ k.removeAttribute(g), k.defaultValue = x;
1842
1842
  } else {
1843
- let y = k.defaultChecked;
1844
- k.removeAttribute(g), k.defaultChecked = y;
1843
+ let x = k.defaultChecked;
1844
+ k.removeAttribute(g), k.defaultChecked = x;
1845
1845
  }
1846
1846
  } else
1847
1847
  t.removeAttribute(v);
1848
- else b || c.includes(g) && (i || typeof _ != "string") ? t[g] = _ : typeof _ != "function" && (I && (g === "src" || g === "href" || g === "srcset") || jt(t, g, _));
1848
+ else b || c.includes(g) && (i || typeof _ != "string") ? t[g] = _ : typeof _ != "function" && (I && (g === "src" || g === "href" || g === "srcset") || qt(t, g, _));
1849
1849
  }
1850
1850
  v === "style" && "__styles" in t && (t.__styles = {});
1851
1851
  }
@@ -1862,7 +1862,7 @@ function Os(t) {
1862
1862
  n = Gr(r);
1863
1863
  for (var i in n)
1864
1864
  n[i].set && e.push(i);
1865
- r = Fn(r);
1865
+ r = jn(r);
1866
1866
  }
1867
1867
  return e;
1868
1868
  }
@@ -1873,7 +1873,7 @@ function No(t, e, n) {
1873
1873
  function Mo(t, e) {
1874
1874
  return (t ?? "") + (" " + e);
1875
1875
  }
1876
- const qo = () => performance.now(), be = {
1876
+ const Do = () => performance.now(), be = {
1877
1877
  // don't access requestAnimationFrame eagerly outside method
1878
1878
  // this allows basic testing of user code without JSDOM
1879
1879
  // bunder will eval and remove ternary when the user's app is built
@@ -1881,7 +1881,7 @@ const qo = () => performance.now(), be = {
1881
1881
  /** @param {any} _ */
1882
1882
  (t) => requestAnimationFrame(t)
1883
1883
  ),
1884
- now: () => qo(),
1884
+ now: () => Do(),
1885
1885
  tasks: /* @__PURE__ */ new Set()
1886
1886
  };
1887
1887
  function Ns() {
@@ -1890,7 +1890,7 @@ function Ns() {
1890
1890
  e.c(t) || (be.tasks.delete(e), e.f());
1891
1891
  }), be.tasks.size !== 0 && be.tick(Ns);
1892
1892
  }
1893
- function Do(t) {
1893
+ function Fo(t) {
1894
1894
  let e;
1895
1895
  return be.tasks.size === 0 && be.tick(Ns), {
1896
1896
  promise: new Promise((n) => {
@@ -1901,10 +1901,10 @@ function Do(t) {
1901
1901
  }
1902
1902
  };
1903
1903
  }
1904
- function yt(t, e) {
1904
+ function xt(t, e) {
1905
1905
  t.dispatchEvent(new CustomEvent(e));
1906
1906
  }
1907
- function Fo(t) {
1907
+ function jo(t) {
1908
1908
  if (t === "float") return "cssFloat";
1909
1909
  if (t === "offset") return "cssOffset";
1910
1910
  if (t.startsWith("--")) return t;
@@ -1919,12 +1919,12 @@ function wr(t) {
1919
1919
  for (const r of n) {
1920
1920
  const [s, i] = r.split(":");
1921
1921
  if (!s || i === void 0) break;
1922
- const o = Fo(s.trim());
1922
+ const o = jo(s.trim());
1923
1923
  e[o] = i.trim();
1924
1924
  }
1925
1925
  return e;
1926
1926
  }
1927
- const jo = (t) => t;
1927
+ const qo = (t) => t;
1928
1928
  function Ms(t, e, n, r) {
1929
1929
  var s = (t & $i) !== 0, i = "both", o, l = e.inert, u = e.style.overflow, a, c;
1930
1930
  function f() {
@@ -1942,13 +1942,13 @@ function Ms(t, e, n, r) {
1942
1942
  var h = {
1943
1943
  is_global: s,
1944
1944
  in() {
1945
- e.inert = l, yt(e, "introstart"), a = Cn(e, f(), c, 1, () => {
1946
- yt(e, "introend"), a == null || a.abort(), a = o = void 0, e.style.overflow = u;
1945
+ e.inert = l, xt(e, "introstart"), a = Cn(e, f(), c, 1, () => {
1946
+ xt(e, "introend"), a == null || a.abort(), a = o = void 0, e.style.overflow = u;
1947
1947
  });
1948
1948
  },
1949
1949
  out(b) {
1950
- e.inert = !0, yt(e, "outrostart"), c = Cn(e, f(), a, 0, () => {
1951
- yt(e, "outroend"), b == null || b();
1950
+ e.inert = !0, xt(e, "outrostart"), c = Cn(e, f(), a, 0, () => {
1951
+ xt(e, "outroend"), b == null || b();
1952
1952
  });
1953
1953
  },
1954
1954
  stop: () => {
@@ -1999,7 +1999,7 @@ function Cn(t, e, n, r, s) {
1999
1999
  reset: nt,
2000
2000
  t: () => r
2001
2001
  };
2002
- const { delay: u = 0, css: a, tick: c, easing: f = jo } = e;
2002
+ const { delay: u = 0, css: a, tick: c, easing: f = qo } = e;
2003
2003
  var h = [];
2004
2004
  if (i && n === void 0 && (c && c(0, 1), a)) {
2005
2005
  var d = wr(a(0, 1));
@@ -2014,20 +2014,20 @@ function Cn(t, e, n, r, s) {
2014
2014
  e.duration * Math.abs(v)
2015
2015
  ), k = [];
2016
2016
  if (_ > 0) {
2017
- var y = !1;
2017
+ var x = !1;
2018
2018
  if (a)
2019
- for (var x = Math.ceil(_ / 16.666666666666668), w = 0; w <= x; w += 1) {
2020
- var L = b + v * f(w / x), S = wr(a(L, 1 - L));
2021
- k.push(S), y || (y = S.overflow === "hidden");
2019
+ for (var y = Math.ceil(_ / 16.666666666666668), w = 0; w <= y; w += 1) {
2020
+ var L = b + v * f(w / y), S = wr(a(L, 1 - L));
2021
+ k.push(S), x || (x = S.overflow === "hidden");
2022
2022
  }
2023
- y && (t.style.overflow = "hidden"), p = () => {
2023
+ x && (t.style.overflow = "hidden"), p = () => {
2024
2024
  var O = (
2025
2025
  /** @type {number} */
2026
2026
  /** @type {globalThis.Animation} */
2027
2027
  g.currentTime
2028
2028
  );
2029
2029
  return b + v * f(O / _);
2030
- }, c && Do(() => {
2030
+ }, c && Fo(() => {
2031
2031
  if (g.playState !== "running") return !1;
2032
2032
  var O = p();
2033
2033
  return c(O, 1 - O), !0;
@@ -2073,7 +2073,7 @@ function dn(t) {
2073
2073
  function pn(t) {
2074
2074
  return t === "" ? null : +t;
2075
2075
  }
2076
- function yr(t, e) {
2076
+ function xr(t, e) {
2077
2077
  return t === e || (t == null ? void 0 : t[Ae]) === e;
2078
2078
  }
2079
2079
  function Ho(t = {}, e, n, r) {
@@ -2081,11 +2081,11 @@ function Ho(t = {}, e, n, r) {
2081
2081
  var s, i;
2082
2082
  return Je(() => {
2083
2083
  s = i, i = [], pe(() => {
2084
- t !== n(...i) && (e(t, ...i), s && yr(n(...s), t) && e(null, ...s));
2084
+ t !== n(...i) && (e(t, ...i), s && xr(n(...s), t) && e(null, ...s));
2085
2085
  });
2086
2086
  }), () => {
2087
2087
  Ke(() => {
2088
- i && yr(n(...i), t) && e(null, ...i);
2088
+ i && xr(n(...i), t) && e(null, ...i);
2089
2089
  });
2090
2090
  };
2091
2091
  }), t;
@@ -2096,7 +2096,7 @@ function Uo(t = !1) {
2096
2096
  P
2097
2097
  ), n = e.l.u;
2098
2098
  if (!n) return;
2099
- let r = () => xs(e.s);
2099
+ let r = () => ys(e.s);
2100
2100
  if (t) {
2101
2101
  let s = 0, i = (
2102
2102
  /** @type {Record<string, any>} */
@@ -2112,23 +2112,23 @@ function Uo(t = !1) {
2112
2112
  r = () => m(o);
2113
2113
  }
2114
2114
  n.b.length && ro(() => {
2115
- xr(e, r), Pt(n.b);
2115
+ yr(e, r), Pt(n.b);
2116
2116
  }), ft(() => {
2117
- const s = pe(() => n.m.map(qi));
2117
+ const s = pe(() => n.m.map(Di));
2118
2118
  return () => {
2119
2119
  for (const i of s)
2120
2120
  typeof i == "function" && i();
2121
2121
  };
2122
2122
  }), n.a.length && ft(() => {
2123
- xr(e, r), Pt(n.a);
2123
+ yr(e, r), Pt(n.a);
2124
2124
  });
2125
2125
  }
2126
- function xr(t, e) {
2126
+ function yr(t, e) {
2127
2127
  if (t.l.s)
2128
2128
  for (const n of t.l.s) m(n);
2129
2129
  e();
2130
2130
  }
2131
- function qs(t) {
2131
+ function Ds(t) {
2132
2132
  P === null && Un(), We && P.l !== null ? Qo(P).m.push(t) : ft(() => {
2133
2133
  const e = pe(t);
2134
2134
  if (typeof e == "function") return (
@@ -2138,7 +2138,7 @@ function qs(t) {
2138
2138
  });
2139
2139
  }
2140
2140
  function Go(t) {
2141
- P === null && Un(), qs(() => () => pe(t));
2141
+ P === null && Un(), Ds(() => () => pe(t));
2142
2142
  }
2143
2143
  function Zo(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2144
2144
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
@@ -2175,13 +2175,13 @@ function Qo(t) {
2175
2175
  );
2176
2176
  return e.u ?? (e.u = { a: [], b: [], m: [] });
2177
2177
  }
2178
- let xt = !1;
2178
+ let yt = !1;
2179
2179
  function Wo(t) {
2180
- var e = xt;
2180
+ var e = yt;
2181
2181
  try {
2182
- return xt = !1, [t(), xt];
2182
+ return yt = !1, [t(), yt];
2183
2183
  } finally {
2184
- xt = e;
2184
+ yt = e;
2185
2185
  }
2186
2186
  }
2187
2187
  const Yo = {
@@ -2233,7 +2233,7 @@ function $r(t) {
2233
2233
  }
2234
2234
  function ne(t, e, n, r) {
2235
2235
  var L;
2236
- var s = (n & ki) !== 0, i = !We || (n & wi) !== 0, o = (n & yi) !== 0, l = (n & xi) !== 0, u = !1, a;
2236
+ var s = (n & ki) !== 0, i = !We || (n & wi) !== 0, o = (n & xi) !== 0, l = (n & yi) !== 0, u = !1, a;
2237
2237
  o ? [a, u] = Wo(() => (
2238
2238
  /** @type {V} */
2239
2239
  t[e]
@@ -2264,7 +2264,7 @@ function ne(t, e, n, r) {
2264
2264
  t[e]
2265
2265
  ))
2266
2266
  );
2267
- v.f |= Di, b = () => {
2267
+ v.f |= Fi, b = () => {
2268
2268
  var S = m(v);
2269
2269
  return S !== void 0 && (h = /** @type {V} */
2270
2270
  void 0), S === void 0 ? h : S;
@@ -2278,16 +2278,16 @@ function ne(t, e, n, r) {
2278
2278
  return arguments.length > 0 ? ((!i || !O || _ || u) && f(O ? b() : S), S) : b();
2279
2279
  };
2280
2280
  }
2281
- var k = !1, y = !1, x = /* @__PURE__ */ Yt(a), w = $r(
2281
+ var k = !1, x = !1, y = /* @__PURE__ */ Yt(a), w = $r(
2282
2282
  () => /* @__PURE__ */ ut(() => {
2283
- var S = b(), O = m(x);
2284
- return k ? (k = !1, y = !0, O) : (y = !1, x.v = S);
2283
+ var S = b(), O = m(y);
2284
+ return k ? (k = !1, x = !0, O) : (x = !1, y.v = S);
2285
2285
  })
2286
2286
  );
2287
- return s || (w.equals = jn), function(S, O) {
2287
+ return s || (w.equals = qn), function(S, O) {
2288
2288
  if (arguments.length > 0) {
2289
2289
  const B = O ? m(w) : i && o ? N(S) : S;
2290
- return w.equals(B) || (k = !0, E(x, B), p && h !== void 0 && (h = B), pe(() => m(w))), S;
2290
+ return w.equals(B) || (k = !0, E(y, B), p && h !== void 0 && (h = B), pe(() => m(w))), S;
2291
2291
  }
2292
2292
  return m(w);
2293
2293
  };
@@ -2376,8 +2376,8 @@ class Xo {
2376
2376
  }
2377
2377
  }
2378
2378
  _e = new WeakMap(), K = new WeakMap();
2379
- let Ds;
2380
- typeof HTMLElement == "function" && (Ds = class extends HTMLElement {
2379
+ let Fs;
2380
+ typeof HTMLElement == "function" && (Fs = class extends HTMLElement {
2381
2381
  /**
2382
2382
  * @param {*} $$componentCtor
2383
2383
  * @param {*} $$slots
@@ -2435,7 +2435,7 @@ typeof HTMLElement == "function" && (Ds = class extends HTMLElement {
2435
2435
  let e = function(s) {
2436
2436
  return (i) => {
2437
2437
  const o = document.createElement("slot");
2438
- s !== "default" && (o.name = s), D(i, o);
2438
+ s !== "default" && (o.name = s), F(i, o);
2439
2439
  };
2440
2440
  };
2441
2441
  if (await Promise.resolve(), !this.$$cn || this.$$c)
@@ -2548,7 +2548,7 @@ function el(t) {
2548
2548
  }), e;
2549
2549
  }
2550
2550
  function Me(t, e, n, r, s, i) {
2551
- let o = class extends Ds {
2551
+ let o = class extends Fs {
2552
2552
  constructor() {
2553
2553
  super(t, n, s), this.$$p_d = e;
2554
2554
  }
@@ -2583,7 +2583,7 @@ function Me(t, e, n, r, s, i) {
2583
2583
  }), t.element = /** @type {any} */
2584
2584
  o, o;
2585
2585
  }
2586
- function Fs(t) {
2586
+ function js(t) {
2587
2587
  const e = t - 1;
2588
2588
  return e * e * e + 1;
2589
2589
  }
@@ -2595,7 +2595,7 @@ function Sr(t) {
2595
2595
  "px"
2596
2596
  ];
2597
2597
  }
2598
- function tl(t, { delay: e = 0, duration: n = 400, easing: r = Fs, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
2598
+ function tl(t, { delay: e = 0, duration: n = 400, easing: r = js, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
2599
2599
  const l = getComputedStyle(t), u = +l.opacity, a = l.transform === "none" ? "" : l.transform, c = u * (1 - o), [f, h] = Sr(s), [d, p] = Sr(i);
2600
2600
  return {
2601
2601
  delay: e,
@@ -2606,7 +2606,7 @@ function tl(t, { delay: e = 0, duration: n = 400, easing: r = Fs, x: s = 0, y: i
2606
2606
  opacity: ${u - c * b}`
2607
2607
  };
2608
2608
  }
2609
- function nl(t, { delay: e = 0, duration: n = 400, easing: r = Fs, axis: s = "y" } = {}) {
2609
+ function nl(t, { delay: e = 0, duration: n = 400, easing: r = js, axis: s = "y" } = {}) {
2610
2610
  const i = getComputedStyle(t), o = +i.opacity, l = s === "y" ? "height" : "width", u = parseFloat(i[l]), a = s === "y" ? ["top", "bottom"] : ["left", "right"], c = a.map(
2611
2611
  (v) => (
2612
2612
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
@@ -2671,7 +2671,7 @@ class ke {
2671
2671
  }
2672
2672
  }
2673
2673
  eo();
2674
- const js = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2674
+ const qs = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2675
2675
  const s = t.split(":");
2676
2676
  if (t.slice(0, 1) === "@") {
2677
2677
  if (s.length < 2 || s.length > 3)
@@ -2969,11 +2969,11 @@ function bl(t, e) {
2969
2969
  ), b.push("scale(-1 1)"), s.top = s.left = 0) : _ && (b.push(
2970
2970
  "translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
2971
2971
  ), b.push("scale(1 -1)"), s.top = s.left = 0);
2972
- let y;
2972
+ let x;
2973
2973
  switch (k < 0 && (k -= Math.floor(k / 4) * 4), k = k % 4, k) {
2974
2974
  case 1:
2975
- y = s.height / 2 + s.top, b.unshift(
2976
- "rotate(90 " + y.toString() + " " + y.toString() + ")"
2975
+ x = s.height / 2 + s.top, b.unshift(
2976
+ "rotate(90 " + x.toString() + " " + x.toString() + ")"
2977
2977
  );
2978
2978
  break;
2979
2979
  case 2:
@@ -2982,12 +2982,12 @@ function bl(t, e) {
2982
2982
  );
2983
2983
  break;
2984
2984
  case 3:
2985
- y = s.width / 2 + s.left, b.unshift(
2986
- "rotate(-90 " + y.toString() + " " + y.toString() + ")"
2985
+ x = s.width / 2 + s.left, b.unshift(
2986
+ "rotate(-90 " + x.toString() + " " + x.toString() + ")"
2987
2987
  );
2988
2988
  break;
2989
2989
  }
2990
- k % 2 === 1 && (s.left !== s.top && (y = s.left, s.left = s.top, s.top = y), s.width !== s.height && (y = s.width, s.width = s.height, s.height = y)), b.length && (i = vl(
2990
+ k % 2 === 1 && (s.left !== s.top && (x = s.left, s.left = s.top, s.top = x), s.width !== s.height && (x = s.width, s.width = s.height, s.height = x)), b.length && (i = vl(
2991
2991
  i,
2992
2992
  '<g transform="' + b.join(" ") + '">',
2993
2993
  "</g>"
@@ -3009,7 +3009,7 @@ function bl(t, e) {
3009
3009
  }
3010
3010
  const ml = /\sid="(\S+)"/g, kl = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
3011
3011
  let wl = 0;
3012
- function yl(t, e = kl) {
3012
+ function xl(t, e = kl) {
3013
3013
  const n = [];
3014
3014
  let r;
3015
3015
  for (; r = ml.exec(t); )
@@ -3028,7 +3028,7 @@ function yl(t, e = kl) {
3028
3028
  }), t = t.replace(new RegExp(s, "g"), ""), t;
3029
3029
  }
3030
3030
  const An = /* @__PURE__ */ Object.create(null);
3031
- function xl(t, e) {
3031
+ function yl(t, e) {
3032
3032
  An[t] = e;
3033
3033
  }
3034
3034
  function Pn(t) {
@@ -3280,7 +3280,7 @@ var Ml = {
3280
3280
  random: !1,
3281
3281
  dataAfterTimeout: !1
3282
3282
  };
3283
- function ql(t, e, n, r) {
3283
+ function Dl(t, e, n, r) {
3284
3284
  const s = t.resources.length, i = t.random ? Math.floor(Math.random() * s) : t.index;
3285
3285
  let o;
3286
3286
  if (t.random) {
@@ -3327,7 +3327,7 @@ function ql(t, e, n, r) {
3327
3327
  w.status === "pending" && (w.status = "aborted");
3328
3328
  }), h = [];
3329
3329
  }
3330
- function y(w, L, S) {
3330
+ function x(w, L, S) {
3331
3331
  const O = L !== "success";
3332
3332
  switch (h = h.filter((B) => B !== w), u) {
3333
3333
  case "pending":
@@ -3344,7 +3344,7 @@ function ql(t, e, n, r) {
3344
3344
  return;
3345
3345
  }
3346
3346
  if (O) {
3347
- c = S, h.length || (o.length ? x() : _());
3347
+ c = S, h.length || (o.length ? y() : _());
3348
3348
  return;
3349
3349
  }
3350
3350
  if (p(), k(), !t.random) {
@@ -3355,7 +3355,7 @@ function ql(t, e, n, r) {
3355
3355
  B(S);
3356
3356
  });
3357
3357
  }
3358
- function x() {
3358
+ function y() {
3359
3359
  if (u !== "pending")
3360
3360
  return;
3361
3361
  p();
@@ -3374,12 +3374,12 @@ function ql(t, e, n, r) {
3374
3374
  status: "pending",
3375
3375
  resource: w,
3376
3376
  callback: (S, O) => {
3377
- y(L, S, O);
3377
+ x(L, S, O);
3378
3378
  }
3379
3379
  };
3380
- h.push(L), a++, f = setTimeout(x, t.rotate), n(w, e, L.callback);
3380
+ h.push(L), a++, f = setTimeout(y, t.rotate), n(w, e, L.callback);
3381
3381
  }
3382
- return setTimeout(x), v;
3382
+ return setTimeout(y), v;
3383
3383
  }
3384
3384
  function Ys(t) {
3385
3385
  const e = {
@@ -3391,7 +3391,7 @@ function Ys(t) {
3391
3391
  n = n.filter((l) => l().status === "pending");
3392
3392
  }
3393
3393
  function s(l, u, a) {
3394
- const c = ql(
3394
+ const c = Dl(
3395
3395
  e,
3396
3396
  l,
3397
3397
  u,
@@ -3417,7 +3417,7 @@ function Ys(t) {
3417
3417
  function Rr() {
3418
3418
  }
3419
3419
  const vn = /* @__PURE__ */ Object.create(null);
3420
- function Dl(t) {
3420
+ function Fl(t) {
3421
3421
  if (!vn[t]) {
3422
3422
  const e = Wn(t);
3423
3423
  if (!e)
@@ -3430,14 +3430,14 @@ function Dl(t) {
3430
3430
  }
3431
3431
  return vn[t];
3432
3432
  }
3433
- function Fl(t, e, n) {
3433
+ function jl(t, e, n) {
3434
3434
  let r, s;
3435
3435
  if (typeof t == "string") {
3436
3436
  const i = Pn(t);
3437
3437
  if (!i)
3438
3438
  return n(void 0, 424), Rr;
3439
3439
  s = i.send;
3440
- const o = Dl(t);
3440
+ const o = Fl(t);
3441
3441
  o && (r = o.redundancy);
3442
3442
  } else {
3443
3443
  const i = Vn(t);
@@ -3451,7 +3451,7 @@ function Fl(t, e, n) {
3451
3451
  }
3452
3452
  function Ar() {
3453
3453
  }
3454
- function jl(t) {
3454
+ function ql(t) {
3455
3455
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
3456
3456
  t.iconsLoaderFlag = !1, Ll(t);
3457
3457
  }));
@@ -3459,7 +3459,7 @@ function jl(t) {
3459
3459
  function Bl(t) {
3460
3460
  const e = [], n = [];
3461
3461
  return t.forEach((r) => {
3462
- (r.match(js) ? e : n).push(r);
3462
+ (r.match(qs) ? e : n).push(r);
3463
3463
  }), {
3464
3464
  valid: e,
3465
3465
  invalid: n
@@ -3481,7 +3481,7 @@ function st(t, e, n) {
3481
3481
  } catch (s) {
3482
3482
  console.error(s);
3483
3483
  }
3484
- r(), jl(t);
3484
+ r(), ql(t);
3485
3485
  }
3486
3486
  function Pr(t, e) {
3487
3487
  t instanceof Promise ? t.then((n) => {
@@ -3524,13 +3524,13 @@ function Hl(t, e) {
3524
3524
  const { valid: o, invalid: l } = Bl(s);
3525
3525
  if (l.length && st(t, l, null), !o.length)
3526
3526
  return;
3527
- const u = r.match(js) ? Pn(n) : null;
3527
+ const u = r.match(qs) ? Pn(n) : null;
3528
3528
  if (!u) {
3529
3529
  st(t, o, null);
3530
3530
  return;
3531
3531
  }
3532
3532
  u.prepare(n, r, o).forEach((c) => {
3533
- Fl(n, c, (f) => {
3533
+ jl(n, c, (f) => {
3534
3534
  st(t, c.icons, f);
3535
3535
  });
3536
3536
  });
@@ -3708,7 +3708,7 @@ function na(t, e) {
3708
3708
  return typeof _ == "string" && (_ = _.replace(/-/g, "_")), {
3709
3709
  svg: !0,
3710
3710
  attributes: s,
3711
- body: yl(o.body, _ ? () => _ + "ID" + v++ : "iconifySvelte")
3711
+ body: xl(o.body, _ ? () => _ + "ID" + v++ : "iconifySvelte")
3712
3712
  };
3713
3713
  }
3714
3714
  const { body: u, width: a, height: c } = t, f = r === "mask" || (r === "bg" ? !1 : u.indexOf("currentColor") !== -1), h = Wl(u, {
@@ -3731,7 +3731,7 @@ function na(t, e) {
3731
3731
  };
3732
3732
  }
3733
3733
  Zs(!0);
3734
- xl("", Al);
3734
+ yl("", Al);
3735
3735
  if (typeof document < "u" && typeof window < "u") {
3736
3736
  const t = window;
3737
3737
  if (t.IconifyPreload !== void 0) {
@@ -3813,12 +3813,12 @@ function Pe(t, e) {
3813
3813
  function u() {
3814
3814
  $n(i);
3815
3815
  }
3816
- qs(() => {
3816
+ Ds(() => {
3817
3817
  E(s, !0);
3818
3818
  }), Go(() => {
3819
3819
  hn(r, m(r).destroyed = !0), m(r).loading && (m(r).loading.abort(), hn(r, m(r).loading = null));
3820
3820
  }), oo(
3821
- () => (m(i), xs(n), m(s), m(r), m(o), Nr),
3821
+ () => (m(i), ys(n), m(s), m(r), m(o), Nr),
3822
3822
  () => {
3823
3823
  m(i);
3824
3824
  const h = !!n.ssr || m(s), d = ra(n.icon, m(r), h, u, l);
@@ -3833,24 +3833,24 @@ function Pe(t, e) {
3833
3833
  var g = (v) => {
3834
3834
  var _ = sa();
3835
3835
  let k;
3836
- var y = q(_);
3837
- Ps(y, () => m(o).body, !0, !1), M(_), Ot(() => k = mr(_, k, { ...m(o).attributes }, void 0, !0)), D(v, _);
3836
+ var x = D(_);
3837
+ Ps(x, () => m(o).body, !0, !1), M(_), Ot(() => k = mr(_, k, { ...m(o).attributes }, void 0, !0)), F(v, _);
3838
3838
  }, b = (v) => {
3839
3839
  var _ = ia();
3840
3840
  let k;
3841
- Ot(() => k = mr(_, k, { ...m(o).attributes })), D(v, _);
3841
+ Ot(() => k = mr(_, k, { ...m(o).attributes })), F(v, _);
3842
3842
  };
3843
3843
  gt(p, (v) => {
3844
3844
  m(o).svg ? v(g) : v(b, !1);
3845
3845
  });
3846
3846
  }
3847
- D(h, d);
3847
+ F(h, d);
3848
3848
  };
3849
3849
  gt(c, (h) => {
3850
3850
  m(o) && h(f);
3851
3851
  });
3852
3852
  }
3853
- D(t, a), Te();
3853
+ F(t, a), Te();
3854
3854
  }
3855
3855
  Me(Pe, {}, [], [], !0);
3856
3856
  const oa = (t, e) => {
@@ -3871,9 +3871,9 @@ const ua = {
3871
3871
  function Ks(t, e) {
3872
3872
  Ee(e, !0), mt(t, ua);
3873
3873
  let n = ne(e, "show", 15, !1), r = ne(e, "showHistory", 15), s = ne(e, "actChat", 15);
3874
- var i = ca(), o = q(i), l = ie(q(o), 2), u = q(l);
3874
+ var i = ca(), o = D(i), l = ie(D(o), 2), u = D(l);
3875
3875
  u.__click = [oa, s];
3876
- var a = q(u);
3876
+ var a = D(u);
3877
3877
  Pe(a, {
3878
3878
  icon: "ic:round-plus",
3879
3879
  width: "25px",
@@ -3881,7 +3881,7 @@ function Ks(t, e) {
3881
3881
  }), M(u);
3882
3882
  var c = ie(u, 2);
3883
3883
  c.__click = [la, r];
3884
- var f = q(c);
3884
+ var f = D(c);
3885
3885
  Pe(f, {
3886
3886
  icon: "heroicons:chat-bubble-left-right-solid",
3887
3887
  width: "25px",
@@ -3889,12 +3889,12 @@ function Ks(t, e) {
3889
3889
  }), M(c);
3890
3890
  var h = ie(c, 2);
3891
3891
  h.__click = [aa, r, n];
3892
- var d = q(h);
3892
+ var d = D(h);
3893
3893
  return Pe(d, {
3894
3894
  icon: "gg:close",
3895
3895
  width: "20px",
3896
3896
  height: "20px"
3897
- }), M(h), M(l), M(o), M(i), D(t, i), Te({
3897
+ }), M(h), M(l), M(o), M(i), F(t, i), Te({
3898
3898
  get show() {
3899
3899
  return n();
3900
3900
  },
@@ -3926,20 +3926,20 @@ const da = {
3926
3926
  };
3927
3927
  function Xs(t, e) {
3928
3928
  Ee(e, !0), mt(t, da);
3929
- let n = ne(e, "sendMessage", 7), r = xe("");
3929
+ let n = ne(e, "sendMessage", 7), r = ye("");
3930
3930
  const s = () => {
3931
3931
  n()(m(r)), E(r, "");
3932
3932
  };
3933
- var i = ha(), o = q(i);
3933
+ var i = ha(), o = D(i);
3934
3934
  zo(o), o.__keyup = [fa, s];
3935
3935
  var l = ie(o, 2);
3936
3936
  l.__click = s;
3937
- var u = q(l);
3937
+ var u = D(l);
3938
3938
  return Pe(u, {
3939
3939
  icon: "material-symbols:send-rounded",
3940
3940
  width: "25px",
3941
3941
  height: "25px"
3942
- }), M(l), M(i), Bo(o, () => m(r), (a) => E(r, a)), D(t, i), Te({
3942
+ }), M(l), M(i), Bo(o, () => m(r), (a) => E(r, a)), F(t, i), Te({
3943
3943
  get sendMessage() {
3944
3944
  return n();
3945
3945
  },
@@ -3964,9 +3964,9 @@ function Yn() {
3964
3964
  walkTokens: null
3965
3965
  };
3966
3966
  }
3967
- let qe = Yn();
3967
+ let De = Yn();
3968
3968
  function ei(t) {
3969
- qe = t;
3969
+ De = t;
3970
3970
  }
3971
3971
  const at = { exec: () => null };
3972
3972
  function C(t, e = "") {
@@ -3974,13 +3974,13 @@ function C(t, e = "") {
3974
3974
  const r = {
3975
3975
  replace: (s, i) => {
3976
3976
  let o = typeof i == "string" ? i : i.source;
3977
- return o = o.replace(F.caret, "$1"), n = n.replace(s, o), r;
3977
+ return o = o.replace(j.caret, "$1"), n = n.replace(s, o), r;
3978
3978
  },
3979
3979
  getRegex: () => new RegExp(n, e)
3980
3980
  };
3981
3981
  return r;
3982
3982
  }
3983
- const F = {
3983
+ const j = {
3984
3984
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
3985
3985
  outputLinkReplace: /\\([\[\]])/g,
3986
3986
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -4037,14 +4037,14 @@ const F = {
4037
4037
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
4038
4038
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
4039
4039
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
4040
- }, pa = /^(?:[ \t]*(?:\n|$))+/, ga = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, va = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Jn = /(?:[*+-]|\d{1,9}[.)])/, ti = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ni = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ba = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ma = /^[^\n]+/, Xn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ka = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), wa = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", er = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ya = C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", er).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ri = C(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), xa = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ri).getRegex(), tr = {
4041
- blockquote: xa,
4040
+ }, pa = /^(?:[ \t]*(?:\n|$))+/, ga = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, va = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Jn = /(?:[*+-]|\d{1,9}[.)])/, ti = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ni = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ba = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ma = /^[^\n]+/, Xn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ka = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), wa = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", er = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, xa = C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", er).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ri = C(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), ya = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ri).getRegex(), tr = {
4041
+ blockquote: ya,
4042
4042
  code: ga,
4043
4043
  def: ka,
4044
4044
  fences: va,
4045
4045
  heading: _a,
4046
4046
  hr: kt,
4047
- html: ya,
4047
+ html: xa,
4048
4048
  lheading: ni,
4049
4049
  list: wa,
4050
4050
  newline: pa,
@@ -4066,11 +4066,11 @@ const F = {
4066
4066
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
4067
4067
  paragraph: C(Kn).replace("hr", kt).replace("heading", ` *#{1,6} *[^
4068
4068
  ]`).replace("lheading", ni).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
4069
- }, Ea = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ta = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, si = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ln = /[\p{P}\p{S}]/u, nr = /[\s\p{P}\p{S}]/u, ii = /[^\s\p{P}\p{S}]/u, Ca = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nr).getRegex(), oi = /(?!~)[\p{P}\p{S}]/u, Ra = /(?!~)[\s\p{P}\p{S}]/u, Aa = /(?:[^\s\p{P}\p{S}]|~)/u, Pa = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, li = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, La = C(li, "u").replace(/punct/g, ln).getRegex(), za = C(li, "u").replace(/punct/g, oi).getRegex(), ai = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Oa = C(ai, "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Na = C(ai, "gu").replace(/notPunctSpace/g, Aa).replace(/punctSpace/g, Ra).replace(/punct/g, oi).getRegex(), Ma = C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), qa = C(/\\(punct)/, "gu").replace(/punct/g, ln).getRegex(), Da = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Fa = C(er).replace("(?:-->|$)", "-->").getRegex(), ja = C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Fa).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ba = C(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ci = C(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Xn).getRegex(), ui = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xn).getRegex(), Ha = C("reflink|nolink(?!\\()", "g").replace("reflink", ci).replace("nolink", ui).getRegex(), rr = {
4069
+ }, Ea = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ta = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, si = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ln = /[\p{P}\p{S}]/u, nr = /[\s\p{P}\p{S}]/u, ii = /[^\s\p{P}\p{S}]/u, Ca = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nr).getRegex(), oi = /(?!~)[\p{P}\p{S}]/u, Ra = /(?!~)[\s\p{P}\p{S}]/u, Aa = /(?:[^\s\p{P}\p{S}]|~)/u, Pa = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, li = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, La = C(li, "u").replace(/punct/g, ln).getRegex(), za = C(li, "u").replace(/punct/g, oi).getRegex(), ai = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Oa = C(ai, "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Na = C(ai, "gu").replace(/notPunctSpace/g, Aa).replace(/punctSpace/g, Ra).replace(/punct/g, oi).getRegex(), Ma = C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Da = C(/\\(punct)/, "gu").replace(/punct/g, ln).getRegex(), Fa = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ja = C(er).replace("(?:-->|$)", "-->").getRegex(), qa = C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ja).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ba = C(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ci = C(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Xn).getRegex(), ui = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xn).getRegex(), Ha = C("reflink|nolink(?!\\()", "g").replace("reflink", ci).replace("nolink", ui).getRegex(), rr = {
4070
4070
  _backpedal: at,
4071
4071
  // only used for GFM url
4072
- anyPunctuation: qa,
4073
- autolink: Da,
4072
+ anyPunctuation: Da,
4073
+ autolink: Fa,
4074
4074
  blockSkip: Pa,
4075
4075
  br: si,
4076
4076
  code: Ta,
@@ -4084,7 +4084,7 @@ const F = {
4084
4084
  punctuation: Ca,
4085
4085
  reflink: ci,
4086
4086
  reflinkSearch: Ha,
4087
- tag: ja,
4087
+ tag: qa,
4088
4088
  text: Ia,
4089
4089
  url: at
4090
4090
  }, Ua = {
@@ -4118,31 +4118,31 @@ const F = {
4118
4118
  ">": "&gt;",
4119
4119
  '"': "&quot;",
4120
4120
  "'": "&#39;"
4121
- }, qr = (t) => Za[t];
4121
+ }, Dr = (t) => Za[t];
4122
4122
  function le(t, e) {
4123
4123
  if (e) {
4124
- if (F.escapeTest.test(t))
4125
- return t.replace(F.escapeReplace, qr);
4126
- } else if (F.escapeTestNoEncode.test(t))
4127
- return t.replace(F.escapeReplaceNoEncode, qr);
4124
+ if (j.escapeTest.test(t))
4125
+ return t.replace(j.escapeReplace, Dr);
4126
+ } else if (j.escapeTestNoEncode.test(t))
4127
+ return t.replace(j.escapeReplaceNoEncode, Dr);
4128
4128
  return t;
4129
4129
  }
4130
- function Dr(t) {
4130
+ function Fr(t) {
4131
4131
  try {
4132
- t = encodeURI(t).replace(F.percentDecode, "%");
4132
+ t = encodeURI(t).replace(j.percentDecode, "%");
4133
4133
  } catch {
4134
4134
  return null;
4135
4135
  }
4136
4136
  return t;
4137
4137
  }
4138
- function Fr(t, e) {
4138
+ function jr(t, e) {
4139
4139
  var i;
4140
- const n = t.replace(F.findPipe, (o, l, u) => {
4140
+ const n = t.replace(j.findPipe, (o, l, u) => {
4141
4141
  let a = !1, c = l;
4142
4142
  for (; --c >= 0 && u[c] === "\\"; )
4143
4143
  a = !a;
4144
4144
  return a ? "|" : " |";
4145
- }), r = n.split(F.splitPipe);
4145
+ }), r = n.split(j.splitPipe);
4146
4146
  let s = 0;
4147
4147
  if (r[0].trim() || r.shift(), r.length > 0 && !((i = r.at(-1)) != null && i.trim()) && r.pop(), e)
4148
4148
  if (r.length > e)
@@ -4151,7 +4151,7 @@ function Fr(t, e) {
4151
4151
  for (; r.length < e; )
4152
4152
  r.push("");
4153
4153
  for (; s < r.length; s++)
4154
- r[s] = r[s].trim().replace(F.slashPipe, "|");
4154
+ r[s] = r[s].trim().replace(j.slashPipe, "|");
4155
4155
  return r;
4156
4156
  }
4157
4157
  function ot(t, e, n) {
@@ -4176,7 +4176,7 @@ function Va(t, e) {
4176
4176
  return r;
4177
4177
  return -1;
4178
4178
  }
4179
- function jr(t, e, n, r, s) {
4179
+ function qr(t, e, n, r, s) {
4180
4180
  const i = e.href, o = e.title || null, l = t[1].replace(s.other.outputLinkReplace, "$1");
4181
4181
  if (t[0].charAt(0) !== "!") {
4182
4182
  r.state.inLink = !0;
@@ -4220,7 +4220,7 @@ class Ut {
4220
4220
  $(this, "rules");
4221
4221
  // set by the lexer
4222
4222
  $(this, "lexer");
4223
- this.options = e || qe;
4223
+ this.options = e || De;
4224
4224
  }
4225
4225
  space(e) {
4226
4226
  const n = this.rules.block.newline.exec(e);
@@ -4360,18 +4360,18 @@ ${f}` : f;
4360
4360
  `, 1)[0], p = !h.trim(), g = 0;
4361
4361
  if (this.options.pedantic ? (g = 2, f = h.trimStart()) : p ? g = n[1].length + 1 : (g = n[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, f = h.slice(g), g += n[1].length), p && this.rules.other.blankLine.test(d) && (c += d + `
4362
4362
  `, e = e.substring(d.length + 1), a = !0), !a) {
4363
- const _ = this.rules.other.nextBulletRegex(g), k = this.rules.other.hrRegex(g), y = this.rules.other.fencesBeginRegex(g), x = this.rules.other.headingBeginRegex(g), w = this.rules.other.htmlBeginRegex(g);
4363
+ const _ = this.rules.other.nextBulletRegex(g), k = this.rules.other.hrRegex(g), x = this.rules.other.fencesBeginRegex(g), y = this.rules.other.headingBeginRegex(g), w = this.rules.other.htmlBeginRegex(g);
4364
4364
  for (; e; ) {
4365
4365
  const L = e.split(`
4366
4366
  `, 1)[0];
4367
4367
  let S;
4368
- if (d = L, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), S = d) : S = d.replace(this.rules.other.tabCharGlobal, " "), y.test(d) || x.test(d) || w.test(d) || _.test(d) || k.test(d))
4368
+ if (d = L, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), S = d) : S = d.replace(this.rules.other.tabCharGlobal, " "), x.test(d) || y.test(d) || w.test(d) || _.test(d) || k.test(d))
4369
4369
  break;
4370
4370
  if (S.search(this.rules.other.nonSpaceChar) >= g || !d.trim())
4371
4371
  f += `
4372
4372
  ` + S.slice(g);
4373
4373
  else {
4374
- if (p || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || y.test(h) || x.test(h) || k.test(h))
4374
+ if (p || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || x.test(h) || y.test(h) || k.test(h))
4375
4375
  break;
4376
4376
  f += `
4377
4377
  ` + d;
@@ -4438,7 +4438,7 @@ ${f}` : f;
4438
4438
  const n = this.rules.block.table.exec(e);
4439
4439
  if (!n || !this.rules.other.tableDelimiter.test(n[2]))
4440
4440
  return;
4441
- const r = Fr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4441
+ const r = jr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4442
4442
  `) : [], o = {
4443
4443
  type: "table",
4444
4444
  raw: n[0],
@@ -4457,7 +4457,7 @@ ${f}` : f;
4457
4457
  align: o.align[u]
4458
4458
  });
4459
4459
  for (const u of i)
4460
- o.rows.push(Fr(u, o.header.length).map((a, c) => ({
4460
+ o.rows.push(jr(u, o.header.length).map((a, c) => ({
4461
4461
  text: a,
4462
4462
  tokens: this.lexer.inline(a),
4463
4463
  header: !1,
@@ -4544,7 +4544,7 @@ ${f}` : f;
4544
4544
  o && (s = o[1], i = o[3]);
4545
4545
  } else
4546
4546
  i = n[3] ? n[3].slice(1, -1) : "";
4547
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), jr(n, {
4547
+ return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), qr(n, {
4548
4548
  href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
4549
4549
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
4550
4550
  }, n[0], this.lexer, this.rules);
@@ -4562,7 +4562,7 @@ ${f}` : f;
4562
4562
  text: o
4563
4563
  };
4564
4564
  }
4565
- return jr(r, i, r[0], this.lexer, this.rules);
4565
+ return qr(r, i, r[0], this.lexer, this.rules);
4566
4566
  }
4567
4567
  }
4568
4568
  emStrong(e, n, r = "") {
@@ -4704,13 +4704,13 @@ class X {
4704
4704
  $(this, "state");
4705
4705
  $(this, "tokenizer");
4706
4706
  $(this, "inlineQueue");
4707
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || qe, this.options.tokenizer = this.options.tokenizer || new Ut(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
4707
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || De, this.options.tokenizer = this.options.tokenizer || new Ut(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
4708
4708
  inLink: !1,
4709
4709
  inRawBlock: !1,
4710
4710
  top: !0
4711
4711
  };
4712
4712
  const n = {
4713
- other: F,
4713
+ other: j,
4714
4714
  block: $t.normal,
4715
4715
  inline: it.normal
4716
4716
  };
@@ -4741,7 +4741,7 @@ class X {
4741
4741
  * Preprocessing
4742
4742
  */
4743
4743
  lex(e) {
4744
- e = e.replace(F.carriageReturn, `
4744
+ e = e.replace(j.carriageReturn, `
4745
4745
  `), this.blockTokens(e, this.tokens);
4746
4746
  for (let n = 0; n < this.inlineQueue.length; n++) {
4747
4747
  const r = this.inlineQueue[n];
@@ -4751,7 +4751,7 @@ class X {
4751
4751
  }
4752
4752
  blockTokens(e, n = [], r = !1) {
4753
4753
  var s, i, o;
4754
- for (this.options.pedantic && (e = e.replace(F.tabCharGlobal, " ").replace(F.spaceLine, "")); e; ) {
4754
+ for (this.options.pedantic && (e = e.replace(j.tabCharGlobal, " ").replace(j.spaceLine, "")); e; ) {
4755
4755
  let l;
4756
4756
  if ((i = (s = this.options.extensions) == null ? void 0 : s.block) != null && i.some((a) => (l = a.call({ lexer: this }, e, n)) ? (e = e.substring(l.raw.length), n.push(l), !0) : !1))
4757
4757
  continue;
@@ -4947,14 +4947,14 @@ class Gt {
4947
4947
  constructor(e) {
4948
4948
  $(this, "options");
4949
4949
  $(this, "parser");
4950
- this.options = e || qe;
4950
+ this.options = e || De;
4951
4951
  }
4952
4952
  space(e) {
4953
4953
  return "";
4954
4954
  }
4955
4955
  code({ text: e, lang: n, escaped: r }) {
4956
4956
  var o;
4957
- const s = (o = (n || "").match(F.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(F.endingNewline, "") + `
4957
+ const s = (o = (n || "").match(j.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(j.endingNewline, "") + `
4958
4958
  `;
4959
4959
  return s ? '<pre><code class="language-' + le(s) + '">' + (r ? i : le(i, !0)) + `</code></pre>
4960
4960
  ` : "<pre><code>" + (r ? i : le(i, !0)) + `</code></pre>
@@ -5058,7 +5058,7 @@ ${e}</tr>
5058
5058
  return `<del>${this.parser.parseInline(e)}</del>`;
5059
5059
  }
5060
5060
  link({ href: e, title: n, tokens: r }) {
5061
- const s = this.parser.parseInline(r), i = Dr(e);
5061
+ const s = this.parser.parseInline(r), i = Fr(e);
5062
5062
  if (i === null)
5063
5063
  return s;
5064
5064
  e = i;
@@ -5066,7 +5066,7 @@ ${e}</tr>
5066
5066
  return n && (o += ' title="' + le(n) + '"'), o += ">" + s + "</a>", o;
5067
5067
  }
5068
5068
  image({ href: e, title: n, text: r }) {
5069
- const s = Dr(e);
5069
+ const s = Fr(e);
5070
5070
  if (s === null)
5071
5071
  return le(r);
5072
5072
  e = s;
@@ -5112,7 +5112,7 @@ class ee {
5112
5112
  $(this, "options");
5113
5113
  $(this, "renderer");
5114
5114
  $(this, "textRenderer");
5115
- this.options = e || qe, this.options.renderer = this.options.renderer || new Gt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sr();
5115
+ this.options = e || De, this.options.renderer = this.options.renderer || new Gt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sr();
5116
5116
  }
5117
5117
  /**
5118
5118
  * Static Parse Method
@@ -5274,7 +5274,7 @@ class ct {
5274
5274
  constructor(e) {
5275
5275
  $(this, "options");
5276
5276
  $(this, "block");
5277
- this.options = e || qe;
5277
+ this.options = e || De;
5278
5278
  }
5279
5279
  /**
5280
5280
  * Process markdown before marked
@@ -5493,7 +5493,7 @@ A.options = A.setOptions = function(t) {
5493
5493
  return Le.setOptions(t), A.defaults = Le.defaults, ei(A.defaults), A;
5494
5494
  };
5495
5495
  A.getDefaults = Yn;
5496
- A.defaults = qe;
5496
+ A.defaults = De;
5497
5497
  A.use = function(...t) {
5498
5498
  return Le.use(...t), A.defaults = Le.defaults, ei(A.defaults), A;
5499
5499
  };
@@ -5517,46 +5517,46 @@ A.walkTokens;
5517
5517
  A.parseInline;
5518
5518
  ee.parse;
5519
5519
  X.lex;
5520
- var Ya = /* @__PURE__ */ se('<div><div class="message-content svelte-qh61y2"><!></div></div>'), Ja = /* @__PURE__ */ se('<div class="loading svelte-qh61y2"><!></div>'), Ka = /* @__PURE__ */ se('<div class="chat-body svelte-qh61y2"><div class="placeholder svelte-qh61y2"></div> <!> <!></div>');
5520
+ var Ya = /* @__PURE__ */ se('<div><div class="message-content svelte-18vniux"><!></div></div>'), Ja = /* @__PURE__ */ se('<div class="loading svelte-18vniux"><!></div>'), Ka = /* @__PURE__ */ se('<div class="chat-body svelte-18vniux"><div class="empty-placeholder svelte-18vniux"></div> <!> <!></div>');
5521
5521
  const Xa = {
5522
- hash: "svelte-qh61y2",
5523
- code: `.placeholder.svelte-qh61y2 {height:100%;}.chat-body.svelte-qh61y2 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-qh61y2::-webkit-scrollbar {width:8px;}.chat-body.svelte-qh61y2::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-qh61y2::-webkit-scrollbar-thumb {background:rgba(\r
5522
+ hash: "svelte-18vniux",
5523
+ code: `.empty-placeholder.svelte-18vniux {height:100%;}.chat-body.svelte-18vniux {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-18vniux::-webkit-scrollbar {width:8px;}.chat-body.svelte-18vniux::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-18vniux::-webkit-scrollbar-thumb {background:rgba(\r
5524
5524
  255,\r
5525
5525
  255,\r
5526
5526
  255,\r
5527
5527
  0.5\r
5528
- ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-qh61y2::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-qh61y2 {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:80%;margin-left:auto;}.message-received.svelte-qh61y2 {background:white;border-radius:10px;border-bottom-left-radius:0;width:80%;}.message-content.svelte-qh61y2 {padding:10px;font-size:15px;}.message-content p {margin:5px 0;}.loading.svelte-qh61y2 {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
5528
+ ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-18vniux::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-18vniux {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:80%;margin-left:auto;}.message-received.svelte-18vniux {background:white;border-radius:10px;border-bottom-left-radius:0;width:80%;}.message-content.svelte-18vniux {padding:10px;font-size:15px;margin-bottom:-15px;}.loading.svelte-18vniux {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
5529
5529
  };
5530
5530
  function fi(t, e) {
5531
5531
  Ee(e, !0), mt(t, Xa);
5532
- let n = ne(e, "messages", 15), r = ne(e, "loading", 15), s = xe(void 0);
5532
+ let n = ne(e, "messages", 15), r = ne(e, "loading", 15), s = ye(void 0);
5533
5533
  const i = async () => {
5534
5534
  await wo(), m(s) && (m(s).scrollTop = m(s).scrollHeight);
5535
5535
  };
5536
5536
  ft(() => {
5537
5537
  n(), i();
5538
5538
  });
5539
- var o = Ka(), l = ie(q(o), 2);
5539
+ var o = Ka(), l = ie(D(o), 2);
5540
5540
  Rs(l, 17, n, Cs, (c, f) => {
5541
- var h = Ya(), d = q(h), p = q(d);
5542
- Ps(p, () => A(m(f).content), !1, !1), M(d), M(h), Ot(() => No(h, zs(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-qh61y2")), D(c, h);
5541
+ var h = Ya(), d = D(h), p = D(d);
5542
+ Ps(p, () => A(m(f).content), !1, !1), M(d), M(h), Ot(() => No(h, zs(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-18vniux")), F(c, h);
5543
5543
  });
5544
5544
  var u = ie(l, 2);
5545
5545
  {
5546
5546
  var a = (c) => {
5547
- var f = Ja(), h = q(f);
5547
+ var f = Ja(), h = D(f);
5548
5548
  Pe(h, {
5549
5549
  icon: "svg-spinners:3-dots-bounce",
5550
5550
  width: "25px",
5551
5551
  height: "25px",
5552
5552
  color: "white"
5553
- }), M(f), D(c, f);
5553
+ }), M(f), F(c, f);
5554
5554
  };
5555
5555
  gt(u, (c) => {
5556
5556
  r() && c(a);
5557
5557
  });
5558
5558
  }
5559
- return M(o), Ho(o, (c) => E(s, c), () => m(s)), D(t, o), Te({
5559
+ return M(o), Ho(o, (c) => E(s, c), () => m(s)), F(t, o), Te({
5560
5560
  get messages() {
5561
5561
  return n();
5562
5562
  },
@@ -5573,10 +5573,10 @@ function fi(t, e) {
5573
5573
  }
5574
5574
  Me(fi, { messages: {}, loading: {} }, [], [], !0);
5575
5575
  const ec = () => {
5576
- const e = document.cookie.split(";").find((n) => n.includes("token"));
5576
+ const e = document.cookie.split(";").find((n) => n.includes("akb-chat-token"));
5577
5577
  return e ? e.split("=")[1] : "";
5578
5578
  }, tc = () => {
5579
- const e = document.cookie.split(";").find((n) => n.includes("envid"));
5579
+ const e = document.cookie.split(";").find((n) => n.includes("akb-chat-envid"));
5580
5580
  return e ? e.split("=")[1] : "";
5581
5581
  }, J = {
5582
5582
  getToken: ec,
@@ -5659,7 +5659,7 @@ const ec = () => {
5659
5659
  }
5660
5660
  })).ok)
5661
5661
  throw new Error("Failed to delete chat");
5662
- }, Fe = {
5662
+ }, je = {
5663
5663
  getChat: nc,
5664
5664
  getChats: rc,
5665
5665
  newChat: sc,
@@ -5681,36 +5681,36 @@ function hi(t, e) {
5681
5681
  const i = (c) => {
5682
5682
  r(c);
5683
5683
  }, o = (c, f) => {
5684
- confirm("Sei sicuro di voler eliminare la chat " + f + "?") && Fe.deleteChat(c).then(() => {
5684
+ confirm("Sei sicuro di voler eliminare la chat " + f + "?") && je.deleteChat(c).then(() => {
5685
5685
  s(s().filter((h) => h._id !== c)), r()._id === c && r(new ke("", "", "", "New Chat", [fe.firstMessage()]));
5686
5686
  });
5687
5687
  };
5688
- var l = hc(), u = q(l);
5688
+ var l = hc(), u = D(l);
5689
5689
  {
5690
5690
  var a = (c) => {
5691
- var f = fc(), h = ie(q(f), 2);
5691
+ var f = fc(), h = ie(D(f), 2);
5692
5692
  Rs(h, 21, s, Cs, (d, p) => {
5693
- var g = uc(), b = q(g);
5693
+ var g = uc(), b = D(g);
5694
5694
  b.__click = [ac, r, p, i];
5695
- var v = q(b), _ = q(v, !0);
5695
+ var v = D(b), _ = D(v, !0);
5696
5696
  M(v), M(b);
5697
5697
  var k = ie(b, 2);
5698
5698
  k.__click = [cc, o, p];
5699
- var y = q(k);
5700
- Pe(y, {
5699
+ var x = D(k);
5700
+ Pe(x, {
5701
5701
  icon: "tabler:trash",
5702
5702
  width: "25px",
5703
5703
  height: "25px"
5704
5704
  }), M(k), M(g), Ot(() => {
5705
- jt(g, "style", r()._id === m(p)._id ? "background: #295dcf; cursor: default;" : ""), To(_, m(p).title);
5706
- }), D(d, g);
5707
- }), M(h), M(f), Ms(3, f, () => nl, () => ({ axis: "x", duration: 600 })), D(c, f);
5705
+ qt(g, "style", r()._id === m(p)._id ? "background: #295dcf; cursor: default;" : ""), To(_, m(p).title);
5706
+ }), F(d, g);
5707
+ }), M(h), M(f), Ms(3, f, () => nl, () => ({ axis: "x", duration: 600 })), F(c, f);
5708
5708
  };
5709
5709
  gt(u, (c) => {
5710
5710
  n() && c(a);
5711
5711
  });
5712
5712
  }
5713
- return M(l), D(t, l), Te({
5713
+ return M(l), F(t, l), Te({
5714
5714
  get showHistory() {
5715
5715
  return n();
5716
5716
  },
@@ -5741,23 +5741,23 @@ const bc = {
5741
5741
  };
5742
5742
  function di(t, e) {
5743
5743
  Ee(e, !0), mt(t, bc);
5744
- let n = xe(!1), r = xe(!1), s = xe(N(new ke("", "", "", "New Chat", [fe.firstMessage()]))), i = xe(N([])), o = xe(N([fe.firstMessage()])), l = xe(!1);
5744
+ let n = ye(!1), r = ye(!1), s = ye(N(new ke("", "", "", "New Chat", [fe.firstMessage()]))), i = ye(N([])), o = ye(N([fe.firstMessage()])), l = ye(!1);
5745
5745
  const u = async (d) => {
5746
5746
  if (E(l, !0), E(o, N([
5747
5747
  ...m(o),
5748
5748
  new fe((/* @__PURE__ */ new Date()).getTime(), !0, d)
5749
- ])), m(o).length == 2 && (E(s, N(await Fe.newChat())), E(i, N([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
5750
- let p = await Fe.sendMessage(m(s)._id, d);
5751
- m(o).length == 2 && E(s, N(await Fe.getChat(m(s)._id))), E(s, N(await Fe.getChat(m(s)._id))), E(o, N([...m(o), p]));
5749
+ ])), m(o).length == 2 && (E(s, N(await je.newChat())), E(i, N([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
5750
+ let p = await je.sendMessage(m(s)._id, d);
5751
+ m(o).length == 2 && E(s, N(await je.getChat(m(s)._id))), E(s, N(await je.getChat(m(s)._id))), E(o, N([...m(o), p]));
5752
5752
  }
5753
5753
  E(l, !1);
5754
5754
  };
5755
5755
  ft(() => {
5756
- m(s) && E(o, N(m(s).messages)), Fe.getChats().then((d) => {
5756
+ m(s) && E(o, N(m(s).messages)), je.getChats().then((d) => {
5757
5757
  E(i, N(d));
5758
5758
  });
5759
5759
  });
5760
- var a = _c(), c = q(a);
5760
+ var a = _c(), c = D(a);
5761
5761
  {
5762
5762
  var f = (d) => {
5763
5763
  var p = pc(), g = wn(p);
@@ -5765,41 +5765,41 @@ function di(t, e) {
5765
5765
  get showHistory() {
5766
5766
  return m(r);
5767
5767
  },
5768
- set showHistory(y) {
5769
- E(r, N(y));
5768
+ set showHistory(x) {
5769
+ E(r, N(x));
5770
5770
  },
5771
5771
  get actChat() {
5772
5772
  return m(s);
5773
5773
  },
5774
- set actChat(y) {
5775
- E(s, N(y));
5774
+ set actChat(x) {
5775
+ E(s, N(x));
5776
5776
  },
5777
5777
  get chats() {
5778
5778
  return m(i);
5779
5779
  },
5780
- set chats(y) {
5781
- E(i, N(y));
5780
+ set chats(x) {
5781
+ E(i, N(x));
5782
5782
  }
5783
5783
  });
5784
- var b = ie(g, 2), v = q(b);
5784
+ var b = ie(g, 2), v = D(b);
5785
5785
  Ks(v, {
5786
5786
  get show() {
5787
5787
  return m(n);
5788
5788
  },
5789
- set show(y) {
5790
- E(n, N(y));
5789
+ set show(x) {
5790
+ E(n, N(x));
5791
5791
  },
5792
5792
  get showHistory() {
5793
5793
  return m(r);
5794
5794
  },
5795
- set showHistory(y) {
5796
- E(r, N(y));
5795
+ set showHistory(x) {
5796
+ E(r, N(x));
5797
5797
  },
5798
5798
  get actChat() {
5799
5799
  return m(s);
5800
5800
  },
5801
- set actChat(y) {
5802
- E(s, N(y));
5801
+ set actChat(x) {
5802
+ E(s, N(x));
5803
5803
  }
5804
5804
  });
5805
5805
  var _ = ie(v, 2);
@@ -5807,27 +5807,27 @@ function di(t, e) {
5807
5807
  get messages() {
5808
5808
  return m(o);
5809
5809
  },
5810
- set messages(y) {
5811
- E(o, N(y));
5810
+ set messages(x) {
5811
+ E(o, N(x));
5812
5812
  },
5813
5813
  get loading() {
5814
5814
  return m(l);
5815
5815
  },
5816
- set loading(y) {
5817
- E(l, N(y));
5816
+ set loading(x) {
5817
+ E(l, N(x));
5818
5818
  }
5819
5819
  });
5820
5820
  var k = ie(_, 2);
5821
- Xs(k, { sendMessage: u }), M(b), Ms(3, b, () => tl, () => ({ y: 50, duration: 500 })), D(d, p);
5821
+ Xs(k, { sendMessage: u }), M(b), Ms(3, b, () => tl, () => ({ y: 50, duration: 500 })), F(d, p);
5822
5822
  }, h = (d) => {
5823
5823
  var p = vc();
5824
- p.__click = [gc, n], D(d, p);
5824
+ p.__click = [gc, n], F(d, p);
5825
5825
  };
5826
5826
  gt(c, (d) => {
5827
5827
  m(n) ? d(f) : d(h, !1);
5828
5828
  });
5829
5829
  }
5830
- M(a), D(t, a), Te();
5830
+ M(a), F(t, a), Te();
5831
5831
  }
5832
5832
  bt(["click"]);
5833
5833
  Me(di, {}, [], [], !0);
@@ -5836,7 +5836,7 @@ function mc(t, e) {
5836
5836
  let n = ne(e, "envId", 23, () => {
5837
5837
  }), r = ne(e, "token", 23, () => {
5838
5838
  });
5839
- return document.cookie = `envid=${n()}`, document.cookie = `token=${r()}`, di(t, {}), Te({
5839
+ return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, di(t, {}), Te({
5840
5840
  get envId() {
5841
5841
  return n();
5842
5842
  },
@@ -5855,12 +5855,12 @@ customElements.define("akb-chat", Me(
5855
5855
  mc,
5856
5856
  {
5857
5857
  token: {
5858
- attribute: "token",
5858
+ attribute: "aks-token",
5859
5859
  reflect: !0,
5860
5860
  type: "String"
5861
5861
  },
5862
5862
  envId: {
5863
- attribute: "envid",
5863
+ attribute: "env-id",
5864
5864
  reflect: !0,
5865
5865
  type: "String"
5866
5866
  }