iboot-http-client 1.3.1 → 1.3.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.
@@ -94,7 +94,7 @@ function Qt() {
94
94
  for (const r of t) {
95
95
  var s, u;
96
96
  const d = (s = r.domain) == null ? void 0 : s.split(":", 1)[0].toLowerCase();
97
- if (o === d || n === r.defaultLocale.toLowerCase() || (u = r.locales) != null && u.some((p) => p.toLowerCase() === n))
97
+ if (o === d || n === r.defaultLocale.toLowerCase() || (u = r.locales) != null && u.some((_) => _.toLowerCase() === n))
98
98
  return r;
99
99
  }
100
100
  }
@@ -316,23 +316,23 @@ function sr() {
316
316
  const e = or(), t = ir(), o = rt();
317
317
  function n(s, u) {
318
318
  var r;
319
- const { basePath: d, i18n: p, trailingSlash: c } = (r = u.nextConfig) != null ? r : {}, _ = {
319
+ const { basePath: d, i18n: _, trailingSlash: c } = (r = u.nextConfig) != null ? r : {}, m = {
320
320
  pathname: s,
321
321
  trailingSlash: s !== "/" ? s.endsWith("/") : c
322
322
  };
323
- d && (0, o.pathHasPrefix)(_.pathname, d) && (_.pathname = (0, t.removePathPrefix)(_.pathname, d), _.basePath = d);
324
- let g = _.pathname;
325
- if (_.pathname.startsWith("/_next/data/") && _.pathname.endsWith(".json")) {
326
- const S = _.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), I = S[0];
327
- _.buildId = I, g = S[1] !== "index" ? "/" + S.slice(1).join("/") : "/", u.parseData === !0 && (_.pathname = g);
328
- }
329
- if (p) {
330
- let S = u.i18nProvider ? u.i18nProvider.analyze(_.pathname) : (0, e.normalizeLocalePath)(_.pathname, p.locales);
331
- _.locale = S.detectedLocale;
323
+ d && (0, o.pathHasPrefix)(m.pathname, d) && (m.pathname = (0, t.removePathPrefix)(m.pathname, d), m.basePath = d);
324
+ let b = m.pathname;
325
+ if (m.pathname.startsWith("/_next/data/") && m.pathname.endsWith(".json")) {
326
+ const y = m.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), I = y[0];
327
+ m.buildId = I, b = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", u.parseData === !0 && (m.pathname = b);
328
+ }
329
+ if (_) {
330
+ let y = u.i18nProvider ? u.i18nProvider.analyze(m.pathname) : (0, e.normalizeLocalePath)(m.pathname, _.locales);
331
+ m.locale = y.detectedLocale;
332
332
  var R;
333
- _.pathname = (R = S.pathname) != null ? R : _.pathname, !S.detectedLocale && _.buildId && (S = u.i18nProvider ? u.i18nProvider.analyze(g) : (0, e.normalizeLocalePath)(g, p.locales), S.detectedLocale && (_.locale = S.detectedLocale));
333
+ m.pathname = (R = y.pathname) != null ? R : m.pathname, !y.detectedLocale && m.buildId && (y = u.i18nProvider ? u.i18nProvider.analyze(b) : (0, e.normalizeLocalePath)(b, _.locales), y.detectedLocale && (m.locale = y.detectedLocale));
334
334
  }
335
- return _;
335
+ return m;
336
336
  }
337
337
  })(De)), De;
338
338
  }
@@ -348,29 +348,29 @@ function Ht() {
348
348
  }
349
349
  });
350
350
  const e = Qt(), t = rr(), o = nr(), n = sr(), s = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
351
- function u(p, c) {
352
- return new URL(String(p).replace(s, "localhost"), c && String(c).replace(s, "localhost"));
351
+ function u(_, c) {
352
+ return new URL(String(_).replace(s, "localhost"), c && String(c).replace(s, "localhost"));
353
353
  }
354
354
  const r = /* @__PURE__ */ Symbol("NextURLInternal");
355
355
  class d {
356
- constructor(c, _, g) {
357
- let R, S;
358
- typeof _ == "object" && "pathname" in _ || typeof _ == "string" ? (R = _, S = g || {}) : S = g || _ || {}, this[r] = {
359
- url: u(c, R ?? S.base),
360
- options: S,
356
+ constructor(c, m, b) {
357
+ let R, y;
358
+ typeof m == "object" && "pathname" in m || typeof m == "string" ? (R = m, y = b || {}) : y = b || m || {}, this[r] = {
359
+ url: u(c, R ?? y.base),
360
+ options: y,
361
361
  basePath: ""
362
362
  }, this.analyze();
363
363
  }
364
364
  analyze() {
365
- var c, _, g, R, S;
365
+ var c, m, b, R, y;
366
366
  const I = (0, n.getNextPathnameInfo)(this[r].url.pathname, {
367
367
  nextConfig: this[r].options.nextConfig,
368
368
  parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
369
369
  i18nProvider: this[r].options.i18nProvider
370
370
  }), l = (0, o.getHostname)(this[r].url, this[r].options.headers);
371
- this[r].domainLocale = this[r].options.i18nProvider ? this[r].options.i18nProvider.detectDomainLocale(l) : (0, e.detectDomainLocale)((_ = this[r].options.nextConfig) == null || (c = _.i18n) == null ? void 0 : c.domains, l);
372
- const b = ((g = this[r].domainLocale) == null ? void 0 : g.defaultLocale) || ((S = this[r].options.nextConfig) == null || (R = S.i18n) == null ? void 0 : R.defaultLocale);
373
- this[r].url.pathname = I.pathname, this[r].defaultLocale = b, this[r].basePath = I.basePath ?? "", this[r].buildId = I.buildId, this[r].locale = I.locale ?? b, this[r].trailingSlash = I.trailingSlash;
371
+ this[r].domainLocale = this[r].options.i18nProvider ? this[r].options.i18nProvider.detectDomainLocale(l) : (0, e.detectDomainLocale)((m = this[r].options.nextConfig) == null || (c = m.i18n) == null ? void 0 : c.domains, l);
372
+ const g = ((b = this[r].domainLocale) == null ? void 0 : b.defaultLocale) || ((y = this[r].options.nextConfig) == null || (R = y.i18n) == null ? void 0 : R.defaultLocale);
373
+ this[r].url.pathname = I.pathname, this[r].defaultLocale = g, this[r].basePath = I.basePath ?? "", this[r].buildId = I.buildId, this[r].locale = I.locale ?? g, this[r].trailingSlash = I.trailingSlash;
374
374
  }
375
375
  formatPathname() {
376
376
  return (0, t.formatNextPathnameInfo)({
@@ -395,8 +395,8 @@ function Ht() {
395
395
  return this[r].locale ?? "";
396
396
  }
397
397
  set locale(c) {
398
- var _, g;
399
- if (!this[r].locale || !(!((g = this[r].options.nextConfig) == null || (_ = g.i18n) == null) && _.locales.includes(c)))
398
+ var m, b;
399
+ if (!this[r].locale || !(!((b = this[r].options.nextConfig) == null || (m = b.i18n) == null) && m.locales.includes(c)))
400
400
  throw new TypeError(`The NextURL configuration includes no locale "${c}"`);
401
401
  this[r].locale = c;
402
402
  }
@@ -434,8 +434,8 @@ function Ht() {
434
434
  this[r].url.protocol = c;
435
435
  }
436
436
  get href() {
437
- const c = this.formatPathname(), _ = this.formatSearch();
438
- return `${this.protocol}//${this.host}${c}${_}${this.hash}`;
437
+ const c = this.formatPathname(), m = this.formatSearch();
438
+ return `${this.protocol}//${this.host}${c}${m}${this.hash}`;
439
439
  }
440
440
  set href(c) {
441
441
  this[r].url = u(c), this.analyze();
@@ -554,13 +554,13 @@ function ar() {
554
554
  return v;
555
555
  },
556
556
  NEXT_BODY_SUFFIX: function() {
557
- return _;
557
+ return m;
558
558
  },
559
559
  NEXT_CACHE_IMPLICIT_TAG_ID: function() {
560
- return m;
560
+ return p;
561
561
  },
562
562
  NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
563
- return S;
563
+ return y;
564
564
  },
565
565
  NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
566
566
  return I;
@@ -572,16 +572,16 @@ function ar() {
572
572
  return h;
573
573
  },
574
574
  NEXT_CACHE_TAGS_HEADER: function() {
575
- return g;
575
+ return b;
576
576
  },
577
577
  NEXT_CACHE_TAG_MAX_ITEMS: function() {
578
578
  return l;
579
579
  },
580
580
  NEXT_CACHE_TAG_MAX_LENGTH: function() {
581
- return b;
581
+ return g;
582
582
  },
583
583
  NEXT_DATA_SUFFIX: function() {
584
- return p;
584
+ return _;
585
585
  },
586
586
  NEXT_INTERCEPTION_MARKER_PREFIX: function() {
587
587
  return o;
@@ -662,7 +662,7 @@ function ar() {
662
662
  return me;
663
663
  }
664
664
  });
665
- const t = "nxtP", o = "nxtI", n = "x-prerender-revalidate", s = "x-prerender-revalidate-if-generated", u = ".prefetch.rsc", r = ".rsc", d = ".action", p = ".json", c = ".meta", _ = ".body", g = "x-next-cache-tags", R = "x-next-cache-soft-tags", S = "x-next-revalidated-tags", I = "x-next-revalidate-tag-token", l = 128, b = 256, h = 1024, m = "_N_T_", E = 31536e3, a = "middleware", v = `(?:src/)?${a}`, f = "instrumentation", w = "private-next-pages", P = "private-dot-next", N = "private-next-root-dir", M = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", F = "private-next-rsc-action-validate", j = "private-next-rsc-server-reference", J = "private-next-rsc-action-encryption", Q = "private-next-rsc-action-client-wrapper", G = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", z = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", oe = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", V = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Z = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", de = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ie = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", se = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", he = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", ee = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ae = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', fe = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", te = [
665
+ const t = "nxtP", o = "nxtI", n = "x-prerender-revalidate", s = "x-prerender-revalidate-if-generated", u = ".prefetch.rsc", r = ".rsc", d = ".action", _ = ".json", c = ".meta", m = ".body", b = "x-next-cache-tags", R = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", I = "x-next-revalidate-tag-token", l = 128, g = 256, h = 1024, p = "_N_T_", E = 31536e3, a = "middleware", v = `(?:src/)?${a}`, f = "instrumentation", w = "private-next-pages", P = "private-dot-next", N = "private-next-root-dir", M = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", F = "private-next-rsc-action-validate", j = "private-next-rsc-server-reference", J = "private-next-rsc-action-encryption", Q = "private-next-rsc-action-client-wrapper", G = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", z = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", oe = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", V = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Z = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", de = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ie = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", se = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", he = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", ee = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ae = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', fe = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", te = [
666
666
  "app",
667
667
  "pages",
668
668
  "components",
@@ -761,10 +761,10 @@ function Ft() {
761
761
  Object.defineProperty(i, "__esModule", {
762
762
  value: !0
763
763
  });
764
- function e(d, p) {
765
- for (var c in p) Object.defineProperty(d, c, {
764
+ function e(d, _) {
765
+ for (var c in _) Object.defineProperty(d, c, {
766
766
  enumerable: !0,
767
- get: p[c]
767
+ get: _[c]
768
768
  });
769
769
  }
770
770
  e(i, {
@@ -786,63 +786,63 @@ function Ft() {
786
786
  });
787
787
  const t = ar();
788
788
  function o(d) {
789
- const p = new Headers();
790
- for (let [c, _] of Object.entries(d)) {
791
- const g = Array.isArray(_) ? _ : [
792
- _
789
+ const _ = new Headers();
790
+ for (let [c, m] of Object.entries(d)) {
791
+ const b = Array.isArray(m) ? m : [
792
+ m
793
793
  ];
794
- for (let R of g)
795
- typeof R > "u" || (typeof R == "number" && (R = R.toString()), p.append(c, R));
794
+ for (let R of b)
795
+ typeof R > "u" || (typeof R == "number" && (R = R.toString()), _.append(c, R));
796
796
  }
797
- return p;
797
+ return _;
798
798
  }
799
799
  function n(d) {
800
- var p = [], c = 0, _, g, R, S, I;
800
+ var _ = [], c = 0, m, b, R, y, I;
801
801
  function l() {
802
802
  for (; c < d.length && /\s/.test(d.charAt(c)); )
803
803
  c += 1;
804
804
  return c < d.length;
805
805
  }
806
- function b() {
807
- return g = d.charAt(c), g !== "=" && g !== ";" && g !== ",";
806
+ function g() {
807
+ return b = d.charAt(c), b !== "=" && b !== ";" && b !== ",";
808
808
  }
809
809
  for (; c < d.length; ) {
810
- for (_ = c, I = !1; l(); )
811
- if (g = d.charAt(c), g === ",") {
812
- for (R = c, c += 1, l(), S = c; c < d.length && b(); )
810
+ for (m = c, I = !1; l(); )
811
+ if (b = d.charAt(c), b === ",") {
812
+ for (R = c, c += 1, l(), y = c; c < d.length && g(); )
813
813
  c += 1;
814
- c < d.length && d.charAt(c) === "=" ? (I = !0, c = S, p.push(d.substring(_, R)), _ = c) : c = R + 1;
814
+ c < d.length && d.charAt(c) === "=" ? (I = !0, c = y, _.push(d.substring(m, R)), m = c) : c = R + 1;
815
815
  } else
816
816
  c += 1;
817
- (!I || c >= d.length) && p.push(d.substring(_, d.length));
817
+ (!I || c >= d.length) && _.push(d.substring(m, d.length));
818
818
  }
819
- return p;
819
+ return _;
820
820
  }
821
821
  function s(d) {
822
- const p = {}, c = [];
822
+ const _ = {}, c = [];
823
823
  if (d)
824
- for (const [_, g] of d.entries())
825
- _.toLowerCase() === "set-cookie" ? (c.push(...n(g)), p[_] = c.length === 1 ? c[0] : c) : p[_] = g;
826
- return p;
824
+ for (const [m, b] of d.entries())
825
+ m.toLowerCase() === "set-cookie" ? (c.push(...n(b)), _[m] = c.length === 1 ? c[0] : c) : _[m] = b;
826
+ return _;
827
827
  }
828
828
  function u(d) {
829
829
  try {
830
830
  return String(new URL(String(d)));
831
- } catch (p) {
831
+ } catch (_) {
832
832
  throw new Error(`URL is malformed "${String(d)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
833
- cause: p
833
+ cause: _
834
834
  });
835
835
  }
836
836
  }
837
- function r(d, p) {
837
+ function r(d, _) {
838
838
  const c = [
839
839
  t.NEXT_QUERY_PARAM_PREFIX,
840
840
  t.NEXT_INTERCEPTION_MARKER_PREFIX
841
841
  ];
842
- for (const _ of c)
843
- if (d !== _ && d.startsWith(_)) {
844
- const g = d.substring(_.length);
845
- p(g);
842
+ for (const m of c)
843
+ if (d !== m && d.startsWith(m)) {
844
+ const b = d.substring(m.length);
845
+ _(b);
846
846
  }
847
847
  }
848
848
  })(qe)), qe;
@@ -908,9 +908,9 @@ function cr() {
908
908
  return a;
909
909
  }, u = (a) => s(i({}, "__esModule", { value: !0 }), a), r = {};
910
910
  n(r, {
911
- RequestCookies: () => b,
911
+ RequestCookies: () => g,
912
912
  ResponseCookies: () => h,
913
- parseCookie: () => p,
913
+ parseCookie: () => _,
914
914
  parseSetCookie: () => c,
915
915
  stringifyCookie: () => d
916
916
  }), Be = u(r);
@@ -929,7 +929,7 @@ function cr() {
929
929
  ].filter(Boolean), w = `${a.name}=${encodeURIComponent((v = a.value) != null ? v : "")}`;
930
930
  return f.length === 0 ? w : `${w}; ${f.join("; ")}`;
931
931
  }
932
- function p(a) {
932
+ function _(a) {
933
933
  const v = /* @__PURE__ */ new Map();
934
934
  for (const f of a.split(/; */)) {
935
935
  if (!f)
@@ -950,7 +950,7 @@ function cr() {
950
950
  function c(a) {
951
951
  if (!a)
952
952
  return;
953
- const [[v, f], ...w] = p(a), {
953
+ const [[v, f], ...w] = _(a), {
954
954
  domain: P,
955
955
  expires: N,
956
956
  httponly: M,
@@ -975,21 +975,21 @@ function cr() {
975
975
  ...G && { priority: I(G) },
976
976
  ...Q && { partitioned: !0 }
977
977
  };
978
- return _(z);
978
+ return m(z);
979
979
  }
980
- function _(a) {
980
+ function m(a) {
981
981
  const v = {};
982
982
  for (const f in a)
983
983
  a[f] && (v[f] = a[f]);
984
984
  return v;
985
985
  }
986
- var g = ["strict", "lax", "none"];
986
+ var b = ["strict", "lax", "none"];
987
987
  function R(a) {
988
- return a = a.toLowerCase(), g.includes(a) ? a : void 0;
988
+ return a = a.toLowerCase(), b.includes(a) ? a : void 0;
989
989
  }
990
- var S = ["low", "medium", "high"];
990
+ var y = ["low", "medium", "high"];
991
991
  function I(a) {
992
- return a = a.toLowerCase(), S.includes(a) ? a : void 0;
992
+ return a = a.toLowerCase(), y.includes(a) ? a : void 0;
993
993
  }
994
994
  function l(a) {
995
995
  if (!a)
@@ -1015,12 +1015,12 @@ function cr() {
1015
1015
  }
1016
1016
  return v;
1017
1017
  }
1018
- var b = class {
1018
+ var g = class {
1019
1019
  constructor(a) {
1020
1020
  this._parsed = /* @__PURE__ */ new Map(), this._headers = a;
1021
1021
  const v = a.get("cookie");
1022
1022
  if (v) {
1023
- const f = p(v);
1023
+ const f = _(v);
1024
1024
  for (const [w, P] of f)
1025
1025
  this._parsed.set(w, { name: w, value: P });
1026
1026
  }
@@ -1118,7 +1118,7 @@ function cr() {
1118
1118
  */
1119
1119
  set(...a) {
1120
1120
  const [v, f, w] = a.length === 1 ? [a[0].name, a[0].value, a[0]] : a, P = this._parsed;
1121
- return P.set(v, E({ name: v, value: f, ...w })), m(P, this._headers), this;
1121
+ return P.set(v, E({ name: v, value: f, ...w })), p(P, this._headers), this;
1122
1122
  }
1123
1123
  /**
1124
1124
  * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
@@ -1134,7 +1134,7 @@ function cr() {
1134
1134
  return [...this._parsed.values()].map(d).join("; ");
1135
1135
  }
1136
1136
  };
1137
- function m(a, v) {
1137
+ function p(a, v) {
1138
1138
  v.delete("set-cookie");
1139
1139
  for (const [, f] of a) {
1140
1140
  const w = d(f);
@@ -1178,10 +1178,10 @@ function lr() {
1178
1178
  Object.defineProperty(i, "__esModule", {
1179
1179
  value: !0
1180
1180
  });
1181
- function e(d, p) {
1182
- for (var c in p) Object.defineProperty(d, c, {
1181
+ function e(d, _) {
1182
+ for (var c in _) Object.defineProperty(d, c, {
1183
1183
  enumerable: !0,
1184
- get: p[c]
1184
+ get: _[c]
1185
1185
  });
1186
1186
  }
1187
1187
  e(i, {
@@ -1194,10 +1194,10 @@ function lr() {
1194
1194
  });
1195
1195
  const t = Ht(), o = Ft(), n = ur(), s = Je(), u = /* @__PURE__ */ Symbol("internal request");
1196
1196
  class r extends Request {
1197
- constructor(p, c = {}) {
1198
- const _ = typeof p != "string" && "url" in p ? p.url : String(p);
1199
- (0, o.validateURL)(_), p instanceof Request ? super(p, c) : super(_, c);
1200
- const g = new t.NextURL(_, {
1197
+ constructor(_, c = {}) {
1198
+ const m = typeof _ != "string" && "url" in _ ? _.url : String(_);
1199
+ (0, o.validateURL)(m), _ instanceof Request ? super(_, c) : super(m, c);
1200
+ const b = new t.NextURL(m, {
1201
1201
  headers: (0, o.toNodeOutgoingHttpHeaders)(this.headers),
1202
1202
  nextConfig: c.nextConfig
1203
1203
  });
@@ -1205,8 +1205,8 @@ function lr() {
1205
1205
  cookies: new s.RequestCookies(this.headers),
1206
1206
  geo: c.geo || {},
1207
1207
  ip: c.ip,
1208
- nextUrl: g,
1209
- url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? _ : g.toString()
1208
+ nextUrl: b,
1209
+ url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? m : b.toString()
1210
1210
  };
1211
1211
  }
1212
1212
  [/* @__PURE__ */ Symbol.for("edge-runtime.inspect.custom")]() {
@@ -1302,7 +1302,7 @@ function hr() {
1302
1302
  }), Object.defineProperty(i, "NextResponse", {
1303
1303
  enumerable: !0,
1304
1304
  get: function() {
1305
- return p;
1305
+ return _;
1306
1306
  }
1307
1307
  });
1308
1308
  const e = Je(), t = Ht(), o = Ft(), n = dr(), s = Je(), u = /* @__PURE__ */ Symbol("internal response"), r = /* @__PURE__ */ new Set([
@@ -1312,39 +1312,39 @@ function hr() {
1312
1312
  307,
1313
1313
  308
1314
1314
  ]);
1315
- function d(c, _) {
1316
- var g;
1317
- if (!(c == null || (g = c.request) == null) && g.headers) {
1315
+ function d(c, m) {
1316
+ var b;
1317
+ if (!(c == null || (b = c.request) == null) && b.headers) {
1318
1318
  if (!(c.request.headers instanceof Headers))
1319
1319
  throw new Error("request.headers must be an instance of Headers");
1320
1320
  const R = [];
1321
- for (const [S, I] of c.request.headers)
1322
- _.set("x-middleware-request-" + S, I), R.push(S);
1323
- _.set("x-middleware-override-headers", R.join(","));
1321
+ for (const [y, I] of c.request.headers)
1322
+ m.set("x-middleware-request-" + y, I), R.push(y);
1323
+ m.set("x-middleware-override-headers", R.join(","));
1324
1324
  }
1325
1325
  }
1326
- class p extends Response {
1327
- constructor(_, g = {}) {
1328
- super(_, g);
1329
- const R = this.headers, S = new s.ResponseCookies(R), I = new Proxy(S, {
1330
- get(l, b, h) {
1331
- switch (b) {
1326
+ class _ extends Response {
1327
+ constructor(m, b = {}) {
1328
+ super(m, b);
1329
+ const R = this.headers, y = new s.ResponseCookies(R), I = new Proxy(y, {
1330
+ get(l, g, h) {
1331
+ switch (g) {
1332
1332
  case "delete":
1333
1333
  case "set":
1334
- return (...m) => {
1335
- const E = Reflect.apply(l[b], l, m), a = new Headers(R);
1336
- return E instanceof s.ResponseCookies && R.set("x-middleware-set-cookie", E.getAll().map((v) => (0, e.stringifyCookie)(v)).join(",")), d(g, a), E;
1334
+ return (...p) => {
1335
+ const E = Reflect.apply(l[g], l, p), a = new Headers(R);
1336
+ return E instanceof s.ResponseCookies && R.set("x-middleware-set-cookie", E.getAll().map((v) => (0, e.stringifyCookie)(v)).join(",")), d(b, a), E;
1337
1337
  };
1338
1338
  default:
1339
- return n.ReflectAdapter.get(l, b, h);
1339
+ return n.ReflectAdapter.get(l, g, h);
1340
1340
  }
1341
1341
  }
1342
1342
  });
1343
1343
  this[u] = {
1344
1344
  cookies: I,
1345
- url: g.url ? new t.NextURL(g.url, {
1345
+ url: b.url ? new t.NextURL(b.url, {
1346
1346
  headers: (0, o.toNodeOutgoingHttpHeaders)(R),
1347
- nextConfig: g.nextConfig
1347
+ nextConfig: b.nextConfig
1348
1348
  }) : void 0
1349
1349
  };
1350
1350
  }
@@ -1366,33 +1366,33 @@ function hr() {
1366
1366
  get cookies() {
1367
1367
  return this[u].cookies;
1368
1368
  }
1369
- static json(_, g) {
1370
- const R = Response.json(_, g);
1371
- return new p(R.body, R);
1369
+ static json(m, b) {
1370
+ const R = Response.json(m, b);
1371
+ return new _(R.body, R);
1372
1372
  }
1373
- static redirect(_, g) {
1374
- const R = typeof g == "number" ? g : g?.status ?? 307;
1373
+ static redirect(m, b) {
1374
+ const R = typeof b == "number" ? b : b?.status ?? 307;
1375
1375
  if (!r.has(R))
1376
1376
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
1377
- const S = typeof g == "object" ? g : {}, I = new Headers(S?.headers);
1378
- return I.set("Location", (0, o.validateURL)(_)), new p(null, {
1379
- ...S,
1377
+ const y = typeof b == "object" ? b : {}, I = new Headers(y?.headers);
1378
+ return I.set("Location", (0, o.validateURL)(m)), new _(null, {
1379
+ ...y,
1380
1380
  headers: I,
1381
1381
  status: R
1382
1382
  });
1383
1383
  }
1384
- static rewrite(_, g) {
1385
- const R = new Headers(g?.headers);
1386
- return R.set("x-middleware-rewrite", (0, o.validateURL)(_)), d(g, R), new p(null, {
1387
- ...g,
1384
+ static rewrite(m, b) {
1385
+ const R = new Headers(b?.headers);
1386
+ return R.set("x-middleware-rewrite", (0, o.validateURL)(m)), d(b, R), new _(null, {
1387
+ ...b,
1388
1388
  headers: R
1389
1389
  });
1390
1390
  }
1391
- static next(_) {
1392
- const g = new Headers(_?.headers);
1393
- return g.set("x-middleware-next", "1"), d(_, g), new p(null, {
1394
- ..._,
1395
- headers: g
1391
+ static next(m) {
1392
+ const b = new Headers(m?.headers);
1393
+ return b.set("x-middleware-next", "1"), d(m, b), new _(null, {
1394
+ ...m,
1395
+ headers: b
1396
1396
  });
1397
1397
  }
1398
1398
  }
@@ -1419,7 +1419,7 @@ function pr() {
1419
1419
  return Nt || (Nt = 1, (() => {
1420
1420
  var i = { 226: function(n, s) {
1421
1421
  (function(u, r) {
1422
- var d = "1.0.35", p = "", c = "?", _ = "function", g = "undefined", R = "object", S = "string", I = "major", l = "model", b = "name", h = "type", m = "vendor", E = "version", a = "architecture", v = "console", f = "mobile", w = "tablet", P = "smarttv", N = "wearable", M = "embedded", D = 350, F = "Amazon", j = "Apple", J = "ASUS", Q = "BlackBerry", G = "Browser", z = "Chrome", oe = "Edge", V = "Firefox", Z = "Google", de = "Huawei", ie = "LG", se = "Microsoft", he = "Motorola", ee = "Opera", ae = "Samsung", fe = "Sharp", te = "Sony", ue = "Xiaomi", k = "Zebra", pe = "Facebook", me = "Chromium OS", _e = "Mac OS", ge = function(T, x) {
1422
+ var d = "1.0.35", _ = "", c = "?", m = "function", b = "undefined", R = "object", y = "string", I = "major", l = "model", g = "name", h = "type", p = "vendor", E = "version", a = "architecture", v = "console", f = "mobile", w = "tablet", P = "smarttv", N = "wearable", M = "embedded", D = 350, F = "Amazon", j = "Apple", J = "ASUS", Q = "BlackBerry", G = "Browser", z = "Chrome", oe = "Edge", V = "Firefox", Z = "Google", de = "Huawei", ie = "LG", se = "Microsoft", he = "Motorola", ee = "Opera", ae = "Samsung", fe = "Sharp", te = "Sony", ue = "Xiaomi", k = "Zebra", pe = "Facebook", me = "Chromium OS", _e = "Mac OS", ge = function(T, x) {
1423
1423
  var A = {};
1424
1424
  for (var C in T)
1425
1425
  x[C] && x[C].length % 2 === 0 ? A[C] = x[C].concat(T[C]) : A[C] = T[C];
@@ -1429,21 +1429,21 @@ function pr() {
1429
1429
  x[T[A].toUpperCase()] = T[A];
1430
1430
  return x;
1431
1431
  }, nt = function(T, x) {
1432
- return typeof T === S ? ce(x).indexOf(ce(T)) !== -1 : !1;
1432
+ return typeof T === y ? ce(x).indexOf(ce(T)) !== -1 : !1;
1433
1433
  }, ce = function(T) {
1434
1434
  return T.toLowerCase();
1435
1435
  }, zt = function(T) {
1436
- return typeof T === S ? T.replace(/[^\d\.]/g, p).split(".")[0] : r;
1436
+ return typeof T === y ? T.replace(/[^\d\.]/g, _).split(".")[0] : r;
1437
1437
  }, Re = function(T, x) {
1438
- if (typeof T === S)
1439
- return T = T.replace(/^\s\s*/, p), typeof x === g ? T : T.substring(0, D);
1438
+ if (typeof T === y)
1439
+ return T = T.replace(/^\s\s*/, _), typeof x === b ? T : T.substring(0, D);
1440
1440
  }, le = function(T, x) {
1441
- for (var A = 0, C, K, B, O, y, X; A < x.length && !y; ) {
1441
+ for (var A = 0, C, K, B, O, S, X; A < x.length && !S; ) {
1442
1442
  var ye = x[A], st = x[A + 1];
1443
- for (C = K = 0; C < ye.length && !y && ye[C]; )
1444
- if (y = ye[C++].exec(T), y)
1443
+ for (C = K = 0; C < ye.length && !S && ye[C]; )
1444
+ if (S = ye[C++].exec(T), S)
1445
1445
  for (B = 0; B < st.length; B++)
1446
- X = y[++K], O = st[B], typeof O === R && O.length > 0 ? O.length === 2 ? typeof O[1] == _ ? this[O[0]] = O[1].call(this, X) : this[O[0]] = O[1] : O.length === 3 ? typeof O[1] === _ && !(O[1].exec && O[1].test) ? this[O[0]] = X ? O[1].call(this, X, O[2]) : r : this[O[0]] = X ? X.replace(O[1], O[2]) : r : O.length === 4 && (this[O[0]] = X ? O[3].call(this, X.replace(O[1], O[2])) : r) : this[O] = X || r;
1446
+ X = S[++K], O = st[B], typeof O === R && O.length > 0 ? O.length === 2 ? typeof O[1] == m ? this[O[0]] = O[1].call(this, X) : this[O[0]] = O[1] : O.length === 3 ? typeof O[1] === m && !(O[1].exec && O[1].test) ? this[O[0]] = X ? O[1].call(this, X, O[2]) : r : this[O[0]] = X ? X.replace(O[1], O[2]) : r : O.length === 4 && (this[O[0]] = X ? O[3].call(this, X.replace(O[1], O[2])) : r) : this[O] = X || r;
1447
1447
  A += 2;
1448
1448
  }
1449
1449
  }, Pe = function(T, x) {
@@ -1455,35 +1455,35 @@ function pr() {
1455
1455
  } else if (nt(x[A], T))
1456
1456
  return A === c ? r : A;
1457
1457
  return T;
1458
- }, Vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, ot = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, it = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [E, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [E, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, E], [/opios[\/ ]+([\w\.]+)/i], [E, [b, ee + " Mini"]], [/\bopr\/([\w\.]+)/i], [E, [b, ee]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, E], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [E, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [E, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [E, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [E, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [E, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [E, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], E], [/\bfocus\/([\w\.]+)/i], [E, [b, V + " Focus"]], [/\bopt\/([\w\.]+)/i], [E, [b, ee + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [E, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [E, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [E, [b, ee + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [E, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [E, [b, V]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], E], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], E], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, E], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, pe], E], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, E], [/\bgsa\/([\w\.]+) .*safari\//i], [E, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [E, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [E, [b, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, z + " WebView"], E], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [E, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, E], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [E, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [E, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [E, Pe, Vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, E], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], E], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [E, [b, V + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, E], [/(cobalt)\/([\w\.]+)/i], [b, [E, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[a, "amd64"]], [/(ia32(?=;))/i], [[a, ce]], [/((?:i[346]|x)86)[;\)]/i], [[a, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[a, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[a, "armhf"]], [/windows (ce|mobile); ppc;/i], [[a, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[a, /ower/, p, ce]], [/(sun4\w)[;\)]/i], [[a, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[a, ce]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [m, ae], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, ae], [h, f]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, j], [h, f]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, j], [h, w]], [/(macintosh);/i], [l, [m, j]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, fe], [h, f]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [m, de], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, de], [h, f]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, f]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, "OPPO"], [h, f]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [h, f]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [h, f]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [m, he], [h, f]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, he], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, ie], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, ie], [h, f]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [m, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [m, "Nokia"], [h, f]], [/(pixel c)\b/i], [l, [m, Z], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, Z], [h, f]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [m, te], [h, f]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, te], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, "OnePlus"], [h, f]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, F], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, F], [h, f]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, Q], [h, f]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, J], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, J], [h, f]], [/(nexus 9)/i], [l, [m, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [h, f]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [h, f]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, l, [h, f]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, l, [h, w]], [/(surface duo)/i], [l, [m, se], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [h, f]], [/(u304aa)/i], [l, [m, "AT&T"], [h, f]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [h, f]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [h, w]], [/\b(k88) b/i], [l, [m, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [h, f]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [h, f]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [h, w]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [h, f]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [h, f]], [/\b(ph-1) /i], [l, [m, "Essential"], [h, f]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [l, [m, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [m, l, [h, f]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, se], [h, f]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, k], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, k], [h, f]], [/smart-tv.+(samsung)/i], [m, [h, P]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, ae], [h, P]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, ie], [h, P]], [/(apple) ?tv/i], [m, [l, j + " TV"], [h, P]], [/crkey/i], [[l, z + "cast"], [m, Z], [h, P]], [/droid.+aft(\w)( bui|\))/i], [l, [m, F], [h, P]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, fe], [h, P]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, te], [h, P]], [/(mitv-\w{5}) bui/i], [l, [m, ue], [h, P]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [h, P]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, Re], [l, Re], [h, P]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, P]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [h, v]], [/droid.+; (shield) bui/i], [l, [m, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [l, [m, te], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, se], [h, v]], [/((pebble))app/i], [m, l, [h, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, j], [h, N]], [/droid.+; (glass) \d/i], [l, [m, Z], [h, N]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, k], [h, N]], [/(quest( 2| pro)?)/i], [l, [m, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, M]], [/(aeobc)\b/i], [l, [m, F], [h, M]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, f]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, f]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [E, [b, oe + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [E, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, E], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [E, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, E], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [E, Pe, ot]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [E, Pe, ot]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[E, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, _e], [E, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [E, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, E], [/\(bb(10);/i], [E, [b, Q]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [E, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [E, [b, V + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [E, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [E, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [E, [b, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, me], E], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, E], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], E], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, E]] }, q = function(T, x) {
1458
+ }, Vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, ot = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, it = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [E, [g, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [E, [g, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [g, E], [/opios[\/ ]+([\w\.]+)/i], [E, [g, ee + " Mini"]], [/\bopr\/([\w\.]+)/i], [E, [g, ee]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [g, E], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [E, [g, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [E, [g, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [E, [g, "WeChat"]], [/konqueror\/([\w\.]+)/i], [E, [g, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [E, [g, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [E, [g, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[g, /(.+)/, "$1 Secure " + G], E], [/\bfocus\/([\w\.]+)/i], [E, [g, V + " Focus"]], [/\bopt\/([\w\.]+)/i], [E, [g, ee + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [E, [g, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [E, [g, "Dolphin"]], [/coast\/([\w\.]+)/i], [E, [g, ee + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [E, [g, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [E, [g, V]], [/\bqihu|(qi?ho?o?|360)browser/i], [[g, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[g, /(.+)/, "$1 " + G], E], [/(comodo_dragon)\/([\w\.]+)/i], [[g, /_/g, " "], E], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [g, E], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [g], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[g, pe], E], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [g, E], [/\bgsa\/([\w\.]+) .*safari\//i], [E, [g, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [E, [g, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [E, [g, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, z + " WebView"], E], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [E, [g, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [g, E], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [E, [g, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [E, g], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [g, [E, Pe, Vt]], [/(webkit|khtml)\/([\w\.]+)/i], [g, E], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[g, "Netscape"], E], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [E, [g, V + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [g, E], [/(cobalt)\/([\w\.]+)/i], [g, [E, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[a, "amd64"]], [/(ia32(?=;))/i], [[a, ce]], [/((?:i[346]|x)86)[;\)]/i], [[a, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[a, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[a, "armhf"]], [/windows (ce|mobile); ppc;/i], [[a, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[a, /ower/, _, ce]], [/(sun4\w)[;\)]/i], [[a, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[a, ce]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [p, ae], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [p, ae], [h, f]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [p, j], [h, f]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [p, j], [h, w]], [/(macintosh);/i], [l, [p, j]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [p, fe], [h, f]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [p, de], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [p, de], [h, f]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [p, ue], [h, f]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [p, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [p, "OPPO"], [h, f]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [p, "Vivo"], [h, f]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [p, "Realme"], [h, f]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [p, he], [h, f]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [p, he], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [p, ie], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [p, ie], [h, f]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [p, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [p, "Nokia"], [h, f]], [/(pixel c)\b/i], [l, [p, Z], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [p, Z], [h, f]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [p, te], [h, f]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [p, te], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [p, "OnePlus"], [h, f]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [p, F], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [p, F], [h, f]], [/(playbook);[-\w\),; ]+(rim)/i], [l, p, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [p, Q], [h, f]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [p, J], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [p, J], [h, f]], [/(nexus 9)/i], [l, [p, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [l, /_/g, " "], [h, f]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [p, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [p, "Meizu"], [h, f]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [p, l, [h, f]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [p, l, [h, w]], [/(surface duo)/i], [l, [p, se], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [p, "Fairphone"], [h, f]], [/(u304aa)/i], [l, [p, "AT&T"], [h, f]], [/\bsie-(\w*)/i], [l, [p, "Siemens"], [h, f]], [/\b(rct\w+) b/i], [l, [p, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [p, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [p, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [p, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [l, [p, "NuVision"], [h, w]], [/\b(k88) b/i], [l, [p, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [l, [p, "ZTE"], [h, f]], [/\b(gen\d{3}) b.+49h/i], [l, [p, "Swiss"], [h, f]], [/\b(zur\d{3}) b/i], [l, [p, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [l, [p, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], l, [h, w]], [/\b(ns-?\w{0,9}) b/i], [l, [p, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [p, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], l, [h, f]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], l, [h, f]], [/\b(ph-1) /i], [l, [p, "Essential"], [h, f]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [p, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [l, [p, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [l, [p, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [l, [p, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [p, l, [h, f]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [p, se], [h, f]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [p, k], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [p, k], [h, f]], [/smart-tv.+(samsung)/i], [p, [h, P]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [p, ae], [h, P]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, ie], [h, P]], [/(apple) ?tv/i], [p, [l, j + " TV"], [h, P]], [/crkey/i], [[l, z + "cast"], [p, Z], [h, P]], [/droid.+aft(\w)( bui|\))/i], [l, [p, F], [h, P]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [p, fe], [h, P]], [/(bravia[\w ]+)( bui|\))/i], [l, [p, te], [h, P]], [/(mitv-\w{5}) bui/i], [l, [p, ue], [h, P]], [/Hbbtv.*(technisat) (.*);/i], [p, l, [h, P]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, Re], [l, Re], [h, P]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, P]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, l, [h, v]], [/droid.+; (shield) bui/i], [l, [p, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [l, [p, te], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [p, se], [h, v]], [/((pebble))app/i], [p, l, [h, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [p, j], [h, N]], [/droid.+; (glass) \d/i], [l, [p, Z], [h, N]], [/droid.+; (wt63?0{2,3})\)/i], [l, [p, k], [h, N]], [/(quest( 2| pro)?)/i], [l, [p, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [h, M]], [/(aeobc)\b/i], [l, [p, F], [h, M]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, f]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, f]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [E, [g, oe + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [E, [g, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [g, E], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [E, g]], os: [[/microsoft (windows) (vista|xp)/i], [g, E], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [g, [E, Pe, ot]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[g, "Windows"], [E, Pe, ot]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[E, /_/g, "."], [g, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[g, _e], [E, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [E, g], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [g, E], [/\(bb(10);/i], [E, [g, Q]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [E, [g, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [E, [g, V + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [E, [g, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [E, [g, "watchOS"]], [/crkey\/([\d\.]+)/i], [E, [g, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[g, me], E], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [g, E], [/(sunos) ?([\w\.\d]*)/i], [[g, "Solaris"], E], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [g, E]] }, q = function(T, x) {
1459
1459
  if (typeof T === R && (x = T, T = r), !(this instanceof q))
1460
1460
  return new q(T, x).getResult();
1461
- var A = typeof u !== g && u.navigator ? u.navigator : r, C = T || (A && A.userAgent ? A.userAgent : p), K = A && A.userAgentData ? A.userAgentData : r, B = x ? ge(it, x) : it, O = A && A.userAgent == C;
1461
+ var A = typeof u !== b && u.navigator ? u.navigator : r, C = T || (A && A.userAgent ? A.userAgent : _), K = A && A.userAgentData ? A.userAgentData : r, B = x ? ge(it, x) : it, O = A && A.userAgent == C;
1462
1462
  return this.getBrowser = function() {
1463
- var y = {};
1464
- return y[b] = r, y[E] = r, le.call(y, C, B.browser), y[I] = zt(y[E]), O && A && A.brave && typeof A.brave.isBrave == _ && (y[b] = "Brave"), y;
1463
+ var S = {};
1464
+ return S[g] = r, S[E] = r, le.call(S, C, B.browser), S[I] = zt(S[E]), O && A && A.brave && typeof A.brave.isBrave == m && (S[g] = "Brave"), S;
1465
1465
  }, this.getCPU = function() {
1466
- var y = {};
1467
- return y[a] = r, le.call(y, C, B.cpu), y;
1466
+ var S = {};
1467
+ return S[a] = r, le.call(S, C, B.cpu), S;
1468
1468
  }, this.getDevice = function() {
1469
- var y = {};
1470
- return y[m] = r, y[l] = r, y[h] = r, le.call(y, C, B.device), O && !y[h] && K && K.mobile && (y[h] = f), O && y[l] == "Macintosh" && A && typeof A.standalone !== g && A.maxTouchPoints && A.maxTouchPoints > 2 && (y[l] = "iPad", y[h] = w), y;
1469
+ var S = {};
1470
+ return S[p] = r, S[l] = r, S[h] = r, le.call(S, C, B.device), O && !S[h] && K && K.mobile && (S[h] = f), O && S[l] == "Macintosh" && A && typeof A.standalone !== b && A.maxTouchPoints && A.maxTouchPoints > 2 && (S[l] = "iPad", S[h] = w), S;
1471
1471
  }, this.getEngine = function() {
1472
- var y = {};
1473
- return y[b] = r, y[E] = r, le.call(y, C, B.engine), y;
1472
+ var S = {};
1473
+ return S[g] = r, S[E] = r, le.call(S, C, B.engine), S;
1474
1474
  }, this.getOS = function() {
1475
- var y = {};
1476
- return y[b] = r, y[E] = r, le.call(y, C, B.os), O && !y[b] && K && K.platform != "Unknown" && (y[b] = K.platform.replace(/chrome os/i, me).replace(/macos/i, _e)), y;
1475
+ var S = {};
1476
+ return S[g] = r, S[E] = r, le.call(S, C, B.os), O && !S[g] && K && K.platform != "Unknown" && (S[g] = K.platform.replace(/chrome os/i, me).replace(/macos/i, _e)), S;
1477
1477
  }, this.getResult = function() {
1478
1478
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
1479
1479
  }, this.getUA = function() {
1480
1480
  return C;
1481
- }, this.setUA = function(y) {
1482
- return C = typeof y === S && y.length > D ? Re(y, D) : y, this;
1481
+ }, this.setUA = function(S) {
1482
+ return C = typeof S === y && S.length > D ? Re(S, D) : S, this;
1483
1483
  }, this.setUA(C), this;
1484
1484
  };
1485
- q.VERSION = d, q.BROWSER = $([b, E, I]), q.CPU = $([a]), q.DEVICE = $([l, m, h, v, f, P, w, N, M]), q.ENGINE = q.OS = $([b, E]), typeof s !== g ? (n.exports && (s = n.exports = q), s.UAParser = q) : typeof u !== g && (u.UAParser = q);
1486
- var re = typeof u !== g && (u.jQuery || u.Zepto);
1485
+ q.VERSION = d, q.BROWSER = $([g, E, I]), q.CPU = $([a]), q.DEVICE = $([l, p, h, v, f, P, w, N, M]), q.ENGINE = q.OS = $([g, E]), typeof s !== b ? (n.exports && (s = n.exports = q), s.UAParser = q) : typeof u !== b && (u.UAParser = q);
1486
+ var re = typeof u !== b && (u.jQuery || u.Zepto);
1487
1487
  if (re && !re.ua) {
1488
1488
  var be = new q();
1489
1489
  re.ua = be.getResult(), re.ua.get = function() {
@@ -1521,9 +1521,9 @@ function Lt() {
1521
1521
  value: !0
1522
1522
  });
1523
1523
  function e(r, d) {
1524
- for (var p in d) Object.defineProperty(r, p, {
1524
+ for (var _ in d) Object.defineProperty(r, _, {
1525
1525
  enumerable: !0,
1526
- get: d[p]
1526
+ get: d[_]
1527
1527
  });
1528
1528
  }
1529
1529
  e(i, {
@@ -1611,7 +1611,7 @@ class kr {
1611
1611
  const s = e.headers, u = {};
1612
1612
  return e.cookies.getAll().forEach((r) => {
1613
1613
  u[r.name] = r.value;
1614
- }), L.debug("NextJsAdapter parseRequest ..."), {
1614
+ }), L.debug({ body: o, formData: n }, "NextJsAdapter.parseRequest"), {
1615
1615
  url: t,
1616
1616
  headers: s,
1617
1617
  body: o,
@@ -1672,7 +1672,7 @@ class Ur {
1672
1672
  const t = await this.adapter.parseRequest(e), o = await this.processRequest(t);
1673
1673
  return this.adapter.createResponse(o);
1674
1674
  } catch (t) {
1675
- L.error({ error: t }, "router error");
1675
+ L.error({ error: t }, "router error");
1676
1676
  const o = {};
1677
1677
  o[W] = H.applicationJson;
1678
1678
  const n = {
@@ -1697,45 +1697,41 @@ class Ur {
1697
1697
  return this.createErrorResponse(409, "Authentication required");
1698
1698
  L.debug({ hostUrl: s, token: u }, "processRequest");
1699
1699
  const r = e.clone(), d = r.method;
1700
- try {
1701
- if (d === "GET") {
1702
- const p = et(t.toString(), ["m"]), c = await this.http.get({
1703
- url: s,
1704
- data: p,
1705
- token: u
1706
- });
1707
- return this.createResponse({ url: s, result: c });
1708
- } else if (d === "POST") {
1709
- let p;
1710
- const c = e.headers.get(W) || "";
1711
- if (c.includes(H.applicationJson) || c.includes(H.applicationXwwwFormUrlencoded))
1712
- p = e.body;
1713
- else if (c.includes(H.multipartFormData)) {
1714
- const g = c.match(/boundary=([^\s;]+)/);
1715
- if (!g)
1716
- return this.createErrorResponse(411, "Missing boundary in form data");
1717
- const R = await r.arrayBuffer();
1718
- p = {
1719
- boundary: g[1],
1720
- buffer: Buffer.from(R)
1721
- };
1722
- const I = e.formData;
1723
- if (I)
1724
- for (const [l, b] of Object.entries(I))
1725
- l !== "file" && (p[l] = b);
1726
- } else
1727
- return this.createErrorResponse(410, "Unsupported content type");
1728
- const _ = await this.http.post({
1729
- url: s,
1730
- data: p,
1731
- token: u
1732
- });
1733
- return this.createResponse({ url: s, result: _ });
1734
- }
1735
- return this.createErrorResponse(405, "Method not allowed, only supported GET or POST");
1736
- } catch (p) {
1737
- return L.error({ "error:": p }, "API request error"), this.createErrorResponse(500, "API request failed");
1700
+ if (d === "GET") {
1701
+ const _ = et(t.toString(), ["m"]), c = await this.http.get({
1702
+ url: s,
1703
+ data: _,
1704
+ token: u
1705
+ });
1706
+ return this.createResponse({ url: s, result: c });
1707
+ } else if (d === "POST") {
1708
+ let _;
1709
+ const c = e.headers.get(W) || "";
1710
+ if (c.includes(H.applicationJson) || c.includes(H.applicationXwwwFormUrlencoded))
1711
+ _ = e.body;
1712
+ else if (c.includes(H.multipartFormData)) {
1713
+ const b = c.match(/boundary=([^\s;]+)/);
1714
+ if (!b)
1715
+ return this.createErrorResponse(411, "Missing boundary in form data");
1716
+ const R = await r.arrayBuffer();
1717
+ _ = {
1718
+ boundary: b[1],
1719
+ buffer: Buffer.from(R)
1720
+ };
1721
+ const I = e.formData;
1722
+ if (I)
1723
+ for (const [l, g] of Object.entries(I))
1724
+ l !== "file" && (_[l] = g);
1725
+ } else
1726
+ return this.createErrorResponse(410, "Unsupported content type");
1727
+ const m = await this.http.post({
1728
+ url: s,
1729
+ data: _,
1730
+ token: u
1731
+ });
1732
+ return this.createResponse({ url: s, result: m });
1738
1733
  }
1734
+ return this.createErrorResponse(405, "Method not allowed, only supported GET or POST");
1739
1735
  }
1740
1736
  createResponse({ url: e, result: t }) {
1741
1737
  const o = {};
@@ -1835,9 +1831,9 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1835
1831
  let n;
1836
1832
  const s = e && e.storage && e.storage.get ? Xt(e.storage) : {}, u = new Headers(s);
1837
1833
  if (t instanceof FormData ? n = t : (n = JSON.stringify(t), u.set(W, H.applicationJson)), o)
1838
- for (let p in o) {
1839
- const c = o[p];
1840
- c && u.set(p, c);
1834
+ for (let _ in o) {
1835
+ const c = o[_];
1836
+ c && u.set(_, c);
1841
1837
  }
1842
1838
  L.info({
1843
1839
  url: i,
@@ -1849,7 +1845,7 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1849
1845
  body: n
1850
1846
  });
1851
1847
  if (r.ok) {
1852
- const p = Object.fromEntries(r.headers.entries()), c = { ...await r.json(), headers: p };
1848
+ const _ = Object.fromEntries(r.headers.entries()), c = { ...await r.json(), headers: _ };
1853
1849
  return L.debug(c, "POST_RESULT"), c;
1854
1850
  }
1855
1851
  const d = {
@@ -1931,25 +1927,25 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1931
1927
  httpOnly: !0,
1932
1928
  path: "/"
1933
1929
  }, Pr = (i, e) => {
1934
- const { id: t, name: o, username: n, nickname: s, headImg: u, token: r, lastLoginTime: d, deviceId: p, userType: c, mustChangePwd: _ } = i, g = {
1930
+ const { id: t, name: o, username: n, nickname: s, headImg: u, token: r, lastLoginTime: d, deviceId: _, userType: c, mustChangePwd: m } = i, b = {
1935
1931
  id: t,
1936
1932
  name: o,
1937
1933
  username: n,
1938
1934
  nickname: s || o,
1939
1935
  headImg: u,
1940
1936
  lastLoginTime: d,
1941
- deviceId: p,
1937
+ deviceId: _,
1942
1938
  userType: c,
1943
1939
  accountType: 0,
1944
1940
  needToReview: !1,
1945
1941
  socketOnline: !1,
1946
- mustChangePwd: _
1942
+ mustChangePwd: m
1947
1943
  };
1948
1944
  e.cookies[U.IBOOT_TOKEN] = {
1949
1945
  value: r,
1950
1946
  options: Mt()
1951
1947
  }, e.cookies[U.IBOOT_USER] = {
1952
- value: JSON.stringify(g),
1948
+ value: JSON.stringify(b),
1953
1949
  options: Mt()
1954
1950
  };
1955
1951
  }, yr = (i) => {
@@ -2000,19 +1996,19 @@ class Sr {
2000
1996
  const d = u[r] ?? void 0;
2001
1997
  if (d) {
2002
1998
  if (typeof d == "object")
2003
- at(d) && d.forEach((p, c) => {
2004
- if (p)
2005
- for (const _ in p) {
2006
- const g = p[_];
2007
- if (g && g.toString().length > 0) {
2008
- const R = `[${s.toString()}].${r + `[${c.toString()}].${_}`}=${we(g)}`;
1999
+ at(d) && d.forEach((_, c) => {
2000
+ if (_)
2001
+ for (const m in _) {
2002
+ const b = _[m];
2003
+ if (b && b.toString().length > 0) {
2004
+ const R = `[${s.toString()}].${r + `[${c.toString()}].${m}`}=${we(b)}`;
2009
2005
  t.push(o + R);
2010
2006
  }
2011
2007
  }
2012
2008
  });
2013
2009
  else if (d.toString().length > 0) {
2014
- const p = `[${s.toString()}].${r}=${we(d.toString())}`;
2015
- t.push(o + p);
2010
+ const _ = `[${s.toString()}].${r}=${we(d.toString())}`;
2011
+ t.push(o + _);
2016
2012
  }
2017
2013
  }
2018
2014
  }
@@ -2035,11 +2031,11 @@ class Sr {
2035
2031
  const t = "&key=" + await this.helloIboot(), o = [];
2036
2032
  for (const d in e)
2037
2033
  o.push(d);
2038
- o.sort((d, p) => d.toLowerCase().localeCompare(p.toLowerCase()));
2034
+ o.sort((d, _) => d.toLowerCase().localeCompare(_.toLowerCase()));
2039
2035
  const n = [];
2040
2036
  o.forEach((d) => {
2041
- let p = e[d];
2042
- typeof p == "object" && (p = JSON.stringify(p)), n.push(d + "=" + p);
2037
+ let _ = e[d];
2038
+ typeof _ == "object" && (_ = JSON.stringify(_)), n.push(d + "=" + _);
2043
2039
  });
2044
2040
  const s = n.join("&"), u = $t.md5((s + t).toLocaleUpperCase()), r = {
2045
2041
  params: s,
@@ -2104,11 +2100,11 @@ class Sr {
2104
2100
  }
2105
2101
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2106
2102
  async get({ url: e, data: t, token: o, cache: n = "default" }) {
2107
- const s = this.assemblyParameter(t), u = this.convertUrlParameter(s), r = await this.assemblyHeader({ urlParams: u, token: o }), d = `${this.getApiUrl(e)}?${u.toString()}`, p = {
2103
+ const s = this.assemblyParameter(t), u = this.convertUrlParameter(s), r = await this.assemblyHeader({ urlParams: u, token: o }), d = `${this.getApiUrl(e)}?${u.toString()}`, _ = {
2108
2104
  url: d,
2109
2105
  headers: r
2110
2106
  };
2111
- L.info(p, "GET");
2107
+ L.info(_, "GET");
2112
2108
  const c = await fetch(d, {
2113
2109
  method: "GET",
2114
2110
  headers: r,
@@ -2116,46 +2112,45 @@ class Sr {
2116
2112
  cache: n
2117
2113
  });
2118
2114
  if (c.ok) {
2119
- const g = Object.fromEntries(c.headers.entries()), R = { ...await c.json(), headers: g };
2115
+ const b = Object.fromEntries(c.headers.entries()), R = { ...await c.json(), headers: b };
2120
2116
  return L.debug(R, "GET_RESULT"), R;
2121
2117
  }
2122
- const _ = {
2118
+ const m = {
2123
2119
  code: c.status,
2124
2120
  success: !1,
2125
2121
  msg: c.statusText
2126
2122
  };
2127
- return L.error(_), _;
2123
+ return L.error(m), m;
2128
2124
  }
2129
2125
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2130
2126
  async post({ url: e, data: t, token: o, cache: n = "default" }) {
2131
- t = t ? { ...t } : {};
2132
- const s = t.buffer ?? void 0, u = t.boundary ?? void 0;
2133
- s && delete t.buffer, u && delete t.boundary;
2134
- const r = this.assemblyParameter(t), d = this.convertUrlParameter(r), p = await this.assemblyHeader({ urlParams: d, token: o });
2135
- s && u && (p[W] = `multipart/form-data; boundary=${u}`);
2136
- const c = this.getApiUrl(e), _ = {
2137
- url: c,
2138
- headers: p,
2139
- params: r
2127
+ const s = { ...t }, u = s.buffer ?? void 0, r = s.boundary ?? void 0;
2128
+ u && delete s.buffer, r && delete s.boundary;
2129
+ const d = this.assemblyParameter(s), _ = this.convertUrlParameter(d), c = await this.assemblyHeader({ urlParams: _, token: o });
2130
+ u && r && (c[W] = `multipart/form-data; boundary=${r}`);
2131
+ const m = this.getApiUrl(e), b = {
2132
+ url: m,
2133
+ headers: c,
2134
+ params: d
2140
2135
  };
2141
- L.info(_, "POST");
2142
- const g = s ? `${c}?${d}` : c, R = await fetch(g, {
2136
+ L.info(b, "POST");
2137
+ const R = u ? `${m}?${_}` : m, y = await fetch(R, {
2143
2138
  method: "POST",
2144
- headers: p,
2145
- body: s || d.toString(),
2139
+ headers: c,
2140
+ body: u || _,
2146
2141
  credentials: "include",
2147
2142
  cache: n
2148
2143
  });
2149
- if (R.ok) {
2150
- const I = Object.fromEntries(R.headers.entries()), l = { ...await R.json(), headers: I };
2151
- return L.debug(l, "POST_RESULT"), l;
2144
+ if (y.ok) {
2145
+ const l = Object.fromEntries(y.headers.entries()), g = { ...await y.json(), headers: l };
2146
+ return L.debug(g, "POST_RESULT"), g;
2152
2147
  }
2153
- const S = {
2154
- code: R.status,
2148
+ const I = {
2149
+ code: y.status,
2155
2150
  success: !1,
2156
- msg: R.statusText
2151
+ msg: y.statusText
2157
2152
  };
2158
- return L.error(S), S;
2153
+ return L.error(I), I;
2159
2154
  }
2160
2155
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2161
2156
  async stream({ url: e, data: t, token: o }) {
@@ -2164,26 +2159,26 @@ class Sr {
2164
2159
  n && delete t.buffer, s && delete t.boundary;
2165
2160
  const u = this.assemblyParameter(t), r = this.convertUrlParameter(u), d = await this.assemblyHeader({ urlParams: r, token: o });
2166
2161
  n && s && (d[W] = `multipart/form-data; boundary=${s}`), d.Connection = "keep-alive", d["X-Accel-Buffering"] = "no", d["Cache-Control"] = "no-cache";
2167
- const p = this.getApiUrl(e);
2162
+ const _ = this.getApiUrl(e);
2168
2163
  try {
2169
- const c = n ? `${p}?${r}` : p, _ = {
2170
- url: p,
2164
+ const c = n ? `${_}?${r}` : _, m = {
2165
+ url: _,
2171
2166
  headers: d,
2172
2167
  params: u
2173
2168
  };
2174
- L.info(_, "STREAM");
2175
- const g = await fetch(c, {
2169
+ L.info(m, "STREAM");
2170
+ const b = await fetch(c, {
2176
2171
  method: "POST",
2177
2172
  headers: d,
2178
2173
  body: n || r.toString(),
2179
2174
  credentials: "include"
2180
2175
  });
2181
- if (!g.ok)
2182
- throw new Error(`HTTP error! status: ${g.status}`);
2183
- if (!g.body)
2176
+ if (!b.ok)
2177
+ throw new Error(`HTTP error! status: ${b.status}`);
2178
+ if (!b.body)
2184
2179
  throw new Error("No response body");
2185
- const R = Object.fromEntries(g.headers.entries());
2186
- return new Response(g.body, {
2180
+ const R = Object.fromEntries(b.headers.entries());
2181
+ return new Response(b.body, {
2187
2182
  headers: R
2188
2183
  });
2189
2184
  } catch (c) {