hive-react-kit 0.7.3 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1988,7 +1988,7 @@ function as() {
1988
1988
  return R(J);
1989
1989
  };
1990
1990
  }
1991
- function ne(R, J) {
1991
+ function ae(R, J) {
1992
1992
  return R.has(J);
1993
1993
  }
1994
1994
  function de(R, J) {
@@ -2016,7 +2016,7 @@ function as() {
2016
2016
  return R ? "Symbol(src)_1." + R : "";
2017
2017
  })(), Mt = Je.toString, $t = RegExp(
2018
2018
  "^" + At.call(yt).replace(be, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2019
- ), Gt = K ? te.Buffer : void 0, Qe = te.Symbol, it = te.Uint8Array, St = Je.propertyIsEnumerable, Jt = Te.splice, Ct = Qe ? Qe.toStringTag : void 0, Yt = Object.getOwnPropertySymbols, C = Gt ? Gt.isBuffer : void 0, O = fe(Object.keys, Object), F = nr(te, "DataView"), Z = nr(te, "Map"), ye = nr(te, "Promise"), Me = nr(te, "Set"), Xe = nr(te, "WeakMap"), qe = nr(Object, "create"), He = ae(F), Nt = ae(Z), Rt = ae(ye), Vt = ae(Me), Ut = ae(Xe), ar = Qe ? Qe.prototype : void 0, Tt = ar ? ar.valueOf : void 0;
2019
+ ), Gt = K ? te.Buffer : void 0, Qe = te.Symbol, it = te.Uint8Array, St = Je.propertyIsEnumerable, Jt = Te.splice, Ct = Qe ? Qe.toStringTag : void 0, Yt = Object.getOwnPropertySymbols, C = Gt ? Gt.isBuffer : void 0, O = fe(Object.keys, Object), F = nr(te, "DataView"), Z = nr(te, "Map"), ye = nr(te, "Promise"), Me = nr(te, "Set"), Xe = nr(te, "WeakMap"), qe = nr(Object, "create"), He = ne(F), Nt = ne(Z), Rt = ne(ye), Vt = ne(Me), Ut = ne(Xe), ar = Qe ? Qe.prototype : void 0, Tt = ar ? ar.valueOf : void 0;
2020
2020
  function mt(R) {
2021
2021
  var J = -1, X = R == null ? 0 : R.length;
2022
2022
  for (this.clear(); ++J < X; ) {
@@ -2199,7 +2199,7 @@ function as() {
2199
2199
  if (!ir(R) || I(R))
2200
2200
  return !1;
2201
2201
  var J = tt(R) ? $t : q;
2202
- return J.test(ae(R));
2202
+ return J.test(ne(R));
2203
2203
  }
2204
2204
  function gr(R) {
2205
2205
  return Bt(R) && Ft(R.length) && !!B[Zt(R)];
@@ -2232,7 +2232,7 @@ function as() {
2232
2232
  }
2233
2233
  if (Kt) {
2234
2234
  if (!Be(J, function(Qr, xa) {
2235
- if (!ne(Kt, xa) && (Et === Qr || ce(Et, Qr, X, $, me)))
2235
+ if (!ae(Kt, xa) && (Et === Qr || ce(Et, Qr, X, $, me)))
2236
2236
  return Kt.push(xa);
2237
2237
  })) {
2238
2238
  sr = !1;
@@ -2338,7 +2338,7 @@ function as() {
2338
2338
  }));
2339
2339
  } : la, kt = Zt;
2340
2340
  (F && kt(new F(new ArrayBuffer(1))) != P || Z && kt(new Z()) != N || ye && kt(ye.resolve()) != _ || Me && kt(new Me()) != p || Xe && kt(new Xe()) != T) && (kt = function(R) {
2341
- var J = Zt(R), X = J == w ? R.constructor : void 0, $ = X ? ae(X) : "";
2341
+ var J = Zt(R), X = J == w ? R.constructor : void 0, $ = X ? ne(X) : "";
2342
2342
  if ($)
2343
2343
  switch ($) {
2344
2344
  case He:
@@ -2371,7 +2371,7 @@ function as() {
2371
2371
  function he(R) {
2372
2372
  return Mt.call(R);
2373
2373
  }
2374
- function ae(R) {
2374
+ function ne(R) {
2375
2375
  if (R != null) {
2376
2376
  try {
2377
2377
  return At.call(R);
@@ -6834,7 +6834,7 @@ function b0() {
6834
6834
  while (Me !== Xe && (Me = Me.nextSibling));
6835
6835
  return ee(C.ownerDocument || C, C), O.nodeType == v && (O.firstChild = O.lastChild = null), O;
6836
6836
  }
6837
- function ne(C, O) {
6837
+ function ae(C, O) {
6838
6838
  return O.parentNode && O.parentNode.removeChild(O), O.parentNode = C, O.previousSibling = C.lastChild, O.nextSibling = null, O.previousSibling ? O.previousSibling.nextSibling = O : C.firstChild = O, C.lastChild = O, ee(C.ownerDocument, C, O), O;
6839
6839
  }
6840
6840
  U.prototype = {
@@ -6985,7 +6985,7 @@ function b0() {
6985
6985
  },
6986
6986
  //four real opeartion method
6987
6987
  appendChild: function(C) {
6988
- return C.nodeType === v ? this.insertBefore(C, null) : ne(this, C);
6988
+ return C.nodeType === v ? this.insertBefore(C, null) : ae(this, C);
6989
6989
  },
6990
6990
  setAttributeNode: function(C) {
6991
6991
  return this.attributes.setNamedItem(C);
@@ -9544,8 +9544,8 @@ function cp() {
9544
9544
  var Ne = new E(), De = be[be.length - 1].currentNSMap, Re = y(S, B, Ne, De, V, M), Be = Ne.length;
9545
9545
  if (!Ne.closed && _(S, Re, Ne.tagName, q) && (Ne.closed = !0, D.nbsp || M.warning("unclosed xml attribute")), se && Be) {
9546
9546
  for (var ue = N(se, {}), Ie = 0; Ie < Be; Ie++) {
9547
- var ne = Ne[Ie];
9548
- j(ne.offset), ne.locator = N(se, {});
9547
+ var ae = Ne[Ie];
9548
+ j(ae.offset), ae.locator = N(se, {});
9549
9549
  }
9550
9550
  P.locator = ue, b(Ne, P, De) && be.push(Ne), P.locator = se;
9551
9551
  } else
@@ -10220,7 +10220,7 @@ function y0() {
10220
10220
  we[++Q] = Ce;
10221
10221
  }), we;
10222
10222
  }
10223
- var je, K, le, oe = Array.prototype, Ne = Function.prototype, De = Object.prototype, Re = ie["__core-js_shared__"], Be = Ne.toString, ue = De.hasOwnProperty, Ie = (je = /[^.]+$/.exec(Re && Re.keys && Re.keys.IE_PROTO || "")) ? "Symbol(src)_1." + je : "", ne = De.toString, de = RegExp("^" + Be.call(ue).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ve = q ? ie.Buffer : void 0, fe = ie.Symbol, Ae = ie.Uint8Array, Te = De.propertyIsEnumerable, Ve = oe.splice, Je = fe ? fe.toStringTag : void 0, bt = Object.getOwnPropertySymbols, At = ve ? ve.isBuffer : void 0, yt = (K = Object.keys, le = Object, function(W) {
10223
+ var je, K, le, oe = Array.prototype, Ne = Function.prototype, De = Object.prototype, Re = ie["__core-js_shared__"], Be = Ne.toString, ue = De.hasOwnProperty, Ie = (je = /[^.]+$/.exec(Re && Re.keys && Re.keys.IE_PROTO || "")) ? "Symbol(src)_1." + je : "", ae = De.toString, de = RegExp("^" + Be.call(ue).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ve = q ? ie.Buffer : void 0, fe = ie.Symbol, Ae = ie.Uint8Array, Te = De.propertyIsEnumerable, Ve = oe.splice, Je = fe ? fe.toStringTag : void 0, bt = Object.getOwnPropertySymbols, At = ve ? ve.isBuffer : void 0, yt = (K = Object.keys, le = Object, function(W) {
10224
10224
  return K(le(W));
10225
10225
  }), Lt = Le(ie, "DataView"), Mt = Le(ie, "Map"), $t = Le(ie, "Promise"), Gt = Le(ie, "Set"), Qe = Le(ie, "WeakMap"), it = Le(Object, "create"), St = Ye(Lt), Jt = Ye(Mt), Ct = Ye($t), Yt = Ye(Gt), C = Ye(Qe), O = fe ? fe.prototype : void 0, F = O ? O.valueOf : void 0;
10226
10226
  function Z(W) {
@@ -10272,10 +10272,10 @@ function y0() {
10272
10272
  var pt = !0;
10273
10273
  } catch {
10274
10274
  }
10275
- var Ze = ne.call(Q);
10275
+ var Ze = ae.call(Q);
10276
10276
  return pt && (we ? Q[Je] = Ce : delete Q[Je]), Ze;
10277
10277
  })(W) : (function(Q) {
10278
- return ne.call(Q);
10278
+ return ae.call(Q);
10279
10279
  })(W);
10280
10280
  }
10281
10281
  function Vt(W) {
@@ -10330,22 +10330,22 @@ function y0() {
10330
10330
  var xr = nr & d, Cr = ge(st), I = Cr.length, re = ge(Ge).length;
10331
10331
  if (I != re && !xr) return !1;
10332
10332
  for (var he = I; he--; ) {
10333
- var ae = Cr[he];
10334
- if (!(xr ? ae in Ge : ue.call(Ge, ae))) return !1;
10333
+ var ne = Cr[he];
10334
+ if (!(xr ? ne in Ge : ue.call(Ge, ne))) return !1;
10335
10335
  }
10336
10336
  var xe = kt.get(st);
10337
10337
  if (xe && kt.get(Ge)) return xe == Ge;
10338
10338
  var Oe = !0;
10339
10339
  kt.set(st, Ge), kt.set(Ge, st);
10340
10340
  for (var ct = xr; ++he < I; ) {
10341
- ae = Cr[he];
10342
- var Ke = st[ae], et = Ge[ae];
10343
- if (hr) var ft = xr ? hr(et, Ke, ae, Ge, st, kt) : hr(Ke, et, ae, st, Ge, kt);
10341
+ ne = Cr[he];
10342
+ var Ke = st[ne], et = Ge[ne];
10343
+ if (hr) var ft = xr ? hr(et, Ke, ne, Ge, st, kt) : hr(Ke, et, ne, st, Ge, kt);
10344
10344
  if (!(ft === void 0 ? Ke === et || Kr(Ke, et, nr, hr, kt) : ft)) {
10345
10345
  Oe = !1;
10346
10346
  break;
10347
10347
  }
10348
- ct || (ct = ae == "constructor");
10348
+ ct || (ct = ne == "constructor");
10349
10349
  }
10350
10350
  if (Oe && !ct) {
10351
10351
  var tt = st.constructor, Ft = Ge.constructor;
@@ -18252,15 +18252,15 @@ and ensure you are accounting for this risk.
18252
18252
  if (!A || f(A, K) && A[K].indexOf(ue) !== -1 || A["*"] && A["*"].indexOf(ue) !== -1 || f(S, K) && S[K].test(ue) || S["*"] && S["*"].test(ue))
18253
18253
  Ie = !0;
18254
18254
  else if (A && A[K]) {
18255
- for (const ne of A[K])
18256
- if (n(ne) && ne.name && ne.name === ue) {
18255
+ for (const ae of A[K])
18256
+ if (n(ae) && ae.name && ae.name === ue) {
18257
18257
  Ie = !0;
18258
18258
  let de = "";
18259
- if (ne.multiple === !0) {
18259
+ if (ae.multiple === !0) {
18260
18260
  const ve = Be.split(" ");
18261
18261
  for (const fe of ve)
18262
- ne.values.indexOf(fe) !== -1 && (de === "" ? de = fe : de += " " + fe);
18263
- } else ne.values.indexOf(Be) >= 0 && (de = Be);
18262
+ ae.values.indexOf(fe) !== -1 && (de === "" ? de = fe : de += " " + fe);
18263
+ } else ae.values.indexOf(Be) >= 0 && (de = Be);
18264
18264
  Be = de;
18265
18265
  }
18266
18266
  }
@@ -18270,7 +18270,7 @@ and ensure you are accounting for this risk.
18270
18270
  return;
18271
18271
  }
18272
18272
  if (K === "script" && ue === "src") {
18273
- let ne = !0;
18273
+ let ae = !0;
18274
18274
  try {
18275
18275
  const de = pe(Be);
18276
18276
  if (b.allowedScriptHostnames || b.allowedScriptDomains) {
@@ -18279,47 +18279,47 @@ and ensure you are accounting for this risk.
18279
18279
  }), fe = (b.allowedScriptDomains || []).find(function(Ae) {
18280
18280
  return de.url.hostname === Ae || de.url.hostname.endsWith(`.${Ae}`);
18281
18281
  });
18282
- ne = ve || fe;
18282
+ ae = ve || fe;
18283
18283
  }
18284
18284
  } catch {
18285
- ne = !1;
18285
+ ae = !1;
18286
18286
  }
18287
- if (!ne) {
18287
+ if (!ae) {
18288
18288
  delete oe.attribs[ue];
18289
18289
  return;
18290
18290
  }
18291
18291
  }
18292
18292
  if (K === "iframe" && ue === "src") {
18293
- let ne = !0;
18293
+ let ae = !0;
18294
18294
  try {
18295
18295
  const de = pe(Be);
18296
18296
  if (de.isRelativeUrl)
18297
- ne = f(b, "allowIframeRelativeUrls") ? b.allowIframeRelativeUrls : !b.allowedIframeHostnames && !b.allowedIframeDomains;
18297
+ ae = f(b, "allowIframeRelativeUrls") ? b.allowIframeRelativeUrls : !b.allowedIframeHostnames && !b.allowedIframeDomains;
18298
18298
  else if (b.allowedIframeHostnames || b.allowedIframeDomains) {
18299
18299
  const ve = (b.allowedIframeHostnames || []).find(function(Ae) {
18300
18300
  return Ae === de.url.hostname;
18301
18301
  }), fe = (b.allowedIframeDomains || []).find(function(Ae) {
18302
18302
  return de.url.hostname === Ae || de.url.hostname.endsWith(`.${Ae}`);
18303
18303
  });
18304
- ne = ve || fe;
18304
+ ae = ve || fe;
18305
18305
  }
18306
18306
  } catch {
18307
- ne = !1;
18307
+ ae = !1;
18308
18308
  }
18309
- if (!ne) {
18309
+ if (!ae) {
18310
18310
  delete oe.attribs[ue];
18311
18311
  return;
18312
18312
  }
18313
18313
  }
18314
18314
  if (ue === "srcset")
18315
18315
  try {
18316
- let ne = a(Be);
18317
- if (ne.forEach(function(de) {
18316
+ let ae = a(Be);
18317
+ if (ae.forEach(function(de) {
18318
18318
  B("srcset", de.url) && (de.evil = !0);
18319
- }), ne = l(ne, function(de) {
18319
+ }), ae = l(ae, function(de) {
18320
18320
  return !de.evil;
18321
- }), ne.length)
18322
- Be = u(l(ne, function(de) {
18321
+ }), ae.length)
18322
+ Be = u(l(ae, function(de) {
18323
18323
  return !de.evil;
18324
18324
  })), oe.attribs[ue] = Be;
18325
18325
  else {
@@ -18331,13 +18331,13 @@ and ensure you are accounting for this risk.
18331
18331
  return;
18332
18332
  }
18333
18333
  if (ue === "class") {
18334
- const ne = T[K], de = T["*"], ve = D[K], fe = P[K], Ae = D["*"], Te = [
18334
+ const ae = T[K], de = T["*"], ve = D[K], fe = P[K], Ae = D["*"], Te = [
18335
18335
  ve,
18336
18336
  Ae
18337
18337
  ].concat(fe).filter(function(Ve) {
18338
18338
  return Ve;
18339
18339
  });
18340
- if (ne && de ? Be = je(Be, s(ne, de), Te) : Be = je(Be, ne || de, Te), !Be.length) {
18340
+ if (ae && de ? Be = je(Be, s(ae, de), Te) : Be = je(Be, ae || de, Te), !Be.length) {
18341
18341
  delete oe.attribs[ue];
18342
18342
  return;
18343
18343
  }
@@ -18345,7 +18345,7 @@ and ensure you are accounting for this risk.
18345
18345
  if (ue === "style") {
18346
18346
  if (b.parseStyleAttributes)
18347
18347
  try {
18348
- const ne = i(K + " {" + Be + "}", { map: !1 }), de = ee(ne, b.allowedStyles);
18348
+ const ae = i(K + " {" + Be + "}", { map: !1 }), de = ee(ae, b.allowedStyles);
18349
18349
  if (Be = te(de), Be.length === 0) {
18350
18350
  delete oe.attribs[ue];
18351
18351
  return;
@@ -21137,9 +21137,9 @@ function Rd() {
21137
21137
  uponSanitizeShadowNode: []
21138
21138
  };
21139
21139
  };
21140
- function ne() {
21140
+ function ae() {
21141
21141
  let ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Be();
21142
- const fe = (X) => ne(X);
21142
+ const fe = (X) => ae(X);
21143
21143
  if (fe.version = "3.3.3", fe.removed = [], !ve || !ve.document || ve.document.nodeType !== Re.document || !ve.Element)
21144
21144
  return fe.isSupported = !1, fe;
21145
21145
  let {
@@ -21236,13 +21236,13 @@ function Rd() {
21236
21236
  let kt = null;
21237
21237
  const xr = ["application/xhtml+xml", "text/html"], Cr = "text/html";
21238
21238
  let I = null, re = null;
21239
- const he = Ae.createElement("form"), ae = function($) {
21239
+ const he = Ae.createElement("form"), ne = function($) {
21240
21240
  return $ instanceof RegExp || $ instanceof Function;
21241
21241
  }, xe = function() {
21242
21242
  let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
21243
21243
  if (!(re && re === $)) {
21244
21244
  if ((!$ || typeof $ != "object") && ($ = {}), $ = P($), kt = // eslint-disable-next-line unicorn/prefer-includes
21245
- xr.indexOf($.PARSER_MEDIA_TYPE) === -1 ? Cr : $.PARSER_MEDIA_TYPE, I = kt === "application/xhtml+xml" ? y : N, Le = v($, "ALLOWED_TAGS") ? T({}, $.ALLOWED_TAGS, I) : We, Ue = v($, "ALLOWED_ATTR") ? T({}, $.ALLOWED_ATTR, I) : xt, st = v($, "ALLOWED_NAMESPACES") ? T({}, $.ALLOWED_NAMESPACES, y) : Ge, Er = v($, "ADD_URI_SAFE_ATTR") ? T(P(Ar), $.ADD_URI_SAFE_ATTR, I) : Ar, zt = v($, "ADD_DATA_URI_TAGS") ? T(P(dr), $.ADD_DATA_URI_TAGS, I) : dr, qt = v($, "FORBID_CONTENTS") ? T({}, $.FORBID_CONTENTS, I) : Zt, yr = v($, "FORBID_TAGS") ? T({}, $.FORBID_TAGS, I) : P({}), Hr = v($, "FORBID_ATTR") ? T({}, $.FORBID_ATTR, I) : P({}), gt = v($, "USE_PROFILES") ? $.USE_PROFILES : !1, Wr = $.ALLOW_ARIA_ATTR !== !1, Xt = $.ALLOW_DATA_ATTR !== !1, Gr = $.ALLOW_UNKNOWN_PROTOCOLS || !1, Fe = $.ALLOW_SELF_CLOSE_IN_ATTR !== !1, cr = $.SAFE_FOR_TEMPLATES || !1, Lr = $.SAFE_FOR_XML !== !1, dt = $.WHOLE_DOCUMENT || !1, we = $.RETURN_DOM || !1, Ce = $.RETURN_DOM_FRAGMENT || !1, pt = $.RETURN_TRUSTED_TYPE || !1, Q = $.FORCE_BODY || !1, Ze = $.SANITIZE_DOM !== !1, _t = $.SANITIZE_NAMED_PROPS || !1, tr = $.KEEP_CONTENT !== !1, Dt = $.IN_PLACE || !1, Pe = $.ALLOWED_URI_REGEXP || je, Sr = $.NAMESPACE || fr, nr = $.MATHML_TEXT_INTEGRATION_POINTS || nr, hr = $.HTML_INTEGRATION_POINTS || hr, Ye = $.CUSTOM_ELEMENT_HANDLING || {}, $.CUSTOM_ELEMENT_HANDLING && ae($.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = $.CUSTOM_ELEMENT_HANDLING.tagNameCheck), $.CUSTOM_ELEMENT_HANDLING && ae($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = $.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), $.CUSTOM_ELEMENT_HANDLING && typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), cr && (Xt = !1), Ce && (we = !0), gt && (Le = T({}, ie), Ue = c(null), gt.html === !0 && (T(Le, H), T(Ue, se)), gt.svg === !0 && (T(Le, V), T(Ue, be), T(Ue, U)), gt.svgFilters === !0 && (T(Le, z), T(Ue, be), T(Ue, U)), gt.mathMl === !0 && (T(Le, Y), T(Ue, q), T(Ue, U))), v($, "ADD_TAGS") || (ur.tagCheck = null), v($, "ADD_ATTR") || (ur.attributeCheck = null), $.ADD_TAGS && (typeof $.ADD_TAGS == "function" ? ur.tagCheck = $.ADD_TAGS : (Le === We && (Le = P(Le)), T(Le, $.ADD_TAGS, I))), $.ADD_ATTR && (typeof $.ADD_ATTR == "function" ? ur.attributeCheck = $.ADD_ATTR : (Ue === xt && (Ue = P(Ue)), T(Ue, $.ADD_ATTR, I))), $.ADD_URI_SAFE_ATTR && T(Er, $.ADD_URI_SAFE_ATTR, I), $.FORBID_CONTENTS && (qt === Zt && (qt = P(qt)), T(qt, $.FORBID_CONTENTS, I)), $.ADD_FORBID_CONTENTS && (qt === Zt && (qt = P(qt)), T(qt, $.ADD_FORBID_CONTENTS, I)), tr && (Le["#text"] = !0), dt && T(Le, ["html", "head", "body"]), Le.table && (T(Le, ["tbody"]), delete yr.tbody), $.TRUSTED_TYPES_POLICY) {
21245
+ xr.indexOf($.PARSER_MEDIA_TYPE) === -1 ? Cr : $.PARSER_MEDIA_TYPE, I = kt === "application/xhtml+xml" ? y : N, Le = v($, "ALLOWED_TAGS") ? T({}, $.ALLOWED_TAGS, I) : We, Ue = v($, "ALLOWED_ATTR") ? T({}, $.ALLOWED_ATTR, I) : xt, st = v($, "ALLOWED_NAMESPACES") ? T({}, $.ALLOWED_NAMESPACES, y) : Ge, Er = v($, "ADD_URI_SAFE_ATTR") ? T(P(Ar), $.ADD_URI_SAFE_ATTR, I) : Ar, zt = v($, "ADD_DATA_URI_TAGS") ? T(P(dr), $.ADD_DATA_URI_TAGS, I) : dr, qt = v($, "FORBID_CONTENTS") ? T({}, $.FORBID_CONTENTS, I) : Zt, yr = v($, "FORBID_TAGS") ? T({}, $.FORBID_TAGS, I) : P({}), Hr = v($, "FORBID_ATTR") ? T({}, $.FORBID_ATTR, I) : P({}), gt = v($, "USE_PROFILES") ? $.USE_PROFILES : !1, Wr = $.ALLOW_ARIA_ATTR !== !1, Xt = $.ALLOW_DATA_ATTR !== !1, Gr = $.ALLOW_UNKNOWN_PROTOCOLS || !1, Fe = $.ALLOW_SELF_CLOSE_IN_ATTR !== !1, cr = $.SAFE_FOR_TEMPLATES || !1, Lr = $.SAFE_FOR_XML !== !1, dt = $.WHOLE_DOCUMENT || !1, we = $.RETURN_DOM || !1, Ce = $.RETURN_DOM_FRAGMENT || !1, pt = $.RETURN_TRUSTED_TYPE || !1, Q = $.FORCE_BODY || !1, Ze = $.SANITIZE_DOM !== !1, _t = $.SANITIZE_NAMED_PROPS || !1, tr = $.KEEP_CONTENT !== !1, Dt = $.IN_PLACE || !1, Pe = $.ALLOWED_URI_REGEXP || je, Sr = $.NAMESPACE || fr, nr = $.MATHML_TEXT_INTEGRATION_POINTS || nr, hr = $.HTML_INTEGRATION_POINTS || hr, Ye = $.CUSTOM_ELEMENT_HANDLING || {}, $.CUSTOM_ELEMENT_HANDLING && ne($.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = $.CUSTOM_ELEMENT_HANDLING.tagNameCheck), $.CUSTOM_ELEMENT_HANDLING && ne($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = $.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), $.CUSTOM_ELEMENT_HANDLING && typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), cr && (Xt = !1), Ce && (we = !0), gt && (Le = T({}, ie), Ue = c(null), gt.html === !0 && (T(Le, H), T(Ue, se)), gt.svg === !0 && (T(Le, V), T(Ue, be), T(Ue, U)), gt.svgFilters === !0 && (T(Le, z), T(Ue, be), T(Ue, U)), gt.mathMl === !0 && (T(Le, Y), T(Ue, q), T(Ue, U))), v($, "ADD_TAGS") || (ur.tagCheck = null), v($, "ADD_ATTR") || (ur.attributeCheck = null), $.ADD_TAGS && (typeof $.ADD_TAGS == "function" ? ur.tagCheck = $.ADD_TAGS : (Le === We && (Le = P(Le)), T(Le, $.ADD_TAGS, I))), $.ADD_ATTR && (typeof $.ADD_ATTR == "function" ? ur.attributeCheck = $.ADD_ATTR : (Ue === xt && (Ue = P(Ue)), T(Ue, $.ADD_ATTR, I))), $.ADD_URI_SAFE_ATTR && T(Er, $.ADD_URI_SAFE_ATTR, I), $.FORBID_CONTENTS && (qt === Zt && (qt = P(qt)), T(qt, $.FORBID_CONTENTS, I)), $.ADD_FORBID_CONTENTS && (qt === Zt && (qt = P(qt)), T(qt, $.ADD_FORBID_CONTENTS, I)), tr && (Le["#text"] = !0), dt && T(Le, ["html", "head", "body"]), Le.table && (T(Le, ["tbody"]), delete yr.tbody), $.TRUSTED_TYPES_POLICY) {
21246
21246
  if (typeof $.TRUSTED_TYPES_POLICY.createHTML != "function")
21247
21247
  throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
21248
21248
  if (typeof $.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -21536,7 +21536,7 @@ function Rd() {
21536
21536
  He = Ie();
21537
21537
  }, fe;
21538
21538
  }
21539
- var de = ne();
21539
+ var de = ae();
21540
21540
  return Lo = de, Lo;
21541
21541
  }
21542
21542
  var Mo, Id;
@@ -21852,7 +21852,7 @@ const Zi = ({
21852
21852
  }) => {
21853
21853
  const [be, q] = L(""), U = M !== void 0 ? M : be, B = (ge) => {
21854
21854
  H ? H(ge) : q(ge);
21855
- }, [pe, ee] = L(!1), te = V || pe, [ke, je] = L(!1), [K, le] = L(!1), [oe, Ne] = L(!1), [De, Re] = L(P), [Be, ue] = L(null), [Ie, ne] = L(0), [de, ve] = L(null), [fe, Ae] = L(null), [Te, Ve] = L(null), [Je, bt] = L([]), [At, yt] = L(!1), [Lt, Mt] = L(!1), [$t, Gt] = L(null), [Qe, it] = L(!1), St = vt(null), Jt = vt(0), Ct = Ot(() => {
21855
+ }, [pe, ee] = L(!1), te = V || pe, [ke, je] = L(!1), [K, le] = L(!1), [oe, Ne] = L(!1), [De, Re] = L(P), [Be, ue] = L(null), [Ie, ae] = L(0), [de, ve] = L(null), [fe, Ae] = L(null), [Te, Ve] = L(null), [Je, bt] = L([]), [At, yt] = L(!1), [Lt, Mt] = L(!1), [$t, Gt] = L(null), [Qe, it] = L(!1), St = vt(null), Jt = vt(0), Ct = Ot(() => {
21856
21856
  try {
21857
21857
  return vs({
21858
21858
  baseUrl: "https://hive.blog/",
@@ -21870,7 +21870,7 @@ const Zi = ({
21870
21870
  Ee(() => {
21871
21871
  !se && St.current && St.current.focus();
21872
21872
  }, [se]), Ee(() => {
21873
- M !== void 0 && M === "" && (ue(null), ne(0), fe && URL.revokeObjectURL(fe), ve(null), Ae(null));
21873
+ M !== void 0 && M === "" && (ue(null), ae(0), fe && URL.revokeObjectURL(fe), ve(null), Ae(null));
21874
21874
  }, [M]), Ee(() => {
21875
21875
  if (!f) {
21876
21876
  bt([]);
@@ -21968,7 +21968,7 @@ const Zi = ({
21968
21968
  let ge = U.trim();
21969
21969
  Be && (ge += `
21970
21970
  ${Be}`), de && (ge += `
21971
- ${de}`), await e(ge), B(""), ue(null), ne(0), ve(null), fe && URL.revokeObjectURL(fe), Ae(null), Gt(null), A?.(null);
21971
+ ${de}`), await e(ge), B(""), ue(null), ae(0), ve(null), fe && URL.revokeObjectURL(fe), Ae(null), Gt(null), A?.(null);
21972
21972
  } catch (ge) {
21973
21973
  console.error("Failed to submit:", ge);
21974
21974
  } finally {
@@ -21985,7 +21985,7 @@ ${Be}`), de && (ge += `
21985
21985
  ${de}`), ge;
21986
21986
  },
21987
21987
  clear: () => {
21988
- B(""), ue(null), ne(0), ve(null), fe && URL.revokeObjectURL(fe), Ae(null), Gt(null), A?.(null);
21988
+ B(""), ue(null), ae(0), ve(null), fe && URL.revokeObjectURL(fe), Ae(null), Gt(null), A?.(null);
21989
21989
  }
21990
21990
  }), () => {
21991
21991
  j && (j.current = null);
@@ -21993,7 +21993,7 @@ ${de}`), ge;
21993
21993
  const Vt = (ge) => {
21994
21994
  ge.key === "Enter" && (ge.metaKey || ge.ctrlKey) && (ge.preventDefault(), Rt()), ge.key === "Escape" && r && r();
21995
21995
  }, Ut = () => {
21996
- ue(null), ne(0);
21996
+ ue(null), ae(0);
21997
21997
  }, ar = () => {
21998
21998
  fe && URL.revokeObjectURL(fe), ve(null), Ae(null);
21999
21999
  }, Tt = at(() => {
@@ -22169,7 +22169,7 @@ ${de}`), ge;
22169
22169
  mg,
22170
22170
  {
22171
22171
  onAudioUploaded: (ge, Pe) => {
22172
- ue(ge), ne(Pe);
22172
+ ue(ge), ae(Pe);
22173
22173
  },
22174
22174
  username: n,
22175
22175
  threeSpeakApiKey: c,
@@ -28354,7 +28354,7 @@ function al({
28354
28354
  message: "",
28355
28355
  visible: !1
28356
28356
  }), [ie, se] = L(!1), be = at((Ie) => {
28357
- G({ message: Ie, visible: !0 }), setTimeout(() => G((ne) => ({ ...ne, visible: !1 })), 2500);
28357
+ G({ message: Ie, visible: !0 }), setTimeout(() => G((ae) => ({ ...ae, visible: !1 })), 2500);
28358
28358
  }, []), q = o !== void 0, U = c !== void 0, B = at(async () => {
28359
28359
  try {
28360
28360
  const Ie = await Pt.getActiveVotes(e, r);
@@ -28370,12 +28370,12 @@ function al({
28370
28370
  }).catch(() => {
28371
28371
  });
28372
28372
  }, [e, r, U]);
28373
- const pe = E && !!p && A.some((Ie) => Ie.voter.toLowerCase() === p.toLowerCase()), ee = (Ie, ne) => {
28373
+ const pe = E && !!p && A.some((Ie) => Ie.voter.toLowerCase() === p.toLowerCase()), ee = (Ie, ae) => {
28374
28374
  if (!E && Ie !== "Comment") {
28375
28375
  be(`Please Login to ${Ie}`);
28376
28376
  return;
28377
28377
  }
28378
- ne();
28378
+ ae();
28379
28379
  }, te = () => {
28380
28380
  ee("Upvote", () => {
28381
28381
  if (pe) {
@@ -28391,8 +28391,8 @@ function al({
28391
28391
  await Promise.resolve(d(Ie)), M(!1), be("Vote submitted successfully"), await B(), setTimeout(() => {
28392
28392
  B();
28393
28393
  }, 4e3);
28394
- } catch (ne) {
28395
- const de = ne instanceof Error ? ne.message : "Failed to upvote";
28394
+ } catch (ae) {
28395
+ const de = ae instanceof Error ? ae.message : "Failed to upvote";
28396
28396
  be(de);
28397
28397
  } finally {
28398
28398
  se(!1);
@@ -28429,11 +28429,11 @@ function al({
28429
28429
  }) : (navigator.clipboard?.writeText(
28430
28430
  `https://peakd.com/@${e}/${r}`
28431
28431
  ), be("Link copied to clipboard"));
28432
- }, Be = async (Ie, ne, de) => {
28432
+ }, Be = async (Ie, ae, de) => {
28433
28433
  if (f)
28434
28434
  try {
28435
28435
  await Promise.resolve(
28436
- f(Ie, ne, de)
28436
+ f(Ie, ae, de)
28437
28437
  ), be("Comment posted");
28438
28438
  } catch (ve) {
28439
28439
  const fe = ve instanceof Error ? ve.message : "Failed to post comment";
@@ -28617,21 +28617,21 @@ function tf({
28617
28617
  onTipComment: w,
28618
28618
  onReportComment: _
28619
28619
  }) {
28620
- const [k, v] = L(!1), [p, E] = L(!0), [A, S] = L(!1), [T, D] = L(!1), [P, M] = L(!1), [H, V] = L(""), [z, j] = L(!1), [Y, G] = L(""), ie = (ne) => {
28621
- V(ne), M(!0), setTimeout(() => M(!1), 2500);
28620
+ const [k, v] = L(!1), [p, E] = L(!0), [A, S] = L(!1), [T, D] = L(!1), [P, M] = L(!1), [H, V] = L(""), [z, j] = L(!1), [Y, G] = L(""), ie = (ae) => {
28621
+ V(ae), M(!0), setTimeout(() => M(!1), 2500);
28622
28622
  }, se = Ot(() => {
28623
28623
  if (!o) return !1;
28624
- const ne = o.toLowerCase();
28624
+ const ae = o.toLowerCase();
28625
28625
  return (e.active_votes || []).some(
28626
- (de) => (de.voter || "").toLowerCase() === ne
28626
+ (de) => (de.voter || "").toLowerCase() === ae
28627
28627
  );
28628
28628
  }, [e.active_votes, o]), be = e.depth || 0;
28629
28629
  let q = r.filter(
28630
- (ne) => ne.parent_author === e.author && ne.parent_permlink === e.permlink && (typeof ne.depth != "number" || ne.depth === be + 1)
28630
+ (ae) => ae.parent_author === e.author && ae.parent_permlink === e.permlink && (typeof ae.depth != "number" || ae.depth === be + 1)
28631
28631
  );
28632
28632
  if (q.length === 0 && Array.isArray(e.replies) && e.replies.length > 0) {
28633
- const ne = new Set(e.replies);
28634
- q = r.filter((de) => ne.has(`${de.author}/${de.permlink}`));
28633
+ const ae = new Set(e.replies);
28634
+ q = r.filter((de) => ae.has(`${de.author}/${de.permlink}`));
28635
28635
  }
28636
28636
  const U = q.length > 0, B = d >= Ub, pe = i === `${e.author}/${e.permlink}`;
28637
28637
  Ee(() => {
@@ -28650,8 +28650,8 @@ function tf({
28650
28650
  ipfsGateway: "https://ipfs.3speak.tv",
28651
28651
  assetsWidth: 640,
28652
28652
  assetsHeight: 480,
28653
- usertagUrlFn: (ne) => `https://hreplier.sagarkothari88.one/#/@${ne}`,
28654
- hashtagUrlFn: (ne) => `https://peakd.com/created/${ne}`,
28653
+ usertagUrlFn: (ae) => `https://hreplier.sagarkothari88.one/#/@${ae}`,
28654
+ hashtagUrlFn: (ae) => `https://peakd.com/created/${ae}`,
28655
28655
  convertHiveUrls: !0
28656
28656
  });
28657
28657
  } catch {
@@ -28660,24 +28660,24 @@ function tf({
28660
28660
  }, []), oe = Ot(() => {
28661
28661
  if (!ke || !le) return "";
28662
28662
  try {
28663
- let ne = le(ke);
28664
- return ne = ne.replace(
28663
+ let ae = le(ke);
28664
+ return ae = ae.replace(
28665
28665
  /https:\/\/3speak\.tv\/embed\?v=([^"&\s]+)/gi,
28666
28666
  (de, ve) => `https://play.3speak.tv/embed?v=${ve}&mode=iframe&noscroll=1`
28667
- ), ne;
28667
+ ), ae;
28668
28668
  } catch {
28669
28669
  return "";
28670
28670
  }
28671
28671
  }, [ke, le]), Ne = e.stats?.total_votes || e.net_votes || 0, De = Ot(() => {
28672
28672
  if (e.payout && e.payout > 0) return e.payout.toFixed(3);
28673
- const ne = parseFloat(String(e.pending_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0;
28674
- if (ne > 0) return ne.toFixed(3);
28673
+ const ae = parseFloat(String(e.pending_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0;
28674
+ if (ae > 0) return ae.toFixed(3);
28675
28675
  const de = parseFloat(String(e.author_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, ve = parseFloat(String(e.curator_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, fe = de + ve;
28676
28676
  return fe > 0 ? fe.toFixed(3) : "";
28677
- }, [e.payout, e.pending_payout_value, e.author_payout_value, e.curator_payout_value]), Re = async (ne) => {
28677
+ }, [e.payout, e.pending_payout_value, e.author_payout_value, e.curator_payout_value]), Re = async (ae) => {
28678
28678
  if (l) {
28679
28679
  try {
28680
- await Promise.resolve(l(e.author, e.permlink, ne)), D(!0), S(!1), setTimeout(() => {
28680
+ await Promise.resolve(l(e.author, e.permlink, ae)), D(!0), S(!1), setTimeout(() => {
28681
28681
  f?.(), ie("Vote submitted successfully!");
28682
28682
  }, 3e3);
28683
28683
  } catch (de) {
@@ -28693,7 +28693,7 @@ function tf({
28693
28693
  await Pt.handleUpvote({
28694
28694
  author: e.author,
28695
28695
  permlink: e.permlink,
28696
- weight: Math.round(ne * 100),
28696
+ weight: Math.round(ae * 100),
28697
28697
  authToken: c
28698
28698
  }), D(!0), S(!1), setTimeout(() => {
28699
28699
  f?.(), ie("Vote submitted successfully!");
@@ -28727,8 +28727,8 @@ function tf({
28727
28727
  src: `https://images.hive.blog/u/${e.author}/avatar`,
28728
28728
  alt: e.author,
28729
28729
  className: "w-6 h-6 md:w-7 md:h-7 rounded-full flex-shrink-0 bg-gray-700",
28730
- onError: (ne) => {
28731
- ne.target.src = `https://ui-avatars.com/api/?name=${e.author}&background=random`;
28730
+ onError: (ae) => {
28731
+ ae.target.src = `https://ui-avatars.com/api/?name=${e.author}&background=random`;
28732
28732
  }
28733
28733
  }
28734
28734
  ),
@@ -28754,15 +28754,15 @@ function tf({
28754
28754
  ] }),
28755
28755
  !k && /* @__PURE__ */ m(It, { children: [
28756
28756
  /* @__PURE__ */ t("div", { className: "prose prose-sm prose-invert max-w-none mb-2 text-gray-200 text-left prose-a:text-blue-400 [&>*]:text-left ml-7 md:ml-9", children: oe ? /* @__PURE__ */ t("div", { className: "hive-post-body", dangerouslySetInnerHTML: { __html: oe } }) : /* @__PURE__ */ t("p", { className: "text-gray-400 text-sm italic", children: "No content available." }) }),
28757
- !je && K.length > 0 && /* @__PURE__ */ t("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-2 mb-2 ml-7 md:ml-9", children: K.map((ne, de) => /* @__PURE__ */ t(
28757
+ !je && K.length > 0 && /* @__PURE__ */ t("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-2 mb-2 ml-7 md:ml-9", children: K.map((ae, de) => /* @__PURE__ */ t(
28758
28758
  "img",
28759
28759
  {
28760
- src: ne,
28760
+ src: ae,
28761
28761
  alt: `image-${de}`,
28762
28762
  className: "max-w-full h-auto rounded-lg cursor-pointer hover:opacity-90 transition-opacity",
28763
- onClick: () => window.open(ne, "_blank")
28763
+ onClick: () => window.open(ae, "_blank")
28764
28764
  },
28765
- ne + de
28765
+ ae + de
28766
28766
  )) }),
28767
28767
  /* @__PURE__ */ t("div", { className: "ml-7 md:ml-9 text-xs", children: /* @__PURE__ */ m("div", { className: "flex items-center flex-wrap gap-x-3 gap-y-1.5", children: [
28768
28768
  /* @__PURE__ */ m(
@@ -28859,8 +28859,8 @@ function tf({
28859
28859
  src: `https://images.hive.blog/u/${o}/avatar`,
28860
28860
  alt: o,
28861
28861
  className: "w-6 h-6 rounded-full flex-shrink-0 bg-gray-700 border border-gray-600",
28862
- onError: (ne) => {
28863
- ne.target.src = `https://ui-avatars.com/api/?name=${o}&background=random`;
28862
+ onError: (ae) => {
28863
+ ae.target.src = `https://ui-avatars.com/api/?name=${o}&background=random`;
28864
28864
  }
28865
28865
  }
28866
28866
  ),
@@ -28876,8 +28876,8 @@ function tf({
28876
28876
  src: `https://images.hive.blog/u/${e.author}/avatar`,
28877
28877
  alt: e.author,
28878
28878
  className: "w-6 h-6 rounded-full flex-shrink-0 bg-gray-700 border border-gray-600",
28879
- onError: (ne) => {
28880
- ne.target.src = `https://ui-avatars.com/api/?name=${e.author}&background=random`;
28879
+ onError: (ae) => {
28880
+ ae.target.src = `https://ui-avatars.com/api/?name=${e.author}&background=random`;
28881
28881
  }
28882
28882
  }
28883
28883
  ),
@@ -28900,7 +28900,7 @@ function tf({
28900
28900
  /* @__PURE__ */ t(
28901
28901
  Zi,
28902
28902
  {
28903
- onSubmit: (ne) => a(e.author, e.permlink, ne),
28903
+ onSubmit: (ae) => a(e.author, e.permlink, ae),
28904
28904
  onCancel: s,
28905
28905
  currentUser: o,
28906
28906
  parentAuthor: e.author,
@@ -28929,8 +28929,8 @@ function tf({
28929
28929
  src: `https://images.hive.blog/u/${o}/avatar`,
28930
28930
  alt: o,
28931
28931
  className: "w-6 h-6 rounded-full flex-shrink-0 bg-gray-700 border border-gray-600",
28932
- onError: (ne) => {
28933
- ne.target.src = `https://ui-avatars.com/api/?name=${o}&background=random`;
28932
+ onError: (ae) => {
28933
+ ae.target.src = `https://ui-avatars.com/api/?name=${o}&background=random`;
28934
28934
  }
28935
28935
  }
28936
28936
  ),
@@ -28946,8 +28946,8 @@ function tf({
28946
28946
  src: `https://images.hive.blog/u/${e.author}/avatar`,
28947
28947
  alt: e.author,
28948
28948
  className: "w-6 h-6 rounded-full flex-shrink-0 bg-gray-700 border border-gray-600",
28949
- onError: (ne) => {
28950
- ne.target.src = `https://ui-avatars.com/api/?name=${e.author}&background=random`;
28949
+ onError: (ae) => {
28950
+ ae.target.src = `https://ui-avatars.com/api/?name=${e.author}&background=random`;
28951
28951
  }
28952
28952
  }
28953
28953
  ),
@@ -28972,7 +28972,7 @@ function tf({
28972
28972
  /* @__PURE__ */ t(
28973
28973
  Zi,
28974
28974
  {
28975
- onSubmit: (ne) => a(e.author, e.permlink, ne),
28975
+ onSubmit: (ae) => a(e.author, e.permlink, ae),
28976
28976
  onCancel: s,
28977
28977
  currentUser: o,
28978
28978
  parentAuthor: e.author,
@@ -28993,17 +28993,17 @@ function tf({
28993
28993
  ] })
28994
28994
  ] }),
28995
28995
  k && (() => {
28996
- const ne = ke.replace(/<[^>]*>/g, "").replace(/!\[[^\]]*\]\([^)]*\)/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[#*_~`>]/g, "").replace(/\s+/g, " ").trim();
28996
+ const ae = ke.replace(/<[^>]*>/g, "").replace(/!\[[^\]]*\]\([^)]*\)/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[#*_~`>]/g, "").replace(/\s+/g, " ").trim();
28997
28997
  return /* @__PURE__ */ m("p", { className: "text-xs text-gray-500 ml-7 md:ml-9 truncate", children: [
28998
- ne.slice(0, 120),
28999
- ne.length > 120 ? "…" : ""
28998
+ ae.slice(0, 120),
28999
+ ae.length > 120 ? "…" : ""
29000
29000
  ] });
29001
29001
  })()
29002
29002
  ] }),
29003
- !k && U && p && Ie && /* @__PURE__ */ t("div", { children: q.map((ne) => /* @__PURE__ */ t(
29003
+ !k && U && p && Ie && /* @__PURE__ */ t("div", { children: q.map((ae) => /* @__PURE__ */ t(
29004
29004
  tf,
29005
29005
  {
29006
- comment: ne,
29006
+ comment: ae,
29007
29007
  allComments: r,
29008
29008
  onReply: n,
29009
29009
  onCancelReply: s,
@@ -29024,7 +29024,7 @@ function tf({
29024
29024
  onTipComment: w,
29025
29025
  onReportComment: _
29026
29026
  },
29027
- ne.permlink
29027
+ ae.permlink
29028
29028
  )) }),
29029
29029
  !k && U && p && B && !z && /* @__PURE__ */ t("div", { className: "ml-3 md:ml-6 py-2 pl-3 md:pl-4 border-l-2 border-gray-700/50", children: /* @__PURE__ */ m(
29030
29030
  "button",
@@ -29331,10 +29331,19 @@ function s2({
29331
29331
  let ue = K(P.body);
29332
29332
  return ue = ue.replace(
29333
29333
  /https:\/\/3speak\.tv\/embed\?v=([^"&\s]+)/gi,
29334
- (Ie, ne) => `https://play.3speak.tv/embed?v=${ne}&mode=iframe&noscroll=1`
29334
+ (Ie, ae) => `https://play.3speak.tv/embed?v=${ae}&mode=iframe&noscroll=1`
29335
+ ), ue = ue.replace(
29336
+ /(<iframe\s[^>]*src="https:\/\/play\.3speak\.tv\/embed[^"]*"[^>]*><\/iframe>)/gi,
29337
+ '<div class="threeSpeakWrapper">$1</div>'
29338
+ ), ue = ue.replace(
29339
+ /<iframe\s[^>]*src="(https:\/\/audio\.3speak\.tv\/play\?[^"]*)"[^>]*>(?:<\/iframe>)?/gi,
29340
+ (Ie, ae) => {
29341
+ let de = ae;
29342
+ return de.includes("mode=minimal") || (de += "&mode=minimal"), de.includes("iframe=1") || (de += "&iframe=1"), `<div class="audioWrapper"><iframe src="${de}" scrolling="no" frameborder="0" allow="autoplay"></iframe></div>`;
29343
+ }
29335
29344
  ), ue = ue.replace(
29336
29345
  /<img\s([^>]*?)alt="([^"]+)"([^>]*?)\/?\s*>/gi,
29337
- (Ie, ne, de, ve) => `<figure class="hive-img-figure">${`<img ${ne}alt="${de}"${ve}>`}<figcaption>${de}</figcaption></figure>`
29346
+ (Ie, ae, de, ve) => `<figure class="hive-img-figure">${`<img ${ae}alt="${de}"${ve}>`}<figcaption>${de}</figcaption></figure>`
29338
29347
  ), ue;
29339
29348
  } catch {
29340
29349
  return "";
@@ -29368,16 +29377,16 @@ function s2({
29368
29377
  (async () => {
29369
29378
  if (e)
29370
29379
  try {
29371
- const ne = (await Se.getProfile(e))?.result;
29372
- if (!ne) return;
29380
+ const ae = (await Se.getProfile(e))?.result;
29381
+ if (!ae) return;
29373
29382
  V({
29374
- username: ne.name,
29375
- name: ne.metadata?.profile?.name,
29376
- profileImage: ne.metadata?.profile?.profile_image,
29377
- followersCount: ne.stats?.followers || 0,
29378
- followingCount: ne.stats?.following || 0,
29379
- postsCount: ne.post_count || 0,
29380
- reputation: ne.reputation || 0
29383
+ username: ae.name,
29384
+ name: ae.metadata?.profile?.name,
29385
+ profileImage: ae.metadata?.profile?.profile_image,
29386
+ followersCount: ae.stats?.followers || 0,
29387
+ followingCount: ae.stats?.following || 0,
29388
+ postsCount: ae.post_count || 0,
29389
+ reputation: ae.reputation || 0
29381
29390
  });
29382
29391
  } catch {
29383
29392
  }
@@ -29385,8 +29394,8 @@ function s2({
29385
29394
  }, [e]);
29386
29395
  const De = (ue) => {
29387
29396
  if (!ue) return 0;
29388
- const Ie = typeof ue == "string" ? ue : String(ue), ne = parseFloat(Ie.replace(/[^\d.]/g, ""));
29389
- return isNaN(ne) ? 0 : ne;
29397
+ const Ie = typeof ue == "string" ? ue : String(ue), ae = parseFloat(Ie.replace(/[^\d.]/g, ""));
29398
+ return isNaN(ae) ? 0 : ae;
29390
29399
  }, Re = Ot(() => {
29391
29400
  if (!P) return "";
29392
29401
  if (P.payout && P.payout > 0) return `${P.payout.toFixed(3)}`;
@@ -29394,13 +29403,13 @@ function s2({
29394
29403
  if (ue > 0) return `${ue.toFixed(3)}`;
29395
29404
  const Ie = De(P.total_payout_value);
29396
29405
  if (Ie > 0) return `${Ie.toFixed(3)}`;
29397
- const ne = De(P.author_payout_value), de = De(P.curator_payout_value), ve = ne + de;
29406
+ const ae = De(P.author_payout_value), de = De(P.curator_payout_value), ve = ae + de;
29398
29407
  return ve > 0 ? `${ve.toFixed(3)}` : "0.000";
29399
29408
  }, [P]), Be = Ot(() => {
29400
29409
  if (!P) return "";
29401
- const ue = [], Ie = De(P.pending_payout_value), ne = De(P.author_payout_value), de = De(P.curator_payout_value), ve = P.payout && P.payout > 0 ? P.payout : Ie > 0 ? Ie : ne + de, fe = P.percent_hbd ?? 1e4;
29410
+ const ue = [], Ie = De(P.pending_payout_value), ae = De(P.author_payout_value), de = De(P.curator_payout_value), ve = P.payout && P.payout > 0 ? P.payout : Ie > 0 ? Ie : ae + de, fe = P.percent_hbd ?? 1e4;
29402
29411
  if (fe === 0 ? ue.push("Hive Rewards Payout 100% Powered Up") : ue.push(`Hive Rewards Payout (${(fe / 200).toFixed(0)}%/${100 - fe / 200}%)`), P.is_paidout)
29403
- ue.push("Past payouts:"), ne > 0 && ue.push(`Author: $${ne.toFixed(3)}`), de > 0 && ue.push(`Curator: $${de.toFixed(3)}`), ue.push(`Total: $${ve.toFixed(3)}`);
29412
+ ue.push("Past payouts:"), ae > 0 && ue.push(`Author: $${ae.toFixed(3)}`), de > 0 && ue.push(`Curator: $${de.toFixed(3)}`), ue.push(`Total: $${ve.toFixed(3)}`);
29404
29413
  else {
29405
29414
  if (P.payout_at) {
29406
29415
  const Ae = new Date(P.payout_at).getTime() - Date.now();
@@ -29578,7 +29587,7 @@ function s2({
29578
29587
  }
29579
29588
  ) : /* @__PURE__ */ t("p", { className: "text-gray-400 text-sm italic", children: "No content available." }) }),
29580
29589
  oe?.content_type === "poll" && (() => {
29581
- const ue = ie?.max_choices_voted ?? oe?.max_choices_voted ?? 1, Ie = ue > 1, ne = ie?.end_time ? new Date(ie.end_time).getTime() : (oe?.end_time ?? 0) * 1e3, de = ne > 0 && Date.now() > ne, ve = ke.length > 0, fe = n ? ie?.poll_voters?.find((Qe) => Qe.name === n) : void 0, Ae = fe?.choices?.length ? fe.choices : fe?.choice_num != null ? [fe.choice_num] : [], Te = ve || Ae.length > 0, Ve = ie?.allow_vote_changes ?? oe?.allow_vote_changes ?? !1, Je = ve ? ke : Ae, bt = !!n && !de && !!S && (!Te || Ve), At = Te && Ve && !ve, yt = ie?.poll_choices ?? (oe?.choices ?? []).map((Qe, it) => ({ choice_num: it + 1, choice_text: Qe, votes: null })), Lt = yt.reduce((Qe, it) => Qe + (it.votes?.total_votes ?? 0), 0), Mt = Ie || At, $t = async (Qe) => {
29590
+ const ue = ie?.max_choices_voted ?? oe?.max_choices_voted ?? 1, Ie = ue > 1, ae = ie?.end_time ? new Date(ie.end_time).getTime() : (oe?.end_time ?? 0) * 1e3, de = ae > 0 && Date.now() > ae, ve = ke.length > 0, fe = n ? ie?.poll_voters?.find((Qe) => Qe.name === n) : void 0, Ae = fe?.choices?.length ? fe.choices : fe?.choice_num != null ? [fe.choice_num] : [], Te = ve || Ae.length > 0, Ve = ie?.allow_vote_changes ?? oe?.allow_vote_changes ?? !1, Je = ve ? ke : Ae, bt = !!n && !de && !!S && (!Te || Ve), At = Te && Ve && !ve, yt = ie?.poll_choices ?? (oe?.choices ?? []).map((Qe, it) => ({ choice_num: it + 1, choice_text: Qe, votes: null })), Lt = yt.reduce((Qe, it) => Qe + (it.votes?.total_votes ?? 0), 0), Mt = Ie || At, $t = async (Qe) => {
29582
29591
  if (!(!bt || ee))
29583
29592
  if (Mt)
29584
29593
  pe((it) => it.includes(Qe) ? it.filter((St) => St !== Qe) : it.length >= ue ? it : [...it, Qe]);
@@ -29604,7 +29613,7 @@ function s2({
29604
29613
  /* @__PURE__ */ m("div", { className: "flex items-center gap-2 px-4 pt-4 pb-2", children: [
29605
29614
  /* @__PURE__ */ t(Nf, { className: "w-4 h-4 text-blue-400 flex-shrink-0" }),
29606
29615
  /* @__PURE__ */ t("span", { className: "text-xs font-semibold text-blue-400 uppercase tracking-wide", children: "Poll" }),
29607
- /* @__PURE__ */ t("span", { className: `ml-auto text-[11px] px-2 py-0.5 rounded-full font-medium ${de ? "bg-gray-700 text-gray-400" : "bg-green-900/50 text-green-400"}`, children: de ? "Ended" : `Ends in ${Math.ceil((ne - Date.now()) / (1e3 * 60 * 60 * 24))}d` })
29616
+ /* @__PURE__ */ t("span", { className: `ml-auto text-[11px] px-2 py-0.5 rounded-full font-medium ${de ? "bg-gray-700 text-gray-400" : "bg-green-900/50 text-green-400"}`, children: de ? "Ended" : `Ends in ${Math.ceil((ae - Date.now()) / (1e3 * 60 * 60 * 24))}d` })
29608
29617
  ] }),
29609
29618
  /* @__PURE__ */ t("p", { className: "px-4 pb-3 text-sm font-semibold text-white", children: ie?.question ?? oe?.question }),
29610
29619
  bt && Mt && /* @__PURE__ */ m("p", { className: "px-4 pb-2 text-[11px] text-gray-400", children: [
@@ -32395,7 +32404,7 @@ const f2 = ({
32395
32404
  isFavourited: j = !1,
32396
32405
  favouriteCount: Y = 0
32397
32406
  }) => {
32398
- const [G, ie] = L(null), [se, be] = L(!0), [q, U] = L(null), [B, pe] = L("blogs"), [ee, te] = L([]), [ke, je] = L([]), [K, le] = L([]), [oe, Ne] = L([]), [De, Re] = L([]), [Be, ue] = L(null), [Ie, ne] = L([]), [de, ve] = L([]), [fe, Ae] = L({ totalHbd: 0, totalHpEq: 0 }), [Te, Ve] = L([]), [Je, bt] = L({ totalHp: 0, totalHbd: 0 }), [At, yt] = L(!1), [Lt, Mt] = L([]), [$t, Gt] = L([]), [Qe, it] = L([]), [St, Jt] = L([]), [Ct, Yt] = L(null), [C, O] = L(100), [F, Z] = L(!1), [ye, Me] = L(!1), [Xe, qe] = L({
32407
+ const [G, ie] = L(null), [se, be] = L(!0), [q, U] = L(null), [B, pe] = L("blogs"), [ee, te] = L([]), [ke, je] = L([]), [K, le] = L([]), [oe, Ne] = L([]), [De, Re] = L([]), [Be, ue] = L(null), [Ie, ae] = L([]), [de, ve] = L([]), [fe, Ae] = L({ totalHbd: 0, totalHpEq: 0 }), [Te, Ve] = L([]), [Je, bt] = L({ totalHp: 0, totalHbd: 0 }), [At, yt] = L(!1), [Lt, Mt] = L([]), [$t, Gt] = L([]), [Qe, it] = L([]), [St, Jt] = L([]), [Ct, Yt] = L(null), [C, O] = L(100), [F, Z] = L(!1), [ye, Me] = L(!1), [Xe, qe] = L({
32399
32408
  blogs: !0,
32400
32409
  posts: !0,
32401
32410
  snaps: !0,
@@ -32451,7 +32460,7 @@ const f2 = ({
32451
32460
  if (Fe) {
32452
32461
  be(!0), U(null);
32453
32462
  try {
32454
- const [re, he, ae] = await Promise.all([
32463
+ const [re, he, ne] = await Promise.all([
32455
32464
  Se.getProfile(Fe),
32456
32465
  Se.getAccounts([Fe]),
32457
32466
  Se.getDynamicGlobalProperties()
@@ -32461,8 +32470,8 @@ const f2 = ({
32461
32470
  return;
32462
32471
  }
32463
32472
  let ct;
32464
- if (ae && Oe?.vesting_shares) {
32465
- const Bt = parseFloat(Oe.vesting_shares.split(" ")[0]), ht = parseFloat(ae.total_vesting_shares.split(" ")[0]), mr = parseFloat(ae.total_vesting_fund_hive.split(" ")[0]);
32473
+ if (ne && Oe?.vesting_shares) {
32474
+ const Bt = parseFloat(Oe.vesting_shares.split(" ")[0]), ht = parseFloat(ne.total_vesting_shares.split(" ")[0]), mr = parseFloat(ne.total_vesting_fund_hive.split(" ")[0]);
32466
32475
  ct = Bt / ht * mr;
32467
32476
  }
32468
32477
  let Ke;
@@ -32512,7 +32521,7 @@ const f2 = ({
32512
32521
  }
32513
32522
  })();
32514
32523
  }, [Fe, r]), Ee(() => {
32515
- te([]), je([]), Re([]), ue(null), ne([]), ve([]), Ae({ totalHbd: 0, totalHpEq: 0 }), Ve([]), bt({ totalHp: 0, totalHbd: 0 }), le([]), Ne([]), Mt([]), Gt([]);
32524
+ te([]), je([]), Re([]), ue(null), ae([]), ve([]), Ae({ totalHbd: 0, totalHpEq: 0 }), Ve([]), bt({ totalHp: 0, totalHbd: 0 }), le([]), Ne([]), Mt([]), Gt([]);
32516
32525
  const I = a && a.length > 0 ? a[0] : "blogs";
32517
32526
  pe(I), qe({ blogs: !0, posts: !0, snaps: !0, polls: !1, comments: !0, replies: !0, activities: !1, authorRewards: !1, curationRewards: !1, followers: !0, following: !0, wallet: !1, votingPower: !1, badges: !1, witnessVotes: !1 }), it([]), Jt([]), Yt(null), O(100);
32518
32527
  }, [Fe]), Ee(() => {
@@ -32523,75 +32532,75 @@ const f2 = ({
32523
32532
  try {
32524
32533
  switch (B) {
32525
32534
  case "blogs": {
32526
- const ae = dt(await Se.getUserBlogs(Fe, He, void 0, void 0, re));
32527
- te(ae), qe((xe) => ({ ...xe, blogs: ae.length >= He }));
32535
+ const ne = dt(await Se.getUserBlogs(Fe, He, void 0, void 0, re));
32536
+ te(ne), qe((xe) => ({ ...xe, blogs: ne.length >= He }));
32528
32537
  break;
32529
32538
  }
32530
32539
  case "posts": {
32531
- const ae = dt(await Se.getUserPosts(Fe, He, void 0, void 0, re));
32532
- je(ae), qe((xe) => ({ ...xe, posts: ae.length >= He }));
32540
+ const ne = dt(await Se.getUserPosts(Fe, He, void 0, void 0, re));
32541
+ je(ne), qe((xe) => ({ ...xe, posts: ne.length >= He }));
32533
32542
  break;
32534
32543
  }
32535
32544
  case "snaps": {
32536
- const { snaps: ae, nextStartId: xe } = await Se.getUserSnaps(Fe, void 0, r, re);
32537
- Re(dt(ae)), ue(xe), qe((Oe) => ({ ...Oe, snaps: xe !== null }));
32545
+ const { snaps: ne, nextStartId: xe } = await Se.getUserSnaps(Fe, void 0, r, re);
32546
+ Re(dt(ne)), ue(xe), qe((Oe) => ({ ...Oe, snaps: xe !== null }));
32538
32547
  break;
32539
32548
  }
32540
32549
  case "polls": {
32541
- const ae = dt(await Se.getUserPolls(Fe, re));
32542
- ne(ae), qe((xe) => ({ ...xe, polls: !1 }));
32550
+ const ne = dt(await Se.getUserPolls(Fe, re));
32551
+ ae(ne), qe((xe) => ({ ...xe, polls: !1 }));
32543
32552
  break;
32544
32553
  }
32545
32554
  case "comments": {
32546
- const ae = dt(await Se.getUserComments(Fe, He, void 0, void 0, re));
32547
- le(ae), qe((xe) => ({ ...xe, comments: ae.length >= He }));
32555
+ const ne = dt(await Se.getUserComments(Fe, He, void 0, void 0, re));
32556
+ le(ne), qe((xe) => ({ ...xe, comments: ne.length >= He }));
32548
32557
  break;
32549
32558
  }
32550
32559
  case "replies": {
32551
- const ae = dt(await Se.getUserReplies(Fe, He, void 0, void 0, re));
32552
- Ne(ae), qe((xe) => ({ ...xe, replies: ae.length >= He }));
32560
+ const ne = dt(await Se.getUserReplies(Fe, He, void 0, void 0, re));
32561
+ Ne(ne), qe((xe) => ({ ...xe, replies: ne.length >= He }));
32553
32562
  break;
32554
32563
  }
32555
32564
  case "followers": {
32556
- const ae = await Se.getFollowers(Fe, null, Nt, re);
32557
- Mt(ae), qe((xe) => ({ ...xe, followers: ae.length >= Nt }));
32565
+ const ne = await Se.getFollowers(Fe, null, Nt, re);
32566
+ Mt(ne), qe((xe) => ({ ...xe, followers: ne.length >= Nt }));
32558
32567
  break;
32559
32568
  }
32560
32569
  case "following": {
32561
- const ae = await Se.getFollowing(Fe, null, Nt, re);
32562
- Gt(ae), qe((xe) => ({ ...xe, following: ae.length >= Nt }));
32570
+ const ne = await Se.getFollowing(Fe, null, Nt, re);
32571
+ Gt(ne), qe((xe) => ({ ...xe, following: ne.length >= Nt }));
32563
32572
  break;
32564
32573
  }
32565
32574
  case "authorRewards": {
32566
32575
  yt(!0);
32567
- const ae = await Se.getPendingAuthorRewards(
32576
+ const ne = await Se.getPendingAuthorRewards(
32568
32577
  Fe,
32569
32578
  (xe, Oe, ct) => {
32570
32579
  re.aborted || (ve([...xe]), Ae({ totalHbd: Oe, totalHpEq: ct }), Z(!1));
32571
32580
  },
32572
32581
  re
32573
32582
  );
32574
- ve(ae.rows), Ae({ totalHbd: ae.totalHbd, totalHpEq: ae.totalHpEq }), yt(!1);
32583
+ ve(ne.rows), Ae({ totalHbd: ne.totalHbd, totalHpEq: ne.totalHpEq }), yt(!1);
32575
32584
  break;
32576
32585
  }
32577
32586
  case "curationRewards": {
32578
32587
  yt(!0);
32579
- const ae = await Se.getPendingCurationRewards(
32588
+ const ne = await Se.getPendingCurationRewards(
32580
32589
  Fe,
32581
32590
  (xe, Oe, ct) => {
32582
32591
  re.aborted || (Ve([...xe]), bt({ totalHp: Oe, totalHbd: ct }), Z(!1));
32583
32592
  },
32584
32593
  re
32585
32594
  );
32586
- Ve(ae.rows), bt({ totalHp: ae.totalHp, totalHbd: ae.totalHbd }), yt(!1);
32595
+ Ve(ne.rows), bt({ totalHp: ne.totalHp, totalHbd: ne.totalHbd }), yt(!1);
32587
32596
  break;
32588
32597
  }
32589
32598
  case "votingPower": {
32590
- const [ae, , xe] = await Promise.all([
32599
+ const [ne, , xe] = await Promise.all([
32591
32600
  Se.getAccounts([Fe], re),
32592
32601
  Se.getDynamicGlobalProperties(re),
32593
32602
  Se.getFeedHistory(re)
32594
- ]), Oe = ae?.[0];
32603
+ ]), Oe = ne?.[0];
32595
32604
  if (Oe) {
32596
32605
  const Ke = ($) => parseFloat(String($).split(" ")[0]) || 0, ft = (Ke(Oe.vesting_shares) + Ke(Oe.received_vesting_shares) - Ke(Oe.delegated_vesting_shares)) * 1e6, tt = Math.floor(Date.now() / 1e3) - Oe.voting_manabar.last_update_time;
32597
32606
  let Ft = parseFloat(String(Oe.voting_manabar.current_mana)) + tt * ft / 432e3;
@@ -32642,12 +32651,12 @@ const f2 = ({
32642
32651
  break;
32643
32652
  }
32644
32653
  case "badges": {
32645
- let ae = [], xe = null, Oe = !0;
32654
+ let ne = [], xe = null, Oe = !0;
32646
32655
  for (; Oe; ) {
32647
32656
  const Ke = await Se.getFollowers(Fe, xe, 1e3, re);
32648
- ae = [...ae, ...Ke], Ke.length < 1e3 ? Oe = !1 : xe = Ke[Ke.length - 1].follower;
32657
+ ne = [...ne, ...Ke], Ke.length < 1e3 ? Oe = !1 : xe = Ke[Ke.length - 1].follower;
32649
32658
  }
32650
- const ct = ae.map((Ke) => Ke.follower).filter((Ke) => Ke.startsWith("badge-"));
32659
+ const ct = ne.map((Ke) => Ke.follower).filter((Ke) => Ke.startsWith("badge-"));
32651
32660
  it(ct);
32652
32661
  break;
32653
32662
  }
@@ -32657,9 +32666,9 @@ const f2 = ({
32657
32666
  break;
32658
32667
  }
32659
32668
  }
32660
- } catch (ae) {
32661
- if (ae?.name === "AbortError") return;
32662
- console.error(`Error fetching ${B}:`, ae);
32669
+ } catch (ne) {
32670
+ if (ne?.name === "AbortError") return;
32671
+ console.error(`Error fetching ${B}:`, ne);
32663
32672
  } finally {
32664
32673
  re.aborted || Z(!1);
32665
32674
  }
@@ -32677,14 +32686,14 @@ const f2 = ({
32677
32686
  const I = ee[ee.length - 1];
32678
32687
  if (!I) break;
32679
32688
  const re = await Se.getUserBlogs(Fe, He, I.author, I.permlink), he = dt(re.length > 0 && re[0].permlink === I.permlink ? re.slice(1) : re);
32680
- te((ae) => [...ae, ...he]), qe((ae) => ({ ...ae, blogs: he.length >= He - 1 }));
32689
+ te((ne) => [...ne, ...he]), qe((ne) => ({ ...ne, blogs: he.length >= He - 1 }));
32681
32690
  break;
32682
32691
  }
32683
32692
  case "posts": {
32684
32693
  const I = ke[ke.length - 1];
32685
32694
  if (!I) break;
32686
32695
  const re = await Se.getUserPosts(Fe, He, I.author, I.permlink), he = dt(re.length > 0 && re[0].permlink === I.permlink ? re.slice(1) : re);
32687
- je((ae) => [...ae, ...he]), qe((ae) => ({ ...ae, posts: he.length >= He - 1 }));
32696
+ je((ne) => [...ne, ...he]), qe((ne) => ({ ...ne, posts: he.length >= He - 1 }));
32688
32697
  break;
32689
32698
  }
32690
32699
  case "snaps": {
@@ -32697,28 +32706,28 @@ const f2 = ({
32697
32706
  const I = K[K.length - 1];
32698
32707
  if (!I) break;
32699
32708
  const re = await Se.getUserComments(Fe, He, I.author, I.permlink), he = dt(re.length > 0 && re[0].permlink === I.permlink ? re.slice(1) : re);
32700
- le((ae) => [...ae, ...he]), qe((ae) => ({ ...ae, comments: he.length >= He - 1 }));
32709
+ le((ne) => [...ne, ...he]), qe((ne) => ({ ...ne, comments: he.length >= He - 1 }));
32701
32710
  break;
32702
32711
  }
32703
32712
  case "replies": {
32704
32713
  const I = oe[oe.length - 1];
32705
32714
  if (!I) break;
32706
32715
  const re = await Se.getUserReplies(Fe, He, I.author, I.permlink), he = dt(re.length > 0 && re[0].permlink === I.permlink ? re.slice(1) : re);
32707
- Ne((ae) => [...ae, ...he]), qe((ae) => ({ ...ae, replies: he.length >= He - 1 }));
32716
+ Ne((ne) => [...ne, ...he]), qe((ne) => ({ ...ne, replies: he.length >= He - 1 }));
32708
32717
  break;
32709
32718
  }
32710
32719
  case "followers": {
32711
32720
  const I = Lt[Lt.length - 1];
32712
32721
  if (!I) break;
32713
32722
  const re = await Se.getFollowers(Fe, I.follower, Nt), he = re.length > 0 && re[0].follower === I.follower ? re.slice(1) : re;
32714
- Mt((ae) => [...ae, ...he]), qe((ae) => ({ ...ae, followers: he.length >= Nt - 1 }));
32723
+ Mt((ne) => [...ne, ...he]), qe((ne) => ({ ...ne, followers: he.length >= Nt - 1 }));
32715
32724
  break;
32716
32725
  }
32717
32726
  case "following": {
32718
32727
  const I = $t[$t.length - 1];
32719
32728
  if (!I) break;
32720
32729
  const re = await Se.getFollowing(Fe, I.following, Nt), he = re.length > 0 && re[0].following === I.following ? re.slice(1) : re;
32721
- Gt((ae) => [...ae, ...he]), qe((ae) => ({ ...ae, following: he.length >= Nt - 1 }));
32730
+ Gt((ne) => [...ne, ...he]), qe((ne) => ({ ...ne, following: he.length >= Nt - 1 }));
32722
32731
  break;
32723
32732
  }
32724
32733
  }
@@ -32848,7 +32857,7 @@ const f2 = ({
32848
32857
  )
32849
32858
  ] }) });
32850
32859
  const zt = ({ images: I }) => {
32851
- const [re, he] = L(0), [ae, xe] = L(!1);
32860
+ const [re, he] = L(0), [ne, xe] = L(!1);
32852
32861
  return I.length === 0 ? null : /* @__PURE__ */ m(It, { children: [
32853
32862
  /* @__PURE__ */ m("div", { className: "relative w-16 flex-shrink-0 mt-1.5", children: [
32854
32863
  /* @__PURE__ */ t(
@@ -32901,7 +32910,7 @@ const f2 = ({
32901
32910
  )
32902
32911
  ] })
32903
32912
  ] }),
32904
- ae && /* @__PURE__ */ t(
32913
+ ne && /* @__PURE__ */ t(
32905
32914
  "div",
32906
32915
  {
32907
32916
  className: "fixed inset-0 z-[2000] bg-black/80 flex items-center justify-center p-4",
@@ -32963,7 +32972,7 @@ const f2 = ({
32963
32972
  )
32964
32973
  ] });
32965
32974
  }, dr = (I, re, he) => {
32966
- const ae = I.json_metadata?.image?.length ? I.json_metadata.image : [], xe = I.json_metadata?.description || (I.body ? Jd(I.body) : ""), Oe = I.payout ? I.payout.toFixed(3) : I.pending_payout_value ? I.pending_payout_value.replace(/[^\d.]/g, "") : "0.000", ct = Oe, Ke = [], et = I.percent_hbd ?? 1e4;
32975
+ const ne = I.json_metadata?.image?.length ? I.json_metadata.image : [], xe = I.json_metadata?.description || (I.body ? Jd(I.body) : ""), Oe = I.payout ? I.payout.toFixed(3) : I.pending_payout_value ? I.pending_payout_value.replace(/[^\d.]/g, "") : "0.000", ct = Oe, Ke = [], et = I.percent_hbd ?? 1e4;
32967
32976
  if (et === 0 ? Ke.push("Hive Rewards Payout 100% Powered Up") : Ke.push(`Hive Rewards Payout (${(et / 200).toFixed(0)}%/${100 - et / 200}%)`), I.is_paidout) {
32968
32977
  const tt = I.author_payout_value ? I.author_payout_value.replace(/[^\d.]/g, "") : "";
32969
32978
  Ke.push("Past payouts:"), Ke.push(`${Oe} Hive Rewards${tt ? ` (Author ${tt})` : ""}`);
@@ -33001,7 +33010,7 @@ const f2 = ({
33001
33010
  }
33002
33011
  }
33003
33012
  ),
33004
- /* @__PURE__ */ t(zt, { images: ae })
33013
+ /* @__PURE__ */ t(zt, { images: ne })
33005
33014
  ] }),
33006
33015
  /* @__PURE__ */ m("div", { className: "flex-1 min-w-0", children: [
33007
33016
  /* @__PURE__ */ m("div", { className: "flex items-center gap-2 mb-1", children: [
@@ -33271,8 +33280,8 @@ const f2 = ({
33271
33280
  }
33272
33281
  }, st = (I) => {
33273
33282
  if (!I || !isFinite(I) || I <= 0) return "—";
33274
- const re = Math.floor(I / 1e3), he = Math.floor(re / 60), ae = Math.floor(he / 60), xe = Math.floor(ae / 24);
33275
- return xe >= 1 ? `${xe}d ${ae % 24}h` : ae >= 1 ? `${ae}h ${he % 60}m` : `${Math.max(1, he)}m`;
33283
+ const re = Math.floor(I / 1e3), he = Math.floor(re / 60), ne = Math.floor(he / 60), xe = Math.floor(ne / 24);
33284
+ return xe >= 1 ? `${xe}d ${ne % 24}h` : ne >= 1 ? `${ne}h ${he % 60}m` : `${Math.max(1, he)}m`;
33276
33285
  }, Ge = (I, re = 3) => I == null || isNaN(I) ? "—" : Number(I).toLocaleString(void 0, { maximumFractionDigits: re, minimumFractionDigits: re }), nr = () => {
33277
33286
  if (F && de.length === 0) return Sr();
33278
33287
  if (de.length === 0 && !At)
@@ -33310,7 +33319,7 @@ const f2 = ({
33310
33319
  ] })
33311
33320
  ] })
33312
33321
  ] }),
33313
- de.map((he, ae) => /* @__PURE__ */ t(
33322
+ de.map((he, ne) => /* @__PURE__ */ t(
33314
33323
  "div",
33315
33324
  {
33316
33325
  className: "bg-gray-800 rounded-xl p-4 border border-gray-700 hover:border-gray-600 transition-colors cursor-pointer",
@@ -33346,7 +33355,7 @@ const f2 = ({
33346
33355
  ] })
33347
33356
  ] })
33348
33357
  },
33349
- `${he.author}-${he.permlink}-${ae}`
33358
+ `${he.author}-${he.permlink}-${ne}`
33350
33359
  )),
33351
33360
  At && /* @__PURE__ */ t("div", { className: "animate-pulse space-y-3", children: [1, 2].map((he) => /* @__PURE__ */ t("div", { className: "bg-gray-800 rounded-xl p-4 border border-gray-700", children: /* @__PURE__ */ m("div", { className: "flex items-start gap-3", children: [
33352
33361
  /* @__PURE__ */ t("div", { className: "w-7 h-7 bg-gray-700 rounded-lg" }),
@@ -33367,7 +33376,7 @@ const f2 = ({
33367
33376
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "No pending curation rewards" }),
33368
33377
  /* @__PURE__ */ t("p", { className: "text-gray-500 text-xs mt-1", children: "Rewards appear for posts you voted on with pending payouts" })
33369
33378
  ] });
33370
- const I = Te.filter((xe) => !xe.isComment).length, re = Te.length - I, he = Te.filter((xe) => xe.efficiency !== null), ae = he.length > 0 ? he.reduce((xe, Oe) => xe + (Oe.efficiency || 0), 0) / he.length : null;
33379
+ const I = Te.filter((xe) => !xe.isComment).length, re = Te.length - I, he = Te.filter((xe) => xe.efficiency !== null), ne = he.length > 0 ? he.reduce((xe, Oe) => xe + (Oe.efficiency || 0), 0) / he.length : null;
33371
33380
  return /* @__PURE__ */ m("div", { className: "space-y-3", children: [
33372
33381
  /* @__PURE__ */ m("div", { className: "bg-gradient-to-r from-blue-900/30 to-purple-900/30 rounded-xl p-4 border border-blue-700/40", children: [
33373
33382
  /* @__PURE__ */ m("div", { className: "flex items-center gap-2 mb-3", children: [
@@ -33394,10 +33403,10 @@ const f2 = ({
33394
33403
  Ge(Je.totalHbd)
33395
33404
  ] })
33396
33405
  ] }),
33397
- ae !== null && /* @__PURE__ */ m("div", { className: "bg-black/30 rounded-lg p-2.5", children: [
33406
+ ne !== null && /* @__PURE__ */ m("div", { className: "bg-black/30 rounded-lg p-2.5", children: [
33398
33407
  /* @__PURE__ */ t("p", { className: "text-[10px] text-gray-400 uppercase tracking-wider", children: "Avg Efficiency" }),
33399
- /* @__PURE__ */ m("p", { className: `text-lg font-bold ${ae >= 100 ? "text-emerald-400" : "text-amber-400"}`, children: [
33400
- ae.toFixed(1),
33408
+ /* @__PURE__ */ m("p", { className: `text-lg font-bold ${ne >= 100 ? "text-emerald-400" : "text-amber-400"}`, children: [
33409
+ ne.toFixed(1),
33401
33410
  "%"
33402
33411
  ] })
33403
33412
  ] })
@@ -33502,7 +33511,7 @@ const f2 = ({
33502
33511
  /* @__PURE__ */ t(Pl, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33503
33512
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "Voting power data unavailable" })
33504
33513
  ] });
33505
- const { maxMana: ae, rewardBalance: xe, recentClaims: Oe, feedPrice: ct } = Ct, Ke = C * 100, et = ae * 0.02 * (Ke / 1e4), ft = Oe > 0 ? et / Oe * xe : 0, tt = ft * ct, Ft = Ct.upvotePower < C * 2 / 100, ir = (ht, mr = 3) => isNaN(ht) ? "—" : ht.toLocaleString(void 0, { minimumFractionDigits: mr, maximumFractionDigits: mr }), Bt = [
33514
+ const { maxMana: ne, rewardBalance: xe, recentClaims: Oe, feedPrice: ct } = Ct, Ke = C * 100, et = ne * 0.02 * (Ke / 1e4), ft = Oe > 0 ? et / Oe * xe : 0, tt = ft * ct, Ft = Ct.upvotePower < C * 2 / 100, ir = (ht, mr = 3) => isNaN(ht) ? "—" : ht.toLocaleString(void 0, { minimumFractionDigits: mr, maximumFractionDigits: mr }), Bt = [
33506
33515
  { label: "Voting Power", value: Ct.upvotePower, color: "#10b981" },
33507
33516
  { label: "Downvote Power", value: Ct.downvotePower, color: "#f59e0b" },
33508
33517
  { label: "Resource Credits", value: Ct.resourceCredits, color: "#3b82f6" }
@@ -33579,29 +33588,29 @@ const f2 = ({
33579
33588
  return F ? br() : Qe.length === 0 ? /* @__PURE__ */ m("div", { className: "text-center py-12", children: [
33580
33589
  /* @__PURE__ */ t(Ka, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33581
33590
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "No badges found" })
33582
- ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: Qe.map((ae, xe) => Ar(ae, xe)) });
33591
+ ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: Qe.map((ne, xe) => Ar(ne, xe)) });
33583
33592
  if (B === "witnessVotes")
33584
33593
  return F ? br() : St.length === 0 ? /* @__PURE__ */ m("div", { className: "text-center py-12", children: [
33585
33594
  /* @__PURE__ */ t(Ol, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33586
33595
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "No witness votes found" })
33587
- ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: St.map((ae, xe) => Ar(ae, xe)) });
33596
+ ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: St.map((ne, xe) => Ar(ne, xe)) });
33588
33597
  if (F)
33589
33598
  return Xr();
33590
33599
  if (B === "followers")
33591
33600
  return Lt.length === 0 ? /* @__PURE__ */ m("div", { className: "text-center py-12", children: [
33592
33601
  /* @__PURE__ */ t(zr, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33593
33602
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "No followers found" })
33594
- ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: Lt.map((ae, xe) => Ar(ae.follower, xe)) });
33603
+ ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: Lt.map((ne, xe) => Ar(ne.follower, xe)) });
33595
33604
  if (B === "following")
33596
33605
  return $t.length === 0 ? /* @__PURE__ */ m("div", { className: "text-center py-12", children: [
33597
33606
  /* @__PURE__ */ t(zr, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33598
33607
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "Not following anyone" })
33599
- ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: $t.map((ae, xe) => Ar(ae.following, xe)) });
33608
+ ] }) : /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: $t.map((ne, xe) => Ar(ne.following, xe)) });
33600
33609
  if (B === "polls")
33601
33610
  return Ze.length === 0 ? /* @__PURE__ */ m("div", { className: "text-center py-12", children: [
33602
33611
  /* @__PURE__ */ t(Hi, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33603
33612
  /* @__PURE__ */ t("p", { className: "text-gray-400", children: "No polls found" })
33604
- ] }) : /* @__PURE__ */ t("div", { className: "space-y-3", children: Ze.map((ae) => Er(ae)) });
33613
+ ] }) : /* @__PURE__ */ t("div", { className: "space-y-3", children: Ze.map((ne) => Er(ne)) });
33605
33614
  const re = {
33606
33615
  blogs: { data: W, type: "blog", icon: Rr },
33607
33616
  posts: { data: Q, type: "post", icon: Rr },
@@ -33611,9 +33620,9 @@ const f2 = ({
33611
33620
  }[B];
33612
33621
  if (!re) return null;
33613
33622
  if (re.data.length === 0) {
33614
- const ae = re.icon;
33623
+ const ne = re.icon;
33615
33624
  return /* @__PURE__ */ m("div", { className: "text-center py-12", children: [
33616
- /* @__PURE__ */ t(ae, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33625
+ /* @__PURE__ */ t(ne, { className: "h-12 w-12 text-gray-500 mx-auto mb-3" }),
33617
33626
  /* @__PURE__ */ m("p", { className: "text-gray-400", children: [
33618
33627
  "No ",
33619
33628
  B,
@@ -33621,11 +33630,11 @@ const f2 = ({
33621
33630
  ] })
33622
33631
  ] });
33623
33632
  }
33624
- const he = (ae) => {
33625
- if (B === "snaps" && A) return () => A(ae.author, ae.permlink);
33626
- if ((B === "blogs" || B === "posts") && E) return () => E(ae.author, ae.permlink, ae.title);
33633
+ const he = (ne) => {
33634
+ if (B === "snaps" && A) return () => A(ne.author, ne.permlink);
33635
+ if ((B === "blogs" || B === "posts") && E) return () => E(ne.author, ne.permlink, ne.title);
33627
33636
  };
33628
- return /* @__PURE__ */ t("div", { className: "space-y-3", children: re.data.map((ae) => dr(ae, re.type, he(ae))) });
33637
+ return /* @__PURE__ */ t("div", { className: "space-y-3", children: re.data.map((ne) => dr(ne, re.type, he(ne))) });
33629
33638
  }, kt = [
33630
33639
  { id: "blogs", label: "Blogs", icon: Rr },
33631
33640
  { id: "posts", label: "Posts", icon: Rr },
@@ -33953,7 +33962,7 @@ const f2 = ({
33953
33962
  if (We && v) {
33954
33963
  await v(We.author, We.permlink, I);
33955
33964
  const re = (he) => he.author === We.author && he.permlink === We.permlink;
33956
- te((he) => he.filter((ae) => !re(ae))), je((he) => he.filter((ae) => !re(ae))), Re((he) => he.filter((ae) => !re(ae))), le((he) => he.filter((ae) => !re(ae))), Ne((he) => he.filter((ae) => !re(ae))), ne((he) => he.filter((ae) => !re(ae)));
33965
+ te((he) => he.filter((ne) => !re(ne))), je((he) => he.filter((ne) => !re(ne))), Re((he) => he.filter((ne) => !re(ne))), le((he) => he.filter((ne) => !re(ne))), Ne((he) => he.filter((ne) => !re(ne))), ae((he) => he.filter((ne) => !re(ne)));
33957
33966
  }
33958
33967
  Ue(null);
33959
33968
  },