@streamlayer/sdk-web 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -22,7 +22,7 @@ import { NotificationKind as pe, NotificationType as Gr } from "@streamlayer/sl-
22
22
  function Ii(t) {
23
23
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
24
24
  }
25
- var On = { exports: {} }, V = On.exports = {}, ae, ue;
25
+ var On = { exports: {} }, $ = On.exports = {}, ae, ue;
26
26
  function ir() {
27
27
  throw new Error("setTimeout has not been defined");
28
28
  }
@@ -87,7 +87,7 @@ function Cn() {
87
87
  _e = null, xe = !1, Ti(t);
88
88
  }
89
89
  }
90
- V.nextTick = function(t) {
90
+ $.nextTick = function(t) {
91
91
  var e = new Array(arguments.length - 1);
92
92
  if (arguments.length > 1)
93
93
  for (var r = 1; r < arguments.length; r++)
@@ -100,40 +100,40 @@ function Ln(t, e) {
100
100
  Ln.prototype.run = function() {
101
101
  this.fun.apply(null, this.array);
102
102
  };
103
- V.title = "browser";
104
- V.browser = !0;
105
- V.env = {};
106
- V.argv = [];
107
- V.version = "";
108
- V.versions = {};
103
+ $.title = "browser";
104
+ $.browser = !0;
105
+ $.env = {};
106
+ $.argv = [];
107
+ $.version = "";
108
+ $.versions = {};
109
109
  function ve() {
110
110
  }
111
- V.on = ve;
112
- V.addListener = ve;
113
- V.once = ve;
114
- V.off = ve;
115
- V.removeListener = ve;
116
- V.removeAllListeners = ve;
117
- V.emit = ve;
118
- V.prependListener = ve;
119
- V.prependOnceListener = ve;
120
- V.listeners = function(t) {
111
+ $.on = ve;
112
+ $.addListener = ve;
113
+ $.once = ve;
114
+ $.off = ve;
115
+ $.removeListener = ve;
116
+ $.removeAllListeners = ve;
117
+ $.emit = ve;
118
+ $.prependListener = ve;
119
+ $.prependOnceListener = ve;
120
+ $.listeners = function(t) {
121
121
  return [];
122
122
  };
123
- V.binding = function(t) {
123
+ $.binding = function(t) {
124
124
  throw new Error("process.binding is not supported");
125
125
  };
126
- V.cwd = function() {
126
+ $.cwd = function() {
127
127
  return "/";
128
128
  };
129
- V.chdir = function(t) {
129
+ $.chdir = function(t) {
130
130
  throw new Error("process.chdir is not supported");
131
131
  };
132
- V.umask = function() {
132
+ $.umask = function() {
133
133
  return 0;
134
134
  };
135
135
  var _i = On.exports;
136
- const A = /* @__PURE__ */ Ii(_i), Ci = bi({
136
+ const E = /* @__PURE__ */ Ii(_i), Ci = bi({
137
137
  level: "trace",
138
138
  enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
139
139
  browser: {
@@ -1060,37 +1060,39 @@ const yo = (t) => {
1060
1060
  let n = !1;
1061
1061
  const i = r.transport, o = Se("advertisement"), s = new ho(), a = W({}), u = fo(t, i), l = () => {
1062
1062
  a.setKey("hasNotification", !1);
1063
- const g = a.get(), b = g.data?.question.id, S = g.data?.promotion?.type;
1064
- b && G.emit("advertisement", {
1063
+ const b = a.get(), g = b.data?.question.id, S = b.data?.promotion?.type;
1064
+ g && G.emit("advertisement", {
1065
1065
  action: "notification-opened",
1066
1066
  payload: {
1067
- id: b,
1067
+ id: g,
1068
1068
  type: S
1069
1069
  }
1070
1070
  });
1071
1071
  }, c = () => {
1072
- const g = a.get(), b = g.data?.question.id, S = g.data?.promotion?.type, O = a.get()?.isOpened;
1073
- b && !O && (o.debug({ id: b }, "markAsViewed: %o"), s.setShowed(b), a.setKey("isOpened", !0), G.emit("advertisement", {
1072
+ const b = a.get(), g = b.data?.question.id, S = b.data?.promotion?.type, R = a.get()?.isOpened;
1073
+ g && !R && (o.debug({ id: g }, "markAsViewed: %o"), s.setShowed(g), a.setKey("isOpened", !0), G.emit("advertisement", {
1074
1074
  action: "opened",
1075
1075
  payload: {
1076
- id: b,
1076
+ id: g,
1077
1077
  type: S
1078
1078
  }
1079
1079
  }));
1080
- }, f = (g, b) => {
1081
- b ? a.set({
1080
+ }, f = (b, g) => {
1081
+ g ? a.set({
1082
1082
  loading: !1,
1083
1083
  error: void 0,
1084
- data: b,
1085
- hasNotification: b?.notification?.enabled === Rr.NOTIFICATION_ENABLED,
1086
- close: () => p(b.question.id),
1087
- isViewed: !!s.isViewed(b.question.id)
1088
- }) : (a.setKey("loading", !0), Dn(g, i).then((S) => a.set({
1084
+ data: g,
1085
+ hasNotification: g?.notification?.enabled === Rr.NOTIFICATION_ENABLED,
1086
+ close: () => p(g.question.id),
1087
+ togglePause: (S) => v(g.question.id, S),
1088
+ isViewed: !!s.isViewed(g.question.id)
1089
+ }) : (a.setKey("loading", !0), Dn(b, i).then((S) => a.set({
1089
1090
  loading: !1,
1090
1091
  error: void 0,
1091
1092
  data: S,
1092
1093
  hasNotification: S?.notification?.enabled === Rr.NOTIFICATION_ENABLED,
1093
1094
  close: () => p(S?.question.id),
1095
+ togglePause: (R) => v(S?.question.id, R),
1094
1096
  isViewed: S && !!s.isViewed(S.question.id)
1095
1097
  })).catch((S) => a.set({
1096
1098
  loading: !1,
@@ -1098,48 +1100,52 @@ const yo = (t) => {
1098
1100
  data: void 0
1099
1101
  })));
1100
1102
  };
1101
- a.subscribe((g, b) => {
1102
- if (g.data?.promotion?.type === re.EXTERNAL_AD && !g?.externalAd && g.data.promotion.adCampaigns?.gamOptions && g.data.promotion.adCampaigns?.gamBaseUrl) {
1103
- const S = mo(g.data.promotion.adCampaigns);
1104
- a.setKey("externalAd", { type: "gam", url: S });
1105
- }
1106
- g.data?.promotion && !g.isOpened && G.emit("advertisement", {
1107
- action: "received",
1108
- payload: {
1109
- id: g.data.question.id,
1110
- type: g.data.promotion.type,
1111
- hasNotification: !!g.hasNotification,
1112
- isViewed: !!s.isViewed(g.data.question.id)
1113
- },
1114
- skipAnalytics: g.data.question.id === b?.data?.question.id
1115
- }), !g?.data && b?.data && G.emit("advertisement", {
1116
- action: "closed",
1117
- payload: {
1118
- id: b.data.question.id,
1119
- type: b.data.promotion?.type,
1120
- hasNotification: !!b.hasNotification,
1121
- isViewed: !!s.isViewed(b.data.question.id)
1103
+ a.subscribe((b, g) => {
1104
+ if (!(b.data?.id === g?.data?.id && b.isPaused !== g?.isPaused)) {
1105
+ if (b.data?.promotion?.type === re.EXTERNAL_AD && !b?.externalAd && b.data.promotion.adCampaigns?.gamOptions && b.data.promotion.adCampaigns?.gamBaseUrl) {
1106
+ const S = mo(b.data.promotion.adCampaigns);
1107
+ a.setKey("externalAd", { type: "gam", url: S });
1122
1108
  }
1123
- });
1109
+ b.data?.promotion && !b.isOpened && G.emit("advertisement", {
1110
+ action: "received",
1111
+ payload: {
1112
+ id: b.data.question.id,
1113
+ type: b.data.promotion.type,
1114
+ hasNotification: !!b.hasNotification,
1115
+ isViewed: !!s.isViewed(b.data.question.id)
1116
+ },
1117
+ skipAnalytics: b.data.question.id === g?.data?.question.id
1118
+ }), !b?.data && g?.data && G.emit("advertisement", {
1119
+ action: "closed",
1120
+ payload: {
1121
+ id: g.data.question.id,
1122
+ type: g.data.promotion?.type,
1123
+ hasNotification: !!g.hasNotification,
1124
+ isViewed: !!s.isViewed(g.data.question.id)
1125
+ }
1126
+ });
1127
+ }
1124
1128
  });
1125
- const p = (g) => {
1126
- (!g || a.get()?.data?.question.id === g) && a.set({});
1129
+ const p = (b) => {
1130
+ (!b || a.get()?.data?.question.id === b) && a.set({});
1131
+ }, v = (b, g) => {
1132
+ a.get()?.data?.question.id === b && a.setKey("isPaused", g);
1127
1133
  };
1128
1134
  return { connect: () => {
1129
- n || (n = !0, u.subscribe((g, b) => {
1130
- g.data && (!b?.data || g.data.id !== b.data.id) && f(g.data.question.id, g.data);
1131
- }), e.addListener("promotion", (g) => {
1132
- const b = yo(g);
1133
- if (b) {
1134
- if (b.question.status === J.RESOLVED) {
1135
- p(b.question.id), o.debug({ promotion: b }, "resolved: %o");
1135
+ n || (n = !0, u.subscribe((b, g) => {
1136
+ b.data && (!g?.data || b.data.id !== g.data.id) && f(b.data.question.id, b.data);
1137
+ }), e.addListener("promotion", (b) => {
1138
+ const g = yo(b);
1139
+ if (g) {
1140
+ if (g.question.status === J.RESOLVED) {
1141
+ p(g.question.id), o.debug({ promotion: g }, "resolved: %o");
1136
1142
  return;
1137
1143
  }
1138
- if (b.question.status === J.ACTIVE) {
1139
- o.debug({ promotion: b }, "active: %o"), f(b.question.id, b);
1144
+ if (g.question.status === J.ACTIVE) {
1145
+ o.debug({ promotion: g }, "active: %o"), f(g.question.id, g);
1140
1146
  return;
1141
1147
  }
1142
- o.debug({ promotion: b }, "skip: %o");
1148
+ o.debug({ promotion: g }, "skip: %o");
1143
1149
  }
1144
1150
  }));
1145
1151
  }, hide: p, show: f, open: l, markAsViewed: c, $store: a };
@@ -1471,29 +1477,29 @@ const Oo = {
1471
1477
  loading: void 0,
1472
1478
  error: void 0
1473
1479
  }), u = ro(t), l = async () => {
1474
- const p = e.get(), v = n.getStore().get().data?.map((g) => g.slId) || [];
1480
+ const p = e.get(), v = n.getStore().get().data?.map((w) => w.slId) || [];
1475
1481
  if (p && v?.length) {
1476
- const g = r.get();
1477
- g && v.push(g), a.setKey("loading", !0), a.setKey("data", []);
1478
- const S = await u({
1482
+ const w = r.get();
1483
+ w && v.push(w), a.setKey("loading", !0), a.setKey("data", []);
1484
+ const g = await u({
1479
1485
  eventId: p,
1480
1486
  usersIds: v
1481
1487
  });
1482
1488
  a.set({
1483
- data: S.data.map((O, $) => ({
1484
- ...O.attributes,
1485
- friendsRank: $ + 1
1489
+ data: g.data.map((S, R) => ({
1490
+ ...S.attributes,
1491
+ friendsRank: R + 1
1486
1492
  })),
1487
1493
  hasMore: !1,
1488
1494
  key: Date.now(),
1489
1495
  loading: !1
1490
- }), S.meta && (o = Math.round(S.meta.count / S.meta.pageSize));
1496
+ }), g.meta && (o = Math.round(g.meta.count / g.meta.pageSize));
1491
1497
  }
1492
1498
  }, c = () => {
1493
1499
  l();
1494
1500
  }, f = (p) => {
1495
- const v = s.get(), g = p || v.page + 1;
1496
- g <= o && s.set({ ...v, page: g });
1501
+ const v = s.get(), w = p || v.page + 1;
1502
+ w <= o && s.set({ ...v, page: w });
1497
1503
  };
1498
1504
  return br(a, () => {
1499
1505
  const p = e.listen(l), v = n.listen(l);
@@ -1893,13 +1899,13 @@ const Je = new Be(), Ro = (t, e, r) => {
1893
1899
  };
1894
1900
  if (!u && l) {
1895
1901
  i.setKey("loading", !0);
1896
- let g = window.location.search, b = window.location.hash;
1897
- g && b || b ? g = `?${Xr(g, v)}` : b = `#${Xr("", v)}`;
1898
- const S = window.location.origin + window.location.pathname + g + b;
1902
+ let w = window.location.search, b = window.location.hash;
1903
+ w && b || b ? w = `?${Xr(w, v)}` : b = `#${Xr("", v)}`;
1904
+ const g = window.location.origin + window.location.pathname + w + b;
1899
1905
  try {
1900
- const O = await Uo(t, { web: S, mobile: l });
1906
+ const S = await Uo(t, { web: g, mobile: l });
1901
1907
  i.set({
1902
- data: O.data?.link,
1908
+ data: S.data?.link,
1903
1909
  loading: !1
1904
1910
  });
1905
1911
  } catch {
@@ -2097,41 +2103,41 @@ class Ho extends kn {
2097
2103
  prefix: `notification-id:${s}`
2098
2104
  }), l = [...this.feedList.getValues().data || []], c = l.findIndex((K) => K.id === s), f = l[c];
2099
2105
  let p = f?.attributes?.attributes?.value?.answerId;
2100
- const v = ar(s, this.transport), g = v.subscribe(() => {
2106
+ const v = ar(s, this.transport), w = v.subscribe(() => {
2101
2107
  });
2102
2108
  await v.get().promise;
2103
2109
  let b = v.get().data;
2104
- b || (b = await co(s, this.transport)), g(), window.requestAnimationFrame(() => {
2110
+ b || (b = await co(s, this.transport)), w(), window.requestAnimationFrame(() => {
2105
2111
  v.invalidate();
2106
2112
  }), p || (p = b?.answers.find(({ youVoted: K }) => K)?.id);
2107
- const S = a.find(({ correct: K }) => K), O = p ? a.find(({ id: K }) => K === p) : void 0, $ = !!O?.correct;
2113
+ const g = a.find(({ correct: K }) => K), S = p ? a.find(({ id: K }) => K === p) : void 0, R = !!S?.correct;
2108
2114
  if (f && l[c]?.attributes?.attributes.case === "question") {
2109
2115
  try {
2110
- l[c].attributes.attributes.value.answerId = p, l[c].attributes.attributes.value.openForVoting = !1, p && (l[c].attributes.attributes.value.status = $ ? ct.WON : ct.LOST);
2116
+ l[c].attributes.attributes.value.answerId = p, l[c].attributes.attributes.value.openForVoting = !1, p && (l[c].attributes.attributes.value.status = R ? ct.WON : ct.LOST);
2111
2117
  } catch {
2112
2118
  }
2113
2119
  this.feedList.getStore().mutate(l);
2114
2120
  }
2115
- if (!O || !S)
2121
+ if (!S || !g)
2116
2122
  return;
2117
2123
  this.openedQuestionId.get()?.questionId !== r.id && this.notifications.add({
2118
2124
  type: Ee.QUESTION_RESOLVED,
2119
2125
  action: () => this.openQuestion(r.id, n),
2120
2126
  close: () => this.closeQuestion(s),
2121
- autoHideDuration: $ ? 15e3 : 12e3,
2127
+ autoHideDuration: R ? 15e3 : 12e3,
2122
2128
  id: u,
2123
2129
  emitEvent: !1,
2124
2130
  data: {
2125
2131
  questionId: s,
2126
2132
  questionType: C.PREDICTION,
2127
2133
  question: {
2128
- title: $ ? `Congratulations! You answered correctly! You won ${S.points} pts!` : `Better luck next time! Correct: ${S?.text}!`,
2134
+ title: R ? `Congratulations! You answered correctly! You won ${g.points} pts!` : `Better luck next time! Correct: ${g?.text}!`,
2129
2135
  votedAnswer: {
2130
- title: O?.text,
2131
- points: O?.points
2136
+ title: S?.text,
2137
+ points: S?.points
2132
2138
  },
2133
- correctAnswerTitle: S?.text,
2134
- correct: !!$,
2139
+ correctAnswerTitle: g?.text,
2140
+ correct: !!R,
2135
2141
  predictionResult: i === J.RESOLVED,
2136
2142
  questionTitle: r?.subject
2137
2143
  }
@@ -2217,9 +2223,9 @@ class Ho extends kn {
2217
2223
  });
2218
2224
  const f = n.get().data;
2219
2225
  if (i(), f) {
2220
- const p = f.answers.find((S) => S.correct === !0), v = f.answers.findIndex((S) => S.id === r), g = f.answers[v], b = f.answers.every(({ percentageDecimal: S }, O) => S === o?.answers[O].percentageDecimal);
2221
- a[u].attributes.attributes.value.answerId = r, a[u].attributes.attributes.value.openForVoting = !1, a[u].attributes.attributes.value.text = g?.text || "", p && (a[u].attributes.attributes.value.status = p.id === r ? ct.WON : ct.LOST), this.feedList.getStore().mutate([...a]), f.answers[v].correct = p?.id === r, f.answers[v].youVoted = !0, b && f.answers.forEach((S) => {
2222
- S.percentageDecimal = 0;
2226
+ const p = f.answers.find((g) => g.correct === !0), v = f.answers.findIndex((g) => g.id === r), w = f.answers[v], b = f.answers.every(({ percentageDecimal: g }, S) => g === o?.answers[S].percentageDecimal);
2227
+ a[u].attributes.attributes.value.answerId = r, a[u].attributes.attributes.value.openForVoting = !1, a[u].attributes.attributes.value.text = w?.text || "", p && (a[u].attributes.attributes.value.status = p.id === r ? ct.WON : ct.LOST), this.feedList.getStore().mutate([...a]), f.answers[v].correct = p?.id === r, f.answers[v].youVoted = !0, b && f.answers.forEach((g) => {
2228
+ g.percentageDecimal = 0;
2223
2229
  }), p?.id === r && (f.answers[v].pointsEarned = f.status === J.RESOLVED ? 0 : p.points), n.mutate({ ...f });
2224
2230
  }
2225
2231
  this.submitAnswerTimeout && clearTimeout(this.submitAnswerTimeout), this.submitAnswerTimeout = setTimeout(() => {
@@ -2299,9 +2305,9 @@ class Ho extends kn {
2299
2305
  */
2300
2306
  showInApp = (e) => {
2301
2307
  const r = this.onboardingStatus.$store.get();
2302
- if (e && e.data && r && r !== M.Unset && e.data.question?.id !== void 0 && e.data.question.notification !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== vi.ON && e.data.question.status === J.ACTIVE && !e.data.question.marketClosed) {
2308
+ if (e && e.data && r && r !== M.Unset && e.data.question?.id !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== vi.ON && e.data.question.status === J.ACTIVE && !e.data.question.marketClosed) {
2303
2309
  if (zo.has(e.data.question.type))
2304
- this.isInteractiveAllowed && this.notifications.add({
2310
+ this.isInteractiveAllowed && e.data.question.notification !== void 0 && this.notifications.add({
2305
2311
  type: Ee.QUESTION,
2306
2312
  action: () => this.openQuestion(e.data?.question?.id, e.data?.feedItem),
2307
2313
  close: () => this.closeQuestion(e.data?.question?.id),
@@ -2320,9 +2326,9 @@ class Ho extends kn {
2320
2326
  }
2321
2327
  });
2322
2328
  else if (e.data.question.type === C.FACTOID) {
2323
- const n = e.data.question.options?.options.value, i = {
2324
- heading: e.data.question.notification.title,
2325
- body: e.data.question.notification.body,
2329
+ const n = e.data.question.options?.options.value, i = e.data.question.notification?.title || e.data.question.subject || "", o = e.data.question.notification?.body || n.body, s = {
2330
+ heading: i,
2331
+ body: o,
2326
2332
  imageMode: n?.imageMode,
2327
2333
  image: n?.image,
2328
2334
  video: {
@@ -2345,10 +2351,10 @@ class Ho extends kn {
2345
2351
  data: {
2346
2352
  questionId: e.data.question.id,
2347
2353
  questionType: e.data.question.type,
2348
- insight: i
2354
+ insight: s
2349
2355
  }
2350
2356
  });
2351
- } else if (e.data.question.type === C.TWEET) {
2357
+ } else if (e.data.question.type === C.TWEET && e.data.question.notification !== void 0) {
2352
2358
  const n = e.data.question.options?.options.value, i = {
2353
2359
  title: e.data.question.notification?.title,
2354
2360
  body: e.data.question.notification?.body,
@@ -2913,16 +2919,16 @@ function Mn(t, e, r) {
2913
2919
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
2914
2920
  if (r = P, !u.paused)
2915
2921
  for (; i && s < r; )
2916
- s++, O();
2922
+ s++, S();
2917
2923
  },
2918
2924
  running: l,
2919
2925
  resume: v,
2920
- idle: g,
2926
+ idle: w,
2921
2927
  length: f,
2922
2928
  getQueue: p,
2923
- unshift: S,
2929
+ unshift: g,
2924
2930
  empty: Y,
2925
- kill: $,
2931
+ kill: R,
2926
2932
  killAndDrain: K,
2927
2933
  error: ee
2928
2934
  };
@@ -2934,42 +2940,42 @@ function Mn(t, e, r) {
2934
2940
  u.paused = !0;
2935
2941
  }
2936
2942
  function f() {
2937
- for (var P = i, R = 0; P; )
2938
- P = P.next, R++;
2939
- return R;
2943
+ for (var P = i, V = 0; P; )
2944
+ P = P.next, V++;
2945
+ return V;
2940
2946
  }
2941
2947
  function p() {
2942
- for (var P = i, R = []; P; )
2943
- R.push(P.value), P = P.next;
2944
- return R;
2948
+ for (var P = i, V = []; P; )
2949
+ V.push(P.value), P = P.next;
2950
+ return V;
2945
2951
  }
2946
2952
  function v() {
2947
2953
  if (u.paused) {
2948
2954
  if (u.paused = !1, i === null) {
2949
- s++, O();
2955
+ s++, S();
2950
2956
  return;
2951
2957
  }
2952
2958
  for (; i && s < r; )
2953
- s++, O();
2959
+ s++, S();
2954
2960
  }
2955
2961
  }
2956
- function g() {
2962
+ function w() {
2957
2963
  return s === 0 && u.length() === 0;
2958
2964
  }
2959
- function b(P, R) {
2960
- var T = n.get();
2961
- T.context = t, T.release = O, T.value = P, T.callback = R || Y, T.errorHandler = a, s >= r || u.paused ? o ? (o.next = T, o = T) : (i = T, o = T, u.saturated()) : (s++, e.call(t, T.value, T.worked));
2965
+ function b(P, V) {
2966
+ var O = n.get();
2967
+ O.context = t, O.release = S, O.value = P, O.callback = V || Y, O.errorHandler = a, s >= r || u.paused ? o ? (o.next = O, o = O) : (i = O, o = O, u.saturated()) : (s++, e.call(t, O.value, O.worked));
2962
2968
  }
2963
- function S(P, R) {
2964
- var T = n.get();
2965
- T.context = t, T.release = O, T.value = P, T.callback = R || Y, T.errorHandler = a, s >= r || u.paused ? i ? (T.next = i, i = T) : (i = T, o = T, u.saturated()) : (s++, e.call(t, T.value, T.worked));
2969
+ function g(P, V) {
2970
+ var O = n.get();
2971
+ O.context = t, O.release = S, O.value = P, O.callback = V || Y, O.errorHandler = a, s >= r || u.paused ? i ? (O.next = i, i = O) : (i = O, o = O, u.saturated()) : (s++, e.call(t, O.value, O.worked));
2966
2972
  }
2967
- function O(P) {
2973
+ function S(P) {
2968
2974
  P && n.release(P);
2969
- var R = i;
2970
- R && s <= r ? u.paused ? s-- : (o === i && (o = null), i = R.next, R.next = null, e.call(t, R.value, R.worked), o === null && u.empty()) : --s === 0 && u.drain();
2975
+ var V = i;
2976
+ V && s <= r ? u.paused ? s-- : (o === i && (o = null), i = V.next, V.next = null, e.call(t, V.value, V.worked), o === null && u.empty()) : --s === 0 && u.drain();
2971
2977
  }
2972
- function $() {
2978
+ function R() {
2973
2979
  i = null, o = null, u.drain = Y;
2974
2980
  }
2975
2981
  function K() {
@@ -3000,9 +3006,9 @@ function hs(t, e, r) {
3000
3006
  return i.push = a, i.unshift = u, i.drained = l, i;
3001
3007
  function a(c) {
3002
3008
  var f = new Promise(function(p, v) {
3003
- o(c, function(g, b) {
3004
- if (g) {
3005
- v(g);
3009
+ o(c, function(w, b) {
3010
+ if (w) {
3011
+ v(w);
3006
3012
  return;
3007
3013
  }
3008
3014
  p(b);
@@ -3012,9 +3018,9 @@ function hs(t, e, r) {
3012
3018
  }
3013
3019
  function u(c) {
3014
3020
  var f = new Promise(function(p, v) {
3015
- s(c, function(g, b) {
3016
- if (g) {
3017
- v(g);
3021
+ s(c, function(w, b) {
3022
+ if (w) {
3023
+ v(w);
3018
3024
  return;
3019
3025
  }
3020
3026
  p(b);
@@ -3330,7 +3336,7 @@ var Hn = Er.exports, Ft = {}, Wn = {}, Yn = function() {
3330
3336
  l.prototype = r.prototype, i.prototype = new l(), l.prototype = null;
3331
3337
  }
3332
3338
  return i;
3333
- }, Ms = $s, Ir = Function.prototype.bind || Ms, js = Function.prototype.call, Bs = Object.prototype.hasOwnProperty, Us = Ir, qs = Us.call(js, Bs), I, xs = As, Qs = Es, Gs = Is, Ks = Ts, Ke = Jn, Ge = Rt, zs = Os, Xn = Function, Ut = function(t) {
3339
+ }, Ms = $s, Ir = Function.prototype.bind || Ms, js = Function.prototype.call, Bs = Object.prototype.hasOwnProperty, Us = Ir, qs = Us.call(js, Bs), T, xs = As, Qs = Es, Gs = Is, Ks = Ts, Ke = Jn, Ge = Rt, zs = Os, Xn = Function, Ut = function(t) {
3334
3340
  try {
3335
3341
  return Xn('"use strict"; return (' + t + ").constructor;")();
3336
3342
  } catch {
@@ -3356,23 +3362,23 @@ var qt = function() {
3356
3362
  }
3357
3363
  }() : qt, $e = Cs(), Ws = ks(), B = Object.getPrototypeOf || (Ws ? function(t) {
3358
3364
  return t.__proto__;
3359
- } : null), je = {}, Ys = typeof Uint8Array > "u" || !B ? I : B(Uint8Array), Pe = {
3365
+ } : null), je = {}, Ys = typeof Uint8Array > "u" || !B ? T : B(Uint8Array), Pe = {
3360
3366
  __proto__: null,
3361
- "%AggregateError%": typeof AggregateError > "u" ? I : AggregateError,
3367
+ "%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
3362
3368
  "%Array%": Array,
3363
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? I : ArrayBuffer,
3364
- "%ArrayIteratorPrototype%": $e && B ? B([][Symbol.iterator]()) : I,
3365
- "%AsyncFromSyncIteratorPrototype%": I,
3369
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? T : ArrayBuffer,
3370
+ "%ArrayIteratorPrototype%": $e && B ? B([][Symbol.iterator]()) : T,
3371
+ "%AsyncFromSyncIteratorPrototype%": T,
3366
3372
  "%AsyncFunction%": je,
3367
3373
  "%AsyncGenerator%": je,
3368
3374
  "%AsyncGeneratorFunction%": je,
3369
3375
  "%AsyncIteratorPrototype%": je,
3370
- "%Atomics%": typeof Atomics > "u" ? I : Atomics,
3371
- "%BigInt%": typeof BigInt > "u" ? I : BigInt,
3372
- "%BigInt64Array%": typeof BigInt64Array > "u" ? I : BigInt64Array,
3373
- "%BigUint64Array%": typeof BigUint64Array > "u" ? I : BigUint64Array,
3376
+ "%Atomics%": typeof Atomics > "u" ? T : Atomics,
3377
+ "%BigInt%": typeof BigInt > "u" ? T : BigInt,
3378
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? T : BigInt64Array,
3379
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? T : BigUint64Array,
3374
3380
  "%Boolean%": Boolean,
3375
- "%DataView%": typeof DataView > "u" ? I : DataView,
3381
+ "%DataView%": typeof DataView > "u" ? T : DataView,
3376
3382
  "%Date%": Date,
3377
3383
  "%decodeURI%": decodeURI,
3378
3384
  "%decodeURIComponent%": decodeURIComponent,
@@ -3382,49 +3388,49 @@ var qt = function() {
3382
3388
  "%eval%": eval,
3383
3389
  // eslint-disable-line no-eval
3384
3390
  "%EvalError%": Qs,
3385
- "%Float32Array%": typeof Float32Array > "u" ? I : Float32Array,
3386
- "%Float64Array%": typeof Float64Array > "u" ? I : Float64Array,
3387
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? I : FinalizationRegistry,
3391
+ "%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
3392
+ "%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
3393
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
3388
3394
  "%Function%": Xn,
3389
3395
  "%GeneratorFunction%": je,
3390
- "%Int8Array%": typeof Int8Array > "u" ? I : Int8Array,
3391
- "%Int16Array%": typeof Int16Array > "u" ? I : Int16Array,
3392
- "%Int32Array%": typeof Int32Array > "u" ? I : Int32Array,
3396
+ "%Int8Array%": typeof Int8Array > "u" ? T : Int8Array,
3397
+ "%Int16Array%": typeof Int16Array > "u" ? T : Int16Array,
3398
+ "%Int32Array%": typeof Int32Array > "u" ? T : Int32Array,
3393
3399
  "%isFinite%": isFinite,
3394
3400
  "%isNaN%": isNaN,
3395
- "%IteratorPrototype%": $e && B ? B(B([][Symbol.iterator]())) : I,
3396
- "%JSON%": typeof JSON == "object" ? JSON : I,
3397
- "%Map%": typeof Map > "u" ? I : Map,
3398
- "%MapIteratorPrototype%": typeof Map > "u" || !$e || !B ? I : B((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3401
+ "%IteratorPrototype%": $e && B ? B(B([][Symbol.iterator]())) : T,
3402
+ "%JSON%": typeof JSON == "object" ? JSON : T,
3403
+ "%Map%": typeof Map > "u" ? T : Map,
3404
+ "%MapIteratorPrototype%": typeof Map > "u" || !$e || !B ? T : B((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3399
3405
  "%Math%": Math,
3400
3406
  "%Number%": Number,
3401
3407
  "%Object%": Object,
3402
3408
  "%parseFloat%": parseFloat,
3403
3409
  "%parseInt%": parseInt,
3404
- "%Promise%": typeof Promise > "u" ? I : Promise,
3405
- "%Proxy%": typeof Proxy > "u" ? I : Proxy,
3410
+ "%Promise%": typeof Promise > "u" ? T : Promise,
3411
+ "%Proxy%": typeof Proxy > "u" ? T : Proxy,
3406
3412
  "%RangeError%": Gs,
3407
3413
  "%ReferenceError%": Ks,
3408
- "%Reflect%": typeof Reflect > "u" ? I : Reflect,
3414
+ "%Reflect%": typeof Reflect > "u" ? T : Reflect,
3409
3415
  "%RegExp%": RegExp,
3410
- "%Set%": typeof Set > "u" ? I : Set,
3411
- "%SetIteratorPrototype%": typeof Set > "u" || !$e || !B ? I : B((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3412
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? I : SharedArrayBuffer,
3416
+ "%Set%": typeof Set > "u" ? T : Set,
3417
+ "%SetIteratorPrototype%": typeof Set > "u" || !$e || !B ? T : B((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3418
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? T : SharedArrayBuffer,
3413
3419
  "%String%": String,
3414
- "%StringIteratorPrototype%": $e && B ? B(""[Symbol.iterator]()) : I,
3415
- "%Symbol%": $e ? Symbol : I,
3420
+ "%StringIteratorPrototype%": $e && B ? B(""[Symbol.iterator]()) : T,
3421
+ "%Symbol%": $e ? Symbol : T,
3416
3422
  "%SyntaxError%": Ke,
3417
3423
  "%ThrowTypeError%": Hs,
3418
3424
  "%TypedArray%": Ys,
3419
3425
  "%TypeError%": Ge,
3420
- "%Uint8Array%": typeof Uint8Array > "u" ? I : Uint8Array,
3421
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? I : Uint8ClampedArray,
3422
- "%Uint16Array%": typeof Uint16Array > "u" ? I : Uint16Array,
3423
- "%Uint32Array%": typeof Uint32Array > "u" ? I : Uint32Array,
3426
+ "%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
3427
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
3428
+ "%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
3429
+ "%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
3424
3430
  "%URIError%": zs,
3425
- "%WeakMap%": typeof WeakMap > "u" ? I : WeakMap,
3426
- "%WeakRef%": typeof WeakRef > "u" ? I : WeakRef,
3427
- "%WeakSet%": typeof WeakSet > "u" ? I : WeakSet
3431
+ "%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
3432
+ "%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
3433
+ "%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
3428
3434
  };
3429
3435
  if (B)
3430
3436
  try {
@@ -3535,8 +3541,8 @@ var Xs = function t(e) {
3535
3541
  var n = ia(e), i = n.length > 0 ? n[0] : "", o = oa("%" + i + "%", r), s = o.name, a = o.value, u = !1, l = o.alias;
3536
3542
  l && (i = l[0], ea(n, Zs([0, 1], l)));
3537
3543
  for (var c = 1, f = !0; c < n.length; c += 1) {
3538
- var p = n[c], v = Et(p, 0, 1), g = Et(p, -1);
3539
- if ((v === '"' || v === "'" || v === "`" || g === '"' || g === "'" || g === "`") && v !== g)
3544
+ var p = n[c], v = Et(p, 0, 1), w = Et(p, -1);
3545
+ if ((v === '"' || v === "'" || v === "`" || w === '"' || w === "'" || w === "`") && v !== w)
3540
3546
  throw new Ke("property names with quotes must have matching quotes");
3541
3547
  if ((p === "constructor" || !f) && (u = !0), i += "." + p, s = "%" + i + "%", At(Pe, s))
3542
3548
  a = Pe[s];
@@ -3902,7 +3908,7 @@ var Xa = function(e) {
3902
3908
  var p = o(BigInt.prototype.valueOf);
3903
3909
  if (a)
3904
3910
  var v = o(Symbol.prototype.valueOf);
3905
- function g(y, gi) {
3911
+ function w(y, gi) {
3906
3912
  if (typeof y != "object")
3907
3913
  return !1;
3908
3914
  try {
@@ -3916,18 +3922,18 @@ var Xa = function(e) {
3916
3922
  return typeof Promise < "u" && y instanceof Promise || y !== null && typeof y == "object" && typeof y.then == "function" && typeof y.catch == "function";
3917
3923
  }
3918
3924
  t.isPromise = b;
3919
- function S(y) {
3925
+ function g(y) {
3920
3926
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(y) : i(y) || h(y);
3921
3927
  }
3922
- t.isArrayBufferView = S;
3923
- function O(y) {
3928
+ t.isArrayBufferView = g;
3929
+ function S(y) {
3924
3930
  return n(y) === "Uint8Array";
3925
3931
  }
3926
- t.isUint8Array = O;
3927
- function $(y) {
3932
+ t.isUint8Array = S;
3933
+ function R(y) {
3928
3934
  return n(y) === "Uint8ClampedArray";
3929
3935
  }
3930
- t.isUint8ClampedArray = $;
3936
+ t.isUint8ClampedArray = R;
3931
3937
  function K(y) {
3932
3938
  return n(y) === "Uint16Array";
3933
3939
  }
@@ -3940,14 +3946,14 @@ var Xa = function(e) {
3940
3946
  return n(y) === "Int8Array";
3941
3947
  }
3942
3948
  t.isInt8Array = P;
3943
- function R(y) {
3949
+ function V(y) {
3944
3950
  return n(y) === "Int16Array";
3945
3951
  }
3946
- t.isInt16Array = R;
3947
- function T(y) {
3952
+ t.isInt16Array = V;
3953
+ function O(y) {
3948
3954
  return n(y) === "Int32Array";
3949
3955
  }
3950
- t.isInt32Array = T;
3956
+ t.isInt32Array = O;
3951
3957
  function ie(y) {
3952
3958
  return n(y) === "Float32Array";
3953
3959
  }
@@ -4013,21 +4019,21 @@ var Xa = function(e) {
4013
4019
  }
4014
4020
  t.isDataView = h;
4015
4021
  var m = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
4016
- function w(y) {
4022
+ function A(y) {
4017
4023
  return u(y) === "[object SharedArrayBuffer]";
4018
4024
  }
4019
4025
  function L(y) {
4020
- return typeof m > "u" ? !1 : (typeof w.working > "u" && (w.working = w(new m())), w.working ? w(y) : y instanceof m);
4026
+ return typeof m > "u" ? !1 : (typeof A.working > "u" && (A.working = A(new m())), A.working ? A(y) : y instanceof m);
4021
4027
  }
4022
4028
  t.isSharedArrayBuffer = L;
4023
4029
  function k(y) {
4024
4030
  return u(y) === "[object AsyncFunction]";
4025
4031
  }
4026
4032
  t.isAsyncFunction = k;
4027
- function E(y) {
4033
+ function I(y) {
4028
4034
  return u(y) === "[object Map Iterator]";
4029
4035
  }
4030
- t.isMapIterator = E;
4036
+ t.isMapIterator = I;
4031
4037
  function _(y) {
4032
4038
  return u(y) === "[object Set Iterator]";
4033
4039
  }
@@ -4041,23 +4047,23 @@ var Xa = function(e) {
4041
4047
  }
4042
4048
  t.isWebAssemblyCompiledModule = H;
4043
4049
  function Te(y) {
4044
- return g(y, l);
4050
+ return w(y, l);
4045
4051
  }
4046
4052
  t.isNumberObject = Te;
4047
4053
  function at(y) {
4048
- return g(y, c);
4054
+ return w(y, c);
4049
4055
  }
4050
4056
  t.isStringObject = at;
4051
4057
  function Ve(y) {
4052
- return g(y, f);
4058
+ return w(y, f);
4053
4059
  }
4054
4060
  t.isBooleanObject = Ve;
4055
4061
  function ut(y) {
4056
- return s && g(y, p);
4062
+ return s && w(y, p);
4057
4063
  }
4058
4064
  t.isBigIntObject = ut;
4059
4065
  function Dr(y) {
4060
- return a && g(y, v);
4066
+ return a && w(y, v);
4061
4067
  }
4062
4068
  t.isSymbolObject = Dr;
4063
4069
  function yi(y) {
@@ -4099,9 +4105,9 @@ typeof Object.create == "function" ? yr.exports = function(e, r) {
4099
4105
  var iu = yr.exports;
4100
4106
  (function(t) {
4101
4107
  var e = Object.getOwnPropertyDescriptors || function(h) {
4102
- for (var m = Object.keys(h), w = {}, L = 0; L < m.length; L++)
4103
- w[m[L]] = Object.getOwnPropertyDescriptor(h, m[L]);
4104
- return w;
4108
+ for (var m = Object.keys(h), A = {}, L = 0; L < m.length; L++)
4109
+ A[m[L]] = Object.getOwnPropertyDescriptor(h, m[L]);
4110
+ return A;
4105
4111
  }, r = /%[sdj%]/g;
4106
4112
  t.format = function(d) {
4107
4113
  if (!P(d)) {
@@ -4109,53 +4115,53 @@ var iu = yr.exports;
4109
4115
  h.push(s(arguments[m]));
4110
4116
  return h.join(" ");
4111
4117
  }
4112
- for (var m = 1, w = arguments, L = w.length, k = String(d).replace(r, function(_) {
4118
+ for (var m = 1, A = arguments, L = A.length, k = String(d).replace(r, function(_) {
4113
4119
  if (_ === "%%") return "%";
4114
4120
  if (m >= L) return _;
4115
4121
  switch (_) {
4116
4122
  case "%s":
4117
- return String(w[m++]);
4123
+ return String(A[m++]);
4118
4124
  case "%d":
4119
- return Number(w[m++]);
4125
+ return Number(A[m++]);
4120
4126
  case "%j":
4121
4127
  try {
4122
- return JSON.stringify(w[m++]);
4128
+ return JSON.stringify(A[m++]);
4123
4129
  } catch {
4124
4130
  return "[Circular]";
4125
4131
  }
4126
4132
  default:
4127
4133
  return _;
4128
4134
  }
4129
- }), E = w[m]; m < L; E = w[++m])
4130
- $(E) || !oe(E) ? k += " " + E : k += " " + s(E);
4135
+ }), I = A[m]; m < L; I = A[++m])
4136
+ R(I) || !oe(I) ? k += " " + I : k += " " + s(I);
4131
4137
  return k;
4132
4138
  }, t.deprecate = function(d, h) {
4133
- if (typeof A < "u" && A.noDeprecation === !0)
4139
+ if (typeof E < "u" && E.noDeprecation === !0)
4134
4140
  return d;
4135
- if (typeof A > "u")
4141
+ if (typeof E > "u")
4136
4142
  return function() {
4137
4143
  return t.deprecate(d, h).apply(this, arguments);
4138
4144
  };
4139
4145
  var m = !1;
4140
- function w() {
4146
+ function A() {
4141
4147
  if (!m) {
4142
- if (A.throwDeprecation)
4148
+ if (E.throwDeprecation)
4143
4149
  throw new Error(h);
4144
- A.traceDeprecation ? console.trace(h) : console.error(h), m = !0;
4150
+ E.traceDeprecation ? console.trace(h) : console.error(h), m = !0;
4145
4151
  }
4146
4152
  return d.apply(this, arguments);
4147
4153
  }
4148
- return w;
4154
+ return A;
4149
4155
  };
4150
4156
  var n = {}, i = /^$/;
4151
- if (A.env.NODE_DEBUG) {
4152
- var o = A.env.NODE_DEBUG;
4157
+ if (E.env.NODE_DEBUG) {
4158
+ var o = E.env.NODE_DEBUG;
4153
4159
  o = o.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + o + "$", "i");
4154
4160
  }
4155
4161
  t.debuglog = function(d) {
4156
4162
  if (d = d.toUpperCase(), !n[d])
4157
4163
  if (i.test(d)) {
4158
- var h = A.pid;
4164
+ var h = E.pid;
4159
4165
  n[d] = function() {
4160
4166
  var m = t.format.apply(t, arguments);
4161
4167
  console.error("%s %d: %s", d, h, m);
@@ -4170,7 +4176,7 @@ var iu = yr.exports;
4170
4176
  seen: [],
4171
4177
  stylize: u
4172
4178
  };
4173
- return arguments.length >= 3 && (m.depth = arguments[2]), arguments.length >= 4 && (m.colors = arguments[3]), O(h) ? m.showHidden = h : h && t._extend(m, h), T(m.showHidden) && (m.showHidden = !1), T(m.depth) && (m.depth = 2), T(m.colors) && (m.colors = !1), T(m.customInspect) && (m.customInspect = !0), m.colors && (m.stylize = a), c(m, d, m.depth);
4179
+ return arguments.length >= 3 && (m.depth = arguments[2]), arguments.length >= 4 && (m.colors = arguments[3]), S(h) ? m.showHidden = h : h && t._extend(m, h), O(m.showHidden) && (m.showHidden = !1), O(m.depth) && (m.depth = 2), O(m.colors) && (m.colors = !1), O(m.customInspect) && (m.customInspect = !0), m.colors && (m.stylize = a), c(m, d, m.depth);
4174
4180
  }
4175
4181
  t.inspect = s, s.colors = {
4176
4182
  bold: [1, 22],
@@ -4206,7 +4212,7 @@ var iu = yr.exports;
4206
4212
  }
4207
4213
  function l(d) {
4208
4214
  var h = {};
4209
- return d.forEach(function(m, w) {
4215
+ return d.forEach(function(m, A) {
4210
4216
  h[m] = !0;
4211
4217
  }), h;
4212
4218
  }
@@ -4214,13 +4220,13 @@ var iu = yr.exports;
4214
4220
  if (d.customInspect && h && de(h.inspect) && // Filter out the util module, it's inspect function is special
4215
4221
  h.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
4216
4222
  !(h.constructor && h.constructor.prototype === h)) {
4217
- var w = h.inspect(m, d);
4218
- return P(w) || (w = c(d, w, m)), w;
4223
+ var A = h.inspect(m, d);
4224
+ return P(A) || (A = c(d, A, m)), A;
4219
4225
  }
4220
4226
  var L = f(d, h);
4221
4227
  if (L)
4222
4228
  return L;
4223
- var k = Object.keys(h), E = l(k);
4229
+ var k = Object.keys(h), I = l(k);
4224
4230
  if (d.showHidden && (k = Object.getOwnPropertyNames(h)), Ie(h) && (k.indexOf("message") >= 0 || k.indexOf("description") >= 0))
4225
4231
  return p(h);
4226
4232
  if (k.length === 0) {
@@ -4236,7 +4242,7 @@ var iu = yr.exports;
4236
4242
  return p(h);
4237
4243
  }
4238
4244
  var F = "", H = !1, Te = ["{", "}"];
4239
- if (S(h) && (H = !0, Te = ["[", "]"]), de(h)) {
4245
+ if (g(h) && (H = !0, Te = ["[", "]"]), de(h)) {
4240
4246
  var at = h.name ? ": " + h.name : "";
4241
4247
  F = " [Function" + at + "]";
4242
4248
  }
@@ -4246,12 +4252,12 @@ var iu = yr.exports;
4246
4252
  return ie(h) ? d.stylize(RegExp.prototype.toString.call(h), "regexp") : d.stylize("[Object]", "special");
4247
4253
  d.seen.push(h);
4248
4254
  var Ve;
4249
- return H ? Ve = v(d, h, m, E, k) : Ve = k.map(function(ut) {
4250
- return g(d, h, m, E, ut, H);
4255
+ return H ? Ve = v(d, h, m, I, k) : Ve = k.map(function(ut) {
4256
+ return w(d, h, m, I, ut, H);
4251
4257
  }), d.seen.pop(), b(Ve, F, Te);
4252
4258
  }
4253
4259
  function f(d, h) {
4254
- if (T(h))
4260
+ if (O(h))
4255
4261
  return d.stylize("undefined", "undefined");
4256
4262
  if (P(h)) {
4257
4263
  var m = "'" + JSON.stringify(h).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
@@ -4259,38 +4265,38 @@ var iu = yr.exports;
4259
4265
  }
4260
4266
  if (ee(h))
4261
4267
  return d.stylize("" + h, "number");
4262
- if (O(h))
4268
+ if (S(h))
4263
4269
  return d.stylize("" + h, "boolean");
4264
- if ($(h))
4270
+ if (R(h))
4265
4271
  return d.stylize("null", "null");
4266
4272
  }
4267
4273
  function p(d) {
4268
4274
  return "[" + Error.prototype.toString.call(d) + "]";
4269
4275
  }
4270
- function v(d, h, m, w, L) {
4271
- for (var k = [], E = 0, _ = h.length; E < _; ++E)
4272
- De(h, String(E)) ? k.push(g(
4276
+ function v(d, h, m, A, L) {
4277
+ for (var k = [], I = 0, _ = h.length; I < _; ++I)
4278
+ De(h, String(I)) ? k.push(w(
4273
4279
  d,
4274
4280
  h,
4275
4281
  m,
4276
- w,
4277
- String(E),
4282
+ A,
4283
+ String(I),
4278
4284
  !0
4279
4285
  )) : k.push("");
4280
4286
  return L.forEach(function(F) {
4281
- F.match(/^\d+$/) || k.push(g(
4287
+ F.match(/^\d+$/) || k.push(w(
4282
4288
  d,
4283
4289
  h,
4284
4290
  m,
4285
- w,
4291
+ A,
4286
4292
  F,
4287
4293
  !0
4288
4294
  ));
4289
4295
  }), k;
4290
4296
  }
4291
- function g(d, h, m, w, L, k) {
4292
- var E, _, F;
4293
- if (F = Object.getOwnPropertyDescriptor(h, L) || { value: h[L] }, F.get ? F.set ? _ = d.stylize("[Getter/Setter]", "special") : _ = d.stylize("[Getter]", "special") : F.set && (_ = d.stylize("[Setter]", "special")), De(w, L) || (E = "[" + L + "]"), _ || (d.seen.indexOf(F.value) < 0 ? ($(m) ? _ = c(d, F.value, null) : _ = c(d, F.value, m - 1), _.indexOf(`
4297
+ function w(d, h, m, A, L, k) {
4298
+ var I, _, F;
4299
+ if (F = Object.getOwnPropertyDescriptor(h, L) || { value: h[L] }, F.get ? F.set ? _ = d.stylize("[Getter/Setter]", "special") : _ = d.stylize("[Getter]", "special") : F.set && (_ = d.stylize("[Setter]", "special")), De(A, L) || (I = "[" + L + "]"), _ || (d.seen.indexOf(F.value) < 0 ? (R(m) ? _ = c(d, F.value, null) : _ = c(d, F.value, m - 1), _.indexOf(`
4294
4300
  `) > -1 && (k ? _ = _.split(`
4295
4301
  `).map(function(H) {
4296
4302
  return " " + H;
@@ -4300,35 +4306,35 @@ var iu = yr.exports;
4300
4306
  `).map(function(H) {
4301
4307
  return " " + H;
4302
4308
  }).join(`
4303
- `))) : _ = d.stylize("[Circular]", "special")), T(E)) {
4309
+ `))) : _ = d.stylize("[Circular]", "special")), O(I)) {
4304
4310
  if (k && L.match(/^\d+$/))
4305
4311
  return _;
4306
- E = JSON.stringify("" + L), E.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (E = E.slice(1, -1), E = d.stylize(E, "name")) : (E = E.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), E = d.stylize(E, "string"));
4312
+ I = JSON.stringify("" + L), I.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (I = I.slice(1, -1), I = d.stylize(I, "name")) : (I = I.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), I = d.stylize(I, "string"));
4307
4313
  }
4308
- return E + ": " + _;
4314
+ return I + ": " + _;
4309
4315
  }
4310
4316
  function b(d, h, m) {
4311
- var w = d.reduce(function(L, k) {
4317
+ var A = d.reduce(function(L, k) {
4312
4318
  return k.indexOf(`
4313
4319
  `) >= 0, L + k.replace(/\u001b\[\d\d?m/g, "").length + 1;
4314
4320
  }, 0);
4315
- return w > 60 ? m[0] + (h === "" ? "" : h + `
4321
+ return A > 60 ? m[0] + (h === "" ? "" : h + `
4316
4322
  `) + " " + d.join(`,
4317
4323
  `) + " " + m[1] : m[0] + h + " " + d.join(", ") + " " + m[1];
4318
4324
  }
4319
4325
  t.types = Wn;
4320
- function S(d) {
4326
+ function g(d) {
4321
4327
  return Array.isArray(d);
4322
4328
  }
4323
- t.isArray = S;
4324
- function O(d) {
4329
+ t.isArray = g;
4330
+ function S(d) {
4325
4331
  return typeof d == "boolean";
4326
4332
  }
4327
- t.isBoolean = O;
4328
- function $(d) {
4333
+ t.isBoolean = S;
4334
+ function R(d) {
4329
4335
  return d === null;
4330
4336
  }
4331
- t.isNull = $;
4337
+ t.isNull = R;
4332
4338
  function K(d) {
4333
4339
  return d == null;
4334
4340
  }
@@ -4341,14 +4347,14 @@ var iu = yr.exports;
4341
4347
  return typeof d == "string";
4342
4348
  }
4343
4349
  t.isString = P;
4344
- function R(d) {
4350
+ function V(d) {
4345
4351
  return typeof d == "symbol";
4346
4352
  }
4347
- t.isSymbol = R;
4348
- function T(d) {
4353
+ t.isSymbol = V;
4354
+ function O(d) {
4349
4355
  return d === void 0;
4350
4356
  }
4351
- t.isUndefined = T;
4357
+ t.isUndefined = O;
4352
4358
  function ie(d) {
4353
4359
  return oe(d) && we(d) === "[object RegExp]";
4354
4360
  }
@@ -4406,8 +4412,8 @@ var iu = yr.exports;
4406
4412
  console.log("%s - %s", jt(), t.format.apply(t, arguments));
4407
4413
  }, t.inherits = iu, t._extend = function(d, h) {
4408
4414
  if (!h || !oe(h)) return d;
4409
- for (var m = Object.keys(h), w = m.length; w--; )
4410
- d[m[w]] = h[m[w]];
4415
+ for (var m = Object.keys(h), A = m.length; A--; )
4416
+ d[m[A]] = h[m[A]];
4411
4417
  return d;
4412
4418
  };
4413
4419
  function De(d, h) {
@@ -4429,15 +4435,15 @@ var iu = yr.exports;
4429
4435
  }), m;
4430
4436
  }
4431
4437
  function m() {
4432
- for (var w, L, k = new Promise(function(F, H) {
4433
- w = F, L = H;
4434
- }), E = [], _ = 0; _ < arguments.length; _++)
4435
- E.push(arguments[_]);
4436
- E.push(function(F, H) {
4437
- F ? L(F) : w(H);
4438
+ for (var A, L, k = new Promise(function(F, H) {
4439
+ A = F, L = H;
4440
+ }), I = [], _ = 0; _ < arguments.length; _++)
4441
+ I.push(arguments[_]);
4442
+ I.push(function(F, H) {
4443
+ F ? L(F) : A(H);
4438
4444
  });
4439
4445
  try {
4440
- h.apply(this, E);
4446
+ h.apply(this, I);
4441
4447
  } catch (F) {
4442
4448
  L(F);
4443
4449
  }
@@ -4464,20 +4470,20 @@ var iu = yr.exports;
4464
4470
  if (typeof d != "function")
4465
4471
  throw new TypeError('The "original" argument must be of type Function');
4466
4472
  function h() {
4467
- for (var m = [], w = 0; w < arguments.length; w++)
4468
- m.push(arguments[w]);
4473
+ for (var m = [], A = 0; A < arguments.length; A++)
4474
+ m.push(arguments[A]);
4469
4475
  var L = m.pop();
4470
4476
  if (typeof L != "function")
4471
4477
  throw new TypeError("The last argument must be of type Function");
4472
- var k = this, E = function() {
4478
+ var k = this, I = function() {
4473
4479
  return L.apply(k, arguments);
4474
4480
  };
4475
4481
  d.apply(this, m).then(
4476
4482
  function(_) {
4477
- A.nextTick(E.bind(null, null, _));
4483
+ E.nextTick(I.bind(null, null, _));
4478
4484
  },
4479
4485
  function(_) {
4480
- A.nextTick(Re.bind(null, _, E));
4486
+ E.nextTick(Re.bind(null, _, I));
4481
4487
  }
4482
4488
  );
4483
4489
  }
@@ -4684,8 +4690,8 @@ function lu() {
4684
4690
  return f >= n ? l(c, f, n, "day") : f >= r ? l(c, f, r, "hour") : f >= e ? l(c, f, e, "minute") : f >= t ? l(c, f, t, "second") : c + " ms";
4685
4691
  }
4686
4692
  function l(c, f, p, v) {
4687
- var g = f >= p * 1.5;
4688
- return Math.round(c / p) + " " + v + (g ? "s" : "");
4693
+ var w = f >= p * 1.5;
4694
+ return Math.round(c / p) + " " + v + (w ? "s" : "");
4689
4695
  }
4690
4696
  return Xt;
4691
4697
  }
@@ -4701,31 +4707,31 @@ function du(t) {
4701
4707
  }
4702
4708
  r.selectColor = e;
4703
4709
  function r(c) {
4704
- let f, p = null, v, g;
4705
- function b(...S) {
4710
+ let f, p = null, v, w;
4711
+ function b(...g) {
4706
4712
  if (!b.enabled)
4707
4713
  return;
4708
- const O = b, $ = Number(/* @__PURE__ */ new Date()), K = $ - (f || $);
4709
- O.diff = K, O.prev = f, O.curr = $, f = $, S[0] = r.coerce(S[0]), typeof S[0] != "string" && S.unshift("%O");
4714
+ const S = b, R = Number(/* @__PURE__ */ new Date()), K = R - (f || R);
4715
+ S.diff = K, S.prev = f, S.curr = R, f = R, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O");
4710
4716
  let ee = 0;
4711
- S[0] = S[0].replace(/%([a-zA-Z%])/g, (R, T) => {
4712
- if (R === "%%")
4717
+ g[0] = g[0].replace(/%([a-zA-Z%])/g, (V, O) => {
4718
+ if (V === "%%")
4713
4719
  return "%";
4714
4720
  ee++;
4715
- const ie = r.formatters[T];
4721
+ const ie = r.formatters[O];
4716
4722
  if (typeof ie == "function") {
4717
- const oe = S[ee];
4718
- R = ie.call(O, oe), S.splice(ee, 1), ee--;
4723
+ const oe = g[ee];
4724
+ V = ie.call(S, oe), g.splice(ee, 1), ee--;
4719
4725
  }
4720
- return R;
4721
- }), r.formatArgs.call(O, S), (O.log || r.log).apply(O, S);
4726
+ return V;
4727
+ }), r.formatArgs.call(S, g), (S.log || r.log).apply(S, g);
4722
4728
  }
4723
4729
  return b.namespace = c, b.useColors = r.useColors(), b.color = r.selectColor(c), b.extend = n, b.destroy = r.destroy, Object.defineProperty(b, "enabled", {
4724
4730
  enumerable: !0,
4725
4731
  configurable: !1,
4726
- get: () => p !== null ? p : (v !== r.namespaces && (v = r.namespaces, g = r.enabled(c)), g),
4727
- set: (S) => {
4728
- p = S;
4732
+ get: () => p !== null ? p : (v !== r.namespaces && (v = r.namespaces, w = r.enabled(c)), w),
4733
+ set: (g) => {
4734
+ p = g;
4729
4735
  }
4730
4736
  }), typeof r.init == "function" && r.init(b), b;
4731
4737
  }
@@ -4886,7 +4892,7 @@ var fu = du;
4886
4892
  u = e.storage.getItem("debug");
4887
4893
  } catch {
4888
4894
  }
4889
- return !u && typeof A < "u" && "env" in A && (u = A.env.DEBUG), u;
4895
+ return !u && typeof E < "u" && "env" in E && (u = E.env.DEBUG), u;
4890
4896
  }
4891
4897
  function s() {
4892
4898
  try {
@@ -4925,7 +4931,7 @@ We.prototype.exec = function(t, e) {
4925
4931
  let n = !1;
4926
4932
  const i = this.name;
4927
4933
  if (this.parent._error && !this.isAfter) {
4928
- U("skipping loading of plugin as parent errored and it is not an after", i), A.nextTick(e);
4934
+ U("skipping loading of plugin as parent errored and it is not an after", i), E.nextTick(e);
4929
4935
  return;
4930
4936
  }
4931
4937
  if (this.isAfter)
@@ -4952,8 +4958,8 @@ We.prototype.exec = function(t, e) {
4952
4958
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4953
4959
  const a = r(this.server, this.opts, s);
4954
4960
  a && typeof a.then == "function" && (U("exec: resolving promise", i), a.then(
4955
- () => A.nextTick(s),
4956
- (u) => A.nextTick(s, u)
4961
+ () => E.nextTick(s),
4962
+ (u) => E.nextTick(s, u)
4957
4963
  ));
4958
4964
  };
4959
4965
  We.prototype.loadedSoFar = function() {
@@ -4961,7 +4967,7 @@ We.prototype.loadedSoFar = function() {
4961
4967
  return Promise.resolve();
4962
4968
  const t = () => {
4963
4969
  this.server.after((r, n) => {
4964
- this._error = r, this.q.pause(), r ? (U("rejecting promise", this.name, r), this._promise.reject(r)) : (U("resolving promise", this.name), this._promise.resolve()), this._promise = null, A.nextTick(n, r);
4970
+ this._error = r, this.q.pause(), r ? (U("rejecting promise", this.name, r), this._promise.reject(r)) : (U("resolving promise", this.name), this._promise.resolve()), this._promise = null, E.nextTick(n, r);
4965
4971
  }), this.q.resume();
4966
4972
  };
4967
4973
  let e;
@@ -4997,7 +5003,7 @@ We.prototype.finish = function(t, e) {
4997
5003
  };
4998
5004
  function vu(t, e) {
4999
5005
  const r = this;
5000
- A.nextTick(Fr.bind(r), t, e);
5006
+ E.nextTick(Fr.bind(r), t, e);
5001
5007
  }
5002
5008
  function Fr(t, e) {
5003
5009
  if (typeof t.func.then == "function") {
@@ -5085,7 +5091,7 @@ function Lu(t, e, r) {
5085
5091
  }
5086
5092
  Eu(q, Au);
5087
5093
  q.prototype.start = function() {
5088
- return this.started = !0, A.nextTick(this._doStart), this;
5094
+ return this.started = !0, E.nextTick(this._doStart), this;
5089
5095
  };
5090
5096
  q.prototype.override = function(t, e, r) {
5091
5097
  return t;
@@ -5101,7 +5107,7 @@ q.prototype.use = function(t, e) {
5101
5107
  };
5102
5108
  q.prototype._loadRegistered = function() {
5103
5109
  const t = this._current[0];
5104
- return !this.started && !this.booted && A.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
5110
+ return !this.started && !this.booted && E.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
5105
5111
  };
5106
5112
  Object.defineProperty(q.prototype, "then", { get: pi });
5107
5113
  q.prototype._addPlugin = function(t, e, r) {
@@ -5151,7 +5157,7 @@ q.prototype.close = function(t) {
5151
5157
  };
5152
5158
  });
5153
5159
  return this.ready(() => {
5154
- this._error = null, this._closeQ.push(t), A.nextTick(this._closeQ.resume.bind(this._closeQ));
5160
+ this._error = null, this._closeQ.push(t), E.nextTick(this._closeQ.resume.bind(this._closeQ));
5155
5161
  }), e;
5156
5162
  };
5157
5163
  q.prototype.ready = function(t) {
@@ -5165,7 +5171,7 @@ q.prototype.ready = function(t) {
5165
5171
  this._readyQ.push(i), this.start();
5166
5172
  const n = this._current[0].server;
5167
5173
  function i(o, s, a) {
5168
- o ? r(o) : e(n), A.nextTick(a);
5174
+ o ? r(o) : e(n), E.nextTick(a);
5169
5175
  }
5170
5176
  });
5171
5177
  };
@@ -5192,9 +5198,9 @@ function hi(t, e) {
5192
5198
  const r = this._server, n = this._error;
5193
5199
  let i;
5194
5200
  if (this._error = null, t.length === 0)
5195
- this._error = n, i = t(), i && !i[Ct] && typeof i.then == "function" ? i.then(() => A.nextTick(e), (o) => A.nextTick(e, o)) : A.nextTick(e);
5201
+ this._error = n, i = t(), i && !i[Ct] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
5196
5202
  else if (t.length === 1)
5197
- i = t(n), i && !i[Ct] && typeof i.then == "function" ? i.then(() => A.nextTick(e), (o) => A.nextTick(e, o)) : A.nextTick(e);
5203
+ i = t(n), i && !i[Ct] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
5198
5204
  else if (this._timeout === 0) {
5199
5205
  const o = (s) => {
5200
5206
  this._error = s, e(this._error);
@@ -5221,9 +5227,9 @@ function Nu(t, e) {
5221
5227
  if (t.length === 0 || t.length === 1) {
5222
5228
  let i;
5223
5229
  n ? i = t(r) : i = t(this._error), i && typeof i.then == "function" ? (ze("resolving close/onClose promise"), i.then(
5224
- () => A.nextTick(e),
5225
- (o) => A.nextTick(e, o)
5226
- )) : A.nextTick(e);
5230
+ () => E.nextTick(e),
5231
+ (o) => E.nextTick(e, o)
5232
+ )) : E.nextTick(e);
5227
5233
  } else t.length === 2 ? t(n ? r : this._error, e) : n ? t(r, e) : t(this._error, r, e);
5228
5234
  }
5229
5235
  function Fu(t, e) {
@@ -5231,10 +5237,10 @@ function Fu(t, e) {
5231
5237
  function r(n, i) {
5232
5238
  let o;
5233
5239
  t.length === 0 ? (o = t(), o && o.then ? o.then(function() {
5234
- A.nextTick(i);
5235
- }, i) : A.nextTick(i)) : t.length === 1 ? (o = t(this), o && o.then ? o.then(function() {
5236
- A.nextTick(i);
5237
- }, i) : A.nextTick(i)) : t(this, i);
5240
+ E.nextTick(i);
5241
+ }, i) : E.nextTick(i)) : t.length === 1 ? (o = t(this), o && o.then ? o.then(function() {
5242
+ E.nextTick(i);
5243
+ }, i) : E.nextTick(i)) : t(this, i);
5238
5244
  }
5239
5245
  }
5240
5246
  function rr(t, e) {
@@ -5242,10 +5248,10 @@ function rr(t, e) {
5242
5248
  function r(n, i) {
5243
5249
  let o;
5244
5250
  t ? t.length === 0 ? (o = t(), o && o.then ? o.then(function() {
5245
- A.nextTick(i, n);
5246
- }, i) : A.nextTick(i, n)) : t.length === 1 ? (o = t(n), o && o.then ? o.then(function() {
5247
- A.nextTick(i);
5248
- }, i) : A.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : A.nextTick(i);
5251
+ E.nextTick(i, n);
5252
+ }, i) : E.nextTick(i, n)) : t.length === 1 ? (o = t(n), o && o.then ? o.then(function() {
5253
+ E.nextTick(i);
5254
+ }, i) : E.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : E.nextTick(i);
5249
5255
  }
5250
5256
  }
5251
5257
  wr.exports = q;