icms-api 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icms-api.cjs.js +1 -1
- package/dist/icms-api.cjs.js.map +1 -1
- package/dist/icms-api.es.js +206 -209
- package/dist/icms-api.es.js.map +1 -1
- package/dist/icms-api.umd.js +2 -2
- package/dist/icms-api.umd.js.map +1 -1
- package/dist/types/client.d.ts +4 -0
- package/dist/types/server.d.ts +3 -5
- package/dist/types/types/site.d.ts +4 -0
- package/package.json +2 -2
package/dist/icms-api.es.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import Gt from "pino";
|
|
2
|
+
import Xt from "pino-pretty";
|
|
3
|
+
import Wt from "js-md5";
|
|
4
4
|
import ne from "crypto-js";
|
|
5
5
|
import "h3";
|
|
6
|
-
var
|
|
6
|
+
var Qt = {
|
|
7
7
|
TYPE_MGT: 0,
|
|
8
8
|
TYPE_C: 1,
|
|
9
9
|
TYPE_B: 2
|
|
10
|
-
},
|
|
10
|
+
}, Zt = Xt({
|
|
11
11
|
colorize: !0,
|
|
12
12
|
destination: process.stdout,
|
|
13
13
|
translateTime: "SYS:yyyy-mm-dd HH:MM:ss",
|
|
14
14
|
ignore: "pid,hostname",
|
|
15
15
|
messageFormat: "{msg}",
|
|
16
16
|
singleLine: !0
|
|
17
|
-
}), L =
|
|
17
|
+
}), L = Gt({
|
|
18
18
|
name: process.env.APP_NAME ?? "iBoot",
|
|
19
19
|
level: process.env.APP_ENV === "production" ? "info" : "debug",
|
|
20
20
|
nestedKey: "payload"
|
|
21
|
-
},
|
|
21
|
+
}, Zt), er = {}, Dt = (e) => {
|
|
22
22
|
let t = e || 32, n = "";
|
|
23
23
|
for (let e = 0; e < t; e++) n += "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678".charAt(Math.floor(Math.random() * 48));
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function tr() {
|
|
27
27
|
try {
|
|
28
|
-
let e =
|
|
28
|
+
let e = er.networkInterfaces();
|
|
29
29
|
for (let t of Object.keys(e)) {
|
|
30
30
|
let n = e[t];
|
|
31
31
|
if (n) {
|
|
@@ -37,8 +37,8 @@ function ir() {
|
|
|
37
37
|
return Dt(10);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
var we = { exports: {} }, Te = {},
|
|
41
|
-
function
|
|
40
|
+
var we = { exports: {} }, Te = {}, Se = {}, Ie = {}, at;
|
|
41
|
+
function rr() {
|
|
42
42
|
return at || (at = 1, (function(e) {
|
|
43
43
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "detectDomainLocale", {
|
|
44
44
|
enumerable: !0,
|
|
@@ -55,10 +55,10 @@ function or() {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
})(
|
|
58
|
+
})(Ie)), Ie;
|
|
59
59
|
}
|
|
60
60
|
var Ae = {}, Oe = {}, ut;
|
|
61
|
-
function
|
|
61
|
+
function nr() {
|
|
62
62
|
return ut || (ut = 1, (function(e) {
|
|
63
63
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removeTrailingSlash", {
|
|
64
64
|
enumerable: !0,
|
|
@@ -112,7 +112,7 @@ function Mt() {
|
|
|
112
112
|
})(xe)), xe;
|
|
113
113
|
}
|
|
114
114
|
var Ce = {}, dt;
|
|
115
|
-
function
|
|
115
|
+
function ir() {
|
|
116
116
|
return dt || (dt = 1, (function(e) {
|
|
117
117
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathSuffix", {
|
|
118
118
|
enumerable: !0,
|
|
@@ -146,7 +146,7 @@ function tt() {
|
|
|
146
146
|
})(ke)), ke;
|
|
147
147
|
}
|
|
148
148
|
var ft;
|
|
149
|
-
function
|
|
149
|
+
function or() {
|
|
150
150
|
return ft || (ft = 1, (function(e) {
|
|
151
151
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addLocale", {
|
|
152
152
|
enumerable: !0,
|
|
@@ -163,7 +163,7 @@ function ur() {
|
|
|
163
163
|
})(Le)), Le;
|
|
164
164
|
}
|
|
165
165
|
var pt;
|
|
166
|
-
function
|
|
166
|
+
function sr() {
|
|
167
167
|
return pt || (pt = 1, (function(e) {
|
|
168
168
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "formatNextPathnameInfo", {
|
|
169
169
|
enumerable: !0,
|
|
@@ -171,7 +171,7 @@ function cr() {
|
|
|
171
171
|
return a;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
let t =
|
|
174
|
+
let t = nr(), n = Mt(), r = ir(), i = or();
|
|
175
175
|
function a(e) {
|
|
176
176
|
let a = (0, i.addLocale)(e.pathname, e.locale, e.buildId ? void 0 : e.defaultLocale, e.ignorePrefix);
|
|
177
177
|
return (e.buildId || !e.trailingSlash) && (a = (0, t.removeTrailingSlash)(a)), e.buildId && (a = (0, r.addPathSuffix)((0, n.addPathPrefix)(a, "/_next/data/" + e.buildId), e.pathname === "/" ? "index.json" : ".json")), a = (0, n.addPathPrefix)(a, e.basePath), !e.buildId && e.trailingSlash ? a.endsWith("/") ? a : (0, r.addPathSuffix)(a, "/") : (0, t.removeTrailingSlash)(a);
|
|
@@ -179,7 +179,7 @@ function cr() {
|
|
|
179
179
|
})(Ae)), Ae;
|
|
180
180
|
}
|
|
181
181
|
var Ue = {}, mt;
|
|
182
|
-
function
|
|
182
|
+
function ar() {
|
|
183
183
|
return mt || (mt = 1, (function(e) {
|
|
184
184
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getHostname", {
|
|
185
185
|
enumerable: !0,
|
|
@@ -197,7 +197,7 @@ function lr() {
|
|
|
197
197
|
})(Ue)), Ue;
|
|
198
198
|
}
|
|
199
199
|
var De = {}, Me = {}, _t;
|
|
200
|
-
function
|
|
200
|
+
function ur() {
|
|
201
201
|
return _t || (_t = 1, (function(e) {
|
|
202
202
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "normalizeLocalePath", {
|
|
203
203
|
enumerable: !0,
|
|
@@ -215,7 +215,7 @@ function dr() {
|
|
|
215
215
|
})(Me)), Me;
|
|
216
216
|
}
|
|
217
217
|
var je = {}, bt;
|
|
218
|
-
function
|
|
218
|
+
function cr() {
|
|
219
219
|
return bt || (bt = 1, (function(e) {
|
|
220
220
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removePathPrefix", {
|
|
221
221
|
enumerable: !0,
|
|
@@ -232,7 +232,7 @@ function hr() {
|
|
|
232
232
|
})(je)), je;
|
|
233
233
|
}
|
|
234
234
|
var gt;
|
|
235
|
-
function
|
|
235
|
+
function lr() {
|
|
236
236
|
return gt || (gt = 1, (function(e) {
|
|
237
237
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getNextPathnameInfo", {
|
|
238
238
|
enumerable: !0,
|
|
@@ -240,7 +240,7 @@ function fr() {
|
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
let t =
|
|
243
|
+
let t = ur(), n = cr(), r = tt();
|
|
244
244
|
function i(e, i) {
|
|
245
245
|
let { basePath: a, i18n: o, trailingSlash: s } = i.nextConfig ?? {}, c = {
|
|
246
246
|
pathname: e,
|
|
@@ -269,7 +269,7 @@ function jt() {
|
|
|
269
269
|
return c;
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
|
-
let t =
|
|
272
|
+
let t = rr(), n = sr(), r = ar(), i = lr(), a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
273
273
|
function o(e, t) {
|
|
274
274
|
return new URL(String(e).replace(a, "localhost"), t && String(t).replace(a, "localhost"));
|
|
275
275
|
}
|
|
@@ -426,10 +426,10 @@ function jt() {
|
|
|
426
426
|
return new c(String(this), this[s].options);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
})(
|
|
429
|
+
})(Se)), Se;
|
|
430
430
|
}
|
|
431
431
|
var qe = {}, He = {}, Et;
|
|
432
|
-
function
|
|
432
|
+
function dr() {
|
|
433
433
|
return Et || (Et = 1, (function(e) {
|
|
434
434
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
435
435
|
function t(e, t) {
|
|
@@ -443,7 +443,7 @@ function pr() {
|
|
|
443
443
|
return c;
|
|
444
444
|
},
|
|
445
445
|
APP_DIR_ALIAS: function() {
|
|
446
|
-
return
|
|
446
|
+
return pn;
|
|
447
447
|
},
|
|
448
448
|
CACHE_ONE_YEAR: function() {
|
|
449
449
|
return b;
|
|
@@ -452,16 +452,16 @@ function pr() {
|
|
|
452
452
|
return T;
|
|
453
453
|
},
|
|
454
454
|
ESLINT_DEFAULT_DIRS: function() {
|
|
455
|
-
return
|
|
455
|
+
return vn;
|
|
456
456
|
},
|
|
457
457
|
GSP_NO_RETURNED_VALUE: function() {
|
|
458
|
-
return
|
|
458
|
+
return R;
|
|
459
459
|
},
|
|
460
460
|
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
461
|
-
return
|
|
461
|
+
return B;
|
|
462
462
|
},
|
|
463
463
|
GSSP_NO_RETURNED_VALUE: function() {
|
|
464
|
-
return
|
|
464
|
+
return gn;
|
|
465
465
|
},
|
|
466
466
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
467
467
|
return C;
|
|
@@ -512,7 +512,7 @@ function pr() {
|
|
|
512
512
|
return n;
|
|
513
513
|
},
|
|
514
514
|
NON_STANDARD_NODE_ENV: function() {
|
|
515
|
-
return
|
|
515
|
+
return V;
|
|
516
516
|
},
|
|
517
517
|
PAGES_DIR_ALIAS: function() {
|
|
518
518
|
return w;
|
|
@@ -524,25 +524,25 @@ function pr() {
|
|
|
524
524
|
return a;
|
|
525
525
|
},
|
|
526
526
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
527
|
-
return
|
|
527
|
+
return j;
|
|
528
528
|
},
|
|
529
529
|
ROOT_DIR_ALIAS: function() {
|
|
530
530
|
return E;
|
|
531
531
|
},
|
|
532
532
|
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
533
|
-
return
|
|
533
|
+
return A;
|
|
534
534
|
},
|
|
535
535
|
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
536
|
-
return
|
|
536
|
+
return mn;
|
|
537
537
|
},
|
|
538
538
|
RSC_ACTION_PROXY_ALIAS: function() {
|
|
539
|
-
return
|
|
539
|
+
return k;
|
|
540
540
|
},
|
|
541
541
|
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
542
|
-
return
|
|
542
|
+
return O;
|
|
543
543
|
},
|
|
544
544
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
545
|
-
return
|
|
545
|
+
return D;
|
|
546
546
|
},
|
|
547
547
|
RSC_PREFETCH_SUFFIX: function() {
|
|
548
548
|
return o;
|
|
@@ -551,47 +551,47 @@ function pr() {
|
|
|
551
551
|
return s;
|
|
552
552
|
},
|
|
553
553
|
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
554
|
-
return
|
|
554
|
+
return I;
|
|
555
555
|
},
|
|
556
556
|
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
557
|
-
return
|
|
557
|
+
return P;
|
|
558
558
|
},
|
|
559
559
|
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
560
|
-
return
|
|
560
|
+
return F;
|
|
561
561
|
},
|
|
562
562
|
SERVER_RUNTIME: function() {
|
|
563
|
-
return
|
|
563
|
+
return yn;
|
|
564
564
|
},
|
|
565
565
|
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
566
|
-
return
|
|
566
|
+
return _n;
|
|
567
567
|
},
|
|
568
568
|
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
569
|
-
return
|
|
569
|
+
return N;
|
|
570
570
|
},
|
|
571
571
|
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
572
|
-
return
|
|
572
|
+
return hn;
|
|
573
573
|
},
|
|
574
574
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
575
|
-
return
|
|
575
|
+
return z;
|
|
576
576
|
},
|
|
577
577
|
WEBPACK_LAYERS: function() {
|
|
578
|
-
return
|
|
578
|
+
return W;
|
|
579
579
|
},
|
|
580
580
|
WEBPACK_RESOURCE_QUERIES: function() {
|
|
581
|
-
return
|
|
581
|
+
return G;
|
|
582
582
|
}
|
|
583
583
|
});
|
|
584
|
-
let n = "nxtP", r = "nxtI", i = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", o = ".prefetch.rsc", s = ".rsc", c = ".action", l = ".json", u = ".meta", d = ".body", f = "x-next-cache-tags", p = "x-next-cache-soft-tags", m = "x-next-revalidated-tags", h = "x-next-revalidate-tag-token", g = 128, _ = 256, v = 1024, y = "_N_T_", b = 31536e3, x = "middleware", S = `(?:src/)?${x}`, C = "instrumentation", w = "private-next-pages", T = "private-dot-next", E = "private-next-root-dir",
|
|
584
|
+
let n = "nxtP", r = "nxtI", i = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", o = ".prefetch.rsc", s = ".rsc", c = ".action", l = ".json", u = ".meta", d = ".body", f = "x-next-cache-tags", p = "x-next-cache-soft-tags", m = "x-next-revalidated-tags", h = "x-next-revalidate-tag-token", g = 128, _ = 256, v = 1024, y = "_N_T_", b = 31536e3, x = "middleware", S = `(?:src/)?${x}`, C = "instrumentation", w = "private-next-pages", T = "private-dot-next", E = "private-next-root-dir", pn = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", k = "private-next-rsc-server-reference", mn = "private-next-rsc-action-encryption", A = "private-next-rsc-action-client-wrapper", j = "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", N = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", P = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", F = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", hn = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", I = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", R = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", gn = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", z = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", B = "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", V = "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", _n = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", vn = [
|
|
585
585
|
"app",
|
|
586
586
|
"pages",
|
|
587
587
|
"components",
|
|
588
588
|
"lib",
|
|
589
589
|
"src"
|
|
590
|
-
],
|
|
590
|
+
], yn = {
|
|
591
591
|
edge: "edge",
|
|
592
592
|
experimentalEdge: "experimental-edge",
|
|
593
593
|
nodejs: "nodejs"
|
|
594
|
-
},
|
|
594
|
+
}, H = {
|
|
595
595
|
shared: "shared",
|
|
596
596
|
reactServerComponents: "rsc",
|
|
597
597
|
serverSideRendering: "ssr",
|
|
@@ -603,30 +603,30 @@ function pr() {
|
|
|
603
603
|
appPagesBrowser: "app-pages-browser",
|
|
604
604
|
appMetadataRoute: "app-metadata-route",
|
|
605
605
|
appRouteHandler: "app-route-handler"
|
|
606
|
-
},
|
|
607
|
-
...
|
|
606
|
+
}, W = {
|
|
607
|
+
...H,
|
|
608
608
|
GROUP: {
|
|
609
609
|
serverOnly: [
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
610
|
+
H.reactServerComponents,
|
|
611
|
+
H.actionBrowser,
|
|
612
|
+
H.appMetadataRoute,
|
|
613
|
+
H.appRouteHandler,
|
|
614
|
+
H.instrument
|
|
615
615
|
],
|
|
616
|
-
clientOnly: [
|
|
617
|
-
nonClientServerTarget: [
|
|
616
|
+
clientOnly: [H.serverSideRendering, H.appPagesBrowser],
|
|
617
|
+
nonClientServerTarget: [H.middleware, H.api],
|
|
618
618
|
app: [
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
619
|
+
H.reactServerComponents,
|
|
620
|
+
H.actionBrowser,
|
|
621
|
+
H.appMetadataRoute,
|
|
622
|
+
H.appRouteHandler,
|
|
623
|
+
H.serverSideRendering,
|
|
624
|
+
H.appPagesBrowser,
|
|
625
|
+
H.shared,
|
|
626
|
+
H.instrument
|
|
627
627
|
]
|
|
628
628
|
}
|
|
629
|
-
},
|
|
629
|
+
}, G = {
|
|
630
630
|
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
631
631
|
metadata: "__next_metadata__",
|
|
632
632
|
metadataRoute: "__next_metadata_route__",
|
|
@@ -661,7 +661,7 @@ function qt() {
|
|
|
661
661
|
return o;
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
|
-
let n =
|
|
664
|
+
let n = dr();
|
|
665
665
|
function r(e) {
|
|
666
666
|
let t = new Headers();
|
|
667
667
|
for (let [n, r] of Object.entries(e)) {
|
|
@@ -707,7 +707,7 @@ function qt() {
|
|
|
707
707
|
})(qe)), qe;
|
|
708
708
|
}
|
|
709
709
|
var Fe = {}, Rt;
|
|
710
|
-
function
|
|
710
|
+
function hr() {
|
|
711
711
|
return Rt || (Rt = 1, (function(e) {
|
|
712
712
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
713
713
|
function t(e, t) {
|
|
@@ -752,7 +752,7 @@ function mr() {
|
|
|
752
752
|
})(Fe)), Fe;
|
|
753
753
|
}
|
|
754
754
|
var Be = {}, Ge, Pt;
|
|
755
|
-
function
|
|
755
|
+
function fr() {
|
|
756
756
|
if (Pt) return Ge;
|
|
757
757
|
Pt = 1;
|
|
758
758
|
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
|
|
@@ -1003,11 +1003,11 @@ function $e() {
|
|
|
1003
1003
|
return n.stringifyCookie;
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
|
-
let n =
|
|
1006
|
+
let n = fr();
|
|
1007
1007
|
})(Be)), Be;
|
|
1008
1008
|
}
|
|
1009
1009
|
var Tt;
|
|
1010
|
-
function
|
|
1010
|
+
function pr() {
|
|
1011
1011
|
return Tt || (Tt = 1, (function(e) {
|
|
1012
1012
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1013
1013
|
function t(e, t) {
|
|
@@ -1024,7 +1024,7 @@ function br() {
|
|
|
1024
1024
|
return s;
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
1027
|
-
let n = jt(), r = qt(), i =
|
|
1027
|
+
let n = jt(), r = qt(), i = hr(), a = $e(), o = /* @__PURE__ */ Symbol("internal request");
|
|
1028
1028
|
class s extends Request {
|
|
1029
1029
|
constructor(e, t = {}) {
|
|
1030
1030
|
let i = typeof e != "string" && "url" in e ? e.url : String(e);
|
|
@@ -1087,9 +1087,9 @@ function br() {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
})(Te)), Te;
|
|
1089
1089
|
}
|
|
1090
|
-
var Xe = {}, We = {},
|
|
1091
|
-
function
|
|
1092
|
-
return
|
|
1090
|
+
var Xe = {}, We = {}, St;
|
|
1091
|
+
function mr() {
|
|
1092
|
+
return St || (St = 1, (function(e) {
|
|
1093
1093
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ReflectAdapter", {
|
|
1094
1094
|
enumerable: !0,
|
|
1095
1095
|
get: function() {
|
|
@@ -1113,16 +1113,16 @@ function gr() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
})(We)), We;
|
|
1115
1115
|
}
|
|
1116
|
-
var
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1116
|
+
var It;
|
|
1117
|
+
function _r() {
|
|
1118
|
+
return It || (It = 1, (function(e) {
|
|
1119
1119
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextResponse", {
|
|
1120
1120
|
enumerable: !0,
|
|
1121
1121
|
get: function() {
|
|
1122
1122
|
return l;
|
|
1123
1123
|
}
|
|
1124
1124
|
});
|
|
1125
|
-
let t = $e(), n = jt(), r = qt(), i =
|
|
1125
|
+
let t = $e(), n = jt(), r = qt(), i = mr(), a = $e(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
|
|
1126
1126
|
301,
|
|
1127
1127
|
302,
|
|
1128
1128
|
303,
|
|
@@ -1208,7 +1208,7 @@ function wr() {
|
|
|
1208
1208
|
})(Xe)), Xe;
|
|
1209
1209
|
}
|
|
1210
1210
|
var ze = {}, At;
|
|
1211
|
-
function
|
|
1211
|
+
function br() {
|
|
1212
1212
|
return At || (At = 1, (function(e) {
|
|
1213
1213
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ImageResponse", {
|
|
1214
1214
|
enumerable: !0,
|
|
@@ -1222,24 +1222,24 @@ function Er() {
|
|
|
1222
1222
|
})(ze)), ze;
|
|
1223
1223
|
}
|
|
1224
1224
|
var Ve = {}, Ke = { exports: {} }, Ot;
|
|
1225
|
-
function
|
|
1225
|
+
function gr() {
|
|
1226
1226
|
return Ot || (Ot = 1, (() => {
|
|
1227
1227
|
var e = { 226: function(e, t) {
|
|
1228
1228
|
(function(n, r) {
|
|
1229
|
-
var i = "1.0.35", a = "", o = "?", s = "function", c = "undefined", l = "object", u = "string", d = "major", f = "model", p = "name", m = "type", h = "vendor", g = "version", _ = "architecture", v = "console", y = "mobile", b = "tablet", x = "smarttv", S = "wearable", C = "embedded", w = 350, T = "Amazon", E = "Apple",
|
|
1229
|
+
var i = "1.0.35", a = "", o = "?", s = "function", c = "undefined", l = "object", u = "string", d = "major", f = "model", p = "name", m = "type", h = "vendor", g = "version", _ = "architecture", v = "console", y = "mobile", b = "tablet", x = "smarttv", S = "wearable", C = "embedded", w = 350, T = "Amazon", E = "Apple", pn = "ASUS", D = "BlackBerry", O = "Browser", k = "Chrome", mn = "Edge", A = "Firefox", j = "Google", N = "Huawei", P = "LG", F = "Microsoft", hn = "Motorola", I = "Opera", R = "Samsung", gn = "Sharp", z = "Sony", B = "Xiaomi", V = "Zebra", _n = "Facebook", vn = "Chromium OS", yn = "Mac OS", H = function(e, t) {
|
|
1230
1230
|
var n = {};
|
|
1231
1231
|
for (var r in e) t[r] && t[r].length % 2 == 0 ? n[r] = t[r].concat(e[r]) : n[r] = e[r];
|
|
1232
1232
|
return n;
|
|
1233
|
-
},
|
|
1233
|
+
}, W = function(e) {
|
|
1234
1234
|
for (var t = {}, n = 0; n < e.length; n++) t[e[n].toUpperCase()] = e[n];
|
|
1235
1235
|
return t;
|
|
1236
|
-
},
|
|
1237
|
-
return typeof e === u ?
|
|
1238
|
-
},
|
|
1236
|
+
}, G = function(e, t) {
|
|
1237
|
+
return typeof e === u ? q(t).indexOf(q(e)) !== -1 : !1;
|
|
1238
|
+
}, q = function(e) {
|
|
1239
1239
|
return e.toLowerCase();
|
|
1240
|
-
},
|
|
1240
|
+
}, bn = function(e) {
|
|
1241
1241
|
return typeof e === u ? e.replace(/[^\d\.]/g, a).split(".")[0] : r;
|
|
1242
|
-
},
|
|
1242
|
+
}, J = function(e, t) {
|
|
1243
1243
|
if (typeof e === u) return e = e.replace(/^\s\s*/, a), typeof t === c ? e : e.substring(0, w);
|
|
1244
1244
|
}, X = function(e, t) {
|
|
1245
1245
|
for (var n = 0, i, a, o, c, u, d; n < t.length && !u;) {
|
|
@@ -1247,12 +1247,12 @@ function vr() {
|
|
|
1247
1247
|
for (i = a = 0; i < f.length && !u && f[i];) if (u = f[i++].exec(e), u) for (o = 0; o < p.length; o++) d = u[++a], c = p[o], typeof c === l && c.length > 0 ? c.length === 2 ? typeof c[1] == s ? this[c[0]] = c[1].call(this, d) : this[c[0]] = c[1] : c.length === 3 ? typeof c[1] === s && !(c[1].exec && c[1].test) ? this[c[0]] = d ? c[1].call(this, d, c[2]) : r : this[c[0]] = d ? d.replace(c[1], c[2]) : r : c.length === 4 && (this[c[0]] = d ? c[3].call(this, d.replace(c[1], c[2])) : r) : this[c] = d || r;
|
|
1248
1248
|
n += 2;
|
|
1249
1249
|
}
|
|
1250
|
-
},
|
|
1250
|
+
}, xn = function(e, t) {
|
|
1251
1251
|
for (var n in t) if (typeof t[n] === l && t[n].length > 0) {
|
|
1252
|
-
for (var i = 0; i < t[n].length; i++) if (
|
|
1253
|
-
} else if (
|
|
1252
|
+
for (var i = 0; i < t[n].length; i++) if (G(t[n][i], e)) return n === o ? r : n;
|
|
1253
|
+
} else if (G(t[n], e)) return n === o ? r : n;
|
|
1254
1254
|
return e;
|
|
1255
|
-
},
|
|
1255
|
+
}, Sn = {
|
|
1256
1256
|
"1.0": "/8",
|
|
1257
1257
|
1.2: "/1",
|
|
1258
1258
|
1.3: "/3",
|
|
@@ -1261,7 +1261,7 @@ function vr() {
|
|
|
1261
1261
|
"2.0.3": "/417",
|
|
1262
1262
|
"2.0.4": "/419",
|
|
1263
1263
|
"?": "/"
|
|
1264
|
-
},
|
|
1264
|
+
}, Cn = {
|
|
1265
1265
|
ME: "4.90",
|
|
1266
1266
|
"NT 3.11": "NT3.51",
|
|
1267
1267
|
"NT 4.0": "NT4.0",
|
|
@@ -1273,7 +1273,7 @@ function vr() {
|
|
|
1273
1273
|
8.1: "NT 6.3",
|
|
1274
1274
|
10: ["NT 6.4", "NT 10.0"],
|
|
1275
1275
|
RT: "ARM"
|
|
1276
|
-
},
|
|
1276
|
+
}, wn = {
|
|
1277
1277
|
browser: [
|
|
1278
1278
|
[/\b(?:crmo|crios)\/([\w\.]+)/i],
|
|
1279
1279
|
[g, [p, "Chrome"]],
|
|
@@ -1286,9 +1286,9 @@ function vr() {
|
|
|
1286
1286
|
],
|
|
1287
1287
|
[p, g],
|
|
1288
1288
|
[/opios[\/ ]+([\w\.]+)/i],
|
|
1289
|
-
[g, [p,
|
|
1289
|
+
[g, [p, I + " Mini"]],
|
|
1290
1290
|
[/\bopr\/([\w\.]+)/i],
|
|
1291
|
-
[g, [p,
|
|
1291
|
+
[g, [p, I]],
|
|
1292
1292
|
[
|
|
1293
1293
|
/(kindle)\/([\w\.]+)/i,
|
|
1294
1294
|
/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,
|
|
@@ -1301,7 +1301,7 @@ function vr() {
|
|
|
1301
1301
|
],
|
|
1302
1302
|
[p, g],
|
|
1303
1303
|
[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],
|
|
1304
|
-
[g, [p, "UC" +
|
|
1304
|
+
[g, [p, "UC" + O]],
|
|
1305
1305
|
[/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i],
|
|
1306
1306
|
[g, [p, "WeChat(Win) Desktop"]],
|
|
1307
1307
|
[/micromessenger\/([\w\.]+)/i],
|
|
@@ -1316,29 +1316,29 @@ function vr() {
|
|
|
1316
1316
|
[[
|
|
1317
1317
|
p,
|
|
1318
1318
|
/(.+)/,
|
|
1319
|
-
"$1 Secure " +
|
|
1319
|
+
"$1 Secure " + O
|
|
1320
1320
|
], g],
|
|
1321
1321
|
[/\bfocus\/([\w\.]+)/i],
|
|
1322
|
-
[g, [p,
|
|
1322
|
+
[g, [p, A + " Focus"]],
|
|
1323
1323
|
[/\bopt\/([\w\.]+)/i],
|
|
1324
|
-
[g, [p,
|
|
1324
|
+
[g, [p, I + " Touch"]],
|
|
1325
1325
|
[/coc_coc\w+\/([\w\.]+)/i],
|
|
1326
1326
|
[g, [p, "Coc Coc"]],
|
|
1327
1327
|
[/dolfin\/([\w\.]+)/i],
|
|
1328
1328
|
[g, [p, "Dolphin"]],
|
|
1329
1329
|
[/coast\/([\w\.]+)/i],
|
|
1330
|
-
[g, [p,
|
|
1330
|
+
[g, [p, I + " Coast"]],
|
|
1331
1331
|
[/miuibrowser\/([\w\.]+)/i],
|
|
1332
|
-
[g, [p, "MIUI " +
|
|
1332
|
+
[g, [p, "MIUI " + O]],
|
|
1333
1333
|
[/fxios\/([-\w\.]+)/i],
|
|
1334
|
-
[g, [p,
|
|
1334
|
+
[g, [p, A]],
|
|
1335
1335
|
[/\bqihu|(qi?ho?o?|360)browser/i],
|
|
1336
|
-
[[p, "360 " +
|
|
1336
|
+
[[p, "360 " + O]],
|
|
1337
1337
|
[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],
|
|
1338
1338
|
[[
|
|
1339
1339
|
p,
|
|
1340
1340
|
/(.+)/,
|
|
1341
|
-
"$1 " +
|
|
1341
|
+
"$1 " + O
|
|
1342
1342
|
], g],
|
|
1343
1343
|
[/(comodo_dragon)\/([\w\.]+)/i],
|
|
1344
1344
|
[[
|
|
@@ -1359,7 +1359,7 @@ function vr() {
|
|
|
1359
1359
|
],
|
|
1360
1360
|
[p],
|
|
1361
1361
|
[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],
|
|
1362
|
-
[[p,
|
|
1362
|
+
[[p, _n], g],
|
|
1363
1363
|
[
|
|
1364
1364
|
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
|
|
1365
1365
|
/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,
|
|
@@ -1373,11 +1373,11 @@ function vr() {
|
|
|
1373
1373
|
[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],
|
|
1374
1374
|
[g, [p, "TikTok"]],
|
|
1375
1375
|
[/headlesschrome(?:\/([\w\.]+)| )/i],
|
|
1376
|
-
[g, [p,
|
|
1376
|
+
[g, [p, k + " Headless"]],
|
|
1377
1377
|
[/ wv\).+(chrome)\/([\w\.]+)/i],
|
|
1378
|
-
[[p,
|
|
1378
|
+
[[p, k + " WebView"], g],
|
|
1379
1379
|
[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],
|
|
1380
|
-
[g, [p, "Android " +
|
|
1380
|
+
[g, [p, "Android " + O]],
|
|
1381
1381
|
[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],
|
|
1382
1382
|
[p, g],
|
|
1383
1383
|
[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],
|
|
@@ -1387,15 +1387,15 @@ function vr() {
|
|
|
1387
1387
|
[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],
|
|
1388
1388
|
[p, [
|
|
1389
1389
|
g,
|
|
1390
|
-
|
|
1391
|
-
|
|
1390
|
+
xn,
|
|
1391
|
+
Sn
|
|
1392
1392
|
]],
|
|
1393
1393
|
[/(webkit|khtml)\/([\w\.]+)/i],
|
|
1394
1394
|
[p, g],
|
|
1395
1395
|
[/(navigator|netscape\d?)\/([-\w\.]+)/i],
|
|
1396
1396
|
[[p, "Netscape"], g],
|
|
1397
1397
|
[/mobile vr; rv:([\w\.]+)\).+firefox/i],
|
|
1398
|
-
[g, [p,
|
|
1398
|
+
[g, [p, A + " Reality"]],
|
|
1399
1399
|
[
|
|
1400
1400
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
1401
1401
|
/(swiftfox)/i,
|
|
@@ -1419,7 +1419,7 @@ function vr() {
|
|
|
1419
1419
|
[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],
|
|
1420
1420
|
[[_, "amd64"]],
|
|
1421
1421
|
[/(ia32(?=;))/i],
|
|
1422
|
-
[[_,
|
|
1422
|
+
[[_, q]],
|
|
1423
1423
|
[/((?:i[346]|x)86)[;\)]/i],
|
|
1424
1424
|
[[_, "ia32"]],
|
|
1425
1425
|
[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],
|
|
@@ -1433,18 +1433,18 @@ function vr() {
|
|
|
1433
1433
|
_,
|
|
1434
1434
|
/ower/,
|
|
1435
1435
|
a,
|
|
1436
|
-
|
|
1436
|
+
q
|
|
1437
1437
|
]],
|
|
1438
1438
|
[/(sun4\w)[;\)]/i],
|
|
1439
1439
|
[[_, "sparc"]],
|
|
1440
1440
|
[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],
|
|
1441
|
-
[[_,
|
|
1441
|
+
[[_, q]]
|
|
1442
1442
|
],
|
|
1443
1443
|
device: [
|
|
1444
1444
|
[/\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],
|
|
1445
1445
|
[
|
|
1446
1446
|
f,
|
|
1447
|
-
[h,
|
|
1447
|
+
[h, R],
|
|
1448
1448
|
[m, b]
|
|
1449
1449
|
],
|
|
1450
1450
|
[
|
|
@@ -1454,7 +1454,7 @@ function vr() {
|
|
|
1454
1454
|
],
|
|
1455
1455
|
[
|
|
1456
1456
|
f,
|
|
1457
|
-
[h,
|
|
1457
|
+
[h, R],
|
|
1458
1458
|
[m, y]
|
|
1459
1459
|
],
|
|
1460
1460
|
[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],
|
|
@@ -1478,19 +1478,19 @@ function vr() {
|
|
|
1478
1478
|
[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],
|
|
1479
1479
|
[
|
|
1480
1480
|
f,
|
|
1481
|
-
[h,
|
|
1481
|
+
[h, gn],
|
|
1482
1482
|
[m, y]
|
|
1483
1483
|
],
|
|
1484
1484
|
[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],
|
|
1485
1485
|
[
|
|
1486
1486
|
f,
|
|
1487
|
-
[h,
|
|
1487
|
+
[h, N],
|
|
1488
1488
|
[m, b]
|
|
1489
1489
|
],
|
|
1490
1490
|
[/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],
|
|
1491
1491
|
[
|
|
1492
1492
|
f,
|
|
1493
|
-
[h,
|
|
1493
|
+
[h, N],
|
|
1494
1494
|
[m, y]
|
|
1495
1495
|
],
|
|
1496
1496
|
[
|
|
@@ -1506,7 +1506,7 @@ function vr() {
|
|
|
1506
1506
|
/_/g,
|
|
1507
1507
|
" "
|
|
1508
1508
|
],
|
|
1509
|
-
[h,
|
|
1509
|
+
[h, B],
|
|
1510
1510
|
[m, y]
|
|
1511
1511
|
],
|
|
1512
1512
|
[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],
|
|
@@ -1516,7 +1516,7 @@ function vr() {
|
|
|
1516
1516
|
/_/g,
|
|
1517
1517
|
" "
|
|
1518
1518
|
],
|
|
1519
|
-
[h,
|
|
1519
|
+
[h, B],
|
|
1520
1520
|
[m, b]
|
|
1521
1521
|
],
|
|
1522
1522
|
[/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],
|
|
@@ -1544,19 +1544,19 @@ function vr() {
|
|
|
1544
1544
|
],
|
|
1545
1545
|
[
|
|
1546
1546
|
f,
|
|
1547
|
-
[h,
|
|
1547
|
+
[h, hn],
|
|
1548
1548
|
[m, y]
|
|
1549
1549
|
],
|
|
1550
1550
|
[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],
|
|
1551
1551
|
[
|
|
1552
1552
|
f,
|
|
1553
|
-
[h,
|
|
1553
|
+
[h, hn],
|
|
1554
1554
|
[m, b]
|
|
1555
1555
|
],
|
|
1556
1556
|
[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],
|
|
1557
1557
|
[
|
|
1558
1558
|
f,
|
|
1559
|
-
[h,
|
|
1559
|
+
[h, P],
|
|
1560
1560
|
[m, b]
|
|
1561
1561
|
],
|
|
1562
1562
|
[
|
|
@@ -1566,7 +1566,7 @@ function vr() {
|
|
|
1566
1566
|
],
|
|
1567
1567
|
[
|
|
1568
1568
|
f,
|
|
1569
|
-
[h,
|
|
1569
|
+
[h, P],
|
|
1570
1570
|
[m, y]
|
|
1571
1571
|
],
|
|
1572
1572
|
[/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],
|
|
@@ -1588,25 +1588,25 @@ function vr() {
|
|
|
1588
1588
|
[/(pixel c)\b/i],
|
|
1589
1589
|
[
|
|
1590
1590
|
f,
|
|
1591
|
-
[h,
|
|
1591
|
+
[h, j],
|
|
1592
1592
|
[m, b]
|
|
1593
1593
|
],
|
|
1594
1594
|
[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],
|
|
1595
1595
|
[
|
|
1596
1596
|
f,
|
|
1597
|
-
[h,
|
|
1597
|
+
[h, j],
|
|
1598
1598
|
[m, y]
|
|
1599
1599
|
],
|
|
1600
1600
|
[/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],
|
|
1601
1601
|
[
|
|
1602
1602
|
f,
|
|
1603
|
-
[h,
|
|
1603
|
+
[h, z],
|
|
1604
1604
|
[m, y]
|
|
1605
1605
|
],
|
|
1606
1606
|
[/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i],
|
|
1607
1607
|
[
|
|
1608
1608
|
[f, "Xperia Tablet"],
|
|
1609
|
-
[h,
|
|
1609
|
+
[h, z],
|
|
1610
1610
|
[m, b]
|
|
1611
1611
|
],
|
|
1612
1612
|
[/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],
|
|
@@ -1644,19 +1644,19 @@ function vr() {
|
|
|
1644
1644
|
[/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i],
|
|
1645
1645
|
[
|
|
1646
1646
|
f,
|
|
1647
|
-
[h,
|
|
1647
|
+
[h, D],
|
|
1648
1648
|
[m, y]
|
|
1649
1649
|
],
|
|
1650
1650
|
[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],
|
|
1651
1651
|
[
|
|
1652
1652
|
f,
|
|
1653
|
-
[h,
|
|
1653
|
+
[h, pn],
|
|
1654
1654
|
[m, b]
|
|
1655
1655
|
],
|
|
1656
1656
|
[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],
|
|
1657
1657
|
[
|
|
1658
1658
|
f,
|
|
1659
|
-
[h,
|
|
1659
|
+
[h, pn],
|
|
1660
1660
|
[m, y]
|
|
1661
1661
|
],
|
|
1662
1662
|
[/(nexus 9)/i],
|
|
@@ -1725,7 +1725,7 @@ function vr() {
|
|
|
1725
1725
|
[/(surface duo)/i],
|
|
1726
1726
|
[
|
|
1727
1727
|
f,
|
|
1728
|
-
[h,
|
|
1728
|
+
[h, F],
|
|
1729
1729
|
[m, b]
|
|
1730
1730
|
],
|
|
1731
1731
|
[/droid [\d\.]+; (fp\du?)(?: b|\))/i],
|
|
@@ -1879,19 +1879,19 @@ function vr() {
|
|
|
1879
1879
|
/\./g,
|
|
1880
1880
|
" "
|
|
1881
1881
|
],
|
|
1882
|
-
[h,
|
|
1882
|
+
[h, F],
|
|
1883
1883
|
[m, y]
|
|
1884
1884
|
],
|
|
1885
1885
|
[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],
|
|
1886
1886
|
[
|
|
1887
1887
|
f,
|
|
1888
|
-
[h,
|
|
1888
|
+
[h, V],
|
|
1889
1889
|
[m, b]
|
|
1890
1890
|
],
|
|
1891
1891
|
[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],
|
|
1892
1892
|
[
|
|
1893
1893
|
f,
|
|
1894
|
-
[h,
|
|
1894
|
+
[h, V],
|
|
1895
1895
|
[m, y]
|
|
1896
1896
|
],
|
|
1897
1897
|
[/smart-tv.+(samsung)/i],
|
|
@@ -1903,11 +1903,11 @@ function vr() {
|
|
|
1903
1903
|
/^/,
|
|
1904
1904
|
"SmartTV"
|
|
1905
1905
|
],
|
|
1906
|
-
[h,
|
|
1906
|
+
[h, R],
|
|
1907
1907
|
[m, x]
|
|
1908
1908
|
],
|
|
1909
1909
|
[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],
|
|
1910
|
-
[[h,
|
|
1910
|
+
[[h, P], [m, x]],
|
|
1911
1911
|
[/(apple) ?tv/i],
|
|
1912
1912
|
[
|
|
1913
1913
|
h,
|
|
@@ -1916,8 +1916,8 @@ function vr() {
|
|
|
1916
1916
|
],
|
|
1917
1917
|
[/crkey/i],
|
|
1918
1918
|
[
|
|
1919
|
-
[f,
|
|
1920
|
-
[h,
|
|
1919
|
+
[f, k + "cast"],
|
|
1920
|
+
[h, j],
|
|
1921
1921
|
[m, x]
|
|
1922
1922
|
],
|
|
1923
1923
|
[/droid.+aft(\w)( bui|\))/i],
|
|
@@ -1929,19 +1929,19 @@ function vr() {
|
|
|
1929
1929
|
[/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i],
|
|
1930
1930
|
[
|
|
1931
1931
|
f,
|
|
1932
|
-
[h,
|
|
1932
|
+
[h, gn],
|
|
1933
1933
|
[m, x]
|
|
1934
1934
|
],
|
|
1935
1935
|
[/(bravia[\w ]+)( bui|\))/i],
|
|
1936
1936
|
[
|
|
1937
1937
|
f,
|
|
1938
|
-
[h,
|
|
1938
|
+
[h, z],
|
|
1939
1939
|
[m, x]
|
|
1940
1940
|
],
|
|
1941
1941
|
[/(mitv-\w{5}) bui/i],
|
|
1942
1942
|
[
|
|
1943
1943
|
f,
|
|
1944
|
-
[h,
|
|
1944
|
+
[h, B],
|
|
1945
1945
|
[m, x]
|
|
1946
1946
|
],
|
|
1947
1947
|
[/Hbbtv.*(technisat) (.*);/i],
|
|
@@ -1952,8 +1952,8 @@ function vr() {
|
|
|
1952
1952
|
],
|
|
1953
1953
|
[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],
|
|
1954
1954
|
[
|
|
1955
|
-
[h,
|
|
1956
|
-
[f,
|
|
1955
|
+
[h, J],
|
|
1956
|
+
[f, J],
|
|
1957
1957
|
[m, x]
|
|
1958
1958
|
],
|
|
1959
1959
|
[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],
|
|
@@ -1973,13 +1973,13 @@ function vr() {
|
|
|
1973
1973
|
[/(playstation [345portablevi]+)/i],
|
|
1974
1974
|
[
|
|
1975
1975
|
f,
|
|
1976
|
-
[h,
|
|
1976
|
+
[h, z],
|
|
1977
1977
|
[m, v]
|
|
1978
1978
|
],
|
|
1979
1979
|
[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],
|
|
1980
1980
|
[
|
|
1981
1981
|
f,
|
|
1982
|
-
[h,
|
|
1982
|
+
[h, F],
|
|
1983
1983
|
[m, v]
|
|
1984
1984
|
],
|
|
1985
1985
|
[/((pebble))app/i],
|
|
@@ -1997,19 +1997,19 @@ function vr() {
|
|
|
1997
1997
|
[/droid.+; (glass) \d/i],
|
|
1998
1998
|
[
|
|
1999
1999
|
f,
|
|
2000
|
-
[h,
|
|
2000
|
+
[h, j],
|
|
2001
2001
|
[m, S]
|
|
2002
2002
|
],
|
|
2003
2003
|
[/droid.+; (wt63?0{2,3})\)/i],
|
|
2004
2004
|
[
|
|
2005
2005
|
f,
|
|
2006
|
-
[h,
|
|
2006
|
+
[h, V],
|
|
2007
2007
|
[m, S]
|
|
2008
2008
|
],
|
|
2009
2009
|
[/(quest( 2| pro)?)/i],
|
|
2010
2010
|
[
|
|
2011
2011
|
f,
|
|
2012
|
-
[h,
|
|
2012
|
+
[h, _n],
|
|
2013
2013
|
[m, S]
|
|
2014
2014
|
],
|
|
2015
2015
|
[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],
|
|
@@ -2033,7 +2033,7 @@ function vr() {
|
|
|
2033
2033
|
],
|
|
2034
2034
|
engine: [
|
|
2035
2035
|
[/windows.+ edge\/([\w\.]+)/i],
|
|
2036
|
-
[g, [p,
|
|
2036
|
+
[g, [p, mn + "HTML"]],
|
|
2037
2037
|
[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],
|
|
2038
2038
|
[g, [p, "Blink"]],
|
|
2039
2039
|
[
|
|
@@ -2058,14 +2058,14 @@ function vr() {
|
|
|
2058
2058
|
],
|
|
2059
2059
|
[p, [
|
|
2060
2060
|
g,
|
|
2061
|
-
|
|
2062
|
-
|
|
2061
|
+
xn,
|
|
2062
|
+
Cn
|
|
2063
2063
|
]],
|
|
2064
2064
|
[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],
|
|
2065
2065
|
[[p, "Windows"], [
|
|
2066
2066
|
g,
|
|
2067
|
-
|
|
2068
|
-
|
|
2067
|
+
xn,
|
|
2068
|
+
Cn
|
|
2069
2069
|
]],
|
|
2070
2070
|
[
|
|
2071
2071
|
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -2078,7 +2078,7 @@ function vr() {
|
|
|
2078
2078
|
"."
|
|
2079
2079
|
], [p, "iOS"]],
|
|
2080
2080
|
[/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i],
|
|
2081
|
-
[[p,
|
|
2081
|
+
[[p, yn], [
|
|
2082
2082
|
g,
|
|
2083
2083
|
/_/g,
|
|
2084
2084
|
"."
|
|
@@ -2093,19 +2093,19 @@ function vr() {
|
|
|
2093
2093
|
],
|
|
2094
2094
|
[p, g],
|
|
2095
2095
|
[/\(bb(10);/i],
|
|
2096
|
-
[g, [p,
|
|
2096
|
+
[g, [p, D]],
|
|
2097
2097
|
[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],
|
|
2098
2098
|
[g, [p, "Symbian"]],
|
|
2099
2099
|
[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],
|
|
2100
|
-
[g, [p,
|
|
2100
|
+
[g, [p, A + " OS"]],
|
|
2101
2101
|
[/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],
|
|
2102
2102
|
[g, [p, "webOS"]],
|
|
2103
2103
|
[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],
|
|
2104
2104
|
[g, [p, "watchOS"]],
|
|
2105
2105
|
[/crkey\/([\d\.]+)/i],
|
|
2106
|
-
[g, [p,
|
|
2106
|
+
[g, [p, k + "cast"]],
|
|
2107
2107
|
[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],
|
|
2108
|
-
[[p,
|
|
2108
|
+
[[p, vn], g],
|
|
2109
2109
|
[
|
|
2110
2110
|
/panasonic;(viera)/i,
|
|
2111
2111
|
/(netrange)mmh/i,
|
|
@@ -2134,10 +2134,10 @@ function vr() {
|
|
|
2134
2134
|
]
|
|
2135
2135
|
}, Z = function(e, t) {
|
|
2136
2136
|
if (typeof e === l && (t = e, e = r), !(this instanceof Z)) return new Z(e, t).getResult();
|
|
2137
|
-
var i = typeof n !== c && n.navigator ? n.navigator : r, o = e || (i && i.userAgent ? i.userAgent : a), v = i && i.userAgentData ? i.userAgentData : r, x = t ?
|
|
2137
|
+
var i = typeof n !== c && n.navigator ? n.navigator : r, o = e || (i && i.userAgent ? i.userAgent : a), v = i && i.userAgentData ? i.userAgentData : r, x = t ? H(wn, t) : wn, S = i && i.userAgent == o;
|
|
2138
2138
|
return this.getBrowser = function() {
|
|
2139
2139
|
var e = {};
|
|
2140
|
-
return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] =
|
|
2140
|
+
return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] = bn(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
|
|
2141
2141
|
}, this.getCPU = function() {
|
|
2142
2142
|
var e = {};
|
|
2143
2143
|
return e[_] = r, X.call(e, o, x.cpu), e;
|
|
@@ -2149,7 +2149,7 @@ function vr() {
|
|
|
2149
2149
|
return e[p] = r, e[g] = r, X.call(e, o, x.engine), e;
|
|
2150
2150
|
}, this.getOS = function() {
|
|
2151
2151
|
var e = {};
|
|
2152
|
-
return e[p] = r, e[g] = r, X.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i,
|
|
2152
|
+
return e[p] = r, e[g] = r, X.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i, vn).replace(/macos/i, yn)), e;
|
|
2153
2153
|
}, this.getResult = function() {
|
|
2154
2154
|
return {
|
|
2155
2155
|
ua: this.getUA(),
|
|
@@ -2162,14 +2162,14 @@ function vr() {
|
|
|
2162
2162
|
}, this.getUA = function() {
|
|
2163
2163
|
return o;
|
|
2164
2164
|
}, this.setUA = function(e) {
|
|
2165
|
-
return o = typeof e === u && e.length > w ?
|
|
2165
|
+
return o = typeof e === u && e.length > w ? J(e, w) : e, this;
|
|
2166
2166
|
}, this.setUA(o), this;
|
|
2167
2167
|
};
|
|
2168
|
-
Z.VERSION = i, Z.BROWSER =
|
|
2168
|
+
Z.VERSION = i, Z.BROWSER = W([
|
|
2169
2169
|
p,
|
|
2170
2170
|
g,
|
|
2171
2171
|
d
|
|
2172
|
-
]), Z.CPU =
|
|
2172
|
+
]), Z.CPU = W([_]), Z.DEVICE = W([
|
|
2173
2173
|
f,
|
|
2174
2174
|
h,
|
|
2175
2175
|
m,
|
|
@@ -2179,7 +2179,7 @@ function vr() {
|
|
|
2179
2179
|
b,
|
|
2180
2180
|
S,
|
|
2181
2181
|
C
|
|
2182
|
-
]), Z.ENGINE = Z.OS =
|
|
2182
|
+
]), Z.ENGINE = Z.OS = W([p, g]), typeof t === c ? typeof n !== c && (n.UAParser = Z) : (e.exports && (t = e.exports = Z), t.UAParser = Z);
|
|
2183
2183
|
var Q = typeof n !== c && (n.jQuery || n.Zepto);
|
|
2184
2184
|
if (Q && !Q.ua) {
|
|
2185
2185
|
var $ = new Z();
|
|
@@ -2228,7 +2228,7 @@ function Nt() {
|
|
|
2228
2228
|
return a;
|
|
2229
2229
|
}
|
|
2230
2230
|
});
|
|
2231
|
-
let n = /* @__PURE__ */ r(
|
|
2231
|
+
let n = /* @__PURE__ */ r(gr());
|
|
2232
2232
|
function r(e) {
|
|
2233
2233
|
return e && e.__esModule ? e : { default: e };
|
|
2234
2234
|
}
|
|
@@ -2247,7 +2247,7 @@ function Nt() {
|
|
|
2247
2247
|
})(Ve)), Ve;
|
|
2248
2248
|
}
|
|
2249
2249
|
var Ye = {}, Ct;
|
|
2250
|
-
function
|
|
2250
|
+
function wr() {
|
|
2251
2251
|
return Ct || (Ct = 1, (function(e) {
|
|
2252
2252
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "URLPattern", {
|
|
2253
2253
|
enumerable: !0,
|
|
@@ -2259,20 +2259,20 @@ function Rr() {
|
|
|
2259
2259
|
})(Ye)), Ye;
|
|
2260
2260
|
}
|
|
2261
2261
|
var Lt;
|
|
2262
|
-
function
|
|
2262
|
+
function Er() {
|
|
2263
2263
|
return Lt || (Lt = 1, (function(e, t) {
|
|
2264
2264
|
let n = {
|
|
2265
|
-
NextRequest:
|
|
2266
|
-
NextResponse:
|
|
2267
|
-
ImageResponse:
|
|
2265
|
+
NextRequest: pr().NextRequest,
|
|
2266
|
+
NextResponse: _r().NextResponse,
|
|
2267
|
+
ImageResponse: br().ImageResponse,
|
|
2268
2268
|
userAgentFromString: Nt().userAgentFromString,
|
|
2269
2269
|
userAgent: Nt().userAgent,
|
|
2270
|
-
URLPattern:
|
|
2270
|
+
URLPattern: wr().URLPattern
|
|
2271
2271
|
};
|
|
2272
2272
|
e.exports = n, t.NextRequest = n.NextRequest, t.NextResponse = n.NextResponse, t.ImageResponse = n.ImageResponse, t.userAgentFromString = n.userAgentFromString, t.userAgent = n.userAgent, t.URLPattern = n.URLPattern;
|
|
2273
2273
|
})(we, we.exports)), we.exports;
|
|
2274
2274
|
}
|
|
2275
|
-
|
|
2275
|
+
Er();
|
|
2276
2276
|
var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "logout", e))(Qe || {}), Je = {
|
|
2277
2277
|
login: "login",
|
|
2278
2278
|
logout: "logout",
|
|
@@ -2281,14 +2281,14 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2281
2281
|
applicationJson: "application/json",
|
|
2282
2282
|
multipartFormData: "multipart/form-data",
|
|
2283
2283
|
applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
|
|
2284
|
-
},
|
|
2284
|
+
}, Gr = class {
|
|
2285
2285
|
config;
|
|
2286
2286
|
http;
|
|
2287
2287
|
adapter;
|
|
2288
2288
|
constructor({ config: e, adapter: t, storage: n }) {
|
|
2289
2289
|
this.config = e;
|
|
2290
|
-
let r =
|
|
2291
|
-
(!
|
|
2290
|
+
let r = Tr(n.headers), i = r.deviceId && r.deviceId.length > 0, a = r.websiteId && r.websiteId.length > 0, o = r.websiteNo && r.websiteNo.length > 0, s = r.lang && r.lang.length > 0;
|
|
2291
|
+
(!i || !a || !o || !s) && (r = Sr(n.cookies)), this.http = new xr({
|
|
2292
2292
|
...r,
|
|
2293
2293
|
userType: e.userType,
|
|
2294
2294
|
helloURL: e.helloURL
|
|
@@ -2311,7 +2311,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2311
2311
|
}[n], i = e.cookies;
|
|
2312
2312
|
if (this.http.setHttpOptsToCookies(i), !r || r.length === 0) return this.createErrorResponse(404, "API not found", i);
|
|
2313
2313
|
let a;
|
|
2314
|
-
if ((r.startsWith("admin/") || r.startsWith("api/")) && (a =
|
|
2314
|
+
if ((r.startsWith("admin/") || r.startsWith("api/")) && (a = Ir(i), L.debug(a, "token"), !a || a.username.length === 0 || a.token.length === 0)) return this.createErrorResponse(409, "Authentication required", i);
|
|
2315
2315
|
L.debug({ "content-type": e.contentType }, "Content-Type"), L.debug({
|
|
2316
2316
|
hostUrl: r,
|
|
2317
2317
|
token: a ? { ...a } : ""
|
|
@@ -2373,10 +2373,10 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2373
2373
|
switch (e) {
|
|
2374
2374
|
case Je[Qe[0]]:
|
|
2375
2375
|
let e = t.data;
|
|
2376
|
-
|
|
2376
|
+
Ar(e, a);
|
|
2377
2377
|
break;
|
|
2378
2378
|
case Je[Qe[1]]:
|
|
2379
|
-
a.cleanCookies = (e) =>
|
|
2379
|
+
a.cleanCookies = (e) => Or(e);
|
|
2380
2380
|
break;
|
|
2381
2381
|
}
|
|
2382
2382
|
n.onHandlerSuccess && n.onHandlerSuccess({
|
|
@@ -2407,7 +2407,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2407
2407
|
t[e] = { value: n };
|
|
2408
2408
|
}), t;
|
|
2409
2409
|
}
|
|
2410
|
-
},
|
|
2410
|
+
}, Rr = "zh-CN", U = {
|
|
2411
2411
|
IBOOT_DEVICE_ID: "dvid",
|
|
2412
2412
|
IBOOT_LANG: "lang",
|
|
2413
2413
|
IBOOT_WEBSITE_ID: "wid",
|
|
@@ -2419,25 +2419,22 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2419
2419
|
LANG: "Lang",
|
|
2420
2420
|
WEBSITE_ID: "Website-Id",
|
|
2421
2421
|
WEBSITE_NO: "Website-No"
|
|
2422
|
-
},
|
|
2422
|
+
}, Tr = (e) => {
|
|
2423
2423
|
if (e.get) {
|
|
2424
2424
|
let t = e.get(K.DEVICE_ID), n = e.get(K.LANG), r = e.get(K.WEBSITE_ID), i = e.get(K.WEBSITE_NO), a = {};
|
|
2425
2425
|
return t && t.length > 0 && (a.deviceId = t), n && n.length > 0 && (a.lang = n), r && r.length > 0 && (a.websiteId = r), i && i.length > 0 && (a.websiteNo = i), a;
|
|
2426
2426
|
}
|
|
2427
2427
|
throw Error("The get method of IStorage has not been implemented.");
|
|
2428
|
-
},
|
|
2429
|
-
if (e.set) t.deviceId && e.set(K.DEVICE_ID, t.deviceId), t.lang && e.set(K.LANG, t.lang), t.websiteId && e.set(K.WEBSITE_ID, t.websiteId), t.websiteNo && e.set(K.WEBSITE_NO, t.websiteNo);
|
|
2430
|
-
else throw Error("The set method of IStorage has not been implemented.");
|
|
2431
|
-
}, Or = (e) => {
|
|
2428
|
+
}, Sr = (e) => {
|
|
2432
2429
|
if (e.get) {
|
|
2433
2430
|
let t = e.get(U.IBOOT_DEVICE_ID), n = e.get(U.IBOOT_LANG), r = e.get(U.IBOOT_WEBSITE_ID), i = e.get(U.IBOOT_WEBSITE_NO), a = {};
|
|
2434
2431
|
return t && t.length > 0 && (a.deviceId = t), n && n.length > 0 && (a.lang = n), r && r.length > 0 && (a.websiteId = r), i && i.length > 0 && (a.websiteNo = i), a;
|
|
2435
2432
|
}
|
|
2436
2433
|
throw Error("The get method of ICookies has not been implemented.");
|
|
2437
|
-
},
|
|
2434
|
+
}, Kr = (e, t) => {
|
|
2438
2435
|
if (e.set) t.deviceId && e.set(U.IBOOT_DEVICE_ID, t.deviceId), t.lang && e.set(U.IBOOT_LANG, t.lang), t.websiteId && e.set(U.IBOOT_WEBSITE_ID, t.websiteId), t.websiteNo && e.set(U.IBOOT_WEBSITE_NO, t.websiteNo);
|
|
2439
2436
|
else throw Error("The set method of ICookies has not been implemented.");
|
|
2440
|
-
},
|
|
2437
|
+
}, Ir = (e) => {
|
|
2441
2438
|
if (e.get) {
|
|
2442
2439
|
let t = e[U.IBOOT_USER];
|
|
2443
2440
|
if (t && t.length > 0) {
|
|
@@ -2458,7 +2455,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2458
2455
|
maxAge: -1,
|
|
2459
2456
|
httpOnly: !0,
|
|
2460
2457
|
path: "/"
|
|
2461
|
-
},
|
|
2458
|
+
}, Ar = (e, t) => {
|
|
2462
2459
|
let { id: n, name: r, username: i, nickname: a, headImg: o, token: s, lastLoginTime: c, deviceId: l, userType: u, mustChangePwd: d } = e, f = {
|
|
2463
2460
|
id: n,
|
|
2464
2461
|
name: r,
|
|
@@ -2480,11 +2477,11 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2480
2477
|
value: JSON.stringify(f),
|
|
2481
2478
|
options: Ut()
|
|
2482
2479
|
};
|
|
2483
|
-
},
|
|
2480
|
+
}, Or = (e) => {
|
|
2484
2481
|
if (!e.set) throw Error("cookies set function is undefined");
|
|
2485
2482
|
if (e.set(U.IBOOT_TOKEN, "", Ee), e.set(U.IBOOT_USER, "", Ee), !e.delete) throw Error("cookies delete function is undefined");
|
|
2486
2483
|
e.delete(U.IBOOT_TOKEN, Ee), e.delete(U.IBOOT_USER, Ee);
|
|
2487
|
-
},
|
|
2484
|
+
}, xr = class {
|
|
2488
2485
|
baseUrl;
|
|
2489
2486
|
helloMethod;
|
|
2490
2487
|
apiKey;
|
|
@@ -2496,7 +2493,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2496
2493
|
websiteId;
|
|
2497
2494
|
websiteNo;
|
|
2498
2495
|
constructor(e) {
|
|
2499
|
-
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 ??
|
|
2496
|
+
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 ?? Qt.TYPE_MGT, this.deviceId = e.deviceId ?? tr(), this.lang = e.lang ?? Rr, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
|
|
2500
2497
|
}
|
|
2501
2498
|
encrypt(e) {
|
|
2502
2499
|
let t = ne.enc.Utf8.parse(this.apiKey);
|
|
@@ -2524,7 +2521,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2524
2521
|
let n = e.get(t);
|
|
2525
2522
|
n && i.push(t + "=" + n);
|
|
2526
2523
|
});
|
|
2527
|
-
let a = i.join("&"), s =
|
|
2524
|
+
let a = i.join("&"), s = Wt.md5((a + t).toLocaleUpperCase()), c = {
|
|
2528
2525
|
params: a,
|
|
2529
2526
|
md5: s
|
|
2530
2527
|
};
|
|
@@ -2658,19 +2655,19 @@ const helloURL = `${baseUrl.site}helloIBoot`;
|
|
|
2658
2655
|
var ICMSServer = class {
|
|
2659
2656
|
http;
|
|
2660
2657
|
constructor(e) {
|
|
2661
|
-
this.http = new
|
|
2662
|
-
...
|
|
2663
|
-
userType:
|
|
2658
|
+
this.http = new xr({
|
|
2659
|
+
...Sr(e),
|
|
2660
|
+
userType: Qt.TYPE_C,
|
|
2664
2661
|
helloURL
|
|
2665
2662
|
});
|
|
2666
2663
|
}
|
|
2667
|
-
async helloWebsite(e
|
|
2668
|
-
let
|
|
2669
|
-
if (
|
|
2670
|
-
let
|
|
2671
|
-
if (
|
|
2672
|
-
let
|
|
2673
|
-
|
|
2664
|
+
async helloWebsite(e) {
|
|
2665
|
+
let t = baseUrl.site + "helloWebsite", n = await this.http.get({ url: t });
|
|
2666
|
+
if (n.success) {
|
|
2667
|
+
let t = n.headers;
|
|
2668
|
+
if (t) {
|
|
2669
|
+
let n = t["device-id"], r = t.lang, i = t["web-id"], a = t["web-no"], o = {};
|
|
2670
|
+
n && n.length > 0 && (o.deviceId = n), r && r.length > 0 && (o.lang = r), i && i.length > 0 && (o.websiteId = i), a && a.length > 0 && (o.websiteNo = a), Kr(e, o);
|
|
2674
2671
|
}
|
|
2675
2672
|
}
|
|
2676
2673
|
}
|
|
@@ -2824,9 +2821,9 @@ var ICMSServer = class {
|
|
|
2824
2821
|
throw Error(n.msg);
|
|
2825
2822
|
}
|
|
2826
2823
|
}, APIMAP = {};
|
|
2827
|
-
const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new
|
|
2824
|
+
const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new Gr({
|
|
2828
2825
|
config: {
|
|
2829
|
-
userType:
|
|
2826
|
+
userType: Qt.TYPE_C,
|
|
2830
2827
|
APIMAP,
|
|
2831
2828
|
helloURL
|
|
2832
2829
|
},
|