icms-api 0.0.8 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -443,7 +443,7 @@ function dr() {
443
443
  return c;
444
444
  },
445
445
  APP_DIR_ALIAS: function() {
446
- return pn;
446
+ return D;
447
447
  },
448
448
  CACHE_ONE_YEAR: function() {
449
449
  return b;
@@ -452,16 +452,16 @@ function dr() {
452
452
  return T;
453
453
  },
454
454
  ESLINT_DEFAULT_DIRS: function() {
455
- return vn;
455
+ return Cn;
456
456
  },
457
457
  GSP_NO_RETURNED_VALUE: function() {
458
- return R;
458
+ return B;
459
459
  },
460
460
  GSSP_COMPONENT_MEMBER_ERROR: function() {
461
- return B;
461
+ return H;
462
462
  },
463
463
  GSSP_NO_RETURNED_VALUE: function() {
464
- return gn;
464
+ return xn;
465
465
  },
466
466
  INSTRUMENTATION_HOOK_FILENAME: function() {
467
467
  return C;
@@ -512,7 +512,7 @@ function dr() {
512
512
  return n;
513
513
  },
514
514
  NON_STANDARD_NODE_ENV: function() {
515
- return V;
515
+ return W;
516
516
  },
517
517
  PAGES_DIR_ALIAS: function() {
518
518
  return w;
@@ -524,25 +524,25 @@ function dr() {
524
524
  return a;
525
525
  },
526
526
  PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
527
- return j;
527
+ return N;
528
528
  },
529
529
  ROOT_DIR_ALIAS: function() {
530
530
  return E;
531
531
  },
532
532
  RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
533
- return A;
533
+ return j;
534
534
  },
535
535
  RSC_ACTION_ENCRYPTION_ALIAS: function() {
536
- return mn;
536
+ return bn;
537
537
  },
538
538
  RSC_ACTION_PROXY_ALIAS: function() {
539
- return k;
539
+ return A;
540
540
  },
541
541
  RSC_ACTION_VALIDATE_ALIAS: function() {
542
- return O;
542
+ return k;
543
543
  },
544
544
  RSC_MOD_REF_PROXY_ALIAS: function() {
545
- return D;
545
+ return O;
546
546
  },
547
547
  RSC_PREFETCH_SUFFIX: function() {
548
548
  return o;
@@ -551,47 +551,47 @@ function dr() {
551
551
  return s;
552
552
  },
553
553
  SERVER_PROPS_EXPORT_ERROR: function() {
554
- return I;
554
+ return z;
555
555
  },
556
556
  SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
557
- return P;
557
+ return F;
558
558
  },
559
559
  SERVER_PROPS_SSG_CONFLICT: function() {
560
- return F;
560
+ return I;
561
561
  },
562
562
  SERVER_RUNTIME: function() {
563
- return yn;
563
+ return wn;
564
564
  },
565
565
  SSG_FALLBACK_EXPORT_ERROR: function() {
566
- return _n;
566
+ return Sn;
567
567
  },
568
568
  SSG_GET_INITIAL_PROPS_CONFLICT: function() {
569
- return N;
569
+ return P;
570
570
  },
571
571
  STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
572
- return hn;
572
+ return R;
573
573
  },
574
574
  UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
575
- return z;
575
+ return V;
576
576
  },
577
577
  WEBPACK_LAYERS: function() {
578
- return W;
578
+ return q;
579
579
  },
580
580
  WEBPACK_RESOURCE_QUERIES: function() {
581
- return G;
581
+ return Tn;
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", 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 = [
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", D = "private-next-app-dir", O = "private-next-rsc-mod-ref-proxy", k = "private-next-rsc-action-validate", A = "private-next-rsc-server-reference", bn = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", N = "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", P = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", F = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", I = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", R = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", z = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", B = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", xn = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", V = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", H = "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", W = "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", Sn = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Cn = [
585
585
  "app",
586
586
  "pages",
587
587
  "components",
588
588
  "lib",
589
589
  "src"
590
- ], yn = {
590
+ ], wn = {
591
591
  edge: "edge",
592
592
  experimentalEdge: "experimental-edge",
593
593
  nodejs: "nodejs"
594
- }, H = {
594
+ }, G = {
595
595
  shared: "shared",
596
596
  reactServerComponents: "rsc",
597
597
  serverSideRendering: "ssr",
@@ -603,30 +603,30 @@ function dr() {
603
603
  appPagesBrowser: "app-pages-browser",
604
604
  appMetadataRoute: "app-metadata-route",
605
605
  appRouteHandler: "app-route-handler"
606
- }, W = {
607
- ...H,
606
+ }, q = {
607
+ ...G,
608
608
  GROUP: {
609
609
  serverOnly: [
610
- H.reactServerComponents,
611
- H.actionBrowser,
612
- H.appMetadataRoute,
613
- H.appRouteHandler,
614
- H.instrument
610
+ G.reactServerComponents,
611
+ G.actionBrowser,
612
+ G.appMetadataRoute,
613
+ G.appRouteHandler,
614
+ G.instrument
615
615
  ],
616
- clientOnly: [H.serverSideRendering, H.appPagesBrowser],
617
- nonClientServerTarget: [H.middleware, H.api],
616
+ clientOnly: [G.serverSideRendering, G.appPagesBrowser],
617
+ nonClientServerTarget: [G.middleware, G.api],
618
618
  app: [
619
- H.reactServerComponents,
620
- H.actionBrowser,
621
- H.appMetadataRoute,
622
- H.appRouteHandler,
623
- H.serverSideRendering,
624
- H.appPagesBrowser,
625
- H.shared,
626
- H.instrument
619
+ G.reactServerComponents,
620
+ G.actionBrowser,
621
+ G.appMetadataRoute,
622
+ G.appRouteHandler,
623
+ G.serverSideRendering,
624
+ G.appPagesBrowser,
625
+ G.shared,
626
+ G.instrument
627
627
  ]
628
628
  }
629
- }, G = {
629
+ }, Tn = {
630
630
  edgeSSREntry: "__next_edge_ssr_entry__",
631
631
  metadata: "__next_metadata__",
632
632
  metadataRoute: "__next_metadata_route__",
@@ -1226,20 +1226,20 @@ 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", 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) {
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", D = "ASUS", O = "BlackBerry", k = "Browser", A = "Chrome", bn = "Edge", j = "Firefox", N = "Google", P = "Huawei", F = "LG", I = "Microsoft", R = "Motorola", z = "Opera", B = "Samsung", xn = "Sharp", V = "Sony", H = "Xiaomi", W = "Zebra", Sn = "Facebook", Cn = "Chromium OS", wn = "Mac OS", G = 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
- }, W = function(e) {
1233
+ }, q = function(e) {
1234
1234
  for (var t = {}, n = 0; n < e.length; n++) t[e[n].toUpperCase()] = e[n];
1235
1235
  return t;
1236
- }, G = function(e, t) {
1237
- return typeof e === u ? q(t).indexOf(q(e)) !== -1 : !1;
1238
- }, q = function(e) {
1236
+ }, Tn = function(e, t) {
1237
+ return typeof e === u ? J(t).indexOf(J(e)) !== -1 : !1;
1238
+ }, J = function(e) {
1239
1239
  return e.toLowerCase();
1240
- }, bn = function(e) {
1240
+ }, En = function(e) {
1241
1241
  return typeof e === u ? e.replace(/[^\d\.]/g, a).split(".")[0] : r;
1242
- }, J = function(e, t) {
1242
+ }, Dn = 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 gr() {
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
- }, xn = function(e, t) {
1250
+ }, On = 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 (G(t[n][i], e)) return n === o ? r : n;
1253
- } else if (G(t[n], e)) return n === o ? r : n;
1252
+ for (var i = 0; i < t[n].length; i++) if (Tn(t[n][i], e)) return n === o ? r : n;
1253
+ } else if (Tn(t[n], e)) return n === o ? r : n;
1254
1254
  return e;
1255
- }, Sn = {
1255
+ }, kn = {
1256
1256
  "1.0": "/8",
1257
1257
  1.2: "/1",
1258
1258
  1.3: "/3",
@@ -1261,7 +1261,7 @@ function gr() {
1261
1261
  "2.0.3": "/417",
1262
1262
  "2.0.4": "/419",
1263
1263
  "?": "/"
1264
- }, Cn = {
1264
+ }, An = {
1265
1265
  ME: "4.90",
1266
1266
  "NT 3.11": "NT3.51",
1267
1267
  "NT 4.0": "NT4.0",
@@ -1273,7 +1273,7 @@ function gr() {
1273
1273
  8.1: "NT 6.3",
1274
1274
  10: ["NT 6.4", "NT 10.0"],
1275
1275
  RT: "ARM"
1276
- }, wn = {
1276
+ }, jn = {
1277
1277
  browser: [
1278
1278
  [/\b(?:crmo|crios)\/([\w\.]+)/i],
1279
1279
  [g, [p, "Chrome"]],
@@ -1286,9 +1286,9 @@ function gr() {
1286
1286
  ],
1287
1287
  [p, g],
1288
1288
  [/opios[\/ ]+([\w\.]+)/i],
1289
- [g, [p, I + " Mini"]],
1289
+ [g, [p, z + " Mini"]],
1290
1290
  [/\bopr\/([\w\.]+)/i],
1291
- [g, [p, I]],
1291
+ [g, [p, z]],
1292
1292
  [
1293
1293
  /(kindle)\/([\w\.]+)/i,
1294
1294
  /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,
@@ -1301,7 +1301,7 @@ function gr() {
1301
1301
  ],
1302
1302
  [p, g],
1303
1303
  [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],
1304
- [g, [p, "UC" + O]],
1304
+ [g, [p, "UC" + k]],
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 gr() {
1316
1316
  [[
1317
1317
  p,
1318
1318
  /(.+)/,
1319
- "$1 Secure " + O
1319
+ "$1 Secure " + k
1320
1320
  ], g],
1321
1321
  [/\bfocus\/([\w\.]+)/i],
1322
- [g, [p, A + " Focus"]],
1322
+ [g, [p, j + " Focus"]],
1323
1323
  [/\bopt\/([\w\.]+)/i],
1324
- [g, [p, I + " Touch"]],
1324
+ [g, [p, z + " 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, I + " Coast"]],
1330
+ [g, [p, z + " Coast"]],
1331
1331
  [/miuibrowser\/([\w\.]+)/i],
1332
- [g, [p, "MIUI " + O]],
1332
+ [g, [p, "MIUI " + k]],
1333
1333
  [/fxios\/([-\w\.]+)/i],
1334
- [g, [p, A]],
1334
+ [g, [p, j]],
1335
1335
  [/\bqihu|(qi?ho?o?|360)browser/i],
1336
- [[p, "360 " + O]],
1336
+ [[p, "360 " + k]],
1337
1337
  [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],
1338
1338
  [[
1339
1339
  p,
1340
1340
  /(.+)/,
1341
- "$1 " + O
1341
+ "$1 " + k
1342
1342
  ], g],
1343
1343
  [/(comodo_dragon)\/([\w\.]+)/i],
1344
1344
  [[
@@ -1359,7 +1359,7 @@ function gr() {
1359
1359
  ],
1360
1360
  [p],
1361
1361
  [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],
1362
- [[p, _n], g],
1362
+ [[p, Sn], g],
1363
1363
  [
1364
1364
  /(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
1365
1365
  /(naver)\(.*?(\d+\.[\w\.]+).*\)/i,
@@ -1373,11 +1373,11 @@ function gr() {
1373
1373
  [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],
1374
1374
  [g, [p, "TikTok"]],
1375
1375
  [/headlesschrome(?:\/([\w\.]+)| )/i],
1376
- [g, [p, k + " Headless"]],
1376
+ [g, [p, A + " Headless"]],
1377
1377
  [/ wv\).+(chrome)\/([\w\.]+)/i],
1378
- [[p, k + " WebView"], g],
1378
+ [[p, A + " WebView"], g],
1379
1379
  [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],
1380
- [g, [p, "Android " + O]],
1380
+ [g, [p, "Android " + k]],
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 gr() {
1387
1387
  [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],
1388
1388
  [p, [
1389
1389
  g,
1390
- xn,
1391
- Sn
1390
+ On,
1391
+ kn
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, A + " Reality"]],
1398
+ [g, [p, j + " Reality"]],
1399
1399
  [
1400
1400
  /ekiohf.+(flow)\/([\w\.]+)/i,
1401
1401
  /(swiftfox)/i,
@@ -1419,7 +1419,7 @@ function gr() {
1419
1419
  [/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],
1420
1420
  [[_, "amd64"]],
1421
1421
  [/(ia32(?=;))/i],
1422
- [[_, q]],
1422
+ [[_, J]],
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 gr() {
1433
1433
  _,
1434
1434
  /ower/,
1435
1435
  a,
1436
- q
1436
+ J
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
- [[_, q]]
1441
+ [[_, J]]
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, R],
1447
+ [h, B],
1448
1448
  [m, b]
1449
1449
  ],
1450
1450
  [
@@ -1454,7 +1454,7 @@ function gr() {
1454
1454
  ],
1455
1455
  [
1456
1456
  f,
1457
- [h, R],
1457
+ [h, B],
1458
1458
  [m, y]
1459
1459
  ],
1460
1460
  [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],
@@ -1478,19 +1478,19 @@ function gr() {
1478
1478
  [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],
1479
1479
  [
1480
1480
  f,
1481
- [h, gn],
1481
+ [h, xn],
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, N],
1487
+ [h, P],
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, N],
1493
+ [h, P],
1494
1494
  [m, y]
1495
1495
  ],
1496
1496
  [
@@ -1506,7 +1506,7 @@ function gr() {
1506
1506
  /_/g,
1507
1507
  " "
1508
1508
  ],
1509
- [h, B],
1509
+ [h, H],
1510
1510
  [m, y]
1511
1511
  ],
1512
1512
  [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],
@@ -1516,7 +1516,7 @@ function gr() {
1516
1516
  /_/g,
1517
1517
  " "
1518
1518
  ],
1519
- [h, B],
1519
+ [h, H],
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 gr() {
1544
1544
  ],
1545
1545
  [
1546
1546
  f,
1547
- [h, hn],
1547
+ [h, R],
1548
1548
  [m, y]
1549
1549
  ],
1550
1550
  [/\b(mz60\d|xoom[2 ]{0,2}) build\//i],
1551
1551
  [
1552
1552
  f,
1553
- [h, hn],
1553
+ [h, R],
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, P],
1559
+ [h, F],
1560
1560
  [m, b]
1561
1561
  ],
1562
1562
  [
@@ -1566,7 +1566,7 @@ function gr() {
1566
1566
  ],
1567
1567
  [
1568
1568
  f,
1569
- [h, P],
1569
+ [h, F],
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 gr() {
1588
1588
  [/(pixel c)\b/i],
1589
1589
  [
1590
1590
  f,
1591
- [h, j],
1591
+ [h, N],
1592
1592
  [m, b]
1593
1593
  ],
1594
1594
  [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],
1595
1595
  [
1596
1596
  f,
1597
- [h, j],
1597
+ [h, N],
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, z],
1603
+ [h, V],
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, z],
1609
+ [h, V],
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 gr() {
1644
1644
  [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i],
1645
1645
  [
1646
1646
  f,
1647
- [h, D],
1647
+ [h, O],
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, pn],
1653
+ [h, D],
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, pn],
1659
+ [h, D],
1660
1660
  [m, y]
1661
1661
  ],
1662
1662
  [/(nexus 9)/i],
@@ -1725,7 +1725,7 @@ function gr() {
1725
1725
  [/(surface duo)/i],
1726
1726
  [
1727
1727
  f,
1728
- [h, F],
1728
+ [h, I],
1729
1729
  [m, b]
1730
1730
  ],
1731
1731
  [/droid [\d\.]+; (fp\du?)(?: b|\))/i],
@@ -1879,19 +1879,19 @@ function gr() {
1879
1879
  /\./g,
1880
1880
  " "
1881
1881
  ],
1882
- [h, F],
1882
+ [h, I],
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, V],
1888
+ [h, W],
1889
1889
  [m, b]
1890
1890
  ],
1891
1891
  [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],
1892
1892
  [
1893
1893
  f,
1894
- [h, V],
1894
+ [h, W],
1895
1895
  [m, y]
1896
1896
  ],
1897
1897
  [/smart-tv.+(samsung)/i],
@@ -1903,11 +1903,11 @@ function gr() {
1903
1903
  /^/,
1904
1904
  "SmartTV"
1905
1905
  ],
1906
- [h, R],
1906
+ [h, B],
1907
1907
  [m, x]
1908
1908
  ],
1909
1909
  [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],
1910
- [[h, P], [m, x]],
1910
+ [[h, F], [m, x]],
1911
1911
  [/(apple) ?tv/i],
1912
1912
  [
1913
1913
  h,
@@ -1916,8 +1916,8 @@ function gr() {
1916
1916
  ],
1917
1917
  [/crkey/i],
1918
1918
  [
1919
- [f, k + "cast"],
1920
- [h, j],
1919
+ [f, A + "cast"],
1920
+ [h, N],
1921
1921
  [m, x]
1922
1922
  ],
1923
1923
  [/droid.+aft(\w)( bui|\))/i],
@@ -1929,19 +1929,19 @@ function gr() {
1929
1929
  [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i],
1930
1930
  [
1931
1931
  f,
1932
- [h, gn],
1932
+ [h, xn],
1933
1933
  [m, x]
1934
1934
  ],
1935
1935
  [/(bravia[\w ]+)( bui|\))/i],
1936
1936
  [
1937
1937
  f,
1938
- [h, z],
1938
+ [h, V],
1939
1939
  [m, x]
1940
1940
  ],
1941
1941
  [/(mitv-\w{5}) bui/i],
1942
1942
  [
1943
1943
  f,
1944
- [h, B],
1944
+ [h, H],
1945
1945
  [m, x]
1946
1946
  ],
1947
1947
  [/Hbbtv.*(technisat) (.*);/i],
@@ -1952,8 +1952,8 @@ function gr() {
1952
1952
  ],
1953
1953
  [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],
1954
1954
  [
1955
- [h, J],
1956
- [f, J],
1955
+ [h, Dn],
1956
+ [f, Dn],
1957
1957
  [m, x]
1958
1958
  ],
1959
1959
  [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],
@@ -1973,13 +1973,13 @@ function gr() {
1973
1973
  [/(playstation [345portablevi]+)/i],
1974
1974
  [
1975
1975
  f,
1976
- [h, z],
1976
+ [h, V],
1977
1977
  [m, v]
1978
1978
  ],
1979
1979
  [/\b(xbox(?: one)?(?!; xbox))[\); ]/i],
1980
1980
  [
1981
1981
  f,
1982
- [h, F],
1982
+ [h, I],
1983
1983
  [m, v]
1984
1984
  ],
1985
1985
  [/((pebble))app/i],
@@ -1997,19 +1997,19 @@ function gr() {
1997
1997
  [/droid.+; (glass) \d/i],
1998
1998
  [
1999
1999
  f,
2000
- [h, j],
2000
+ [h, N],
2001
2001
  [m, S]
2002
2002
  ],
2003
2003
  [/droid.+; (wt63?0{2,3})\)/i],
2004
2004
  [
2005
2005
  f,
2006
- [h, V],
2006
+ [h, W],
2007
2007
  [m, S]
2008
2008
  ],
2009
2009
  [/(quest( 2| pro)?)/i],
2010
2010
  [
2011
2011
  f,
2012
- [h, _n],
2012
+ [h, Sn],
2013
2013
  [m, S]
2014
2014
  ],
2015
2015
  [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],
@@ -2033,7 +2033,7 @@ function gr() {
2033
2033
  ],
2034
2034
  engine: [
2035
2035
  [/windows.+ edge\/([\w\.]+)/i],
2036
- [g, [p, mn + "HTML"]],
2036
+ [g, [p, bn + "HTML"]],
2037
2037
  [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],
2038
2038
  [g, [p, "Blink"]],
2039
2039
  [
@@ -2058,14 +2058,14 @@ function gr() {
2058
2058
  ],
2059
2059
  [p, [
2060
2060
  g,
2061
- xn,
2062
- Cn
2061
+ On,
2062
+ An
2063
2063
  ]],
2064
2064
  [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],
2065
2065
  [[p, "Windows"], [
2066
2066
  g,
2067
- xn,
2068
- Cn
2067
+ On,
2068
+ An
2069
2069
  ]],
2070
2070
  [
2071
2071
  /ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
@@ -2078,7 +2078,7 @@ function gr() {
2078
2078
  "."
2079
2079
  ], [p, "iOS"]],
2080
2080
  [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i],
2081
- [[p, yn], [
2081
+ [[p, wn], [
2082
2082
  g,
2083
2083
  /_/g,
2084
2084
  "."
@@ -2093,19 +2093,19 @@ function gr() {
2093
2093
  ],
2094
2094
  [p, g],
2095
2095
  [/\(bb(10);/i],
2096
- [g, [p, D]],
2096
+ [g, [p, O]],
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, A + " OS"]],
2100
+ [g, [p, j + " 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, k + "cast"]],
2106
+ [g, [p, A + "cast"]],
2107
2107
  [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],
2108
- [[p, vn], g],
2108
+ [[p, Cn], g],
2109
2109
  [
2110
2110
  /panasonic;(viera)/i,
2111
2111
  /(netrange)mmh/i,
@@ -2134,10 +2134,10 @@ function gr() {
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 ? H(wn, t) : wn, S = i && i.userAgent == o;
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 ? G(jn, t) : jn, 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] = bn(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
2140
+ return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] = En(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 gr() {
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, vn).replace(/macos/i, yn)), 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, Cn).replace(/macos/i, wn)), e;
2153
2153
  }, this.getResult = function() {
2154
2154
  return {
2155
2155
  ua: this.getUA(),
@@ -2162,14 +2162,14 @@ function gr() {
2162
2162
  }, this.getUA = function() {
2163
2163
  return o;
2164
2164
  }, this.setUA = function(e) {
2165
- return o = typeof e === u && e.length > w ? J(e, w) : e, this;
2165
+ return o = typeof e === u && e.length > w ? Dn(e, w) : e, this;
2166
2166
  }, this.setUA(o), this;
2167
2167
  };
2168
- Z.VERSION = i, Z.BROWSER = W([
2168
+ Z.VERSION = i, Z.BROWSER = q([
2169
2169
  p,
2170
2170
  g,
2171
2171
  d
2172
- ]), Z.CPU = W([_]), Z.DEVICE = W([
2172
+ ]), Z.CPU = q([_]), Z.DEVICE = q([
2173
2173
  f,
2174
2174
  h,
2175
2175
  m,
@@ -2179,7 +2179,7 @@ function gr() {
2179
2179
  b,
2180
2180
  S,
2181
2181
  C
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);
2182
+ ]), Z.ENGINE = Z.OS = q([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();
@@ -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
- }, Rr = "zh-CN", U = {
2410
+ }, Rr = "zh-CN", Ze = "Post request error!", U = {
2411
2411
  IBOOT_DEVICE_ID: "dvid",
2412
2412
  IBOOT_LANG: "lang",
2413
2413
  IBOOT_WEBSITE_ID: "wid",
@@ -2419,6 +2419,42 @@ 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
+ }, Ht = async (e, t) => {
2423
+ let n = t?.data ?? {}, r = t?.headers, i, a = t?.headers, s = new Headers(a);
2424
+ if (n instanceof FormData ? i = n : (i = JSON.stringify(n), s.set("Content-Type", M.applicationJson)), r) for (let e in r) {
2425
+ let t = r[e];
2426
+ t && s.set(e, t);
2427
+ }
2428
+ L.info({
2429
+ url: e,
2430
+ headers: s
2431
+ }, "POST");
2432
+ let c = await fetch(e, {
2433
+ method: "POST",
2434
+ headers: s,
2435
+ body: i
2436
+ });
2437
+ if (c.ok) {
2438
+ let e = Object.fromEntries(c.headers.entries()), t = {
2439
+ ...await c.json(),
2440
+ headers: e
2441
+ };
2442
+ return L.debug(t, "POST_RESULT"), t;
2443
+ }
2444
+ let l = {
2445
+ code: c.status,
2446
+ success: !1,
2447
+ msg: c.statusText
2448
+ };
2449
+ return L.error(l), l;
2450
+ }, Wr = async (e, t) => {
2451
+ let n = await Ht(e, t);
2452
+ if (n.success) return n.data;
2453
+ if (t?.showError) {
2454
+ t.showError(n.msg ?? Ze);
2455
+ return;
2456
+ }
2457
+ throw Error(n.msg ?? Ze);
2422
2458
  }, Tr = (e) => {
2423
2459
  if (e.get) {
2424
2460
  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 = {};
@@ -2434,6 +2470,11 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2434
2470
  }, Kr = (e, t) => {
2435
2471
  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);
2436
2472
  else throw Error("The set method of ICookies has not been implemented.");
2473
+ }, Yr = (e) => {
2474
+ if (e.get) {
2475
+ let t = e.get(U.IBOOT_USER);
2476
+ if (t && t.length > 0) return JSON.parse(t);
2477
+ }
2437
2478
  }, Ir = (e) => {
2438
2479
  if (e.get) {
2439
2480
  let t = e[U.IBOOT_USER];
@@ -2830,6 +2871,23 @@ const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await
2830
2871
  adapter: t,
2831
2872
  storage: n
2832
2873
  }).handleRequest(e);
2833
- export { ICMSServer, helloURL, icmsRouter };
2874
+ var ICMSClient = class {
2875
+ cookies = null;
2876
+ constructor() {}
2877
+ async submitComment() {}
2878
+ setICookies(e) {
2879
+ return this.cookies = e, this;
2880
+ }
2881
+ async login({ username: e, password: t }) {
2882
+ if (await Wr("login", { data: {
2883
+ username: e,
2884
+ password: t
2885
+ } }), this.cookies) return Yr(this.cookies);
2886
+ }
2887
+ async logout() {
2888
+ await Wr("logout");
2889
+ }
2890
+ };
2891
+ export { ICMSClient, ICMSServer, helloURL, icmsRouter };
2834
2892
 
2835
2893
  //# sourceMappingURL=icms-api.es.js.map