@peculiar/certificates-viewer 3.3.0 → 3.3.1
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/dist/cjs/{certification_request-e1997ebf.js → certification_request-50ce61b3.js} +124 -146
- package/dist/cjs/{crl-f1ee43bc.js → crl-0c15e04a.js} +2 -2
- package/dist/cjs/{l10n-638a7577.js → l10n-4eaa5263.js} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -3
- package/dist/cjs/{public_key-ba538d77.js → public_key-2b73778a.js} +2 -2
- package/dist/cjs/{x509_certificate-42b478d2.js → x509_certificate-c94ce29e.js} +2 -2
- package/dist/collection/crypto/utils.js +5 -4
- package/dist/esm/{certification_request-5d982d92.js → certification_request-5b5c2fa2.js} +124 -146
- package/dist/esm/{crl-f2110716.js → crl-10d4db54.js} +2 -2
- package/dist/esm/l10n-116c79fa.js +163 -0
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +4 -4
- package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -3
- package/dist/esm/{public_key-0a3091a5.js → public_key-c1e6801e.js} +2 -2
- package/dist/esm/{x509_certificate-6b243207.js → x509_certificate-61126913.js} +2 -2
- package/dist/peculiar/{p-34e2d6be.entry.js → p-10aa0b03.entry.js} +2 -2
- package/dist/peculiar/{p-db6e24c6.js → p-309fdd02.js} +1 -1
- package/dist/peculiar/{p-86116b1f.entry.js → p-318a1e9f.entry.js} +1 -1
- package/dist/peculiar/{p-f8dc3232.js → p-53aac672.js} +1 -1
- package/dist/peculiar/{p-3aea9dde.js → p-5a898f51.js} +1 -1
- package/dist/peculiar/{p-49ab6f8c.entry.js → p-652f77d0.entry.js} +1 -1
- package/dist/peculiar/{p-e535a666.entry.js → p-7ef69178.entry.js} +1 -1
- package/dist/peculiar/{p-bce2bbe0.js → p-bbf0fd6c.js} +7 -7
- package/dist/peculiar/p-ed58acd0.js +12 -0
- package/dist/peculiar/{p-ca0c34ca.entry.js → p-ff867be1.entry.js} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/package.json +19 -19
- package/dist/esm/l10n-da0dd100.js +0 -163
- package/dist/peculiar/p-35e7a514.js +0 -12
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
const download = require('./download-a97f4cb2.js');
|
|
7
|
-
require('./l10n-
|
|
7
|
+
require('./l10n-4eaa5263.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -3385,6 +3385,102 @@ var AsnPropTypes;
|
|
|
3385
3385
|
AsnPropTypes[AsnPropTypes["Null"] = 27] = "Null";
|
|
3386
3386
|
})(AsnPropTypes || (AsnPropTypes = {}));
|
|
3387
3387
|
|
|
3388
|
+
class BitString {
|
|
3389
|
+
constructor(params, unusedBits = 0) {
|
|
3390
|
+
this.unusedBits = 0;
|
|
3391
|
+
this.value = new ArrayBuffer(0);
|
|
3392
|
+
if (params) {
|
|
3393
|
+
if (typeof params === "number") {
|
|
3394
|
+
this.fromNumber(params);
|
|
3395
|
+
}
|
|
3396
|
+
else if (download.build.BufferSourceConverter.isBufferSource(params)) {
|
|
3397
|
+
this.unusedBits = unusedBits;
|
|
3398
|
+
this.value = download.build.BufferSourceConverter.toArrayBuffer(params);
|
|
3399
|
+
}
|
|
3400
|
+
else {
|
|
3401
|
+
throw TypeError("Unsupported type of 'params' argument for BitString");
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
fromASN(asn) {
|
|
3406
|
+
if (!(asn instanceof BitString$1)) {
|
|
3407
|
+
throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");
|
|
3408
|
+
}
|
|
3409
|
+
this.unusedBits = asn.valueBlock.unusedBits;
|
|
3410
|
+
this.value = asn.valueBlock.valueHex;
|
|
3411
|
+
return this;
|
|
3412
|
+
}
|
|
3413
|
+
toASN() {
|
|
3414
|
+
return new BitString$1({ unusedBits: this.unusedBits, valueHex: this.value });
|
|
3415
|
+
}
|
|
3416
|
+
toSchema(name) {
|
|
3417
|
+
return new BitString$1({ name });
|
|
3418
|
+
}
|
|
3419
|
+
toNumber() {
|
|
3420
|
+
let res = "";
|
|
3421
|
+
const uintArray = new Uint8Array(this.value);
|
|
3422
|
+
for (const octet of uintArray) {
|
|
3423
|
+
res += octet.toString(2).padStart(8, "0");
|
|
3424
|
+
}
|
|
3425
|
+
res = res.split("").reverse().join("");
|
|
3426
|
+
if (this.unusedBits) {
|
|
3427
|
+
res = res.slice(this.unusedBits).padStart(this.unusedBits, "0");
|
|
3428
|
+
}
|
|
3429
|
+
return parseInt(res, 2);
|
|
3430
|
+
}
|
|
3431
|
+
fromNumber(value) {
|
|
3432
|
+
let bits = value.toString(2);
|
|
3433
|
+
const octetSize = (bits.length + 7) >> 3;
|
|
3434
|
+
this.unusedBits = (octetSize << 3) - bits.length;
|
|
3435
|
+
const octets = new Uint8Array(octetSize);
|
|
3436
|
+
bits = bits.padStart(octetSize << 3, "0").split("").reverse().join("");
|
|
3437
|
+
let index = 0;
|
|
3438
|
+
while (index < octetSize) {
|
|
3439
|
+
octets[index] = parseInt(bits.slice(index << 3, (index << 3) + 8), 2);
|
|
3440
|
+
index++;
|
|
3441
|
+
}
|
|
3442
|
+
this.value = octets.buffer;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
class OctetString {
|
|
3447
|
+
constructor(param) {
|
|
3448
|
+
if (typeof param === "number") {
|
|
3449
|
+
this.buffer = new ArrayBuffer(param);
|
|
3450
|
+
}
|
|
3451
|
+
else {
|
|
3452
|
+
if (download.build.BufferSourceConverter.isBufferSource(param)) {
|
|
3453
|
+
this.buffer = download.build.BufferSourceConverter.toArrayBuffer(param);
|
|
3454
|
+
}
|
|
3455
|
+
else if (Array.isArray(param)) {
|
|
3456
|
+
this.buffer = new Uint8Array(param);
|
|
3457
|
+
}
|
|
3458
|
+
else {
|
|
3459
|
+
this.buffer = new ArrayBuffer(0);
|
|
3460
|
+
}
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
get byteLength() {
|
|
3464
|
+
return this.buffer.byteLength;
|
|
3465
|
+
}
|
|
3466
|
+
get byteOffset() {
|
|
3467
|
+
return 0;
|
|
3468
|
+
}
|
|
3469
|
+
fromASN(asn) {
|
|
3470
|
+
if (!(asn instanceof OctetString$1)) {
|
|
3471
|
+
throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
|
|
3472
|
+
}
|
|
3473
|
+
this.buffer = asn.valueBlock.valueHex;
|
|
3474
|
+
return this;
|
|
3475
|
+
}
|
|
3476
|
+
toASN() {
|
|
3477
|
+
return new OctetString$1({ valueHex: this.buffer });
|
|
3478
|
+
}
|
|
3479
|
+
toSchema(name) {
|
|
3480
|
+
return new OctetString$1({ name });
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3388
3484
|
const AsnAnyConverter = {
|
|
3389
3485
|
fromASN: (value) => value instanceof Null ? null : value.valueBeforeDecodeView,
|
|
3390
3486
|
toASN: (value) => {
|
|
@@ -3428,6 +3524,10 @@ const AsnOctetStringConverter = {
|
|
|
3428
3524
|
fromASN: (value) => value.valueBlock.valueHexView,
|
|
3429
3525
|
toASN: (value) => new OctetString$1({ valueHex: value }),
|
|
3430
3526
|
};
|
|
3527
|
+
const AsnConstructedOctetStringConverter = {
|
|
3528
|
+
fromASN: (value) => new OctetString(value.getValue()),
|
|
3529
|
+
toASN: (value) => value.toASN(),
|
|
3530
|
+
};
|
|
3431
3531
|
function createStringConverter(Asn1Type) {
|
|
3432
3532
|
return {
|
|
3433
3533
|
fromASN: (value) => value.valueBlock.value,
|
|
@@ -3511,102 +3611,6 @@ function defaultConverter(type) {
|
|
|
3511
3611
|
}
|
|
3512
3612
|
}
|
|
3513
3613
|
|
|
3514
|
-
class BitString {
|
|
3515
|
-
constructor(params, unusedBits = 0) {
|
|
3516
|
-
this.unusedBits = 0;
|
|
3517
|
-
this.value = new ArrayBuffer(0);
|
|
3518
|
-
if (params) {
|
|
3519
|
-
if (typeof params === "number") {
|
|
3520
|
-
this.fromNumber(params);
|
|
3521
|
-
}
|
|
3522
|
-
else if (download.build.BufferSourceConverter.isBufferSource(params)) {
|
|
3523
|
-
this.unusedBits = unusedBits;
|
|
3524
|
-
this.value = download.build.BufferSourceConverter.toArrayBuffer(params);
|
|
3525
|
-
}
|
|
3526
|
-
else {
|
|
3527
|
-
throw TypeError("Unsupported type of 'params' argument for BitString");
|
|
3528
|
-
}
|
|
3529
|
-
}
|
|
3530
|
-
}
|
|
3531
|
-
fromASN(asn) {
|
|
3532
|
-
if (!(asn instanceof BitString$1)) {
|
|
3533
|
-
throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");
|
|
3534
|
-
}
|
|
3535
|
-
this.unusedBits = asn.valueBlock.unusedBits;
|
|
3536
|
-
this.value = asn.valueBlock.valueHex;
|
|
3537
|
-
return this;
|
|
3538
|
-
}
|
|
3539
|
-
toASN() {
|
|
3540
|
-
return new BitString$1({ unusedBits: this.unusedBits, valueHex: this.value });
|
|
3541
|
-
}
|
|
3542
|
-
toSchema(name) {
|
|
3543
|
-
return new BitString$1({ name });
|
|
3544
|
-
}
|
|
3545
|
-
toNumber() {
|
|
3546
|
-
let res = "";
|
|
3547
|
-
const uintArray = new Uint8Array(this.value);
|
|
3548
|
-
for (const octet of uintArray) {
|
|
3549
|
-
res += octet.toString(2).padStart(8, "0");
|
|
3550
|
-
}
|
|
3551
|
-
res = res.split("").reverse().join("");
|
|
3552
|
-
if (this.unusedBits) {
|
|
3553
|
-
res = res.slice(this.unusedBits).padStart(this.unusedBits, "0");
|
|
3554
|
-
}
|
|
3555
|
-
return parseInt(res, 2);
|
|
3556
|
-
}
|
|
3557
|
-
fromNumber(value) {
|
|
3558
|
-
let bits = value.toString(2);
|
|
3559
|
-
const octetSize = (bits.length + 7) >> 3;
|
|
3560
|
-
this.unusedBits = (octetSize << 3) - bits.length;
|
|
3561
|
-
const octets = new Uint8Array(octetSize);
|
|
3562
|
-
bits = bits.padStart(octetSize << 3, "0").split("").reverse().join("");
|
|
3563
|
-
let index = 0;
|
|
3564
|
-
while (index < octetSize) {
|
|
3565
|
-
octets[index] = parseInt(bits.slice(index << 3, (index << 3) + 8), 2);
|
|
3566
|
-
index++;
|
|
3567
|
-
}
|
|
3568
|
-
this.value = octets.buffer;
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
|
-
|
|
3572
|
-
class OctetString {
|
|
3573
|
-
constructor(param) {
|
|
3574
|
-
if (typeof param === "number") {
|
|
3575
|
-
this.buffer = new ArrayBuffer(param);
|
|
3576
|
-
}
|
|
3577
|
-
else {
|
|
3578
|
-
if (download.build.BufferSourceConverter.isBufferSource(param)) {
|
|
3579
|
-
this.buffer = download.build.BufferSourceConverter.toArrayBuffer(param);
|
|
3580
|
-
}
|
|
3581
|
-
else if (Array.isArray(param)) {
|
|
3582
|
-
this.buffer = new Uint8Array(param);
|
|
3583
|
-
}
|
|
3584
|
-
else {
|
|
3585
|
-
this.buffer = new ArrayBuffer(0);
|
|
3586
|
-
}
|
|
3587
|
-
}
|
|
3588
|
-
}
|
|
3589
|
-
get byteLength() {
|
|
3590
|
-
return this.buffer.byteLength;
|
|
3591
|
-
}
|
|
3592
|
-
get byteOffset() {
|
|
3593
|
-
return 0;
|
|
3594
|
-
}
|
|
3595
|
-
fromASN(asn) {
|
|
3596
|
-
if (!(asn instanceof OctetString$1)) {
|
|
3597
|
-
throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
|
|
3598
|
-
}
|
|
3599
|
-
this.buffer = asn.valueBlock.valueHex;
|
|
3600
|
-
return this;
|
|
3601
|
-
}
|
|
3602
|
-
toASN() {
|
|
3603
|
-
return new OctetString$1({ valueHex: this.buffer });
|
|
3604
|
-
}
|
|
3605
|
-
toSchema(name) {
|
|
3606
|
-
return new OctetString$1({ name });
|
|
3607
|
-
}
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
3614
|
function isConvertible(target) {
|
|
3611
3615
|
if (typeof target === "function" && target.prototype) {
|
|
3612
3616
|
if (target.prototype.toASN && target.prototype.fromASN) {
|
|
@@ -3796,7 +3800,7 @@ class AsnSchemaStorage {
|
|
|
3796
3800
|
return this;
|
|
3797
3801
|
}
|
|
3798
3802
|
findParentSchema(target) {
|
|
3799
|
-
const parent = target
|
|
3803
|
+
const parent = Object.getPrototypeOf(target);
|
|
3800
3804
|
if (parent) {
|
|
3801
3805
|
const schema = this.items.get(parent);
|
|
3802
3806
|
return schema || this.findParentSchema(parent);
|
|
@@ -6072,11 +6076,14 @@ __decorate([
|
|
|
6072
6076
|
let Time = class Time {
|
|
6073
6077
|
constructor(time) {
|
|
6074
6078
|
if (time) {
|
|
6075
|
-
if (typeof time === "string" || typeof time === "number") {
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6079
|
+
if (typeof time === "string" || typeof time === "number" || time instanceof Date) {
|
|
6080
|
+
const date = new Date(time);
|
|
6081
|
+
if (date.getUTCFullYear() > 2049) {
|
|
6082
|
+
this.generalTime = date;
|
|
6083
|
+
}
|
|
6084
|
+
else {
|
|
6085
|
+
this.utcTime = date;
|
|
6086
|
+
}
|
|
6080
6087
|
}
|
|
6081
6088
|
else {
|
|
6082
6089
|
Object.assign(this, time);
|
|
@@ -10237,10 +10244,11 @@ class CryptoProvider {
|
|
|
10237
10244
|
CryptoProvider.DEFAULT = 'default';
|
|
10238
10245
|
const cryptoProvider = new CryptoProvider();
|
|
10239
10246
|
|
|
10240
|
-
const
|
|
10241
|
-
|
|
10242
|
-
.
|
|
10243
|
-
|
|
10247
|
+
const base64Re = /-----BEGIN [^-]+-----([A-Za-z0-9+/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+/=\s]+)====/;
|
|
10248
|
+
const base64Clarify = (base64) => {
|
|
10249
|
+
const execArray = base64Re.exec(base64);
|
|
10250
|
+
return execArray ? (execArray[1] || execArray[2]) : base64;
|
|
10251
|
+
};
|
|
10244
10252
|
const hexFormat = (hex) => (hex
|
|
10245
10253
|
.replace(/(.{32})/g, '$1\n')
|
|
10246
10254
|
.replace(/(.{4})/g, '$1 ')
|
|
@@ -10967,15 +10975,15 @@ let EncryptedContent = class EncryptedContent {
|
|
|
10967
10975
|
}
|
|
10968
10976
|
};
|
|
10969
10977
|
__decorate([
|
|
10970
|
-
AsnProp({ type: OctetString })
|
|
10971
|
-
], EncryptedContent.prototype, "
|
|
10978
|
+
AsnProp({ type: OctetString, context: 0, implicit: true, optional: true })
|
|
10979
|
+
], EncryptedContent.prototype, "value", void 0);
|
|
10972
10980
|
__decorate([
|
|
10973
|
-
AsnProp({ type:
|
|
10974
|
-
], EncryptedContent.prototype, "
|
|
10981
|
+
AsnProp({ type: OctetString, converter: AsnConstructedOctetStringConverter, context: 0, implicit: true, optional: true, repeated: "sequence" })
|
|
10982
|
+
], EncryptedContent.prototype, "constructedValue", void 0);
|
|
10975
10983
|
EncryptedContent = __decorate([
|
|
10976
10984
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
10977
10985
|
], EncryptedContent);
|
|
10978
|
-
class
|
|
10986
|
+
class EncryptedContentInfo {
|
|
10979
10987
|
constructor(params = {}) {
|
|
10980
10988
|
this.contentType = "";
|
|
10981
10989
|
this.contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
|
|
@@ -10984,43 +10992,13 @@ class ImplicitEncryptedContentInfo {
|
|
|
10984
10992
|
}
|
|
10985
10993
|
__decorate([
|
|
10986
10994
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
10987
|
-
],
|
|
10995
|
+
], EncryptedContentInfo.prototype, "contentType", void 0);
|
|
10988
10996
|
__decorate([
|
|
10989
10997
|
AsnProp({ type: ContentEncryptionAlgorithmIdentifier })
|
|
10990
|
-
],
|
|
10998
|
+
], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0);
|
|
10991
10999
|
__decorate([
|
|
10992
|
-
AsnProp({ type:
|
|
10993
|
-
],
|
|
10994
|
-
class ExplicitEncryptedContentInfo {
|
|
10995
|
-
constructor(params = {}) {
|
|
10996
|
-
this.contentType = "";
|
|
10997
|
-
this.contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
|
|
10998
|
-
Object.assign(this, params);
|
|
10999
|
-
}
|
|
11000
|
-
}
|
|
11001
|
-
__decorate([
|
|
11002
|
-
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11003
|
-
], ExplicitEncryptedContentInfo.prototype, "contentType", void 0);
|
|
11004
|
-
__decorate([
|
|
11005
|
-
AsnProp({ type: ContentEncryptionAlgorithmIdentifier })
|
|
11006
|
-
], ExplicitEncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0);
|
|
11007
|
-
__decorate([
|
|
11008
|
-
AsnProp({ type: EncryptedContent, context: 0, optional: true })
|
|
11009
|
-
], ExplicitEncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
11010
|
-
let EncryptedContentInfo = class EncryptedContentInfo {
|
|
11011
|
-
constructor(params = {}) {
|
|
11012
|
-
Object.assign(this, params);
|
|
11013
|
-
}
|
|
11014
|
-
};
|
|
11015
|
-
__decorate([
|
|
11016
|
-
AsnProp({ type: ImplicitEncryptedContentInfo, optional: true })
|
|
11017
|
-
], EncryptedContentInfo.prototype, "implicitEncryptedContentInfo", void 0);
|
|
11018
|
-
__decorate([
|
|
11019
|
-
AsnProp({ type: ExplicitEncryptedContentInfo, optional: true })
|
|
11020
|
-
], EncryptedContentInfo.prototype, "explicitEncryptedContentInfo", void 0);
|
|
11021
|
-
EncryptedContentInfo = __decorate([
|
|
11022
|
-
AsnType({ type: AsnTypeTypes.Choice })
|
|
11023
|
-
], EncryptedContentInfo);
|
|
11000
|
+
AsnProp({ type: EncryptedContent, optional: true })
|
|
11001
|
+
], EncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
11024
11002
|
|
|
11025
11003
|
class IssuerAndSerialNumber {
|
|
11026
11004
|
constructor(params = {}) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
6
|
+
const certification_request = require('./certification_request-50ce61b3.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
|
-
const l10n = require('./l10n-
|
|
8
|
+
const l10n = require('./l10n-4eaa5263.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const download$1 = require('./download-a97f4cb2.js');
|
|
7
7
|
|
|
8
8
|
var dayjs_min = download$1.createCommonjsModule(function (module, exports) {
|
|
9
|
-
!function(t,e){module.exports=e();}(download$1.commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date"
|
|
9
|
+
!function(t,e){module.exports=e();}(download$1.commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
var relativeTime = download$1.createCommonjsModule(function (module, exports) {
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
9
|
+
const certification_request = require('./certification_request-50ce61b3.js');
|
|
10
10
|
const download = require('./download-a97f4cb2.js');
|
|
11
|
-
const l10n = require('./l10n-
|
|
12
|
-
const crl = require('./crl-
|
|
13
|
-
const public_key = require('./public_key-
|
|
11
|
+
const l10n = require('./l10n-4eaa5263.js');
|
|
12
|
+
const crl = require('./crl-0c15e04a.js');
|
|
13
|
+
const public_key = require('./public_key-2b73778a.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
10
|
-
require('./l10n-
|
|
9
|
+
const certification_request = require('./certification_request-50ce61b3.js');
|
|
10
|
+
require('./l10n-4eaa5263.js');
|
|
11
11
|
require('./download-a97f4cb2.js');
|
|
12
|
-
const x509_certificate = require('./x509_certificate-
|
|
13
|
-
const crl = require('./crl-
|
|
12
|
+
const x509_certificate = require('./x509_certificate-c94ce29e.js');
|
|
13
|
+
const crl = require('./crl-0c15e04a.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const l10n = require('./l10n-
|
|
9
|
+
const l10n = require('./l10n-4eaa5263.js');
|
|
10
10
|
require('./download-a97f4cb2.js');
|
|
11
11
|
|
|
12
12
|
const certificateSummaryCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}td{border:none;padding:0}table{width:100%;border-spacing:0;border-collapse:collapse}td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td:first-child{width:130px;padding-right:10px}table td:last-child{width:calc(100% - 130px)}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{width:100%}}";
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const x509_certificate = require('./x509_certificate-
|
|
10
|
-
require('./certification_request-
|
|
9
|
+
const x509_certificate = require('./x509_certificate-c94ce29e.js');
|
|
10
|
+
require('./certification_request-50ce61b3.js');
|
|
11
11
|
require('./download-a97f4cb2.js');
|
|
12
|
-
require('./l10n-
|
|
13
|
-
const public_key = require('./public_key-
|
|
12
|
+
require('./l10n-4eaa5263.js');
|
|
13
|
+
const public_key = require('./public_key-2b73778a.js');
|
|
14
14
|
|
|
15
15
|
const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
16
16
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const x509_certificate = require('./x509_certificate-
|
|
10
|
-
const certification_request = require('./certification_request-
|
|
9
|
+
const x509_certificate = require('./x509_certificate-c94ce29e.js');
|
|
10
|
+
const certification_request = require('./certification_request-50ce61b3.js');
|
|
11
11
|
require('./download-a97f4cb2.js');
|
|
12
|
-
const l10n = require('./l10n-
|
|
12
|
+
const l10n = require('./l10n-4eaa5263.js');
|
|
13
13
|
|
|
14
14
|
const certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
|
|
15
15
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
const index = require('./index-064e95c7.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
|
-
const l10n = require('./l10n-
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
8
|
+
const l10n = require('./l10n-4eaa5263.js');
|
|
9
|
+
const certification_request = require('./certification_request-50ce61b3.js');
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
6
|
+
const certification_request = require('./certification_request-50ce61b3.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
|
-
const l10n = require('./l10n-
|
|
8
|
+
const l10n = require('./l10n-4eaa5263.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import { Convert } from 'pvtsutils';
|
|
5
5
|
import { validator } from '../utils';
|
|
6
6
|
import { cryptoProvider } from './provider';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.
|
|
10
|
-
|
|
7
|
+
const base64Re = /-----BEGIN [^-]+-----([A-Za-z0-9+/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+/=\s]+)====/;
|
|
8
|
+
export const base64Clarify = (base64) => {
|
|
9
|
+
const execArray = base64Re.exec(base64);
|
|
10
|
+
return execArray ? (execArray[1] || execArray[2]) : base64;
|
|
11
|
+
};
|
|
11
12
|
export const hexFormat = (hex) => (hex
|
|
12
13
|
.replace(/(.{32})/g, '$1\n')
|
|
13
14
|
.replace(/(.{4})/g, '$1 ')
|