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