@roudanio/awesome-comment 0.3.0 → 0.3.1

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.
@@ -143,7 +143,7 @@ function Fs(e) {
143
143
  function er(e, t = ge) {
144
144
  t && t.active && t.effects.push(e);
145
145
  }
146
- function Ks() {
146
+ function $s() {
147
147
  return ge;
148
148
  }
149
149
  function tr(e) {
@@ -152,7 +152,7 @@ function tr(e) {
152
152
  const po = (e) => {
153
153
  const t = new Set(e);
154
154
  return t.w = 0, t.n = 0, t;
155
- }, $s = (e) => (e.w & Be) > 0, zs = (e) => (e.n & Be) > 0, nr = ({ deps: e }) => {
155
+ }, Ks = (e) => (e.w & Be) > 0, zs = (e) => (e.n & Be) > 0, nr = ({ deps: e }) => {
156
156
  if (e.length)
157
157
  for (let t = 0; t < e.length; t++)
158
158
  e[t].w |= Be;
@@ -162,7 +162,7 @@ const po = (e) => {
162
162
  let n = 0;
163
163
  for (let o = 0; o < t.length; o++) {
164
164
  const s = t[o];
165
- $s(s) && !zs(s) ? s.delete(e) : t[n++] = s, s.w &= ~Be, s.n &= ~Be;
165
+ Ks(s) && !zs(s) ? s.delete(e) : t[n++] = s, s.w &= ~Be, s.n &= ~Be;
166
166
  }
167
167
  t.length = n;
168
168
  }
@@ -221,9 +221,9 @@ function he(e, t, n) {
221
221
  }
222
222
  function Ds(e, t) {
223
223
  let n = !1;
224
- Et <= Xn ? zs(e) || (e.n |= Be, n = !$s(e)) : n = !e.has(ke), n && (e.add(ke), ke.deps.push(e));
224
+ Et <= Xn ? zs(e) || (e.n |= Be, n = !Ks(e)) : n = !e.has(ke), n && (e.add(ke), ke.deps.push(e));
225
225
  }
226
- function $e(e, t, n, o, s, i) {
226
+ function Ke(e, t, n, o, s, i) {
227
227
  const r = an.get(e);
228
228
  if (!r)
229
229
  return;
@@ -325,14 +325,14 @@ function Hs(e = !1) {
325
325
  if (!e && (!ln(s) && !wt(s) && (r = U(r), s = U(s)), !N(n) && ne(r) && !ne(s)))
326
326
  return r.value = s, !0;
327
327
  const c = N(n) && ho(o) ? Number(o) < n.length : z(n, o), a = Reflect.set(n, o, s, i);
328
- return n === U(i) && (c ? Ft(s, r) && $e(n, "set", o, s) : $e(n, "add", o, s)), a;
328
+ return n === U(i) && (c ? Ft(s, r) && Ke(n, "set", o, s) : Ke(n, "add", o, s)), a;
329
329
  };
330
330
  }
331
331
  function hr(e, t) {
332
332
  const n = z(e, t);
333
333
  e[t];
334
334
  const o = Reflect.deleteProperty(e, t);
335
- return o && n && $e(e, "delete", t, void 0), o;
335
+ return o && n && Ke(e, "delete", t, void 0), o;
336
336
  }
337
337
  function pr(e, t) {
338
338
  const n = Reflect.has(e, t);
@@ -367,7 +367,7 @@ function Xt(e, t, n = !1, o = !1) {
367
367
  e = e.__v_raw;
368
368
  const s = U(e), i = U(t);
369
369
  n || (t !== i && he(s, "get", t), he(s, "get", i));
370
- const { has: r } = yn(s), c = o ? bo : n ? wo : Kt;
370
+ const { has: r } = yn(s), c = o ? bo : n ? wo : $t;
371
371
  if (r.call(s, t))
372
372
  return c(e.get(t));
373
373
  if (r.call(s, i))
@@ -384,7 +384,7 @@ function Jt(e, t = !1) {
384
384
  function Ho(e) {
385
385
  e = U(e);
386
386
  const t = U(this);
387
- return yn(t).has.call(t, e) || (t.add(e), $e(t, "add", e, e)), this;
387
+ return yn(t).has.call(t, e) || (t.add(e), Ke(t, "add", e, e)), this;
388
388
  }
389
389
  function Zo(e, t) {
390
390
  t = U(t);
@@ -392,28 +392,28 @@ function Zo(e, t) {
392
392
  let i = o.call(n, e);
393
393
  i || (e = U(e), i = o.call(n, e));
394
394
  const r = s.call(n, e);
395
- return n.set(e, t), i ? Ft(t, r) && $e(n, "set", e, t) : $e(n, "add", e, t), this;
395
+ return n.set(e, t), i ? Ft(t, r) && Ke(n, "set", e, t) : Ke(n, "add", e, t), this;
396
396
  }
397
397
  function Vo(e) {
398
398
  const t = U(this), { has: n, get: o } = yn(t);
399
399
  let s = n.call(t, e);
400
400
  s || (e = U(e), s = n.call(t, e)), o && o.call(t, e);
401
401
  const i = t.delete(e);
402
- return s && $e(t, "delete", e, void 0), i;
402
+ return s && Ke(t, "delete", e, void 0), i;
403
403
  }
404
404
  function Xo() {
405
405
  const e = U(this), t = e.size !== 0, n = e.clear();
406
- return t && $e(e, "clear", void 0, void 0), n;
406
+ return t && Ke(e, "clear", void 0, void 0), n;
407
407
  }
408
408
  function Yt(e, t) {
409
409
  return function(o, s) {
410
- const i = this, r = i.__v_raw, c = U(r), a = t ? bo : e ? wo : Kt;
410
+ const i = this, r = i.__v_raw, c = U(r), a = t ? bo : e ? wo : $t;
411
411
  return !e && he(c, "iterate", it), r.forEach((l, f) => o.call(s, a(l), a(f), i));
412
412
  };
413
413
  }
414
414
  function qt(e, t, n) {
415
415
  return function(...o) {
416
- const s = this.__v_raw, i = U(s), r = _t(i), c = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, l = s[e](...o), f = n ? bo : t ? wo : Kt;
416
+ const s = this.__v_raw, i = U(s), r = _t(i), c = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, l = s[e](...o), f = n ? bo : t ? wo : $t;
417
417
  return !t && he(
418
418
  i,
419
419
  "iterate",
@@ -621,7 +621,7 @@ function U(e) {
621
621
  function vn(e) {
622
622
  return cn(e, "__v_skip", !0), e;
623
623
  }
624
- const Kt = (e) => ee(e) ? wn(e) : e, wo = (e) => ee(e) ? Js(e) : e;
624
+ const $t = (e) => ee(e) ? wn(e) : e, wo = (e) => ee(e) ? Js(e) : e;
625
625
  function qs(e) {
626
626
  Ze && ke && (e = U(e), Ds(e.dep || (e.dep = po())));
627
627
  }
@@ -641,14 +641,14 @@ function Er(e, t) {
641
641
  }
642
642
  class jr {
643
643
  constructor(t, n) {
644
- this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t : Kt(t);
644
+ this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t : $t(t);
645
645
  }
646
646
  get value() {
647
647
  return qs(this), this._value;
648
648
  }
649
649
  set value(t) {
650
650
  const n = this.__v_isShallow || ln(t) || wt(t);
651
- t = n ? t : U(t), Ft(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : Kt(t), Gs(this));
651
+ t = n ? t : U(t), Ft(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : $t(t), Gs(this));
652
652
  }
653
653
  }
654
654
  function Y(e) {
@@ -758,23 +758,23 @@ function kn(e, t, n, o = !0) {
758
758
  return;
759
759
  }
760
760
  }
761
- Kr(e, n, s, o);
761
+ $r(e, n, s, o);
762
762
  }
763
- function Kr(e, t, n, o = !0) {
763
+ function $r(e, t, n, o = !0) {
764
764
  console.error(e);
765
765
  }
766
- let $t = !1, Yn = !1;
766
+ let Kt = !1, Yn = !1;
767
767
  const le = [];
768
768
  let Ne = 0;
769
769
  const yt = [];
770
- let Ke = null, tt = 0;
770
+ let $e = null, tt = 0;
771
771
  const ei = /* @__PURE__ */ Promise.resolve();
772
772
  let vo = null;
773
773
  function ti(e) {
774
774
  const t = vo || ei;
775
775
  return e ? t.then(this ? e.bind(this) : e) : t;
776
776
  }
777
- function $r(e) {
777
+ function Kr(e) {
778
778
  let t = Ne + 1, n = le.length;
779
779
  for (; t < n; ) {
780
780
  const o = t + n >>> 1;
@@ -785,23 +785,23 @@ function $r(e) {
785
785
  function ko(e) {
786
786
  (!le.length || !le.includes(
787
787
  e,
788
- $t && e.allowRecurse ? Ne + 1 : Ne
789
- )) && (e.id == null ? le.push(e) : le.splice($r(e.id), 0, e), ni());
788
+ Kt && e.allowRecurse ? Ne + 1 : Ne
789
+ )) && (e.id == null ? le.push(e) : le.splice(Kr(e.id), 0, e), ni());
790
790
  }
791
791
  function ni() {
792
- !$t && !Yn && (Yn = !0, vo = ei.then(si));
792
+ !Kt && !Yn && (Yn = !0, vo = ei.then(si));
793
793
  }
794
794
  function zr(e) {
795
795
  const t = le.indexOf(e);
796
796
  t > Ne && le.splice(t, 1);
797
797
  }
798
798
  function Ur(e) {
799
- N(e) ? yt.push(...e) : (!Ke || !Ke.includes(
799
+ N(e) ? yt.push(...e) : (!$e || !$e.includes(
800
800
  e,
801
801
  e.allowRecurse ? tt + 1 : tt
802
802
  )) && yt.push(e), ni();
803
803
  }
804
- function Bo(e, t = $t ? Ne + 1 : 0) {
804
+ function Bo(e, t = Kt ? Ne + 1 : 0) {
805
805
  for (; t < le.length; t++) {
806
806
  const n = le[t];
807
807
  n && n.pre && (le.splice(t, 1), t--, n());
@@ -810,13 +810,13 @@ function Bo(e, t = $t ? Ne + 1 : 0) {
810
810
  function oi(e) {
811
811
  if (yt.length) {
812
812
  const t = [...new Set(yt)];
813
- if (yt.length = 0, Ke) {
814
- Ke.push(...t);
813
+ if (yt.length = 0, $e) {
814
+ $e.push(...t);
815
815
  return;
816
816
  }
817
- for (Ke = t, Ke.sort((n, o) => zt(n) - zt(o)), tt = 0; tt < Ke.length; tt++)
818
- Ke[tt]();
819
- Ke = null, tt = 0;
817
+ for ($e = t, $e.sort((n, o) => zt(n) - zt(o)), tt = 0; tt < $e.length; tt++)
818
+ $e[tt]();
819
+ $e = null, tt = 0;
820
820
  }
821
821
  }
822
822
  const zt = (e) => e.id == null ? 1 / 0 : e.id, Dr = (e, t) => {
@@ -830,7 +830,7 @@ const zt = (e) => e.id == null ? 1 / 0 : e.id, Dr = (e, t) => {
830
830
  return n;
831
831
  };
832
832
  function si(e) {
833
- Yn = !1, $t = !0, le.sort(Dr);
833
+ Yn = !1, Kt = !0, le.sort(Dr);
834
834
  const t = Ie;
835
835
  try {
836
836
  for (Ne = 0; Ne < le.length; Ne++) {
@@ -838,7 +838,7 @@ function si(e) {
838
838
  n && n.active !== !1 && Xe(n, null, 14);
839
839
  }
840
840
  } finally {
841
- Ne = 0, le.length = 0, oi(), $t = !1, vo = null, (le.length || yt.length) && si();
841
+ Ne = 0, le.length = 0, oi(), Kt = !1, vo = null, (le.length || yt.length) && si();
842
842
  }
843
843
  }
844
844
  function Wr(e, t, ...n) {
@@ -1029,7 +1029,7 @@ function nn(e, t, n) {
1029
1029
  }
1030
1030
  function ci(e, t, { immediate: n, deep: o, flush: s, onTrack: i, onTrigger: r } = q) {
1031
1031
  var c;
1032
- const a = Ks() === ((c = re) == null ? void 0 : c.scope) ? re : null;
1032
+ const a = $s() === ((c = re) == null ? void 0 : c.scope) ? re : null;
1033
1033
  let l, f = !1, d = !1;
1034
1034
  if (ne(e) ? (l = () => e.value, f = ln(e)) : Ve(e) ? (l = () => e, o = !0) : N(e) ? (d = !0, f = e.some((A) => Ve(A) || ln(A)), l = () => e.map((A) => {
1035
1035
  if (ne(A))
@@ -1405,7 +1405,7 @@ function pc(e) {
1405
1405
  renderTracked: fe,
1406
1406
  renderTriggered: H,
1407
1407
  errorCaptured: L,
1408
- serverPrefetch: $,
1408
+ serverPrefetch: K,
1409
1409
  // public API
1410
1410
  expose: oe,
1411
1411
  inheritAttrs: pe,
@@ -1449,7 +1449,7 @@ function pc(e) {
1449
1449
  function Z(te, B) {
1450
1450
  N(B) ? B.forEach((Je) => te(Je.bind(n))) : B && te(B.bind(n));
1451
1451
  }
1452
- if (Z(nc, d), Z(fi, p), Z(oc, g), Z(sc, b), Z(Qr, w), Z(ec, I), Z(lc, L), Z(ac, fe), Z(cc, H), Z(ic, T), Z(di, A), Z(rc, $), N(oe))
1452
+ if (Z(nc, d), Z(fi, p), Z(oc, g), Z(sc, b), Z(Qr, w), Z(ec, I), Z(lc, L), Z(ac, fe), Z(cc, H), Z(ic, T), Z(di, A), Z(rc, K), N(oe))
1453
1453
  if (oe.length) {
1454
1454
  const te = e.exposed || (e.exposed = {});
1455
1455
  oe.forEach((B) => {
@@ -1767,7 +1767,7 @@ function Ic(e, t, n, o) {
1767
1767
  for (const d in i)
1768
1768
  (!t || !z(t, d)) && (delete i[d], l = !0);
1769
1769
  }
1770
- l && $e(e, "set", "$attrs");
1770
+ l && Ke(e, "set", "$attrs");
1771
1771
  }
1772
1772
  function bi(e, t, n, o) {
1773
1773
  const [s, i] = e.propsOptions;
@@ -1982,7 +1982,7 @@ function Pc(e, t) {
1982
1982
  case ct:
1983
1983
  O(u, h, m, y);
1984
1984
  break;
1985
- case Kn:
1985
+ case $n:
1986
1986
  u == null && T(h, m, y, S);
1987
1987
  break;
1988
1988
  case _e:
@@ -2079,7 +2079,7 @@ function Pc(e, t) {
2079
2079
  S,
2080
2080
  k,
2081
2081
  C
2082
- ) : $(
2082
+ ) : K(
2083
2083
  u,
2084
2084
  h,
2085
2085
  _,
@@ -2090,7 +2090,7 @@ function Pc(e, t) {
2090
2090
  );
2091
2091
  }, fe = (u, h, m, y, _, x, S, k) => {
2092
2092
  let C, v;
2093
- const { type: E, props: P, shapeFlag: j, transition: M, dirs: K } = u;
2093
+ const { type: E, props: P, shapeFlag: j, transition: M, dirs: $ } = u;
2094
2094
  if (C = u.el = r(
2095
2095
  u.type,
2096
2096
  x,
@@ -2105,7 +2105,7 @@ function Pc(e, t) {
2105
2105
  x && E !== "foreignObject",
2106
2106
  S,
2107
2107
  k
2108
- ), K && qe(u, null, y, "created"), H(C, u, u.scopeId, S, y), P) {
2108
+ ), $ && qe(u, null, y, "created"), H(C, u, u.scopeId, S, y), P) {
2109
2109
  for (const V in P)
2110
2110
  V !== "value" && !en(V) && i(
2111
2111
  C,
@@ -2120,10 +2120,10 @@ function Pc(e, t) {
2120
2120
  );
2121
2121
  "value" in P && i(C, "value", null, P.value), (v = P.onVnodeBeforeMount) && je(v, y, u);
2122
2122
  }
2123
- K && qe(u, null, y, "beforeMount");
2123
+ $ && qe(u, null, y, "beforeMount");
2124
2124
  const J = (!_ || _ && !_.pendingBranch) && M && !M.persisted;
2125
- J && M.beforeEnter(C), o(C, h, m), ((v = P && P.onVnodeMounted) || J || K) && de(() => {
2126
- v && je(v, y, u), J && M.enter(C), K && qe(u, null, y, "mounted");
2125
+ J && M.beforeEnter(C), o(C, h, m), ((v = P && P.onVnodeMounted) || J || $) && de(() => {
2126
+ v && je(v, y, u), J && M.enter(C), $ && qe(u, null, y, "mounted");
2127
2127
  }, _);
2128
2128
  }, H = (u, h, m, y, _) => {
2129
2129
  if (m && g(u, m), y)
@@ -2157,21 +2157,21 @@ function Pc(e, t) {
2157
2157
  k
2158
2158
  );
2159
2159
  }
2160
- }, $ = (u, h, m, y, _, x, S) => {
2160
+ }, K = (u, h, m, y, _, x, S) => {
2161
2161
  const k = h.el = u.el;
2162
2162
  let { patchFlag: C, dynamicChildren: v, dirs: E } = h;
2163
2163
  C |= u.patchFlag & 16;
2164
2164
  const P = u.props || q, j = h.props || q;
2165
2165
  let M;
2166
2166
  m && Ge(m, !1), (M = j.onVnodeBeforeUpdate) && je(M, m, h, u), E && qe(h, u, m, "beforeUpdate"), m && Ge(m, !0);
2167
- const K = _ && h.type !== "foreignObject";
2167
+ const $ = _ && h.type !== "foreignObject";
2168
2168
  if (v ? oe(
2169
2169
  u.dynamicChildren,
2170
2170
  v,
2171
2171
  k,
2172
2172
  m,
2173
2173
  y,
2174
- K,
2174
+ $,
2175
2175
  x
2176
2176
  ) : S || B(
2177
2177
  u,
@@ -2180,7 +2180,7 @@ function Pc(e, t) {
2180
2180
  null,
2181
2181
  m,
2182
2182
  y,
2183
- K,
2183
+ $,
2184
2184
  x,
2185
2185
  !1
2186
2186
  ), C > 0) {
@@ -2345,7 +2345,7 @@ function Pc(e, t) {
2345
2345
  C
2346
2346
  ) : Ue(u, h, C);
2347
2347
  }, Ct = (u, h, m, y, _, x, S) => {
2348
- const k = u.component = $c(
2348
+ const k = u.component = Kc(
2349
2349
  u,
2350
2350
  y,
2351
2351
  _
@@ -2379,8 +2379,8 @@ function Pc(e, t) {
2379
2379
  }, Z = (u, h, m, y, _, x, S) => {
2380
2380
  const k = () => {
2381
2381
  if (u.isMounted) {
2382
- let { next: E, bu: P, u: j, parent: M, vnode: K } = u, J = E, V;
2383
- Ge(u, !1), E ? (E.el = K.el, te(u, E, S)) : E = K, P && tn(P), (V = E.props && E.props.onVnodeBeforeUpdate) && je(V, M, E, K), Ge(u, !0);
2382
+ let { next: E, bu: P, u: j, parent: M, vnode: $ } = u, J = E, V;
2383
+ Ge(u, !1), E ? (E.el = $.el, te(u, E, S)) : E = $, P && tn(P), (V = E.props && E.props.onVnodeBeforeUpdate) && je(V, M, E, $), Ge(u, !0);
2384
2384
  const se = Mn(u), we = u.subTree;
2385
2385
  u.subTree = se, w(
2386
2386
  we,
@@ -2393,12 +2393,12 @@ function Pc(e, t) {
2393
2393
  _,
2394
2394
  x
2395
2395
  ), E.el = se.el, J === null && Br(u, se.el), j && de(j, _), (V = E.props && E.props.onVnodeUpdated) && de(
2396
- () => je(V, M, E, K),
2396
+ () => je(V, M, E, $),
2397
2397
  _
2398
2398
  );
2399
2399
  } else {
2400
2400
  let E;
2401
- const { el: P, props: j } = h, { bm: M, m: K, parent: J } = u, V = on(h);
2401
+ const { el: P, props: j } = h, { bm: M, m: $, parent: J } = u, V = on(h);
2402
2402
  if (Ge(u, !1), M && tn(M), !V && (E = j && j.onVnodeBeforeMount) && je(E, J, h), Ge(u, !0), P && Nn) {
2403
2403
  const se = () => {
2404
2404
  u.subTree = Mn(u), Nn(
@@ -2428,7 +2428,7 @@ function Pc(e, t) {
2428
2428
  x
2429
2429
  ), h.el = se.el;
2430
2430
  }
2431
- if (K && de(K, _), !V && (E = j && j.onVnodeMounted)) {
2431
+ if ($ && de($, _), !V && (E = j && j.onVnodeMounted)) {
2432
2432
  const se = h;
2433
2433
  de(
2434
2434
  () => je(E, J, se),
@@ -2540,11 +2540,11 @@ function Pc(e, t) {
2540
2540
  const E = h.length;
2541
2541
  let P = u.length - 1, j = E - 1;
2542
2542
  for (; v <= P && v <= j; ) {
2543
- const M = u[v], K = h[v] = C ? He(h[v]) : Ae(h[v]);
2544
- if (Ot(M, K))
2543
+ const M = u[v], $ = h[v] = C ? He(h[v]) : Ae(h[v]);
2544
+ if (Ot(M, $))
2545
2545
  w(
2546
2546
  M,
2547
- K,
2547
+ $,
2548
2548
  m,
2549
2549
  null,
2550
2550
  _,
@@ -2558,11 +2558,11 @@ function Pc(e, t) {
2558
2558
  v++;
2559
2559
  }
2560
2560
  for (; v <= P && v <= j; ) {
2561
- const M = u[P], K = h[j] = C ? He(h[j]) : Ae(h[j]);
2562
- if (Ot(M, K))
2561
+ const M = u[P], $ = h[j] = C ? He(h[j]) : Ae(h[j]);
2562
+ if (Ot(M, $))
2563
2563
  w(
2564
2564
  M,
2565
- K,
2565
+ $,
2566
2566
  m,
2567
2567
  null,
2568
2568
  _,
@@ -2577,13 +2577,13 @@ function Pc(e, t) {
2577
2577
  }
2578
2578
  if (v > P) {
2579
2579
  if (v <= j) {
2580
- const M = j + 1, K = M < E ? h[M].el : y;
2580
+ const M = j + 1, $ = M < E ? h[M].el : y;
2581
2581
  for (; v <= j; )
2582
2582
  w(
2583
2583
  null,
2584
2584
  h[v] = C ? He(h[v]) : Ae(h[v]),
2585
2585
  m,
2586
- K,
2586
+ $,
2587
2587
  _,
2588
2588
  x,
2589
2589
  S,
@@ -2595,13 +2595,13 @@ function Pc(e, t) {
2595
2595
  for (; v <= P; )
2596
2596
  Pe(u[v], _, x, !0), v++;
2597
2597
  else {
2598
- const M = v, K = v, J = /* @__PURE__ */ new Map();
2599
- for (v = K; v <= j; v++) {
2598
+ const M = v, $ = v, J = /* @__PURE__ */ new Map();
2599
+ for (v = $; v <= j; v++) {
2600
2600
  const me = h[v] = C ? He(h[v]) : Ae(h[v]);
2601
2601
  me.key != null && J.set(me.key, v);
2602
2602
  }
2603
2603
  let V, se = 0;
2604
- const we = j - K + 1;
2604
+ const we = j - $ + 1;
2605
2605
  let ft = !1, Fo = 0;
2606
2606
  const Tt = new Array(we);
2607
2607
  for (v = 0; v < we; v++)
@@ -2616,12 +2616,12 @@ function Pc(e, t) {
2616
2616
  if (me.key != null)
2617
2617
  Ee = J.get(me.key);
2618
2618
  else
2619
- for (V = K; V <= j; V++)
2620
- if (Tt[V - K] === 0 && Ot(me, h[V])) {
2619
+ for (V = $; V <= j; V++)
2620
+ if (Tt[V - $] === 0 && Ot(me, h[V])) {
2621
2621
  Ee = V;
2622
2622
  break;
2623
2623
  }
2624
- Ee === void 0 ? Pe(me, _, x, !0) : (Tt[Ee - K] = v + 1, Ee >= Fo ? Fo = Ee : ft = !0, w(
2624
+ Ee === void 0 ? Pe(me, _, x, !0) : (Tt[Ee - $] = v + 1, Ee >= Fo ? Fo = Ee : ft = !0, w(
2625
2625
  me,
2626
2626
  h[Ee],
2627
2627
  m,
@@ -2633,20 +2633,20 @@ function Pc(e, t) {
2633
2633
  C
2634
2634
  ), se++);
2635
2635
  }
2636
- const Ko = ft ? Ec(Tt) : bt;
2637
- for (V = Ko.length - 1, v = we - 1; v >= 0; v--) {
2638
- const me = K + v, Ee = h[me], $o = me + 1 < E ? h[me + 1].el : y;
2636
+ const $o = ft ? Ec(Tt) : bt;
2637
+ for (V = $o.length - 1, v = we - 1; v >= 0; v--) {
2638
+ const me = $ + v, Ee = h[me], Ko = me + 1 < E ? h[me + 1].el : y;
2639
2639
  Tt[v] === 0 ? w(
2640
2640
  null,
2641
2641
  Ee,
2642
2642
  m,
2643
- $o,
2643
+ Ko,
2644
2644
  _,
2645
2645
  x,
2646
2646
  S,
2647
2647
  k,
2648
2648
  C
2649
- ) : ft && (V < 0 || v !== Ko[V] ? Ye(Ee, m, $o, 2) : V--);
2649
+ ) : ft && (V < 0 || v !== $o[V] ? Ye(Ee, m, Ko, 2) : V--);
2650
2650
  }
2651
2651
  }
2652
2652
  }, Ye = (u, h, m, y, _ = null) => {
@@ -2670,7 +2670,7 @@ function Pc(e, t) {
2670
2670
  o(u.anchor, h, m);
2671
2671
  return;
2672
2672
  }
2673
- if (S === Kn) {
2673
+ if (S === $n) {
2674
2674
  R(u, h, m);
2675
2675
  return;
2676
2676
  }
@@ -2678,12 +2678,12 @@ function Pc(e, t) {
2678
2678
  if (y === 0)
2679
2679
  k.beforeEnter(x), o(x, h, m), de(() => k.enter(x), _);
2680
2680
  else {
2681
- const { leave: P, delayLeave: j, afterLeave: M } = k, K = () => o(x, h, m), J = () => {
2681
+ const { leave: P, delayLeave: j, afterLeave: M } = k, $ = () => o(x, h, m), J = () => {
2682
2682
  P(x, () => {
2683
- K(), M && M();
2683
+ $(), M && M();
2684
2684
  });
2685
2685
  };
2686
- j ? j(x, K, J) : J();
2686
+ j ? j(x, $, J) : J();
2687
2687
  }
2688
2688
  else
2689
2689
  o(x, h, m);
@@ -2702,9 +2702,9 @@ function Pc(e, t) {
2702
2702
  h.ctx.deactivate(u);
2703
2703
  return;
2704
2704
  }
2705
- const M = E & 1 && j, K = !on(u);
2705
+ const M = E & 1 && j, $ = !on(u);
2706
2706
  let J;
2707
- if (K && (J = S && S.onVnodeBeforeUnmount) && je(J, h, u), E & 6)
2707
+ if ($ && (J = S && S.onVnodeBeforeUnmount) && je(J, h, u), E & 6)
2708
2708
  Ui(u.component, m, y);
2709
2709
  else {
2710
2710
  if (E & 128) {
@@ -2727,7 +2727,7 @@ function Pc(e, t) {
2727
2727
  !0
2728
2728
  ) : (x === _e && P & 384 || !_ && E & 16) && Fe(C, h, m), y && Lo(u);
2729
2729
  }
2730
- (K && (J = S && S.onVnodeUnmounted) || M) && de(() => {
2730
+ ($ && (J = S && S.onVnodeUnmounted) || M) && de(() => {
2731
2731
  J && je(J, h, u), M && qe(u, null, h, "unmounted");
2732
2732
  }, m);
2733
2733
  }, Lo = (u) => {
@@ -2736,7 +2736,7 @@ function Pc(e, t) {
2736
2736
  zi(m, y);
2737
2737
  return;
2738
2738
  }
2739
- if (h === Kn) {
2739
+ if (h === $n) {
2740
2740
  A(u);
2741
2741
  return;
2742
2742
  }
@@ -2816,7 +2816,7 @@ function Ec(e) {
2816
2816
  n[i] = r, r = t[r];
2817
2817
  return n;
2818
2818
  }
2819
- const jc = (e) => e.__isTeleport, _e = Symbol.for("v-fgt"), Tn = Symbol.for("v-txt"), ct = Symbol.for("v-cmt"), Kn = Symbol.for("v-stc"), Nt = [];
2819
+ const jc = (e) => e.__isTeleport, _e = Symbol.for("v-fgt"), Tn = Symbol.for("v-txt"), ct = Symbol.for("v-cmt"), $n = Symbol.for("v-stc"), Nt = [];
2820
2820
  let xe = null;
2821
2821
  function D(e = !1) {
2822
2822
  Nt.push(xe = e ? null : []);
@@ -3046,10 +3046,10 @@ function je(e, t, n, o = null) {
3046
3046
  ]);
3047
3047
  }
3048
3048
  const Fc = gi();
3049
- let Kc = 0;
3050
- function $c(e, t, n) {
3049
+ let $c = 0;
3050
+ function Kc(e, t, n) {
3051
3051
  const o = e.type, s = (t ? t.appContext : e.appContext) || Fc, i = {
3052
- uid: Kc++,
3052
+ uid: $c++,
3053
3053
  vnode: e,
3054
3054
  type: o,
3055
3055
  parent: t,
@@ -3328,19 +3328,19 @@ function no(e, t, n) {
3328
3328
  ) : e[o] = n;
3329
3329
  }
3330
3330
  }
3331
- const fs = ["Webkit", "Moz", "ms"], $n = {};
3331
+ const fs = ["Webkit", "Moz", "ms"], Kn = {};
3332
3332
  function Qc(e, t) {
3333
- const n = $n[t];
3333
+ const n = Kn[t];
3334
3334
  if (n)
3335
3335
  return n;
3336
3336
  let o = Me(t);
3337
3337
  if (o !== "filter" && o in e)
3338
- return $n[t] = o;
3338
+ return Kn[t] = o;
3339
3339
  o = gn(o);
3340
3340
  for (let s = 0; s < fs.length; s++) {
3341
3341
  const i = fs[s] + o;
3342
3342
  if (i in e)
3343
- return $n[t] = i;
3343
+ return Kn[t] = i;
3344
3344
  }
3345
3345
  return t;
3346
3346
  }
@@ -3580,7 +3580,7 @@ function ys(e, t, n, o = Pi) {
3580
3580
  const i = e.indexOf(t);
3581
3581
  i > -1 && (e.splice(i, 1), o());
3582
3582
  };
3583
- return !n && Ks() && tr(s), s;
3583
+ return !n && $s() && tr(s), s;
3584
3584
  }
3585
3585
  function ht(e, ...t) {
3586
3586
  e.slice().forEach((n) => {
@@ -3634,12 +3634,12 @@ function Ei(e, t, n = {}, o, s, i) {
3634
3634
  !i && !b && (o.state.value[e] = {}), Q({});
3635
3635
  let w;
3636
3636
  function I(L) {
3637
- let $;
3638
- l = f = !1, typeof L == "function" ? (L(o.state.value[e]), $ = {
3637
+ let K;
3638
+ l = f = !1, typeof L == "function" ? (L(o.state.value[e]), K = {
3639
3639
  type: Mt.patchFunction,
3640
3640
  storeId: e,
3641
3641
  events: g
3642
- }) : (so(o.state.value[e], L), $ = {
3642
+ }) : (so(o.state.value[e], L), K = {
3643
3643
  type: Mt.patchObject,
3644
3644
  payload: L,
3645
3645
  storeId: e,
@@ -3648,10 +3648,10 @@ function Ei(e, t, n = {}, o, s, i) {
3648
3648
  const oe = w = Symbol();
3649
3649
  ti().then(() => {
3650
3650
  w === oe && (l = !0);
3651
- }), f = !0, ht(d, $, o.state.value[e]);
3651
+ }), f = !0, ht(d, K, o.state.value[e]);
3652
3652
  }
3653
3653
  const O = i ? function() {
3654
- const { state: $ } = n, oe = $ ? $() : {};
3654
+ const { state: K } = n, oe = K ? K() : {};
3655
3655
  this.$patch((pe) => {
3656
3656
  We(pe, oe);
3657
3657
  });
@@ -3662,7 +3662,7 @@ function Ei(e, t, n = {}, o, s, i) {
3662
3662
  function T() {
3663
3663
  r.stop(), d = [], p = [], o._s.delete(e);
3664
3664
  }
3665
- function R(L, $) {
3665
+ function R(L, K) {
3666
3666
  return function() {
3667
3667
  En(o);
3668
3668
  const oe = Array.from(arguments), pe = [], Se = [];
@@ -3681,7 +3681,7 @@ function Ei(e, t, n = {}, o, s, i) {
3681
3681
  });
3682
3682
  let Ue;
3683
3683
  try {
3684
- Ue = $.apply(this && this.$id === e ? this : W, oe);
3684
+ Ue = K.apply(this && this.$id === e ? this : W, oe);
3685
3685
  } catch (Z) {
3686
3686
  throw ht(Se, Z), Z;
3687
3687
  }
@@ -3695,14 +3695,14 @@ function Ei(e, t, n = {}, o, s, i) {
3695
3695
  $onAction: ys.bind(null, p),
3696
3696
  $patch: I,
3697
3697
  $reset: O,
3698
- $subscribe(L, $ = {}) {
3699
- const oe = ys(d, L, $.detached, () => pe()), pe = r.run(() => nn(() => o.state.value[e], (Se) => {
3700
- ($.flush === "sync" ? f : l) && L({
3698
+ $subscribe(L, K = {}) {
3699
+ const oe = ys(d, L, K.detached, () => pe()), pe = r.run(() => nn(() => o.state.value[e], (Se) => {
3700
+ (K.flush === "sync" ? f : l) && L({
3701
3701
  storeId: e,
3702
3702
  type: Mt.direct,
3703
3703
  events: g
3704
3704
  }, Se);
3705
- }, We({}, a, $)));
3705
+ }, We({}, a, K)));
3706
3706
  return oe;
3707
3707
  },
3708
3708
  $dispose: T
@@ -3710,19 +3710,19 @@ function Ei(e, t, n = {}, o, s, i) {
3710
3710
  o._s.set(e, W);
3711
3711
  const fe = o._a && o._a.runWithContext || xa, H = o._e.run(() => (r = Fs(), fe(() => r.run(t))));
3712
3712
  for (const L in H) {
3713
- const $ = H[L];
3714
- if (ne($) && !Ta($) || Ve($))
3715
- i || (b && Ca($) && (ne($) ? $.value = b[L] : so($, b[L])), o.state.value[e][L] = $);
3716
- else if (typeof $ == "function") {
3717
- const oe = R(L, $);
3718
- H[L] = oe, c.actions[L] = $;
3713
+ const K = H[L];
3714
+ if (ne(K) && !Ta(K) || Ve(K))
3715
+ i || (b && Ca(K) && (ne(K) ? K.value = b[L] : so(K, b[L])), o.state.value[e][L] = K);
3716
+ else if (typeof K == "function") {
3717
+ const oe = R(L, K);
3718
+ H[L] = oe, c.actions[L] = K;
3719
3719
  }
3720
3720
  }
3721
3721
  return We(W, H), We(U(W), H), Object.defineProperty(W, "$state", {
3722
3722
  get: () => o.state.value[e],
3723
3723
  set: (L) => {
3724
- I(($) => {
3725
- We($, L);
3724
+ I((K) => {
3725
+ We(K, L);
3726
3726
  });
3727
3727
  }
3728
3728
  }), o._p.forEach((L) => {
@@ -4096,8 +4096,8 @@ async function Ra(e, t) {
4096
4096
  try {
4097
4097
  O = await Aa(f, p, g, b, w, I, d), T = null;
4098
4098
  break;
4099
- } catch ($) {
4100
- T = $;
4099
+ } catch (K) {
4100
+ T = K;
4101
4101
  }
4102
4102
  if (T)
4103
4103
  throw T;
@@ -4292,9 +4292,9 @@ var st = Po(function(e, t) {
4292
4292
  };
4293
4293
  });
4294
4294
  So(st), st.encode, st.parse, st.getAll;
4295
- var Ka = st.get, Li = st.set, Mi = st.remove;
4295
+ var $a = st.get, Li = st.set, Mi = st.remove;
4296
4296
  const mt = { get(e) {
4297
- const t = Ka(e);
4297
+ const t = $a(e);
4298
4298
  if (t !== void 0)
4299
4299
  return JSON.parse(t);
4300
4300
  }, save(e, t, n) {
@@ -4303,7 +4303,7 @@ const mt = { get(e) {
4303
4303
  }, remove(e, t) {
4304
4304
  let n = {};
4305
4305
  t?.cookieDomain && (n.domain = t.cookieDomain), Mi(e, n);
4306
- } }, $a = { get: (e) => mt.get(e) || mt.get(`_legacy_${e}`), save(e, t, n) {
4306
+ } }, Ka = { get: (e) => mt.get(e) || mt.get(`_legacy_${e}`), save(e, t, n) {
4307
4307
  let o = {};
4308
4308
  window.location.protocol === "https:" && (o = { secure: !0 }), n?.daysUntilExpire && (o.expires = n.daysUntilExpire), n?.cookieDomain && (o.domain = n.cookieDomain), Li(`_legacy_${e}`, JSON.stringify(t), o), mt.save(e, t, n);
4309
4309
  }, remove(e, t) {
@@ -4384,7 +4384,7 @@ class Ha {
4384
4384
  throw new Error(`Invalid cache location "${n}"`);
4385
4385
  o = xs(n)();
4386
4386
  }
4387
- this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? mt : $a, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((r) => `auth0.${this.options.clientId}.is.authenticated`)(), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
4387
+ this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? mt : Ka, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((r) => `auth0.${this.options.clientId}.is.authenticated`)(), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
4388
4388
  const s = t.useCookiesForTransactions ? this.cookieStorage : za;
4389
4389
  var i;
4390
4390
  this.scope = Qt("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new Ma(s, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Ri, this.cacheManager = new La(o, o.allKeys ? void 0 : new Da(o, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((r, c) => r ? r.startsWith("https://") ? r : `https://${r}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.worker = new Ua());
@@ -4756,7 +4756,7 @@ class Xa {
4756
4756
  function Fi(e, t) {
4757
4757
  return At(e), new Xa(e, t);
4758
4758
  }
4759
- function Ki() {
4759
+ function $i() {
4760
4760
  return Te(ji);
4761
4761
  }
4762
4762
  var No = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e))(No || {});
@@ -4827,8 +4827,8 @@ const An = Sa("store", () => {
4827
4827
  if (I === O)
4828
4828
  L.children || (L.children = []), L.children.unshift(H);
4829
4829
  else {
4830
- const $ = L.children.findIndex((oe) => Number(oe.id) === O);
4831
- L.children.splice($ + 1, 0, H);
4830
+ const K = L.children.findIndex((oe) => Number(oe.id) === O);
4831
+ L.children.splice(K + 1, 0, H);
4832
4832
  }
4833
4833
  } else
4834
4834
  H.ancestorId = 0, H.parentId = 0, i.value = { [g]: H, ...i.value };
@@ -4854,7 +4854,7 @@ const An = Sa("store", () => {
4854
4854
  class: "text-xs text-neutral-400/40"
4855
4855
  }, el = {
4856
4856
  key: 1,
4857
- class: "ac-alert ac-alert-error mx-4"
4857
+ class: "ac-alert ac-alert-error mx-4 py-1"
4858
4858
  }, tl = ["disabled"], nl = {
4859
4859
  key: 0,
4860
4860
  class: "ac-loading ac-loading-spinner"
@@ -4869,7 +4869,7 @@ const An = Sa("store", () => {
4869
4869
  },
4870
4870
  emits: ["close"],
4871
4871
  setup(e, { emit: t }) {
4872
- const n = e, o = Ki(), s = An(), i = Te("ApiBaseUrl"), r = Te("Auth0Domain"), c = "0.3.0", a = Q(), l = Q(!1), f = Q(""), d = Q("");
4872
+ const n = e, o = $i(), s = An(), i = Te("ApiBaseUrl"), r = Te("Auth0Domain"), c = "0.3.1", a = Q(), l = Q(!1), f = Q(""), d = Q("");
4873
4873
  async function p(I) {
4874
4874
  if (!o.user.value)
4875
4875
  return g();
@@ -4889,10 +4889,9 @@ const An = Sa("store", () => {
4889
4889
  ancestorId: n.ancestorId ? Number(n.ancestorId) : void 0,
4890
4890
  parentId: n.parentId ? Number(n.parentId) : void 0
4891
4891
  })
4892
- });
4893
- if (!T.ok)
4894
- throw new Error("Failed to post comment");
4895
- const R = await T.json();
4892
+ }), R = await T.json();
4893
+ if (!T.ok || R.message)
4894
+ throw new Error("Failed to post comment: " + (R.message || "Unknown"));
4896
4895
  n.ancestorId || n.parentId ? s.addComment(R.data, f.value, o.user.value, Number(n.ancestorId), Number(n.parentId)) : s.addComment(R.data, f.value, o.user.value), f.value = "";
4897
4896
  } catch (O) {
4898
4897
  d.value = O.message || String(O);
@@ -4936,9 +4935,7 @@ const An = Sa("store", () => {
4936
4935
  ]),
4937
4936
  X("div", Ga, [
4938
4937
  I.noVersion ? ye("", !0) : (D(), G("div", Qa, "v" + ve(Y(c)), 1)),
4939
- d.value ? (D(), G("div", el, [
4940
- X("p", null, ve(d.value), 1)
4941
- ])) : ye("", !0),
4938
+ d.value ? (D(), G("div", el, ve(d.value), 1)) : ye("", !0),
4942
4939
  X("button", {
4943
4940
  class: "ac-btn ac-btn-primary ac-btn-sm ml-auto",
4944
4941
  disabled: l.value
@@ -5001,15 +4998,18 @@ function Ss(e) {
5001
4998
  }
5002
4999
  return n;
5003
5000
  }
5004
- const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900" }, al = { class: "flex justify-between items-center mb-2" }, ll = { class: "flex items-center text-sm text-base-content dark:text-white" }, ul = { class: "avatar mr-2" }, fl = ["src", "alt"], dl = { class: "text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6" }, hl = ["datetime", "title"], pl = ["href"], ml = /* @__PURE__ */ X("i", { class: "bi bi-reply-fill h-4 w-4" }, null, -1), gl = [
5005
- ml
5006
- ], bl = ["innerHTML"], _l = {
5001
+ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900" }, al = { class: "flex justify-between items-center mb-2" }, ll = { class: "flex items-center text-sm text-base-content dark:text-white" }, ul = { class: "avatar mr-2" }, fl = {
5002
+ key: 0,
5003
+ class: "w-6 h-6"
5004
+ }, dl = ["src", "alt"], hl = { class: "text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6" }, pl = ["datetime", "title"], ml = ["href"], gl = /* @__PURE__ */ X("i", { class: "bi bi-reply-fill h-4 w-4" }, null, -1), bl = [
5005
+ gl
5006
+ ], _l = ["innerHTML"], yl = {
5007
5007
  key: 0,
5008
5008
  class: "italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"
5009
- }, yl = {
5009
+ }, wl = {
5010
5010
  name: "CommentItem"
5011
- }, wl = /* @__PURE__ */ In({
5012
- ...yl,
5011
+ }, vl = /* @__PURE__ */ In({
5012
+ ...wl,
5013
5013
  props: {
5014
5014
  comment: {},
5015
5015
  isFirstLevel: { type: Boolean },
@@ -5031,17 +5031,18 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5031
5031
  X("header", al, [
5032
5032
  X("div", ll, [
5033
5033
  X("div", ul, [
5034
- s.comment.user.avatar ? (D(), G("img", {
5035
- key: 0,
5036
- class: "w-6 h-6 rounded-full",
5037
- src: s.comment.user.avatar,
5038
- alt: s.comment.user.name
5039
- }, null, 8, fl)) : (D(), G("div", {
5034
+ s.comment.user.avatar ? (D(), G("div", fl, [
5035
+ X("img", {
5036
+ class: "rounded-full",
5037
+ src: s.comment.user.avatar,
5038
+ alt: s.comment.user.name
5039
+ }, null, 8, dl)
5040
+ ])) : (D(), G("div", {
5040
5041
  key: 1,
5041
5042
  class: "avatar-char rounded-full w-6 h-6 mr-2 text-center",
5042
5043
  style: bn({ "background-color": Y(il)(s.comment.user.name || "Anonymous") })
5043
5044
  }, [
5044
- X("span", dl, ve((s.comment.user.name || "Anonymous").substring(0, 1)), 1)
5045
+ X("span", hl, ve((s.comment.user.name || "Anonymous").substring(0, 1)), 1)
5045
5046
  ], 4))
5046
5047
  ]),
5047
5048
  Sn(ve(s.comment.user.name), 1),
@@ -5050,24 +5051,24 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5050
5051
  pubdate: "",
5051
5052
  datetime: s.comment.createdAt,
5052
5053
  title: Y(Ss)(s.comment.createdAt)
5053
- }, ve(Y(Ss)(s.comment.createdAt)), 9, hl),
5054
+ }, ve(Y(Ss)(s.comment.createdAt)), 9, pl),
5054
5055
  !s.isFirstLevel && s.comment.parent_id !== s.comment.ancestor_id ? (D(), G("a", {
5055
5056
  key: 0,
5056
5057
  class: "text-xs link link-hover ml-4",
5057
5058
  href: "#awcm-" + s.comment.parent_id
5058
- }, "reply to " + ve(o(s.comment.parent_id)) + "(#" + ve(s.comment.parent_id) + ")", 9, pl)) : ye("", !0)
5059
+ }, "reply to " + ve(o(s.comment.parent_id)) + "(#" + ve(s.comment.parent_id) + ")", 9, ml)) : ye("", !0)
5059
5060
  ]),
5060
5061
  X("button", {
5061
5062
  class: "ac-btn ac-btn-sm ac-btn-circle border-0",
5062
5063
  type: "button",
5063
5064
  onClick: i[0] || (i[0] = (c) => s.comment.isReplying = !s.comment.isReplying)
5064
- }, gl)
5065
+ }, bl)
5065
5066
  ]),
5066
5067
  X("p", {
5067
5068
  class: "text-gray-500 dark:text-gray-400",
5068
5069
  innerHTML: Y(co)(s.comment.content)
5069
- }, null, 8, bl),
5070
- s.comment.status === Y(No).Pending ? (D(), G("p", _l, "comments normally got approved within 24 hours")) : ye("", !0)
5070
+ }, null, 8, _l),
5071
+ s.comment.status === Y(No).Pending ? (D(), G("p", yl, "comments normally got approved within 24 hours")) : ye("", !0)
5071
5072
  ]),
5072
5073
  s.comment.isReplying && s.isFirstLevel ? (D(), Lt(ro, {
5073
5074
  key: 0,
@@ -5093,29 +5094,29 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5093
5094
  ], 42, rl);
5094
5095
  };
5095
5096
  }
5096
- }), vl = {
5097
+ }), kl = {
5097
5098
  key: 0,
5098
5099
  class: "comments-wrapper"
5099
- }, kl = ["disabled"], xl = {
5100
+ }, xl = ["disabled"], Il = {
5100
5101
  key: 0,
5101
5102
  class: "ac-loading ac-loading-xs ac-loading-spinner"
5102
- }, Il = {
5103
+ }, Cl = {
5103
5104
  key: 1,
5104
5105
  class: "pt-8 text-center"
5105
- }, Cl = /* @__PURE__ */ X("span", { class: "ac-loading ac-loading-spinner" }, null, -1), Tl = [
5106
- Cl
5107
- ], Ol = {
5106
+ }, Tl = /* @__PURE__ */ X("span", { class: "ac-loading ac-loading-spinner" }, null, -1), Ol = [
5107
+ Tl
5108
+ ], Sl = {
5108
5109
  name: "CommentSections"
5109
- }, Sl = /* @__PURE__ */ In({
5110
- ...Ol,
5110
+ }, Pl = /* @__PURE__ */ In({
5111
+ ...Sl,
5111
5112
  setup(e) {
5112
5113
  const t = An();
5113
5114
  t.loadComments();
5114
5115
  function n() {
5115
5116
  t.start += 20, t.loadComments();
5116
5117
  }
5117
- return (o, s) => Y(t).isLoaded ? (D(), G("div", vl, [
5118
- (D(!0), G(_e, null, pi(Object.values(Y(t).comments), (i) => (D(), Lt(wl, {
5118
+ return (o, s) => Y(t).isLoaded ? (D(), G("div", kl, [
5119
+ (D(!0), G(_e, null, pi(Object.values(Y(t).comments), (i) => (D(), Lt(vl, {
5119
5120
  key: i.id,
5120
5121
  comment: i,
5121
5122
  "ancestor-id": Number(i.id),
@@ -5128,35 +5129,35 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5128
5129
  onClick: n,
5129
5130
  disabled: Y(t).loadingMore
5130
5131
  }, [
5131
- Y(t).loadingMore ? (D(), G("span", xl)) : ye("", !0),
5132
+ Y(t).loadingMore ? (D(), G("span", Il)) : ye("", !0),
5132
5133
  Sn("Load More")
5133
- ], 8, kl)) : ye("", !0)
5134
- ])) : (D(), G("div", Il, Tl));
5134
+ ], 8, xl)) : ye("", !0)
5135
+ ])) : (D(), G("div", Cl, Ol));
5135
5136
  }
5136
- }), Pl = { class: "awesome-comment" }, El = {
5137
+ }), El = { class: "awesome-comment" }, jl = {
5137
5138
  key: 0,
5138
5139
  class: "ac-alert ac-alert-error mb-4"
5139
- }, jl = { class: "flex justify-between items-center py-2" }, Al = { class: "text-lg font-bold text-base-content my-0" }, Rl = {
5140
+ }, Al = { class: "flex justify-between items-center py-2" }, Rl = { class: "text-lg font-bold text-base-content my-0" }, Nl = {
5140
5141
  key: 0,
5141
5142
  class: "ac-loading ac-loading-spinner"
5142
- }, Nl = {
5143
+ }, Ll = {
5143
5144
  key: 1,
5144
5145
  class: "ac-dropdown ac-dropdown-end"
5145
- }, Ll = {
5146
+ }, Ml = {
5146
5147
  key: 0,
5147
5148
  class: "ac-avatar flex",
5148
5149
  tabindex: "0"
5149
- }, Ml = { class: "w-6 h-6 rounded-full" }, Fl = ["alt", "src"], Kl = {
5150
+ }, Fl = { class: "w-6 h-6 rounded-full" }, $l = ["alt", "src"], Kl = {
5150
5151
  key: 1,
5151
5152
  class: "ac-btn ac-btn-ghost",
5152
5153
  tabindex: "0"
5153
- }, $l = {
5154
+ }, zl = {
5154
5155
  class: "ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",
5155
5156
  tabindex: "0"
5156
- }, zl = {
5157
+ }, Ul = {
5157
5158
  key: 0,
5158
5159
  class: "border-b border-neutral pb-2 mb-2 pointer-events-none"
5159
- }, Ul = { class: "text-base-content" }, Dl = ["disabled"], Wl = ["disabled"], Hl = /* @__PURE__ */ In({
5160
+ }, Dl = { class: "text-base-content" }, Wl = ["disabled"], Hl = ["disabled"], Zl = /* @__PURE__ */ In({
5160
5161
  __name: "App",
5161
5162
  setup(e) {
5162
5163
  const t = An(), {
@@ -5165,7 +5166,7 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5165
5166
  user: s,
5166
5167
  loginWithPopup: i,
5167
5168
  logout: r
5168
- } = Ki(), c = Oo(() => {
5169
+ } = $i(), c = Oo(() => {
5169
5170
  const f = t.total > 20 || t.total === 20 && t.hasMore ? "20+" : t.total, d = new CustomEvent("AwesomeComment:total", {
5170
5171
  bubbles: !0,
5171
5172
  cancelable: !0,
@@ -5181,26 +5182,26 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5181
5182
  openUrl: !1
5182
5183
  });
5183
5184
  }
5184
- return (f, d) => (D(), G("div", Pl, [
5185
- Y(t).message ? (D(), G("div", El, [
5185
+ return (f, d) => (D(), G("div", El, [
5186
+ Y(t).message ? (D(), G("div", jl, [
5186
5187
  X("p", null, ve(Y(t).message), 1)
5187
5188
  ])) : ye("", !0),
5188
- X("header", jl, [
5189
- X("h2", Al, "Discussion (" + ve(c.value) + ")", 1),
5190
- Y(o) ? (D(), G("span", Rl)) : (D(), G("div", Nl, [
5189
+ X("header", Al, [
5190
+ X("h2", Rl, "Discussion (" + ve(c.value) + ")", 1),
5191
+ Y(o) ? (D(), G("span", Nl)) : (D(), G("div", Ll, [
5191
5192
  Y(n) && Y(s) ? (D(), G(_e, { key: 0 }, [
5192
- Y(s).picture ? (D(), G("label", Ll, [
5193
- X("div", Ml, [
5193
+ Y(s).picture ? (D(), G("label", Ml, [
5194
+ X("div", Fl, [
5194
5195
  X("img", {
5195
5196
  class: "w-full h-full block",
5196
5197
  alt: Y(s).name || Y(s).email,
5197
5198
  src: Y(s).picture
5198
- }, null, 8, Fl)
5199
+ }, null, 8, $l)
5199
5200
  ])
5200
5201
  ])) : (D(), G("label", Kl, ve(Y(s).email), 1)),
5201
- X("ul", $l, [
5202
- Y(s).picture ? (D(), G("li", zl, [
5203
- X("span", Ul, ve(Y(s).email), 1)
5202
+ X("ul", zl, [
5203
+ Y(s).picture ? (D(), G("li", Ul, [
5204
+ X("span", Dl, ve(Y(s).email), 1)
5204
5205
  ])) : ye("", !0),
5205
5206
  X("li", null, [
5206
5207
  X("button", {
@@ -5208,7 +5209,7 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5208
5209
  type: "button",
5209
5210
  disabled: Y(o),
5210
5211
  onClick: l
5211
- }, "Logout", 8, Dl)
5212
+ }, "Logout", 8, Wl)
5212
5213
  ])
5213
5214
  ])
5214
5215
  ], 64)) : (D(), G("button", {
@@ -5217,17 +5218,17 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5217
5218
  type: "button",
5218
5219
  disabled: Y(o),
5219
5220
  onClick: a
5220
- }, "Login", 8, Wl))
5221
+ }, "Login", 8, Hl))
5221
5222
  ]))
5222
5223
  ]),
5223
5224
  Oe(ro),
5224
- Oe(Sl)
5225
+ Oe(Pl)
5225
5226
  ]));
5226
5227
  }
5227
5228
  }), Ps = [];
5228
- let $i = null;
5229
- function Zl(e, t) {
5230
- const n = ya(Hl), o = ka(), s = $i || Fi({
5229
+ let Ki = null;
5230
+ function Vl(e, t) {
5231
+ const n = ya(Zl), o = ka(), s = Ki || Fi({
5231
5232
  domain: e,
5232
5233
  clientId: t,
5233
5234
  authorizationParams: {
@@ -5236,18 +5237,18 @@ function Zl(e, t) {
5236
5237
  });
5237
5238
  return n.use(s), n.use(o), n;
5238
5239
  }
5239
- const Vl = {
5240
+ const Xl = {
5240
5241
  postId: "",
5241
5242
  apiUrl: "",
5242
5243
  domain: "",
5243
5244
  clientId: "",
5244
5245
  init(e, t, n, o, s) {
5245
5246
  t ??= this.postId, n ??= this.apiUrl, o ??= this.domain, s ??= this.clientId;
5246
- const i = Zl(o, s);
5247
+ const i = Vl(o, s);
5247
5248
  i.provide("ApiBaseUrl", n), i.provide("postId", t), i.provide("Auth0Domain", o), i.provide("comments", Ps), i.mount(e);
5248
5249
  },
5249
5250
  async preload(e, t, n, o) {
5250
- this.postId = e, this.apiUrl = t, this.domain = n, this.clientId = o, $i = Fi({
5251
+ this.postId = e, this.apiUrl = t, this.domain = n, this.clientId = o, Ki = Fi({
5251
5252
  domain: n,
5252
5253
  clientId: o,
5253
5254
  authorizationParams: {
@@ -5261,5 +5262,5 @@ const Vl = {
5261
5262
  }
5262
5263
  };
5263
5264
  export {
5264
- Vl as default
5265
+ Xl as default
5265
5266
  };