@private.me/xbind 1.3.0 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +2 -2
  2. package/dist-standalone/_deps/crypto/base64.js +183 -170
  3. package/dist-standalone/_deps/crypto/cjs/base64.js +653 -91
  4. package/dist-standalone/_deps/crypto/cjs/errors.js +658 -102
  5. package/dist-standalone/_deps/crypto/cjs/hmac.js +468 -66
  6. package/dist-standalone/_deps/crypto/cjs/index.js +848 -82
  7. package/dist-standalone/_deps/crypto/cjs/package.json +1 -0
  8. package/dist-standalone/_deps/crypto/cjs/padding.js +504 -50
  9. package/dist-standalone/_deps/crypto/cjs/share-header.js +369 -65
  10. package/dist-standalone/_deps/crypto/cjs/shares.js +865 -143
  11. package/dist-standalone/_deps/crypto/cjs/tlv.js +1005 -183
  12. package/dist-standalone/_deps/crypto/cjs/uuid.js +437 -55
  13. package/dist-standalone/_deps/crypto/cjs/verify.js +414 -24
  14. package/dist-standalone/_deps/crypto/cjs/xorida.js +888 -186
  15. package/dist-standalone/_deps/crypto/errors.js +179 -89
  16. package/dist-standalone/_deps/crypto/hmac.js +129 -61
  17. package/dist-standalone/_deps/crypto/index.js +140 -40
  18. package/dist-standalone/_deps/crypto/padding.js +151 -45
  19. package/dist-standalone/_deps/crypto/share-header.js +89 -60
  20. package/dist-standalone/_deps/crypto/shares.js +280 -133
  21. package/dist-standalone/_deps/crypto/tlv.js +348 -179
  22. package/dist-standalone/_deps/crypto/uuid.js +130 -50
  23. package/dist-standalone/_deps/crypto/verify.js +71 -15
  24. package/dist-standalone/_deps/crypto/xorida.js +332 -181
  25. package/dist-standalone/_deps/shared/cjs/errors.js +572 -208
  26. package/dist-standalone/_deps/shared/cjs/index.js +443 -85
  27. package/dist-standalone/_deps/shared/cjs/types.js +284 -57
  28. package/dist-standalone/_deps/shared/errors.js +192 -199
  29. package/dist-standalone/_deps/shared/index.js +48 -51
  30. package/dist-standalone/_deps/shared/types.js +56 -57
  31. package/dist-standalone/_deps/ux-helpers/cjs/errors.js +1 -1
  32. package/dist-standalone/_deps/ux-helpers/cjs/pagination.js +1 -1
  33. package/dist-standalone/_deps/ux-helpers/cjs/progress.js +1 -1
  34. package/dist-standalone/_deps/ux-helpers/cjs/search.js +1 -1
  35. package/dist-standalone/_deps/ux-helpers/errors.js +1 -1
  36. package/dist-standalone/_deps/ux-helpers/pagination.js +1 -1
  37. package/dist-standalone/_deps/ux-helpers/progress.js +1 -1
  38. package/dist-standalone/_deps/ux-helpers/search.js +1 -1
  39. package/dist-standalone/_deps/xchange/auto-accept.js +1 -1
  40. package/dist-standalone/_deps/xchange/cjs/auto-accept.js +1 -1
  41. package/dist-standalone/_deps/xchange/cjs/errors.js +1 -1
  42. package/dist-standalone/_deps/xchange/cjs/index.js +1 -1
  43. package/dist-standalone/_deps/xchange/cjs/invite-client.js +1 -1
  44. package/dist-standalone/_deps/xchange/cjs/lazy-init.js +1 -1
  45. package/dist-standalone/_deps/xchange/cjs/trust-integration.js +1 -1
  46. package/dist-standalone/_deps/xchange/cjs/xchange.js +1 -1
  47. package/dist-standalone/_deps/xchange/errors.js +1 -1
  48. package/dist-standalone/_deps/xchange/index.js +1 -1
  49. package/dist-standalone/_deps/xchange/invite-client.js +1 -1
  50. package/dist-standalone/_deps/xchange/lazy-init.js +1 -1
  51. package/dist-standalone/_deps/xchange/trust-integration.js +1 -1
  52. package/dist-standalone/_deps/xchange/xchange.js +1 -1
  53. package/dist-standalone/_deps/xregistry/cjs/discovery.js +1 -1
  54. package/dist-standalone/_deps/xregistry/cjs/errors.js +1 -1
  55. package/dist-standalone/_deps/xregistry/cjs/index.js +1 -1
  56. package/dist-standalone/_deps/xregistry/cjs/registry.js +1 -1
  57. package/dist-standalone/_deps/xregistry/cjs/schema.js +1 -1
  58. package/dist-standalone/_deps/xregistry/cjs/types.js +1 -1
  59. package/dist-standalone/_deps/xregistry/discovery.js +1 -1
  60. package/dist-standalone/_deps/xregistry/errors.js +1 -1
  61. package/dist-standalone/_deps/xregistry/index.js +1 -1
  62. package/dist-standalone/_deps/xregistry/registry.js +1 -1
  63. package/dist-standalone/_deps/xregistry/schema.js +1 -1
  64. package/dist-standalone/_deps/xregistry/types.js +1 -1
  65. package/dist-standalone/cjs/identity.js +2 -3
  66. package/dist-standalone/identity.js +2 -3
  67. package/package.json +2 -1
  68. package/share1.dat +0 -0
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -1,57 +1,511 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pkcs7Pad = pkcs7Pad;
4
- exports.pkcs7Unpad = pkcs7Unpad;
5
- const shared_1 = require("../../shared/index.js");
6
- /**
7
- * PKCS#7 pad data to a multiple of blockSize bytes.
8
- * Always adds at least 1 byte of padding, even when already aligned.
9
- *
10
- * @param data - Input bytes to pad
11
- * @param blockSize - Block size in bytes (must be 1–255)
12
- * @returns Padded byte array
13
- */
14
- function pkcs7Pad(data, blockSize) {
15
- const padLen = blockSize - (data.length % blockSize);
16
- const padded = new Uint8Array(data.length + padLen);
17
- padded.set(data);
18
- for (let i = data.length; i < padded.length; i++) {
19
- padded[i] = padLen;
1
+ 'use strict';
2
+ const a4_0xa065df = a4_0x2da0;
3
+ (function (_0x24e900, _0x34df1e) {
4
+ const a4_0xaabb04 = {
5
+ _0x34a9b8: 0xff,
6
+ _0x498393: 0x105,
7
+ _0x479d2e: 0xfc,
8
+ _0xd51d79: 0x102,
9
+ _0x500834: 0x125,
10
+ _0x4688ea: 0x120
11
+ }, _0x1c69ed = a4_0x2da0, _0x2f5d34 = _0x24e900();
12
+ while (!![]) {
13
+ try {
14
+ const _0x332bab = -parseInt(_0x1c69ed(a4_0xaabb04._0x34a9b8)) / 0x1 * (-parseInt(_0x1c69ed(a4_0xaabb04._0x498393)) / 0x2) + -parseInt(_0x1c69ed(0x12b)) / 0x3 * (-parseInt(_0x1c69ed(a4_0xaabb04._0x479d2e)) / 0x4) + -parseInt(_0x1c69ed(a4_0xaabb04._0xd51d79)) / 0x5 * (-parseInt(_0x1c69ed(0xf1)) / 0x6) + -parseInt(_0x1c69ed(0x144)) / 0x7 + -parseInt(_0x1c69ed(a4_0xaabb04._0x500834)) / 0x8 * (-parseInt(_0x1c69ed(a4_0xaabb04._0x4688ea)) / 0x9) + parseInt(_0x1c69ed(0xed)) / 0xa + -parseInt(_0x1c69ed(0x13c)) / 0xb * (parseInt(_0x1c69ed(0x107)) / 0xc);
15
+ if (_0x332bab === _0x34df1e)
16
+ break;
17
+ else
18
+ _0x2f5d34['push'](_0x2f5d34['shift']());
19
+ } catch (_0x5c131d) {
20
+ _0x2f5d34['push'](_0x2f5d34['shift']());
21
+ }
22
+ }
23
+ }(a4_0x3cf2, 0x468a0));
24
+ const a5_0xf65d0 = a5_0x31a2;
25
+ (function (_0x4049a6, _0x587775) {
26
+ const a4_0x49e87b = {
27
+ _0x4f2a81: 0x127,
28
+ _0x604b95: 0x108,
29
+ _0x2898c7: 0xf0,
30
+ _0x2eafe8: 0x136,
31
+ _0x6eb655: 0x152,
32
+ _0x202ce5: 0xec,
33
+ _0x5f3f4e: 0x10b,
34
+ _0x3f2d57: 0xef,
35
+ _0x5a6f3e: 0x13e,
36
+ _0x5d6d7b: 0xfa,
37
+ _0x4812d5: 0x13e,
38
+ _0x42f437: 0x135,
39
+ _0x44cabb: 0x117,
40
+ _0x27c024: 0x139,
41
+ _0x419ba6: 0x10a,
42
+ _0x58a1f9: 0x114
43
+ }, _0x111877 = a4_0x2da0, _0x504a50 = {
44
+ 'JIyTB': function (_0x12b21f) {
45
+ return _0x12b21f();
46
+ },
47
+ 'youXw': function (_0x43112b, _0x5ab3e0) {
48
+ return _0x43112b + _0x5ab3e0;
49
+ },
50
+ 'Twtni': function (_0x512560, _0x4ff598) {
51
+ return _0x512560 + _0x4ff598;
52
+ },
53
+ 'JzgMp': function (_0x568741, _0x1db3bd) {
54
+ return _0x568741 / _0x1db3bd;
55
+ },
56
+ 'HJcVY': function (_0x2b9e1b, _0x1e599c) {
57
+ return _0x2b9e1b(_0x1e599c);
58
+ },
59
+ 'ccyKU': function (_0x513ed0, _0x3e71d3) {
60
+ return _0x513ed0 / _0x3e71d3;
61
+ },
62
+ 'wtQPI': function (_0x890eac, _0x28aa71) {
63
+ return _0x890eac(_0x28aa71);
64
+ },
65
+ 'TkBJU': function (_0x390de5, _0x31a92c) {
66
+ return _0x390de5 / _0x31a92c;
67
+ },
68
+ 'KDegz': function (_0x5f44b0, _0x3d4358) {
69
+ return _0x5f44b0 / _0x3d4358;
70
+ },
71
+ 'kTBdJ': function (_0x4b589f, _0x263726) {
72
+ return _0x4b589f(_0x263726);
73
+ },
74
+ 'oKSDA': function (_0x3e4f22, _0x50f20b) {
75
+ return _0x3e4f22 / _0x50f20b;
76
+ },
77
+ 'PpkAb': function (_0x44d395, _0x425a21) {
78
+ return _0x44d395(_0x425a21);
79
+ },
80
+ 'yodLR': function (_0xed0a67, _0x511476) {
81
+ return _0xed0a67(_0x511476);
82
+ },
83
+ 'LSSue': function (_0x5c6417, _0x5766df) {
84
+ return _0x5c6417(_0x5766df);
85
+ },
86
+ 'xJmYg': function (_0xea7b92, _0x1a500b) {
87
+ return _0xea7b92 * _0x1a500b;
88
+ },
89
+ 'pcsWQ': function (_0x5ea06e, _0x1aab60) {
90
+ return _0x5ea06e / _0x1aab60;
91
+ },
92
+ 'zBmCA': 'push',
93
+ 'sOfqO': _0x111877(a4_0x49e87b._0x4f2a81)
94
+ }, _0x21bf61 = {
95
+ '_0x2f9db4': 0xa0,
96
+ '_0x451a8b': 0xa5,
97
+ '_0x45ad0d': 0xa4,
98
+ '_0x3a4660': 0xaa
99
+ }, _0x367b93 = a5_0x31a2, _0x9c99ab = _0x504a50[_0x111877(a4_0x49e87b._0x604b95)](_0x4049a6);
100
+ while (!![]) {
101
+ try {
102
+ const _0x3e07f1 = _0x504a50[_0x111877(0xf0)](_0x504a50[_0x111877(0xf0)](_0x504a50[_0x111877(0xf0)](_0x504a50[_0x111877(a4_0x49e87b._0x2898c7)](_0x504a50[_0x111877(0x11c)](_0x504a50[_0x111877(a4_0x49e87b._0x2eafe8)](parseInt(_0x504a50[_0x111877(0x13e)](_0x367b93, 0x96)), 0x1), _0x504a50['ccyKU'](parseInt(_0x504a50['wtQPI'](_0x367b93, 0xab)), 0x2) * _0x504a50[_0x111877(a4_0x49e87b._0x6eb655)](parseInt(_0x367b93(_0x21bf61[_0x111877(a4_0x49e87b._0x202ce5)])), 0x3)), _0x504a50[_0x111877(a4_0x49e87b._0x5f3f4e)](-_0x504a50[_0x111877(a4_0x49e87b._0x3f2d57)](parseInt, _0x367b93(0x98)), 0x4) * _0x504a50[_0x111877(0x13b)](parseInt(_0x367b93(0x9a)), 0x5)), -_0x504a50['wtQPI'](parseInt, _0x367b93(0xaf)) / 0x6 * (-parseInt(_0x504a50[_0x111877(0x12e)](_0x367b93, 0xa3)) / 0x7)) + -_0x504a50[_0x111877(a4_0x49e87b._0x5a6f3e)](parseInt, _0x367b93(0xa6)) / 0x8 * (-parseInt(_0x504a50['yodLR'](_0x367b93, 0x9c)) / 0x9), _0x504a50['JzgMp'](parseInt(_0x504a50[_0x111877(a4_0x49e87b._0x5d6d7b)](_0x367b93, 0x95)), 0xa) * (_0x504a50[_0x111877(a4_0x49e87b._0x4812d5)](parseInt, _0x367b93(_0x21bf61['_0x451a8b'])) / 0xb)), _0x504a50[_0x111877(a4_0x49e87b._0x42f437)](_0x504a50[_0x111877(a4_0x49e87b._0x44cabb)](-parseInt(_0x504a50[_0x111877(a4_0x49e87b._0x27c024)](_0x367b93, _0x21bf61[_0x111877(a4_0x49e87b._0x419ba6)])), 0xc), _0x504a50[_0x111877(0xef)](parseInt, _0x504a50[_0x111877(0xfa)](_0x367b93, _0x21bf61[_0x111877(0x141)])) / 0xd));
103
+ if (_0x3e07f1 === _0x587775)
104
+ break;
105
+ else
106
+ _0x9c99ab[_0x504a50[_0x111877(a4_0x49e87b._0x58a1f9)]](_0x9c99ab[_0x504a50['sOfqO']]());
107
+ } catch (_0x41bdfe) {
108
+ _0x9c99ab[_0x111877(0x149)](_0x9c99ab[_0x111877(a4_0x49e87b._0x4f2a81)]());
109
+ }
110
+ }
111
+ }(a5_0x25a1, 0xa8c14));
112
+ function a5_0x31a2(_0x352399, _0x4d210a) {
113
+ const a4_0x26a8ea = {
114
+ _0x240dd6: 0x11a,
115
+ _0x39d870: 0x113,
116
+ _0x1ad899: 0x133,
117
+ _0x3e13d6: 0x115,
118
+ _0x3920ac: 0x12f
119
+ }, a4_0x417eb = {
120
+ _0x28abb4: 0xf3,
121
+ _0x6cd1ad: 0x100,
122
+ _0x27e36e: 0x146,
123
+ _0x307abe: 0xf6,
124
+ _0x5f1bab: 0x109,
125
+ _0x50f56d: 0x12a
126
+ }, _0x5b978f = a4_0x2da0, _0xbea6f4 = {
127
+ 'Xqjbw': _0x5b978f(a4_0x26a8ea._0x240dd6),
128
+ 'XDiPG': function (_0x513e1e, _0x3033fc) {
129
+ return _0x513e1e % _0x3033fc;
130
+ },
131
+ 'epmHE': function (_0x4c53e8, _0x383a7f) {
132
+ return _0x4c53e8 & _0x383a7f;
133
+ },
134
+ 'PFivj': function (_0x2110a3, _0x5f1da7) {
135
+ return _0x2110a3 * _0x5f1da7;
136
+ },
137
+ 'mdtdF': _0x5b978f(0x11b),
138
+ 'xCmGT': _0x5b978f(a4_0x26a8ea._0x39d870),
139
+ 'NAfbX': _0x5b978f(0xf4),
140
+ 'sQIfq': function (_0x48c47c, _0x414e1b) {
141
+ return _0x48c47c + _0x414e1b;
142
+ },
143
+ 'KrdNM': _0x5b978f(a4_0x26a8ea._0x1ad899)
144
+ };
145
+ _0x352399 = _0x352399 - 0x94;
146
+ const _0x370235 = a5_0x25a1();
147
+ let _0x112432 = _0x370235[_0x352399];
148
+ if (a5_0x31a2[_0xbea6f4[_0x5b978f(a4_0x26a8ea._0x3e13d6)]] === undefined) {
149
+ var _0x45d738 = function (_0x1d39de) {
150
+ const _0xdfb4b9 = a4_0x2da0, _0xceb810 = _0xbea6f4[_0xdfb4b9(a4_0x417eb._0x28abb4)];
151
+ let _0x41a4c4 = '', _0x18bee0 = '';
152
+ for (let _0x26a9d5 = 0x0, _0x1bd6dc, _0x4ba087, _0x51168e = 0x0; _0x4ba087 = _0x1d39de[_0xdfb4b9(a4_0x417eb._0x6cd1ad)](_0x51168e++); ~_0x4ba087 && (_0x1bd6dc = _0xbea6f4[_0xdfb4b9(0xf9)](_0x26a9d5, 0x4) ? _0x1bd6dc * 0x40 + _0x4ba087 : _0x4ba087, _0xbea6f4['XDiPG'](_0x26a9d5++, 0x4)) ? _0x41a4c4 += String[_0xdfb4b9(a4_0x417eb._0x27e36e)](_0xbea6f4[_0xdfb4b9(0x137)](0xff, _0x1bd6dc >> (_0xbea6f4['PFivj'](-0x2, _0x26a9d5) & 0x6))) : 0x0) {
153
+ _0x4ba087 = _0xceb810[_0xbea6f4[_0xdfb4b9(0x121)]](_0x4ba087);
154
+ }
155
+ for (let _0x3caa88 = 0x0, _0x374a32 = _0x41a4c4[_0xbea6f4[_0xdfb4b9(a4_0x417eb._0x307abe)]]; _0x3caa88 < _0x374a32; _0x3caa88++) {
156
+ _0x18bee0 += '%' + ('00' + _0x41a4c4['charCodeAt'](_0x3caa88)[_0xdfb4b9(a4_0x417eb._0x5f1bab)](0x10))[_0xdfb4b9(a4_0x417eb._0x50f56d)](-0x2);
157
+ }
158
+ return decodeURIComponent(_0x18bee0);
159
+ };
160
+ a5_0x31a2[_0x5b978f(0x12f)] = _0x45d738, a5_0x31a2['rSRcFW'] = {}, a5_0x31a2[_0xbea6f4[_0x5b978f(0x115)]] = !![];
20
161
  }
21
- return padded;
162
+ const _0xeff763 = _0x370235[0x0], _0x1cb816 = _0xbea6f4['sQIfq'](_0x352399, _0xeff763), _0x57b5fc = a5_0x31a2[_0xbea6f4[_0x5b978f(0x13f)]][_0x1cb816];
163
+ return !_0x57b5fc ? (_0x112432 = a5_0x31a2[_0x5b978f(a4_0x26a8ea._0x3920ac)](_0x112432), a5_0x31a2[_0x5b978f(a4_0x26a8ea._0x1ad899)][_0x1cb816] = _0x112432) : _0x112432 = _0x57b5fc, _0x112432;
22
164
  }
23
- /**
24
- * Remove PKCS#7 padding. Validates that padding bytes are consistent.
25
- * Returns an error if padding is invalid (possible tampering).
26
- *
27
- * @param data - Padded byte array
28
- * @param blockSize - Block size used during padding (must be 1–255)
29
- * @returns Unpadded bytes, or PaddingError if invalid
30
- */
31
- function pkcs7Unpad(data, blockSize) {
32
- if (data.length === 0) {
33
- return (0, shared_1.err)({ code: 'INVALID_PADDING', message: 'Input is empty' });
165
+ Object[a4_0xa065df(0x148)](exports, a5_0xf65d0(0x9e), { 'value': !![] }), exports[a5_0xf65d0(0xac)] = pkcs7Pad, exports[a5_0xf65d0(0xa8)] = pkcs7Unpad;
166
+ const shared_1 = require(a4_0xa065df(0x10c));
167
+ function a5_0x25a1() {
168
+ const a4_0x22ba1c = {
169
+ _0x2ef169: 0x123,
170
+ _0x408357: 0x154,
171
+ _0x30ce31: 0x119,
172
+ _0x2fb4e3: 0x143,
173
+ _0xa12479: 0x106,
174
+ _0x286642: 0xfe,
175
+ _0x3641f3: 0x153,
176
+ _0x7b9f22: 0x134,
177
+ _0x4f8153: 0x128,
178
+ _0x230982: 0xeb,
179
+ _0x59131c: 0x156,
180
+ _0x91aa40: 0x124,
181
+ _0x5d438e: 0xf5,
182
+ _0x437d95: 0xfb,
183
+ _0x56e102: 0x131,
184
+ _0x12cedc: 0x116,
185
+ _0x1d6693: 0x104,
186
+ _0x22a767: 0x10f,
187
+ _0x190f15: 0x13a
188
+ }, _0x12e14b = a4_0x2da0, _0x44db72 = {
189
+ 'FFgrd': _0x12e14b(0x103),
190
+ 'bJYKT': _0x12e14b(a4_0x22ba1c._0x2ef169),
191
+ 'hDiPC': _0x12e14b(a4_0x22ba1c._0x408357),
192
+ 'OHNer': _0x12e14b(a4_0x22ba1c._0x30ce31),
193
+ 'CMctX': _0x12e14b(a4_0x22ba1c._0x2fb4e3),
194
+ 'NzPCR': 'CgLttgK',
195
+ 'yyBqb': _0x12e14b(a4_0x22ba1c._0xa12479),
196
+ 'KCwHS': _0x12e14b(a4_0x22ba1c._0x286642),
197
+ 'Uifvg': 'C2XPy2u',
198
+ 'vMTTQ': _0x12e14b(0x14e),
199
+ 'LepBr': _0x12e14b(a4_0x22ba1c._0x3641f3),
200
+ 'SIFOQ': function (_0xad30e5) {
201
+ return _0xad30e5();
202
+ }
203
+ }, _0x16af43 = [
204
+ _0x44db72[_0x12e14b(a4_0x22ba1c._0x7b9f22)],
205
+ _0x12e14b(a4_0x22ba1c._0x4f8153),
206
+ _0x12e14b(a4_0x22ba1c._0x230982),
207
+ _0x12e14b(a4_0x22ba1c._0x59131c),
208
+ _0x44db72[_0x12e14b(a4_0x22ba1c._0x91aa40)],
209
+ _0x12e14b(a4_0x22ba1c._0x5d438e),
210
+ 'mJy0otbpvNzsrKq',
211
+ _0x44db72['hDiPC'],
212
+ _0x12e14b(a4_0x22ba1c._0x437d95),
213
+ _0x44db72[_0x12e14b(0x110)],
214
+ 'B0jMrge',
215
+ _0x44db72[_0x12e14b(0x12c)],
216
+ _0x44db72[_0x12e14b(0xf8)],
217
+ _0x44db72[_0x12e14b(a4_0x22ba1c._0x56e102)],
218
+ _0x44db72[_0x12e14b(a4_0x22ba1c._0x12cedc)],
219
+ 'mJKZnZG2mwLXugTuta',
220
+ _0x12e14b(a4_0x22ba1c._0x1d6693),
221
+ 'x19LC01VzhvSzq',
222
+ _0x12e14b(a4_0x22ba1c._0x22a767),
223
+ 'm2n4Bu5Ova',
224
+ _0x44db72['Uifvg'],
225
+ _0x12e14b(0x142),
226
+ 'ndy5wwPKsvHx',
227
+ _0x44db72[_0x12e14b(a4_0x22ba1c._0x190f15)],
228
+ _0x44db72[_0x12e14b(0x118)],
229
+ _0x12e14b(0x126),
230
+ 'su5wquXjrf9qquresu5h',
231
+ 'CgTJCZDvBNbHza'
232
+ ];
233
+ return a5_0x25a1 = function () {
234
+ return _0x16af43;
235
+ }, _0x44db72['SIFOQ'](a5_0x25a1);
236
+ }
237
+ function a4_0x3cf2() {
238
+ const _0x5f5862 = [
239
+ 'A1rczeO',
240
+ 'Ew91whC',
241
+ 'mtaWntbjBuj3tg4',
242
+ 'xZb4m2e4mgnM',
243
+ 'whfQyNC',
244
+ 'B1LSC2Ty',
245
+ 'CNHiCuj2rW',
246
+ 'EenTr1q',
247
+ 'EundBwO',
248
+ 'tNPqq1i',
249
+ 'werPueC',
250
+ 'tfntDwu',
251
+ 'BxrIy3OWmw53zw0',
252
+ 'ne5lq1zcsW',
253
+ 'zxjY',
254
+ 'ENHQwq',
255
+ 'mKnbBKz0ua',
256
+ 'y2HHCKf0',
257
+ 'xZb4mtbInMm0',
258
+ 'mty1nwXRqK9hzW',
259
+ 'qZj2ma',
260
+ 'Dhu1s3jNAq',
261
+ 'nZK0mdzAthHdu0S',
262
+ 'BMrTmg5ABtrUDKH5qtaXwxPX',
263
+ 'odrVEgP1Afm',
264
+ 'sKL5vei',
265
+ 'Dg9tDhjPBMC',
266
+ 'xZb4ndvHzdbK',
267
+ 's0rLz3O',
268
+ 'qhbYAxzHDguUBwuVC2HHCMvK',
269
+ 'wLvjzuO',
270
+ 'DxfNAM4',
271
+ 'qMD2vxOZCK8',
272
+ 't0Hozxi',
273
+ 'ufj6zxe',
274
+ 'sLPhrhq',
275
+ 'BgvUz3rO',
276
+ 'EKjTq0e',
277
+ 'tKfMyLG',
278
+ 's0n3sfm',
279
+ 'CgnZv1e',
280
+ 'tgvWqNi',
281
+ 'BLPPmw1kEtr5mgziqtnQDq',
282
+ 'ywjJzgvMz2HPAMTSBw5VChfYC3r1DND4ExPbqKneruzhseLks0XntK9quvjtvfvwv1HzwJaXmJm0nty3odKRlZ0',
283
+ 'Aw5KzxHpzG',
284
+ 'vhD0BMK',
285
+ 'q1rhD28',
286
+ 'su5wquXjrf9qquresu5h',
287
+ 'xZb4mMq4zJvJ',
288
+ 'mZa2zfzuzw1n',
289
+ 'Bwr0zey',
290
+ 'xZb4nda2oteW',
291
+ 'C3C1v0r4CuDcz3zvEJnYt2LNtfPPzZvwrgnIsgLNmtfcAhjqq2DytgLNou1Pz2PtqJjUuMLOBLbftxu',
292
+ 'yKPzs1q',
293
+ 'mJK0mZjpuMP1uKS',
294
+ 'Bxr6uurLovD3s0m',
295
+ 'C2HPzNq',
296
+ 'BxrUD3nLow1dmg0',
297
+ 'wvbHrvm',
298
+ 'C2XPy2u',
299
+ 'mtCYnJe3m0TYugDXDq',
300
+ 'q01JDfG',
301
+ 'y3fJvw8',
302
+ 'uhbRqwi',
303
+ 'B1LZswj4',
304
+ 'yLPJshK',
305
+ 'ExLcCwi',
306
+ 'xZb4odzMywy3',
307
+ 'CLnsy0zx',
308
+ 'rKzNCMq',
309
+ 'EePTwwC',
310
+ 'sNPNtxa',
311
+ 'zxbTseu',
312
+ 'BLfXDwS',
313
+ 'Ew9Ktfi',
314
+ 'DK1uvfe',
315
+ 'B0Ttree',
316
+ 'mtCZndm1ou5WquLfyW',
317
+ 'xZb4mwq1yJjJ',
318
+ 'sePJvLK',
319
+ 's3jKtK0',
320
+ 'wNLtBMe',
321
+ 'xZb4m2e0nJyW',
322
+ 'rxvuwhiYvW',
323
+ 'BMzIChPntfPeyq',
324
+ 'mZq1nZq5nLnerun1DW',
325
+ 'CwnXBgG',
326
+ 'zNjVBunOyxjdB2rL',
327
+ 'xZb4nde3zMyX',
328
+ 'zgvMAw5LuhjVCgvYDhK',
329
+ 'ChvZAa',
330
+ 'DvviwhG',
331
+ 'xZb4mJu3zdmW',
332
+ 'tNHMA1a',
333
+ 'rgjxEgW',
334
+ 'BuPXww1KrZvTzeGWD2H6zxyWDq',
335
+ 'suDPqwC',
336
+ 'sw52ywXPzcbWywrKAw5NihzHBhvLoIa',
337
+ 'xZb4ndDImMe4',
338
+ 'vgTcsLu',
339
+ 'BxrTng1ArZbVzhjPru1eB3L1ma',
340
+ 'D3zIshj2Bq',
341
+ 'A3jfCMK',
342
+ 'q2DusKnArhf5D3e',
343
+ 'BxrPnw1kAtjTs3zOEK5IvurH',
344
+ 'xZb4mMy5zgi0',
345
+ 'ntuYmJmXmejqrw9WsG',
346
+ 'BuLRBgi'
347
+ ];
348
+ a4_0x3cf2 = function () {
349
+ return _0x5f5862;
350
+ };
351
+ return a4_0x3cf2();
352
+ }
353
+ function a4_0x2da0(_0x37e424, _0x1863ba) {
354
+ _0x37e424 = _0x37e424 - 0xeb;
355
+ const _0x3cf2c0 = a4_0x3cf2();
356
+ let _0x2da059 = _0x3cf2c0[_0x37e424];
357
+ if (a4_0x2da0['aRpzsX'] === undefined) {
358
+ var _0x53bde4 = function (_0x4ae180) {
359
+ const _0x10d0db = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
360
+ let _0x4c95a9 = '', _0x2d7414 = '';
361
+ for (let _0x200133 = 0x0, _0x3436ca, _0x1f0b82, _0x250200 = 0x0; _0x1f0b82 = _0x4ae180['charAt'](_0x250200++); ~_0x1f0b82 && (_0x3436ca = _0x200133 % 0x4 ? _0x3436ca * 0x40 + _0x1f0b82 : _0x1f0b82, _0x200133++ % 0x4) ? _0x4c95a9 += String['fromCharCode'](0xff & _0x3436ca >> (-0x2 * _0x200133 & 0x6)) : 0x0) {
362
+ _0x1f0b82 = _0x10d0db['indexOf'](_0x1f0b82);
363
+ }
364
+ for (let _0xc19baa = 0x0, _0x373faf = _0x4c95a9['length']; _0xc19baa < _0x373faf; _0xc19baa++) {
365
+ _0x2d7414 += '%' + ('00' + _0x4c95a9['charCodeAt'](_0xc19baa)['toString'](0x10))['slice'](-0x2);
366
+ }
367
+ return decodeURIComponent(_0x2d7414);
368
+ };
369
+ a4_0x2da0['DZgFEM'] = _0x53bde4, a4_0x2da0['NqfQIf'] = {}, a4_0x2da0['aRpzsX'] = !![];
34
370
  }
35
- if (data.length % blockSize !== 0) {
36
- return (0, shared_1.err)({
37
- code: 'INVALID_PADDING',
38
- message: 'Input length is not a multiple of block size',
39
- });
371
+ const _0x1e4197 = _0x3cf2c0[0x0], _0xf4e83 = _0x37e424 + _0x1e4197, _0x33eeef = a4_0x2da0['NqfQIf'][_0xf4e83];
372
+ return !_0x33eeef ? (_0x2da059 = a4_0x2da0['DZgFEM'](_0x2da059), a4_0x2da0['NqfQIf'][_0xf4e83] = _0x2da059) : _0x2da059 = _0x33eeef, _0x2da059;
373
+ }
374
+ function pkcs7Pad(_0x58dc08, _0x2861c4) {
375
+ const a4_0x21143c = {
376
+ _0x2f3d89: 0x111,
377
+ _0x4267aa: 0x151,
378
+ _0x26bb4d: 0x113
379
+ }, _0x2ab426 = a4_0x2da0, _0x162a18 = {
380
+ 'PtnSK': function (_0x12a7de, _0x2e6c64) {
381
+ return _0x12a7de + _0x2e6c64;
382
+ },
383
+ 'PRzeq': function (_0x3c8e1a, _0x34a192) {
384
+ return _0x3c8e1a(_0x34a192);
385
+ },
386
+ 'bZcHy': function (_0x43c6fc, _0x45e7a0) {
387
+ return _0x43c6fc < _0x45e7a0;
388
+ }
389
+ }, _0x1abfb6 = {
390
+ '_0x10b6c4': 0x99,
391
+ '_0x406910': 0x9f,
392
+ '_0x47b2a8': 0xa9
393
+ }, _0x3869e6 = a5_0x31a2, _0x30b1af = {
394
+ 'piSLi': function (_0x2bf744, _0x5e7762) {
395
+ return _0x2bf744 % _0x5e7762;
396
+ },
397
+ 'yCCmj': function (_0x73eb18, _0x118806) {
398
+ return _0x162a18['PtnSK'](_0x73eb18, _0x118806);
399
+ }
400
+ }, _0x421f4d = _0x2861c4 - _0x30b1af[_0x162a18[_0x2ab426(a4_0x21143c._0x2f3d89)](_0x3869e6, _0x1abfb6[_0x2ab426(0x101)])](_0x58dc08[_0x3869e6(0x9f)], _0x2861c4), _0x5ba8d4 = new Uint8Array(_0x30b1af[_0x2ab426(0xf7)](_0x58dc08[_0x162a18[_0x2ab426(a4_0x21143c._0x2f3d89)](_0x3869e6, _0x1abfb6[_0x2ab426(0x122)])], _0x421f4d));
401
+ _0x5ba8d4[_0x3869e6(_0x1abfb6[_0x2ab426(a4_0x21143c._0x4267aa)])](_0x58dc08);
402
+ for (let _0x1c909b = _0x58dc08[_0x162a18[_0x2ab426(0x111)](_0x3869e6, 0x9f)]; _0x162a18[_0x2ab426(0x130)](_0x1c909b, _0x5ba8d4[_0x2ab426(a4_0x21143c._0x26bb4d)]); _0x1c909b++) {
403
+ _0x5ba8d4[_0x1c909b] = _0x421f4d;
40
404
  }
41
- const padLen = data[data.length - 1];
42
- if (padLen === undefined || padLen < 1 || padLen > blockSize) {
43
- return (0, shared_1.err)({
44
- code: 'INVALID_PADDING',
45
- message: `Invalid padding value: ${padLen}`,
405
+ return _0x5ba8d4;
406
+ }
407
+ function pkcs7Unpad(_0x42ac8e, _0x540596) {
408
+ const a4_0x4c2e4c = {
409
+ _0x2675ba: 0xfd,
410
+ _0x42fb8f: 0x14d,
411
+ _0xdc6369: 0x145,
412
+ _0x2a75f0: 0x155,
413
+ _0x557ae3: 0x14d,
414
+ _0x373daa: 0x14d,
415
+ _0x4183ff: 0x138,
416
+ _0x3ba840: 0x14f,
417
+ _0x23f35b: 0xf2,
418
+ _0x76d0ce: 0x113
419
+ }, a4_0x558575 = { _0x485803: 0x140 }, a4_0x36e1a0 = { _0x1404f6: 0x10d }, _0x59697f = a4_0x2da0, _0x1cd694 = {
420
+ 'jcMIm': function (_0x3957bd, _0x34d758) {
421
+ return _0x3957bd !== _0x34d758;
422
+ },
423
+ 'ZUIeJ': function (_0x5a79f4, _0x157043) {
424
+ return _0x5a79f4 === _0x157043;
425
+ },
426
+ 'NxfkP': function (_0x2dff06, _0x1dc155) {
427
+ return _0x2dff06 < _0x1dc155;
428
+ },
429
+ 'ZySna': function (_0x3a0bc0, _0x4c17ac) {
430
+ return _0x3a0bc0 > _0x4c17ac;
431
+ },
432
+ 'uUHXx': function (_0x57db56, _0x144b8e) {
433
+ return _0x57db56 === _0x144b8e;
434
+ },
435
+ 'DbWxl': function (_0x28ca0e, _0x2d373a) {
436
+ return _0x28ca0e(_0x2d373a);
437
+ },
438
+ 'cqcUo': 'Input\x20is\x20empty',
439
+ 'qcqlh': _0x59697f(a4_0x4c2e4c._0x2675ba),
440
+ 'krEri': function (_0x4a30c2, _0x4f02e5) {
441
+ return _0x4a30c2(_0x4f02e5);
442
+ },
443
+ 'Qcqvk': function (_0x23b80b, _0x51ea3f) {
444
+ return _0x23b80b(_0x51ea3f);
445
+ },
446
+ 'uqgjn': function (_0x474919, _0x8e9b75) {
447
+ return _0x474919 - _0x8e9b75;
448
+ },
449
+ 'nQquk': 'length',
450
+ 'mIklb': function (_0x4b855c, _0x3b22fe) {
451
+ return _0x4b855c(_0x3b22fe);
452
+ },
453
+ 'JZGDt': function (_0x3bd799, _0x47fb46) {
454
+ return _0x3bd799(_0x47fb46);
455
+ },
456
+ 'CTGwo': function (_0x38aca8, _0xe6db63) {
457
+ return _0x38aca8(_0xe6db63);
458
+ }
459
+ }, _0x38e73 = {
460
+ '_0x368739': 0x9b,
461
+ '_0x86faf7': 0xa7,
462
+ '_0x36ae85': 0x97,
463
+ '_0x1d5b2c': 0x9d,
464
+ '_0x2d8f5c': 0xae,
465
+ '_0x417ff1': 0x94,
466
+ '_0x3a80cf': 0xa2,
467
+ '_0x257d30': 0xa1
468
+ }, _0x2e9072 = a5_0x31a2, _0x38614a = {
469
+ 'YPaES': function (_0x57dab3, _0x51f71c) {
470
+ return _0x1cd694['jcMIm'](_0x57dab3, _0x51f71c);
471
+ },
472
+ 'oBfDa': function (_0x562229, _0x18df8d) {
473
+ const _0x18680e = a4_0x2da0;
474
+ return _0x1cd694[_0x18680e(a4_0x36e1a0._0x1404f6)](_0x562229, _0x18df8d);
475
+ },
476
+ 'MNdDb': function (_0x2bf857, _0x556e52) {
477
+ const _0x474fd7 = a4_0x2da0;
478
+ return _0x1cd694[_0x474fd7(0x14c)](_0x2bf857, _0x556e52);
479
+ },
480
+ 'ExPmX': function (_0x566eae, _0x347581) {
481
+ const _0x3d82c3 = a4_0x2da0;
482
+ return _0x1cd694[_0x3d82c3(a4_0x558575._0x485803)](_0x566eae, _0x347581);
483
+ },
484
+ 'IGiAg': _0x59697f(0x11e),
485
+ 'yKqGl': 'Inconsistent\x20padding\x20bytes'
486
+ };
487
+ if (_0x1cd694[_0x59697f(0x14a)](_0x42ac8e[_0x2e9072(0x9f)], 0x0))
488
+ return (0x0, shared_1[_0x1cd694[_0x59697f(0x14d)](_0x2e9072, _0x38e73['_0x368739'])])({
489
+ 'code': _0x1cd694[_0x59697f(a4_0x4c2e4c._0x42fb8f)](_0x2e9072, _0x38e73[_0x59697f(0x132)]),
490
+ 'message': _0x1cd694[_0x59697f(0x12d)]
46
491
  });
47
- }
48
- for (let i = data.length - padLen; i < data.length; i++) {
49
- if (data[i] !== padLen) {
50
- return (0, shared_1.err)({
51
- code: 'INVALID_PADDING',
52
- message: 'Inconsistent padding bytes',
492
+ if (_0x38614a[_0x59697f(0x129)](_0x42ac8e[_0x2e9072(0x9f)] % _0x540596, 0x0))
493
+ return (0x0, shared_1[_0x1cd694[_0x59697f(a4_0x4c2e4c._0xdc6369)]])({
494
+ 'code': _0x2e9072(0xa7),
495
+ 'message': _0x1cd694[_0x59697f(a4_0x4c2e4c._0x2a75f0)](_0x2e9072, 0xad)
496
+ });
497
+ const _0x23822c = _0x42ac8e[_0x42ac8e[_0x59697f(0x113)] - 0x1];
498
+ if (_0x38614a[_0x2e9072(_0x38e73['_0x36ae85'])](_0x23822c, undefined) || _0x38614a[_0x1cd694[_0x59697f(a4_0x4c2e4c._0x42fb8f)](_0x2e9072, _0x38e73[_0x59697f(0x13d)])](_0x23822c, 0x1) || _0x38614a[_0x1cd694['Qcqvk'](_0x2e9072, _0x38e73[_0x59697f(0x11f)])](_0x23822c, _0x540596))
499
+ return (0x0, shared_1[_0x1cd694[_0x59697f(0x145)]])({
500
+ 'code': _0x1cd694[_0x59697f(a4_0x4c2e4c._0x557ae3)](_0x2e9072, 0xa7),
501
+ 'message': _0x59697f(0x150) + _0x23822c
502
+ });
503
+ for (let _0xe27ed0 = _0x1cd694[_0x59697f(0x10e)](_0x42ac8e[_0x1cd694[_0x59697f(a4_0x4c2e4c._0x373daa)](_0x2e9072, 0x9f)], _0x23822c); _0xe27ed0 < _0x42ac8e[_0x1cd694[_0x59697f(a4_0x4c2e4c._0x4183ff)]]; _0xe27ed0++) {
504
+ if (_0x38614a[_0x1cd694[_0x59697f(0xee)](_0x2e9072, _0x38e73[_0x59697f(0x147)])](_0x42ac8e[_0xe27ed0], _0x23822c))
505
+ return (0x0, shared_1[_0x1cd694[_0x59697f(0x112)](_0x2e9072, 0x9b)])({
506
+ 'code': _0x38614a[_0x59697f(a4_0x4c2e4c._0x3ba840)],
507
+ 'message': _0x38614a[_0x2e9072(_0x38e73[_0x59697f(a4_0x4c2e4c._0x23f35b)])]
53
508
  });
54
- }
55
509
  }
56
- return (0, shared_1.ok)(data.slice(0, data.length - padLen));
57
- }
510
+ return (0x0, shared_1['ok'])(_0x42ac8e[_0x1cd694[_0x59697f(0x11d)](_0x2e9072, _0x38e73[_0x59697f(0x14b)])](0x0, _0x1cd694['uqgjn'](_0x42ac8e[_0x59697f(a4_0x4c2e4c._0x76d0ce)], _0x23822c)));
511
+ }