my-header-yichong 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/my-header.js CHANGED
@@ -7,7 +7,7 @@ function hr(e, t) {
7
7
  const { toString: Ro } = Object.prototype, { getPrototypeOf: vn } = Object, Et = ((e) => (t) => {
8
8
  const n = Ro.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), de = (e) => (e = e.toLowerCase(), (t) => Et(t) === e), St = (e) => (t) => typeof t === e, { isArray: Fe } = Array, Ze = St("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), de = (e) => (e = e.toLowerCase(), (t) => Et(t) === e), St = (e) => (t) => typeof t === e, { isArray: Re } = Array, Ze = St("undefined");
11
11
  function Do(e) {
12
12
  return e !== null && !Ze(e) && e.constructor !== null && !Ze(e.constructor) && Q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
@@ -30,7 +30,7 @@ function ot(e, t, { allOwnKeys: n = !1 } = {}) {
30
30
  if (e === null || typeof e > "u")
31
31
  return;
32
32
  let r, o;
33
- if (typeof e != "object" && (e = [e]), Fe(e))
33
+ if (typeof e != "object" && (e = [e]), Re(e))
34
34
  for (r = 0, o = e.length; r < o; r++)
35
35
  t.call(null, e[r], r, e);
36
36
  else {
@@ -53,7 +53,7 @@ const yr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? sel
53
53
  function Zt() {
54
54
  const { caseless: e } = br(this) && this || {}, t = {}, n = (r, o) => {
55
55
  const s = e && gr(t, o) || o;
56
- ht(t[s]) && ht(r) ? t[s] = Zt(t[s], r) : ht(r) ? t[s] = Zt({}, r) : Fe(r) ? t[s] = r.slice() : t[s] = r;
56
+ ht(t[s]) && ht(r) ? t[s] = Zt(t[s], r) : ht(r) ? t[s] = Zt({}, r) : Re(r) ? t[s] = r.slice() : t[s] = r;
57
57
  };
58
58
  for (let r = 0, o = arguments.length; r < o; r++)
59
59
  arguments[r] && ot(arguments[r], n);
@@ -83,7 +83,7 @@ const Jo = (e, t, n, { allOwnKeys: r } = {}) => (ot(t, (o, s) => {
83
83
  }, Qo = (e) => {
84
84
  if (!e)
85
85
  return null;
86
- if (Fe(e))
86
+ if (Re(e))
87
87
  return e;
88
88
  let t = e.length;
89
89
  if (!vr(t))
@@ -136,7 +136,7 @@ const Jo = (e, t, n, { allOwnKeys: r } = {}) => (ot(t, (o, s) => {
136
136
  n[s] = !0;
137
137
  });
138
138
  };
139
- return Fe(e) ? r(e) : r(String(e).split(t)), n;
139
+ return Re(e) ? r(e) : r(String(e).split(t)), n;
140
140
  }, ls = () => {
141
141
  }, us = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Ut = "abcdefghijklmnopqrstuvwxyz", $n = "0123456789", _r = {
142
142
  DIGIT: $n,
@@ -159,7 +159,7 @@ const fs = (e) => {
159
159
  return;
160
160
  if (!("toJSON" in r)) {
161
161
  t[o] = r;
162
- const s = Fe(r) ? [] : {};
162
+ const s = Re(r) ? [] : {};
163
163
  return ot(r, (a, i) => {
164
164
  const d = n(a, o + 1);
165
165
  !Ze(d) && (s[i] = d);
@@ -170,7 +170,7 @@ const fs = (e) => {
170
170
  };
171
171
  return n(e, 0);
172
172
  }, ps = de("AsyncFunction"), hs = (e) => e && (xt(e) || Q(e)) && Q(e.then) && Q(e.catch), h = {
173
- isArray: Fe,
173
+ isArray: Re,
174
174
  isArrayBuffer: mr,
175
175
  isBuffer: Do,
176
176
  isFormData: qo,
@@ -1019,7 +1019,7 @@ function Bn(e) {
1019
1019
  });
1020
1020
  }
1021
1021
  const Mn = (e) => e instanceof he ? e.toJSON() : e;
1022
- function ke(e, t) {
1022
+ function Le(e, t) {
1023
1023
  t = t || {};
1024
1024
  const n = {};
1025
1025
  function r(l, c, u) {
@@ -1146,7 +1146,7 @@ class yt {
1146
1146
  * @returns {Promise} The Promise to be fulfilled
1147
1147
  */
1148
1148
  request(t, n) {
1149
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ke(this.defaults, n);
1149
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Le(this.defaults, n);
1150
1150
  const { transitional: r, paramsSerializer: o, headers: s } = n;
1151
1151
  r !== void 0 && en.assertOptions(r, {
1152
1152
  silentJSONParsing: me.transitional(me.boolean),
@@ -1205,14 +1205,14 @@ class yt {
1205
1205
  return c;
1206
1206
  }
1207
1207
  getUri(t) {
1208
- t = ke(this.defaults, t);
1208
+ t = Le(this.defaults, t);
1209
1209
  const n = Ar(t.baseURL, t.url);
1210
1210
  return Or(n, t.params, t.paramsSerializer);
1211
1211
  }
1212
1212
  }
1213
1213
  h.forEach(["delete", "get", "head", "options"], function(t) {
1214
1214
  yt.prototype[t] = function(n, r) {
1215
- return this.request(ke(r || {}, {
1215
+ return this.request(Le(r || {}, {
1216
1216
  method: t,
1217
1217
  url: n,
1218
1218
  data: (r || {}).data
@@ -1222,7 +1222,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
1222
1222
  h.forEach(["post", "put", "patch"], function(t) {
1223
1223
  function n(r) {
1224
1224
  return function(s, a, i) {
1225
- return this.request(ke(i || {}, {
1225
+ return this.request(Le(i || {}, {
1226
1226
  method: t,
1227
1227
  headers: r ? {
1228
1228
  "Content-Type": "multipart/form-data"
@@ -1384,7 +1384,7 @@ const Ys = tn;
1384
1384
  function Lr(e) {
1385
1385
  const t = new gt(e), n = hr(gt.prototype.request, t);
1386
1386
  return h.extend(n, gt.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1387
- return Lr(ke(e, o));
1387
+ return Lr(Le(e, o));
1388
1388
  }, n;
1389
1389
  }
1390
1390
  const M = Lr(yn);
@@ -1401,7 +1401,7 @@ M.all = function(t) {
1401
1401
  };
1402
1402
  M.spread = Js;
1403
1403
  M.isAxiosError = Ks;
1404
- M.mergeConfig = ke;
1404
+ M.mergeConfig = Le;
1405
1405
  M.AxiosHeaders = he;
1406
1406
  M.formToJSON = (e) => Cr(h.isHTMLForm(e) ? new FormData(e) : e);
1407
1407
  M.HttpStatusCode = Ys;
@@ -1495,8 +1495,8 @@ const sa = oa;
1495
1495
  var aa = typeof self == "object" && self && self.Object === Object && self, ia = sa || aa || Function("return this")();
1496
1496
  const Sn = ia;
1497
1497
  var la = Sn.Symbol;
1498
- const Le = la;
1499
- var Rr = Object.prototype, ua = Rr.hasOwnProperty, ca = Rr.toString, He = Le ? Le.toStringTag : void 0;
1498
+ const $e = la;
1499
+ var Rr = Object.prototype, ua = Rr.hasOwnProperty, ca = Rr.toString, He = $e ? $e.toStringTag : void 0;
1500
1500
  function da(e) {
1501
1501
  var t = ua.call(e, He), n = e[He];
1502
1502
  try {
@@ -1511,7 +1511,7 @@ var fa = Object.prototype, pa = fa.toString;
1511
1511
  function ha(e) {
1512
1512
  return pa.call(e);
1513
1513
  }
1514
- var ma = "[object Null]", va = "[object Undefined]", Gn = Le ? Le.toStringTag : void 0;
1514
+ var ma = "[object Null]", va = "[object Undefined]", Gn = $e ? $e.toStringTag : void 0;
1515
1515
  function Dr(e) {
1516
1516
  return e == null ? e === void 0 ? va : ma : Gn && Gn in Object(e) ? da(e) : ha(e);
1517
1517
  }
@@ -1529,7 +1529,7 @@ function ba(e, t) {
1529
1529
  }
1530
1530
  var wa = Array.isArray;
1531
1531
  const Pn = wa;
1532
- var _a = 1 / 0, Wn = Le ? Le.prototype : void 0, Jn = Wn ? Wn.toString : void 0;
1532
+ var _a = 1 / 0, Wn = $e ? $e.prototype : void 0, Jn = Wn ? Wn.toString : void 0;
1533
1533
  function jr(e) {
1534
1534
  if (typeof e == "string")
1535
1535
  return e;
@@ -1668,24 +1668,24 @@ function ui(e, t) {
1668
1668
  var n = this.__data__, r = Nt(n, e);
1669
1669
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
1670
1670
  }
1671
- function Re(e) {
1671
+ function De(e) {
1672
1672
  var t = -1, n = e == null ? 0 : e.length;
1673
1673
  for (this.clear(); ++t < n; ) {
1674
1674
  var r = e[t];
1675
1675
  this.set(r[0], r[1]);
1676
1676
  }
1677
1677
  }
1678
- Re.prototype.clear = ri;
1679
- Re.prototype.delete = ai;
1680
- Re.prototype.get = ii;
1681
- Re.prototype.has = li;
1682
- Re.prototype.set = ui;
1678
+ De.prototype.clear = ri;
1679
+ De.prototype.delete = ai;
1680
+ De.prototype.get = ii;
1681
+ De.prototype.has = li;
1682
+ De.prototype.set = ui;
1683
1683
  var ci = Br(Sn, "Map");
1684
1684
  const di = ci;
1685
1685
  function fi() {
1686
1686
  this.size = 0, this.__data__ = {
1687
1687
  hash: new xe(),
1688
- map: new (di || Re)(),
1688
+ map: new (di || De)(),
1689
1689
  string: new xe()
1690
1690
  };
1691
1691
  }
@@ -2307,7 +2307,7 @@ function tl() {
2307
2307
  t = r[n].split("="), e[decodeURIComponent(t[0])] = t.length > 1 ? decodeURIComponent(t[1]) : "";
2308
2308
  return e;
2309
2309
  }
2310
- function De({ url: e, data: t = null, method: n = "GET", headers: r = null, cacheKey: o, cacheTime: s }) {
2310
+ function je({ url: e, data: t = null, method: n = "GET", headers: r = null, cacheKey: o, cacheTime: s }) {
2311
2311
  try {
2312
2312
  var a = new AbortController(), i = a.signal;
2313
2313
  } catch {
@@ -2333,19 +2333,19 @@ function De({ url: e, data: t = null, method: n = "GET", headers: r = null, cach
2333
2333
  });
2334
2334
  return Promise.race([c(), fetch(e, l).then((u) => u.json())]).then((u) => (console.log(u), u.success == !0 || u.ok === 0 || u.code == 0 ? (o && (s ? ut.put(o, u.data, s) : ut.put(o, u.data)), (u.message || u.message == 0) && (window.g_message = u.message), Promise.resolve(u.data)) : u && u.image || u && u.GOOGLE_ACCESS_TOKEN ? (o && (s ? ut.put(o, u, s) : ut.put(o, u)), Promise.resolve(u)) : u.statusText == "timeout" ? Promise.reject("The system is busy, please try again later") : Promise.reject(u.message || u.msg && u || "failed, please check your network and try again"))).catch((u) => Promise.reject(u));
2335
2335
  }
2336
- let je = kt();
2336
+ let Ie = kt();
2337
2337
  function nr() {
2338
2338
  const e = {
2339
2339
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
2340
2340
  };
2341
- return De({
2342
- url: je + "/api/user/status",
2341
+ return je({
2342
+ url: Ie + "/api/user/status",
2343
2343
  method: "POST",
2344
2344
  headers: e
2345
2345
  });
2346
2346
  }
2347
- const nl = (e) => De({
2348
- url: je + "/api/user/active-passport",
2347
+ const nl = (e) => je({
2348
+ url: Ie + "/api/user/active-passport",
2349
2349
  data: {
2350
2350
  passport: e
2351
2351
  },
@@ -2355,8 +2355,8 @@ const nl = (e) => De({
2355
2355
  }
2356
2356
  });
2357
2357
  function rl(e) {
2358
- return De({
2359
- url: je + "/api/user/facebooklogin",
2358
+ return je({
2359
+ url: Ie + "/api/user/facebooklogin",
2360
2360
  data: {
2361
2361
  token: e
2362
2362
  },
@@ -2367,8 +2367,8 @@ function rl(e) {
2367
2367
  });
2368
2368
  }
2369
2369
  function Kr(e) {
2370
- return De({
2371
- url: je + "/api/user/google",
2370
+ return je({
2371
+ url: Ie + "/api/user/google",
2372
2372
  data: {
2373
2373
  token: e
2374
2374
  },
@@ -2379,8 +2379,8 @@ function Kr(e) {
2379
2379
  });
2380
2380
  }
2381
2381
  function ol(e, t) {
2382
- return De({
2383
- url: je + "/api/user/emaillogin?email=" + encodeURIComponent(e) + "&password=" + encodeURIComponent(t)
2382
+ return je({
2383
+ url: Ie + "/api/user/emaillogin?email=" + encodeURIComponent(e) + "&password=" + encodeURIComponent(t)
2384
2384
  // data: {
2385
2385
  // email,
2386
2386
  // password
@@ -2389,8 +2389,8 @@ function ol(e, t) {
2389
2389
  });
2390
2390
  }
2391
2391
  function sl(e, t, n) {
2392
- return De({
2393
- url: je + "/api/user/emailsignup?email=" + encodeURIComponent(e) + "&username=" + encodeURIComponent(t) + "&password=" + encodeURIComponent(n)
2392
+ return je({
2393
+ url: Ie + "/api/user/emailsignup?email=" + encodeURIComponent(e) + "&username=" + encodeURIComponent(t) + "&password=" + encodeURIComponent(n)
2394
2394
  // data: {
2395
2395
  // email,
2396
2396
  // username,
@@ -2674,7 +2674,7 @@ function to(e, t, n = x(() => !0)) {
2674
2674
  }, !0), eo("blur", (s) => r(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
2675
2675
  }
2676
2676
  var Oe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Oe || {});
2677
- let $e = U({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
2677
+ let Fe = U({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
2678
2678
  return () => {
2679
2679
  let { features: r, ...o } = e, s = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
2680
2680
  return G({ ourProps: s, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
@@ -2787,7 +2787,7 @@ let ze = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, Stri
2787
2787
  }
2788
2788
  return () => {
2789
2789
  let v = {}, m = { ref: o, onKeydown: u, onFocusout: f }, { features: p, initialFocus: y, containers: S, ...N } = e;
2790
- return j(ve, [!!(p & 4) && j($e, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable }), G({ ourProps: m, theirProps: { ...t, ...N }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && j($e, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable })]);
2790
+ return j(ve, [!!(p & 4) && j(Fe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable }), G({ ourProps: m, theirProps: { ...t, ...N }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && j(Fe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable })]);
2791
2791
  };
2792
2792
  } }), { features: so }), we = [];
2793
2793
  El(() => {
@@ -3122,7 +3122,7 @@ function ho({ defaultContainers: e = [], portals: t } = {}) {
3122
3122
  return { resolveContainers: o, contains(s) {
3123
3123
  return o().some((a) => a.contains(s));
3124
3124
  }, mainTreeNodeRef: n, MainTreeNode() {
3125
- return j($e, { features: Oe.Hidden, ref: n });
3125
+ return j(Fe, { features: Oe.Hidden, ref: n });
3126
3126
  } };
3127
3127
  }
3128
3128
  var Ul = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ul || {});
@@ -3188,14 +3188,14 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
3188
3188
  return;
3189
3189
  let ie = new ResizeObserver((le) => {
3190
3190
  for (let jt of le) {
3191
- let Ne = jt.target.getBoundingClientRect();
3192
- Ne.x === 0 && Ne.y === 0 && Ne.width === 0 && Ne.height === 0 && I.close();
3191
+ let Ae = jt.target.getBoundingClientRect();
3192
+ Ae.x === 0 && Ae.y === 0 && Ae.width === 0 && Ae.height === 0 && I.close();
3193
3193
  }
3194
3194
  });
3195
3195
  ie.observe(R), F(() => ie.disconnect());
3196
3196
  }), () => {
3197
- let { id: F, open: R, initialFocus: ie, ...le } = e, jt = { ...n, ref: c, id: F, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": D.value, "aria-describedby": w.value }, Ne = { open: f.value === 0 };
3198
- return j(an, { force: !0 }, () => [j(lo, () => j(Nl, { target: c.value }, () => j(an, { force: !1 }, () => j(ze, { initialFocus: ie, containers: N, features: v.value ? X(E.value, { parent: ze.features.RestoreFocus, leaf: ze.features.All & ~ze.features.FocusLock }) : ze.features.None }, () => j(S, {}, () => G({ ourProps: jt, theirProps: { ...le, ...n }, slot: Ne, attrs: n, slots: r, visible: f.value === 0, features: Pe.RenderStrategy | Pe.Static, name: "Dialog" })))))), j(A)]);
3197
+ let { id: F, open: R, initialFocus: ie, ...le } = e, jt = { ...n, ref: c, id: F, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": D.value, "aria-describedby": w.value }, Ae = { open: f.value === 0 };
3198
+ return j(an, { force: !0 }, () => [j(lo, () => j(Nl, { target: c.value }, () => j(an, { force: !1 }, () => j(ze, { initialFocus: ie, containers: N, features: v.value ? X(E.value, { parent: ze.features.RestoreFocus, leaf: ze.features.All & ~ze.features.FocusLock }) : ze.features.None }, () => j(S, {}, () => G({ ourProps: jt, theirProps: { ...le, ...n }, slot: Ae, attrs: n, slots: r, visible: f.value === 0, features: Pe.RenderStrategy | Pe.Static, name: "Dialog" })))))), j(A)]);
3199
3199
  };
3200
3200
  } });
3201
3201
  U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
@@ -3356,7 +3356,7 @@ let bo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
3356
3356
  }
3357
3357
  return () => {
3358
3358
  let C = o.popoverState.value === 0, A = { open: C }, { id: E, ...O } = e, b = l.value ? { ref: c, type: f.value, onKeydown: v, onClick: p } : { ref: c, id: E, type: f.value, "aria-expanded": e.disabled ? void 0 : o.popoverState.value === 0, "aria-controls": _(o.panel) ? o.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: v, onKeyup: m, onClick: p, onMousedown: y };
3359
- return j(ve, [G({ ourProps: b, theirProps: { ...t, ...O }, slot: A, attrs: t, slots: n, name: "PopoverButton" }), C && !l.value && o.isPortalled.value && j($e, { id: u, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: N })]);
3359
+ return j(ve, [G({ ourProps: b, theirProps: { ...t, ...O }, slot: A, attrs: t, slots: n, name: "PopoverButton" }), C && !l.value && o.isPortalled.value && j(Fe, { id: u, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: N })]);
3360
3360
  };
3361
3361
  } });
3362
3362
  U({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(e, { attrs: t, slots: n }) {
@@ -3441,7 +3441,7 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
3441
3441
  let y = { open: s.popoverState.value === 0, close: s.close }, { id: S, focus: N, ...C } = e, A = { ref: s.panel, id: S, onKeydown: u, onFocusout: o && s.popoverState.value === 0 ? f : void 0, tabIndex: -1 };
3442
3442
  return G({ ourProps: A, theirProps: { ...t, ...C }, attrs: t, slot: y, slots: { ...n, default: (...E) => {
3443
3443
  var O;
3444
- return [j(ve, [c.value && s.isPortalled.value && j($e, { id: i, ref: s.beforePanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m }), (O = n.default) == null ? void 0 : O.call(n, ...E), c.value && s.isPortalled.value && j($e, { id: d, ref: s.afterPanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p })])];
3444
+ return [j(ve, [c.value && s.isPortalled.value && j(Fe, { id: i, ref: s.beforePanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m }), (O = n.default) == null ? void 0 : O.call(n, ...E), c.value && s.isPortalled.value && j(Fe, { id: d, ref: s.afterPanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p })])];
3445
3445
  } }, features: Pe.RenderStrategy | Pe.Static, visible: c.value, name: "PopoverPanel" });
3446
3446
  };
3447
3447
  } });
@@ -4024,7 +4024,7 @@ function ir(e, t, n, r = _o) {
4024
4024
  };
4025
4025
  return !n && ko() && Lo(o), o;
4026
4026
  }
4027
- function Ae(e, ...t) {
4027
+ function ke(e, ...t) {
4028
4028
  e.slice().forEach((n) => {
4029
4029
  n(...t);
4030
4030
  });
@@ -4100,7 +4100,7 @@ function fn(e, t, n = {}, r, o, s) {
4100
4100
  const D = y = Symbol();
4101
4101
  Xe().then(() => {
4102
4102
  y === D && (l = !0);
4103
- }), c = !0, Ae(u, w, r.state.value[e]);
4103
+ }), c = !0, ke(u, w, r.state.value[e]);
4104
4104
  }
4105
4105
  const N = s ? function() {
4106
4106
  const { state: w } = n, D = w ? w() : {};
@@ -4126,7 +4126,7 @@ function fn(e, t, n = {}, r, o, s) {
4126
4126
  function Dt(R) {
4127
4127
  ge.push(R);
4128
4128
  }
4129
- Ae(f, {
4129
+ ke(f, {
4130
4130
  args: D,
4131
4131
  name: P,
4132
4132
  store: b,
@@ -4137,9 +4137,9 @@ function fn(e, t, n = {}, r, o, s) {
4137
4137
  try {
4138
4138
  F = w.apply(this && this.$id === e ? this : b, D);
4139
4139
  } catch (R) {
4140
- throw Ae(ge, R), R;
4140
+ throw ke(ge, R), R;
4141
4141
  }
4142
- return F instanceof Promise ? F.then((R) => (Ae(I, R), R)).catch((R) => (Ae(ge, R), Promise.reject(R))) : (Ae(I, F), F);
4142
+ return F instanceof Promise ? F.then((R) => (ke(I, R), R)).catch((R) => (ke(ge, R), Promise.reject(R))) : (ke(I, F), F);
4143
4143
  };
4144
4144
  }
4145
4145
  const E = /* @__PURE__ */ Ge({
@@ -4600,76 +4600,79 @@ function uc(e, t) {
4600
4600
  })
4601
4601
  ]);
4602
4602
  }
4603
- const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4603
+ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4604
4604
  class: "flex items-center justify-between py-6 lg:px-0 px-6",
4605
4605
  "aria-label": "Global"
4606
- }, dc = { class: "flex lg:flex-1" }, fc = ["href"], pc = ["src", "alt"], hc = { class: "pl-2 text-xl" }, mc = { class: "flex lg:hidden" }, vc = /* @__PURE__ */ Ie(() => /* @__PURE__ */ g(
4606
+ }, dc = { class: "flex lg:flex-1" }, fc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4607
+ "span",
4608
+ { class: "hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900" },
4609
+ null,
4610
+ -1
4611
+ /* HOISTED */
4612
+ )), pc = ["href"], hc = ["src", "alt"], mc = { class: "pl-2 text-xl" }, vc = { class: "flex lg:hidden" }, gc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4607
4613
  "span",
4608
4614
  { class: "sr-only" },
4609
4615
  "Open main menu",
4610
4616
  -1
4611
4617
  /* HOISTED */
4612
- )), gc = { class: "hidden lg:flex lg:gap-x-12" }, yc = /* @__PURE__ */ Ie(() => /* @__PURE__ */ g(
4618
+ )), yc = { class: "hidden lg:flex lg:gap-x-12" }, bc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4613
4619
  "span",
4614
4620
  null,
4615
4621
  "Apps",
4616
4622
  -1
4617
4623
  /* HOISTED */
4618
- )), bc = { class: "w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5" }, wc = ["href"], _c = ["href", "target"], Ec = {
4624
+ )), wc = { class: "w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5" }, _c = ["href"], Ec = ["href", "target"], Sc = {
4619
4625
  key: 0,
4620
4626
  class: "hidden lg:flex lg:flex-1 lg:justify-end"
4621
- }, Sc = {
4627
+ }, xc = {
4622
4628
  key: 1,
4623
4629
  class: "hidden lg:flex lg:flex-1 lg:justify-end"
4624
- }, xc = /* @__PURE__ */ Ie(() => /* @__PURE__ */ g(
4630
+ }, Pc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4625
4631
  "span",
4626
4632
  { "aria-hidden": "true" },
4627
4633
  null,
4628
4634
  -1
4629
4635
  /* HOISTED */
4630
- )), Pc = {
4636
+ )), Oc = {
4631
4637
  key: 2,
4632
4638
  class: "hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"
4633
- }, Oc = { class: "pr-4" }, Tc = ["src"], Cc = /* @__PURE__ */ Ie(() => /* @__PURE__ */ g(
4639
+ }, Tc = { class: "pr-4" }, Cc = ["src"], Nc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4634
4640
  "div",
4635
4641
  { class: "open-icon" },
4636
4642
  null,
4637
4643
  -1
4638
4644
  /* HOISTED */
4639
- )), Nc = { class: "user-center-dialog shadow-xl" }, Ac = /* @__PURE__ */ Ie(() => /* @__PURE__ */ g(
4645
+ )), Ac = { class: "user-center-dialog shadow-xl" }, kc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4640
4646
  "div",
4641
4647
  { class: "fixed inset-0 z-50" },
4642
4648
  null,
4643
4649
  -1
4644
4650
  /* HOISTED */
4645
- )), kc = { class: "flex items-center justify-between" }, Lc = ["href"], $c = { class: "sr-only" }, Fc = ["src", "alt"], Rc = /* @__PURE__ */ Ie(() => /* @__PURE__ */ g(
4651
+ )), Lc = { class: "flex items-center justify-between" }, $c = ["href"], Fc = { class: "sr-only" }, Rc = ["src", "alt"], Dc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
4646
4652
  "span",
4647
4653
  { class: "sr-only" },
4648
4654
  "Close menu",
4649
4655
  -1
4650
4656
  /* HOISTED */
4651
- )), Dc = { class: "mt-6 flow-root" }, jc = { class: "-my-6 divide-y divide-gray-500/10" }, Ic = { class: "space-y-2 py-6" }, Bc = {
4657
+ )), jc = { class: "mt-6 flow-root" }, Ic = { class: "-my-6 divide-y divide-gray-500/10" }, Bc = { class: "space-y-2 py-6" }, Mc = {
4652
4658
  key: 0,
4653
4659
  target: "_blank",
4654
4660
  href: "https://www.livepolls.app/apps",
4655
4661
  class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
4656
- }, Mc = ["href", "target"], Uc = {
4662
+ }, Uc = ["href", "target"], Hc = {
4657
4663
  key: 0,
4658
4664
  class: "py-6"
4659
- }, Hc = {
4665
+ }, Vc = {
4660
4666
  __name: "Header",
4661
4667
  props: {
4662
4668
  isShenHe: {
4663
4669
  type: Boolean,
4664
4670
  default: !1
4665
4671
  },
4666
- userInfo: {
4667
- type: Object,
4668
- default: () => null
4669
- },
4670
4672
  userStore: {
4671
4673
  type: Object,
4672
- default: () => null
4674
+ default: () => {
4675
+ }
4673
4676
  },
4674
4677
  from: {
4675
4678
  type: String,
@@ -4701,11 +4704,11 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4701
4704
  ] : [
4702
4705
  { name: "Pricing", href: s + "/pricing", target: "_self" }
4703
4706
  ]
4704
- ), d = T(s || "/"), l = T(!1), c = x(() => n.userInfo || n.userStore && n.userStore.user), u = () => {
4705
- n.userStore && n.userStore.showLogin(!0);
4707
+ ), d = T(s || "/"), l = T(!1), c = x(() => n.userStore.user), u = () => {
4708
+ n.userStore.showLogin(!0);
4706
4709
  }, f = T(!1);
4707
4710
  K(() => {
4708
- !n.userInfo && n.userStore.getUser().then(
4711
+ n.userStore.getUser().then(
4709
4712
  ({ profile: A }) => {
4710
4713
  t("initUserCallback", A), console.log("login", A), !A && n.from != "login" && !n.isShenHe && N();
4711
4714
  },
@@ -4720,7 +4723,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4720
4723
  background: "rgba(0, 0, 0, 0.7)"
4721
4724
  });
4722
4725
  try {
4723
- n.userStore && await n.userStore.getUser(), t("loginSuccess");
4726
+ await n.userStore.getUser(), t("loginSuccess");
4724
4727
  } catch {
4725
4728
  } finally {
4726
4729
  A.close();
@@ -4766,6 +4769,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4766
4769
  [
4767
4770
  g("nav", cc, [
4768
4771
  g("div", dc, [
4772
+ fc,
4769
4773
  g("a", {
4770
4774
  href: d.value,
4771
4775
  class: "-m-1.5 p-1.5 flex items-center"
@@ -4774,30 +4778,30 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4774
4778
  class: "h-8 w-auto",
4775
4779
  src: o.value.logo,
4776
4780
  alt: o.value.name
4777
- }, null, 8, pc),
4781
+ }, null, 8, hc),
4778
4782
  g(
4779
4783
  "span",
4780
- hc,
4784
+ mc,
4781
4785
  J(o.value.name),
4782
4786
  1
4783
4787
  /* TEXT */
4784
4788
  )
4785
- ], 8, fc)
4789
+ ], 8, pc)
4786
4790
  ]),
4787
- g("div", mc, [
4791
+ g("div", vc, [
4788
4792
  g("button", {
4789
4793
  type: "button",
4790
4794
  class: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
4791
4795
  onClick: E[0] || (E[0] = (O) => f.value = !0)
4792
4796
  }, [
4793
- vc,
4797
+ gc,
4794
4798
  ue(z(Jl), {
4795
4799
  class: "h-6 w-6",
4796
4800
  "aria-hidden": "true"
4797
4801
  })
4798
4802
  ])
4799
4803
  ]),
4800
- g("div", gc, [
4804
+ g("div", yc, [
4801
4805
  e.isShenHe ? B("v-if", !0) : (k(), Be(z(bo), {
4802
4806
  key: 0,
4803
4807
  class: "relative"
@@ -4805,7 +4809,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4805
4809
  default: be(() => [
4806
4810
  ue(z(Gl), { class: "inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900" }, {
4807
4811
  default: be(() => [
4808
- yc,
4812
+ bc,
4809
4813
  ue(z(uc), {
4810
4814
  class: "h-5 w-5",
4811
4815
  "aria-hidden": "true"
@@ -4825,7 +4829,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4825
4829
  default: be(() => [
4826
4830
  ue(z(Wl), { class: "absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" }, {
4827
4831
  default: be(() => [
4828
- g("div", bc, [
4832
+ g("div", wc, [
4829
4833
  (k(), $(
4830
4834
  ve,
4831
4835
  null,
@@ -4834,7 +4838,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4834
4838
  href: O.href,
4835
4839
  class: "block p-2 hover:text-indigo-600",
4836
4840
  target: "_blank"
4837
- }, J(O.name), 9, wc)),
4841
+ }, J(O.name), 9, _c)),
4838
4842
  64
4839
4843
  /* STABLE_FRAGMENT */
4840
4844
  ))
@@ -4859,12 +4863,12 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4859
4863
  href: O.href,
4860
4864
  target: O.target,
4861
4865
  class: "text-sm h-7 leading-7 font-semibold text-gray-900"
4862
- }, J(O.name), 9, _c))),
4866
+ }, J(O.name), 9, Ec))),
4863
4867
  128
4864
4868
  /* KEYED_FRAGMENT */
4865
4869
  ))
4866
4870
  ]),
4867
- e.isShenHe ? (k(), $("div", Ec)) : c.value ? (k(), $("div", Pc, [
4871
+ e.isShenHe ? (k(), $("div", Sc)) : c.value ? (k(), $("div", Oc, [
4868
4872
  g(
4869
4873
  "div",
4870
4874
  {
@@ -4873,7 +4877,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4873
4877
  onMouseleave: y
4874
4878
  },
4875
4879
  [
4876
- g("div", Oc, [
4880
+ g("div", Tc, [
4877
4881
  g(
4878
4882
  "span",
4879
4883
  null,
@@ -4886,13 +4890,13 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4886
4890
  class: "user-avatar h-10 rounded-full",
4887
4891
  src: c.value.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
4888
4892
  alt: "user avatar"
4889
- }, null, 8, Tc),
4890
- Cc,
4893
+ }, null, 8, Cc),
4894
+ Nc,
4891
4895
  Ke(g(
4892
4896
  "div",
4893
4897
  null,
4894
4898
  [
4895
- g("div", Nc, [
4899
+ g("div", Ac, [
4896
4900
  c.value ? (k(), Be(cr, {
4897
4901
  key: 0,
4898
4902
  user: c.value
@@ -4908,14 +4912,14 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4908
4912
  32
4909
4913
  /* HYDRATE_EVENTS */
4910
4914
  )
4911
- ])) : (k(), $("div", Sc, [
4915
+ ])) : (k(), $("div", xc, [
4912
4916
  g("a", {
4913
4917
  onClick: u,
4914
4918
  href: "javscript:void(0)",
4915
4919
  class: "text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
4916
4920
  }, [
4917
4921
  pt("Log in"),
4918
- xc
4922
+ Pc
4919
4923
  ])
4920
4924
  ]))
4921
4925
  ]),
@@ -4926,17 +4930,17 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4926
4930
  open: f.value
4927
4931
  }, {
4928
4932
  default: be(() => [
4929
- Ac,
4933
+ kc,
4930
4934
  ue(z(Vl), { class: "fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10" }, {
4931
4935
  default: be(() => [
4932
- g("div", kc, [
4936
+ g("div", Lc, [
4933
4937
  g("a", {
4934
4938
  href: d.value,
4935
4939
  class: "-m-1.5 p-1.5"
4936
4940
  }, [
4937
4941
  g(
4938
4942
  "span",
4939
- $c,
4943
+ Fc,
4940
4944
  J(o.value.name),
4941
4945
  1
4942
4946
  /* TEXT */
@@ -4945,24 +4949,24 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4945
4949
  class: "h-8 w-auto",
4946
4950
  src: o.value.logo,
4947
4951
  alt: o.value.name
4948
- }, null, 8, Fc)
4949
- ], 8, Lc),
4952
+ }, null, 8, Rc)
4953
+ ], 8, $c),
4950
4954
  g("button", {
4951
4955
  type: "button",
4952
4956
  class: "-m-2.5 rounded-md p-2.5 text-gray-700",
4953
4957
  onClick: E[1] || (E[1] = (O) => f.value = !1)
4954
4958
  }, [
4955
- Rc,
4959
+ Dc,
4956
4960
  ue(z(Kl), {
4957
4961
  class: "h-6 w-6",
4958
4962
  "aria-hidden": "true"
4959
4963
  })
4960
4964
  ])
4961
4965
  ]),
4962
- g("div", Dc, [
4963
- g("div", jc, [
4964
- g("div", Ic, [
4965
- e.isShenHe ? B("v-if", !0) : (k(), $("a", Bc, "More Extensions")),
4966
+ g("div", jc, [
4967
+ g("div", Ic, [
4968
+ g("div", Bc, [
4969
+ e.isShenHe ? B("v-if", !0) : (k(), $("a", Mc, "More Extensions")),
4966
4970
  (k(!0), $(
4967
4971
  ve,
4968
4972
  null,
@@ -4971,7 +4975,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4971
4975
  href: O.href,
4972
4976
  target: O.target,
4973
4977
  class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
4974
- }, J(O.name), 9, Mc))),
4978
+ }, J(O.name), 9, Uc))),
4975
4979
  128
4976
4980
  /* KEYED_FRAGMENT */
4977
4981
  ))
@@ -4985,7 +4989,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4985
4989
  key: 0,
4986
4990
  user: c.value
4987
4991
  }, null, 8, ["user"])) : B("v-if", !0)
4988
- ])) : (k(), $("div", Uc, [
4992
+ ])) : (k(), $("div", Hc, [
4989
4993
  g("a", {
4990
4994
  href: "#",
4991
4995
  onClick: u,
@@ -5007,25 +5011,25 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
5007
5011
  /* CLASS */
5008
5012
  ),
5009
5013
  B(" 引入登录 "),
5010
- e.userStore && e.userStore.isShowLogin ? (k(), Be(Nu, {
5014
+ e.userStore.isShowLogin ? (k(), Be(Nu, {
5011
5015
  key: 0,
5012
5016
  onSuccess: v,
5013
5017
  onClose: m
5014
5018
  })) : B("v-if", !0),
5015
- e.userStore && e.userStore.isShowToast ? (k(), Be(lc, {
5019
+ e.userStore.isShowToast ? (k(), Be(lc, {
5016
5020
  key: 1,
5017
- content: e.userStore && e.userStore.toastContent
5021
+ content: e.userStore.toastContent
5018
5022
  }, null, 8, ["content"])) : B("v-if", !0)
5019
5023
  ],
5020
5024
  64
5021
5025
  /* STABLE_FRAGMENT */
5022
5026
  ));
5023
5027
  }
5024
- }, Vc = /* @__PURE__ */ it(Hc, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), qc = {
5028
+ }, zc = /* @__PURE__ */ it(Vc, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), Gc = {
5025
5029
  install(e) {
5026
- e.component("my-header", Vc);
5030
+ e.component("my-header", zc);
5027
5031
  }
5028
5032
  };
5029
5033
  export {
5030
- qc as default
5034
+ Gc as default
5031
5035
  };