iboot-http-client 1.3.2 → 1.3.3

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.
@@ -29,72 +29,72 @@ const xr = {
29
29
  ignore: "pid,hostname",
30
30
  messageFormat: "{msg}",
31
31
  singleLine: !0
32
- }), L = Kt({
32
+ }), k = Kt({
33
33
  name: process.env.APP_NAME ?? "iBoot",
34
34
  level: process.env.APP_ENV === "production" ? "info" : "debug",
35
35
  nestedKey: "payload"
36
- }, Jt), at = (i) => Array.isArray(i) || typeof i == "object" && Object.prototype.toString.call(i) === "[object Array]", ut = (i) => {
37
- const e = i || 32, t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", o = t.length;
36
+ }, Jt), at = (o) => Array.isArray(o) || typeof o == "object" && Object.prototype.toString.call(o) === "[object Array]", ut = (o) => {
37
+ const e = o || 32, t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", i = t.length;
38
38
  let n = "";
39
39
  for (let s = 0; s < e; s++)
40
- n += t.charAt(Math.floor(Math.random() * o));
40
+ n += t.charAt(Math.floor(Math.random() * i));
41
41
  return n;
42
- }, et = (i, e) => {
42
+ }, et = (o, e) => {
43
43
  const t = {};
44
- return i.split("&").forEach((n) => {
44
+ return o.split("&").forEach((n) => {
45
45
  const s = n.split("=");
46
46
  s[1] && (!e || e.indexOf(s[0]) == -1) && (t[s[0]] = s[1]);
47
47
  }), t;
48
- }, we = (i) => !i || i == "" || i.length == 0 ? "" : encodeURIComponent(i).replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\'/g, "%27").replace(/\!/g, "%21").replace(/\~/g, "%7E"), Lr = (i, e) => {
48
+ }, we = (o) => !o || o == "" || o.length == 0 ? "" : encodeURIComponent(o).replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\'/g, "%27").replace(/\!/g, "%21").replace(/\~/g, "%7E"), Lr = (o, e) => {
49
49
  const t = {
50
- "M+": i.getMonth() + 1,
50
+ "M+": o.getMonth() + 1,
51
51
  //月份
52
- "d+": i.getDate(),
52
+ "d+": o.getDate(),
53
53
  //日
54
- "h+": i.getHours(),
54
+ "h+": o.getHours(),
55
55
  //小时
56
- "m+": i.getMinutes(),
56
+ "m+": o.getMinutes(),
57
57
  //分
58
- "s+": i.getSeconds(),
58
+ "s+": o.getSeconds(),
59
59
  //秒
60
- "q+": Math.floor((i.getMonth() + 3) / 3),
60
+ "q+": Math.floor((o.getMonth() + 3) / 3),
61
61
  //季度
62
- S: i.getMilliseconds()
62
+ S: o.getMilliseconds()
63
63
  //毫秒
64
64
  };
65
65
  if (/(y+)/.test(e)) {
66
66
  const n = new RegExp(/(y+)/).exec(e);
67
67
  let s = 0;
68
- n && n.length > 0 && (s = n[0].length), e = e.replace(/(y+)/, i.getFullYear() + "").substring(4 - s);
68
+ n && n.length > 0 && (s = n[0].length), e = e.replace(/(y+)/, o.getFullYear() + "").substring(4 - s);
69
69
  }
70
- for (const o in t) {
71
- const n = "(" + o + ")", s = new RegExp(n);
70
+ for (const i in t) {
71
+ const n = "(" + i + ")", s = new RegExp(n);
72
72
  if (s.test(e)) {
73
73
  const u = s.exec(e);
74
74
  let r = 0;
75
- u && u.length > 0 && (r = u[0].length), e = e.replace(s, r == 1 ? t[o].toString() : ("00" + t[o]).substring(t[o].toString().length));
75
+ u && u.length > 0 && (r = u[0].length), e = e.replace(s, r == 1 ? t[i].toString() : ("00" + t[i]).substring(t[i].toString().length));
76
76
  }
77
77
  }
78
78
  return e;
79
79
  };
80
80
  var Ee = { exports: {} }, Se = {}, Ae = {}, Te = {}, ct;
81
81
  function Qt() {
82
- return ct || (ct = 1, (function(i) {
83
- Object.defineProperty(i, "__esModule", {
82
+ return ct || (ct = 1, (function(o) {
83
+ Object.defineProperty(o, "__esModule", {
84
84
  value: !0
85
- }), Object.defineProperty(i, "detectDomainLocale", {
85
+ }), Object.defineProperty(o, "detectDomainLocale", {
86
86
  enumerable: !0,
87
87
  get: function() {
88
88
  return e;
89
89
  }
90
90
  });
91
- function e(t, o, n) {
91
+ function e(t, i, n) {
92
92
  if (t) {
93
93
  n && (n = n.toLowerCase());
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((_) => _.toLowerCase() === n))
97
+ if (i === d || n === r.defaultLocale.toLowerCase() || (u = r.locales) != null && u.some((_) => _.toLowerCase() === n))
98
98
  return r;
99
99
  }
100
100
  }
@@ -103,10 +103,10 @@ function Qt() {
103
103
  }
104
104
  var Ie = {}, Oe = {}, lt;
105
105
  function Zt() {
106
- return lt || (lt = 1, (function(i) {
107
- Object.defineProperty(i, "__esModule", {
106
+ return lt || (lt = 1, (function(o) {
107
+ Object.defineProperty(o, "__esModule", {
108
108
  value: !0
109
- }), Object.defineProperty(i, "removeTrailingSlash", {
109
+ }), Object.defineProperty(o, "removeTrailingSlash", {
110
110
  enumerable: !0,
111
111
  get: function() {
112
112
  return e;
@@ -119,21 +119,21 @@ function Zt() {
119
119
  }
120
120
  var xe = {}, Ne = {}, dt;
121
121
  function tt() {
122
- return dt || (dt = 1, (function(i) {
123
- Object.defineProperty(i, "__esModule", {
122
+ return dt || (dt = 1, (function(o) {
123
+ Object.defineProperty(o, "__esModule", {
124
124
  value: !0
125
- }), Object.defineProperty(i, "parsePath", {
125
+ }), Object.defineProperty(o, "parsePath", {
126
126
  enumerable: !0,
127
127
  get: function() {
128
128
  return e;
129
129
  }
130
130
  });
131
131
  function e(t) {
132
- const o = t.indexOf("#"), n = t.indexOf("?"), s = n > -1 && (o < 0 || n < o);
133
- return s || o > -1 ? {
134
- pathname: t.substring(0, s ? n : o),
135
- query: s ? t.substring(n, o > -1 ? o : void 0) : "",
136
- hash: o > -1 ? t.slice(o) : ""
132
+ const i = t.indexOf("#"), n = t.indexOf("?"), s = n > -1 && (i < 0 || n < i);
133
+ return s || i > -1 ? {
134
+ pathname: t.substring(0, s ? n : i),
135
+ query: s ? t.substring(n, i > -1 ? i : void 0) : "",
136
+ hash: i > -1 ? t.slice(i) : ""
137
137
  } : {
138
138
  pathname: t,
139
139
  query: "",
@@ -144,77 +144,77 @@ function tt() {
144
144
  }
145
145
  var ht;
146
146
  function qt() {
147
- return ht || (ht = 1, (function(i) {
148
- Object.defineProperty(i, "__esModule", {
147
+ return ht || (ht = 1, (function(o) {
148
+ Object.defineProperty(o, "__esModule", {
149
149
  value: !0
150
- }), Object.defineProperty(i, "addPathPrefix", {
150
+ }), Object.defineProperty(o, "addPathPrefix", {
151
151
  enumerable: !0,
152
152
  get: function() {
153
153
  return t;
154
154
  }
155
155
  });
156
156
  const e = tt();
157
- function t(o, n) {
158
- if (!o.startsWith("/") || !n)
159
- return o;
160
- const { pathname: s, query: u, hash: r } = (0, e.parsePath)(o);
157
+ function t(i, n) {
158
+ if (!i.startsWith("/") || !n)
159
+ return i;
160
+ const { pathname: s, query: u, hash: r } = (0, e.parsePath)(i);
161
161
  return "" + n + s + u + r;
162
162
  }
163
163
  })(xe)), xe;
164
164
  }
165
165
  var Ce = {}, ft;
166
166
  function er() {
167
- return ft || (ft = 1, (function(i) {
168
- Object.defineProperty(i, "__esModule", {
167
+ return ft || (ft = 1, (function(o) {
168
+ Object.defineProperty(o, "__esModule", {
169
169
  value: !0
170
- }), Object.defineProperty(i, "addPathSuffix", {
170
+ }), Object.defineProperty(o, "addPathSuffix", {
171
171
  enumerable: !0,
172
172
  get: function() {
173
173
  return t;
174
174
  }
175
175
  });
176
176
  const e = tt();
177
- function t(o, n) {
178
- if (!o.startsWith("/") || !n)
179
- return o;
180
- const { pathname: s, query: u, hash: r } = (0, e.parsePath)(o);
177
+ function t(i, n) {
178
+ if (!i.startsWith("/") || !n)
179
+ return i;
180
+ const { pathname: s, query: u, hash: r } = (0, e.parsePath)(i);
181
181
  return "" + s + n + u + r;
182
182
  }
183
183
  })(Ce)), Ce;
184
184
  }
185
185
  var Le = {}, ke = {}, pt;
186
186
  function rt() {
187
- return pt || (pt = 1, (function(i) {
188
- Object.defineProperty(i, "__esModule", {
187
+ return pt || (pt = 1, (function(o) {
188
+ Object.defineProperty(o, "__esModule", {
189
189
  value: !0
190
- }), Object.defineProperty(i, "pathHasPrefix", {
190
+ }), Object.defineProperty(o, "pathHasPrefix", {
191
191
  enumerable: !0,
192
192
  get: function() {
193
193
  return t;
194
194
  }
195
195
  });
196
196
  const e = tt();
197
- function t(o, n) {
198
- if (typeof o != "string")
197
+ function t(i, n) {
198
+ if (typeof i != "string")
199
199
  return !1;
200
- const { pathname: s } = (0, e.parsePath)(o);
200
+ const { pathname: s } = (0, e.parsePath)(i);
201
201
  return s === n || s.startsWith(n + "/");
202
202
  }
203
203
  })(ke)), ke;
204
204
  }
205
205
  var mt;
206
206
  function tr() {
207
- return mt || (mt = 1, (function(i) {
208
- Object.defineProperty(i, "__esModule", {
207
+ return mt || (mt = 1, (function(o) {
208
+ Object.defineProperty(o, "__esModule", {
209
209
  value: !0
210
- }), Object.defineProperty(i, "addLocale", {
210
+ }), Object.defineProperty(o, "addLocale", {
211
211
  enumerable: !0,
212
212
  get: function() {
213
- return o;
213
+ return i;
214
214
  }
215
215
  });
216
216
  const e = qt(), t = rt();
217
- function o(n, s, u, r) {
217
+ function i(n, s, u, r) {
218
218
  if (!s || s === u) return n;
219
219
  const d = n.toLowerCase();
220
220
  return !r && ((0, t.pathHasPrefix)(d, "/api") || (0, t.pathHasPrefix)(d, "/" + s.toLowerCase())) ? n : (0, e.addPathPrefix)(n, "/" + s);
@@ -223,37 +223,37 @@ function tr() {
223
223
  }
224
224
  var _t;
225
225
  function rr() {
226
- return _t || (_t = 1, (function(i) {
227
- Object.defineProperty(i, "__esModule", {
226
+ return _t || (_t = 1, (function(o) {
227
+ Object.defineProperty(o, "__esModule", {
228
228
  value: !0
229
- }), Object.defineProperty(i, "formatNextPathnameInfo", {
229
+ }), Object.defineProperty(o, "formatNextPathnameInfo", {
230
230
  enumerable: !0,
231
231
  get: function() {
232
232
  return s;
233
233
  }
234
234
  });
235
- const e = Zt(), t = qt(), o = er(), n = tr();
235
+ const e = Zt(), t = qt(), i = er(), n = tr();
236
236
  function s(u) {
237
237
  let r = (0, n.addLocale)(u.pathname, u.locale, u.buildId ? void 0 : u.defaultLocale, u.ignorePrefix);
238
- return (u.buildId || !u.trailingSlash) && (r = (0, e.removeTrailingSlash)(r)), u.buildId && (r = (0, o.addPathSuffix)((0, t.addPathPrefix)(r, "/_next/data/" + u.buildId), u.pathname === "/" ? "index.json" : ".json")), r = (0, t.addPathPrefix)(r, u.basePath), !u.buildId && u.trailingSlash ? r.endsWith("/") ? r : (0, o.addPathSuffix)(r, "/") : (0, e.removeTrailingSlash)(r);
238
+ return (u.buildId || !u.trailingSlash) && (r = (0, e.removeTrailingSlash)(r)), u.buildId && (r = (0, i.addPathSuffix)((0, t.addPathPrefix)(r, "/_next/data/" + u.buildId), u.pathname === "/" ? "index.json" : ".json")), r = (0, t.addPathPrefix)(r, u.basePath), !u.buildId && u.trailingSlash ? r.endsWith("/") ? r : (0, i.addPathSuffix)(r, "/") : (0, e.removeTrailingSlash)(r);
239
239
  }
240
240
  })(Ie)), Ie;
241
241
  }
242
242
  var Ue = {}, gt;
243
243
  function nr() {
244
- return gt || (gt = 1, (function(i) {
245
- Object.defineProperty(i, "__esModule", {
244
+ return gt || (gt = 1, (function(o) {
245
+ Object.defineProperty(o, "__esModule", {
246
246
  value: !0
247
- }), Object.defineProperty(i, "getHostname", {
247
+ }), Object.defineProperty(o, "getHostname", {
248
248
  enumerable: !0,
249
249
  get: function() {
250
250
  return e;
251
251
  }
252
252
  });
253
- function e(t, o) {
253
+ function e(t, i) {
254
254
  let n;
255
- if (o?.host && !Array.isArray(o.host))
256
- n = o.host.toString().split(":", 1)[0];
255
+ if (i?.host && !Array.isArray(i.host))
256
+ n = i.host.toString().split(":", 1)[0];
257
257
  else if (t.hostname)
258
258
  n = t.hostname;
259
259
  else return;
@@ -262,20 +262,20 @@ function nr() {
262
262
  })(Ue)), Ue;
263
263
  }
264
264
  var De = {}, Me = {}, bt;
265
- function or() {
266
- return bt || (bt = 1, (function(i) {
267
- Object.defineProperty(i, "__esModule", {
265
+ function ir() {
266
+ return bt || (bt = 1, (function(o) {
267
+ Object.defineProperty(o, "__esModule", {
268
268
  value: !0
269
- }), Object.defineProperty(i, "normalizeLocalePath", {
269
+ }), Object.defineProperty(o, "normalizeLocalePath", {
270
270
  enumerable: !0,
271
271
  get: function() {
272
272
  return e;
273
273
  }
274
274
  });
275
- function e(t, o) {
275
+ function e(t, i) {
276
276
  let n;
277
277
  const s = t.split("/");
278
- return (o || []).some((u) => s[1] && s[1].toLowerCase() === u.toLowerCase() ? (n = u, s.splice(1, 1), t = s.join("/") || "/", !0) : !1), {
278
+ return (i || []).some((u) => s[1] && s[1].toLowerCase() === u.toLowerCase() ? (n = u, s.splice(1, 1), t = s.join("/") || "/", !0) : !1), {
279
279
  pathname: t,
280
280
  detectedLocale: n
281
281
  };
@@ -283,44 +283,44 @@ function or() {
283
283
  })(Me)), Me;
284
284
  }
285
285
  var je = {}, wt;
286
- function ir() {
287
- return wt || (wt = 1, (function(i) {
288
- Object.defineProperty(i, "__esModule", {
286
+ function or() {
287
+ return wt || (wt = 1, (function(o) {
288
+ Object.defineProperty(o, "__esModule", {
289
289
  value: !0
290
- }), Object.defineProperty(i, "removePathPrefix", {
290
+ }), Object.defineProperty(o, "removePathPrefix", {
291
291
  enumerable: !0,
292
292
  get: function() {
293
293
  return t;
294
294
  }
295
295
  });
296
296
  const e = rt();
297
- function t(o, n) {
298
- if (!(0, e.pathHasPrefix)(o, n))
299
- return o;
300
- const s = o.slice(n.length);
297
+ function t(i, n) {
298
+ if (!(0, e.pathHasPrefix)(i, n))
299
+ return i;
300
+ const s = i.slice(n.length);
301
301
  return s.startsWith("/") ? s : "/" + s;
302
302
  }
303
303
  })(je)), je;
304
304
  }
305
305
  var Et;
306
306
  function sr() {
307
- return Et || (Et = 1, (function(i) {
308
- Object.defineProperty(i, "__esModule", {
307
+ return Et || (Et = 1, (function(o) {
308
+ Object.defineProperty(o, "__esModule", {
309
309
  value: !0
310
- }), Object.defineProperty(i, "getNextPathnameInfo", {
310
+ }), Object.defineProperty(o, "getNextPathnameInfo", {
311
311
  enumerable: !0,
312
312
  get: function() {
313
313
  return n;
314
314
  }
315
315
  });
316
- const e = or(), t = ir(), o = rt();
316
+ const e = ir(), t = or(), i = rt();
317
317
  function n(s, u) {
318
318
  var r;
319
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)(m.pathname, d) && (m.pathname = (0, t.removePathPrefix)(m.pathname, d), m.basePath = d);
323
+ d && (0, i.pathHasPrefix)(m.pathname, d) && (m.pathname = (0, t.removePathPrefix)(m.pathname, d), m.basePath = d);
324
324
  let b = m.pathname;
325
325
  if (m.pathname.startsWith("/_next/data/") && m.pathname.endsWith(".json")) {
326
326
  const y = m.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), I = y[0];
@@ -338,16 +338,16 @@ function sr() {
338
338
  }
339
339
  var vt;
340
340
  function Ht() {
341
- return vt || (vt = 1, (function(i) {
342
- Object.defineProperty(i, "__esModule", {
341
+ return vt || (vt = 1, (function(o) {
342
+ Object.defineProperty(o, "__esModule", {
343
343
  value: !0
344
- }), Object.defineProperty(i, "NextURL", {
344
+ }), Object.defineProperty(o, "NextURL", {
345
345
  enumerable: !0,
346
346
  get: function() {
347
347
  return d;
348
348
  }
349
349
  });
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)/;
350
+ const e = Qt(), t = rr(), i = nr(), n = sr(), s = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
351
351
  function u(_, c) {
352
352
  return new URL(String(_).replace(s, "localhost"), c && String(c).replace(s, "localhost"));
353
353
  }
@@ -367,7 +367,7 @@ function Ht() {
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
- }), l = (0, o.getHostname)(this[r].url, this[r].options.headers);
370
+ }), l = (0, i.getHostname)(this[r].url, this[r].options.headers);
371
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
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
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;
@@ -509,8 +509,8 @@ function Ht() {
509
509
  }
510
510
  var qe = {}, He = {}, Rt;
511
511
  function ar() {
512
- return Rt || (Rt = 1, (function(i) {
513
- Object.defineProperty(i, "__esModule", {
512
+ return Rt || (Rt = 1, (function(o) {
513
+ Object.defineProperty(o, "__esModule", {
514
514
  value: !0
515
515
  });
516
516
  function e(_e, ge) {
@@ -519,7 +519,7 @@ function ar() {
519
519
  get: ge[$]
520
520
  });
521
521
  }
522
- e(i, {
522
+ e(o, {
523
523
  ACTION_SUFFIX: function() {
524
524
  return d;
525
525
  },
@@ -536,7 +536,7 @@ function ar() {
536
536
  return te;
537
537
  },
538
538
  GSP_NO_RETURNED_VALUE: function() {
539
- return ie;
539
+ return oe;
540
540
  },
541
541
  GSSP_COMPONENT_MEMBER_ERROR: function() {
542
542
  return ee;
@@ -584,7 +584,7 @@ function ar() {
584
584
  return _;
585
585
  },
586
586
  NEXT_INTERCEPTION_MARKER_PREFIX: function() {
587
- return o;
587
+ return i;
588
588
  },
589
589
  NEXT_META_SUFFIX: function() {
590
590
  return c;
@@ -605,7 +605,7 @@ function ar() {
605
605
  return s;
606
606
  },
607
607
  PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
608
- return G;
608
+ return F;
609
609
  },
610
610
  ROOT_DIR_ALIAS: function() {
611
611
  return N;
@@ -620,7 +620,7 @@ function ar() {
620
620
  return j;
621
621
  },
622
622
  RSC_ACTION_VALIDATE_ALIAS: function() {
623
- return F;
623
+ return H;
624
624
  },
625
625
  RSC_MOD_REF_PROXY_ALIAS: function() {
626
626
  return D;
@@ -635,7 +635,7 @@ function ar() {
635
635
  return de;
636
636
  },
637
637
  SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
638
- return oe;
638
+ return ie;
639
639
  },
640
640
  SERVER_PROPS_SSG_CONFLICT: function() {
641
641
  return V;
@@ -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", _ = ".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 = [
665
+ const t = "nxtP", i = "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", H = "private-next-rsc-action-validate", j = "private-next-rsc-server-reference", J = "private-next-rsc-action-encryption", Q = "private-next-rsc-action-client-wrapper", F = "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", ie = "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", oe = "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",
@@ -672,7 +672,7 @@ function ar() {
672
672
  edge: "edge",
673
673
  experimentalEdge: "experimental-edge",
674
674
  nodejs: "nodejs"
675
- }, k = {
675
+ }, L = {
676
676
  /**
677
677
  * The layer for the shared code between the client and server bundles.
678
678
  */
@@ -718,33 +718,33 @@ function ar() {
718
718
  */
719
719
  appRouteHandler: "app-route-handler"
720
720
  }, pe = {
721
- ...k,
721
+ ...L,
722
722
  GROUP: {
723
723
  serverOnly: [
724
- k.reactServerComponents,
725
- k.actionBrowser,
726
- k.appMetadataRoute,
727
- k.appRouteHandler,
728
- k.instrument
724
+ L.reactServerComponents,
725
+ L.actionBrowser,
726
+ L.appMetadataRoute,
727
+ L.appRouteHandler,
728
+ L.instrument
729
729
  ],
730
730
  clientOnly: [
731
- k.serverSideRendering,
732
- k.appPagesBrowser
731
+ L.serverSideRendering,
732
+ L.appPagesBrowser
733
733
  ],
734
734
  nonClientServerTarget: [
735
735
  // middleware and pages api
736
- k.middleware,
737
- k.api
736
+ L.middleware,
737
+ L.api
738
738
  ],
739
739
  app: [
740
- k.reactServerComponents,
741
- k.actionBrowser,
742
- k.appMetadataRoute,
743
- k.appRouteHandler,
744
- k.serverSideRendering,
745
- k.appPagesBrowser,
746
- k.shared,
747
- k.instrument
740
+ L.reactServerComponents,
741
+ L.actionBrowser,
742
+ L.appMetadataRoute,
743
+ L.appRouteHandler,
744
+ L.serverSideRendering,
745
+ L.appPagesBrowser,
746
+ L.shared,
747
+ L.instrument
748
748
  ]
749
749
  }
750
750
  }, me = {
@@ -757,8 +757,8 @@ function ar() {
757
757
  }
758
758
  var Pt;
759
759
  function Ft() {
760
- return Pt || (Pt = 1, (function(i) {
761
- Object.defineProperty(i, "__esModule", {
760
+ return Pt || (Pt = 1, (function(o) {
761
+ Object.defineProperty(o, "__esModule", {
762
762
  value: !0
763
763
  });
764
764
  function e(d, _) {
@@ -767,9 +767,9 @@ function Ft() {
767
767
  get: _[c]
768
768
  });
769
769
  }
770
- e(i, {
770
+ e(o, {
771
771
  fromNodeOutgoingHttpHeaders: function() {
772
- return o;
772
+ return i;
773
773
  },
774
774
  normalizeNextQueryParam: function() {
775
775
  return r;
@@ -785,7 +785,7 @@ function Ft() {
785
785
  }
786
786
  });
787
787
  const t = ar();
788
- function o(d) {
788
+ function i(d) {
789
789
  const _ = new Headers();
790
790
  for (let [c, m] of Object.entries(d)) {
791
791
  const b = Array.isArray(m) ? m : [
@@ -849,8 +849,8 @@ function Ft() {
849
849
  }
850
850
  var Fe = {}, yt;
851
851
  function ur() {
852
- return yt || (yt = 1, (function(i) {
853
- Object.defineProperty(i, "__esModule", {
852
+ return yt || (yt = 1, (function(o) {
853
+ Object.defineProperty(o, "__esModule", {
854
854
  value: !0
855
855
  });
856
856
  function e(s, u) {
@@ -859,12 +859,12 @@ function ur() {
859
859
  get: u[r]
860
860
  });
861
861
  }
862
- e(i, {
862
+ e(o, {
863
863
  PageSignatureError: function() {
864
864
  return t;
865
865
  },
866
866
  RemovedPageError: function() {
867
- return o;
867
+ return i;
868
868
  },
869
869
  RemovedUAError: function() {
870
870
  return n;
@@ -882,7 +882,7 @@ function ur() {
882
882
  `);
883
883
  }
884
884
  }
885
- class o extends Error {
885
+ class i extends Error {
886
886
  constructor() {
887
887
  super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
888
888
  }
@@ -898,15 +898,15 @@ var Ge = {}, Be, St;
898
898
  function cr() {
899
899
  if (St) return Be;
900
900
  St = 1;
901
- var i = Object.defineProperty, e = Object.getOwnPropertyDescriptor, t = Object.getOwnPropertyNames, o = Object.prototype.hasOwnProperty, n = (a, v) => {
901
+ var o = Object.defineProperty, e = Object.getOwnPropertyDescriptor, t = Object.getOwnPropertyNames, i = Object.prototype.hasOwnProperty, n = (a, v) => {
902
902
  for (var f in v)
903
- i(a, f, { get: v[f], enumerable: !0 });
903
+ o(a, f, { get: v[f], enumerable: !0 });
904
904
  }, s = (a, v, f, w) => {
905
905
  if (v && typeof v == "object" || typeof v == "function")
906
906
  for (let P of t(v))
907
- !o.call(a, P) && P !== f && i(a, P, { get: () => v[P], enumerable: !(w = e(v, P)) || w.enumerable });
907
+ !i.call(a, P) && P !== f && o(a, P, { get: () => v[P], enumerable: !(w = e(v, P)) || w.enumerable });
908
908
  return a;
909
- }, u = (a) => s(i({}, "__esModule", { value: !0 }), a), r = {};
909
+ }, u = (a) => s(o({}, "__esModule", { value: !0 }), a), r = {};
910
910
  n(r, {
911
911
  RequestCookies: () => g,
912
912
  ResponseCookies: () => h,
@@ -955,13 +955,13 @@ function cr() {
955
955
  expires: N,
956
956
  httponly: M,
957
957
  maxage: D,
958
- path: F,
958
+ path: H,
959
959
  samesite: j,
960
960
  secure: J,
961
961
  partitioned: Q,
962
- priority: G
962
+ priority: F
963
963
  } = Object.fromEntries(
964
- w.map(([oe, V]) => [oe.toLowerCase(), V])
964
+ w.map(([ie, V]) => [ie.toLowerCase(), V])
965
965
  ), z = {
966
966
  name: v,
967
967
  value: decodeURIComponent(f),
@@ -969,10 +969,10 @@ function cr() {
969
969
  ...N && { expires: new Date(N) },
970
970
  ...M && { httpOnly: !0 },
971
971
  ...typeof D == "string" && { maxAge: Number(D) },
972
- path: F,
972
+ path: H,
973
973
  ...j && { sameSite: R(j) },
974
974
  ...J && { secure: !0 },
975
- ...G && { priority: I(G) },
975
+ ...F && { priority: I(F) },
976
976
  ...Q && { partitioned: !0 }
977
977
  };
978
978
  return m(z);
@@ -995,7 +995,7 @@ function cr() {
995
995
  if (!a)
996
996
  return [];
997
997
  var v = [], f = 0, w, P, N, M, D;
998
- function F() {
998
+ function H() {
999
999
  for (; f < a.length && /\s/.test(a.charAt(f)); )
1000
1000
  f += 1;
1001
1001
  return f < a.length;
@@ -1004,9 +1004,9 @@ function cr() {
1004
1004
  return P = a.charAt(f), P !== "=" && P !== ";" && P !== ",";
1005
1005
  }
1006
1006
  for (; f < a.length; ) {
1007
- for (w = f, D = !1; F(); )
1007
+ for (w = f, D = !1; H(); )
1008
1008
  if (P = a.charAt(f), P === ",") {
1009
- for (N = f, f += 1, F(), M = f; f < a.length && j(); )
1009
+ for (N = f, f += 1, H(), M = f; f < a.length && j(); )
1010
1010
  f += 1;
1011
1011
  f < a.length && a.charAt(f) === "=" ? (D = !0, f = M, v.push(a.substring(w, N)), w = f) : f = N + 1;
1012
1012
  } else
@@ -1148,17 +1148,17 @@ function cr() {
1148
1148
  }
1149
1149
  var At;
1150
1150
  function Je() {
1151
- return At || (At = 1, (function(i) {
1152
- Object.defineProperty(i, "__esModule", {
1151
+ return At || (At = 1, (function(o) {
1152
+ Object.defineProperty(o, "__esModule", {
1153
1153
  value: !0
1154
1154
  });
1155
- function e(o, n) {
1156
- for (var s in n) Object.defineProperty(o, s, {
1155
+ function e(i, n) {
1156
+ for (var s in n) Object.defineProperty(i, s, {
1157
1157
  enumerable: !0,
1158
1158
  get: n[s]
1159
1159
  });
1160
1160
  }
1161
- e(i, {
1161
+ e(o, {
1162
1162
  RequestCookies: function() {
1163
1163
  return t.RequestCookies;
1164
1164
  },
@@ -1174,8 +1174,8 @@ function Je() {
1174
1174
  }
1175
1175
  var Tt;
1176
1176
  function lr() {
1177
- return Tt || (Tt = 1, (function(i) {
1178
- Object.defineProperty(i, "__esModule", {
1177
+ return Tt || (Tt = 1, (function(o) {
1178
+ Object.defineProperty(o, "__esModule", {
1179
1179
  value: !0
1180
1180
  });
1181
1181
  function e(d, _) {
@@ -1184,7 +1184,7 @@ function lr() {
1184
1184
  get: _[c]
1185
1185
  });
1186
1186
  }
1187
- e(i, {
1187
+ e(o, {
1188
1188
  INTERNALS: function() {
1189
1189
  return u;
1190
1190
  },
@@ -1192,13 +1192,13 @@ function lr() {
1192
1192
  return r;
1193
1193
  }
1194
1194
  });
1195
- const t = Ht(), o = Ft(), n = ur(), s = Je(), u = /* @__PURE__ */ Symbol("internal request");
1195
+ const t = Ht(), i = Ft(), n = ur(), s = Je(), u = /* @__PURE__ */ Symbol("internal request");
1196
1196
  class r extends Request {
1197
1197
  constructor(_, c = {}) {
1198
1198
  const m = typeof _ != "string" && "url" in _ ? _.url : String(_);
1199
- (0, o.validateURL)(m), _ instanceof Request ? super(_, c) : super(m, c);
1199
+ (0, i.validateURL)(m), _ instanceof Request ? super(_, c) : super(m, c);
1200
1200
  const b = new t.NextURL(m, {
1201
- headers: (0, o.toNodeOutgoingHttpHeaders)(this.headers),
1201
+ headers: (0, i.toNodeOutgoingHttpHeaders)(this.headers),
1202
1202
  nextConfig: c.nextConfig
1203
1203
  });
1204
1204
  this[u] = {
@@ -1268,44 +1268,44 @@ function lr() {
1268
1268
  }
1269
1269
  var Xe = {}, We = {}, It;
1270
1270
  function dr() {
1271
- return It || (It = 1, (function(i) {
1272
- Object.defineProperty(i, "__esModule", {
1271
+ return It || (It = 1, (function(o) {
1272
+ Object.defineProperty(o, "__esModule", {
1273
1273
  value: !0
1274
- }), Object.defineProperty(i, "ReflectAdapter", {
1274
+ }), Object.defineProperty(o, "ReflectAdapter", {
1275
1275
  enumerable: !0,
1276
1276
  get: function() {
1277
1277
  return e;
1278
1278
  }
1279
1279
  });
1280
1280
  class e {
1281
- static get(o, n, s) {
1282
- const u = Reflect.get(o, n, s);
1283
- return typeof u == "function" ? u.bind(o) : u;
1281
+ static get(i, n, s) {
1282
+ const u = Reflect.get(i, n, s);
1283
+ return typeof u == "function" ? u.bind(i) : u;
1284
1284
  }
1285
- static set(o, n, s, u) {
1286
- return Reflect.set(o, n, s, u);
1285
+ static set(i, n, s, u) {
1286
+ return Reflect.set(i, n, s, u);
1287
1287
  }
1288
- static has(o, n) {
1289
- return Reflect.has(o, n);
1288
+ static has(i, n) {
1289
+ return Reflect.has(i, n);
1290
1290
  }
1291
- static deleteProperty(o, n) {
1292
- return Reflect.deleteProperty(o, n);
1291
+ static deleteProperty(i, n) {
1292
+ return Reflect.deleteProperty(i, n);
1293
1293
  }
1294
1294
  }
1295
1295
  })(We)), We;
1296
1296
  }
1297
1297
  var Ot;
1298
1298
  function hr() {
1299
- return Ot || (Ot = 1, (function(i) {
1300
- Object.defineProperty(i, "__esModule", {
1299
+ return Ot || (Ot = 1, (function(o) {
1300
+ Object.defineProperty(o, "__esModule", {
1301
1301
  value: !0
1302
- }), Object.defineProperty(i, "NextResponse", {
1302
+ }), Object.defineProperty(o, "NextResponse", {
1303
1303
  enumerable: !0,
1304
1304
  get: function() {
1305
1305
  return _;
1306
1306
  }
1307
1307
  });
1308
- const e = Je(), t = Ht(), o = Ft(), n = dr(), s = Je(), u = /* @__PURE__ */ Symbol("internal response"), r = /* @__PURE__ */ new Set([
1308
+ const e = Je(), t = Ht(), i = Ft(), n = dr(), s = Je(), u = /* @__PURE__ */ Symbol("internal response"), r = /* @__PURE__ */ new Set([
1309
1309
  301,
1310
1310
  302,
1311
1311
  303,
@@ -1343,7 +1343,7 @@ function hr() {
1343
1343
  this[u] = {
1344
1344
  cookies: I,
1345
1345
  url: b.url ? new t.NextURL(b.url, {
1346
- headers: (0, o.toNodeOutgoingHttpHeaders)(R),
1346
+ headers: (0, i.toNodeOutgoingHttpHeaders)(R),
1347
1347
  nextConfig: b.nextConfig
1348
1348
  }) : void 0
1349
1349
  };
@@ -1375,7 +1375,7 @@ function hr() {
1375
1375
  if (!r.has(R))
1376
1376
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
1377
1377
  const y = typeof b == "object" ? b : {}, I = new Headers(y?.headers);
1378
- return I.set("Location", (0, o.validateURL)(m)), new _(null, {
1378
+ return I.set("Location", (0, i.validateURL)(m)), new _(null, {
1379
1379
  ...y,
1380
1380
  headers: I,
1381
1381
  status: R
@@ -1383,7 +1383,7 @@ function hr() {
1383
1383
  }
1384
1384
  static rewrite(m, b) {
1385
1385
  const R = new Headers(b?.headers);
1386
- return R.set("x-middleware-rewrite", (0, o.validateURL)(m)), d(b, R), new _(null, {
1386
+ return R.set("x-middleware-rewrite", (0, i.validateURL)(m)), d(b, R), new _(null, {
1387
1387
  ...b,
1388
1388
  headers: R
1389
1389
  });
@@ -1400,10 +1400,10 @@ function hr() {
1400
1400
  }
1401
1401
  var ze = {}, xt;
1402
1402
  function fr() {
1403
- return xt || (xt = 1, (function(i) {
1404
- Object.defineProperty(i, "__esModule", {
1403
+ return xt || (xt = 1, (function(o) {
1404
+ Object.defineProperty(o, "__esModule", {
1405
1405
  value: !0
1406
- }), Object.defineProperty(i, "ImageResponse", {
1406
+ }), Object.defineProperty(o, "ImageResponse", {
1407
1407
  enumerable: !0,
1408
1408
  get: function() {
1409
1409
  return e;
@@ -1417,9 +1417,9 @@ function fr() {
1417
1417
  var Ve = {}, Ke = { exports: {} }, Nt;
1418
1418
  function pr() {
1419
1419
  return Nt || (Nt = 1, (() => {
1420
- var i = { 226: function(n, s) {
1420
+ var o = { 226: function(n, s) {
1421
1421
  (function(u, r) {
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) {
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, H = "Amazon", j = "Apple", J = "ASUS", Q = "BlackBerry", F = "Browser", z = "Chrome", ie = "Edge", V = "Firefox", Z = "Google", de = "Huawei", oe = "LG", se = "Microsoft", he = "Motorola", ee = "Opera", ae = "Samsung", fe = "Sharp", te = "Sony", ue = "Xiaomi", L = "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];
@@ -1455,10 +1455,10 @@ 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, [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) {
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", "?": "/" }, it = { 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" }, ot = { 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" + F]], [/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 " + F], 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 " + F]], [/fxios\/([-\w\.]+)/i], [E, [g, V]], [/\bqihu|(qi?ho?o?|360)browser/i], [[g, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[g, /(.+)/, "$1 " + F], 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 " + F]], [/(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, oe], [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, oe], [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, H], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [p, H], [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, L], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [p, L], [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, oe], [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, H], [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, L], [h, N]], [/(quest( 2| pro)?)/i], [l, [p, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [h, M]], [/(aeobc)\b/i], [l, [p, H], [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, ie + "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, it]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[g, "Windows"], [E, Pe, it]], [/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 !== 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;
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(ot, x) : ot, O = A && A.userAgent == C;
1462
1462
  return this.getBrowser = function() {
1463
1463
  var S = {};
1464
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;
@@ -1503,21 +1503,21 @@ function pr() {
1503
1503
  return s.exports;
1504
1504
  var u = e[n] = { exports: {} }, r = !0;
1505
1505
  try {
1506
- i[n].call(u.exports, u, u.exports, t), r = !1;
1506
+ o[n].call(u.exports, u, u.exports, t), r = !1;
1507
1507
  } finally {
1508
1508
  r && delete e[n];
1509
1509
  }
1510
1510
  return u.exports;
1511
1511
  }
1512
1512
  typeof t < "u" && (t.ab = __dirname + "/");
1513
- var o = t(226);
1514
- Ke.exports = o;
1513
+ var i = t(226);
1514
+ Ke.exports = i;
1515
1515
  })()), Ke.exports;
1516
1516
  }
1517
1517
  var Ct;
1518
1518
  function Lt() {
1519
- return Ct || (Ct = 1, (function(i) {
1520
- Object.defineProperty(i, "__esModule", {
1519
+ return Ct || (Ct = 1, (function(o) {
1520
+ Object.defineProperty(o, "__esModule", {
1521
1521
  value: !0
1522
1522
  });
1523
1523
  function e(r, d) {
@@ -1526,7 +1526,7 @@ function Lt() {
1526
1526
  get: d[_]
1527
1527
  });
1528
1528
  }
1529
- e(i, {
1529
+ e(o, {
1530
1530
  isBot: function() {
1531
1531
  return n;
1532
1532
  },
@@ -1537,8 +1537,8 @@ function Lt() {
1537
1537
  return s;
1538
1538
  }
1539
1539
  });
1540
- const t = /* @__PURE__ */ o(pr());
1541
- function o(r) {
1540
+ const t = /* @__PURE__ */ i(pr());
1541
+ function i(r) {
1542
1542
  return r && r.__esModule ? r : {
1543
1543
  default: r
1544
1544
  };
@@ -1559,10 +1559,10 @@ function Lt() {
1559
1559
  }
1560
1560
  var Ye = {}, kt;
1561
1561
  function mr() {
1562
- return kt || (kt = 1, (function(i) {
1563
- Object.defineProperty(i, "__esModule", {
1562
+ return kt || (kt = 1, (function(o) {
1563
+ Object.defineProperty(o, "__esModule", {
1564
1564
  value: !0
1565
- }), Object.defineProperty(i, "URLPattern", {
1565
+ }), Object.defineProperty(o, "URLPattern", {
1566
1566
  enumerable: !0,
1567
1567
  get: function() {
1568
1568
  return e;
@@ -1576,7 +1576,7 @@ function mr() {
1576
1576
  }
1577
1577
  var Ut;
1578
1578
  function _r() {
1579
- return Ut || (Ut = 1, (function(i, e) {
1579
+ return Ut || (Ut = 1, (function(o, e) {
1580
1580
  const t = {
1581
1581
  NextRequest: lr().NextRequest,
1582
1582
  NextResponse: hr().NextResponse,
@@ -1585,36 +1585,36 @@ function _r() {
1585
1585
  userAgent: Lt().userAgent,
1586
1586
  URLPattern: mr().URLPattern
1587
1587
  };
1588
- i.exports = t, e.NextRequest = t.NextRequest, e.NextResponse = t.NextResponse, e.ImageResponse = t.ImageResponse, e.userAgentFromString = t.userAgentFromString, e.userAgent = t.userAgent, e.URLPattern = t.URLPattern;
1588
+ o.exports = t, e.NextRequest = t.NextRequest, e.NextResponse = t.NextResponse, e.ImageResponse = t.ImageResponse, e.userAgentFromString = t.userAgentFromString, e.userAgent = t.userAgent, e.URLPattern = t.URLPattern;
1589
1589
  })(Ee, Ee.exports)), Ee.exports;
1590
1590
  }
1591
1591
  var gr = _r();
1592
1592
  class kr {
1593
1593
  async parseRequest(e) {
1594
1594
  const t = new URL(e.url);
1595
- let o, n;
1595
+ let i, n;
1596
1596
  if (e.method !== "GET") {
1597
1597
  const r = e.headers.get(W) || "";
1598
- if (L.debug({ "content-type": r }, "Content-Type"), r.includes(H.applicationJson))
1598
+ if (k.debug({ "content-type": r }, "Content-Type"), r.includes(G.applicationJson))
1599
1599
  try {
1600
- o = await e.json();
1600
+ i = await e.json();
1601
1601
  } catch {
1602
- L.warn("request body is null!");
1602
+ k.warn("request body is null!");
1603
1603
  }
1604
- else if (r.includes(H.multipartFormData))
1604
+ else if (r.includes(G.multipartFormData))
1605
1605
  n = await e.formData();
1606
- else if (r.includes(H.applicationXwwwFormUrlencoded)) {
1606
+ else if (r.includes(G.applicationXwwwFormUrlencoded)) {
1607
1607
  const d = await e.text();
1608
- o = et(d, ["m"]);
1608
+ i = et(d, ["m"]);
1609
1609
  }
1610
1610
  }
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({ body: o, formData: n }, "NextJsAdapter.parseRequest"), {
1614
+ }), k.debug({ body: i, formData: n }, "NextJsAdapter.parseRequest"), {
1615
1615
  url: t,
1616
1616
  headers: s,
1617
- body: o,
1617
+ body: i,
1618
1618
  formData: n,
1619
1619
  cookies: u,
1620
1620
  raw: e,
@@ -1625,10 +1625,10 @@ class kr {
1625
1625
  }
1626
1626
  createResponse(e) {
1627
1627
  const t = gr.NextResponse.json(e.body);
1628
- if (Object.entries(e.cookies).forEach(([o, n]) => {
1629
- typeof n == "object" && n.value ? t.cookies.set(o, n.value, n.options) : typeof n == "string" && t.cookies.set(o, n);
1628
+ if (Object.entries(e.cookies).forEach(([i, n]) => {
1629
+ typeof n == "object" && n.value ? t.cookies.set(i, n.value, n.options) : typeof n == "string" && t.cookies.set(i, n);
1630
1630
  }), e.cleanCookies) {
1631
- const o = {
1631
+ const i = {
1632
1632
  set(n, s, u) {
1633
1633
  t.cookies.set(n, s, u);
1634
1634
  },
@@ -1636,20 +1636,20 @@ class kr {
1636
1636
  t.cookies.delete({ ...s, name: n });
1637
1637
  }
1638
1638
  };
1639
- e.cleanCookies(o);
1639
+ e.cleanCookies(i);
1640
1640
  }
1641
1641
  return t;
1642
1642
  }
1643
- setCookie(e, t, o, n) {
1644
- e.cookies[t] = { value: o, options: n };
1643
+ setCookie(e, t, i, n) {
1644
+ e.cookies[t] = { value: i, options: n };
1645
1645
  }
1646
1646
  }
1647
- var Qe = /* @__PURE__ */ ((i) => (i[i.login = 0] = "login", i[i.logout = 1] = "logout", i))(Qe || {});
1647
+ var Qe = /* @__PURE__ */ ((o) => (o[o.login = 0] = "login", o[o.logout = 1] = "logout", o))(Qe || {});
1648
1648
  const $e = {
1649
1649
  login: "login",
1650
1650
  logout: "logout",
1651
1651
  unknown: ""
1652
- }, W = "Content-Type", H = {
1652
+ }, W = "Content-Type", G = {
1653
1653
  applicationJson: "application/json",
1654
1654
  multipartFormData: "multipart/form-data",
1655
1655
  applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
@@ -1661,41 +1661,24 @@ class Ur {
1661
1661
  constructor({
1662
1662
  config: e,
1663
1663
  adapter: t,
1664
- headerStorage: o
1664
+ headerStorage: i
1665
1665
  }) {
1666
1666
  this.config = e;
1667
- const n = vr(o);
1667
+ const n = vr(i);
1668
1668
  this.http = new Sr({ ...n, userType: jt.TYPE_C, helloURL: e.helloURL }), this.adapter = t;
1669
1669
  }
1670
1670
  async handleRequest(e) {
1671
- try {
1672
- const t = await this.adapter.parseRequest(e), o = await this.processRequest(t);
1673
- return this.adapter.createResponse(o);
1674
- } catch (t) {
1675
- L.error({ error: t }, "router error");
1676
- const o = {};
1677
- o[W] = H.applicationJson;
1678
- const n = {
1679
- status: 500,
1680
- headers: o,
1681
- cookies: {},
1682
- body: {
1683
- code: 500,
1684
- success: !1,
1685
- msg: "Internal server error"
1686
- }
1687
- };
1688
- return this.adapter.createResponse(n);
1689
- }
1671
+ const t = await this.adapter.parseRequest(e), i = await this.processRequest(t);
1672
+ return this.adapter.createResponse(i);
1690
1673
  }
1691
1674
  async processRequest(e) {
1692
- const t = e.url.searchParams, o = t.get("m") ?? "unknown", s = { ...$e, ...this.config.APIMAP }[o];
1675
+ const t = e.url.searchParams, i = t.get("m") ?? "unknown", s = { ...$e, ...this.config.APIMAP }[i];
1693
1676
  if (!s || s.length === 0)
1694
1677
  return this.createErrorResponse(404, "API not found");
1695
1678
  let u;
1696
- if ((s.startsWith("admin/") || s.startsWith("api/")) && (u = Rr(e.cookies), L.debug(u, "token"), !u || u.username.length === 0 || u.token.length === 0))
1679
+ if ((s.startsWith("admin/") || s.startsWith("api/")) && (u = Rr(e.cookies), k.debug(u, "token"), !u || u.username.length === 0 || u.token.length === 0))
1697
1680
  return this.createErrorResponse(409, "Authentication required");
1698
- L.debug({ hostUrl: s, token: u }, "processRequest");
1681
+ k.debug({ hostUrl: s, token: u }, "processRequest");
1699
1682
  const r = e.clone(), d = r.method;
1700
1683
  if (d === "GET") {
1701
1684
  const _ = et(t.toString(), ["m"]), c = await this.http.get({
@@ -1707,9 +1690,9 @@ class Ur {
1707
1690
  } else if (d === "POST") {
1708
1691
  let _;
1709
1692
  const c = e.headers.get(W) || "";
1710
- if (c.includes(H.applicationJson) || c.includes(H.applicationXwwwFormUrlencoded))
1693
+ if (c.includes(G.applicationJson) || c.includes(G.applicationXwwwFormUrlencoded))
1711
1694
  _ = e.body;
1712
- else if (c.includes(H.multipartFormData)) {
1695
+ else if (c.includes(G.multipartFormData)) {
1713
1696
  const b = c.match(/boundary=([^\s;]+)/);
1714
1697
  if (!b)
1715
1698
  return this.createErrorResponse(411, "Missing boundary in form data");
@@ -1734,11 +1717,11 @@ class Ur {
1734
1717
  return this.createErrorResponse(405, "Method not allowed, only supported GET or POST");
1735
1718
  }
1736
1719
  createResponse({ url: e, result: t }) {
1737
- const o = {};
1738
- o[W] = H.applicationJson;
1720
+ const i = {};
1721
+ i[W] = G.applicationJson;
1739
1722
  const n = {
1740
1723
  status: t.success ? 200 : t.code,
1741
- headers: o,
1724
+ headers: i,
1742
1725
  cookies: {},
1743
1726
  body: t
1744
1727
  };
@@ -1761,10 +1744,10 @@ class Ur {
1761
1744
  return n;
1762
1745
  }
1763
1746
  createErrorResponse(e, t) {
1764
- const o = {};
1765
- return o[W] = H.applicationJson, {
1747
+ const i = {};
1748
+ return i[W] = G.applicationJson, {
1766
1749
  status: e,
1767
- headers: o,
1750
+ headers: i,
1768
1751
  cookies: {},
1769
1752
  body: {
1770
1753
  code: e,
@@ -1786,76 +1769,76 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1786
1769
  LANG: "Lang",
1787
1770
  WEBSITE_ID: "Website-Id",
1788
1771
  WEBSITE_NO: "Website-No"
1789
- }, Xt = (i) => {
1790
- if (!i.get)
1772
+ }, Xt = (o) => {
1773
+ if (!o.get)
1791
1774
  throw new Error("The get method of IStorage has not been implemented.");
1792
- const e = i.get(Gt) ?? "", t = i.get(Bt), o = t != null ? JSON.parse(t) : null, n = {};
1793
- return e.length > 0 && (n["Device-Id"] = e), o && (n.Lang = o.language, o.websiteId && (n["Website-Id"] = o.websiteId), o.websiteNo && (n["Website-No"] = o.websiteNo)), n;
1794
- }, Dr = ({ deviceId: i, website: e }, t) => {
1775
+ const e = o.get(Gt) ?? "", t = o.get(Bt), i = t != null ? JSON.parse(t) : null, n = {};
1776
+ return e.length > 0 && (n["Device-Id"] = e), i && (n.Lang = i.language, i.websiteId && (n["Website-Id"] = i.websiteId), i.websiteNo && (n["Website-No"] = i.websiteNo)), n;
1777
+ }, Dr = ({ deviceId: o, website: e }, t) => {
1795
1778
  if (!t.set)
1796
1779
  throw new Error("The set method of IStorage has not been implemented.");
1797
- t.set(Gt, i), e && t.set(Bt, JSON.stringify(e));
1798
- }, wr = (i) => `${process.env.BASE_URL || "/api/services"}?m=${i}`, Er = async (i, e) => {
1799
- let t = wr(i);
1780
+ t.set(Gt, o), e && t.set(Bt, JSON.stringify(e));
1781
+ }, wr = (o) => `${process.env.BASE_URL || "/api/services"}?m=${o}`, Er = async (o, e) => {
1782
+ let t = wr(o);
1800
1783
  if (e?.data) {
1801
1784
  const r = new URLSearchParams(e.data);
1802
1785
  t += `&${r}`;
1803
1786
  }
1804
- const o = e && e.storage && e.storage.get ? Xt(e.storage) : {}, n = e?.headers;
1787
+ const i = e && e.storage && e.storage.get ? Xt(e.storage) : {}, n = e?.headers;
1805
1788
  if (n)
1806
1789
  for (const r in n) {
1807
1790
  const d = n[r];
1808
- d && (o[r] = d);
1791
+ d && (i[r] = d);
1809
1792
  }
1810
- L.info({
1793
+ k.info({
1811
1794
  url: t,
1812
- headers: o
1795
+ headers: i
1813
1796
  }, "GET");
1814
1797
  const s = await fetch(t, {
1815
1798
  method: "GET",
1816
- headers: o,
1799
+ headers: i,
1817
1800
  cache: e?.useCache ? "force-cache" : "default"
1818
1801
  });
1819
1802
  if (s.ok) {
1820
1803
  const r = Object.fromEntries(s.headers.entries()), d = { ...await s.json(), headers: r };
1821
- return L.debug(d, "GET_RESULT"), d;
1804
+ return k.debug(d, "GET_RESULT"), d;
1822
1805
  }
1823
1806
  const u = {
1824
1807
  code: s.status,
1825
1808
  success: !1,
1826
1809
  msg: s.statusText
1827
1810
  };
1828
- return L.error(u), u;
1829
- }, Wt = async (i, e) => {
1830
- const t = e?.data ?? {}, o = e?.headers;
1811
+ return k.error(u), u;
1812
+ }, Wt = async (o, e) => {
1813
+ const t = e?.data ?? {}, i = e?.headers;
1831
1814
  let n;
1832
1815
  const s = e && e.storage && e.storage.get ? Xt(e.storage) : {}, u = new Headers(s);
1833
- if (t instanceof FormData ? n = t : (n = JSON.stringify(t), u.set(W, H.applicationJson)), o)
1834
- for (let _ in o) {
1835
- const c = o[_];
1816
+ if (t instanceof FormData ? n = t : (n = JSON.stringify(t), u.set(W, G.applicationJson)), i)
1817
+ for (let _ in i) {
1818
+ const c = i[_];
1836
1819
  c && u.set(_, c);
1837
1820
  }
1838
- L.info({
1839
- url: i,
1821
+ k.info({
1822
+ url: o,
1840
1823
  headers: u
1841
1824
  }, "POST");
1842
- const r = await fetch(i, {
1825
+ const r = await fetch(o, {
1843
1826
  method: "POST",
1844
1827
  headers: u,
1845
1828
  body: n
1846
1829
  });
1847
1830
  if (r.ok) {
1848
1831
  const _ = Object.fromEntries(r.headers.entries()), c = { ...await r.json(), headers: _ };
1849
- return L.debug(c, "POST_RESULT"), c;
1832
+ return k.debug(c, "POST_RESULT"), c;
1850
1833
  }
1851
1834
  const d = {
1852
1835
  code: r.status,
1853
1836
  success: !1,
1854
1837
  msg: r.statusText
1855
1838
  };
1856
- return L.error(d), d;
1857
- }, Mr = async (i, e) => {
1858
- const t = await Er(i, e);
1839
+ return k.error(d), d;
1840
+ }, Mr = async (o, e) => {
1841
+ const t = await Er(o, e);
1859
1842
  if (t.success)
1860
1843
  return t.data;
1861
1844
  if (e?.showError) {
@@ -1863,8 +1846,8 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1863
1846
  return;
1864
1847
  }
1865
1848
  throw Error(t.msg ?? Dt);
1866
- }, jr = async (i, e) => {
1867
- const t = await Wt(i, e);
1849
+ }, jr = async (o, e) => {
1850
+ const t = await Wt(o, e);
1868
1851
  if (t.success)
1869
1852
  return t.data;
1870
1853
  if (e?.showError) {
@@ -1872,45 +1855,45 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1872
1855
  return;
1873
1856
  }
1874
1857
  throw Error(t.msg ?? Ze);
1875
- }, qr = async (i, e) => {
1876
- const t = await Wt(i, e);
1858
+ }, qr = async (o, e) => {
1859
+ const t = await Wt(o, e);
1877
1860
  return t.success ? (e?.showSuccess && e.showSuccess(t.msg ?? "SUCCESS"), !0) : (e?.showError && e.showError(t.msg ?? Ze), !1);
1878
- }, vr = (i) => {
1879
- if (i.get) {
1880
- const e = i.get(Y.DEVICE_ID), t = i.get(Y.LANG), o = i.get(Y.WEBSITE_ID), n = i.get(Y.WEBSITE_NO), s = {};
1881
- return e && e.length > 0 && (s.deviceId = e), t && t.length > 0 && (s.lang = t), o && o.length > 0 && (s.websiteId = o), n && n.length > 0 && (s.websiteNo = n), s;
1861
+ }, vr = (o) => {
1862
+ if (o.get) {
1863
+ const e = o.get(Y.DEVICE_ID), t = o.get(Y.LANG), i = o.get(Y.WEBSITE_ID), n = o.get(Y.WEBSITE_NO), s = {};
1864
+ return e && e.length > 0 && (s.deviceId = e), t && t.length > 0 && (s.lang = t), i && i.length > 0 && (s.websiteId = i), n && n.length > 0 && (s.websiteNo = n), s;
1882
1865
  }
1883
1866
  throw new Error("The get method of IStorage has not been implemented.");
1884
- }, Hr = (i, e) => {
1885
- if (i.set)
1886
- e.deviceId && i.set(Y.DEVICE_ID, e.deviceId), e.lang && i.set(Y.LANG, e.lang), e.websiteId && i.set(Y.WEBSITE_ID, e.websiteId), e.websiteNo && i.set(Y.WEBSITE_NO, e.websiteNo);
1867
+ }, Hr = (o, e) => {
1868
+ if (o.set)
1869
+ e.deviceId && o.set(Y.DEVICE_ID, e.deviceId), e.lang && o.set(Y.LANG, e.lang), e.websiteId && o.set(Y.WEBSITE_ID, e.websiteId), e.websiteNo && o.set(Y.WEBSITE_NO, e.websiteNo);
1887
1870
  else
1888
1871
  throw new Error("The set method of IStorage has not been implemented.");
1889
- }, Fr = (i) => {
1890
- if (i.get) {
1891
- const e = i.get(U.IBOOT_DEVICE_ID), t = i.get(U.IBOOT_LANG), o = i.get(U.IBOOT_WEBSITE_ID), n = i.get(U.IBOOT_WEBSITE_NO), s = {};
1892
- return e && e.length > 0 && (s.deviceId = e), t && t.length > 0 && (s.lang = t), o && o.length > 0 && (s.websiteId = o), n && n.length > 0 && (s.websiteNo = n), s;
1872
+ }, Fr = (o) => {
1873
+ if (o.get) {
1874
+ const e = o.get(U.IBOOT_DEVICE_ID), t = o.get(U.IBOOT_LANG), i = o.get(U.IBOOT_WEBSITE_ID), n = o.get(U.IBOOT_WEBSITE_NO), s = {};
1875
+ return e && e.length > 0 && (s.deviceId = e), t && t.length > 0 && (s.lang = t), i && i.length > 0 && (s.websiteId = i), n && n.length > 0 && (s.websiteNo = n), s;
1893
1876
  }
1894
1877
  throw new Error("The get method of ICookies has not been implemented.");
1895
- }, Gr = (i, e) => {
1896
- if (i.set)
1897
- e.deviceId && i.set(U.IBOOT_DEVICE_ID, e.deviceId), e.lang && i.set(U.IBOOT_LANG, e.lang), e.websiteId && i.set(U.IBOOT_WEBSITE_ID, e.websiteId), e.websiteNo && i.set(U.IBOOT_WEBSITE_NO, e.websiteNo);
1878
+ }, Gr = (o, e) => {
1879
+ if (o.set)
1880
+ e.deviceId && o.set(U.IBOOT_DEVICE_ID, e.deviceId), e.lang && o.set(U.IBOOT_LANG, e.lang), e.websiteId && o.set(U.IBOOT_WEBSITE_ID, e.websiteId), e.websiteNo && o.set(U.IBOOT_WEBSITE_NO, e.websiteNo);
1898
1881
  else
1899
1882
  throw new Error("The set method of ICookies has not been implemented.");
1900
- }, Br = (i) => {
1901
- if (i.get) {
1902
- const e = i.get(U.IBOOT_USER);
1883
+ }, Br = (o) => {
1884
+ if (o.get) {
1885
+ const e = o.get(U.IBOOT_USER);
1903
1886
  if (e && e.length > 0)
1904
1887
  return JSON.parse(e);
1905
1888
  }
1906
- }, Rr = (i) => {
1907
- if (i.get) {
1908
- const e = i[U.IBOOT_USER];
1889
+ }, Rr = (o) => {
1890
+ if (o.get) {
1891
+ const e = o[U.IBOOT_USER];
1909
1892
  if (e && e.length > 0) {
1910
- const t = JSON.parse(e), o = t.username, n = t.userType.toString(), s = i[U.IBOOT_TOKEN];
1893
+ const t = JSON.parse(e), i = t.username, n = t.userType.toString(), s = o[U.IBOOT_TOKEN];
1911
1894
  if (s)
1912
1895
  return {
1913
- username: o,
1896
+ username: i,
1914
1897
  utype: n,
1915
1898
  token: s
1916
1899
  };
@@ -1926,12 +1909,12 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1926
1909
  //设置为 -1表示立即过期
1927
1910
  httpOnly: !0,
1928
1911
  path: "/"
1929
- }, Pr = (i, e) => {
1930
- const { id: t, name: o, username: n, nickname: s, headImg: u, token: r, lastLoginTime: d, deviceId: _, userType: c, mustChangePwd: m } = i, b = {
1912
+ }, Pr = (o, e) => {
1913
+ const { id: t, name: i, username: n, nickname: s, headImg: u, token: r, lastLoginTime: d, deviceId: _, userType: c, mustChangePwd: m } = o, b = {
1931
1914
  id: t,
1932
- name: o,
1915
+ name: i,
1933
1916
  username: n,
1934
- nickname: s || o,
1917
+ nickname: s || i,
1935
1918
  headImg: u,
1936
1919
  lastLoginTime: d,
1937
1920
  deviceId: _,
@@ -1948,12 +1931,12 @@ const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Ge
1948
1931
  value: JSON.stringify(b),
1949
1932
  options: Mt()
1950
1933
  };
1951
- }, yr = (i) => {
1952
- if (!i.set)
1934
+ }, yr = (o) => {
1935
+ if (!o.set)
1953
1936
  throw new Error("cookies set function is undefined");
1954
- if (i.set(U.IBOOT_TOKEN, "", ve), i.set(U.IBOOT_USER, "", ve), !i.delete)
1937
+ if (o.set(U.IBOOT_TOKEN, "", ve), o.set(U.IBOOT_USER, "", ve), !o.delete)
1955
1938
  throw new Error("cookies delete function is undefined");
1956
- i.delete(U.IBOOT_TOKEN, ve), i.delete(U.IBOOT_USER, ve);
1939
+ o.delete(U.IBOOT_TOKEN, ve), o.delete(U.IBOOT_USER, ve);
1957
1940
  };
1958
1941
  class Sr {
1959
1942
  baseUrl;
@@ -1967,7 +1950,7 @@ class Sr {
1967
1950
  websiteId;
1968
1951
  websiteNo;
1969
1952
  constructor(e) {
1970
- process.env.APP_ENV === "production" || L.warn("This is currently a development environment!"), this.baseUrl = process.env.APP_BASEURL, this.apiKey = process.env.APP_APIKEY, this.userFrom = process.env.APP_USERFROM ?? "1", this.helloMethod = e.helloURL ?? "", this.userType = e.userType ?? jt.TYPE_MGT, this.deviceId = e.deviceId ?? ut(10), this.lang = e.lang ?? br, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
1953
+ process.env.APP_ENV === "production" || k.warn("This is currently a development environment!"), this.baseUrl = process.env.APP_BASEURL, this.apiKey = process.env.APP_APIKEY, this.userFrom = process.env.APP_USERFROM ?? "1", this.helloMethod = e.helloURL ?? "", this.userType = e.userType ?? jt.TYPE_MGT, this.deviceId = e.deviceId ?? ut(10), this.lang = e.lang ?? br, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
1971
1954
  }
1972
1955
  encrypt(e) {
1973
1956
  const t = ne.enc.Utf8.parse(this.apiKey);
@@ -1982,8 +1965,8 @@ class Sr {
1982
1965
  //eslint-disable-next-line @typescript-eslint/no-explicit-any
1983
1966
  convertUrlParameter(e) {
1984
1967
  const t = [];
1985
- for (const o in e) {
1986
- let n = e[o];
1968
+ for (const i in e) {
1969
+ let n = e[i];
1987
1970
  if (n && typeof n == "string")
1988
1971
  n = n.trim();
1989
1972
  else if (n && typeof n == "object") {
@@ -2002,13 +1985,13 @@ class Sr {
2002
1985
  const b = _[m];
2003
1986
  if (b && b.toString().length > 0) {
2004
1987
  const R = `[${s.toString()}].${r + `[${c.toString()}].${m}`}=${we(b)}`;
2005
- t.push(o + R);
1988
+ t.push(i + R);
2006
1989
  }
2007
1990
  }
2008
1991
  });
2009
1992
  else if (d.toString().length > 0) {
2010
1993
  const _ = `[${s.toString()}].${r}=${we(d.toString())}`;
2011
- t.push(o + _);
1994
+ t.push(i + _);
2012
1995
  }
2013
1996
  }
2014
1997
  }
@@ -2018,22 +2001,22 @@ class Sr {
2018
2001
  const u = n[s];
2019
2002
  if (u != null && u != "" && u.length != 0) {
2020
2003
  const r = `.${s}=${we(u)}`;
2021
- t.push(o + r);
2004
+ t.push(i + r);
2022
2005
  }
2023
2006
  }
2024
2007
  continue;
2025
2008
  } else n && typeof n == "function" && (n = null);
2026
- n != null && n != "" && n.length != 0 && t.push(o + "=" + we(n));
2009
+ n != null && n != "" && n.length != 0 && t.push(i + "=" + we(n));
2027
2010
  }
2028
2011
  return t && t.join("&");
2029
2012
  }
2030
2013
  async sign(e) {
2031
- const t = "&key=" + await this.helloIboot(), o = [];
2014
+ const t = "&key=" + await this.helloIboot(), i = [];
2032
2015
  for (const d in e)
2033
- o.push(d);
2034
- o.sort((d, _) => d.toLowerCase().localeCompare(_.toLowerCase()));
2016
+ i.push(d);
2017
+ i.sort((d, _) => d.toLowerCase().localeCompare(_.toLowerCase()));
2035
2018
  const n = [];
2036
- o.forEach((d) => {
2019
+ i.forEach((d) => {
2037
2020
  let _ = e[d];
2038
2021
  typeof _ == "object" && (_ = JSON.stringify(_)), n.push(d + "=" + _);
2039
2022
  });
@@ -2041,24 +2024,24 @@ class Sr {
2041
2024
  params: s,
2042
2025
  md5: u
2043
2026
  };
2044
- return L.debug(r, "API_SIGN"), u;
2027
+ return k.debug(r, "API_SIGN"), u;
2045
2028
  }
2046
2029
  //eslint-disable-next-line @typescript-eslint/no-explicit-any
2047
2030
  assemblyParameter(e, t) {
2048
- const o = e ?? {};
2049
- return o.timestamp = Date.now() + "", o.echostr = ut(10), o.version = this.version, o.deviceId = this.deviceId, o.webid = this.websiteId, o.apiKey = this.apiKey, t && t.length > 0 && (o.username = t), o;
2031
+ const i = e ?? {};
2032
+ return i.timestamp = Date.now() + "", i.echostr = ut(10), i.version = this.version, i.deviceId = this.deviceId, i.webid = this.websiteId, i.apiKey = this.apiKey, t && t.length > 0 && (i.username = t), i;
2050
2033
  }
2051
2034
  async assemblyHeader({ urlParams: e, token: t }) {
2052
- const o = {
2035
+ const i = {
2053
2036
  "Res-Type": "json",
2054
2037
  "Device-Id": this.deviceId,
2055
2038
  "User-Type": t?.utype.toString() ?? this.userType.toString(),
2056
2039
  "User-From": this.userFrom,
2057
2040
  "Api-Key": this.apiKey
2058
2041
  };
2059
- o[W] = H.applicationXwwwFormUrlencoded, this.lang && this.lang.length > 0 && (o.Lang = this.lang), this.websiteId && this.websiteId.length > 0 && (o["Web-Id"] = this.websiteId), this.websiteNo && this.websiteNo.length > 0 && (o["Web-No"] = this.websiteNo), t && (t.token && t.token.length > 0 && t.username && t.username.length > 0 && (o.Authorization = t.token, o.Username = t.username), t.xcsrf && (o[t.xcsrf.csrfHeader] = t.xcsrf.csrfToken));
2042
+ i[W] = G.applicationXwwwFormUrlencoded, this.lang && this.lang.length > 0 && (i.Lang = this.lang), this.websiteId && this.websiteId.length > 0 && (i["Web-Id"] = this.websiteId), this.websiteNo && this.websiteNo.length > 0 && (i["Web-No"] = this.websiteNo), t && (t.token && t.token.length > 0 && t.username && t.username.length > 0 && (i.Authorization = t.token, i.Username = t.username), t.xcsrf && (i[t.xcsrf.csrfHeader] = t.xcsrf.csrfToken));
2060
2043
  const n = et(e), s = await this.sign(n);
2061
- return o.Sign = s, o;
2044
+ return i.Sign = s, i;
2062
2045
  }
2063
2046
  async helloIboot() {
2064
2047
  if (this.helloMethod.length <= 0)
@@ -2067,12 +2050,12 @@ class Sr {
2067
2050
  "Res-Type": "json",
2068
2051
  "Api-Key": this.apiKey
2069
2052
  };
2070
- t[W] = H.applicationXwwwFormUrlencoded;
2071
- const o = {
2053
+ t[W] = G.applicationXwwwFormUrlencoded;
2054
+ const i = {
2072
2055
  url: e,
2073
2056
  headers: t
2074
2057
  };
2075
- L.debug(o, "HELLO");
2058
+ k.debug(i, "HELLO");
2076
2059
  const n = await fetch(e, {
2077
2060
  method: "GET",
2078
2061
  headers: t,
@@ -2081,7 +2064,7 @@ class Sr {
2081
2064
  });
2082
2065
  if (n.ok) {
2083
2066
  const s = await n.json();
2084
- return L.debug(s.data, "HELLO RESULT"), s.data;
2067
+ return k.debug(s.data, "HELLO RESULT"), s.data;
2085
2068
  }
2086
2069
  throw new Error("hello iBoot error!");
2087
2070
  }
@@ -2099,12 +2082,12 @@ class Sr {
2099
2082
  }
2100
2083
  }
2101
2084
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2102
- async get({ url: e, data: t, token: o, cache: n = "default" }) {
2103
- const s = this.assemblyParameter(t), u = this.convertUrlParameter(s), r = await this.assemblyHeader({ urlParams: u, token: o }), d = `${this.getApiUrl(e)}?${u.toString()}`, _ = {
2085
+ async get({ url: e, data: t, token: i, cache: n = "default" }) {
2086
+ const s = this.assemblyParameter(t), u = this.convertUrlParameter(s), r = await this.assemblyHeader({ urlParams: u, token: i }), d = `${this.getApiUrl(e)}?${u.toString()}`, _ = {
2104
2087
  url: d,
2105
2088
  headers: r
2106
2089
  };
2107
- L.info(_, "GET");
2090
+ k.info(_, "GET");
2108
2091
  const c = await fetch(d, {
2109
2092
  method: "GET",
2110
2093
  headers: r,
@@ -2113,27 +2096,27 @@ class Sr {
2113
2096
  });
2114
2097
  if (c.ok) {
2115
2098
  const b = Object.fromEntries(c.headers.entries()), R = { ...await c.json(), headers: b };
2116
- return L.debug(R, "GET_RESULT"), R;
2099
+ return k.debug(R, "GET_RESULT"), R;
2117
2100
  }
2118
2101
  const m = {
2119
2102
  code: c.status,
2120
2103
  success: !1,
2121
2104
  msg: c.statusText
2122
2105
  };
2123
- return L.error(m), m;
2106
+ return k.error(m), m;
2124
2107
  }
2125
2108
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2126
- async post({ url: e, data: t, token: o, cache: n = "default" }) {
2109
+ async post({ url: e, data: t, token: i, cache: n = "default" }) {
2127
2110
  const s = { ...t }, u = s.buffer ?? void 0, r = s.boundary ?? void 0;
2128
2111
  u && delete s.buffer, r && delete s.boundary;
2129
- const d = this.assemblyParameter(s), _ = this.convertUrlParameter(d), c = await this.assemblyHeader({ urlParams: _, token: o });
2112
+ const d = this.assemblyParameter(s), _ = this.convertUrlParameter(d), c = await this.assemblyHeader({ urlParams: _, token: i });
2130
2113
  u && r && (c[W] = `multipart/form-data; boundary=${r}`);
2131
2114
  const m = this.getApiUrl(e), b = {
2132
2115
  url: m,
2133
2116
  headers: c,
2134
2117
  params: d
2135
2118
  };
2136
- L.info(b, "POST");
2119
+ k.info(b, "POST");
2137
2120
  const R = u ? `${m}?${_}` : m, y = await fetch(R, {
2138
2121
  method: "POST",
2139
2122
  headers: c,
@@ -2143,21 +2126,21 @@ class Sr {
2143
2126
  });
2144
2127
  if (y.ok) {
2145
2128
  const l = Object.fromEntries(y.headers.entries()), g = { ...await y.json(), headers: l };
2146
- return L.debug(g, "POST_RESULT"), g;
2129
+ return k.debug(g, "POST_RESULT"), g;
2147
2130
  }
2148
2131
  const I = {
2149
2132
  code: y.status,
2150
2133
  success: !1,
2151
2134
  msg: y.statusText
2152
2135
  };
2153
- return L.error(I), I;
2136
+ return k.error(I), I;
2154
2137
  }
2155
2138
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2156
- async stream({ url: e, data: t, token: o }) {
2139
+ async stream({ url: e, data: t, token: i }) {
2157
2140
  t = t ? { ...t } : {};
2158
2141
  const n = t.buffer ?? void 0, s = t.boundary ?? void 0;
2159
2142
  n && delete t.buffer, s && delete t.boundary;
2160
- const u = this.assemblyParameter(t), r = this.convertUrlParameter(u), d = await this.assemblyHeader({ urlParams: r, token: o });
2143
+ const u = this.assemblyParameter(t), r = this.convertUrlParameter(u), d = await this.assemblyHeader({ urlParams: r, token: i });
2161
2144
  n && s && (d[W] = `multipart/form-data; boundary=${s}`), d.Connection = "keep-alive", d["X-Accel-Buffering"] = "no", d["Cache-Control"] = "no-cache";
2162
2145
  const _ = this.getApiUrl(e);
2163
2146
  try {
@@ -2166,7 +2149,7 @@ class Sr {
2166
2149
  headers: d,
2167
2150
  params: u
2168
2151
  };
2169
- L.info(m, "STREAM");
2152
+ k.info(m, "STREAM");
2170
2153
  const b = await fetch(c, {
2171
2154
  method: "POST",
2172
2155
  headers: d,
@@ -2189,7 +2172,7 @@ class Sr {
2189
2172
  export {
2190
2173
  xr as ACCOUNT_TYPE_MAP,
2191
2174
  W as CONTENT_TYPE_KEY,
2192
- H as CONTENT_TYPE_MAP,
2175
+ G as CONTENT_TYPE_MAP,
2193
2176
  Ur as HTTPRouter,
2194
2177
  Sr as HttpClient,
2195
2178
  kr as NextJsAdapter,
@@ -2207,7 +2190,7 @@ export {
2207
2190
  jr as iPost,
2208
2191
  qr as iPostSuccess,
2209
2192
  at as isArray,
2210
- L as logger,
2193
+ k as logger,
2211
2194
  Wt as post,
2212
2195
  ut as randomString,
2213
2196
  Dr as setClientRequestHeader,