apacuana-sdk-core 0.6.0 → 0.7.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.
- package/README.md +105 -250
- package/babel.config.cjs +11 -0
- package/coverage/clover.xml +189 -195
- package/coverage/coverage-final.json +8 -8
- package/coverage/lcov-report/api/index.html +131 -0
- package/coverage/lcov-report/api/signatures.js.html +1093 -0
- package/coverage/lcov-report/api/users.js.html +292 -0
- package/coverage/lcov-report/config/index.html +116 -0
- package/coverage/lcov-report/config/index.js.html +208 -0
- package/coverage/lcov-report/errors/index.html +116 -0
- package/coverage/lcov-report/errors/index.js.html +148 -0
- package/coverage/lcov-report/index.html +41 -41
- package/coverage/lcov-report/src/api/certs.js.html +55 -34
- package/coverage/lcov-report/src/api/index.html +25 -25
- package/coverage/lcov-report/src/api/revocations.js.html +135 -30
- package/coverage/lcov-report/src/api/signatures.js.html +76 -4
- package/coverage/lcov-report/src/api/users.js.html +1 -1
- package/coverage/lcov-report/src/config/index.html +13 -13
- package/coverage/lcov-report/src/config/index.js.html +69 -18
- package/coverage/lcov-report/src/errors/index.html +1 -1
- package/coverage/lcov-report/src/errors/index.js.html +8 -8
- package/coverage/lcov-report/src/index.html +15 -15
- package/coverage/lcov-report/src/index.js.html +14 -68
- package/coverage/lcov-report/src/utils/constant.js.html +1 -1
- package/coverage/lcov-report/src/utils/helpers.js.html +18 -51
- package/coverage/lcov-report/src/utils/httpClient.js.html +6 -72
- package/coverage/lcov-report/src/utils/index.html +19 -19
- package/coverage/lcov-report/utils/constant.js.html +145 -0
- package/coverage/lcov-report/utils/httpClient.js.html +646 -0
- package/coverage/lcov-report/utils/index.html +131 -0
- package/coverage/lcov.info +334 -337
- package/dist/api/certs.d.ts +11 -1
- package/dist/api/revocations.d.ts +32 -12
- package/dist/api/signatures.d.ts +37 -5
- package/dist/config/index.d.ts +13 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +436 -290
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +436 -290
- package/dist/index.mjs.map +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/jest.config.cjs +6 -1
- package/package.json +12 -7
- package/rollup.config.js +1 -1
- package/src/api/certs.js +17 -10
- package/src/api/revocations.js +55 -20
- package/src/api/signatures.js +25 -1
- package/src/config/index.js +25 -8
- package/src/index.js +4 -22
- package/src/utils/helpers.js +11 -22
- package/src/utils/httpClient.js +0 -22
- package/tests/api/certs.test.js +30 -48
- package/tsconfig.json +2 -1
- package/.babelrc +0 -3
package/dist/index.mjs
CHANGED
|
@@ -287,7 +287,19 @@ var INTEGRATION_TYPE = {
|
|
|
287
287
|
ONPREMISE: "ONPREMISE"
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
/**
|
|
291
|
+
* @typedef {object} SDKConfig
|
|
292
|
+
* @property {string} apiUrl
|
|
293
|
+
* @property {string} secretKey
|
|
294
|
+
* @property {string} apiKey
|
|
295
|
+
* @property {string} verificationId
|
|
296
|
+
* @property {string} customerId
|
|
297
|
+
* @property {string} integrationType
|
|
298
|
+
* @property {object} [userData]
|
|
299
|
+
* @property {string} [token]
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
var defaultConfig = {
|
|
291
303
|
apiUrl: "",
|
|
292
304
|
secretKey: "",
|
|
293
305
|
apiKey: "",
|
|
@@ -297,6 +309,9 @@ var config = {
|
|
|
297
309
|
userData: undefined,
|
|
298
310
|
token: undefined
|
|
299
311
|
};
|
|
312
|
+
|
|
313
|
+
/** @type {SDKConfig} */
|
|
314
|
+
var config = _objectSpread2({}, defaultConfig);
|
|
300
315
|
var setConfig = function setConfig(newConfig) {
|
|
301
316
|
var apiUrl = newConfig.apiUrl,
|
|
302
317
|
secretKey = newConfig.secretKey,
|
|
@@ -309,17 +324,18 @@ var setConfig = function setConfig(newConfig) {
|
|
|
309
324
|
|
|
310
325
|
// Nueva validación para el valor de integrationType
|
|
311
326
|
if (!Object.values(INTEGRATION_TYPE).includes(integrationType)) {
|
|
312
|
-
throw new Error("Apacuana SDK: El valor de integrationType ('".concat(integrationType, "') no es v\xE1lido. ") + "Valores permitidos: ".concat(Object.values(INTEGRATION_TYPE).join(
|
|
327
|
+
throw new Error("Apacuana SDK: El valor de integrationType ('".concat(integrationType, "') no es v\xE1lido. ") + "Valores permitidos: ".concat(Object.values(INTEGRATION_TYPE).join(", ")));
|
|
313
328
|
}
|
|
314
329
|
config = _objectSpread2(_objectSpread2({}, config), newConfig);
|
|
315
330
|
// eslint-disable-next-line no-console
|
|
316
|
-
console.log("[Config] SDK Configuración actualizada (desde config):", _objectSpread2(_objectSpread2({}, config), {}, {
|
|
317
|
-
secretKey: "********"
|
|
318
|
-
}));
|
|
319
331
|
};
|
|
320
332
|
var getConfig = function getConfig() {
|
|
321
333
|
return _objectSpread2({}, config);
|
|
322
334
|
};
|
|
335
|
+
var cleanConfig = function cleanConfig() {
|
|
336
|
+
config = _objectSpread2({}, defaultConfig);
|
|
337
|
+
console.log("Apacuana SDK: Configuración limpiada.");
|
|
338
|
+
};
|
|
323
339
|
|
|
324
340
|
// src/errors/index.js
|
|
325
341
|
|
|
@@ -396,9 +412,6 @@ var initHttpClient = function initHttpClient() {
|
|
|
396
412
|
throw new ApacuanaAPIError("Error desconocido en la petici\xF3n: ".concat(error.message), 0, "UNKNOWN_REQUEST_ERROR");
|
|
397
413
|
}
|
|
398
414
|
});
|
|
399
|
-
|
|
400
|
-
// eslint-disable-next-line no-console
|
|
401
|
-
console.log("[HTTP Client] Cliente HTTP (Axios) REAL inicializado con URL base:", config.apiUrl);
|
|
402
415
|
};
|
|
403
416
|
|
|
404
417
|
/**
|
|
@@ -417,7 +430,6 @@ var setAuthToken = function setAuthToken(token) {
|
|
|
417
430
|
// Actualizamos la cabecera Authorization de la instancia de Axios.
|
|
418
431
|
axiosInstance.defaults.headers.common.Authorization = "Bearer ".concat(token);
|
|
419
432
|
// eslint-disable-next-line no-console
|
|
420
|
-
console.log("[HTTP Client] Cabecera Authorization actualizada con nuevo token.");
|
|
421
433
|
};
|
|
422
434
|
|
|
423
435
|
/**
|
|
@@ -451,12 +463,7 @@ var httpRequest = /*#__PURE__*/function () {
|
|
|
451
463
|
case 1:
|
|
452
464
|
// Creamos el cuerpo de la petición fusionando los datos de la llamada
|
|
453
465
|
// con los parámetros de inicialización.
|
|
454
|
-
dataToSend = _objectSpread2({}, data);
|
|
455
|
-
console.log("[HTTP Client] Realizando petici\xF3n ".concat(method, " a: ").concat(axiosInstance.defaults.baseURL).concat(path));
|
|
456
|
-
// eslint-disable-next-line no-console
|
|
457
|
-
console.log("[HTTP Client] Headers (via Axios config):", axiosInstance.defaults.headers);
|
|
458
|
-
// eslint-disable-next-line no-console
|
|
459
|
-
console.log("[HTTP Client] Datos enviados:", dataToSend);
|
|
466
|
+
dataToSend = _objectSpread2({}, data);
|
|
460
467
|
_context.p = 2;
|
|
461
468
|
_t = method.toUpperCase();
|
|
462
469
|
_context.n = _t === "GET" ? 3 : _t === "POST" ? 5 : _t === "PUT" ? 7 : _t === "DELETE" ? 9 : 11;
|
|
@@ -492,10 +499,6 @@ var httpRequest = /*#__PURE__*/function () {
|
|
|
492
499
|
case 11:
|
|
493
500
|
throw new ApacuanaAPIError("M\xE9todo HTTP no soportado: ".concat(method), 405, "UNSUPPORTED_HTTP_METHOD");
|
|
494
501
|
case 12:
|
|
495
|
-
// Si la promesa se resolvió, la respuesta es exitosa.
|
|
496
|
-
// El interceptor ya manejó los errores 4xx/5xx y los errores lógicos 2xx.
|
|
497
|
-
// eslint-disable-next-line no-console
|
|
498
|
-
console.log("[HTTP Client] Respuesta exitosa de ".concat(path, ":"), response.data);
|
|
499
502
|
return _context.a(2, response.data);
|
|
500
503
|
case 13:
|
|
501
504
|
_context.p = 13;
|
|
@@ -595,72 +598,127 @@ var getCustomer = /*#__PURE__*/function () {
|
|
|
595
598
|
* @param {string} reasonCode - Código o descripción del motivo de la revocación.
|
|
596
599
|
* @returns {Promise<RequestRevocationResponse>} Objeto con el estado de la solicitud de revocación.
|
|
597
600
|
*/
|
|
601
|
+
/**
|
|
602
|
+
* @typedef {object} RevocationResponse
|
|
603
|
+
* @property {boolean} success - Indicates if the revocation request was successful.
|
|
604
|
+
* @property {string} [message] - A message providing details about the outcome.
|
|
605
|
+
*/
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* @typedef {object} RevocationReason
|
|
609
|
+
* @property {string} code - The code for the revocation reason.
|
|
610
|
+
* @property {string} description - The description of the revocation reason.
|
|
611
|
+
*/
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* @typedef {object} RevocationReasonsResponse
|
|
615
|
+
* @property {boolean} success - Indicates if the request was successful.
|
|
616
|
+
* @property {RevocationReason[]} reasons - A list of revocation reasons.
|
|
617
|
+
*/
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Requests the revocation of a certificate.
|
|
621
|
+
* @param {number} reasonCode - Código o descripción del motivo de la revocación.
|
|
622
|
+
* @returns {Promise<RevocationResponse>} An object indicating the success of the request.
|
|
623
|
+
* @throws {ApacuanaAPIError} If the revocation request fails.
|
|
624
|
+
*/
|
|
598
625
|
var requestRevocation = /*#__PURE__*/function () {
|
|
599
626
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(reasonCode) {
|
|
600
627
|
var response, _t;
|
|
601
628
|
return _regenerator().w(function (_context) {
|
|
602
629
|
while (1) switch (_context.p = _context.n) {
|
|
603
630
|
case 0:
|
|
604
|
-
console.log("-> Función 'requestRevocation' ejecutada.");
|
|
605
|
-
console.log("Parámetros recibidos para solicitud de revocación:", {
|
|
606
|
-
reasonCode: reasonCode
|
|
607
|
-
});
|
|
608
631
|
if (reasonCode) {
|
|
609
632
|
_context.n = 1;
|
|
610
633
|
break;
|
|
611
634
|
}
|
|
612
|
-
throw new Error("
|
|
635
|
+
throw new Error("Código de motivo es requerido para requestRevocation.");
|
|
613
636
|
case 1:
|
|
614
637
|
_context.p = 1;
|
|
615
638
|
_context.n = 2;
|
|
616
|
-
return httpRequest("
|
|
639
|
+
return httpRequest("services/api/onboardingclient/requestcert", {
|
|
617
640
|
reason: reasonCode
|
|
618
641
|
}, "POST");
|
|
619
642
|
case 2:
|
|
620
643
|
response = _context.v;
|
|
621
|
-
|
|
622
|
-
if (response.success) {
|
|
623
|
-
_context.n = 3;
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
throw new ApacuanaAPIError(response.message || "Error desconocido al solicitar revocación.");
|
|
644
|
+
return _context.a(2, response);
|
|
627
645
|
case 3:
|
|
628
|
-
|
|
629
|
-
revocationStatus: response.status || "pending",
|
|
630
|
-
requestId: response.id
|
|
631
|
-
});
|
|
632
|
-
case 4:
|
|
633
|
-
_context.p = 4;
|
|
646
|
+
_context.p = 3;
|
|
634
647
|
_t = _context.v;
|
|
635
648
|
throw new Error("Fallo en la solicitud de revocaci\xF3n: ".concat(_t.message));
|
|
636
|
-
case
|
|
649
|
+
case 4:
|
|
637
650
|
return _context.a(2);
|
|
638
651
|
}
|
|
639
|
-
}, _callee, null, [[1,
|
|
652
|
+
}, _callee, null, [[1, 3]]);
|
|
640
653
|
}));
|
|
641
654
|
return function requestRevocation(_x) {
|
|
642
655
|
return _ref.apply(this, arguments);
|
|
643
656
|
};
|
|
644
657
|
}();
|
|
645
658
|
|
|
659
|
+
/**
|
|
660
|
+
* Retrieves the available reasons for certificate revocation.
|
|
661
|
+
* @returns {Promise<RevocationReasonsResponse>} An object containing the list of revocation reasons.
|
|
662
|
+
* @throws {ApacuanaAPIError} If fetching the reasons fails.
|
|
663
|
+
*/
|
|
664
|
+
var getRevocationReasons = /*#__PURE__*/function () {
|
|
665
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
666
|
+
var response, _t2;
|
|
667
|
+
return _regenerator().w(function (_context2) {
|
|
668
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
669
|
+
case 0:
|
|
670
|
+
_context2.p = 0;
|
|
671
|
+
_context2.n = 1;
|
|
672
|
+
return httpRequest("config/api/revocation/reasonsonboarding", {}, "GET");
|
|
673
|
+
case 1:
|
|
674
|
+
response = _context2.v;
|
|
675
|
+
if (response.records) {
|
|
676
|
+
_context2.n = 2;
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
throw new ApacuanaAPIError("Failed to fetch revocation reasons.");
|
|
680
|
+
case 2:
|
|
681
|
+
return _context2.a(2, response.records);
|
|
682
|
+
case 3:
|
|
683
|
+
_context2.p = 3;
|
|
684
|
+
_t2 = _context2.v;
|
|
685
|
+
if (!(_t2 instanceof ApacuanaAPIError)) {
|
|
686
|
+
_context2.n = 4;
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
throw _t2;
|
|
690
|
+
case 4:
|
|
691
|
+
throw new Error("Failed to get revocation reasons. Please try again later.");
|
|
692
|
+
case 5:
|
|
693
|
+
return _context2.a(2);
|
|
694
|
+
}
|
|
695
|
+
}, _callee2, null, [[0, 3]]);
|
|
696
|
+
}));
|
|
697
|
+
return function getRevocationReasons() {
|
|
698
|
+
return _ref2.apply(this, arguments);
|
|
699
|
+
};
|
|
700
|
+
}();
|
|
701
|
+
|
|
646
702
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
647
703
|
|
|
648
704
|
function getDefaultExportFromCjs (x) {
|
|
649
705
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
650
706
|
}
|
|
651
707
|
|
|
652
|
-
var cryptoJs = {exports: {}};
|
|
708
|
+
var cryptoJs$1 = {exports: {}};
|
|
653
709
|
|
|
654
710
|
function commonjsRequire(path) {
|
|
655
711
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
656
712
|
}
|
|
657
713
|
|
|
658
|
-
var core = {exports: {}};
|
|
714
|
+
var core$1 = {exports: {}};
|
|
715
|
+
|
|
716
|
+
var core = core$1.exports;
|
|
659
717
|
|
|
660
718
|
var hasRequiredCore;
|
|
661
719
|
|
|
662
720
|
function requireCore () {
|
|
663
|
-
if (hasRequiredCore) return core.exports;
|
|
721
|
+
if (hasRequiredCore) return core$1.exports;
|
|
664
722
|
hasRequiredCore = 1;
|
|
665
723
|
(function (module, exports) {
|
|
666
724
|
(function (root, factory) {
|
|
@@ -668,7 +726,7 @@ function requireCore () {
|
|
|
668
726
|
// CommonJS
|
|
669
727
|
module.exports = factory();
|
|
670
728
|
}
|
|
671
|
-
}(
|
|
729
|
+
}(core, function () {
|
|
672
730
|
|
|
673
731
|
/*globals window, global, require*/
|
|
674
732
|
|
|
@@ -1462,16 +1520,18 @@ function requireCore () {
|
|
|
1462
1520
|
return CryptoJS;
|
|
1463
1521
|
|
|
1464
1522
|
}));
|
|
1465
|
-
} (core));
|
|
1466
|
-
return core.exports;
|
|
1523
|
+
} (core$1));
|
|
1524
|
+
return core$1.exports;
|
|
1467
1525
|
}
|
|
1468
1526
|
|
|
1469
|
-
var x64Core = {exports: {}};
|
|
1527
|
+
var x64Core$1 = {exports: {}};
|
|
1528
|
+
|
|
1529
|
+
var x64Core = x64Core$1.exports;
|
|
1470
1530
|
|
|
1471
1531
|
var hasRequiredX64Core;
|
|
1472
1532
|
|
|
1473
1533
|
function requireX64Core () {
|
|
1474
|
-
if (hasRequiredX64Core) return x64Core.exports;
|
|
1534
|
+
if (hasRequiredX64Core) return x64Core$1.exports;
|
|
1475
1535
|
hasRequiredX64Core = 1;
|
|
1476
1536
|
(function (module, exports) {
|
|
1477
1537
|
(function (root, factory) {
|
|
@@ -1479,7 +1539,7 @@ function requireX64Core () {
|
|
|
1479
1539
|
// CommonJS
|
|
1480
1540
|
module.exports = factory(requireCore());
|
|
1481
1541
|
}
|
|
1482
|
-
}(
|
|
1542
|
+
}(x64Core, function (CryptoJS) {
|
|
1483
1543
|
|
|
1484
1544
|
(function (undefined$1) {
|
|
1485
1545
|
// Shortcuts
|
|
@@ -1770,16 +1830,18 @@ function requireX64Core () {
|
|
|
1770
1830
|
return CryptoJS;
|
|
1771
1831
|
|
|
1772
1832
|
}));
|
|
1773
|
-
} (x64Core));
|
|
1774
|
-
return x64Core.exports;
|
|
1833
|
+
} (x64Core$1));
|
|
1834
|
+
return x64Core$1.exports;
|
|
1775
1835
|
}
|
|
1776
1836
|
|
|
1777
|
-
var libTypedarrays = {exports: {}};
|
|
1837
|
+
var libTypedarrays$1 = {exports: {}};
|
|
1838
|
+
|
|
1839
|
+
var libTypedarrays = libTypedarrays$1.exports;
|
|
1778
1840
|
|
|
1779
1841
|
var hasRequiredLibTypedarrays;
|
|
1780
1842
|
|
|
1781
1843
|
function requireLibTypedarrays () {
|
|
1782
|
-
if (hasRequiredLibTypedarrays) return libTypedarrays.exports;
|
|
1844
|
+
if (hasRequiredLibTypedarrays) return libTypedarrays$1.exports;
|
|
1783
1845
|
hasRequiredLibTypedarrays = 1;
|
|
1784
1846
|
(function (module, exports) {
|
|
1785
1847
|
(function (root, factory) {
|
|
@@ -1787,7 +1849,7 @@ function requireLibTypedarrays () {
|
|
|
1787
1849
|
// CommonJS
|
|
1788
1850
|
module.exports = factory(requireCore());
|
|
1789
1851
|
}
|
|
1790
|
-
}(
|
|
1852
|
+
}(libTypedarrays, function (CryptoJS) {
|
|
1791
1853
|
|
|
1792
1854
|
(function () {
|
|
1793
1855
|
// Check if typed arrays are supported
|
|
@@ -1850,16 +1912,18 @@ function requireLibTypedarrays () {
|
|
|
1850
1912
|
return CryptoJS.lib.WordArray;
|
|
1851
1913
|
|
|
1852
1914
|
}));
|
|
1853
|
-
} (libTypedarrays));
|
|
1854
|
-
return libTypedarrays.exports;
|
|
1915
|
+
} (libTypedarrays$1));
|
|
1916
|
+
return libTypedarrays$1.exports;
|
|
1855
1917
|
}
|
|
1856
1918
|
|
|
1857
|
-
var encUtf16 = {exports: {}};
|
|
1919
|
+
var encUtf16$1 = {exports: {}};
|
|
1920
|
+
|
|
1921
|
+
var encUtf16 = encUtf16$1.exports;
|
|
1858
1922
|
|
|
1859
1923
|
var hasRequiredEncUtf16;
|
|
1860
1924
|
|
|
1861
1925
|
function requireEncUtf16 () {
|
|
1862
|
-
if (hasRequiredEncUtf16) return encUtf16.exports;
|
|
1926
|
+
if (hasRequiredEncUtf16) return encUtf16$1.exports;
|
|
1863
1927
|
hasRequiredEncUtf16 = 1;
|
|
1864
1928
|
(function (module, exports) {
|
|
1865
1929
|
(function (root, factory) {
|
|
@@ -1867,7 +1931,7 @@ function requireEncUtf16 () {
|
|
|
1867
1931
|
// CommonJS
|
|
1868
1932
|
module.exports = factory(requireCore());
|
|
1869
1933
|
}
|
|
1870
|
-
}(
|
|
1934
|
+
}(encUtf16, function (CryptoJS) {
|
|
1871
1935
|
|
|
1872
1936
|
(function () {
|
|
1873
1937
|
// Shortcuts
|
|
@@ -2003,16 +2067,18 @@ function requireEncUtf16 () {
|
|
|
2003
2067
|
return CryptoJS.enc.Utf16;
|
|
2004
2068
|
|
|
2005
2069
|
}));
|
|
2006
|
-
} (encUtf16));
|
|
2007
|
-
return encUtf16.exports;
|
|
2070
|
+
} (encUtf16$1));
|
|
2071
|
+
return encUtf16$1.exports;
|
|
2008
2072
|
}
|
|
2009
2073
|
|
|
2010
|
-
var encBase64 = {exports: {}};
|
|
2074
|
+
var encBase64$1 = {exports: {}};
|
|
2075
|
+
|
|
2076
|
+
var encBase64 = encBase64$1.exports;
|
|
2011
2077
|
|
|
2012
2078
|
var hasRequiredEncBase64;
|
|
2013
2079
|
|
|
2014
2080
|
function requireEncBase64 () {
|
|
2015
|
-
if (hasRequiredEncBase64) return encBase64.exports;
|
|
2081
|
+
if (hasRequiredEncBase64) return encBase64$1.exports;
|
|
2016
2082
|
hasRequiredEncBase64 = 1;
|
|
2017
2083
|
(function (module, exports) {
|
|
2018
2084
|
(function (root, factory) {
|
|
@@ -2020,7 +2086,7 @@ function requireEncBase64 () {
|
|
|
2020
2086
|
// CommonJS
|
|
2021
2087
|
module.exports = factory(requireCore());
|
|
2022
2088
|
}
|
|
2023
|
-
}(
|
|
2089
|
+
}(encBase64, function (CryptoJS) {
|
|
2024
2090
|
|
|
2025
2091
|
(function () {
|
|
2026
2092
|
// Shortcuts
|
|
@@ -2143,16 +2209,18 @@ function requireEncBase64 () {
|
|
|
2143
2209
|
return CryptoJS.enc.Base64;
|
|
2144
2210
|
|
|
2145
2211
|
}));
|
|
2146
|
-
} (encBase64));
|
|
2147
|
-
return encBase64.exports;
|
|
2212
|
+
} (encBase64$1));
|
|
2213
|
+
return encBase64$1.exports;
|
|
2148
2214
|
}
|
|
2149
2215
|
|
|
2150
|
-
var encBase64url = {exports: {}};
|
|
2216
|
+
var encBase64url$1 = {exports: {}};
|
|
2217
|
+
|
|
2218
|
+
var encBase64url = encBase64url$1.exports;
|
|
2151
2219
|
|
|
2152
2220
|
var hasRequiredEncBase64url;
|
|
2153
2221
|
|
|
2154
2222
|
function requireEncBase64url () {
|
|
2155
|
-
if (hasRequiredEncBase64url) return encBase64url.exports;
|
|
2223
|
+
if (hasRequiredEncBase64url) return encBase64url$1.exports;
|
|
2156
2224
|
hasRequiredEncBase64url = 1;
|
|
2157
2225
|
(function (module, exports) {
|
|
2158
2226
|
(function (root, factory) {
|
|
@@ -2160,7 +2228,7 @@ function requireEncBase64url () {
|
|
|
2160
2228
|
// CommonJS
|
|
2161
2229
|
module.exports = factory(requireCore());
|
|
2162
2230
|
}
|
|
2163
|
-
}(
|
|
2231
|
+
}(encBase64url, function (CryptoJS) {
|
|
2164
2232
|
|
|
2165
2233
|
(function () {
|
|
2166
2234
|
// Shortcuts
|
|
@@ -2295,16 +2363,18 @@ function requireEncBase64url () {
|
|
|
2295
2363
|
return CryptoJS.enc.Base64url;
|
|
2296
2364
|
|
|
2297
2365
|
}));
|
|
2298
|
-
} (encBase64url));
|
|
2299
|
-
return encBase64url.exports;
|
|
2366
|
+
} (encBase64url$1));
|
|
2367
|
+
return encBase64url$1.exports;
|
|
2300
2368
|
}
|
|
2301
2369
|
|
|
2302
|
-
var md5 = {exports: {}};
|
|
2370
|
+
var md5$1 = {exports: {}};
|
|
2371
|
+
|
|
2372
|
+
var md5 = md5$1.exports;
|
|
2303
2373
|
|
|
2304
2374
|
var hasRequiredMd5;
|
|
2305
2375
|
|
|
2306
2376
|
function requireMd5 () {
|
|
2307
|
-
if (hasRequiredMd5) return md5.exports;
|
|
2377
|
+
if (hasRequiredMd5) return md5$1.exports;
|
|
2308
2378
|
hasRequiredMd5 = 1;
|
|
2309
2379
|
(function (module, exports) {
|
|
2310
2380
|
(function (root, factory) {
|
|
@@ -2312,7 +2382,7 @@ function requireMd5 () {
|
|
|
2312
2382
|
// CommonJS
|
|
2313
2383
|
module.exports = factory(requireCore());
|
|
2314
2384
|
}
|
|
2315
|
-
}(
|
|
2385
|
+
}(md5, function (CryptoJS) {
|
|
2316
2386
|
|
|
2317
2387
|
(function (Math) {
|
|
2318
2388
|
// Shortcuts
|
|
@@ -2567,16 +2637,18 @@ function requireMd5 () {
|
|
|
2567
2637
|
return CryptoJS.MD5;
|
|
2568
2638
|
|
|
2569
2639
|
}));
|
|
2570
|
-
} (md5));
|
|
2571
|
-
return md5.exports;
|
|
2640
|
+
} (md5$1));
|
|
2641
|
+
return md5$1.exports;
|
|
2572
2642
|
}
|
|
2573
2643
|
|
|
2574
|
-
var sha1$
|
|
2644
|
+
var sha1$3 = {exports: {}};
|
|
2645
|
+
|
|
2646
|
+
var sha1$2 = sha1$3.exports;
|
|
2575
2647
|
|
|
2576
2648
|
var hasRequiredSha1;
|
|
2577
2649
|
|
|
2578
2650
|
function requireSha1 () {
|
|
2579
|
-
if (hasRequiredSha1) return sha1$
|
|
2651
|
+
if (hasRequiredSha1) return sha1$3.exports;
|
|
2580
2652
|
hasRequiredSha1 = 1;
|
|
2581
2653
|
(function (module, exports) {
|
|
2582
2654
|
(function (root, factory) {
|
|
@@ -2584,7 +2656,7 @@ function requireSha1 () {
|
|
|
2584
2656
|
// CommonJS
|
|
2585
2657
|
module.exports = factory(requireCore());
|
|
2586
2658
|
}
|
|
2587
|
-
}(
|
|
2659
|
+
}(sha1$2, function (CryptoJS) {
|
|
2588
2660
|
|
|
2589
2661
|
(function () {
|
|
2590
2662
|
// Shortcuts
|
|
@@ -2721,16 +2793,18 @@ function requireSha1 () {
|
|
|
2721
2793
|
return CryptoJS.SHA1;
|
|
2722
2794
|
|
|
2723
2795
|
}));
|
|
2724
|
-
} (sha1$
|
|
2725
|
-
return sha1$
|
|
2796
|
+
} (sha1$3));
|
|
2797
|
+
return sha1$3.exports;
|
|
2726
2798
|
}
|
|
2727
2799
|
|
|
2728
|
-
var sha256$
|
|
2800
|
+
var sha256$3 = {exports: {}};
|
|
2801
|
+
|
|
2802
|
+
var sha256$2 = sha256$3.exports;
|
|
2729
2803
|
|
|
2730
2804
|
var hasRequiredSha256;
|
|
2731
2805
|
|
|
2732
2806
|
function requireSha256 () {
|
|
2733
|
-
if (hasRequiredSha256) return sha256$
|
|
2807
|
+
if (hasRequiredSha256) return sha256$3.exports;
|
|
2734
2808
|
hasRequiredSha256 = 1;
|
|
2735
2809
|
(function (module, exports) {
|
|
2736
2810
|
(function (root, factory) {
|
|
@@ -2738,7 +2812,7 @@ function requireSha256 () {
|
|
|
2738
2812
|
// CommonJS
|
|
2739
2813
|
module.exports = factory(requireCore());
|
|
2740
2814
|
}
|
|
2741
|
-
}(
|
|
2815
|
+
}(sha256$2, function (CryptoJS) {
|
|
2742
2816
|
|
|
2743
2817
|
(function (Math) {
|
|
2744
2818
|
// Shortcuts
|
|
@@ -2924,16 +2998,18 @@ function requireSha256 () {
|
|
|
2924
2998
|
return CryptoJS.SHA256;
|
|
2925
2999
|
|
|
2926
3000
|
}));
|
|
2927
|
-
} (sha256$
|
|
2928
|
-
return sha256$
|
|
3001
|
+
} (sha256$3));
|
|
3002
|
+
return sha256$3.exports;
|
|
2929
3003
|
}
|
|
2930
3004
|
|
|
2931
|
-
var sha224 = {exports: {}};
|
|
3005
|
+
var sha224$1 = {exports: {}};
|
|
3006
|
+
|
|
3007
|
+
var sha224 = sha224$1.exports;
|
|
2932
3008
|
|
|
2933
3009
|
var hasRequiredSha224;
|
|
2934
3010
|
|
|
2935
3011
|
function requireSha224 () {
|
|
2936
|
-
if (hasRequiredSha224) return sha224.exports;
|
|
3012
|
+
if (hasRequiredSha224) return sha224$1.exports;
|
|
2937
3013
|
hasRequiredSha224 = 1;
|
|
2938
3014
|
(function (module, exports) {
|
|
2939
3015
|
(function (root, factory, undef) {
|
|
@@ -2941,7 +3017,7 @@ function requireSha224 () {
|
|
|
2941
3017
|
// CommonJS
|
|
2942
3018
|
module.exports = factory(requireCore(), requireSha256());
|
|
2943
3019
|
}
|
|
2944
|
-
}(
|
|
3020
|
+
}(sha224, function (CryptoJS) {
|
|
2945
3021
|
|
|
2946
3022
|
(function () {
|
|
2947
3023
|
// Shortcuts
|
|
@@ -3008,16 +3084,18 @@ function requireSha224 () {
|
|
|
3008
3084
|
return CryptoJS.SHA224;
|
|
3009
3085
|
|
|
3010
3086
|
}));
|
|
3011
|
-
} (sha224));
|
|
3012
|
-
return sha224.exports;
|
|
3087
|
+
} (sha224$1));
|
|
3088
|
+
return sha224$1.exports;
|
|
3013
3089
|
}
|
|
3014
3090
|
|
|
3015
|
-
var sha512$
|
|
3091
|
+
var sha512$3 = {exports: {}};
|
|
3092
|
+
|
|
3093
|
+
var sha512$2 = sha512$3.exports;
|
|
3016
3094
|
|
|
3017
3095
|
var hasRequiredSha512;
|
|
3018
3096
|
|
|
3019
3097
|
function requireSha512 () {
|
|
3020
|
-
if (hasRequiredSha512) return sha512$
|
|
3098
|
+
if (hasRequiredSha512) return sha512$3.exports;
|
|
3021
3099
|
hasRequiredSha512 = 1;
|
|
3022
3100
|
(function (module, exports) {
|
|
3023
3101
|
(function (root, factory, undef) {
|
|
@@ -3025,7 +3103,7 @@ function requireSha512 () {
|
|
|
3025
3103
|
// CommonJS
|
|
3026
3104
|
module.exports = factory(requireCore(), requireX64Core());
|
|
3027
3105
|
}
|
|
3028
|
-
}(
|
|
3106
|
+
}(sha512$2, function (CryptoJS) {
|
|
3029
3107
|
|
|
3030
3108
|
(function () {
|
|
3031
3109
|
// Shortcuts
|
|
@@ -3338,16 +3416,18 @@ function requireSha512 () {
|
|
|
3338
3416
|
return CryptoJS.SHA512;
|
|
3339
3417
|
|
|
3340
3418
|
}));
|
|
3341
|
-
} (sha512$
|
|
3342
|
-
return sha512$
|
|
3419
|
+
} (sha512$3));
|
|
3420
|
+
return sha512$3.exports;
|
|
3343
3421
|
}
|
|
3344
3422
|
|
|
3345
|
-
var sha384$
|
|
3423
|
+
var sha384$3 = {exports: {}};
|
|
3424
|
+
|
|
3425
|
+
var sha384$2 = sha384$3.exports;
|
|
3346
3426
|
|
|
3347
3427
|
var hasRequiredSha384;
|
|
3348
3428
|
|
|
3349
3429
|
function requireSha384 () {
|
|
3350
|
-
if (hasRequiredSha384) return sha384$
|
|
3430
|
+
if (hasRequiredSha384) return sha384$3.exports;
|
|
3351
3431
|
hasRequiredSha384 = 1;
|
|
3352
3432
|
(function (module, exports) {
|
|
3353
3433
|
(function (root, factory, undef) {
|
|
@@ -3355,7 +3435,7 @@ function requireSha384 () {
|
|
|
3355
3435
|
// CommonJS
|
|
3356
3436
|
module.exports = factory(requireCore(), requireX64Core(), requireSha512());
|
|
3357
3437
|
}
|
|
3358
|
-
}(
|
|
3438
|
+
}(sha384$2, function (CryptoJS) {
|
|
3359
3439
|
|
|
3360
3440
|
(function () {
|
|
3361
3441
|
// Shortcuts
|
|
@@ -3425,16 +3505,18 @@ function requireSha384 () {
|
|
|
3425
3505
|
return CryptoJS.SHA384;
|
|
3426
3506
|
|
|
3427
3507
|
}));
|
|
3428
|
-
} (sha384$
|
|
3429
|
-
return sha384$
|
|
3508
|
+
} (sha384$3));
|
|
3509
|
+
return sha384$3.exports;
|
|
3430
3510
|
}
|
|
3431
3511
|
|
|
3432
|
-
var sha3 = {exports: {}};
|
|
3512
|
+
var sha3$1 = {exports: {}};
|
|
3513
|
+
|
|
3514
|
+
var sha3 = sha3$1.exports;
|
|
3433
3515
|
|
|
3434
3516
|
var hasRequiredSha3;
|
|
3435
3517
|
|
|
3436
3518
|
function requireSha3 () {
|
|
3437
|
-
if (hasRequiredSha3) return sha3.exports;
|
|
3519
|
+
if (hasRequiredSha3) return sha3$1.exports;
|
|
3438
3520
|
hasRequiredSha3 = 1;
|
|
3439
3521
|
(function (module, exports) {
|
|
3440
3522
|
(function (root, factory, undef) {
|
|
@@ -3442,7 +3524,7 @@ function requireSha3 () {
|
|
|
3442
3524
|
// CommonJS
|
|
3443
3525
|
module.exports = factory(requireCore(), requireX64Core());
|
|
3444
3526
|
}
|
|
3445
|
-
}(
|
|
3527
|
+
}(sha3, function (CryptoJS) {
|
|
3446
3528
|
|
|
3447
3529
|
(function (Math) {
|
|
3448
3530
|
// Shortcuts
|
|
@@ -3755,16 +3837,18 @@ function requireSha3 () {
|
|
|
3755
3837
|
return CryptoJS.SHA3;
|
|
3756
3838
|
|
|
3757
3839
|
}));
|
|
3758
|
-
} (sha3));
|
|
3759
|
-
return sha3.exports;
|
|
3840
|
+
} (sha3$1));
|
|
3841
|
+
return sha3$1.exports;
|
|
3760
3842
|
}
|
|
3761
3843
|
|
|
3762
|
-
var ripemd160 = {exports: {}};
|
|
3844
|
+
var ripemd160$1 = {exports: {}};
|
|
3845
|
+
|
|
3846
|
+
var ripemd160 = ripemd160$1.exports;
|
|
3763
3847
|
|
|
3764
3848
|
var hasRequiredRipemd160;
|
|
3765
3849
|
|
|
3766
3850
|
function requireRipemd160 () {
|
|
3767
|
-
if (hasRequiredRipemd160) return ripemd160.exports;
|
|
3851
|
+
if (hasRequiredRipemd160) return ripemd160$1.exports;
|
|
3768
3852
|
hasRequiredRipemd160 = 1;
|
|
3769
3853
|
(function (module, exports) {
|
|
3770
3854
|
(function (root, factory) {
|
|
@@ -3772,7 +3856,7 @@ function requireRipemd160 () {
|
|
|
3772
3856
|
// CommonJS
|
|
3773
3857
|
module.exports = factory(requireCore());
|
|
3774
3858
|
}
|
|
3775
|
-
}(
|
|
3859
|
+
}(ripemd160, function (CryptoJS) {
|
|
3776
3860
|
|
|
3777
3861
|
/** @preserve
|
|
3778
3862
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
@@ -4026,16 +4110,18 @@ function requireRipemd160 () {
|
|
|
4026
4110
|
return CryptoJS.RIPEMD160;
|
|
4027
4111
|
|
|
4028
4112
|
}));
|
|
4029
|
-
} (ripemd160));
|
|
4030
|
-
return ripemd160.exports;
|
|
4113
|
+
} (ripemd160$1));
|
|
4114
|
+
return ripemd160$1.exports;
|
|
4031
4115
|
}
|
|
4032
4116
|
|
|
4033
|
-
var hmac = {exports: {}};
|
|
4117
|
+
var hmac$1 = {exports: {}};
|
|
4118
|
+
|
|
4119
|
+
var hmac = hmac$1.exports;
|
|
4034
4120
|
|
|
4035
4121
|
var hasRequiredHmac;
|
|
4036
4122
|
|
|
4037
4123
|
function requireHmac () {
|
|
4038
|
-
if (hasRequiredHmac) return hmac.exports;
|
|
4124
|
+
if (hasRequiredHmac) return hmac$1.exports;
|
|
4039
4125
|
hasRequiredHmac = 1;
|
|
4040
4126
|
(function (module, exports) {
|
|
4041
4127
|
(function (root, factory) {
|
|
@@ -4043,7 +4129,7 @@ function requireHmac () {
|
|
|
4043
4129
|
// CommonJS
|
|
4044
4130
|
module.exports = factory(requireCore());
|
|
4045
4131
|
}
|
|
4046
|
-
}(
|
|
4132
|
+
}(hmac, function (CryptoJS) {
|
|
4047
4133
|
|
|
4048
4134
|
(function () {
|
|
4049
4135
|
// Shortcuts
|
|
@@ -4173,16 +4259,18 @@ function requireHmac () {
|
|
|
4173
4259
|
|
|
4174
4260
|
|
|
4175
4261
|
}));
|
|
4176
|
-
} (hmac));
|
|
4177
|
-
return hmac.exports;
|
|
4262
|
+
} (hmac$1));
|
|
4263
|
+
return hmac$1.exports;
|
|
4178
4264
|
}
|
|
4179
4265
|
|
|
4180
|
-
var pbkdf2 = {exports: {}};
|
|
4266
|
+
var pbkdf2$1 = {exports: {}};
|
|
4267
|
+
|
|
4268
|
+
var pbkdf2 = pbkdf2$1.exports;
|
|
4181
4269
|
|
|
4182
4270
|
var hasRequiredPbkdf2;
|
|
4183
4271
|
|
|
4184
4272
|
function requirePbkdf2 () {
|
|
4185
|
-
if (hasRequiredPbkdf2) return pbkdf2.exports;
|
|
4273
|
+
if (hasRequiredPbkdf2) return pbkdf2$1.exports;
|
|
4186
4274
|
hasRequiredPbkdf2 = 1;
|
|
4187
4275
|
(function (module, exports) {
|
|
4188
4276
|
(function (root, factory, undef) {
|
|
@@ -4190,7 +4278,7 @@ function requirePbkdf2 () {
|
|
|
4190
4278
|
// CommonJS
|
|
4191
4279
|
module.exports = factory(requireCore(), requireSha256(), requireHmac());
|
|
4192
4280
|
}
|
|
4193
|
-
}(
|
|
4281
|
+
}(pbkdf2, function (CryptoJS) {
|
|
4194
4282
|
|
|
4195
4283
|
(function () {
|
|
4196
4284
|
// Shortcuts
|
|
@@ -4322,16 +4410,18 @@ function requirePbkdf2 () {
|
|
|
4322
4410
|
return CryptoJS.PBKDF2;
|
|
4323
4411
|
|
|
4324
4412
|
}));
|
|
4325
|
-
} (pbkdf2));
|
|
4326
|
-
return pbkdf2.exports;
|
|
4413
|
+
} (pbkdf2$1));
|
|
4414
|
+
return pbkdf2$1.exports;
|
|
4327
4415
|
}
|
|
4328
4416
|
|
|
4329
|
-
var evpkdf = {exports: {}};
|
|
4417
|
+
var evpkdf$1 = {exports: {}};
|
|
4418
|
+
|
|
4419
|
+
var evpkdf = evpkdf$1.exports;
|
|
4330
4420
|
|
|
4331
4421
|
var hasRequiredEvpkdf;
|
|
4332
4422
|
|
|
4333
4423
|
function requireEvpkdf () {
|
|
4334
|
-
if (hasRequiredEvpkdf) return evpkdf.exports;
|
|
4424
|
+
if (hasRequiredEvpkdf) return evpkdf$1.exports;
|
|
4335
4425
|
hasRequiredEvpkdf = 1;
|
|
4336
4426
|
(function (module, exports) {
|
|
4337
4427
|
(function (root, factory, undef) {
|
|
@@ -4339,7 +4429,7 @@ function requireEvpkdf () {
|
|
|
4339
4429
|
// CommonJS
|
|
4340
4430
|
module.exports = factory(requireCore(), requireSha1(), requireHmac());
|
|
4341
4431
|
}
|
|
4342
|
-
}(
|
|
4432
|
+
}(evpkdf, function (CryptoJS) {
|
|
4343
4433
|
|
|
4344
4434
|
(function () {
|
|
4345
4435
|
// Shortcuts
|
|
@@ -4460,16 +4550,18 @@ function requireEvpkdf () {
|
|
|
4460
4550
|
return CryptoJS.EvpKDF;
|
|
4461
4551
|
|
|
4462
4552
|
}));
|
|
4463
|
-
} (evpkdf));
|
|
4464
|
-
return evpkdf.exports;
|
|
4553
|
+
} (evpkdf$1));
|
|
4554
|
+
return evpkdf$1.exports;
|
|
4465
4555
|
}
|
|
4466
4556
|
|
|
4467
|
-
var cipherCore = {exports: {}};
|
|
4557
|
+
var cipherCore$1 = {exports: {}};
|
|
4558
|
+
|
|
4559
|
+
var cipherCore = cipherCore$1.exports;
|
|
4468
4560
|
|
|
4469
4561
|
var hasRequiredCipherCore;
|
|
4470
4562
|
|
|
4471
4563
|
function requireCipherCore () {
|
|
4472
|
-
if (hasRequiredCipherCore) return cipherCore.exports;
|
|
4564
|
+
if (hasRequiredCipherCore) return cipherCore$1.exports;
|
|
4473
4565
|
hasRequiredCipherCore = 1;
|
|
4474
4566
|
(function (module, exports) {
|
|
4475
4567
|
(function (root, factory, undef) {
|
|
@@ -4477,7 +4569,7 @@ function requireCipherCore () {
|
|
|
4477
4569
|
// CommonJS
|
|
4478
4570
|
module.exports = factory(requireCore(), requireEvpkdf());
|
|
4479
4571
|
}
|
|
4480
|
-
}(
|
|
4572
|
+
}(cipherCore, function (CryptoJS) {
|
|
4481
4573
|
|
|
4482
4574
|
/**
|
|
4483
4575
|
* Cipher core components.
|
|
@@ -5359,16 +5451,18 @@ function requireCipherCore () {
|
|
|
5359
5451
|
|
|
5360
5452
|
|
|
5361
5453
|
}));
|
|
5362
|
-
} (cipherCore));
|
|
5363
|
-
return cipherCore.exports;
|
|
5454
|
+
} (cipherCore$1));
|
|
5455
|
+
return cipherCore$1.exports;
|
|
5364
5456
|
}
|
|
5365
5457
|
|
|
5366
|
-
var modeCfb = {exports: {}};
|
|
5458
|
+
var modeCfb$1 = {exports: {}};
|
|
5459
|
+
|
|
5460
|
+
var modeCfb = modeCfb$1.exports;
|
|
5367
5461
|
|
|
5368
5462
|
var hasRequiredModeCfb;
|
|
5369
5463
|
|
|
5370
5464
|
function requireModeCfb () {
|
|
5371
|
-
if (hasRequiredModeCfb) return modeCfb.exports;
|
|
5465
|
+
if (hasRequiredModeCfb) return modeCfb$1.exports;
|
|
5372
5466
|
hasRequiredModeCfb = 1;
|
|
5373
5467
|
(function (module, exports) {
|
|
5374
5468
|
(function (root, factory, undef) {
|
|
@@ -5376,7 +5470,7 @@ function requireModeCfb () {
|
|
|
5376
5470
|
// CommonJS
|
|
5377
5471
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5378
5472
|
}
|
|
5379
|
-
}(
|
|
5473
|
+
}(modeCfb, function (CryptoJS) {
|
|
5380
5474
|
|
|
5381
5475
|
/**
|
|
5382
5476
|
* Cipher Feedback block mode.
|
|
@@ -5443,16 +5537,18 @@ function requireModeCfb () {
|
|
|
5443
5537
|
return CryptoJS.mode.CFB;
|
|
5444
5538
|
|
|
5445
5539
|
}));
|
|
5446
|
-
} (modeCfb));
|
|
5447
|
-
return modeCfb.exports;
|
|
5540
|
+
} (modeCfb$1));
|
|
5541
|
+
return modeCfb$1.exports;
|
|
5448
5542
|
}
|
|
5449
5543
|
|
|
5450
|
-
var modeCtr = {exports: {}};
|
|
5544
|
+
var modeCtr$1 = {exports: {}};
|
|
5545
|
+
|
|
5546
|
+
var modeCtr = modeCtr$1.exports;
|
|
5451
5547
|
|
|
5452
5548
|
var hasRequiredModeCtr;
|
|
5453
5549
|
|
|
5454
5550
|
function requireModeCtr () {
|
|
5455
|
-
if (hasRequiredModeCtr) return modeCtr.exports;
|
|
5551
|
+
if (hasRequiredModeCtr) return modeCtr$1.exports;
|
|
5456
5552
|
hasRequiredModeCtr = 1;
|
|
5457
5553
|
(function (module, exports) {
|
|
5458
5554
|
(function (root, factory, undef) {
|
|
@@ -5460,7 +5556,7 @@ function requireModeCtr () {
|
|
|
5460
5556
|
// CommonJS
|
|
5461
5557
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5462
5558
|
}
|
|
5463
|
-
}(
|
|
5559
|
+
}(modeCtr, function (CryptoJS) {
|
|
5464
5560
|
|
|
5465
5561
|
/**
|
|
5466
5562
|
* Counter block mode.
|
|
@@ -5505,16 +5601,18 @@ function requireModeCtr () {
|
|
|
5505
5601
|
return CryptoJS.mode.CTR;
|
|
5506
5602
|
|
|
5507
5603
|
}));
|
|
5508
|
-
} (modeCtr));
|
|
5509
|
-
return modeCtr.exports;
|
|
5604
|
+
} (modeCtr$1));
|
|
5605
|
+
return modeCtr$1.exports;
|
|
5510
5606
|
}
|
|
5511
5607
|
|
|
5512
|
-
var modeCtrGladman = {exports: {}};
|
|
5608
|
+
var modeCtrGladman$1 = {exports: {}};
|
|
5609
|
+
|
|
5610
|
+
var modeCtrGladman = modeCtrGladman$1.exports;
|
|
5513
5611
|
|
|
5514
5612
|
var hasRequiredModeCtrGladman;
|
|
5515
5613
|
|
|
5516
5614
|
function requireModeCtrGladman () {
|
|
5517
|
-
if (hasRequiredModeCtrGladman) return modeCtrGladman.exports;
|
|
5615
|
+
if (hasRequiredModeCtrGladman) return modeCtrGladman$1.exports;
|
|
5518
5616
|
hasRequiredModeCtrGladman = 1;
|
|
5519
5617
|
(function (module, exports) {
|
|
5520
5618
|
(function (root, factory, undef) {
|
|
@@ -5522,7 +5620,7 @@ function requireModeCtrGladman () {
|
|
|
5522
5620
|
// CommonJS
|
|
5523
5621
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5524
5622
|
}
|
|
5525
|
-
}(
|
|
5623
|
+
}(modeCtrGladman, function (CryptoJS) {
|
|
5526
5624
|
|
|
5527
5625
|
/** @preserve
|
|
5528
5626
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
@@ -5625,16 +5723,18 @@ function requireModeCtrGladman () {
|
|
|
5625
5723
|
return CryptoJS.mode.CTRGladman;
|
|
5626
5724
|
|
|
5627
5725
|
}));
|
|
5628
|
-
} (modeCtrGladman));
|
|
5629
|
-
return modeCtrGladman.exports;
|
|
5726
|
+
} (modeCtrGladman$1));
|
|
5727
|
+
return modeCtrGladman$1.exports;
|
|
5630
5728
|
}
|
|
5631
5729
|
|
|
5632
|
-
var modeOfb = {exports: {}};
|
|
5730
|
+
var modeOfb$1 = {exports: {}};
|
|
5731
|
+
|
|
5732
|
+
var modeOfb = modeOfb$1.exports;
|
|
5633
5733
|
|
|
5634
5734
|
var hasRequiredModeOfb;
|
|
5635
5735
|
|
|
5636
5736
|
function requireModeOfb () {
|
|
5637
|
-
if (hasRequiredModeOfb) return modeOfb.exports;
|
|
5737
|
+
if (hasRequiredModeOfb) return modeOfb$1.exports;
|
|
5638
5738
|
hasRequiredModeOfb = 1;
|
|
5639
5739
|
(function (module, exports) {
|
|
5640
5740
|
(function (root, factory, undef) {
|
|
@@ -5642,7 +5742,7 @@ function requireModeOfb () {
|
|
|
5642
5742
|
// CommonJS
|
|
5643
5743
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5644
5744
|
}
|
|
5645
|
-
}(
|
|
5745
|
+
}(modeOfb, function (CryptoJS) {
|
|
5646
5746
|
|
|
5647
5747
|
/**
|
|
5648
5748
|
* Output Feedback block mode.
|
|
@@ -5683,16 +5783,18 @@ function requireModeOfb () {
|
|
|
5683
5783
|
return CryptoJS.mode.OFB;
|
|
5684
5784
|
|
|
5685
5785
|
}));
|
|
5686
|
-
} (modeOfb));
|
|
5687
|
-
return modeOfb.exports;
|
|
5786
|
+
} (modeOfb$1));
|
|
5787
|
+
return modeOfb$1.exports;
|
|
5688
5788
|
}
|
|
5689
5789
|
|
|
5690
|
-
var modeEcb = {exports: {}};
|
|
5790
|
+
var modeEcb$1 = {exports: {}};
|
|
5791
|
+
|
|
5792
|
+
var modeEcb = modeEcb$1.exports;
|
|
5691
5793
|
|
|
5692
5794
|
var hasRequiredModeEcb;
|
|
5693
5795
|
|
|
5694
5796
|
function requireModeEcb () {
|
|
5695
|
-
if (hasRequiredModeEcb) return modeEcb.exports;
|
|
5797
|
+
if (hasRequiredModeEcb) return modeEcb$1.exports;
|
|
5696
5798
|
hasRequiredModeEcb = 1;
|
|
5697
5799
|
(function (module, exports) {
|
|
5698
5800
|
(function (root, factory, undef) {
|
|
@@ -5700,7 +5802,7 @@ function requireModeEcb () {
|
|
|
5700
5802
|
// CommonJS
|
|
5701
5803
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5702
5804
|
}
|
|
5703
|
-
}(
|
|
5805
|
+
}(modeEcb, function (CryptoJS) {
|
|
5704
5806
|
|
|
5705
5807
|
/**
|
|
5706
5808
|
* Electronic Codebook block mode.
|
|
@@ -5727,16 +5829,18 @@ function requireModeEcb () {
|
|
|
5727
5829
|
return CryptoJS.mode.ECB;
|
|
5728
5830
|
|
|
5729
5831
|
}));
|
|
5730
|
-
} (modeEcb));
|
|
5731
|
-
return modeEcb.exports;
|
|
5832
|
+
} (modeEcb$1));
|
|
5833
|
+
return modeEcb$1.exports;
|
|
5732
5834
|
}
|
|
5733
5835
|
|
|
5734
|
-
var padAnsix923 = {exports: {}};
|
|
5836
|
+
var padAnsix923$1 = {exports: {}};
|
|
5837
|
+
|
|
5838
|
+
var padAnsix923 = padAnsix923$1.exports;
|
|
5735
5839
|
|
|
5736
5840
|
var hasRequiredPadAnsix923;
|
|
5737
5841
|
|
|
5738
5842
|
function requirePadAnsix923 () {
|
|
5739
|
-
if (hasRequiredPadAnsix923) return padAnsix923.exports;
|
|
5843
|
+
if (hasRequiredPadAnsix923) return padAnsix923$1.exports;
|
|
5740
5844
|
hasRequiredPadAnsix923 = 1;
|
|
5741
5845
|
(function (module, exports) {
|
|
5742
5846
|
(function (root, factory, undef) {
|
|
@@ -5744,7 +5848,7 @@ function requirePadAnsix923 () {
|
|
|
5744
5848
|
// CommonJS
|
|
5745
5849
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5746
5850
|
}
|
|
5747
|
-
}(
|
|
5851
|
+
}(padAnsix923, function (CryptoJS) {
|
|
5748
5852
|
|
|
5749
5853
|
/**
|
|
5750
5854
|
* ANSI X.923 padding strategy.
|
|
@@ -5780,16 +5884,18 @@ function requirePadAnsix923 () {
|
|
|
5780
5884
|
return CryptoJS.pad.Ansix923;
|
|
5781
5885
|
|
|
5782
5886
|
}));
|
|
5783
|
-
} (padAnsix923));
|
|
5784
|
-
return padAnsix923.exports;
|
|
5887
|
+
} (padAnsix923$1));
|
|
5888
|
+
return padAnsix923$1.exports;
|
|
5785
5889
|
}
|
|
5786
5890
|
|
|
5787
|
-
var padIso10126 = {exports: {}};
|
|
5891
|
+
var padIso10126$1 = {exports: {}};
|
|
5892
|
+
|
|
5893
|
+
var padIso10126 = padIso10126$1.exports;
|
|
5788
5894
|
|
|
5789
5895
|
var hasRequiredPadIso10126;
|
|
5790
5896
|
|
|
5791
5897
|
function requirePadIso10126 () {
|
|
5792
|
-
if (hasRequiredPadIso10126) return padIso10126.exports;
|
|
5898
|
+
if (hasRequiredPadIso10126) return padIso10126$1.exports;
|
|
5793
5899
|
hasRequiredPadIso10126 = 1;
|
|
5794
5900
|
(function (module, exports) {
|
|
5795
5901
|
(function (root, factory, undef) {
|
|
@@ -5797,7 +5903,7 @@ function requirePadIso10126 () {
|
|
|
5797
5903
|
// CommonJS
|
|
5798
5904
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5799
5905
|
}
|
|
5800
|
-
}(
|
|
5906
|
+
}(padIso10126, function (CryptoJS) {
|
|
5801
5907
|
|
|
5802
5908
|
/**
|
|
5803
5909
|
* ISO 10126 padding strategy.
|
|
@@ -5828,16 +5934,18 @@ function requirePadIso10126 () {
|
|
|
5828
5934
|
return CryptoJS.pad.Iso10126;
|
|
5829
5935
|
|
|
5830
5936
|
}));
|
|
5831
|
-
} (padIso10126));
|
|
5832
|
-
return padIso10126.exports;
|
|
5937
|
+
} (padIso10126$1));
|
|
5938
|
+
return padIso10126$1.exports;
|
|
5833
5939
|
}
|
|
5834
5940
|
|
|
5835
|
-
var padIso97971 = {exports: {}};
|
|
5941
|
+
var padIso97971$1 = {exports: {}};
|
|
5942
|
+
|
|
5943
|
+
var padIso97971 = padIso97971$1.exports;
|
|
5836
5944
|
|
|
5837
5945
|
var hasRequiredPadIso97971;
|
|
5838
5946
|
|
|
5839
5947
|
function requirePadIso97971 () {
|
|
5840
|
-
if (hasRequiredPadIso97971) return padIso97971.exports;
|
|
5948
|
+
if (hasRequiredPadIso97971) return padIso97971$1.exports;
|
|
5841
5949
|
hasRequiredPadIso97971 = 1;
|
|
5842
5950
|
(function (module, exports) {
|
|
5843
5951
|
(function (root, factory, undef) {
|
|
@@ -5845,7 +5953,7 @@ function requirePadIso97971 () {
|
|
|
5845
5953
|
// CommonJS
|
|
5846
5954
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5847
5955
|
}
|
|
5848
|
-
}(
|
|
5956
|
+
}(padIso97971, function (CryptoJS) {
|
|
5849
5957
|
|
|
5850
5958
|
/**
|
|
5851
5959
|
* ISO/IEC 9797-1 Padding Method 2.
|
|
@@ -5872,16 +5980,18 @@ function requirePadIso97971 () {
|
|
|
5872
5980
|
return CryptoJS.pad.Iso97971;
|
|
5873
5981
|
|
|
5874
5982
|
}));
|
|
5875
|
-
} (padIso97971));
|
|
5876
|
-
return padIso97971.exports;
|
|
5983
|
+
} (padIso97971$1));
|
|
5984
|
+
return padIso97971$1.exports;
|
|
5877
5985
|
}
|
|
5878
5986
|
|
|
5879
|
-
var padZeropadding = {exports: {}};
|
|
5987
|
+
var padZeropadding$1 = {exports: {}};
|
|
5988
|
+
|
|
5989
|
+
var padZeropadding = padZeropadding$1.exports;
|
|
5880
5990
|
|
|
5881
5991
|
var hasRequiredPadZeropadding;
|
|
5882
5992
|
|
|
5883
5993
|
function requirePadZeropadding () {
|
|
5884
|
-
if (hasRequiredPadZeropadding) return padZeropadding.exports;
|
|
5994
|
+
if (hasRequiredPadZeropadding) return padZeropadding$1.exports;
|
|
5885
5995
|
hasRequiredPadZeropadding = 1;
|
|
5886
5996
|
(function (module, exports) {
|
|
5887
5997
|
(function (root, factory, undef) {
|
|
@@ -5889,7 +5999,7 @@ function requirePadZeropadding () {
|
|
|
5889
5999
|
// CommonJS
|
|
5890
6000
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5891
6001
|
}
|
|
5892
|
-
}(
|
|
6002
|
+
}(padZeropadding, function (CryptoJS) {
|
|
5893
6003
|
|
|
5894
6004
|
/**
|
|
5895
6005
|
* Zero padding strategy.
|
|
@@ -5923,16 +6033,18 @@ function requirePadZeropadding () {
|
|
|
5923
6033
|
return CryptoJS.pad.ZeroPadding;
|
|
5924
6034
|
|
|
5925
6035
|
}));
|
|
5926
|
-
} (padZeropadding));
|
|
5927
|
-
return padZeropadding.exports;
|
|
6036
|
+
} (padZeropadding$1));
|
|
6037
|
+
return padZeropadding$1.exports;
|
|
5928
6038
|
}
|
|
5929
6039
|
|
|
5930
|
-
var padNopadding = {exports: {}};
|
|
6040
|
+
var padNopadding$1 = {exports: {}};
|
|
6041
|
+
|
|
6042
|
+
var padNopadding = padNopadding$1.exports;
|
|
5931
6043
|
|
|
5932
6044
|
var hasRequiredPadNopadding;
|
|
5933
6045
|
|
|
5934
6046
|
function requirePadNopadding () {
|
|
5935
|
-
if (hasRequiredPadNopadding) return padNopadding.exports;
|
|
6047
|
+
if (hasRequiredPadNopadding) return padNopadding$1.exports;
|
|
5936
6048
|
hasRequiredPadNopadding = 1;
|
|
5937
6049
|
(function (module, exports) {
|
|
5938
6050
|
(function (root, factory, undef) {
|
|
@@ -5940,7 +6052,7 @@ function requirePadNopadding () {
|
|
|
5940
6052
|
// CommonJS
|
|
5941
6053
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5942
6054
|
}
|
|
5943
|
-
}(
|
|
6055
|
+
}(padNopadding, function (CryptoJS) {
|
|
5944
6056
|
|
|
5945
6057
|
/**
|
|
5946
6058
|
* A noop padding strategy.
|
|
@@ -5957,16 +6069,18 @@ function requirePadNopadding () {
|
|
|
5957
6069
|
return CryptoJS.pad.NoPadding;
|
|
5958
6070
|
|
|
5959
6071
|
}));
|
|
5960
|
-
} (padNopadding));
|
|
5961
|
-
return padNopadding.exports;
|
|
6072
|
+
} (padNopadding$1));
|
|
6073
|
+
return padNopadding$1.exports;
|
|
5962
6074
|
}
|
|
5963
6075
|
|
|
5964
|
-
var formatHex = {exports: {}};
|
|
6076
|
+
var formatHex$1 = {exports: {}};
|
|
6077
|
+
|
|
6078
|
+
var formatHex = formatHex$1.exports;
|
|
5965
6079
|
|
|
5966
6080
|
var hasRequiredFormatHex;
|
|
5967
6081
|
|
|
5968
6082
|
function requireFormatHex () {
|
|
5969
|
-
if (hasRequiredFormatHex) return formatHex.exports;
|
|
6083
|
+
if (hasRequiredFormatHex) return formatHex$1.exports;
|
|
5970
6084
|
hasRequiredFormatHex = 1;
|
|
5971
6085
|
(function (module, exports) {
|
|
5972
6086
|
(function (root, factory, undef) {
|
|
@@ -5974,7 +6088,7 @@ function requireFormatHex () {
|
|
|
5974
6088
|
// CommonJS
|
|
5975
6089
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
5976
6090
|
}
|
|
5977
|
-
}(
|
|
6091
|
+
}(formatHex, function (CryptoJS) {
|
|
5978
6092
|
|
|
5979
6093
|
(function (undefined$1) {
|
|
5980
6094
|
// Shortcuts
|
|
@@ -6027,16 +6141,18 @@ function requireFormatHex () {
|
|
|
6027
6141
|
return CryptoJS.format.Hex;
|
|
6028
6142
|
|
|
6029
6143
|
}));
|
|
6030
|
-
} (formatHex));
|
|
6031
|
-
return formatHex.exports;
|
|
6144
|
+
} (formatHex$1));
|
|
6145
|
+
return formatHex$1.exports;
|
|
6032
6146
|
}
|
|
6033
6147
|
|
|
6034
|
-
var aes = {exports: {}};
|
|
6148
|
+
var aes$1 = {exports: {}};
|
|
6149
|
+
|
|
6150
|
+
var aes = aes$1.exports;
|
|
6035
6151
|
|
|
6036
6152
|
var hasRequiredAes;
|
|
6037
6153
|
|
|
6038
6154
|
function requireAes () {
|
|
6039
|
-
if (hasRequiredAes) return aes.exports;
|
|
6155
|
+
if (hasRequiredAes) return aes$1.exports;
|
|
6040
6156
|
hasRequiredAes = 1;
|
|
6041
6157
|
(function (module, exports) {
|
|
6042
6158
|
(function (root, factory, undef) {
|
|
@@ -6044,7 +6160,7 @@ function requireAes () {
|
|
|
6044
6160
|
// CommonJS
|
|
6045
6161
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
6046
6162
|
}
|
|
6047
|
-
}(
|
|
6163
|
+
}(aes, function (CryptoJS) {
|
|
6048
6164
|
|
|
6049
6165
|
(function () {
|
|
6050
6166
|
// Shortcuts
|
|
@@ -6265,16 +6381,18 @@ function requireAes () {
|
|
|
6265
6381
|
return CryptoJS.AES;
|
|
6266
6382
|
|
|
6267
6383
|
}));
|
|
6268
|
-
} (aes));
|
|
6269
|
-
return aes.exports;
|
|
6384
|
+
} (aes$1));
|
|
6385
|
+
return aes$1.exports;
|
|
6270
6386
|
}
|
|
6271
6387
|
|
|
6272
|
-
var tripledes = {exports: {}};
|
|
6388
|
+
var tripledes$1 = {exports: {}};
|
|
6389
|
+
|
|
6390
|
+
var tripledes = tripledes$1.exports;
|
|
6273
6391
|
|
|
6274
6392
|
var hasRequiredTripledes;
|
|
6275
6393
|
|
|
6276
6394
|
function requireTripledes () {
|
|
6277
|
-
if (hasRequiredTripledes) return tripledes.exports;
|
|
6395
|
+
if (hasRequiredTripledes) return tripledes$1.exports;
|
|
6278
6396
|
hasRequiredTripledes = 1;
|
|
6279
6397
|
(function (module, exports) {
|
|
6280
6398
|
(function (root, factory, undef) {
|
|
@@ -6282,7 +6400,7 @@ function requireTripledes () {
|
|
|
6282
6400
|
// CommonJS
|
|
6283
6401
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
6284
6402
|
}
|
|
6285
|
-
}(
|
|
6403
|
+
}(tripledes, function (CryptoJS) {
|
|
6286
6404
|
|
|
6287
6405
|
(function () {
|
|
6288
6406
|
// Shortcuts
|
|
@@ -7048,16 +7166,18 @@ function requireTripledes () {
|
|
|
7048
7166
|
return CryptoJS.TripleDES;
|
|
7049
7167
|
|
|
7050
7168
|
}));
|
|
7051
|
-
} (tripledes));
|
|
7052
|
-
return tripledes.exports;
|
|
7169
|
+
} (tripledes$1));
|
|
7170
|
+
return tripledes$1.exports;
|
|
7053
7171
|
}
|
|
7054
7172
|
|
|
7055
|
-
var rc4 = {exports: {}};
|
|
7173
|
+
var rc4$1 = {exports: {}};
|
|
7174
|
+
|
|
7175
|
+
var rc4 = rc4$1.exports;
|
|
7056
7176
|
|
|
7057
7177
|
var hasRequiredRc4;
|
|
7058
7178
|
|
|
7059
7179
|
function requireRc4 () {
|
|
7060
|
-
if (hasRequiredRc4) return rc4.exports;
|
|
7180
|
+
if (hasRequiredRc4) return rc4$1.exports;
|
|
7061
7181
|
hasRequiredRc4 = 1;
|
|
7062
7182
|
(function (module, exports) {
|
|
7063
7183
|
(function (root, factory, undef) {
|
|
@@ -7065,7 +7185,7 @@ function requireRc4 () {
|
|
|
7065
7185
|
// CommonJS
|
|
7066
7186
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
7067
7187
|
}
|
|
7068
|
-
}(
|
|
7188
|
+
}(rc4, function (CryptoJS) {
|
|
7069
7189
|
|
|
7070
7190
|
(function () {
|
|
7071
7191
|
// Shortcuts
|
|
@@ -7191,16 +7311,18 @@ function requireRc4 () {
|
|
|
7191
7311
|
return CryptoJS.RC4;
|
|
7192
7312
|
|
|
7193
7313
|
}));
|
|
7194
|
-
} (rc4));
|
|
7195
|
-
return rc4.exports;
|
|
7314
|
+
} (rc4$1));
|
|
7315
|
+
return rc4$1.exports;
|
|
7196
7316
|
}
|
|
7197
7317
|
|
|
7198
|
-
var rabbit = {exports: {}};
|
|
7318
|
+
var rabbit$1 = {exports: {}};
|
|
7319
|
+
|
|
7320
|
+
var rabbit = rabbit$1.exports;
|
|
7199
7321
|
|
|
7200
7322
|
var hasRequiredRabbit;
|
|
7201
7323
|
|
|
7202
7324
|
function requireRabbit () {
|
|
7203
|
-
if (hasRequiredRabbit) return rabbit.exports;
|
|
7325
|
+
if (hasRequiredRabbit) return rabbit$1.exports;
|
|
7204
7326
|
hasRequiredRabbit = 1;
|
|
7205
7327
|
(function (module, exports) {
|
|
7206
7328
|
(function (root, factory, undef) {
|
|
@@ -7208,7 +7330,7 @@ function requireRabbit () {
|
|
|
7208
7330
|
// CommonJS
|
|
7209
7331
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
7210
7332
|
}
|
|
7211
|
-
}(
|
|
7333
|
+
}(rabbit, function (CryptoJS) {
|
|
7212
7334
|
|
|
7213
7335
|
(function () {
|
|
7214
7336
|
// Shortcuts
|
|
@@ -7387,16 +7509,18 @@ function requireRabbit () {
|
|
|
7387
7509
|
return CryptoJS.Rabbit;
|
|
7388
7510
|
|
|
7389
7511
|
}));
|
|
7390
|
-
} (rabbit));
|
|
7391
|
-
return rabbit.exports;
|
|
7512
|
+
} (rabbit$1));
|
|
7513
|
+
return rabbit$1.exports;
|
|
7392
7514
|
}
|
|
7393
7515
|
|
|
7394
|
-
var rabbitLegacy = {exports: {}};
|
|
7516
|
+
var rabbitLegacy$1 = {exports: {}};
|
|
7517
|
+
|
|
7518
|
+
var rabbitLegacy = rabbitLegacy$1.exports;
|
|
7395
7519
|
|
|
7396
7520
|
var hasRequiredRabbitLegacy;
|
|
7397
7521
|
|
|
7398
7522
|
function requireRabbitLegacy () {
|
|
7399
|
-
if (hasRequiredRabbitLegacy) return rabbitLegacy.exports;
|
|
7523
|
+
if (hasRequiredRabbitLegacy) return rabbitLegacy$1.exports;
|
|
7400
7524
|
hasRequiredRabbitLegacy = 1;
|
|
7401
7525
|
(function (module, exports) {
|
|
7402
7526
|
(function (root, factory, undef) {
|
|
@@ -7404,7 +7528,7 @@ function requireRabbitLegacy () {
|
|
|
7404
7528
|
// CommonJS
|
|
7405
7529
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
7406
7530
|
}
|
|
7407
|
-
}(
|
|
7531
|
+
}(rabbitLegacy, function (CryptoJS) {
|
|
7408
7532
|
|
|
7409
7533
|
(function () {
|
|
7410
7534
|
// Shortcuts
|
|
@@ -7581,16 +7705,18 @@ function requireRabbitLegacy () {
|
|
|
7581
7705
|
return CryptoJS.RabbitLegacy;
|
|
7582
7706
|
|
|
7583
7707
|
}));
|
|
7584
|
-
} (rabbitLegacy));
|
|
7585
|
-
return rabbitLegacy.exports;
|
|
7708
|
+
} (rabbitLegacy$1));
|
|
7709
|
+
return rabbitLegacy$1.exports;
|
|
7586
7710
|
}
|
|
7587
7711
|
|
|
7588
|
-
var blowfish = {exports: {}};
|
|
7712
|
+
var blowfish$1 = {exports: {}};
|
|
7713
|
+
|
|
7714
|
+
var blowfish = blowfish$1.exports;
|
|
7589
7715
|
|
|
7590
7716
|
var hasRequiredBlowfish;
|
|
7591
7717
|
|
|
7592
7718
|
function requireBlowfish () {
|
|
7593
|
-
if (hasRequiredBlowfish) return blowfish.exports;
|
|
7719
|
+
if (hasRequiredBlowfish) return blowfish$1.exports;
|
|
7594
7720
|
hasRequiredBlowfish = 1;
|
|
7595
7721
|
(function (module, exports) {
|
|
7596
7722
|
(function (root, factory, undef) {
|
|
@@ -7598,7 +7724,7 @@ function requireBlowfish () {
|
|
|
7598
7724
|
// CommonJS
|
|
7599
7725
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
7600
7726
|
}
|
|
7601
|
-
}(
|
|
7727
|
+
}(blowfish, function (CryptoJS) {
|
|
7602
7728
|
|
|
7603
7729
|
(function () {
|
|
7604
7730
|
// Shortcuts
|
|
@@ -8056,24 +8182,33 @@ function requireBlowfish () {
|
|
|
8056
8182
|
return CryptoJS.Blowfish;
|
|
8057
8183
|
|
|
8058
8184
|
}));
|
|
8059
|
-
} (blowfish));
|
|
8060
|
-
return blowfish.exports;
|
|
8185
|
+
} (blowfish$1));
|
|
8186
|
+
return blowfish$1.exports;
|
|
8061
8187
|
}
|
|
8062
8188
|
|
|
8063
|
-
|
|
8189
|
+
var cryptoJs = cryptoJs$1.exports;
|
|
8190
|
+
|
|
8191
|
+
var hasRequiredCryptoJs;
|
|
8192
|
+
|
|
8193
|
+
function requireCryptoJs () {
|
|
8194
|
+
if (hasRequiredCryptoJs) return cryptoJs$1.exports;
|
|
8195
|
+
hasRequiredCryptoJs = 1;
|
|
8196
|
+
(function (module, exports) {
|
|
8064
8197
|
(function (root, factory, undef) {
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8198
|
+
{
|
|
8199
|
+
// CommonJS
|
|
8200
|
+
module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy(), requireBlowfish());
|
|
8201
|
+
}
|
|
8202
|
+
}(cryptoJs, function (CryptoJS) {
|
|
8070
8203
|
|
|
8071
|
-
|
|
8204
|
+
return CryptoJS;
|
|
8072
8205
|
|
|
8073
|
-
|
|
8074
|
-
} (cryptoJs));
|
|
8206
|
+
}));
|
|
8207
|
+
} (cryptoJs$1));
|
|
8208
|
+
return cryptoJs$1.exports;
|
|
8209
|
+
}
|
|
8075
8210
|
|
|
8076
|
-
var cryptoJsExports =
|
|
8211
|
+
var cryptoJsExports = requireCryptoJs();
|
|
8077
8212
|
var CryptoJS = /*@__PURE__*/getDefaultExportFromCjs(cryptoJsExports);
|
|
8078
8213
|
|
|
8079
8214
|
/*!
|
|
@@ -32746,16 +32881,11 @@ var validateOnBoardingSignerData = function validateOnBoardingSignerData(signerD
|
|
|
32746
32881
|
}
|
|
32747
32882
|
});
|
|
32748
32883
|
};
|
|
32749
|
-
var validateCsr = function validateCsr(
|
|
32750
|
-
|
|
32751
|
-
|
|
32752
|
-
|
|
32753
|
-
|
|
32754
|
-
if (typeof csr !== "string" || csr.trim() === "") {
|
|
32755
|
-
throw new ApacuanaAPIError("El CSR debe ser una cadena de texto válida y no puede estar vacía.", 400, "INVALID_PARAMETER_FORMAT");
|
|
32756
|
-
}
|
|
32757
|
-
if (!base64Regex.test(csr)) {
|
|
32758
|
-
throw new ApacuanaAPIError("El CSR debe estar codificado en formato base64 válido.", 400, "INVALID_PARAMETER_FORMAT");
|
|
32884
|
+
var validateCsr = function validateCsr(encryptedCSR) {
|
|
32885
|
+
if (!encryptedCSR || _typeof(encryptedCSR) !== "object" || !encryptedCSR.csr || typeof encryptedCSR.csr !== "string" || encryptedCSR.csr.trim() === "") {
|
|
32886
|
+
throw new ApacuanaAPIError('The "encryptedCSR" parameter is required and must be an object ' + 'with a non-empty "csr" string property.', 400,
|
|
32887
|
+
// Bad Request
|
|
32888
|
+
"INVALID_PARAMETER_FORMAT");
|
|
32759
32889
|
}
|
|
32760
32890
|
};
|
|
32761
32891
|
var validateGetDocsData = function validateGetDocsData(data) {
|
|
@@ -32806,6 +32936,7 @@ var helpers = {
|
|
|
32806
32936
|
/**
|
|
32807
32937
|
* @typedef {object} GenerateCertResponse
|
|
32808
32938
|
* @property {string} cert - El certificado generado en formato string.
|
|
32939
|
+
* @property {string} certifiedid - El ID del certificado generado.
|
|
32809
32940
|
* @property {boolean} success - Indica si la operación fue exitosa.
|
|
32810
32941
|
*/
|
|
32811
32942
|
|
|
@@ -32815,51 +32946,53 @@ var helpers = {
|
|
|
32815
32946
|
* @property {boolean} success - Indica si la operación fue exitosa.
|
|
32816
32947
|
*/
|
|
32817
32948
|
|
|
32949
|
+
/**
|
|
32950
|
+
* @typedef {object} EncryptedCSRObject
|
|
32951
|
+
* @property {string} csr - The encrypted Certificate Signing Request.
|
|
32952
|
+
*/
|
|
32953
|
+
|
|
32954
|
+
/**
|
|
32955
|
+
* @param {EncryptedCSRObject} encryptedCSR
|
|
32956
|
+
*/
|
|
32818
32957
|
var generateCertOnBoarding = /*#__PURE__*/function () {
|
|
32819
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
32820
|
-
var
|
|
32821
|
-
encryptedCSR,
|
|
32822
|
-
response,
|
|
32823
|
-
cert,
|
|
32824
|
-
_args = arguments,
|
|
32825
|
-
_t;
|
|
32958
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(encryptedCSR) {
|
|
32959
|
+
var response, cert, certifiedid, _t;
|
|
32826
32960
|
return _regenerator().w(function (_context) {
|
|
32827
32961
|
while (1) switch (_context.p = _context.n) {
|
|
32828
32962
|
case 0:
|
|
32829
|
-
|
|
32830
|
-
_context.
|
|
32831
|
-
encryptedCSR = helpers.encryptedCsr(csr);
|
|
32832
|
-
_context.n = 2;
|
|
32963
|
+
_context.p = 0;
|
|
32964
|
+
_context.n = 1;
|
|
32833
32965
|
return httpRequest("services/api/register/certificate", encryptedCSR, "POST");
|
|
32834
|
-
case
|
|
32966
|
+
case 1:
|
|
32835
32967
|
response = _context.v;
|
|
32836
|
-
cert = response.cert;
|
|
32837
|
-
if (cert) {
|
|
32838
|
-
_context.n =
|
|
32968
|
+
cert = response.cert, certifiedid = response.certifiedid;
|
|
32969
|
+
if (!(!cert || !certifiedid)) {
|
|
32970
|
+
_context.n = 2;
|
|
32839
32971
|
break;
|
|
32840
32972
|
}
|
|
32841
32973
|
throw new ApacuanaAPIError("The API response does not contain the certificate.", response.status, "INVALID_API_RESPONSE");
|
|
32842
|
-
case
|
|
32974
|
+
case 2:
|
|
32843
32975
|
return _context.a(2, {
|
|
32844
32976
|
cert: cert,
|
|
32977
|
+
certifiedid: certifiedid,
|
|
32845
32978
|
success: true
|
|
32846
32979
|
});
|
|
32847
|
-
case
|
|
32848
|
-
_context.p =
|
|
32980
|
+
case 3:
|
|
32981
|
+
_context.p = 3;
|
|
32849
32982
|
_t = _context.v;
|
|
32850
32983
|
if (!(_t instanceof ApacuanaAPIError)) {
|
|
32851
|
-
_context.n =
|
|
32984
|
+
_context.n = 4;
|
|
32852
32985
|
break;
|
|
32853
32986
|
}
|
|
32854
32987
|
throw _t;
|
|
32855
|
-
case
|
|
32988
|
+
case 4:
|
|
32856
32989
|
throw new Error("Certificate generation failed: ".concat(_t.message));
|
|
32857
|
-
case
|
|
32990
|
+
case 5:
|
|
32858
32991
|
return _context.a(2);
|
|
32859
32992
|
}
|
|
32860
|
-
}, _callee, null, [[
|
|
32993
|
+
}, _callee, null, [[0, 3]]);
|
|
32861
32994
|
}));
|
|
32862
|
-
return function generateCertOnBoarding() {
|
|
32995
|
+
return function generateCertOnBoarding(_x) {
|
|
32863
32996
|
return _ref.apply(this, arguments);
|
|
32864
32997
|
};
|
|
32865
32998
|
}();
|
|
@@ -32881,28 +33014,24 @@ var generateCertOnPremise = /*#__PURE__*/function () {
|
|
|
32881
33014
|
|
|
32882
33015
|
/**
|
|
32883
33016
|
* Generates a digital certificate.
|
|
32884
|
-
* @param {
|
|
33017
|
+
* @param {EncryptedCSRObject} encryptedCSR - Certificate Signing Request (CSR) object.
|
|
32885
33018
|
* @returns {Promise<GenerateCertResponse>} Object with the generated certificate and a success indicator.
|
|
32886
33019
|
* @throws {ApacuanaAPIError} If the CSR is invalid, if the API response does not contain the certificate, or if the integration type is not supported.
|
|
32887
33020
|
* @throws {Error} If certificate generation fails for another reason.
|
|
32888
33021
|
*/
|
|
32889
33022
|
var generateCert = /*#__PURE__*/function () {
|
|
32890
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
32891
|
-
var
|
|
32892
|
-
_getConfig,
|
|
32893
|
-
integrationType,
|
|
32894
|
-
_args3 = arguments;
|
|
33023
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(encryptedCSR) {
|
|
33024
|
+
var _getConfig, integrationType;
|
|
32895
33025
|
return _regenerator().w(function (_context3) {
|
|
32896
33026
|
while (1) switch (_context3.n) {
|
|
32897
33027
|
case 0:
|
|
32898
|
-
csr = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : undefined;
|
|
32899
33028
|
_getConfig = getConfig(), integrationType = _getConfig.integrationType;
|
|
32900
|
-
helpers.validateCsr(
|
|
33029
|
+
helpers.validateCsr(encryptedCSR);
|
|
32901
33030
|
if (!(integrationType === INTEGRATION_TYPE.ONBOARDING)) {
|
|
32902
33031
|
_context3.n = 1;
|
|
32903
33032
|
break;
|
|
32904
33033
|
}
|
|
32905
|
-
return _context3.a(2, generateCertOnBoarding(
|
|
33034
|
+
return _context3.a(2, generateCertOnBoarding(encryptedCSR));
|
|
32906
33035
|
case 1:
|
|
32907
33036
|
if (!(integrationType === INTEGRATION_TYPE.ONPREMISE)) {
|
|
32908
33037
|
_context3.n = 2;
|
|
@@ -32916,7 +33045,7 @@ var generateCert = /*#__PURE__*/function () {
|
|
|
32916
33045
|
}
|
|
32917
33046
|
}, _callee3);
|
|
32918
33047
|
}));
|
|
32919
|
-
return function generateCert() {
|
|
33048
|
+
return function generateCert(_x2) {
|
|
32920
33049
|
return _ref3.apply(this, arguments);
|
|
32921
33050
|
};
|
|
32922
33051
|
}();
|
|
@@ -32952,7 +33081,6 @@ var getCertStatus = function getCertStatus() {
|
|
|
32952
33081
|
* Define la estructura de datos para añadir un firmante.
|
|
32953
33082
|
* @typedef {object} SignerData
|
|
32954
33083
|
* @property {string} docId - Identificador único del documento.
|
|
32955
|
-
* @property {Signer} signer - Objeto con la información del firmante.
|
|
32956
33084
|
*/
|
|
32957
33085
|
|
|
32958
33086
|
/**
|
|
@@ -33323,6 +33451,31 @@ var getDigest = /*#__PURE__*/function () {
|
|
|
33323
33451
|
* @returns {Promise<AddSignerResponse>} Una promesa que resuelve a un objeto con el resultado de la operación.
|
|
33324
33452
|
* @throws {ApacuanaAPIError} Si los datos del firmante son inválidos, la llamada a la API falla, o el tipo de integración no es soportado.
|
|
33325
33453
|
*/
|
|
33454
|
+
/**
|
|
33455
|
+
* @typedef {object} SignaturePosition
|
|
33456
|
+
* @property {number} page - The page number for the signature.
|
|
33457
|
+
* @property {number} x - The x-coordinate for the signature's position (from 0 to 1).
|
|
33458
|
+
* @property {number} y - The y-coordinate for the signature's position (from 0 to 1).
|
|
33459
|
+
*/
|
|
33460
|
+
|
|
33461
|
+
/**
|
|
33462
|
+
* @typedef {object} OnboardingSignerData
|
|
33463
|
+
* @property {string} name - The name of the document.
|
|
33464
|
+
* @property {string} reference - An external reference for the document.
|
|
33465
|
+
* @property {string} typedoc - The type of document of the signer (e.g., "V", "E", "J").
|
|
33466
|
+
* @property {string} doc - The document number of the signer.
|
|
33467
|
+
* @property {SignaturePosition[]} signature - An array of signature positions.
|
|
33468
|
+
*/
|
|
33469
|
+
|
|
33470
|
+
/**
|
|
33471
|
+
* Adds a new signer to the signature process.
|
|
33472
|
+
* This function acts as a dispatcher, delegating to the appropriate implementation
|
|
33473
|
+
* based on the configured integration type.
|
|
33474
|
+
*
|
|
33475
|
+
* @param {OnboardingSignerData | object} signerData - The signer's data. The structure depends on the integration type.
|
|
33476
|
+
* @returns {Promise<object>} The result from the API.
|
|
33477
|
+
* @throws {ApacuanaAPIError} If signerData is invalid or if the integration type is not supported.
|
|
33478
|
+
*/
|
|
33326
33479
|
var addSigner = /*#__PURE__*/function () {
|
|
33327
33480
|
var _ref1 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(signerData) {
|
|
33328
33481
|
var _getConfig4, integrationType;
|
|
@@ -33415,55 +33568,47 @@ var apacuana = {
|
|
|
33415
33568
|
return _regenerator().w(function (_context) {
|
|
33416
33569
|
while (1) switch (_context.p = _context.n) {
|
|
33417
33570
|
case 0:
|
|
33418
|
-
|
|
33419
|
-
console.log("-> apacuana-sdk: Iniciando configuración y validando usuario...");
|
|
33420
|
-
_context.p = 1;
|
|
33421
|
-
// 1. Guardar la configuración inicial
|
|
33571
|
+
_context.p = 0;
|
|
33422
33572
|
setConfig(config);
|
|
33423
|
-
|
|
33424
|
-
// 2. Inicializar el cliente HTTP con la configuración guardada
|
|
33425
33573
|
initHttpClient();
|
|
33426
|
-
|
|
33427
|
-
// 3. Opcional: Validar que la configuración se guardó correctamente
|
|
33428
33574
|
currentConfig = getConfig();
|
|
33429
33575
|
if (currentConfig.customerId) {
|
|
33430
|
-
_context.n =
|
|
33576
|
+
_context.n = 1;
|
|
33431
33577
|
break;
|
|
33432
33578
|
}
|
|
33433
33579
|
throw new Error("Apacuana SDK: La configuración de CustomerId no se ha guardado" + " correctamente.");
|
|
33434
|
-
case
|
|
33435
|
-
_context.n =
|
|
33580
|
+
case 1:
|
|
33581
|
+
_context.n = 2;
|
|
33436
33582
|
return getCustomer();
|
|
33437
|
-
case
|
|
33583
|
+
case 2:
|
|
33438
33584
|
_yield$getCustomer = _context.v;
|
|
33439
33585
|
token = _yield$getCustomer.token;
|
|
33440
33586
|
userData = _yield$getCustomer.userData;
|
|
33441
|
-
// Opcional: Guardar los detalles del usuario en la configuración
|
|
33442
|
-
// para acceso futuro si fuera necesario
|
|
33443
33587
|
setConfig(_objectSpread2(_objectSpread2({}, currentConfig), {}, {
|
|
33444
33588
|
token: token,
|
|
33445
33589
|
userData: userData
|
|
33446
33590
|
}));
|
|
33447
33591
|
setAuthToken(token);
|
|
33448
|
-
// eslint-disable-next-line no-console
|
|
33449
|
-
console.log("-> apacuana-sdk: Inicialización completa. Usuario validado:", token);
|
|
33450
33592
|
return _context.a(2, true);
|
|
33451
|
-
case
|
|
33452
|
-
_context.p =
|
|
33593
|
+
case 3:
|
|
33594
|
+
_context.p = 3;
|
|
33453
33595
|
_t = _context.v;
|
|
33454
33596
|
// eslint-disable-next-line no-console
|
|
33455
33597
|
console.error("Error durante la inicialización del SDK:", _t);
|
|
33456
33598
|
throw _t;
|
|
33457
|
-
case
|
|
33599
|
+
case 4:
|
|
33458
33600
|
return _context.a(2);
|
|
33459
33601
|
}
|
|
33460
|
-
}, _callee, null, [[
|
|
33602
|
+
}, _callee, null, [[0, 3]]);
|
|
33461
33603
|
}));
|
|
33462
33604
|
function init(_x) {
|
|
33463
33605
|
return _init.apply(this, arguments);
|
|
33464
33606
|
}
|
|
33465
33607
|
return init;
|
|
33466
33608
|
}(),
|
|
33609
|
+
close: function close() {
|
|
33610
|
+
return cleanConfig();
|
|
33611
|
+
},
|
|
33467
33612
|
getConfig: getConfig,
|
|
33468
33613
|
requestRevocation: requestRevocation,
|
|
33469
33614
|
getCertStatus: getCertStatus,
|
|
@@ -33472,7 +33617,8 @@ var apacuana = {
|
|
|
33472
33617
|
getDocs: getDocs,
|
|
33473
33618
|
generateCert: generateCert,
|
|
33474
33619
|
signDocument: signDocument,
|
|
33475
|
-
getDigest: getDigest
|
|
33620
|
+
getDigest: getDigest,
|
|
33621
|
+
getRevocationReasons: getRevocationReasons
|
|
33476
33622
|
};
|
|
33477
33623
|
|
|
33478
33624
|
export { apacuana as default };
|