var e = require("../@babel/runtime/helpers/assertThisInitialized");
require("../@babel/runtime/helpers/Arrayincludes");
var t = require("../@babel/runtime/helpers/regeneratorRuntime"),
  n = require("../@babel/runtime/helpers/asyncToGenerator"),
  r = require("../@babel/runtime/helpers/objectSpread2"),
  i = require("../@babel/runtime/helpers/inherits"),
  o = require("../@babel/runtime/helpers/createSuper"),
  a = require("../@babel/runtime/helpers/wrapNativeSuper"),
  u = require("../@babel/runtime/helpers/createForOfIteratorHelper"),
  s = require("../@babel/runtime/helpers/classCallCheck"),
  c = require("../@babel/runtime/helpers/createClass"),
  f = require("../@babel/runtime/helpers/typeof"),
  l = require("../@babel/runtime/helpers/defineProperty"),
  h = require("../@babel/runtime/helpers/slicedToArray"),
  p = require("../@babel/runtime/helpers/toConsumableArray");
function d(e, t) {
  for (var n = Object.create(null), r = e.split(","), i = 0; i < r.length; i++)
    n[r[i]] = !0;
  return t
    ? function (e) {
        return !!n[e.toLowerCase()];
      }
    : function (e) {
        return !!n[e];
      };
}
var v = /;(?![^(]*\))/g,
  g = /:([^]+)/,
  y = /\/\*[\s\S]*?\*\//g;
function _(e) {
  var t = {};
  return (
    e
      .replace(y, "")
      .split(v)
      .forEach(function (e) {
        if (e) {
          var n = e.split(g);
          n.length > 1 && (t[n[0].trim()] = n[1].trim());
        }
      }),
    t
  );
}
var m = function e(t, n) {
    return n && n.__v_isRef
      ? e(t, n.value)
      : R(n)
      ? l(
          {},
          "Map(".concat(n.size, ")"),
          p(n.entries()).reduce(function (e, t) {
            var n = h(t, 2),
              r = n[0],
              i = n[1];
            return (e["".concat(r, " =>")] = i), e;
          }, {})
        )
      : L(n)
      ? l({}, "Set(".concat(n.size, ")"), p(n.values()))
      : !U(n) || C(n) || F(n)
      ? n
      : String(n);
  },
  w = {},
  k = [],
  b = function () {},
  x = function () {
    return !1;
  },
  S = /^on[^a-z]/,
  A = function (e) {
    return S.test(e);
  },
  I = function (e) {
    return e.startsWith("onUpdate:");
  },
  O = Object.assign,
  P = function (e, t) {
    var n = e.indexOf(t);
    n > -1 && e.splice(n, 1);
  },
  T = Object.prototype.hasOwnProperty,
  E = function (e, t) {
    return T.call(e, t);
  },
  C = Array.isArray,
  R = function (e) {
    return "[object Map]" === $(e);
  },
  L = function (e) {
    return "[object Set]" === $(e);
  },
  D = function (e) {
    return "function" == typeof e;
  },
  B = function (e) {
    return "string" == typeof e;
  },
  N = function (e) {
    return "symbol" == f(e);
  },
  U = function (e) {
    return null !== e && "object" == f(e);
  },
  j = function (e) {
    return U(e) && D(e.then) && D(e.catch);
  },
  M = Object.prototype.toString,
  $ = function (e) {
    return M.call(e);
  },
  F = function (e) {
    return "[object Object]" === $(e);
  },
  H = function (e) {
    return B(e) && "NaN" !== e && "-" !== e[0] && "" + parseInt(e, 10) === e;
  },
  q = d(
    ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
  ),
  z = function (e) {
    var t = Object.create(null);
    return function (n) {
      return t[n] || (t[n] = e(n));
    };
  },
  W = /-(\w)/g,
  V = z(function (e) {
    return e.replace(W, function (e, t) {
      return t ? t.toUpperCase() : "";
    });
  }),
  K = /\B([A-Z])/g,
  J = z(function (e) {
    return e.replace(K, "-$1").toLowerCase();
  }),
  G = z(function (e) {
    return e.charAt(0).toUpperCase() + e.slice(1);
  }),
  Y = z(function (e) {
    return e ? "on".concat(G(e)) : "";
  }),
  X = function (e, t) {
    return !Object.is(e, t);
  },
  Q = function (e, t) {
    for (var n = 0; n < e.length; n++) e[n](t);
  },
  Z = function (e) {
    var t = parseFloat(e);
    return isNaN(t) ? e : t;
  },
  ee = "onShow",
  te = "onHide",
  ne = "onLaunch",
  re = "onError",
  ie = "onThemeChange",
  oe = "onPageNotFound",
  ae = "onUnhandledRejection",
  ue = "onLoad",
  se = "onReady",
  ce = "onUnload",
  fe = "onSaveExitState",
  le = "onResize",
  he = "onBackPress",
  pe = "onPageScroll",
  de = "onTabItemTap",
  ve = "onReachBottom",
  ge = "onPullDownRefresh",
  ye = "onShareTimeline",
  _e = "onAddToFavorites",
  me = "onShareAppMessage",
  we = "onNavigationBarButtonTap",
  ke = "onNavigationBarSearchInputClicked",
  be = "onNavigationBarSearchInputChanged",
  xe = "onNavigationBarSearchInputConfirmed",
  Se = "onNavigationBarSearchInputFocusChanged",
  Ae = /:/g;
function Ie(e) {
  var t,
    n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
  return function () {
    for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
      i[o] = arguments[o];
    return e && ((t = e.apply(n, i)), (e = null)), t;
  };
}
function Oe(e) {
  var t = {};
  return (
    F(e) &&
      Object.keys(e)
        .sort()
        .forEach(function (n) {
          var r = n;
          t[r] = e[r];
        }),
    Object.keys(t) ? t : e
  );
}
var Pe = encodeURIComponent;
function Te(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Pe,
    n = e
      ? Object.keys(e)
          .map(function (n) {
            var r = e[n];
            return (
              void 0 === f(r) || null === r
                ? (r = "")
                : F(r) && (r = JSON.stringify(r)),
              t(n) + "=" + t(r)
            );
          })
          .filter(function (e) {
            return e.length > 0;
          })
          .join("&")
      : null;
  return n ? "?".concat(n) : "";
}
var Ee,
  Ce = [
    "onInit",
    ue,
    ee,
    te,
    ce,
    he,
    pe,
    de,
    ve,
    ge,
    ye,
    me,
    _e,
    fe,
    we,
    ke,
    be,
    xe,
    Se,
  ],
  Re = [
    ee,
    te,
    ne,
    re,
    ie,
    oe,
    ae,
    "onExit",
    "onInit",
    ue,
    se,
    ce,
    le,
    he,
    pe,
    de,
    ve,
    ge,
    ye,
    _e,
    me,
    fe,
    we,
    ke,
    be,
    xe,
    Se,
  ],
  Le = { onPageScroll: 1, onShareAppMessage: 2, onShareTimeline: 4 };
function De(e, t) {
  var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
  return !(n && !D(t)) && (Re.indexOf(e) > -1 || 0 === e.indexOf("on"));
}
var Be = [],
  Ne = Ie(function (e, t) {
    if (D(e._component.onError)) return t(e);
  }),
  Ue = function () {};
Ue.prototype = {
  on: function (e, t, n) {
    var r = this.e || (this.e = {});
    return (r[e] || (r[e] = [])).push({ fn: t, ctx: n }), this;
  },
  once: function (e, t, n) {
    var r = this;
    function i() {
      r.off(e, i), t.apply(n, arguments);
    }
    return (i._ = t), this.on(e, i, n);
  },
  emit: function (e) {
    for (
      var t = [].slice.call(arguments, 1),
        n = ((this.e || (this.e = {}))[e] || []).slice(),
        r = 0,
        i = n.length;
      r < i;
      r++
    )
      n[r].fn.apply(n[r].ctx, t);
    return this;
  },
  off: function (e, t) {
    var n = this.e || (this.e = {}),
      r = n[e],
      i = [];
    if (r && t)
      for (var o = 0, a = r.length; o < a; o++)
        r[o].fn !== t && r[o].fn._ !== t && i.push(r[o]);
    return i.length ? (n[e] = i) : delete n[e], this;
  },
};
var je = Ue,
  Me = ["{", "}"],
  $e = /^(?:\d)+/,
  Fe = /^(?:\w)+/,
  He = "zh-Hans",
  qe = "zh-Hant",
  ze = "en",
  We = Object.prototype.hasOwnProperty,
  Ve = function (e, t) {
    return We.call(e, t);
  },
  Ke = new ((function () {
    function e() {
      s(this, e), (this._caches = Object.create(null));
    }
    return (
      c(e, [
        {
          key: "interpolate",
          value: function (e, t) {
            var n =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : Me;
            if (!t) return [e];
            var r = this._caches[e];
            return (
              r ||
                ((r = (function (e, t) {
                  for (
                    var n = h(t, 2), r = n[0], i = n[1], o = [], a = 0, u = "";
                    a < e.length;

                  ) {
                    var s = e[a++];
                    if (s === r) {
                      u && o.push({ type: "text", value: u }), (u = "");
                      var c = "";
                      for (s = e[a++]; void 0 !== s && s !== i; )
                        (c += s), (s = e[a++]);
                      var f = s === i,
                        l = $e.test(c)
                          ? "list"
                          : f && Fe.test(c)
                          ? "named"
                          : "unknown";
                      o.push({ value: c, type: l });
                    } else u += s;
                  }
                  return u && o.push({ type: "text", value: u }), o;
                })(e, n)),
                (this._caches[e] = r)),
              (function (e, t) {
                var n,
                  r = [],
                  i = 0,
                  o = Array.isArray(t)
                    ? "list"
                    : null !== (n = t) && "object" == f(n)
                    ? "named"
                    : "unknown";
                if ("unknown" === o) return r;
                for (; i < e.length; ) {
                  var a = e[i];
                  switch (a.type) {
                    case "text":
                      r.push(a.value);
                      break;
                    case "list":
                      r.push(t[parseInt(a.value, 10)]);
                      break;
                    case "named":
                      "named" === o && r.push(t[a.value]);
                  }
                  i++;
                }
                return r;
              })(r, t)
            );
          },
        },
      ]),
      e
    );
  })())();
function Je(e, t) {
  if (e) {
    if (((e = e.trim().replace(/_/g, "-")), t && t[e])) return e;
    if ("chinese" === (e = e.toLowerCase())) return He;
    if (0 === e.indexOf("zh"))
      return e.indexOf("-hans") > -1
        ? He
        : e.indexOf("-hant") > -1
        ? qe
        : ((n = e),
          ["-tw", "-hk", "-mo", "-cht"].find(function (e) {
            return -1 !== n.indexOf(e);
          })
            ? qe
            : He);
    var n,
      r = [ze, "fr", "es"];
    return (
      t && Object.keys(t).length > 0 && (r = Object.keys(t)),
      (function (e, t) {
        return t.find(function (t) {
          return 0 === e.indexOf(t);
        });
      })(e, r) || void 0
    );
  }
}
var Ge = (function () {
  function e(t) {
    var n = t.locale,
      r = t.fallbackLocale,
      i = t.messages,
      o = t.watcher,
      a = t.formater;
    s(this, e),
      (this.locale = ze),
      (this.fallbackLocale = ze),
      (this.message = {}),
      (this.messages = {}),
      (this.watchers = []),
      r && (this.fallbackLocale = r),
      (this.formater = a || Ke),
      (this.messages = i || {}),
      this.setLocale(n || ze),
      o && this.watchLocale(o);
  }
  return (
    c(e, [
      {
        key: "setLocale",
        value: function (e) {
          var t = this,
            n = this.locale;
          (this.locale = Je(e, this.messages) || this.fallbackLocale),
            this.messages[this.locale] || (this.messages[this.locale] = {}),
            (this.message = this.messages[this.locale]),
            n !== this.locale &&
              this.watchers.forEach(function (e) {
                e(t.locale, n);
              });
        },
      },
      {
        key: "getLocale",
        value: function () {
          return this.locale;
        },
      },
      {
        key: "watchLocale",
        value: function (e) {
          var t = this,
            n = this.watchers.push(e) - 1;
          return function () {
            t.watchers.splice(n, 1);
          };
        },
      },
      {
        key: "add",
        value: function (e, t) {
          var n =
              !(arguments.length > 2 && void 0 !== arguments[2]) ||
              arguments[2],
            r = this.messages[e];
          r
            ? n
              ? Object.assign(r, t)
              : Object.keys(t).forEach(function (e) {
                  Ve(r, e) || (r[e] = t[e]);
                })
            : (this.messages[e] = t);
        },
      },
      {
        key: "f",
        value: function (e, t, n) {
          return this.formater.interpolate(e, t, n).join("");
        },
      },
      {
        key: "t",
        value: function (e, t, n) {
          var r = this.message;
          return (
            "string" == typeof t
              ? (t = Je(t, this.messages)) && (r = this.messages[t])
              : (n = t),
            Ve(r, e)
              ? this.formater.interpolate(r[e], n).join("")
              : (console.warn(
                  "Cannot translate the value of keypath ".concat(
                    e,
                    ". Use the value of keypath as default."
                  )
                ),
                e)
          );
        },
      },
    ]),
    e
  );
})();
function Ye(e) {
  return function () {
    try {
      return e.apply(e, arguments);
    } catch (e) {
      console.error(e);
    }
  };
}
var Xe = 1,
  Qe = {};
function Ze(e, t, n) {
  if ("number" == typeof e) {
    var r = Qe[e];
    if (r) return r.keepAlive || delete Qe[e], r.callback(t, n);
  }
  return t;
}
var et = "success",
  tt = "fail",
  nt = "complete";
var rt = "success",
  it = "fail",
  ot = "complete",
  at = {},
  ut = {};
function st(e, t) {
  return function (n) {
    return e(n, t) || n;
  };
}
function ct(e, t, n) {
  for (var r = !1, i = 0; i < e.length; i++) {
    var o = e[i];
    if (r) r = Promise.resolve(st(o, n));
    else {
      var a = o(t, n);
      if ((j(a) && (r = Promise.resolve(a)), !1 === a))
        return { then: function () {}, catch: function () {} };
    }
  }
  return (
    r || {
      then: function (e) {
        return e(t);
      },
      catch: function () {},
    }
  );
}
function ft(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  return (
    [rt, it, ot].forEach(function (n) {
      var r = e[n];
      if (C(r)) {
        var i = t[n];
        t[n] = function (e) {
          ct(r, e, t).then(function (e) {
            return (D(i) && i(e)) || e;
          });
        };
      }
    }),
    t
  );
}
function lt(e, t) {
  var n = [];
  C(at.returnValue) && n.push.apply(n, p(at.returnValue));
  var r = ut[e];
  return (
    r && C(r.returnValue) && n.push.apply(n, p(r.returnValue)),
    n.forEach(function (e) {
      t = e(t) || t;
    }),
    t
  );
}
function ht(e) {
  var t = Object.create(null);
  Object.keys(at).forEach(function (e) {
    "returnValue" !== e && (t[e] = at[e].slice());
  });
  var n = ut[e];
  return (
    n &&
      Object.keys(n).forEach(function (e) {
        "returnValue" !== e && (t[e] = (t[e] || []).concat(n[e]));
      }),
    t
  );
}
function pt(e, t, n, r) {
  var i = ht(e);
  return i && Object.keys(i).length
    ? C(i.invoke)
      ? ct(i.invoke, n).then(function (n) {
          return t.apply(void 0, [ft(ht(e), n)].concat(p(r)));
        })
      : t.apply(void 0, [ft(i, n)].concat(p(r)))
    : t.apply(void 0, [n].concat(p(r)));
}
function dt(e, t, n, r) {
  return Ze(e, O({ errMsg: t + ":fail" + (n ? " " + n : "") }, r));
}
function vt(e, t, n, r) {
  if (r && r.beforeInvoke) {
    var i = r.beforeInvoke(t);
    if (B(i)) return i;
  }
  var o = (function (e, t) {
    var n = e[0];
    if (t && (F(t.formatArgs) || !F(n)))
      for (var r = t.formatArgs, i = Object.keys(r), o = 0; o < i.length; o++) {
        var a = i[o],
          u = r[a];
        if (D(u)) {
          var s = u(e[0][a], n);
          if (B(s)) return s;
        } else E(n, a) || (n[a] = u);
      }
  })(t, r);
  if (o) return o;
}
function gt(e, t, n, r) {
  return function (n) {
    var i = (function (e) {
        var t =
            arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n =
            arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.beforeAll,
          i = n.beforeSuccess;
        F(t) || (t = {});
        var o = (function (e) {
            var t = {};
            for (var n in e) {
              var r = e[n];
              D(r) && ((t[n] = Ye(r)), delete e[n]);
            }
            return t;
          })(t),
          a = o.success,
          u = o.fail,
          s = o.complete,
          c = D(a),
          f = D(u),
          l = D(s),
          h = Xe++;
        return (
          (function (e, t, n) {
            var r =
              arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
            Qe[e] = { name: t, keepAlive: r, callback: n };
          })(h, e, function (n) {
            ((n = n || {}).errMsg = (function (e, t) {
              return e && -1 !== e.indexOf(":fail")
                ? t + e.substring(e.indexOf(":fail"))
                : t + ":ok";
            })(n.errMsg, e)),
              D(r) && r(n),
              n.errMsg === e + ":ok" ? (D(i) && i(n, t), c && a(n)) : f && u(n),
              l && s(n);
          }),
          h
        );
      })(e, n, r),
      o = vt(0, [n], 0, r);
    return o
      ? dt(i, e, o)
      : t(n, {
          resolve: function (t) {
            return (function (e, t, n) {
              return Ze(e, O(n || {}, { errMsg: t + ":ok" }));
            })(i, e, t);
          },
          reject: function (t, n) {
            return dt(
              i,
              e,
              (function (e) {
                return !e || B(e)
                  ? e
                  : e.stack
                  ? (console.error(e.message + "\n" + e.stack), e.message)
                  : e;
              })(t),
              n
            );
          },
        });
  };
}
function yt(e, t, n, r) {
  return (function (e, t, n, r) {
    return function () {
      for (var e = arguments.length, n = new Array(e), i = 0; i < e; i++)
        n[i] = arguments[i];
      var o = vt(0, n, 0, r);
      if (o) throw new Error(o);
      return t.apply(null, n);
    };
  })(0, t, 0, r);
}
var _t = !1,
  mt = 0,
  wt = 0;
var kt = yt(0, function (e, t) {
  if (
    (0 === mt &&
      (function () {
        var e = wx.getSystemInfoSync(),
          t = e.platform,
          n = e.pixelRatio,
          r = e.windowWidth;
        (mt = r), (wt = n), (_t = "ios" === t);
      })(),
    0 === (e = Number(e)))
  )
    return 0;
  var n = (e / 750) * (t || mt);
  return (
    n < 0 && (n = -n),
    0 === (n = Math.floor(n + 1e-4)) && (n = 1 !== wt && _t ? 0.5 : 1),
    e < 0 ? -n : n
  );
});
function bt(e, t) {
  Object.keys(t).forEach(function (n) {
    D(t[n]) &&
      (e[n] = (function (e, t) {
        var n = t ? (e ? e.concat(t) : C(t) ? t : [t]) : e;
        return n
          ? (function (e) {
              for (var t = [], n = 0; n < e.length; n++)
                -1 === t.indexOf(e[n]) && t.push(e[n]);
              return t;
            })(n)
          : n;
      })(e[n], t[n]));
  });
}
function xt(e, t) {
  e &&
    t &&
    Object.keys(t).forEach(function (n) {
      var r = e[n],
        i = t[n];
      C(r) && D(i) && P(r, i);
    });
}
var St,
  At,
  It,
  Ot = yt(0, function (e, t) {
    B(e) && F(t) ? bt(ut[e] || (ut[e] = {}), t) : F(e) && bt(at, e);
  }),
  Pt = yt(0, function (e, t) {
    B(e) ? (F(t) ? xt(ut[e], t) : delete ut[e]) : F(e) && xt(at, e);
  }),
  Tt = new je(),
  Et = yt(0, function (e, t) {
    return (
      Tt.on(e, t),
      function () {
        return Tt.off(e, t);
      }
    );
  }),
  Ct = yt(0, function (e, t) {
    return (
      Tt.once(e, t),
      function () {
        return Tt.off(e, t);
      }
    );
  }),
  Rt = yt(0, function (e, t) {
    e
      ? (C(e) || (e = [e]),
        e.forEach(function (e) {
          return Tt.off(e, t);
        }))
      : (Tt.e = {});
  }),
  Lt = yt(0, function (e) {
    for (
      var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
      r < t;
      r++
    )
      n[r - 1] = arguments[r];
    Tt.emit.apply(Tt, [e].concat(n));
  });
function Dt(e) {
  try {
    return JSON.parse(e);
  } catch (e) {}
  return e;
}
var Bt = [];
function Nt(e, t) {
  Bt.forEach(function (n) {
    n(e, t);
  }),
    (Bt.length = 0);
}
var Ut = (function (e, t) {
    return function () {
      for (
        var n =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
          r = arguments.length,
          i = new Array(r > 1 ? r - 1 : 0),
          o = 1;
        o < r;
        o++
      )
        i[o - 1] = arguments[o];
      return (function (e) {
        return !(
          !F(e) ||
          ![et, tt, nt].find(function (t) {
            return D(e[t]);
          })
        );
      })(n)
        ? lt(e, pt(e, t, n, i))
        : lt(
            e,
            new Promise(function (r, o) {
              pt(e, t, O(n, { success: r, fail: o }), i);
            })
          );
    };
  })(
    "getPushClientId",
    gt(
      "getPushClientId",
      function (e, t) {
        var n = t.resolve,
          r = t.reject;
        Promise.resolve().then(function () {
          void 0 === It &&
            ((It = !1), (St = ""), (At = "uniPush is not enabled")),
            Bt.push(function (e, t) {
              e ? n({ cid: e }) : r(t);
            }),
            void 0 !== St && Nt(St, At);
        });
      },
      0,
      void 0
    )
  ),
  jt = [],
  Mt =
    /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,
  $t = /^create|Manager$/,
  Ft = ["createBLEConnection"],
  Ht = ["createBLEConnection"],
  qt = /^on|^off/;
function zt(e) {
  return $t.test(e) && -1 === Ft.indexOf(e);
}
function Wt(e) {
  return Mt.test(e) && -1 === Ht.indexOf(e);
}
function Vt(e, t) {
  return (function (e) {
    return !(
      zt(e) ||
      Wt(e) ||
      (function (e) {
        return qt.test(e) && "onPush" !== e;
      })(e)
    );
  })(e) && D(t)
    ? function () {
        for (
          var n =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : {},
            r = arguments.length,
            i = new Array(r > 1 ? r - 1 : 0),
            o = 1;
          o < r;
          o++
        )
          i[o - 1] = arguments[o];
        return D(n.success) || D(n.fail) || D(n.complete)
          ? lt(e, pt(e, t, n, i))
          : lt(
              e,
              new Promise(function (r, o) {
                pt(e, t, O({}, n, { success: r, fail: o }), i);
              })
            );
      }
    : t;
}
Promise.prototype.finally ||
  (Promise.prototype.finally = function (e) {
    var t = this.constructor;
    return this.then(
      function (n) {
        return t.resolve(e && e()).then(function () {
          return n;
        });
      },
      function (n) {
        return t.resolve(e && e()).then(function () {
          throw n;
        });
      }
    );
  });
var Kt = ["success", "fail", "cancel", "complete"],
  Jt = function () {
    var e = D(getApp) && getApp({ allowDefault: !0 });
    return e && e.$vm
      ? e.$vm.$locale
      : Je(wx.getSystemInfoSync().language) || ze;
  },
  Gt = [];
"undefined" != typeof global && (global.getLocale = Jt);
var Yt,
  Xt = "__DC_STAT_UUID";
function Qt() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : wx;
  return function (t, n) {
    (Yt = Yt || e.getStorageSync(Xt)) ||
      ((Yt = Date.now() + "" + Math.floor(1e7 * Math.random())),
      wx.setStorage({ key: Xt, data: Yt })),
      (n.deviceId = Yt);
  };
}
function Zt(e, t) {
  if (e.safeArea) {
    var n = e.safeArea;
    t.safeAreaInsets = {
      top: n.top,
      left: n.left,
      right: e.windowWidth - n.right,
      bottom: e.screenHeight - n.bottom,
    };
  }
}
function en(e, t) {
  for (
    var n = e.deviceType || "phone",
      r = { ipad: "pad", windows: "pc", mac: "pc" },
      i = Object.keys(r),
      o = t.toLocaleLowerCase(),
      a = 0;
    a < i.length;
    a++
  ) {
    var u = i[a];
    if (-1 !== o.indexOf(u)) {
      n = r[u];
      break;
    }
  }
  return n;
}
function tn(e) {
  var t = e;
  return t && (t = t.toLocaleLowerCase()), t;
}
function nn(e) {
  return Jt ? Jt() : e;
}
function rn(e) {
  var t = e.hostName || "WeChat";
  return (
    e.environment
      ? (t = e.environment)
      : e.host && e.host.env && (t = e.host.env),
    t
  );
}
var on = {
    returnValue: function (e, t) {
      Zt(e, t),
        Qt()(e, t),
        (function (e, t) {
          var n,
            r = e.brand,
            i = void 0 === r ? "" : r,
            o = e.model,
            a = void 0 === o ? "" : o,
            u = e.system,
            s = void 0 === u ? "" : u,
            c = e.language,
            f = void 0 === c ? "" : c,
            l = e.theme,
            h = e.version,
            p = (e.platform, e.fontSizeSetting),
            d = e.SDKVersion,
            v = e.pixelRatio,
            g = e.deviceOrientation,
            y = "";
          (y = s.split(" ")[0] || ""), (n = s.split(" ")[1] || "");
          var _ = h,
            m = en(e, a),
            w = tn(i),
            k = rn(e),
            b = g,
            x = v,
            S = d,
            A = f.replace(/_/g, "-"),
            I = {
              appId: "__UNI__4AC81CE",
              appName: "优选查车",
              appVersion: "1.1.006",
              appVersionCode: 11006,
              appLanguage: nn(A),
              uniCompileVersion: "3.99",
              uniRuntimeVersion: "3.99",
              uniPlatform: "mp-weixin",
              deviceBrand: w,
              deviceModel: a,
              deviceType: m,
              devicePixelRatio: x,
              deviceOrientation: b,
              osName: y.toLocaleLowerCase(),
              osVersion: n,
              hostTheme: l,
              hostVersion: _,
              hostLanguage: A,
              hostName: k,
              hostSDKVersion: S,
              hostFontSizeSetting: p,
              windowTop: 0,
              windowBottom: 0,
              osLanguage: void 0,
              osTheme: void 0,
              ua: void 0,
              hostPackageName: void 0,
              browserName: void 0,
              browserVersion: void 0,
            };
          O(t, I);
        })(e, t);
    },
  },
  an = on,
  un = {
    args: function (e, t) {
      var n = parseInt(e.current);
      if (!isNaN(n)) {
        var r = e.urls;
        if (C(r)) {
          var i = r.length;
          return i
            ? (n < 0 ? (n = 0) : n >= i && (n = i - 1),
              n > 0
                ? ((t.current = r[n]),
                  (t.urls = r.filter(function (e, t) {
                    return !(t < n) || e !== r[n];
                  })))
                : (t.current = r[0]),
              { indicator: !1, loop: !1 })
            : void 0;
        }
      }
    },
  },
  sn = {
    returnValue: function (e, t) {
      var n = e.brand,
        r = e.model,
        i = en(e, r),
        o = tn(n);
      Qt()(e, t),
        (t = Oe(O(t, { deviceType: i, deviceBrand: o, deviceModel: r })));
    },
  },
  cn = {
    returnValue: function (e, t) {
      var n = e.version,
        r = e.language,
        i = e.SDKVersion,
        o = e.theme,
        a = rn(e),
        u = r.replace(/_/g, "-");
      t = Oe(
        O(t, {
          hostVersion: n,
          hostLanguage: u,
          hostName: a,
          hostSDKVersion: i,
          hostTheme: o,
          appId: "__UNI__4AC81CE",
          appName: "优选查车",
          appVersion: "1.1.006",
          appVersionCode: 11006,
          appLanguage: nn(u),
        })
      );
    },
  },
  fn = {
    returnValue: function (e, t) {
      Zt(e, t), (t = Oe(O(t, { windowTop: 0, windowBottom: 0 })));
    },
  },
  ln = {
    $on: Et,
    $off: Rt,
    $once: Ct,
    $emit: Lt,
    upx2px: kt,
    interceptors: {},
    addInterceptor: Ot,
    removeInterceptor: Pt,
    onCreateVueApp: function (e) {
      if (Ee) return e(Ee);
      Be.push(e);
    },
    invokeCreateVueAppHook: function (e) {
      (Ee = e),
        Be.forEach(function (t) {
          return t(e);
        });
    },
    getLocale: Jt,
    setLocale: function (e) {
      var t = D(getApp) && getApp();
      return (
        !!t &&
        t.$vm.$locale !== e &&
        ((t.$vm.$locale = e),
        Gt.forEach(function (t) {
          return t({ locale: e });
        }),
        !0)
      );
    },
    onLocaleChange: function (e) {
      -1 === Gt.indexOf(e) && Gt.push(e);
    },
    getPushClientId: Ut,
    onPushMessage: function (e) {
      -1 === jt.indexOf(e) && jt.push(e);
    },
    offPushMessage: function (e) {
      if (e) {
        var t = jt.indexOf(e);
        t > -1 && jt.splice(t, 1);
      } else jt.length = 0;
    },
    invokePushCallback: function (e) {
      if ("enabled" === e.type) It = !0;
      else if ("clientId" === e.type)
        (St = e.cid), (At = e.errMsg), Nt(St, e.errMsg);
      else if ("pushMsg" === e.type)
        for (
          var t = { type: "receive", data: Dt(e.message) }, n = 0;
          n < jt.length && ((0, jt[n])(t), !t.stopped);
          n++
        );
      else
        "click" === e.type &&
          jt.forEach(function (t) {
            t({ type: "click", data: Dt(e.message) });
          });
    },
  },
  hn = [
    "qy",
    "env",
    "error",
    "version",
    "lanDebug",
    "cloud",
    "serviceMarket",
    "router",
    "worklet",
    "__webpack_require_UNI_MP_PLUGIN__",
  ],
  pn = ["lanDebug", "router", "worklet"],
  dn = wx.getLaunchOptionsSync ? wx.getLaunchOptionsSync() : null;
function vn(e) {
  return (
    (!dn || 1154 !== dn.scene || !pn.includes(e)) &&
    (hn.indexOf(e) > -1 || "function" == typeof wx[e])
  );
}
function gn() {
  var e = {};
  for (var t in wx) vn(t) && (e[t] = wx[t]);
  return (
    "undefined" != typeof globalThis &&
      "undefined" == typeof requireMiniProgram &&
      (globalThis.wx = e),
    e
  );
}
var yn,
  _n = ["__route__", "__wxExparserNodeId__", "__wxWebviewId__"],
  mn =
    ((yn = {
      oauth: ["weixin"],
      share: ["weixin"],
      payment: ["wxpay"],
      push: ["weixin"],
    }),
    function (e) {
      var t,
        n = e.service,
        r = e.success,
        i = e.fail,
        o = e.complete;
      yn[n]
        ? ((t = { errMsg: "getProvider:ok", service: n, provider: yn[n] }),
          D(r) && r(t))
        : ((t = { errMsg: "getProvider:fail:服务[" + n + "]不存在" }),
          D(i) && i(t)),
        D(o) && o(t);
    }),
  wn = gn(),
  kn = wn.getAppBaseInfo && wn.getAppBaseInfo();
kn || (kn = wn.getSystemInfoSync());
var bn,
  xn = kn ? kn.host : null,
  Sn =
    xn && "SAAASDK" === xn.env
      ? wn.miniapp.shareVideoMessage
      : wn.shareVideoMessage,
  An = Object.freeze({
    __proto__: null,
    createSelectorQuery: function () {
      var e = wn.createSelectorQuery(),
        t = e.in;
      return (
        (e.in = function (e) {
          return t.call(
            this,
            (function (e) {
              var t = Object.create(null);
              return (
                _n.forEach(function (n) {
                  t[n] = e[n];
                }),
                t
              );
            })(e)
          );
        }),
        e
      );
    },
    getProvider: mn,
    shareVideoMessage: Sn,
  }),
  In = Object.freeze({
    __proto__: null,
    compressImage: {
      args: function (e, t) {
        e.compressedHeight &&
          !t.compressHeight &&
          (t.compressHeight = e.compressedHeight),
          e.compressedWidth &&
            !t.compressWidth &&
            (t.compressWidth = e.compressedWidth);
      },
    },
    getAppAuthorizeSetting: {
      returnValue: function (e, t) {
        var n = e.locationReducedAccuracy;
        (t.locationAccuracy = "unsupported"),
          !0 === n
            ? (t.locationAccuracy = "reduced")
            : !1 === n && (t.locationAccuracy = "full");
      },
    },
    getAppBaseInfo: cn,
    getDeviceInfo: sn,
    getSystemInfo: on,
    getSystemInfoSync: an,
    getWindowInfo: fn,
    previewImage: un,
    redirectTo: {},
    showActionSheet: {
      args: function (e, t) {
        t.alertText = e.title;
      },
    },
  }),
  On = gn(),
  Pn = (function (e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : wx,
      r = (function (e) {
        function t(e, t, n) {
          return function (i) {
            return t(r(e, i, n));
          };
        }
        function n(e, n) {
          var r =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : {},
            i =
              arguments.length > 3 && void 0 !== arguments[3]
                ? arguments[3]
                : {},
            o = arguments.length > 4 && void 0 !== arguments[4] && arguments[4];
          if (F(n)) {
            var a = !0 === o ? n : {};
            for (var u in (D(r) && (r = r(n, a) || {}), n))
              if (E(r, u)) {
                var s = r[u];
                D(s) && (s = s(n[u], n, a)),
                  s
                    ? B(s)
                      ? (a[s] = n[u])
                      : F(s) && (a[s.name ? s.name : u] = s.value)
                    : console.warn(
                        "微信小程序 ".concat(e, " 暂不支持 ").concat(u)
                      );
              } else if (-1 !== Kt.indexOf(u)) {
                var c = n[u];
                D(c) && (a[u] = t(e, c, i));
              } else o || E(a, u) || (a[u] = n[u]);
            return a;
          }
          return D(n) && (n = t(e, n, i)), n;
        }
        function r(t, r, i) {
          var o =
            arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
          return (
            D(e.returnValue) && (r = e.returnValue(t, r)), n(t, r, i, {}, o)
          );
        }
        return function (t, i) {
          if (!E(e, t)) return i;
          var o = e[t];
          return o
            ? function (e, i) {
                var a = o;
                D(o) && (a = o(e));
                var u = [(e = n(t, e, a.args, a.returnValue))];
                void 0 !== i && u.push(i);
                var s = wx[a.name || t].apply(wx, u);
                return Wt(t) ? r(t, s, a.returnValue, zt(t)) : s;
              }
            : function () {
                console.error("微信小程序 暂不支持".concat(t));
              };
        };
      })(t);
    return new Proxy(
      {},
      {
        get: function (t, i) {
          return E(t, i)
            ? t[i]
            : E(e, i)
            ? Vt(i, e[i])
            : E(ln, i)
            ? Vt(i, ln[i])
            : Vt(i, r(i, n[i]));
        },
      }
    );
  })(An, In, On),
  Tn = (function () {
    function e() {
      var t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
      s(this, e),
        (this.detached = t),
        (this._active = !0),
        (this.effects = []),
        (this.cleanups = []),
        (this.parent = bn),
        !t &&
          bn &&
          (this.index = (bn.scopes || (bn.scopes = [])).push(this) - 1);
    }
    return (
      c(e, [
        {
          key: "active",
          get: function () {
            return this._active;
          },
        },
        {
          key: "run",
          value: function (e) {
            if (this._active) {
              var t = bn;
              try {
                return (bn = this), e();
              } finally {
                bn = t;
              }
            }
          },
        },
        {
          key: "on",
          value: function () {
            bn = this;
          },
        },
        {
          key: "off",
          value: function () {
            bn = this.parent;
          },
        },
        {
          key: "stop",
          value: function (e) {
            if (this._active) {
              var t, n;
              for (t = 0, n = this.effects.length; t < n; t++)
                this.effects[t].stop();
              for (t = 0, n = this.cleanups.length; t < n; t++)
                this.cleanups[t]();
              if (this.scopes)
                for (t = 0, n = this.scopes.length; t < n; t++)
                  this.scopes[t].stop(!0);
              if (!this.detached && this.parent && !e) {
                var r = this.parent.scopes.pop();
                r &&
                  r !== this &&
                  ((this.parent.scopes[this.index] = r),
                  (r.index = this.index));
              }
              (this.parent = void 0), (this._active = !1);
            }
          },
        },
      ]),
      e
    );
  })();
function En(e) {
  return new Tn(e);
}
function Cn() {
  return bn;
}
var Rn,
  Ln = function (e) {
    var t = new Set(e);
    return (t.w = 0), (t.n = 0), t;
  },
  Dn = function (e) {
    return (e.w & jn) > 0;
  },
  Bn = function (e) {
    return (e.n & jn) > 0;
  },
  Nn = new WeakMap(),
  Un = 0,
  jn = 1,
  Mn = Symbol(""),
  $n = Symbol(""),
  Fn = (function () {
    function e(t) {
      var n =
          arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null,
        r = arguments.length > 2 ? arguments[2] : void 0;
      s(this, e),
        (this.fn = t),
        (this.scheduler = n),
        (this.active = !0),
        (this.deps = []),
        (this.parent = void 0),
        (function (e) {
          var t =
            arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : bn;
          t && t.active && t.effects.push(e);
        })(this, r);
    }
    return (
      c(e, [
        {
          key: "run",
          value: function () {
            if (!this.active) return this.fn();
            for (var e = Rn, t = qn; e; ) {
              if (e === this) return;
              e = e.parent;
            }
            try {
              return (
                (this.parent = Rn),
                (Rn = this),
                (qn = !0),
                (jn = 1 << ++Un),
                Un <= 30
                  ? (function (e) {
                      var t = e.deps;
                      if (t.length)
                        for (var n = 0; n < t.length; n++) t[n].w |= jn;
                    })(this)
                  : Hn(this),
                this.fn()
              );
            } finally {
              Un <= 30 &&
                (function (e) {
                  var t = e.deps;
                  if (t.length) {
                    for (var n = 0, r = 0; r < t.length; r++) {
                      var i = t[r];
                      Dn(i) && !Bn(i) ? i.delete(e) : (t[n++] = i),
                        (i.w &= ~jn),
                        (i.n &= ~jn);
                    }
                    t.length = n;
                  }
                })(this),
                (jn = 1 << --Un),
                (Rn = this.parent),
                (qn = t),
                (this.parent = void 0),
                this.deferStop && this.stop();
            }
          },
        },
        {
          key: "stop",
          value: function () {
            Rn === this
              ? (this.deferStop = !0)
              : this.active &&
                (Hn(this), this.onStop && this.onStop(), (this.active = !1));
          },
        },
      ]),
      e
    );
  })();
function Hn(e) {
  var t = e.deps;
  if (t.length) {
    for (var n = 0; n < t.length; n++) t[n].delete(e);
    t.length = 0;
  }
}
var qn = !0,
  zn = [];
function Wn() {
  zn.push(qn), (qn = !1);
}
function Vn() {
  var e = zn.pop();
  qn = void 0 === e || e;
}
function Kn(e, t, n) {
  if (qn && Rn) {
    var r = Nn.get(e);
    r || Nn.set(e, (r = new Map()));
    var i = r.get(n);
    i || r.set(n, (i = Ln())), Jn(i);
  }
}
function Jn(e, t) {
  var n = !1;
  Un <= 30 ? Bn(e) || ((e.n |= jn), (n = !Dn(e))) : (n = !e.has(Rn)),
    n && (e.add(Rn), Rn.deps.push(e));
}
function Gn(e, t, n, r, i, o) {
  var a = Nn.get(e);
  if (a) {
    var s = [];
    if ("clear" === t) s = p(a.values());
    else if ("length" === n && C(e)) {
      var c = Number(r);
      a.forEach(function (e, t) {
        ("length" === t || t >= c) && s.push(e);
      });
    } else
      switch ((void 0 !== n && s.push(a.get(n)), t)) {
        case "add":
          C(e)
            ? H(n) && s.push(a.get("length"))
            : (s.push(a.get(Mn)), R(e) && s.push(a.get($n)));
          break;
        case "delete":
          C(e) || (s.push(a.get(Mn)), R(e) && s.push(a.get($n)));
          break;
        case "set":
          R(e) && s.push(a.get(Mn));
      }
    if (1 === s.length) s[0] && Yn(s[0]);
    else {
      var f,
        l = [],
        h = u(s);
      try {
        for (h.s(); !(f = h.n()).done; ) {
          var d = f.value;
          d && l.push.apply(l, p(d));
        }
      } catch (e) {
        h.e(e);
      } finally {
        h.f();
      }
      Yn(Ln(l));
    }
  }
}
function Yn(e, t) {
  var n,
    r = C(e) ? e : p(e),
    i = u(r);
  try {
    for (i.s(); !(n = i.n()).done; ) {
      var o = n.value;
      o.computed && Xn(o);
    }
  } catch (e) {
    i.e(e);
  } finally {
    i.f();
  }
  var a,
    s = u(r);
  try {
    for (s.s(); !(a = s.n()).done; ) {
      var c = a.value;
      c.computed || Xn(c);
    }
  } catch (e) {
    s.e(e);
  } finally {
    s.f();
  }
}
function Xn(e, t) {
  (e !== Rn || e.allowRecurse) && (e.scheduler ? e.scheduler() : e.run());
}
var Qn = d("__proto__,__v_isRef,__isVue"),
  Zn = new Set(
    Object.getOwnPropertyNames(Symbol)
      .filter(function (e) {
        return "arguments" !== e && "caller" !== e;
      })
      .map(function (e) {
        return Symbol[e];
      })
      .filter(N)
  ),
  er = or(),
  tr = or(!1, !0),
  nr = or(!0),
  rr = (function () {
    var e = {};
    return (
      ["includes", "indexOf", "lastIndexOf"].forEach(function (t) {
        e[t] = function () {
          for (var e = Hr(this), n = 0, r = this.length; n < r; n++)
            Kn(e, 0, n + "");
          for (var i = arguments.length, o = new Array(i), a = 0; a < i; a++)
            o[a] = arguments[a];
          var u = e[t].apply(e, o);
          return -1 === u || !1 === u ? e[t].apply(e, p(o.map(Hr))) : u;
        };
      }),
      ["push", "pop", "shift", "unshift", "splice"].forEach(function (t) {
        e[t] = function () {
          Wn();
          for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
            n[r] = arguments[r];
          var i = Hr(this)[t].apply(this, n);
          return Vn(), i;
        };
      }),
      e
    );
  })();
function ir(e) {
  var t = Hr(this);
  return Kn(t, 0, e), t.hasOwnProperty(e);
}
function or() {
  var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0],
    t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  return function (n, r, i) {
    if ("__v_isReactive" === r) return !e;
    if ("__v_isReadonly" === r) return e;
    if ("__v_isShallow" === r) return t;
    if ("__v_raw" === r && i === (e ? (t ? Br : Dr) : t ? Lr : Rr).get(n))
      return n;
    var o = C(n);
    if (!e) {
      if (o && E(rr, r)) return Reflect.get(rr, r, i);
      if ("hasOwnProperty" === r) return ir;
    }
    var a = Reflect.get(n, r, i);
    return (N(r) ? Zn.has(r) : Qn(r))
      ? a
      : (e || Kn(n, 0, r),
        t
          ? a
          : Jr(a)
          ? o && H(r)
            ? a
            : a.value
          : U(a)
          ? e
            ? Ur(a)
            : Nr(a)
          : a);
  };
}
function ar() {
  var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
  return function (t, n, r, i) {
    var o = t[n];
    if ($r(o) && Jr(o) && !Jr(r)) return !1;
    if (
      !e &&
      (Fr(r) || $r(r) || ((o = Hr(o)), (r = Hr(r))), !C(t) && Jr(o) && !Jr(r))
    )
      return (o.value = r), !0;
    var a = C(t) && H(n) ? Number(n) < t.length : E(t, n),
      u = Reflect.set(t, n, r, i);
    return (
      t === Hr(i) && (a ? X(r, o) && Gn(t, "set", n, r) : Gn(t, "add", n, r)), u
    );
  };
}
var ur = {
    get: er,
    set: ar(),
    deleteProperty: function (e, t) {
      var n = E(e, t);
      e[t];
      var r = Reflect.deleteProperty(e, t);
      return r && n && Gn(e, "delete", t, void 0), r;
    },
    has: function (e, t) {
      var n = Reflect.has(e, t);
      return (N(t) && Zn.has(t)) || Kn(e, 0, t), n;
    },
    ownKeys: function (e) {
      return Kn(e, 0, C(e) ? "length" : Mn), Reflect.ownKeys(e);
    },
  },
  sr = {
    get: nr,
    set: function (e, t) {
      return !0;
    },
    deleteProperty: function (e, t) {
      return !0;
    },
  },
  cr = O({}, ur, { get: tr, set: ar(!0) }),
  fr = function (e) {
    return e;
  },
  lr = function (e) {
    return Reflect.getPrototypeOf(e);
  };
function hr(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
    r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3],
    i = Hr((e = e.__v_raw)),
    o = Hr(t);
  n || (t !== o && Kn(i, 0, t), Kn(i, 0, o));
  var a = lr(i),
    u = a.has,
    s = r ? fr : n ? Wr : zr;
  return u.call(i, t)
    ? s(e.get(t))
    : u.call(i, o)
    ? s(e.get(o))
    : void (e !== i && e.get(t));
}
function pr(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
    n = this.__v_raw,
    r = Hr(n),
    i = Hr(e);
  return (
    t || (e !== i && Kn(r, 0, e), Kn(r, 0, i)),
    e === i ? n.has(e) : n.has(e) || n.has(i)
  );
}
function dr(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  return (e = e.__v_raw), !t && Kn(Hr(e), 0, Mn), Reflect.get(e, "size", e);
}
function vr(e) {
  e = Hr(e);
  var t = Hr(this);
  return lr(t).has.call(t, e) || (t.add(e), Gn(t, "add", e, e)), this;
}
function gr(e, t) {
  t = Hr(t);
  var n = Hr(this),
    r = lr(n),
    i = r.has,
    o = r.get,
    a = i.call(n, e);
  a || ((e = Hr(e)), (a = i.call(n, e)));
  var u = o.call(n, e);
  return (
    n.set(e, t), a ? X(t, u) && Gn(n, "set", e, t) : Gn(n, "add", e, t), this
  );
}
function yr(e) {
  var t = Hr(this),
    n = lr(t),
    r = n.has,
    i = n.get,
    o = r.call(t, e);
  o || ((e = Hr(e)), (o = r.call(t, e))), i && i.call(t, e);
  var a = t.delete(e);
  return o && Gn(t, "delete", e, void 0), a;
}
function _r() {
  var e = Hr(this),
    t = 0 !== e.size,
    n = e.clear();
  return t && Gn(e, "clear", void 0, void 0), n;
}
function mr(e, t) {
  return function (n, r) {
    var i = this,
      o = i.__v_raw,
      a = Hr(o),
      u = t ? fr : e ? Wr : zr;
    return (
      !e && Kn(a, 0, Mn),
      o.forEach(function (e, t) {
        return n.call(r, u(e), u(t), i);
      })
    );
  };
}
function wr(e, t, n) {
  return function () {
    var r = this.__v_raw,
      i = Hr(r),
      o = R(i),
      a = "entries" === e || (e === Symbol.iterator && o),
      u = "keys" === e && o,
      s = r[e].apply(r, arguments),
      c = n ? fr : t ? Wr : zr;
    return (
      !t && Kn(i, 0, u ? $n : Mn),
      l(
        {
          next: function () {
            var e = s.next(),
              t = e.value,
              n = e.done;
            return n
              ? { value: t, done: n }
              : { value: a ? [c(t[0]), c(t[1])] : c(t), done: n };
          },
        },
        Symbol.iterator,
        function () {
          return this;
        }
      )
    );
  };
}
function kr(e) {
  return function () {
    return "delete" !== e && this;
  };
}
var br = (function () {
    var e = {
        get: function (e) {
          return hr(this, e);
        },
        get size() {
          return dr(this);
        },
        has: pr,
        add: vr,
        set: gr,
        delete: yr,
        clear: _r,
        forEach: mr(!1, !1),
      },
      t = {
        get: function (e) {
          return hr(this, e, !1, !0);
        },
        get size() {
          return dr(this);
        },
        has: pr,
        add: vr,
        set: gr,
        delete: yr,
        clear: _r,
        forEach: mr(!1, !0),
      },
      n = {
        get: function (e) {
          return hr(this, e, !0);
        },
        get size() {
          return dr(this, !0);
        },
        has: function (e) {
          return pr.call(this, e, !0);
        },
        add: kr("add"),
        set: kr("set"),
        delete: kr("delete"),
        clear: kr("clear"),
        forEach: mr(!0, !1),
      },
      r = {
        get: function (e) {
          return hr(this, e, !0, !0);
        },
        get size() {
          return dr(this, !0);
        },
        has: function (e) {
          return pr.call(this, e, !0);
        },
        add: kr("add"),
        set: kr("set"),
        delete: kr("delete"),
        clear: kr("clear"),
        forEach: mr(!0, !0),
      };
    return (
      ["keys", "values", "entries", Symbol.iterator].forEach(function (i) {
        (e[i] = wr(i, !1, !1)),
          (n[i] = wr(i, !0, !1)),
          (t[i] = wr(i, !1, !0)),
          (r[i] = wr(i, !0, !0));
      }),
      [e, n, t, r]
    );
  })(),
  xr = h(br, 4),
  Sr = xr[0],
  Ar = xr[1],
  Ir = xr[2],
  Or = xr[3];
function Pr(e, t) {
  var n = t ? (e ? Or : Ir) : e ? Ar : Sr;
  return function (t, r, i) {
    return "__v_isReactive" === r
      ? !e
      : "__v_isReadonly" === r
      ? e
      : "__v_raw" === r
      ? t
      : Reflect.get(E(n, r) && r in t ? n : t, r, i);
  };
}
var Tr = { get: Pr(!1, !1) },
  Er = { get: Pr(!1, !0) },
  Cr = { get: Pr(!0, !1) },
  Rr = new WeakMap(),
  Lr = new WeakMap(),
  Dr = new WeakMap(),
  Br = new WeakMap();
function Nr(e) {
  return $r(e) ? e : jr(e, !1, ur, Tr, Rr);
}
function Ur(e) {
  return jr(e, !0, sr, Cr, Dr);
}
function jr(e, t, n, r, i) {
  if (!U(e)) return e;
  if (e.__v_raw && (!t || !e.__v_isReactive)) return e;
  var o = i.get(e);
  if (o) return o;
  var a,
    u =
      (a = e).__v_skip || !Object.isExtensible(a)
        ? 0
        : (function (e) {
            switch (e) {
              case "Object":
              case "Array":
                return 1;
              case "Map":
              case "Set":
              case "WeakMap":
              case "WeakSet":
                return 2;
              default:
                return 0;
            }
          })(
            (function (e) {
              return $(e).slice(8, -1);
            })(a)
          );
  if (0 === u) return e;
  var s = new Proxy(e, 2 === u ? r : n);
  return i.set(e, s), s;
}
function Mr(e) {
  return $r(e) ? Mr(e.__v_raw) : !(!e || !e.__v_isReactive);
}
function $r(e) {
  return !(!e || !e.__v_isReadonly);
}
function Fr(e) {
  return !(!e || !e.__v_isShallow);
}
function Hr(e) {
  var t = e && e.__v_raw;
  return t ? Hr(t) : e;
}
function qr(e) {
  return (
    (function (e, t, n) {
      Object.defineProperty(e, t, {
        configurable: !0,
        enumerable: !1,
        value: n,
      });
    })(e, "__v_skip", !0),
    e
  );
}
var zr = function (e) {
    return U(e) ? Nr(e) : e;
  },
  Wr = function (e) {
    return U(e) ? Ur(e) : e;
  };
function Vr(e) {
  qn && Rn && Jn((e = Hr(e)).dep || (e.dep = Ln()));
}
function Kr(e, t) {
  var n = (e = Hr(e)).dep;
  n && Yn(n);
}
function Jr(e) {
  return !(!e || !0 !== e.__v_isRef);
}
function Gr(e) {
  return (function (e, t) {
    return Jr(e) ? e : new Yr(e, !1);
  })(e);
}
var Yr = (function () {
  function e(t, n) {
    s(this, e),
      (this.__v_isShallow = n),
      (this.dep = void 0),
      (this.__v_isRef = !0),
      (this._rawValue = n ? t : Hr(t)),
      (this._value = n ? t : zr(t));
  }
  return (
    c(e, [
      {
        key: "value",
        get: function () {
          return Vr(this), this._value;
        },
        set: function (e) {
          var t = this.__v_isShallow || Fr(e) || $r(e);
          (e = t ? e : Hr(e)),
            X(e, this._rawValue) &&
              ((this._rawValue = e), (this._value = t ? e : zr(e)), Kr(this));
        },
      },
    ]),
    e
  );
})();
function Xr(e) {
  return Jr(e) ? e.value : e;
}
var Qr = {
  get: function (e, t, n) {
    return Xr(Reflect.get(e, t, n));
  },
  set: function (e, t, n, r) {
    var i = e[t];
    return Jr(i) && !Jr(n) ? ((i.value = n), !0) : Reflect.set(e, t, n, r);
  },
};
function Zr(e) {
  return Mr(e) ? e : new Proxy(e, Qr);
}
var ei,
  ti = (function () {
    function e(t, n, r) {
      s(this, e),
        (this._object = t),
        (this._key = n),
        (this._defaultValue = r),
        (this.__v_isRef = !0);
    }
    return (
      c(e, [
        {
          key: "value",
          get: function () {
            var e = this._object[this._key];
            return void 0 === e ? this._defaultValue : e;
          },
          set: function (e) {
            this._object[this._key] = e;
          },
        },
        {
          key: "dep",
          get: function () {
            return (
              (e = Hr(this._object)),
              (t = this._key),
              null === (n = Nn.get(e)) || void 0 === n ? void 0 : n.get(t)
            );
            var e, t, n;
          },
        },
      ]),
      e
    );
  })();
function ni(e, t, n) {
  var r = e[t];
  return Jr(r) ? r : new ti(e, t, n);
}
var ri = (function () {
  function e(t, n, r, i) {
    var o = this;
    s(this, e),
      (this._setter = n),
      (this.dep = void 0),
      (this.__v_isRef = !0),
      (this[ei] = !1),
      (this._dirty = !0),
      (this.effect = new Fn(t, function () {
        o._dirty || ((o._dirty = !0), Kr(o));
      })),
      (this.effect.computed = this),
      (this.effect.active = this._cacheable = !i),
      (this.__v_isReadonly = r);
  }
  return (
    c(e, [
      {
        key: "value",
        get: function () {
          var e = Hr(this);
          return (
            Vr(e),
            (!e._dirty && e._cacheable) ||
              ((e._dirty = !1), (e._value = e.effect.run())),
            e._value
          );
        },
        set: function (e) {
          this._setter(e);
        },
      },
    ]),
    e
  );
})();
function ii(e, t, n, r) {
  var i;
  try {
    i = r ? e.apply(void 0, p(r)) : e();
  } catch (e) {
    ai(e, t, n);
  }
  return i;
}
function oi(e, t, n, r) {
  if (D(e)) {
    var i = ii(e, t, n, r);
    return (
      i &&
        j(i) &&
        i.catch(function (e) {
          ai(e, t, n);
        }),
      i
    );
  }
  for (var o = [], a = 0; a < e.length; a++) o.push(oi(e[a], t, n, r));
  return o;
}
function ai(e, t, n) {
  var r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3];
  if ((t && t.vnode, t)) {
    for (var i = t.parent, o = t.proxy, a = n; i; ) {
      var u = i.ec;
      if (u)
        for (var s = 0; s < u.length; s++) if (!1 === u[s](e, o, a)) return;
      i = i.parent;
    }
    var c = t.appContext.config.errorHandler;
    if (c) return void ii(c, null, 10, [e, o, a]);
  }
  !(function (e, t, n) {
    console.error(e);
  })(e, 0, 0, r);
}
ei = "__v_isReadonly";
var ui = !1,
  si = !1,
  ci = [],
  fi = 0,
  li = [],
  hi = null,
  pi = 0,
  di = Promise.resolve(),
  vi = null;
function gi(e) {
  var t = vi || di;
  return e ? t.then(this ? e.bind(this) : e) : t;
}
function yi(e) {
  (ci.length && ci.includes(e, ui && e.allowRecurse ? fi + 1 : fi)) ||
    (null == e.id
      ? ci.push(e)
      : ci.splice(
          (function (e) {
            for (var t = fi + 1, n = ci.length; t < n; ) {
              var r = (t + n) >>> 1;
              ki(ci[r]) < e ? (t = r + 1) : (n = r);
            }
            return t;
          })(e.id),
          0,
          e
        ),
    _i());
}
function _i() {
  ui || si || ((si = !0), (vi = di.then(xi)));
}
function mi(e) {
  C(e)
    ? li.push.apply(li, p(e))
    : (hi && hi.includes(e, e.allowRecurse ? pi + 1 : pi)) || li.push(e),
    _i();
}
function wi(e) {
  for (
    var t =
      arguments.length > 1 && void 0 !== arguments[1]
        ? arguments[1]
        : ui
        ? fi + 1
        : 0;
    t < ci.length;
    t++
  ) {
    var n = ci[t];
    n && n.pre && (ci.splice(t, 1), t--, n());
  }
}
var ki = function (e) {
    return null == e.id ? 1 / 0 : e.id;
  },
  bi = function (e, t) {
    var n = ki(e) - ki(t);
    if (0 === n) {
      if (e.pre && !t.pre) return -1;
      if (t.pre && !e.pre) return 1;
    }
    return n;
  };
function xi(e) {
  (si = !1), (ui = !0), ci.sort(bi);
  try {
    for (fi = 0; fi < ci.length; fi++) {
      var t = ci[fi];
      t && !1 !== t.active && ii(t, null, 14);
    }
  } finally {
    (fi = 0),
      (ci.length = 0),
      (function (e) {
        if (li.length) {
          var t,
            n = p(new Set(li));
          if (((li.length = 0), hi)) return void (t = hi).push.apply(t, p(n));
          for (
            (hi = n).sort(function (e, t) {
              return ki(e) - ki(t);
            }),
              pi = 0;
            pi < hi.length;
            pi++
          )
            hi[pi]();
          (hi = null), (pi = 0);
        }
      })(),
      (ui = !1),
      (vi = null),
      (ci.length || li.length) && xi();
  }
}
function Si(e, t) {
  if (!e.isUnmounted) {
    for (
      var n = e.vnode.props || w,
        r = arguments.length,
        i = new Array(r > 2 ? r - 2 : 0),
        o = 2;
      o < r;
      o++
    )
      i[o - 2] = arguments[o];
    var a = i,
      u = t.startsWith("update:"),
      s = u && t.slice(7);
    if (s && s in n) {
      var c = "".concat("modelValue" === s ? "model" : s, "Modifiers"),
        f = n[c] || w,
        l = f.number,
        h = f.trim;
      h &&
        (a = i.map(function (e) {
          return B(e) ? e.trim() : e;
        })),
        l && (a = i.map(Z));
    }
    var p,
      d = n[(p = Y(t))] || n[(p = Y(V(t)))];
    !d && u && (d = n[(p = Y(J(t)))]), d && oi(d, e, 6, a);
    var v = n[p + "Once"];
    if (v) {
      if (e.emitted) {
        if (e.emitted[p]) return;
      } else e.emitted = {};
      (e.emitted[p] = !0), oi(v, e, 6, a);
    }
  }
}
function Ai(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
    r = t.emitsCache,
    i = r.get(e);
  if (void 0 !== i) return i;
  var o = e.emits,
    a = {},
    u = !1;
  if (!D(e)) {
    var s = function (e) {
      var n = Ai(e, t, !0);
      n && ((u = !0), O(a, n));
    };
    !n && t.mixins.length && t.mixins.forEach(s),
      e.extends && s(e.extends),
      e.mixins && e.mixins.forEach(s);
  }
  return o || u
    ? (C(o)
        ? o.forEach(function (e) {
            return (a[e] = null);
          })
        : O(a, o),
      U(e) && r.set(e, a),
      a)
    : (U(e) && r.set(e, null), null);
}
function Ii(e, t) {
  return (
    !(!e || !A(t)) &&
    ((t = t.slice(2).replace(/Once$/, "")),
    E(e, t[0].toLowerCase() + t.slice(1)) || E(e, J(t)) || E(e, t))
  );
}
var Oi = null;
function Pi(e) {
  var t = Oi;
  return (Oi = e), e && e.type.__scopeId, t;
}
function Ti(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
    r = Eo || Oi;
  if (r) {
    var i =
      null == r.parent
        ? r.vnode.appContext && r.vnode.appContext.provides
        : r.parent.provides;
    if (i && e in i) return i[e];
    if (arguments.length > 1) return n && D(t) ? t.call(r.proxy) : t;
  }
}
var Ei = {};
function Ci(e, t, n) {
  return Ri(e, t, n);
}
function Ri(e, t) {
  var n,
    r,
    i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : w,
    o = i.immediate,
    a = i.deep,
    u = i.flush,
    s =
      (i.onTrack,
      i.onTrigger,
      Cn() === (null == Eo ? void 0 : Eo.scope) ? Eo : null),
    c = !1,
    f = !1;
  if (
    (Jr(e)
      ? ((n = function () {
          return e.value;
        }),
        (c = Fr(e)))
      : Mr(e)
      ? ((n = function () {
          return e;
        }),
        (a = !0))
      : C(e)
      ? ((f = !0),
        (c = e.some(function (e) {
          return Mr(e) || Fr(e);
        })),
        (n = function () {
          return e.map(function (e) {
            return Jr(e)
              ? e.value
              : Mr(e)
              ? Bi(e)
              : D(e)
              ? ii(e, s, 2)
              : void 0;
          });
        }))
      : (n = D(e)
          ? t
            ? function () {
                return ii(e, s, 2);
              }
            : function () {
                if (!s || !s.isUnmounted) return r && r(), oi(e, s, 3, [p]);
              }
          : b),
    t && a)
  ) {
    var l = n;
    n = function () {
      return Bi(l());
    };
  }
  var h,
    p = function (e) {
      r = g.onStop = function () {
        ii(e, s, 4);
      };
    },
    d = f ? new Array(e.length).fill(Ei) : Ei,
    v = function () {
      if (g.active)
        if (t) {
          var e = g.run();
          (a ||
            c ||
            (f
              ? e.some(function (e, t) {
                  return X(e, d[t]);
                })
              : X(e, d))) &&
            (r && r(),
            oi(t, s, 3, [e, d === Ei ? void 0 : f && d[0] === Ei ? [] : d, p]),
            (d = e));
        } else g.run();
    };
  (v.allowRecurse = !!t),
    "sync" === u
      ? (h = v)
      : "post" === u
      ? (h = function () {
          return Io(v, s && s.suspense);
        })
      : ((v.pre = !0),
        s && (v.id = s.uid),
        (h = function () {
          return yi(v);
        }));
  var g = new Fn(n, h);
  return (
    t
      ? o
        ? v()
        : (d = g.run())
      : "post" === u
      ? Io(g.run.bind(g), s && s.suspense)
      : g.run(),
    function () {
      g.stop(), s && s.scope && P(s.scope.effects, g);
    }
  );
}
function Li(e, t, n) {
  var r,
    i = this.proxy,
    o = B(e)
      ? e.includes(".")
        ? Di(i, e)
        : function () {
            return i[e];
          }
      : e.bind(i, i);
  D(t) ? (r = t) : ((r = t.handler), (n = t));
  var a = Eo;
  Ro(this);
  var u = Ri(o, r.bind(i), n);
  return a ? Ro(a) : Lo(), u;
}
function Di(e, t) {
  var n = t.split(".");
  return function () {
    for (var t = e, r = 0; r < n.length && t; r++) t = t[n[r]];
    return t;
  };
}
function Bi(e, t) {
  if (!U(e) || e.__v_skip) return e;
  if ((t = t || new Set()).has(e)) return e;
  if ((t.add(e), Jr(e))) Bi(e.value, t);
  else if (C(e)) for (var n = 0; n < e.length; n++) Bi(e[n], t);
  else if (L(e) || R(e))
    e.forEach(function (e) {
      Bi(e, t);
    });
  else if (F(e)) for (var r in e) Bi(e[r], t);
  return e;
}
var Ni = function (e) {
  return e.type.__isKeepAlive;
};
function Ui(e, t) {
  Mi(e, "a", t);
}
function ji(e, t) {
  Mi(e, "da", t);
}
function Mi(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Eo,
    r =
      e.__wdc ||
      (e.__wdc = function () {
        for (var t = n; t; ) {
          if (t.isDeactivated) return;
          t = t.parent;
        }
        return e();
      });
  if ((Fi(t, r, n), n))
    for (var i = n.parent; i && i.parent; )
      Ni(i.parent.vnode) && $i(r, t, n, i), (i = i.parent);
}
function $i(e, t, n, r) {
  var i = Fi(t, e, r, !0);
  Ji(function () {
    P(r[t], i);
  }, n);
}
function Fi(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Eo,
    r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
  if (n) {
    (function (e) {
      return Ce.indexOf(e) > -1;
    })(e) && (n = n.root);
    var i = n[e] || (n[e] = []),
      o =
        t.__weh ||
        (t.__weh = function () {
          if (!n.isUnmounted) {
            Wn(), Ro(n);
            for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
              i[o] = arguments[o];
            var a = oi(t, n, e, i);
            return Lo(), Vn(), a;
          }
        });
    return r ? i.unshift(o) : i.push(o), o;
  }
}
var Hi = function (e) {
    return function (t) {
      var n =
        arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Eo;
      return (
        (!Bo || "sp" === e) &&
        Fi(
          e,
          function () {
            return t.apply(void 0, arguments);
          },
          n
        )
      );
    };
  },
  qi = Hi("bm"),
  zi = Hi("m"),
  Wi = Hi("bu"),
  Vi = Hi("u"),
  Ki = Hi("bum"),
  Ji = Hi("um"),
  Gi = Hi("sp"),
  Yi = Hi("rtg"),
  Xi = Hi("rtc");
function Qi(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Eo;
  Fi("ec", e, t);
}
var Zi = "components";
function eo(e, t) {
  return e && (e[t] || e[V(t)] || e[G(V(t))]);
}
var to = function e(t) {
    return t ? (Do(t) ? Uo(t) || t.proxy : e(t.parent)) : null;
  },
  no = O(Object.create(null), {
    $: function (e) {
      return e;
    },
    $el: function (e) {
      return e.__$el || (e.__$el = {});
    },
    $data: function (e) {
      return e.data;
    },
    $props: function (e) {
      return e.props;
    },
    $attrs: function (e) {
      return e.attrs;
    },
    $slots: function (e) {
      return e.slots;
    },
    $refs: function (e) {
      return e.refs;
    },
    $parent: function (e) {
      return to(e.parent);
    },
    $root: function (e) {
      return to(e.root);
    },
    $emit: function (e) {
      return e.emit;
    },
    $options: function (e) {
      return so(e);
    },
    $forceUpdate: function (e) {
      return (
        e.f ||
        (e.f = function () {
          return yi(e.update);
        })
      );
    },
    $watch: function (e) {
      return Li.bind(e);
    },
  }),
  ro = function (e, t) {
    return e !== w && !e.__isScriptSetup && E(e, t);
  },
  io = {
    get: function (e, t) {
      var n,
        r = e._,
        i = r.ctx,
        o = r.setupState,
        a = r.data,
        u = r.props,
        s = r.accessCache,
        c = r.type,
        f = r.appContext;
      if ("$" !== t[0]) {
        var l = s[t];
        if (void 0 !== l)
          switch (l) {
            case 1:
              return o[t];
            case 2:
              return a[t];
            case 4:
              return i[t];
            case 3:
              return u[t];
          }
        else {
          if (ro(o, t)) return (s[t] = 1), o[t];
          if (a !== w && E(a, t)) return (s[t] = 2), a[t];
          if ((n = r.propsOptions[0]) && E(n, t)) return (s[t] = 3), u[t];
          if (i !== w && E(i, t)) return (s[t] = 4), i[t];
          oo && (s[t] = 0);
        }
      }
      var h,
        p,
        d = no[t];
      return d
        ? ("$attrs" === t && Kn(r, 0, t), d(r))
        : (h = c.__cssModules) && (h = h[t])
        ? h
        : i !== w && E(i, t)
        ? ((s[t] = 4), i[t])
        : ((p = f.config.globalProperties), E(p, t) ? p[t] : void 0);
    },
    set: function (e, t, n) {
      var r = e._,
        i = r.data,
        o = r.setupState,
        a = r.ctx;
      return ro(o, t)
        ? ((o[t] = n), !0)
        : i !== w && E(i, t)
        ? ((i[t] = n), !0)
        : !(
            E(r.props, t) ||
            ("$" === t[0] && t.slice(1) in r) ||
            ((a[t] = n), 0)
          );
    },
    has: function (e, t) {
      var n,
        r = e._,
        i = r.data,
        o = r.setupState,
        a = r.accessCache,
        u = r.ctx,
        s = r.appContext,
        c = r.propsOptions;
      return (
        !!a[t] ||
        (i !== w && E(i, t)) ||
        ro(o, t) ||
        ((n = c[0]) && E(n, t)) ||
        E(u, t) ||
        E(no, t) ||
        E(s.config.globalProperties, t)
      );
    },
    defineProperty: function (e, t, n) {
      return (
        null != n.get
          ? (e._.accessCache[t] = 0)
          : E(n, "value") && this.set(e, t, n.value, null),
        Reflect.defineProperty(e, t, n)
      );
    },
  },
  oo = !0;
function ao(e, t, n) {
  oi(
    C(e)
      ? e.map(function (e) {
          return e.bind(t.proxy);
        })
      : e.bind(t.proxy),
    t,
    n
  );
}
function uo(e, t, n, r) {
  var i = r.includes(".")
    ? Di(n, r)
    : function () {
        return n[r];
      };
  if (B(e)) {
    var o = t[e];
    D(o) && Ci(i, o);
  } else if (D(e)) Ci(i, e.bind(n));
  else if (U(e))
    if (C(e))
      e.forEach(function (e) {
        return uo(e, t, n, r);
      });
    else {
      var a = D(e.handler) ? e.handler.bind(n) : t[e.handler];
      D(a) && Ci(i, a, e);
    }
}
function so(e) {
  var t,
    n = e.type,
    r = n.mixins,
    i = n.extends,
    o = e.appContext,
    a = o.mixins,
    u = o.optionsCache,
    s = o.config.optionMergeStrategies,
    c = u.get(n);
  return (
    c
      ? (t = c)
      : a.length || r || i
      ? ((t = {}),
        a.length &&
          a.forEach(function (e) {
            return co(t, e, s, !0);
          }),
        co(t, n, s))
      : (t = n),
    U(n) && u.set(n, t),
    t
  );
}
function co(e, t, n) {
  var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3],
    i = t.mixins,
    o = t.extends;
  for (var a in (o && co(e, o, n, !0),
  i &&
    i.forEach(function (t) {
      return co(e, t, n, !0);
    }),
  t))
    if (r && "expose" === a);
    else {
      var u = fo[a] || (n && n[a]);
      e[a] = u ? u(e[a], t[a]) : t[a];
    }
  return e;
}
var fo = {
  data: lo,
  props: vo,
  emits: vo,
  methods: vo,
  computed: vo,
  beforeCreate: po,
  created: po,
  beforeMount: po,
  mounted: po,
  beforeUpdate: po,
  updated: po,
  beforeDestroy: po,
  beforeUnmount: po,
  destroyed: po,
  unmounted: po,
  activated: po,
  deactivated: po,
  errorCaptured: po,
  serverPrefetch: po,
  components: vo,
  directives: vo,
  watch: function (e, t) {
    if (!e) return t;
    if (!t) return e;
    var n = O(Object.create(null), e);
    for (var r in t) n[r] = po(e[r], t[r]);
    return n;
  },
  provide: lo,
  inject: function (e, t) {
    return vo(ho(e), ho(t));
  },
};
function lo(e, t) {
  return t
    ? e
      ? function () {
          return O(
            D(e) ? e.call(this, this) : e,
            D(t) ? t.call(this, this) : t
          );
        }
      : t
    : e;
}
function ho(e) {
  if (C(e)) {
    for (var t = {}, n = 0; n < e.length; n++) t[e[n]] = e[n];
    return t;
  }
  return e;
}
function po(e, t) {
  return e ? p(new Set([].concat(e, t))) : t;
}
function vo(e, t) {
  return e ? O(O(Object.create(null), e), t) : t;
}
function go(e, t, n) {
  var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3],
    i = {},
    o = {};
  for (var a in ((e.propsDefaults = Object.create(null)),
  yo(e, t, i, o),
  e.propsOptions[0]))
    a in i || (i[a] = void 0);
  n
    ? (e.props = r ? i : jr(i, !1, cr, Er, Lr))
    : e.type.props
    ? (e.props = i)
    : (e.props = o),
    (e.attrs = o);
}
function yo(e, t, n, r) {
  var i,
    o = h(e.propsOptions, 2),
    a = o[0],
    u = o[1],
    s = !1;
  if (t)
    for (var c in t)
      if (!q(c)) {
        var f = t[c],
          l = void 0;
        a && E(a, (l = V(c)))
          ? u && u.includes(l)
            ? ((i || (i = {}))[l] = f)
            : (n[l] = f)
          : Ii(e.emitsOptions, c) ||
            (c in r && f === r[c]) ||
            ((r[c] = f), (s = !0));
      }
  if (u)
    for (var p = Hr(n), d = i || w, v = 0; v < u.length; v++) {
      var g = u[v];
      n[g] = _o(a, p, g, d[g], e, !E(d, g));
    }
  return s;
}
function _o(e, t, n, r, i, o) {
  var a = e[n];
  if (null != a) {
    var u = E(a, "default");
    if (u && void 0 === r) {
      var s = a.default;
      if (a.type !== Function && D(s)) {
        var c = i.propsDefaults;
        n in c ? (r = c[n]) : (Ro(i), (r = c[n] = s.call(null, t)), Lo());
      } else r = s;
    }
    a[0] &&
      (o && !u ? (r = !1) : !a[1] || ("" !== r && r !== J(n)) || (r = !0));
  }
  return r;
}
function mo(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
    r = t.propsCache,
    i = r.get(e);
  if (i) return i;
  var o = e.props,
    a = {},
    u = [],
    s = !1;
  if (!D(e)) {
    var c = function (e) {
      s = !0;
      var n = mo(e, t, !0),
        r = h(n, 2),
        i = r[0],
        o = r[1];
      O(a, i), o && u.push.apply(u, p(o));
    };
    !n && t.mixins.length && t.mixins.forEach(c),
      e.extends && c(e.extends),
      e.mixins && e.mixins.forEach(c);
  }
  if (!o && !s) return U(e) && r.set(e, k), k;
  if (C(o))
    for (var f = 0; f < o.length; f++) {
      var l = V(o[f]);
      wo(l) && (a[l] = w);
    }
  else if (o)
    for (var d in o) {
      var v = V(d);
      if (wo(v)) {
        var g = o[d],
          y = (a[v] = C(g) || D(g) ? { type: g } : Object.assign({}, g));
        if (y) {
          var _ = xo(Boolean, y.type),
            m = xo(String, y.type);
          (y[0] = _ > -1),
            (y[1] = m < 0 || _ < m),
            (_ > -1 || E(y, "default")) && u.push(v);
        }
      }
    }
  var b = [a, u];
  return U(e) && r.set(e, b), b;
}
function wo(e) {
  return "$" !== e[0];
}
function ko(e) {
  var t = e && e.toString().match(/^\s*(function|class) (\w+)/);
  return t ? t[2] : null === e ? "null" : "";
}
function bo(e, t) {
  return ko(e) === ko(t);
}
function xo(e, t) {
  return C(t)
    ? t.findIndex(function (t) {
        return bo(t, e);
      })
    : D(t) && bo(t, e)
    ? 0
    : -1;
}
function So() {
  return {
    app: null,
    config: {
      isNativeTag: x,
      performance: !1,
      globalProperties: {},
      optionMergeStrategies: {},
      errorHandler: void 0,
      warnHandler: void 0,
      compilerOptions: {},
    },
    mixins: [],
    components: {},
    directives: {},
    provides: Object.create(null),
    optionsCache: new WeakMap(),
    propsCache: new WeakMap(),
    emitsCache: new WeakMap(),
  };
}
var Ao = 0,
  Io = mi;
var Oo = So(),
  Po = 0;
function To(e, t, n) {
  var r = e.type,
    i = (t ? t.appContext : e.appContext) || Oo,
    o = {
      uid: Po++,
      vnode: e,
      type: r,
      parent: t,
      appContext: i,
      root: null,
      next: null,
      subTree: null,
      effect: null,
      update: null,
      scope: new Tn(!0),
      render: null,
      proxy: null,
      exposed: null,
      exposeProxy: null,
      withProxy: null,
      provides: t ? t.provides : Object.create(i.provides),
      accessCache: null,
      renderCache: [],
      components: null,
      directives: null,
      propsOptions: mo(r, i),
      emitsOptions: Ai(r, i),
      emit: null,
      emitted: null,
      propsDefaults: w,
      inheritAttrs: r.inheritAttrs,
      ctx: w,
      data: w,
      props: w,
      attrs: w,
      slots: w,
      refs: w,
      setupState: w,
      setupContext: null,
      suspense: n,
      suspenseId: n ? n.pendingId : 0,
      asyncDep: null,
      asyncResolved: !1,
      isMounted: !1,
      isUnmounted: !1,
      isDeactivated: !1,
      bc: null,
      c: null,
      bm: null,
      m: null,
      bu: null,
      u: null,
      um: null,
      bum: null,
      da: null,
      a: null,
      rtg: null,
      rtc: null,
      ec: null,
      sp: null,
    };
  return (
    (o.ctx = { _: o }),
    (o.root = t ? t.root : o),
    (o.emit = Si.bind(null, o)),
    e.ce && e.ce(o),
    o
  );
}
var Eo = null,
  Co = function () {
    return Eo || Oi;
  },
  Ro = function (e) {
    (Eo = e), e.scope.on();
  },
  Lo = function () {
    Eo && Eo.scope.off(), (Eo = null);
  };
function Do(e) {
  return 4 & e.vnode.shapeFlag;
}
var Bo = !1;
function No(e, t, n) {
  var r = e.type;
  e.render || (e.render = r.render || b),
    Ro(e),
    Wn(),
    (function (e) {
      var t = so(e),
        n = e.proxy,
        r = e.ctx;
      (oo = !1), t.beforeCreate && ao(t.beforeCreate, e, "bc");
      var i = t.data,
        o = t.computed,
        a = t.methods,
        u = t.watch,
        s = t.provide,
        c = t.inject,
        f = t.created,
        l = t.beforeMount,
        h = t.mounted,
        p = t.beforeUpdate,
        d = t.updated,
        v = t.activated,
        g = t.deactivated,
        y = (t.beforeDestroy, t.beforeUnmount),
        _ = (t.destroyed, t.unmounted),
        m = t.render,
        w = t.renderTracked,
        k = t.renderTriggered,
        x = t.errorCaptured,
        S = t.serverPrefetch,
        A = t.expose,
        I = t.inheritAttrs,
        O = t.components,
        P = t.directives;
      if (
        (t.filters,
        c &&
          (function (e, t) {
            var n =
              arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
            C(e) && (e = ho(e));
            var r = function () {
              var r,
                o = e[i];
              Jr(
                (r = U(o)
                  ? "default" in o
                    ? Ti(o.from || i, o.default, !0)
                    : Ti(o.from || i)
                  : Ti(o))
              ) && n
                ? Object.defineProperty(t, i, {
                    enumerable: !0,
                    configurable: !0,
                    get: function () {
                      return r.value;
                    },
                    set: function (e) {
                      return (r.value = e);
                    },
                  })
                : (t[i] = r);
            };
            for (var i in e) r();
          })(c, r, null, e.appContext.config.unwrapInjectedRef),
        a)
      )
        for (var T in a) {
          var E = a[T];
          D(E) && (r[T] = E.bind(n));
        }
      if (i) {
        var R = i.call(n, n);
        U(R) && (e.data = Nr(R));
      }
      if (((oo = !0), o)) {
        var L = function () {
          var e = o[B],
            t = D(e) ? e.bind(n, n) : D(e.get) ? e.get.bind(n, n) : b,
            i = !D(e) && D(e.set) ? e.set.bind(n) : b,
            a = jo({ get: t, set: i });
          Object.defineProperty(r, B, {
            enumerable: !0,
            configurable: !0,
            get: function () {
              return a.value;
            },
            set: function (e) {
              return (a.value = e);
            },
          });
        };
        for (var B in o) L();
      }
      if (u) for (var N in u) uo(u[N], r, n, N);
      if (s) {
        var j = D(s) ? s.call(n) : s;
        Reflect.ownKeys(j).forEach(function (e) {
          !(function (e, t) {
            if (Eo) {
              var n = Eo.provides,
                r = Eo.parent && Eo.parent.provides;
              r === n && (n = Eo.provides = Object.create(r)),
                (n[e] = t),
                "app" === Eo.type.mpType && Eo.appContext.app.provide(e, t);
            }
          })(e, j[e]);
        });
      }
      function M(e, t) {
        C(t)
          ? t.forEach(function (t) {
              return e(t.bind(n));
            })
          : t && e(t.bind(n));
      }
      if (
        (f && ao(f, e, "c"),
        M(qi, l),
        M(zi, h),
        M(Wi, p),
        M(Vi, d),
        M(Ui, v),
        M(ji, g),
        M(Qi, x),
        M(Xi, w),
        M(Yi, k),
        M(Ki, y),
        M(Ji, _),
        M(Gi, S),
        C(A))
      )
        if (A.length) {
          var $ = e.exposed || (e.exposed = {});
          A.forEach(function (e) {
            Object.defineProperty($, e, {
              get: function () {
                return n[e];
              },
              set: function (t) {
                return (n[e] = t);
              },
            });
          });
        } else e.exposed || (e.exposed = {});
      m && e.render === b && (e.render = m),
        null != I && (e.inheritAttrs = I),
        O && (e.components = O),
        P && (e.directives = P),
        e.ctx.$onApplyOptions && e.ctx.$onApplyOptions(t, e, n);
    })(e),
    Vn(),
    Lo();
}
function Uo(e) {
  if (e.exposed)
    return (
      e.exposeProxy ||
      (e.exposeProxy = new Proxy(Zr(qr(e.exposed)), {
        get: function (t, n) {
          return n in t ? t[n] : e.proxy[n];
        },
        has: function (e, t) {
          return t in e || t in no;
        },
      }))
    );
}
var jo = function (e, t) {
  return (function (e, t) {
    var n,
      r,
      i = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
      o = D(e);
    return (
      o ? ((n = e), (r = b)) : ((n = e.get), (r = e.set)),
      new ri(n, r, o || !r, i)
    );
  })(e, 0, Bo);
};
function Mo(e) {
  return Xr(e);
}
var $o,
  Fo,
  Ho = "[object Array]",
  qo = "[object Object]";
function zo(e, t) {
  var n = {};
  return (
    (function e(t, n) {
      if ((t = Mo(t)) === n) return;
      var r = $(t),
        i = $(n);
      if (r == qo && i == qo)
        for (var o in n) {
          var a = t[o];
          void 0 === a ? (t[o] = null) : e(a, n[o]);
        }
      else
        r == Ho &&
          i == Ho &&
          t.length >= n.length &&
          n.forEach(function (n, r) {
            e(t[r], n);
          });
    })(e, t),
    (function e(t, n, r, i) {
      if ((t = Mo(t)) === n) return;
      var o = $(t),
        a = $(n);
      if (o == qo)
        if (a != qo || Object.keys(t).length < Object.keys(n).length)
          Wo(i, r, t);
        else {
          var u = function (o) {
            var a = Mo(t[o]),
              u = n[o],
              s = $(a),
              c = $(u);
            if (s != Ho && s != qo)
              a != u && Wo(i, ("" == r ? "" : r + ".") + o, a);
            else if (s == Ho)
              c != Ho || a.length < u.length
                ? Wo(i, ("" == r ? "" : r + ".") + o, a)
                : a.forEach(function (t, n) {
                    e(t, u[n], ("" == r ? "" : r + ".") + o + "[" + n + "]", i);
                  });
            else if (s == qo)
              if (c != qo || Object.keys(a).length < Object.keys(u).length)
                Wo(i, ("" == r ? "" : r + ".") + o, a);
              else
                for (var f in a)
                  e(a[f], u[f], ("" == r ? "" : r + ".") + o + "." + f, i);
          };
          for (var s in t) u(s);
        }
      else
        o == Ho
          ? a != Ho || t.length < n.length
            ? Wo(i, r, t)
            : t.forEach(function (t, o) {
                e(t, n[o], r + "[" + o + "]", i);
              })
          : Wo(i, r, t);
    })(e, t, "", n),
    n
  );
}
function Wo(e, t, n) {
  e[t] = n;
}
function Vo(e) {
  var t = e.ctx.__next_tick_callbacks;
  if (t && t.length) {
    var n = t.slice(0);
    t.length = 0;
    for (var r = 0; r < n.length; r++) n[r]();
  }
}
function Ko(e, t) {
  var n,
    r = e.ctx;
  return r.__next_tick_pending ||
    (function (e) {
      return ci.includes(e.update);
    })(e)
    ? (r.__next_tick_callbacks || (r.__next_tick_callbacks = []),
      r.__next_tick_callbacks.push(function () {
        t ? ii(t.bind(e.proxy), e, 14) : n && n(e.proxy);
      }),
      new Promise(function (e) {
        n = e;
      }))
    : gi(t && t.bind(e.proxy));
}
function Jo(e) {
  return (function e(t, n) {
    var r = f((t = Mo(t)));
    if ("object" === r && null !== t) {
      var i = n.get(t);
      if (void 0 !== i) return i;
      if (C(t)) {
        var o = t.length;
        (i = new Array(o)), n.set(t, i);
        for (var a = 0; a < o; a++) i[a] = e(t[a], n);
      } else
        for (var u in ((i = {}), n.set(t, i), t))
          E(t, u) && (i[u] = e(t[u], n));
      return i;
    }
    if ("symbol" !== r) return t;
  })(e, "undefined" != typeof WeakMap ? new WeakMap() : new Map());
}
function Go(e, t, n) {
  if (t) {
    t = Jo(t);
    var r = e.ctx,
      i = r.mpType;
    if ("page" === i || "component" === i) {
      t.r0 = 1;
      var o = r.$scope,
        a = Object.keys(t),
        u = zo(
          t,
          n ||
            (function (e, t) {
              var n = e.data,
                r = Object.create(null);
              return (
                t.forEach(function (e) {
                  r[e] = n[e];
                }),
                r
              );
            })(o, a)
        );
      Object.keys(u).length
        ? ((r.__next_tick_pending = !0),
          o.setData(u, function () {
            (r.__next_tick_pending = !1), Vo(e);
          }),
          wi())
        : Vo(e);
    }
  }
}
function Yo(e, t, n) {
  t.appContext.config.globalProperties.$applyOptions(e, t, n);
  var r = e.computed;
  if (r) {
    var i = Object.keys(r);
    if (i.length) {
      var o,
        a = t.ctx;
      a.$computedKeys || (a.$computedKeys = []),
        (o = a.$computedKeys).push.apply(o, i);
    }
  }
  delete t.ctx.$onApplyOptions;
}
function Xo(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
    n = e.setupState,
    r = e.$templateRefs,
    i = e.ctx,
    o = i.$scope,
    a = i.$mpPlatform;
  if ("mp-alipay" !== a && r && o) {
    if (t)
      return r.forEach(function (e) {
        return Qo(e, null, n);
      });
    var u = "mp-baidu" === a || "mp-toutiao" === a,
      s = function (e) {
        var t = (o.selectAllComponents(".r") || []).concat(
          o.selectAllComponents(".r-i-f") || []
        );
        return e.filter(function (e) {
          var r = (function (e, t) {
            var n = e.find(function (e) {
              return e && (e.properties || e.props).uI === t;
            });
            if (n) {
              var r = n.$vm;
              return r
                ? Uo(r.$) || r
                : (function (e) {
                    return U(e) && qr(e), e;
                  })(n);
            }
            return null;
          })(t, e.i);
          return !(!u || null !== r) || (Qo(e, r, n), !1);
        });
      },
      c = function () {
        var t = s(r);
        t.length &&
          e.proxy &&
          e.proxy.$scope &&
          e.proxy.$scope.setData({ r1: 1 }, function () {
            s(t);
          });
      };
    o._$setRef ? o._$setRef(c) : Ko(e, c);
  }
}
function Qo(e, t, n) {
  var r = e.r,
    i = e.f;
  if (D(r)) r(t, {});
  else {
    var o = B(r),
      a = Jr(r);
    if (o || a)
      if (i) {
        if (!a) return;
        C(r.value) || (r.value = []);
        var u = r.value;
        if (-1 === u.indexOf(t)) {
          if ((u.push(t), !t)) return;
          Ki(function () {
            return P(u, t);
          }, t.$);
        }
      } else o ? E(n, r) && (n[r] = t) : Jr(r) && (r.value = t);
  }
}
((Fo = $o || ($o = {})).APP = "app"),
  (Fo.PAGE = "page"),
  (Fo.COMPONENT = "component");
var Zo = mi;
function ea(e, t) {
  var n = (e.component = To(e, t.parentComponent, null));
  return (
    (n.ctx.$onApplyOptions = Yo),
    (n.ctx.$children = []),
    "app" === t.mpType && (n.render = b),
    t.onBeforeSetup && t.onBeforeSetup(n, t),
    (function (e) {
      var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
      Bo = t;
      var n = e.vnode.props,
        r = Do(e);
      go(e, n, r, t);
      var i = r
        ? (function (e, t) {
            var n = e.type;
            (e.accessCache = Object.create(null)),
              (e.proxy = qr(new Proxy(e.ctx, io)));
            var r = n.setup;
            if (r) {
              var i = (e.setupContext =
                r.length > 1
                  ? (function (e) {
                      var t;
                      return {
                        get attrs() {
                          return (
                            t ||
                            (t = (function (e) {
                              return new Proxy(e.attrs, {
                                get: function (t, n) {
                                  return Kn(e, 0, "$attrs"), t[n];
                                },
                              });
                            })(e))
                          );
                        },
                        slots: e.slots,
                        emit: e.emit,
                        expose: function (t) {
                          e.exposed = t || {};
                        },
                      };
                    })(e)
                  : null);
              Ro(e), Wn();
              var o = ii(r, e, 0, [e.props, i]);
              Vn(),
                Lo(),
                j(o)
                  ? o.then(Lo, Lo)
                  : (function (e, t, n) {
                      D(t) ? (e.render = t) : U(t) && (e.setupState = Zr(t)),
                        No(e);
                    })(e, o);
            } else No(e);
          })(e)
        : void 0;
      Bo = !1;
    })(n),
    t.parentComponent &&
      n.proxy &&
      t.parentComponent.ctx.$children.push(Uo(n) || n.proxy),
    (function (e) {
      var t = oa.bind(e);
      e.$updateScopedSlots = function () {
        return gi(function () {
          return yi(t);
        });
      };
      var n = (e.effect = new Fn(
          function () {
            if (e.isMounted) {
              e.next;
              var t = e.bu,
                n = e.u;
              aa(e, !1), ia(), t && Q(t), aa(e, !0), Go(e, na(e)), n && Zo(n);
            } else
              Ki(function () {
                Xo(e, !0);
              }, e),
                Go(e, na(e));
          },
          function () {
            return yi(e.update);
          },
          e.scope
        )),
        r = (e.update = n.run.bind(n));
      (r.id = e.uid), aa(e, !0), r();
    })(n),
    n.proxy
  );
}
var ta = function (e) {
  var t;
  for (var n in e)
    ("class" === n || "style" === n || A(n)) && ((t || (t = {}))[n] = e[n]);
  return t;
};
function na(e) {
  var t,
    n = e.type,
    r = e.vnode,
    i = e.proxy,
    o = e.withProxy,
    a = e.props,
    u = h(e.propsOptions, 1)[0],
    s = e.slots,
    c = e.attrs,
    f = e.emit,
    l = e.render,
    p = e.renderCache,
    d = e.data,
    v = e.setupState,
    g = e.ctx,
    y = e.uid,
    _ = e.appContext.app.config.globalProperties.pruneComponentPropsCache,
    m = e.inheritAttrs;
  (e.$templateRefs = []),
    (e.$ei = 0),
    _(y),
    (e.__counter = 0 === e.__counter ? 1 : 0);
  var w = Pi(e);
  try {
    if (4 & r.shapeFlag) {
      ra(m, a, u, c);
      var k = o || i;
      t = l.call(k, k, p, a, v, d, g);
    } else {
      ra(m, a, u, n.props ? c : ta(c));
      var b = n;
      t = b.length > 1 ? b(a, { attrs: c, slots: s, emit: f }) : b(a, null);
    }
  } catch (n) {
    ai(n, e, 1), (t = !1);
  }
  return Xo(e), Pi(w), t;
}
function ra(e, t, n, r) {
  if (t && r && !1 !== e) {
    var i = Object.keys(r).filter(function (e) {
      return "class" !== e && "style" !== e;
    });
    if (!i.length) return;
    n && i.some(I)
      ? i.forEach(function (e) {
          (I(e) && e.slice(9) in n) || (t[e] = r[e]);
        })
      : i.forEach(function (e) {
          return (t[e] = r[e]);
        });
  }
}
var ia = function (e) {
  Wn(), wi(), Vn();
};
function oa() {
  var e = this.$scopedSlotsData;
  if (e && 0 !== e.length) {
    var t = this.ctx.$scope,
      n = t.data,
      r = Object.create(null);
    e.forEach(function (e) {
      var t = e.path,
        i = e.index,
        o = e.data,
        a = (function e(t, n) {
          if (B(n)) {
            var r = (n = n.replace(/\[(\d+)\]/g, ".$1")).split("."),
              i = r[0];
            return (
              t || (t = {}),
              1 === r.length ? t[i] : e(t[i], r.slice(1).join("."))
            );
          }
        })(n, t),
        u = B(i)
          ? "".concat(t, ".").concat(i)
          : "".concat(t, "[").concat(i, "]");
      if (void 0 === a || void 0 === a[i]) r[u] = o;
      else {
        var s = zo(o, a[i]);
        Object.keys(s).forEach(function (e) {
          r[u + "." + e] = s[e];
        });
      }
    }),
      (e.length = 0),
      Object.keys(r).length && t.setData(r);
  }
}
function aa(e, t) {
  var n = e.effect,
    r = e.update;
  n.allowRecurse = r.allowRecurse = t;
}
var ua,
  sa = function (e) {
    var t =
      arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
    D(e) || (e = Object.assign({}, e)), null == t || U(t) || (t = null);
    var n = So(),
      r = new Set(),
      i = (n.app = {
        _uid: Ao++,
        _component: e,
        _props: t,
        _container: null,
        _context: n,
        _instance: null,
        version: "3.2.47",
        get config() {
          return n.config;
        },
        set config(e) {},
        use: function (e) {
          for (
            var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1;
            o < t;
            o++
          )
            n[o - 1] = arguments[o];
          return (
            r.has(e) ||
              (e && D(e.install)
                ? (r.add(e), e.install.apply(e, [i].concat(n)))
                : D(e) && (r.add(e), e.apply(void 0, [i].concat(n)))),
            i
          );
        },
        mixin: function (e) {
          return n.mixins.includes(e) || n.mixins.push(e), i;
        },
        component: function (e, t) {
          return t ? ((n.components[e] = t), i) : n.components[e];
        },
        directive: function (e, t) {
          return t ? ((n.directives[e] = t), i) : n.directives[e];
        },
        mount: function () {},
        unmount: function () {},
        provide: function (e, t) {
          return (n.provides[e] = t), i;
        },
      });
    return i;
  };
function ca(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
  ("undefined" != typeof window
    ? window
    : "undefined" != typeof globalThis
    ? globalThis
    : "undefined" != typeof global
    ? global
    : "undefined" != typeof my
    ? my
    : void 0
  ).__VUE__ = !0;
  var n = sa(e, t),
    r = n._context;
  r.config.globalProperties.$nextTick = function (e) {
    return Ko(this.$, e);
  };
  var i = function (e) {
      return (e.appContext = r), (e.shapeFlag = 6), e;
    },
    o = function (e, t) {
      return ea(i(e), t);
    },
    a = function (e) {
      return (
        e &&
        (function (e) {
          var t = e.bum,
            n = e.scope,
            r = e.update,
            i = e.um;
          t && Q(t),
            n.stop(),
            r && (r.active = !1),
            i && Zo(i),
            Zo(function () {
              e.isUnmounted = !0;
            });
        })(e.$)
      );
    };
  return (
    (n.mount = function () {
      e.render = b;
      var t = ea(i({ type: e }), {
        mpType: $o.APP,
        mpInstance: null,
        parentComponent: null,
        slots: [],
        props: null,
      });
      return (
        (n._instance = t.$),
        (t.$app = n),
        (t.$createComponent = o),
        (t.$destroyComponent = a),
        (r.$appInstance = t),
        t
      );
    }),
    (n.unmount = function () {}),
    n
  );
}
function fa(e, t, n, r) {
  D(t) && Fi(e, t.bind(n), r);
}
function la(e, t, n) {
  !(function (e, t, n) {
    var r = e.mpType || n.$mpType;
    r &&
      "component" !== r &&
      Object.keys(e).forEach(function (r) {
        if (De(r, e[r], !1)) {
          var i = e[r];
          C(i)
            ? i.forEach(function (e) {
                return fa(r, e, n, t);
              })
            : fa(r, i, n, t);
        }
      });
  })(e, t, n);
}
function ha(e, t, n) {
  return (e[t] = n);
}
function pa(e) {
  for (
    var t = this[e],
      n = arguments.length,
      r = new Array(n > 1 ? n - 1 : 0),
      i = 1;
    i < n;
    i++
  )
    r[i - 1] = arguments[i];
  return t
    ? t.apply(void 0, r)
    : (console.error("method ".concat(e, " not found")), null);
}
function da(e) {
  return function (t, n, r) {
    if (!n) throw t;
    var i = e._instance;
    if (!i || !i.proxy) throw t;
    i.proxy.$callHook(re, t);
  };
}
function va(e, t) {
  return e ? p(new Set([].concat(e, t))) : t;
}
var ga = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  ya = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
function _a() {
  var e,
    t,
    n = Pn.getStorageSync("uni_id_token") || "",
    r = n.split(".");
  if (!n || 3 !== r.length)
    return { uid: null, role: [], permission: [], tokenExpired: 0 };
  try {
    e = JSON.parse(
      ((t = r[1]),
      decodeURIComponent(
        ua(t)
          .split("")
          .map(function (e) {
            return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
          })
          .join("")
      ))
    );
  } catch (e) {
    throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  }
  return (e.tokenExpired = 1e3 * e.exp), delete e.exp, delete e.iat, e;
}
ua =
  "function" != typeof atob
    ? function (e) {
        if (((e = String(e).replace(/[\t\n\f\r ]+/g, "")), !ya.test(e)))
          throw new Error(
            "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."
          );
        var t;
        e += "==".slice(2 - (3 & e.length));
        for (var n, r, i = "", o = 0; o < e.length; )
          (t =
            (ga.indexOf(e.charAt(o++)) << 18) |
            (ga.indexOf(e.charAt(o++)) << 12) |
            ((n = ga.indexOf(e.charAt(o++))) << 6) |
            (r = ga.indexOf(e.charAt(o++)))),
            (i +=
              64 === n
                ? String.fromCharCode((t >> 16) & 255)
                : 64 === r
                ? String.fromCharCode((t >> 16) & 255, (t >> 8) & 255)
                : String.fromCharCode(
                    (t >> 16) & 255,
                    (t >> 8) & 255,
                    255 & t
                  ));
        return i;
      }
    : atob;
var ma = Object.create(null);
function wa(e) {
  delete ma[e];
}
function ka(e) {
  if (e) {
    var t = e.split(","),
      n = h(t, 2),
      r = n[0],
      i = n[1];
    return ma[r] ? ma[r][parseInt(i)] : void 0;
  }
}
var ba = {
  install: function (e) {
    (function (e) {
      var t,
        n = e._context.config;
      (n.errorHandler = Ne(e, da)),
        (t = n.optionMergeStrategies),
        Re.forEach(function (e) {
          t[e] = va;
        });
      var r = n.globalProperties;
      !(function (e) {
        (e.uniIDHasRole = function (e) {
          return _a().role.indexOf(e) > -1;
        }),
          (e.uniIDHasPermission = function (e) {
            var t = _a().permission;
            return this.uniIDHasRole("admin") || t.indexOf(e) > -1;
          }),
          (e.uniIDTokenValid = function () {
            return _a().tokenExpired > Date.now();
          });
      })(r),
        (r.$set = ha),
        (r.$applyOptions = la),
        (r.$callMethod = pa),
        Pn.invokeCreateVueAppHook(e);
    })(e),
      (e.config.globalProperties.pruneComponentPropsCache = wa);
    var t = e.mount;
    e.mount = function (n) {
      var r = t.call(e, n),
        i = (function () {
          var e = "createApp";
          return "undefined" != typeof global
            ? global[e]
            : "undefined" != typeof my
            ? my[e]
            : void 0;
        })();
      return (
        i
          ? i(r)
          : "undefined" != typeof createMiniProgramApp &&
            createMiniProgramApp(r),
        r
      );
    };
  },
};
var xa = [
  "tap",
  "longpress",
  "longtap",
  "transitionend",
  "animationstart",
  "animationiteration",
  "animationend",
  "touchforcechange",
];
function Sa(e) {
  return B(e)
    ? e
    : (function (e) {
        var t = "";
        if (!e || B(e)) return t;
        for (var n in e)
          t += "".concat(n.startsWith("--") ? n : J(n), ":").concat(e[n], ";");
        return t;
      })(
        (function e(t) {
          if (C(t)) {
            for (var n = {}, r = 0; r < t.length; r++) {
              var i = t[r],
                o = B(i) ? _(i) : e(i);
              if (o) for (var a in o) n[a] = o[a];
            }
            return n;
          }
          return B(t) || U(t) ? t : void 0;
        })(e)
      );
}
var Aa = [
  "createSelectorQuery",
  "createIntersectionObserver",
  "selectAllComponents",
  "selectComponent",
];
function Ia(e, t) {
  var n = e.ctx;
  (n.mpType = t.mpType),
    (n.$mpType = t.mpType),
    (n.$mpPlatform = "mp-weixin"),
    (n.$scope = t.mpInstance),
    (n.$mp = {}),
    (n._self = {}),
    (e.slots = {}),
    C(t.slots) &&
      t.slots.length &&
      (t.slots.forEach(function (t) {
        e.slots[t] = !0;
      }),
      e.slots.d && (e.slots.default = !0)),
    (n.getOpenerEventChannel = function () {
      return t.mpInstance.getOpenerEventChannel();
    }),
    (n.$hasHook = Oa),
    (n.$callHook = Pa),
    (e.emit = (function (e, t) {
      return function (n) {
        for (
          var r = t.$scope,
            i = arguments.length,
            o = new Array(i > 1 ? i - 1 : 0),
            a = 1;
          a < i;
          a++
        )
          o[a - 1] = arguments[a];
        if (r && n) {
          var u = { __args__: o };
          r.triggerEvent(n, u);
        }
        return e.apply(this, [n].concat(o));
      };
    })(e.emit, n));
}
function Oa(e) {
  var t = this.$[e];
  return !(!t || !t.length);
}
function Pa(e, t) {
  "mounted" === e && (Pa.call(this, "bm"), (this.$.isMounted = !0), (e = "m"));
  var n = this.$[e];
  return (
    n &&
    (function (e, t) {
      for (var n, r = 0; r < e.length; r++) n = e[r](t);
      return n;
    })(n, t)
  );
}
var Ta = [ue, ee, te, ce, le, de, ve, ge, _e];
function Ea(e) {
  var t =
    arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : new Set();
  if (e) {
    Object.keys(e).forEach(function (n) {
      De(n, e[n]) && t.add(n);
    });
    var n = e.extends,
      r = e.mixins;
    r &&
      r.forEach(function (e) {
        return Ea(e, t);
      }),
      n && Ea(n, t);
  }
  return t;
}
function Ca(e, t, n) {
  -1 !== n.indexOf(t) ||
    E(e, t) ||
    (e[t] = function (e) {
      return this.$vm && this.$vm.$callHook(t, e);
    });
}
var Ra = [se];
function La(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ra;
  t.forEach(function (t) {
    return Ca(e, t, n);
  });
}
function Da(e, t) {
  var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ra;
  Ea(t).forEach(function (t) {
    return Ca(e, t, n);
  });
}
var Ba = Ie(function () {
    var e = [],
      t = D(getApp) && getApp({ allowDefault: !0 });
    if (t && t.$vm && t.$vm.$) {
      var n = t.$vm.$.appContext.mixins;
      if (C(n)) {
        var r = Object.keys(Le);
        n.forEach(function (t) {
          r.forEach(function (n) {
            E(t, n) && !e.includes(n) && e.push(n);
          });
        });
      }
    }
    return e;
  }),
  Na = [ee, te, re, ie, oe, ae];
function Ua(e, t) {
  var n = e.$,
    r = {
      globalData: (e.$options && e.$options.globalData) || {},
      $vm: e,
      onLaunch: function (t) {
        this.$vm = e;
        var r = n.ctx;
        (this.$vm && r.$scope) ||
          (Ia(n, { mpType: "app", mpInstance: this, slots: [] }),
          (r.globalData = this.globalData),
          e.$callHook(ne, t));
      },
    };
  n.onError &&
    (n.appContext.config.errorHandler = function (t) {
      e.$callHook(re, t);
    }),
    (function (e) {
      var t = Gr(Je(wx.getSystemInfoSync().language) || ze);
      Object.defineProperty(e, "$locale", {
        get: function () {
          return t.value;
        },
        set: function (e) {
          t.value = e;
        },
      });
    })(e);
  var i = e.$.type;
  La(r, Na), Da(r, i);
  var o = i.methods;
  return o && O(r, o), t && t.parse(r), r;
}
function ja(e, t) {
  if (D(e.onLaunch)) {
    var n = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
    e.onLaunch(n);
  }
  D(e.onShow) &&
    wx.onAppShow &&
    wx.onAppShow(function (e) {
      t.$callHook("onShow", e);
    }),
    D(e.onHide) &&
      wx.onAppHide &&
      wx.onAppHide(function (e) {
        t.$callHook("onHide", e);
      });
}
var Ma = ["externalClasses"],
  $a = /_(.*)_worklet_factory_/;
var Fa = ["eO", "uR", "uRIF", "uI", "uT", "uP", "uS"];
function Ha(e) {
  e.properties || (e.properties = {}),
    O(
      e.properties,
      (function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
          n = {};
        return (
          t ||
            (Fa.forEach(function (e) {
              n[e] = { type: null, value: "" };
            }),
            (n.uS = {
              type: null,
              value: [],
              observer: function (e) {
                var t = Object.create(null);
                e &&
                  e.forEach(function (e) {
                    t[e] = !0;
                  }),
                  this.setData({ $slots: t });
              },
            })),
          e.behaviors &&
            e.behaviors.includes("wx://form-field") &&
            ((e.properties && e.properties.name) ||
              (n.name = { type: null, value: "" }),
            (e.properties && e.properties.value) ||
              (n.value = { type: null, value: "" })),
          n
        );
      })(e),
      (function (e) {
        var t = {};
        return (
          e &&
            e.virtualHost &&
            ((t.virtualHostStyle = { type: null, value: "" }),
            (t.virtualHostClass = { type: null, value: "" })),
          t
        );
      })(e.options)
    );
}
var qa,
  za,
  Wa = [String, Number, Boolean, Object, Array, null];
function Va(e, t) {
  var n = (function (e, t) {
    return C(e) && 1 === e.length ? e[0] : e;
  })(e);
  return -1 !== Wa.indexOf(n) ? n : null;
}
function Ka(e, t) {
  return (
    (t
      ? (function (e) {
          var t = {};
          return (
            F(e) &&
              Object.keys(e).forEach(function (n) {
                -1 === Fa.indexOf(n) && (t[n] = e[n]);
              }),
            t
          );
        })(e)
      : ka(e.uP)) || {}
  );
}
function Ja(e) {
  e.observers || (e.observers = {}),
    (e.observers.uP = function () {
      var e = this.properties.uP;
      e &&
        (this.$vm
          ? (function (e, t) {
              var n,
                r = Hr(t.props),
                i = ka(e) || {};
              Ga(r, i) &&
                ((function (e, t, n, r) {
                  var i = e.props,
                    o = e.attrs,
                    a = e.vnode.patchFlag,
                    u = Hr(i),
                    s = h(e.propsOptions, 1)[0],
                    c = !1;
                  if (!(a > 0) || 16 & a) {
                    var f;
                    for (var l in (yo(e, t, i, o) && (c = !0), u))
                      (t && (E(t, l) || ((f = J(l)) !== l && E(t, f)))) ||
                        (s
                          ? !n ||
                            (void 0 === n[l] && void 0 === n[f]) ||
                            (i[l] = _o(s, u, l, void 0, e, !0))
                          : delete i[l]);
                    if (o !== u)
                      for (var p in o)
                        (t && E(t, p)) || (delete o[p], (c = !0));
                  } else if (8 & a)
                    for (
                      var d = e.vnode.dynamicProps, v = 0;
                      v < d.length;
                      v++
                    ) {
                      var g = d[v];
                      if (!Ii(e.emitsOptions, g)) {
                        var y = t[g];
                        if (s)
                          if (E(o, g)) y !== o[g] && ((o[g] = y), (c = !0));
                          else {
                            var _ = V(g);
                            i[_] = _o(s, u, _, y, e, !1);
                          }
                        else y !== o[g] && ((o[g] = y), (c = !0));
                      }
                    }
                  c && Gn(e, "set", "$attrs");
                })(t, i, r),
                (n = t.update),
                ci.indexOf(n) > -1 &&
                  (function (e) {
                    var t = ci.indexOf(e);
                    t > fi && ci.splice(t, 1);
                  })(t.update),
                t.update());
            })(e, this.$vm.$)
          : "m" === this.properties.uT &&
            (function (e, t) {
              var n = t.properties,
                r = ka(e) || {};
              Ga(n, r, !1) && t.setData(r);
            })(e, this));
    });
}
function Ga(e, t) {
  var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2],
    r = Object.keys(t);
  if (n && r.length !== Object.keys(e).length) return !0;
  for (var i = 0; i < r.length; i++) {
    var o = r[i];
    if (t[o] !== e[o]) return !0;
  }
  return !1;
}
function Ya(e, t) {
  var n = t.parse,
    r = t.mocks,
    i = t.isPage,
    o = t.initRelation,
    a = t.handleLink,
    u = t.initLifetimes;
  e = e.default || e;
  var s = { multipleSlots: !0, addGlobalClass: !0, pureDataPattern: /^uP$/ };
  C(e.mixins) &&
    e.mixins.forEach(function (e) {
      U(e.options) && O(s, e.options);
    }),
    e.options && O(s, e.options);
  var c,
    f,
    l,
    h,
    p = {
      options: s,
      lifetimes: u({ mocks: r, isPage: i, initRelation: o, vueOptions: e }),
      pageLifetimes: {
        show: function () {
          this.$vm && this.$vm.$callHook("onPageShow");
        },
        hide: function () {
          this.$vm && this.$vm.$callHook("onPageHide");
        },
        resize: function (e) {
          this.$vm && this.$vm.$callHook("onPageResize", e);
        },
      },
      methods: { __l: a },
    };
  return (
    (function (e, t) {
      (e.data = {}),
        (e.behaviors = (function (e) {
          var t = e.behaviors,
            n = e.props;
          n || (e.props = n = []);
          var r = [];
          return (
            C(t) &&
              t.forEach(function (e) {
                r.push(e.replace("uni://", "wx://")),
                  "uni://form-field" === e &&
                    (C(n)
                      ? (n.push("name"), n.push("modelValue"))
                      : ((n.name = { type: String, default: "" }),
                        (n.modelValue = {
                          type: [String, Number, Boolean, Array, Object, Date],
                          default: "",
                        })));
              }),
            r
          );
        })(t));
    })(p, e),
    Ha(p),
    Ja(p),
    (function (e, t) {
      Ma.forEach(function (n) {
        E(t, n) && (e[n] = t[n]);
      });
    })(p, e),
    (c = p.methods),
    (f = e.wxsCallMethods),
    C(f) &&
      f.forEach(function (e) {
        c[e] = function (t) {
          return this.$vm[e](t);
        };
      }),
    (l = p.methods),
    (h = e.methods) &&
      Object.keys(h).forEach(function (e) {
        var t = e.match($a);
        if (t) {
          var n = t[1];
          (l[e] = h[e]), (l[n] = h[n]);
        }
      }),
    n && n(p, { handleLink: a }),
    p
  );
}
function Xa() {
  return getApp().$vm;
}
var Qa = Page,
  Za = Component;
function eu(e) {
  var t = e.triggerEvent,
    n = function (n) {
      for (
        var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1;
        o < r;
        o++
      )
        i[o - 1] = arguments[o];
      return t.apply(e, [((a = n), V(a.replace(Ae, "-")))].concat(i));
      var a;
    };
  try {
    e.triggerEvent = n;
  } catch (t) {
    e._triggerEvent = n;
  }
}
function tu(e, t, n) {
  var r = t[e];
  t[e] = r
    ? function () {
        for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
          t[n] = arguments[n];
        return eu(this), r.apply(this, t);
      }
    : function () {
        eu(this);
      };
}
(Page = function (e) {
  return tu(ue, e), Qa(e);
}),
  (Component = function (e) {
    return (
      tu("created", e),
      (e.properties && e.properties.uP) || (Ha(e), Ja(e)),
      Za(e)
    );
  });
var nu,
  ru = Object.freeze({
    __proto__: null,
    handleLink: function (e) {
      var t,
        n = e.detail || e.value,
        r = n.vuePid;
      r &&
        (t = (function e(t, n) {
          for (var r, i = t.$children, o = i.length - 1; o >= 0; o--) {
            var a = i[o];
            if (a.$scope._$vueId === n) return a;
          }
          for (var u = i.length - 1; u >= 0; u--)
            if ((r = e(i[u], n))) return r;
        })(this.$vm, r)),
        t || (t = this.$vm),
        (n.parent = t);
    },
    initLifetimes: function (e) {
      var t = e.mocks,
        n = e.isPage,
        r = e.initRelation,
        i = e.vueOptions;
      return {
        attached: function () {
          var e = this.properties;
          !(function (e, t) {
            if (e) {
              var n = e.split(","),
                r = n.length;
              1 === r
                ? (t._$vueId = n[0])
                : 2 === r && ((t._$vueId = n[0]), (t._$vuePid = n[1]));
            }
          })(e.uI, this);
          var o = { vuePid: this._$vuePid };
          r(this, o);
          var a = this,
            u = n(a),
            s = e;
          (this.$vm = (function (e, t) {
            qa || (qa = Xa().$createComponent);
            var n = qa(e, t);
            return Uo(n.$) || n;
          })(
            { type: i, props: Ka(s, u) },
            {
              mpType: u ? "page" : "component",
              mpInstance: a,
              slots: e.uS || {},
              parentComponent: o.parent && o.parent.$,
              onBeforeSetup: function (e, n) {
                !(function (e, t) {
                  Object.defineProperty(e, "refs", {
                    get: function () {
                      var e = {};
                      return (
                        (function (e, t, n) {
                          e.selectAllComponents(".r").forEach(function (e) {
                            var t = e.properties.uR;
                            n[t] = e.$vm || e;
                          });
                        })(t, 0, e),
                        t.selectAllComponents(".r-i-f").forEach(function (t) {
                          var n = t.properties.uR;
                          n && (e[n] || (e[n] = []), e[n].push(t.$vm || t));
                        }),
                        e
                      );
                    },
                  });
                })(e, a),
                  (function (e, t, n) {
                    var r = e.ctx;
                    n.forEach(function (n) {
                      E(t, n) && (e[n] = r[n] = t[n]);
                    });
                  })(e, a, t),
                  (function (e, t) {
                    Ia(e, t);
                    var n = e.ctx;
                    Aa.forEach(function (e) {
                      n[e] = function () {
                        for (
                          var t = n.$scope,
                            r = arguments.length,
                            i = new Array(r),
                            o = 0;
                          o < r;
                          o++
                        )
                          i[o] = arguments[o];
                        if (t && t[e]) return t[e].apply(t, i);
                      };
                    });
                  })(e, n);
              },
            }
          )),
            u ||
              (function (e) {
                var t = e.$options;
                C(t.behaviors) &&
                  t.behaviors.includes("uni://form-field") &&
                  e.$watch(
                    "modelValue",
                    function () {
                      e.$scope &&
                        e.$scope.setData({ name: e.name, value: e.modelValue });
                    },
                    { immediate: !0 }
                  );
              })(this.$vm);
        },
        ready: function () {
          this.$vm && (this.$vm.$callHook("mounted"), this.$vm.$callHook(se));
        },
        detached: function () {
          var e;
          this.$vm &&
            (wa(this.$vm.$.uid),
            (e = this.$vm),
            za || (za = Xa().$destroyComponent),
            za(e));
        },
      };
    },
    initRelation: function (e, t) {
      e.triggerEvent("__l", t);
    },
    isPage: function (e) {
      return !!e.route;
    },
    mocks: ["__route__", "__wxExparserNodeId__", "__wxWebviewId__"],
  }),
  iu =
    ((nu = ru),
    function (e) {
      return Component(
        (function (e, t) {
          var n = t.parse,
            r = t.mocks,
            i = t.isPage,
            o = t.initRelation,
            a = t.handleLink,
            u = Ya(e, {
              mocks: r,
              isPage: i,
              initRelation: o,
              handleLink: a,
              initLifetimes: t.initLifetimes,
            });
          !(function (e, t) {
            var n = e.properties;
            C(t)
              ? t.forEach(function (e) {
                  n[e] = { type: String, value: "" };
                })
              : F(t) &&
                Object.keys(t).forEach(function (e) {
                  var r = t[e];
                  if (F(r)) {
                    var i = r.default;
                    D(i) && (i = i());
                    var o = r.type;
                    (r.type = Va(o)), (n[e] = { type: r.type, value: i });
                  } else n[e] = { type: Va(r) };
                });
          })(u, (e.default || e).props);
          var s = u.methods;
          return (
            (s.onLoad = function (e) {
              var t;
              return (
                (this.options = e),
                (this.$page = {
                  fullPath:
                    ((t = this.route + Te(e)),
                    (function (e) {
                      return 0 === e.indexOf("/");
                    })(t)
                      ? t
                      : "/" + t),
                }),
                this.$vm && this.$vm.$callHook(ue, e)
              );
            }),
            La(s, Ta),
            Da(s, e),
            (function (e, t) {
              t &&
                Object.keys(Le).forEach(function (n) {
                  t & Le[n] && Ca(e, n, []);
                });
            })(s, e.__runtimeHooks),
            La(s, Ba()),
            n && n(u, { handleLink: a }),
            u
          );
        })(e, nu)
      );
    }),
  ou = (function (e) {
    return function (t) {
      return Component(Ya(t, e));
    };
  })(ru),
  au = function (e) {
    ja(Ua(e, void 0), e);
  },
  uu = function (e) {
    var t = Ua(e, void 0),
      n = D(getApp) && getApp({ allowDefault: !0 });
    if (n) {
      e.$.ctx.$scope = n;
      var r = n.globalData;
      r &&
        Object.keys(t.globalData).forEach(function (e) {
          E(r, e) || (r[e] = t.globalData[e]);
        }),
        Object.keys(t).forEach(function (e) {
          E(n, e) || (n[e] = t[e]);
        }),
        ja(t, e);
    }
  };
(wx.createApp = global.createApp =
  function (e) {
    return App(Ua(e, void 0));
  }),
  (wx.createPage = iu),
  (wx.createComponent = ou),
  (wx.createPluginApp = global.createPluginApp = au),
  (wx.createSubpackageApp = global.createSubpackageApp = uu);
var su =
  "undefined" != typeof globalThis
    ? globalThis
    : "undefined" != typeof window
    ? window
    : "undefined" != typeof global
    ? global
    : "undefined" != typeof self
    ? self
    : {};
var cu,
  fu = {},
  lu = {
    get exports() {
      return fu;
    },
    set exports(e) {
      fu = e;
    },
  },
  hu = {},
  pu = {
    get exports() {
      return hu;
    },
    set exports(e) {
      hu = e;
    },
  },
  du = (function (e) {
    if (e.__esModule) return e;
    var t = e.default;
    if ("function" == typeof t) {
      var n = function e() {
        if (this instanceof e) {
          var n = [null];
          return n.push.apply(n, arguments), new (Function.bind.apply(t, n))();
        }
        return t.apply(this, arguments);
      };
      n.prototype = t.prototype;
    } else n = {};
    return (
      Object.defineProperty(n, "__esModule", { value: !0 }),
      Object.keys(e).forEach(function (t) {
        var r = Object.getOwnPropertyDescriptor(e, t);
        Object.defineProperty(
          n,
          t,
          r.get
            ? r
            : {
                enumerable: !0,
                get: function () {
                  return e[t];
                },
              }
        );
      }),
      n
    );
  })(
    Object.freeze(
      Object.defineProperty(
        { __proto__: null, default: {} },
        Symbol.toStringTag,
        { value: "Module" }
      )
    )
  );
function vu() {
  return (
    cu ||
      ((cu = 1),
      (pu.exports = e =
        e ||
        (function (e, t) {
          var n;
          if (
            ("undefined" != typeof window &&
              window.crypto &&
              (n = window.crypto),
            "undefined" != typeof self && self.crypto && (n = self.crypto),
            "undefined" != typeof globalThis &&
              globalThis.crypto &&
              (n = globalThis.crypto),
            !n &&
              "undefined" != typeof window &&
              window.msCrypto &&
              (n = window.msCrypto),
            !n && void 0 !== su && su.crypto && (n = su.crypto),
            !n)
          )
            try {
              n = du;
            } catch (e) {}
          var r = function () {
              if (n) {
                if ("function" == typeof n.getRandomValues)
                  try {
                    return n.getRandomValues(new Uint32Array(1))[0];
                  } catch (e) {}
                if ("function" == typeof n.randomBytes)
                  try {
                    return n.randomBytes(4).readInt32LE();
                  } catch (e) {}
              }
              throw new Error(
                "Native crypto module could not be used to get secure random number."
              );
            },
            i =
              Object.create ||
              (function () {
                function e() {}
                return function (t) {
                  var n;
                  return (
                    (e.prototype = t), (n = new e()), (e.prototype = null), n
                  );
                };
              })(),
            o = {},
            a = (o.lib = {}),
            u = (a.Base = {
              extend: function (e) {
                var t = i(this);
                return (
                  e && t.mixIn(e),
                  (t.hasOwnProperty("init") && this.init !== t.init) ||
                    (t.init = function () {
                      t.$super.init.apply(this, arguments);
                    }),
                  (t.init.prototype = t),
                  (t.$super = this),
                  t
                );
              },
              create: function () {
                var e = this.extend();
                return e.init.apply(e, arguments), e;
              },
              init: function () {},
              mixIn: function (e) {
                for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
                e.hasOwnProperty("toString") && (this.toString = e.toString);
              },
              clone: function () {
                return this.init.prototype.extend(this);
              },
            }),
            s = (a.WordArray = u.extend({
              init: function (e, t) {
                (e = this.words = e || []),
                  (this.sigBytes = null != t ? t : 4 * e.length);
              },
              toString: function (e) {
                return (e || f).stringify(this);
              },
              concat: function (e) {
                var t = this.words,
                  n = e.words,
                  r = this.sigBytes,
                  i = e.sigBytes;
                if ((this.clamp(), r % 4))
                  for (var o = 0; o < i; o++) {
                    var a = (n[o >>> 2] >>> (24 - (o % 4) * 8)) & 255;
                    t[(r + o) >>> 2] |= a << (24 - ((r + o) % 4) * 8);
                  }
                else
                  for (var u = 0; u < i; u += 4) t[(r + u) >>> 2] = n[u >>> 2];
                return (this.sigBytes += i), this;
              },
              clamp: function () {
                var t = this.words,
                  n = this.sigBytes;
                (t[n >>> 2] &= 4294967295 << (32 - (n % 4) * 8)),
                  (t.length = e.ceil(n / 4));
              },
              clone: function () {
                var e = u.clone.call(this);
                return (e.words = this.words.slice(0)), e;
              },
              random: function (e) {
                for (var t = [], n = 0; n < e; n += 4) t.push(r());
                return new s.init(t, e);
              },
            })),
            c = (o.enc = {}),
            f = (c.Hex = {
              stringify: function (e) {
                for (
                  var t = e.words, n = e.sigBytes, r = [], i = 0;
                  i < n;
                  i++
                ) {
                  var o = (t[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
                  r.push((o >>> 4).toString(16)), r.push((15 & o).toString(16));
                }
                return r.join("");
              },
              parse: function (e) {
                for (var t = e.length, n = [], r = 0; r < t; r += 2)
                  n[r >>> 3] |=
                    parseInt(e.substr(r, 2), 16) << (24 - (r % 8) * 4);
                return new s.init(n, t / 2);
              },
            }),
            l = (c.Latin1 = {
              stringify: function (e) {
                for (
                  var t = e.words, n = e.sigBytes, r = [], i = 0;
                  i < n;
                  i++
                ) {
                  var o = (t[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
                  r.push(String.fromCharCode(o));
                }
                return r.join("");
              },
              parse: function (e) {
                for (var t = e.length, n = [], r = 0; r < t; r++)
                  n[r >>> 2] |= (255 & e.charCodeAt(r)) << (24 - (r % 4) * 8);
                return new s.init(n, t);
              },
            }),
            h = (c.Utf8 = {
              stringify: function (e) {
                try {
                  return decodeURIComponent(escape(l.stringify(e)));
                } catch (e) {
                  throw new Error("Malformed UTF-8 data");
                }
              },
              parse: function (e) {
                return l.parse(unescape(encodeURIComponent(e)));
              },
            }),
            p = (a.BufferedBlockAlgorithm = u.extend({
              reset: function () {
                (this._data = new s.init()), (this._nDataBytes = 0);
              },
              _append: function (e) {
                "string" == typeof e && (e = h.parse(e)),
                  this._data.concat(e),
                  (this._nDataBytes += e.sigBytes);
              },
              _process: function (t) {
                var n,
                  r = this._data,
                  i = r.words,
                  o = r.sigBytes,
                  a = this.blockSize,
                  u = o / (4 * a),
                  c =
                    (u = t
                      ? e.ceil(u)
                      : e.max((0 | u) - this._minBufferSize, 0)) * a,
                  f = e.min(4 * c, o);
                if (c) {
                  for (var l = 0; l < c; l += a) this._doProcessBlock(i, l);
                  (n = i.splice(0, c)), (r.sigBytes -= f);
                }
                return new s.init(n, f);
              },
              clone: function () {
                var e = u.clone.call(this);
                return (e._data = this._data.clone()), e;
              },
              _minBufferSize: 0,
            }));
          a.Hasher = p.extend({
            cfg: u.extend(),
            init: function (e) {
              (this.cfg = this.cfg.extend(e)), this.reset();
            },
            reset: function () {
              p.reset.call(this), this._doReset();
            },
            update: function (e) {
              return this._append(e), this._process(), this;
            },
            finalize: function (e) {
              return e && this._append(e), this._doFinalize();
            },
            blockSize: 16,
            _createHelper: function (e) {
              return function (t, n) {
                return new e.init(n).finalize(t);
              };
            },
            _createHmacHelper: function (e) {
              return function (t, n) {
                return new d.HMAC.init(e, n).finalize(t);
              };
            },
          });
          var d = (o.algo = {});
          return o;
        })(Math))),
    hu
  );
  var e;
}
var gu,
  yu = {},
  _u = {
    get exports() {
      return yu;
    },
    set exports(e) {
      yu = e;
    },
  };
function mu() {
  return (
    gu ||
      ((gu = 1),
      (_u.exports =
        ((t = (e = o = vu()).lib),
        (n = t.Base),
        (r = t.WordArray),
        ((i = e.x64 = {}).Word = n.extend({
          init: function (e, t) {
            (this.high = e), (this.low = t);
          },
        })),
        (i.WordArray = n.extend({
          init: function (e, t) {
            (e = this.words = e || []),
              (this.sigBytes = null != t ? t : 8 * e.length);
          },
          toX32: function () {
            for (var e = this.words, t = e.length, n = [], i = 0; i < t; i++) {
              var o = e[i];
              n.push(o.high), n.push(o.low);
            }
            return r.create(n, this.sigBytes);
          },
          clone: function () {
            for (
              var e = n.clone.call(this),
                t = (e.words = this.words.slice(0)),
                r = t.length,
                i = 0;
              i < r;
              i++
            )
              t[i] = t[i].clone();
            return e;
          },
        })),
        o))),
    yu
  );
  var e, t, n, r, i, o;
}
var wu,
  ku = {},
  bu = {
    get exports() {
      return ku;
    },
    set exports(e) {
      ku = e;
    },
  };
var xu,
  Su = {},
  Au = {
    get exports() {
      return Su;
    },
    set exports(e) {
      Su = e;
    },
  };
var Iu,
  Ou = {},
  Pu = {
    get exports() {
      return Ou;
    },
    set exports(e) {
      Ou = e;
    },
  };
function Tu() {
  return (
    Iu ||
      ((Iu = 1),
      (Pu.exports =
        ((e = vu()),
        (function () {
          var t = e,
            n = t.lib.WordArray;
          function r(e, t, r) {
            for (var i = [], o = 0, a = 0; a < t; a++)
              if (a % 4) {
                var u =
                  (r[e.charCodeAt(a - 1)] << ((a % 4) * 2)) |
                  (r[e.charCodeAt(a)] >>> (6 - (a % 4) * 2));
                (i[o >>> 2] |= u << (24 - (o % 4) * 8)), o++;
              }
            return n.create(i, o);
          }
          t.enc.Base64 = {
            stringify: function (e) {
              var t = e.words,
                n = e.sigBytes,
                r = this._map;
              e.clamp();
              for (var i = [], o = 0; o < n; o += 3)
                for (
                  var a =
                      (((t[o >>> 2] >>> (24 - (o % 4) * 8)) & 255) << 16) |
                      (((t[(o + 1) >>> 2] >>> (24 - ((o + 1) % 4) * 8)) &
                        255) <<
                        8) |
                      ((t[(o + 2) >>> 2] >>> (24 - ((o + 2) % 4) * 8)) & 255),
                    u = 0;
                  u < 4 && o + 0.75 * u < n;
                  u++
                )
                  i.push(r.charAt((a >>> (6 * (3 - u))) & 63));
              var s = r.charAt(64);
              if (s) for (; i.length % 4; ) i.push(s);
              return i.join("");
            },
            parse: function (e) {
              var t = e.length,
                n = this._map,
                i = this._reverseMap;
              if (!i) {
                i = this._reverseMap = [];
                for (var o = 0; o < n.length; o++) i[n.charCodeAt(o)] = o;
              }
              var a = n.charAt(64);
              if (a) {
                var u = e.indexOf(a);
                -1 !== u && (t = u);
              }
              return r(e, t, i);
            },
            _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
          };
        })(),
        e.enc.Base64))),
    Ou
  );
  var e;
}
var Eu,
  Cu = {},
  Ru = {
    get exports() {
      return Cu;
    },
    set exports(e) {
      Cu = e;
    },
  };
var Lu,
  Du = {},
  Bu = {
    get exports() {
      return Du;
    },
    set exports(e) {
      Du = e;
    },
  };
function Nu() {
  return (
    Lu ||
      ((Lu = 1),
      (Bu.exports =
        ((e = vu()),
        (function (t) {
          var n = e,
            r = n.lib,
            i = r.WordArray,
            o = r.Hasher,
            a = n.algo,
            u = [];
          !(function () {
            for (var e = 0; e < 64; e++)
              u[e] = (4294967296 * t.abs(t.sin(e + 1))) | 0;
          })();
          var s = (a.MD5 = o.extend({
            _doReset: function () {
              this._hash = new i.init([
                1732584193, 4023233417, 2562383102, 271733878,
              ]);
            },
            _doProcessBlock: function (e, t) {
              for (var n = 0; n < 16; n++) {
                var r = t + n,
                  i = e[r];
                e[r] =
                  (16711935 & ((i << 8) | (i >>> 24))) |
                  (4278255360 & ((i << 24) | (i >>> 8)));
              }
              var o = this._hash.words,
                a = e[t + 0],
                s = e[t + 1],
                p = e[t + 2],
                d = e[t + 3],
                v = e[t + 4],
                g = e[t + 5],
                y = e[t + 6],
                _ = e[t + 7],
                m = e[t + 8],
                w = e[t + 9],
                k = e[t + 10],
                b = e[t + 11],
                x = e[t + 12],
                S = e[t + 13],
                A = e[t + 14],
                I = e[t + 15],
                O = o[0],
                P = o[1],
                T = o[2],
                E = o[3];
              (O = c(O, P, T, E, a, 7, u[0])),
                (E = c(E, O, P, T, s, 12, u[1])),
                (T = c(T, E, O, P, p, 17, u[2])),
                (P = c(P, T, E, O, d, 22, u[3])),
                (O = c(O, P, T, E, v, 7, u[4])),
                (E = c(E, O, P, T, g, 12, u[5])),
                (T = c(T, E, O, P, y, 17, u[6])),
                (P = c(P, T, E, O, _, 22, u[7])),
                (O = c(O, P, T, E, m, 7, u[8])),
                (E = c(E, O, P, T, w, 12, u[9])),
                (T = c(T, E, O, P, k, 17, u[10])),
                (P = c(P, T, E, O, b, 22, u[11])),
                (O = c(O, P, T, E, x, 7, u[12])),
                (E = c(E, O, P, T, S, 12, u[13])),
                (T = c(T, E, O, P, A, 17, u[14])),
                (O = f(
                  O,
                  (P = c(P, T, E, O, I, 22, u[15])),
                  T,
                  E,
                  s,
                  5,
                  u[16]
                )),
                (E = f(E, O, P, T, y, 9, u[17])),
                (T = f(T, E, O, P, b, 14, u[18])),
                (P = f(P, T, E, O, a, 20, u[19])),
                (O = f(O, P, T, E, g, 5, u[20])),
                (E = f(E, O, P, T, k, 9, u[21])),
                (T = f(T, E, O, P, I, 14, u[22])),
                (P = f(P, T, E, O, v, 20, u[23])),
                (O = f(O, P, T, E, w, 5, u[24])),
                (E = f(E, O, P, T, A, 9, u[25])),
                (T = f(T, E, O, P, d, 14, u[26])),
                (P = f(P, T, E, O, m, 20, u[27])),
                (O = f(O, P, T, E, S, 5, u[28])),
                (E = f(E, O, P, T, p, 9, u[29])),
                (T = f(T, E, O, P, _, 14, u[30])),
                (O = l(
                  O,
                  (P = f(P, T, E, O, x, 20, u[31])),
                  T,
                  E,
                  g,
                  4,
                  u[32]
                )),
                (E = l(E, O, P, T, m, 11, u[33])),
                (T = l(T, E, O, P, b, 16, u[34])),
                (P = l(P, T, E, O, A, 23, u[35])),
                (O = l(O, P, T, E, s, 4, u[36])),
                (E = l(E, O, P, T, v, 11, u[37])),
                (T = l(T, E, O, P, _, 16, u[38])),
                (P = l(P, T, E, O, k, 23, u[39])),
                (O = l(O, P, T, E, S, 4, u[40])),
                (E = l(E, O, P, T, a, 11, u[41])),
                (T = l(T, E, O, P, d, 16, u[42])),
                (P = l(P, T, E, O, y, 23, u[43])),
                (O = l(O, P, T, E, w, 4, u[44])),
                (E = l(E, O, P, T, x, 11, u[45])),
                (T = l(T, E, O, P, I, 16, u[46])),
                (O = h(
                  O,
                  (P = l(P, T, E, O, p, 23, u[47])),
                  T,
                  E,
                  a,
                  6,
                  u[48]
                )),
                (E = h(E, O, P, T, _, 10, u[49])),
                (T = h(T, E, O, P, A, 15, u[50])),
                (P = h(P, T, E, O, g, 21, u[51])),
                (O = h(O, P, T, E, x, 6, u[52])),
                (E = h(E, O, P, T, d, 10, u[53])),
                (T = h(T, E, O, P, k, 15, u[54])),
                (P = h(P, T, E, O, s, 21, u[55])),
                (O = h(O, P, T, E, m, 6, u[56])),
                (E = h(E, O, P, T, I, 10, u[57])),
                (T = h(T, E, O, P, y, 15, u[58])),
                (P = h(P, T, E, O, S, 21, u[59])),
                (O = h(O, P, T, E, v, 6, u[60])),
                (E = h(E, O, P, T, b, 10, u[61])),
                (T = h(T, E, O, P, p, 15, u[62])),
                (P = h(P, T, E, O, w, 21, u[63])),
                (o[0] = (o[0] + O) | 0),
                (o[1] = (o[1] + P) | 0),
                (o[2] = (o[2] + T) | 0),
                (o[3] = (o[3] + E) | 0);
            },
            _doFinalize: function () {
              var e = this._data,
                n = e.words,
                r = 8 * this._nDataBytes,
                i = 8 * e.sigBytes;
              n[i >>> 5] |= 128 << (24 - (i % 32));
              var o = t.floor(r / 4294967296),
                a = r;
              (n[15 + (((i + 64) >>> 9) << 4)] =
                (16711935 & ((o << 8) | (o >>> 24))) |
                (4278255360 & ((o << 24) | (o >>> 8)))),
                (n[14 + (((i + 64) >>> 9) << 4)] =
                  (16711935 & ((a << 8) | (a >>> 24))) |
                  (4278255360 & ((a << 24) | (a >>> 8)))),
                (e.sigBytes = 4 * (n.length + 1)),
                this._process();
              for (var u = this._hash, s = u.words, c = 0; c < 4; c++) {
                var f = s[c];
                s[c] =
                  (16711935 & ((f << 8) | (f >>> 24))) |
                  (4278255360 & ((f << 24) | (f >>> 8)));
              }
              return u;
            },
            clone: function () {
              var e = o.clone.call(this);
              return (e._hash = this._hash.clone()), e;
            },
          }));
          function c(e, t, n, r, i, o, a) {
            var u = e + ((t & n) | (~t & r)) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          function f(e, t, n, r, i, o, a) {
            var u = e + ((t & r) | (n & ~r)) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          function l(e, t, n, r, i, o, a) {
            var u = e + (t ^ n ^ r) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          function h(e, t, n, r, i, o, a) {
            var u = e + (n ^ (t | ~r)) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          (n.MD5 = o._createHelper(s)), (n.HmacMD5 = o._createHmacHelper(s));
        })(Math),
        e.MD5))),
    Du
  );
  var e;
}
var Uu,
  ju = {},
  Mu = {
    get exports() {
      return ju;
    },
    set exports(e) {
      ju = e;
    },
  };
function $u() {
  return (
    Uu ||
      ((Uu = 1),
      (Mu.exports =
        ((t = (e = u = vu()).lib),
        (n = t.WordArray),
        (r = t.Hasher),
        (i = e.algo),
        (o = []),
        (a = i.SHA1 =
          r.extend({
            _doReset: function () {
              this._hash = new n.init([
                1732584193, 4023233417, 2562383102, 271733878, 3285377520,
              ]);
            },
            _doProcessBlock: function (e, t) {
              for (
                var n = this._hash.words,
                  r = n[0],
                  i = n[1],
                  a = n[2],
                  u = n[3],
                  s = n[4],
                  c = 0;
                c < 80;
                c++
              ) {
                if (c < 16) o[c] = 0 | e[t + c];
                else {
                  var f = o[c - 3] ^ o[c - 8] ^ o[c - 14] ^ o[c - 16];
                  o[c] = (f << 1) | (f >>> 31);
                }
                var l = ((r << 5) | (r >>> 27)) + s + o[c];
                (l +=
                  c < 20
                    ? 1518500249 + ((i & a) | (~i & u))
                    : c < 40
                    ? 1859775393 + (i ^ a ^ u)
                    : c < 60
                    ? ((i & a) | (i & u) | (a & u)) - 1894007588
                    : (i ^ a ^ u) - 899497514),
                  (s = u),
                  (u = a),
                  (a = (i << 30) | (i >>> 2)),
                  (i = r),
                  (r = l);
              }
              (n[0] = (n[0] + r) | 0),
                (n[1] = (n[1] + i) | 0),
                (n[2] = (n[2] + a) | 0),
                (n[3] = (n[3] + u) | 0),
                (n[4] = (n[4] + s) | 0);
            },
            _doFinalize: function () {
              var e = this._data,
                t = e.words,
                n = 8 * this._nDataBytes,
                r = 8 * e.sigBytes;
              return (
                (t[r >>> 5] |= 128 << (24 - (r % 32))),
                (t[14 + (((r + 64) >>> 9) << 4)] = Math.floor(n / 4294967296)),
                (t[15 + (((r + 64) >>> 9) << 4)] = n),
                (e.sigBytes = 4 * t.length),
                this._process(),
                this._hash
              );
            },
            clone: function () {
              var e = r.clone.call(this);
              return (e._hash = this._hash.clone()), e;
            },
          })),
        (e.SHA1 = r._createHelper(a)),
        (e.HmacSHA1 = r._createHmacHelper(a)),
        u.SHA1))),
    ju
  );
  var e, t, n, r, i, o, a, u;
}
var Fu,
  Hu = {},
  qu = {
    get exports() {
      return Hu;
    },
    set exports(e) {
      Hu = e;
    },
  };
function zu() {
  return (
    Fu ||
      ((Fu = 1),
      (qu.exports =
        ((e = vu()),
        (function (t) {
          var n = e,
            r = n.lib,
            i = r.WordArray,
            o = r.Hasher,
            a = n.algo,
            u = [],
            s = [];
          !(function () {
            function e(e) {
              for (var n = t.sqrt(e), r = 2; r <= n; r++)
                if (!(e % r)) return !1;
              return !0;
            }
            function n(e) {
              return (4294967296 * (e - (0 | e))) | 0;
            }
            for (var r = 2, i = 0; i < 64; )
              e(r) &&
                (i < 8 && (u[i] = n(t.pow(r, 0.5))),
                (s[i] = n(t.pow(r, 1 / 3))),
                i++),
                r++;
          })();
          var c = [],
            f = (a.SHA256 = o.extend({
              _doReset: function () {
                this._hash = new i.init(u.slice(0));
              },
              _doProcessBlock: function (e, t) {
                for (
                  var n = this._hash.words,
                    r = n[0],
                    i = n[1],
                    o = n[2],
                    a = n[3],
                    u = n[4],
                    f = n[5],
                    l = n[6],
                    h = n[7],
                    p = 0;
                  p < 64;
                  p++
                ) {
                  if (p < 16) c[p] = 0 | e[t + p];
                  else {
                    var d = c[p - 15],
                      v =
                        ((d << 25) | (d >>> 7)) ^
                        ((d << 14) | (d >>> 18)) ^
                        (d >>> 3),
                      g = c[p - 2],
                      y =
                        ((g << 15) | (g >>> 17)) ^
                        ((g << 13) | (g >>> 19)) ^
                        (g >>> 10);
                    c[p] = v + c[p - 7] + y + c[p - 16];
                  }
                  var _ = (r & i) ^ (r & o) ^ (i & o),
                    m =
                      ((r << 30) | (r >>> 2)) ^
                      ((r << 19) | (r >>> 13)) ^
                      ((r << 10) | (r >>> 22)),
                    w =
                      h +
                      (((u << 26) | (u >>> 6)) ^
                        ((u << 21) | (u >>> 11)) ^
                        ((u << 7) | (u >>> 25))) +
                      ((u & f) ^ (~u & l)) +
                      s[p] +
                      c[p];
                  (h = l),
                    (l = f),
                    (f = u),
                    (u = (a + w) | 0),
                    (a = o),
                    (o = i),
                    (i = r),
                    (r = (w + (m + _)) | 0);
                }
                (n[0] = (n[0] + r) | 0),
                  (n[1] = (n[1] + i) | 0),
                  (n[2] = (n[2] + o) | 0),
                  (n[3] = (n[3] + a) | 0),
                  (n[4] = (n[4] + u) | 0),
                  (n[5] = (n[5] + f) | 0),
                  (n[6] = (n[6] + l) | 0),
                  (n[7] = (n[7] + h) | 0);
              },
              _doFinalize: function () {
                var e = this._data,
                  n = e.words,
                  r = 8 * this._nDataBytes,
                  i = 8 * e.sigBytes;
                return (
                  (n[i >>> 5] |= 128 << (24 - (i % 32))),
                  (n[14 + (((i + 64) >>> 9) << 4)] = t.floor(r / 4294967296)),
                  (n[15 + (((i + 64) >>> 9) << 4)] = r),
                  (e.sigBytes = 4 * n.length),
                  this._process(),
                  this._hash
                );
              },
              clone: function () {
                var e = o.clone.call(this);
                return (e._hash = this._hash.clone()), e;
              },
            }));
          (n.SHA256 = o._createHelper(f)),
            (n.HmacSHA256 = o._createHmacHelper(f));
        })(Math),
        e.SHA256))),
    Hu
  );
  var e;
}
var Wu,
  Vu,
  Ku = {},
  Ju = {
    get exports() {
      return Ku;
    },
    set exports(e) {
      Ku = e;
    },
  },
  Gu = {},
  Yu = {
    get exports() {
      return Gu;
    },
    set exports(e) {
      Gu = e;
    },
  };
function Xu() {
  return (
    Vu ||
      ((Vu = 1),
      (Yu.exports =
        ((e = vu()),
        mu(),
        (function () {
          var t = e,
            n = t.lib.Hasher,
            r = t.x64,
            i = r.Word,
            o = r.WordArray,
            a = t.algo;
          function u() {
            return i.create.apply(i, arguments);
          }
          var s = [
              u(1116352408, 3609767458),
              u(1899447441, 602891725),
              u(3049323471, 3964484399),
              u(3921009573, 2173295548),
              u(961987163, 4081628472),
              u(1508970993, 3053834265),
              u(2453635748, 2937671579),
              u(2870763221, 3664609560),
              u(3624381080, 2734883394),
              u(310598401, 1164996542),
              u(607225278, 1323610764),
              u(1426881987, 3590304994),
              u(1925078388, 4068182383),
              u(2162078206, 991336113),
              u(2614888103, 633803317),
              u(3248222580, 3479774868),
              u(3835390401, 2666613458),
              u(4022224774, 944711139),
              u(264347078, 2341262773),
              u(604807628, 2007800933),
              u(770255983, 1495990901),
              u(1249150122, 1856431235),
              u(1555081692, 3175218132),
              u(1996064986, 2198950837),
              u(2554220882, 3999719339),
              u(2821834349, 766784016),
              u(2952996808, 2566594879),
              u(3210313671, 3203337956),
              u(3336571891, 1034457026),
              u(3584528711, 2466948901),
              u(113926993, 3758326383),
              u(338241895, 168717936),
              u(666307205, 1188179964),
              u(773529912, 1546045734),
              u(1294757372, 1522805485),
              u(1396182291, 2643833823),
              u(1695183700, 2343527390),
              u(1986661051, 1014477480),
              u(2177026350, 1206759142),
              u(2456956037, 344077627),
              u(2730485921, 1290863460),
              u(2820302411, 3158454273),
              u(3259730800, 3505952657),
              u(3345764771, 106217008),
              u(3516065817, 3606008344),
              u(3600352804, 1432725776),
              u(4094571909, 1467031594),
              u(275423344, 851169720),
              u(430227734, 3100823752),
              u(506948616, 1363258195),
              u(659060556, 3750685593),
              u(883997877, 3785050280),
              u(958139571, 3318307427),
              u(1322822218, 3812723403),
              u(1537002063, 2003034995),
              u(1747873779, 3602036899),
              u(1955562222, 1575990012),
              u(2024104815, 1125592928),
              u(2227730452, 2716904306),
              u(2361852424, 442776044),
              u(2428436474, 593698344),
              u(2756734187, 3733110249),
              u(3204031479, 2999351573),
              u(3329325298, 3815920427),
              u(3391569614, 3928383900),
              u(3515267271, 566280711),
              u(3940187606, 3454069534),
              u(4118630271, 4000239992),
              u(116418474, 1914138554),
              u(174292421, 2731055270),
              u(289380356, 3203993006),
              u(460393269, 320620315),
              u(685471733, 587496836),
              u(852142971, 1086792851),
              u(1017036298, 365543100),
              u(1126000580, 2618297676),
              u(1288033470, 3409855158),
              u(1501505948, 4234509866),
              u(1607167915, 987167468),
              u(1816402316, 1246189591),
            ],
            c = [];
          !(function () {
            for (var e = 0; e < 80; e++) c[e] = u();
          })();
          var f = (a.SHA512 = n.extend({
            _doReset: function () {
              this._hash = new o.init([
                new i.init(1779033703, 4089235720),
                new i.init(3144134277, 2227873595),
                new i.init(1013904242, 4271175723),
                new i.init(2773480762, 1595750129),
                new i.init(1359893119, 2917565137),
                new i.init(2600822924, 725511199),
                new i.init(528734635, 4215389547),
                new i.init(1541459225, 327033209),
              ]);
            },
            _doProcessBlock: function (e, t) {
              for (
                var n = this._hash.words,
                  r = n[0],
                  i = n[1],
                  o = n[2],
                  a = n[3],
                  u = n[4],
                  f = n[5],
                  l = n[6],
                  h = n[7],
                  p = r.high,
                  d = r.low,
                  v = i.high,
                  g = i.low,
                  y = o.high,
                  _ = o.low,
                  m = a.high,
                  w = a.low,
                  k = u.high,
                  b = u.low,
                  x = f.high,
                  S = f.low,
                  A = l.high,
                  I = l.low,
                  O = h.high,
                  P = h.low,
                  T = p,
                  E = d,
                  C = v,
                  R = g,
                  L = y,
                  D = _,
                  B = m,
                  N = w,
                  U = k,
                  j = b,
                  M = x,
                  $ = S,
                  F = A,
                  H = I,
                  q = O,
                  z = P,
                  W = 0;
                W < 80;
                W++
              ) {
                var V,
                  K,
                  J = c[W];
                if (W < 16)
                  (K = J.high = 0 | e[t + 2 * W]),
                    (V = J.low = 0 | e[t + 2 * W + 1]);
                else {
                  var G = c[W - 15],
                    Y = G.high,
                    X = G.low,
                    Q =
                      ((Y >>> 1) | (X << 31)) ^
                      ((Y >>> 8) | (X << 24)) ^
                      (Y >>> 7),
                    Z =
                      ((X >>> 1) | (Y << 31)) ^
                      ((X >>> 8) | (Y << 24)) ^
                      ((X >>> 7) | (Y << 25)),
                    ee = c[W - 2],
                    te = ee.high,
                    ne = ee.low,
                    re =
                      ((te >>> 19) | (ne << 13)) ^
                      ((te << 3) | (ne >>> 29)) ^
                      (te >>> 6),
                    ie =
                      ((ne >>> 19) | (te << 13)) ^
                      ((ne << 3) | (te >>> 29)) ^
                      ((ne >>> 6) | (te << 26)),
                    oe = c[W - 7],
                    ae = oe.high,
                    ue = oe.low,
                    se = c[W - 16],
                    ce = se.high,
                    fe = se.low;
                  (K =
                    (K =
                      (K = Q + ae + ((V = Z + ue) >>> 0 < Z >>> 0 ? 1 : 0)) +
                      re +
                      ((V += ie) >>> 0 < ie >>> 0 ? 1 : 0)) +
                    ce +
                    ((V += fe) >>> 0 < fe >>> 0 ? 1 : 0)),
                    (J.high = K),
                    (J.low = V);
                }
                var le,
                  he = (U & M) ^ (~U & F),
                  pe = (j & $) ^ (~j & H),
                  de = (T & C) ^ (T & L) ^ (C & L),
                  ve = (E & R) ^ (E & D) ^ (R & D),
                  ge =
                    ((T >>> 28) | (E << 4)) ^
                    ((T << 30) | (E >>> 2)) ^
                    ((T << 25) | (E >>> 7)),
                  ye =
                    ((E >>> 28) | (T << 4)) ^
                    ((E << 30) | (T >>> 2)) ^
                    ((E << 25) | (T >>> 7)),
                  _e =
                    ((U >>> 14) | (j << 18)) ^
                    ((U >>> 18) | (j << 14)) ^
                    ((U << 23) | (j >>> 9)),
                  me =
                    ((j >>> 14) | (U << 18)) ^
                    ((j >>> 18) | (U << 14)) ^
                    ((j << 23) | (U >>> 9)),
                  we = s[W],
                  ke = we.high,
                  be = we.low,
                  xe = q + _e + ((le = z + me) >>> 0 < z >>> 0 ? 1 : 0),
                  Se = ye + ve;
                (q = F),
                  (z = H),
                  (F = M),
                  (H = $),
                  (M = U),
                  ($ = j),
                  (U =
                    (B +
                      (xe =
                        (xe =
                          (xe =
                            xe + he + ((le += pe) >>> 0 < pe >>> 0 ? 1 : 0)) +
                          ke +
                          ((le += be) >>> 0 < be >>> 0 ? 1 : 0)) +
                        K +
                        ((le += V) >>> 0 < V >>> 0 ? 1 : 0)) +
                      ((j = (N + le) | 0) >>> 0 < N >>> 0 ? 1 : 0)) |
                    0),
                  (B = L),
                  (N = D),
                  (L = C),
                  (D = R),
                  (C = T),
                  (R = E),
                  (T =
                    (xe +
                      (ge + de + (Se >>> 0 < ye >>> 0 ? 1 : 0)) +
                      ((E = (le + Se) | 0) >>> 0 < le >>> 0 ? 1 : 0)) |
                    0);
              }
              (d = r.low = d + E),
                (r.high = p + T + (d >>> 0 < E >>> 0 ? 1 : 0)),
                (g = i.low = g + R),
                (i.high = v + C + (g >>> 0 < R >>> 0 ? 1 : 0)),
                (_ = o.low = _ + D),
                (o.high = y + L + (_ >>> 0 < D >>> 0 ? 1 : 0)),
                (w = a.low = w + N),
                (a.high = m + B + (w >>> 0 < N >>> 0 ? 1 : 0)),
                (b = u.low = b + j),
                (u.high = k + U + (b >>> 0 < j >>> 0 ? 1 : 0)),
                (S = f.low = S + $),
                (f.high = x + M + (S >>> 0 < $ >>> 0 ? 1 : 0)),
                (I = l.low = I + H),
                (l.high = A + F + (I >>> 0 < H >>> 0 ? 1 : 0)),
                (P = h.low = P + z),
                (h.high = O + q + (P >>> 0 < z >>> 0 ? 1 : 0));
            },
            _doFinalize: function () {
              var e = this._data,
                t = e.words,
                n = 8 * this._nDataBytes,
                r = 8 * e.sigBytes;
              return (
                (t[r >>> 5] |= 128 << (24 - (r % 32))),
                (t[30 + (((r + 128) >>> 10) << 5)] = Math.floor(
                  n / 4294967296
                )),
                (t[31 + (((r + 128) >>> 10) << 5)] = n),
                (e.sigBytes = 4 * t.length),
                this._process(),
                this._hash.toX32()
              );
            },
            clone: function () {
              var e = n.clone.call(this);
              return (e._hash = this._hash.clone()), e;
            },
            blockSize: 32,
          }));
          (t.SHA512 = n._createHelper(f)),
            (t.HmacSHA512 = n._createHmacHelper(f));
        })(),
        e.SHA512))),
    Gu
  );
  var e;
}
var Qu,
  Zu,
  es = {},
  ts = {
    get exports() {
      return es;
    },
    set exports(e) {
      es = e;
    },
  },
  ns = {},
  rs = {
    get exports() {
      return ns;
    },
    set exports(e) {
      ns = e;
    },
  };
var is,
  os,
  as = {},
  us = {
    get exports() {
      return as;
    },
    set exports(e) {
      as = e;
    },
  },
  ss = {},
  cs = {
    get exports() {
      return ss;
    },
    set exports(e) {
      ss = e;
    },
  };
function fs() {
  return (
    os ||
      ((os = 1),
      (cs.exports =
        ((t = (e = vu()).lib.Base),
        (n = e.enc.Utf8),
        void (e.algo.HMAC = t.extend({
          init: function (e, t) {
            (e = this._hasher = new e.init()),
              "string" == typeof t && (t = n.parse(t));
            var r = e.blockSize,
              i = 4 * r;
            t.sigBytes > i && (t = e.finalize(t)), t.clamp();
            for (
              var o = (this._oKey = t.clone()),
                a = (this._iKey = t.clone()),
                u = o.words,
                s = a.words,
                c = 0;
              c < r;
              c++
            )
              (u[c] ^= 1549556828), (s[c] ^= 909522486);
            (o.sigBytes = a.sigBytes = i), this.reset();
          },
          reset: function () {
            var e = this._hasher;
            e.reset(), e.update(this._iKey);
          },
          update: function (e) {
            return this._hasher.update(e), this;
          },
          finalize: function (e) {
            var t = this._hasher,
              n = t.finalize(e);
            return t.reset(), t.finalize(this._oKey.clone().concat(n));
          },
        }))))),
    ss
  );
  var e, t, n;
}
var ls,
  hs,
  ps = {},
  ds = {
    get exports() {
      return ps;
    },
    set exports(e) {
      ps = e;
    },
  },
  vs = {},
  gs = {
    get exports() {
      return vs;
    },
    set exports(e) {
      vs = e;
    },
  };
function ys() {
  return (
    hs ||
      ((hs = 1),
      (gs.exports =
        ((u = vu()),
        $u(),
        fs(),
        (n = (t = (e = u).lib).Base),
        (r = t.WordArray),
        (o = (i = e.algo).MD5),
        (a = i.EvpKDF =
          n.extend({
            cfg: n.extend({ keySize: 4, hasher: o, iterations: 1 }),
            init: function (e) {
              this.cfg = this.cfg.extend(e);
            },
            compute: function (e, t) {
              for (
                var n,
                  i = this.cfg,
                  o = i.hasher.create(),
                  a = r.create(),
                  u = a.words,
                  s = i.keySize,
                  c = i.iterations;
                u.length < s;

              ) {
                n && o.update(n), (n = o.update(e).finalize(t)), o.reset();
                for (var f = 1; f < c; f++) (n = o.finalize(n)), o.reset();
                a.concat(n);
              }
              return (a.sigBytes = 4 * s), a;
            },
          })),
        (e.EvpKDF = function (e, t, n) {
          return a.create(n).compute(e, t);
        }),
        u.EvpKDF))),
    vs
  );
  var e, t, n, r, i, o, a, u;
}
var _s,
  ms = {},
  ws = {
    get exports() {
      return ms;
    },
    set exports(e) {
      ms = e;
    },
  };
function ks() {
  return (
    _s ||
      ((_s = 1),
      (ws.exports =
        ((e = vu()),
        ys(),
        void (
          e.lib.Cipher ||
          (function (t) {
            var n = e,
              r = n.lib,
              i = r.Base,
              o = r.WordArray,
              a = r.BufferedBlockAlgorithm,
              u = n.enc;
            u.Utf8;
            var s = u.Base64,
              c = n.algo.EvpKDF,
              f = (r.Cipher = a.extend({
                cfg: i.extend(),
                createEncryptor: function (e, t) {
                  return this.create(this._ENC_XFORM_MODE, e, t);
                },
                createDecryptor: function (e, t) {
                  return this.create(this._DEC_XFORM_MODE, e, t);
                },
                init: function (e, t, n) {
                  (this.cfg = this.cfg.extend(n)),
                    (this._xformMode = e),
                    (this._key = t),
                    this.reset();
                },
                reset: function () {
                  a.reset.call(this), this._doReset();
                },
                process: function (e) {
                  return this._append(e), this._process();
                },
                finalize: function (e) {
                  return e && this._append(e), this._doFinalize();
                },
                keySize: 4,
                ivSize: 4,
                _ENC_XFORM_MODE: 1,
                _DEC_XFORM_MODE: 2,
                _createHelper: (function () {
                  function e(e) {
                    return "string" == typeof e ? m : y;
                  }
                  return function (t) {
                    return {
                      encrypt: function (n, r, i) {
                        return e(r).encrypt(t, n, r, i);
                      },
                      decrypt: function (n, r, i) {
                        return e(r).decrypt(t, n, r, i);
                      },
                    };
                  };
                })(),
              }));
            r.StreamCipher = f.extend({
              _doFinalize: function () {
                return this._process(!0);
              },
              blockSize: 1,
            });
            var l = (n.mode = {}),
              h = (r.BlockCipherMode = i.extend({
                createEncryptor: function (e, t) {
                  return this.Encryptor.create(e, t);
                },
                createDecryptor: function (e, t) {
                  return this.Decryptor.create(e, t);
                },
                init: function (e, t) {
                  (this._cipher = e), (this._iv = t);
                },
              })),
              p = (l.CBC = (function () {
                var e = h.extend();
                function t(e, t, n) {
                  var r,
                    i = this._iv;
                  i ? ((r = i), (this._iv = void 0)) : (r = this._prevBlock);
                  for (var o = 0; o < n; o++) e[t + o] ^= r[o];
                }
                return (
                  (e.Encryptor = e.extend({
                    processBlock: function (e, n) {
                      var r = this._cipher,
                        i = r.blockSize;
                      t.call(this, e, n, i),
                        r.encryptBlock(e, n),
                        (this._prevBlock = e.slice(n, n + i));
                    },
                  })),
                  (e.Decryptor = e.extend({
                    processBlock: function (e, n) {
                      var r = this._cipher,
                        i = r.blockSize,
                        o = e.slice(n, n + i);
                      r.decryptBlock(e, n),
                        t.call(this, e, n, i),
                        (this._prevBlock = o);
                    },
                  })),
                  e
                );
              })()),
              d = ((n.pad = {}).Pkcs7 = {
                pad: function (e, t) {
                  for (
                    var n = 4 * t,
                      r = n - (e.sigBytes % n),
                      i = (r << 24) | (r << 16) | (r << 8) | r,
                      a = [],
                      u = 0;
                    u < r;
                    u += 4
                  )
                    a.push(i);
                  var s = o.create(a, r);
                  e.concat(s);
                },
                unpad: function (e) {
                  var t = 255 & e.words[(e.sigBytes - 1) >>> 2];
                  e.sigBytes -= t;
                },
              });
            r.BlockCipher = f.extend({
              cfg: f.cfg.extend({ mode: p, padding: d }),
              reset: function () {
                var e;
                f.reset.call(this);
                var t = this.cfg,
                  n = t.iv,
                  r = t.mode;
                this._xformMode == this._ENC_XFORM_MODE
                  ? (e = r.createEncryptor)
                  : ((e = r.createDecryptor), (this._minBufferSize = 1)),
                  this._mode && this._mode.__creator == e
                    ? this._mode.init(this, n && n.words)
                    : ((this._mode = e.call(r, this, n && n.words)),
                      (this._mode.__creator = e));
              },
              _doProcessBlock: function (e, t) {
                this._mode.processBlock(e, t);
              },
              _doFinalize: function () {
                var e,
                  t = this.cfg.padding;
                return (
                  this._xformMode == this._ENC_XFORM_MODE
                    ? (t.pad(this._data, this.blockSize),
                      (e = this._process(!0)))
                    : ((e = this._process(!0)), t.unpad(e)),
                  e
                );
              },
              blockSize: 4,
            });
            var v = (r.CipherParams = i.extend({
                init: function (e) {
                  this.mixIn(e);
                },
                toString: function (e) {
                  return (e || this.formatter).stringify(this);
                },
              })),
              g = ((n.format = {}).OpenSSL = {
                stringify: function (e) {
                  var t = e.ciphertext,
                    n = e.salt;
                  return (
                    n
                      ? o.create([1398893684, 1701076831]).concat(n).concat(t)
                      : t
                  ).toString(s);
                },
                parse: function (e) {
                  var t,
                    n = s.parse(e),
                    r = n.words;
                  return (
                    1398893684 == r[0] &&
                      1701076831 == r[1] &&
                      ((t = o.create(r.slice(2, 4))),
                      r.splice(0, 4),
                      (n.sigBytes -= 16)),
                    v.create({ ciphertext: n, salt: t })
                  );
                },
              }),
              y = (r.SerializableCipher = i.extend({
                cfg: i.extend({ format: g }),
                encrypt: function (e, t, n, r) {
                  r = this.cfg.extend(r);
                  var i = e.createEncryptor(n, r),
                    o = i.finalize(t),
                    a = i.cfg;
                  return v.create({
                    ciphertext: o,
                    key: n,
                    iv: a.iv,
                    algorithm: e,
                    mode: a.mode,
                    padding: a.padding,
                    blockSize: e.blockSize,
                    formatter: r.format,
                  });
                },
                decrypt: function (e, t, n, r) {
                  return (
                    (r = this.cfg.extend(r)),
                    (t = this._parse(t, r.format)),
                    e.createDecryptor(n, r).finalize(t.ciphertext)
                  );
                },
                _parse: function (e, t) {
                  return "string" == typeof e ? t.parse(e, this) : e;
                },
              })),
              _ = ((n.kdf = {}).OpenSSL = {
                execute: function (e, t, n, r) {
                  r || (r = o.random(8));
                  var i = c.create({ keySize: t + n }).compute(e, r),
                    a = o.create(i.words.slice(t), 4 * n);
                  return (
                    (i.sigBytes = 4 * t), v.create({ key: i, iv: a, salt: r })
                  );
                },
              }),
              m = (r.PasswordBasedCipher = y.extend({
                cfg: y.cfg.extend({ kdf: _ }),
                encrypt: function (e, t, n, r) {
                  var i = (r = this.cfg.extend(r)).kdf.execute(
                    n,
                    e.keySize,
                    e.ivSize
                  );
                  r.iv = i.iv;
                  var o = y.encrypt.call(this, e, t, i.key, r);
                  return o.mixIn(i), o;
                },
                decrypt: function (e, t, n, r) {
                  (r = this.cfg.extend(r)), (t = this._parse(t, r.format));
                  var i = r.kdf.execute(n, e.keySize, e.ivSize, t.salt);
                  return (r.iv = i.iv), y.decrypt.call(this, e, t, i.key, r);
                },
              }));
          })()
        )))),
    ms
  );
  var e;
}
var bs,
  xs,
  Ss,
  As = {},
  Is = {
    get exports() {
      return As;
    },
    set exports(e) {
      As = e;
    },
  },
  Os = {},
  Ps = {
    get exports() {
      return Os;
    },
    set exports(e) {
      Os = e;
    },
  },
  Ts = {},
  Es = {
    get exports() {
      return Ts;
    },
    set exports(e) {
      Ts = e;
    },
  };
var Cs,
  Rs,
  Ls,
  Ds,
  Bs,
  Ns,
  Us,
  js,
  Ms,
  $s,
  Fs = {},
  Hs = {
    get exports() {
      return Fs;
    },
    set exports(e) {
      Fs = e;
    },
  },
  qs = {},
  zs = {
    get exports() {
      return qs;
    },
    set exports(e) {
      qs = e;
    },
  },
  Ws = {},
  Vs = {
    get exports() {
      return Ws;
    },
    set exports(e) {
      Ws = e;
    },
  },
  Ks = {},
  Js = {
    get exports() {
      return Ks;
    },
    set exports(e) {
      Ks = e;
    },
  },
  Gs = {},
  Ys = {
    get exports() {
      return Gs;
    },
    set exports(e) {
      Gs = e;
    },
  },
  Xs = {},
  Qs = {
    get exports() {
      return Xs;
    },
    set exports(e) {
      Xs = e;
    },
  },
  Zs = {},
  ec = {
    get exports() {
      return Zs;
    },
    set exports(e) {
      Zs = e;
    },
  },
  tc = {},
  nc = {
    get exports() {
      return tc;
    },
    set exports(e) {
      tc = e;
    },
  },
  rc = {},
  ic = {
    get exports() {
      return rc;
    },
    set exports(e) {
      rc = e;
    },
  },
  oc = {},
  ac = {
    get exports() {
      return oc;
    },
    set exports(e) {
      oc = e;
    },
  };
var uc,
  sc,
  cc,
  fc,
  lc,
  hc,
  pc,
  dc,
  vc,
  gc = {},
  yc = {
    get exports() {
      return gc;
    },
    set exports(e) {
      gc = e;
    },
  },
  _c = {},
  mc = {
    get exports() {
      return _c;
    },
    set exports(e) {
      _c = e;
    },
  },
  wc = {},
  kc = {
    get exports() {
      return wc;
    },
    set exports(e) {
      wc = e;
    },
  };
lu.exports = (function (e) {
  return e;
})(
  vu(),
  mu(),
  (function () {
    return (
      wu ||
        ((wu = 1),
        (bu.exports =
          ((e = vu()),
          (function () {
            if ("function" == typeof ArrayBuffer) {
              var t = e.lib.WordArray,
                n = t.init;
              (t.init = function (e) {
                if (
                  (e instanceof ArrayBuffer && (e = new Uint8Array(e)),
                  (e instanceof Int8Array ||
                    ("undefined" != typeof Uint8ClampedArray &&
                      e instanceof Uint8ClampedArray) ||
                    e instanceof Int16Array ||
                    e instanceof Uint16Array ||
                    e instanceof Int32Array ||
                    e instanceof Uint32Array ||
                    e instanceof Float32Array ||
                    e instanceof Float64Array) &&
                    (e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength)),
                  e instanceof Uint8Array)
                ) {
                  for (var t = e.byteLength, r = [], i = 0; i < t; i++)
                    r[i >>> 2] |= e[i] << (24 - (i % 4) * 8);
                  n.call(this, r, t);
                } else n.apply(this, arguments);
              }).prototype = t;
            }
          })(),
          e.lib.WordArray))),
      ku
    );
    var e;
  })(),
  (function () {
    return (
      xu ||
        ((xu = 1),
        (Au.exports =
          ((e = vu()),
          (function () {
            var t = e,
              n = t.lib.WordArray,
              r = t.enc;
            function i(e) {
              return ((e << 8) & 4278255360) | ((e >>> 8) & 16711935);
            }
            (r.Utf16 = r.Utf16BE =
              {
                stringify: function (e) {
                  for (
                    var t = e.words, n = e.sigBytes, r = [], i = 0;
                    i < n;
                    i += 2
                  ) {
                    var o = (t[i >>> 2] >>> (16 - (i % 4) * 8)) & 65535;
                    r.push(String.fromCharCode(o));
                  }
                  return r.join("");
                },
                parse: function (e) {
                  for (var t = e.length, r = [], i = 0; i < t; i++)
                    r[i >>> 1] |= e.charCodeAt(i) << (16 - (i % 2) * 16);
                  return n.create(r, 2 * t);
                },
              }),
              (r.Utf16LE = {
                stringify: function (e) {
                  for (
                    var t = e.words, n = e.sigBytes, r = [], o = 0;
                    o < n;
                    o += 2
                  ) {
                    var a = i((t[o >>> 2] >>> (16 - (o % 4) * 8)) & 65535);
                    r.push(String.fromCharCode(a));
                  }
                  return r.join("");
                },
                parse: function (e) {
                  for (var t = e.length, r = [], o = 0; o < t; o++)
                    r[o >>> 1] |= i(e.charCodeAt(o) << (16 - (o % 2) * 16));
                  return n.create(r, 2 * t);
                },
              });
          })(),
          e.enc.Utf16))),
      Su
    );
    var e;
  })(),
  Tu(),
  (function () {
    return (
      Eu ||
        ((Eu = 1),
        (Ru.exports =
          ((e = vu()),
          (function () {
            var t = e,
              n = t.lib.WordArray;
            function r(e, t, r) {
              for (var i = [], o = 0, a = 0; a < t; a++)
                if (a % 4) {
                  var u =
                    (r[e.charCodeAt(a - 1)] << ((a % 4) * 2)) |
                    (r[e.charCodeAt(a)] >>> (6 - (a % 4) * 2));
                  (i[o >>> 2] |= u << (24 - (o % 4) * 8)), o++;
                }
              return n.create(i, o);
            }
            t.enc.Base64url = {
              stringify: function (e) {
                var t =
                    !(arguments.length > 1 && void 0 !== arguments[1]) ||
                    arguments[1],
                  n = e.words,
                  r = e.sigBytes,
                  i = t ? this._safe_map : this._map;
                e.clamp();
                for (var o = [], a = 0; a < r; a += 3)
                  for (
                    var u =
                        (((n[a >>> 2] >>> (24 - (a % 4) * 8)) & 255) << 16) |
                        (((n[(a + 1) >>> 2] >>> (24 - ((a + 1) % 4) * 8)) &
                          255) <<
                          8) |
                        ((n[(a + 2) >>> 2] >>> (24 - ((a + 2) % 4) * 8)) & 255),
                      s = 0;
                    s < 4 && a + 0.75 * s < r;
                    s++
                  )
                    o.push(i.charAt((u >>> (6 * (3 - s))) & 63));
                var c = i.charAt(64);
                if (c) for (; o.length % 4; ) o.push(c);
                return o.join("");
              },
              parse: function (e) {
                var t =
                    !(arguments.length > 1 && void 0 !== arguments[1]) ||
                    arguments[1],
                  n = e.length,
                  i = t ? this._safe_map : this._map,
                  o = this._reverseMap;
                if (!o) {
                  o = this._reverseMap = [];
                  for (var a = 0; a < i.length; a++) o[i.charCodeAt(a)] = a;
                }
                var u = i.charAt(64);
                if (u) {
                  var s = e.indexOf(u);
                  -1 !== s && (n = s);
                }
                return r(e, n, o);
              },
              _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
              _safe_map:
                "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",
            };
          })(),
          e.enc.Base64url))),
      Cu
    );
    var e;
  })(),
  Nu(),
  $u(),
  zu(),
  Wu ||
    ((Wu = 1),
    (Ju.exports =
      ((vc = vu()),
      zu(),
      (lc = (fc = vc).lib.WordArray),
      (hc = fc.algo),
      (pc = hc.SHA256),
      (dc = hc.SHA224 =
        pc.extend({
          _doReset: function () {
            this._hash = new lc.init([
              3238371032, 914150663, 812702999, 4144912697, 4290775857,
              1750603025, 1694076839, 3204075428,
            ]);
          },
          _doFinalize: function () {
            var e = pc._doFinalize.call(this);
            return (e.sigBytes -= 4), e;
          },
        })),
      (fc.SHA224 = pc._createHelper(dc)),
      (fc.HmacSHA224 = pc._createHmacHelper(dc)),
      vc.SHA224))),
  Xu(),
  (function () {
    return (
      Qu ||
        ((Qu = 1),
        (ts.exports =
          ((u = vu()),
          mu(),
          Xu(),
          (t = (e = u).x64),
          (n = t.Word),
          (r = t.WordArray),
          (i = e.algo),
          (o = i.SHA512),
          (a = i.SHA384 =
            o.extend({
              _doReset: function () {
                this._hash = new r.init([
                  new n.init(3418070365, 3238371032),
                  new n.init(1654270250, 914150663),
                  new n.init(2438529370, 812702999),
                  new n.init(355462360, 4144912697),
                  new n.init(1731405415, 4290775857),
                  new n.init(2394180231, 1750603025),
                  new n.init(3675008525, 1694076839),
                  new n.init(1203062813, 3204075428),
                ]);
              },
              _doFinalize: function () {
                var e = o._doFinalize.call(this);
                return (e.sigBytes -= 16), e;
              },
            })),
          (e.SHA384 = o._createHelper(a)),
          (e.HmacSHA384 = o._createHmacHelper(a)),
          u.SHA384))),
      es
    );
    var e, t, n, r, i, o, a, u;
  })(),
  (function () {
    return (
      Zu ||
        ((Zu = 1),
        (rs.exports =
          ((e = vu()),
          mu(),
          (function (t) {
            var n = e,
              r = n.lib,
              i = r.WordArray,
              o = r.Hasher,
              a = n.x64.Word,
              u = n.algo,
              s = [],
              c = [],
              f = [];
            !(function () {
              for (var e = 1, t = 0, n = 0; n < 24; n++) {
                s[e + 5 * t] = (((n + 1) * (n + 2)) / 2) % 64;
                var r = (2 * e + 3 * t) % 5;
                (e = t % 5), (t = r);
              }
              for (e = 0; e < 5; e++)
                for (t = 0; t < 5; t++)
                  c[e + 5 * t] = t + ((2 * e + 3 * t) % 5) * 5;
              for (var i = 1, o = 0; o < 24; o++) {
                for (var u = 0, l = 0, h = 0; h < 7; h++) {
                  if (1 & i) {
                    var p = (1 << h) - 1;
                    p < 32 ? (l ^= 1 << p) : (u ^= 1 << (p - 32));
                  }
                  128 & i ? (i = (i << 1) ^ 113) : (i <<= 1);
                }
                f[o] = a.create(u, l);
              }
            })();
            var l = [];
            !(function () {
              for (var e = 0; e < 25; e++) l[e] = a.create();
            })();
            var h = (u.SHA3 = o.extend({
              cfg: o.cfg.extend({ outputLength: 512 }),
              _doReset: function () {
                for (var e = (this._state = []), t = 0; t < 25; t++)
                  e[t] = new a.init();
                this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
              },
              _doProcessBlock: function (e, t) {
                for (
                  var n = this._state, r = this.blockSize / 2, i = 0;
                  i < r;
                  i++
                ) {
                  var o = e[t + 2 * i],
                    a = e[t + 2 * i + 1];
                  (o =
                    (16711935 & ((o << 8) | (o >>> 24))) |
                    (4278255360 & ((o << 24) | (o >>> 8)))),
                    (a =
                      (16711935 & ((a << 8) | (a >>> 24))) |
                      (4278255360 & ((a << 24) | (a >>> 8)))),
                    ((P = n[i]).high ^= a),
                    (P.low ^= o);
                }
                for (var u = 0; u < 24; u++) {
                  for (var h = 0; h < 5; h++) {
                    for (var p = 0, d = 0, v = 0; v < 5; v++)
                      (p ^= (P = n[h + 5 * v]).high), (d ^= P.low);
                    var g = l[h];
                    (g.high = p), (g.low = d);
                  }
                  for (h = 0; h < 5; h++) {
                    var y = l[(h + 4) % 5],
                      _ = l[(h + 1) % 5],
                      m = _.high,
                      w = _.low;
                    for (
                      p = y.high ^ ((m << 1) | (w >>> 31)),
                        d = y.low ^ ((w << 1) | (m >>> 31)),
                        v = 0;
                      v < 5;
                      v++
                    )
                      ((P = n[h + 5 * v]).high ^= p), (P.low ^= d);
                  }
                  for (var k = 1; k < 25; k++) {
                    var b = (P = n[k]).high,
                      x = P.low,
                      S = s[k];
                    S < 32
                      ? ((p = (b << S) | (x >>> (32 - S))),
                        (d = (x << S) | (b >>> (32 - S))))
                      : ((p = (x << (S - 32)) | (b >>> (64 - S))),
                        (d = (b << (S - 32)) | (x >>> (64 - S))));
                    var A = l[c[k]];
                    (A.high = p), (A.low = d);
                  }
                  var I = l[0],
                    O = n[0];
                  for (I.high = O.high, I.low = O.low, h = 0; h < 5; h++)
                    for (v = 0; v < 5; v++) {
                      var P = n[(k = h + 5 * v)],
                        T = l[k],
                        E = l[((h + 1) % 5) + 5 * v],
                        C = l[((h + 2) % 5) + 5 * v];
                      (P.high = T.high ^ (~E.high & C.high)),
                        (P.low = T.low ^ (~E.low & C.low));
                    }
                  P = n[0];
                  var R = f[u];
                  (P.high ^= R.high), (P.low ^= R.low);
                }
              },
              _doFinalize: function () {
                var e = this._data,
                  n = e.words;
                this._nDataBytes;
                var r = 8 * e.sigBytes,
                  o = 32 * this.blockSize;
                (n[r >>> 5] |= 1 << (24 - (r % 32))),
                  (n[((t.ceil((r + 1) / o) * o) >>> 5) - 1] |= 128),
                  (e.sigBytes = 4 * n.length),
                  this._process();
                for (
                  var a = this._state,
                    u = this.cfg.outputLength / 8,
                    s = u / 8,
                    c = [],
                    f = 0;
                  f < s;
                  f++
                ) {
                  var l = a[f],
                    h = l.high,
                    p = l.low;
                  (h =
                    (16711935 & ((h << 8) | (h >>> 24))) |
                    (4278255360 & ((h << 24) | (h >>> 8)))),
                    (p =
                      (16711935 & ((p << 8) | (p >>> 24))) |
                      (4278255360 & ((p << 24) | (p >>> 8)))),
                    c.push(p),
                    c.push(h);
                }
                return new i.init(c, u);
              },
              clone: function () {
                for (
                  var e = o.clone.call(this),
                    t = (e._state = this._state.slice(0)),
                    n = 0;
                  n < 25;
                  n++
                )
                  t[n] = t[n].clone();
                return e;
              },
            }));
            (n.SHA3 = o._createHelper(h)),
              (n.HmacSHA3 = o._createHmacHelper(h));
          })(Math),
          e.SHA3))),
      ns
    );
    var e;
  })(),
  (function () {
    return (
      is ||
        ((is = 1),
        (us.exports =
          ((e = vu()),
          (function (t) {
            var n = e,
              r = n.lib,
              i = r.WordArray,
              o = r.Hasher,
              a = n.algo,
              u = i.create([
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13,
                1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15,
                8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13,
                3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8,
                11, 6, 15, 13,
              ]),
              s = i.create([
                5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3,
                7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14,
                6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5,
                12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13,
                14, 0, 3, 9, 11,
              ]),
              c = i.create([
                11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8,
                13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14,
                9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9,
                8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12,
                13, 14, 11, 8, 5, 6,
              ]),
              f = i.create([
                8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13,
                15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11,
                8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14,
                6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8,
                13, 6, 5, 15, 13, 11, 11,
              ]),
              l = i.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
              h = i.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
              p = (a.RIPEMD160 = o.extend({
                _doReset: function () {
                  this._hash = i.create([
                    1732584193, 4023233417, 2562383102, 271733878, 3285377520,
                  ]);
                },
                _doProcessBlock: function (e, t) {
                  for (var n = 0; n < 16; n++) {
                    var r = t + n,
                      i = e[r];
                    e[r] =
                      (16711935 & ((i << 8) | (i >>> 24))) |
                      (4278255360 & ((i << 24) | (i >>> 8)));
                  }
                  var o,
                    a,
                    p,
                    w,
                    k,
                    b,
                    x,
                    S,
                    A,
                    I,
                    O,
                    P = this._hash.words,
                    T = l.words,
                    E = h.words,
                    C = u.words,
                    R = s.words,
                    L = c.words,
                    D = f.words;
                  for (
                    b = o = P[0],
                      x = a = P[1],
                      S = p = P[2],
                      A = w = P[3],
                      I = k = P[4],
                      n = 0;
                    n < 80;
                    n += 1
                  )
                    (O = (o + e[t + C[n]]) | 0),
                      (O +=
                        n < 16
                          ? d(a, p, w) + T[0]
                          : n < 32
                          ? v(a, p, w) + T[1]
                          : n < 48
                          ? g(a, p, w) + T[2]
                          : n < 64
                          ? y(a, p, w) + T[3]
                          : _(a, p, w) + T[4]),
                      (O = ((O = m((O |= 0), L[n])) + k) | 0),
                      (o = k),
                      (k = w),
                      (w = m(p, 10)),
                      (p = a),
                      (a = O),
                      (O = (b + e[t + R[n]]) | 0),
                      (O +=
                        n < 16
                          ? _(x, S, A) + E[0]
                          : n < 32
                          ? y(x, S, A) + E[1]
                          : n < 48
                          ? g(x, S, A) + E[2]
                          : n < 64
                          ? v(x, S, A) + E[3]
                          : d(x, S, A) + E[4]),
                      (O = ((O = m((O |= 0), D[n])) + I) | 0),
                      (b = I),
                      (I = A),
                      (A = m(S, 10)),
                      (S = x),
                      (x = O);
                  (O = (P[1] + p + A) | 0),
                    (P[1] = (P[2] + w + I) | 0),
                    (P[2] = (P[3] + k + b) | 0),
                    (P[3] = (P[4] + o + x) | 0),
                    (P[4] = (P[0] + a + S) | 0),
                    (P[0] = O);
                },
                _doFinalize: function () {
                  var e = this._data,
                    t = e.words,
                    n = 8 * this._nDataBytes,
                    r = 8 * e.sigBytes;
                  (t[r >>> 5] |= 128 << (24 - (r % 32))),
                    (t[14 + (((r + 64) >>> 9) << 4)] =
                      (16711935 & ((n << 8) | (n >>> 24))) |
                      (4278255360 & ((n << 24) | (n >>> 8)))),
                    (e.sigBytes = 4 * (t.length + 1)),
                    this._process();
                  for (var i = this._hash, o = i.words, a = 0; a < 5; a++) {
                    var u = o[a];
                    o[a] =
                      (16711935 & ((u << 8) | (u >>> 24))) |
                      (4278255360 & ((u << 24) | (u >>> 8)));
                  }
                  return i;
                },
                clone: function () {
                  var e = o.clone.call(this);
                  return (e._hash = this._hash.clone()), e;
                },
              }));
            function d(e, t, n) {
              return e ^ t ^ n;
            }
            function v(e, t, n) {
              return (e & t) | (~e & n);
            }
            function g(e, t, n) {
              return (e | ~t) ^ n;
            }
            function y(e, t, n) {
              return (e & n) | (t & ~n);
            }
            function _(e, t, n) {
              return e ^ (t | ~n);
            }
            function m(e, t) {
              return (e << t) | (e >>> (32 - t));
            }
            (n.RIPEMD160 = o._createHelper(p)),
              (n.HmacRIPEMD160 = o._createHmacHelper(p));
          })(),
          e.RIPEMD160))),
      as
    );
    var e;
  })(),
  fs(),
  (function () {
    return (
      ls ||
        ((ls = 1),
        (ds.exports =
          ((s = vu()),
          $u(),
          fs(),
          (n = (t = (e = s).lib).Base),
          (r = t.WordArray),
          (o = (i = e.algo).SHA1),
          (a = i.HMAC),
          (u = i.PBKDF2 =
            n.extend({
              cfg: n.extend({ keySize: 4, hasher: o, iterations: 1 }),
              init: function (e) {
                this.cfg = this.cfg.extend(e);
              },
              compute: function (e, t) {
                for (
                  var n = this.cfg,
                    i = a.create(n.hasher, e),
                    o = r.create(),
                    u = r.create([1]),
                    s = o.words,
                    c = u.words,
                    f = n.keySize,
                    l = n.iterations;
                  s.length < f;

                ) {
                  var h = i.update(t).finalize(u);
                  i.reset();
                  for (
                    var p = h.words, d = p.length, v = h, g = 1;
                    g < l;
                    g++
                  ) {
                    (v = i.finalize(v)), i.reset();
                    for (var y = v.words, _ = 0; _ < d; _++) p[_] ^= y[_];
                  }
                  o.concat(h), c[0]++;
                }
                return (o.sigBytes = 4 * f), o;
              },
            })),
          (e.PBKDF2 = function (e, t, n) {
            return u.create(n).compute(e, t);
          }),
          s.PBKDF2))),
      ps
    );
    var e, t, n, r, i, o, a, u, s;
  })(),
  ys(),
  ks(),
  (function () {
    return (
      bs ||
        ((bs = 1),
        (Is.exports =
          ((e = vu()),
          ks(),
          (e.mode.CFB = (function () {
            var t = e.lib.BlockCipherMode.extend();
            function n(e, t, n, r) {
              var i,
                o = this._iv;
              o
                ? ((i = o.slice(0)), (this._iv = void 0))
                : (i = this._prevBlock),
                r.encryptBlock(i, 0);
              for (var a = 0; a < n; a++) e[t + a] ^= i[a];
            }
            return (
              (t.Encryptor = t.extend({
                processBlock: function (e, t) {
                  var r = this._cipher,
                    i = r.blockSize;
                  n.call(this, e, t, i, r),
                    (this._prevBlock = e.slice(t, t + i));
                },
              })),
              (t.Decryptor = t.extend({
                processBlock: function (e, t) {
                  var r = this._cipher,
                    i = r.blockSize,
                    o = e.slice(t, t + i);
                  n.call(this, e, t, i, r), (this._prevBlock = o);
                },
              })),
              t
            );
          })()),
          e.mode.CFB))),
      As
    );
    var e;
  })(),
  (function () {
    return (
      xs ||
        ((xs = 1),
        (Ps.exports =
          ((n = vu()),
          ks(),
          (n.mode.CTR =
            ((t = (e = n.lib.BlockCipherMode.extend()).Encryptor =
              e.extend({
                processBlock: function (e, t) {
                  var n = this._cipher,
                    r = n.blockSize,
                    i = this._iv,
                    o = this._counter;
                  i && ((o = this._counter = i.slice(0)), (this._iv = void 0));
                  var a = o.slice(0);
                  n.encryptBlock(a, 0), (o[r - 1] = (o[r - 1] + 1) | 0);
                  for (var u = 0; u < r; u++) e[t + u] ^= a[u];
                },
              })),
            (e.Decryptor = t),
            e)),
          n.mode.CTR))),
      Os
    );
    var e, t, n;
  })(),
  (function () {
    return (
      Ss ||
        ((Ss = 1),
        (Es.exports =
          ((e = vu()),
          ks(),
          (e.mode.CTRGladman = (function () {
            var t = e.lib.BlockCipherMode.extend();
            function n(e) {
              if (255 == ((e >> 24) & 255)) {
                var t = (e >> 16) & 255,
                  n = (e >> 8) & 255,
                  r = 255 & e;
                255 === t
                  ? ((t = 0),
                    255 === n ? ((n = 0), 255 === r ? (r = 0) : ++r) : ++n)
                  : ++t,
                  (e = 0),
                  (e += t << 16),
                  (e += n << 8),
                  (e += r);
              } else e += 1 << 24;
              return e;
            }
            function r(e) {
              return 0 === (e[0] = n(e[0])) && (e[1] = n(e[1])), e;
            }
            var i = (t.Encryptor = t.extend({
              processBlock: function (e, t) {
                var n = this._cipher,
                  i = n.blockSize,
                  o = this._iv,
                  a = this._counter;
                o && ((a = this._counter = o.slice(0)), (this._iv = void 0)),
                  r(a);
                var u = a.slice(0);
                n.encryptBlock(u, 0);
                for (var s = 0; s < i; s++) e[t + s] ^= u[s];
              },
            }));
            return (t.Decryptor = i), t;
          })()),
          e.mode.CTRGladman))),
      Ts
    );
    var e;
  })(),
  (function () {
    return (
      Cs ||
        ((Cs = 1),
        (Hs.exports =
          ((n = vu()),
          ks(),
          (n.mode.OFB =
            ((t = (e = n.lib.BlockCipherMode.extend()).Encryptor =
              e.extend({
                processBlock: function (e, t) {
                  var n = this._cipher,
                    r = n.blockSize,
                    i = this._iv,
                    o = this._keystream;
                  i &&
                    ((o = this._keystream = i.slice(0)), (this._iv = void 0)),
                    n.encryptBlock(o, 0);
                  for (var a = 0; a < r; a++) e[t + a] ^= o[a];
                },
              })),
            (e.Decryptor = t),
            e)),
          n.mode.OFB))),
      Fs
    );
    var e, t, n;
  })(),
  (function () {
    return (
      Rs ||
        ((Rs = 1),
        (zs.exports =
          ((t = vu()),
          ks(),
          (t.mode.ECB =
            (((e = t.lib.BlockCipherMode.extend()).Encryptor = e.extend({
              processBlock: function (e, t) {
                this._cipher.encryptBlock(e, t);
              },
            })),
            (e.Decryptor = e.extend({
              processBlock: function (e, t) {
                this._cipher.decryptBlock(e, t);
              },
            })),
            e)),
          t.mode.ECB))),
      qs
    );
    var e, t;
  })(),
  (function () {
    return (
      Ls ||
        ((Ls = 1),
        (Vs.exports =
          ((e = vu()),
          ks(),
          (e.pad.AnsiX923 = {
            pad: function (e, t) {
              var n = e.sigBytes,
                r = 4 * t,
                i = r - (n % r),
                o = n + i - 1;
              e.clamp(),
                (e.words[o >>> 2] |= i << (24 - (o % 4) * 8)),
                (e.sigBytes += i);
            },
            unpad: function (e) {
              var t = 255 & e.words[(e.sigBytes - 1) >>> 2];
              e.sigBytes -= t;
            },
          }),
          e.pad.Ansix923))),
      Ws
    );
    var e;
  })(),
  (function () {
    return (
      Ds ||
        ((Ds = 1),
        (Js.exports =
          ((e = vu()),
          ks(),
          (e.pad.Iso10126 = {
            pad: function (t, n) {
              var r = 4 * n,
                i = r - (t.sigBytes % r);
              t.concat(e.lib.WordArray.random(i - 1)).concat(
                e.lib.WordArray.create([i << 24], 1)
              );
            },
            unpad: function (e) {
              var t = 255 & e.words[(e.sigBytes - 1) >>> 2];
              e.sigBytes -= t;
            },
          }),
          e.pad.Iso10126))),
      Ks
    );
    var e;
  })(),
  (function () {
    return (
      Bs ||
        ((Bs = 1),
        (Ys.exports =
          ((e = vu()),
          ks(),
          (e.pad.Iso97971 = {
            pad: function (t, n) {
              t.concat(e.lib.WordArray.create([2147483648], 1)),
                e.pad.ZeroPadding.pad(t, n);
            },
            unpad: function (t) {
              e.pad.ZeroPadding.unpad(t), t.sigBytes--;
            },
          }),
          e.pad.Iso97971))),
      Gs
    );
    var e;
  })(),
  (function () {
    return (
      Ns ||
        ((Ns = 1),
        (Qs.exports =
          ((e = vu()),
          ks(),
          (e.pad.ZeroPadding = {
            pad: function (e, t) {
              var n = 4 * t;
              e.clamp(), (e.sigBytes += n - (e.sigBytes % n || n));
            },
            unpad: function (e) {
              var t = e.words,
                n = e.sigBytes - 1;
              for (n = e.sigBytes - 1; n >= 0; n--)
                if ((t[n >>> 2] >>> (24 - (n % 4) * 8)) & 255) {
                  e.sigBytes = n + 1;
                  break;
                }
            },
          }),
          e.pad.ZeroPadding))),
      Xs
    );
    var e;
  })(),
  (function () {
    return (
      Us ||
        ((Us = 1),
        (ec.exports =
          ((e = vu()),
          ks(),
          (e.pad.NoPadding = { pad: function () {}, unpad: function () {} }),
          e.pad.NoPadding))),
      Zs
    );
    var e;
  })(),
  (function () {
    return (
      js ||
        ((js = 1),
        (nc.exports =
          ((r = vu()),
          ks(),
          (t = (e = r).lib.CipherParams),
          (n = e.enc.Hex),
          (e.format.Hex = {
            stringify: function (e) {
              return e.ciphertext.toString(n);
            },
            parse: function (e) {
              var r = n.parse(e);
              return t.create({ ciphertext: r });
            },
          }),
          r.format.Hex))),
      tc
    );
    var e, t, n, r;
  })(),
  (function () {
    return (
      Ms ||
        ((Ms = 1),
        (ic.exports =
          ((e = vu()),
          Tu(),
          Nu(),
          ys(),
          ks(),
          (function () {
            var t = e,
              n = t.lib.BlockCipher,
              r = t.algo,
              i = [],
              o = [],
              a = [],
              u = [],
              s = [],
              c = [],
              f = [],
              l = [],
              h = [],
              p = [];
            !(function () {
              for (var e = [], t = 0; t < 256; t++)
                e[t] = t < 128 ? t << 1 : (t << 1) ^ 283;
              var n = 0,
                r = 0;
              for (t = 0; t < 256; t++) {
                var d = r ^ (r << 1) ^ (r << 2) ^ (r << 3) ^ (r << 4);
                (d = (d >>> 8) ^ (255 & d) ^ 99), (i[n] = d), (o[d] = n);
                var v = e[n],
                  g = e[v],
                  y = e[g],
                  _ = (257 * e[d]) ^ (16843008 * d);
                (a[n] = (_ << 24) | (_ >>> 8)),
                  (u[n] = (_ << 16) | (_ >>> 16)),
                  (s[n] = (_ << 8) | (_ >>> 24)),
                  (c[n] = _),
                  (_ =
                    (16843009 * y) ^ (65537 * g) ^ (257 * v) ^ (16843008 * n)),
                  (f[d] = (_ << 24) | (_ >>> 8)),
                  (l[d] = (_ << 16) | (_ >>> 16)),
                  (h[d] = (_ << 8) | (_ >>> 24)),
                  (p[d] = _),
                  n ? ((n = v ^ e[e[e[y ^ v]]]), (r ^= e[e[r]])) : (n = r = 1);
              }
            })();
            var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
              v = (r.AES = n.extend({
                _doReset: function () {
                  if (!this._nRounds || this._keyPriorReset !== this._key) {
                    for (
                      var e = (this._keyPriorReset = this._key),
                        t = e.words,
                        n = e.sigBytes / 4,
                        r = 4 * ((this._nRounds = n + 6) + 1),
                        o = (this._keySchedule = []),
                        a = 0;
                      a < r;
                      a++
                    )
                      a < n
                        ? (o[a] = t[a])
                        : ((c = o[a - 1]),
                          a % n
                            ? n > 6 &&
                              a % n == 4 &&
                              (c =
                                (i[c >>> 24] << 24) |
                                (i[(c >>> 16) & 255] << 16) |
                                (i[(c >>> 8) & 255] << 8) |
                                i[255 & c])
                            : ((c =
                                (i[(c = (c << 8) | (c >>> 24)) >>> 24] << 24) |
                                (i[(c >>> 16) & 255] << 16) |
                                (i[(c >>> 8) & 255] << 8) |
                                i[255 & c]),
                              (c ^= d[(a / n) | 0] << 24)),
                          (o[a] = o[a - n] ^ c));
                    for (
                      var u = (this._invKeySchedule = []), s = 0;
                      s < r;
                      s++
                    ) {
                      if (((a = r - s), s % 4)) var c = o[a];
                      else c = o[a - 4];
                      u[s] =
                        s < 4 || a <= 4
                          ? c
                          : f[i[c >>> 24]] ^
                            l[i[(c >>> 16) & 255]] ^
                            h[i[(c >>> 8) & 255]] ^
                            p[i[255 & c]];
                    }
                  }
                },
                encryptBlock: function (e, t) {
                  this._doCryptBlock(e, t, this._keySchedule, a, u, s, c, i);
                },
                decryptBlock: function (e, t) {
                  var n = e[t + 1];
                  (e[t + 1] = e[t + 3]),
                    (e[t + 3] = n),
                    this._doCryptBlock(
                      e,
                      t,
                      this._invKeySchedule,
                      f,
                      l,
                      h,
                      p,
                      o
                    ),
                    (n = e[t + 1]),
                    (e[t + 1] = e[t + 3]),
                    (e[t + 3] = n);
                },
                _doCryptBlock: function (e, t, n, r, i, o, a, u) {
                  for (
                    var s = this._nRounds,
                      c = e[t] ^ n[0],
                      f = e[t + 1] ^ n[1],
                      l = e[t + 2] ^ n[2],
                      h = e[t + 3] ^ n[3],
                      p = 4,
                      d = 1;
                    d < s;
                    d++
                  ) {
                    var v =
                        r[c >>> 24] ^
                        i[(f >>> 16) & 255] ^
                        o[(l >>> 8) & 255] ^
                        a[255 & h] ^
                        n[p++],
                      g =
                        r[f >>> 24] ^
                        i[(l >>> 16) & 255] ^
                        o[(h >>> 8) & 255] ^
                        a[255 & c] ^
                        n[p++],
                      y =
                        r[l >>> 24] ^
                        i[(h >>> 16) & 255] ^
                        o[(c >>> 8) & 255] ^
                        a[255 & f] ^
                        n[p++],
                      _ =
                        r[h >>> 24] ^
                        i[(c >>> 16) & 255] ^
                        o[(f >>> 8) & 255] ^
                        a[255 & l] ^
                        n[p++];
                    (c = v), (f = g), (l = y), (h = _);
                  }
                  (v =
                    ((u[c >>> 24] << 24) |
                      (u[(f >>> 16) & 255] << 16) |
                      (u[(l >>> 8) & 255] << 8) |
                      u[255 & h]) ^
                    n[p++]),
                    (g =
                      ((u[f >>> 24] << 24) |
                        (u[(l >>> 16) & 255] << 16) |
                        (u[(h >>> 8) & 255] << 8) |
                        u[255 & c]) ^
                      n[p++]),
                    (y =
                      ((u[l >>> 24] << 24) |
                        (u[(h >>> 16) & 255] << 16) |
                        (u[(c >>> 8) & 255] << 8) |
                        u[255 & f]) ^
                      n[p++]),
                    (_ =
                      ((u[h >>> 24] << 24) |
                        (u[(c >>> 16) & 255] << 16) |
                        (u[(f >>> 8) & 255] << 8) |
                        u[255 & l]) ^
                      n[p++]),
                    (e[t] = v),
                    (e[t + 1] = g),
                    (e[t + 2] = y),
                    (e[t + 3] = _);
                },
                keySize: 8,
              }));
            t.AES = n._createHelper(v);
          })(),
          e.AES))),
      rc
    );
    var e;
  })(),
  (function () {
    return (
      $s ||
        (($s = 1),
        (ac.exports =
          ((e = vu()),
          Tu(),
          Nu(),
          ys(),
          ks(),
          (function () {
            var t = e,
              n = t.lib,
              r = n.WordArray,
              i = n.BlockCipher,
              o = t.algo,
              a = [
                57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59,
                51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31,
                23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29,
                21, 13, 5, 28, 20, 12, 4,
              ],
              u = [
                14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26,
                8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45,
                33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32,
              ],
              s = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
              c = [
                {
                  0: 8421888,
                  268435456: 32768,
                  536870912: 8421378,
                  805306368: 2,
                  1073741824: 512,
                  1342177280: 8421890,
                  1610612736: 8389122,
                  1879048192: 8388608,
                  2147483648: 514,
                  2415919104: 8389120,
                  2684354560: 33280,
                  2952790016: 8421376,
                  3221225472: 32770,
                  3489660928: 8388610,
                  3758096384: 0,
                  4026531840: 33282,
                  134217728: 0,
                  402653184: 8421890,
                  671088640: 33282,
                  939524096: 32768,
                  1207959552: 8421888,
                  1476395008: 512,
                  1744830464: 8421378,
                  2013265920: 2,
                  2281701376: 8389120,
                  2550136832: 33280,
                  2818572288: 8421376,
                  3087007744: 8389122,
                  3355443200: 8388610,
                  3623878656: 32770,
                  3892314112: 514,
                  4160749568: 8388608,
                  1: 32768,
                  268435457: 2,
                  536870913: 8421888,
                  805306369: 8388608,
                  1073741825: 8421378,
                  1342177281: 33280,
                  1610612737: 512,
                  1879048193: 8389122,
                  2147483649: 8421890,
                  2415919105: 8421376,
                  2684354561: 8388610,
                  2952790017: 33282,
                  3221225473: 514,
                  3489660929: 8389120,
                  3758096385: 32770,
                  4026531841: 0,
                  134217729: 8421890,
                  402653185: 8421376,
                  671088641: 8388608,
                  939524097: 512,
                  1207959553: 32768,
                  1476395009: 8388610,
                  1744830465: 2,
                  2013265921: 33282,
                  2281701377: 32770,
                  2550136833: 8389122,
                  2818572289: 514,
                  3087007745: 8421888,
                  3355443201: 8389120,
                  3623878657: 0,
                  3892314113: 33280,
                  4160749569: 8421378,
                },
                {
                  0: 1074282512,
                  16777216: 16384,
                  33554432: 524288,
                  50331648: 1074266128,
                  67108864: 1073741840,
                  83886080: 1074282496,
                  100663296: 1073758208,
                  117440512: 16,
                  134217728: 540672,
                  150994944: 1073758224,
                  167772160: 1073741824,
                  184549376: 540688,
                  201326592: 524304,
                  218103808: 0,
                  234881024: 16400,
                  251658240: 1074266112,
                  8388608: 1073758208,
                  25165824: 540688,
                  41943040: 16,
                  58720256: 1073758224,
                  75497472: 1074282512,
                  92274688: 1073741824,
                  109051904: 524288,
                  125829120: 1074266128,
                  142606336: 524304,
                  159383552: 0,
                  176160768: 16384,
                  192937984: 1074266112,
                  209715200: 1073741840,
                  226492416: 540672,
                  243269632: 1074282496,
                  260046848: 16400,
                  268435456: 0,
                  285212672: 1074266128,
                  301989888: 1073758224,
                  318767104: 1074282496,
                  335544320: 1074266112,
                  352321536: 16,
                  369098752: 540688,
                  385875968: 16384,
                  402653184: 16400,
                  419430400: 524288,
                  436207616: 524304,
                  452984832: 1073741840,
                  469762048: 540672,
                  486539264: 1073758208,
                  503316480: 1073741824,
                  520093696: 1074282512,
                  276824064: 540688,
                  293601280: 524288,
                  310378496: 1074266112,
                  327155712: 16384,
                  343932928: 1073758208,
                  360710144: 1074282512,
                  377487360: 16,
                  394264576: 1073741824,
                  411041792: 1074282496,
                  427819008: 1073741840,
                  444596224: 1073758224,
                  461373440: 524304,
                  478150656: 0,
                  494927872: 16400,
                  511705088: 1074266128,
                  528482304: 540672,
                },
                {
                  0: 260,
                  1048576: 0,
                  2097152: 67109120,
                  3145728: 65796,
                  4194304: 65540,
                  5242880: 67108868,
                  6291456: 67174660,
                  7340032: 67174400,
                  8388608: 67108864,
                  9437184: 67174656,
                  10485760: 65792,
                  11534336: 67174404,
                  12582912: 67109124,
                  13631488: 65536,
                  14680064: 4,
                  15728640: 256,
                  524288: 67174656,
                  1572864: 67174404,
                  2621440: 0,
                  3670016: 67109120,
                  4718592: 67108868,
                  5767168: 65536,
                  6815744: 65540,
                  7864320: 260,
                  8912896: 4,
                  9961472: 256,
                  11010048: 67174400,
                  12058624: 65796,
                  13107200: 65792,
                  14155776: 67109124,
                  15204352: 67174660,
                  16252928: 67108864,
                  16777216: 67174656,
                  17825792: 65540,
                  18874368: 65536,
                  19922944: 67109120,
                  20971520: 256,
                  22020096: 67174660,
                  23068672: 67108868,
                  24117248: 0,
                  25165824: 67109124,
                  26214400: 67108864,
                  27262976: 4,
                  28311552: 65792,
                  29360128: 67174400,
                  30408704: 260,
                  31457280: 65796,
                  32505856: 67174404,
                  17301504: 67108864,
                  18350080: 260,
                  19398656: 67174656,
                  20447232: 0,
                  21495808: 65540,
                  22544384: 67109120,
                  23592960: 256,
                  24641536: 67174404,
                  25690112: 65536,
                  26738688: 67174660,
                  27787264: 65796,
                  28835840: 67108868,
                  29884416: 67109124,
                  30932992: 67174400,
                  31981568: 4,
                  33030144: 65792,
                },
                {
                  0: 2151682048,
                  65536: 2147487808,
                  131072: 4198464,
                  196608: 2151677952,
                  262144: 0,
                  327680: 4198400,
                  393216: 2147483712,
                  458752: 4194368,
                  524288: 2147483648,
                  589824: 4194304,
                  655360: 64,
                  720896: 2147487744,
                  786432: 2151678016,
                  851968: 4160,
                  917504: 4096,
                  983040: 2151682112,
                  32768: 2147487808,
                  98304: 64,
                  163840: 2151678016,
                  229376: 2147487744,
                  294912: 4198400,
                  360448: 2151682112,
                  425984: 0,
                  491520: 2151677952,
                  557056: 4096,
                  622592: 2151682048,
                  688128: 4194304,
                  753664: 4160,
                  819200: 2147483648,
                  884736: 4194368,
                  950272: 4198464,
                  1015808: 2147483712,
                  1048576: 4194368,
                  1114112: 4198400,
                  1179648: 2147483712,
                  1245184: 0,
                  1310720: 4160,
                  1376256: 2151678016,
                  1441792: 2151682048,
                  1507328: 2147487808,
                  1572864: 2151682112,
                  1638400: 2147483648,
                  1703936: 2151677952,
                  1769472: 4198464,
                  1835008: 2147487744,
                  1900544: 4194304,
                  1966080: 64,
                  2031616: 4096,
                  1081344: 2151677952,
                  1146880: 2151682112,
                  1212416: 0,
                  1277952: 4198400,
                  1343488: 4194368,
                  1409024: 2147483648,
                  1474560: 2147487808,
                  1540096: 64,
                  1605632: 2147483712,
                  1671168: 4096,
                  1736704: 2147487744,
                  1802240: 2151678016,
                  1867776: 4160,
                  1933312: 2151682048,
                  1998848: 4194304,
                  2064384: 4198464,
                },
                {
                  0: 128,
                  4096: 17039360,
                  8192: 262144,
                  12288: 536870912,
                  16384: 537133184,
                  20480: 16777344,
                  24576: 553648256,
                  28672: 262272,
                  32768: 16777216,
                  36864: 537133056,
                  40960: 536871040,
                  45056: 553910400,
                  49152: 553910272,
                  53248: 0,
                  57344: 17039488,
                  61440: 553648128,
                  2048: 17039488,
                  6144: 553648256,
                  10240: 128,
                  14336: 17039360,
                  18432: 262144,
                  22528: 537133184,
                  26624: 553910272,
                  30720: 536870912,
                  34816: 537133056,
                  38912: 0,
                  43008: 553910400,
                  47104: 16777344,
                  51200: 536871040,
                  55296: 553648128,
                  59392: 16777216,
                  63488: 262272,
                  65536: 262144,
                  69632: 128,
                  73728: 536870912,
                  77824: 553648256,
                  81920: 16777344,
                  86016: 553910272,
                  90112: 537133184,
                  94208: 16777216,
                  98304: 553910400,
                  102400: 553648128,
                  106496: 17039360,
                  110592: 537133056,
                  114688: 262272,
                  118784: 536871040,
                  122880: 0,
                  126976: 17039488,
                  67584: 553648256,
                  71680: 16777216,
                  75776: 17039360,
                  79872: 537133184,
                  83968: 536870912,
                  88064: 17039488,
                  92160: 128,
                  96256: 553910272,
                  100352: 262272,
                  104448: 553910400,
                  108544: 0,
                  112640: 553648128,
                  116736: 16777344,
                  120832: 262144,
                  124928: 537133056,
                  129024: 536871040,
                },
                {
                  0: 268435464,
                  256: 8192,
                  512: 270532608,
                  768: 270540808,
                  1024: 268443648,
                  1280: 2097152,
                  1536: 2097160,
                  1792: 268435456,
                  2048: 0,
                  2304: 268443656,
                  2560: 2105344,
                  2816: 8,
                  3072: 270532616,
                  3328: 2105352,
                  3584: 8200,
                  3840: 270540800,
                  128: 270532608,
                  384: 270540808,
                  640: 8,
                  896: 2097152,
                  1152: 2105352,
                  1408: 268435464,
                  1664: 268443648,
                  1920: 8200,
                  2176: 2097160,
                  2432: 8192,
                  2688: 268443656,
                  2944: 270532616,
                  3200: 0,
                  3456: 270540800,
                  3712: 2105344,
                  3968: 268435456,
                  4096: 268443648,
                  4352: 270532616,
                  4608: 270540808,
                  4864: 8200,
                  5120: 2097152,
                  5376: 268435456,
                  5632: 268435464,
                  5888: 2105344,
                  6144: 2105352,
                  6400: 0,
                  6656: 8,
                  6912: 270532608,
                  7168: 8192,
                  7424: 268443656,
                  7680: 270540800,
                  7936: 2097160,
                  4224: 8,
                  4480: 2105344,
                  4736: 2097152,
                  4992: 268435464,
                  5248: 268443648,
                  5504: 8200,
                  5760: 270540808,
                  6016: 270532608,
                  6272: 270540800,
                  6528: 270532616,
                  6784: 8192,
                  7040: 2105352,
                  7296: 2097160,
                  7552: 0,
                  7808: 268435456,
                  8064: 268443656,
                },
                {
                  0: 1048576,
                  16: 33555457,
                  32: 1024,
                  48: 1049601,
                  64: 34604033,
                  80: 0,
                  96: 1,
                  112: 34603009,
                  128: 33555456,
                  144: 1048577,
                  160: 33554433,
                  176: 34604032,
                  192: 34603008,
                  208: 1025,
                  224: 1049600,
                  240: 33554432,
                  8: 34603009,
                  24: 0,
                  40: 33555457,
                  56: 34604032,
                  72: 1048576,
                  88: 33554433,
                  104: 33554432,
                  120: 1025,
                  136: 1049601,
                  152: 33555456,
                  168: 34603008,
                  184: 1048577,
                  200: 1024,
                  216: 34604033,
                  232: 1,
                  248: 1049600,
                  256: 33554432,
                  272: 1048576,
                  288: 33555457,
                  304: 34603009,
                  320: 1048577,
                  336: 33555456,
                  352: 34604032,
                  368: 1049601,
                  384: 1025,
                  400: 34604033,
                  416: 1049600,
                  432: 1,
                  448: 0,
                  464: 34603008,
                  480: 33554433,
                  496: 1024,
                  264: 1049600,
                  280: 33555457,
                  296: 34603009,
                  312: 1,
                  328: 33554432,
                  344: 1048576,
                  360: 1025,
                  376: 34604032,
                  392: 33554433,
                  408: 34603008,
                  424: 0,
                  440: 34604033,
                  456: 1049601,
                  472: 1024,
                  488: 33555456,
                  504: 1048577,
                },
                {
                  0: 134219808,
                  1: 131072,
                  2: 134217728,
                  3: 32,
                  4: 131104,
                  5: 134350880,
                  6: 134350848,
                  7: 2048,
                  8: 134348800,
                  9: 134219776,
                  10: 133120,
                  11: 134348832,
                  12: 2080,
                  13: 0,
                  14: 134217760,
                  15: 133152,
                  2147483648: 2048,
                  2147483649: 134350880,
                  2147483650: 134219808,
                  2147483651: 134217728,
                  2147483652: 134348800,
                  2147483653: 133120,
                  2147483654: 133152,
                  2147483655: 32,
                  2147483656: 134217760,
                  2147483657: 2080,
                  2147483658: 131104,
                  2147483659: 134350848,
                  2147483660: 0,
                  2147483661: 134348832,
                  2147483662: 134219776,
                  2147483663: 131072,
                  16: 133152,
                  17: 134350848,
                  18: 32,
                  19: 2048,
                  20: 134219776,
                  21: 134217760,
                  22: 134348832,
                  23: 131072,
                  24: 0,
                  25: 131104,
                  26: 134348800,
                  27: 134219808,
                  28: 134350880,
                  29: 133120,
                  30: 2080,
                  31: 134217728,
                  2147483664: 131072,
                  2147483665: 2048,
                  2147483666: 134348832,
                  2147483667: 133152,
                  2147483668: 32,
                  2147483669: 134348800,
                  2147483670: 134217728,
                  2147483671: 134219808,
                  2147483672: 134350880,
                  2147483673: 134217760,
                  2147483674: 134219776,
                  2147483675: 0,
                  2147483676: 133120,
                  2147483677: 2080,
                  2147483678: 131104,
                  2147483679: 134350848,
                },
              ],
              f = [
                4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504,
                2147483679,
              ],
              l = (o.DES = i.extend({
                _doReset: function () {
                  for (var e = this._key.words, t = [], n = 0; n < 56; n++) {
                    var r = a[n] - 1;
                    t[n] = (e[r >>> 5] >>> (31 - (r % 32))) & 1;
                  }
                  for (var i = (this._subKeys = []), o = 0; o < 16; o++) {
                    var c = (i[o] = []),
                      f = s[o];
                    for (n = 0; n < 24; n++)
                      (c[(n / 6) | 0] |=
                        t[(u[n] - 1 + f) % 28] << (31 - (n % 6))),
                        (c[4 + ((n / 6) | 0)] |=
                          t[28 + ((u[n + 24] - 1 + f) % 28)] << (31 - (n % 6)));
                    for (c[0] = (c[0] << 1) | (c[0] >>> 31), n = 1; n < 7; n++)
                      c[n] = c[n] >>> (4 * (n - 1) + 3);
                    c[7] = (c[7] << 5) | (c[7] >>> 27);
                  }
                  var l = (this._invSubKeys = []);
                  for (n = 0; n < 16; n++) l[n] = i[15 - n];
                },
                encryptBlock: function (e, t) {
                  this._doCryptBlock(e, t, this._subKeys);
                },
                decryptBlock: function (e, t) {
                  this._doCryptBlock(e, t, this._invSubKeys);
                },
                _doCryptBlock: function (e, t, n) {
                  (this._lBlock = e[t]),
                    (this._rBlock = e[t + 1]),
                    h.call(this, 4, 252645135),
                    h.call(this, 16, 65535),
                    p.call(this, 2, 858993459),
                    p.call(this, 8, 16711935),
                    h.call(this, 1, 1431655765);
                  for (var r = 0; r < 16; r++) {
                    for (
                      var i = n[r],
                        o = this._lBlock,
                        a = this._rBlock,
                        u = 0,
                        s = 0;
                      s < 8;
                      s++
                    )
                      u |= c[s][((a ^ i[s]) & f[s]) >>> 0];
                    (this._lBlock = a), (this._rBlock = o ^ u);
                  }
                  var l = this._lBlock;
                  (this._lBlock = this._rBlock),
                    (this._rBlock = l),
                    h.call(this, 1, 1431655765),
                    p.call(this, 8, 16711935),
                    p.call(this, 2, 858993459),
                    h.call(this, 16, 65535),
                    h.call(this, 4, 252645135),
                    (e[t] = this._lBlock),
                    (e[t + 1] = this._rBlock);
                },
                keySize: 2,
                ivSize: 2,
                blockSize: 2,
              }));
            function h(e, t) {
              var n = ((this._lBlock >>> e) ^ this._rBlock) & t;
              (this._rBlock ^= n), (this._lBlock ^= n << e);
            }
            function p(e, t) {
              var n = ((this._rBlock >>> e) ^ this._lBlock) & t;
              (this._lBlock ^= n), (this._rBlock ^= n << e);
            }
            t.DES = i._createHelper(l);
            var d = (o.TripleDES = i.extend({
              _doReset: function () {
                var e = this._key.words;
                if (2 !== e.length && 4 !== e.length && e.length < 6)
                  throw new Error(
                    "Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192."
                  );
                var t = e.slice(0, 2),
                  n = e.length < 4 ? e.slice(0, 2) : e.slice(2, 4),
                  i = e.length < 6 ? e.slice(0, 2) : e.slice(4, 6);
                (this._des1 = l.createEncryptor(r.create(t))),
                  (this._des2 = l.createEncryptor(r.create(n))),
                  (this._des3 = l.createEncryptor(r.create(i)));
              },
              encryptBlock: function (e, t) {
                this._des1.encryptBlock(e, t),
                  this._des2.decryptBlock(e, t),
                  this._des3.encryptBlock(e, t);
              },
              decryptBlock: function (e, t) {
                this._des3.decryptBlock(e, t),
                  this._des2.encryptBlock(e, t),
                  this._des1.decryptBlock(e, t);
              },
              keySize: 6,
              ivSize: 2,
              blockSize: 2,
            }));
            t.TripleDES = i._createHelper(d);
          })(),
          e.TripleDES))),
      oc
    );
    var e;
  })(),
  (function () {
    return (
      uc ||
        ((uc = 1),
        (yc.exports =
          ((e = vu()),
          Tu(),
          Nu(),
          ys(),
          ks(),
          (function () {
            var t = e,
              n = t.lib.StreamCipher,
              r = t.algo,
              i = (r.RC4 = n.extend({
                _doReset: function () {
                  for (
                    var e = this._key,
                      t = e.words,
                      n = e.sigBytes,
                      r = (this._S = []),
                      i = 0;
                    i < 256;
                    i++
                  )
                    r[i] = i;
                  i = 0;
                  for (var o = 0; i < 256; i++) {
                    var a = i % n,
                      u = (t[a >>> 2] >>> (24 - (a % 4) * 8)) & 255;
                    o = (o + r[i] + u) % 256;
                    var s = r[i];
                    (r[i] = r[o]), (r[o] = s);
                  }
                  this._i = this._j = 0;
                },
                _doProcessBlock: function (e, t) {
                  e[t] ^= o.call(this);
                },
                keySize: 8,
                ivSize: 0,
              }));
            function o() {
              for (
                var e = this._S, t = this._i, n = this._j, r = 0, i = 0;
                i < 4;
                i++
              ) {
                n = (n + e[(t = (t + 1) % 256)]) % 256;
                var o = e[t];
                (e[t] = e[n]),
                  (e[n] = o),
                  (r |= e[(e[t] + e[n]) % 256] << (24 - 8 * i));
              }
              return (this._i = t), (this._j = n), r;
            }
            t.RC4 = n._createHelper(i);
            var a = (r.RC4Drop = i.extend({
              cfg: i.cfg.extend({ drop: 192 }),
              _doReset: function () {
                i._doReset.call(this);
                for (var e = this.cfg.drop; e > 0; e--) o.call(this);
              },
            }));
            t.RC4Drop = n._createHelper(a);
          })(),
          e.RC4))),
      gc
    );
    var e;
  })(),
  (function () {
    return (
      sc ||
        ((sc = 1),
        (mc.exports =
          ((e = vu()),
          Tu(),
          Nu(),
          ys(),
          ks(),
          (function () {
            var t = e,
              n = t.lib.StreamCipher,
              r = t.algo,
              i = [],
              o = [],
              a = [],
              u = (r.Rabbit = n.extend({
                _doReset: function () {
                  for (
                    var e = this._key.words, t = this.cfg.iv, n = 0;
                    n < 4;
                    n++
                  )
                    e[n] =
                      (16711935 & ((e[n] << 8) | (e[n] >>> 24))) |
                      (4278255360 & ((e[n] << 24) | (e[n] >>> 8)));
                  var r = (this._X = [
                      e[0],
                      (e[3] << 16) | (e[2] >>> 16),
                      e[1],
                      (e[0] << 16) | (e[3] >>> 16),
                      e[2],
                      (e[1] << 16) | (e[0] >>> 16),
                      e[3],
                      (e[2] << 16) | (e[1] >>> 16),
                    ]),
                    i = (this._C = [
                      (e[2] << 16) | (e[2] >>> 16),
                      (4294901760 & e[0]) | (65535 & e[1]),
                      (e[3] << 16) | (e[3] >>> 16),
                      (4294901760 & e[1]) | (65535 & e[2]),
                      (e[0] << 16) | (e[0] >>> 16),
                      (4294901760 & e[2]) | (65535 & e[3]),
                      (e[1] << 16) | (e[1] >>> 16),
                      (4294901760 & e[3]) | (65535 & e[0]),
                    ]);
                  for (this._b = 0, n = 0; n < 4; n++) s.call(this);
                  for (n = 0; n < 8; n++) i[n] ^= r[(n + 4) & 7];
                  if (t) {
                    var o = t.words,
                      a = o[0],
                      u = o[1],
                      c =
                        (16711935 & ((a << 8) | (a >>> 24))) |
                        (4278255360 & ((a << 24) | (a >>> 8))),
                      f =
                        (16711935 & ((u << 8) | (u >>> 24))) |
                        (4278255360 & ((u << 24) | (u >>> 8))),
                      l = (c >>> 16) | (4294901760 & f),
                      h = (f << 16) | (65535 & c);
                    for (
                      i[0] ^= c,
                        i[1] ^= l,
                        i[2] ^= f,
                        i[3] ^= h,
                        i[4] ^= c,
                        i[5] ^= l,
                        i[6] ^= f,
                        i[7] ^= h,
                        n = 0;
                      n < 4;
                      n++
                    )
                      s.call(this);
                  }
                },
                _doProcessBlock: function (e, t) {
                  var n = this._X;
                  s.call(this),
                    (i[0] = n[0] ^ (n[5] >>> 16) ^ (n[3] << 16)),
                    (i[1] = n[2] ^ (n[7] >>> 16) ^ (n[5] << 16)),
                    (i[2] = n[4] ^ (n[1] >>> 16) ^ (n[7] << 16)),
                    (i[3] = n[6] ^ (n[3] >>> 16) ^ (n[1] << 16));
                  for (var r = 0; r < 4; r++)
                    (i[r] =
                      (16711935 & ((i[r] << 8) | (i[r] >>> 24))) |
                      (4278255360 & ((i[r] << 24) | (i[r] >>> 8)))),
                      (e[t + r] ^= i[r]);
                },
                blockSize: 4,
                ivSize: 2,
              }));
            function s() {
              for (var e = this._X, t = this._C, n = 0; n < 8; n++) o[n] = t[n];
              for (
                t[0] = (t[0] + 1295307597 + this._b) | 0,
                  t[1] =
                    (t[1] + 3545052371 + (t[0] >>> 0 < o[0] >>> 0 ? 1 : 0)) | 0,
                  t[2] =
                    (t[2] + 886263092 + (t[1] >>> 0 < o[1] >>> 0 ? 1 : 0)) | 0,
                  t[3] =
                    (t[3] + 1295307597 + (t[2] >>> 0 < o[2] >>> 0 ? 1 : 0)) | 0,
                  t[4] =
                    (t[4] + 3545052371 + (t[3] >>> 0 < o[3] >>> 0 ? 1 : 0)) | 0,
                  t[5] =
                    (t[5] + 886263092 + (t[4] >>> 0 < o[4] >>> 0 ? 1 : 0)) | 0,
                  t[6] =
                    (t[6] + 1295307597 + (t[5] >>> 0 < o[5] >>> 0 ? 1 : 0)) | 0,
                  t[7] =
                    (t[7] + 3545052371 + (t[6] >>> 0 < o[6] >>> 0 ? 1 : 0)) | 0,
                  this._b = t[7] >>> 0 < o[7] >>> 0 ? 1 : 0,
                  n = 0;
                n < 8;
                n++
              ) {
                var r = e[n] + t[n],
                  i = 65535 & r,
                  u = r >>> 16,
                  s = ((((i * i) >>> 17) + i * u) >>> 15) + u * u,
                  c = (((4294901760 & r) * r) | 0) + (((65535 & r) * r) | 0);
                a[n] = s ^ c;
              }
              (e[0] =
                (a[0] +
                  ((a[7] << 16) | (a[7] >>> 16)) +
                  ((a[6] << 16) | (a[6] >>> 16))) |
                0),
                (e[1] = (a[1] + ((a[0] << 8) | (a[0] >>> 24)) + a[7]) | 0),
                (e[2] =
                  (a[2] +
                    ((a[1] << 16) | (a[1] >>> 16)) +
                    ((a[0] << 16) | (a[0] >>> 16))) |
                  0),
                (e[3] = (a[3] + ((a[2] << 8) | (a[2] >>> 24)) + a[1]) | 0),
                (e[4] =
                  (a[4] +
                    ((a[3] << 16) | (a[3] >>> 16)) +
                    ((a[2] << 16) | (a[2] >>> 16))) |
                  0),
                (e[5] = (a[5] + ((a[4] << 8) | (a[4] >>> 24)) + a[3]) | 0),
                (e[6] =
                  (a[6] +
                    ((a[5] << 16) | (a[5] >>> 16)) +
                    ((a[4] << 16) | (a[4] >>> 16))) |
                  0),
                (e[7] = (a[7] + ((a[6] << 8) | (a[6] >>> 24)) + a[5]) | 0);
            }
            t.Rabbit = n._createHelper(u);
          })(),
          e.Rabbit))),
      _c
    );
    var e;
  })(),
  (function () {
    return (
      cc ||
        ((cc = 1),
        (kc.exports =
          ((e = vu()),
          Tu(),
          Nu(),
          ys(),
          ks(),
          (function () {
            var t = e,
              n = t.lib.StreamCipher,
              r = t.algo,
              i = [],
              o = [],
              a = [],
              u = (r.RabbitLegacy = n.extend({
                _doReset: function () {
                  var e = this._key.words,
                    t = this.cfg.iv,
                    n = (this._X = [
                      e[0],
                      (e[3] << 16) | (e[2] >>> 16),
                      e[1],
                      (e[0] << 16) | (e[3] >>> 16),
                      e[2],
                      (e[1] << 16) | (e[0] >>> 16),
                      e[3],
                      (e[2] << 16) | (e[1] >>> 16),
                    ]),
                    r = (this._C = [
                      (e[2] << 16) | (e[2] >>> 16),
                      (4294901760 & e[0]) | (65535 & e[1]),
                      (e[3] << 16) | (e[3] >>> 16),
                      (4294901760 & e[1]) | (65535 & e[2]),
                      (e[0] << 16) | (e[0] >>> 16),
                      (4294901760 & e[2]) | (65535 & e[3]),
                      (e[1] << 16) | (e[1] >>> 16),
                      (4294901760 & e[3]) | (65535 & e[0]),
                    ]);
                  this._b = 0;
                  for (var i = 0; i < 4; i++) s.call(this);
                  for (i = 0; i < 8; i++) r[i] ^= n[(i + 4) & 7];
                  if (t) {
                    var o = t.words,
                      a = o[0],
                      u = o[1],
                      c =
                        (16711935 & ((a << 8) | (a >>> 24))) |
                        (4278255360 & ((a << 24) | (a >>> 8))),
                      f =
                        (16711935 & ((u << 8) | (u >>> 24))) |
                        (4278255360 & ((u << 24) | (u >>> 8))),
                      l = (c >>> 16) | (4294901760 & f),
                      h = (f << 16) | (65535 & c);
                    for (
                      r[0] ^= c,
                        r[1] ^= l,
                        r[2] ^= f,
                        r[3] ^= h,
                        r[4] ^= c,
                        r[5] ^= l,
                        r[6] ^= f,
                        r[7] ^= h,
                        i = 0;
                      i < 4;
                      i++
                    )
                      s.call(this);
                  }
                },
                _doProcessBlock: function (e, t) {
                  var n = this._X;
                  s.call(this),
                    (i[0] = n[0] ^ (n[5] >>> 16) ^ (n[3] << 16)),
                    (i[1] = n[2] ^ (n[7] >>> 16) ^ (n[5] << 16)),
                    (i[2] = n[4] ^ (n[1] >>> 16) ^ (n[7] << 16)),
                    (i[3] = n[6] ^ (n[3] >>> 16) ^ (n[1] << 16));
                  for (var r = 0; r < 4; r++)
                    (i[r] =
                      (16711935 & ((i[r] << 8) | (i[r] >>> 24))) |
                      (4278255360 & ((i[r] << 24) | (i[r] >>> 8)))),
                      (e[t + r] ^= i[r]);
                },
                blockSize: 4,
                ivSize: 2,
              }));
            function s() {
              for (var e = this._X, t = this._C, n = 0; n < 8; n++) o[n] = t[n];
              for (
                t[0] = (t[0] + 1295307597 + this._b) | 0,
                  t[1] =
                    (t[1] + 3545052371 + (t[0] >>> 0 < o[0] >>> 0 ? 1 : 0)) | 0,
                  t[2] =
                    (t[2] + 886263092 + (t[1] >>> 0 < o[1] >>> 0 ? 1 : 0)) | 0,
                  t[3] =
                    (t[3] + 1295307597 + (t[2] >>> 0 < o[2] >>> 0 ? 1 : 0)) | 0,
                  t[4] =
                    (t[4] + 3545052371 + (t[3] >>> 0 < o[3] >>> 0 ? 1 : 0)) | 0,
                  t[5] =
                    (t[5] + 886263092 + (t[4] >>> 0 < o[4] >>> 0 ? 1 : 0)) | 0,
                  t[6] =
                    (t[6] + 1295307597 + (t[5] >>> 0 < o[5] >>> 0 ? 1 : 0)) | 0,
                  t[7] =
                    (t[7] + 3545052371 + (t[6] >>> 0 < o[6] >>> 0 ? 1 : 0)) | 0,
                  this._b = t[7] >>> 0 < o[7] >>> 0 ? 1 : 0,
                  n = 0;
                n < 8;
                n++
              ) {
                var r = e[n] + t[n],
                  i = 65535 & r,
                  u = r >>> 16,
                  s = ((((i * i) >>> 17) + i * u) >>> 15) + u * u,
                  c = (((4294901760 & r) * r) | 0) + (((65535 & r) * r) | 0);
                a[n] = s ^ c;
              }
              (e[0] =
                (a[0] +
                  ((a[7] << 16) | (a[7] >>> 16)) +
                  ((a[6] << 16) | (a[6] >>> 16))) |
                0),
                (e[1] = (a[1] + ((a[0] << 8) | (a[0] >>> 24)) + a[7]) | 0),
                (e[2] =
                  (a[2] +
                    ((a[1] << 16) | (a[1] >>> 16)) +
                    ((a[0] << 16) | (a[0] >>> 16))) |
                  0),
                (e[3] = (a[3] + ((a[2] << 8) | (a[2] >>> 24)) + a[1]) | 0),
                (e[4] =
                  (a[4] +
                    ((a[3] << 16) | (a[3] >>> 16)) +
                    ((a[2] << 16) | (a[2] >>> 16))) |
                  0),
                (e[5] = (a[5] + ((a[4] << 8) | (a[4] >>> 24)) + a[3]) | 0),
                (e[6] =
                  (a[6] +
                    ((a[5] << 16) | (a[5] >>> 16)) +
                    ((a[4] << 16) | (a[4] >>> 16))) |
                  0),
                (e[7] = (a[7] + ((a[6] << 8) | (a[6] >>> 24)) + a[5]) | 0);
            }
            t.RabbitLegacy = n._createHelper(u);
          })(),
          e.RabbitLegacy))),
      wc
    );
    var e;
  })()
);
var bc,
  xc,
  Sc = fu,
  Ac = {};
(bc = {
  get exports() {
    return Ac;
  },
  set exports(e) {
    Ac = e;
  },
}),
  (xc = Ac),
  function () {
    var e,
      t = "Expected a function",
      n = "__lodash_hash_undefined__",
      r = "__lodash_placeholder__",
      i = 32,
      o = 128,
      a = 1 / 0,
      u = 9007199254740991,
      s = NaN,
      c = 4294967295,
      l = [
        ["ary", o],
        ["bind", 1],
        ["bindKey", 2],
        ["curry", 8],
        ["curryRight", 16],
        ["flip", 512],
        ["partial", i],
        ["partialRight", 64],
        ["rearg", 256],
      ],
      h = "[object Arguments]",
      p = "[object Array]",
      d = "[object Boolean]",
      v = "[object Date]",
      g = "[object Error]",
      y = "[object Function]",
      _ = "[object GeneratorFunction]",
      m = "[object Map]",
      w = "[object Number]",
      k = "[object Object]",
      b = "[object Promise]",
      x = "[object RegExp]",
      S = "[object Set]",
      A = "[object String]",
      I = "[object Symbol]",
      O = "[object WeakMap]",
      P = "[object ArrayBuffer]",
      T = "[object DataView]",
      E = "[object Float32Array]",
      C = "[object Float64Array]",
      R = "[object Int8Array]",
      L = "[object Int16Array]",
      D = "[object Int32Array]",
      B = "[object Uint8Array]",
      N = "[object Uint8ClampedArray]",
      U = "[object Uint16Array]",
      j = "[object Uint32Array]",
      M = /\b__p \+= '';/g,
      $ = /\b(__p \+=) '' \+/g,
      F = /(__e\(.*?\)|\b__t\)) \+\n'';/g,
      H = /&(?:amp|lt|gt|quot|#39);/g,
      q = /[&<>"']/g,
      z = RegExp(H.source),
      W = RegExp(q.source),
      V = /<%-([\s\S]+?)%>/g,
      K = /<%([\s\S]+?)%>/g,
      J = /<%=([\s\S]+?)%>/g,
      G = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
      Y = /^\w*$/,
      X =
        /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
      Q = /[\\^$.*+?()[\]{}|]/g,
      Z = RegExp(Q.source),
      ee = /^\s+/,
      te = /\s/,
      ne = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
      re = /\{\n\/\* \[wrapped with (.+)\] \*/,
      ie = /,? & /,
      oe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,
      ae = /[()=,{}\[\]\/\s]/,
      ue = /\\(\\)?/g,
      se = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,
      ce = /\w*$/,
      fe = /^[-+]0x[0-9a-f]+$/i,
      le = /^0b[01]+$/i,
      he = /^\[object .+?Constructor\]$/,
      pe = /^0o[0-7]+$/i,
      de = /^(?:0|[1-9]\d*)$/,
      ve = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
      ge = /($^)/,
      ye = /['\n\r\u2028\u2029\\]/g,
      _e = "\\ud800-\\udfff",
      me = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",
      we = "\\u2700-\\u27bf",
      ke = "a-z\\xdf-\\xf6\\xf8-\\xff",
      be = "A-Z\\xc0-\\xd6\\xd8-\\xde",
      xe = "\\ufe0e\\ufe0f",
      Se =
        "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",
      Ae = "[" + _e + "]",
      Ie = "[" + Se + "]",
      Oe = "[" + me + "]",
      Pe = "\\d+",
      Te = "[" + we + "]",
      Ee = "[" + ke + "]",
      Ce = "[^" + _e + Se + Pe + we + ke + be + "]",
      Re = "\\ud83c[\\udffb-\\udfff]",
      Le = "[^" + _e + "]",
      De = "(?:\\ud83c[\\udde6-\\uddff]){2}",
      Be = "[\\ud800-\\udbff][\\udc00-\\udfff]",
      Ne = "[" + be + "]",
      Ue = "(?:" + Ee + "|" + Ce + ")",
      je = "(?:" + Ne + "|" + Ce + ")",
      Me = "(?:['’](?:d|ll|m|re|s|t|ve))?",
      $e = "(?:['’](?:D|LL|M|RE|S|T|VE))?",
      Fe = "(?:" + Oe + "|" + Re + ")?",
      He = "[" + xe + "]?",
      qe =
        He +
        Fe +
        "(?:\\u200d(?:" +
        [Le, De, Be].join("|") +
        ")" +
        He +
        Fe +
        ")*",
      ze = "(?:" + [Te, De, Be].join("|") + ")" + qe,
      We = "(?:" + [Le + Oe + "?", Oe, De, Be, Ae].join("|") + ")",
      Ve = RegExp("['’]", "g"),
      Ke = RegExp(Oe, "g"),
      Je = RegExp(Re + "(?=" + Re + ")|" + We + qe, "g"),
      Ge = RegExp(
        [
          Ne + "?" + Ee + "+" + Me + "(?=" + [Ie, Ne, "$"].join("|") + ")",
          je + "+" + $e + "(?=" + [Ie, Ne + Ue, "$"].join("|") + ")",
          Ne + "?" + Ue + "+" + Me,
          Ne + "+" + $e,
          "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",
          "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",
          Pe,
          ze,
        ].join("|"),
        "g"
      ),
      Ye = RegExp("[\\u200d" + _e + me + xe + "]"),
      Xe = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
      Qe = [
        "Array",
        "Buffer",
        "DataView",
        "Date",
        "Error",
        "Float32Array",
        "Float64Array",
        "Function",
        "Int8Array",
        "Int16Array",
        "Int32Array",
        "Map",
        "Math",
        "Object",
        "Promise",
        "RegExp",
        "Set",
        "String",
        "Symbol",
        "TypeError",
        "Uint8Array",
        "Uint8ClampedArray",
        "Uint16Array",
        "Uint32Array",
        "WeakMap",
        "_",
        "clearTimeout",
        "isFinite",
        "parseInt",
        "setTimeout",
      ],
      Ze = -1,
      et = {};
    (et[E] =
      et[C] =
      et[R] =
      et[L] =
      et[D] =
      et[B] =
      et[N] =
      et[U] =
      et[j] =
        !0),
      (et[h] =
        et[p] =
        et[P] =
        et[d] =
        et[T] =
        et[v] =
        et[g] =
        et[y] =
        et[m] =
        et[w] =
        et[k] =
        et[x] =
        et[S] =
        et[A] =
        et[O] =
          !1);
    var tt = {};
    (tt[h] =
      tt[p] =
      tt[P] =
      tt[T] =
      tt[d] =
      tt[v] =
      tt[E] =
      tt[C] =
      tt[R] =
      tt[L] =
      tt[D] =
      tt[m] =
      tt[w] =
      tt[k] =
      tt[x] =
      tt[S] =
      tt[A] =
      tt[I] =
      tt[B] =
      tt[N] =
      tt[U] =
      tt[j] =
        !0),
      (tt[g] = tt[y] = tt[O] = !1);
    var nt = {
        "\\": "\\",
        "'": "'",
        "\n": "n",
        "\r": "r",
        "\u2028": "u2028",
        "\u2029": "u2029",
      },
      rt = parseFloat,
      it = parseInt,
      ot = "object" == f(su) && su && su.Object === Object && su,
      at =
        "object" == ("undefined" == typeof self ? "undefined" : f(self)) &&
        self &&
        self.Object === Object &&
        self,
      ut = ot || at || Function("return this")(),
      st = xc && !xc.nodeType && xc,
      ct = st && bc && !bc.nodeType && bc,
      ft = ct && ct.exports === st,
      lt = ft && ot.process,
      ht = (function () {
        try {
          return (
            (ct && ct.require && ct.require("util").types) ||
            (lt && lt.binding && lt.binding("util"))
          );
        } catch (e) {}
      })(),
      pt = ht && ht.isArrayBuffer,
      dt = ht && ht.isDate,
      vt = ht && ht.isMap,
      gt = ht && ht.isRegExp,
      yt = ht && ht.isSet,
      _t = ht && ht.isTypedArray;
    function mt(e, t, n) {
      switch (n.length) {
        case 0:
          return e.call(t);
        case 1:
          return e.call(t, n[0]);
        case 2:
          return e.call(t, n[0], n[1]);
        case 3:
          return e.call(t, n[0], n[1], n[2]);
      }
      return e.apply(t, n);
    }
    function wt(e, t, n, r) {
      for (var i = -1, o = null == e ? 0 : e.length; ++i < o; ) {
        var a = e[i];
        t(r, a, n(a), e);
      }
      return r;
    }
    function kt(e, t) {
      for (
        var n = -1, r = null == e ? 0 : e.length;
        ++n < r && !1 !== t(e[n], n, e);

      );
      return e;
    }
    function bt(e, t) {
      for (var n = null == e ? 0 : e.length; n-- && !1 !== t(e[n], n, e); );
      return e;
    }
    function xt(e, t) {
      for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
        if (!t(e[n], n, e)) return !1;
      return !0;
    }
    function St(e, t) {
      for (var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; ++n < r; ) {
        var a = e[n];
        t(a, n, e) && (o[i++] = a);
      }
      return o;
    }
    function At(e, t) {
      return !(null == e || !e.length) && Bt(e, t, 0) > -1;
    }
    function It(e, t, n) {
      for (var r = -1, i = null == e ? 0 : e.length; ++r < i; )
        if (n(t, e[r])) return !0;
      return !1;
    }
    function Ot(e, t) {
      for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; )
        i[n] = t(e[n], n, e);
      return i;
    }
    function Pt(e, t) {
      for (var n = -1, r = t.length, i = e.length; ++n < r; ) e[i + n] = t[n];
      return e;
    }
    function Tt(e, t, n, r) {
      var i = -1,
        o = null == e ? 0 : e.length;
      for (r && o && (n = e[++i]); ++i < o; ) n = t(n, e[i], i, e);
      return n;
    }
    function Et(e, t, n, r) {
      var i = null == e ? 0 : e.length;
      for (r && i && (n = e[--i]); i--; ) n = t(n, e[i], i, e);
      return n;
    }
    function Ct(e, t) {
      for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
        if (t(e[n], n, e)) return !0;
      return !1;
    }
    var Rt = Mt("length");
    function Lt(e, t, n) {
      var r;
      return (
        n(e, function (e, n, i) {
          if (t(e, n, i)) return (r = n), !1;
        }),
        r
      );
    }
    function Dt(e, t, n, r) {
      for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; )
        if (t(e[o], o, e)) return o;
      return -1;
    }
    function Bt(e, t, n) {
      return t == t
        ? (function (e, t, n) {
            for (var r = n - 1, i = e.length; ++r < i; )
              if (e[r] === t) return r;
            return -1;
          })(e, t, n)
        : Dt(e, Ut, n);
    }
    function Nt(e, t, n, r) {
      for (var i = n - 1, o = e.length; ++i < o; ) if (r(e[i], t)) return i;
      return -1;
    }
    function Ut(e) {
      return e != e;
    }
    function jt(e, t) {
      var n = null == e ? 0 : e.length;
      return n ? Ht(e, t) / n : s;
    }
    function Mt(t) {
      return function (n) {
        return null == n ? e : n[t];
      };
    }
    function $t(t) {
      return function (n) {
        return null == t ? e : t[n];
      };
    }
    function Ft(e, t, n, r, i) {
      return (
        i(e, function (e, i, o) {
          n = r ? ((r = !1), e) : t(n, e, i, o);
        }),
        n
      );
    }
    function Ht(t, n) {
      for (var r, i = -1, o = t.length; ++i < o; ) {
        var a = n(t[i]);
        a !== e && (r = r === e ? a : r + a);
      }
      return r;
    }
    function qt(e, t) {
      for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
      return r;
    }
    function zt(e) {
      return e ? e.slice(0, un(e) + 1).replace(ee, "") : e;
    }
    function Wt(e) {
      return function (t) {
        return e(t);
      };
    }
    function Vt(e, t) {
      return Ot(t, function (t) {
        return e[t];
      });
    }
    function Kt(e, t) {
      return e.has(t);
    }
    function Jt(e, t) {
      for (var n = -1, r = e.length; ++n < r && Bt(t, e[n], 0) > -1; );
      return n;
    }
    function Gt(e, t) {
      for (var n = e.length; n-- && Bt(t, e[n], 0) > -1; );
      return n;
    }
    var Yt = $t({
        À: "A",
        Á: "A",
        Â: "A",
        Ã: "A",
        Ä: "A",
        Å: "A",
        à: "a",
        á: "a",
        â: "a",
        ã: "a",
        ä: "a",
        å: "a",
        Ç: "C",
        ç: "c",
        Ð: "D",
        ð: "d",
        È: "E",
        É: "E",
        Ê: "E",
        Ë: "E",
        è: "e",
        é: "e",
        ê: "e",
        ë: "e",
        Ì: "I",
        Í: "I",
        Î: "I",
        Ï: "I",
        ì: "i",
        í: "i",
        î: "i",
        ï: "i",
        Ñ: "N",
        ñ: "n",
        Ò: "O",
        Ó: "O",
        Ô: "O",
        Õ: "O",
        Ö: "O",
        Ø: "O",
        ò: "o",
        ó: "o",
        ô: "o",
        õ: "o",
        ö: "o",
        ø: "o",
        Ù: "U",
        Ú: "U",
        Û: "U",
        Ü: "U",
        ù: "u",
        ú: "u",
        û: "u",
        ü: "u",
        Ý: "Y",
        ý: "y",
        ÿ: "y",
        Æ: "Ae",
        æ: "ae",
        Þ: "Th",
        þ: "th",
        ß: "ss",
        Ā: "A",
        Ă: "A",
        Ą: "A",
        ā: "a",
        ă: "a",
        ą: "a",
        Ć: "C",
        Ĉ: "C",
        Ċ: "C",
        Č: "C",
        ć: "c",
        ĉ: "c",
        ċ: "c",
        č: "c",
        Ď: "D",
        Đ: "D",
        ď: "d",
        đ: "d",
        Ē: "E",
        Ĕ: "E",
        Ė: "E",
        Ę: "E",
        Ě: "E",
        ē: "e",
        ĕ: "e",
        ė: "e",
        ę: "e",
        ě: "e",
        Ĝ: "G",
        Ğ: "G",
        Ġ: "G",
        Ģ: "G",
        ĝ: "g",
        ğ: "g",
        ġ: "g",
        ģ: "g",
        Ĥ: "H",
        Ħ: "H",
        ĥ: "h",
        ħ: "h",
        Ĩ: "I",
        Ī: "I",
        Ĭ: "I",
        Į: "I",
        İ: "I",
        ĩ: "i",
        ī: "i",
        ĭ: "i",
        į: "i",
        ı: "i",
        Ĵ: "J",
        ĵ: "j",
        Ķ: "K",
        ķ: "k",
        ĸ: "k",
        Ĺ: "L",
        Ļ: "L",
        Ľ: "L",
        Ŀ: "L",
        Ł: "L",
        ĺ: "l",
        ļ: "l",
        ľ: "l",
        ŀ: "l",
        ł: "l",
        Ń: "N",
        Ņ: "N",
        Ň: "N",
        Ŋ: "N",
        ń: "n",
        ņ: "n",
        ň: "n",
        ŋ: "n",
        Ō: "O",
        Ŏ: "O",
        Ő: "O",
        ō: "o",
        ŏ: "o",
        ő: "o",
        Ŕ: "R",
        Ŗ: "R",
        Ř: "R",
        ŕ: "r",
        ŗ: "r",
        ř: "r",
        Ś: "S",
        Ŝ: "S",
        Ş: "S",
        Š: "S",
        ś: "s",
        ŝ: "s",
        ş: "s",
        š: "s",
        Ţ: "T",
        Ť: "T",
        Ŧ: "T",
        ţ: "t",
        ť: "t",
        ŧ: "t",
        Ũ: "U",
        Ū: "U",
        Ŭ: "U",
        Ů: "U",
        Ű: "U",
        Ų: "U",
        ũ: "u",
        ū: "u",
        ŭ: "u",
        ů: "u",
        ű: "u",
        ų: "u",
        Ŵ: "W",
        ŵ: "w",
        Ŷ: "Y",
        ŷ: "y",
        Ÿ: "Y",
        Ź: "Z",
        Ż: "Z",
        Ž: "Z",
        ź: "z",
        ż: "z",
        ž: "z",
        IJ: "IJ",
        ij: "ij",
        Œ: "Oe",
        œ: "oe",
        ʼn: "'n",
        ſ: "s",
      }),
      Xt = $t({
        "&": "&amp;",
        "<": "&lt;",
        ">": "&gt;",
        '"': "&quot;",
        "'": "&#39;",
      });
    function Qt(e) {
      return "\\" + nt[e];
    }
    function Zt(e) {
      return Ye.test(e);
    }
    function en(e) {
      var t = -1,
        n = Array(e.size);
      return (
        e.forEach(function (e, r) {
          n[++t] = [r, e];
        }),
        n
      );
    }
    function tn(e, t) {
      return function (n) {
        return e(t(n));
      };
    }
    function nn(e, t) {
      for (var n = -1, i = e.length, o = 0, a = []; ++n < i; ) {
        var u = e[n];
        (u !== t && u !== r) || ((e[n] = r), (a[o++] = n));
      }
      return a;
    }
    function rn(e) {
      var t = -1,
        n = Array(e.size);
      return (
        e.forEach(function (e) {
          n[++t] = e;
        }),
        n
      );
    }
    function on(e) {
      return Zt(e)
        ? (function (e) {
            for (var t = (Je.lastIndex = 0); Je.test(e); ) ++t;
            return t;
          })(e)
        : Rt(e);
    }
    function an(e) {
      return Zt(e)
        ? (function (e) {
            return e.match(Je) || [];
          })(e)
        : (function (e) {
            return e.split("");
          })(e);
    }
    function un(e) {
      for (var t = e.length; t-- && te.test(e.charAt(t)); );
      return t;
    }
    var sn = $t({
        "&amp;": "&",
        "&lt;": "<",
        "&gt;": ">",
        "&quot;": '"',
        "&#39;": "'",
      }),
      cn = (function te(_e) {
        var me,
          we = (_e =
            null == _e ? ut : cn.defaults(ut.Object(), _e, cn.pick(ut, Qe)))
            .Array,
          ke = _e.Date,
          be = _e.Error,
          xe = _e.Function,
          Se = _e.Math,
          Ae = _e.Object,
          Ie = _e.RegExp,
          Oe = _e.String,
          Pe = _e.TypeError,
          Te = we.prototype,
          Ee = xe.prototype,
          Ce = Ae.prototype,
          Re = _e["__core-js_shared__"],
          Le = Ee.toString,
          De = Ce.hasOwnProperty,
          Be = 0,
          Ne = (me = /[^.]+$/.exec((Re && Re.keys && Re.keys.IE_PROTO) || ""))
            ? "Symbol(src)_1." + me
            : "",
          Ue = Ce.toString,
          je = Le.call(Ae),
          Me = ut._,
          $e = Ie(
            "^" +
              Le.call(De)
                .replace(Q, "\\$&")
                .replace(
                  /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
                  "$1.*?"
                ) +
              "$"
          ),
          Fe = ft ? _e.Buffer : e,
          He = _e.Symbol,
          qe = _e.Uint8Array,
          ze = Fe ? Fe.allocUnsafe : e,
          We = tn(Ae.getPrototypeOf, Ae),
          Je = Ae.create,
          Ye = Ce.propertyIsEnumerable,
          nt = Te.splice,
          ot = He ? He.isConcatSpreadable : e,
          at = He ? He.iterator : e,
          st = He ? He.toStringTag : e,
          ct = (function () {
            try {
              var e = so(Ae, "defineProperty");
              return e({}, "", {}), e;
            } catch (e) {}
          })(),
          lt = _e.clearTimeout !== ut.clearTimeout && _e.clearTimeout,
          ht = ke && ke.now !== ut.Date.now && ke.now,
          Rt = _e.setTimeout !== ut.setTimeout && _e.setTimeout,
          $t = Se.ceil,
          fn = Se.floor,
          ln = Ae.getOwnPropertySymbols,
          hn = Fe ? Fe.isBuffer : e,
          pn = _e.isFinite,
          dn = Te.join,
          vn = tn(Ae.keys, Ae),
          gn = Se.max,
          yn = Se.min,
          _n = ke.now,
          mn = _e.parseInt,
          wn = Se.random,
          kn = Te.reverse,
          bn = so(_e, "DataView"),
          xn = so(_e, "Map"),
          Sn = so(_e, "Promise"),
          An = so(_e, "Set"),
          In = so(_e, "WeakMap"),
          On = so(Ae, "create"),
          Pn = In && new In(),
          Tn = {},
          En = Uo(bn),
          Cn = Uo(xn),
          Rn = Uo(Sn),
          Ln = Uo(An),
          Dn = Uo(In),
          Bn = He ? He.prototype : e,
          Nn = Bn ? Bn.valueOf : e,
          Un = Bn ? Bn.toString : e;
        function jn(e) {
          if (eu(e) && !qa(e) && !(e instanceof Hn)) {
            if (e instanceof Fn) return e;
            if (De.call(e, "__wrapped__")) return jo(e);
          }
          return new Fn(e);
        }
        var Mn = (function () {
          function t() {}
          return function (n) {
            if (!Za(n)) return {};
            if (Je) return Je(n);
            t.prototype = n;
            var r = new t();
            return (t.prototype = e), r;
          };
        })();
        function $n() {}
        function Fn(t, n) {
          (this.__wrapped__ = t),
            (this.__actions__ = []),
            (this.__chain__ = !!n),
            (this.__index__ = 0),
            (this.__values__ = e);
        }
        function Hn(e) {
          (this.__wrapped__ = e),
            (this.__actions__ = []),
            (this.__dir__ = 1),
            (this.__filtered__ = !1),
            (this.__iteratees__ = []),
            (this.__takeCount__ = c),
            (this.__views__ = []);
        }
        function qn(e) {
          var t = -1,
            n = null == e ? 0 : e.length;
          for (this.clear(); ++t < n; ) {
            var r = e[t];
            this.set(r[0], r[1]);
          }
        }
        function zn(e) {
          var t = -1,
            n = null == e ? 0 : e.length;
          for (this.clear(); ++t < n; ) {
            var r = e[t];
            this.set(r[0], r[1]);
          }
        }
        function Wn(e) {
          var t = -1,
            n = null == e ? 0 : e.length;
          for (this.clear(); ++t < n; ) {
            var r = e[t];
            this.set(r[0], r[1]);
          }
        }
        function Vn(e) {
          var t = -1,
            n = null == e ? 0 : e.length;
          for (this.__data__ = new Wn(); ++t < n; ) this.add(e[t]);
        }
        function Kn(e) {
          var t = (this.__data__ = new zn(e));
          this.size = t.size;
        }
        function Jn(e, t) {
          var n = qa(e),
            r = !n && Ha(e),
            i = !n && !r && Ka(e),
            o = !n && !r && !i && su(e),
            a = n || r || i || o,
            u = a ? qt(e.length, Oe) : [],
            s = u.length;
          for (var c in e)
            (!t && !De.call(e, c)) ||
              (a &&
                ("length" == c ||
                  (i && ("offset" == c || "parent" == c)) ||
                  (o &&
                    ("buffer" == c ||
                      "byteLength" == c ||
                      "byteOffset" == c)) ||
                  go(c, s))) ||
              u.push(c);
          return u;
        }
        function Gn(t) {
          var n = t.length;
          return n ? t[Wr(0, n - 1)] : e;
        }
        function Yn(e, t) {
          return Ro(Ii(e), or(t, 0, e.length));
        }
        function Xn(e) {
          return Ro(Ii(e));
        }
        function Qn(t, n, r) {
          ((r !== e && !Ma(t[n], r)) || (r === e && !(n in t))) && rr(t, n, r);
        }
        function Zn(t, n, r) {
          var i = t[n];
          (De.call(t, n) && Ma(i, r) && (r !== e || n in t)) || rr(t, n, r);
        }
        function er(e, t) {
          for (var n = e.length; n--; ) if (Ma(e[n][0], t)) return n;
          return -1;
        }
        function tr(e, t, n, r) {
          return (
            fr(e, function (e, i, o) {
              t(r, e, n(e), o);
            }),
            r
          );
        }
        function nr(e, t) {
          return e && Oi(t, Eu(t), e);
        }
        function rr(e, t, n) {
          "__proto__" == t && ct
            ? ct(e, t, {
                configurable: !0,
                enumerable: !0,
                value: n,
                writable: !0,
              })
            : (e[t] = n);
        }
        function ir(t, n) {
          for (var r = -1, i = n.length, o = we(i), a = null == t; ++r < i; )
            o[r] = a ? e : Au(t, n[r]);
          return o;
        }
        function or(t, n, r) {
          return (
            t == t &&
              (r !== e && (t = t <= r ? t : r),
              n !== e && (t = t >= n ? t : n)),
            t
          );
        }
        function ar(t, n, r, i, o, a) {
          var u,
            s = 1 & n,
            c = 2 & n,
            f = 4 & n;
          if ((r && (u = o ? r(t, i, o, a) : r(t)), u !== e)) return u;
          if (!Za(t)) return t;
          var l = qa(t);
          if (l) {
            if (
              ((u = (function (e) {
                var t = e.length,
                  n = new e.constructor(t);
                return (
                  t &&
                    "string" == typeof e[0] &&
                    De.call(e, "index") &&
                    ((n.index = e.index), (n.input = e.input)),
                  n
                );
              })(t)),
              !s)
            )
              return Ii(t, u);
          } else {
            var p = lo(t),
              g = p == y || p == _;
            if (Ka(t)) return wi(t, s);
            if (p == k || p == h || (g && !o)) {
              if (((u = c || g ? {} : po(t)), !s))
                return c
                  ? (function (e, t) {
                      return Oi(e, fo(e), t);
                    })(
                      t,
                      (function (e, t) {
                        return e && Oi(t, Cu(t), e);
                      })(u, t)
                    )
                  : (function (e, t) {
                      return Oi(e, co(e), t);
                    })(t, nr(u, t));
            } else {
              if (!tt[p]) return o ? t : {};
              u = (function (e, t, n) {
                var r,
                  i = e.constructor;
                switch (t) {
                  case P:
                    return ki(e);
                  case d:
                  case v:
                    return new i(+e);
                  case T:
                    return (function (e, t) {
                      var n = t ? ki(e.buffer) : e.buffer;
                      return new e.constructor(n, e.byteOffset, e.byteLength);
                    })(e, n);
                  case E:
                  case C:
                  case R:
                  case L:
                  case D:
                  case B:
                  case N:
                  case U:
                  case j:
                    return bi(e, n);
                  case m:
                    return new i();
                  case w:
                  case A:
                    return new i(e);
                  case x:
                    return (function (e) {
                      var t = new e.constructor(e.source, ce.exec(e));
                      return (t.lastIndex = e.lastIndex), t;
                    })(e);
                  case S:
                    return new i();
                  case I:
                    return (r = e), Nn ? Ae(Nn.call(r)) : {};
                }
              })(t, p, s);
            }
          }
          a || (a = new Kn());
          var b = a.get(t);
          if (b) return b;
          a.set(t, u),
            ou(t)
              ? t.forEach(function (e) {
                  u.add(ar(e, n, r, e, t, a));
                })
              : tu(t) &&
                t.forEach(function (e, i) {
                  u.set(i, ar(e, n, r, i, t, a));
                });
          var O = l ? e : (f ? (c ? to : eo) : c ? Cu : Eu)(t);
          return (
            kt(O || t, function (e, i) {
              O && (e = t[(i = e)]), Zn(u, i, ar(e, n, r, i, t, a));
            }),
            u
          );
        }
        function ur(t, n, r) {
          var i = r.length;
          if (null == t) return !i;
          for (t = Ae(t); i--; ) {
            var o = r[i],
              a = n[o],
              u = t[o];
            if ((u === e && !(o in t)) || !a(u)) return !1;
          }
          return !0;
        }
        function sr(n, r, i) {
          if ("function" != typeof n) throw new Pe(t);
          return Po(function () {
            n.apply(e, i);
          }, r);
        }
        function cr(e, t, n, r) {
          var i = -1,
            o = At,
            a = !0,
            u = e.length,
            s = [],
            c = t.length;
          if (!u) return s;
          n && (t = Ot(t, Wt(n))),
            r
              ? ((o = It), (a = !1))
              : t.length >= 200 && ((o = Kt), (a = !1), (t = new Vn(t)));
          e: for (; ++i < u; ) {
            var f = e[i],
              l = null == n ? f : n(f);
            if (((f = r || 0 !== f ? f : 0), a && l == l)) {
              for (var h = c; h--; ) if (t[h] === l) continue e;
              s.push(f);
            } else o(t, l, r) || s.push(f);
          }
          return s;
        }
        (jn.templateSettings = {
          escape: V,
          evaluate: K,
          interpolate: J,
          variable: "",
          imports: { _: jn },
        }),
          (jn.prototype = $n.prototype),
          (jn.prototype.constructor = jn),
          (Fn.prototype = Mn($n.prototype)),
          (Fn.prototype.constructor = Fn),
          (Hn.prototype = Mn($n.prototype)),
          (Hn.prototype.constructor = Hn),
          (qn.prototype.clear = function () {
            (this.__data__ = On ? On(null) : {}), (this.size = 0);
          }),
          (qn.prototype.delete = function (e) {
            var t = this.has(e) && delete this.__data__[e];
            return (this.size -= t ? 1 : 0), t;
          }),
          (qn.prototype.get = function (t) {
            var r = this.__data__;
            if (On) {
              var i = r[t];
              return i === n ? e : i;
            }
            return De.call(r, t) ? r[t] : e;
          }),
          (qn.prototype.has = function (t) {
            var n = this.__data__;
            return On ? n[t] !== e : De.call(n, t);
          }),
          (qn.prototype.set = function (t, r) {
            var i = this.__data__;
            return (
              (this.size += this.has(t) ? 0 : 1),
              (i[t] = On && r === e ? n : r),
              this
            );
          }),
          (zn.prototype.clear = function () {
            (this.__data__ = []), (this.size = 0);
          }),
          (zn.prototype.delete = function (e) {
            var t = this.__data__,
              n = er(t, e);
            return !(
              n < 0 ||
              (n == t.length - 1 ? t.pop() : nt.call(t, n, 1), --this.size, 0)
            );
          }),
          (zn.prototype.get = function (t) {
            var n = this.__data__,
              r = er(n, t);
            return r < 0 ? e : n[r][1];
          }),
          (zn.prototype.has = function (e) {
            return er(this.__data__, e) > -1;
          }),
          (zn.prototype.set = function (e, t) {
            var n = this.__data__,
              r = er(n, e);
            return r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this;
          }),
          (Wn.prototype.clear = function () {
            (this.size = 0),
              (this.__data__ = {
                hash: new qn(),
                map: new (xn || zn)(),
                string: new qn(),
              });
          }),
          (Wn.prototype.delete = function (e) {
            var t = ao(this, e).delete(e);
            return (this.size -= t ? 1 : 0), t;
          }),
          (Wn.prototype.get = function (e) {
            return ao(this, e).get(e);
          }),
          (Wn.prototype.has = function (e) {
            return ao(this, e).has(e);
          }),
          (Wn.prototype.set = function (e, t) {
            var n = ao(this, e),
              r = n.size;
            return n.set(e, t), (this.size += n.size == r ? 0 : 1), this;
          }),
          (Vn.prototype.add = Vn.prototype.push =
            function (e) {
              return this.__data__.set(e, n), this;
            }),
          (Vn.prototype.has = function (e) {
            return this.__data__.has(e);
          }),
          (Kn.prototype.clear = function () {
            (this.__data__ = new zn()), (this.size = 0);
          }),
          (Kn.prototype.delete = function (e) {
            var t = this.__data__,
              n = t.delete(e);
            return (this.size = t.size), n;
          }),
          (Kn.prototype.get = function (e) {
            return this.__data__.get(e);
          }),
          (Kn.prototype.has = function (e) {
            return this.__data__.has(e);
          }),
          (Kn.prototype.set = function (e, t) {
            var n = this.__data__;
            if (n instanceof zn) {
              var r = n.__data__;
              if (!xn || r.length < 199)
                return r.push([e, t]), (this.size = ++n.size), this;
              n = this.__data__ = new Wn(r);
            }
            return n.set(e, t), (this.size = n.size), this;
          });
        var fr = Ei(_r),
          lr = Ei(mr, !0);
        function hr(e, t) {
          var n = !0;
          return (
            fr(e, function (e, r, i) {
              return (n = !!t(e, r, i));
            }),
            n
          );
        }
        function pr(t, n, r) {
          for (var i = -1, o = t.length; ++i < o; ) {
            var a = t[i],
              u = n(a);
            if (null != u && (s === e ? u == u && !uu(u) : r(u, s)))
              var s = u,
                c = a;
          }
          return c;
        }
        function dr(e, t) {
          var n = [];
          return (
            fr(e, function (e, r, i) {
              t(e, r, i) && n.push(e);
            }),
            n
          );
        }
        function vr(e, t, n, r, i) {
          var o = -1,
            a = e.length;
          for (n || (n = vo), i || (i = []); ++o < a; ) {
            var u = e[o];
            t > 0 && n(u)
              ? t > 1
                ? vr(u, t - 1, n, r, i)
                : Pt(i, u)
              : r || (i[i.length] = u);
          }
          return i;
        }
        var gr = Ci(),
          yr = Ci(!0);
        function _r(e, t) {
          return e && gr(e, t, Eu);
        }
        function mr(e, t) {
          return e && yr(e, t, Eu);
        }
        function wr(e, t) {
          return St(t, function (t) {
            return Ya(e[t]);
          });
        }
        function kr(t, n) {
          for (var r = 0, i = (n = gi(n, t)).length; null != t && r < i; )
            t = t[No(n[r++])];
          return r && r == i ? t : e;
        }
        function br(e, t, n) {
          var r = t(e);
          return qa(e) ? r : Pt(r, n(e));
        }
        function xr(t) {
          return null == t
            ? t === e
              ? "[object Undefined]"
              : "[object Null]"
            : st && st in Ae(t)
            ? (function (t) {
                var n = De.call(t, st),
                  r = t[st];
                try {
                  t[st] = e;
                  var i = !0;
                } catch (e) {}
                var o = Ue.call(t);
                return i && (n ? (t[st] = r) : delete t[st]), o;
              })(t)
            : (function (e) {
                return Ue.call(e);
              })(t);
        }
        function Sr(e, t) {
          return e > t;
        }
        function Ar(e, t) {
          return null != e && De.call(e, t);
        }
        function Ir(e, t) {
          return null != e && t in Ae(e);
        }
        function Or(t, n, r) {
          for (
            var i = r ? It : At,
              o = t[0].length,
              a = t.length,
              u = a,
              s = we(a),
              c = 1 / 0,
              f = [];
            u--;

          ) {
            var l = t[u];
            u && n && (l = Ot(l, Wt(n))),
              (c = yn(l.length, c)),
              (s[u] =
                !r && (n || (o >= 120 && l.length >= 120))
                  ? new Vn(u && l)
                  : e);
          }
          l = t[0];
          var h = -1,
            p = s[0];
          e: for (; ++h < o && f.length < c; ) {
            var d = l[h],
              v = n ? n(d) : d;
            if (((d = r || 0 !== d ? d : 0), !(p ? Kt(p, v) : i(f, v, r)))) {
              for (u = a; --u; ) {
                var g = s[u];
                if (!(g ? Kt(g, v) : i(t[u], v, r))) continue e;
              }
              p && p.push(v), f.push(d);
            }
          }
          return f;
        }
        function Pr(t, n, r) {
          var i = null == (t = Ao(t, (n = gi(n, t)))) ? t : t[No(Go(n))];
          return null == i ? e : mt(i, t, r);
        }
        function Tr(e) {
          return eu(e) && xr(e) == h;
        }
        function Er(t, n, r, i, o) {
          return (
            t === n ||
            (null == t || null == n || (!eu(t) && !eu(n))
              ? t != t && n != n
              : (function (t, n, r, i, o, a) {
                  var u = qa(t),
                    s = qa(n),
                    c = u ? p : lo(t),
                    f = s ? p : lo(n),
                    l = (c = c == h ? k : c) == k,
                    y = (f = f == h ? k : f) == k,
                    _ = c == f;
                  if (_ && Ka(t)) {
                    if (!Ka(n)) return !1;
                    (u = !0), (l = !1);
                  }
                  if (_ && !l)
                    return (
                      a || (a = new Kn()),
                      u || su(t)
                        ? Qi(t, n, r, i, o, a)
                        : (function (e, t, n, r, i, o, a) {
                            switch (n) {
                              case T:
                                if (
                                  e.byteLength != t.byteLength ||
                                  e.byteOffset != t.byteOffset
                                )
                                  return !1;
                                (e = e.buffer), (t = t.buffer);
                              case P:
                                return !(
                                  e.byteLength != t.byteLength ||
                                  !o(new qe(e), new qe(t))
                                );
                              case d:
                              case v:
                              case w:
                                return Ma(+e, +t);
                              case g:
                                return (
                                  e.name == t.name && e.message == t.message
                                );
                              case x:
                              case A:
                                return e == t + "";
                              case m:
                                var u = en;
                              case S:
                                var s = 1 & r;
                                if ((u || (u = rn), e.size != t.size && !s))
                                  return !1;
                                var c = a.get(e);
                                if (c) return c == t;
                                (r |= 2), a.set(e, t);
                                var f = Qi(u(e), u(t), r, i, o, a);
                                return a.delete(e), f;
                              case I:
                                if (Nn) return Nn.call(e) == Nn.call(t);
                            }
                            return !1;
                          })(t, n, c, r, i, o, a)
                    );
                  if (!(1 & r)) {
                    var b = l && De.call(t, "__wrapped__"),
                      O = y && De.call(n, "__wrapped__");
                    if (b || O) {
                      var E = b ? t.value() : t,
                        C = O ? n.value() : n;
                      return a || (a = new Kn()), o(E, C, r, i, a);
                    }
                  }
                  return (
                    !!_ &&
                    (a || (a = new Kn()),
                    (function (t, n, r, i, o, a) {
                      var u = 1 & r,
                        s = eo(t),
                        c = s.length;
                      if (c != eo(n).length && !u) return !1;
                      for (var f = c; f--; ) {
                        var l = s[f];
                        if (!(u ? l in n : De.call(n, l))) return !1;
                      }
                      var h = a.get(t),
                        p = a.get(n);
                      if (h && p) return h == n && p == t;
                      var d = !0;
                      a.set(t, n), a.set(n, t);
                      for (var v = u; ++f < c; ) {
                        var g = t[(l = s[f])],
                          y = n[l];
                        if (i)
                          var _ = u ? i(y, g, l, n, t, a) : i(g, y, l, t, n, a);
                        if (!(_ === e ? g === y || o(g, y, r, i, a) : _)) {
                          d = !1;
                          break;
                        }
                        v || (v = "constructor" == l);
                      }
                      if (d && !v) {
                        var m = t.constructor,
                          w = n.constructor;
                        m == w ||
                          !("constructor" in t) ||
                          !("constructor" in n) ||
                          ("function" == typeof m &&
                            m instanceof m &&
                            "function" == typeof w &&
                            w instanceof w) ||
                          (d = !1);
                      }
                      return a.delete(t), a.delete(n), d;
                    })(t, n, r, i, o, a))
                  );
                })(t, n, r, i, Er, o))
          );
        }
        function Cr(t, n, r, i) {
          var o = r.length,
            a = o,
            u = !i;
          if (null == t) return !a;
          for (t = Ae(t); o--; ) {
            var s = r[o];
            if (u && s[2] ? s[1] !== t[s[0]] : !(s[0] in t)) return !1;
          }
          for (; ++o < a; ) {
            var c = (s = r[o])[0],
              f = t[c],
              l = s[1];
            if (u && s[2]) {
              if (f === e && !(c in t)) return !1;
            } else {
              var h = new Kn();
              if (i) var p = i(f, l, c, t, n, h);
              if (!(p === e ? Er(l, f, 3, i, h) : p)) return !1;
            }
          }
          return !0;
        }
        function Rr(e) {
          return (
            !(!Za(e) || ((t = e), Ne && Ne in t)) &&
            (Ya(e) ? $e : he).test(Uo(e))
          );
          var t;
        }
        function Lr(e) {
          return "function" == typeof e
            ? e
            : null == e
            ? ns
            : "object" == f(e)
            ? qa(e)
              ? jr(e[0], e[1])
              : Ur(e)
            : ls(e);
        }
        function Dr(e) {
          if (!ko(e)) return vn(e);
          var t = [];
          for (var n in Ae(e)) De.call(e, n) && "constructor" != n && t.push(n);
          return t;
        }
        function Br(e, t) {
          return e < t;
        }
        function Nr(e, t) {
          var n = -1,
            r = Wa(e) ? we(e.length) : [];
          return (
            fr(e, function (e, i, o) {
              r[++n] = t(e, i, o);
            }),
            r
          );
        }
        function Ur(e) {
          var t = uo(e);
          return 1 == t.length && t[0][2]
            ? xo(t[0][0], t[0][1])
            : function (n) {
                return n === e || Cr(n, e, t);
              };
        }
        function jr(t, n) {
          return _o(t) && bo(n)
            ? xo(No(t), n)
            : function (r) {
                var i = Au(r, t);
                return i === e && i === n ? Iu(r, t) : Er(n, i, 3);
              };
        }
        function Mr(t, n, r, i, o) {
          t !== n &&
            gr(
              n,
              function (a, u) {
                if ((o || (o = new Kn()), Za(a)))
                  !(function (t, n, r, i, o, a, u) {
                    var s = Io(t, r),
                      c = Io(n, r),
                      f = u.get(c);
                    if (f) Qn(t, r, f);
                    else {
                      var l = a ? a(s, c, r + "", t, n, u) : e,
                        h = l === e;
                      if (h) {
                        var p = qa(c),
                          d = !p && Ka(c),
                          v = !p && !d && su(c);
                        (l = c),
                          p || d || v
                            ? qa(s)
                              ? (l = s)
                              : Va(s)
                              ? (l = Ii(s))
                              : d
                              ? ((h = !1), (l = wi(c, !0)))
                              : v
                              ? ((h = !1), (l = bi(c, !0)))
                              : (l = [])
                            : ru(c) || Ha(c)
                            ? ((l = s),
                              Ha(s)
                                ? (l = gu(s))
                                : (Za(s) && !Ya(s)) || (l = po(c)))
                            : (h = !1);
                      }
                      h && (u.set(c, l), o(l, c, i, a, u), u.delete(c)),
                        Qn(t, r, l);
                    }
                  })(t, n, u, r, Mr, i, o);
                else {
                  var s = i ? i(Io(t, u), a, u + "", t, n, o) : e;
                  s === e && (s = a), Qn(t, u, s);
                }
              },
              Cu
            );
        }
        function $r(t, n) {
          var r = t.length;
          if (r) return go((n += n < 0 ? r : 0), r) ? t[n] : e;
        }
        function Fr(e, t, n) {
          t = t.length
            ? Ot(t, function (e) {
                return qa(e)
                  ? function (t) {
                      return kr(t, 1 === e.length ? e[0] : e);
                    }
                  : e;
              })
            : [ns];
          var r = -1;
          return (
            (t = Ot(t, Wt(oo()))),
            (function (e, t) {
              var n = e.length;
              for (e.sort(t); n--; ) e[n] = e[n].value;
              return e;
            })(
              Nr(e, function (e, n, i) {
                return {
                  criteria: Ot(t, function (t) {
                    return t(e);
                  }),
                  index: ++r,
                  value: e,
                };
              }),
              function (e, t) {
                return (function (e, t, n) {
                  for (
                    var r = -1,
                      i = e.criteria,
                      o = t.criteria,
                      a = i.length,
                      u = n.length;
                    ++r < a;

                  ) {
                    var s = xi(i[r], o[r]);
                    if (s) return r >= u ? s : s * ("desc" == n[r] ? -1 : 1);
                  }
                  return e.index - t.index;
                })(e, t, n);
              }
            )
          );
        }
        function Hr(e, t, n) {
          for (var r = -1, i = t.length, o = {}; ++r < i; ) {
            var a = t[r],
              u = kr(e, a);
            n(u, a) && Yr(o, gi(a, e), u);
          }
          return o;
        }
        function qr(e, t, n, r) {
          var i = r ? Nt : Bt,
            o = -1,
            a = t.length,
            u = e;
          for (e === t && (t = Ii(t)), n && (u = Ot(e, Wt(n))); ++o < a; )
            for (
              var s = 0, c = t[o], f = n ? n(c) : c;
              (s = i(u, f, s, r)) > -1;

            )
              u !== e && nt.call(u, s, 1), nt.call(e, s, 1);
          return e;
        }
        function zr(e, t) {
          for (var n = e ? t.length : 0, r = n - 1; n--; ) {
            var i = t[n];
            if (n == r || i !== o) {
              var o = i;
              go(i) ? nt.call(e, i, 1) : si(e, i);
            }
          }
          return e;
        }
        function Wr(e, t) {
          return e + fn(wn() * (t - e + 1));
        }
        function Vr(e, t) {
          var n = "";
          if (!e || t < 1 || t > u) return n;
          do {
            t % 2 && (n += e), (t = fn(t / 2)) && (e += e);
          } while (t);
          return n;
        }
        function Kr(e, t) {
          return To(So(e, t, ns), e + "");
        }
        function Jr(e) {
          return Gn(Mu(e));
        }
        function Gr(e, t) {
          var n = Mu(e);
          return Ro(n, or(t, 0, n.length));
        }
        function Yr(t, n, r, i) {
          if (!Za(t)) return t;
          for (
            var o = -1, a = (n = gi(n, t)).length, u = a - 1, s = t;
            null != s && ++o < a;

          ) {
            var c = No(n[o]),
              f = r;
            if ("__proto__" === c || "constructor" === c || "prototype" === c)
              return t;
            if (o != u) {
              var l = s[c];
              (f = i ? i(l, c, s) : e) === e &&
                (f = Za(l) ? l : go(n[o + 1]) ? [] : {});
            }
            Zn(s, c, f), (s = s[c]);
          }
          return t;
        }
        var Xr = Pn
            ? function (e, t) {
                return Pn.set(e, t), e;
              }
            : ns,
          Qr = ct
            ? function (e, t) {
                return ct(e, "toString", {
                  configurable: !0,
                  enumerable: !1,
                  value: Zu(t),
                  writable: !0,
                });
              }
            : ns;
        function Zr(e) {
          return Ro(Mu(e));
        }
        function ei(e, t, n) {
          var r = -1,
            i = e.length;
          t < 0 && (t = -t > i ? 0 : i + t),
            (n = n > i ? i : n) < 0 && (n += i),
            (i = t > n ? 0 : (n - t) >>> 0),
            (t >>>= 0);
          for (var o = we(i); ++r < i; ) o[r] = e[r + t];
          return o;
        }
        function ti(e, t) {
          var n;
          return (
            fr(e, function (e, r, i) {
              return !(n = t(e, r, i));
            }),
            !!n
          );
        }
        function ni(e, t, n) {
          var r = 0,
            i = null == e ? r : e.length;
          if ("number" == typeof t && t == t && i <= 2147483647) {
            for (; r < i; ) {
              var o = (r + i) >>> 1,
                a = e[o];
              null !== a && !uu(a) && (n ? a <= t : a < t)
                ? (r = o + 1)
                : (i = o);
            }
            return i;
          }
          return ri(e, t, ns, n);
        }
        function ri(t, n, r, i) {
          var o = 0,
            a = null == t ? 0 : t.length;
          if (0 === a) return 0;
          for (
            var u = (n = r(n)) != n, s = null === n, c = uu(n), f = n === e;
            o < a;

          ) {
            var l = fn((o + a) / 2),
              h = r(t[l]),
              p = h !== e,
              d = null === h,
              v = h == h,
              g = uu(h);
            if (u) var y = i || v;
            else
              y = f
                ? v && (i || p)
                : s
                ? v && p && (i || !d)
                : c
                ? v && p && !d && (i || !g)
                : !d && !g && (i ? h <= n : h < n);
            y ? (o = l + 1) : (a = l);
          }
          return yn(a, 4294967294);
        }
        function ii(e, t) {
          for (var n = -1, r = e.length, i = 0, o = []; ++n < r; ) {
            var a = e[n],
              u = t ? t(a) : a;
            if (!n || !Ma(u, s)) {
              var s = u;
              o[i++] = 0 === a ? 0 : a;
            }
          }
          return o;
        }
        function oi(e) {
          return "number" == typeof e ? e : uu(e) ? s : +e;
        }
        function ai(e) {
          if ("string" == typeof e) return e;
          if (qa(e)) return Ot(e, ai) + "";
          if (uu(e)) return Un ? Un.call(e) : "";
          var t = e + "";
          return "0" == t && 1 / e == -1 / 0 ? "-0" : t;
        }
        function ui(e, t, n) {
          var r = -1,
            i = At,
            o = e.length,
            a = !0,
            u = [],
            s = u;
          if (n) (a = !1), (i = It);
          else if (o >= 200) {
            var c = t ? null : Vi(e);
            if (c) return rn(c);
            (a = !1), (i = Kt), (s = new Vn());
          } else s = t ? [] : u;
          e: for (; ++r < o; ) {
            var f = e[r],
              l = t ? t(f) : f;
            if (((f = n || 0 !== f ? f : 0), a && l == l)) {
              for (var h = s.length; h--; ) if (s[h] === l) continue e;
              t && s.push(l), u.push(f);
            } else i(s, l, n) || (s !== u && s.push(l), u.push(f));
          }
          return u;
        }
        function si(e, t) {
          return null == (e = Ao(e, (t = gi(t, e)))) || delete e[No(Go(t))];
        }
        function ci(e, t, n, r) {
          return Yr(e, t, n(kr(e, t)), r);
        }
        function fi(e, t, n, r) {
          for (
            var i = e.length, o = r ? i : -1;
            (r ? o-- : ++o < i) && t(e[o], o, e);

          );
          return n
            ? ei(e, r ? 0 : o, r ? o + 1 : i)
            : ei(e, r ? o + 1 : 0, r ? i : o);
        }
        function li(e, t) {
          var n = e;
          return (
            n instanceof Hn && (n = n.value()),
            Tt(
              t,
              function (e, t) {
                return t.func.apply(t.thisArg, Pt([e], t.args));
              },
              n
            )
          );
        }
        function hi(e, t, n) {
          var r = e.length;
          if (r < 2) return r ? ui(e[0]) : [];
          for (var i = -1, o = we(r); ++i < r; )
            for (var a = e[i], u = -1; ++u < r; )
              u != i && (o[i] = cr(o[i] || a, e[u], t, n));
          return ui(vr(o, 1), t, n);
        }
        function pi(t, n, r) {
          for (var i = -1, o = t.length, a = n.length, u = {}; ++i < o; ) {
            var s = i < a ? n[i] : e;
            r(u, t[i], s);
          }
          return u;
        }
        function di(e) {
          return Va(e) ? e : [];
        }
        function vi(e) {
          return "function" == typeof e ? e : ns;
        }
        function gi(e, t) {
          return qa(e) ? e : _o(e, t) ? [e] : Bo(yu(e));
        }
        var yi = Kr;
        function _i(t, n, r) {
          var i = t.length;
          return (r = r === e ? i : r), !n && r >= i ? t : ei(t, n, r);
        }
        var mi =
          lt ||
          function (e) {
            return ut.clearTimeout(e);
          };
        function wi(e, t) {
          if (t) return e.slice();
          var n = e.length,
            r = ze ? ze(n) : new e.constructor(n);
          return e.copy(r), r;
        }
        function ki(e) {
          var t = new e.constructor(e.byteLength);
          return new qe(t).set(new qe(e)), t;
        }
        function bi(e, t) {
          var n = t ? ki(e.buffer) : e.buffer;
          return new e.constructor(n, e.byteOffset, e.length);
        }
        function xi(t, n) {
          if (t !== n) {
            var r = t !== e,
              i = null === t,
              o = t == t,
              a = uu(t),
              u = n !== e,
              s = null === n,
              c = n == n,
              f = uu(n);
            if (
              (!s && !f && !a && t > n) ||
              (a && u && c && !s && !f) ||
              (i && u && c) ||
              (!r && c) ||
              !o
            )
              return 1;
            if (
              (!i && !a && !f && t < n) ||
              (f && r && o && !i && !a) ||
              (s && r && o) ||
              (!u && o) ||
              !c
            )
              return -1;
          }
          return 0;
        }
        function Si(e, t, n, r) {
          for (
            var i = -1,
              o = e.length,
              a = n.length,
              u = -1,
              s = t.length,
              c = gn(o - a, 0),
              f = we(s + c),
              l = !r;
            ++u < s;

          )
            f[u] = t[u];
          for (; ++i < a; ) (l || i < o) && (f[n[i]] = e[i]);
          for (; c--; ) f[u++] = e[i++];
          return f;
        }
        function Ai(e, t, n, r) {
          for (
            var i = -1,
              o = e.length,
              a = -1,
              u = n.length,
              s = -1,
              c = t.length,
              f = gn(o - u, 0),
              l = we(f + c),
              h = !r;
            ++i < f;

          )
            l[i] = e[i];
          for (var p = i; ++s < c; ) l[p + s] = t[s];
          for (; ++a < u; ) (h || i < o) && (l[p + n[a]] = e[i++]);
          return l;
        }
        function Ii(e, t) {
          var n = -1,
            r = e.length;
          for (t || (t = we(r)); ++n < r; ) t[n] = e[n];
          return t;
        }
        function Oi(t, n, r, i) {
          var o = !r;
          r || (r = {});
          for (var a = -1, u = n.length; ++a < u; ) {
            var s = n[a],
              c = i ? i(r[s], t[s], s, r, t) : e;
            c === e && (c = t[s]), o ? rr(r, s, c) : Zn(r, s, c);
          }
          return r;
        }
        function Pi(e, t) {
          return function (n, r) {
            var i = qa(n) ? wt : tr,
              o = t ? t() : {};
            return i(n, e, oo(r, 2), o);
          };
        }
        function Ti(t) {
          return Kr(function (n, r) {
            var i = -1,
              o = r.length,
              a = o > 1 ? r[o - 1] : e,
              u = o > 2 ? r[2] : e;
            for (
              a = t.length > 3 && "function" == typeof a ? (o--, a) : e,
                u && yo(r[0], r[1], u) && ((a = o < 3 ? e : a), (o = 1)),
                n = Ae(n);
              ++i < o;

            ) {
              var s = r[i];
              s && t(n, s, i, a);
            }
            return n;
          });
        }
        function Ei(e, t) {
          return function (n, r) {
            if (null == n) return n;
            if (!Wa(n)) return e(n, r);
            for (
              var i = n.length, o = t ? i : -1, a = Ae(n);
              (t ? o-- : ++o < i) && !1 !== r(a[o], o, a);

            );
            return n;
          };
        }
        function Ci(e) {
          return function (t, n, r) {
            for (var i = -1, o = Ae(t), a = r(t), u = a.length; u--; ) {
              var s = a[e ? u : ++i];
              if (!1 === n(o[s], s, o)) break;
            }
            return t;
          };
        }
        function Ri(t) {
          return function (n) {
            var r = Zt((n = yu(n))) ? an(n) : e,
              i = r ? r[0] : n.charAt(0),
              o = r ? _i(r, 1).join("") : n.slice(1);
            return i[t]() + o;
          };
        }
        function Li(e) {
          return function (t) {
            return Tt(Yu(Hu(t).replace(Ve, "")), e, "");
          };
        }
        function Di(e) {
          return function () {
            var t = arguments;
            switch (t.length) {
              case 0:
                return new e();
              case 1:
                return new e(t[0]);
              case 2:
                return new e(t[0], t[1]);
              case 3:
                return new e(t[0], t[1], t[2]);
              case 4:
                return new e(t[0], t[1], t[2], t[3]);
              case 5:
                return new e(t[0], t[1], t[2], t[3], t[4]);
              case 6:
                return new e(t[0], t[1], t[2], t[3], t[4], t[5]);
              case 7:
                return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
            }
            var n = Mn(e.prototype),
              r = e.apply(n, t);
            return Za(r) ? r : n;
          };
        }
        function Bi(t) {
          return function (n, r, i) {
            var o = Ae(n);
            if (!Wa(n)) {
              var a = oo(r, 3);
              (n = Eu(n)),
                (r = function (e) {
                  return a(o[e], e, o);
                });
            }
            var u = t(n, r, i);
            return u > -1 ? o[a ? n[u] : u] : e;
          };
        }
        function Ni(n) {
          return Zi(function (r) {
            var i = r.length,
              o = i,
              a = Fn.prototype.thru;
            for (n && r.reverse(); o--; ) {
              var u = r[o];
              if ("function" != typeof u) throw new Pe(t);
              if (a && !s && "wrapper" == ro(u)) var s = new Fn([], !0);
            }
            for (o = s ? o : i; ++o < i; ) {
              var c = ro((u = r[o])),
                f = "wrapper" == c ? no(u) : e;
              s =
                f && mo(f[0]) && 424 == f[1] && !f[4].length && 1 == f[9]
                  ? s[ro(f[0])].apply(s, f[3])
                  : 1 == u.length && mo(u)
                  ? s[c]()
                  : s.thru(u);
            }
            return function () {
              var e = arguments,
                t = e[0];
              if (s && 1 == e.length && qa(t)) return s.plant(t).value();
              for (var n = 0, o = i ? r[n].apply(this, e) : t; ++n < i; )
                o = r[n].call(this, o);
              return o;
            };
          });
        }
        function Ui(t, n, r, i, a, u, s, c, f, l) {
          var h = n & o,
            p = 1 & n,
            d = 2 & n,
            v = 24 & n,
            g = 512 & n,
            y = d ? e : Di(t);
          return function o() {
            for (var _ = arguments.length, m = we(_), w = _; w--; )
              m[w] = arguments[w];
            if (v)
              var k = io(o),
                b = (function (e, t) {
                  for (var n = e.length, r = 0; n--; ) e[n] === t && ++r;
                  return r;
                })(m, k);
            if (
              (i && (m = Si(m, i, a, v)),
              u && (m = Ai(m, u, s, v)),
              (_ -= b),
              v && _ < l)
            ) {
              var x = nn(m, k);
              return zi(t, n, Ui, o.placeholder, r, m, x, c, f, l - _);
            }
            var S = p ? r : this,
              A = d ? S[t] : t;
            return (
              (_ = m.length),
              c
                ? (m = (function (t, n) {
                    for (
                      var r = t.length, i = yn(n.length, r), o = Ii(t);
                      i--;

                    ) {
                      var a = n[i];
                      t[i] = go(a, r) ? o[a] : e;
                    }
                    return t;
                  })(m, c))
                : g && _ > 1 && m.reverse(),
              h && f < _ && (m.length = f),
              this && this !== ut && this instanceof o && (A = y || Di(A)),
              A.apply(S, m)
            );
          };
        }
        function ji(e, t) {
          return function (n, r) {
            return (function (e, t, n, r) {
              return (
                _r(e, function (e, i, o) {
                  t(r, n(e), i, o);
                }),
                r
              );
            })(n, e, t(r), {});
          };
        }
        function Mi(t, n) {
          return function (r, i) {
            var o;
            if (r === e && i === e) return n;
            if ((r !== e && (o = r), i !== e)) {
              if (o === e) return i;
              "string" == typeof r || "string" == typeof i
                ? ((r = ai(r)), (i = ai(i)))
                : ((r = oi(r)), (i = oi(i))),
                (o = t(r, i));
            }
            return o;
          };
        }
        function $i(e) {
          return Zi(function (t) {
            return (
              (t = Ot(t, Wt(oo()))),
              Kr(function (n) {
                var r = this;
                return e(t, function (e) {
                  return mt(e, r, n);
                });
              })
            );
          });
        }
        function Fi(t, n) {
          var r = (n = n === e ? " " : ai(n)).length;
          if (r < 2) return r ? Vr(n, t) : n;
          var i = Vr(n, $t(t / on(n)));
          return Zt(n) ? _i(an(i), 0, t).join("") : i.slice(0, t);
        }
        function Hi(t) {
          return function (n, r, i) {
            return (
              i && "number" != typeof i && yo(n, r, i) && (r = i = e),
              (n = hu(n)),
              r === e ? ((r = n), (n = 0)) : (r = hu(r)),
              (function (e, t, n, r) {
                for (
                  var i = -1, o = gn($t((t - e) / (n || 1)), 0), a = we(o);
                  o--;

                )
                  (a[r ? o : ++i] = e), (e += n);
                return a;
              })(n, r, (i = i === e ? (n < r ? 1 : -1) : hu(i)), t)
            );
          };
        }
        function qi(e) {
          return function (t, n) {
            return (
              ("string" == typeof t && "string" == typeof n) ||
                ((t = vu(t)), (n = vu(n))),
              e(t, n)
            );
          };
        }
        function zi(t, n, r, o, a, u, s, c, f, l) {
          var h = 8 & n;
          (n |= h ? i : 64), 4 & (n &= ~(h ? 64 : i)) || (n &= -4);
          var p = [
              t,
              n,
              a,
              h ? u : e,
              h ? s : e,
              h ? e : u,
              h ? e : s,
              c,
              f,
              l,
            ],
            d = r.apply(e, p);
          return mo(t) && Oo(d, p), (d.placeholder = o), Eo(d, t, n);
        }
        function Wi(e) {
          var t = Se[e];
          return function (e, n) {
            if (((e = vu(e)), (n = null == n ? 0 : yn(pu(n), 292)) && pn(e))) {
              var r = (yu(e) + "e").split("e");
              return +(
                (r = (yu(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"))[0] +
                "e" +
                (+r[1] - n)
              );
            }
            return t(e);
          };
        }
        var Vi =
          An && 1 / rn(new An([, -0]))[1] == a
            ? function (e) {
                return new An(e);
              }
            : us;
        function Ki(e) {
          return function (t) {
            var n = lo(t);
            return n == m
              ? en(t)
              : n == S
              ? (function (e) {
                  var t = -1,
                    n = Array(e.size);
                  return (
                    e.forEach(function (e) {
                      n[++t] = [e, e];
                    }),
                    n
                  );
                })(t)
              : (function (e, t) {
                  return Ot(t, function (t) {
                    return [t, e[t]];
                  });
                })(t, e(t));
          };
        }
        function Ji(n, a, u, s, c, f, l, h) {
          var p = 2 & a;
          if (!p && "function" != typeof n) throw new Pe(t);
          var d = s ? s.length : 0;
          if (
            (d || ((a &= -97), (s = c = e)),
            (l = l === e ? l : gn(pu(l), 0)),
            (h = h === e ? h : pu(h)),
            (d -= c ? c.length : 0),
            64 & a)
          ) {
            var v = s,
              g = c;
            s = c = e;
          }
          var y = p ? e : no(n),
            _ = [n, a, u, s, c, v, g, f, l, h];
          if (
            (y &&
              (function (e, t) {
                var n = e[1],
                  i = t[1],
                  a = n | i,
                  u = a < 131,
                  s =
                    (i == o && 8 == n) ||
                    (i == o && 256 == n && e[7].length <= t[8]) ||
                    (384 == i && t[7].length <= t[8] && 8 == n);
                if (!u && !s) return e;
                1 & i && ((e[2] = t[2]), (a |= 1 & n ? 0 : 4));
                var c = t[3];
                if (c) {
                  var f = e[3];
                  (e[3] = f ? Si(f, c, t[4]) : c),
                    (e[4] = f ? nn(e[3], r) : t[4]);
                }
                (c = t[5]) &&
                  ((f = e[5]),
                  (e[5] = f ? Ai(f, c, t[6]) : c),
                  (e[6] = f ? nn(e[5], r) : t[6])),
                  (c = t[7]) && (e[7] = c),
                  i & o && (e[8] = null == e[8] ? t[8] : yn(e[8], t[8])),
                  null == e[9] && (e[9] = t[9]),
                  (e[0] = t[0]),
                  (e[1] = a);
              })(_, y),
            (n = _[0]),
            (a = _[1]),
            (u = _[2]),
            (s = _[3]),
            (c = _[4]),
            !(h = _[9] = _[9] === e ? (p ? 0 : n.length) : gn(_[9] - d, 0)) &&
              24 & a &&
              (a &= -25),
            a && 1 != a)
          )
            m =
              8 == a || 16 == a
                ? (function (t, n, r) {
                    var i = Di(t);
                    return function o() {
                      for (
                        var a = arguments.length, u = we(a), s = a, c = io(o);
                        s--;

                      )
                        u[s] = arguments[s];
                      var f =
                        a < 3 && u[0] !== c && u[a - 1] !== c ? [] : nn(u, c);
                      return (a -= f.length) < r
                        ? zi(t, n, Ui, o.placeholder, e, u, f, e, e, r - a)
                        : mt(
                            this && this !== ut && this instanceof o ? i : t,
                            this,
                            u
                          );
                    };
                  })(n, a, h)
                : (a != i && 33 != a) || c.length
                ? Ui.apply(e, _)
                : (function (e, t, n, r) {
                    var i = 1 & t,
                      o = Di(e);
                    return function t() {
                      for (
                        var a = -1,
                          u = arguments.length,
                          s = -1,
                          c = r.length,
                          f = we(c + u),
                          l = this && this !== ut && this instanceof t ? o : e;
                        ++s < c;

                      )
                        f[s] = r[s];
                      for (; u--; ) f[s++] = arguments[++a];
                      return mt(l, i ? n : this, f);
                    };
                  })(n, a, u, s);
          else
            var m = (function (e, t, n) {
              var r = 1 & t,
                i = Di(e);
              return function t() {
                return (this && this !== ut && this instanceof t ? i : e).apply(
                  r ? n : this,
                  arguments
                );
              };
            })(n, a, u);
          return Eo((y ? Xr : Oo)(m, _), n, a);
        }
        function Gi(t, n, r, i) {
          return t === e || (Ma(t, Ce[r]) && !De.call(i, r)) ? n : t;
        }
        function Yi(t, n, r, i, o, a) {
          return (
            Za(t) && Za(n) && (a.set(n, t), Mr(t, n, e, Yi, a), a.delete(n)), t
          );
        }
        function Xi(t) {
          return ru(t) ? e : t;
        }
        function Qi(t, n, r, i, o, a) {
          var u = 1 & r,
            s = t.length,
            c = n.length;
          if (s != c && !(u && c > s)) return !1;
          var f = a.get(t),
            l = a.get(n);
          if (f && l) return f == n && l == t;
          var h = -1,
            p = !0,
            d = 2 & r ? new Vn() : e;
          for (a.set(t, n), a.set(n, t); ++h < s; ) {
            var v = t[h],
              g = n[h];
            if (i) var y = u ? i(g, v, h, n, t, a) : i(v, g, h, t, n, a);
            if (y !== e) {
              if (y) continue;
              p = !1;
              break;
            }
            if (d) {
              if (
                !Ct(n, function (e, t) {
                  if (!Kt(d, t) && (v === e || o(v, e, r, i, a)))
                    return d.push(t);
                })
              ) {
                p = !1;
                break;
              }
            } else if (v !== g && !o(v, g, r, i, a)) {
              p = !1;
              break;
            }
          }
          return a.delete(t), a.delete(n), p;
        }
        function Zi(t) {
          return To(So(t, e, zo), t + "");
        }
        function eo(e) {
          return br(e, Eu, co);
        }
        function to(e) {
          return br(e, Cu, fo);
        }
        var no = Pn
          ? function (e) {
              return Pn.get(e);
            }
          : us;
        function ro(e) {
          for (
            var t = e.name + "", n = Tn[t], r = De.call(Tn, t) ? n.length : 0;
            r--;

          ) {
            var i = n[r],
              o = i.func;
            if (null == o || o == e) return i.name;
          }
          return t;
        }
        function io(e) {
          return (De.call(jn, "placeholder") ? jn : e).placeholder;
        }
        function oo() {
          var e = jn.iteratee || rs;
          return (
            (e = e === rs ? Lr : e),
            arguments.length ? e(arguments[0], arguments[1]) : e
          );
        }
        function ao(e, t) {
          var n,
            r,
            i = e.__data__;
          return (
            "string" == (r = f((n = t))) ||
            "number" == r ||
            "symbol" == r ||
            "boolean" == r
              ? "__proto__" !== n
              : null === n
          )
            ? i["string" == typeof t ? "string" : "hash"]
            : i.map;
        }
        function uo(e) {
          for (var t = Eu(e), n = t.length; n--; ) {
            var r = t[n],
              i = e[r];
            t[n] = [r, i, bo(i)];
          }
          return t;
        }
        function so(t, n) {
          var r = (function (t, n) {
            return null == t ? e : t[n];
          })(t, n);
          return Rr(r) ? r : e;
        }
        var co = ln
            ? function (e) {
                return null == e
                  ? []
                  : ((e = Ae(e)),
                    St(ln(e), function (t) {
                      return Ye.call(e, t);
                    }));
              }
            : ds,
          fo = ln
            ? function (e) {
                for (var t = []; e; ) Pt(t, co(e)), (e = We(e));
                return t;
              }
            : ds,
          lo = xr;
        function ho(e, t, n) {
          for (var r = -1, i = (t = gi(t, e)).length, o = !1; ++r < i; ) {
            var a = No(t[r]);
            if (!(o = null != e && n(e, a))) break;
            e = e[a];
          }
          return o || ++r != i
            ? o
            : !!(i = null == e ? 0 : e.length) &&
                Qa(i) &&
                go(a, i) &&
                (qa(e) || Ha(e));
        }
        function po(e) {
          return "function" != typeof e.constructor || ko(e) ? {} : Mn(We(e));
        }
        function vo(e) {
          return qa(e) || Ha(e) || !!(ot && e && e[ot]);
        }
        function go(e, t) {
          var n = f(e);
          return (
            !!(t = null == t ? u : t) &&
            ("number" == n || ("symbol" != n && de.test(e))) &&
            e > -1 &&
            e % 1 == 0 &&
            e < t
          );
        }
        function yo(e, t, n) {
          if (!Za(n)) return !1;
          var r = f(t);
          return (
            !!("number" == r
              ? Wa(n) && go(t, n.length)
              : "string" == r && t in n) && Ma(n[t], e)
          );
        }
        function _o(e, t) {
          if (qa(e)) return !1;
          var n = f(e);
          return (
            !(
              "number" != n &&
              "symbol" != n &&
              "boolean" != n &&
              null != e &&
              !uu(e)
            ) ||
            Y.test(e) ||
            !G.test(e) ||
            (null != t && e in Ae(t))
          );
        }
        function mo(e) {
          var t = ro(e),
            n = jn[t];
          if ("function" != typeof n || !(t in Hn.prototype)) return !1;
          if (e === n) return !0;
          var r = no(n);
          return !!r && e === r[0];
        }
        ((bn && lo(new bn(new ArrayBuffer(1))) != T) ||
          (xn && lo(new xn()) != m) ||
          (Sn && lo(Sn.resolve()) != b) ||
          (An && lo(new An()) != S) ||
          (In && lo(new In()) != O)) &&
          (lo = function (t) {
            var n = xr(t),
              r = n == k ? t.constructor : e,
              i = r ? Uo(r) : "";
            if (i)
              switch (i) {
                case En:
                  return T;
                case Cn:
                  return m;
                case Rn:
                  return b;
                case Ln:
                  return S;
                case Dn:
                  return O;
              }
            return n;
          });
        var wo = Re ? Ya : vs;
        function ko(e) {
          var t = e && e.constructor;
          return e === (("function" == typeof t && t.prototype) || Ce);
        }
        function bo(e) {
          return e == e && !Za(e);
        }
        function xo(t, n) {
          return function (r) {
            return null != r && r[t] === n && (n !== e || t in Ae(r));
          };
        }
        function So(t, n, r) {
          return (
            (n = gn(n === e ? t.length - 1 : n, 0)),
            function () {
              for (
                var e = arguments, i = -1, o = gn(e.length - n, 0), a = we(o);
                ++i < o;

              )
                a[i] = e[n + i];
              i = -1;
              for (var u = we(n + 1); ++i < n; ) u[i] = e[i];
              return (u[n] = r(a)), mt(t, this, u);
            }
          );
        }
        function Ao(e, t) {
          return t.length < 2 ? e : kr(e, ei(t, 0, -1));
        }
        function Io(e, t) {
          if (
            ("constructor" !== t || "function" != typeof e[t]) &&
            "__proto__" != t
          )
            return e[t];
        }
        var Oo = Co(Xr),
          Po =
            Rt ||
            function (e, t) {
              return ut.setTimeout(e, t);
            },
          To = Co(Qr);
        function Eo(e, t, n) {
          var r = t + "";
          return To(
            e,
            (function (e, t) {
              var n = t.length;
              if (!n) return e;
              var r = n - 1;
              return (
                (t[r] = (n > 1 ? "& " : "") + t[r]),
                (t = t.join(n > 2 ? ", " : " ")),
                e.replace(ne, "{\n/* [wrapped with " + t + "] */\n")
              );
            })(
              r,
              (function (e, t) {
                return (
                  kt(l, function (n) {
                    var r = "_." + n[0];
                    t & n[1] && !At(e, r) && e.push(r);
                  }),
                  e.sort()
                );
              })(
                (function (e) {
                  var t = e.match(re);
                  return t ? t[1].split(ie) : [];
                })(r),
                n
              )
            )
          );
        }
        function Co(t) {
          var n = 0,
            r = 0;
          return function () {
            var i = _n(),
              o = 16 - (i - r);
            if (((r = i), o > 0)) {
              if (++n >= 800) return arguments[0];
            } else n = 0;
            return t.apply(e, arguments);
          };
        }
        function Ro(t, n) {
          var r = -1,
            i = t.length,
            o = i - 1;
          for (n = n === e ? i : n; ++r < n; ) {
            var a = Wr(r, o),
              u = t[a];
            (t[a] = t[r]), (t[r] = u);
          }
          return (t.length = n), t;
        }
        var Lo,
          Do,
          Bo =
            ((Lo = La(
              function (e) {
                var t = [];
                return (
                  46 === e.charCodeAt(0) && t.push(""),
                  e.replace(X, function (e, n, r, i) {
                    t.push(r ? i.replace(ue, "$1") : n || e);
                  }),
                  t
                );
              },
              function (e) {
                return 500 === Do.size && Do.clear(), e;
              }
            )),
            (Do = Lo.cache),
            Lo);
        function No(e) {
          if ("string" == typeof e || uu(e)) return e;
          var t = e + "";
          return "0" == t && 1 / e == -1 / 0 ? "-0" : t;
        }
        function Uo(e) {
          if (null != e) {
            try {
              return Le.call(e);
            } catch (e) {}
            try {
              return e + "";
            } catch (e) {}
          }
          return "";
        }
        function jo(e) {
          if (e instanceof Hn) return e.clone();
          var t = new Fn(e.__wrapped__, e.__chain__);
          return (
            (t.__actions__ = Ii(e.__actions__)),
            (t.__index__ = e.__index__),
            (t.__values__ = e.__values__),
            t
          );
        }
        var Mo = Kr(function (e, t) {
            return Va(e) ? cr(e, vr(t, 1, Va, !0)) : [];
          }),
          $o = Kr(function (t, n) {
            var r = Go(n);
            return (
              Va(r) && (r = e), Va(t) ? cr(t, vr(n, 1, Va, !0), oo(r, 2)) : []
            );
          }),
          Fo = Kr(function (t, n) {
            var r = Go(n);
            return Va(r) && (r = e), Va(t) ? cr(t, vr(n, 1, Va, !0), e, r) : [];
          });
        function Ho(e, t, n) {
          var r = null == e ? 0 : e.length;
          if (!r) return -1;
          var i = null == n ? 0 : pu(n);
          return i < 0 && (i = gn(r + i, 0)), Dt(e, oo(t, 3), i);
        }
        function qo(t, n, r) {
          var i = null == t ? 0 : t.length;
          if (!i) return -1;
          var o = i - 1;
          return (
            r !== e && ((o = pu(r)), (o = r < 0 ? gn(i + o, 0) : yn(o, i - 1))),
            Dt(t, oo(n, 3), o, !0)
          );
        }
        function zo(e) {
          return null != e && e.length ? vr(e, 1) : [];
        }
        function Wo(t) {
          return t && t.length ? t[0] : e;
        }
        var Vo = Kr(function (e) {
            var t = Ot(e, di);
            return t.length && t[0] === e[0] ? Or(t) : [];
          }),
          Ko = Kr(function (t) {
            var n = Go(t),
              r = Ot(t, di);
            return (
              n === Go(r) ? (n = e) : r.pop(),
              r.length && r[0] === t[0] ? Or(r, oo(n, 2)) : []
            );
          }),
          Jo = Kr(function (t) {
            var n = Go(t),
              r = Ot(t, di);
            return (
              (n = "function" == typeof n ? n : e) && r.pop(),
              r.length && r[0] === t[0] ? Or(r, e, n) : []
            );
          });
        function Go(t) {
          var n = null == t ? 0 : t.length;
          return n ? t[n - 1] : e;
        }
        var Yo = Kr(Xo);
        function Xo(e, t) {
          return e && e.length && t && t.length ? qr(e, t) : e;
        }
        var Qo = Zi(function (e, t) {
          var n = null == e ? 0 : e.length,
            r = ir(e, t);
          return (
            zr(
              e,
              Ot(t, function (e) {
                return go(e, n) ? +e : e;
              }).sort(xi)
            ),
            r
          );
        });
        function Zo(e) {
          return null == e ? e : kn.call(e);
        }
        var ea = Kr(function (e) {
            return ui(vr(e, 1, Va, !0));
          }),
          ta = Kr(function (t) {
            var n = Go(t);
            return Va(n) && (n = e), ui(vr(t, 1, Va, !0), oo(n, 2));
          }),
          na = Kr(function (t) {
            var n = Go(t);
            return (
              (n = "function" == typeof n ? n : e), ui(vr(t, 1, Va, !0), e, n)
            );
          });
        function ra(e) {
          if (!e || !e.length) return [];
          var t = 0;
          return (
            (e = St(e, function (e) {
              if (Va(e)) return (t = gn(e.length, t)), !0;
            })),
            qt(t, function (t) {
              return Ot(e, Mt(t));
            })
          );
        }
        function ia(t, n) {
          if (!t || !t.length) return [];
          var r = ra(t);
          return null == n
            ? r
            : Ot(r, function (t) {
                return mt(n, e, t);
              });
        }
        var oa = Kr(function (e, t) {
            return Va(e) ? cr(e, t) : [];
          }),
          aa = Kr(function (e) {
            return hi(St(e, Va));
          }),
          ua = Kr(function (t) {
            var n = Go(t);
            return Va(n) && (n = e), hi(St(t, Va), oo(n, 2));
          }),
          sa = Kr(function (t) {
            var n = Go(t);
            return (n = "function" == typeof n ? n : e), hi(St(t, Va), e, n);
          }),
          ca = Kr(ra),
          fa = Kr(function (t) {
            var n = t.length,
              r = n > 1 ? t[n - 1] : e;
            return (r = "function" == typeof r ? (t.pop(), r) : e), ia(t, r);
          });
        function la(e) {
          var t = jn(e);
          return (t.__chain__ = !0), t;
        }
        function ha(e, t) {
          return t(e);
        }
        var pa = Zi(function (t) {
            var n = t.length,
              r = n ? t[0] : 0,
              i = this.__wrapped__,
              o = function (e) {
                return ir(e, t);
              };
            return !(n > 1 || this.__actions__.length) &&
              i instanceof Hn &&
              go(r)
              ? ((i = i.slice(r, +r + (n ? 1 : 0))).__actions__.push({
                  func: ha,
                  args: [o],
                  thisArg: e,
                }),
                new Fn(i, this.__chain__).thru(function (t) {
                  return n && !t.length && t.push(e), t;
                }))
              : this.thru(o);
          }),
          da = Pi(function (e, t, n) {
            De.call(e, n) ? ++e[n] : rr(e, n, 1);
          }),
          va = Bi(Ho),
          ga = Bi(qo);
        function ya(e, t) {
          return (qa(e) ? kt : fr)(e, oo(t, 3));
        }
        function _a(e, t) {
          return (qa(e) ? bt : lr)(e, oo(t, 3));
        }
        var ma = Pi(function (e, t, n) {
            De.call(e, n) ? e[n].push(t) : rr(e, n, [t]);
          }),
          wa = Kr(function (e, t, n) {
            var r = -1,
              i = "function" == typeof t,
              o = Wa(e) ? we(e.length) : [];
            return (
              fr(e, function (e) {
                o[++r] = i ? mt(t, e, n) : Pr(e, t, n);
              }),
              o
            );
          }),
          ka = Pi(function (e, t, n) {
            rr(e, n, t);
          });
        function ba(e, t) {
          return (qa(e) ? Ot : Nr)(e, oo(t, 3));
        }
        var xa = Pi(
            function (e, t, n) {
              e[n ? 0 : 1].push(t);
            },
            function () {
              return [[], []];
            }
          ),
          Sa = Kr(function (e, t) {
            if (null == e) return [];
            var n = t.length;
            return (
              n > 1 && yo(e, t[0], t[1])
                ? (t = [])
                : n > 2 && yo(t[0], t[1], t[2]) && (t = [t[0]]),
              Fr(e, vr(t, 1), [])
            );
          }),
          Aa =
            ht ||
            function () {
              return ut.Date.now();
            };
        function Ia(t, n, r) {
          return (
            (n = r ? e : n),
            (n = t && null == n ? t.length : n),
            Ji(t, o, e, e, e, e, n)
          );
        }
        function Oa(n, r) {
          var i;
          if ("function" != typeof r) throw new Pe(t);
          return (
            (n = pu(n)),
            function () {
              return (
                --n > 0 && (i = r.apply(this, arguments)), n <= 1 && (r = e), i
              );
            }
          );
        }
        var Pa = Kr(function (e, t, n) {
            var r = 1;
            if (n.length) {
              var o = nn(n, io(Pa));
              r |= i;
            }
            return Ji(e, r, t, n, o);
          }),
          Ta = Kr(function (e, t, n) {
            var r = 3;
            if (n.length) {
              var o = nn(n, io(Ta));
              r |= i;
            }
            return Ji(t, r, e, n, o);
          });
        function Ea(n, r, i) {
          var o,
            a,
            u,
            s,
            c,
            f,
            l = 0,
            h = !1,
            p = !1,
            d = !0;
          if ("function" != typeof n) throw new Pe(t);
          function v(t) {
            var r = o,
              i = a;
            return (o = a = e), (l = t), (s = n.apply(i, r));
          }
          function g(t) {
            var n = t - f;
            return f === e || n >= r || n < 0 || (p && t - l >= u);
          }
          function y() {
            var e = Aa();
            if (g(e)) return _(e);
            c = Po(
              y,
              (function (e) {
                var t = r - (e - f);
                return p ? yn(t, u - (e - l)) : t;
              })(e)
            );
          }
          function _(t) {
            return (c = e), d && o ? v(t) : ((o = a = e), s);
          }
          function m() {
            var t = Aa(),
              n = g(t);
            if (((o = arguments), (a = this), (f = t), n)) {
              if (c === e)
                return (function (e) {
                  return (l = e), (c = Po(y, r)), h ? v(e) : s;
                })(f);
              if (p) return mi(c), (c = Po(y, r)), v(f);
            }
            return c === e && (c = Po(y, r)), s;
          }
          return (
            (r = vu(r) || 0),
            Za(i) &&
              ((h = !!i.leading),
              (u = (p = "maxWait" in i) ? gn(vu(i.maxWait) || 0, r) : u),
              (d = "trailing" in i ? !!i.trailing : d)),
            (m.cancel = function () {
              c !== e && mi(c), (l = 0), (o = f = a = c = e);
            }),
            (m.flush = function () {
              return c === e ? s : _(Aa());
            }),
            m
          );
        }
        var Ca = Kr(function (e, t) {
            return sr(e, 1, t);
          }),
          Ra = Kr(function (e, t, n) {
            return sr(e, vu(t) || 0, n);
          });
        function La(e, n) {
          if ("function" != typeof e || (null != n && "function" != typeof n))
            throw new Pe(t);
          var r = function t() {
            var r = arguments,
              i = n ? n.apply(this, r) : r[0],
              o = t.cache;
            if (o.has(i)) return o.get(i);
            var a = e.apply(this, r);
            return (t.cache = o.set(i, a) || o), a;
          };
          return (r.cache = new (La.Cache || Wn)()), r;
        }
        function Da(e) {
          if ("function" != typeof e) throw new Pe(t);
          return function () {
            var t = arguments;
            switch (t.length) {
              case 0:
                return !e.call(this);
              case 1:
                return !e.call(this, t[0]);
              case 2:
                return !e.call(this, t[0], t[1]);
              case 3:
                return !e.call(this, t[0], t[1], t[2]);
            }
            return !e.apply(this, t);
          };
        }
        La.Cache = Wn;
        var Ba = yi(function (e, t) {
            var n = (t =
              1 == t.length && qa(t[0])
                ? Ot(t[0], Wt(oo()))
                : Ot(vr(t, 1), Wt(oo()))).length;
            return Kr(function (r) {
              for (var i = -1, o = yn(r.length, n); ++i < o; )
                r[i] = t[i].call(this, r[i]);
              return mt(e, this, r);
            });
          }),
          Na = Kr(function (t, n) {
            var r = nn(n, io(Na));
            return Ji(t, i, e, n, r);
          }),
          Ua = Kr(function (t, n) {
            var r = nn(n, io(Ua));
            return Ji(t, 64, e, n, r);
          }),
          ja = Zi(function (t, n) {
            return Ji(t, 256, e, e, e, n);
          });
        function Ma(e, t) {
          return e === t || (e != e && t != t);
        }
        var $a = qi(Sr),
          Fa = qi(function (e, t) {
            return e >= t;
          }),
          Ha = Tr(
            (function () {
              return arguments;
            })()
          )
            ? Tr
            : function (e) {
                return eu(e) && De.call(e, "callee") && !Ye.call(e, "callee");
              },
          qa = we.isArray,
          za = pt
            ? Wt(pt)
            : function (e) {
                return eu(e) && xr(e) == P;
              };
        function Wa(e) {
          return null != e && Qa(e.length) && !Ya(e);
        }
        function Va(e) {
          return eu(e) && Wa(e);
        }
        var Ka = hn || vs,
          Ja = dt
            ? Wt(dt)
            : function (e) {
                return eu(e) && xr(e) == v;
              };
        function Ga(e) {
          if (!eu(e)) return !1;
          var t = xr(e);
          return (
            t == g ||
            "[object DOMException]" == t ||
            ("string" == typeof e.message &&
              "string" == typeof e.name &&
              !ru(e))
          );
        }
        function Ya(e) {
          if (!Za(e)) return !1;
          var t = xr(e);
          return (
            t == y ||
            t == _ ||
            "[object AsyncFunction]" == t ||
            "[object Proxy]" == t
          );
        }
        function Xa(e) {
          return "number" == typeof e && e == pu(e);
        }
        function Qa(e) {
          return "number" == typeof e && e > -1 && e % 1 == 0 && e <= u;
        }
        function Za(e) {
          var t = f(e);
          return null != e && ("object" == t || "function" == t);
        }
        function eu(e) {
          return null != e && "object" == f(e);
        }
        var tu = vt
          ? Wt(vt)
          : function (e) {
              return eu(e) && lo(e) == m;
            };
        function nu(e) {
          return "number" == typeof e || (eu(e) && xr(e) == w);
        }
        function ru(e) {
          if (!eu(e) || xr(e) != k) return !1;
          var t = We(e);
          if (null === t) return !0;
          var n = De.call(t, "constructor") && t.constructor;
          return "function" == typeof n && n instanceof n && Le.call(n) == je;
        }
        var iu = gt
            ? Wt(gt)
            : function (e) {
                return eu(e) && xr(e) == x;
              },
          ou = yt
            ? Wt(yt)
            : function (e) {
                return eu(e) && lo(e) == S;
              };
        function au(e) {
          return "string" == typeof e || (!qa(e) && eu(e) && xr(e) == A);
        }
        function uu(e) {
          return "symbol" == f(e) || (eu(e) && xr(e) == I);
        }
        var su = _t
            ? Wt(_t)
            : function (e) {
                return eu(e) && Qa(e.length) && !!et[xr(e)];
              },
          cu = qi(Br),
          fu = qi(function (e, t) {
            return e <= t;
          });
        function lu(e) {
          if (!e) return [];
          if (Wa(e)) return au(e) ? an(e) : Ii(e);
          if (at && e[at])
            return (function (e) {
              for (var t, n = []; !(t = e.next()).done; ) n.push(t.value);
              return n;
            })(e[at]());
          var t = lo(e);
          return (t == m ? en : t == S ? rn : Mu)(e);
        }
        function hu(e) {
          return e
            ? (e = vu(e)) === a || e === -1 / 0
              ? 17976931348623157e292 * (e < 0 ? -1 : 1)
              : e == e
              ? e
              : 0
            : 0 === e
            ? e
            : 0;
        }
        function pu(e) {
          var t = hu(e),
            n = t % 1;
          return t == t ? (n ? t - n : t) : 0;
        }
        function du(e) {
          return e ? or(pu(e), 0, c) : 0;
        }
        function vu(e) {
          if ("number" == typeof e) return e;
          if (uu(e)) return s;
          if (Za(e)) {
            var t = "function" == typeof e.valueOf ? e.valueOf() : e;
            e = Za(t) ? t + "" : t;
          }
          if ("string" != typeof e) return 0 === e ? e : +e;
          e = zt(e);
          var n = le.test(e);
          return n || pe.test(e)
            ? it(e.slice(2), n ? 2 : 8)
            : fe.test(e)
            ? s
            : +e;
        }
        function gu(e) {
          return Oi(e, Cu(e));
        }
        function yu(e) {
          return null == e ? "" : ai(e);
        }
        var _u = Ti(function (e, t) {
            if (ko(t) || Wa(t)) Oi(t, Eu(t), e);
            else for (var n in t) De.call(t, n) && Zn(e, n, t[n]);
          }),
          mu = Ti(function (e, t) {
            Oi(t, Cu(t), e);
          }),
          wu = Ti(function (e, t, n, r) {
            Oi(t, Cu(t), e, r);
          }),
          ku = Ti(function (e, t, n, r) {
            Oi(t, Eu(t), e, r);
          }),
          bu = Zi(ir),
          xu = Kr(function (t, n) {
            t = Ae(t);
            var r = -1,
              i = n.length,
              o = i > 2 ? n[2] : e;
            for (o && yo(n[0], n[1], o) && (i = 1); ++r < i; )
              for (var a = n[r], u = Cu(a), s = -1, c = u.length; ++s < c; ) {
                var f = u[s],
                  l = t[f];
                (l === e || (Ma(l, Ce[f]) && !De.call(t, f))) && (t[f] = a[f]);
              }
            return t;
          }),
          Su = Kr(function (t) {
            return t.push(e, Yi), mt(Lu, e, t);
          });
        function Au(t, n, r) {
          var i = null == t ? e : kr(t, n);
          return i === e ? r : i;
        }
        function Iu(e, t) {
          return null != e && ho(e, t, Ir);
        }
        var Ou = ji(function (e, t, n) {
            null != t && "function" != typeof t.toString && (t = Ue.call(t)),
              (e[t] = n);
          }, Zu(ns)),
          Pu = ji(function (e, t, n) {
            null != t && "function" != typeof t.toString && (t = Ue.call(t)),
              De.call(e, t) ? e[t].push(n) : (e[t] = [n]);
          }, oo),
          Tu = Kr(Pr);
        function Eu(e) {
          return Wa(e) ? Jn(e) : Dr(e);
        }
        function Cu(e) {
          return Wa(e)
            ? Jn(e, !0)
            : (function (e) {
                if (!Za(e))
                  return (function (e) {
                    var t = [];
                    if (null != e) for (var n in Ae(e)) t.push(n);
                    return t;
                  })(e);
                var t = ko(e),
                  n = [];
                for (var r in e)
                  ("constructor" != r || (!t && De.call(e, r))) && n.push(r);
                return n;
              })(e);
        }
        var Ru = Ti(function (e, t, n) {
            Mr(e, t, n);
          }),
          Lu = Ti(function (e, t, n, r) {
            Mr(e, t, n, r);
          }),
          Du = Zi(function (e, t) {
            var n = {};
            if (null == e) return n;
            var r = !1;
            (t = Ot(t, function (t) {
              return (t = gi(t, e)), r || (r = t.length > 1), t;
            })),
              Oi(e, to(e), n),
              r && (n = ar(n, 7, Xi));
            for (var i = t.length; i--; ) si(n, t[i]);
            return n;
          }),
          Bu = Zi(function (e, t) {
            return null == e
              ? {}
              : (function (e, t) {
                  return Hr(e, t, function (t, n) {
                    return Iu(e, n);
                  });
                })(e, t);
          });
        function Nu(e, t) {
          if (null == e) return {};
          var n = Ot(to(e), function (e) {
            return [e];
          });
          return (
            (t = oo(t)),
            Hr(e, n, function (e, n) {
              return t(e, n[0]);
            })
          );
        }
        var Uu = Ki(Eu),
          ju = Ki(Cu);
        function Mu(e) {
          return null == e ? [] : Vt(e, Eu(e));
        }
        var $u = Li(function (e, t, n) {
          return (t = t.toLowerCase()), e + (n ? Fu(t) : t);
        });
        function Fu(e) {
          return Gu(yu(e).toLowerCase());
        }
        function Hu(e) {
          return (e = yu(e)) && e.replace(ve, Yt).replace(Ke, "");
        }
        var qu = Li(function (e, t, n) {
            return e + (n ? "-" : "") + t.toLowerCase();
          }),
          zu = Li(function (e, t, n) {
            return e + (n ? " " : "") + t.toLowerCase();
          }),
          Wu = Ri("toLowerCase"),
          Vu = Li(function (e, t, n) {
            return e + (n ? "_" : "") + t.toLowerCase();
          }),
          Ku = Li(function (e, t, n) {
            return e + (n ? " " : "") + Gu(t);
          }),
          Ju = Li(function (e, t, n) {
            return e + (n ? " " : "") + t.toUpperCase();
          }),
          Gu = Ri("toUpperCase");
        function Yu(t, n, r) {
          return (
            (t = yu(t)),
            (n = r ? e : n) === e
              ? (function (e) {
                  return Xe.test(e);
                })(t)
                ? (function (e) {
                    return e.match(Ge) || [];
                  })(t)
                : (function (e) {
                    return e.match(oe) || [];
                  })(t)
              : t.match(n) || []
          );
        }
        var Xu = Kr(function (t, n) {
            try {
              return mt(t, e, n);
            } catch (e) {
              return Ga(e) ? e : new be(e);
            }
          }),
          Qu = Zi(function (e, t) {
            return (
              kt(t, function (t) {
                (t = No(t)), rr(e, t, Pa(e[t], e));
              }),
              e
            );
          });
        function Zu(e) {
          return function () {
            return e;
          };
        }
        var es = Ni(),
          ts = Ni(!0);
        function ns(e) {
          return e;
        }
        function rs(e) {
          return Lr("function" == typeof e ? e : ar(e, 1));
        }
        var is = Kr(function (e, t) {
            return function (n) {
              return Pr(n, e, t);
            };
          }),
          os = Kr(function (e, t) {
            return function (n) {
              return Pr(e, n, t);
            };
          });
        function as(e, t, n) {
          var r = Eu(t),
            i = wr(t, r);
          null != n ||
            (Za(t) && (i.length || !r.length)) ||
            ((n = t), (t = e), (e = this), (i = wr(t, Eu(t))));
          var o = !(Za(n) && "chain" in n && !n.chain),
            a = Ya(e);
          return (
            kt(i, function (n) {
              var r = t[n];
              (e[n] = r),
                a &&
                  (e.prototype[n] = function () {
                    var t = this.__chain__;
                    if (o || t) {
                      var n = e(this.__wrapped__);
                      return (
                        (n.__actions__ = Ii(this.__actions__)).push({
                          func: r,
                          args: arguments,
                          thisArg: e,
                        }),
                        (n.__chain__ = t),
                        n
                      );
                    }
                    return r.apply(e, Pt([this.value()], arguments));
                  });
            }),
            e
          );
        }
        function us() {}
        var ss = $i(Ot),
          cs = $i(xt),
          fs = $i(Ct);
        function ls(e) {
          return _o(e)
            ? Mt(No(e))
            : (function (e) {
                return function (t) {
                  return kr(t, e);
                };
              })(e);
        }
        var hs = Hi(),
          ps = Hi(!0);
        function ds() {
          return [];
        }
        function vs() {
          return !1;
        }
        var gs,
          ys = Mi(function (e, t) {
            return e + t;
          }, 0),
          _s = Wi("ceil"),
          ms = Mi(function (e, t) {
            return e / t;
          }, 1),
          ws = Wi("floor"),
          ks = Mi(function (e, t) {
            return e * t;
          }, 1),
          bs = Wi("round"),
          xs = Mi(function (e, t) {
            return e - t;
          }, 0);
        return (
          (jn.after = function (e, n) {
            if ("function" != typeof n) throw new Pe(t);
            return (
              (e = pu(e)),
              function () {
                if (--e < 1) return n.apply(this, arguments);
              }
            );
          }),
          (jn.ary = Ia),
          (jn.assign = _u),
          (jn.assignIn = mu),
          (jn.assignInWith = wu),
          (jn.assignWith = ku),
          (jn.at = bu),
          (jn.before = Oa),
          (jn.bind = Pa),
          (jn.bindAll = Qu),
          (jn.bindKey = Ta),
          (jn.castArray = function () {
            if (!arguments.length) return [];
            var e = arguments[0];
            return qa(e) ? e : [e];
          }),
          (jn.chain = la),
          (jn.chunk = function (t, n, r) {
            n = (r ? yo(t, n, r) : n === e) ? 1 : gn(pu(n), 0);
            var i = null == t ? 0 : t.length;
            if (!i || n < 1) return [];
            for (var o = 0, a = 0, u = we($t(i / n)); o < i; )
              u[a++] = ei(t, o, (o += n));
            return u;
          }),
          (jn.compact = function (e) {
            for (
              var t = -1, n = null == e ? 0 : e.length, r = 0, i = [];
              ++t < n;

            ) {
              var o = e[t];
              o && (i[r++] = o);
            }
            return i;
          }),
          (jn.concat = function () {
            var e = arguments.length;
            if (!e) return [];
            for (var t = we(e - 1), n = arguments[0], r = e; r--; )
              t[r - 1] = arguments[r];
            return Pt(qa(n) ? Ii(n) : [n], vr(t, 1));
          }),
          (jn.cond = function (e) {
            var n = null == e ? 0 : e.length,
              r = oo();
            return (
              (e = n
                ? Ot(e, function (e) {
                    if ("function" != typeof e[1]) throw new Pe(t);
                    return [r(e[0]), e[1]];
                  })
                : []),
              Kr(function (t) {
                for (var r = -1; ++r < n; ) {
                  var i = e[r];
                  if (mt(i[0], this, t)) return mt(i[1], this, t);
                }
              })
            );
          }),
          (jn.conforms = function (e) {
            return (function (e) {
              var t = Eu(e);
              return function (n) {
                return ur(n, e, t);
              };
            })(ar(e, 1));
          }),
          (jn.constant = Zu),
          (jn.countBy = da),
          (jn.create = function (e, t) {
            var n = Mn(e);
            return null == t ? n : nr(n, t);
          }),
          (jn.curry = function t(n, r, i) {
            var o = Ji(n, 8, e, e, e, e, e, (r = i ? e : r));
            return (o.placeholder = t.placeholder), o;
          }),
          (jn.curryRight = function t(n, r, i) {
            var o = Ji(n, 16, e, e, e, e, e, (r = i ? e : r));
            return (o.placeholder = t.placeholder), o;
          }),
          (jn.debounce = Ea),
          (jn.defaults = xu),
          (jn.defaultsDeep = Su),
          (jn.defer = Ca),
          (jn.delay = Ra),
          (jn.difference = Mo),
          (jn.differenceBy = $o),
          (jn.differenceWith = Fo),
          (jn.drop = function (t, n, r) {
            var i = null == t ? 0 : t.length;
            return i
              ? ei(t, (n = r || n === e ? 1 : pu(n)) < 0 ? 0 : n, i)
              : [];
          }),
          (jn.dropRight = function (t, n, r) {
            var i = null == t ? 0 : t.length;
            return i
              ? ei(t, 0, (n = i - (n = r || n === e ? 1 : pu(n))) < 0 ? 0 : n)
              : [];
          }),
          (jn.dropRightWhile = function (e, t) {
            return e && e.length ? fi(e, oo(t, 3), !0, !0) : [];
          }),
          (jn.dropWhile = function (e, t) {
            return e && e.length ? fi(e, oo(t, 3), !0) : [];
          }),
          (jn.fill = function (t, n, r, i) {
            var o = null == t ? 0 : t.length;
            return o
              ? (r && "number" != typeof r && yo(t, n, r) && ((r = 0), (i = o)),
                (function (t, n, r, i) {
                  var o = t.length;
                  for (
                    (r = pu(r)) < 0 && (r = -r > o ? 0 : o + r),
                      (i = i === e || i > o ? o : pu(i)) < 0 && (i += o),
                      i = r > i ? 0 : du(i);
                    r < i;

                  )
                    t[r++] = n;
                  return t;
                })(t, n, r, i))
              : [];
          }),
          (jn.filter = function (e, t) {
            return (qa(e) ? St : dr)(e, oo(t, 3));
          }),
          (jn.flatMap = function (e, t) {
            return vr(ba(e, t), 1);
          }),
          (jn.flatMapDeep = function (e, t) {
            return vr(ba(e, t), a);
          }),
          (jn.flatMapDepth = function (t, n, r) {
            return (r = r === e ? 1 : pu(r)), vr(ba(t, n), r);
          }),
          (jn.flatten = zo),
          (jn.flattenDeep = function (e) {
            return null != e && e.length ? vr(e, a) : [];
          }),
          (jn.flattenDepth = function (t, n) {
            return null != t && t.length
              ? vr(t, (n = n === e ? 1 : pu(n)))
              : [];
          }),
          (jn.flip = function (e) {
            return Ji(e, 512);
          }),
          (jn.flow = es),
          (jn.flowRight = ts),
          (jn.fromPairs = function (e) {
            for (var t = -1, n = null == e ? 0 : e.length, r = {}; ++t < n; ) {
              var i = e[t];
              r[i[0]] = i[1];
            }
            return r;
          }),
          (jn.functions = function (e) {
            return null == e ? [] : wr(e, Eu(e));
          }),
          (jn.functionsIn = function (e) {
            return null == e ? [] : wr(e, Cu(e));
          }),
          (jn.groupBy = ma),
          (jn.initial = function (e) {
            return null != e && e.length ? ei(e, 0, -1) : [];
          }),
          (jn.intersection = Vo),
          (jn.intersectionBy = Ko),
          (jn.intersectionWith = Jo),
          (jn.invert = Ou),
          (jn.invertBy = Pu),
          (jn.invokeMap = wa),
          (jn.iteratee = rs),
          (jn.keyBy = ka),
          (jn.keys = Eu),
          (jn.keysIn = Cu),
          (jn.map = ba),
          (jn.mapKeys = function (e, t) {
            var n = {};
            return (
              (t = oo(t, 3)),
              _r(e, function (e, r, i) {
                rr(n, t(e, r, i), e);
              }),
              n
            );
          }),
          (jn.mapValues = function (e, t) {
            var n = {};
            return (
              (t = oo(t, 3)),
              _r(e, function (e, r, i) {
                rr(n, r, t(e, r, i));
              }),
              n
            );
          }),
          (jn.matches = function (e) {
            return Ur(ar(e, 1));
          }),
          (jn.matchesProperty = function (e, t) {
            return jr(e, ar(t, 1));
          }),
          (jn.memoize = La),
          (jn.merge = Ru),
          (jn.mergeWith = Lu),
          (jn.method = is),
          (jn.methodOf = os),
          (jn.mixin = as),
          (jn.negate = Da),
          (jn.nthArg = function (e) {
            return (
              (e = pu(e)),
              Kr(function (t) {
                return $r(t, e);
              })
            );
          }),
          (jn.omit = Du),
          (jn.omitBy = function (e, t) {
            return Nu(e, Da(oo(t)));
          }),
          (jn.once = function (e) {
            return Oa(2, e);
          }),
          (jn.orderBy = function (t, n, r, i) {
            return null == t
              ? []
              : (qa(n) || (n = null == n ? [] : [n]),
                qa((r = i ? e : r)) || (r = null == r ? [] : [r]),
                Fr(t, n, r));
          }),
          (jn.over = ss),
          (jn.overArgs = Ba),
          (jn.overEvery = cs),
          (jn.overSome = fs),
          (jn.partial = Na),
          (jn.partialRight = Ua),
          (jn.partition = xa),
          (jn.pick = Bu),
          (jn.pickBy = Nu),
          (jn.property = ls),
          (jn.propertyOf = function (t) {
            return function (n) {
              return null == t ? e : kr(t, n);
            };
          }),
          (jn.pull = Yo),
          (jn.pullAll = Xo),
          (jn.pullAllBy = function (e, t, n) {
            return e && e.length && t && t.length ? qr(e, t, oo(n, 2)) : e;
          }),
          (jn.pullAllWith = function (t, n, r) {
            return t && t.length && n && n.length ? qr(t, n, e, r) : t;
          }),
          (jn.pullAt = Qo),
          (jn.range = hs),
          (jn.rangeRight = ps),
          (jn.rearg = ja),
          (jn.reject = function (e, t) {
            return (qa(e) ? St : dr)(e, Da(oo(t, 3)));
          }),
          (jn.remove = function (e, t) {
            var n = [];
            if (!e || !e.length) return n;
            var r = -1,
              i = [],
              o = e.length;
            for (t = oo(t, 3); ++r < o; ) {
              var a = e[r];
              t(a, r, e) && (n.push(a), i.push(r));
            }
            return zr(e, i), n;
          }),
          (jn.rest = function (n, r) {
            if ("function" != typeof n) throw new Pe(t);
            return Kr(n, (r = r === e ? r : pu(r)));
          }),
          (jn.reverse = Zo),
          (jn.sampleSize = function (t, n, r) {
            return (
              (n = (r ? yo(t, n, r) : n === e) ? 1 : pu(n)),
              (qa(t) ? Yn : Gr)(t, n)
            );
          }),
          (jn.set = function (e, t, n) {
            return null == e ? e : Yr(e, t, n);
          }),
          (jn.setWith = function (t, n, r, i) {
            return (
              (i = "function" == typeof i ? i : e),
              null == t ? t : Yr(t, n, r, i)
            );
          }),
          (jn.shuffle = function (e) {
            return (qa(e) ? Xn : Zr)(e);
          }),
          (jn.slice = function (t, n, r) {
            var i = null == t ? 0 : t.length;
            return i
              ? (r && "number" != typeof r && yo(t, n, r)
                  ? ((n = 0), (r = i))
                  : ((n = null == n ? 0 : pu(n)), (r = r === e ? i : pu(r))),
                ei(t, n, r))
              : [];
          }),
          (jn.sortBy = Sa),
          (jn.sortedUniq = function (e) {
            return e && e.length ? ii(e) : [];
          }),
          (jn.sortedUniqBy = function (e, t) {
            return e && e.length ? ii(e, oo(t, 2)) : [];
          }),
          (jn.split = function (t, n, r) {
            return (
              r && "number" != typeof r && yo(t, n, r) && (n = r = e),
              (r = r === e ? c : r >>> 0)
                ? (t = yu(t)) &&
                  ("string" == typeof n || (null != n && !iu(n))) &&
                  !(n = ai(n)) &&
                  Zt(t)
                  ? _i(an(t), 0, r)
                  : t.split(n, r)
                : []
            );
          }),
          (jn.spread = function (e, n) {
            if ("function" != typeof e) throw new Pe(t);
            return (
              (n = null == n ? 0 : gn(pu(n), 0)),
              Kr(function (t) {
                var r = t[n],
                  i = _i(t, 0, n);
                return r && Pt(i, r), mt(e, this, i);
              })
            );
          }),
          (jn.tail = function (e) {
            var t = null == e ? 0 : e.length;
            return t ? ei(e, 1, t) : [];
          }),
          (jn.take = function (t, n, r) {
            return t && t.length
              ? ei(t, 0, (n = r || n === e ? 1 : pu(n)) < 0 ? 0 : n)
              : [];
          }),
          (jn.takeRight = function (t, n, r) {
            var i = null == t ? 0 : t.length;
            return i
              ? ei(t, (n = i - (n = r || n === e ? 1 : pu(n))) < 0 ? 0 : n, i)
              : [];
          }),
          (jn.takeRightWhile = function (e, t) {
            return e && e.length ? fi(e, oo(t, 3), !1, !0) : [];
          }),
          (jn.takeWhile = function (e, t) {
            return e && e.length ? fi(e, oo(t, 3)) : [];
          }),
          (jn.tap = function (e, t) {
            return t(e), e;
          }),
          (jn.throttle = function (e, n, r) {
            var i = !0,
              o = !0;
            if ("function" != typeof e) throw new Pe(t);
            return (
              Za(r) &&
                ((i = "leading" in r ? !!r.leading : i),
                (o = "trailing" in r ? !!r.trailing : o)),
              Ea(e, n, { leading: i, maxWait: n, trailing: o })
            );
          }),
          (jn.thru = ha),
          (jn.toArray = lu),
          (jn.toPairs = Uu),
          (jn.toPairsIn = ju),
          (jn.toPath = function (e) {
            return qa(e) ? Ot(e, No) : uu(e) ? [e] : Ii(Bo(yu(e)));
          }),
          (jn.toPlainObject = gu),
          (jn.transform = function (e, t, n) {
            var r = qa(e),
              i = r || Ka(e) || su(e);
            if (((t = oo(t, 4)), null == n)) {
              var o = e && e.constructor;
              n = i ? (r ? new o() : []) : Za(e) && Ya(o) ? Mn(We(e)) : {};
            }
            return (
              (i ? kt : _r)(e, function (e, r, i) {
                return t(n, e, r, i);
              }),
              n
            );
          }),
          (jn.unary = function (e) {
            return Ia(e, 1);
          }),
          (jn.union = ea),
          (jn.unionBy = ta),
          (jn.unionWith = na),
          (jn.uniq = function (e) {
            return e && e.length ? ui(e) : [];
          }),
          (jn.uniqBy = function (e, t) {
            return e && e.length ? ui(e, oo(t, 2)) : [];
          }),
          (jn.uniqWith = function (t, n) {
            return (
              (n = "function" == typeof n ? n : e),
              t && t.length ? ui(t, e, n) : []
            );
          }),
          (jn.unset = function (e, t) {
            return null == e || si(e, t);
          }),
          (jn.unzip = ra),
          (jn.unzipWith = ia),
          (jn.update = function (e, t, n) {
            return null == e ? e : ci(e, t, vi(n));
          }),
          (jn.updateWith = function (t, n, r, i) {
            return (
              (i = "function" == typeof i ? i : e),
              null == t ? t : ci(t, n, vi(r), i)
            );
          }),
          (jn.values = Mu),
          (jn.valuesIn = function (e) {
            return null == e ? [] : Vt(e, Cu(e));
          }),
          (jn.without = oa),
          (jn.words = Yu),
          (jn.wrap = function (e, t) {
            return Na(vi(t), e);
          }),
          (jn.xor = aa),
          (jn.xorBy = ua),
          (jn.xorWith = sa),
          (jn.zip = ca),
          (jn.zipObject = function (e, t) {
            return pi(e || [], t || [], Zn);
          }),
          (jn.zipObjectDeep = function (e, t) {
            return pi(e || [], t || [], Yr);
          }),
          (jn.zipWith = fa),
          (jn.entries = Uu),
          (jn.entriesIn = ju),
          (jn.extend = mu),
          (jn.extendWith = wu),
          as(jn, jn),
          (jn.add = ys),
          (jn.attempt = Xu),
          (jn.camelCase = $u),
          (jn.capitalize = Fu),
          (jn.ceil = _s),
          (jn.clamp = function (t, n, r) {
            return (
              r === e && ((r = n), (n = e)),
              r !== e && (r = (r = vu(r)) == r ? r : 0),
              n !== e && (n = (n = vu(n)) == n ? n : 0),
              or(vu(t), n, r)
            );
          }),
          (jn.clone = function (e) {
            return ar(e, 4);
          }),
          (jn.cloneDeep = function (e) {
            return ar(e, 5);
          }),
          (jn.cloneDeepWith = function (t, n) {
            return ar(t, 5, (n = "function" == typeof n ? n : e));
          }),
          (jn.cloneWith = function (t, n) {
            return ar(t, 4, (n = "function" == typeof n ? n : e));
          }),
          (jn.conformsTo = function (e, t) {
            return null == t || ur(e, t, Eu(t));
          }),
          (jn.deburr = Hu),
          (jn.defaultTo = function (e, t) {
            return null == e || e != e ? t : e;
          }),
          (jn.divide = ms),
          (jn.endsWith = function (t, n, r) {
            (t = yu(t)), (n = ai(n));
            var i = t.length,
              o = (r = r === e ? i : or(pu(r), 0, i));
            return (r -= n.length) >= 0 && t.slice(r, o) == n;
          }),
          (jn.eq = Ma),
          (jn.escape = function (e) {
            return (e = yu(e)) && W.test(e) ? e.replace(q, Xt) : e;
          }),
          (jn.escapeRegExp = function (e) {
            return (e = yu(e)) && Z.test(e) ? e.replace(Q, "\\$&") : e;
          }),
          (jn.every = function (t, n, r) {
            var i = qa(t) ? xt : hr;
            return r && yo(t, n, r) && (n = e), i(t, oo(n, 3));
          }),
          (jn.find = va),
          (jn.findIndex = Ho),
          (jn.findKey = function (e, t) {
            return Lt(e, oo(t, 3), _r);
          }),
          (jn.findLast = ga),
          (jn.findLastIndex = qo),
          (jn.findLastKey = function (e, t) {
            return Lt(e, oo(t, 3), mr);
          }),
          (jn.floor = ws),
          (jn.forEach = ya),
          (jn.forEachRight = _a),
          (jn.forIn = function (e, t) {
            return null == e ? e : gr(e, oo(t, 3), Cu);
          }),
          (jn.forInRight = function (e, t) {
            return null == e ? e : yr(e, oo(t, 3), Cu);
          }),
          (jn.forOwn = function (e, t) {
            return e && _r(e, oo(t, 3));
          }),
          (jn.forOwnRight = function (e, t) {
            return e && mr(e, oo(t, 3));
          }),
          (jn.get = Au),
          (jn.gt = $a),
          (jn.gte = Fa),
          (jn.has = function (e, t) {
            return null != e && ho(e, t, Ar);
          }),
          (jn.hasIn = Iu),
          (jn.head = Wo),
          (jn.identity = ns),
          (jn.includes = function (e, t, n, r) {
            (e = Wa(e) ? e : Mu(e)), (n = n && !r ? pu(n) : 0);
            var i = e.length;
            return (
              n < 0 && (n = gn(i + n, 0)),
              au(e) ? n <= i && e.indexOf(t, n) > -1 : !!i && Bt(e, t, n) > -1
            );
          }),
          (jn.indexOf = function (e, t, n) {
            var r = null == e ? 0 : e.length;
            if (!r) return -1;
            var i = null == n ? 0 : pu(n);
            return i < 0 && (i = gn(r + i, 0)), Bt(e, t, i);
          }),
          (jn.inRange = function (t, n, r) {
            return (
              (n = hu(n)),
              r === e ? ((r = n), (n = 0)) : (r = hu(r)),
              (function (e, t, n) {
                return e >= yn(t, n) && e < gn(t, n);
              })((t = vu(t)), n, r)
            );
          }),
          (jn.invoke = Tu),
          (jn.isArguments = Ha),
          (jn.isArray = qa),
          (jn.isArrayBuffer = za),
          (jn.isArrayLike = Wa),
          (jn.isArrayLikeObject = Va),
          (jn.isBoolean = function (e) {
            return !0 === e || !1 === e || (eu(e) && xr(e) == d);
          }),
          (jn.isBuffer = Ka),
          (jn.isDate = Ja),
          (jn.isElement = function (e) {
            return eu(e) && 1 === e.nodeType && !ru(e);
          }),
          (jn.isEmpty = function (e) {
            if (null == e) return !0;
            if (
              Wa(e) &&
              (qa(e) ||
                "string" == typeof e ||
                "function" == typeof e.splice ||
                Ka(e) ||
                su(e) ||
                Ha(e))
            )
              return !e.length;
            var t = lo(e);
            if (t == m || t == S) return !e.size;
            if (ko(e)) return !Dr(e).length;
            for (var n in e) if (De.call(e, n)) return !1;
            return !0;
          }),
          (jn.isEqual = function (e, t) {
            return Er(e, t);
          }),
          (jn.isEqualWith = function (t, n, r) {
            var i = (r = "function" == typeof r ? r : e) ? r(t, n) : e;
            return i === e ? Er(t, n, e, r) : !!i;
          }),
          (jn.isError = Ga),
          (jn.isFinite = function (e) {
            return "number" == typeof e && pn(e);
          }),
          (jn.isFunction = Ya),
          (jn.isInteger = Xa),
          (jn.isLength = Qa),
          (jn.isMap = tu),
          (jn.isMatch = function (e, t) {
            return e === t || Cr(e, t, uo(t));
          }),
          (jn.isMatchWith = function (t, n, r) {
            return (r = "function" == typeof r ? r : e), Cr(t, n, uo(n), r);
          }),
          (jn.isNaN = function (e) {
            return nu(e) && e != +e;
          }),
          (jn.isNative = function (e) {
            if (wo(e))
              throw new be(
                "Unsupported core-js use. Try https://npms.io/search?q=ponyfill."
              );
            return Rr(e);
          }),
          (jn.isNil = function (e) {
            return null == e;
          }),
          (jn.isNull = function (e) {
            return null === e;
          }),
          (jn.isNumber = nu),
          (jn.isObject = Za),
          (jn.isObjectLike = eu),
          (jn.isPlainObject = ru),
          (jn.isRegExp = iu),
          (jn.isSafeInteger = function (e) {
            return Xa(e) && e >= -9007199254740991 && e <= u;
          }),
          (jn.isSet = ou),
          (jn.isString = au),
          (jn.isSymbol = uu),
          (jn.isTypedArray = su),
          (jn.isUndefined = function (t) {
            return t === e;
          }),
          (jn.isWeakMap = function (e) {
            return eu(e) && lo(e) == O;
          }),
          (jn.isWeakSet = function (e) {
            return eu(e) && "[object WeakSet]" == xr(e);
          }),
          (jn.join = function (e, t) {
            return null == e ? "" : dn.call(e, t);
          }),
          (jn.kebabCase = qu),
          (jn.last = Go),
          (jn.lastIndexOf = function (t, n, r) {
            var i = null == t ? 0 : t.length;
            if (!i) return -1;
            var o = i;
            return (
              r !== e && (o = (o = pu(r)) < 0 ? gn(i + o, 0) : yn(o, i - 1)),
              n == n
                ? (function (e, t, n) {
                    for (var r = n + 1; r--; ) if (e[r] === t) return r;
                    return r;
                  })(t, n, o)
                : Dt(t, Ut, o, !0)
            );
          }),
          (jn.lowerCase = zu),
          (jn.lowerFirst = Wu),
          (jn.lt = cu),
          (jn.lte = fu),
          (jn.max = function (t) {
            return t && t.length ? pr(t, ns, Sr) : e;
          }),
          (jn.maxBy = function (t, n) {
            return t && t.length ? pr(t, oo(n, 2), Sr) : e;
          }),
          (jn.mean = function (e) {
            return jt(e, ns);
          }),
          (jn.meanBy = function (e, t) {
            return jt(e, oo(t, 2));
          }),
          (jn.min = function (t) {
            return t && t.length ? pr(t, ns, Br) : e;
          }),
          (jn.minBy = function (t, n) {
            return t && t.length ? pr(t, oo(n, 2), Br) : e;
          }),
          (jn.stubArray = ds),
          (jn.stubFalse = vs),
          (jn.stubObject = function () {
            return {};
          }),
          (jn.stubString = function () {
            return "";
          }),
          (jn.stubTrue = function () {
            return !0;
          }),
          (jn.multiply = ks),
          (jn.nth = function (t, n) {
            return t && t.length ? $r(t, pu(n)) : e;
          }),
          (jn.noConflict = function () {
            return ut._ === this && (ut._ = Me), this;
          }),
          (jn.noop = us),
          (jn.now = Aa),
          (jn.pad = function (e, t, n) {
            e = yu(e);
            var r = (t = pu(t)) ? on(e) : 0;
            if (!t || r >= t) return e;
            var i = (t - r) / 2;
            return Fi(fn(i), n) + e + Fi($t(i), n);
          }),
          (jn.padEnd = function (e, t, n) {
            e = yu(e);
            var r = (t = pu(t)) ? on(e) : 0;
            return t && r < t ? e + Fi(t - r, n) : e;
          }),
          (jn.padStart = function (e, t, n) {
            e = yu(e);
            var r = (t = pu(t)) ? on(e) : 0;
            return t && r < t ? Fi(t - r, n) + e : e;
          }),
          (jn.parseInt = function (e, t, n) {
            return (
              n || null == t ? (t = 0) : t && (t = +t),
              mn(yu(e).replace(ee, ""), t || 0)
            );
          }),
          (jn.random = function (t, n, r) {
            if (
              (r && "boolean" != typeof r && yo(t, n, r) && (n = r = e),
              r === e &&
                ("boolean" == typeof n
                  ? ((r = n), (n = e))
                  : "boolean" == typeof t && ((r = t), (t = e))),
              t === e && n === e
                ? ((t = 0), (n = 1))
                : ((t = hu(t)), n === e ? ((n = t), (t = 0)) : (n = hu(n))),
              t > n)
            ) {
              var i = t;
              (t = n), (n = i);
            }
            if (r || t % 1 || n % 1) {
              var o = wn();
              return yn(t + o * (n - t + rt("1e-" + ((o + "").length - 1))), n);
            }
            return Wr(t, n);
          }),
          (jn.reduce = function (e, t, n) {
            var r = qa(e) ? Tt : Ft,
              i = arguments.length < 3;
            return r(e, oo(t, 4), n, i, fr);
          }),
          (jn.reduceRight = function (e, t, n) {
            var r = qa(e) ? Et : Ft,
              i = arguments.length < 3;
            return r(e, oo(t, 4), n, i, lr);
          }),
          (jn.repeat = function (t, n, r) {
            return (n = (r ? yo(t, n, r) : n === e) ? 1 : pu(n)), Vr(yu(t), n);
          }),
          (jn.replace = function () {
            var e = arguments,
              t = yu(e[0]);
            return e.length < 3 ? t : t.replace(e[1], e[2]);
          }),
          (jn.result = function (t, n, r) {
            var i = -1,
              o = (n = gi(n, t)).length;
            for (o || ((o = 1), (t = e)); ++i < o; ) {
              var a = null == t ? e : t[No(n[i])];
              a === e && ((i = o), (a = r)), (t = Ya(a) ? a.call(t) : a);
            }
            return t;
          }),
          (jn.round = bs),
          (jn.runInContext = te),
          (jn.sample = function (e) {
            return (qa(e) ? Gn : Jr)(e);
          }),
          (jn.size = function (e) {
            if (null == e) return 0;
            if (Wa(e)) return au(e) ? on(e) : e.length;
            var t = lo(e);
            return t == m || t == S ? e.size : Dr(e).length;
          }),
          (jn.snakeCase = Vu),
          (jn.some = function (t, n, r) {
            var i = qa(t) ? Ct : ti;
            return r && yo(t, n, r) && (n = e), i(t, oo(n, 3));
          }),
          (jn.sortedIndex = function (e, t) {
            return ni(e, t);
          }),
          (jn.sortedIndexBy = function (e, t, n) {
            return ri(e, t, oo(n, 2));
          }),
          (jn.sortedIndexOf = function (e, t) {
            var n = null == e ? 0 : e.length;
            if (n) {
              var r = ni(e, t);
              if (r < n && Ma(e[r], t)) return r;
            }
            return -1;
          }),
          (jn.sortedLastIndex = function (e, t) {
            return ni(e, t, !0);
          }),
          (jn.sortedLastIndexBy = function (e, t, n) {
            return ri(e, t, oo(n, 2), !0);
          }),
          (jn.sortedLastIndexOf = function (e, t) {
            if (null != e && e.length) {
              var n = ni(e, t, !0) - 1;
              if (Ma(e[n], t)) return n;
            }
            return -1;
          }),
          (jn.startCase = Ku),
          (jn.startsWith = function (e, t, n) {
            return (
              (e = yu(e)),
              (n = null == n ? 0 : or(pu(n), 0, e.length)),
              (t = ai(t)),
              e.slice(n, n + t.length) == t
            );
          }),
          (jn.subtract = xs),
          (jn.sum = function (e) {
            return e && e.length ? Ht(e, ns) : 0;
          }),
          (jn.sumBy = function (e, t) {
            return e && e.length ? Ht(e, oo(t, 2)) : 0;
          }),
          (jn.template = function (t, n, r) {
            var i = jn.templateSettings;
            r && yo(t, n, r) && (n = e), (t = yu(t)), (n = wu({}, n, i, Gi));
            var o,
              a,
              u = wu({}, n.imports, i.imports, Gi),
              s = Eu(u),
              c = Vt(u, s),
              f = 0,
              l = n.interpolate || ge,
              h = "__p += '",
              p = Ie(
                (n.escape || ge).source +
                  "|" +
                  l.source +
                  "|" +
                  (l === J ? se : ge).source +
                  "|" +
                  (n.evaluate || ge).source +
                  "|$",
                "g"
              ),
              d =
                "//# sourceURL=" +
                (De.call(n, "sourceURL")
                  ? (n.sourceURL + "").replace(/\s/g, " ")
                  : "lodash.templateSources[" + ++Ze + "]") +
                "\n";
            t.replace(p, function (e, n, r, i, u, s) {
              return (
                r || (r = i),
                (h += t.slice(f, s).replace(ye, Qt)),
                n && ((o = !0), (h += "' +\n__e(" + n + ") +\n'")),
                u && ((a = !0), (h += "';\n" + u + ";\n__p += '")),
                r &&
                  (h += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"),
                (f = s + e.length),
                e
              );
            }),
              (h += "';\n");
            var v = De.call(n, "variable") && n.variable;
            if (v) {
              if (ae.test(v))
                throw new be(
                  "Invalid `variable` option passed into `_.template`"
                );
            } else h = "with (obj) {\n" + h + "\n}\n";
            (h = (a ? h.replace(M, "") : h).replace($, "$1").replace(F, "$1;")),
              (h =
                "function(" +
                (v || "obj") +
                ") {\n" +
                (v ? "" : "obj || (obj = {});\n") +
                "var __t, __p = ''" +
                (o ? ", __e = _.escape" : "") +
                (a
                  ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n"
                  : ";\n") +
                h +
                "return __p\n}");
            var g = Xu(function () {
              return xe(s, d + "return " + h).apply(e, c);
            });
            if (((g.source = h), Ga(g))) throw g;
            return g;
          }),
          (jn.times = function (e, t) {
            if ((e = pu(e)) < 1 || e > u) return [];
            var n = c,
              r = yn(e, c);
            (t = oo(t)), (e -= c);
            for (var i = qt(r, t); ++n < e; ) t(n);
            return i;
          }),
          (jn.toFinite = hu),
          (jn.toInteger = pu),
          (jn.toLength = du),
          (jn.toLower = function (e) {
            return yu(e).toLowerCase();
          }),
          (jn.toNumber = vu),
          (jn.toSafeInteger = function (e) {
            return e ? or(pu(e), -9007199254740991, u) : 0 === e ? e : 0;
          }),
          (jn.toString = yu),
          (jn.toUpper = function (e) {
            return yu(e).toUpperCase();
          }),
          (jn.trim = function (t, n, r) {
            if ((t = yu(t)) && (r || n === e)) return zt(t);
            if (!t || !(n = ai(n))) return t;
            var i = an(t),
              o = an(n);
            return _i(i, Jt(i, o), Gt(i, o) + 1).join("");
          }),
          (jn.trimEnd = function (t, n, r) {
            if ((t = yu(t)) && (r || n === e)) return t.slice(0, un(t) + 1);
            if (!t || !(n = ai(n))) return t;
            var i = an(t);
            return _i(i, 0, Gt(i, an(n)) + 1).join("");
          }),
          (jn.trimStart = function (t, n, r) {
            if ((t = yu(t)) && (r || n === e)) return t.replace(ee, "");
            if (!t || !(n = ai(n))) return t;
            var i = an(t);
            return _i(i, Jt(i, an(n))).join("");
          }),
          (jn.truncate = function (t, n) {
            var r = 30,
              i = "...";
            if (Za(n)) {
              var o = "separator" in n ? n.separator : o;
              (r = "length" in n ? pu(n.length) : r),
                (i = "omission" in n ? ai(n.omission) : i);
            }
            var a = (t = yu(t)).length;
            if (Zt(t)) {
              var u = an(t);
              a = u.length;
            }
            if (r >= a) return t;
            var s = r - on(i);
            if (s < 1) return i;
            var c = u ? _i(u, 0, s).join("") : t.slice(0, s);
            if (o === e) return c + i;
            if ((u && (s += c.length - s), iu(o))) {
              if (t.slice(s).search(o)) {
                var f,
                  l = c;
                for (
                  o.global || (o = Ie(o.source, yu(ce.exec(o)) + "g")),
                    o.lastIndex = 0;
                  (f = o.exec(l));

                )
                  var h = f.index;
                c = c.slice(0, h === e ? s : h);
              }
            } else if (t.indexOf(ai(o), s) != s) {
              var p = c.lastIndexOf(o);
              p > -1 && (c = c.slice(0, p));
            }
            return c + i;
          }),
          (jn.unescape = function (e) {
            return (e = yu(e)) && z.test(e) ? e.replace(H, sn) : e;
          }),
          (jn.uniqueId = function (e) {
            var t = ++Be;
            return yu(e) + t;
          }),
          (jn.upperCase = Ju),
          (jn.upperFirst = Gu),
          (jn.each = ya),
          (jn.eachRight = _a),
          (jn.first = Wo),
          as(
            jn,
            ((gs = {}),
            _r(jn, function (e, t) {
              De.call(jn.prototype, t) || (gs[t] = e);
            }),
            gs),
            { chain: !1 }
          ),
          (jn.VERSION = "4.17.21"),
          kt(
            [
              "bind",
              "bindKey",
              "curry",
              "curryRight",
              "partial",
              "partialRight",
            ],
            function (e) {
              jn[e].placeholder = jn;
            }
          ),
          kt(["drop", "take"], function (t, n) {
            (Hn.prototype[t] = function (r) {
              r = r === e ? 1 : gn(pu(r), 0);
              var i = this.__filtered__ && !n ? new Hn(this) : this.clone();
              return (
                i.__filtered__
                  ? (i.__takeCount__ = yn(r, i.__takeCount__))
                  : i.__views__.push({
                      size: yn(r, c),
                      type: t + (i.__dir__ < 0 ? "Right" : ""),
                    }),
                i
              );
            }),
              (Hn.prototype[t + "Right"] = function (e) {
                return this.reverse()[t](e).reverse();
              });
          }),
          kt(["filter", "map", "takeWhile"], function (e, t) {
            var n = t + 1,
              r = 1 == n || 3 == n;
            Hn.prototype[e] = function (e) {
              var t = this.clone();
              return (
                t.__iteratees__.push({ iteratee: oo(e, 3), type: n }),
                (t.__filtered__ = t.__filtered__ || r),
                t
              );
            };
          }),
          kt(["head", "last"], function (e, t) {
            var n = "take" + (t ? "Right" : "");
            Hn.prototype[e] = function () {
              return this[n](1).value()[0];
            };
          }),
          kt(["initial", "tail"], function (e, t) {
            var n = "drop" + (t ? "" : "Right");
            Hn.prototype[e] = function () {
              return this.__filtered__ ? new Hn(this) : this[n](1);
            };
          }),
          (Hn.prototype.compact = function () {
            return this.filter(ns);
          }),
          (Hn.prototype.find = function (e) {
            return this.filter(e).head();
          }),
          (Hn.prototype.findLast = function (e) {
            return this.reverse().find(e);
          }),
          (Hn.prototype.invokeMap = Kr(function (e, t) {
            return "function" == typeof e
              ? new Hn(this)
              : this.map(function (n) {
                  return Pr(n, e, t);
                });
          })),
          (Hn.prototype.reject = function (e) {
            return this.filter(Da(oo(e)));
          }),
          (Hn.prototype.slice = function (t, n) {
            t = pu(t);
            var r = this;
            return r.__filtered__ && (t > 0 || n < 0)
              ? new Hn(r)
              : (t < 0 ? (r = r.takeRight(-t)) : t && (r = r.drop(t)),
                n !== e &&
                  (r = (n = pu(n)) < 0 ? r.dropRight(-n) : r.take(n - t)),
                r);
          }),
          (Hn.prototype.takeRightWhile = function (e) {
            return this.reverse().takeWhile(e).reverse();
          }),
          (Hn.prototype.toArray = function () {
            return this.take(c);
          }),
          _r(Hn.prototype, function (t, n) {
            var r = /^(?:filter|find|map|reject)|While$/.test(n),
              i = /^(?:head|last)$/.test(n),
              o = jn[i ? "take" + ("last" == n ? "Right" : "") : n],
              a = i || /^find/.test(n);
            o &&
              (jn.prototype[n] = function () {
                var n = this.__wrapped__,
                  u = i ? [1] : arguments,
                  s = n instanceof Hn,
                  c = u[0],
                  f = s || qa(n),
                  l = function (e) {
                    var t = o.apply(jn, Pt([e], u));
                    return i && h ? t[0] : t;
                  };
                f &&
                  r &&
                  "function" == typeof c &&
                  1 != c.length &&
                  (s = f = !1);
                var h = this.__chain__,
                  p = !!this.__actions__.length,
                  d = a && !h,
                  v = s && !p;
                if (!a && f) {
                  n = v ? n : new Hn(this);
                  var g = t.apply(n, u);
                  return (
                    g.__actions__.push({ func: ha, args: [l], thisArg: e }),
                    new Fn(g, h)
                  );
                }
                return d && v
                  ? t.apply(this, u)
                  : ((g = this.thru(l)),
                    d ? (i ? g.value()[0] : g.value()) : g);
              });
          }),
          kt(
            ["pop", "push", "shift", "sort", "splice", "unshift"],
            function (e) {
              var t = Te[e],
                n = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru",
                r = /^(?:pop|shift)$/.test(e);
              jn.prototype[e] = function () {
                var e = arguments;
                if (r && !this.__chain__) {
                  var i = this.value();
                  return t.apply(qa(i) ? i : [], e);
                }
                return this[n](function (n) {
                  return t.apply(qa(n) ? n : [], e);
                });
              };
            }
          ),
          _r(Hn.prototype, function (e, t) {
            var n = jn[t];
            if (n) {
              var r = n.name + "";
              De.call(Tn, r) || (Tn[r] = []), Tn[r].push({ name: t, func: n });
            }
          }),
          (Tn[Ui(e, 2).name] = [{ name: "wrapper", func: e }]),
          (Hn.prototype.clone = function () {
            var e = new Hn(this.__wrapped__);
            return (
              (e.__actions__ = Ii(this.__actions__)),
              (e.__dir__ = this.__dir__),
              (e.__filtered__ = this.__filtered__),
              (e.__iteratees__ = Ii(this.__iteratees__)),
              (e.__takeCount__ = this.__takeCount__),
              (e.__views__ = Ii(this.__views__)),
              e
            );
          }),
          (Hn.prototype.reverse = function () {
            if (this.__filtered__) {
              var e = new Hn(this);
              (e.__dir__ = -1), (e.__filtered__ = !0);
            } else (e = this.clone()).__dir__ *= -1;
            return e;
          }),
          (Hn.prototype.value = function () {
            var e = this.__wrapped__.value(),
              t = this.__dir__,
              n = qa(e),
              r = t < 0,
              i = n ? e.length : 0,
              o = (function (e, t, n) {
                for (var r = -1, i = n.length; ++r < i; ) {
                  var o = n[r],
                    a = o.size;
                  switch (o.type) {
                    case "drop":
                      e += a;
                      break;
                    case "dropRight":
                      t -= a;
                      break;
                    case "take":
                      t = yn(t, e + a);
                      break;
                    case "takeRight":
                      e = gn(e, t - a);
                  }
                }
                return { start: e, end: t };
              })(0, i, this.__views__),
              a = o.start,
              u = o.end,
              s = u - a,
              c = r ? u : a - 1,
              f = this.__iteratees__,
              l = f.length,
              h = 0,
              p = yn(s, this.__takeCount__);
            if (!n || (!r && i == s && p == s)) return li(e, this.__actions__);
            var d = [];
            e: for (; s-- && h < p; ) {
              for (var v = -1, g = e[(c += t)]; ++v < l; ) {
                var y = f[v],
                  _ = y.iteratee,
                  m = y.type,
                  w = _(g);
                if (2 == m) g = w;
                else if (!w) {
                  if (1 == m) continue e;
                  break e;
                }
              }
              d[h++] = g;
            }
            return d;
          }),
          (jn.prototype.at = pa),
          (jn.prototype.chain = function () {
            return la(this);
          }),
          (jn.prototype.commit = function () {
            return new Fn(this.value(), this.__chain__);
          }),
          (jn.prototype.next = function () {
            this.__values__ === e && (this.__values__ = lu(this.value()));
            var t = this.__index__ >= this.__values__.length;
            return {
              done: t,
              value: t ? e : this.__values__[this.__index__++],
            };
          }),
          (jn.prototype.plant = function (t) {
            for (var n, r = this; r instanceof $n; ) {
              var i = jo(r);
              (i.__index__ = 0),
                (i.__values__ = e),
                n ? (o.__wrapped__ = i) : (n = i);
              var o = i;
              r = r.__wrapped__;
            }
            return (o.__wrapped__ = t), n;
          }),
          (jn.prototype.reverse = function () {
            var t = this.__wrapped__;
            if (t instanceof Hn) {
              var n = t;
              return (
                this.__actions__.length && (n = new Hn(this)),
                (n = n.reverse()).__actions__.push({
                  func: ha,
                  args: [Zo],
                  thisArg: e,
                }),
                new Fn(n, this.__chain__)
              );
            }
            return this.thru(Zo);
          }),
          (jn.prototype.toJSON =
            jn.prototype.valueOf =
            jn.prototype.value =
              function () {
                return li(this.__wrapped__, this.__actions__);
              }),
          (jn.prototype.first = jn.prototype.head),
          at &&
            (jn.prototype[at] = function () {
              return this;
            }),
          jn
        );
      })();
    ct ? (((ct.exports = cn)._ = cn), (st._ = cn)) : (ut._ = cn);
  }.call(su);
var Ic = Ac,
  Oc = "[UMENG] -- ",
  Pc = (function () {
    var e = null,
      t = !1;
    function n() {
      (this.setDebug = function (e) {
        t = e;
      }),
        (this.d = function () {
          if (t)
            try {
              "string" == typeof arguments[0] &&
                (arguments[0] = Oc + arguments[0]),
                console.debug.apply(console, arguments);
            } catch (e) {}
        }),
        (this.i = function () {
          try {
            if (t)
              try {
                "string" == typeof arguments[0] &&
                  (arguments[0] = Oc + arguments[0]),
                  console.info.apply(console, arguments);
              } catch (e) {}
          } catch (e) {}
        }),
        (this.e = function () {
          if (t)
            try {
              "string" == typeof arguments[0] &&
                (arguments[0] = Oc + arguments[0]),
                console.error.apply(console, arguments);
            } catch (e) {}
        }),
        (this.w = function () {
          if (t)
            try {
              "string" == typeof arguments[0] &&
                (arguments[0] = Oc + arguments[0]),
                console.warn.apply(console, arguments);
            } catch (e) {}
        }),
        (this.v = function () {
          if (t)
            try {
              "string" == typeof arguments[0] &&
                (arguments[0] = Oc + arguments[0]),
                console.log.apply(console, arguments);
            } catch (e) {}
        }),
        (this.t = function () {
          if (t)
            try {
              console.table.apply(console, arguments);
            } catch (e) {}
        }),
        (this.tip = function () {
          try {
            "string" == typeof arguments[0] &&
              (arguments[0] = Oc + arguments[0]),
              console.log.apply(console, arguments);
          } catch (e) {}
        }),
        (this.tip_w = function (e) {
          try {
            console.log(
              "%c [UMENG] -- " + e,
              "background:red; padding: 4px; padding-right: 8px; border-radius: 4px; color: #fff;"
            );
          } catch (e) {}
        }),
        (this.err = function () {
          try {
            "string" == typeof arguments[0] &&
              (arguments[0] = Oc + arguments[0]),
              console.error.apply(console, arguments);
          } catch (e) {}
        }),
        (this.repeat = function (e) {
          for (var t = e; t.length < 86; ) t += e;
          return t;
        });
    }
    return function () {
      return null === e && (e = new n()), e;
    };
  })(),
  Tc = (function () {
    var e = null;
    function t() {
      var e = {};
      (this.useOpenid = function () {
        return !!e.useOpenid;
      }),
        (this.useSwanid = function () {
          return !!e.useSwanid;
        }),
        (this.autoGetOpenid = function () {
          return !!e.autoGetOpenid;
        }),
        (this.appKey = function () {
          return e.appKey;
        }),
        (this.uploadUserInfo = function () {
          return e.uploadUserInfo;
        }),
        (this.enableVerify = function () {
          return e.enableVerify;
        }),
        (this.set = function (t) {
          e = t;
        }),
        (this.get = function () {
          return e;
        }),
        (this.setItem = function (t, n) {
          e[t] = n;
        }),
        (this.getItem = function (t) {
          return e[t];
        });
    }
    return function () {
      return e || (e = new t()), e;
    };
  })();
function Ec() {}
Ec.prototype = {
  on: function (e, t, n) {
    var r = this.e || (this.e = {});
    return (r[e] || (r[e] = [])).push({ fn: t, ctx: n }), this;
  },
  once: function (e, t, n) {
    var r = this;
    function i() {
      r.off(e, i), t.apply(n, arguments);
    }
    return (i._ = t), this.on(e, i, n);
  },
  emit: function (e) {
    for (
      var t = [].slice.call(arguments, 1),
        n = ((this.e || (this.e = {}))[e] || []).slice(),
        r = 0,
        i = n.length;
      r < i;
      r++
    )
      n[r].fn.apply(n[r].ctx, t);
    return this;
  },
  off: function (e, t) {
    var n = this.e || (this.e = {}),
      r = n[e],
      i = [];
    if (r && t)
      for (var o = 0, a = r.length; o < a; o++)
        r[o].fn !== t && r[o].fn._ !== t && i.push(r[o]);
    return i.length ? (n[e] = i) : delete n[e], this;
  },
};
var Cc = new Ec();
Cc.messageType = { CONFIG_LOADED: 0, UMA_LIB_INITED: 1 };
var Rc = new ((function () {
    function e() {}
    return (
      (e.prototype.setStorage = function (e, t, n) {
        On.setStorage({
          key: e,
          data: t,
          success: function () {
            "function" == typeof n && n(!0);
          },
          fail: function () {
            "function" == typeof n && n(!1);
          },
        });
      }),
      (e.prototype.getStorage = function (e, t) {
        On.getStorage({
          key: e,
          success: function (e) {
            "function" == typeof t && t(e.data);
          },
          fail: function (n) {
            Pc().w(e + ": " + n.errMsg), "function" == typeof t && t();
          },
        });
      }),
      (e.prototype.removeStorage = function (e, t) {
        On.removeStorage({
          key: e,
          success: function () {
            "function" == typeof t && t(!0);
          },
          fail: function () {
            "function" == typeof t && t(!1);
          },
        });
      }),
      (e.prototype.getSystemInfo = function (e) {
        On.getSystemInfo({
          success: function (t) {
            t.safeArea = t.safeArea || {};
            var n = "";
            t.host && "string" == typeof t.host.env && (n = t.host.env);
            var r = {
                model: t.model,
                brand: t.brand,
                pixelRatio: t.pixelRatio,
                screenWidth: t.screenWidth,
                screenHeight: t.screenHeight,
                fontSizeSetting: t.fontSizeSetting,
                platform: t.platform,
                platformVersion: t.version,
                platformSDKVersion: t.SDKVersion,
                language: t.language,
                deviceName: t.model,
                OSVersion: t.system,
                resolution: "",
                theme: t.theme,
                benchmarkLevel: t.benchmarkLevel,
                safeArea: {
                  width: t.safeArea.width,
                  height: t.safeArea.height,
                  top: t.safeArea.top,
                  left: t.safeArea.left,
                  bottom: t.safeArea.bottom,
                  right: t.safeArea.right,
                },
                statusBarHeight: t.statusBarHeight,
                host: n,
              },
              i = t.system.split(" ");
            Array.isArray(i) && (r.OS = i[0]);
            var o = Math.round(t.screenWidth * t.pixelRatio),
              a = Math.round(t.screenHeight * t.pixelRatio);
            (r.resolution = o > a ? o + "*" + a : a + "*" + o),
              "function" == typeof e && e(r);
          },
          fail: function () {
            "function" == typeof e && e();
          },
        });
      }),
      (e.prototype.getDeviceInfo = function (e) {
        "function" == typeof e && e("");
      }),
      (e.prototype.checkNetworkAvailable = function (e) {
        On.getNetworkType({
          success: function (t) {
            "function" == typeof e && e(t && "none" !== t.networkType);
          },
          fail: function () {
            "function" == typeof e && e(!1);
          },
        });
      }),
      (e.prototype.getNetworkInfo = function (e) {
        On.getNetworkType({
          success: function (t) {
            "function" == typeof e &&
              e({
                networkAvailable: "none" !== t.networkType,
                networkType: t.networkType,
              });
          },
          fail: function () {
            "function" == typeof e && e();
          },
        });
      }),
      (e.prototype.getDeviceId = function (e) {
        e("");
      }),
      (e.prototype.getAdvertisingId = function (e) {
        "function" == typeof e && e("");
      }),
      (e.prototype.onNetworkStatusChange = function (e) {
        On.onNetworkStatusChange(function (t) {
          "function" == typeof e && e(t.isConnected);
        });
      }),
      (e.prototype.request = function (e) {
        var t = e.success,
          n = e.fail,
          r = !1,
          i = null;
        (e.success = function (e) {
          r || (i && clearTimeout(i), "function" == typeof t && t(e));
        }),
          (e.fail = function () {
            r || (i && clearTimeout(i), "function" == typeof n && n(!1));
          }),
          On.request(e),
          (i = setTimeout(function () {
            i && clearTimeout(i), (r = !0), "function" == typeof n && n(r);
          }, e.timeout || 5e3));
      }),
      (e.prototype.getSdkType = function () {
        return "wxmp";
      }),
      (e.prototype.getPlatform = function () {
        return "wx";
      }),
      (e.prototype.getUserInfo = function (e) {
        e();
      }),
      (e.prototype.getAppInfoSync = function () {
        if (On.getAccountInfoSync) {
          var e = On.getAccountInfoSync(),
            t = e && e.miniProgram ? e.miniProgram : {};
          return {
            appId: t.appId,
            appEnv: t.envVersion,
            appVersion: t.version,
          };
        }
        return {};
      }),
      (e.prototype.onShareAppMessage = function (e) {
        On.onShareAppMessage(e);
      }),
      (e.prototype.shareAppMessage = function (e) {
        On.shareAppMessage(e);
      }),
      (e.prototype.getLaunchOptionsSync = function () {
        var e = null;
        if (e) return e;
        if (!On.getLaunchOptionsSync) return {};
        try {
          e = On.getLaunchOptionsSync();
        } catch (t) {
          e = null;
        }
        return e || {};
      }),
      e
    );
  })())(),
  Lc = function (e, t) {
    return (Lc =
      Object.setPrototypeOf ||
      ({ __proto__: [] } instanceof Array &&
        function (e, t) {
          e.__proto__ = t;
        }) ||
      function (e, t) {
        for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
      })(e, t);
  };
function Dc(e, t) {
  function n() {
    this.constructor = e;
  }
  Lc(e, t),
    (e.prototype =
      null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
}
var Bc,
  Nc,
  Uc,
  jc,
  Mc = {
    SESSION_INTERVAL: 3e4,
    LOG_URL: "/wxm_logs",
    GET_OPENID_URL: "/uminiprogram_logs/wx/getuut",
    USERINFO_URL: "/uminiprogram_logs/comm/uif",
    ENDPOINT: "https://umini.shujupie.com",
    ENDPOINTB: "https://ulogs.umeng.com",
    DEVICE_INFO_KEY: "device_info",
    ADVERTISING_ID: "mobile_ad_id",
    ANDROID_ID: "android_id",
    CURRENT_SESSION: "current_session",
    SESSION_PAUSE_TIME: "session_pause_time",
    EVENT_SEND_DEFAULT_INTERVAL: 15e3,
    EVENT_LAST_SEND_TIME: "last_send_time",
    MAX_EVENTID_LENGTH: 128,
    MAX_PROPERTY_KEY_LENGTH: 256,
    MAX_PROPERTY_KEYS_COUNT: 100,
    REPORT_POLICY: "report_policy",
    REPORT_INTERVAL_TIME: "report_interval_time",
    REPORT_POLICY_START_SEND: "1",
    REPORT_POLICY_INTERVAL: "6",
    IMPRINT: "imprint",
    SEED_VERSION: "1.0.0",
    IMPL_VERSION: "2.8.0",
    ALIPAY_AVAILABLE_VERSION: "10.1.52",
    SHARE_PATH: "um_share_path",
    SHARES: "shares",
    REQUESTS: "requests",
    UUID: "um_uuid",
    UUID_SUFFIX: "ud",
    OPENID: "um_od",
    UNIONID: "um_unid",
    ALIPAYID: "um_alipayid",
    USERID: "um_userid",
    PROVIDER: "um_provider",
    SWANID: "um_swanid",
    ANONYMOUSID: "um_anonymousid",
    LAUNCH_OPTIONS: "LAUNCH_OPTIONS",
    UM_SSRC: "_um_ssrc",
    USER_INFO: "user_info",
    IS_ALIYUN: !1,
  },
  $c = function (e) {
    for (
      var t = "",
        n = [
          "0",
          "1",
          "2",
          "3",
          "4",
          "5",
          "6",
          "7",
          "8",
          "9",
          "a",
          "b",
          "c",
          "d",
          "e",
          "f",
          "g",
          "h",
          "i",
          "j",
          "k",
          "l",
          "m",
          "n",
          "o",
          "p",
          "q",
          "r",
          "s",
          "t",
          "u",
          "v",
          "w",
          "x",
          "y",
          "z",
          "A",
          "B",
          "C",
          "D",
          "E",
          "F",
          "G",
          "H",
          "I",
          "J",
          "K",
          "L",
          "M",
          "N",
          "O",
          "P",
          "Q",
          "R",
          "S",
          "T",
          "U",
          "V",
          "W",
          "X",
          "Y",
          "Z",
        ],
        r = 0;
      r < Number(e);
      r++
    )
      t += n[Math.round(Math.random() * (n.length - 1))];
    return t;
  },
  Fc = function (e) {
    return JSON.parse(JSON.stringify(e));
  },
  Hc = function (e) {
    if (null == e)
      throw new TypeError("Cannot convert undefined or null to object");
    for (var t = Object(e), n = 1; n < arguments.length; n++) {
      var r = arguments[n];
      if (r)
        for (var i in r)
          Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
    }
    return t;
  },
  qc = function (e) {
    return "function" == typeof e;
  },
  zc = (function (e) {
    function t() {
      return (null !== e && e.apply(this, arguments)) || this;
    }
    return (
      Dc(t, e),
      (t.prototype.getOpenIdAsync = function (e, t) {
        var n = this;
        On.login({
          success: function (r) {
            r.code
              ? Rc.request({
                  url: Mc.ENDPOINT + Mc.GET_OPENID_URL,
                  method: "GET",
                  data: { key: e, code: r.code },
                  success: function (e) {
                    if (e && 200 === e.statusCode && e.data && e.data.data) {
                      var r = e.data.data;
                      return (
                        n.setOpenid(r.oid), n.setUnionid(r.uid), t && t(!0)
                      );
                    }
                    t && t();
                  },
                  fail: function (e) {
                    Pc().v("wx request failed...", e), t && t();
                  },
                })
              : t && t();
          },
          fail: function () {
            t && t();
          },
        });
      }),
      t
    );
  })(
    (function (e) {
      function t() {
        var t = (null !== e && e.apply(this, arguments)) || this;
        return (t._openid = ""), (t._unionid = ""), (t._useOpenid = !1), t;
      }
      return (
        Dc(t, e),
        (t.prototype.initID = function (e) {
          var t = this;
          (t._idType = t._useOpenid ? "openid" : "uuid"),
            Pc().v("id type: ", t._idType),
            Rc.getStorage(Mc.UNIONID, function (e) {
              t._unionid = e;
            }),
            this._useOpenid
              ? Rc.getStorage(Mc.OPENID, function (n) {
                  (t._openid = n), e && e();
                })
              : e && e();
        }),
        (t.prototype.setUseOpenid = function (e) {
          this._useOpenid = e;
        }),
        (t.prototype.setOpenid = function (e) {
          !this._openid &&
            e &&
            ((this._openid = e), Rc.setStorage(Mc.OPENID, e));
        }),
        (t.prototype.setUnionid = function (e) {
          !this._unionid &&
            e &&
            ((this._unionid = e), Rc.setStorage(Mc.UNIONID, e));
        }),
        (t.prototype.getIdTracking = function () {
          var t = e.prototype.getIdTracking.call(this);
          return (
            this._openid && (t.openid = this._openid),
            this._unionid && (t.unionid = this._unionid),
            this._userid && (t.userid = this._userid),
            t
          );
        }),
        (t.prototype.getId = function () {
          return this._useOpenid ? this._openid : this._uuid;
        }),
        t
      );
    })(
      (function () {
        function e() {
          (this._uuid = ""),
            (this._userid = ""),
            (this._provider = ""),
            (this._idType = "");
        }
        return (
          (e.prototype.createUUID = function () {
            return $c(10) + Date.now() + $c(7) + Mc.UUID_SUFFIX;
          }),
          (e.prototype.initUUID = function (e) {
            var t = this;
            Rc.getStorage(Mc.UUID, function (n) {
              n
                ? (t._uuid = n)
                : ((t._uuid = t.createUUID()), Rc.setStorage(Mc.UUID, t._uuid)),
                e && e(n);
            });
          }),
          (e.prototype.initUserid = function () {
            var e = this;
            Rc.getStorage(Mc.USERID, function (t) {
              !e._userid && t && ((e._userid = t), Pc().v("userId is ", t));
            }),
              Rc.getStorage(Mc.PROVIDER, function (t) {
                !e._provider &&
                  t &&
                  ((e._provider = t), Pc().v("provider is ", t));
              });
          }),
          (e.prototype.init = function (e) {
            var t = this;
            t.initUUID(function () {
              t.initUserid(), t.initID(e);
            });
          }),
          (e.prototype.setUserid = function (e, t) {
            !this._userid &&
              e &&
              ((this._userid = e),
              (this._provider = t),
              Rc.setStorage(Mc.USERID, e),
              Rc.setStorage(Mc.PROVIDER, t));
          }),
          (e.prototype.removeUserid = function () {
            (this._userid = void 0),
              (this._provider = void 0),
              Rc.removeStorageSync(Mc.USERID),
              Rc.removeStorageSync(Mc.PROVIDER);
          }),
          (e.prototype.getUserId = function () {
            return this._userid;
          }),
          (e.prototype.getProvider = function () {
            return this._provider;
          }),
          (e.prototype.getIdType = function () {
            return this._idType;
          }),
          (e.prototype.getIdTracking = function () {
            var e = {};
            return (
              this._uuid && (e.uuid = this._uuid),
              this._userid && (e.userid = this._userid),
              e
            );
          }),
          e
        );
      })()
    )
  ),
  Wc =
    ((Bc = null),
    function () {
      return Bc || (Bc = new zc()), Bc;
    }),
  Vc = (function () {
    var e = null;
    function t() {
      var e = !1,
        t = null,
        n = [];
      (this.addPageStart = function (n) {
        n && !e && ((t = { ts: Date.now(), path: n, page_name: n }), (e = !0));
      }),
        (this.addPageEnd = function (r) {
          if (e && r && t && r === t.page_name) {
            var i = Date.now() - t.ts;
            (t.duration = Math.abs(i)), n.push(t), (t = null), (e = !1);
          }
        }),
        (this.get = function () {
          return n;
        }),
        (this.getCurrentPage = function () {
          return t;
        }),
        (this.clear = function () {
          n.length = 0;
        });
    }
    return function () {
      return e || (e = new t()), e;
    };
  })(),
  Kc = {},
  Jc = (function () {
    var e = null,
      t = [],
      n = "";
    function r() {
      return {
        add: function (e, r) {
          Pc().v("share origin: %o", e);
          var i = {
            title: e && e.title,
            path: e && e.path && e.path.split("?")[0],
            _um_sts: Date.now(),
          };
          i.path &&
            i.path.length > 1 &&
            (function (e, t) {
              return (
                !(!e || !t || 0 === t.length || t.length > e.length) &&
                e.substr(0, t.length) === t
              );
            })(i.path, "/") &&
            (i.path = (function (e, t) {
              if (!e) return "";
              if ("string" == typeof t && t.length) {
                var n = new RegExp("^" + t + "*");
                e = e.replace(n, "");
              } else e = e.replace(/^s*/, "");
              return e;
            })(i.path, "/"));
          var o = e.path || "",
            a = Wc().getId();
          if (a) {
            var u = n.split(","),
              s = (u = u.filter(function (e) {
                return e.length > 0;
              })).indexOf(a);
            s >= 0 && (u = u.slice(0, s)), u.length < 3 && u.push(a);
            var c = u.join(",");
            -1 !== o.indexOf("?")
              ? (o += "&_um_ssrc=" + c)
              : (o += "?_um_ssrc=" + c);
            var f = Date.now();
            if (((o += "&_um_sts=" + f), r)) {
              var l = (function (e) {
                  var t = [];
                  for (var n in e)
                    "_um_ssrc" !== n &&
                      "_um_sts" !== n &&
                      t.push(n + "=" + e[n]);
                  return t.join("&");
                })(Kc),
                h = l
                  ? l + "&_um_ssrc=" + c + "&_um_sts=" + f
                  : "_um_ssrc=" + c + "&_um_sts=" + f;
              e.query = e.query
                ? e.query + "&_um_ssrc=" + c + "&_um_sts=" + f
                : h;
            } else e.path = o;
            (i._um_ssrc = c), (i._um_sts = f);
          }
          return t.push(i), Pc().v("share: %o", e), e;
        },
        setShareSource: function (e) {
          n = e;
        },
        clear: function () {
          t.length = 0;
        },
        get: function () {
          return t;
        },
      };
    }
    return function () {
      return e || (e = new r()), e;
    };
  })(),
  Gc = function (e) {
    if (e)
      try {
        return JSON.stringify(e);
      } catch (e) {}
    return "";
  },
  Yc = function (e) {
    if (e)
      try {
        return JSON.parse(e);
      } catch (e) {}
    return null;
  },
  Xc = (function () {
    var e = null,
      t = "",
      n = null,
      r = !1;
    function i() {
      (this.load = function (e) {
        n
          ? (Rc.removeStorage(t), e())
          : ((t = "um_cache_" + Tc().appKey()),
            Rc.getStorage(t, function (i) {
              (n = Yc(i) || {}), (r = !0), Rc.removeStorage(t), e();
            }));
      }),
        (this.save = function () {
          n && Rc.setStorage(t, Gc(n));
        }),
        (this.set = function (e, t) {
          n && (n[e] = t);
        }),
        (this.get = function (e) {
          return (n || {})[e];
        }),
        (this.remove = function (e) {
          n && n[e] && delete n[e];
        }),
        (this.getAll = function () {
          return n;
        }),
        (this.clear = function () {
          n = null;
        }),
        (this.has = function (e) {
          return !!this.get(e);
        }),
        (this.isLoaded = function () {
          return r;
        });
    }
    return function () {
      return e || (e = new i()), e;
    };
  })(),
  Qc = (function () {
    var e,
      t,
      n = [],
      r = [];
    function i(e, n) {
      var r = (e = e || {})[t];
      return (
        Array.isArray(r) && r.length
          ? (e[t] = r.concat(n))
          : (e[t] = [].concat(n)),
        e
      );
    }
    return function () {
      return (
        e ||
          (e = {
            addEvent: function (e) {
              t
                ? (n.unshift(e),
                  n.length > 1 &&
                    ((function () {
                      if (n.length) {
                        var e = Xc().get("ekvs");
                        (function (e) {
                          var t = 0;
                          for (var n in e)
                            Array.isArray(e[n]) && (t += e[n].length);
                          return t;
                        })(e) +
                          n.length <=
                          1e4 && ((e = i(e, n)), Xc().set("ekvs", e));
                      }
                    })(),
                    (n.length = 0)))
                : (Pc().w("session id is null: ", t), r.unshift(e));
            },
            setSessionId: function (e) {
              if (
                ((t = e),
                Pc().v("setSessionId: ", t),
                Array.isArray(r) && r.length && t)
              ) {
                for (var n = 0; n < r.length; n++) this.addEvent(r[n]);
                r.length = 0;
              }
            },
            getEkvs: function () {
              var e = Xc().get("ekvs");
              return n && n.length && (e = i(e, n)), e;
            },
            clear: function () {
              Xc().remove("ekvs"), (n.length = 0);
            },
          }),
        e
      );
    };
  })(),
  Zc = "half_session",
  ef = "close_session",
  tf = ["access", "access_subtype"],
  nf = (function () {
    var e = null;
    return {
      instance: function () {
        return (
          e ||
            (e = (function () {
              var e = !1,
                t = {};
              return {
                init: function () {
                  !(function (e) {
                    var n = Xc().get(Mc.IMPRINT);
                    n && (t.imprint = n),
                      (t.device_type = "Phone"),
                      (t.sdk_version = Mc.IMPL_VERSION),
                      (t.appkey = Tc().appKey()),
                      Rc.getDeviceInfo(function (e) {
                        t.device_info = e || "";
                      });
                    var r = Rc.getAppInfoSync();
                    (t.appid = r.appId),
                      (t.app_env = r.appEnv),
                      (t.app_version = r.appVersion),
                      Rc.getSystemInfo(function (n) {
                        Rc.getNetworkInfo(function (r) {
                          var i = (function (e, t) {
                            var n = {};
                            (e = e || {}).safeArea = e.safeArea || {};
                            var r = (t = t || {}).networkType;
                            "none" === r && (r = "unknown");
                            var i = e.model || "",
                              o = e.platform || "",
                              a = e.brand || "",
                              u = a.toLowerCase();
                            switch (
                              ((n.sdk_type = Rc.getSdkType()),
                              (n.platform = Rc.getPlatform()),
                              (n.platform_sdk_version = e.platformSDKVersion),
                              (n.platform_version = e.platformVersion),
                              (n.resolution = e.resolution),
                              (n.pixel_ratio = e.pixelRatio),
                              (n.os = o),
                              (n.font_size_setting = e.fontSizeSetting),
                              (n.device_model = i),
                              (n.device_brand = a),
                              (n.device_manufacturer = u),
                              (n.device_manuid = i),
                              (n.device_name = i),
                              (n.os_version = e.OSVersion),
                              (n.language = e.language),
                              (n.theme = e.theme),
                              (n.benchmark_level = e.benchmarkLevel),
                              (n.status_bar_height = e.statusBarHeight),
                              (n.safe_area_top = e.safeArea.top),
                              (n.safe_area_left = e.safeArea.left),
                              (n.safe_area_right = e.safeArea.right),
                              (n.safe_area_bottom = e.safeArea.bottom),
                              (n.safe_area_height = e.safeArea.height),
                              (n.safe_area_width = e.safeArea.width),
                              (n.storage = e.storage),
                              (n.screen_width = e.screenWidth),
                              (n.screen_height = e.screenHeight),
                              (n.host = e.host),
                              (r = r ? r.toLowerCase() : ""))
                            ) {
                              case "4g":
                                (n.access_subtype = "LTE"), (n.access = "4G");
                                break;
                              case "3g":
                                (n.access_subtype = "CDMA"), (n.access = "3G");
                                break;
                              case "2g":
                                (n.access_subtype = "GRPS"), (n.access = "2G");
                                break;
                              default:
                                (n.access = r), delete n.access_subtype;
                            }
                            return n;
                          })(n, r);
                          Hc(t, i), e && e();
                        });
                      });
                  })(function () {
                    e = !0;
                  });
                },
                isLoaded: function () {
                  return e;
                },
                get: function () {
                  return t;
                },
                getRealtimeFields: function () {
                  var e = {};
                  return (
                    tf.forEach(function (n) {
                      e[n] = t[n];
                    }),
                    e
                  );
                },
                setIdTracking: function (e) {
                  this.setItem("id_tracking", e);
                },
                setIdType: function (e) {
                  this.setItem("id_type", e);
                },
                setAppVersion: function (e) {
                  this.setItem("app_version", e);
                },
                setSuperProperty: function (e) {
                  t.sp || (t.sp = {}), (t.sp.isv = e);
                },
                getSuperProperty: function () {
                  return t && t.sp ? t.sp.isv : "";
                },
                setItem: function (e, n) {
                  t[e] = n;
                },
                getItem: function (e) {
                  return t[e];
                },
              };
            })()),
          e
        );
      },
    };
  })(),
  rf =
    ((Nc = null),
    (Uc = null),
    (jc = null),
    function () {
      return (
        Nc ||
          (Nc = {
            resume: function (e) {
              var t = !1;
              jc || (jc = Xc().get(Mc.CURRENT_SESSION));
              var n = new Date();
              return (
                (Uc = n.getTime()),
                !jc || !jc.end_time || Uc - jc.end_time > Mc.SESSION_INTERVAL
                  ? ((t = !0),
                    (function (e) {
                      try {
                        var t = (jc || {}).options || {},
                          n = Hc(
                            {},
                            (function (e) {
                              var t = {};
                              for (var n in e)
                                0 === n.indexOf("_um_") && (t[n] = e[n]);
                              return (
                                Pc().v("query: ", e),
                                Pc().v("_um_params: ", t),
                                t
                              );
                            })(e.query)
                          );
                        (n.path = e.path || t.path),
                          "gaode" !== Rc.getPlatform() &&
                            (n.scene = e.scene
                              ? Rc.getPlatform() + "_" + e.scene
                              : t.scene);
                        var r = e.referrerInfo;
                        r && (n.referrerAppId = r.appId),
                          Pc().v("session options: ", n);
                        var i = n[Mc.UM_SSRC];
                        i && Jc().setShareSource(i);
                        var o = Date.now();
                        jc = { id: $c(10) + o, start_time: o, options: n };
                      } catch (e) {
                        Pc().e("生成新session失败: ", e);
                      }
                    })(e),
                    Pc().v("开始新的session(%s): ", jc.id, jc))
                  : Pc().v(
                      "延续上一次session(%s): %s ",
                      jc.id,
                      n.toLocaleTimeString(),
                      jc
                    ),
                t
              );
            },
            pause: function () {
              !(function () {
                if (jc) {
                  var e = new Date();
                  (jc.end_time = e.getTime()),
                    "number" != typeof jc.duration && (jc.duration = 0),
                    (jc.duration = jc.end_time - Uc),
                    Xc().set(Mc.CURRENT_SESSION, jc),
                    Pc().v(
                      "退出会话(%s): %s ",
                      jc.id,
                      e.toLocaleTimeString(),
                      jc
                    );
                }
              })();
            },
            getCurrentSessionId: function () {
              return (jc || {}).id;
            },
            getCurrentSession: function () {
              return jc;
            },
            cloneCurrentSession: function () {
              return Fc(jc);
            },
          }),
        Nc
      );
    }),
  of = { sessions: "sn", ekvs: "e", active_user: "active_user" },
  af = {
    sdk_type: "sdt",
    access: "ac",
    access_subtype: "acs",
    device_model: "dm",
    language: "lang",
    device_type: "dt",
    device_manufacturer: "dmf",
    device_name: "dn",
    platform_version: "pv",
    id_type: "it",
    font_size_setting: "fss",
    os_version: "ov",
    device_manuid: "did",
    platform_sdk_version: "psv",
    device_brand: "db",
    appkey: "ak",
    _id: "id",
    id_tracking: "itr",
    imprint: "imp",
    sdk_version: "sv",
    resolution: "rl",
    testToken: "ttn",
    theme: "t5",
    benchmark_level: "bml",
    screen_width: "sw",
    screen_height: "sh",
    status_bar_height: "sbh",
    safe_area_top: "sat",
    safe_area_left: "sal",
    safe_area_right: "sar",
    safe_area_bottom: "sab",
    safe_area_height: "sah",
    safe_area_width: "saw",
    pixel_ratio: "pr",
    storage: "s7",
    host: "hs",
  },
  uf = {
    uuid: "ud",
    unionid: "und",
    openid: "od",
    anonymousid: "nd",
    alipay_id: "ad",
    device_id: "dd",
    userid: "puid",
  };
function sf(e, t) {
  var n = cf(e, t);
  return (
    e &&
      e.id_tracking &&
      (n[t.id_tracking || "id_tracking"] = cf(e.id_tracking, uf)),
    n
  );
}
function cf(e, t) {
  var n = {};
  for (var r in e) t[r] ? (n[t[r]] = e[r]) : (n[r] = e[r]);
  return n;
}
function ff(e, t) {
  var n = {};
  if (e) for (var r in e) e[r] && (n[t[r]] = e[r]);
  return n;
}
var lf = "";
function hf() {
  return lf;
}
var pf = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  df = (function (e) {
    for (var t = {}, n = 0, r = e.length; n < r; n++) t[e.charAt(n)] = n;
    return t;
  })(pf),
  vf = String.fromCharCode,
  gf = function (e) {
    if (e.length < 2)
      return (t = e.charCodeAt(0)) < 128
        ? e
        : t < 2048
        ? vf(192 | (t >>> 6)) + vf(128 | (63 & t))
        : vf(224 | ((t >>> 12) & 15)) +
          vf(128 | ((t >>> 6) & 63)) +
          vf(128 | (63 & t));
    var t =
      65536 + 1024 * (e.charCodeAt(0) - 55296) + (e.charCodeAt(1) - 56320);
    return (
      vf(240 | ((t >>> 18) & 7)) +
      vf(128 | ((t >>> 12) & 63)) +
      vf(128 | ((t >>> 6) & 63)) +
      vf(128 | (63 & t))
    );
  },
  yf = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
  _f = function (e) {
    var t = [0, 2, 1][e.length % 3],
      n =
        (e.charCodeAt(0) << 16) |
        ((e.length > 1 ? e.charCodeAt(1) : 0) << 8) |
        (e.length > 2 ? e.charCodeAt(2) : 0);
    return [
      pf.charAt(n >>> 18),
      pf.charAt((n >>> 12) & 63),
      t >= 2 ? "=" : pf.charAt((n >>> 6) & 63),
      t >= 1 ? "=" : pf.charAt(63 & n),
    ].join("");
  },
  mf = function (e) {
    return e.replace(yf, gf).replace(/[\s\S]{1,3}/g, _f);
  },
  wf = new RegExp(["[À-ß][€-¿]", "[à-ï][€-¿]{2}", "[ð-÷][€-¿]{3}"].join("|"), "g"),
  kf = function (e) {
    switch (e.length) {
      case 4:
        var t =
          (((7 & e.charCodeAt(0)) << 18) |
            ((63 & e.charCodeAt(1)) << 12) |
            ((63 & e.charCodeAt(2)) << 6) |
            (63 & e.charCodeAt(3))) -
          65536;
        return vf(55296 + (t >>> 10)) + vf(56320 + (1023 & t));
      case 3:
        return vf(
          ((15 & e.charCodeAt(0)) << 12) |
            ((63 & e.charCodeAt(1)) << 6) |
            (63 & e.charCodeAt(2))
        );
      default:
        return vf(((31 & e.charCodeAt(0)) << 6) | (63 & e.charCodeAt(1)));
    }
  },
  bf = function (e) {
    var t = e.length,
      n = t % 4,
      r =
        (t > 0 ? df[e.charAt(0)] << 18 : 0) |
        (t > 1 ? df[e.charAt(1)] << 12 : 0) |
        (t > 2 ? df[e.charAt(2)] << 6 : 0) |
        (t > 3 ? df[e.charAt(3)] : 0),
      i = [vf(r >>> 16), vf((r >>> 8) & 255), vf(255 & r)];
    return (i.length -= [0, 0, 2, 1][n]), i.join("");
  },
  xf = new (function () {
    var e = "",
      t = this;
    (this.set = function (t) {
      e = t;
    }),
      (this.get = function () {
        return e;
      }),
      (this.getImpObj = function () {
        return Yc(
          (function (e) {
            return (function (e) {
              return e.replace(/[\s\S]{1,4}/g, bf).replace(wf, kf);
            })(
              String(e)
                .replace(/[-_]/g, function (e) {
                  return "-" == e ? "+" : "/";
                })
                .replace(/[^A-Za-z0-9\+\/]/g, "")
            );
          })(e)
        );
      }),
      (this.getItem = function (e) {
        var n = t.getImpObj();
        return (n && n[e]) || "";
      }),
      (this.load = function () {
        e = Xc().get(Mc.IMPRINT);
      }),
      (this.save = function () {
        e && Xc().set(Mc.IMPRINT, e);
      });
  })();
function Sf(e) {
  var t = e,
    n = [];
  (this.enqueue = function (e) {
    "number" == typeof t && this.size() >= t && this.dequeue(), n.push(e);
  }),
    (this.dequeue = function () {
      return n.shift();
    }),
    (this.front = function () {
      return n[0];
    }),
    (this.isEmpty = function () {
      return 0 === n.length;
    }),
    (this.clear = function () {
      n.length = 0;
    }),
    (this.size = function () {
      return n.length;
    }),
    (this.items = function () {
      return n;
    }),
    (this.print = function () {
      console.log(n.toString());
    });
}
var Af = (function () {
    var e = null,
      t = !1,
      n = [],
      r = new Sf(50);
    function i(e) {
      Wc().getId()
        ? t
          ? Pc().i("队列正在发送中")
          : ((t = !0),
            (function e(t) {
              var i = r.front();
              i
                ? (function (e, t, n, r) {
                    nf.instance().setIdType(Wc().getIdType()),
                      nf.instance().setIdTracking(Wc().getIdTracking());
                    var i = Wc().getUserId();
                    i &&
                      e.analytics &&
                      (e.analytics.active_user = {
                        puid: i,
                        provider: Wc().getProvider(),
                      });
                    var o = Fc(nf.instance().get());
                    e.header = Hc(o, e.header, {
                      ts: Date.now(),
                      testToken: hf(),
                      traceId: $c(10) + Date.now() + $c(9),
                    });
                    var a,
                      u = { h: sf((a = e).header, af), a: ff(a.analytics, of) },
                      s = Gc(u),
                      c = {
                        url: Mc.ENDPOINT + Mc.LOG_URL,
                        method: "POST",
                        data: u,
                        success: function (r) {
                          var i = r.code || r.status || r.statusCode;
                          200 === i || 413 === i
                            ? (Pc().i("数据发送成功: ", e, s),
                              (function (e) {
                                e &&
                                  (nf.instance().setItem(Mc.IMPRINT, e),
                                  xf.set(e),
                                  xf.save(),
                                  Pc().v("imprint: ", xf.getImpObj()),
                                  xf.getItem("ttn_invalid") && (lf = ""));
                              })((r.data || {}).imprint),
                              t())
                            : (Pc().w("数据发送失败: ", s), n());
                        },
                        fail: function (e) {
                          Pc().w("超时: ", s), n();
                        },
                        complete: function () {},
                      };
                    Rc.request(
                      Hc(c, {
                        header: {
                          "Msg-Type": Rc.getSdkType() + "/json",
                          "disable-base64": "Y",
                        },
                      })
                    );
                  })(
                    i,
                    function () {
                      r.dequeue(), e(t);
                    },
                    function () {
                      var i = r.dequeue();
                      i && !i.noCache && n.push(i), e(t);
                    }
                  )
                : (n.forEach(function (e) {
                    r.enqueue(e);
                  }),
                  (n.length = 0),
                  t());
            })(function () {
              (t = !1), "function" == typeof e && e();
            }))
        : (Pc().i("获取id标识失败,暂缓发送"), "function" == typeof e && e());
    }
    function o() {
      (this.send = function (e, t, n) {
        e
          ? this.add(e, t, function () {
              i(n);
            })
          : i(n);
      }),
        (this.add = function (e, t, n) {
          !(function e(t, n, i) {
            if (nf.instance().isLoaded()) {
              n = n || {};
              var o = (function (e) {
                var t,
                  n,
                  r = null;
                switch (e) {
                  case Zc:
                    (t = null),
                      (n = rf().cloneCurrentSession()) &&
                        (t = {
                          header: { st: "1" },
                          analytics: { sessions: [n] },
                        }),
                      (r = t);
                    break;
                  case ef:
                    r = (function () {
                      var e = null,
                        t = {},
                        n = rf().cloneCurrentSession();
                      if (n) {
                        var r = Vc().get(),
                          i = Jc().get();
                        Array.isArray(r) && r.length && (n.pages = Fc(r)),
                          Array.isArray(i) && i.length && (n.shares = Fc(i)),
                          Vc().clear(),
                          Jc().clear(),
                          (t.sessions = [n]);
                      }
                      var o = Qc().getEkvs();
                      return (
                        o && ((t.ekvs = Fc(o)), Qc().clear()),
                        (t.sessions || t.ekvs) && (e = { analytics: t }),
                        e
                      );
                    })();
                    break;
                  case "ekv":
                    r = (function () {
                      var e = null,
                        t = Qc().getEkvs();
                      return (
                        t &&
                          ((e = { analytics: { ekvs: Fc(t) } }), Qc().clear()),
                        e
                      );
                    })();
                }
                return r;
              })(t);
              if (o) {
                var a = nf.instance().getRealtimeFields();
                (o.header = Hc({}, o.header, a)),
                  (o.noCache = n.noCache),
                  r.enqueue(o);
              }
              "function" == typeof i && i();
            } else
              setTimeout(function () {
                e(t, n, i);
              }, 100);
          })(e, t, n);
        }),
        (this.load = function () {
          var e = Xc().get(Mc.REQUESTS);
          e &&
            e.length &&
            e.forEach(function (e) {
              r.enqueue(e);
            }),
            Xc().remove(Mc.REQUESTS);
        }),
        (this.save = function () {
          Xc().set(Mc.REQUESTS, Fc(r.items())), r.clear();
        });
    }
    return function () {
      return e || (e = new o()), e;
    };
  })(),
  If = (function () {
    var e = null,
      t = null;
    function n() {
      function e(e) {
        if (e && "object" == f(e)) {
          var t = Xc().get(Mc.USER_INFO);
          return (
            (t &&
              (function e(t, n) {
                if (t === n) return !0;
                if (t && "object" == f(t) && n && "object" == f(n)) {
                  if (Object.keys(t).length !== Object.keys(n).length)
                    return !1;
                  for (var r in t) {
                    if (Object.prototype.hasOwnProperty.call(n, r)) return !1;
                    if (!e(t[r], n[r])) return !1;
                  }
                  return !0;
                }
                return !1;
              })(e, t)) ||
              (function (e, t) {
                var n = Tc().appKey(),
                  r = Rc.getSdkType(),
                  i = Wc().getId(),
                  o = Wc().getIdType();
                if (n && r && i && o) {
                  var a = {
                      ak: Tc().appKey(),
                      sdt: Rc.getSdkType(),
                      uin: e.nickName,
                      uia: e.avatar || e.avatarUrl,
                      uig: e.gender,
                      uit: e.country,
                      uip: e.province,
                      uic: e.city,
                      uil: e.language,
                      id: Wc().getId(),
                      it: Wc().getIdType(),
                      age: e.age,
                      cln: e.constellation,
                    },
                    u = JSON.stringify(a);
                  (u = (function (e, t) {
                    return mf(String(e));
                  })(u)),
                    Rc.request({
                      url: Mc.ENDPOINT + Mc.USERINFO_URL,
                      method: "POST",
                      header: {
                        "content-type": "application/x-www-form-urlencoded",
                      },
                      data: "ui=" + u,
                      success: function (n) {
                        Pc().v("用户信息上传成功: ", e),
                          t && t(n && n.data && 200 === n.data.code);
                      },
                      fail: function () {
                        Pc().e("用户信息上传失败: ", e), t && t(!1);
                      },
                    });
                }
              })(e, function (t) {
                t && Xc().set(Mc.USER_INFO, e);
              }),
            !0
          );
        }
        return !1;
      }
      (this.setUserInfo = function (e) {
        t = e;
      }),
        (this.update = function () {
          e(t) ||
            Rc.getUserInfo(function (t) {
              e(t);
            });
        });
    }
    return function () {
      return e || (e = new n()), e;
    };
  })();
function Of(e, t) {
  (this.id = e), (this.ts = Date.now());
  var n = f(t);
  if ("string" === n && t) this[e] = t;
  else if ("object" === n)
    for (var r in t) ({}).hasOwnProperty.call(t, r) && (this[r] = t[r]);
}
function Pf() {
  var e = !1,
    t = !1,
    n = 0;
  (this.init = function (t) {
    Pc().v("sdk version: " + Mc.IMPL_VERSION),
      e
        ? Pc().v("Lib重复实例化")
        : Xc().load(function () {
            Pc().v("cache初始化成功: ", Xc().getAll()),
              Wc().setUseOpenid && Wc().setUseOpenid(Tc().useOpenid()),
              Wc().init(function () {
                nf.instance().init(), Pc().v("Header初始化成功");
              }),
              (e = !0),
              "function" == typeof t && t(),
              Pc().tip("SDK集成成功");
          });
  }),
    (this.resume = function (n) {
      var r;
      e &&
        !t &&
        (Pc().v("showOptions: ", n),
        (t = !0),
        Tc().enableVerify() &&
          n &&
          n.query &&
          ((r = n.query._ttn), (lf = r || lf)),
        this._resume(n));
    }),
    (this._resume = function (e) {
      Af().load();
      var t = rf().resume(e),
        n = rf().getCurrentSessionId();
      Qc().setSessionId(n),
        t &&
          Af().add(Zc, {}, function () {
            Wc().setUseOpenid && Wc().setUseOpenid(Tc().useOpenid()),
              Tc().useOpenid() && Tc().autoGetOpenid() && !Wc().getId()
                ? (Pc().v("get id async"),
                  (function e(t, n) {
                    Wc().getId() ||
                      t <= 0 ||
                      Wc().getOpenIdAsync(Tc().appKey(), function (r) {
                        r
                          ? (Pc().v("获取id成功"), Af().send())
                          : (Pc().v(
                              "获取openid失败,启动重试,剩余可用次数",
                              t - 1
                            ),
                            setTimeout(function () {
                              e(t - 1, n);
                            }, n));
                      });
                  })(10, 3e3))
                : (Pc().v("session auto send"), Af().send());
          });
    }),
    (this.pause = function (r) {
      e &&
        ((t = !1),
        (n = 0),
        rf().pause(),
        Tc().uploadUserInfo() && If().update(),
        Af().send(ef, {}, function () {
          Af().save(),
            Xc().save(),
            Pc().v("cache save success"),
            "function" == typeof r && r();
        }));
    }),
    (this.setOpenid = function (e) {
      Pc().v("setOpenId: %s", e), Wc().setOpenid(e), Af().send();
    }),
    (this.setUnionid = function (e) {
      Pc().v("setUnionid: %s", e), Wc().setUnionid(e);
    }),
    (this.setUserid = function (e, t) {
      Pc().v("setUserid: %s", e, t), Wc().setUserid(e, t);
    }),
    (this.removeUserid = function () {
      Pc().v("removeUserid"), Wc().removeUserid();
    }),
    (this.setUserInfo = function (e) {
      Pc().v("setUserInfo: %s", e), If().setUserInfo(e);
    }),
    (this.setAnonymousid = function (e) {
      Pc().v("setAnonymousId: %s", e), Wc().setAnonymousid(e), Af().send();
    }),
    (this.setAppVersion = function (e) {
      e && "string" != typeof e
        ? Pc().w("setAppVersion方法只接受字符串类型参数")
        : nf.instance().setAppVersion(e);
    }),
    (this.setAlipayUserid = function (e) {
      e && "string" != typeof e
        ? Pc().w("setAlipayUserid方法只接受字符串类型参数")
        : (Pc().v("setAlipayUserid: %s", e), Wc().setAlipayUserid(e));
    }),
    (this.setDeviceId = function (e) {
      if ("string" == typeof e) return Wc().setDeviceId(e), e;
    }),
    (this.setSuperProperty = function (e) {
      if (e && "string" != typeof e) Pc().w("超级属性只支持字符串类型");
      else {
        var t = this;
        nf.instance().getSuperProperty() !== e &&
          (nf.instance().setSuperProperty(e),
          t.pause(function () {
            t.resume();
          }));
      }
    }),
    (this.trackEvent = function (t, r) {
      if (
        e &&
        (Pc().v("event: ", t, r),
        (function (e, t) {
          if (!e || "string" != typeof e)
            return (
              Pc().e(
                'please check trackEvent id. id should be "string" and not null'
              ),
              !1
            );
          var n = ["id", "ts", "du"],
            r = {};
          if (
            (n.forEach(function (e) {
              r[e] = 1;
            }),
            r[e])
          )
            return Pc().e("eventId不能与以下保留字冲突: " + n.join(",")), !1;
          if (e.length > Mc.MAX_EVENTID_LENGTH)
            return (
              Pc().e(
                "The maximum length of event id shall not exceed " +
                  Mc.MAX_EVENTID_LENGTH
              ),
              !1
            );
          if (
            t &&
            ("object" != f(t) || Array.isArray(t)) &&
            "string" != typeof t
          )
            return (
              Pc().e(
                "please check trackEvent properties. properties should be string or object(not include Array)"
              ),
              !1
            );
          if ("object" == f(t)) {
            var i = 0;
            for (var o in t)
              if ({}.hasOwnProperty.call(t, o)) {
                if (o.length > Mc.MAX_PROPERTY_KEY_LENGTH)
                  return (
                    Pc().e(
                      "The maximum length of property key shall not exceed " +
                        Mc.MAX_PROPERTY_KEY_LENGTH
                    ),
                    !1
                  );
                if (i >= Mc.MAX_PROPERTY_KEYS_COUNT)
                  return (
                    Pc().e(
                      "The maximum count of properties shall not exceed " +
                        Mc.MAX_PROPERTY_KEYS_COUNT
                    ),
                    !1
                  );
                if (r[o])
                  return (
                    Pc().e("属性中的key不能与以下保留字冲突: " + n.join(",")),
                    !1
                  );
                i += 1;
              }
          }
          return !0;
        })(t, r))
      ) {
        var i = new Of(t, r);
        Qc().addEvent(i);
        var o = !!hf(),
          a = o ? 0 : Mc.EVENT_SEND_DEFAULT_INTERVAL,
          u = Date.now();
        (s = a),
          ("number" != typeof n ||
            "number" != typeof s ||
            n <= 0 ||
            u - n > s) &&
            ((n = u), Af().send("ekv", { noCache: o }, function () {}));
      }
      var s;
    }),
    (this.trackShare = function (t) {
      if (e)
        try {
          Rc.getSdkType().indexOf("game") > -1
            ? ((t = Jc().add(t, !0)), Pc().v("shareQuery: ", t))
            : ((t = Jc().add(t, !1)), Pc().v("sharePath: ", t.path));
        } catch (e) {
          Pc().v("shareAppMessage: ", e);
        }
      return t;
    }),
    (this.trackPageStart = function (t) {
      e && Vc().addPageStart(t);
    }),
    (this.trackPageEnd = function (t) {
      e && Vc().addPageEnd(t);
    }),
    (this.onShareAppMessage = function (e) {
      var t = this;
      Rc.onShareAppMessage(function () {
        return t.trackShare(e());
      });
    }),
    (this.shareAppMessage = function (e) {
      this.trackShare(e), Rc.shareAppMessage(e);
    });
}
var Tf = [];
function Ef() {}
Ef.prototype = {
  createMethod: function (e, t, n) {
    try {
      e[t] =
        n && n[t]
          ? function () {
              return n[t].apply(n, arguments);
            }
          : function () {
              Tf.push([t, [].slice.call(arguments)]);
            };
    } catch (e) {
      Pc().v("create method errror: ", e);
    }
  },
  installApi: function (e, t) {
    try {
      var n,
        r,
        i =
          "resume,pause,trackEvent,trackPageStart,trackPageEnd,trackShare,setUserid,setOpenid,setUnionid,setSuperProperty,setUserInfo".split(
            ","
          );
      for (n = 0, r = i.length; n < r; n++) this.createMethod(e, i[n], t);
      if (t)
        for (n = 0, r = Tf.length; n < r; n++) {
          var o = Tf[n];
          try {
            t[o[0]].apply(t, o[1]);
          } catch (e) {
            Pc().v("impl[v[0]].apply error: ", o[0], e);
          }
        }
    } catch (e) {
      Pc().v("install api errror: ", e);
    }
  },
};
var Cf = [Mc.ENDPOINT, Mc.ENDPOINTB];
var Rf = function (e) {
    Mc.ENDPOINTB &&
      setTimeout(function () {
        !(function e(t, n) {
          var r, i;
          if (
            (0 === t || (1 === t && n)
              ? (r = Mc.ENDPOINT)
              : 2 === t && n
              ? (r = Mc.ENDPOINTB)
              : n && (r = Cf[t]),
            t >= Cf.length || n)
          )
            return (
              n && ((i = r), (Mc.ENDPOINT = i)),
              n && Pc().v("命中可用服务", r),
              !n && Pc().tip_w("未命中可用服务"),
              !1
            );
          Rc.request({
            url: Mc.ENDPOINT + "/uminiprogram_logs/ckdh",
            success: function (n) {
              200 === (n.code || n.status || n.statusCode) &&
              n.data &&
              200 === n.data.code
                ? e(t + 1, !0)
                : e(t + 1, !1);
            },
            fail: function () {
              e(t + 1, !1);
            },
          });
        })(0, !1);
      }, e);
  },
  Lf = new Ef(),
  Df = {
    _inited: !1,
    _log: Pc(),
    preinit: function (e) {
      if (e && "object" == f(e)) for (var t in e) Mc[t] = e[t];
      return Mc;
    },
    use: function (e, t) {
      return e && qc(e.install) ? e.install(Df, t) : qc(e) && e(Df, t), Df;
    },
    messager: Cc,
    init: function (e) {
      if (this._inited) Pc().v("已经实例过,请避免重复初始化");
      else if (e)
        if (e.appKey) {
          "boolean" != typeof e.useOpenid && (e.useOpenid = !0),
            Tc().set(e),
            Pc().setDebug(e.debug),
            (this._inited = !0);
          var t = this;
          Cc.emit(Cc.messageType.CONFIG_LOADED, e);
          try {
            var n = new Pf();
            Pc().v("成功创建Lib对象"),
              n.init(function () {
                Pc().v("Lib对象初始化成功"),
                  Lf.installApi(t, n),
                  Pc().v("安装Lib接口成功"),
                  Cc.emit(Cc.messageType.UMA_LIB_INITED, e);
              }),
              Rf(3e3);
          } catch (e) {
            Pc().w("创建Lib对象异常: " + e);
          }
        } else Pc().err("请确保传入正确的appkey");
      else Pc().err("请正确设置相关信息!");
    },
  };
try {
  Lf.installApi(Df, null);
} catch (Nc) {
  Pc().w("uma赋值异常: ", Nc);
}
var Bf = {},
  Nf = Array.isArray;
(Bf.isArray =
  Nf ||
  function (e) {
    return "[object Array]" === toString.call(e);
  }),
  (Bf.isObject = function (e) {
    return e === Object(e) && !Bf.isArray(e);
  }),
  (Bf.isEmptyObject = function (e) {
    if (Bf.isObject(e)) {
      for (var t in e) if (hasOwnProperty.call(e, t)) return !1;
      return !0;
    }
    return !1;
  }),
  (Bf.isUndefined = function (e) {
    return void 0 === e;
  }),
  (Bf.isString = function (e) {
    return "[object String]" === toString.call(e);
  }),
  (Bf.isDate = function (e) {
    return "[object Date]" === toString.call(e);
  }),
  (Bf.isNumber = function (e) {
    return "[object Number]" === toString.call(e);
  }),
  (Bf.each = function (e, t, n) {
    if (null != e) {
      var r = {},
        i = Array.prototype.forEach;
      if (i && e.forEach === i) e.forEach(t, n);
      else if (e.length === +e.length) {
        for (var o = 0, a = e.length; o < a; o++)
          if (o in e && t.call(n, e[o], o, e) === r) return;
      } else
        for (var u in e)
          if (hasOwnProperty.call(e, u) && t.call(n, e[u], u, e) === r) return;
    }
  }),
  (Bf.buildQuery = function (e, t) {
    var n,
      r,
      i = [];
    return (
      void 0 === t && (t = "&"),
      Bf.each(e, function (e, t) {
        (n = encodeURIComponent(e.toString())),
          (r = encodeURIComponent(t)),
          (i[i.length] = r + "=" + n);
      }),
      i.join(t)
    );
  }),
  (Bf.JSONDecode = function (e) {
    if (e) {
      try {
        return JSON.parse(e);
      } catch (e) {
        console.error("JSONDecode error", e);
      }
      return null;
    }
  }),
  (Bf.JSONEncode = function (e) {
    try {
      return JSON.stringify(e);
    } catch (e) {
      console.error("JSONEncode error", e);
    }
  });
var Uf = Object.create(null),
  jf = Object.create(null),
  Mf = null,
  $f = !1,
  Ff = { minFetchIntervalSeconds: 43200 };
function Hf(e) {
  e &&
    Bf.each(e, function (e) {
      jf[e.k] = e;
    });
}
function qf() {
  var e = this;
  (this.STORAGE_NAME = null),
    Cc.once(Cc.messageType.CONFIG_LOADED, function (t) {
      Pc().v("云配初始化开始..."), e.init(t);
    });
}
qf.prototype = {
  setDefaultValues: function (e) {
    $f &&
      Bf.isObject(e) &&
      Bf.each(e, function (e, t) {
        (jf[t] && jf[t].v) || (jf[t] = { v: e });
      });
  },
  getValue: function (e) {
    Pc().v("从配置项中读取 value, 当前配置为: ", jf),
      Pc().v("待读取的 key : ", e);
    try {
      if (!$f) return;
      var t = jf[e] || {};
      return (
        Pc().v("读取相应配置ing..., 结果为: ", t),
        Bf.isNumber(t.e) &&
          Bf.isNumber(t.g) &&
          (Pc().v("读取到相应配置, 开始数据上报..."),
          (function (e) {
            var t = {
              appkey: Tc().appKey(),
              sdkType: Rc.getSdkType(),
              expId: e && e.e,
              groupId: e && e.g,
              clientTs: Date.now(),
              key: e && e.k,
              value: e && e.v,
              umid: Wc().getId(),
            };
            try {
              Rc.request({
                url: "https://pslog.umeng.com/mini_ablog",
                method: "POST",
                data: [t],
                success: function (e) {
                  e && 200 === e.statusCode
                    ? Pc().v("上传数据成功", t)
                    : Pc().w("ablog 请求成功, 返回结果异常 ", e);
                },
                fail: function (e) {
                  Pc().w("ablog 请求数据错误 ", t, e);
                },
              });
            } catch (e) {
              Pc().w("urequest 调用错误", e);
            }
          })(t)),
        t.v
      );
    } catch (t) {
      Pc().w("getValue error, key: ", e);
    }
  },
  active: function (e) {
    try {
      if (!$f) return;
      var t, n;
      e && e.params && (t = e.params),
        e && e.callback && (n = e.callback),
        Pc().v("激活配置项: ", t),
        t
          ? (Pc().v("本地已缓存的配置项: ", jf),
            Hf(t),
            Pc().v("合并后的配置项: ", jf),
            n && n(jf),
            Pc().v("active 结束"))
          : (Pc().v("配置项为空!! 读取本地配置..."),
            Rc.getStorage(this.STORAGE_NAME, function (e) {
              e
                ? (Hf((e = Bf.JSONDecode(e) || {}).params),
                  Pc().v("当前本地配置项为: ", jf),
                  n && n(jf),
                  Pc().v("active 结束"))
                : Pc().v("当前本地配置项为空, 退出激活");
            }));
    } catch (e) {
      Pc().w("SDK active 错误", e);
    }
  },
  init: function (e) {
    e.appKey &&
      ((Mf = e.appKey),
      (this.STORAGE_NAME = "um_remote_config_{{" + Mf + "}}")),
      Mf
        ? $f
          ? Pc().w("SDK 已经初始化, 请避免重复初始化")
          : (($f = !0), this.setOptions(e), this.active())
        : Pc().err("请检查您的小程序 appKey, appKey 不能为空");
  },
  setOptions: function (e) {
    if (Bf.isObject(e)) {
      var t = e.minFetchIntervalSeconds;
      Bf.isNumber(t) && (Ff.minFetchIntervalSeconds = Math.max(t, 5));
    }
  },
  fetch: function (e) {
    if ($f && this.STORAGE_NAME) {
      var t, n;
      e && e.active && (t = e.active), e && e.callback && (n = e.callback);
      var r = this;
      Rc.getStorage(this.STORAGE_NAME, function (e) {
        Pc().v("开始读缓存 data is ", e),
          (e = Bf.JSONDecode(e) || {}).params &&
          e.ts &&
          Date.now() - e.ts < 1e3 * Ff.minFetchIntervalSeconds
            ? (Pc().v(
                "缓存数据存在, 并且本次触发时间距离上次fetch触发时间未超过 fetch 时间间隔, 无需 fetch"
              ),
              n && n(e.params))
            : (function (e) {
                Pc().v("开始构建 fetch body"),
                  Rc.getSystemInfo(function (t) {
                    Rc.getNetworkInfo(function (n) {
                      var r = (n = n || {}).networkType;
                      (r = "none" === r ? "unknown" : r.toUpperCase()),
                        (Uf.access = r),
                        (function (e, t) {
                          var n,
                            r = e.brand || "";
                          if (
                            ((Uf.deviceType = "Phone"),
                            (Uf.sdkVersion = "2.8.0"),
                            (Uf.appkey = Tc().appKey()),
                            (Uf.sdkType = Rc.getSdkType()),
                            (Uf.umid = Wc().getId()),
                            e)
                          ) {
                            (Uf.language = e.language || ""),
                              (Uf.os = e.OS),
                              (Uf.osVersion = e.OSVersion),
                              (Uf.deviceName = e.deviceName),
                              (Uf.platformVersion = e.platformVersion),
                              (Uf.platformSdkVersion = e.platformSDKVersion),
                              (Uf.deviceBrand = r);
                            var i = e.resolution.split("*");
                            Bf.isArray(i) &&
                              ((Uf.resolutionHeight = Number(i[0])),
                              (Uf.resolutionWidth = Number(i[1])));
                          }
                          (n = xf.getImpObj()) &&
                            ((Uf.installTime =
                              n.install_datetime &&
                              Date.parse(n.install_datetime)),
                            (Uf.scene = n.install_scene),
                            (Uf.channel = n.install_channel),
                            (Uf.campaign = n.install_campaign)),
                            t && t(Uf);
                        })(t, e);
                    });
                  });
              })(function (e) {
                Pc().v("缓存数据不存在, 构建 fetch body :", e);
                try {
                  Rc.request({
                    url: "https://ucc.umeng.com/v1/mini/fetch",
                    method: "POST",
                    data: e,
                    success: function (e) {
                      if (e && 200 === e.statusCode && e.data && e.data.cc) {
                        Pc().v("fetch 请求成功, 响应数据: ", e.data);
                        var i = Object.create(null);
                        Bf.each(e.data.cc, function (e) {
                          i[e.k] = e;
                        });
                        var o = { ts: Date.now(), params: i };
                        Pc().v("开始缓存 fetch 请求的云配置结果..."),
                          Rc.setStorage(
                            r.STORAGE_NAME,
                            Bf.JSONEncode(o),
                            function (e) {
                              Pc().v("缓存云配置成功, 缓存数据为: ", o),
                                Pc().v("缓存云配置成功, 成功消息为: ", e),
                                Pc().v("云配拉取数据是否自动激活: ", t),
                                e &&
                                  t &&
                                  (Pc().v("激活云配置..."),
                                  r.active({ params: i, callback: n }));
                            }
                          );
                      } else
                        Pc().w("fetch 请求成功,返回结果异常 ", e.data),
                          n && n();
                    },
                    fail: function (t) {
                      Pc().w("fetch请求数据错误 ", e, t), n && n();
                    },
                  });
                } catch (e) {
                  Pc().w("urequest调用错误", e);
                }
              });
      });
    }
  },
};
var zf = {
    install: function (e, t) {
      return (
        e.rc || (e.rc = new qf()),
        e.messager.once(e.messager.messageType.CONFIG_LOADED, function () {
          e._log.v("plugin rc installed");
        }),
        e.rc
      );
    },
  },
  Wf = !1,
  Vf = {
    install: function (e, t) {
      e.wxpluginwraper ||
        (e.wxpluginwraper = function (t) {
          Wf ||
            (t.onAppShow &&
              t.onAppShow(function (t) {
                e.resume(t);
              }),
            t.onAppHide &&
              t.onAppHide(function (t) {
                e.pause(t);
              }),
            (Wf = !0));
        });
    },
  },
  Kf = "",
  Jf = {};
function Gf(e) {
  e && (Kf = e);
}
function Yf(e, t) {
  if (e.onShareAppMessage) {
    var n = e.onShareAppMessage;
    e.onShareAppMessage = function (e) {
      var r = n.call(this, e) || {},
        i = (function (e, t) {
          if (!e) return "";
          var n = [];
          for (var r in t)
            "_um_ssrc" !== r && "_um_sts" !== r && n.push(r + "=" + t[r]);
          var i = n.join("&");
          return i ? e + "?" + i : e;
        })(Kf, Jf[Kf]);
      !r.path && i && (r.path = i);
      var o = t.trackShare.call(this, r);
      return void 0 === o ? r : o;
    };
  }
}
function Xf(e, t, n) {
  var r = e[t];
  e[t] = function (e) {
    n.call(this, e), r && r.call(this, e);
  };
}
function Qf(e) {
  try {
    Df.resume(e, !0);
  } catch (e) {
    Pc().v("onAppShow: ", e);
  }
}
function Zf() {
  try {
    Df.pause();
  } catch (e) {
    Pc().v("onAppHide: ", e);
  }
}
function el() {
  try {
    Gf(this.route), Df.trackPageStart(this.route);
  } catch (e) {
    Pc().v("onPageShow: ", e);
  }
}
function tl(e) {
  try {
    Gf(this.route),
      e && ((t = this.route), (n = e), t && (Jf[t] = n)),
      Pc().v("Page onLoad: ", this.route, e);
  } catch (e) {
    Pc().v("onPageLoad: ", e);
  }
  var t, n;
}
function nl() {
  try {
    Df.trackPageEnd(this.route);
  } catch (e) {
    Pc().v("onPageHide: ", e);
  }
}
try {
  var rl = App;
  App = function (e) {
    Xf(e, "onLaunch", function () {
      !(function (e) {
        try {
          Df.init(e);
        } catch (e) {
          Pc().v("onAppLaunch: ", e);
        }
      })(e.umengConfig);
    }),
      Xf(e, "onShow", Qf),
      Xf(e, "onHide", Zf),
      rl(e);
  };
} catch (Nc) {
  Pc().w("App重写异常");
}
try {
  var il = Page;
  Page = function (e) {
    Xf(e, "onShow", el),
      Xf(e, "onHide", nl),
      Xf(e, "onUnload", nl),
      Xf(e, "onLoad", tl),
      Yf(e, Df),
      il(e);
  };
} catch (Nc) {
  Pc().w("Page重写异常");
}
try {
  var ol = Component;
  Component = function (e) {
    try {
      e.methods = e.methods || {};
      var t = e.methods;
      Xf(t, "onShow", el),
        Xf(t, "onHide", nl),
        Xf(t, "onUnload", nl),
        Xf(t, "onLoad", tl),
        Yf(t, Df),
        ol(e);
    } catch (t) {
      ol(e);
    }
  };
} catch (Nc) {
  Pc().w("Component重写异常");
}
var al = Df.init;
(Df.init = function (e) {
  e &&
    e.useOpenid &&
    (Pc().tip_w(Pc().repeat("!")),
    Pc().tip_w(
      "openid已开启,请确保使用setOpenid设置openid或通过设置autoGetOpenid为true,并在友盟后台设置secret由友盟帮您获取"
    ),
    Pc().tip_w(Pc().repeat("!"))),
    al.call(Df, e);
}),
  Df.use(zf),
  Df.use(Vf),
  (On.uma = Df);
var ul,
  sl,
  cl,
  fl = Df,
  ll = function (e) {
    return (ul = e);
  },
  hl = Symbol();
function pl(e) {
  return (
    e &&
    "object" == f(e) &&
    "[object Object]" === Object.prototype.toString.call(e) &&
    "function" != typeof e.toJSON
  );
}
((cl = sl || (sl = {})).direct = "direct"),
  (cl.patchObject = "patch object"),
  (cl.patchFunction = "patch function");
var dl = "undefined" != typeof window;
function vl() {
  var e = En(!0),
    t = e.run(function () {
      return Gr({});
    }),
    n = [],
    r = [],
    i = qr({
      install: function (e) {
        ll(i),
          (i._a = e),
          e.provide(hl, i),
          (e.config.globalProperties.$pinia = i),
          r.forEach(function (e) {
            return n.push(e);
          }),
          (r = []);
      },
      use: function (e) {
        return this._a ? n.push(e) : r.push(e), this;
      },
      _p: n,
      _a: null,
      _e: e,
      _s: new Map(),
      state: t,
    });
  return i;
}
var gl = function () {};
function yl(e, t, n) {
  var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : gl;
  e.push(t);
  var i = function () {
    var n = e.indexOf(t);
    n > -1 && (e.splice(n, 1), r());
  };
  return (
    !n &&
      Cn() &&
      (function (e) {
        bn && bn.cleanups.push(e);
      })(i),
    i
  );
}
function _l(e) {
  for (
    var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
    r < t;
    r++
  )
    n[r - 1] = arguments[r];
  e.slice().forEach(function (e) {
    e.apply(void 0, n);
  });
}
function ml(e, t) {
  for (var n in (e instanceof Map &&
    t instanceof Map &&
    t.forEach(function (t, n) {
      return e.set(n, t);
    }),
  e instanceof Set && t instanceof Set && t.forEach(e.add, e),
  t))
    if (t.hasOwnProperty(n)) {
      var r = t[n],
        i = e[n];
      pl(i) && pl(r) && e.hasOwnProperty(n) && !Jr(r) && !Mr(r)
        ? (e[n] = ml(i, r))
        : (e[n] = r);
    }
  return e;
}
var wl = Symbol(),
  kl = Object.assign;
function bl(e, t) {
  var n,
    r,
    i,
    o,
    a,
    u = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
    s = arguments.length > 3 ? arguments[3] : void 0,
    c = arguments.length > 5 ? arguments[5] : void 0,
    f = kl({ actions: {} }, u),
    l = { deep: !0 },
    h = qr([]),
    p = qr([]),
    d = s.state.value[e];
  function v(t) {
    var n;
    (r = i = !1),
      "function" == typeof t
        ? (t(s.state.value[e]),
          (n = { type: sl.patchFunction, storeId: e, events: o }))
        : (ml(s.state.value[e], t),
          (n = { type: sl.patchObject, payload: t, storeId: e, events: o }));
    var u = (a = Symbol());
    gi().then(function () {
      a === u && (r = !0);
    }),
      (i = !0),
      _l(h, n, s.state.value[e]);
  }
  c || d || (s.state.value[e] = {}), Gr({});
  var g = c
    ? function () {
        var e = u.state,
          t = e ? e() : {};
        this.$patch(function (e) {
          kl(e, t);
        });
      }
    : gl;
  function y(t, n) {
    return function () {
      ll(s);
      var r,
        i = Array.from(arguments),
        o = [],
        a = [];
      _l(p, {
        args: i,
        name: t,
        store: _,
        after: function (e) {
          o.push(e);
        },
        onError: function (e) {
          a.push(e);
        },
      });
      try {
        r = n.apply(this && this.$id === e ? this : _, i);
      } catch (e) {
        throw (_l(a, e), e);
      }
      return r instanceof Promise
        ? r
            .then(function (e) {
              return _l(o, e), e;
            })
            .catch(function (e) {
              return _l(a, e), Promise.reject(e);
            })
        : (_l(o, r), r);
    };
  }
  var _ = Nr({
    _p: s,
    $id: e,
    $onAction: yl.bind(null, p),
    $patch: v,
    $reset: g,
    $subscribe: function (t) {
      var a =
          arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
        u = yl(h, t, a.detached, function () {
          return c();
        }),
        c = n.run(function () {
          return Ci(
            function () {
              return s.state.value[e];
            },
            function (n) {
              ("sync" === a.flush ? i : r) &&
                t({ storeId: e, type: sl.direct, events: o }, n);
            },
            kl({}, l, a)
          );
        });
      return u;
    },
    $dispose: function () {
      n.stop(), (h = []), (p = []), s._s.delete(e);
    },
  });
  s._s.set(e, _);
  var m,
    w,
    k = s._e.run(function () {
      return (n = En()).run(function () {
        return t();
      });
    });
  for (var b in k) {
    var x = k[b];
    if ((Jr(x) && (!Jr((w = x)) || !w.effect)) || Mr(x))
      c ||
        (!d ||
          (pl((m = x)) && m.hasOwnProperty(wl)) ||
          (Jr(x) ? (x.value = d[b]) : ml(x, d[b])),
        (s.state.value[e][b] = x));
    else if ("function" == typeof x) {
      var S = y(b, x);
      (k[b] = S), (f.actions[b] = x);
    }
  }
  return (
    kl(_, k),
    kl(Hr(_), k),
    Object.defineProperty(_, "$state", {
      get: function () {
        return s.state.value[e];
      },
      set: function (e) {
        v(function (t) {
          kl(t, e);
        });
      },
    }),
    s._p.forEach(function (e) {
      kl(
        _,
        n.run(function () {
          return e({ store: _, app: s._a, pinia: s, options: f });
        })
      );
    }),
    d && c && u.hydrate && u.hydrate(_.$state, d),
    (r = !0),
    (i = !0),
    _
  );
}
function xl(e, t, n) {
  var r,
    i,
    o = "function" == typeof t;
  function a(e, n) {
    var a = Co();
    return (
      (e = e || (a && Ti(hl, null))) && ll(e),
      (e = ul)._s.has(r) ||
        (o
          ? bl(r, t, i, e)
          : (function (e, t, n, r) {
              var i = t.state,
                o = t.actions,
                a = t.getters,
                u = n.state.value[e];
              bl(
                e,
                function () {
                  u || (n.state.value[e] = i ? i() : {});
                  var t = (function (e) {
                    var t = C(e) ? new Array(e.length) : {};
                    for (var n in e) t[n] = ni(e, n);
                    return t;
                  })(n.state.value[e]);
                  return kl(
                    t,
                    o,
                    Object.keys(a || {}).reduce(function (t, r) {
                      return (
                        (t[r] = qr(
                          jo(function () {
                            ll(n);
                            var t = n._s.get(e);
                            return a[r].call(t, t);
                          })
                        )),
                        t
                      );
                    }, {})
                  );
                },
                t,
                n,
                r,
                !0
              );
            })(r, i, e)),
      e._s.get(r)
    );
  }
  return (
    "string" == typeof e ? ((r = e), (i = o ? n : t)) : ((i = e), (r = e.id)),
    (a.$id = r),
    a
  );
}
var Sl = "Store";
function Al(e, t) {
  return Array.isArray(t)
    ? t.reduce(function (t, n) {
        return (
          (t[n] = function () {
            return e(this.$pinia)[n];
          }),
          t
        );
      }, {})
    : Object.keys(t).reduce(function (n, r) {
        return (
          (n[r] = function () {
            var n = e(this.$pinia),
              i = t[r];
            return "function" == typeof i ? i.call(this, n) : n[i];
          }),
          n
        );
      }, {});
}
var Il = Al;
function Ol(e) {
  e = Hr(e);
  var t = {};
  for (var n in e) {
    var r = e[n];
    (Jr(r) || Mr(r)) && (t[n] = ni(e, n));
  }
  return t;
}
var Pl = Object.freeze(
    Object.defineProperty(
      {
        __proto__: null,
        get MutationType() {
          return sl;
        },
        PiniaVuePlugin: function (e) {
          e.mixin({
            beforeCreate: function () {
              var e = this.$options;
              if (e.pinia) {
                var t = e.pinia;
                if (!this._provided) {
                  var n = {};
                  Object.defineProperty(this, "_provided", {
                    get: function () {
                      return n;
                    },
                    set: function (e) {
                      return Object.assign(n, e);
                    },
                  });
                }
                (this._provided[hl] = t),
                  this.$pinia || (this.$pinia = t),
                  (t._a = this),
                  dl && ll(t);
              } else
                !this.$pinia &&
                  e.parent &&
                  e.parent.$pinia &&
                  (this.$pinia = e.parent.$pinia);
            },
            destroyed: function () {
              delete this._pStores;
            },
          });
        },
        acceptHMRUpdate: function (e, t) {
          return function () {};
        },
        createPinia: vl,
        defineStore: xl,
        getActivePinia: function () {
          return (Co() && Ti(hl)) || ul;
        },
        mapActions: function (e, t) {
          return Array.isArray(t)
            ? t.reduce(function (t, n) {
                return (
                  (t[n] = function () {
                    var t;
                    return (t = e(this.$pinia))[n].apply(t, arguments);
                  }),
                  t
                );
              }, {})
            : Object.keys(t).reduce(function (n, r) {
                return (
                  (n[r] = function () {
                    var n;
                    return (n = e(this.$pinia))[t[r]].apply(n, arguments);
                  }),
                  n
                );
              }, {});
        },
        mapGetters: Il,
        mapState: Al,
        mapStores: function () {
          for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
            t[n] = arguments[n];
          return t.reduce(function (e, t) {
            return (
              (e[t.$id + Sl] = function () {
                return t(this.$pinia);
              }),
              e
            );
          }, {});
        },
        mapWritableState: function (e, t) {
          return Array.isArray(t)
            ? t.reduce(function (t, n) {
                return (
                  (t[n] = {
                    get: function () {
                      return e(this.$pinia)[n];
                    },
                    set: function (t) {
                      return (e(this.$pinia)[n] = t);
                    },
                  }),
                  t
                );
              }, {})
            : Object.keys(t).reduce(function (n, r) {
                return (
                  (n[r] = {
                    get: function () {
                      return e(this.$pinia)[t[r]];
                    },
                    set: function (n) {
                      return (e(this.$pinia)[t[r]] = n);
                    },
                  }),
                  n
                );
              }, {});
        },
        setActivePinia: ll,
        setMapStoreSuffix: function (e) {
          Sl = e;
        },
        skipHydrate: function (e) {
          return Object.defineProperty(e, wl, {});
        },
        storeToRefs: Ol,
      },
      Symbol.toStringTag,
      { value: "Module" }
    )
  ),
  Tl = function (e) {
    return function (t) {
      var n =
        arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Co();
      !Bo && Fi(e, t, n);
    };
  },
  El = Tl(ee),
  Cl = Tl(ne),
  Rl = Tl(ue),
  Ll = Tl(pe),
  Dl = Tl(ve),
  Bl = Tl(ge),
  Nl = Tl(me),
  Ul = {
    pages: [
      {
        path: "pages/splash/index",
        style: {
          disableScroll: !0,
          navigationStyle: "custom",
          navigationBarTextStyle: "black",
        },
      },
      {
        path: "pages/home/index",
        style: {
          navigationBarTitleText: "首页",
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
          "app-plus": { animationType: "fade-in", animationDuration: 200 },
        },
      },
      {
        path: "pages/order-list/index",
        style: {
          navigationBarTitleText: "订单",
          enablePullDownRefresh: !0,
          onReachBottomDistance: 50,
          "app-plus": {
            pullToRefresh: { support: !0, color: "#1F68E9", style: "circle" },
          },
        },
      },
      {
        path: "pages/order-list-mine/index",
        style: {
          navigationBarTitleText: "我的订单",
          enablePullDownRefresh: !0,
          onReachBottomDistance: 50,
          "app-plus": {
            pullToRefresh: { support: !0, color: "#1F68E9", style: "circle" },
          },
        },
      },
      {
        path: "pages/user/index",
        style: {
          navigationStyle: "custom",
          navigationBarTextStyle: "white",
          navigationBarTitleText: "我的",
        },
      },
      {
        path: "pages/vin-info/index",
        style: { navigationBarTitleText: "什么是VIN" },
      },
      { path: "pages/web-view/index" },
      {
        path: "pages/report-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/insurance-maintain-detail/index",
        style: {
          navigationBarTitleText: "维保查询报告",
          navigationBarBackgroundColor: "#1F68E9",
        },
      },
      {
        path: "pages/insurance-maintain-blank/index",
        style: {
          navigationBarTitleText: "维保查询报告",
          navigationBarBackgroundColor: "#1F68E9",
        },
      },
      {
        path: "pages/accident-detail/index",
        style: {
          navigationBarTitleText: "出险查询报告",
          navigationBarBackgroundColor: "#1F68E9",
        },
      },
      {
        path: "pages/accident-blank/index",
        style: {
          navigationBarTitleText: "出险查询报告",
          navigationBarBackgroundColor: "#1F68E9",
        },
      },
      {
        path: "pages/accident-web-view/index",
        style: { navigationBarBackgroundColor: "#1F68E9" },
      },
      {
        path: "pages/vehicle-info-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/vehicle-info-detail/index",
        style: { navigationBarTitleText: "车辆信息" },
      },
      {
        path: "pages/vehicle-five-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/vehicle-five-detail/index",
        style: { navigationBarTitleText: "车五项" },
      },
      {
        path: "pages/commercial-insurance-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/commercial-insurance-detail/index",
        style: { navigationBarTitleText: "商业险信息" },
      },
      {
        path: "pages/sali-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/sali-detail/index",
        style: { navigationBarTitleText: "交强险信息" },
      },
      {
        path: "pages/sali-check-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/sali-check-detail/index",
        style: { navigationBarTitleText: "交强险投保日期" },
      },
      {
        path: "pages/vehicle-status-query/index",
        style: {
          navigationBarTextStyle: "black",
          navigationBarBackgroundColor: "#ffffff",
        },
      },
      {
        path: "pages/vehicle-status-detail/index",
        style: { navigationBarTitleText: "车辆状态" },
      },
      {
        path: "pages/order-confirm/index",
        style: { navigationBarTitleText: "订单确认" },
      },
      { path: "pages/order-detail/index" },
      {
        path: "pages/pay-success/index",
        style: { navigationBarTitleText: "支付成功" },
      },
      {
        path: "pages/pay-fail/index",
        style: { navigationBarTitleText: "支付失败" },
      },
      {
        path: "pages/upload-success/index",
        style: { navigationBarTitleText: "查询中" },
      },
      {
        path: "pages/question/index",
        style: { navigationBarTitleText: "常见问题" },
      },
      {
        path: "pages/easter-egg/index",
        style: { navigationBarTitleText: "彩蛋" },
      },
    ],
    globalStyle: {
      navigationBarTextStyle: "white",
      navigationBarBackgroundColor: "#1F68E9",
      backgroundColor: "#f8f9fe",
      backgroundColorTop: "#f8f9fe",
      backgroundTextStyle: "dark",
    },
    tabBar: {
      color: "#7A7E83",
      selectedColor: "#1F68E9",
      borderStyle: "black",
      backgroundColor: "#ffffff",
      list: [
        {
          pagePath: "pages/home/index",
          iconPath: "static/images/tabs/icon_home_default.png",
          selectedIconPath: "static/images/tabs/icon_home_selected.png",
          text: "首页",
        },
        {
          pagePath: "pages/order-list/index",
          iconPath: "static/images/tabs/icon_order_list_default.png",
          selectedIconPath: "static/images/tabs/icon_order_list_selected.png",
          text: "订单",
        },
        {
          pagePath: "pages/user/index",
          iconPath: "static/images/tabs/icon_user_default.png",
          selectedIconPath: "static/images/tabs/icon_user_selected.png",
          text: "我的",
        },
      ],
    },
  };
function jl(e, t, n) {
  return (
    e(
      (n = {
        path: t,
        exports: {},
        require: function (e, t) {
          return (function () {
            throw new Error(
              "Dynamic requires are not currently supported by @rollup/plugin-commonjs"
            );
          })(null == t && n.path);
        },
      }),
      n.exports
    ),
    n.exports
  );
}
var Ml = jl(function (e, t) {
    var n;
    e.exports = n =
      n ||
      (function (e, t) {
        var n =
            Object.create ||
            (function () {
              function e() {}
              return function (t) {
                var n;
                return (
                  (e.prototype = t), (n = new e()), (e.prototype = null), n
                );
              };
            })(),
          r = {},
          i = (r.lib = {}),
          o = (i.Base = {
            extend: function (e) {
              var t = n(this);
              return (
                e && t.mixIn(e),
                (t.hasOwnProperty("init") && this.init !== t.init) ||
                  (t.init = function () {
                    t.$super.init.apply(this, arguments);
                  }),
                (t.init.prototype = t),
                (t.$super = this),
                t
              );
            },
            create: function () {
              var e = this.extend();
              return e.init.apply(e, arguments), e;
            },
            init: function () {},
            mixIn: function (e) {
              for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
              e.hasOwnProperty("toString") && (this.toString = e.toString);
            },
            clone: function () {
              return this.init.prototype.extend(this);
            },
          }),
          a = (i.WordArray = o.extend({
            init: function (e, t) {
              (e = this.words = e || []),
                (this.sigBytes = null != t ? t : 4 * e.length);
            },
            toString: function (e) {
              return (e || s).stringify(this);
            },
            concat: function (e) {
              var t = this.words,
                n = e.words,
                r = this.sigBytes,
                i = e.sigBytes;
              if ((this.clamp(), r % 4))
                for (var o = 0; o < i; o++) {
                  var a = (n[o >>> 2] >>> (24 - (o % 4) * 8)) & 255;
                  t[(r + o) >>> 2] |= a << (24 - ((r + o) % 4) * 8);
                }
              else for (o = 0; o < i; o += 4) t[(r + o) >>> 2] = n[o >>> 2];
              return (this.sigBytes += i), this;
            },
            clamp: function () {
              var t = this.words,
                n = this.sigBytes;
              (t[n >>> 2] &= 4294967295 << (32 - (n % 4) * 8)),
                (t.length = e.ceil(n / 4));
            },
            clone: function () {
              var e = o.clone.call(this);
              return (e.words = this.words.slice(0)), e;
            },
            random: function (t) {
              for (
                var n,
                  r = [],
                  i = function (t) {
                    var n = 987654321,
                      r = 4294967295;
                    return function () {
                      var i =
                        (((n = (36969 * (65535 & n) + (n >> 16)) & r) << 16) +
                          (t = (18e3 * (65535 & t) + (t >> 16)) & r)) &
                        r;
                      return (
                        (i /= 4294967296),
                        (i += 0.5) * (e.random() > 0.5 ? 1 : -1)
                      );
                    };
                  },
                  o = 0;
                o < t;
                o += 4
              ) {
                var u = i(4294967296 * (n || e.random()));
                (n = 987654071 * u()), r.push((4294967296 * u()) | 0);
              }
              return new a.init(r, t);
            },
          })),
          u = (r.enc = {}),
          s = (u.Hex = {
            stringify: function (e) {
              for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
                var o = (t[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
                r.push((o >>> 4).toString(16)), r.push((15 & o).toString(16));
              }
              return r.join("");
            },
            parse: function (e) {
              for (var t = e.length, n = [], r = 0; r < t; r += 2)
                n[r >>> 3] |=
                  parseInt(e.substr(r, 2), 16) << (24 - (r % 8) * 4);
              return new a.init(n, t / 2);
            },
          }),
          c = (u.Latin1 = {
            stringify: function (e) {
              for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
                var o = (t[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
                r.push(String.fromCharCode(o));
              }
              return r.join("");
            },
            parse: function (e) {
              for (var t = e.length, n = [], r = 0; r < t; r++)
                n[r >>> 2] |= (255 & e.charCodeAt(r)) << (24 - (r % 4) * 8);
              return new a.init(n, t);
            },
          }),
          f = (u.Utf8 = {
            stringify: function (e) {
              try {
                return decodeURIComponent(escape(c.stringify(e)));
              } catch (e) {
                throw new Error("Malformed UTF-8 data");
              }
            },
            parse: function (e) {
              return c.parse(unescape(encodeURIComponent(e)));
            },
          }),
          l = (i.BufferedBlockAlgorithm = o.extend({
            reset: function () {
              (this._data = new a.init()), (this._nDataBytes = 0);
            },
            _append: function (e) {
              "string" == typeof e && (e = f.parse(e)),
                this._data.concat(e),
                (this._nDataBytes += e.sigBytes);
            },
            _process: function (t) {
              var n = this._data,
                r = n.words,
                i = n.sigBytes,
                o = this.blockSize,
                u = i / (4 * o),
                s =
                  (u = t
                    ? e.ceil(u)
                    : e.max((0 | u) - this._minBufferSize, 0)) * o,
                c = e.min(4 * s, i);
              if (s) {
                for (var f = 0; f < s; f += o) this._doProcessBlock(r, f);
                var l = r.splice(0, s);
                n.sigBytes -= c;
              }
              return new a.init(l, c);
            },
            clone: function () {
              var e = o.clone.call(this);
              return (e._data = this._data.clone()), e;
            },
            _minBufferSize: 0,
          }));
        i.Hasher = l.extend({
          cfg: o.extend(),
          init: function (e) {
            (this.cfg = this.cfg.extend(e)), this.reset();
          },
          reset: function () {
            l.reset.call(this), this._doReset();
          },
          update: function (e) {
            return this._append(e), this._process(), this;
          },
          finalize: function (e) {
            return e && this._append(e), this._doFinalize();
          },
          blockSize: 16,
          _createHelper: function (e) {
            return function (t, n) {
              return new e.init(n).finalize(t);
            };
          },
          _createHmacHelper: function (e) {
            return function (t, n) {
              return new h.HMAC.init(e, n).finalize(t);
            };
          },
        });
        var h = (r.algo = {});
        return r;
      })(Math);
  }),
  $l =
    (jl(function (e, t) {
      var n;
      e.exports =
        ((n = Ml),
        (function (e) {
          var t = n,
            r = t.lib,
            i = r.WordArray,
            o = r.Hasher,
            a = t.algo,
            u = [];
          !(function () {
            for (var t = 0; t < 64; t++)
              u[t] = (4294967296 * e.abs(e.sin(t + 1))) | 0;
          })();
          var s = (a.MD5 = o.extend({
            _doReset: function () {
              this._hash = new i.init([
                1732584193, 4023233417, 2562383102, 271733878,
              ]);
            },
            _doProcessBlock: function (e, t) {
              for (var n = 0; n < 16; n++) {
                var r = t + n,
                  i = e[r];
                e[r] =
                  (16711935 & ((i << 8) | (i >>> 24))) |
                  (4278255360 & ((i << 24) | (i >>> 8)));
              }
              var o = this._hash.words,
                a = e[t + 0],
                s = e[t + 1],
                p = e[t + 2],
                d = e[t + 3],
                v = e[t + 4],
                g = e[t + 5],
                y = e[t + 6],
                _ = e[t + 7],
                m = e[t + 8],
                w = e[t + 9],
                k = e[t + 10],
                b = e[t + 11],
                x = e[t + 12],
                S = e[t + 13],
                A = e[t + 14],
                I = e[t + 15],
                O = o[0],
                P = o[1],
                T = o[2],
                E = o[3];
              (O = c(O, P, T, E, a, 7, u[0])),
                (E = c(E, O, P, T, s, 12, u[1])),
                (T = c(T, E, O, P, p, 17, u[2])),
                (P = c(P, T, E, O, d, 22, u[3])),
                (O = c(O, P, T, E, v, 7, u[4])),
                (E = c(E, O, P, T, g, 12, u[5])),
                (T = c(T, E, O, P, y, 17, u[6])),
                (P = c(P, T, E, O, _, 22, u[7])),
                (O = c(O, P, T, E, m, 7, u[8])),
                (E = c(E, O, P, T, w, 12, u[9])),
                (T = c(T, E, O, P, k, 17, u[10])),
                (P = c(P, T, E, O, b, 22, u[11])),
                (O = c(O, P, T, E, x, 7, u[12])),
                (E = c(E, O, P, T, S, 12, u[13])),
                (T = c(T, E, O, P, A, 17, u[14])),
                (O = f(
                  O,
                  (P = c(P, T, E, O, I, 22, u[15])),
                  T,
                  E,
                  s,
                  5,
                  u[16]
                )),
                (E = f(E, O, P, T, y, 9, u[17])),
                (T = f(T, E, O, P, b, 14, u[18])),
                (P = f(P, T, E, O, a, 20, u[19])),
                (O = f(O, P, T, E, g, 5, u[20])),
                (E = f(E, O, P, T, k, 9, u[21])),
                (T = f(T, E, O, P, I, 14, u[22])),
                (P = f(P, T, E, O, v, 20, u[23])),
                (O = f(O, P, T, E, w, 5, u[24])),
                (E = f(E, O, P, T, A, 9, u[25])),
                (T = f(T, E, O, P, d, 14, u[26])),
                (P = f(P, T, E, O, m, 20, u[27])),
                (O = f(O, P, T, E, S, 5, u[28])),
                (E = f(E, O, P, T, p, 9, u[29])),
                (T = f(T, E, O, P, _, 14, u[30])),
                (O = l(
                  O,
                  (P = f(P, T, E, O, x, 20, u[31])),
                  T,
                  E,
                  g,
                  4,
                  u[32]
                )),
                (E = l(E, O, P, T, m, 11, u[33])),
                (T = l(T, E, O, P, b, 16, u[34])),
                (P = l(P, T, E, O, A, 23, u[35])),
                (O = l(O, P, T, E, s, 4, u[36])),
                (E = l(E, O, P, T, v, 11, u[37])),
                (T = l(T, E, O, P, _, 16, u[38])),
                (P = l(P, T, E, O, k, 23, u[39])),
                (O = l(O, P, T, E, S, 4, u[40])),
                (E = l(E, O, P, T, a, 11, u[41])),
                (T = l(T, E, O, P, d, 16, u[42])),
                (P = l(P, T, E, O, y, 23, u[43])),
                (O = l(O, P, T, E, w, 4, u[44])),
                (E = l(E, O, P, T, x, 11, u[45])),
                (T = l(T, E, O, P, I, 16, u[46])),
                (O = h(
                  O,
                  (P = l(P, T, E, O, p, 23, u[47])),
                  T,
                  E,
                  a,
                  6,
                  u[48]
                )),
                (E = h(E, O, P, T, _, 10, u[49])),
                (T = h(T, E, O, P, A, 15, u[50])),
                (P = h(P, T, E, O, g, 21, u[51])),
                (O = h(O, P, T, E, x, 6, u[52])),
                (E = h(E, O, P, T, d, 10, u[53])),
                (T = h(T, E, O, P, k, 15, u[54])),
                (P = h(P, T, E, O, s, 21, u[55])),
                (O = h(O, P, T, E, m, 6, u[56])),
                (E = h(E, O, P, T, I, 10, u[57])),
                (T = h(T, E, O, P, y, 15, u[58])),
                (P = h(P, T, E, O, S, 21, u[59])),
                (O = h(O, P, T, E, v, 6, u[60])),
                (E = h(E, O, P, T, b, 10, u[61])),
                (T = h(T, E, O, P, p, 15, u[62])),
                (P = h(P, T, E, O, w, 21, u[63])),
                (o[0] = (o[0] + O) | 0),
                (o[1] = (o[1] + P) | 0),
                (o[2] = (o[2] + T) | 0),
                (o[3] = (o[3] + E) | 0);
            },
            _doFinalize: function () {
              var t = this._data,
                n = t.words,
                r = 8 * this._nDataBytes,
                i = 8 * t.sigBytes;
              n[i >>> 5] |= 128 << (24 - (i % 32));
              var o = e.floor(r / 4294967296),
                a = r;
              (n[15 + (((i + 64) >>> 9) << 4)] =
                (16711935 & ((o << 8) | (o >>> 24))) |
                (4278255360 & ((o << 24) | (o >>> 8)))),
                (n[14 + (((i + 64) >>> 9) << 4)] =
                  (16711935 & ((a << 8) | (a >>> 24))) |
                  (4278255360 & ((a << 24) | (a >>> 8)))),
                (t.sigBytes = 4 * (n.length + 1)),
                this._process();
              for (var u = this._hash, s = u.words, c = 0; c < 4; c++) {
                var f = s[c];
                s[c] =
                  (16711935 & ((f << 8) | (f >>> 24))) |
                  (4278255360 & ((f << 24) | (f >>> 8)));
              }
              return u;
            },
            clone: function () {
              var e = o.clone.call(this);
              return (e._hash = this._hash.clone()), e;
            },
          }));
          function c(e, t, n, r, i, o, a) {
            var u = e + ((t & n) | (~t & r)) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          function f(e, t, n, r, i, o, a) {
            var u = e + ((t & r) | (n & ~r)) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          function l(e, t, n, r, i, o, a) {
            var u = e + (t ^ n ^ r) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          function h(e, t, n, r, i, o, a) {
            var u = e + (n ^ (t | ~r)) + i + a;
            return ((u << o) | (u >>> (32 - o))) + t;
          }
          (t.MD5 = o._createHelper(s)), (t.HmacMD5 = o._createHmacHelper(s));
        })(Math),
        n.MD5);
    }),
    jl(function (e, t) {
      var n, r, i;
      e.exports =
        ((r = (n = Ml).lib.Base),
        (i = n.enc.Utf8),
        void (n.algo.HMAC = r.extend({
          init: function (e, t) {
            (e = this._hasher = new e.init()),
              "string" == typeof t && (t = i.parse(t));
            var n = e.blockSize,
              r = 4 * n;
            t.sigBytes > r && (t = e.finalize(t)), t.clamp();
            for (
              var o = (this._oKey = t.clone()),
                a = (this._iKey = t.clone()),
                u = o.words,
                s = a.words,
                c = 0;
              c < n;
              c++
            )
              (u[c] ^= 1549556828), (s[c] ^= 909522486);
            (o.sigBytes = a.sigBytes = r), this.reset();
          },
          reset: function () {
            var e = this._hasher;
            e.reset(), e.update(this._iKey);
          },
          update: function (e) {
            return this._hasher.update(e), this;
          },
          finalize: function (e) {
            var t = this._hasher,
              n = t.finalize(e);
            return t.reset(), t.finalize(this._oKey.clone().concat(n));
          },
        })));
    }),
    jl(function (e, t) {
      e.exports = Ml.HmacMD5;
    })),
  Fl = jl(function (e, t) {
    e.exports = Ml.enc.Utf8;
  }),
  Hl = jl(function (e, t) {
    var n, r, i;
    e.exports =
      ((i = (r = n = Ml).lib.WordArray),
      (r.enc.Base64 = {
        stringify: function (e) {
          var t = e.words,
            n = e.sigBytes,
            r = this._map;
          e.clamp();
          for (var i = [], o = 0; o < n; o += 3)
            for (
              var a =
                  (((t[o >>> 2] >>> (24 - (o % 4) * 8)) & 255) << 16) |
                  (((t[(o + 1) >>> 2] >>> (24 - ((o + 1) % 4) * 8)) & 255) <<
                    8) |
                  ((t[(o + 2) >>> 2] >>> (24 - ((o + 2) % 4) * 8)) & 255),
                u = 0;
              u < 4 && o + 0.75 * u < n;
              u++
            )
              i.push(r.charAt((a >>> (6 * (3 - u))) & 63));
          var s = r.charAt(64);
          if (s) for (; i.length % 4; ) i.push(s);
          return i.join("");
        },
        parse: function (e) {
          var t = e.length,
            n = this._map,
            r = this._reverseMap;
          if (!r) {
            r = this._reverseMap = [];
            for (var o = 0; o < n.length; o++) r[n.charCodeAt(o)] = o;
          }
          var a = n.charAt(64);
          if (a) {
            var u = e.indexOf(a);
            -1 !== u && (t = u);
          }
          return (function (e, t, n) {
            for (var r = [], o = 0, a = 0; a < t; a++)
              if (a % 4) {
                var u = n[e.charCodeAt(a - 1)] << ((a % 4) * 2),
                  s = n[e.charCodeAt(a)] >>> (6 - (a % 4) * 2);
                (r[o >>> 2] |= (u | s) << (24 - (o % 4) * 8)), o++;
              }
            return i.create(r, o);
          })(e, t, r);
        },
        _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
      }),
      n.enc.Base64);
  }),
  ql = "FUNCTION",
  zl = "pending",
  Wl = "rejected";
function Vl(e) {
  return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
}
function Kl(e) {
  return "object" === Vl(e);
}
function Jl(e) {
  return "function" == typeof e;
}
function Gl(e) {
  return function () {
    try {
      return e.apply(e, arguments);
    } catch (e) {
      console.error(e);
    }
  };
}
var Yl = "REJECTED",
  Xl = "NOT_PENDING",
  Ql = (function () {
    function e() {
      var t =
          arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
        n = t.createPromise,
        r = t.retryRule,
        i = void 0 === r ? Yl : r;
      s(this, e),
        (this.createPromise = n),
        (this.status = null),
        (this.promise = null),
        (this.retryRule = i);
    }
    return (
      c(e, [
        {
          key: "needRetry",
          get: function () {
            if (!this.status) return !0;
            switch (this.retryRule) {
              case Yl:
                return this.status === Wl;
              case Xl:
                return this.status !== zl;
            }
          },
        },
        {
          key: "exec",
          value: function () {
            var e = this;
            return this.needRetry
              ? ((this.status = zl),
                (this.promise = this.createPromise().then(
                  function (t) {
                    return (e.status = "fulfilled"), Promise.resolve(t);
                  },
                  function (t) {
                    return (e.status = Wl), Promise.reject(t);
                  }
                )),
                this.promise)
              : this.promise;
          },
        },
      ]),
      e
    );
  })();
function Zl(e) {
  return e && "string" == typeof e ? JSON.parse(e) : e;
}
var eh = Zl([]),
  th = "mp-weixin";
Zl("");
var nh = Zl("[]") || [];
try {
  ("__UNI__4AC81CE");
} catch (Nc) {}
var rh = {};
function ih(e) {
  var t,
    n,
    r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  return (
    (t = rh),
    (n = e),
    Object.prototype.hasOwnProperty.call(t, n) || (rh[e] = r),
    rh[e]
  );
}
var oh = ["invoke", "success", "fail", "complete"],
  ah = ih("_globalUniCloudInterceptor");
function uh(e, t) {
  ah[e] || (ah[e] = {}),
    Kl(t) &&
      Object.keys(t).forEach(function (n) {
        oh.indexOf(n) > -1 &&
          (function (e, t, n) {
            var r = ah[e][t];
            r || (r = ah[e][t] = []), -1 === r.indexOf(n) && Jl(n) && r.push(n);
          })(e, n, t[n]);
      });
}
function sh(e, t) {
  ah[e] || (ah[e] = {}),
    Kl(t)
      ? Object.keys(t).forEach(function (n) {
          oh.indexOf(n) > -1 &&
            (function (e, t, n) {
              var r = ah[e][t];
              if (r) {
                var i = r.indexOf(n);
                i > -1 && r.splice(i, 1);
              }
            })(e, n, t[n]);
        })
      : delete ah[e];
}
function ch(e, t) {
  return e && 0 !== e.length
    ? e.reduce(function (e, n) {
        return e.then(function () {
          return n(t);
        });
      }, Promise.resolve())
    : Promise.resolve();
}
function fh(e, t) {
  return (ah[e] && ah[e][t]) || [];
}
function lh(e) {
  uh("callObject", e);
}
var hh = ih("_globalUniCloudListener"),
  ph = "response",
  dh = "needLogin",
  vh = "refreshToken",
  gh = "clientdb",
  yh = "cloudfunction",
  _h = "cloudobject";
function mh(e) {
  return hh[e] || (hh[e] = []), hh[e];
}
function wh(e, t) {
  var n = mh(e);
  n.includes(t) || n.push(t);
}
function kh(e, t) {
  var n = mh(e),
    r = n.indexOf(t);
  -1 !== r && n.splice(r, 1);
}
function bh(e, t) {
  for (var n = mh(e), r = 0; r < n.length; r++) (0, n[r])(t);
}
var xh,
  Sh = !1;
function Ah() {
  return (
    xh ||
    (xh = new Promise(function (e) {
      Sh && e(),
        (function t() {
          if ("function" == typeof getCurrentPages) {
            var n = getCurrentPages();
            n && n[0] && ((Sh = !0), e());
          }
          Sh ||
            setTimeout(function () {
              t();
            }, 30);
        })();
    }))
  );
}
function Ih(e) {
  var t = {};
  for (var n in e) {
    var r = e[n];
    Jl(r) && (t[n] = Gl(r));
  }
  return t;
}
var Oh,
  Ph,
  Th = (function (e) {
    i(n, e);
    var t = o(n);
    function n(e) {
      var r;
      return (
        s(this, n),
        ((r = t.call(this, e.message)).errMsg =
          e.message || e.errMsg || "unknown system error"),
        (r.code = r.errCode = e.code || e.errCode || "SYSTEM_ERROR"),
        (r.errSubject = r.subject = e.subject || e.errSubject),
        (r.cause = e.cause),
        (r.requestId = e.requestId),
        r
      );
    }
    return (
      c(n, [
        {
          key: "toJson",
          value: function () {
            var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : 0;
            if (!(e >= 10))
              return (
                e++,
                {
                  errCode: this.errCode,
                  errMsg: this.errMsg,
                  errSubject: this.errSubject,
                  cause:
                    this.cause && this.cause.toJson
                      ? this.cause.toJson(e)
                      : this.cause,
                }
              );
          },
        },
      ]),
      n
    );
  })(a(Error)),
  Eh = {
    request: function (e) {
      return Pn.request(e);
    },
    uploadFile: function (e) {
      return Pn.uploadFile(e);
    },
    setStorageSync: function (e, t) {
      return Pn.setStorageSync(e, t);
    },
    getStorageSync: function (e) {
      return Pn.getStorageSync(e);
    },
    removeStorageSync: function (e) {
      return Pn.removeStorageSync(e);
    },
    clearStorageSync: function () {
      return Pn.clearStorageSync();
    },
  };
function Ch() {
  return {
    token: Eh.getStorageSync("uni_id_token") || Eh.getStorageSync("uniIdToken"),
    tokenExpired: Eh.getStorageSync("uni_id_token_expired"),
  };
}
function Rh() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
    t = e.token,
    n = e.tokenExpired;
  t && Eh.setStorageSync("uni_id_token", t),
    n && Eh.setStorageSync("uni_id_token_expired", n);
}
function Lh() {
  return Oh || (Oh = Pn.getSystemInfoSync()), Oh;
}
function Dh() {
  var e = (Pn.getLocale && Pn.getLocale()) || "en";
  if (Ph) return r(r({}, Ph), {}, { locale: e, LOCALE: e });
  for (
    var t = Lh(),
      n = t.deviceId,
      i = t.osName,
      o = t.uniPlatform,
      a = t.appId,
      u = [
        "pixelRatio",
        "brand",
        "model",
        "system",
        "language",
        "version",
        "platform",
        "host",
        "SDKVersion",
        "swanNativeVersion",
        "app",
        "AppPlatform",
        "fontSizeSetting",
      ],
      s = 0;
    s < u.length;
    s++
  )
    delete t[u[s]];
  return (
    (Ph = r(
      r(
        { PLATFORM: o, OS: i, APPID: a, DEVICEID: n },
        (function () {
          var e, t;
          try {
            if (Pn.getLaunchOptionsSync) {
              if (
                Pn.getLaunchOptionsSync
                  .toString()
                  .indexOf("not yet implemented") > -1
              )
                return;
              var n = Pn.getLaunchOptionsSync(),
                r = n.scene;
              (e = n.channel), (t = r);
            }
          } catch (e) {}
          return { channel: e, scene: t };
        })()
      ),
      t
    )),
    r(r({}, Ph), {}, { locale: e, LOCALE: e })
  );
}
var Bh,
  Nh = function (e, t) {
    var n = "";
    return (
      Object.keys(e)
        .sort()
        .forEach(function (t) {
          e[t] && (n = n + "&" + t + "=" + e[t]);
        }),
      (n = n.slice(1)),
      $l(n, t).toString()
    );
  },
  Uh = function (e) {
    return Hl.stringify(Fl.parse(e));
  },
  jh = (function () {
    function e(t) {
      var n = this;
      s(this, e),
        ["spaceId", "clientSecret"].forEach(function (e) {
          if (!Object.prototype.hasOwnProperty.call(t, e))
            throw new Error("".concat(e, " required"));
        }),
        (this.config = Object.assign(
          {},
          {
            endpoint:
              0 === t.spaceId.indexOf("mp-")
                ? "https://api.next.bspapp.com"
                : "https://api.bspapp.com",
          },
          t
        )),
        (this.config.provider = "aliyun"),
        (this.config.requestUrl = this.config.endpoint + "/client"),
        (this.config.envType = this.config.envType || "public"),
        (this.config.accessTokenKey = "access_token_" + this.config.spaceId),
        (this.adapter = Eh),
        (this._getAccessTokenPromiseHub = new Ql({
          createPromise: function () {
            return n
              .requestAuth(
                n.setupRequest(
                  {
                    method: "serverless.auth.user.anonymousAuthorize",
                    params: "{}",
                  },
                  "auth"
                )
              )
              .then(function (e) {
                if (!e.result || !e.result.accessToken)
                  throw new Th({
                    code: "AUTH_FAILED",
                    message: "获取accessToken失败",
                  });
                n.setAccessToken(e.result.accessToken);
              });
          },
          retryRule: Xl,
        }));
    }
    var r, i, o;
    return (
      c(e, [
        {
          key: "hasAccessToken",
          get: function () {
            return !!this.accessToken;
          },
        },
        {
          key: "setAccessToken",
          value: function (e) {
            this.accessToken = e;
          },
        },
        {
          key: "requestWrapped",
          value: function (e) {
            return (function (e, t) {
              return new Promise(function (n, r) {
                t(
                  Object.assign(e, {
                    complete: function (e) {
                      e || (e = {});
                      var t =
                        (e.data &&
                          e.data.header &&
                          e.data.header["x-serverless-request-id"]) ||
                        (e.header && e.header["request-id"]);
                      if (!e.statusCode || e.statusCode >= 400)
                        return r(
                          new Th({
                            code: "SYS_ERR",
                            message: e.errMsg || "request:fail",
                            requestId: t,
                          })
                        );
                      var i = e.data;
                      if (i.error)
                        return r(
                          new Th({
                            code: i.error.code,
                            message: i.error.message,
                            requestId: t,
                          })
                        );
                      (i.result = i.data),
                        (i.requestId = t),
                        delete i.data,
                        n(i);
                    },
                  })
                );
              });
            })(e, this.adapter.request);
          },
        },
        {
          key: "requestAuth",
          value: function (e) {
            return this.requestWrapped(e);
          },
        },
        {
          key: "request",
          value: function (e, t) {
            var n = this;
            return Promise.resolve().then(function () {
              return n.hasAccessToken
                ? t
                  ? n.requestWrapped(e)
                  : n.requestWrapped(e).catch(function (t) {
                      return new Promise(function (e, n) {
                        !t ||
                        ("GATEWAY_INVALID_TOKEN" !== t.code &&
                          "InvalidParameter.InvalidToken" !== t.code)
                          ? n(t)
                          : e();
                      })
                        .then(function () {
                          return n.getAccessToken();
                        })
                        .then(function () {
                          var t = n.rebuildRequest(e);
                          return n.request(t, !0);
                        });
                    })
                : n.getAccessToken().then(function () {
                    var t = n.rebuildRequest(e);
                    return n.request(t, !0);
                  });
            });
          },
        },
        {
          key: "rebuildRequest",
          value: function (e) {
            var t = Object.assign({}, e);
            return (
              (t.data.token = this.accessToken),
              (t.header["x-basement-token"] = this.accessToken),
              (t.header["x-serverless-sign"] = Nh(
                t.data,
                this.config.clientSecret
              )),
              t
            );
          },
        },
        {
          key: "setupRequest",
          value: function (e, t) {
            var n = Object.assign({}, e, {
                spaceId: this.config.spaceId,
                timestamp: Date.now(),
              }),
              r = { "Content-Type": "application/json" };
            return (
              "auth" !== t &&
                ((n.token = this.accessToken),
                (r["x-basement-token"] = this.accessToken)),
              (r["x-serverless-sign"] = Nh(n, this.config.clientSecret)),
              {
                url: this.config.requestUrl,
                method: "POST",
                data: n,
                dataType: "json",
                header: r,
              }
            );
          },
        },
        {
          key: "getAccessToken",
          value: function () {
            return this._getAccessTokenPromiseHub.exec();
          },
        },
        {
          key: "authorize",
          value:
            ((o = n(
              t().mark(function e() {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), this.getAccessToken();
                        case 2:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return o.apply(this, arguments);
            }),
        },
        {
          key: "callFunction",
          value: function (e) {
            var t = {
              method: "serverless.function.runtime.invoke",
              params: JSON.stringify({
                functionTarget: e.name,
                functionArgs: e.data || {},
              }),
            };
            return this.request(this.setupRequest(t));
          },
        },
        {
          key: "getOSSUploadOptionsFromPath",
          value: function (e) {
            var t = {
              method: "serverless.file.resource.generateProximalSign",
              params: JSON.stringify(e),
            };
            return this.request(this.setupRequest(t));
          },
        },
        {
          key: "uploadFileToOSS",
          value: function (e) {
            var t = this,
              n = e.url,
              r = e.formData,
              i = e.name,
              o = e.filePath,
              a = e.fileType,
              u = e.onUploadProgress;
            return new Promise(function (e, s) {
              var c = t.adapter.uploadFile({
                url: n,
                formData: r,
                name: i,
                filePath: o,
                fileType: a,
                header: { "X-OSS-server-side-encrpytion": "AES256" },
                success: function (t) {
                  t && t.statusCode < 400
                    ? e(t)
                    : s(
                        new Th({
                          code: "UPLOAD_FAILED",
                          message: "文件上传失败",
                        })
                      );
                },
                fail: function (e) {
                  s(
                    new Th({
                      code: e.code || "UPLOAD_FAILED",
                      message: e.message || e.errMsg || "文件上传失败",
                    })
                  );
                },
              });
              "function" == typeof u &&
                c &&
                "function" == typeof c.onProgressUpdate &&
                c.onProgressUpdate(function (e) {
                  u({
                    loaded: e.totalBytesSent,
                    total: e.totalBytesExpectedToSend,
                  });
                });
            });
          },
        },
        {
          key: "reportOSSUpload",
          value: function (e) {
            var t = {
              method: "serverless.file.resource.report",
              params: JSON.stringify(e),
            };
            return this.request(this.setupRequest(t));
          },
        },
        {
          key: "uploadFile",
          value:
            ((i = n(
              t().mark(function e(n) {
                var r,
                  i,
                  o,
                  a,
                  u,
                  s,
                  c,
                  f,
                  l,
                  h,
                  p,
                  d,
                  v,
                  g,
                  y,
                  _,
                  m,
                  w,
                  k,
                  b,
                  x,
                  S;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (
                            ((r = n.filePath),
                            (i = n.cloudPath),
                            (o = n.fileType),
                            (a = void 0 === o ? "image" : o),
                            (u = n.cloudPathAsRealPath),
                            (s = void 0 !== u && u),
                            (c = n.onUploadProgress),
                            (f = n.config),
                            "string" === Vl(i))
                          ) {
                            e.next = 3;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "cloudPath必须为字符串类型",
                          });
                        case 3:
                          if ((i = i.trim())) {
                            e.next = 5;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "cloudPath不可为空",
                          });
                        case 5:
                          if (!/:\/\//.test(i)) {
                            e.next = 7;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "cloudPath不合法",
                          });
                        case 7:
                          if (
                            ((l = (f && f.envType) || this.config.envType),
                            !(
                              s &&
                              ("/" !== i[0] && (i = "/" + i),
                              i.indexOf("\\") > -1)
                            ))
                          ) {
                            e.next = 10;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message:
                              "使用cloudPath作为路径时,cloudPath不可包含“\\”",
                          });
                        case 10:
                          return (
                            (e.next = 12),
                            this.getOSSUploadOptionsFromPath({
                              env: l,
                              filename: s ? i.split("/").pop() : i,
                              fileId: s ? i : void 0,
                            })
                          );
                        case 12:
                          return (
                            (h = e.sent.result),
                            (p = "https://" + h.cdnDomain + "/" + h.ossPath),
                            (d = h.securityToken),
                            (v = h.accessKeyId),
                            (g = h.signature),
                            (y = h.host),
                            (_ = h.ossPath),
                            (m = h.id),
                            (w = h.policy),
                            (k = h.ossCallbackUrl),
                            (b = {
                              "Cache-Control": "max-age=2592000",
                              "Content-Disposition": "attachment",
                              OSSAccessKeyId: v,
                              Signature: g,
                              host: y,
                              id: m,
                              key: _,
                              policy: w,
                              success_action_status: 200,
                            }),
                            d && (b["x-oss-security-token"] = d),
                            k &&
                              ((x = JSON.stringify({
                                callbackUrl: k,
                                callbackBody: JSON.stringify({
                                  fileId: m,
                                  spaceId: this.config.spaceId,
                                }),
                                callbackBodyType: "application/json",
                              })),
                              (b.callback = Uh(x))),
                            (S = {
                              url: "https://" + h.host,
                              formData: b,
                              fileName: "file",
                              name: "file",
                              filePath: r,
                              fileType: a,
                            }),
                            (e.next = 27),
                            this.uploadFileToOSS(
                              Object.assign({}, S, { onUploadProgress: c })
                            )
                          );
                        case 27:
                          if (!k) {
                            e.next = 29;
                            break;
                          }
                          return e.abrupt("return", {
                            success: !0,
                            filePath: r,
                            fileID: p,
                          });
                        case 29:
                          return (e.next = 31), this.reportOSSUpload({ id: m });
                        case 31:
                          if (!e.sent.success) {
                            e.next = 33;
                            break;
                          }
                          return e.abrupt("return", {
                            success: !0,
                            filePath: r,
                            fileID: p,
                          });
                        case 33:
                          throw new Th({
                            code: "UPLOAD_FAILED",
                            message: "文件上传失败",
                          });
                        case 34:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return i.apply(this, arguments);
            }),
        },
        {
          key: "getTempFileURL",
          value: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = e.fileList;
            return new Promise(function (e, n) {
              (Array.isArray(t) && 0 !== t.length) ||
                n(
                  new Th({
                    code: "INVALID_PARAM",
                    message: "fileList的元素必须是非空的字符串",
                  })
                ),
                e({
                  fileList: t.map(function (e) {
                    return { fileID: e, tempFileURL: e };
                  }),
                });
            });
          },
        },
        {
          key: "getFileInfo",
          value:
            ((r = n(
              t().mark(function e() {
                var n,
                  r,
                  i,
                  o = arguments;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (
                            ((n = o.length > 0 && void 0 !== o[0] ? o[0] : {}),
                            (r = n.fileList),
                            Array.isArray(r) && 0 !== r.length)
                          ) {
                            e.next = 3;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "fileList的元素必须是非空的字符串",
                          });
                        case 3:
                          return (
                            (i = {
                              method: "serverless.file.resource.info",
                              params: JSON.stringify({
                                id: r
                                  .map(function (e) {
                                    return e.split("?")[0];
                                  })
                                  .join(","),
                              }),
                            }),
                            (e.next = 6),
                            this.request(this.setupRequest(i))
                          );
                        case 6:
                          return (
                            (e.t0 = e.sent.result),
                            e.abrupt("return", { fileList: e.t0 })
                          );
                        case 8:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return r.apply(this, arguments);
            }),
        },
      ]),
      e
    );
  })(),
  Mh = {
    init: function (e) {
      var t = new jh(e),
        n = {
          signInAnonymously: function () {
            return t.authorize();
          },
          getLoginState: function () {
            return Promise.resolve(!1);
          },
        };
      return (
        (t.auth = function () {
          return n;
        }),
        (t.customAuth = t.auth),
        t
      );
    },
  },
  $h =
    "undefined" != typeof location && "http:" === location.protocol
      ? "http:"
      : "https:";
!(function (e) {
  (e.local = "local"), (e.none = "none"), (e.session = "session");
})(Bh || (Bh = {}));
var Fh,
  Hh = function () {},
  qh = jl(function (e, t) {
    var n;
    e.exports =
      ((n = Ml),
      (function (e) {
        var t = n,
          r = t.lib,
          i = r.WordArray,
          o = r.Hasher,
          a = t.algo,
          u = [],
          s = [];
        !(function () {
          function t(t) {
            for (var n = e.sqrt(t), r = 2; r <= n; r++) if (!(t % r)) return !1;
            return !0;
          }
          function n(e) {
            return (4294967296 * (e - (0 | e))) | 0;
          }
          for (var r = 2, i = 0; i < 64; )
            t(r) &&
              (i < 8 && (u[i] = n(e.pow(r, 0.5))),
              (s[i] = n(e.pow(r, 1 / 3))),
              i++),
              r++;
        })();
        var c = [],
          f = (a.SHA256 = o.extend({
            _doReset: function () {
              this._hash = new i.init(u.slice(0));
            },
            _doProcessBlock: function (e, t) {
              for (
                var n = this._hash.words,
                  r = n[0],
                  i = n[1],
                  o = n[2],
                  a = n[3],
                  u = n[4],
                  f = n[5],
                  l = n[6],
                  h = n[7],
                  p = 0;
                p < 64;
                p++
              ) {
                if (p < 16) c[p] = 0 | e[t + p];
                else {
                  var d = c[p - 15],
                    v =
                      ((d << 25) | (d >>> 7)) ^
                      ((d << 14) | (d >>> 18)) ^
                      (d >>> 3),
                    g = c[p - 2],
                    y =
                      ((g << 15) | (g >>> 17)) ^
                      ((g << 13) | (g >>> 19)) ^
                      (g >>> 10);
                  c[p] = v + c[p - 7] + y + c[p - 16];
                }
                var _ = (r & i) ^ (r & o) ^ (i & o),
                  m =
                    ((r << 30) | (r >>> 2)) ^
                    ((r << 19) | (r >>> 13)) ^
                    ((r << 10) | (r >>> 22)),
                  w =
                    h +
                    (((u << 26) | (u >>> 6)) ^
                      ((u << 21) | (u >>> 11)) ^
                      ((u << 7) | (u >>> 25))) +
                    ((u & f) ^ (~u & l)) +
                    s[p] +
                    c[p];
                (h = l),
                  (l = f),
                  (f = u),
                  (u = (a + w) | 0),
                  (a = o),
                  (o = i),
                  (i = r),
                  (r = (w + (m + _)) | 0);
              }
              (n[0] = (n[0] + r) | 0),
                (n[1] = (n[1] + i) | 0),
                (n[2] = (n[2] + o) | 0),
                (n[3] = (n[3] + a) | 0),
                (n[4] = (n[4] + u) | 0),
                (n[5] = (n[5] + f) | 0),
                (n[6] = (n[6] + l) | 0),
                (n[7] = (n[7] + h) | 0);
            },
            _doFinalize: function () {
              var t = this._data,
                n = t.words,
                r = 8 * this._nDataBytes,
                i = 8 * t.sigBytes;
              return (
                (n[i >>> 5] |= 128 << (24 - (i % 32))),
                (n[14 + (((i + 64) >>> 9) << 4)] = e.floor(r / 4294967296)),
                (n[15 + (((i + 64) >>> 9) << 4)] = r),
                (t.sigBytes = 4 * n.length),
                this._process(),
                this._hash
              );
            },
            clone: function () {
              var e = o.clone.call(this);
              return (e._hash = this._hash.clone()), e;
            },
          }));
        (t.SHA256 = o._createHelper(f)),
          (t.HmacSHA256 = o._createHmacHelper(f));
      })(Math),
      n.SHA256);
  }),
  zh = jl(function (e, t) {
    e.exports = Ml.HmacSHA256;
  }),
  Wh = function () {
    var e;
    if (!Promise) {
      (e = function () {}).promise = {};
      var t = function () {
        throw new Th({
          message:
            'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.',
        });
      };
      return (
        Object.defineProperty(e.promise, "then", { get: t }),
        Object.defineProperty(e.promise, "catch", { get: t }),
        e
      );
    }
    var n = new Promise(function (t, n) {
      e = function (e, r) {
        return e ? n(e) : t(r);
      };
    });
    return (e.promise = n), e;
  };
function Vh(e) {
  return void 0 === e;
}
function Kh(e) {
  return "[object Null]" === Object.prototype.toString.call(e);
}
!(function (e) {
  (e.WEB = "web"), (e.WX_MP = "wx_mp");
})(Fh || (Fh = {}));
var Jh = { adapter: null, runtime: void 0 },
  Gh = ["anonymousUuidKey"],
  Yh = (function (e) {
    i(n, Hh);
    var t = o(n);
    function n() {
      var e;
      return (
        s(this, n),
        (e = t.call(this)),
        Jh.adapter.root.tcbObject || (Jh.adapter.root.tcbObject = {}),
        e
      );
    }
    return (
      c(n, [
        {
          key: "setItem",
          value: function (e, t) {
            Jh.adapter.root.tcbObject[e] = t;
          },
        },
        {
          key: "getItem",
          value: function (e) {
            return Jh.adapter.root.tcbObject[e];
          },
        },
        {
          key: "removeItem",
          value: function (e) {
            delete Jh.adapter.root.tcbObject[e];
          },
        },
        {
          key: "clear",
          value: function () {
            delete Jh.adapter.root.tcbObject;
          },
        },
      ]),
      n
    );
  })();
function Xh(e, t) {
  switch (e) {
    case "local":
      return t.localStorage || new Yh();
    case "none":
      return new Yh();
    default:
      return t.sessionStorage || new Yh();
  }
}
var Qh = (function () {
    function e(t) {
      if ((s(this, e), !this._storage)) {
        (this._persistence = Jh.adapter.primaryStorage || t.persistence),
          (this._storage = Xh(this._persistence, Jh.adapter));
        var n = "access_token_".concat(t.env),
          r = "access_token_expire_".concat(t.env),
          i = "refresh_token_".concat(t.env),
          o = "anonymous_uuid_".concat(t.env),
          a = "login_type_".concat(t.env),
          u = "user_info_".concat(t.env);
        this.keys = {
          accessTokenKey: n,
          accessTokenExpireKey: r,
          refreshTokenKey: i,
          anonymousUuidKey: o,
          loginTypeKey: a,
          userInfoKey: u,
        };
      }
    }
    return (
      c(e, [
        {
          key: "updatePersistence",
          value: function (e) {
            if (e !== this._persistence) {
              var t = "local" === this._persistence;
              this._persistence = e;
              var n = Xh(e, Jh.adapter);
              for (var r in this.keys) {
                var i = this.keys[r];
                if (!t || !Gh.includes(r)) {
                  var o = this._storage.getItem(i);
                  Vh(o) ||
                    Kh(o) ||
                    (n.setItem(i, o), this._storage.removeItem(i));
                }
              }
              this._storage = n;
            }
          },
        },
        {
          key: "setStore",
          value: function (e, t, n) {
            if (this._storage) {
              var r = { version: n || "localCachev1", content: t },
                i = JSON.stringify(r);
              try {
                this._storage.setItem(e, i);
              } catch (e) {
                throw e;
              }
            }
          },
        },
        {
          key: "getStore",
          value: function (e, t) {
            try {
              if (!this._storage) return;
            } catch (e) {
              return "";
            }
            t = t || "localCachev1";
            var n = this._storage.getItem(e);
            return n && n.indexOf(t) >= 0 ? JSON.parse(n).content : "";
          },
        },
        {
          key: "removeStore",
          value: function (e) {
            this._storage.removeItem(e);
          },
        },
      ]),
      e
    );
  })(),
  Zh = {},
  ep = {};
function tp(e) {
  return Zh[e];
}
var np = c(function e(t, n) {
    s(this, e), (this.data = n || null), (this.name = t);
  }),
  rp = (function (e) {
    i(n, np);
    var t = o(n);
    function n(e, r) {
      var i;
      return (
        s(this, n),
        ((i = t.call(this, "error", { error: e, data: r })).error = e),
        i
      );
    }
    return c(n);
  })(),
  ip = new ((function () {
    function e() {
      s(this, e), (this._listeners = {});
    }
    return (
      c(e, [
        {
          key: "on",
          value: function (e, t) {
            return (
              (function (e, t, n) {
                (n[e] = n[e] || []), n[e].push(t);
              })(e, t, this._listeners),
              this
            );
          },
        },
        {
          key: "off",
          value: function (e, t) {
            return (
              (function (e, t, n) {
                if (n && n[e]) {
                  var r = n[e].indexOf(t);
                  -1 !== r && n[e].splice(r, 1);
                }
              })(e, t, this._listeners),
              this
            );
          },
        },
        {
          key: "fire",
          value: function (e, t) {
            if (e instanceof rp) return console.error(e.error), this;
            var n = "string" == typeof e ? new np(e, t || {}) : e,
              r = n.name;
            if (this._listens(r)) {
              n.target = this;
              var i,
                o = this._listeners[r] ? p(this._listeners[r]) : [],
                a = u(o);
              try {
                for (a.s(); !(i = a.n()).done; ) {
                  i.value.call(this, n);
                }
              } catch (e) {
                a.e(e);
              } finally {
                a.f();
              }
            }
            return this;
          },
        },
        {
          key: "_listens",
          value: function (e) {
            return this._listeners[e] && this._listeners[e].length > 0;
          },
        },
      ]),
      e
    );
  })())();
function op(e, t) {
  ip.on(e, t);
}
function ap(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  ip.fire(e, t);
}
function up(e, t) {
  ip.off(e, t);
}
var sp,
  cp = "loginStateChanged",
  fp = "loginStateExpire",
  lp = "loginTypeChanged",
  hp = "anonymousConverted",
  pp = "refreshAccessToken";
!(function (e) {
  (e.ANONYMOUS = "ANONYMOUS"),
    (e.WECHAT = "WECHAT"),
    (e.WECHAT_PUBLIC = "WECHAT-PUBLIC"),
    (e.WECHAT_OPEN = "WECHAT-OPEN"),
    (e.CUSTOM = "CUSTOM"),
    (e.EMAIL = "EMAIL"),
    (e.USERNAME = "USERNAME"),
    (e.NULL = "NULL");
})(sp || (sp = {}));
var dp = [
    "auth.getJwt",
    "auth.logout",
    "auth.signInWithTicket",
    "auth.signInAnonymously",
    "auth.signIn",
    "auth.fetchAccessTokenWithRefreshToken",
    "auth.signUpWithEmailAndPassword",
    "auth.activateEndUserMail",
    "auth.sendPasswordResetEmail",
    "auth.resetPasswordWithToken",
    "auth.isUsernameRegistered",
  ],
  vp = { "X-SDK-Version": "1.3.5" };
function gp(e, t, n) {
  var i = e[t];
  e[t] = function (t) {
    var o = {},
      a = {};
    n.forEach(function (n) {
      var r = n.call(e, t),
        i = r.data,
        u = r.headers;
      Object.assign(o, i), Object.assign(a, u);
    });
    var u = t.data;
    return (
      u &&
        (function () {
          var e;
          if (
            ((e = u), "[object FormData]" !== Object.prototype.toString.call(e))
          )
            t.data = r(r({}, u), o);
          else for (var n in o) u.append(n, o[n]);
        })(),
      (t.headers = r(r({}, t.headers || {}), a)),
      i.call(e, t)
    );
  };
}
function yp() {
  var e = Math.random().toString(16).slice(2);
  return { data: { seqId: e }, headers: r(r({}, vp), {}, { "x-seqid": e }) };
}
var _p = (function () {
    function e() {
      var t,
        n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
      s(this, e),
        (this.config = n),
        (this._reqClass = new Jh.adapter.reqClass({
          timeout: this.config.timeout,
          timeoutMsg: "请求在".concat(
            this.config.timeout / 1e3,
            "s内未完成,已中断"
          ),
          restrictedMethods: ["post"],
        })),
        (this._cache = tp(this.config.env)),
        (this._localCache = ((t = this.config.env), ep[t])),
        gp(this._reqClass, "post", [yp]),
        gp(this._reqClass, "upload", [yp]),
        gp(this._reqClass, "download", [yp]);
    }
    var i, o, a, u, f, l, h, p;
    return (
      c(e, [
        {
          key: "post",
          value:
            ((p = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), this._reqClass.post(n);
                        case 2:
                          return e.abrupt("return", e.sent);
                        case 3:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return p.apply(this, arguments);
            }),
        },
        {
          key: "upload",
          value:
            ((h = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), this._reqClass.upload(n);
                        case 2:
                          return e.abrupt("return", e.sent);
                        case 3:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return h.apply(this, arguments);
            }),
        },
        {
          key: "download",
          value:
            ((l = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), this._reqClass.download(n);
                        case 2:
                          return e.abrupt("return", e.sent);
                        case 3:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return l.apply(this, arguments);
            }),
        },
        {
          key: "refreshAccessToken",
          value:
            ((f = n(
              t().mark(function e() {
                var n, r;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            this._refreshAccessTokenPromise ||
                              (this._refreshAccessTokenPromise =
                                this._refreshAccessToken()),
                            (e.prev = 1),
                            (e.next = 4),
                            this._refreshAccessTokenPromise
                          );
                        case 4:
                          (n = e.sent), (e.next = 10);
                          break;
                        case 7:
                          (e.prev = 7), (e.t0 = e.catch(1)), (r = e.t0);
                        case 10:
                          if (
                            ((this._refreshAccessTokenPromise = null),
                            (this._shouldRefreshAccessTokenHook = null),
                            !r)
                          ) {
                            e.next = 12;
                            break;
                          }
                          throw r;
                        case 12:
                          return e.abrupt("return", n);
                        case 13:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this,
                  [[1, 7]]
                );
              })
            )),
            function () {
              return f.apply(this, arguments);
            }),
        },
        {
          key: "_refreshAccessToken",
          value:
            ((u = n(
              t().mark(function e() {
                var n, r, i, o, a, u, s, c, f, l, h, p, d;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (
                            ((n = this._cache.keys),
                            (r = n.accessTokenKey),
                            (i = n.accessTokenExpireKey),
                            (o = n.refreshTokenKey),
                            (a = n.loginTypeKey),
                            (u = n.anonymousUuidKey),
                            this._cache.removeStore(r),
                            this._cache.removeStore(i),
                            (s = this._cache.getStore(o)))
                          ) {
                            e.next = 5;
                            break;
                          }
                          throw new Th({ message: "未登录CloudBase" });
                        case 5:
                          return (
                            (c = { refresh_token: s }),
                            (e.next = 8),
                            this.request(
                              "auth.fetchAccessTokenWithRefreshToken",
                              c
                            )
                          );
                        case 8:
                          if (!(f = e.sent).data.code) {
                            e.next = 21;
                            break;
                          }
                          if (
                            "SIGN_PARAM_INVALID" !== (l = f.data.code) &&
                            "REFRESH_TOKEN_EXPIRED" !== l &&
                            "INVALID_REFRESH_TOKEN" !== l
                          ) {
                            e.next = 20;
                            break;
                          }
                          if (
                            this._cache.getStore(a) !== sp.ANONYMOUS ||
                            "INVALID_REFRESH_TOKEN" !== l
                          ) {
                            e.next = 19;
                            break;
                          }
                          return (
                            (h = this._cache.getStore(u)),
                            (p = this._cache.getStore(o)),
                            (e.next = 17),
                            this.send("auth.signInAnonymously", {
                              anonymous_uuid: h,
                              refresh_token: p,
                            })
                          );
                        case 17:
                          return (
                            (d = e.sent),
                            e.abrupt(
                              "return",
                              (this.setRefreshToken(d.refresh_token),
                              this._refreshAccessToken())
                            )
                          );
                        case 19:
                          ap(fp), this._cache.removeStore(o);
                        case 20:
                          throw new Th({
                            code: f.data.code,
                            message: "刷新access token失败:".concat(
                              f.data.code
                            ),
                          });
                        case 21:
                          if (!f.data.access_token) {
                            e.next = 23;
                            break;
                          }
                          return e.abrupt(
                            "return",
                            (ap(pp),
                            this._cache.setStore(r, f.data.access_token),
                            this._cache.setStore(
                              i,
                              f.data.access_token_expire + Date.now()
                            ),
                            {
                              accessToken: f.data.access_token,
                              accessTokenExpire: f.data.access_token_expire,
                            })
                          );
                        case 23:
                          f.data.refresh_token &&
                            (this._cache.removeStore(o),
                            this._cache.setStore(o, f.data.refresh_token),
                            this._refreshAccessToken());
                        case 24:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return u.apply(this, arguments);
            }),
        },
        {
          key: "getAccessToken",
          value:
            ((a = n(
              t().mark(function e() {
                var n, r, i, o, a, u, s;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (
                            ((n = this._cache.keys),
                            (r = n.accessTokenKey),
                            (i = n.accessTokenExpireKey),
                            (o = n.refreshTokenKey),
                            this._cache.getStore(o))
                          ) {
                            e.next = 3;
                            break;
                          }
                          throw new Th({
                            message: "refresh token不存在,登录状态异常",
                          });
                        case 3:
                          if (
                            ((a = this._cache.getStore(r)),
                            (u = this._cache.getStore(i)),
                            (s = !0),
                            (e.t0 = this._shouldRefreshAccessTokenHook),
                            !e.t0)
                          ) {
                            e.next = 9;
                            break;
                          }
                          return (
                            (e.next = 8),
                            this._shouldRefreshAccessTokenHook(a, u)
                          );
                        case 8:
                          e.t0 = !e.sent;
                        case 9:
                          if (((e.t1 = e.t0), !e.t1)) {
                            e.next = 12;
                            break;
                          }
                          s = !1;
                        case 12:
                          return e.abrupt(
                            "return",
                            (!a || !u || u < Date.now()) && s
                              ? this.refreshAccessToken()
                              : { accessToken: a, accessTokenExpire: u }
                          );
                        case 13:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return a.apply(this, arguments);
            }),
        },
        {
          key: "request",
          value:
            ((o = n(
              t().mark(function e(n, i, o) {
                var a, u, s, c, f, l, h, p, d, v, g, y, _, m, w, k;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (
                            ((a = "x-tcb-trace_".concat(this.config.env)),
                            (u = "application/x-www-form-urlencoded"),
                            (s = r(
                              {
                                action: n,
                                env: this.config.env,
                                dataVersion: "2019-08-16",
                              },
                              i
                            )),
                            -1 !== dp.indexOf(n))
                          ) {
                            e.next = 10;
                            break;
                          }
                          if (
                            ((c = this._cache.keys.refreshTokenKey),
                            (e.t0 = this._cache.getStore(c)),
                            !e.t0)
                          ) {
                            e.next = 10;
                            break;
                          }
                          return (e.next = 9), this.getAccessToken();
                        case 9:
                          s.access_token = e.sent.accessToken;
                        case 10:
                          if ("storage.uploadFile" === n) {
                            for (l in (f = new FormData()))
                              f.hasOwnProperty(l) &&
                                void 0 !== f[l] &&
                                f.append(l, s[l]);
                            u = "multipart/form-data";
                          } else
                            for (h in ((u = "application/json"), (f = {}), s))
                              void 0 !== s[h] && (f[h] = s[h]);
                          return (
                            (p = { headers: { "content-type": u } }),
                            o &&
                              o.onUploadProgress &&
                              (p.onUploadProgress = o.onUploadProgress),
                            (d = this._localCache.getStore(a)) &&
                              (p.headers["X-TCB-Trace"] = d),
                            (v = i.parse),
                            (g = i.inQuery),
                            (y = i.search),
                            (_ = { env: this.config.env }),
                            v && (_.parse = !0),
                            g && (_ = r(r({}, g), _)),
                            (m = (function (e, t) {
                              var n =
                                  arguments.length > 2 &&
                                  void 0 !== arguments[2]
                                    ? arguments[2]
                                    : {},
                                r = /\?/.test(t),
                                i = "";
                              for (var o in n)
                                "" === i ? !r && (t += "?") : (i += "&"),
                                  (i += ""
                                    .concat(o, "=")
                                    .concat(encodeURIComponent(n[o])));
                              return /^http(s)?\:\/\//.test((t += i))
                                ? t
                                : "".concat(e).concat(t);
                            })($h, "//tcb-api.tencentcloudapi.com/web", _)),
                            y && (m += y),
                            (e.next = 22),
                            this.post(r({ url: m, data: f }, p))
                          );
                        case 22:
                          if (
                            ((w = e.sent),
                            (k = w.header && w.header["x-tcb-trace"]) &&
                              this._localCache.setStore(a, k),
                            (200 === Number(w.status) ||
                              200 === Number(w.statusCode)) &&
                              w.data)
                          ) {
                            e.next = 26;
                            break;
                          }
                          throw new Th({
                            code: "NETWORK_ERROR",
                            message: "network request error",
                          });
                        case 26:
                          return e.abrupt("return", w);
                        case 27:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t, n) {
              return o.apply(this, arguments);
            }),
        },
        {
          key: "send",
          value:
            ((i = n(
              t().mark(function e(n) {
                var r,
                  i,
                  o,
                  a = arguments;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (r = a.length > 1 && void 0 !== a[1] ? a[1] : {}),
                            (e.next = 3),
                            this.request(n, r, {
                              onUploadProgress: r.onUploadProgress,
                            })
                          );
                        case 3:
                          if (
                            "ACCESS_TOKEN_EXPIRED" !== (i = e.sent).data.code ||
                            -1 !== dp.indexOf(n)
                          ) {
                            e.next = 13;
                            break;
                          }
                          return (e.next = 7), this.refreshAccessToken();
                        case 7:
                          return (
                            (e.next = 9),
                            this.request(n, r, {
                              onUploadProgress: r.onUploadProgress,
                            })
                          );
                        case 9:
                          if (!(o = e.sent).data.code) {
                            e.next = 12;
                            break;
                          }
                          throw new Th({
                            code: o.data.code,
                            message: o.data.message,
                          });
                        case 12:
                          return e.abrupt("return", o.data);
                        case 13:
                          if (!i.data.code) {
                            e.next = 15;
                            break;
                          }
                          throw new Th({
                            code: i.data.code,
                            message: i.data.message,
                          });
                        case 15:
                          return e.abrupt("return", i.data);
                        case 16:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return i.apply(this, arguments);
            }),
        },
        {
          key: "setRefreshToken",
          value: function (e) {
            var t = this._cache.keys,
              n = t.accessTokenKey,
              r = t.accessTokenExpireKey,
              i = t.refreshTokenKey;
            this._cache.removeStore(n),
              this._cache.removeStore(r),
              this._cache.setStore(i, e);
          },
        },
      ]),
      e
    );
  })(),
  mp = {};
function wp(e) {
  return mp[e];
}
var kp = (function () {
    function e(t) {
      s(this, e),
        (this.config = t),
        (this._cache = tp(t.env)),
        (this._request = wp(t.env));
    }
    var r;
    return (
      c(e, [
        {
          key: "setRefreshToken",
          value: function (e) {
            var t = this._cache.keys,
              n = t.accessTokenKey,
              r = t.accessTokenExpireKey,
              i = t.refreshTokenKey;
            this._cache.removeStore(n),
              this._cache.removeStore(r),
              this._cache.setStore(i, e);
          },
        },
        {
          key: "setAccessToken",
          value: function (e, t) {
            var n = this._cache.keys,
              r = n.accessTokenKey,
              i = n.accessTokenExpireKey;
            this._cache.setStore(r, e), this._cache.setStore(i, t);
          },
        },
        {
          key: "refreshUserInfo",
          value:
            ((r = n(
              t().mark(function e() {
                var n, r;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (e.next = 2),
                            this._request.send("auth.getUserInfo", {})
                          );
                        case 2:
                          return (
                            (n = e.sent),
                            (r = n.data),
                            e.abrupt("return", (this.setLocalUserInfo(r), r))
                          );
                        case 5:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return r.apply(this, arguments);
            }),
        },
        {
          key: "setLocalUserInfo",
          value: function (e) {
            var t = this._cache.keys.userInfoKey;
            this._cache.setStore(t, e);
          },
        },
      ]),
      e
    );
  })(),
  bp = (function () {
    function e(t) {
      if ((s(this, e), !t))
        throw new Th({ code: "PARAM_ERROR", message: "envId is not defined" });
      (this._envId = t),
        (this._cache = tp(this._envId)),
        (this._request = wp(this._envId)),
        this.setUserInfo();
    }
    var r, i, o;
    return (
      c(e, [
        {
          key: "linkWithTicket",
          value: function (e) {
            if ("string" != typeof e)
              throw new Th({
                code: "PARAM_ERROR",
                message: "ticket must be string",
              });
            return this._request.send("auth.linkWithTicket", { ticket: e });
          },
        },
        {
          key: "linkWithRedirect",
          value: function (e) {
            e.signInWithRedirect();
          },
        },
        {
          key: "updatePassword",
          value: function (e, t) {
            return this._request.send("auth.updatePassword", {
              oldPassword: t,
              newPassword: e,
            });
          },
        },
        {
          key: "updateEmail",
          value: function (e) {
            return this._request.send("auth.updateEmail", { newEmail: e });
          },
        },
        {
          key: "updateUsername",
          value: function (e) {
            if ("string" != typeof e)
              throw new Th({
                code: "PARAM_ERROR",
                message: "username must be a string",
              });
            return this._request.send("auth.updateUsername", { username: e });
          },
        },
        {
          key: "getLinkedUidList",
          value:
            ((o = n(
              t().mark(function e() {
                var n, r, i, o;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (e.next = 2),
                            this._request.send("auth.getLinkedUidList", {})
                          );
                        case 2:
                          return (
                            (n = e.sent),
                            (r = n.data),
                            (i = !1),
                            (o = r.users),
                            e.abrupt(
                              "return",
                              (o.forEach(function (e) {
                                e.wxOpenId && e.wxPublicId && (i = !0);
                              }),
                              { users: o, hasPrimaryUid: i })
                            )
                          );
                        case 7:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return o.apply(this, arguments);
            }),
        },
        {
          key: "setPrimaryUid",
          value: function (e) {
            return this._request.send("auth.setPrimaryUid", { uid: e });
          },
        },
        {
          key: "unlink",
          value: function (e) {
            return this._request.send("auth.unlink", { platform: e });
          },
        },
        {
          key: "update",
          value:
            ((i = n(
              t().mark(function e(n) {
                var r, i, o, a, u, s, c, f;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (r = n.nickName),
                            (i = n.gender),
                            (o = n.avatarUrl),
                            (a = n.province),
                            (u = n.country),
                            (s = n.city),
                            (e.next = 8),
                            this._request.send("auth.updateUserInfo", {
                              nickName: r,
                              gender: i,
                              avatarUrl: o,
                              province: a,
                              country: u,
                              city: s,
                            })
                          );
                        case 8:
                          (c = e.sent), (f = c.data), this.setLocalUserInfo(f);
                        case 11:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return i.apply(this, arguments);
            }),
        },
        {
          key: "refresh",
          value:
            ((r = n(
              t().mark(function e() {
                var n, r;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (e.next = 2),
                            this._request.send("auth.getUserInfo", {})
                          );
                        case 2:
                          return (
                            (n = e.sent),
                            (r = n.data),
                            e.abrupt("return", (this.setLocalUserInfo(r), r))
                          );
                        case 5:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return r.apply(this, arguments);
            }),
        },
        {
          key: "setUserInfo",
          value: function () {
            var e = this,
              t = this._cache.keys.userInfoKey,
              n = this._cache.getStore(t);
            [
              "uid",
              "loginType",
              "openid",
              "wxOpenId",
              "wxPublicId",
              "unionId",
              "qqMiniOpenId",
              "email",
              "hasPassword",
              "customUserId",
              "nickName",
              "gender",
              "avatarUrl",
            ].forEach(function (t) {
              e[t] = n[t];
            }),
              (this.location = {
                country: n.country,
                province: n.province,
                city: n.city,
              });
          },
        },
        {
          key: "setLocalUserInfo",
          value: function (e) {
            var t = this._cache.keys.userInfoKey;
            this._cache.setStore(t, e), this.setUserInfo();
          },
        },
      ]),
      e
    );
  })(),
  xp = (function () {
    function e(t) {
      if ((s(this, e), !t))
        throw new Th({ code: "PARAM_ERROR", message: "envId is not defined" });
      this._cache = tp(t);
      var n = this._cache.keys,
        r = n.refreshTokenKey,
        i = n.accessTokenKey,
        o = n.accessTokenExpireKey,
        a = this._cache.getStore(r),
        u = this._cache.getStore(i),
        c = this._cache.getStore(o);
      (this.credential = {
        refreshToken: a,
        accessToken: u,
        accessTokenExpire: c,
      }),
        (this.user = new bp(t));
    }
    return (
      c(e, [
        {
          key: "isAnonymousAuth",
          get: function () {
            return this.loginType === sp.ANONYMOUS;
          },
        },
        {
          key: "isCustomAuth",
          get: function () {
            return this.loginType === sp.CUSTOM;
          },
        },
        {
          key: "isWeixinAuth",
          get: function () {
            return (
              this.loginType === sp.WECHAT ||
              this.loginType === sp.WECHAT_OPEN ||
              this.loginType === sp.WECHAT_PUBLIC
            );
          },
        },
        {
          key: "loginType",
          get: function () {
            return this._cache.getStore(this._cache.keys.loginTypeKey);
          },
        },
      ]),
      e
    );
  })(),
  Sp = (function (e) {
    i(f, kp);
    var r,
      a,
      u = o(f);
    function f() {
      return s(this, f), u.apply(this, arguments);
    }
    return (
      c(f, [
        {
          key: "signIn",
          value:
            ((a = n(
              t().mark(function e() {
                var n, r, i, o, a, u, s;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            this._cache.updatePersistence("local"),
                            (n = this._cache.keys),
                            (r = n.anonymousUuidKey),
                            (i = n.refreshTokenKey),
                            (o = this._cache.getStore(r) || void 0),
                            (a = this._cache.getStore(i) || void 0),
                            (e.next = 8),
                            this._request.send("auth.signInAnonymously", {
                              anonymous_uuid: o,
                              refresh_token: a,
                            })
                          );
                        case 8:
                          if (!(u = e.sent).uuid || !u.refresh_token) {
                            e.next = 20;
                            break;
                          }
                          return (
                            this._setAnonymousUUID(u.uuid),
                            this.setRefreshToken(u.refresh_token),
                            (e.next = 14),
                            this._request.refreshAccessToken()
                          );
                        case 14:
                          return (
                            ap(cp),
                            ap(lp, {
                              env: this.config.env,
                              loginType: sp.ANONYMOUS,
                              persistence: "local",
                            }),
                            (s = new xp(this.config.env)),
                            (e.next = 19),
                            s.user.refresh()
                          );
                        case 19:
                          return e.abrupt("return", s);
                        case 20:
                          throw new Th({ message: "匿名登录失败" });
                        case 21:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return a.apply(this, arguments);
            }),
        },
        {
          key: "linkAndRetrieveDataWithTicket",
          value:
            ((r = n(
              t().mark(function e(n) {
                var r, i, o, a, u, s;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (r = this._cache.keys),
                            (i = r.anonymousUuidKey),
                            (o = r.refreshTokenKey),
                            (a = this._cache.getStore(i)),
                            (u = this._cache.getStore(o)),
                            (e.next = 7),
                            this._request.send(
                              "auth.linkAndRetrieveDataWithTicket",
                              { anonymous_uuid: a, refresh_token: u, ticket: n }
                            )
                          );
                        case 7:
                          if (!(s = e.sent).refresh_token) {
                            e.next = 16;
                            break;
                          }
                          return (
                            this._clearAnonymousUUID(),
                            this.setRefreshToken(s.refresh_token),
                            (e.next = 13),
                            this._request.refreshAccessToken()
                          );
                        case 13:
                          return (
                            ap(hp, { env: this.config.env }),
                            ap(lp, {
                              loginType: sp.CUSTOM,
                              persistence: "local",
                            }),
                            e.abrupt("return", {
                              credential: { refreshToken: s.refresh_token },
                            })
                          );
                        case 16:
                          throw new Th({ message: "匿名转化失败" });
                        case 17:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return r.apply(this, arguments);
            }),
        },
        {
          key: "_setAnonymousUUID",
          value: function (e) {
            var t = this._cache.keys,
              n = t.anonymousUuidKey,
              r = t.loginTypeKey;
            this._cache.removeStore(n),
              this._cache.setStore(n, e),
              this._cache.setStore(r, sp.ANONYMOUS);
          },
        },
        {
          key: "_clearAnonymousUUID",
          value: function () {
            this._cache.removeStore(this._cache.keys.anonymousUuidKey);
          },
        },
      ]),
      f
    );
  })(),
  Ap = (function (e) {
    i(u, kp);
    var r,
      a = o(u);
    function u() {
      return s(this, u), a.apply(this, arguments);
    }
    return (
      c(u, [
        {
          key: "signIn",
          value:
            ((r = n(
              t().mark(function e(n) {
                var r, i;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if ("string" == typeof n) {
                            e.next = 2;
                            break;
                          }
                          throw new Th({
                            code: "PARAM_ERROR",
                            message: "ticket must be a string",
                          });
                        case 2:
                          return (
                            (r = this._cache.keys.refreshTokenKey),
                            (e.next = 5),
                            this._request.send("auth.signInWithTicket", {
                              ticket: n,
                              refresh_token: this._cache.getStore(r) || "",
                            })
                          );
                        case 5:
                          if (!(i = e.sent).refresh_token) {
                            e.next = 15;
                            break;
                          }
                          return (
                            this.setRefreshToken(i.refresh_token),
                            (e.next = 10),
                            this._request.refreshAccessToken()
                          );
                        case 10:
                          return (
                            ap(cp),
                            ap(lp, {
                              env: this.config.env,
                              loginType: sp.CUSTOM,
                              persistence: this.config.persistence,
                            }),
                            (e.next = 14),
                            this.refreshUserInfo()
                          );
                        case 14:
                          return e.abrupt("return", new xp(this.config.env));
                        case 15:
                          throw new Th({ message: "自定义登录失败" });
                        case 16:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return r.apply(this, arguments);
            }),
        },
      ]),
      u
    );
  })(),
  Ip = (function (e) {
    i(l, kp);
    var r,
      a,
      u,
      f = o(l);
    function l() {
      return s(this, l), f.apply(this, arguments);
    }
    return (
      c(l, [
        {
          key: "signIn",
          value:
            ((u = n(
              t().mark(function e(n, r) {
                var i, o, a, u, s;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if ("string" == typeof n) {
                            e.next = 2;
                            break;
                          }
                          throw new Th({
                            code: "PARAM_ERROR",
                            message: "email must be a string",
                          });
                        case 2:
                          return (
                            (i = this._cache.keys.refreshTokenKey),
                            (e.next = 5),
                            this._request.send("auth.signIn", {
                              loginType: "EMAIL",
                              email: n,
                              password: r,
                              refresh_token: this._cache.getStore(i) || "",
                            })
                          );
                        case 5:
                          if (
                            ((o = e.sent),
                            (a = o.refresh_token),
                            (u = o.access_token),
                            (s = o.access_token_expire),
                            !a)
                          ) {
                            e.next = 22;
                            break;
                          }
                          if ((this.setRefreshToken(a), !u || !s)) {
                            e.next = 15;
                            break;
                          }
                          this.setAccessToken(u, s), (e.next = 17);
                          break;
                        case 15:
                          return (
                            (e.next = 17), this._request.refreshAccessToken()
                          );
                        case 17:
                          return (e.next = 19), this.refreshUserInfo();
                        case 19:
                          return (
                            ap(cp),
                            ap(lp, {
                              env: this.config.env,
                              loginType: sp.EMAIL,
                              persistence: this.config.persistence,
                            }),
                            e.abrupt("return", new xp(this.config.env))
                          );
                        case 22:
                          throw o.code
                            ? new Th({
                                code: o.code,
                                message: "邮箱登录失败: ".concat(o.message),
                              })
                            : new Th({ message: "邮箱登录失败" });
                        case 23:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t) {
              return u.apply(this, arguments);
            }),
        },
        {
          key: "activate",
          value:
            ((a = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            this._request.send("auth.activateEndUserMail", {
                              token: n,
                            })
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return a.apply(this, arguments);
            }),
        },
        {
          key: "resetPasswordWithToken",
          value:
            ((r = n(
              t().mark(function e(n, r) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            this._request.send("auth.resetPasswordWithToken", {
                              token: n,
                              newPassword: r,
                            })
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t) {
              return r.apply(this, arguments);
            }),
        },
      ]),
      l
    );
  })(),
  Op = (function (e) {
    i(u, kp);
    var r,
      a = o(u);
    function u() {
      return s(this, u), a.apply(this, arguments);
    }
    return (
      c(u, [
        {
          key: "signIn",
          value:
            ((r = n(
              t().mark(function e(n, r) {
                var i, o, a, u, s;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if ("string" == typeof n) {
                            e.next = 2;
                            break;
                          }
                          throw new Th({
                            code: "PARAM_ERROR",
                            message: "username must be a string",
                          });
                        case 2:
                          return (
                            "string" != typeof r &&
                              ((r = ""), console.warn("password is empty")),
                            (i = this._cache.keys.refreshTokenKey),
                            (e.next = 6),
                            this._request.send("auth.signIn", {
                              loginType: sp.USERNAME,
                              username: n,
                              password: r,
                              refresh_token: this._cache.getStore(i) || "",
                            })
                          );
                        case 6:
                          if (
                            ((o = e.sent),
                            (a = o.refresh_token),
                            (u = o.access_token_expire),
                            (s = o.access_token),
                            !a)
                          ) {
                            e.next = 23;
                            break;
                          }
                          if ((this.setRefreshToken(a), !s || !u)) {
                            e.next = 16;
                            break;
                          }
                          this.setAccessToken(s, u), (e.next = 18);
                          break;
                        case 16:
                          return (
                            (e.next = 18), this._request.refreshAccessToken()
                          );
                        case 18:
                          return (e.next = 20), this.refreshUserInfo();
                        case 20:
                          return (
                            ap(cp),
                            ap(lp, {
                              env: this.config.env,
                              loginType: sp.USERNAME,
                              persistence: this.config.persistence,
                            }),
                            e.abrupt("return", new xp(this.config.env))
                          );
                        case 23:
                          throw o.code
                            ? new Th({
                                code: o.code,
                                message: "用户名密码登录失败: ".concat(
                                  o.message
                                ),
                              })
                            : new Th({ message: "用户名密码登录失败" });
                        case 24:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t) {
              return r.apply(this, arguments);
            }),
        },
      ]),
      u
    );
  })(),
  Pp = (function () {
    function e(t) {
      s(this, e),
        (this.config = t),
        (this._cache = tp(t.env)),
        (this._request = wp(t.env)),
        (this._onAnonymousConverted = this._onAnonymousConverted.bind(this)),
        (this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this)),
        op(lp, this._onLoginTypeChanged);
    }
    var i, o, a, u, f, l, h, p, d;
    return (
      c(e, [
        {
          key: "currentUser",
          get: function () {
            var e = this.hasLoginState();
            return (e && e.user) || null;
          },
        },
        {
          key: "loginType",
          get: function () {
            return this._cache.getStore(this._cache.keys.loginTypeKey);
          },
        },
        {
          key: "anonymousAuthProvider",
          value: function () {
            return new Sp(this.config);
          },
        },
        {
          key: "customAuthProvider",
          value: function () {
            return new Ap(this.config);
          },
        },
        {
          key: "emailAuthProvider",
          value: function () {
            return new Ip(this.config);
          },
        },
        {
          key: "usernameAuthProvider",
          value: function () {
            return new Op(this.config);
          },
        },
        {
          key: "signInAnonymously",
          value:
            ((d = n(
              t().mark(function e() {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            new Sp(this.config).signIn()
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return d.apply(this, arguments);
            }),
        },
        {
          key: "signInWithEmailAndPassword",
          value:
            ((p = n(
              t().mark(function e(n, r) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            new Ip(this.config).signIn(n, r)
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t) {
              return p.apply(this, arguments);
            }),
        },
        {
          key: "signInWithUsernameAndPassword",
          value: function (e, t) {
            return new Op(this.config).signIn(e, t);
          },
        },
        {
          key: "linkAndRetrieveDataWithTicket",
          value:
            ((h = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            this._anonymousAuthProvider ||
                              (this._anonymousAuthProvider = new Sp(
                                this.config
                              )),
                            op(hp, this._onAnonymousConverted),
                            (e.next = 4),
                            this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(
                              n
                            )
                          );
                        case 4:
                          return e.abrupt("return", e.sent);
                        case 5:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return h.apply(this, arguments);
            }),
        },
        {
          key: "signOut",
          value:
            ((l = n(
              t().mark(function e() {
                var n, r, i, o, a, u;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (this.loginType !== sp.ANONYMOUS) {
                            e.next = 2;
                            break;
                          }
                          throw new Th({ message: "匿名用户不支持登出操作" });
                        case 2:
                          if (
                            ((n = this._cache.keys),
                            (r = n.refreshTokenKey),
                            (i = n.accessTokenKey),
                            (o = n.accessTokenExpireKey),
                            (a = this._cache.getStore(r)))
                          ) {
                            e.next = 5;
                            break;
                          }
                          return e.abrupt("return");
                        case 5:
                          return (
                            (e.next = 7),
                            this._request.send("auth.logout", {
                              refresh_token: a,
                            })
                          );
                        case 7:
                          return (
                            (u = e.sent),
                            e.abrupt(
                              "return",
                              (this._cache.removeStore(r),
                              this._cache.removeStore(i),
                              this._cache.removeStore(o),
                              ap(cp),
                              ap(lp, {
                                env: this.config.env,
                                loginType: sp.NULL,
                                persistence: this.config.persistence,
                              }),
                              u)
                            )
                          );
                        case 9:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return l.apply(this, arguments);
            }),
        },
        {
          key: "signUpWithEmailAndPassword",
          value:
            ((f = n(
              t().mark(function e(n, r) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            this._request.send(
                              "auth.signUpWithEmailAndPassword",
                              { email: n, password: r }
                            )
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t) {
              return f.apply(this, arguments);
            }),
        },
        {
          key: "sendPasswordResetEmail",
          value:
            ((u = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            this._request.send("auth.sendPasswordResetEmail", {
                              email: n,
                            })
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return u.apply(this, arguments);
            }),
        },
        {
          key: "onLoginStateChanged",
          value: function (e) {
            var t = this;
            op(cp, function () {
              var n = t.hasLoginState();
              e.call(t, n);
            });
            var n = this.hasLoginState();
            e.call(this, n);
          },
        },
        {
          key: "onLoginStateExpired",
          value: function (e) {
            op(fp, e.bind(this));
          },
        },
        {
          key: "onAccessTokenRefreshed",
          value: function (e) {
            op(pp, e.bind(this));
          },
        },
        {
          key: "onAnonymousConverted",
          value: function (e) {
            op(hp, e.bind(this));
          },
        },
        {
          key: "onLoginTypeChanged",
          value: function (e) {
            var t = this;
            op(lp, function () {
              var n = t.hasLoginState();
              e.call(t, n);
            });
          },
        },
        {
          key: "getAccessToken",
          value:
            ((a = n(
              t().mark(function e() {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), this._request.getAccessToken();
                        case 2:
                          return (
                            (e.t0 = e.sent.accessToken),
                            (e.t1 = this.config.env),
                            e.abrupt("return", { accessToken: e.t0, env: e.t1 })
                          );
                        case 5:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return a.apply(this, arguments);
            }),
        },
        {
          key: "hasLoginState",
          value: function () {
            var e = this._cache.keys.refreshTokenKey;
            return this._cache.getStore(e) ? new xp(this.config.env) : null;
          },
        },
        {
          key: "isUsernameRegistered",
          value:
            ((o = n(
              t().mark(function e(n) {
                var r, i;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if ("string" == typeof n) {
                            e.next = 2;
                            break;
                          }
                          throw new Th({
                            code: "PARAM_ERROR",
                            message: "username must be a string",
                          });
                        case 2:
                          return (
                            (e.next = 4),
                            this._request.send("auth.isUsernameRegistered", {
                              username: n,
                            })
                          );
                        case 4:
                          return (
                            (r = e.sent),
                            (i = r.data),
                            e.abrupt("return", i && i.isRegistered)
                          );
                        case 7:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return o.apply(this, arguments);
            }),
        },
        {
          key: "getLoginState",
          value: function () {
            return Promise.resolve(this.hasLoginState());
          },
        },
        {
          key: "signInWithTicket",
          value:
            ((i = n(
              t().mark(function e(n) {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            "return",
                            new Ap(this.config).signIn(n)
                          );
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return i.apply(this, arguments);
            }),
        },
        {
          key: "shouldRefreshAccessToken",
          value: function (e) {
            this._request._shouldRefreshAccessTokenHook = e.bind(this);
          },
        },
        {
          key: "getUserInfo",
          value: function () {
            return this._request
              .send("auth.getUserInfo", {})
              .then(function (e) {
                return e.code
                  ? e
                  : r(r({}, e.data), {}, { requestId: e.seqId });
              });
          },
        },
        {
          key: "getAuthHeader",
          value: function () {
            var e = this._cache.keys,
              t = e.refreshTokenKey,
              n = e.accessTokenKey,
              r = this._cache.getStore(t);
            return {
              "x-cloudbase-credentials": this._cache.getStore(n) + "/@@/" + r,
            };
          },
        },
        {
          key: "_onAnonymousConverted",
          value: function (e) {
            e.data.env === this.config.env &&
              this._cache.updatePersistence(this.config.persistence);
          },
        },
        {
          key: "_onLoginTypeChanged",
          value: function (e) {
            var t = e.data,
              n = t.loginType,
              r = t.persistence;
            t.env === this.config.env &&
              (this._cache.updatePersistence(r),
              this._cache.setStore(this._cache.keys.loginTypeKey, n));
          },
        },
      ]),
      e
    );
  })(),
  Tp = function (e, t) {
    t = t || Wh();
    var n = wp(this.config.env),
      r = e.cloudPath,
      i = e.filePath,
      o = e.onUploadProgress,
      a = e.fileType,
      u = void 0 === a ? "image" : a;
    return (
      n
        .send("storage.getUploadMetadata", { path: r })
        .then(function (e) {
          var a = e.data,
            s = a.url,
            c = a.authorization,
            f = a.token,
            l = a.fileId,
            h = a.cosFileId,
            p = e.requestId,
            d = {
              key: r,
              signature: c,
              "x-cos-meta-fileid": h,
              success_action_status: "201",
              "x-cos-security-token": f,
            };
          n.upload({
            url: s,
            data: d,
            file: i,
            name: r,
            fileType: u,
            onUploadProgress: o,
          })
            .then(function (e) {
              201 === e.statusCode
                ? t(null, { fileID: l, requestId: p })
                : t(
                    new Th({
                      code: "STORAGE_REQUEST_FAIL",
                      message: "STORAGE_REQUEST_FAIL: ".concat(e.data),
                    })
                  );
            })
            .catch(function (e) {
              t(e);
            });
        })
        .catch(function (e) {
          t(e);
        }),
      t.promise
    );
  },
  Ep = function (e, t) {
    t = t || Wh();
    var n = wp(this.config.env),
      r = e.cloudPath;
    return (
      n
        .send("storage.getUploadMetadata", { path: r })
        .then(function (e) {
          t(null, e);
        })
        .catch(function (e) {
          t(e);
        }),
      t.promise
    );
  },
  Cp = function (e, t) {
    var n = e.fileList;
    if (((t = t || Wh()), !n || !Array.isArray(n)))
      return { code: "INVALID_PARAM", message: "fileList必须是非空的数组" };
    var r,
      i = u(n);
    try {
      for (i.s(); !(r = i.n()).done; ) {
        var o = r.value;
        if (!o || "string" != typeof o)
          return {
            code: "INVALID_PARAM",
            message: "fileList的元素必须是非空的字符串",
          };
      }
    } catch (e) {
      i.e(e);
    } finally {
      i.f();
    }
    var a = { fileid_list: n };
    return (
      wp(this.config.env)
        .send("storage.batchDeleteFile", a)
        .then(function (e) {
          e.code
            ? t(null, e)
            : t(null, { fileList: e.data.delete_list, requestId: e.requestId });
        })
        .catch(function (e) {
          t(e);
        }),
      t.promise
    );
  },
  Rp = function (e, t) {
    var n = e.fileList;
    (t = t || Wh()),
      (n && Array.isArray(n)) ||
        t(null, { code: "INVALID_PARAM", message: "fileList必须是非空的数组" });
    var r,
      i = [],
      o = u(n);
    try {
      for (o.s(); !(r = o.n()).done; ) {
        var a = r.value;
        "object" == f(a)
          ? ((a.hasOwnProperty("fileID") && a.hasOwnProperty("maxAge")) ||
              t(null, {
                code: "INVALID_PARAM",
                message: "fileList的元素必须是包含fileID和maxAge的对象",
              }),
            i.push({ fileid: a.fileID, max_age: a.maxAge }))
          : "string" == typeof a
          ? i.push({ fileid: a })
          : t(null, {
              code: "INVALID_PARAM",
              message: "fileList的元素必须是字符串",
            });
      }
    } catch (e) {
      o.e(e);
    } finally {
      o.f();
    }
    var s = { file_list: i };
    return (
      wp(this.config.env)
        .send("storage.batchGetDownloadUrl", s)
        .then(function (e) {
          e.code
            ? t(null, e)
            : t(null, {
                fileList: e.data.download_list,
                requestId: e.requestId,
              });
        })
        .catch(function (e) {
          t(e);
        }),
      t.promise
    );
  },
  Lp = (function () {
    var e = n(
      t().mark(function e(n, r) {
        var i, o, a, u;
        return t().wrap(
          function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  return (
                    (i = n.fileID),
                    (e.next = 3),
                    Rp.call(this, { fileList: [{ fileID: i, maxAge: 600 }] })
                  );
                case 3:
                  if ("SUCCESS" === (o = e.sent.fileList[0]).code) {
                    e.next = 6;
                    break;
                  }
                  return e.abrupt(
                    "return",
                    r
                      ? r(o)
                      : new Promise(function (e) {
                          e(o);
                        })
                  );
                case 6:
                  if (
                    ((a = wp(this.config.env)),
                    (u = o.download_url),
                    (u = encodeURI(u)),
                    r)
                  ) {
                    e.next = 10;
                    break;
                  }
                  return e.abrupt("return", a.download({ url: u }));
                case 10:
                  return (e.t0 = r), (e.next = 13), a.download({ url: u });
                case 13:
                  (e.t1 = e.sent), (0, e.t0)(e.t1);
                case 15:
                case "end":
                  return e.stop();
              }
          },
          e,
          this
        );
      })
    );
    return function (t, n) {
      return e.apply(this, arguments);
    };
  })(),
  Dp = function (e, t) {
    var n,
      r = e.name,
      i = e.data,
      o = e.query,
      a = e.parse,
      u = e.search,
      s = t || Wh();
    try {
      n = i ? JSON.stringify(i) : "";
    } catch (e) {
      return Promise.reject(e);
    }
    if (!r)
      return Promise.reject(
        new Th({ code: "PARAM_ERROR", message: "函数名不能为空" })
      );
    var c = {
      inQuery: o,
      parse: a,
      search: u,
      function_name: r,
      request_data: n,
    };
    return (
      wp(this.config.env)
        .send("functions.invokeFunction", c)
        .then(function (e) {
          if (e.code) s(null, e);
          else {
            var t = e.data.response_data;
            if (a) s(null, { result: t, requestId: e.requestId });
            else
              try {
                (t = JSON.parse(e.data.response_data)),
                  s(null, { result: t, requestId: e.requestId });
              } catch (e) {
                s(new Th({ message: "response data must be json" }));
              }
          }
          return s.promise;
        })
        .catch(function (e) {
          s(e);
        }),
      s.promise
    );
  },
  Bp = { timeout: 15e3, persistence: "session" },
  Np = {},
  Up = new ((function () {
    function e(t) {
      s(this, e), (this.config = t || this.config), (this.authObj = void 0);
    }
    var i;
    return (
      c(e, [
        {
          key: "init",
          value: function (t) {
            switch (
              (Jh.adapter ||
                (this.requestClient = new Jh.adapter.reqClass({
                  timeout: t.timeout || 5e3,
                  timeoutMsg: "请求在".concat(
                    (t.timeout || 5e3) / 1e3,
                    "s内未完成,已中断"
                  ),
                })),
              (this.config = r(r({}, Bp), t)),
              !0)
            ) {
              case this.config.timeout > 6e5:
                console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),
                  (this.config.timeout = 6e5);
                break;
              case this.config.timeout < 100:
                console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),
                  (this.config.timeout = 100);
            }
            return new e(this.config);
          },
        },
        {
          key: "auth",
          value: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = e.persistence;
            if (this.authObj) return this.authObj;
            var n,
              i = t || Jh.adapter.primaryStorage || Bp.persistence;
            return (
              i !== this.config.persistence && (this.config.persistence = i),
              (function (e) {
                var t = e.env;
                (Zh[t] = new Qh(e)),
                  (ep[t] = new Qh(r(r({}, e), {}, { persistence: "local" })));
              })(this.config),
              (n = this.config),
              (mp[n.env] = new _p(n)),
              (this.authObj = new Pp(this.config)),
              this.authObj
            );
          },
        },
        {
          key: "on",
          value: function (e, t) {
            return op.apply(this, [e, t]);
          },
        },
        {
          key: "off",
          value: function (e, t) {
            return up.apply(this, [e, t]);
          },
        },
        {
          key: "callFunction",
          value: function (e, t) {
            return Dp.apply(this, [e, t]);
          },
        },
        {
          key: "deleteFile",
          value: function (e, t) {
            return Cp.apply(this, [e, t]);
          },
        },
        {
          key: "getTempFileURL",
          value: function (e, t) {
            return Rp.apply(this, [e, t]);
          },
        },
        {
          key: "downloadFile",
          value: function (e, t) {
            return Lp.apply(this, [e, t]);
          },
        },
        {
          key: "uploadFile",
          value: function (e, t) {
            return Tp.apply(this, [e, t]);
          },
        },
        {
          key: "getUploadMetadata",
          value: function (e, t) {
            return Ep.apply(this, [e, t]);
          },
        },
        {
          key: "registerExtension",
          value: function (e) {
            Np[e.name] = e;
          },
        },
        {
          key: "invokeExtension",
          value:
            ((i = n(
              t().mark(function e(n, r) {
                var i;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if ((i = Np[n])) {
                            e.next = 3;
                            break;
                          }
                          throw new Th({
                            message: "扩展".concat(n, " 必须先注册"),
                          });
                        case 3:
                          return (e.next = 5), i.invoke(r, this);
                        case 5:
                          return e.abrupt("return", e.sent);
                        case 6:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e, t) {
              return i.apply(this, arguments);
            }),
        },
        {
          key: "useAdapters",
          value: function (e) {
            var t =
                (function (e) {
                  var t,
                    n,
                    r =
                      ((t = e),
                      "[object Array]" === Object.prototype.toString.call(t)
                        ? e
                        : [e]),
                    i = u(r);
                  try {
                    for (i.s(); !(n = i.n()).done; ) {
                      var o = n.value,
                        a = o.isMatch,
                        s = o.genAdapter,
                        c = o.runtime;
                      if (a()) return { adapter: s(), runtime: c };
                    }
                  } catch (e) {
                    i.e(e);
                  } finally {
                    i.f();
                  }
                })(e) || {},
              n = t.adapter,
              r = t.runtime;
            n && (Jh.adapter = n), r && (Jh.runtime = r);
          },
        },
      ]),
      e
    );
  })())();
function jp(e, t, n) {
  void 0 === n && (n = {});
  var r = /\?/.test(t),
    i = "";
  for (var o in n)
    "" === i ? !r && (t += "?") : (i += "&"),
      (i += o + "=" + encodeURIComponent(n[o]));
  return /^http(s)?:\/\//.test((t += i)) ? t : "" + e + t;
}
var Mp = (function () {
    function e() {
      s(this, e);
    }
    return (
      c(e, [
        {
          key: "post",
          value: function (e) {
            var t = e.url,
              n = e.data,
              r = e.headers;
            return new Promise(function (e, i) {
              Eh.request({
                url: jp("https:", t),
                data: n,
                method: "POST",
                header: r,
                success: function (t) {
                  e(t);
                },
                fail: function (e) {
                  i(e);
                },
              });
            });
          },
        },
        {
          key: "upload",
          value: function (e) {
            return new Promise(function (t, n) {
              var r = e.url,
                i = e.file,
                o = e.data,
                a = e.headers,
                u = e.fileType,
                s = Eh.uploadFile({
                  url: jp("https:", r),
                  name: "file",
                  formData: Object.assign({}, o),
                  filePath: i,
                  fileType: u,
                  header: a,
                  success: function (e) {
                    var n = { statusCode: e.statusCode, data: e.data || {} };
                    200 === e.statusCode &&
                      o.success_action_status &&
                      (n.statusCode = parseInt(o.success_action_status, 10)),
                      t(n);
                  },
                  fail: function (e) {
                    n(new Error(e.errMsg || "uploadFile:fail"));
                  },
                });
              "function" == typeof e.onUploadProgress &&
                s &&
                "function" == typeof s.onProgressUpdate &&
                s.onProgressUpdate(function (t) {
                  e.onUploadProgress({
                    loaded: t.totalBytesSent,
                    total: t.totalBytesExpectedToSend,
                  });
                });
            });
          },
        },
      ]),
      e
    );
  })(),
  $p = {
    setItem: function (e, t) {
      Eh.setStorageSync(e, t);
    },
    getItem: function (e) {
      return Eh.getStorageSync(e);
    },
    removeItem: function (e) {
      Eh.removeStorageSync(e);
    },
    clear: function () {
      Eh.clearStorageSync();
    },
  },
  Fp = {
    genAdapter: function () {
      return {
        root: {},
        reqClass: Mp,
        localStorage: $p,
        primaryStorage: "local",
      };
    },
    isMatch: function () {
      return !0;
    },
    runtime: "uni_app",
  };
Up.useAdapters(Fp);
var Hp = Up,
  qp = Hp.init;
Hp.init = function (e) {
  e.env = e.spaceId;
  var t = qp.call(this, e);
  (t.config.provider = "tencent"), (t.config.spaceId = e.spaceId);
  var n = t.auth;
  return (
    (t.auth = function (e) {
      var t = n.call(this, e);
      return (
        [
          "linkAndRetrieveDataWithTicket",
          "signInAnonymously",
          "signOut",
          "getAccessToken",
          "getLoginState",
          "signInWithTicket",
          "getUserInfo",
        ].forEach(function (e) {
          var n;
          t[e] = ((n = t[e]),
          function (e) {
            var t = Ih((e = e || {})),
              r = t.success,
              i = t.fail,
              o = t.complete;
            if (!(r || i || o)) return n.call(this, e);
            n.call(this, e).then(
              function (e) {
                r && r(e), o && o(e);
              },
              function (e) {
                i && i(e), o && o(e);
              }
            );
          }).bind(t);
        }),
        t
      );
    }),
    (t.customAuth = t.auth),
    t
  );
};
var zp = Hp,
  Wp = (function (e) {
    i(n, jh);
    var t = o(n);
    function n() {
      return s(this, n), t.apply(this, arguments);
    }
    return (
      c(n, [
        {
          key: "getAccessToken",
          value: function () {
            var e = this;
            return new Promise(function (t, n) {
              var r = "Anonymous_Access_token";
              e.setAccessToken(r), t(r);
            });
          },
        },
        {
          key: "setupRequest",
          value: function (e, t) {
            var n = Object.assign({}, e, {
                spaceId: this.config.spaceId,
                timestamp: Date.now(),
              }),
              r = { "Content-Type": "application/json" };
            "auth" !== t &&
              ((n.token = this.accessToken),
              (r["x-basement-token"] = this.accessToken)),
              (r["x-serverless-sign"] = Nh(n, this.config.clientSecret));
            var i = Dh();
            r["x-client-info"] = encodeURIComponent(JSON.stringify(i));
            var o = Ch().token;
            return (
              (r["x-client-token"] = o),
              {
                url: this.config.requestUrl,
                method: "POST",
                data: n,
                dataType: "json",
                header: JSON.parse(JSON.stringify(r)),
              }
            );
          },
        },
        {
          key: "uploadFileToOSS",
          value: function (e) {
            var t = this,
              n = e.url,
              r = e.formData,
              i = e.name,
              o = e.filePath,
              a = e.fileType,
              u = e.onUploadProgress;
            return new Promise(function (e, s) {
              var c = t.adapter.uploadFile({
                url: n,
                formData: r,
                name: i,
                filePath: o,
                fileType: a,
                success: function (t) {
                  t && t.statusCode < 400
                    ? e(t)
                    : s(
                        new Th({
                          code: "UPLOAD_FAILED",
                          message: "文件上传失败",
                        })
                      );
                },
                fail: function (e) {
                  s(
                    new Th({
                      code: e.code || "UPLOAD_FAILED",
                      message: e.message || e.errMsg || "文件上传失败",
                    })
                  );
                },
              });
              "function" == typeof u &&
                c &&
                "function" == typeof c.onProgressUpdate &&
                c.onProgressUpdate(function (e) {
                  u({
                    loaded: e.totalBytesSent,
                    total: e.totalBytesExpectedToSend,
                  });
                });
            });
          },
        },
        {
          key: "uploadFile",
          value: function (e) {
            var t,
              n = this,
              r = e.filePath,
              i = e.cloudPath,
              o = e.fileType,
              a = void 0 === o ? "image" : o,
              u = e.onUploadProgress;
            if (!i)
              throw new Th({
                code: "CLOUDPATH_REQUIRED",
                message: "cloudPath不可为空",
              });
            return this.getOSSUploadOptionsFromPath({ cloudPath: i })
              .then(function (e) {
                var i = e.result,
                  o = i.url,
                  s = i.formData,
                  c = i.name;
                t = e.result.fileUrl;
                var f = {
                  url: o,
                  formData: s,
                  name: c,
                  filePath: r,
                  fileType: a,
                };
                return n.uploadFileToOSS(
                  Object.assign({}, f, { onUploadProgress: u })
                );
              })
              .then(function () {
                return n.reportOSSUpload({ cloudPath: i });
              })
              .then(function (e) {
                return new Promise(function (n, i) {
                  e.success
                    ? n({ success: !0, filePath: r, fileID: t })
                    : i(
                        new Th({
                          code: "UPLOAD_FAILED",
                          message: "文件上传失败",
                        })
                      );
                });
              });
          },
        },
        {
          key: "deleteFile",
          value: function (e) {
            var t = e.fileList,
              n = {
                method: "serverless.file.resource.delete",
                params: JSON.stringify({ fileList: t }),
              };
            return this.request(this.setupRequest(n)).then(function (e) {
              if (e.success) return e.result;
              throw new Th({
                code: "DELETE_FILE_FAILED",
                message: "删除文件失败",
              });
            });
          },
        },
        {
          key: "getTempFileURL",
          value: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = e.fileList,
              n = e.maxAge;
            if (!Array.isArray(t) || 0 === t.length)
              throw new Th({
                code: "INVALID_PARAM",
                message: "fileList的元素必须是非空的字符串",
              });
            var r = {
              method: "serverless.file.resource.getTempFileURL",
              params: JSON.stringify({ fileList: t, maxAge: n }),
            };
            return this.request(this.setupRequest(r)).then(function (e) {
              if (e.success)
                return {
                  fileList: e.result.fileList.map(function (e) {
                    return { fileID: e.fileID, tempFileURL: e.tempFileURL };
                  }),
                };
              throw new Th({
                code: "GET_TEMP_FILE_URL_FAILED",
                message: "获取临时文件链接失败",
              });
            });
          },
        },
      ]),
      n
    );
  })(),
  Vp = {
    init: function (e) {
      var t = new Wp(e),
        n = {
          signInAnonymously: function () {
            return t.authorize();
          },
          getLoginState: function () {
            return Promise.resolve(!1);
          },
        };
      return (
        (t.auth = function () {
          return n;
        }),
        (t.customAuth = t.auth),
        t
      );
    },
  },
  Kp = jl(function (e, t) {
    e.exports = Ml.enc.Hex;
  });
function Jp() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
    t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
    n = t.data,
    r = t.functionName,
    i = t.method,
    o = t.headers,
    a = t.signHeaderKeys,
    u = void 0 === a ? [] : a,
    s = t.config,
    c = Date.now(),
    f = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
      var t = (16 * Math.random()) | 0;
      return ("x" === e ? t : (3 & t) | 8).toString(16);
    }),
    l = Object.assign({}, o, {
      "x-from-app-id": s.spaceAppId,
      "x-from-env-id": s.spaceId,
      "x-to-env-id": s.spaceId,
      "x-from-instance-id": c,
      "x-from-function-name": r,
      "x-client-timestamp": c,
      "x-alipay-source": "client",
      "x-request-id": f,
      "x-alipay-callid": f,
      "x-trace-id": f,
    }),
    p = [
      "x-from-app-id",
      "x-from-env-id",
      "x-to-env-id",
      "x-from-instance-id",
      "x-from-function-name",
      "x-client-timestamp",
    ].concat(u),
    d = e.split("?") || [],
    v = h(d, 2),
    g = v[0],
    y = void 0 === g ? "" : g,
    _ = v[1],
    m = void 0 === _ ? "" : _,
    w = (function (e) {
      var t = e.signedHeaders.join(";"),
        n = e.signedHeaders
          .map(function (t) {
            return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
          })
          .join(""),
        r = qh(e.body).toString(Kp),
        i = ""
          .concat(e.method.toUpperCase(), "\n")
          .concat(e.path, "\n")
          .concat(e.query, "\n")
          .concat(n, "\n")
          .concat(t, "\n")
          .concat(r, "\n"),
        o = qh(i).toString(Kp),
        a = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(o, "\n"),
        u = zh(a, e.secretKey).toString(Kp);
      return "HMAC-SHA256 Credential="
        .concat(e.secretId, ", SignedHeaders=")
        .concat(t, ", Signature=")
        .concat(u);
    })({
      path: y,
      query: m,
      method: i,
      headers: l,
      timestamp: c,
      body: JSON.stringify(n),
      secretId: s.accessKey,
      secretKey: s.secretKey,
      signedHeaders: p.sort(),
    });
  return {
    url: "".concat(s.endpoint).concat(e),
    headers: Object.assign({}, l, { Authorization: w }),
  };
}
function Gp(e) {
  var t = e.url,
    n = e.data,
    r = e.method,
    i = void 0 === r ? "POST" : r,
    o = e.headers,
    a = void 0 === o ? {} : o;
  return new Promise(function (e, r) {
    Eh.request({
      url: t,
      method: i,
      data: n,
      header: a,
      dataType: "json",
      complete: function () {
        var t =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
          n = a["x-trace-id"] || "";
        if (!t.statusCode || t.statusCode >= 400) {
          var i = t.data || {},
            o = i.message,
            u = i.errMsg,
            s = i.trace_id;
          return r(
            new Th({
              code: "SYS_ERR",
              message: o || u || "request:fail",
              requestId: s || n,
            })
          );
        }
        e({
          status: t.statusCode,
          data: t.data,
          headers: t.header,
          requestId: n,
        });
      },
    });
  });
}
function Yp(e, t) {
  var n = e.path,
    r = e.data,
    i = e.method,
    o = void 0 === i ? "GET" : i,
    a = Jp(n, {
      functionName: "",
      data: r,
      method: o,
      headers: {
        "x-alipay-cloud-mode": "oss",
        "x-data-api-type": "oss",
        "x-expire-timestamp": Date.now() + 6e4,
      },
      signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
      config: t,
    });
  return Gp({ url: a.url, data: r, method: o, headers: a.headers })
    .then(function (e) {
      var t = e.data || {};
      if (!t.success)
        throw new Th({
          code: e.errCode,
          message: e.errMsg,
          requestId: e.requestId,
        });
      return t.data || {};
    })
    .catch(function (e) {
      throw new Th({
        code: e.errCode,
        message: e.errMsg,
        requestId: e.requestId,
      });
    });
}
function Xp() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
    t = e.trim().replace(/^cloud:\/\//, ""),
    n = t.indexOf("/");
  if (n <= 0) throw new Th({ code: "INVALID_PARAM", message: "fileID不合法" });
  var r = t.substring(0, n),
    i = t.substring(n + 1);
  return (
    r !== this.config.spaceId &&
      console.warn(
        "file "
          .concat(e, " does not belong to env ")
          .concat(this.config.spaceId)
      ),
    i
  );
}
function Qp() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
  return "cloud://"
    .concat(this.config.spaceId, "/")
    .concat(e.replace(/^\/+/, ""));
}
var Zp = (function () {
    function e(t) {
      if (
        (s(this, e),
        ["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (
          e
        ) {
          if (!Object.prototype.hasOwnProperty.call(t, e))
            throw new Error("".concat(e, " required"));
        }),
        t.endpoint)
      ) {
        if ("string" != typeof t.endpoint)
          throw new Error("endpoint must be string");
        if (!/^https:\/\//.test(t.endpoint))
          throw new Error("endpoint must start with https://");
        t.endpoint = t.endpoint.replace(/\/$/, "");
      }
      this.config = Object.assign({}, t, {
        endpoint:
          t.endpoint ||
          "https://".concat(t.spaceId, ".api-hz.cloudbasefunction.cn"),
      });
    }
    var r, i;
    return (
      c(e, [
        {
          key: "callFunction",
          value: function (e) {
            return (function (e, t) {
              var n = e.name,
                r = e.data,
                i = "POST",
                o = Jp("/functions/invokeFunction", {
                  functionName: n,
                  data: r,
                  method: i,
                  headers: { "x-to-function-name": n },
                  signHeaderKeys: ["x-to-function-name"],
                  config: t,
                });
              return Gp({ url: o.url, data: r, method: i, headers: o.headers })
                .then(function (e) {
                  return {
                    errCode: 0,
                    success: !0,
                    requestId: e.requestId,
                    result: e.data,
                  };
                })
                .catch(function (e) {
                  throw new Th({
                    code: e.errCode,
                    message: e.errMsg,
                    requestId: e.requestId,
                  });
                });
            })(e, this.config);
          },
        },
        {
          key: "uploadFileToOSS",
          value: function (e) {
            var t = e.url,
              n = e.filePath,
              r = e.fileType,
              i = e.formData,
              o = e.onUploadProgress;
            return new Promise(function (e, a) {
              var u = Eh.uploadFile({
                url: t,
                filePath: n,
                fileType: r,
                formData: i,
                name: "file",
                success: function (t) {
                  t && t.statusCode < 400
                    ? e(t)
                    : a(
                        new Th({
                          code: "UPLOAD_FAILED",
                          message: "文件上传失败",
                        })
                      );
                },
                fail: function (e) {
                  a(
                    new Th({
                      code: e.code || "UPLOAD_FAILED",
                      message: e.message || e.errMsg || "文件上传失败",
                    })
                  );
                },
              });
              "function" == typeof o &&
                u &&
                "function" == typeof u.onProgressUpdate &&
                u.onProgressUpdate(function (e) {
                  o({
                    loaded: e.totalBytesSent,
                    total: e.totalBytesExpectedToSend,
                  });
                });
            });
          },
        },
        {
          key: "uploadFile",
          value:
            ((i = n(
              t().mark(function e(n) {
                var r, i, o, a, u, s, c, f, l, h, p;
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          if (
                            ((r = n.filePath),
                            (i = n.cloudPath),
                            (o = void 0 === i ? "" : i),
                            (a = n.fileType),
                            (u = void 0 === a ? "image" : a),
                            (s = n.onUploadProgress),
                            "string" === Vl(o))
                          ) {
                            e.next = 3;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "cloudPath必须为字符串类型",
                          });
                        case 3:
                          if ((o = o.trim())) {
                            e.next = 5;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "cloudPath不可为空",
                          });
                        case 5:
                          if (!/:\/\//.test(o)) {
                            e.next = 7;
                            break;
                          }
                          throw new Th({
                            code: "INVALID_PARAM",
                            message: "cloudPath不合法",
                          });
                        case 7:
                          return (
                            (e.next = 9),
                            Yp(
                              {
                                path: "/".concat(
                                  o.replace(/^\//, ""),
                                  "?post_url"
                                ),
                              },
                              this.config
                            )
                          );
                        case 9:
                          return (
                            (c = e.sent),
                            (f = c.file_id),
                            (l = c.upload_url),
                            (h = c.form_data),
                            (p =
                              h &&
                              h.reduce(function (e, t) {
                                return (e[t.key] = t.value), e;
                              }, {})),
                            e.abrupt(
                              "return",
                              this.uploadFileToOSS({
                                url: l,
                                filePath: r,
                                fileType: u,
                                formData: p,
                                onUploadProgress: s,
                              }).then(function () {
                                return { fileID: f };
                              })
                            )
                          );
                        case 15:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function (e) {
              return i.apply(this, arguments);
            }),
        },
        {
          key: "getTempFileURL",
          value:
            ((r = n(
              t().mark(function e(n) {
                var r,
                  i = this;
                return t().wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (r = n.fileList),
                          e.abrupt(
                            "return",
                            new Promise(function (e, t) {
                              (!r || r.length < 0) &&
                                t(
                                  new Th({
                                    errCode: "INVALID_PARAM",
                                    errMsg: "fileList不能为空数组",
                                  })
                                ),
                                r.length > 50 &&
                                  t(
                                    new Th({
                                      errCode: "INVALID_PARAM",
                                      errMsg: "fileList数组长度不能超过50",
                                    })
                                  );
                              var n,
                                o = [],
                                a = u(r);
                              try {
                                for (a.s(); !(n = a.n()).done; ) {
                                  var s = n.value;
                                  "string" !== Vl(s) &&
                                    t(
                                      new Th({
                                        errCode: "INVALID_PARAM",
                                        errMsg:
                                          "fileList的元素必须是非空的字符串",
                                      })
                                    );
                                  var c = Xp.call(i, s);
                                  o.push({ file_id: c, expire: 600 });
                                }
                              } catch (e) {
                                a.e(e);
                              } finally {
                                a.f();
                              }
                              Yp(
                                {
                                  path: "/?download_url",
                                  data: { file_list: o },
                                  method: "POST",
                                },
                                i.config
                              )
                                .then(function (t) {
                                  var n = t.file_list;
                                  e({
                                    fileList: (void 0 === n ? [] : n).map(
                                      function (e) {
                                        return {
                                          fileID: Qp.call(i, e.file_id),
                                          tempFileURL: e.download_url,
                                        };
                                      }
                                    ),
                                  });
                                })
                                .catch(function (e) {
                                  return t(e);
                                });
                            })
                          )
                        );
                      case 2:
                      case "end":
                        return e.stop();
                    }
                }, e);
              })
            )),
            function (e) {
              return r.apply(this, arguments);
            }),
        },
      ]),
      e
    );
  })(),
  ed = {
    init: function (e) {
      e.provider = "alipay";
      var t = new Zp(e);
      return (
        (t.auth = function () {
          return {
            signInAnonymously: function () {
              return Promise.resolve();
            },
            getLoginState: function () {
              return Promise.resolve(!0);
            },
          };
        }),
        t
      );
    },
  };
function td(e) {
  var t,
    n = e.data;
  t = Dh();
  var r = JSON.parse(JSON.stringify(n || {}));
  if ((Object.assign(r, { clientInfo: t }), !r.uniIdToken)) {
    var i = Ch().token;
    i && (r.uniIdToken = i);
  }
  return r;
}
var nd = [
    {
      rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
      content:
        ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
      mode: "append",
    },
  ],
  rd = /[\\^$.*+?()[\]{}|]/g,
  id = RegExp(rd.source);
function od(e, t, n) {
  return e.replace(
    new RegExp((r = t) && id.test(r) ? r.replace(rd, "\\$&") : r, "g"),
    n
  );
  var r;
}
var ad,
  ud = "request",
  sd = "response",
  cd = 2e4,
  fd = { code: 20101, message: "Invalid client" };
function ld(e) {
  var t = e || {},
    n = t.errSubject,
    r = t.subject,
    i = t.errCode,
    o = t.errMsg,
    a = t.code,
    u = t.message,
    s = t.cause;
  return new Th({
    subject: n || r || "uni-secure-network",
    code: i || a || cd,
    message: o || u,
    cause: s,
  });
}
function hd() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
    t = e.secretType;
  return t === ud || t === sd || "both" === t;
}
function pd() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  e.name, e.data;
  return !1;
}
function dd(e) {
  e.functionName, e.result, e.logPvd;
}
function vd(e) {
  var t = e.callFunction,
    n = function (n) {
      var r = this,
        i = n.name;
      n.data = td.call(e, { data: n.data });
      var o = {
          aliyun: "aliyun",
          tencent: "tcb",
          tcb: "tcb",
          alipay: "alipay",
        }[this.config.provider],
        a = hd(n),
        u = pd(n),
        s = a || u;
      return t.call(this, n).then(
        function (e) {
          return (
            (e.errCode = 0),
            !s && dd.call(r, { functionName: i, result: e, logPvd: o }),
            Promise.resolve(e)
          );
        },
        function (e) {
          return (
            !s && dd.call(r, { functionName: i, result: e, logPvd: o }),
            e &&
              e.message &&
              (e.message = (function () {
                for (
                  var e =
                      arguments.length > 0 && void 0 !== arguments[0]
                        ? arguments[0]
                        : {},
                    t = e.message,
                    n = void 0 === t ? "" : t,
                    r = e.extraInfo,
                    i = void 0 === r ? {} : r,
                    o = e.formatter,
                    a = void 0 === o ? [] : o,
                    u = 0;
                  u < a.length;
                  u++
                ) {
                  var s = a[u],
                    c = s.rule,
                    f = s.content,
                    l = s.mode,
                    h = n.match(c);
                  if (h) {
                    for (var p = f, d = 1; d < h.length; d++)
                      p = od(p, "{$".concat(d, "}"), h[d]);
                    for (var v in i) p = od(p, "{".concat(v, "}"), i[v]);
                    return "replace" === l ? p : n + p;
                  }
                }
                return n;
              })({
                message: "[".concat(n.name, "]: ").concat(e.message),
                formatter: nd,
                extraInfo: { functionName: i },
              })),
            Promise.reject(e)
          );
        }
      );
    };
  e.callFunction = function (t) {
    var r,
      i,
      o = e.config,
      a = o.provider,
      u = o.spaceId,
      s = t.name;
    return (
      (t.data = t.data || {}),
      (r = (r = n).bind(e)),
      pd(t) ||
        (i = (function (e) {
          var t = e.name,
            n = e.data;
          return (
            "uni-id-co" === t &&
            "secureNetworkHandshakeByWeixin" === (void 0 === n ? {} : n).method
          );
        })(t)
          ? r.call(e, t)
          : hd(t)
          ? new ad({
              secretType: t.secretType,
              uniCloudIns: e,
            }).wrapEncryptDataCallFunction(n.bind(e))(t)
          : (function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                t = e.provider,
                n = e.spaceId,
                r = e.functionName,
                i = Lh(),
                o = i.appId,
                a = i.uniPlatform,
                u = i.osName,
                s = a;
              "app" === a && (s = u);
              var c = (function () {
                var e,
                  t =
                    arguments.length > 0 && void 0 !== arguments[0]
                      ? arguments[0]
                      : {},
                  n = t.provider,
                  r = t.spaceId;
                if (!eh) return {};
                n = "tencent" === (e = n) ? "tcb" : e;
                var i = eh.find(function (e) {
                  return e.provider === n && e.spaceId === r;
                });
                return i && i.config;
              })({ provider: t, spaceId: n });
              if (!c || !c.accessControl || !c.accessControl.enable) return !1;
              var f = c.accessControl.function || {},
                l = Object.keys(f);
              if (0 === l.length) return !0;
              var h = (function (e, t) {
                for (var n, r, i, o = 0; o < e.length; o++) {
                  var a = e[o];
                  a !== t
                    ? "*" !== a
                      ? a
                          .split(",")
                          .map(function (e) {
                            return e.trim();
                          })
                          .indexOf(t) > -1 && (r = a)
                      : (i = a)
                    : (n = a);
                }
                return n || r || i;
              })(l, r);
              if (!h) return !1;
              if (
                (f[h] || []).find(function () {
                  var e =
                    arguments.length > 0 && void 0 !== arguments[0]
                      ? arguments[0]
                      : {};
                  return (
                    e.appId === o &&
                    (e.platform || "").toLowerCase() === s.toLowerCase()
                  );
                })
              )
                return !0;
              throw (
                (console.error(
                  "此应用[appId: "
                    .concat(o, ", platform: ")
                    .concat(
                      s,
                      "]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client"
                    )
                ),
                ld(fd))
              );
            })({ provider: a, spaceId: u, functionName: s })
          ? new ad({
              secretType: t.secretType,
              uniCloudIns: e,
            }).wrapVerifyClientCallFunction(n.bind(e))(t)
          : r(t)),
      Object.defineProperty(i, "result", {
        get: function () {
          return (
            console.warn(
              "当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"
            ),
            {}
          );
        },
      }),
      i
    );
  };
}
ad = c(function e() {
  throw (
    (s(this, e),
    ld({
      message: "Platform ".concat(
        th,
        " is not enabled, please check whether secure network module is enabled in your manifest.json"
      ),
    }))
  );
});
var gd = Symbol("CLIENT_DB_INTERNAL");
function yd(e, t) {
  return (
    (e.then = "DoNotReturnProxyWithAFunctionNamedThen"),
    (e._internalType = gd),
    (e.inspect = null),
    (e.__v_raw = void 0),
    new Proxy(e, {
      get: function (e, n, r) {
        if ("_uniClient" === n) return null;
        if ("symbol" == f(n)) return e[n];
        if (n in e || "string" != typeof n) {
          var i = e[n];
          return "function" == typeof i ? i.bind(e) : i;
        }
        return t.get(e, n, r);
      },
    })
  );
}
function _d(e) {
  return {
    on: function (t, n) {
      (e[t] = e[t] || []), e[t].indexOf(n) > -1 || e[t].push(n);
    },
    off: function (t, n) {
      e[t] = e[t] || [];
      var r = e[t].indexOf(n);
      -1 !== r && e[t].splice(r, 1);
    },
  };
}
var md = ["db.Geo", "db.command", "command.aggregate"];
function wd(e, t) {
  return md.indexOf("".concat(e, ".").concat(t)) > -1;
}
function kd(e) {
  switch (
    Vl(
      (e = (function e(t) {
        return (t && e(t.__v_raw)) || t;
      })(e))
    )
  ) {
    case "array":
      return e.map(function (e) {
        return kd(e);
      });
    case "object":
      return (
        e._internalType === gd ||
          Object.keys(e).forEach(function (t) {
            e[t] = kd(e[t]);
          }),
        e
      );
    case "regexp":
      return { $regexp: { source: e.source, flags: e.flags } };
    case "date":
      return { $date: e.toISOString() };
    default:
      return e;
  }
}
function bd(e) {
  return e && e.content && e.content.$method;
}
var xd = (function () {
  function e(t, n, r) {
    s(this, e),
      (this.content = t),
      (this.prevStage = n || null),
      (this.udb = null),
      (this._database = r);
  }
  return (
    c(e, [
      {
        key: "toJSON",
        value: function () {
          for (var e = this, t = [e.content]; e.prevStage; )
            (e = e.prevStage), t.push(e.content);
          return {
            $db: t.reverse().map(function (e) {
              return { $method: e.$method, $param: kd(e.$param) };
            }),
          };
        },
      },
      {
        key: "toString",
        value: function () {
          return JSON.stringify(this.toJSON());
        },
      },
      {
        key: "getAction",
        value: function () {
          var e = this.toJSON().$db.find(function (e) {
            return "action" === e.$method;
          });
          return e && e.$param && e.$param[0];
        },
      },
      {
        key: "getCommand",
        value: function () {
          return {
            $db: this.toJSON().$db.filter(function (e) {
              return "action" !== e.$method;
            }),
          };
        },
      },
      {
        key: "isAggregate",
        get: function () {
          for (var e = this; e; ) {
            var t = bd(e),
              n = bd(e.prevStage);
            if (("aggregate" === t && "collection" === n) || "pipeline" === t)
              return !0;
            e = e.prevStage;
          }
          return !1;
        },
      },
      {
        key: "isCommand",
        get: function () {
          for (var e = this; e; ) {
            if ("command" === bd(e)) return !0;
            e = e.prevStage;
          }
          return !1;
        },
      },
      {
        key: "isAggregateCommand",
        get: function () {
          for (var e = this; e; ) {
            var t = bd(e),
              n = bd(e.prevStage);
            if ("aggregate" === t && "command" === n) return !0;
            e = e.prevStage;
          }
          return !1;
        },
      },
      {
        key: "getNextStageFn",
        value: function (e) {
          var t = this;
          return function () {
            return Sd(
              { $method: e, $param: kd(Array.from(arguments)) },
              t,
              t._database
            );
          };
        },
      },
      {
        key: "count",
        get: function () {
          return this.isAggregate
            ? this.getNextStageFn("count")
            : function () {
                return this._send("count", Array.from(arguments));
              };
        },
      },
      {
        key: "remove",
        get: function () {
          return this.isCommand
            ? this.getNextStageFn("remove")
            : function () {
                return this._send("remove", Array.from(arguments));
              };
        },
      },
      {
        key: "get",
        value: function () {
          return this._send("get", Array.from(arguments));
        },
      },
      {
        key: "add",
        get: function () {
          return this.isCommand
            ? this.getNextStageFn("add")
            : function () {
                return this._send("add", Array.from(arguments));
              };
        },
      },
      {
        key: "update",
        value: function () {
          return this._send("update", Array.from(arguments));
        },
      },
      {
        key: "end",
        value: function () {
          return this._send("end", Array.from(arguments));
        },
      },
      {
        key: "set",
        get: function () {
          return this.isCommand
            ? this.getNextStageFn("set")
            : function () {
                throw new Error("JQL禁止使用set方法");
              };
        },
      },
      {
        key: "_send",
        value: function (e, t) {
          var n = this.getAction(),
            r = this.getCommand();
          return (
            r.$db.push({ $method: e, $param: kd(t) }),
            this._database._callCloudFunction({ action: n, command: r })
          );
        },
      },
    ]),
    e
  );
})();
function Sd(e, t, n) {
  return yd(new xd(e, t, n), {
    get: function (e, t) {
      var r = "db";
      return (
        e && e.content && (r = e.content.$method),
        wd(r, t)
          ? Sd({ $method: t }, e, n)
          : function () {
              return Sd(
                { $method: t, $param: kd(Array.from(arguments)) },
                e,
                n
              );
            }
      );
    },
  });
}
function Ad(e) {
  var t = e.path,
    n = e.method;
  return (function () {
    function e() {
      s(this, e), (this.param = Array.from(arguments));
    }
    return (
      c(e, [
        {
          key: "toJSON",
          value: function () {
            return {
              $newDb: [].concat(
                p(
                  t.map(function (e) {
                    return { $method: e };
                  })
                ),
                [{ $method: n, $param: this.param }]
              ),
            };
          },
        },
        {
          key: "toString",
          value: function () {
            return JSON.stringify(this.toJSON());
          },
        },
      ]),
      e
    );
  })();
}
function Id(e) {
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  return yd(new e(t), {
    get: function (e, t) {
      return wd("db", t)
        ? Sd({ $method: t }, null, e)
        : function () {
            return Sd(
              { $method: t, $param: kd(Array.from(arguments)) },
              null,
              e
            );
          };
    },
  });
}
var Od = (function (e) {
    i(n, e);
    var t = o(n);
    function n() {
      return s(this, n), t.apply(this, arguments);
    }
    return (
      c(n, [
        {
          key: "_parseResult",
          value: function (e) {
            return this._isJQL ? e.result : e;
          },
        },
        {
          key: "_callCloudFunction",
          value: function (e) {
            var t = this,
              n = e.action,
              r = e.command,
              i = e.multiCommand,
              o = e.queryList;
            function a(e, t) {
              if (i && o)
                for (var n = 0; n < o.length; n++) {
                  var r = o[n];
                  r.udb &&
                    "function" == typeof r.udb.setResult &&
                    (t
                      ? r.udb.setResult(t)
                      : r.udb.setResult(e.result.dataList[n]));
                }
            }
            var u = this,
              s = this._isJQL ? "databaseForJQL" : "database";
            function c(e) {
              return (
                u._callback("error", [e]),
                ch(fh(s, "fail"), e)
                  .then(function () {
                    return ch(fh(s, "complete"), e);
                  })
                  .then(function () {
                    return (
                      a(null, e),
                      bh(ph, { type: gh, content: e }),
                      Promise.reject(e)
                    );
                  })
              );
            }
            var f = ch(fh(s, "invoke")),
              l = this._uniClient;
            return f
              .then(function () {
                return l.callFunction({
                  name: "DCloud-clientDB",
                  type: "CLIENT_DB",
                  data: { action: n, command: r, multiCommand: i },
                });
              })
              .then(
                function (e) {
                  var n = e.result,
                    r = n.code,
                    i = n.message,
                    o = n.token,
                    f = n.tokenExpired,
                    l = n.systemInfo,
                    h = void 0 === l ? [] : l;
                  if (h)
                    for (var p = 0; p < h.length; p++) {
                      var d = h[p],
                        v = d.level,
                        g = d.message,
                        y = d.detail,
                        _ = "[System Info]" + g;
                      y && (_ = "".concat(_, "\n详细信息:").concat(y)),
                        (console[v] || console.log)(_);
                    }
                  if (r)
                    return c(
                      new Th({ code: r, message: i, requestId: e.requestId })
                    );
                  (e.result.errCode = e.result.errCode || e.result.code),
                    (e.result.errMsg = e.result.errMsg || e.result.message),
                    o &&
                      f &&
                      (Rh({ token: o, tokenExpired: f }),
                      t._callbackAuth("refreshToken", [
                        { token: o, tokenExpired: f },
                      ]),
                      t._callback("refreshToken", [
                        { token: o, tokenExpired: f },
                      ]),
                      bh(vh, { token: o, tokenExpired: f }));
                  for (
                    var m,
                      w = [
                        {
                          prop: "affectedDocs",
                          tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代",
                        },
                        {
                          prop: "code",
                          tips: "code不再推荐使用,请使用errCode替代",
                        },
                        {
                          prop: "message",
                          tips: "message不再推荐使用,请使用errMsg替代",
                        },
                      ],
                      k = function () {
                        var t = w[b],
                          n = t.prop,
                          r = t.tips;
                        if ((n in e.result)) {
                          var i = e.result[n];
                          Object.defineProperty(e.result, n, {
                            get: function () {
                              return console.warn(r), i;
                            },
                          });
                        }
                      },
                      b = 0;
                    b < w.length;
                    b++
                  )
                    k();
                  return (
                    (m = e),
                    ch(fh(s, "success"), m)
                      .then(function () {
                        return ch(fh(s, "complete"), m);
                      })
                      .then(function () {
                        a(m, null);
                        var e = u._parseResult(m);
                        return (
                          bh(ph, { type: gh, content: e }), Promise.resolve(e)
                        );
                      })
                  );
                },
                function (e) {
                  return (
                    /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(
                      e.message
                    ) &&
                      console.warn(
                        "clientDB未初始化,请在web控制台保存一次schema以开启clientDB"
                      ),
                    c(
                      new Th({
                        code: e.code || "SYSTEM_ERROR",
                        message: e.message,
                        requestId: e.requestId,
                      })
                    )
                  );
                }
              );
          },
        },
      ]),
      n
    );
  })(
    (function () {
      function e() {
        var t =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
          n = t.uniClient,
          r = void 0 === n ? {} : n,
          i = t.isJQL,
          o = void 0 !== i && i;
        s(this, e),
          (this._uniClient = r),
          (this._authCallBacks = {}),
          (this._dbCallBacks = {}),
          r._isDefault &&
            (this._dbCallBacks = ih("_globalUniCloudDatabaseCallback")),
          o || (this.auth = _d(this._authCallBacks)),
          (this._isJQL = o),
          Object.assign(this, _d(this._dbCallBacks)),
          (this.env = yd(
            {},
            {
              get: function (e, t) {
                return { $env: t };
              },
            }
          )),
          (this.Geo = yd(
            {},
            {
              get: function (e, t) {
                return Ad({ path: ["Geo"], method: t });
              },
            }
          )),
          (this.serverDate = Ad({ path: [], method: "serverDate" })),
          (this.RegExp = Ad({ path: [], method: "RegExp" }));
      }
      return (
        c(e, [
          {
            key: "getCloudEnv",
            value: function (e) {
              if ("string" != typeof e || !e.trim())
                throw new Error("getCloudEnv参数错误");
              return { $env: e.replace("$cloudEnv_", "") };
            },
          },
          {
            key: "_callback",
            value: function (e, t) {
              var n = this._dbCallBacks;
              n[e] &&
                n[e].forEach(function (e) {
                  e.apply(void 0, p(t));
                });
            },
          },
          {
            key: "_callbackAuth",
            value: function (e, t) {
              var n = this._authCallBacks;
              n[e] &&
                n[e].forEach(function (e) {
                  e.apply(void 0, p(t));
                });
            },
          },
          {
            key: "multiSend",
            value: function () {
              var e = Array.from(arguments),
                t = e.map(function (e) {
                  var t = e.getAction(),
                    n = e.getCommand();
                  if ("getTemp" !== n.$db[n.$db.length - 1].$method)
                    throw new Error("multiSend只支持子命令内使用getTemp");
                  return { action: t, command: n };
                });
              return this._callCloudFunction({ multiCommand: t, queryList: e });
            },
          },
        ]),
        e
      );
    })()
  ),
  Pd = "token无效,跳转登录页面",
  Td = "token过期,跳转登录页面",
  Ed = {
    TOKEN_INVALID_TOKEN_EXPIRED: Td,
    TOKEN_INVALID_INVALID_CLIENTID: Pd,
    TOKEN_INVALID: Pd,
    TOKEN_INVALID_WRONG_TOKEN: Pd,
    TOKEN_INVALID_ANONYMOUS_USER: Pd,
  },
  Cd = {
    "uni-id-token-expired": Td,
    "uni-id-check-token-failed": Pd,
    "uni-id-token-not-exist": Pd,
    "uni-id-check-device-feature-failed": Pd,
  };
function Rd(e, t) {
  return (e ? "".concat(e, "/").concat(t) : t).replace(/^\//, "");
}
function Ld() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
    t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "",
    n = [],
    r = [];
  return (
    e.forEach(function (e) {
      !0 === e.needLogin
        ? n.push(Rd(t, e.path))
        : !1 === e.needLogin && r.push(Rd(t, e.path));
    }),
    { needLoginPage: n, notNeedLoginPage: r }
  );
}
function Dd(e) {
  return e.split("?")[0].replace(/^\//, "");
}
function Bd() {
  return (function (e) {
    var t = (e && e.$page && e.$page.fullPath) || "";
    return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  })(
    (function () {
      var e = getCurrentPages();
      return e[e.length - 1];
    })()
  );
}
function Nd() {
  return Dd(Bd());
}
function Ud() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
    t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  if (!e) return !1;
  if (!(t && t.list && t.list.length)) return !1;
  var n = t.list,
    r = Dd(e);
  return n.some(function (e) {
    return e.pagePath === r;
  });
}
var jd,
  Md = !!Ul.uniIdRouter,
  $d = (function () {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Ul,
      t = e.pages,
      n = void 0 === t ? [] : t,
      r = e.subPackages,
      i = void 0 === r ? [] : r,
      o = e.uniIdRouter,
      a = void 0 === o ? {} : o,
      u = e.tabBar,
      s = void 0 === u ? {} : u,
      c = a.loginPage,
      f = a.needLogin,
      l = void 0 === f ? [] : f,
      h = a.resToLogin,
      d = void 0 === h || h,
      v = Ld(n),
      g = v.needLoginPage,
      y = v.notNeedLoginPage,
      _ = (function () {
        var e =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
          t = [],
          n = [];
        return (
          e.forEach(function (e) {
            var r = e.root,
              i = e.pages,
              o = Ld(void 0 === i ? [] : i, r),
              a = o.needLoginPage,
              u = o.notNeedLoginPage;
            t.push.apply(t, p(a)), n.push.apply(n, p(u));
          }),
          { needLoginPage: t, notNeedLoginPage: n }
        );
      })(i),
      m = _.needLoginPage,
      w = _.notNeedLoginPage;
    return {
      loginPage: c,
      routerNeedLogin: l,
      resToLogin: d,
      needLoginPage: [].concat(p(g), p(m)),
      notNeedLoginPage: [].concat(p(y), p(w)),
      loginPageInTabBar: Ud(c, s),
    };
  })(),
  Fd = $d.loginPage,
  Hd = $d.routerNeedLogin,
  qd = $d.resToLogin,
  zd = $d.needLoginPage,
  Wd = $d.notNeedLoginPage,
  Vd = $d.loginPageInTabBar;
if (zd.indexOf(Fd) > -1)
  throw new Error(
    "Login page [".concat(
      Fd,
      '] should not be "needLogin", please check your pages.json'
    )
  );
function Kd(e) {
  var t = Nd();
  if ("/" === e.charAt(0)) return e;
  var n = e.split("?"),
    r = h(n, 2),
    i = r[0],
    o = r[1],
    a = i.replace(/^\//, "").split("/"),
    u = t.split("/");
  u.pop();
  for (var s = 0; s < a.length; s++) {
    var c = a[s];
    ".." === c ? u.pop() : "." !== c && u.push(c);
  }
  return "" === u[0] && u.shift(), "/" + u.join("/") + (o ? "?" + o : "");
}
function Jd(e) {
  var t = Dd(e.redirect),
    n = Dd(Fd);
  return Nd() !== n && t !== n;
}
function Gd() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
    t = e.api,
    n = e.redirect;
  if (n && Jd({ redirect: n })) {
    var r,
      i,
      o =
        ((i = n),
        "/" !== (r = Fd).charAt(0) && (r = "/" + r),
        i
          ? r.indexOf("?") > -1
            ? r + "&uniIdRedirectUrl=".concat(encodeURIComponent(i))
            : r + "?uniIdRedirectUrl=".concat(encodeURIComponent(i))
          : r);
    Vd
      ? ("navigateTo" !== t && "redirectTo" !== t) || (t = "switchTab")
      : "switchTab" === t && (t = "navigateTo");
    var a = {
      navigateTo: Pn.navigateTo,
      redirectTo: Pn.redirectTo,
      switchTab: Pn.switchTab,
      reLaunch: Pn.reLaunch,
    };
    setTimeout(function () {
      a[t]({ url: o });
    });
  }
}
function Yd() {
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
    t = e.url,
    n = { abortLoginPageJump: !1, autoToLoginPage: !1 },
    r = (function () {
      var e,
        t = Ch(),
        n = t.token,
        r = t.tokenExpired;
      if (n) {
        if (r < Date.now()) {
          var i = "uni-id-token-expired";
          e = { errCode: i, errMsg: Cd[i] };
        }
      } else {
        var o = "uni-id-check-token-failed";
        e = { errCode: o, errMsg: Cd[o] };
      }
      return e;
    })();
  if (
    (function (e) {
      var t = Dd(Kd(e));
      return (
        !(Wd.indexOf(t) > -1) &&
        (zd.indexOf(t) > -1 ||
          Hd.some(function (t) {
            return (n = e), new RegExp(t).test(n);
            var n;
          }))
      );
    })(t) &&
    r
  ) {
    if (((r.uniIdRedirectUrl = t), mh(dh).length > 0))
      return (
        setTimeout(function () {
          bh(dh, r);
        }, 0),
        (n.abortLoginPageJump = !0),
        n
      );
    n.autoToLoginPage = !0;
  }
  return n;
}
function Xd() {
  !(function () {
    var e = Bd(),
      t = Yd({ url: e }),
      n = t.abortLoginPageJump,
      r = t.autoToLoginPage;
    n || (r && Gd({ api: "redirectTo", redirect: e }));
  })();
  for (
    var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"],
      t = function () {
        var t = e[n];
        Pn.addInterceptor(t, {
          invoke: function (e) {
            var n = Yd({ url: e.url }),
              r = n.abortLoginPageJump,
              i = n.autoToLoginPage;
            return r ? e : i ? (Gd({ api: t, redirect: Kd(e.url) }), !1) : e;
          },
        });
      },
      n = 0;
    n < e.length;
    n++
  )
    t();
}
function Qd() {
  this.onResponse(function (e) {
    var t = e.type,
      n = e.content,
      r = !1;
    switch (t) {
      case "cloudobject":
        r = (function (e) {
          return "object" == f(e) && (e || {}).errCode in Cd;
        })(n);
        break;
      case "clientdb":
        r = (function (e) {
          return "object" == f(e) && (e || {}).errCode in Ed;
        })(n);
    }
    r &&
      (function () {
        var e =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
          t = mh(dh);
        Ah().then(function () {
          var n = Bd();
          if (n && Jd({ redirect: n }))
            return t.length > 0
              ? bh(dh, Object.assign({ uniIdRedirectUrl: n }, e))
              : void (Fd && Gd({ api: "navigateTo", redirect: n }));
        });
      })(n);
  });
}
function Zd(e) {
  var t;
  ((t = e).onResponse = function (e) {
    wh(ph, e);
  }),
    (t.offResponse = function (e) {
      kh(ph, e);
    }),
    (function (e) {
      (e.onNeedLogin = function (e) {
        wh(dh, e);
      }),
        (e.offNeedLogin = function (e) {
          kh(dh, e);
        }),
        Md &&
          (ih("_globalUniCloudStatus").needLoginInit ||
            ((ih("_globalUniCloudStatus").needLoginInit = !0),
            Ah().then(function () {
              Xd.call(e);
            }),
            qd && Qd.call(e)));
    })(e),
    (function (e) {
      (e.onRefreshToken = function (e) {
        wh(vh, e);
      }),
        (e.offRefreshToken = function (e) {
          kh(vh, e);
        });
    })(e);
}
var ev = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  tv = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
function nv() {
  var e,
    t,
    n = Ch().token || "",
    r = n.split(".");
  if (!n || 3 !== r.length)
    return { uid: null, role: [], permission: [], tokenExpired: 0 };
  try {
    e = JSON.parse(
      ((t = r[1]),
      decodeURIComponent(
        jd(t)
          .split("")
          .map(function (e) {
            return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
          })
          .join("")
      ))
    );
  } catch (e) {
    throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  }
  return (e.tokenExpired = 1e3 * e.exp), delete e.exp, delete e.iat, e;
}
jd =
  "function" != typeof atob
    ? function (e) {
        if (((e = String(e).replace(/[\t\n\f\r ]+/g, "")), !tv.test(e)))
          throw new Error(
            "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."
          );
        var t;
        e += "==".slice(2 - (3 & e.length));
        for (var n, r, i = "", o = 0; o < e.length; )
          (t =
            (ev.indexOf(e.charAt(o++)) << 18) |
            (ev.indexOf(e.charAt(o++)) << 12) |
            ((n = ev.indexOf(e.charAt(o++))) << 6) |
            (r = ev.indexOf(e.charAt(o++)))),
            (i +=
              64 === n
                ? String.fromCharCode((t >> 16) & 255)
                : 64 === r
                ? String.fromCharCode((t >> 16) & 255, (t >> 8) & 255)
                : String.fromCharCode(
                    (t >> 16) & 255,
                    (t >> 8) & 255,
                    255 & t
                  ));
        return i;
      }
    : atob;
var rv = (function (e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default")
    ? e.default
    : e;
})(
  jl(function (e, t) {
    Object.defineProperty(t, "__esModule", { value: !0 });
    var n = "chooseAndUploadFile:ok",
      r = "chooseAndUploadFile:fail";
    function i(e, t) {
      return (
        e.tempFiles.forEach(function (e, n) {
          e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)),
            t && (e.fileType = t),
            (e.cloudPath =
              Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf(".")));
        }),
        e.tempFilePaths ||
          (e.tempFilePaths = e.tempFiles.map(function (e) {
            return e.path;
          })),
        e
      );
    }
    function o(e, t, r) {
      var i = r.onChooseFile,
        o = r.onUploadProgress;
      return t
        .then(function (e) {
          if (i) {
            var t = i(e);
            if (void 0 !== t)
              return Promise.resolve(t).then(function (t) {
                return void 0 === t ? e : t;
              });
          }
          return e;
        })
        .then(function (t) {
          return !1 === t
            ? { errMsg: n, tempFilePaths: [], tempFiles: [] }
            : (function (e, t) {
                var r =
                    arguments.length > 2 && void 0 !== arguments[2]
                      ? arguments[2]
                      : 5,
                  i = arguments.length > 3 ? arguments[3] : void 0;
                (t = Object.assign({}, t)).errMsg = n;
                var o = t.tempFiles,
                  a = o.length,
                  u = 0;
                return new Promise(function (n) {
                  for (; u < r; ) s();
                  function s() {
                    var r = u++;
                    if (r >= a)
                      !o.find(function (e) {
                        return !e.url && !e.errMsg;
                      }) && n(t);
                    else {
                      var c = o[r];
                      e.uploadFile({
                        filePath: c.path,
                        cloudPath: c.cloudPath,
                        fileType: c.fileType,
                        cloudPathAsRealPath: c.cloudPathAsRealPath,
                        onUploadProgress: function (e) {
                          (e.index = r),
                            (e.tempFile = c),
                            (e.tempFilePath = c.path),
                            i && i(e);
                        },
                      })
                        .then(function (e) {
                          (c.url = e.fileID), r < a && s();
                        })
                        .catch(function (e) {
                          (c.errMsg = e.errMsg || e.message), r < a && s();
                        });
                    }
                  }
                });
              })(e, t, 5, o);
        });
    }
    t.initChooseAndUploadFile = function (e) {
      return function () {
        var t =
          arguments.length > 0 && void 0 !== arguments[0]
            ? arguments[0]
            : { type: "all" };
        return "image" === t.type
          ? o(
              e,
              (function (e) {
                var t = e.count,
                  n = e.sizeType,
                  o = e.sourceType,
                  a = void 0 === o ? ["album", "camera"] : o,
                  u = e.extension;
                return new Promise(function (e, o) {
                  Pn.chooseImage({
                    count: t,
                    sizeType: n,
                    sourceType: a,
                    extension: u,
                    success: function (t) {
                      e(i(t, "image"));
                    },
                    fail: function (e) {
                      o({ errMsg: e.errMsg.replace("chooseImage:fail", r) });
                    },
                  });
                });
              })(t),
              t
            )
          : "video" === t.type
          ? o(
              e,
              (function (e) {
                var t = e.camera,
                  n = e.compressed,
                  o = e.maxDuration,
                  a = e.sourceType,
                  u = void 0 === a ? ["album", "camera"] : a,
                  s = e.extension;
                return new Promise(function (e, a) {
                  Pn.chooseVideo({
                    camera: t,
                    compressed: n,
                    maxDuration: o,
                    sourceType: u,
                    extension: s,
                    success: function (t) {
                      var n = t.tempFilePath,
                        r = t.duration,
                        o = t.size,
                        a = t.height,
                        u = t.width;
                      e(
                        i(
                          {
                            errMsg: "chooseVideo:ok",
                            tempFilePaths: [n],
                            tempFiles: [
                              {
                                name: (t.tempFile && t.tempFile.name) || "",
                                path: n,
                                size: o,
                                type: (t.tempFile && t.tempFile.type) || "",
                                width: u,
                                height: a,
                                duration: r,
                                fileType: "video",
                                cloudPath: "",
                              },
                            ],
                          },
                          "video"
                        )
                      );
                    },
                    fail: function (e) {
                      a({ errMsg: e.errMsg.replace("chooseVideo:fail", r) });
                    },
                  });
                });
              })(t),
              t
            )
          : o(
              e,
              (function (e) {
                var t = e.count,
                  n = e.extension;
                return new Promise(function (e, o) {
                  var a = Pn.chooseFile;
                  if (
                    (void 0 !== On &&
                      "function" == typeof On.chooseMessageFile &&
                      (a = On.chooseMessageFile),
                    "function" != typeof a)
                  )
                    return o({
                      errMsg:
                        r +
                        " 请指定 type 类型,该平台仅支持选择 image 或 video。",
                    });
                  a({
                    type: "all",
                    count: t,
                    extension: n,
                    success: function (t) {
                      e(i(t));
                    },
                    fail: function (e) {
                      o({ errMsg: e.errMsg.replace("chooseFile:fail", r) });
                    },
                  });
                });
              })(t),
              t
            );
      };
    };
  })
);
function iv(e) {
  return {
    props: {
      localdata: {
        type: Array,
        default: function () {
          return [];
        },
      },
      options: {
        type: [Object, Array],
        default: function () {
          return {};
        },
      },
      spaceInfo: {
        type: Object,
        default: function () {
          return {};
        },
      },
      collection: { type: [String, Array], default: "" },
      action: { type: String, default: "" },
      field: { type: String, default: "" },
      orderby: { type: String, default: "" },
      where: { type: [String, Object], default: "" },
      pageData: { type: String, default: "add" },
      pageCurrent: { type: Number, default: 1 },
      pageSize: { type: Number, default: 20 },
      getcount: { type: [Boolean, String], default: !1 },
      gettree: { type: [Boolean, String], default: !1 },
      gettreepath: { type: [Boolean, String], default: !1 },
      startwith: { type: String, default: "" },
      limitlevel: { type: Number, default: 10 },
      groupby: { type: String, default: "" },
      groupField: { type: String, default: "" },
      distinct: { type: [Boolean, String], default: !1 },
      foreignKey: { type: String, default: "" },
      loadtime: { type: String, default: "auto" },
      manual: { type: Boolean, default: !1 },
    },
    data: function () {
      return {
        mixinDatacomLoading: !1,
        mixinDatacomHasMore: !1,
        mixinDatacomResData: [],
        mixinDatacomErrorMessage: "",
        mixinDatacomPage: {},
      };
    },
    created: function () {
      var e = this;
      (this.mixinDatacomPage = {
        current: this.pageCurrent,
        size: this.pageSize,
        count: 0,
      }),
        this.$watch(
          function () {
            var t = [];
            return (
              [
                "pageCurrent",
                "pageSize",
                "localdata",
                "collection",
                "action",
                "field",
                "orderby",
                "where",
                "getont",
                "getcount",
                "gettree",
                "groupby",
                "groupField",
                "distinct",
              ].forEach(function (n) {
                t.push(e[n]);
              }),
              t
            );
          },
          function (t, n) {
            if ("manual" !== e.loadtime) {
              for (var r = !1, i = [], o = 2; o < t.length; o++)
                t[o] !== n[o] && (i.push(t[o]), (r = !0));
              t[0] !== n[0] && (e.mixinDatacomPage.current = e.pageCurrent),
                (e.mixinDatacomPage.size = e.pageSize),
                e.onMixinDatacomPropsChange(r, i);
            }
          }
        );
    },
    methods: {
      onMixinDatacomPropsChange: function (e, t) {},
      mixinDatacomEasyGet: function () {
        var e = this,
          t =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
          n = t.getone,
          r = void 0 !== n && n,
          i = t.success,
          o = t.fail;
        this.mixinDatacomLoading ||
          ((this.mixinDatacomLoading = !0),
          (this.mixinDatacomErrorMessage = ""),
          this.mixinDatacomGet()
            .then(function (t) {
              e.mixinDatacomLoading = !1;
              var n = t.result,
                o = n.data,
                a = n.count;
              e.getcount && (e.mixinDatacomPage.count = a),
                (e.mixinDatacomHasMore = o.length < e.pageSize);
              var u = r ? (o.length ? o[0] : void 0) : o;
              (e.mixinDatacomResData = u), i && i(u);
            })
            .catch(function (t) {
              (e.mixinDatacomLoading = !1),
                (e.mixinDatacomErrorMessage = t),
                o && o(t);
            }));
      },
      mixinDatacomGet: function () {
        var t,
          n =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
          r = e.database(this.spaceInfo),
          i = n.action || this.action;
        i && (r = r.action(i));
        var o = n.collection || this.collection;
        r = Array.isArray(o)
          ? (t = r).collection.apply(t, p(o))
          : r.collection(o);
        var a = n.where || this.where;
        a && Object.keys(a).length && (r = r.where(a));
        var u = n.field || this.field;
        u && (r = r.field(u));
        var s = n.foreignKey || this.foreignKey;
        s && (r = r.foreignKey(s));
        var c = n.groupby || this.groupby;
        c && (r = r.groupBy(c));
        var f = n.groupField || this.groupField;
        f && (r = r.groupField(f)),
          !0 === (void 0 !== n.distinct ? n.distinct : this.distinct) &&
            (r = r.distinct());
        var l = n.orderby || this.orderby;
        l && (r = r.orderBy(l));
        var h =
            void 0 !== n.pageCurrent
              ? n.pageCurrent
              : this.mixinDatacomPage.current,
          d = void 0 !== n.pageSize ? n.pageSize : this.mixinDatacomPage.size,
          v = void 0 !== n.getcount ? n.getcount : this.getcount,
          g = void 0 !== n.gettree ? n.gettree : this.gettree,
          y = void 0 !== n.gettreepath ? n.gettreepath : this.gettreepath,
          _ = { getCount: v },
          m = {
            limitLevel:
              void 0 !== n.limitlevel ? n.limitlevel : this.limitlevel,
            startWith: void 0 !== n.startwith ? n.startwith : this.startwith,
          };
        return (
          g && (_.getTree = m),
          y && (_.getTreePath = m),
          (r = r
            .skip(d * (h - 1))
            .limit(d)
            .get(_))
        );
      },
    },
  };
}
function ov(e) {
  return ih(
    "_globalUniCloudSecureNetworkCache__{spaceId}".replace(
      "{spaceId}",
      e.config.spaceId
    )
  );
}
function av() {
  return uv.apply(this, arguments);
}
function uv() {
  return (uv = n(
    t().mark(function e() {
      var n,
        r,
        i,
        o,
        a,
        u,
        s,
        c = arguments;
      return t().wrap(
        function (e) {
          for (;;)
            switch ((e.prev = e.next)) {
              case 0:
                if (
                  ((n = c.length > 0 && void 0 !== c[0] ? c[0] : {}),
                  (r = n.openid),
                  (i = n.callLoginByWeixin),
                  (o = void 0 !== i && i),
                  (a = ov(this)),
                  !r || !o)
                ) {
                  e.next = 4;
                  break;
                }
                throw new Error(
                  "[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time"
                );
              case 4:
                if (!r) {
                  e.next = 6;
                  break;
                }
                return e.abrupt("return", ((a.mpWeixinOpenid = r), {}));
              case 6:
                return (
                  (e.next = 8),
                  new Promise(function (e, t) {
                    Pn.login({
                      success: function (t) {
                        e(t.code);
                      },
                      fail: function (e) {
                        t(new Error(e.errMsg));
                      },
                    });
                  })
                );
              case 8:
                return (
                  (u = e.sent),
                  (s = this.importObject("uni-id-co", { customUI: !0 })),
                  (e.next = 12),
                  s.secureNetworkHandshakeByWeixin({
                    code: u,
                    callLoginByWeixin: o,
                  })
                );
              case 12:
                return (a.mpWeixinCode = u), e.abrupt("return", { code: u });
              case 14:
              case "end":
                return e.stop();
            }
        },
        e,
        this
      );
    })
  )).apply(this, arguments);
}
function sv(e) {
  return cv.apply(this, arguments);
}
function cv() {
  return (cv = n(
    t().mark(function e(n) {
      var r;
      return t().wrap(
        function (e) {
          for (;;)
            switch ((e.prev = e.next)) {
              case 0:
                return (
                  (r = ov(this)),
                  e.abrupt(
                    "return",
                    (r.initPromise || (r.initPromise = av.call(this, n)),
                    r.initPromise)
                  )
                );
              case 2:
              case "end":
                return e.stop();
            }
        },
        e,
        this
      );
    })
  )).apply(this, arguments);
}
function fv(e) {
  var t = {
    getSystemInfo: Pn.getSystemInfo,
    getPushClientId: Pn.getPushClientId,
  };
  return function (n) {
    return new Promise(function (i, o) {
      t[e](
        r(
          r({}, n),
          {},
          {
            success: function (e) {
              i(e);
            },
            fail: function (e) {
              o(e);
            },
          }
        )
      );
    });
  };
}
var lv = (function (r) {
    i(f, r);
    var a,
      u = o(f);
    function f() {
      var t;
      return (
        s(this, f),
        ((t = u.call(this))._uniPushMessageCallback =
          t._receivePushMessage.bind(e(t))),
        (t._currentMessageId = -1),
        (t._payloadQueue = []),
        t
      );
    }
    return (
      c(f, [
        {
          key: "init",
          value: function () {
            var e = this;
            return Promise.all([
              fv("getSystemInfo")(),
              fv("getPushClientId")(),
            ]).then(
              function () {
                var t =
                    arguments.length > 0 && void 0 !== arguments[0]
                      ? arguments[0]
                      : [],
                  n = h(t, 2),
                  r = n[0],
                  i = void 0 === r ? {} : r,
                  o = i.appId,
                  a = n[1],
                  u = void 0 === a ? {} : a,
                  s = u.cid;
                if (!o)
                  throw new Error(
                    "Invalid appId, please check the manifest.json file"
                  );
                if (!s) throw new Error("Invalid push client id");
                (e._appId = o),
                  (e._pushClientId = s),
                  (e._seqId =
                    Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5)),
                  e.emit("open"),
                  e._initMessageListener();
              },
              function (t) {
                throw (e.emit("error", t), e.close(), t);
              }
            );
          },
        },
        {
          key: "open",
          value:
            ((a = n(
              t().mark(function e() {
                return t().wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt("return", this.init());
                        case 1:
                        case "end":
                          return e.stop();
                      }
                  },
                  e,
                  this
                );
              })
            )),
            function () {
              return a.apply(this, arguments);
            }),
        },
        {
          key: "_isUniCloudSSE",
          value: function (e) {
            if ("receive" !== e.type) return !1;
            var t = e && e.data && e.data.payload;
            return !(
              !t ||
              "UNI_CLOUD_SSE" !== t.channel ||
              t.seqId !== this._seqId
            );
          },
        },
        {
          key: "_receivePushMessage",
          value: function (e) {
            if (this._isUniCloudSSE(e)) {
              var t = e && e.data && e.data.payload,
                n = t.action,
                r = t.messageId,
                i = t.message;
              this._payloadQueue.push({ action: n, messageId: r, message: i }),
                this._consumMessage();
            }
          },
        },
        {
          key: "_consumMessage",
          value: function () {
            for (var e = this; ; ) {
              var t = this._payloadQueue.find(function (t) {
                return t.messageId === e._currentMessageId + 1;
              });
              if (!t) break;
              this._currentMessageId++, this._parseMessagePayload(t);
            }
          },
        },
        {
          key: "_parseMessagePayload",
          value: function (e) {
            var t = e.action,
              n = e.messageId,
              r = e.message;
            "end" === t
              ? this._end({ messageId: n, message: r })
              : "message" === t &&
                this._appendMessage({ messageId: n, message: r });
          },
        },
        {
          key: "_appendMessage",
          value: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = (e.messageId, e.message);
            this.emit("message", t);
          },
        },
        {
          key: "_end",
          value: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = (e.messageId, e.message);
            this.emit("end", t), this.close();
          },
        },
        {
          key: "_initMessageListener",
          value: function () {
            Pn.onPushMessage(this._uniPushMessageCallback);
          },
        },
        {
          key: "_destroy",
          value: function () {
            Pn.offPushMessage(this._uniPushMessageCallback);
          },
        },
        {
          key: "toJSON",
          value: function () {
            return {
              appId: this._appId,
              pushClientId: this._pushClientId,
              seqId: this._seqId,
            };
          },
        },
        {
          key: "close",
          value: function () {
            this._destroy(), this.emit("close");
          },
        },
      ]),
      f
    );
  })(
    (function () {
      function e() {
        s(this, e), (this._callback = {});
      }
      return (
        c(e, [
          {
            key: "addListener",
            value: function (e, t) {
              this._callback[e] || (this._callback[e] = []),
                this._callback[e].push(t);
            },
          },
          {
            key: "on",
            value: function (e, t) {
              return this.addListener(e, t);
            },
          },
          {
            key: "removeListener",
            value: function (e, t) {
              if (!t)
                throw new Error(
                  'The "listener" argument must be of type function. Received undefined'
                );
              var n = this._callback[e];
              if (n) {
                var r = (function (e, t) {
                  for (var n = e.length - 1; n >= 0; n--)
                    if (e[n] === t) return n;
                  return -1;
                })(n, t);
                n.splice(r, 1);
              }
            },
          },
          {
            key: "off",
            value: function (e, t) {
              return this.removeListener(e, t);
            },
          },
          {
            key: "removeAllListener",
            value: function (e) {
              delete this._callback[e];
            },
          },
          {
            key: "emit",
            value: function (e) {
              for (
                var t = this._callback[e],
                  n = arguments.length,
                  r = new Array(n > 1 ? n - 1 : 0),
                  i = 1;
                i < n;
                i++
              )
                r[i - 1] = arguments[i];
              if (t) for (var o = 0; o < t.length; o++) t[o].apply(t, r);
            },
          },
        ]),
        e
      );
    })()
  ),
  hv = { tcb: zp, tencent: zp, aliyun: Mh, private: Vp, alipay: ed },
  pv = new ((function () {
    function e() {
      s(this, e);
    }
    return (
      c(e, [
        {
          key: "init",
          value: function (e) {
            var i,
              o = {},
              a = hv[e.provider];
            if (!a) throw new Error("未提供正确的provider参数");
            return (
              (function (e) {
                e._initPromiseHub ||
                  (e._initPromiseHub = new Ql({
                    createPromise: function () {
                      var t = Promise.resolve();
                      t = new Promise(function (e) {
                        setTimeout(function () {
                          e();
                        }, 1);
                      });
                      var n = e.auth();
                      return t
                        .then(function () {
                          return n.getLoginState();
                        })
                        .then(function (e) {
                          return e ? Promise.resolve() : n.signInAnonymously();
                        });
                    },
                  }));
              })((o = a.init(e))),
              vd(o),
              (function (e) {
                var t = e.uploadFile;
                e.uploadFile = function (e) {
                  return t.call(this, e);
                };
              })(o),
              ((i = o).database = function (e) {
                if (e && Object.keys(e).length > 0) return i.init(e).database();
                if (this._database) return this._database;
                var t = Id(Od, { uniClient: i });
                return (this._database = t), t;
              }),
              (i.databaseForJQL = function (e) {
                if (e && Object.keys(e).length > 0)
                  return i.init(e).databaseForJQL();
                if (this._databaseForJQL) return this._databaseForJQL;
                var t = Id(Od, { uniClient: i, isJQL: !0 });
                return (this._databaseForJQL = t), t;
              }),
              (function (e) {
                (e.getCurrentUserInfo = nv),
                  (e.chooseAndUploadFile = rv.initChooseAndUploadFile(e)),
                  Object.assign(e, {
                    get mixinDatacom() {
                      return iv(e);
                    },
                  }),
                  (e.SSEChannel = lv),
                  (e.initSecureNetworkByWeixin = (function (e) {
                    return function () {
                      var t =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : {},
                        n = t.openid,
                        r = t.callLoginByWeixin,
                        i = void 0 !== r && r;
                      return sv.call(e, { openid: n, callLoginByWeixin: i });
                    };
                  })(e)),
                  (e.importObject = (function (e) {
                    return function (i) {
                      var o =
                          arguments.length > 1 && void 0 !== arguments[1]
                            ? arguments[1]
                            : {},
                        a = (o = (function (e) {
                          var t =
                            arguments.length > 1 && void 0 !== arguments[1]
                              ? arguments[1]
                              : {};
                          return (
                            (e.customUI = t.customUI || e.customUI),
                            (e.parseSystemError =
                              t.parseSystemError || e.parseSystemError),
                            Object.assign(e.loadingOptions, t.loadingOptions),
                            Object.assign(e.errorOptions, t.errorOptions),
                            "object" == f(t.secretMethods) &&
                              (e.secretMethods = t.secretMethods),
                            e
                          );
                        })(
                          {
                            customUI: !1,
                            loadingOptions: { title: "加载中...", mask: !0 },
                            errorOptions: { type: "modal", retry: !1 },
                          },
                          o
                        )),
                        u = a.customUI,
                        s = a.loadingOptions,
                        c = a.errorOptions,
                        l = a.parseSystemError,
                        h = !u;
                      return new Proxy(
                        {},
                        {
                          get: function (a, u) {
                            switch (u) {
                              case "toString":
                                return "[object UniCloudObject]";
                              case "toJSON":
                                return {};
                            }
                            return (function () {
                              var e =
                                  arguments.length > 0 &&
                                  void 0 !== arguments[0]
                                    ? arguments[0]
                                    : {},
                                i = e.fn,
                                o = e.interceptorName,
                                a = e.getCallbackArgs;
                              return n(
                                t().mark(function e() {
                                  var n,
                                    u,
                                    s,
                                    c,
                                    f,
                                    l,
                                    h = arguments;
                                  return t().wrap(
                                    function (e) {
                                      for (;;)
                                        switch ((e.prev = e.next)) {
                                          case 0:
                                            for (
                                              n = h.length,
                                                u = new Array(n),
                                                s = 0;
                                              s < n;
                                              s++
                                            )
                                              u[s] = h[s];
                                            return (
                                              (c = a ? a({ params: u }) : {}),
                                              (e.prev = 2),
                                              (e.next = 5),
                                              ch(fh(o, "invoke"), r({}, c))
                                            );
                                          case 5:
                                            return (
                                              (e.next = 7), i.apply(void 0, u)
                                            );
                                          case 7:
                                            return (
                                              (f = e.sent),
                                              (e.next = 10),
                                              ch(
                                                fh(o, "success"),
                                                r(r({}, c), {}, { result: f })
                                              )
                                            );
                                          case 10:
                                            return e.abrupt("return", f);
                                          case 13:
                                            return (
                                              (e.prev = 13),
                                              (e.t0 = e.catch(2)),
                                              (l = e.t0),
                                              (e.next = 18),
                                              ch(
                                                fh(o, "fail"),
                                                r(r({}, c), {}, { error: l })
                                              )
                                            );
                                          case 18:
                                            throw l;
                                          case 19:
                                            return (
                                              (e.prev = 19),
                                              (e.next = 22),
                                              ch(
                                                fh(o, "complete"),
                                                r(
                                                  r({}, c),
                                                  {},
                                                  l
                                                    ? { error: l }
                                                    : { result: f }
                                                )
                                              )
                                            );
                                          case 22:
                                            return e.finish(19);
                                          case 23:
                                          case "end":
                                            return e.stop();
                                        }
                                    },
                                    e,
                                    null,
                                    [[2, 13, 19, 23]]
                                  );
                                })
                              );
                            })({
                              fn: (function () {
                                var a = n(
                                  t().mark(function a() {
                                    var d,
                                      v,
                                      g,
                                      y,
                                      _,
                                      m,
                                      w,
                                      k,
                                      b,
                                      x,
                                      S,
                                      A,
                                      I,
                                      O,
                                      P,
                                      T = arguments;
                                    return t().wrap(
                                      function (a) {
                                        for (;;)
                                          switch ((a.prev = a.next)) {
                                            case 0:
                                              for (
                                                h &&
                                                  Pn.showLoading({
                                                    title: s.title,
                                                    mask: s.mask,
                                                  }),
                                                  v = T.length,
                                                  g = new Array(v),
                                                  y = 0;
                                                y < v;
                                                y++
                                              )
                                                g[y] = T[y];
                                              return (
                                                (_ = {
                                                  name: i,
                                                  type: "OBJECT",
                                                  data: {
                                                    method: u,
                                                    params: g,
                                                  },
                                                }),
                                                "object" ==
                                                  f(o.secretMethods) &&
                                                  (function (e, t) {
                                                    var n = t.data.method,
                                                      r = e.secretMethods || {},
                                                      i = r[n] || r["*"];
                                                    i && (t.secretType = i);
                                                  })(o, _),
                                                (m = !1),
                                                (a.prev = 5),
                                                (a.next = 8),
                                                e.callFunction(_)
                                              );
                                            case 8:
                                              (d = a.sent), (a.next = 14);
                                              break;
                                            case 11:
                                              (a.prev = 11),
                                                (a.t0 = a.catch(5)),
                                                (m = !0),
                                                (d = { result: new Th(a.t0) });
                                            case 14:
                                              if (
                                                ((w = d.result || {}),
                                                (k = w.errSubject),
                                                (b = w.errCode),
                                                (x = w.errMsg),
                                                (S = w.newToken),
                                                h && Pn.hideLoading(),
                                                S &&
                                                  S.token &&
                                                  S.tokenExpired &&
                                                  (Rh(S), bh(vh, r({}, S))),
                                                !b)
                                              ) {
                                                a.next = 40;
                                                break;
                                              }
                                              if (
                                                ((A = x),
                                                (a.t1 = m && l),
                                                !a.t1)
                                              ) {
                                                a.next = 25;
                                                break;
                                              }
                                              return (
                                                (a.next = 21),
                                                l({
                                                  objectName: i,
                                                  methodName: u,
                                                  params: g,
                                                  errSubject: k,
                                                  errCode: b,
                                                  errMsg: x,
                                                })
                                              );
                                            case 21:
                                              if (
                                                ((a.t2 = a.sent.errMsg), a.t2)
                                              ) {
                                                a.next = 24;
                                                break;
                                              }
                                              a.t2 = x;
                                            case 24:
                                              A = a.t2;
                                            case 25:
                                              if (!h) {
                                                a.next = 38;
                                                break;
                                              }
                                              if ("toast" !== c.type) {
                                                a.next = 30;
                                                break;
                                              }
                                              Pn.showToast({
                                                title: A,
                                                icon: "none",
                                              }),
                                                (a.next = 38);
                                              break;
                                            case 30:
                                              if ("modal" === c.type) {
                                                a.next = 32;
                                                break;
                                              }
                                              throw new Error(
                                                "Invalid errorOptions.type: ".concat(
                                                  c.type
                                                )
                                              );
                                            case 32:
                                              return (
                                                (a.next = 34),
                                                n(
                                                  t().mark(function e() {
                                                    var n,
                                                      r,
                                                      i,
                                                      o,
                                                      a,
                                                      u,
                                                      s = arguments;
                                                    return t().wrap(function (
                                                      e
                                                    ) {
                                                      for (;;)
                                                        switch (
                                                          (e.prev = e.next)
                                                        ) {
                                                          case 0:
                                                            return (
                                                              (n =
                                                                s.length > 0 &&
                                                                void 0 !== s[0]
                                                                  ? s[0]
                                                                  : {}),
                                                              (r = n.title),
                                                              (i = n.content),
                                                              (o =
                                                                n.showCancel),
                                                              (a =
                                                                n.cancelText),
                                                              (u =
                                                                n.confirmText),
                                                              e.abrupt(
                                                                "return",
                                                                new Promise(
                                                                  function (
                                                                    e,
                                                                    t
                                                                  ) {
                                                                    Pn.showModal(
                                                                      {
                                                                        title:
                                                                          r,
                                                                        content:
                                                                          i,
                                                                        showCancel:
                                                                          o,
                                                                        cancelText:
                                                                          a,
                                                                        confirmText:
                                                                          u,
                                                                        success:
                                                                          function (
                                                                            t
                                                                          ) {
                                                                            e(
                                                                              t
                                                                            );
                                                                          },
                                                                        fail: function () {
                                                                          e({
                                                                            confirm:
                                                                              !1,
                                                                            cancel:
                                                                              !0,
                                                                          });
                                                                        },
                                                                      }
                                                                    );
                                                                  }
                                                                )
                                                              )
                                                            );
                                                          case 2:
                                                          case "end":
                                                            return e.stop();
                                                        }
                                                    },
                                                    e);
                                                  })
                                                )({
                                                  title: "提示",
                                                  content: A,
                                                  showCancel: c.retry,
                                                  cancelText: "取消",
                                                  confirmText: c.retry
                                                    ? "重试"
                                                    : "确定",
                                                })
                                              );
                                            case 34:
                                              if (
                                                ((I = a.sent),
                                                (O = I.confirm),
                                                !c.retry || !O)
                                              ) {
                                                a.next = 38;
                                                break;
                                              }
                                              return a.abrupt(
                                                "return",
                                                p.apply(void 0, g)
                                              );
                                            case 38:
                                              throw (
                                                (((P = new Th({
                                                  subject: k,
                                                  code: b,
                                                  message: x,
                                                  requestId: d.requestId,
                                                })).detail = d.result),
                                                bh(ph, {
                                                  type: _h,
                                                  content: P,
                                                }),
                                                P)
                                              );
                                            case 40:
                                              return a.abrupt(
                                                "return",
                                                (bh(ph, {
                                                  type: _h,
                                                  content: d.result,
                                                }),
                                                d.result)
                                              );
                                            case 41:
                                            case "end":
                                              return a.stop();
                                          }
                                      },
                                      a,
                                      null,
                                      [[5, 11]]
                                    );
                                  })
                                );
                                function p() {
                                  return a.apply(this, arguments);
                                }
                                return p;
                              })(),
                              interceptorName: "callObject",
                              getCallbackArgs: function () {
                                var e =
                                    arguments.length > 0 &&
                                    void 0 !== arguments[0]
                                      ? arguments[0]
                                      : {},
                                  t = e.params;
                                return {
                                  objectName: i,
                                  methodName: u,
                                  params: t,
                                };
                              },
                            });
                          },
                        }
                      );
                    };
                  })(e));
              })(o),
              [
                "callFunction",
                "uploadFile",
                "deleteFile",
                "getTempFileURL",
                "downloadFile",
                "chooseAndUploadFile",
              ].forEach(function (e) {
                if (o[e]) {
                  var t,
                    n,
                    r = o[e];
                  (o[e] = function () {
                    return r.apply(o, Array.from(arguments));
                  }),
                    (o[e] = ((t = o[e]),
                    (n = e),
                    function (e) {
                      var r = this,
                        i = !1;
                      if ("callFunction" === n) {
                        var o = (e && e.type) || ql;
                        i = o !== ql;
                      }
                      var a = "callFunction" === n && !i,
                        u = this._initPromiseHub.exec(),
                        s = Ih((e = e || {})),
                        c = s.success,
                        f = s.fail,
                        l = s.complete,
                        h = u
                          .then(function () {
                            return i
                              ? Promise.resolve()
                              : ch(fh(n, "invoke"), e);
                          })
                          .then(function () {
                            return t.call(r, e);
                          })
                          .then(
                            function (e) {
                              return i
                                ? Promise.resolve(e)
                                : ch(fh(n, "success"), e)
                                    .then(function () {
                                      return ch(fh(n, "complete"), e);
                                    })
                                    .then(function () {
                                      return (
                                        a && bh(ph, { type: yh, content: e }),
                                        Promise.resolve(e)
                                      );
                                    });
                            },
                            function (e) {
                              return i
                                ? Promise.reject(e)
                                : ch(fh(n, "fail"), e)
                                    .then(function () {
                                      return ch(fh(n, "complete"), e);
                                    })
                                    .then(function () {
                                      return (
                                        bh(ph, { type: yh, content: e }),
                                        Promise.reject(e)
                                      );
                                    });
                            }
                          );
                      if (!(c || f || l)) return h;
                      h.then(
                        function (e) {
                          c && c(e),
                            l && l(e),
                            a && bh(ph, { type: yh, content: e });
                        },
                        function (e) {
                          f && f(e),
                            l && l(e),
                            a && bh(ph, { type: yh, content: e });
                        }
                      );
                    }).bind(o));
                }
              }),
              (o.init = this.init),
              o
            );
          },
        },
      ]),
      e
    );
  })())();
!(function () {
  var e = nh,
    t = {};
  if (e && 1 === e.length) (t = e[0]), ((pv = pv.init(t))._isDefault = !0);
  else {
    var n;
    (n =
      e && e.length > 0
        ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间"
        : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间"),
      [
        "auth",
        "callFunction",
        "uploadFile",
        "deleteFile",
        "getTempFileURL",
        "downloadFile",
        "database",
        "getCurrentUSerInfo",
        "importObject",
      ].forEach(function (e) {
        pv[e] = function () {
          return (
            console.error(n),
            Promise.reject(new Th({ code: "SYS_ERR", message: n }))
          );
        };
      });
  }
  Object.assign(pv, {
    get mixinDatacom() {
      return iv(pv);
    },
  }),
    Zd(pv),
    (pv.addInterceptor = uh),
    (pv.removeInterceptor = sh),
    (pv.interceptObject = lh);
})();
var dv = pv;
(exports.CryptoJS = Sc),
  (exports.Pinia = Pl),
  (exports.Ws = dv),
  (exports._ = Ic),
  (exports._export_sfc = function (e, t) {
    var n,
      r = e.__vccOpts || e,
      i = u(t);
    try {
      for (i.s(); !(n = i.n()).done; ) {
        var o = h(n.value, 2),
          a = o[0],
          s = o[1];
        r[a] = s;
      }
    } catch (e) {
      i.e(e);
    } finally {
      i.f();
    }
    return r;
  }),
  (exports.createPinia = vl),
  (exports.createSSRApp = function (e) {
    var t =
      arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
    return e && (e.mpType = "app"), ca(e, t).use(ba);
  }),
  (exports.defineStore = xl),
  (exports.e = function (e) {
    for (
      var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
      r < t;
      r++
    )
      n[r - 1] = arguments[r];
    return O.apply(void 0, [e].concat(n));
  }),
  (exports.f = function (e, t) {
    return (function (e, t) {
      var n;
      if (C(e) || B(e)) {
        n = new Array(e.length);
        for (var r = 0, i = e.length; r < i; r++) n[r] = t(e[r], r, r);
      } else if ("number" == typeof e) {
        n = new Array(e);
        for (var o = 0; o < e; o++) n[o] = t(o + 1, o, o);
      } else if (U(e))
        if (e[Symbol.iterator])
          n = Array.from(e, function (e, n) {
            return t(e, n, n);
          });
        else {
          var a = Object.keys(e);
          n = new Array(a.length);
          for (var u = 0, s = a.length; u < s; u++) {
            var c = a[u];
            n[u] = t(e[c], c, u);
          }
        }
      else n = [];
      return n;
    })(e, t);
  }),
  (exports.index = Pn),
  (exports.initVueI18n = function (e) {
    var t,
      n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
      r = arguments.length > 2 ? arguments[2] : void 0,
      i = arguments.length > 3 ? arguments[3] : void 0;
    "string" != typeof e && ((e = (t = [n, e])[0]), (n = t[1])),
      "string" != typeof e &&
        (e =
          void 0 !== Pn && Pn.getLocale
            ? Pn.getLocale()
            : "undefined" != typeof global && global.getLocale
            ? global.getLocale()
            : ze),
      "string" != typeof r &&
        (r =
          ("undefined" != typeof __uniConfig && __uniConfig.fallbackLocale) ||
          ze);
    var o = new Ge({ locale: e, fallbackLocale: r, messages: n, watcher: i }),
      a = function (e, t) {
        if ("function" != typeof getApp)
          a = function (e, t) {
            return o.t(e, t);
          };
        else {
          var n = !1;
          a = function (e, t) {
            var r = getApp().$vm;
            return (
              r &&
                (r.$locale,
                n ||
                  ((n = !0),
                  (function (e, t) {
                    e.$watchLocale
                      ? e.$watchLocale(function (e) {
                          t.setLocale(e);
                        })
                      : e.$watch(
                          function () {
                            return e.$locale;
                          },
                          function (e) {
                            t.setLocale(e);
                          }
                        );
                  })(r, o))),
              o.t(e, t)
            );
          };
        }
        return a(e, t);
      };
    return {
      i18n: o,
      f: function (e, t, n) {
        return o.f(e, t, n);
      },
      t: function (e, t) {
        return a(e, t);
      },
      add: function (e, t) {
        var n =
          !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
        return o.add(e, t, n);
      },
      watch: function (e) {
        return o.watchLocale(e);
      },
      getLocale: function () {
        return o.getLocale();
      },
      setLocale: function (e) {
        return o.setLocale(e);
      },
    };
  }),
  (exports.lib = fl),
  (exports.n = function (e) {
    return (function e(t) {
      var n = "";
      if (B(t)) n = t;
      else if (C(t))
        for (var r = 0; r < t.length; r++) {
          var i = e(t[r]);
          i && (n += i + " ");
        }
      else if (U(t)) for (var o in t) t[o] && (n += o + " ");
      return n.trim();
    })(e);
  }),
  (exports.o = function (e, t) {
    return (function (e, t) {
      var n = Co(),
        r = n.ctx,
        i =
          void 0 === t ||
          ("mp-weixin" !== r.$mpPlatform && "mp-qq" !== r.$mpPlatform) ||
          (!B(t) && "number" != typeof t)
            ? ""
            : "_" + t,
        o = "e" + n.$ei++ + i,
        a = r.$scope;
      if (!e) return delete a[o], o;
      var u = a[o];
      return (
        u
          ? (u.value = e)
          : (a[o] = (function (e, t) {
              var n = function e(n) {
                var r;
                (r = n).type &&
                  r.target &&
                  ((r.preventDefault = b),
                  (r.stopPropagation = b),
                  (r.stopImmediatePropagation = b),
                  E(r, "detail") || (r.detail = {}),
                  E(r, "markerId") &&
                    ((r.detail = "object" == f(r.detail) ? r.detail : {}),
                    (r.detail.markerId = r.markerId)),
                  F(r.detail) &&
                    E(r.detail, "checked") &&
                    !E(r.detail, "value") &&
                    (r.detail.value = r.detail.checked),
                  F(r.detail) && (r.target = O({}, r.target, r.detail)));
                var i = [n];
                n.detail && n.detail.__args__ && (i = n.detail.__args__);
                var o = e.value,
                  a = function () {
                    return oi(
                      (function (e, t) {
                        if (C(t)) {
                          var n = e.stopImmediatePropagation;
                          return (
                            (e.stopImmediatePropagation = function () {
                              n && n.call(e), (e._stopped = !0);
                            }),
                            t.map(function (e) {
                              return function (t) {
                                return !t._stopped && e(t);
                              };
                            })
                          );
                        }
                        return t;
                      })(n, o),
                      t,
                      5,
                      i
                    );
                  },
                  u = n.target,
                  s =
                    !!u &&
                    !!u.dataset &&
                    "true" === String(u.dataset.eventsync);
                if (!xa.includes(n.type) || s) {
                  var c = a();
                  if ("input" === n.type && (C(c) || j(c))) return;
                  return c;
                }
                setTimeout(a);
              };
              return (n.value = e), n;
            })(e, n)),
        o
      );
    })(e, t);
  }),
  (exports.onLaunch = Cl),
  (exports.onLoad = Rl),
  (exports.onMounted = zi),
  (exports.onPageScroll = Ll),
  (exports.onPullDownRefresh = Bl),
  (exports.onReachBottom = Dl),
  (exports.onShareAppMessage = Nl),
  (exports.onShow = El),
  (exports.p = function (e) {
    return (function (e) {
      var t = Co(),
        n = t.uid,
        r = t.__counter;
      return (
        n +
        "," +
        ((ma[n] || (ma[n] = [])).push(
          (function (e) {
            return e
              ? Mr((t = e)) || $r(t) || "__vInternal" in e
                ? O({}, e)
                : e
              : null;
            var t;
          })(e)
        ) -
          1) +
        "," +
        r
      );
    })(e);
  }),
  (exports.ref = Gr),
  (exports.resolveComponent = function (e, t) {
    return (
      (function (e, t) {
        var n = arguments.length > 3 && void 0 !== arguments[3] && arguments[3],
          r = Oi || Eo;
        if (r) {
          var i = r.type;
          if (e === Zi) {
            var o = (function (e) {
              var t =
                !(arguments.length > 1 && void 0 !== arguments[1]) ||
                arguments[1];
              return D(e) ? e.displayName || e.name : e.name || (t && e.__name);
            })(i, !1);
            if (o && (o === t || o === V(t) || o === G(V(t)))) return i;
          }
          var a = eo(r[e] || i[e], t) || eo(r.appContext[e], t);
          return !a && n ? i : a;
        }
      })(Zi, e, !0, t) || e
    );
  }),
  (exports.s = function (e) {
    return Sa(e);
  }),
  (exports.sr = function (e, t, n) {
    return (function (e, t) {
      var n =
          arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
        r = Co(),
        i = r.$templateRefs;
      i.push({ i: t, r: e, k: n.k, f: n.f });
    })(e, t, n);
  }),
  (exports.storeToRefs = Ol),
  (exports.t = function (e) {
    return (function (e) {
      return B(e)
        ? e
        : null == e
        ? ""
        : C(e) || (U(e) && (e.toString === M || !D(e.toString)))
        ? JSON.stringify(e, m, 2)
        : String(e);
    })(e);
  }),
  (exports.unref = Xr),
  (exports.watch = Ci),
  (exports.wx$1 = On);