@solar-taro/ui-sun 2.1.0 → 2.3.0

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 (74) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/back-button/index.d.ts +1 -0
  3. package/back-button/index.scss +3 -0
  4. package/back-button/index.vue.d.ts +2 -0
  5. package/chip/index.vue.d.ts +1 -1
  6. package/index.d.ts +2 -0
  7. package/index.js +31 -27
  8. package/index12.js +1 -1
  9. package/index13.js +1 -1
  10. package/index14.js +1 -1
  11. package/index15.js +5 -5
  12. package/index18.js +1 -1
  13. package/index23.js +1 -1
  14. package/index24.js +14 -10
  15. package/index25.js +2 -2
  16. package/index26.js +9 -9
  17. package/index27.js +10 -2
  18. package/index28.js +10 -2
  19. package/index29.js +1 -1
  20. package/index30.js +2 -7
  21. package/index31.js +1 -1
  22. package/index32.js +1 -1
  23. package/index33.js +1 -1
  24. package/index34.js +7 -2
  25. package/index35.js +1 -1
  26. package/index36.js +1 -1
  27. package/index37.js +1 -1
  28. package/index38.js +1 -1
  29. package/index39.js +1 -1
  30. package/index4.js +11 -19
  31. package/index40.js +1 -1
  32. package/index41.js +1 -1
  33. package/index42.js +1 -1
  34. package/index43.js +1 -1
  35. package/index47.js +1 -1
  36. package/index48.js +2 -526
  37. package/index49.js +2 -3
  38. package/index5.js +17 -19
  39. package/index50.js +2 -66
  40. package/index51.js +526 -12
  41. package/index52.js +64 -23
  42. package/index53.js +11 -13
  43. package/index54.js +25 -5
  44. package/index55.js +14 -26
  45. package/index56.js +5 -2
  46. package/index57.js +3 -506
  47. package/index58.js +24 -77
  48. package/index59.js +2 -70
  49. package/index6.js +19 -14
  50. package/index60.js +484 -47
  51. package/index61.js +54 -518
  52. package/index62.js +70 -2
  53. package/index63.js +69 -2
  54. package/index64.js +543 -2
  55. package/index65.js +2 -4
  56. package/index67.js +2 -4
  57. package/index68.js +4 -2
  58. package/index7.js +15 -10
  59. package/index70.js +4 -2
  60. package/index71.js +2 -48
  61. package/index72.js +2 -82
  62. package/index74.js +48 -2
  63. package/index75.js +82 -2
  64. package/index76.js +2 -2
  65. package/index77.js +4 -0
  66. package/index78.js +4 -0
  67. package/index79.js +4 -0
  68. package/index8.js +1 -1
  69. package/package.json +1 -1
  70. package/page-header/index.scss +2 -2
  71. package/popover/index.scss +20 -19
  72. package/title/index.d.ts +1 -0
  73. package/title/index.scss +4 -0
  74. package/title/index.vue.d.ts +17 -0
package/index61.js CHANGED
@@ -1,545 +1,81 @@
1
- import { commonjsGlobal as X } from "./index55.js";
2
- import { __module as m } from "./index73.js";
3
- import { __require as A } from "./index57.js";
4
- import { __require as W } from "./index60.js";
5
- var B;
6
- function j() {
7
- return B ? m.exports : (B = 1, function(S, L) {
8
- (function(u, v, c) {
9
- S.exports = v(A(), W());
10
- })(X, function(u) {
11
- u.lib.Cipher || function(v) {
12
- var c = u, s = c.lib, p = s.Base, h = s.WordArray, y = s.BufferedBlockAlgorithm, x = c.enc;
13
- x.Utf8;
14
- var C = x.Base64, g = c.algo, k = g.EvpKDF, f = s.Cipher = y.extend({
1
+ import { commonjsGlobal as B } from "./index58.js";
2
+ import { __module as h } from "./index71.js";
3
+ import { __require as A } from "./index60.js";
4
+ var m;
5
+ function E() {
6
+ return m ? h.exports : (m = 1, function(_, q) {
7
+ (function(c, f) {
8
+ _.exports = f(A());
9
+ })(B, function(c) {
10
+ return function() {
11
+ var f = c, d = f.lib, l = d.WordArray, x = f.enc;
12
+ x.Base64 = {
15
13
  /**
16
- * Configuration options.
14
+ * Converts a word array to a Base64 string.
17
15
  *
18
- * @property {WordArray} iv The IV to use for this operation.
19
- */
20
- cfg: p.extend(),
21
- /**
22
- * Creates this cipher in encryption mode.
23
- *
24
- * @param {WordArray} key The key.
25
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
26
- *
27
- * @return {Cipher} A cipher instance.
28
- *
29
- * @static
30
- *
31
- * @example
32
- *
33
- * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
34
- */
35
- createEncryptor: function(e, t) {
36
- return this.create(this._ENC_XFORM_MODE, e, t);
37
- },
38
- /**
39
- * Creates this cipher in decryption mode.
40
- *
41
- * @param {WordArray} key The key.
42
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
43
- *
44
- * @return {Cipher} A cipher instance.
45
- *
46
- * @static
47
- *
48
- * @example
49
- *
50
- * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
51
- */
52
- createDecryptor: function(e, t) {
53
- return this.create(this._DEC_XFORM_MODE, e, t);
54
- },
55
- /**
56
- * Initializes a newly created cipher.
57
- *
58
- * @param {number} xformMode Either the encryption or decryption transormation mode constant.
59
- * @param {WordArray} key The key.
60
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
61
- *
62
- * @example
63
- *
64
- * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
65
- */
66
- init: function(e, t, i) {
67
- this.cfg = this.cfg.extend(i), this._xformMode = e, this._key = t, this.reset();
68
- },
69
- /**
70
- * Resets this cipher to its initial state.
71
- *
72
- * @example
73
- *
74
- * cipher.reset();
75
- */
76
- reset: function() {
77
- y.reset.call(this), this._doReset();
78
- },
79
- /**
80
- * Adds data to be encrypted or decrypted.
81
- *
82
- * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
83
- *
84
- * @return {WordArray} The data after processing.
85
- *
86
- * @example
87
- *
88
- * var encrypted = cipher.process('data');
89
- * var encrypted = cipher.process(wordArray);
90
- */
91
- process: function(e) {
92
- return this._append(e), this._process();
93
- },
94
- /**
95
- * Finalizes the encryption or decryption process.
96
- * Note that the finalize operation is effectively a destructive, read-once operation.
97
- *
98
- * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
99
- *
100
- * @return {WordArray} The data after final processing.
101
- *
102
- * @example
103
- *
104
- * var encrypted = cipher.finalize();
105
- * var encrypted = cipher.finalize('data');
106
- * var encrypted = cipher.finalize(wordArray);
107
- */
108
- finalize: function(e) {
109
- e && this._append(e);
110
- var t = this._doFinalize();
111
- return t;
112
- },
113
- keySize: 128 / 32,
114
- ivSize: 128 / 32,
115
- _ENC_XFORM_MODE: 1,
116
- _DEC_XFORM_MODE: 2,
117
- /**
118
- * Creates shortcut functions to a cipher's object interface.
16
+ * @param {WordArray} wordArray The word array.
119
17
  *
120
- * @param {Cipher} cipher The cipher to create a helper for.
121
- *
122
- * @return {Object} An object with encrypt and decrypt shortcut functions.
18
+ * @return {string} The Base64 string.
123
19
  *
124
20
  * @static
125
21
  *
126
22
  * @example
127
23
  *
128
- * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
24
+ * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
129
25
  */
130
- _createHelper: /* @__PURE__ */ function() {
131
- function e(t) {
132
- return typeof t == "string" ? q : l;
133
- }
134
- return function(t) {
135
- return {
136
- encrypt: function(i, r, n) {
137
- return e(r).encrypt(t, i, r, n);
138
- },
139
- decrypt: function(i, r, n) {
140
- return e(r).decrypt(t, i, r, n);
141
- }
142
- };
143
- };
144
- }()
145
- });
146
- s.StreamCipher = f.extend({
147
- _doFinalize: function() {
148
- var e = this._process(!0);
149
- return e;
26
+ stringify: function(e) {
27
+ var n = e.words, o = e.sigBytes, t = this._map;
28
+ e.clamp();
29
+ for (var a = [], r = 0; r < o; r += 3)
30
+ for (var s = n[r >>> 2] >>> 24 - r % 4 * 8 & 255, i = n[r + 1 >>> 2] >>> 24 - (r + 1) % 4 * 8 & 255, u = n[r + 2 >>> 2] >>> 24 - (r + 2) % 4 * 8 & 255, g = s << 16 | i << 8 | u, v = 0; v < 4 && r + v * 0.75 < o; v++)
31
+ a.push(t.charAt(g >>> 6 * (3 - v) & 63));
32
+ var p = t.charAt(64);
33
+ if (p)
34
+ for (; a.length % 4; )
35
+ a.push(p);
36
+ return a.join("");
150
37
  },
151
- blockSize: 1
152
- });
153
- var z = c.mode = {}, E = s.BlockCipherMode = p.extend({
154
38
  /**
155
- * Creates this mode for encryption.
39
+ * Converts a Base64 string to a word array.
156
40
  *
157
- * @param {Cipher} cipher A block cipher instance.
158
- * @param {Array} iv The IV words.
159
- *
160
- * @static
161
- *
162
- * @example
163
- *
164
- * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
165
- */
166
- createEncryptor: function(e, t) {
167
- return this.Encryptor.create(e, t);
168
- },
169
- /**
170
- * Creates this mode for decryption.
41
+ * @param {string} base64Str The Base64 string.
171
42
  *
172
- * @param {Cipher} cipher A block cipher instance.
173
- * @param {Array} iv The IV words.
43
+ * @return {WordArray} The word array.
174
44
  *
175
45
  * @static
176
46
  *
177
47
  * @example
178
48
  *
179
- * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
180
- */
181
- createDecryptor: function(e, t) {
182
- return this.Decryptor.create(e, t);
183
- },
184
- /**
185
- * Initializes a newly created mode.
186
- *
187
- * @param {Cipher} cipher A block cipher instance.
188
- * @param {Array} iv The IV words.
189
- *
190
- * @example
191
- *
192
- * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
49
+ * var wordArray = CryptoJS.enc.Base64.parse(base64String);
193
50
  */
194
- init: function(e, t) {
195
- this._cipher = e, this._iv = t;
196
- }
197
- }), b = z.CBC = function() {
198
- var e = E.extend();
199
- e.Encryptor = e.extend({
200
- /**
201
- * Processes the data block at offset.
202
- *
203
- * @param {Array} words The data words to operate on.
204
- * @param {number} offset The offset where the block starts.
205
- *
206
- * @example
207
- *
208
- * mode.processBlock(data.words, offset);
209
- */
210
- processBlock: function(i, r) {
211
- var n = this._cipher, a = n.blockSize;
212
- t.call(this, i, r, a), n.encryptBlock(i, r), this._prevBlock = i.slice(r, r + a);
51
+ parse: function(e) {
52
+ var n = e.length, o = this._map, t = this._reverseMap;
53
+ if (!t) {
54
+ t = this._reverseMap = [];
55
+ for (var a = 0; a < o.length; a++)
56
+ t[o.charCodeAt(a)] = a;
213
57
  }
214
- }), e.Decryptor = e.extend({
215
- /**
216
- * Processes the data block at offset.
217
- *
218
- * @param {Array} words The data words to operate on.
219
- * @param {number} offset The offset where the block starts.
220
- *
221
- * @example
222
- *
223
- * mode.processBlock(data.words, offset);
224
- */
225
- processBlock: function(i, r) {
226
- var n = this._cipher, a = n.blockSize, o = i.slice(r, r + a);
227
- n.decryptBlock(i, r), t.call(this, i, r, a), this._prevBlock = o;
58
+ var r = o.charAt(64);
59
+ if (r) {
60
+ var s = e.indexOf(r);
61
+ s !== -1 && (n = s);
228
62
  }
229
- });
230
- function t(i, r, n) {
231
- var a, o = this._iv;
232
- o ? (a = o, this._iv = v) : a = this._prevBlock;
233
- for (var d = 0; d < n; d++)
234
- i[r + d] ^= a[d];
235
- }
236
- return e;
237
- }(), D = c.pad = {}, M = D.Pkcs7 = {
238
- /**
239
- * Pads data using the algorithm defined in PKCS #5/7.
240
- *
241
- * @param {WordArray} data The data to pad.
242
- * @param {number} blockSize The multiple that the data should be padded to.
243
- *
244
- * @static
245
- *
246
- * @example
247
- *
248
- * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
249
- */
250
- pad: function(e, t) {
251
- for (var i = t * 4, r = i - e.sigBytes % i, n = r << 24 | r << 16 | r << 8 | r, a = [], o = 0; o < r; o += 4)
252
- a.push(n);
253
- var d = h.create(a, r);
254
- e.concat(d);
63
+ return C(e, n, t);
255
64
  },
256
- /**
257
- * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
258
- *
259
- * @param {WordArray} data The data to unpad.
260
- *
261
- * @static
262
- *
263
- * @example
264
- *
265
- * CryptoJS.pad.Pkcs7.unpad(wordArray);
266
- */
267
- unpad: function(e) {
268
- var t = e.words[e.sigBytes - 1 >>> 2] & 255;
269
- e.sigBytes -= t;
270
- }
65
+ _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
271
66
  };
272
- s.BlockCipher = f.extend({
273
- /**
274
- * Configuration options.
275
- *
276
- * @property {Mode} mode The block mode to use. Default: CBC
277
- * @property {Padding} padding The padding strategy to use. Default: Pkcs7
278
- */
279
- cfg: f.cfg.extend({
280
- mode: b,
281
- padding: M
282
- }),
283
- reset: function() {
284
- var e;
285
- f.reset.call(this);
286
- var t = this.cfg, i = t.iv, r = t.mode;
287
- this._xformMode == this._ENC_XFORM_MODE ? e = r.createEncryptor : (e = r.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == e ? this._mode.init(this, i && i.words) : (this._mode = e.call(r, this, i && i.words), this._mode.__creator = e);
288
- },
289
- _doProcessBlock: function(e, t) {
290
- this._mode.processBlock(e, t);
291
- },
292
- _doFinalize: function() {
293
- var e, t = this.cfg.padding;
294
- return this._xformMode == this._ENC_XFORM_MODE ? (t.pad(this._data, this.blockSize), e = this._process(!0)) : (e = this._process(!0), t.unpad(e)), e;
295
- },
296
- blockSize: 128 / 32
297
- });
298
- var _ = s.CipherParams = p.extend({
299
- /**
300
- * Initializes a newly created cipher params object.
301
- *
302
- * @param {Object} cipherParams An object with any of the possible cipher parameters.
303
- *
304
- * @example
305
- *
306
- * var cipherParams = CryptoJS.lib.CipherParams.create({
307
- * ciphertext: ciphertextWordArray,
308
- * key: keyWordArray,
309
- * iv: ivWordArray,
310
- * salt: saltWordArray,
311
- * algorithm: CryptoJS.algo.AES,
312
- * mode: CryptoJS.mode.CBC,
313
- * padding: CryptoJS.pad.PKCS7,
314
- * blockSize: 4,
315
- * formatter: CryptoJS.format.OpenSSL
316
- * });
317
- */
318
- init: function(e) {
319
- this.mixIn(e);
320
- },
321
- /**
322
- * Converts this cipher params object to a string.
323
- *
324
- * @param {Format} formatter (Optional) The formatting strategy to use.
325
- *
326
- * @return {string} The stringified cipher params.
327
- *
328
- * @throws Error If neither the formatter nor the default formatter is set.
329
- *
330
- * @example
331
- *
332
- * var string = cipherParams + '';
333
- * var string = cipherParams.toString();
334
- * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
335
- */
336
- toString: function(e) {
337
- return (e || this.formatter).stringify(this);
338
- }
339
- }), O = c.format = {}, P = O.OpenSSL = {
340
- /**
341
- * Converts a cipher params object to an OpenSSL-compatible string.
342
- *
343
- * @param {CipherParams} cipherParams The cipher params object.
344
- *
345
- * @return {string} The OpenSSL-compatible string.
346
- *
347
- * @static
348
- *
349
- * @example
350
- *
351
- * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
352
- */
353
- stringify: function(e) {
354
- var t, i = e.ciphertext, r = e.salt;
355
- return r ? t = h.create([1398893684, 1701076831]).concat(r).concat(i) : t = i, t.toString(C);
356
- },
357
- /**
358
- * Converts an OpenSSL-compatible string to a cipher params object.
359
- *
360
- * @param {string} openSSLStr The OpenSSL-compatible string.
361
- *
362
- * @return {CipherParams} The cipher params object.
363
- *
364
- * @static
365
- *
366
- * @example
367
- *
368
- * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
369
- */
370
- parse: function(e) {
371
- var t, i = C.parse(e), r = i.words;
372
- return r[0] == 1398893684 && r[1] == 1701076831 && (t = h.create(r.slice(2, 4)), r.splice(0, 4), i.sigBytes -= 16), _.create({ ciphertext: i, salt: t });
373
- }
374
- }, l = s.SerializableCipher = p.extend({
375
- /**
376
- * Configuration options.
377
- *
378
- * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
379
- */
380
- cfg: p.extend({
381
- format: P
382
- }),
383
- /**
384
- * Encrypts a message.
385
- *
386
- * @param {Cipher} cipher The cipher algorithm to use.
387
- * @param {WordArray|string} message The message to encrypt.
388
- * @param {WordArray} key The key.
389
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
390
- *
391
- * @return {CipherParams} A cipher params object.
392
- *
393
- * @static
394
- *
395
- * @example
396
- *
397
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
398
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
399
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
400
- */
401
- encrypt: function(e, t, i, r) {
402
- r = this.cfg.extend(r);
403
- var n = e.createEncryptor(i, r), a = n.finalize(t), o = n.cfg;
404
- return _.create({
405
- ciphertext: a,
406
- key: i,
407
- iv: o.iv,
408
- algorithm: e,
409
- mode: o.mode,
410
- padding: o.padding,
411
- blockSize: e.blockSize,
412
- formatter: r.format
413
- });
414
- },
415
- /**
416
- * Decrypts serialized ciphertext.
417
- *
418
- * @param {Cipher} cipher The cipher algorithm to use.
419
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
420
- * @param {WordArray} key The key.
421
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
422
- *
423
- * @return {WordArray} The plaintext.
424
- *
425
- * @static
426
- *
427
- * @example
428
- *
429
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
430
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
431
- */
432
- decrypt: function(e, t, i, r) {
433
- r = this.cfg.extend(r), t = this._parse(t, r.format);
434
- var n = e.createDecryptor(i, r).finalize(t.ciphertext);
435
- return n;
436
- },
437
- /**
438
- * Converts serialized ciphertext to CipherParams,
439
- * else assumed CipherParams already and returns ciphertext unchanged.
440
- *
441
- * @param {CipherParams|string} ciphertext The ciphertext.
442
- * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
443
- *
444
- * @return {CipherParams} The unserialized ciphertext.
445
- *
446
- * @static
447
- *
448
- * @example
449
- *
450
- * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
451
- */
452
- _parse: function(e, t) {
453
- return typeof e == "string" ? t.parse(e, this) : e;
454
- }
455
- }), F = c.kdf = {}, R = F.OpenSSL = {
456
- /**
457
- * Derives a key and IV from a password.
458
- *
459
- * @param {string} password The password to derive from.
460
- * @param {number} keySize The size in words of the key to generate.
461
- * @param {number} ivSize The size in words of the IV to generate.
462
- * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
463
- *
464
- * @return {CipherParams} A cipher params object with the key, IV, and salt.
465
- *
466
- * @static
467
- *
468
- * @example
469
- *
470
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
471
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
472
- */
473
- execute: function(e, t, i, r, n) {
474
- if (r || (r = h.random(64 / 8)), n)
475
- var a = k.create({ keySize: t + i, hasher: n }).compute(e, r);
476
- else
477
- var a = k.create({ keySize: t + i }).compute(e, r);
478
- var o = h.create(a.words.slice(t), i * 4);
479
- return a.sigBytes = t * 4, _.create({ key: a, iv: o, salt: r });
480
- }
481
- }, q = s.PasswordBasedCipher = l.extend({
482
- /**
483
- * Configuration options.
484
- *
485
- * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
486
- */
487
- cfg: l.cfg.extend({
488
- kdf: R
489
- }),
490
- /**
491
- * Encrypts a message using a password.
492
- *
493
- * @param {Cipher} cipher The cipher algorithm to use.
494
- * @param {WordArray|string} message The message to encrypt.
495
- * @param {string} password The password.
496
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
497
- *
498
- * @return {CipherParams} A cipher params object.
499
- *
500
- * @static
501
- *
502
- * @example
503
- *
504
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
505
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
506
- */
507
- encrypt: function(e, t, i, r) {
508
- r = this.cfg.extend(r);
509
- var n = r.kdf.execute(i, e.keySize, e.ivSize, r.salt, r.hasher);
510
- r.iv = n.iv;
511
- var a = l.encrypt.call(this, e, t, n.key, r);
512
- return a.mixIn(n), a;
513
- },
514
- /**
515
- * Decrypts serialized ciphertext using a password.
516
- *
517
- * @param {Cipher} cipher The cipher algorithm to use.
518
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
519
- * @param {string} password The password.
520
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
521
- *
522
- * @return {WordArray} The plaintext.
523
- *
524
- * @static
525
- *
526
- * @example
527
- *
528
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
529
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
530
- */
531
- decrypt: function(e, t, i, r) {
532
- r = this.cfg.extend(r), t = this._parse(t, r.format);
533
- var n = r.kdf.execute(i, e.keySize, e.ivSize, t.salt, r.hasher);
534
- r.iv = n.iv;
535
- var a = l.decrypt.call(this, e, t, n.key, r);
536
- return a;
537
- }
538
- });
539
- }();
67
+ function C(e, n, o) {
68
+ for (var t = [], a = 0, r = 0; r < n; r++)
69
+ if (r % 4) {
70
+ var s = o[e.charCodeAt(r - 1)] << r % 4 * 2, i = o[e.charCodeAt(r)] >>> 6 - r % 4 * 2, u = s | i;
71
+ t[a >>> 2] |= u << 24 - a % 4 * 8, a++;
72
+ }
73
+ return l.create(t, a);
74
+ }
75
+ }(), c.enc.Base64;
540
76
  });
541
- }(m), m.exports);
77
+ }(h), h.exports);
542
78
  }
543
79
  export {
544
- j as __require
80
+ E as __require
545
81
  };
package/index62.js CHANGED
@@ -1,4 +1,72 @@
1
- var e = { exports: {} };
1
+ import { commonjsGlobal as K } from "./index58.js";
2
+ import { __module as M } from "./index72.js";
3
+ import { __require as N } from "./index60.js";
4
+ var k;
5
+ function X() {
6
+ return k ? M.exports : (k = 1, function(z, O) {
7
+ (function(L, B) {
8
+ z.exports = B(N());
9
+ })(K, function(L) {
10
+ return function(B) {
11
+ var H = L, R = H.lib, P = R.WordArray, D = R.Hasher, E = H.algo, o = [];
12
+ (function() {
13
+ for (var e = 0; e < 64; e++)
14
+ o[e] = B.abs(B.sin(e + 1)) * 4294967296 | 0;
15
+ })();
16
+ var j = E.MD5 = D.extend({
17
+ _doReset: function() {
18
+ this._hash = new P.init([
19
+ 1732584193,
20
+ 4023233417,
21
+ 2562383102,
22
+ 271733878
23
+ ]);
24
+ },
25
+ _doProcessBlock: function(e, f) {
26
+ for (var d = 0; d < 16; d++) {
27
+ var l = f + d, s = e[l];
28
+ e[l] = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360;
29
+ }
30
+ var v = this._hash.words, x = e[f + 0], _ = e[f + 1], m = e[f + 2], p = e[f + 3], g = e[f + 4], q = e[f + 5], w = e[f + 6], y = e[f + 7], T = e[f + 8], C = e[f + 9], F = e[f + 10], G = e[f + 11], W = e[f + 12], b = e[f + 13], A = e[f + 14], I = e[f + 15], r = v[0], a = v[1], n = v[2], t = v[3];
31
+ r = c(r, a, n, t, x, 7, o[0]), t = c(t, r, a, n, _, 12, o[1]), n = c(n, t, r, a, m, 17, o[2]), a = c(a, n, t, r, p, 22, o[3]), r = c(r, a, n, t, g, 7, o[4]), t = c(t, r, a, n, q, 12, o[5]), n = c(n, t, r, a, w, 17, o[6]), a = c(a, n, t, r, y, 22, o[7]), r = c(r, a, n, t, T, 7, o[8]), t = c(t, r, a, n, C, 12, o[9]), n = c(n, t, r, a, F, 17, o[10]), a = c(a, n, t, r, G, 22, o[11]), r = c(r, a, n, t, W, 7, o[12]), t = c(t, r, a, n, b, 12, o[13]), n = c(n, t, r, a, A, 17, o[14]), a = c(a, n, t, r, I, 22, o[15]), r = i(r, a, n, t, _, 5, o[16]), t = i(t, r, a, n, w, 9, o[17]), n = i(n, t, r, a, G, 14, o[18]), a = i(a, n, t, r, x, 20, o[19]), r = i(r, a, n, t, q, 5, o[20]), t = i(t, r, a, n, F, 9, o[21]), n = i(n, t, r, a, I, 14, o[22]), a = i(a, n, t, r, g, 20, o[23]), r = i(r, a, n, t, C, 5, o[24]), t = i(t, r, a, n, A, 9, o[25]), n = i(n, t, r, a, p, 14, o[26]), a = i(a, n, t, r, T, 20, o[27]), r = i(r, a, n, t, b, 5, o[28]), t = i(t, r, a, n, m, 9, o[29]), n = i(n, t, r, a, y, 14, o[30]), a = i(a, n, t, r, W, 20, o[31]), r = u(r, a, n, t, q, 4, o[32]), t = u(t, r, a, n, T, 11, o[33]), n = u(n, t, r, a, G, 16, o[34]), a = u(a, n, t, r, A, 23, o[35]), r = u(r, a, n, t, _, 4, o[36]), t = u(t, r, a, n, g, 11, o[37]), n = u(n, t, r, a, y, 16, o[38]), a = u(a, n, t, r, F, 23, o[39]), r = u(r, a, n, t, b, 4, o[40]), t = u(t, r, a, n, x, 11, o[41]), n = u(n, t, r, a, p, 16, o[42]), a = u(a, n, t, r, w, 23, o[43]), r = u(r, a, n, t, C, 4, o[44]), t = u(t, r, a, n, W, 11, o[45]), n = u(n, t, r, a, I, 16, o[46]), a = u(a, n, t, r, m, 23, o[47]), r = h(r, a, n, t, x, 6, o[48]), t = h(t, r, a, n, y, 10, o[49]), n = h(n, t, r, a, A, 15, o[50]), a = h(a, n, t, r, q, 21, o[51]), r = h(r, a, n, t, W, 6, o[52]), t = h(t, r, a, n, p, 10, o[53]), n = h(n, t, r, a, F, 15, o[54]), a = h(a, n, t, r, _, 21, o[55]), r = h(r, a, n, t, T, 6, o[56]), t = h(t, r, a, n, I, 10, o[57]), n = h(n, t, r, a, w, 15, o[58]), a = h(a, n, t, r, b, 21, o[59]), r = h(r, a, n, t, g, 6, o[60]), t = h(t, r, a, n, G, 10, o[61]), n = h(n, t, r, a, m, 15, o[62]), a = h(a, n, t, r, C, 21, o[63]), v[0] = v[0] + r | 0, v[1] = v[1] + a | 0, v[2] = v[2] + n | 0, v[3] = v[3] + t | 0;
32
+ },
33
+ _doFinalize: function() {
34
+ var e = this._data, f = e.words, d = this._nDataBytes * 8, l = e.sigBytes * 8;
35
+ f[l >>> 5] |= 128 << 24 - l % 32;
36
+ var s = B.floor(d / 4294967296), v = d;
37
+ f[(l + 64 >>> 9 << 4) + 15] = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, f[(l + 64 >>> 9 << 4) + 14] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, e.sigBytes = (f.length + 1) * 4, this._process();
38
+ for (var x = this._hash, _ = x.words, m = 0; m < 4; m++) {
39
+ var p = _[m];
40
+ _[m] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360;
41
+ }
42
+ return x;
43
+ },
44
+ clone: function() {
45
+ var e = D.clone.call(this);
46
+ return e._hash = this._hash.clone(), e;
47
+ }
48
+ });
49
+ function c(e, f, d, l, s, v, x) {
50
+ var _ = e + (f & d | ~f & l) + s + x;
51
+ return (_ << v | _ >>> 32 - v) + f;
52
+ }
53
+ function i(e, f, d, l, s, v, x) {
54
+ var _ = e + (f & l | d & ~l) + s + x;
55
+ return (_ << v | _ >>> 32 - v) + f;
56
+ }
57
+ function u(e, f, d, l, s, v, x) {
58
+ var _ = e + (f ^ d ^ l) + s + x;
59
+ return (_ << v | _ >>> 32 - v) + f;
60
+ }
61
+ function h(e, f, d, l, s, v, x) {
62
+ var _ = e + (d ^ (f | ~l)) + s + x;
63
+ return (_ << v | _ >>> 32 - v) + f;
64
+ }
65
+ H.MD5 = D._createHelper(j), H.HmacMD5 = D._createHmacHelper(j);
66
+ }(Math), L.MD5;
67
+ });
68
+ }(M), M.exports);
69
+ }
2
70
  export {
3
- e as __module
71
+ X as __require
4
72
  };