@seai/components 1.0.4 → 1.0.6

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.
@@ -0,0 +1,1657 @@
1
+ const br = Object.prototype.toString;
2
+ function ae(n) {
3
+ try {
4
+ return JSON.parse(n), !0;
5
+ } catch {
6
+ return !1;
7
+ }
8
+ }
9
+ function ie(n) {
10
+ return n ? n.startsWith("oldImages/storage") || n.startsWith("/oldImages/storage") : !1;
11
+ }
12
+ function oe(n) {
13
+ if (n && (n.startsWith("oldImages/storage") || n.startsWith("/oldImages/storage"))) {
14
+ const q = n.split("/"), m = q[q.length - 1], [l, w] = m.split(".");
15
+ return [
16
+ {
17
+ isOld: !0,
18
+ // 或者你想改成 "image (1).png" 这种
19
+ name: m,
20
+ // 或者你想改成 "image (1).png" 这种
21
+ fileId: m,
22
+ // 直接用完整文件名作为 ID
23
+ fileSize: null,
24
+ // 无法获取大小,填 null
25
+ fileExtension: w,
26
+ fileVersionId: null,
27
+ url: n
28
+ // 拼成类似你给的 URL
29
+ }
30
+ ];
31
+ }
32
+ }
33
+ function N(n, q) {
34
+ return br.call(n) === `[object ${q}]`;
35
+ }
36
+ function Er(n) {
37
+ return typeof n < "u";
38
+ }
39
+ function yr(n) {
40
+ return !Er(n);
41
+ }
42
+ function nr(n) {
43
+ return n !== null && N(n, "Object");
44
+ }
45
+ function se(n) {
46
+ return wr(n) || kr(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : nr(n) ? Object.keys(n).length === 0 : !1;
47
+ }
48
+ function ce(n) {
49
+ return N(n, "Date");
50
+ }
51
+ function gr(n) {
52
+ return n === null;
53
+ }
54
+ function fe(n) {
55
+ return yr(n) && gr(n);
56
+ }
57
+ function ue(n) {
58
+ return yr(n) || gr(n);
59
+ }
60
+ function ve(n) {
61
+ return N(n, "Number");
62
+ }
63
+ function de(n) {
64
+ return N(n, "Promise") && nr(n) && ir(n.then) && ir(n.catch);
65
+ }
66
+ function kr(n) {
67
+ return N(n, "String");
68
+ }
69
+ function ir(n) {
70
+ return typeof n == "function";
71
+ }
72
+ function pe(n) {
73
+ return N(n, "Boolean");
74
+ }
75
+ function le(n) {
76
+ return N(n, "RegExp");
77
+ }
78
+ function wr(n) {
79
+ return n && Array.isArray(n);
80
+ }
81
+ function he(n) {
82
+ return typeof window < "u" && N(n, "Window");
83
+ }
84
+ function xe(n) {
85
+ return nr(n) && !!n.tagName;
86
+ }
87
+ function _e(n) {
88
+ return N(n, "Map");
89
+ }
90
+ const zr = typeof window > "u", ye = !zr;
91
+ function ge(n) {
92
+ return /^http(s)?:\/\/([\w-]+(\.)?)+[\w-]+(\/[\w- .\/?%&=]*)?/.test(n);
93
+ }
94
+ var tr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
95
+ function K(n) {
96
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
97
+ }
98
+ function Sr(n) {
99
+ if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
100
+ var q = n.default;
101
+ if (typeof q == "function") {
102
+ var m = function l() {
103
+ var w = !1;
104
+ try {
105
+ w = this instanceof l;
106
+ } catch {
107
+ }
108
+ return w ? Reflect.construct(q, arguments, this.constructor) : q.apply(this, arguments);
109
+ };
110
+ m.prototype = q.prototype;
111
+ } else m = {};
112
+ return Object.defineProperty(m, "__esModule", { value: !0 }), Object.keys(n).forEach(function(l) {
113
+ var w = Object.getOwnPropertyDescriptor(n, l);
114
+ Object.defineProperty(m, l, w.get ? w : {
115
+ enumerable: !0,
116
+ get: function() {
117
+ return n[l];
118
+ }
119
+ });
120
+ }), m;
121
+ }
122
+ var L = { exports: {} };
123
+ function Dr(n) {
124
+ throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
125
+ }
126
+ var T = { exports: {} };
127
+ const Hr = {}, Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
+ __proto__: null,
129
+ default: Hr
130
+ }, Symbol.toStringTag, { value: "Module" })), Pr = /* @__PURE__ */ Sr(Ar);
131
+ var Rr = T.exports, or;
132
+ function I() {
133
+ return or || (or = 1, (function(n, q) {
134
+ (function(m, l) {
135
+ n.exports = l();
136
+ })(Rr, function() {
137
+ var m = m || (function(l, w) {
138
+ var k;
139
+ if (typeof window < "u" && window.crypto && (k = window.crypto), typeof self < "u" && self.crypto && (k = self.crypto), typeof globalThis < "u" && globalThis.crypto && (k = globalThis.crypto), !k && typeof window < "u" && window.msCrypto && (k = window.msCrypto), !k && typeof tr < "u" && tr.crypto && (k = tr.crypto), !k && typeof Dr == "function")
140
+ try {
141
+ k = Pr;
142
+ } catch {
143
+ }
144
+ var O = function() {
145
+ if (k) {
146
+ if (typeof k.getRandomValues == "function")
147
+ try {
148
+ return k.getRandomValues(new Uint32Array(1))[0];
149
+ } catch {
150
+ }
151
+ if (typeof k.randomBytes == "function")
152
+ try {
153
+ return k.randomBytes(4).readInt32LE();
154
+ } catch {
155
+ }
156
+ }
157
+ throw new Error("Native crypto module could not be used to get secure random number.");
158
+ }, D = Object.create || /* @__PURE__ */ (function() {
159
+ function t() {
160
+ }
161
+ return function(r) {
162
+ var i;
163
+ return t.prototype = r, i = new t(), t.prototype = null, i;
164
+ };
165
+ })(), H = {}, a = H.lib = {}, C = a.Base = /* @__PURE__ */ (function() {
166
+ return {
167
+ /**
168
+ * Creates a new object that inherits from this object.
169
+ *
170
+ * @param {Object} overrides Properties to copy into the new object.
171
+ *
172
+ * @return {Object} The new object.
173
+ *
174
+ * @static
175
+ *
176
+ * @example
177
+ *
178
+ * var MyType = CryptoJS.lib.Base.extend({
179
+ * field: 'value',
180
+ *
181
+ * method: function () {
182
+ * }
183
+ * });
184
+ */
185
+ extend: function(t) {
186
+ var r = D(this);
187
+ return t && r.mixIn(t), (!r.hasOwnProperty("init") || this.init === r.init) && (r.init = function() {
188
+ r.$super.init.apply(this, arguments);
189
+ }), r.init.prototype = r, r.$super = this, r;
190
+ },
191
+ /**
192
+ * Extends this object and runs the init method.
193
+ * Arguments to create() will be passed to init().
194
+ *
195
+ * @return {Object} The new object.
196
+ *
197
+ * @static
198
+ *
199
+ * @example
200
+ *
201
+ * var instance = MyType.create();
202
+ */
203
+ create: function() {
204
+ var t = this.extend();
205
+ return t.init.apply(t, arguments), t;
206
+ },
207
+ /**
208
+ * Initializes a newly created object.
209
+ * Override this method to add some logic when your objects are created.
210
+ *
211
+ * @example
212
+ *
213
+ * var MyType = CryptoJS.lib.Base.extend({
214
+ * init: function () {
215
+ * // ...
216
+ * }
217
+ * });
218
+ */
219
+ init: function() {
220
+ },
221
+ /**
222
+ * Copies properties into this object.
223
+ *
224
+ * @param {Object} properties The properties to mix in.
225
+ *
226
+ * @example
227
+ *
228
+ * MyType.mixIn({
229
+ * field: 'value'
230
+ * });
231
+ */
232
+ mixIn: function(t) {
233
+ for (var r in t)
234
+ t.hasOwnProperty(r) && (this[r] = t[r]);
235
+ t.hasOwnProperty("toString") && (this.toString = t.toString);
236
+ },
237
+ /**
238
+ * Creates a copy of this object.
239
+ *
240
+ * @return {Object} The clone.
241
+ *
242
+ * @example
243
+ *
244
+ * var clone = instance.clone();
245
+ */
246
+ clone: function() {
247
+ return this.init.prototype.extend(this);
248
+ }
249
+ };
250
+ })(), B = a.WordArray = C.extend({
251
+ /**
252
+ * Initializes a newly created word array.
253
+ *
254
+ * @param {Array} words (Optional) An array of 32-bit words.
255
+ * @param {number} sigBytes (Optional) The number of significant bytes in the words.
256
+ *
257
+ * @example
258
+ *
259
+ * var wordArray = CryptoJS.lib.WordArray.create();
260
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
261
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
262
+ */
263
+ init: function(t, r) {
264
+ t = this.words = t || [], r != w ? this.sigBytes = r : this.sigBytes = t.length * 4;
265
+ },
266
+ /**
267
+ * Converts this word array to a string.
268
+ *
269
+ * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
270
+ *
271
+ * @return {string} The stringified word array.
272
+ *
273
+ * @example
274
+ *
275
+ * var string = wordArray + '';
276
+ * var string = wordArray.toString();
277
+ * var string = wordArray.toString(CryptoJS.enc.Utf8);
278
+ */
279
+ toString: function(t) {
280
+ return (t || x).stringify(this);
281
+ },
282
+ /**
283
+ * Concatenates a word array to this word array.
284
+ *
285
+ * @param {WordArray} wordArray The word array to append.
286
+ *
287
+ * @return {WordArray} This word array.
288
+ *
289
+ * @example
290
+ *
291
+ * wordArray1.concat(wordArray2);
292
+ */
293
+ concat: function(t) {
294
+ var r = this.words, i = t.words, d = this.sigBytes, y = t.sigBytes;
295
+ if (this.clamp(), d % 4)
296
+ for (var E = 0; E < y; E++) {
297
+ var R = i[E >>> 2] >>> 24 - E % 4 * 8 & 255;
298
+ r[d + E >>> 2] |= R << 24 - (d + E) % 4 * 8;
299
+ }
300
+ else
301
+ for (var P = 0; P < y; P += 4)
302
+ r[d + P >>> 2] = i[P >>> 2];
303
+ return this.sigBytes += y, this;
304
+ },
305
+ /**
306
+ * Removes insignificant bits.
307
+ *
308
+ * @example
309
+ *
310
+ * wordArray.clamp();
311
+ */
312
+ clamp: function() {
313
+ var t = this.words, r = this.sigBytes;
314
+ t[r >>> 2] &= 4294967295 << 32 - r % 4 * 8, t.length = l.ceil(r / 4);
315
+ },
316
+ /**
317
+ * Creates a copy of this word array.
318
+ *
319
+ * @return {WordArray} The clone.
320
+ *
321
+ * @example
322
+ *
323
+ * var clone = wordArray.clone();
324
+ */
325
+ clone: function() {
326
+ var t = C.clone.call(this);
327
+ return t.words = this.words.slice(0), t;
328
+ },
329
+ /**
330
+ * Creates a word array filled with random bytes.
331
+ *
332
+ * @param {number} nBytes The number of random bytes to generate.
333
+ *
334
+ * @return {WordArray} The random word array.
335
+ *
336
+ * @static
337
+ *
338
+ * @example
339
+ *
340
+ * var wordArray = CryptoJS.lib.WordArray.random(16);
341
+ */
342
+ random: function(t) {
343
+ for (var r = [], i = 0; i < t; i += 4)
344
+ r.push(O());
345
+ return new B.init(r, t);
346
+ }
347
+ }), p = H.enc = {}, x = p.Hex = {
348
+ /**
349
+ * Converts a word array to a hex string.
350
+ *
351
+ * @param {WordArray} wordArray The word array.
352
+ *
353
+ * @return {string} The hex string.
354
+ *
355
+ * @static
356
+ *
357
+ * @example
358
+ *
359
+ * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
360
+ */
361
+ stringify: function(t) {
362
+ for (var r = t.words, i = t.sigBytes, d = [], y = 0; y < i; y++) {
363
+ var E = r[y >>> 2] >>> 24 - y % 4 * 8 & 255;
364
+ d.push((E >>> 4).toString(16)), d.push((E & 15).toString(16));
365
+ }
366
+ return d.join("");
367
+ },
368
+ /**
369
+ * Converts a hex string to a word array.
370
+ *
371
+ * @param {string} hexStr The hex string.
372
+ *
373
+ * @return {WordArray} The word array.
374
+ *
375
+ * @static
376
+ *
377
+ * @example
378
+ *
379
+ * var wordArray = CryptoJS.enc.Hex.parse(hexString);
380
+ */
381
+ parse: function(t) {
382
+ for (var r = t.length, i = [], d = 0; d < r; d += 2)
383
+ i[d >>> 3] |= parseInt(t.substr(d, 2), 16) << 24 - d % 8 * 4;
384
+ return new B.init(i, r / 2);
385
+ }
386
+ }, b = p.Latin1 = {
387
+ /**
388
+ * Converts a word array to a Latin1 string.
389
+ *
390
+ * @param {WordArray} wordArray The word array.
391
+ *
392
+ * @return {string} The Latin1 string.
393
+ *
394
+ * @static
395
+ *
396
+ * @example
397
+ *
398
+ * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
399
+ */
400
+ stringify: function(t) {
401
+ for (var r = t.words, i = t.sigBytes, d = [], y = 0; y < i; y++) {
402
+ var E = r[y >>> 2] >>> 24 - y % 4 * 8 & 255;
403
+ d.push(String.fromCharCode(E));
404
+ }
405
+ return d.join("");
406
+ },
407
+ /**
408
+ * Converts a Latin1 string to a word array.
409
+ *
410
+ * @param {string} latin1Str The Latin1 string.
411
+ *
412
+ * @return {WordArray} The word array.
413
+ *
414
+ * @static
415
+ *
416
+ * @example
417
+ *
418
+ * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
419
+ */
420
+ parse: function(t) {
421
+ for (var r = t.length, i = [], d = 0; d < r; d++)
422
+ i[d >>> 2] |= (t.charCodeAt(d) & 255) << 24 - d % 4 * 8;
423
+ return new B.init(i, r);
424
+ }
425
+ }, _ = p.Utf8 = {
426
+ /**
427
+ * Converts a word array to a UTF-8 string.
428
+ *
429
+ * @param {WordArray} wordArray The word array.
430
+ *
431
+ * @return {string} The UTF-8 string.
432
+ *
433
+ * @static
434
+ *
435
+ * @example
436
+ *
437
+ * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
438
+ */
439
+ stringify: function(t) {
440
+ try {
441
+ return decodeURIComponent(escape(b.stringify(t)));
442
+ } catch {
443
+ throw new Error("Malformed UTF-8 data");
444
+ }
445
+ },
446
+ /**
447
+ * Converts a UTF-8 string to a word array.
448
+ *
449
+ * @param {string} utf8Str The UTF-8 string.
450
+ *
451
+ * @return {WordArray} The word array.
452
+ *
453
+ * @static
454
+ *
455
+ * @example
456
+ *
457
+ * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
458
+ */
459
+ parse: function(t) {
460
+ return b.parse(unescape(encodeURIComponent(t)));
461
+ }
462
+ }, g = a.BufferedBlockAlgorithm = C.extend({
463
+ /**
464
+ * Resets this block algorithm's data buffer to its initial state.
465
+ *
466
+ * @example
467
+ *
468
+ * bufferedBlockAlgorithm.reset();
469
+ */
470
+ reset: function() {
471
+ this._data = new B.init(), this._nDataBytes = 0;
472
+ },
473
+ /**
474
+ * Adds new data to this block algorithm's buffer.
475
+ *
476
+ * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
477
+ *
478
+ * @example
479
+ *
480
+ * bufferedBlockAlgorithm._append('data');
481
+ * bufferedBlockAlgorithm._append(wordArray);
482
+ */
483
+ _append: function(t) {
484
+ typeof t == "string" && (t = _.parse(t)), this._data.concat(t), this._nDataBytes += t.sigBytes;
485
+ },
486
+ /**
487
+ * Processes available data blocks.
488
+ *
489
+ * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
490
+ *
491
+ * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
492
+ *
493
+ * @return {WordArray} The processed data.
494
+ *
495
+ * @example
496
+ *
497
+ * var processedData = bufferedBlockAlgorithm._process();
498
+ * var processedData = bufferedBlockAlgorithm._process(!!'flush');
499
+ */
500
+ _process: function(t) {
501
+ var r, i = this._data, d = i.words, y = i.sigBytes, E = this.blockSize, R = E * 4, P = y / R;
502
+ t ? P = l.ceil(P) : P = l.max((P | 0) - this._minBufferSize, 0);
503
+ var e = P * E, o = l.min(e * 4, y);
504
+ if (e) {
505
+ for (var h = 0; h < e; h += E)
506
+ this._doProcessBlock(d, h);
507
+ r = d.splice(0, e), i.sigBytes -= o;
508
+ }
509
+ return new B.init(r, o);
510
+ },
511
+ /**
512
+ * Creates a copy of this object.
513
+ *
514
+ * @return {Object} The clone.
515
+ *
516
+ * @example
517
+ *
518
+ * var clone = bufferedBlockAlgorithm.clone();
519
+ */
520
+ clone: function() {
521
+ var t = C.clone.call(this);
522
+ return t._data = this._data.clone(), t;
523
+ },
524
+ _minBufferSize: 0
525
+ });
526
+ a.Hasher = g.extend({
527
+ /**
528
+ * Configuration options.
529
+ */
530
+ cfg: C.extend(),
531
+ /**
532
+ * Initializes a newly created hasher.
533
+ *
534
+ * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
535
+ *
536
+ * @example
537
+ *
538
+ * var hasher = CryptoJS.algo.SHA256.create();
539
+ */
540
+ init: function(t) {
541
+ this.cfg = this.cfg.extend(t), this.reset();
542
+ },
543
+ /**
544
+ * Resets this hasher to its initial state.
545
+ *
546
+ * @example
547
+ *
548
+ * hasher.reset();
549
+ */
550
+ reset: function() {
551
+ g.reset.call(this), this._doReset();
552
+ },
553
+ /**
554
+ * Updates this hasher with a message.
555
+ *
556
+ * @param {WordArray|string} messageUpdate The message to append.
557
+ *
558
+ * @return {Hasher} This hasher.
559
+ *
560
+ * @example
561
+ *
562
+ * hasher.update('message');
563
+ * hasher.update(wordArray);
564
+ */
565
+ update: function(t) {
566
+ return this._append(t), this._process(), this;
567
+ },
568
+ /**
569
+ * Finalizes the hash computation.
570
+ * Note that the finalize operation is effectively a destructive, read-once operation.
571
+ *
572
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
573
+ *
574
+ * @return {WordArray} The hash.
575
+ *
576
+ * @example
577
+ *
578
+ * var hash = hasher.finalize();
579
+ * var hash = hasher.finalize('message');
580
+ * var hash = hasher.finalize(wordArray);
581
+ */
582
+ finalize: function(t) {
583
+ t && this._append(t);
584
+ var r = this._doFinalize();
585
+ return r;
586
+ },
587
+ blockSize: 16,
588
+ /**
589
+ * Creates a shortcut function to a hasher's object interface.
590
+ *
591
+ * @param {Hasher} hasher The hasher to create a helper for.
592
+ *
593
+ * @return {Function} The shortcut function.
594
+ *
595
+ * @static
596
+ *
597
+ * @example
598
+ *
599
+ * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
600
+ */
601
+ _createHelper: function(t) {
602
+ return function(r, i) {
603
+ return new t.init(i).finalize(r);
604
+ };
605
+ },
606
+ /**
607
+ * Creates a shortcut function to the HMAC's object interface.
608
+ *
609
+ * @param {Hasher} hasher The hasher to use in this HMAC helper.
610
+ *
611
+ * @return {Function} The shortcut function.
612
+ *
613
+ * @static
614
+ *
615
+ * @example
616
+ *
617
+ * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
618
+ */
619
+ _createHmacHelper: function(t) {
620
+ return function(r, i) {
621
+ return new A.HMAC.init(t, i).finalize(r);
622
+ };
623
+ }
624
+ });
625
+ var A = H.algo = {};
626
+ return H;
627
+ })(Math);
628
+ return m;
629
+ });
630
+ })(T)), T.exports;
631
+ }
632
+ var j = { exports: {} }, Wr = j.exports, sr;
633
+ function mr() {
634
+ return sr || (sr = 1, (function(n, q) {
635
+ (function(m, l) {
636
+ n.exports = l(I());
637
+ })(Wr, function(m) {
638
+ return (function() {
639
+ var l = m, w = l.lib, k = w.WordArray, O = l.enc;
640
+ O.Base64 = {
641
+ /**
642
+ * Converts a word array to a Base64 string.
643
+ *
644
+ * @param {WordArray} wordArray The word array.
645
+ *
646
+ * @return {string} The Base64 string.
647
+ *
648
+ * @static
649
+ *
650
+ * @example
651
+ *
652
+ * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
653
+ */
654
+ stringify: function(H) {
655
+ var a = H.words, C = H.sigBytes, B = this._map;
656
+ H.clamp();
657
+ for (var p = [], x = 0; x < C; x += 3)
658
+ for (var b = a[x >>> 2] >>> 24 - x % 4 * 8 & 255, _ = a[x + 1 >>> 2] >>> 24 - (x + 1) % 4 * 8 & 255, g = a[x + 2 >>> 2] >>> 24 - (x + 2) % 4 * 8 & 255, A = b << 16 | _ << 8 | g, t = 0; t < 4 && x + t * 0.75 < C; t++)
659
+ p.push(B.charAt(A >>> 6 * (3 - t) & 63));
660
+ var r = B.charAt(64);
661
+ if (r)
662
+ for (; p.length % 4; )
663
+ p.push(r);
664
+ return p.join("");
665
+ },
666
+ /**
667
+ * Converts a Base64 string to a word array.
668
+ *
669
+ * @param {string} base64Str The Base64 string.
670
+ *
671
+ * @return {WordArray} The word array.
672
+ *
673
+ * @static
674
+ *
675
+ * @example
676
+ *
677
+ * var wordArray = CryptoJS.enc.Base64.parse(base64String);
678
+ */
679
+ parse: function(H) {
680
+ var a = H.length, C = this._map, B = this._reverseMap;
681
+ if (!B) {
682
+ B = this._reverseMap = [];
683
+ for (var p = 0; p < C.length; p++)
684
+ B[C.charCodeAt(p)] = p;
685
+ }
686
+ var x = C.charAt(64);
687
+ if (x) {
688
+ var b = H.indexOf(x);
689
+ b !== -1 && (a = b);
690
+ }
691
+ return D(H, a, B);
692
+ },
693
+ _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
694
+ };
695
+ function D(H, a, C) {
696
+ for (var B = [], p = 0, x = 0; x < a; x++)
697
+ if (x % 4) {
698
+ var b = C[H.charCodeAt(x - 1)] << x % 4 * 2, _ = C[H.charCodeAt(x)] >>> 6 - x % 4 * 2, g = b | _;
699
+ B[p >>> 2] |= g << 24 - p % 4 * 8, p++;
700
+ }
701
+ return k.create(B, p);
702
+ }
703
+ })(), m.enc.Base64;
704
+ });
705
+ })(j)), j.exports;
706
+ }
707
+ var V = { exports: {} }, qr = V.exports, cr;
708
+ function Br() {
709
+ return cr || (cr = 1, (function(n, q) {
710
+ (function(m, l) {
711
+ n.exports = l(I());
712
+ })(qr, function(m) {
713
+ return (function(l) {
714
+ var w = m, k = w.lib, O = k.WordArray, D = k.Hasher, H = w.algo, a = [];
715
+ (function() {
716
+ for (var _ = 0; _ < 64; _++)
717
+ a[_] = l.abs(l.sin(_ + 1)) * 4294967296 | 0;
718
+ })();
719
+ var C = H.MD5 = D.extend({
720
+ _doReset: function() {
721
+ this._hash = new O.init([
722
+ 1732584193,
723
+ 4023233417,
724
+ 2562383102,
725
+ 271733878
726
+ ]);
727
+ },
728
+ _doProcessBlock: function(_, g) {
729
+ for (var A = 0; A < 16; A++) {
730
+ var t = g + A, r = _[t];
731
+ _[t] = (r << 8 | r >>> 24) & 16711935 | (r << 24 | r >>> 8) & 4278255360;
732
+ }
733
+ var i = this._hash.words, d = _[g + 0], y = _[g + 1], E = _[g + 2], R = _[g + 3], P = _[g + 4], e = _[g + 5], o = _[g + 6], h = _[g + 7], c = _[g + 8], z = _[g + 9], S = _[g + 10], W = _[g + 11], F = _[g + 12], $ = _[g + 13], M = _[g + 14], U = _[g + 15], s = i[0], f = i[1], u = i[2], v = i[3];
734
+ s = B(s, f, u, v, d, 7, a[0]), v = B(v, s, f, u, y, 12, a[1]), u = B(u, v, s, f, E, 17, a[2]), f = B(f, u, v, s, R, 22, a[3]), s = B(s, f, u, v, P, 7, a[4]), v = B(v, s, f, u, e, 12, a[5]), u = B(u, v, s, f, o, 17, a[6]), f = B(f, u, v, s, h, 22, a[7]), s = B(s, f, u, v, c, 7, a[8]), v = B(v, s, f, u, z, 12, a[9]), u = B(u, v, s, f, S, 17, a[10]), f = B(f, u, v, s, W, 22, a[11]), s = B(s, f, u, v, F, 7, a[12]), v = B(v, s, f, u, $, 12, a[13]), u = B(u, v, s, f, M, 17, a[14]), f = B(f, u, v, s, U, 22, a[15]), s = p(s, f, u, v, y, 5, a[16]), v = p(v, s, f, u, o, 9, a[17]), u = p(u, v, s, f, W, 14, a[18]), f = p(f, u, v, s, d, 20, a[19]), s = p(s, f, u, v, e, 5, a[20]), v = p(v, s, f, u, S, 9, a[21]), u = p(u, v, s, f, U, 14, a[22]), f = p(f, u, v, s, P, 20, a[23]), s = p(s, f, u, v, z, 5, a[24]), v = p(v, s, f, u, M, 9, a[25]), u = p(u, v, s, f, R, 14, a[26]), f = p(f, u, v, s, c, 20, a[27]), s = p(s, f, u, v, $, 5, a[28]), v = p(v, s, f, u, E, 9, a[29]), u = p(u, v, s, f, h, 14, a[30]), f = p(f, u, v, s, F, 20, a[31]), s = x(s, f, u, v, e, 4, a[32]), v = x(v, s, f, u, c, 11, a[33]), u = x(u, v, s, f, W, 16, a[34]), f = x(f, u, v, s, M, 23, a[35]), s = x(s, f, u, v, y, 4, a[36]), v = x(v, s, f, u, P, 11, a[37]), u = x(u, v, s, f, h, 16, a[38]), f = x(f, u, v, s, S, 23, a[39]), s = x(s, f, u, v, $, 4, a[40]), v = x(v, s, f, u, d, 11, a[41]), u = x(u, v, s, f, R, 16, a[42]), f = x(f, u, v, s, o, 23, a[43]), s = x(s, f, u, v, z, 4, a[44]), v = x(v, s, f, u, F, 11, a[45]), u = x(u, v, s, f, U, 16, a[46]), f = x(f, u, v, s, E, 23, a[47]), s = b(s, f, u, v, d, 6, a[48]), v = b(v, s, f, u, h, 10, a[49]), u = b(u, v, s, f, M, 15, a[50]), f = b(f, u, v, s, e, 21, a[51]), s = b(s, f, u, v, F, 6, a[52]), v = b(v, s, f, u, R, 10, a[53]), u = b(u, v, s, f, S, 15, a[54]), f = b(f, u, v, s, y, 21, a[55]), s = b(s, f, u, v, c, 6, a[56]), v = b(v, s, f, u, U, 10, a[57]), u = b(u, v, s, f, o, 15, a[58]), f = b(f, u, v, s, $, 21, a[59]), s = b(s, f, u, v, P, 6, a[60]), v = b(v, s, f, u, W, 10, a[61]), u = b(u, v, s, f, E, 15, a[62]), f = b(f, u, v, s, z, 21, a[63]), i[0] = i[0] + s | 0, i[1] = i[1] + f | 0, i[2] = i[2] + u | 0, i[3] = i[3] + v | 0;
735
+ },
736
+ _doFinalize: function() {
737
+ var _ = this._data, g = _.words, A = this._nDataBytes * 8, t = _.sigBytes * 8;
738
+ g[t >>> 5] |= 128 << 24 - t % 32;
739
+ var r = l.floor(A / 4294967296), i = A;
740
+ g[(t + 64 >>> 9 << 4) + 15] = (r << 8 | r >>> 24) & 16711935 | (r << 24 | r >>> 8) & 4278255360, g[(t + 64 >>> 9 << 4) + 14] = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, _.sigBytes = (g.length + 1) * 4, this._process();
741
+ for (var d = this._hash, y = d.words, E = 0; E < 4; E++) {
742
+ var R = y[E];
743
+ y[E] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
744
+ }
745
+ return d;
746
+ },
747
+ clone: function() {
748
+ var _ = D.clone.call(this);
749
+ return _._hash = this._hash.clone(), _;
750
+ }
751
+ });
752
+ function B(_, g, A, t, r, i, d) {
753
+ var y = _ + (g & A | ~g & t) + r + d;
754
+ return (y << i | y >>> 32 - i) + g;
755
+ }
756
+ function p(_, g, A, t, r, i, d) {
757
+ var y = _ + (g & t | A & ~t) + r + d;
758
+ return (y << i | y >>> 32 - i) + g;
759
+ }
760
+ function x(_, g, A, t, r, i, d) {
761
+ var y = _ + (g ^ A ^ t) + r + d;
762
+ return (y << i | y >>> 32 - i) + g;
763
+ }
764
+ function b(_, g, A, t, r, i, d) {
765
+ var y = _ + (A ^ (g | ~t)) + r + d;
766
+ return (y << i | y >>> 32 - i) + g;
767
+ }
768
+ w.MD5 = D._createHelper(C), w.HmacMD5 = D._createHmacHelper(C);
769
+ })(Math), m.MD5;
770
+ });
771
+ })(V)), V.exports;
772
+ }
773
+ var G = { exports: {} }, Q = { exports: {} }, Or = Q.exports, fr;
774
+ function Fr() {
775
+ return fr || (fr = 1, (function(n, q) {
776
+ (function(m, l) {
777
+ n.exports = l(I());
778
+ })(Or, function(m) {
779
+ return (function() {
780
+ var l = m, w = l.lib, k = w.WordArray, O = w.Hasher, D = l.algo, H = [], a = D.SHA1 = O.extend({
781
+ _doReset: function() {
782
+ this._hash = new k.init([
783
+ 1732584193,
784
+ 4023233417,
785
+ 2562383102,
786
+ 271733878,
787
+ 3285377520
788
+ ]);
789
+ },
790
+ _doProcessBlock: function(C, B) {
791
+ for (var p = this._hash.words, x = p[0], b = p[1], _ = p[2], g = p[3], A = p[4], t = 0; t < 80; t++) {
792
+ if (t < 16)
793
+ H[t] = C[B + t] | 0;
794
+ else {
795
+ var r = H[t - 3] ^ H[t - 8] ^ H[t - 14] ^ H[t - 16];
796
+ H[t] = r << 1 | r >>> 31;
797
+ }
798
+ var i = (x << 5 | x >>> 27) + A + H[t];
799
+ t < 20 ? i += (b & _ | ~b & g) + 1518500249 : t < 40 ? i += (b ^ _ ^ g) + 1859775393 : t < 60 ? i += (b & _ | b & g | _ & g) - 1894007588 : i += (b ^ _ ^ g) - 899497514, A = g, g = _, _ = b << 30 | b >>> 2, b = x, x = i;
800
+ }
801
+ p[0] = p[0] + x | 0, p[1] = p[1] + b | 0, p[2] = p[2] + _ | 0, p[3] = p[3] + g | 0, p[4] = p[4] + A | 0;
802
+ },
803
+ _doFinalize: function() {
804
+ var C = this._data, B = C.words, p = this._nDataBytes * 8, x = C.sigBytes * 8;
805
+ return B[x >>> 5] |= 128 << 24 - x % 32, B[(x + 64 >>> 9 << 4) + 14] = Math.floor(p / 4294967296), B[(x + 64 >>> 9 << 4) + 15] = p, C.sigBytes = B.length * 4, this._process(), this._hash;
806
+ },
807
+ clone: function() {
808
+ var C = O.clone.call(this);
809
+ return C._hash = this._hash.clone(), C;
810
+ }
811
+ });
812
+ l.SHA1 = O._createHelper(a), l.HmacSHA1 = O._createHmacHelper(a);
813
+ })(), m.SHA1;
814
+ });
815
+ })(Q)), Q.exports;
816
+ }
817
+ var Y = { exports: {} }, Ir = Y.exports, ur;
818
+ function Nr() {
819
+ return ur || (ur = 1, (function(n, q) {
820
+ (function(m, l) {
821
+ n.exports = l(I());
822
+ })(Ir, function(m) {
823
+ (function() {
824
+ var l = m, w = l.lib, k = w.Base, O = l.enc, D = O.Utf8, H = l.algo;
825
+ H.HMAC = k.extend({
826
+ /**
827
+ * Initializes a newly created HMAC.
828
+ *
829
+ * @param {Hasher} hasher The hash algorithm to use.
830
+ * @param {WordArray|string} key The secret key.
831
+ *
832
+ * @example
833
+ *
834
+ * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
835
+ */
836
+ init: function(a, C) {
837
+ a = this._hasher = new a.init(), typeof C == "string" && (C = D.parse(C));
838
+ var B = a.blockSize, p = B * 4;
839
+ C.sigBytes > p && (C = a.finalize(C)), C.clamp();
840
+ for (var x = this._oKey = C.clone(), b = this._iKey = C.clone(), _ = x.words, g = b.words, A = 0; A < B; A++)
841
+ _[A] ^= 1549556828, g[A] ^= 909522486;
842
+ x.sigBytes = b.sigBytes = p, this.reset();
843
+ },
844
+ /**
845
+ * Resets this HMAC to its initial state.
846
+ *
847
+ * @example
848
+ *
849
+ * hmacHasher.reset();
850
+ */
851
+ reset: function() {
852
+ var a = this._hasher;
853
+ a.reset(), a.update(this._iKey);
854
+ },
855
+ /**
856
+ * Updates this HMAC with a message.
857
+ *
858
+ * @param {WordArray|string} messageUpdate The message to append.
859
+ *
860
+ * @return {HMAC} This HMAC instance.
861
+ *
862
+ * @example
863
+ *
864
+ * hmacHasher.update('message');
865
+ * hmacHasher.update(wordArray);
866
+ */
867
+ update: function(a) {
868
+ return this._hasher.update(a), this;
869
+ },
870
+ /**
871
+ * Finalizes the HMAC computation.
872
+ * Note that the finalize operation is effectively a destructive, read-once operation.
873
+ *
874
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
875
+ *
876
+ * @return {WordArray} The HMAC.
877
+ *
878
+ * @example
879
+ *
880
+ * var hmac = hmacHasher.finalize();
881
+ * var hmac = hmacHasher.finalize('message');
882
+ * var hmac = hmacHasher.finalize(wordArray);
883
+ */
884
+ finalize: function(a) {
885
+ var C = this._hasher, B = C.finalize(a);
886
+ C.reset();
887
+ var p = C.finalize(this._oKey.clone().concat(B));
888
+ return p;
889
+ }
890
+ });
891
+ })();
892
+ });
893
+ })(Y)), Y.exports;
894
+ }
895
+ var $r = G.exports, vr;
896
+ function Cr() {
897
+ return vr || (vr = 1, (function(n, q) {
898
+ (function(m, l, w) {
899
+ n.exports = l(I(), Fr(), Nr());
900
+ })($r, function(m) {
901
+ return (function() {
902
+ var l = m, w = l.lib, k = w.Base, O = w.WordArray, D = l.algo, H = D.MD5, a = D.EvpKDF = k.extend({
903
+ /**
904
+ * Configuration options.
905
+ *
906
+ * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
907
+ * @property {Hasher} hasher The hash algorithm to use. Default: MD5
908
+ * @property {number} iterations The number of iterations to perform. Default: 1
909
+ */
910
+ cfg: k.extend({
911
+ keySize: 128 / 32,
912
+ hasher: H,
913
+ iterations: 1
914
+ }),
915
+ /**
916
+ * Initializes a newly created key derivation function.
917
+ *
918
+ * @param {Object} cfg (Optional) The configuration options to use for the derivation.
919
+ *
920
+ * @example
921
+ *
922
+ * var kdf = CryptoJS.algo.EvpKDF.create();
923
+ * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
924
+ * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
925
+ */
926
+ init: function(C) {
927
+ this.cfg = this.cfg.extend(C);
928
+ },
929
+ /**
930
+ * Derives a key from a password.
931
+ *
932
+ * @param {WordArray|string} password The password.
933
+ * @param {WordArray|string} salt A salt.
934
+ *
935
+ * @return {WordArray} The derived key.
936
+ *
937
+ * @example
938
+ *
939
+ * var key = kdf.compute(password, salt);
940
+ */
941
+ compute: function(C, B) {
942
+ for (var p, x = this.cfg, b = x.hasher.create(), _ = O.create(), g = _.words, A = x.keySize, t = x.iterations; g.length < A; ) {
943
+ p && b.update(p), p = b.update(C).finalize(B), b.reset();
944
+ for (var r = 1; r < t; r++)
945
+ p = b.finalize(p), b.reset();
946
+ _.concat(p);
947
+ }
948
+ return _.sigBytes = A * 4, _;
949
+ }
950
+ });
951
+ l.EvpKDF = function(C, B, p) {
952
+ return a.create(p).compute(C, B);
953
+ };
954
+ })(), m.EvpKDF;
955
+ });
956
+ })(G)), G.exports;
957
+ }
958
+ var Z = { exports: {} }, Mr = Z.exports, dr;
959
+ function ar() {
960
+ return dr || (dr = 1, (function(n, q) {
961
+ (function(m, l, w) {
962
+ n.exports = l(I(), Cr());
963
+ })(Mr, function(m) {
964
+ m.lib.Cipher || (function(l) {
965
+ var w = m, k = w.lib, O = k.Base, D = k.WordArray, H = k.BufferedBlockAlgorithm, a = w.enc;
966
+ a.Utf8;
967
+ var C = a.Base64, B = w.algo, p = B.EvpKDF, x = k.Cipher = H.extend({
968
+ /**
969
+ * Configuration options.
970
+ *
971
+ * @property {WordArray} iv The IV to use for this operation.
972
+ */
973
+ cfg: O.extend(),
974
+ /**
975
+ * Creates this cipher in encryption mode.
976
+ *
977
+ * @param {WordArray} key The key.
978
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
979
+ *
980
+ * @return {Cipher} A cipher instance.
981
+ *
982
+ * @static
983
+ *
984
+ * @example
985
+ *
986
+ * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
987
+ */
988
+ createEncryptor: function(e, o) {
989
+ return this.create(this._ENC_XFORM_MODE, e, o);
990
+ },
991
+ /**
992
+ * Creates this cipher in decryption mode.
993
+ *
994
+ * @param {WordArray} key The key.
995
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
996
+ *
997
+ * @return {Cipher} A cipher instance.
998
+ *
999
+ * @static
1000
+ *
1001
+ * @example
1002
+ *
1003
+ * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
1004
+ */
1005
+ createDecryptor: function(e, o) {
1006
+ return this.create(this._DEC_XFORM_MODE, e, o);
1007
+ },
1008
+ /**
1009
+ * Initializes a newly created cipher.
1010
+ *
1011
+ * @param {number} xformMode Either the encryption or decryption transormation mode constant.
1012
+ * @param {WordArray} key The key.
1013
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
1014
+ *
1015
+ * @example
1016
+ *
1017
+ * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
1018
+ */
1019
+ init: function(e, o, h) {
1020
+ this.cfg = this.cfg.extend(h), this._xformMode = e, this._key = o, this.reset();
1021
+ },
1022
+ /**
1023
+ * Resets this cipher to its initial state.
1024
+ *
1025
+ * @example
1026
+ *
1027
+ * cipher.reset();
1028
+ */
1029
+ reset: function() {
1030
+ H.reset.call(this), this._doReset();
1031
+ },
1032
+ /**
1033
+ * Adds data to be encrypted or decrypted.
1034
+ *
1035
+ * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
1036
+ *
1037
+ * @return {WordArray} The data after processing.
1038
+ *
1039
+ * @example
1040
+ *
1041
+ * var encrypted = cipher.process('data');
1042
+ * var encrypted = cipher.process(wordArray);
1043
+ */
1044
+ process: function(e) {
1045
+ return this._append(e), this._process();
1046
+ },
1047
+ /**
1048
+ * Finalizes the encryption or decryption process.
1049
+ * Note that the finalize operation is effectively a destructive, read-once operation.
1050
+ *
1051
+ * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
1052
+ *
1053
+ * @return {WordArray} The data after final processing.
1054
+ *
1055
+ * @example
1056
+ *
1057
+ * var encrypted = cipher.finalize();
1058
+ * var encrypted = cipher.finalize('data');
1059
+ * var encrypted = cipher.finalize(wordArray);
1060
+ */
1061
+ finalize: function(e) {
1062
+ e && this._append(e);
1063
+ var o = this._doFinalize();
1064
+ return o;
1065
+ },
1066
+ keySize: 128 / 32,
1067
+ ivSize: 128 / 32,
1068
+ _ENC_XFORM_MODE: 1,
1069
+ _DEC_XFORM_MODE: 2,
1070
+ /**
1071
+ * Creates shortcut functions to a cipher's object interface.
1072
+ *
1073
+ * @param {Cipher} cipher The cipher to create a helper for.
1074
+ *
1075
+ * @return {Object} An object with encrypt and decrypt shortcut functions.
1076
+ *
1077
+ * @static
1078
+ *
1079
+ * @example
1080
+ *
1081
+ * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
1082
+ */
1083
+ _createHelper: /* @__PURE__ */ (function() {
1084
+ function e(o) {
1085
+ return typeof o == "string" ? P : y;
1086
+ }
1087
+ return function(o) {
1088
+ return {
1089
+ encrypt: function(h, c, z) {
1090
+ return e(c).encrypt(o, h, c, z);
1091
+ },
1092
+ decrypt: function(h, c, z) {
1093
+ return e(c).decrypt(o, h, c, z);
1094
+ }
1095
+ };
1096
+ };
1097
+ })()
1098
+ });
1099
+ k.StreamCipher = x.extend({
1100
+ _doFinalize: function() {
1101
+ var e = this._process(!0);
1102
+ return e;
1103
+ },
1104
+ blockSize: 1
1105
+ });
1106
+ var b = w.mode = {}, _ = k.BlockCipherMode = O.extend({
1107
+ /**
1108
+ * Creates this mode for encryption.
1109
+ *
1110
+ * @param {Cipher} cipher A block cipher instance.
1111
+ * @param {Array} iv The IV words.
1112
+ *
1113
+ * @static
1114
+ *
1115
+ * @example
1116
+ *
1117
+ * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
1118
+ */
1119
+ createEncryptor: function(e, o) {
1120
+ return this.Encryptor.create(e, o);
1121
+ },
1122
+ /**
1123
+ * Creates this mode for decryption.
1124
+ *
1125
+ * @param {Cipher} cipher A block cipher instance.
1126
+ * @param {Array} iv The IV words.
1127
+ *
1128
+ * @static
1129
+ *
1130
+ * @example
1131
+ *
1132
+ * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
1133
+ */
1134
+ createDecryptor: function(e, o) {
1135
+ return this.Decryptor.create(e, o);
1136
+ },
1137
+ /**
1138
+ * Initializes a newly created mode.
1139
+ *
1140
+ * @param {Cipher} cipher A block cipher instance.
1141
+ * @param {Array} iv The IV words.
1142
+ *
1143
+ * @example
1144
+ *
1145
+ * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
1146
+ */
1147
+ init: function(e, o) {
1148
+ this._cipher = e, this._iv = o;
1149
+ }
1150
+ }), g = b.CBC = (function() {
1151
+ var e = _.extend();
1152
+ e.Encryptor = e.extend({
1153
+ /**
1154
+ * Processes the data block at offset.
1155
+ *
1156
+ * @param {Array} words The data words to operate on.
1157
+ * @param {number} offset The offset where the block starts.
1158
+ *
1159
+ * @example
1160
+ *
1161
+ * mode.processBlock(data.words, offset);
1162
+ */
1163
+ processBlock: function(h, c) {
1164
+ var z = this._cipher, S = z.blockSize;
1165
+ o.call(this, h, c, S), z.encryptBlock(h, c), this._prevBlock = h.slice(c, c + S);
1166
+ }
1167
+ }), e.Decryptor = e.extend({
1168
+ /**
1169
+ * Processes the data block at offset.
1170
+ *
1171
+ * @param {Array} words The data words to operate on.
1172
+ * @param {number} offset The offset where the block starts.
1173
+ *
1174
+ * @example
1175
+ *
1176
+ * mode.processBlock(data.words, offset);
1177
+ */
1178
+ processBlock: function(h, c) {
1179
+ var z = this._cipher, S = z.blockSize, W = h.slice(c, c + S);
1180
+ z.decryptBlock(h, c), o.call(this, h, c, S), this._prevBlock = W;
1181
+ }
1182
+ });
1183
+ function o(h, c, z) {
1184
+ var S, W = this._iv;
1185
+ W ? (S = W, this._iv = l) : S = this._prevBlock;
1186
+ for (var F = 0; F < z; F++)
1187
+ h[c + F] ^= S[F];
1188
+ }
1189
+ return e;
1190
+ })(), A = w.pad = {}, t = A.Pkcs7 = {
1191
+ /**
1192
+ * Pads data using the algorithm defined in PKCS #5/7.
1193
+ *
1194
+ * @param {WordArray} data The data to pad.
1195
+ * @param {number} blockSize The multiple that the data should be padded to.
1196
+ *
1197
+ * @static
1198
+ *
1199
+ * @example
1200
+ *
1201
+ * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
1202
+ */
1203
+ pad: function(e, o) {
1204
+ for (var h = o * 4, c = h - e.sigBytes % h, z = c << 24 | c << 16 | c << 8 | c, S = [], W = 0; W < c; W += 4)
1205
+ S.push(z);
1206
+ var F = D.create(S, c);
1207
+ e.concat(F);
1208
+ },
1209
+ /**
1210
+ * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
1211
+ *
1212
+ * @param {WordArray} data The data to unpad.
1213
+ *
1214
+ * @static
1215
+ *
1216
+ * @example
1217
+ *
1218
+ * CryptoJS.pad.Pkcs7.unpad(wordArray);
1219
+ */
1220
+ unpad: function(e) {
1221
+ var o = e.words[e.sigBytes - 1 >>> 2] & 255;
1222
+ e.sigBytes -= o;
1223
+ }
1224
+ };
1225
+ k.BlockCipher = x.extend({
1226
+ /**
1227
+ * Configuration options.
1228
+ *
1229
+ * @property {Mode} mode The block mode to use. Default: CBC
1230
+ * @property {Padding} padding The padding strategy to use. Default: Pkcs7
1231
+ */
1232
+ cfg: x.cfg.extend({
1233
+ mode: g,
1234
+ padding: t
1235
+ }),
1236
+ reset: function() {
1237
+ var e;
1238
+ x.reset.call(this);
1239
+ var o = this.cfg, h = o.iv, c = o.mode;
1240
+ this._xformMode == this._ENC_XFORM_MODE ? e = c.createEncryptor : (e = c.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == e ? this._mode.init(this, h && h.words) : (this._mode = e.call(c, this, h && h.words), this._mode.__creator = e);
1241
+ },
1242
+ _doProcessBlock: function(e, o) {
1243
+ this._mode.processBlock(e, o);
1244
+ },
1245
+ _doFinalize: function() {
1246
+ var e, o = this.cfg.padding;
1247
+ return this._xformMode == this._ENC_XFORM_MODE ? (o.pad(this._data, this.blockSize), e = this._process(!0)) : (e = this._process(!0), o.unpad(e)), e;
1248
+ },
1249
+ blockSize: 128 / 32
1250
+ });
1251
+ var r = k.CipherParams = O.extend({
1252
+ /**
1253
+ * Initializes a newly created cipher params object.
1254
+ *
1255
+ * @param {Object} cipherParams An object with any of the possible cipher parameters.
1256
+ *
1257
+ * @example
1258
+ *
1259
+ * var cipherParams = CryptoJS.lib.CipherParams.create({
1260
+ * ciphertext: ciphertextWordArray,
1261
+ * key: keyWordArray,
1262
+ * iv: ivWordArray,
1263
+ * salt: saltWordArray,
1264
+ * algorithm: CryptoJS.algo.AES,
1265
+ * mode: CryptoJS.mode.CBC,
1266
+ * padding: CryptoJS.pad.PKCS7,
1267
+ * blockSize: 4,
1268
+ * formatter: CryptoJS.format.OpenSSL
1269
+ * });
1270
+ */
1271
+ init: function(e) {
1272
+ this.mixIn(e);
1273
+ },
1274
+ /**
1275
+ * Converts this cipher params object to a string.
1276
+ *
1277
+ * @param {Format} formatter (Optional) The formatting strategy to use.
1278
+ *
1279
+ * @return {string} The stringified cipher params.
1280
+ *
1281
+ * @throws Error If neither the formatter nor the default formatter is set.
1282
+ *
1283
+ * @example
1284
+ *
1285
+ * var string = cipherParams + '';
1286
+ * var string = cipherParams.toString();
1287
+ * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
1288
+ */
1289
+ toString: function(e) {
1290
+ return (e || this.formatter).stringify(this);
1291
+ }
1292
+ }), i = w.format = {}, d = i.OpenSSL = {
1293
+ /**
1294
+ * Converts a cipher params object to an OpenSSL-compatible string.
1295
+ *
1296
+ * @param {CipherParams} cipherParams The cipher params object.
1297
+ *
1298
+ * @return {string} The OpenSSL-compatible string.
1299
+ *
1300
+ * @static
1301
+ *
1302
+ * @example
1303
+ *
1304
+ * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
1305
+ */
1306
+ stringify: function(e) {
1307
+ var o, h = e.ciphertext, c = e.salt;
1308
+ return c ? o = D.create([1398893684, 1701076831]).concat(c).concat(h) : o = h, o.toString(C);
1309
+ },
1310
+ /**
1311
+ * Converts an OpenSSL-compatible string to a cipher params object.
1312
+ *
1313
+ * @param {string} openSSLStr The OpenSSL-compatible string.
1314
+ *
1315
+ * @return {CipherParams} The cipher params object.
1316
+ *
1317
+ * @static
1318
+ *
1319
+ * @example
1320
+ *
1321
+ * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
1322
+ */
1323
+ parse: function(e) {
1324
+ var o, h = C.parse(e), c = h.words;
1325
+ return c[0] == 1398893684 && c[1] == 1701076831 && (o = D.create(c.slice(2, 4)), c.splice(0, 4), h.sigBytes -= 16), r.create({ ciphertext: h, salt: o });
1326
+ }
1327
+ }, y = k.SerializableCipher = O.extend({
1328
+ /**
1329
+ * Configuration options.
1330
+ *
1331
+ * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
1332
+ */
1333
+ cfg: O.extend({
1334
+ format: d
1335
+ }),
1336
+ /**
1337
+ * Encrypts a message.
1338
+ *
1339
+ * @param {Cipher} cipher The cipher algorithm to use.
1340
+ * @param {WordArray|string} message The message to encrypt.
1341
+ * @param {WordArray} key The key.
1342
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
1343
+ *
1344
+ * @return {CipherParams} A cipher params object.
1345
+ *
1346
+ * @static
1347
+ *
1348
+ * @example
1349
+ *
1350
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
1351
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
1352
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
1353
+ */
1354
+ encrypt: function(e, o, h, c) {
1355
+ c = this.cfg.extend(c);
1356
+ var z = e.createEncryptor(h, c), S = z.finalize(o), W = z.cfg;
1357
+ return r.create({
1358
+ ciphertext: S,
1359
+ key: h,
1360
+ iv: W.iv,
1361
+ algorithm: e,
1362
+ mode: W.mode,
1363
+ padding: W.padding,
1364
+ blockSize: e.blockSize,
1365
+ formatter: c.format
1366
+ });
1367
+ },
1368
+ /**
1369
+ * Decrypts serialized ciphertext.
1370
+ *
1371
+ * @param {Cipher} cipher The cipher algorithm to use.
1372
+ * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
1373
+ * @param {WordArray} key The key.
1374
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
1375
+ *
1376
+ * @return {WordArray} The plaintext.
1377
+ *
1378
+ * @static
1379
+ *
1380
+ * @example
1381
+ *
1382
+ * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
1383
+ * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
1384
+ */
1385
+ decrypt: function(e, o, h, c) {
1386
+ c = this.cfg.extend(c), o = this._parse(o, c.format);
1387
+ var z = e.createDecryptor(h, c).finalize(o.ciphertext);
1388
+ return z;
1389
+ },
1390
+ /**
1391
+ * Converts serialized ciphertext to CipherParams,
1392
+ * else assumed CipherParams already and returns ciphertext unchanged.
1393
+ *
1394
+ * @param {CipherParams|string} ciphertext The ciphertext.
1395
+ * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
1396
+ *
1397
+ * @return {CipherParams} The unserialized ciphertext.
1398
+ *
1399
+ * @static
1400
+ *
1401
+ * @example
1402
+ *
1403
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
1404
+ */
1405
+ _parse: function(e, o) {
1406
+ return typeof e == "string" ? o.parse(e, this) : e;
1407
+ }
1408
+ }), E = w.kdf = {}, R = E.OpenSSL = {
1409
+ /**
1410
+ * Derives a key and IV from a password.
1411
+ *
1412
+ * @param {string} password The password to derive from.
1413
+ * @param {number} keySize The size in words of the key to generate.
1414
+ * @param {number} ivSize The size in words of the IV to generate.
1415
+ * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
1416
+ *
1417
+ * @return {CipherParams} A cipher params object with the key, IV, and salt.
1418
+ *
1419
+ * @static
1420
+ *
1421
+ * @example
1422
+ *
1423
+ * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
1424
+ * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
1425
+ */
1426
+ execute: function(e, o, h, c, z) {
1427
+ if (c || (c = D.random(64 / 8)), z)
1428
+ var S = p.create({ keySize: o + h, hasher: z }).compute(e, c);
1429
+ else
1430
+ var S = p.create({ keySize: o + h }).compute(e, c);
1431
+ var W = D.create(S.words.slice(o), h * 4);
1432
+ return S.sigBytes = o * 4, r.create({ key: S, iv: W, salt: c });
1433
+ }
1434
+ }, P = k.PasswordBasedCipher = y.extend({
1435
+ /**
1436
+ * Configuration options.
1437
+ *
1438
+ * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
1439
+ */
1440
+ cfg: y.cfg.extend({
1441
+ kdf: R
1442
+ }),
1443
+ /**
1444
+ * Encrypts a message using a password.
1445
+ *
1446
+ * @param {Cipher} cipher The cipher algorithm to use.
1447
+ * @param {WordArray|string} message The message to encrypt.
1448
+ * @param {string} password The password.
1449
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
1450
+ *
1451
+ * @return {CipherParams} A cipher params object.
1452
+ *
1453
+ * @static
1454
+ *
1455
+ * @example
1456
+ *
1457
+ * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
1458
+ * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
1459
+ */
1460
+ encrypt: function(e, o, h, c) {
1461
+ c = this.cfg.extend(c);
1462
+ var z = c.kdf.execute(h, e.keySize, e.ivSize, c.salt, c.hasher);
1463
+ c.iv = z.iv;
1464
+ var S = y.encrypt.call(this, e, o, z.key, c);
1465
+ return S.mixIn(z), S;
1466
+ },
1467
+ /**
1468
+ * Decrypts serialized ciphertext using a password.
1469
+ *
1470
+ * @param {Cipher} cipher The cipher algorithm to use.
1471
+ * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
1472
+ * @param {string} password The password.
1473
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
1474
+ *
1475
+ * @return {WordArray} The plaintext.
1476
+ *
1477
+ * @static
1478
+ *
1479
+ * @example
1480
+ *
1481
+ * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
1482
+ * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
1483
+ */
1484
+ decrypt: function(e, o, h, c) {
1485
+ c = this.cfg.extend(c), o = this._parse(o, c.format);
1486
+ var z = c.kdf.execute(h, e.keySize, e.ivSize, o.salt, c.hasher);
1487
+ c.iv = z.iv;
1488
+ var S = y.decrypt.call(this, e, o, z.key, c);
1489
+ return S;
1490
+ }
1491
+ });
1492
+ })();
1493
+ });
1494
+ })(Z)), Z.exports;
1495
+ }
1496
+ var Ur = L.exports, pr;
1497
+ function Kr() {
1498
+ return pr || (pr = 1, (function(n, q) {
1499
+ (function(m, l, w) {
1500
+ n.exports = l(I(), mr(), Br(), Cr(), ar());
1501
+ })(Ur, function(m) {
1502
+ return (function() {
1503
+ var l = m, w = l.lib, k = w.BlockCipher, O = l.algo, D = [], H = [], a = [], C = [], B = [], p = [], x = [], b = [], _ = [], g = [];
1504
+ (function() {
1505
+ for (var r = [], i = 0; i < 256; i++)
1506
+ i < 128 ? r[i] = i << 1 : r[i] = i << 1 ^ 283;
1507
+ for (var d = 0, y = 0, i = 0; i < 256; i++) {
1508
+ var E = y ^ y << 1 ^ y << 2 ^ y << 3 ^ y << 4;
1509
+ E = E >>> 8 ^ E & 255 ^ 99, D[d] = E, H[E] = d;
1510
+ var R = r[d], P = r[R], e = r[P], o = r[E] * 257 ^ E * 16843008;
1511
+ a[d] = o << 24 | o >>> 8, C[d] = o << 16 | o >>> 16, B[d] = o << 8 | o >>> 24, p[d] = o;
1512
+ var o = e * 16843009 ^ P * 65537 ^ R * 257 ^ d * 16843008;
1513
+ x[E] = o << 24 | o >>> 8, b[E] = o << 16 | o >>> 16, _[E] = o << 8 | o >>> 24, g[E] = o, d ? (d = R ^ r[r[r[e ^ R]]], y ^= r[r[y]]) : d = y = 1;
1514
+ }
1515
+ })();
1516
+ var A = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], t = O.AES = k.extend({
1517
+ _doReset: function() {
1518
+ var r;
1519
+ if (!(this._nRounds && this._keyPriorReset === this._key)) {
1520
+ for (var i = this._keyPriorReset = this._key, d = i.words, y = i.sigBytes / 4, E = this._nRounds = y + 6, R = (E + 1) * 4, P = this._keySchedule = [], e = 0; e < R; e++)
1521
+ e < y ? P[e] = d[e] : (r = P[e - 1], e % y ? y > 6 && e % y == 4 && (r = D[r >>> 24] << 24 | D[r >>> 16 & 255] << 16 | D[r >>> 8 & 255] << 8 | D[r & 255]) : (r = r << 8 | r >>> 24, r = D[r >>> 24] << 24 | D[r >>> 16 & 255] << 16 | D[r >>> 8 & 255] << 8 | D[r & 255], r ^= A[e / y | 0] << 24), P[e] = P[e - y] ^ r);
1522
+ for (var o = this._invKeySchedule = [], h = 0; h < R; h++) {
1523
+ var e = R - h;
1524
+ if (h % 4)
1525
+ var r = P[e];
1526
+ else
1527
+ var r = P[e - 4];
1528
+ h < 4 || e <= 4 ? o[h] = r : o[h] = x[D[r >>> 24]] ^ b[D[r >>> 16 & 255]] ^ _[D[r >>> 8 & 255]] ^ g[D[r & 255]];
1529
+ }
1530
+ }
1531
+ },
1532
+ encryptBlock: function(r, i) {
1533
+ this._doCryptBlock(r, i, this._keySchedule, a, C, B, p, D);
1534
+ },
1535
+ decryptBlock: function(r, i) {
1536
+ var d = r[i + 1];
1537
+ r[i + 1] = r[i + 3], r[i + 3] = d, this._doCryptBlock(r, i, this._invKeySchedule, x, b, _, g, H);
1538
+ var d = r[i + 1];
1539
+ r[i + 1] = r[i + 3], r[i + 3] = d;
1540
+ },
1541
+ _doCryptBlock: function(r, i, d, y, E, R, P, e) {
1542
+ for (var o = this._nRounds, h = r[i] ^ d[0], c = r[i + 1] ^ d[1], z = r[i + 2] ^ d[2], S = r[i + 3] ^ d[3], W = 4, F = 1; F < o; F++) {
1543
+ var $ = y[h >>> 24] ^ E[c >>> 16 & 255] ^ R[z >>> 8 & 255] ^ P[S & 255] ^ d[W++], M = y[c >>> 24] ^ E[z >>> 16 & 255] ^ R[S >>> 8 & 255] ^ P[h & 255] ^ d[W++], U = y[z >>> 24] ^ E[S >>> 16 & 255] ^ R[h >>> 8 & 255] ^ P[c & 255] ^ d[W++], s = y[S >>> 24] ^ E[h >>> 16 & 255] ^ R[c >>> 8 & 255] ^ P[z & 255] ^ d[W++];
1544
+ h = $, c = M, z = U, S = s;
1545
+ }
1546
+ var $ = (e[h >>> 24] << 24 | e[c >>> 16 & 255] << 16 | e[z >>> 8 & 255] << 8 | e[S & 255]) ^ d[W++], M = (e[c >>> 24] << 24 | e[z >>> 16 & 255] << 16 | e[S >>> 8 & 255] << 8 | e[h & 255]) ^ d[W++], U = (e[z >>> 24] << 24 | e[S >>> 16 & 255] << 16 | e[h >>> 8 & 255] << 8 | e[c & 255]) ^ d[W++], s = (e[S >>> 24] << 24 | e[h >>> 16 & 255] << 16 | e[c >>> 8 & 255] << 8 | e[z & 255]) ^ d[W++];
1547
+ r[i] = $, r[i + 1] = M, r[i + 2] = U, r[i + 3] = s;
1548
+ },
1549
+ keySize: 256 / 32
1550
+ });
1551
+ l.AES = k._createHelper(t);
1552
+ })(), m.AES;
1553
+ });
1554
+ })(L)), L.exports;
1555
+ }
1556
+ var me = Kr(), J = { exports: {} }, Lr = J.exports, lr;
1557
+ function Tr() {
1558
+ return lr || (lr = 1, (function(n, q) {
1559
+ (function(m, l) {
1560
+ n.exports = l(I());
1561
+ })(Lr, function(m) {
1562
+ return m.enc.Utf8;
1563
+ });
1564
+ })(J)), J.exports;
1565
+ }
1566
+ var jr = Tr();
1567
+ const Be = /* @__PURE__ */ K(jr);
1568
+ var X = { exports: {} }, Vr = X.exports, hr;
1569
+ function Gr() {
1570
+ return hr || (hr = 1, (function(n, q) {
1571
+ (function(m, l, w) {
1572
+ n.exports = l(I(), ar());
1573
+ })(Vr, function(m) {
1574
+ return m.pad.Pkcs7;
1575
+ });
1576
+ })(X)), X.exports;
1577
+ }
1578
+ var Qr = Gr();
1579
+ const Ce = /* @__PURE__ */ K(Qr);
1580
+ var rr = { exports: {} }, Yr = rr.exports, xr;
1581
+ function Zr() {
1582
+ return xr || (xr = 1, (function(n, q) {
1583
+ (function(m, l, w) {
1584
+ n.exports = l(I(), ar());
1585
+ })(Yr, function(m) {
1586
+ return m.mode.ECB = (function() {
1587
+ var l = m.lib.BlockCipherMode.extend();
1588
+ return l.Encryptor = l.extend({
1589
+ processBlock: function(w, k) {
1590
+ this._cipher.encryptBlock(w, k);
1591
+ }
1592
+ }), l.Decryptor = l.extend({
1593
+ processBlock: function(w, k) {
1594
+ this._cipher.decryptBlock(w, k);
1595
+ }
1596
+ }), l;
1597
+ })(), m.mode.ECB;
1598
+ });
1599
+ })(rr)), rr.exports;
1600
+ }
1601
+ var Jr = Zr();
1602
+ const be = /* @__PURE__ */ K(Jr);
1603
+ var Xr = Br();
1604
+ const Ee = /* @__PURE__ */ K(Xr);
1605
+ var re = mr();
1606
+ const ke = /* @__PURE__ */ K(re);
1607
+ var er = { exports: {} }, ee = er.exports, _r;
1608
+ function te() {
1609
+ return _r || (_r = 1, (function(n, q) {
1610
+ (function(m, l) {
1611
+ n.exports = l(I());
1612
+ })(ee, function(m) {
1613
+ return m.enc.Hex;
1614
+ });
1615
+ })(er)), er.exports;
1616
+ }
1617
+ var ne = te();
1618
+ const we = /* @__PURE__ */ K(ne), ze = (n, q) => (n.install = (m) => {
1619
+ const l = n.name || n.displayName;
1620
+ l && (m.component(l, n), q && (m.config.globalProperties[q] = n));
1621
+ }, n);
1622
+ export {
1623
+ zr as A,
1624
+ ke as B,
1625
+ ye as C,
1626
+ ge as D,
1627
+ be as E,
1628
+ ze as F,
1629
+ we as H,
1630
+ Be as U,
1631
+ me as a,
1632
+ ie as b,
1633
+ N as c,
1634
+ Er as d,
1635
+ jr as e,
1636
+ yr as f,
1637
+ nr as g,
1638
+ se as h,
1639
+ ae as i,
1640
+ ce as j,
1641
+ gr as k,
1642
+ fe as l,
1643
+ Ee as m,
1644
+ ue as n,
1645
+ oe as o,
1646
+ Ce as p,
1647
+ ve as q,
1648
+ de as r,
1649
+ kr as s,
1650
+ ir as t,
1651
+ pe as u,
1652
+ le as v,
1653
+ wr as w,
1654
+ he as x,
1655
+ xe as y,
1656
+ _e as z
1657
+ };