@huyooo/ui 2.2.1 → 2.2.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.
Files changed (45) hide show
  1. package/dist/{AuthkitAppSetting-CHVSyEY1.js → AuthkitAppSetting-DkkEPenO.js} +8 -8
  2. package/dist/{Contact-BTQf8tEx.js → Contact-CtfToLPT.js} +3 -3
  3. package/dist/{CustomTable-BY0oHLXc.js → CustomTable-B1KjkixL.js} +1 -1
  4. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-FIZdBxIZ.js → FeedbackModal.vue_vue_type_script_setup_true_lang-DIIH9PCN.js} +5 -5
  5. package/dist/{LegalDocViewer-DiNoy_oj.js → LegalDocViewer-DZDBRGrC.js} +202 -200
  6. package/dist/{MessageHandle-DDGFSJMg.js → MessageHandle-BKMBtqZM.js} +3 -3
  7. package/dist/{MessageList-CE5E_5Uv.js → MessageList-BK4u5DCH.js} +1 -1
  8. package/dist/{PaySubscriptions-Du9QWvlH.js → PaySubscriptions-OZ6OFeQJ.js} +7 -7
  9. package/dist/{PricingPlans-BEhWsV2D.js → PricingPlans-BdG0qYFZ.js} +4 -4
  10. package/dist/{ReferrerReferees-t5s4LzbY.js → ReferrerReferees-d4JByWcG.js} +4 -4
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DsrqOACa.js → Upload.vue_vue_type_script_setup_true_lang-DtciAodp.js} +1 -1
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrauYUc_.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BpQa21qc.js} +10 -10
  13. package/dist/{WidthContainer-CiabzONI.js → WidthContainer-50pahbfe.js} +10 -10
  14. package/dist/apiClients-8_c5cDW5.js +276 -0
  15. package/dist/authkit.js +10 -10
  16. package/dist/common/globalConfig.d.ts +15 -0
  17. package/dist/common.js +2 -2
  18. package/dist/composables.js +13 -13
  19. package/dist/feedback.js +2 -2
  20. package/dist/fetchAuthPageAboutUs-B6ZZylgG.js +32 -0
  21. package/dist/{index-BYH7DaQf.js → index-D9YtlhTa.js} +1 -1
  22. package/dist/main.js +31 -31
  23. package/dist/message.js +5 -5
  24. package/dist/pay.js +5 -5
  25. package/dist/privateCom.js +1 -1
  26. package/dist/referrer.js +1 -1
  27. package/dist/{runtime-DDJRAtkv.js → runtime-B_xhJ3i8.js} +220 -212
  28. package/dist/style.css +1 -1
  29. package/dist/upload.js +2 -2
  30. package/dist/{useAuthkitAppsAuthPageInfo-2izIyMfu.js → useAuthkitAppsAuthPageInfo-DPCwzF7j.js} +17 -15
  31. package/dist/{useAuthkitAuth-CWHJs8zY.js → useAuthkitAuth-C6GGWqSb.js} +2 -2
  32. package/dist/{useAuthkitCreateAndUpdate-COI5KVPJ.js → useAuthkitCreateAndUpdate-CYIcEuub.js} +1 -1
  33. package/dist/{useAuthkitUsersProfile-D4H_Gxgd.js → useAuthkitUsersProfile-Bzr0IVmJ.js} +3 -3
  34. package/dist/{useBillingStatusOptions-C6edto7H.js → useBillingStatusOptions-C8fwW-AI.js} +1 -1
  35. package/dist/{useBillingSubscriptionSummary-BC3G0N4t.js → useBillingSubscriptionSummary-C2E3p68U.js} +1 -1
  36. package/dist/{useEnsureAuthenticated-RZ1DflLz.js → useEnsureAuthenticated-z30FlElo.js} +2 -2
  37. package/dist/{useLegalDocs-xXYvYpPC.js → useLegalDocs-CWBqi9Ce.js} +2 -2
  38. package/dist/{useMessageNotifications-pxa5LHjV.js → useMessageNotifications-BXimltcx.js} +1 -1
  39. package/dist/{usePageSEO-B3stKP3n.js → usePageSEO-D7eyLr8d.js} +2 -2
  40. package/dist/{useRoutePermission-CGq_LIZM.js → useRoutePermission-CZ7hHcZy.js} +3 -3
  41. package/dist/{useSubscriptionCheckout-CZZLk_1d.js → useSubscriptionCheckout-CnbX1bFi.js} +3 -3
  42. package/dist/user.js +1 -1
  43. package/package.json +1 -1
  44. package/dist/apiClients-CWSwNzGk.js +0 -272
  45. package/dist/fetchAuthPageAboutUs-CLQlGhQy.js +0 -25
@@ -1,16 +1,16 @@
1
1
  import { ref as Nt, inject as Mt } from "vue";
2
- import { i as Kt } from "./apiClients-CWSwNzGk.js";
2
+ import { i as Kt } from "./apiClients-8_c5cDW5.js";
3
3
  import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  const zt = Nt(void 0);
5
- function Vt(Q) {
6
- var Pe, _;
7
- return Q === "system" ? typeof window < "u" && ((_ = (Pe = window.matchMedia) == null ? void 0 : Pe.call(window, "(prefers-color-scheme: dark)")) != null && _.matches) ? "dark" : "light" : Q;
5
+ function Vt($) {
6
+ var Ee, _;
7
+ return $ === "system" ? typeof window < "u" && ((_ = (Ee = window.matchMedia) == null ? void 0 : Ee.call(window, "(prefers-color-scheme: dark)")) != null && _.matches) ? "dark" : "light" : $;
8
8
  }
9
- function Dt(Q) {
10
- typeof document > "u" || (Q === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
9
+ function Dt($) {
10
+ typeof document > "u" || ($ === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
11
11
  }
12
- function qt(Q) {
13
- zt.value = Q, Dt(Vt(Q));
12
+ function qt($) {
13
+ zt.value = $, Dt(Vt($));
14
14
  }
15
15
  const it = {
16
16
  avatarBucketId: "68350c206888f565dc7d09e9",
@@ -19,24 +19,32 @@ const it = {
19
19
  region: "ap-beijing",
20
20
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
21
21
  };
22
- function Gt(Q) {
23
- return Q.theme !== void 0 && qt(Q.theme), Object.freeze({
24
- appId: Q.appId,
25
- authPrefixUrl: Q.endpoints.auth,
26
- onesPrefixUrl: Q.endpoints.ones,
27
- billingPrefixUrl: Q.endpoints.billing,
28
- logPrefixUrl: Q.endpoints.log,
29
- aiPrefixUrl: Q.endpoints.ai,
30
- webhookPrefixUrl: Q.endpoints.webhook,
31
- pricingUrl: Q.pricingUrl || "/Pricing",
32
- openPricing: Q.openPricing,
33
- avatarBucketId: Q.avatarBucketId ?? it.avatarBucketId,
34
- feedbackBucketId: Q.feedbackBucketId ?? it.feedbackBucketId,
35
- bucket: Q.bucket ?? it.bucket,
36
- region: Q.region ?? it.region,
37
- web3formsAccessKey: Q.web3formsAccessKey ?? it.web3formsAccessKey,
38
- legalDocsMode: Q.legalDocsMode ?? "builtin",
39
- getAccessToken: Q.getAccessToken
22
+ function Gt($) {
23
+ var Ee, _;
24
+ if (!((Ee = $.clientKey) != null && Ee.trim()))
25
+ throw new Error("createHuyoooUI: clientKey 必填(web / desktop / ios / android)");
26
+ if (!((_ = $.platform) != null && _.trim()))
27
+ throw new Error("createHuyoooUI: platform 必填(browser / darwin / win32 / linux / ios / android)");
28
+ return $.theme !== void 0 && qt($.theme), Object.freeze({
29
+ appId: $.appId,
30
+ clientKey: $.clientKey.trim(),
31
+ platform: $.platform.trim(),
32
+ appVersion: $.appVersion,
33
+ authPrefixUrl: $.endpoints.auth,
34
+ onesPrefixUrl: $.endpoints.ones,
35
+ billingPrefixUrl: $.endpoints.billing,
36
+ logPrefixUrl: $.endpoints.log,
37
+ aiPrefixUrl: $.endpoints.ai,
38
+ webhookPrefixUrl: $.endpoints.webhook,
39
+ pricingUrl: $.pricingUrl || "/Pricing",
40
+ openPricing: $.openPricing,
41
+ avatarBucketId: $.avatarBucketId ?? it.avatarBucketId,
42
+ feedbackBucketId: $.feedbackBucketId ?? it.feedbackBucketId,
43
+ bucket: $.bucket ?? it.bucket,
44
+ region: $.region ?? it.region,
45
+ web3formsAccessKey: $.web3formsAccessKey ?? it.web3formsAccessKey,
46
+ legalDocsMode: $.legalDocsMode ?? "builtin",
47
+ getAccessToken: $.getAccessToken
40
48
  });
41
49
  }
42
50
  const $t = {
@@ -165,18 +173,18 @@ const $t = {
165
173
  log: "text/plain",
166
174
  plist: "application/x-plist"
167
175
  };
168
- function Wt(Q, Pe) {
176
+ function Wt($, Ee) {
169
177
  var J;
170
- const _ = (J = Q.split(".").pop()) == null ? void 0 : J.toLowerCase();
178
+ const _ = (J = $.split(".").pop()) == null ? void 0 : J.toLowerCase();
171
179
  return _ && $t[_] || "application/octet-stream";
172
180
  }
173
- function Qt(Q) {
174
- return Q.type && Q.type !== "application/octet-stream" && Q.type !== "" ? Q.type : Wt(Q.name);
181
+ function Qt($) {
182
+ return $.type && $.type !== "application/octet-stream" && $.type !== "" ? $.type : Wt($.name);
175
183
  }
176
184
  var wt = { exports: {} };
177
- (function(Q, Pe) {
185
+ (function($, Ee) {
178
186
  (function(J, E) {
179
- Q.exports = E();
187
+ $.exports = E();
180
188
  })(_t, function() {
181
189
  return (
182
190
  /******/
@@ -2519,8 +2527,8 @@ var wt = { exports: {} };
2519
2527
  var re = function(he) {
2520
2528
  if (he < de) {
2521
2529
  var pe = G[he];
2522
- ke(pe.PartNumber, function(ve, Ee) {
2523
- Ee && Ee.ETag === pe.ETag && Ee.Size === pe.Size ? re(he + 1) : te(null, !1);
2530
+ ke(pe.PartNumber, function(ve, Ae) {
2531
+ Ae && Ae.ETag === pe.ETag && Ae.Size === pe.Size ? re(he + 1) : te(null, !1);
2524
2532
  });
2525
2533
  } else
2526
2534
  te(null, !0);
@@ -2987,8 +2995,8 @@ var wt = { exports: {} };
2987
2995
  delay: t.options.TrackerDelay
2988
2996
  });
2989
2997
  }
2990
- N.each(ne, function(Ee, xe) {
2991
- U(Ee) !== "object" && typeof Ee != "function" && (se[xe] = Ee);
2998
+ N.each(ne, function(Ae, xe) {
2999
+ U(Ae) !== "object" && typeof Ae != "function" && (se[xe] = Ae);
2992
3000
  });
2993
3001
  var te = ne.onTaskReady, de = function(xe) {
2994
3002
  se.TaskId = xe, te && te(xe);
@@ -3055,7 +3063,7 @@ var wt = { exports: {} };
3055
3063
  var pe = N.filter(ae.PartList, function(ve) {
3056
3064
  return ve.Uploaded && (ee += ve.PartNumber >= se && G % oe || oe), !ve.Uploaded;
3057
3065
  });
3058
- j.eachLimit(pe, ke, function(ve, Ee) {
3066
+ j.eachLimit(pe, ke, function(ve, Ae) {
3059
3067
  var xe = ve.PartNumber, Ie = ve.CopySourceRange, Ge = ve.end - ve.start;
3060
3068
  j.retry(le, function(_e) {
3061
3069
  l.call(r, {
@@ -3070,11 +3078,11 @@ var wt = { exports: {} };
3070
3078
  calledBySdk: "sliceCopyFile"
3071
3079
  }, _e);
3072
3080
  }, function(_e, We) {
3073
- if (_e) return Ee(_e);
3081
+ if (_e) return Ae(_e);
3074
3082
  ee += Ge, te({
3075
3083
  loaded: ee,
3076
3084
  total: G
3077
- }), ve.ETag = We.ETag, Ee(_e || null, We);
3085
+ }), ve.ETag = We.ETag, Ae(_e || null, We);
3078
3086
  });
3079
3087
  }, function(ve) {
3080
3088
  if (ve)
@@ -3135,16 +3143,16 @@ var wt = { exports: {} };
3135
3143
  for (var he = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 5120], pe = 1024 * 1024, ve = 0; ve < he.length && (pe = he[ve] * 1024 * 1024, !(G / pe <= r.options.MaxPartNumber)); ve++)
3136
3144
  ;
3137
3145
  i.ChunkSize = oe = Math.max(oe, pe), se = Math.ceil(G / oe);
3138
- for (var Ee = [], xe = 1; xe <= se; xe++) {
3146
+ for (var Ae = [], xe = 1; xe <= se; xe++) {
3139
3147
  var Ie = (xe - 1) * oe, Ge = xe * oe < G ? xe * oe - 1 : G - 1, _e = {
3140
3148
  PartNumber: xe,
3141
3149
  start: Ie,
3142
3150
  end: Ge,
3143
3151
  CopySourceRange: "bytes=" + Ie + "-" + Ge
3144
3152
  };
3145
- Ee.push(_e);
3153
+ Ae.push(_e);
3146
3154
  }
3147
- i.PartList = Ee;
3155
+ i.PartList = Ae;
3148
3156
  }(), i.Headers["x-cos-metadata-directive"] === "Replaced" ? re = i.Headers : re = fe, re["x-cos-storage-class"] = i.Headers["x-cos-storage-class"] || fe["x-cos-storage-class"], re = N.clearKey(re), fe["x-cos-storage-class"] === "ARCHIVE" || fe["x-cos-storage-class"] === "DEEP_ARCHIVE") {
3149
3157
  var ae = fe["x-cos-restore"];
3150
3158
  if (!ae || ae === 'ongoing-request="true"') {
@@ -3175,13 +3183,13 @@ var wt = { exports: {} };
3175
3183
  }), te = N.throttleOnProgress.call(r, G, i.onProgress), G <= ne)
3176
3184
  i.Headers["x-cos-metadata-directive"] || (i.Headers["x-cos-metadata-directive"] = "Copy"), r.putObjectCopy(Object.assign(i, {
3177
3185
  calledBySdk: "sliceCopyFile"
3178
- }), function(ve, Ee) {
3186
+ }), function(ve, Ae) {
3179
3187
  if (ve)
3180
3188
  return te(null, !0), o(ve);
3181
3189
  te({
3182
3190
  loaded: G,
3183
3191
  total: G
3184
- }, !0), o(ve, Ee);
3192
+ }, !0), o(ve, Ae);
3185
3193
  });
3186
3194
  else {
3187
3195
  var pe = he.headers;
@@ -3192,9 +3200,9 @@ var wt = { exports: {} };
3192
3200
  "Content-Type": pe["content-type"],
3193
3201
  Expires: pe.expires,
3194
3202
  "x-cos-storage-class": pe["x-cos-storage-class"]
3195
- }, N.each(pe, function(ve, Ee) {
3203
+ }, N.each(pe, function(ve, Ae) {
3196
3204
  var xe = "x-cos-meta-";
3197
- Ee.indexOf(xe) === 0 && Ee.length > xe.length && (fe[Ee] = ve);
3205
+ Ae.indexOf(xe) === 0 && Ae.length > xe.length && (fe[Ae] = ve);
3198
3206
  }), t.emit("get_file_size_finish");
3199
3207
  }
3200
3208
  });
@@ -3328,10 +3336,10 @@ var wt = { exports: {} };
3328
3336
  if (ce) return c(ce);
3329
3337
  var Se = ue && ue.ListAllMyBucketsResult && ue.ListAllMyBucketsResult.Buckets && ue.ListAllMyBucketsResult.Buckets.Bucket || [];
3330
3338
  Se = s.isArray(Se) ? Se : [Se];
3331
- var $ = ue && ue.ListAllMyBucketsResult && ue.ListAllMyBucketsResult.Owner || {};
3339
+ var W = ue && ue.ListAllMyBucketsResult && ue.ListAllMyBucketsResult.Owner || {};
3332
3340
  c(null, {
3333
3341
  Buckets: Se,
3334
- Owner: $,
3342
+ Owner: W,
3335
3343
  statusCode: ue.statusCode,
3336
3344
  headers: ue.headers
3337
3345
  });
@@ -4357,7 +4365,7 @@ var wt = { exports: {} };
4357
4365
  function ve(e, c) {
4358
4366
  return he.call(this, "POST", e, c);
4359
4367
  }
4360
- function Ee(e, c) {
4368
+ function Ae(e, c) {
4361
4369
  Y.call(this, {
4362
4370
  Action: "name/cos:GetBucketInventory",
4363
4371
  method: "GET",
@@ -4859,7 +4867,7 @@ var wt = { exports: {} };
4859
4867
  tracker: e.tracker
4860
4868
  }, function(ce, ue) {
4861
4869
  if (ce) return c(ce);
4862
- var Se = s.clone(ue.CopyObjectResult || {}), $ = Ve({
4870
+ var Se = s.clone(ue.CopyObjectResult || {}), W = Ve({
4863
4871
  ForcePathStyle: n.options.ForcePathStyle,
4864
4872
  protocol: n.options.Protocol,
4865
4873
  domain: n.options.Domain,
@@ -4869,7 +4877,7 @@ var wt = { exports: {} };
4869
4877
  isLocation: !0
4870
4878
  });
4871
4879
  s.extend(Se, {
4872
- Location: $,
4880
+ Location: W,
4873
4881
  statusCode: ue.statusCode,
4874
4882
  headers: ue.headers
4875
4883
  }), c(null, Se);
@@ -4945,13 +4953,13 @@ var wt = { exports: {} };
4945
4953
  if (b) return c(b);
4946
4954
  var ce = H.DeleteResult || {}, ue = ce.Deleted || [], Se = ce.Error || [];
4947
4955
  ue = s.isArray(ue) ? ue : [ue], Se = s.isArray(Se) ? Se : [Se];
4948
- var $ = s.clone(ce);
4949
- s.extend($, {
4956
+ var W = s.clone(ce);
4957
+ s.extend(W, {
4950
4958
  Error: Se,
4951
4959
  Deleted: ue,
4952
4960
  statusCode: H.statusCode,
4953
4961
  headers: H.headers
4954
- }), c(null, $);
4962
+ }), c(null, W);
4955
4963
  });
4956
4964
  }
4957
4965
  function R(e, c) {
@@ -5069,7 +5077,7 @@ var wt = { exports: {} };
5069
5077
  });
5070
5078
  });
5071
5079
  }
5072
- function W(e, c) {
5080
+ function Q(e, c) {
5073
5081
  var n = e.SelectType;
5074
5082
  if (!n) return c(s.error(new Error("missing param SelectType")));
5075
5083
  var u = e.SelectRequest || {}, p = s.json2xml({
@@ -5207,7 +5215,7 @@ var wt = { exports: {} };
5207
5215
  return h && h.parent && h.parent.setParams({
5208
5216
  errorNode: "multipartComplete"
5209
5217
  }), c(ue);
5210
- var $ = Ve({
5218
+ var W = Ve({
5211
5219
  ForcePathStyle: n.options.ForcePathStyle,
5212
5220
  protocol: n.options.Protocol,
5213
5221
  domain: n.options.Domain,
@@ -5219,7 +5227,7 @@ var wt = { exports: {} };
5219
5227
  if (Te.ProcessResults && (Te.UploadResult = {
5220
5228
  OriginalInfo: {
5221
5229
  Key: Te.Key,
5222
- Location: $,
5230
+ Location: W,
5223
5231
  ETag: Te.ETag,
5224
5232
  ImageInfo: Te.ImageInfo
5225
5233
  },
@@ -5253,7 +5261,7 @@ var wt = { exports: {} };
5253
5261
  delete Te.ReturnBodyResult;
5254
5262
  }
5255
5263
  var Me = s.extend(Te, {
5256
- Location: $,
5264
+ Location: W,
5257
5265
  statusCode: Se.statusCode,
5258
5266
  headers: Se.headers
5259
5267
  });
@@ -5432,10 +5440,10 @@ var wt = { exports: {} };
5432
5440
  var Se = function(Fe) {
5433
5441
  var Le = Fe.match(/q-url-param-list.*?(?=&)/g)[0], Me = "q-url-param-list=" + encodeURIComponent(Le.replace(/q-url-param-list=/, "")).toLowerCase(), Ke = new RegExp(Le, "g"), Je = Fe.replace(Ke, Me);
5434
5442
  return Je;
5435
- }, $ = p;
5436
- $ += "?" + (ue.Authorization.indexOf("q-signature") > -1 ? Se(ue.Authorization) : "sign=" + encodeURIComponent(ue.Authorization)), ue.SecurityToken && ($ += "&x-cos-security-token=" + ue.SecurityToken), ue.ClientIP && ($ += "&clientIP=" + ue.ClientIP), ue.ClientUA && ($ += "&clientUA=" + ue.ClientUA), ue.Token && ($ += "&token=" + ue.Token), h && ($ += "&" + h), setTimeout(function() {
5443
+ }, W = p;
5444
+ W += "?" + (ue.Authorization.indexOf("q-signature") > -1 ? Se(ue.Authorization) : "sign=" + encodeURIComponent(ue.Authorization)), ue.SecurityToken && (W += "&x-cos-security-token=" + ue.SecurityToken), ue.ClientIP && (W += "&clientIP=" + ue.ClientIP), ue.ClientUA && (W += "&clientUA=" + ue.ClientUA), ue.Token && (W += "&token=" + ue.Token), h && (W += "&" + h), setTimeout(function() {
5437
5445
  c(null, {
5438
- Url: $
5446
+ Url: W
5439
5447
  });
5440
5448
  });
5441
5449
  }
@@ -5506,11 +5514,11 @@ var wt = { exports: {} };
5506
5514
  });
5507
5515
  var p = e.ForceSignHost !== !1;
5508
5516
  !u && e.SignHost && p && (n.Host = e.SignHost);
5509
- var h = !1, S = function(ye, Ae) {
5510
- h || (h = !0, Ae && Ae.XCosSecurityToken && !Ae.SecurityToken && (Ae = s.clone(Ae), Ae.SecurityToken = Ae.XCosSecurityToken, delete Ae.XCosSecurityToken), c && c(ye, Ae));
5517
+ var h = !1, S = function(ye, Pe) {
5518
+ h || (h = !0, Pe && Pe.XCosSecurityToken && !Pe.SecurityToken && (Pe = s.clone(Pe), Pe.SecurityToken = Pe.XCosSecurityToken, delete Pe.XCosSecurityToken), c && c(ye, Pe));
5511
5519
  }, b = this, H = e.Bucket || "", ce = e.Region || "", ue = e.Key || "";
5512
5520
  b.options.ForcePathStyle && H && (ue = H + "/" + ue);
5513
- var Se = "/" + ue, $ = {}, Te = e.Scope;
5521
+ var Se = "/" + ue, W = {}, Te = e.Scope;
5514
5522
  if (!Te) {
5515
5523
  var Fe = e.Action || "", Le = e.ResourceKey || e.Key || "";
5516
5524
  Te = e.Scope || [{
@@ -5525,23 +5533,23 @@ var wt = { exports: {} };
5525
5533
  var be, ye;
5526
5534
  for (be = b._StsCache.length - 1; be >= 0; be--) {
5527
5535
  ye = b._StsCache[be];
5528
- var Ae = Math.round(s.getSkewTime(b.options.SystemClockOffset) / 1e3) + 30;
5529
- if (ye.StartTime && Ae < ye.StartTime || Ae >= ye.ExpiredTime) {
5536
+ var Pe = Math.round(s.getSkewTime(b.options.SystemClockOffset) / 1e3) + 30;
5537
+ if (ye.StartTime && Pe < ye.StartTime || Pe >= ye.ExpiredTime) {
5530
5538
  b._StsCache.splice(be, 1);
5531
5539
  continue;
5532
5540
  }
5533
5541
  if (!ye.ScopeLimit || ye.ScopeLimit && ye.ScopeKey === Me) {
5534
- $ = ye;
5542
+ W = ye;
5535
5543
  break;
5536
5544
  }
5537
5545
  }
5538
5546
  }();
5539
5547
  var Ke = function() {
5540
5548
  var ye = "";
5541
- $.StartTime && e.Expires ? ye = $.StartTime + ";" + ($.StartTime + e.Expires * 1) : $.StartTime && $.ExpiredTime && (ye = $.StartTime + ";" + $.ExpiredTime);
5542
- var Ae = s.getAuth({
5543
- SecretId: $.TmpSecretId,
5544
- SecretKey: $.TmpSecretKey,
5549
+ W.StartTime && e.Expires ? ye = W.StartTime + ";" + (W.StartTime + e.Expires * 1) : W.StartTime && W.ExpiredTime && (ye = W.StartTime + ";" + W.ExpiredTime);
5550
+ var Pe = s.getAuth({
5551
+ SecretId: W.TmpSecretId,
5552
+ SecretKey: W.TmpSecretKey,
5545
5553
  Method: e.Method,
5546
5554
  Pathname: Se,
5547
5555
  Query: e.Query,
@@ -5552,28 +5560,28 @@ var wt = { exports: {} };
5552
5560
  KeyTime: ye,
5553
5561
  ForceSignHost: p
5554
5562
  }), me = {
5555
- Authorization: Ae,
5556
- SecurityToken: $.SecurityToken || $.XCosSecurityToken || "",
5557
- Token: $.Token || "",
5558
- ClientIP: $.ClientIP || "",
5559
- ClientUA: $.ClientUA || "",
5563
+ Authorization: Pe,
5564
+ SecurityToken: W.SecurityToken || W.XCosSecurityToken || "",
5565
+ Token: W.Token || "",
5566
+ ClientIP: W.ClientIP || "",
5567
+ ClientUA: W.ClientUA || "",
5560
5568
  SignFrom: "client"
5561
5569
  };
5562
5570
  S(null, me);
5563
5571
  }, Je = function(ye) {
5564
5572
  if (ye.Authorization) {
5565
- var Ae = !1, me = ye.Authorization;
5573
+ var Pe = !1, me = ye.Authorization;
5566
5574
  if (me)
5567
5575
  if (me.indexOf(" ") > -1)
5568
- Ae = !1;
5576
+ Pe = !1;
5569
5577
  else if (me.indexOf("q-sign-algorithm=") > -1 && me.indexOf("q-ak=") > -1 && me.indexOf("q-sign-time=") > -1 && me.indexOf("q-key-time=") > -1 && me.indexOf("q-url-param-list=") > -1)
5570
- Ae = !0;
5578
+ Pe = !0;
5571
5579
  else
5572
5580
  try {
5573
- me = atob(me), me.indexOf("a=") > -1 && me.indexOf("k=") > -1 && me.indexOf("t=") > -1 && me.indexOf("r=") > -1 && me.indexOf("b=") > -1 && (Ae = !0);
5581
+ me = atob(me), me.indexOf("a=") > -1 && me.indexOf("k=") > -1 && me.indexOf("t=") > -1 && me.indexOf("r=") > -1 && me.indexOf("b=") > -1 && (Pe = !0);
5574
5582
  } catch {
5575
5583
  }
5576
- if (!Ae) return s.error(new Error("getAuthorization callback params format error"));
5584
+ if (!Pe) return s.error(new Error("getAuthorization callback params format error"));
5577
5585
  } else {
5578
5586
  if (!ye.TmpSecretId) return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));
5579
5587
  if (!ye.TmpSecretKey) return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));
@@ -5584,7 +5592,7 @@ var wt = { exports: {} };
5584
5592
  }
5585
5593
  return !1;
5586
5594
  };
5587
- if ($.ExpiredTime && $.ExpiredTime - s.getSkewTime(b.options.SystemClockOffset) / 1e3 > 60)
5595
+ if (W.ExpiredTime && W.ExpiredTime - s.getSkewTime(b.options.SystemClockOffset) / 1e3 > 60)
5588
5596
  Ke();
5589
5597
  else if (b.options.getAuthorization)
5590
5598
  b.options.getAuthorization.call(b, {
@@ -5604,17 +5612,17 @@ var wt = { exports: {} };
5604
5612
  });
5605
5613
  var ye = Je(be);
5606
5614
  if (ye) return S(ye);
5607
- be.Authorization ? S(null, be) : ($ = be || {}, $.Scope = Te, $.ScopeKey = Me, b._StsCache.push($), Ke());
5615
+ be.Authorization ? S(null, be) : (W = be || {}, W.Scope = Te, W.ScopeKey = Me, b._StsCache.push(W), Ke());
5608
5616
  });
5609
5617
  else if (b.options.getSTS)
5610
5618
  b.options.getSTS.call(b, {
5611
5619
  Bucket: H,
5612
5620
  Region: ce
5613
5621
  }, function(be) {
5614
- $ = be || {}, $.Scope = Te, $.ScopeKey = Me, $.TmpSecretId || ($.TmpSecretId = $.SecretId), $.TmpSecretKey || ($.TmpSecretKey = $.SecretKey);
5615
- var ye = Je($);
5622
+ W = be || {}, W.Scope = Te, W.ScopeKey = Me, W.TmpSecretId || (W.TmpSecretId = W.SecretId), W.TmpSecretKey || (W.TmpSecretKey = W.SecretKey);
5623
+ var ye = Je(W);
5616
5624
  if (ye) return S(ye);
5617
- b._StsCache.push($), Ke();
5625
+ b._StsCache.push(W), Ke();
5618
5626
  });
5619
5627
  else
5620
5628
  return function() {
@@ -5642,12 +5650,12 @@ var wt = { exports: {} };
5642
5650
  UseRawKey: b.options.UseRawKey,
5643
5651
  SystemClockOffset: b.options.SystemClockOffset,
5644
5652
  ForceSignHost: p
5645
- }), Ae = {
5653
+ }), Pe = {
5646
5654
  Authorization: ye,
5647
5655
  SecurityToken: b.options.SecurityToken || b.options.XCosSecurityToken,
5648
5656
  SignFrom: "client"
5649
5657
  };
5650
- return S(null, Ae), Ae;
5658
+ return S(null, Pe), Pe;
5651
5659
  }();
5652
5660
  return "";
5653
5661
  }
@@ -5711,13 +5719,13 @@ var wt = { exports: {} };
5711
5719
  Scope: e.Scope,
5712
5720
  ForceSignHost: n.options.ForceSignHost,
5713
5721
  SwitchHost: e.SwitchHost
5714
- }, function($, Te) {
5715
- if ($) {
5722
+ }, function(W, Te) {
5723
+ if (W) {
5716
5724
  n.logger.error({
5717
5725
  cate: "PROCESS",
5718
5726
  tag: "base",
5719
- msg: "签名获取失败, err=".concat(JSON.stringify($.message))
5720
- }), c($);
5727
+ msg: "签名获取失败, err=".concat(JSON.stringify(W.message))
5728
+ }), c(W);
5721
5729
  return;
5722
5730
  }
5723
5731
  S && S.setParams({
@@ -5781,16 +5789,16 @@ var wt = { exports: {} };
5781
5789
  }), e.SwitchHost && (H = H.replace(/myqcloud.com/, "tencentcos.cn"));
5782
5790
  var Se = S ? H : "";
5783
5791
  e.action && (H = H + "?" + (s.isIOS_QQ ? "".concat(e.action, "=") : e.action)), e.qsStr && (H.indexOf("?") > -1 ? H = H + "&" + e.qsStr : H = H + "?" + e.qsStr);
5784
- var $ = {
5792
+ var W = {
5785
5793
  method: b,
5786
5794
  url: H,
5787
5795
  headers: e.headers,
5788
5796
  qs: e.qs,
5789
5797
  body: ce
5790
5798
  }, Te = "x-cos-security-token";
5791
- if (s.isCIHost(H) && (Te = "x-ci-security-token"), $.headers.Authorization = e.AuthData.Authorization, e.AuthData.Token && ($.headers.token = e.AuthData.Token), e.AuthData.ClientIP && ($.headers.clientIP = e.AuthData.ClientIP), e.AuthData.ClientUA && ($.headers.clientUA = e.AuthData.ClientUA), e.AuthData.SecurityToken && ($.headers[Te] = e.AuthData.SecurityToken), e.Action && ($.action = e.Action), $.key = e.Key || e.ResourceKey, $.headers && ($.headers = s.clearKey($.headers)), $ = s.clearKey($), e.onProgress && typeof e.onProgress == "function") {
5799
+ if (s.isCIHost(H) && (Te = "x-ci-security-token"), W.headers.Authorization = e.AuthData.Authorization, e.AuthData.Token && (W.headers.token = e.AuthData.Token), e.AuthData.ClientIP && (W.headers.clientIP = e.AuthData.ClientIP), e.AuthData.ClientUA && (W.headers.clientUA = e.AuthData.ClientUA), e.AuthData.SecurityToken && (W.headers[Te] = e.AuthData.SecurityToken), e.Action && (W.action = e.Action), W.key = e.Key || e.ResourceKey, W.headers && (W.headers = s.clearKey(W.headers)), W = s.clearKey(W), e.onProgress && typeof e.onProgress == "function") {
5792
5800
  var Fe = ce && (ce.size || ce.length) || 0;
5793
- $.onProgress = function(me) {
5801
+ W.onProgress = function(me) {
5794
5802
  if (!(u && !n._isRunningTask(u))) {
5795
5803
  var qe = me ? me.loaded : 0;
5796
5804
  e.onProgress({
@@ -5800,32 +5808,32 @@ var wt = { exports: {} };
5800
5808
  }
5801
5809
  };
5802
5810
  }
5803
- e.onDownloadProgress && ($.onDownloadProgress = e.onDownloadProgress), e.DataType && ($.dataType = e.DataType), this.options.Timeout && ($.timeout = this.options.Timeout), n.options.ForcePathStyle && ($.pathStyle = n.options.ForcePathStyle);
5811
+ e.onDownloadProgress && (W.onDownloadProgress = e.onDownloadProgress), e.DataType && (W.dataType = e.DataType), this.options.Timeout && (W.timeout = this.options.Timeout), n.options.ForcePathStyle && (W.pathStyle = n.options.ForcePathStyle);
5804
5812
  var Le = s.uuid();
5805
5813
  n.logger.info({
5806
5814
  cate: "PROCESS",
5807
5815
  tag: "network",
5808
- msg: "[Request] ".concat(Le, ", requestOpt=").concat(JSON.stringify($))
5809
- }), n.emit("before-send", $);
5810
- var Me = $.url.includes("accelerate."), Ke = $.qs ? Object.keys($.qs).map(function(me) {
5811
- return "".concat(me, "=").concat($.qs[me]);
5812
- }).join("&") : "", Je = Ke ? $.url + "?" + Ke : $.url;
5816
+ msg: "[Request] ".concat(Le, ", requestOpt=").concat(JSON.stringify(W))
5817
+ }), n.emit("before-send", W);
5818
+ var Me = W.url.includes("accelerate."), Ke = W.qs ? Object.keys(W.qs).map(function(me) {
5819
+ return "".concat(me, "=").concat(W.qs[me]);
5820
+ }).join("&") : "", Je = Ke ? W.url + "?" + Ke : W.url;
5813
5821
  if (e.tracker) {
5814
5822
  var be;
5815
5823
  e.tracker.setParams({
5816
5824
  url: Je,
5817
- httpMethod: $.method,
5825
+ httpMethod: W.method,
5818
5826
  accelerate: Me,
5819
- httpSize: ((be = $.body) === null || be === void 0 ? void 0 : be.size) || 0
5827
+ httpSize: ((be = W.body) === null || be === void 0 ? void 0 : be.size) || 0
5820
5828
  }), e.tracker.parent && !e.tracker.parent.params.url && e.tracker.parent.setParams({
5821
5829
  url: Se,
5822
5830
  accelerate: Me
5823
5831
  });
5824
5832
  }
5825
- var ye = (n.options.Request || N)($, function(me) {
5833
+ var ye = (n.options.Request || N)(W, function(me) {
5826
5834
  if (!(me && me.error === "abort")) {
5827
5835
  var qe = {
5828
- options: $,
5836
+ options: W,
5829
5837
  error: me && me.error,
5830
5838
  statusCode: me && me.statusCode || 0,
5831
5839
  statusMessage: me && me.statusMessage || "",
@@ -5844,11 +5852,11 @@ var wt = { exports: {} };
5844
5852
  msg: "[Response] ".concat(Le, ", ").concat(jt, ", response=").concat(JSON.stringify(Xe))
5845
5853
  });
5846
5854
  var Et, et = function(tt, je) {
5847
- if (u && n.off("inner-kill-task", Ae), !Et) {
5855
+ if (u && n.off("inner-kill-task", Pe), !Et) {
5848
5856
  Et = !0;
5849
5857
  var ot = {};
5850
5858
  if (Xe && Xe.statusCode && (ot.statusCode = Xe.statusCode), Xe && Xe.headers && (ot.headers = Xe.headers), tt)
5851
- $.url && (ot.url = $.url), $.method && (ot.method = $.method), tt = s.extend(tt || {}, ot), c(tt, null);
5859
+ W.url && (ot.url = W.url), W.method && (ot.method = W.method), tt = s.extend(tt || {}, ot), c(tt, null);
5852
5860
  else {
5853
5861
  if (e.Action === "name/cos:PutObject") {
5854
5862
  var Tt = {};
@@ -5889,10 +5897,10 @@ var wt = { exports: {} };
5889
5897
  code: "" + at
5890
5898
  })) : at && et(s.error(new Error("statusCode error")));
5891
5899
  }
5892
- }), Ae = function(qe) {
5893
- qe.TaskId === u && (ye && ye.abort && ye.abort(), n.off("inner-kill-task", Ae));
5900
+ }), Pe = function(qe) {
5901
+ qe.TaskId === u && (ye && ye.abort && ye.abort(), n.off("inner-kill-task", Pe));
5894
5902
  };
5895
- u && n.on("inner-kill-task", Ae);
5903
+ u && n.on("inner-kill-task", Pe);
5896
5904
  }
5897
5905
  }
5898
5906
  var bt = {
@@ -5953,7 +5961,7 @@ var wt = { exports: {} };
5953
5961
  putBucketInventory: pe,
5954
5962
  // BucketInventory
5955
5963
  postBucketInventory: ve,
5956
- getBucketInventory: Ee,
5964
+ getBucketInventory: Ae,
5957
5965
  listBucketInventory: xe,
5958
5966
  deleteBucketInventory: Ie,
5959
5967
  putBucketAccelerate: Ge,
@@ -5976,7 +5984,7 @@ var wt = { exports: {} };
5976
5984
  putObjectTagging: P,
5977
5985
  getObjectTagging: O,
5978
5986
  deleteObjectTagging: q,
5979
- selectObjectContent: W,
5987
+ selectObjectContent: Q,
5980
5988
  appendObject: ze,
5981
5989
  // 分块上传相关方法
5982
5990
  uploadPartCopy: Ne,
@@ -6792,7 +6800,7 @@ var wt = { exports: {} };
6792
6800
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6793
6801
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6794
6802
  }
6795
- var W, ie = !0, ge = !1;
6803
+ var Q, ie = !0, ge = !1;
6796
6804
  return {
6797
6805
  s: function() {
6798
6806
  P = P.call(V);
@@ -6802,13 +6810,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6802
6810
  return ie = Be.done, Be;
6803
6811
  },
6804
6812
  e: function(Be) {
6805
- ge = !0, W = Be;
6813
+ ge = !0, Q = Be;
6806
6814
  },
6807
6815
  f: function() {
6808
6816
  try {
6809
6817
  ie || P.return == null || P.return();
6810
6818
  } finally {
6811
- if (ge) throw W;
6819
+ if (ge) throw Q;
6812
6820
  }
6813
6821
  }
6814
6822
  };
@@ -6871,14 +6879,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6871
6879
  var P = [];
6872
6880
  for (var O in V)
6873
6881
  V.hasOwnProperty(O) && P.push(R ? l(O).toLowerCase() : O);
6874
- return P.sort(function(q, W) {
6875
- return q = q.toLowerCase(), W = W.toLowerCase(), q === W ? 0 : q > W ? 1 : -1;
6882
+ return P.sort(function(q, Q) {
6883
+ return q = q.toLowerCase(), Q = Q.toLowerCase(), q === Q ? 0 : q > Q ? 1 : -1;
6876
6884
  });
6877
6885
  }
6878
6886
  var i = function(R, P) {
6879
- var O, q, W, ie = [], ge = x(R);
6887
+ var O, q, Q, ie = [], ge = x(R);
6880
6888
  for (O = 0; O < ge.length; O++)
6881
- q = ge[O], W = R[q] === void 0 || R[q] === null ? "" : "" + R[q], q = P ? l(q).toLowerCase() : l(q), W = l(W) || "", ie.push(q + "=" + W);
6889
+ q = ge[O], Q = R[q] === void 0 || R[q] === null ? "" : "" + R[q], q = P ? l(q).toLowerCase() : l(q), Q = l(Q) || "", ie.push(q + "=" + Q);
6882
6890
  return ie.join("&");
6883
6891
  }, o = ["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "expect", "expires", "host", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding", "pic-operations"], t = function(R) {
6884
6892
  var P = {};
@@ -6889,34 +6897,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6889
6897
  return P;
6890
6898
  }, r = function(R) {
6891
6899
  R = R || {};
6892
- var P = R.SecretId, O = R.SecretKey, q = R.KeyTime, W = (R.method || R.Method || "get").toLowerCase(), ie = se(R.Query || R.params || {}), ge = t(se(R.Headers || R.headers || {})), Ce = R.Key || "", Be;
6900
+ var P = R.SecretId, O = R.SecretKey, q = R.KeyTime, Q = (R.method || R.Method || "get").toLowerCase(), ie = se(R.Query || R.params || {}), ge = t(se(R.Headers || R.headers || {})), Ce = R.Key || "", Be;
6893
6901
  R.UseRawKey ? Be = R.Pathname || R.pathname || "/" + Ce : (Be = R.Pathname || R.pathname || Ce, Be.indexOf("/") !== 0 && (Be = "/" + Be));
6894
6902
  var Oe = R.ForceSignHost !== !1;
6895
6903
  if (!ge.Host && !ge.host && R.Bucket && R.Region && Oe && (ge.Host = R.Bucket + ".cos." + R.Region + ".myqcloud.com"), !P) throw new Error("missing param SecretId");
6896
6904
  if (!O) throw new Error("missing param SecretKey");
6897
6905
  var Ue = Math.round(Ze(R.SystemClockOffset) / 1e3) - 1, we = Ue, ze = R.Expires || R.expires;
6898
6906
  ze === void 0 ? we += 900 : we += ze * 1 || 0;
6899
- var Ye = "sha1", De = P, Re = q || Ue + ";" + we, $e = q || Ue + ";" + we, Ve = x(ge, !0).join(";").toLowerCase(), nt = x(ie, !0).join(";").toLowerCase(), st = k.HmacSHA1($e, O).toString(), Ct = [W, Be, Ne.obj2str(ie, !0), Ne.obj2str(ge, !0), ""].join(`
6907
+ var Ye = "sha1", De = P, Re = q || Ue + ";" + we, $e = q || Ue + ";" + we, Ve = x(ge, !0).join(";").toLowerCase(), nt = x(ie, !0).join(";").toLowerCase(), st = k.HmacSHA1($e, O).toString(), Ct = [Q, Be, Ne.obj2str(ie, !0), Ne.obj2str(ge, !0), ""].join(`
6900
6908
  `), kt = ["sha1", Re, k.SHA1(Ct).toString(), ""].join(`
6901
6909
  `), Y = k.HmacSHA1(kt, st).toString(), St = ["q-sign-algorithm=" + Ye, "q-ak=" + De, "q-sign-time=" + Re, "q-key-time=" + $e, "q-header-list=" + Ve, "q-url-param-list=" + nt, "q-signature=" + Y].join("&");
6902
6910
  return St;
6903
6911
  }, a = function(R, P, O) {
6904
- var q = P / 8, W = R.slice(O, O + q);
6905
- return new Uint8Array(W).reverse(), new {
6912
+ var q = P / 8, Q = R.slice(O, O + q);
6913
+ return new Uint8Array(Q).reverse(), new {
6906
6914
  8: Uint8Array,
6907
6915
  16: Uint16Array,
6908
6916
  32: Uint32Array
6909
- }[P](W)[0];
6917
+ }[P](Q)[0];
6910
6918
  }, y = function(R, P, O, q) {
6911
- var W = R.slice(P, O), ie = "";
6912
- return new Uint8Array(W).forEach(function(ge) {
6919
+ var Q = R.slice(P, O), ie = "";
6920
+ return new Uint8Array(Q).forEach(function(ge) {
6913
6921
  ie += String.fromCharCode(ge);
6914
6922
  }), q && (ie = decodeURIComponent(escape(ie))), ie;
6915
6923
  }, I = function(R) {
6916
6924
  for (var P = {}, O = y(R), q = {
6917
6925
  records: []
6918
6926
  }; R.byteLength; ) {
6919
- var W = a(R, 32, 0), ie = a(R, 32, 4), ge = W - ie - 16, Ce = 0, Be;
6927
+ var Q = a(R, 32, 0), ie = a(R, 32, 4), ge = Q - ie - 16, Ce = 0, Be;
6920
6928
  for (R = R.slice(12); Ce < ie; ) {
6921
6929
  var Oe = a(R, 8, Ce), Ue = y(R, Ce + 1, Ce + 1 + Oe), we = a(R, 16, Ce + Oe + 2), ze = y(R, Ce + Oe + 4, Ce + Oe + 4 + we);
6922
6930
  P[Ue] = ze, Ce += Oe + 4 + we;
@@ -6965,31 +6973,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6965
6973
  }, X = function() {
6966
6974
  var V = function(O, q) {
6967
6975
  O = O.split("."), q = q.split(".");
6968
- for (var W = 0; W < q.length; W++)
6969
- if (O[W] !== q[W])
6970
- return parseInt(O[W]) > parseInt(q[W]) ? 1 : -1;
6976
+ for (var Q = 0; Q < q.length; Q++)
6977
+ if (O[Q] !== q[Q])
6978
+ return parseInt(O[Q]) > parseInt(q[Q]) ? 1 : -1;
6971
6979
  return 0;
6972
6980
  }, R = function(O) {
6973
6981
  if (!O) return !1;
6974
- var q = (O.match(/Chrome\/([.\d]+)/) || [])[1], W = (O.match(/QBCore\/([.\d]+)/) || [])[1], ie = (O.match(/QQBrowser\/([.\d]+)/) || [])[1], ge = q && V(q, "53.0.2785.116") < 0 && W && V(W, "3.53.991.400") < 0 && ie && V(ie, "9.0.2524.400") <= 0 || !1;
6982
+ var q = (O.match(/Chrome\/([.\d]+)/) || [])[1], Q = (O.match(/QBCore\/([.\d]+)/) || [])[1], ie = (O.match(/QQBrowser\/([.\d]+)/) || [])[1], ge = q && V(q, "53.0.2785.116") < 0 && Q && V(Q, "3.53.991.400") < 0 && ie && V(ie, "9.0.2524.400") <= 0 || !1;
6975
6983
  return ge;
6976
6984
  };
6977
6985
  return R(typeof navigator < "u" && navigator.userAgent);
6978
- }(), ne = function(R, P, O, q, W) {
6986
+ }(), ne = function(R, P, O, q, Q) {
6979
6987
  var ie;
6980
6988
  if (R.slice ? ie = R.slice(P, O) : R.mozSlice ? ie = R.mozSlice(P, O) : R.webkitSlice && (ie = R.webkitSlice(P, O)), q && X) {
6981
6989
  var ge = new FileReader();
6982
6990
  ge.onload = function(Ce) {
6983
- ie = null, W(new Blob([ge.result]));
6991
+ ie = null, Q(new Blob([ge.result]));
6984
6992
  }, ge.readAsArrayBuffer(ie);
6985
6993
  } else
6986
- W(ie);
6994
+ Q(ie);
6987
6995
  }, oe = function(R, P, O, q) {
6988
- O = O || M, R ? typeof P == "string" ? O(Ne.md5(P, !0)) : Blob && P instanceof Blob ? Ne.getFileMd5(P, function(W, ie) {
6996
+ O = O || M, R ? typeof P == "string" ? O(Ne.md5(P, !0)) : Blob && P instanceof Blob ? Ne.getFileMd5(P, function(Q, ie) {
6989
6997
  O(ie);
6990
6998
  }, q) : O() : O();
6991
6999
  }, ke = 1024 * 1024, le = function(R, P, O) {
6992
- var q = R.size, W = 0, ie = s.getCtx(), ge = function(Be) {
7000
+ var q = R.size, Q = 0, ie = s.getCtx(), ge = function(Be) {
6993
7001
  if (Be >= q) {
6994
7002
  var Oe = ie.digest("hex");
6995
7003
  P(null, Oe);
@@ -6998,10 +7006,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6998
7006
  var Ue = Math.min(q, Be + ke);
6999
7007
  Ne.fileSlice(R, Be, Ue, !1, function(we) {
7000
7008
  Z(we, function(ze) {
7001
- we = null, ie = ie.update(ze, !0), W += ze.length, ze = null, O && O({
7002
- loaded: W,
7009
+ we = null, ie = ie.update(ze, !0), Q += ze.length, ze = null, O && O({
7010
+ loaded: Q,
7003
7011
  total: q,
7004
- percent: Math.round(W / q * 1e4) / 1e4
7012
+ percent: Math.round(Q / q * 1e4) / 1e4
7005
7013
  }), ge(Be + ke);
7006
7014
  });
7007
7015
  });
@@ -7055,24 +7063,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7055
7063
  return O;
7056
7064
  }
7057
7065
  var ve = function(R) {
7058
- var P, O, q, W = "";
7066
+ var P, O, q, Q = "";
7059
7067
  for (P = 0, O = R.length / 2; P < O; P++)
7060
- q = parseInt(R[P * 2] + R[P * 2 + 1], 16), W += String.fromCharCode(q);
7061
- return btoa(W);
7062
- }, Ee = function() {
7068
+ q = parseInt(R[P * 2] + R[P * 2 + 1], 16), Q += String.fromCharCode(q);
7069
+ return btoa(Q);
7070
+ }, Ae = function() {
7063
7071
  var R = function() {
7064
7072
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
7065
7073
  };
7066
7074
  return R() + R() + "-" + R() + "-" + R() + "-" + R() + "-" + R() + R() + R();
7067
7075
  }, xe = function(R, P) {
7068
- var O = P.Bucket, q = P.Region, W = P.Key, ie = this.options.Domain, ge = !ie || typeof ie == "string" && ie.indexOf("{Bucket}") > -1, Ce = !ie || typeof ie == "string" && ie.indexOf("{Region}") > -1;
7076
+ var O = P.Bucket, q = P.Region, Q = P.Key, ie = this.options.Domain, ge = !ie || typeof ie == "string" && ie.indexOf("{Bucket}") > -1, Ce = !ie || typeof ie == "string" && ie.indexOf("{Region}") > -1;
7069
7077
  if (R.indexOf("Bucket") > -1 || R === "deleteMultipleObject" || R === "multipartList" || R === "listObjectVersions") {
7070
7078
  if (ge && !O) return "Bucket";
7071
7079
  if (Ce && !q) return "Region";
7072
7080
  } else if (R.indexOf("Object") > -1 || R.indexOf("multipart") > -1 || R === "sliceUploadFile" || R === "abortUploadTask" || R === "uploadFile") {
7073
7081
  if (ge && !O) return "Bucket";
7074
7082
  if (Ce && !q) return "Region";
7075
- if (!W) return "Key";
7083
+ if (!Q) return "Key";
7076
7084
  }
7077
7085
  return !1;
7078
7086
  }, Ie = function(R, P) {
@@ -7080,8 +7088,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7080
7088
  var O = P.Headers || {};
7081
7089
  if (P && A(P) === "object") {
7082
7090
  (function() {
7083
- for (var W in P)
7084
- P.hasOwnProperty(W) && W.indexOf("x-cos-") > -1 && (O[W] = P[W]);
7091
+ for (var Q in P)
7092
+ P.hasOwnProperty(Q) && Q.indexOf("x-cos-") > -1 && (O[Q] = P[Q]);
7085
7093
  })();
7086
7094
  var q = {
7087
7095
  // params headers
@@ -7129,18 +7137,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7129
7137
  "x-cos-callback-var": "CallbackVar",
7130
7138
  "x-cos-return-body": "ReturnBody"
7131
7139
  };
7132
- Ne.each(q, function(W, ie) {
7133
- P[W] !== void 0 && (O[ie] = P[W]);
7140
+ Ne.each(q, function(Q, ie) {
7141
+ P[Q] !== void 0 && (O[ie] = P[Q]);
7134
7142
  }), P.Headers = K(O);
7135
7143
  }
7136
7144
  }
7137
7145
  return P;
7138
7146
  }, Ge = function(R, P) {
7139
7147
  return function(O, q) {
7140
- var W = this;
7148
+ var Q = this;
7141
7149
  typeof O == "function" && (q = O, O = {}), O = Ie(R, O);
7142
7150
  var ie;
7143
- if (W.options.EnableReporter)
7151
+ if (Q.options.EnableReporter)
7144
7152
  if (O.calledBySdk === "sliceUploadFile" || O.calledBySdk === "sliceCopyFile")
7145
7153
  ie = O.tracker && O.tracker.generateSubTracker({
7146
7154
  apiName: R
@@ -7150,10 +7158,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7150
7158
  else {
7151
7159
  var ge = 0;
7152
7160
  O.Body && (ge = typeof O.Body == "string" ? O.Body.length : O.Body.size || O.Body.byteLength || 0);
7153
- var Ce = W.options.UseAccelerate || typeof W.options.Domain == "string" && W.options.Domain.includes("accelerate.");
7161
+ var Ce = Q.options.UseAccelerate || typeof Q.options.Domain == "string" && Q.options.Domain.includes("accelerate.");
7154
7162
  ie = new w({
7155
- Beacon: W.options.BeaconReporter,
7156
- clsReporter: W.options.ClsReporter,
7163
+ Beacon: Q.options.BeaconReporter,
7164
+ clsReporter: Q.options.ClsReporter,
7157
7165
  bucket: O.Bucket,
7158
7166
  region: O.Region,
7159
7167
  apiName: R,
@@ -7161,9 +7169,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7161
7169
  accelerate: Ce,
7162
7170
  fileKey: O.Key,
7163
7171
  fileSize: ge,
7164
- deepTracker: W.options.DeepTracker,
7165
- customId: W.options.CustomId,
7166
- delay: W.options.TrackerDelay
7172
+ deepTracker: Q.options.DeepTracker,
7173
+ customId: Q.options.CustomId,
7174
+ delay: Q.options.TrackerDelay
7167
7175
  });
7168
7176
  }
7169
7177
  O.tracker = ie;
@@ -7173,11 +7181,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7173
7181
  ie && ie.report(Re, $e), q && q(Be(Re), Be($e));
7174
7182
  }, Ue = function() {
7175
7183
  if (R !== "getService" && R !== "abortUploadTask") {
7176
- var Re = xe.call(W, R, O);
7184
+ var Re = xe.call(Q, R, O);
7177
7185
  if (Re)
7178
7186
  return "missing param " + Re;
7179
7187
  if (O.Region) {
7180
- if (W.options.CompatibilityMode) {
7188
+ if (Q.options.CompatibilityMode) {
7181
7189
  if (!/^([a-z\d-.]+)$/.test(O.Region))
7182
7190
  return "Region format error.";
7183
7191
  } else {
@@ -7186,19 +7194,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7186
7194
  if (!/^([a-z\d-]+)$/.test(O.Region))
7187
7195
  return "Region format error.";
7188
7196
  }
7189
- !W.options.CompatibilityMode && O.Region.indexOf("-") === -1 && O.Region !== "yfb" && O.Region !== "default" && O.Region !== "accelerate" && console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224");
7197
+ !Q.options.CompatibilityMode && O.Region.indexOf("-") === -1 && O.Region !== "yfb" && O.Region !== "default" && O.Region !== "accelerate" && console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224");
7190
7198
  }
7191
7199
  if (O.Bucket) {
7192
7200
  if (!/^([a-z\d-]+)-(\d+)$/.test(O.Bucket))
7193
7201
  if (O.AppId)
7194
7202
  O.Bucket = O.Bucket + "-" + O.AppId;
7195
- else if (W.options.AppId)
7196
- O.Bucket = O.Bucket + "-" + W.options.AppId;
7203
+ else if (Q.options.AppId)
7204
+ O.Bucket = O.Bucket + "-" + Q.options.AppId;
7197
7205
  else
7198
7206
  return 'Bucket should format as "test-1250000000".';
7199
7207
  O.AppId && (console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'), delete O.AppId);
7200
7208
  }
7201
- !W.options.UseRawKey && O.Key && O.Key.substr(0, 1) === "/" && (O.Key = O.Key.substr(1));
7209
+ !Q.options.UseRawKey && O.Key && O.Key.substr(0, 1) === "/" && (O.Key = O.Key.substr(1));
7202
7210
  }
7203
7211
  }, we = Ue(), ze = ["getAuth", "getObjectUrl"].includes(R);
7204
7212
  if (typeof Promise == "function" && !ze && !q)
@@ -7206,22 +7214,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7206
7214
  if (q = function(Ve, nt) {
7207
7215
  Ve ? Re(Ve) : De(nt);
7208
7216
  }, we) return Oe(Ne.error(new Error(we)));
7209
- P.call(W, O, Oe);
7217
+ P.call(Q, O, Oe);
7210
7218
  });
7211
7219
  if (we) return Oe(Ne.error(new Error(we)));
7212
- var Ye = P.call(W, O, Oe);
7220
+ var Ye = P.call(Q, O, Oe);
7213
7221
  if (ze) return Ye;
7214
7222
  };
7215
7223
  }, _e = function(R, P) {
7216
- var O = this, q = 0, W = 0, ie = Date.now(), ge, Ce;
7224
+ var O = this, q = 0, Q = 0, ie = Date.now(), ge, Ce;
7217
7225
  function Be() {
7218
7226
  if (Ce = 0, P && typeof P == "function") {
7219
7227
  ge = Date.now();
7220
- var Oe = Math.max(0, Math.round((W - q) / ((ge - ie) / 1e3) * 100) / 100) || 0, Ue;
7221
- W === 0 && R === 0 ? Ue = 1 : Ue = Math.floor(W / R * 100) / 100 || 0, ie = ge, q = W;
7228
+ var Oe = Math.max(0, Math.round((Q - q) / ((ge - ie) / 1e3) * 100) / 100) || 0, Ue;
7229
+ Q === 0 && R === 0 ? Ue = 1 : Ue = Math.floor(Q / R * 100) / 100 || 0, ie = ge, q = Q;
7222
7230
  try {
7223
7231
  P({
7224
- loaded: W,
7232
+ loaded: Q,
7225
7233
  total: R,
7226
7234
  speed: Oe,
7227
7235
  percent: Ue
@@ -7231,7 +7239,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7231
7239
  }
7232
7240
  }
7233
7241
  return function(Oe, Ue) {
7234
- if (Oe && (W = Oe.loaded, R = Oe.total), Ue)
7242
+ if (Oe && (Q = Oe.loaded, R = Oe.total), Ue)
7235
7243
  clearTimeout(Ce), Be();
7236
7244
  else {
7237
7245
  if (Ce) return;
@@ -7278,10 +7286,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7278
7286
  }, pt = function(R) {
7279
7287
  return R ? B.decode(R) : "";
7280
7288
  }, yt = function(R) {
7281
- var P = R.split("/"), O = [], q = j(P), W;
7289
+ var P = R.split("/"), O = [], q = j(P), Q;
7282
7290
  try {
7283
- for (q.s(); !(W = q.n()).done; ) {
7284
- var ie = W.value;
7291
+ for (q.s(); !(Q = q.n()).done; ) {
7292
+ var ie = Q.value;
7285
7293
  ie === ".." ? O.length && O.pop() : ie.length && ie !== "." && O.push(ie);
7286
7294
  }
7287
7295
  } catch (ge) {
@@ -7293,10 +7301,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7293
7301
  }, vt = function(R) {
7294
7302
  var P;
7295
7303
  if (R && typeof R == "string") {
7296
- var O = R.trim(), q = O.indexOf("<") === 0, W = O.indexOf("{") === 0;
7304
+ var O = R.trim(), q = O.indexOf("<") === 0, Q = O.indexOf("{") === 0;
7297
7305
  if (q)
7298
7306
  P = Ne.xml2json(R) || {};
7299
- else if (W)
7307
+ else if (Q)
7300
7308
  try {
7301
7309
  var ie = R.replace(/\n/g, " "), ge = JSON.parse(ie);
7302
7310
  Object.prototype.toString.call(ge) === "[object Object]" ? P = ge : P = R;
@@ -7329,7 +7337,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7329
7337
  filter: pe,
7330
7338
  clone: se,
7331
7339
  attr: ee,
7332
- uuid: Ee,
7340
+ uuid: Ae,
7333
7341
  camSafeUrlEncode: l,
7334
7342
  throttleOnProgress: _e,
7335
7343
  getFileSize: We,
@@ -7364,7 +7372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7364
7372
  var Jt = wt.exports;
7365
7373
  const Xt = /* @__PURE__ */ Ht(Jt), Zt = 5 * 1024 * 1024;
7366
7374
  function Yt() {
7367
- async function Q(Pe) {
7375
+ async function $(Ee) {
7368
7376
  var A, j;
7369
7377
  let _ = null;
7370
7378
  const J = () => {
@@ -7372,64 +7380,64 @@ function Yt() {
7372
7380
  }, E = new Xt({
7373
7381
  getAuthorization(L, N) {
7374
7382
  N({
7375
- TmpSecretId: Pe.credentials.tmpSecretId,
7376
- TmpSecretKey: Pe.credentials.tmpSecretKey,
7377
- SecurityToken: Pe.credentials.sessionToken,
7378
- StartTime: Pe.credentials.startTime,
7379
- ExpiredTime: Pe.credentials.expiredTime,
7383
+ TmpSecretId: Ee.credentials.tmpSecretId,
7384
+ TmpSecretKey: Ee.credentials.tmpSecretKey,
7385
+ SecurityToken: Ee.credentials.sessionToken,
7386
+ StartTime: Ee.credentials.startTime,
7387
+ ExpiredTime: Ee.credentials.expiredTime,
7380
7388
  ScopeLimit: !0
7381
7389
  });
7382
7390
  }
7383
7391
  }), U = E.uploadFile({
7384
- Bucket: Pe.bucket,
7385
- Region: Pe.region,
7386
- Key: Pe.key,
7387
- Body: Pe.file,
7392
+ Bucket: Ee.bucket,
7393
+ Region: Ee.region,
7394
+ Key: Ee.key,
7395
+ Body: Ee.file,
7388
7396
  SliceSize: Zt,
7389
- onProgress: Pe.onProgress,
7397
+ onProgress: Ee.onProgress,
7390
7398
  onTaskReady(L) {
7391
7399
  var N;
7392
- _ = L, (N = Pe.signal) != null && N.aborted && E.cancelTask(L);
7400
+ _ = L, (N = Ee.signal) != null && N.aborted && E.cancelTask(L);
7393
7401
  }
7394
7402
  });
7395
- (A = Pe.signal) == null || A.addEventListener("abort", J, {
7403
+ (A = Ee.signal) == null || A.addEventListener("abort", J, {
7396
7404
  once: !0
7397
7405
  });
7398
7406
  try {
7399
7407
  return await U;
7400
7408
  } finally {
7401
- (j = Pe.signal) == null || j.removeEventListener("abort", J);
7409
+ (j = Ee.signal) == null || j.removeEventListener("abort", J);
7402
7410
  }
7403
7411
  }
7404
7412
  return {
7405
- upload: Q
7413
+ upload: $
7406
7414
  };
7407
7415
  }
7408
- function en(Q) {
7409
- return !!Q && typeof Q == "object" && "Key" in Q && typeof Q.Key == "string" && "Bucket" in Q && typeof Q.Bucket == "string" && "Region" in Q && typeof Q.Region == "string" && "TmpSecretId" in Q && typeof Q.TmpSecretId == "string" && "TmpSecretKey" in Q && typeof Q.TmpSecretKey == "string" && "SessionToken" in Q && typeof Q.SessionToken == "string" && "StartTime" in Q && typeof Q.StartTime == "number" && "ExpiredTime" in Q && typeof Q.ExpiredTime == "number";
7416
+ function en($) {
7417
+ return !!$ && typeof $ == "object" && "Key" in $ && typeof $.Key == "string" && "Bucket" in $ && typeof $.Bucket == "string" && "Region" in $ && typeof $.Region == "string" && "TmpSecretId" in $ && typeof $.TmpSecretId == "string" && "TmpSecretKey" in $ && typeof $.TmpSecretKey == "string" && "SessionToken" in $ && typeof $.SessionToken == "string" && "StartTime" in $ && typeof $.StartTime == "number" && "ExpiredTime" in $ && typeof $.ExpiredTime == "number";
7410
7418
  }
7411
- function tn(Q) {
7412
- return Q && typeof Q == "object" && "id" in Q ? String(Q.id) : "";
7419
+ function tn($) {
7420
+ return $ && typeof $ == "object" && "id" in $ ? String($.id) : "";
7413
7421
  }
7414
- function Rt(Q, Pe) {
7415
- return Q && typeof Q == "object" && "message" in Q && typeof Q.message == "string" ? new Error(Q.message) : new Error(Pe);
7422
+ function Rt($, Ee) {
7423
+ return $ && typeof $ == "object" && "message" in $ && typeof $.message == "string" ? new Error($.message) : new Error(Ee);
7416
7424
  }
7417
7425
  function It() {
7418
7426
  return new DOMException("上传已取消", "AbortError");
7419
7427
  }
7420
- function Bt(Q) {
7421
- if (Q != null && Q.aborted)
7428
+ function Bt($) {
7429
+ if ($ != null && $.aborted)
7422
7430
  throw It();
7423
7431
  }
7424
- function nn(Q) {
7425
- return Q instanceof Error ? Q : new Error("上传失败");
7432
+ function nn($) {
7433
+ return $ instanceof Error ? $ : new Error("上传失败");
7426
7434
  }
7427
- function on(Q, Pe = Yt()) {
7435
+ function on($, Ee = Yt()) {
7428
7436
  async function _(J) {
7429
7437
  var E;
7430
7438
  try {
7431
7439
  Bt(J.signal);
7432
- const U = Qt(J.file), A = await Q.ones.files.getKeyAndCredentials.post({
7440
+ const U = Qt(J.file), A = await $.ones.files.getKeyAndCredentials.post({
7433
7441
  filename: J.file.name,
7434
7442
  bucketId: J.bucketId,
7435
7443
  size: J.file.size,
@@ -7439,7 +7447,7 @@ function on(Q, Pe = Yt()) {
7439
7447
  throw Rt(A.error, "获取上传凭证失败");
7440
7448
  Bt(J.signal);
7441
7449
  const j = A.data;
7442
- await Pe.upload({
7450
+ await Ee.upload({
7443
7451
  file: J.file,
7444
7452
  bucket: j.Bucket,
7445
7453
  region: j.Region,
@@ -7457,7 +7465,7 @@ function on(Q, Pe = Yt()) {
7457
7465
  },
7458
7466
  signal: J.signal
7459
7467
  }), Bt(J.signal);
7460
- const L = await Q.ones.files.create.post({
7468
+ const L = await $.ones.files.create.post({
7461
7469
  bucketId: J.bucketId,
7462
7470
  filename: j.Key,
7463
7471
  name: J.file.name,
@@ -7467,7 +7475,7 @@ function on(Q, Pe = Yt()) {
7467
7475
  }), N = tn(L.data);
7468
7476
  if (L.error || !N)
7469
7477
  throw Rt(L.error, "登记上传文件失败");
7470
- const s = await Q.ones.files.update.post({
7478
+ const s = await $.ones.files.update.post({
7471
7479
  id: N,
7472
7480
  status: "success"
7473
7481
  });
@@ -7493,11 +7501,11 @@ function on(Q, Pe = Yt()) {
7493
7501
  }
7494
7502
  const Ft = Symbol("huyooo-runtime");
7495
7503
  let lt = null;
7496
- function an(Q) {
7504
+ function an($) {
7497
7505
  if (lt)
7498
7506
  throw new Error("Huyooo UI Runtime 已初始化,不能重复创建");
7499
- const Pe = Gt(Q), _ = Kt(Pe), J = on(_), E = {
7500
- config: Pe,
7507
+ const Ee = Gt($), _ = Kt(Ee), J = on(_), E = {
7508
+ config: Ee,
7501
7509
  api: _,
7502
7510
  upload: J
7503
7511
  };
@@ -7514,10 +7522,10 @@ function cn() {
7514
7522
  return lt;
7515
7523
  }
7516
7524
  function ln() {
7517
- const Q = Mt(Ft);
7518
- if (!Q)
7525
+ const $ = Mt(Ft);
7526
+ if (!$)
7519
7527
  throw new Error("当前 Vue 应用未安装 createHuyoooUI(config)");
7520
- return Q;
7528
+ return $;
7521
7529
  }
7522
7530
  export {
7523
7531
  Ft as H,