@peculiar/certificates-viewer 1.18.0 → 1.20.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/{download-47be779e.js → download-061c8763.js} +49 -9
- package/dist/cjs/{l10n-f5651bb0.js → l10n-e971a5ac.js} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +64 -9
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
- package/dist/collection/components/certificate-viewer/extensions/crl_distribution_points_extension.js +5 -2
- package/dist/collection/components/certificate-viewer/extensions/general_name_part.js +18 -3
- package/dist/collection/components/certificate-viewer/extensions/index.js +13 -4
- package/dist/collection/components/certificate-viewer/extensions/{authority_info_access_syntax_extension.js → info_access_syntax_extension.js} +1 -1
- package/dist/collection/components/certificate-viewer/extensions/policy_constraints_extension.js +17 -0
- package/dist/collection/components/certificate-viewer/extensions/policy_mappings_extension.js +19 -0
- package/dist/collection/constants/oids.js +9 -4
- package/dist/collection/crypto/extension.js +4 -1
- package/dist/esm/{download-8043769c.js → download-250f9495.js} +47 -9
- package/dist/esm/{l10n-6ab04c66.js → l10n-c8cf6930.js} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +64 -9
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm-es5/{download-8043769c.js → download-250f9495.js} +54 -11
- package/dist/esm-es5/{l10n-6ab04c66.js → l10n-c8cf6930.js} +2 -2
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +60 -9
- package/dist/esm-es5/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/peculiar/{p-13f66367.system.entry.js → p-293edf5c.system.entry.js} +1 -1
- package/dist/peculiar/{p-f304a39b.entry.js → p-294c4ef9.entry.js} +1 -1
- package/dist/peculiar/{p-768f505c.entry.js → p-31a15658.entry.js} +14 -14
- package/dist/peculiar/p-557d912f.system.js +1 -1
- package/dist/peculiar/{p-97954b76.system.js → p-636aea18.system.js} +11 -11
- package/dist/peculiar/{p-1464d6ca.entry.js → p-75793893.entry.js} +1 -1
- package/dist/peculiar/{p-150d1ad1.system.entry.js → p-983b5210.system.entry.js} +1 -1
- package/dist/peculiar/{p-02ef5dea.system.entry.js → p-aece90c7.system.entry.js} +78 -64
- package/dist/peculiar/{p-ee7045c5.system.js → p-bd1f9066.system.js} +3 -3
- package/dist/peculiar/{p-79bbe633.js → p-cf1841f8.js} +1 -1
- package/dist/peculiar/{p-53b83a50.js → p-e5769859.js} +10 -10
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-viewer/extensions/info_access_syntax_extension.d.ts +15 -0
- package/dist/types/components/certificate-viewer/extensions/{authority_info_access_syntax_extension.d.ts → policy_constraints_extension.d.ts} +4 -4
- package/dist/types/components/certificate-viewer/extensions/policy_mappings_extension.d.ts +15 -0
- package/dist/types/constants/oids.d.ts +5 -0
- package/dist/types/crypto/extension.d.ts +2 -2
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(t.hasOwnProperty(i))e[i]=t[i]};return e(t,i)};return function(t,i){e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(t){a(t)}}function s(e){try{c(r["throw"](e))}catch(t){a(t)}}function c(e){e.done?i(e.value):n(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(s){o=[6,s];n=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-9f815f76.system.js","./p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(t.hasOwnProperty(i))e[i]=t[i]};return e(t,i)};return function(t,i){e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(t){a(t)}}function s(e){try{c(r["throw"](e))}catch(t){a(t)}}function c(e){e.done?i(e.value):n(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(s){o=[6,s];n=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-9f815f76.system.js","./p-636aea18.system.js","./p-bd1f9066.system.js"],(function(e){"use strict";var t,i,r,n,a,o,s,c,l,u,d,f,p,b,h,g,v,m,x,y,w,k,S,_,I,C,D,A,L,N,z,j,P,T,E,K,O,H,R,V,B,G,q,F,M,U,Y,Q,X,J,W,Z,$,ee,te,ie,re,ne,ae,oe,se,ce,le,ue,de,fe,pe,be,he,ge,ve,me,xe,ye,we,ke,Se,_e,Ie,Ce,De,Ae,Le,Ne,ze,je,Pe,Te,Ee,Ke,Oe,He,Re;return{setters:[function(e){t=e.h;i=e.r;r=e.H;n=e.c},function(e){a=e.A;o=e.a;s=e.i;c=e.b;l=e.c;u=e.E;d=e.d;f=e.e;p=e.f;b=e.U;h=e.g;g=e.C;v=e.h;m=e.V;x=e.j;y=e.I;w=e.k;k=e.W;S=e.l;_=e.m;I=e.n;C=e.T;D=e.o;A=e.D;L=e.p;N=e.q;z=e.r;j=e.s;P=e.t;T=e.u;E=e.v;K=e.w;O=e.x;H=e.y;R=e.z;V=e.B;B=e.N;G=e.F;q=e.G;F=e.H;M=e.R;U=e.O;Y=e.J;Q=e.K;X=e.L;J=e.M;W=e.P;Z=e.Q;$=e.S;ee=e.X;te=e.Y;ie=e.Z;re=e._;ne=e.$;ae=e.a0;oe=e.a1;se=e.a2;ce=e.a3;le=e.a4;ue=e.a5;de=e.a6;fe=e.a7;pe=e.a8;be=e.a9;he=e.aa;ge=e.ab;ve=e.ac;me=e.ad;xe=e.ae;ye=e.af;we=e.ag;ke=e.ah;Se=e.ai;_e=e.aj;Ie=e.ak;Ce=e.al;De=e.am;Ae=e.an;Le=e.ao;Ne=e.ap;ze=e.aq;je=e.ar;Pe=e.as;Te=e.at;Ee=e.au},function(e){Ke=e.d;Oe=e.l;He=e.a;Re=e.h}],execute:function(){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -6,438 +6,452 @@ var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setP
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
function
|
|
9
|
+
function Ve(e){return new Promise((function(t,i){var r=new FileReader;r.onload=function(){return t({value:r.result,fileName:e.name,fileSize:e.size,sourceMime:e.type})};r.onerror=function(){return i(r.error)};r.readAsBinaryString(e)}))}
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var
|
|
16
|
+
*/var Be=function(e){__extends(t,e);function t(t){var i=e.call(this,t,o)||this;var r=i.getAsnExtnValue();switch(i.asn.type){case P:i.value=l.parse(r,T);break;case z:i.value=l.parse(r,j);break;case L:i.value=l.parse(r,N);break;case D:i.value=l.parse(r,A);break;case I:i.value=l.parse(r,C);break;case S:i.value=l.parse(r,_);break;case w:i.value=l.parse(r,k);break;case x:i.value=l.parse(r,y);break;case v:i.value=l.parse(r,m);break;case h:i.value=l.parse(r,g);break;case p:i.value=l.parse(r,b);break;case c:{var n=l.parse(r,u);i.value=n.map((function(e){return new d(f.serialize(e))}));break}default:i.value=s.Convert.ToHex(r)}return i}t.prototype.getAsnExtnValue=function(){return this.asn.values[0]};return t}(a);
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var
|
|
23
|
+
*/var Ge=function(e){__extends(t,e);function t(t){var i=this;var r;i=e.call(this,E(t),K)||this;i.thumbprints={};i.type="X.509 Attribute Certificate";var n=i.asn.acinfo;i.serialNumber=s.Convert.ToHex(n.serialNumber);i.version=n.version;var a=n.attrCertValidityPeriod.notBeforeTime;if(!a){throw new Error("Cannot get 'notBefore' value")}i.notBefore=a;var o=n.attrCertValidityPeriod.notAfterTime;if(!o){throw new Error("Cannot get 'notAfter' value")}i.notAfter=o;i.validity=Ke(i.notBefore,i.notAfter);i.issuer=n.issuer.v1Form||((r=n.issuer.v2Form)===null||r===void 0?void 0:r.issuerName);i.holder=n.holder;return i}Object.defineProperty(t.prototype,"signature",{get:function(){var e=this.asn,t=e.signatureValue,i=e.signatureAlgorithm;return{value:t,algorithm:i.algorithm}},enumerable:false,configurable:true});t.prototype.parseExtensions=function(){var e=this.asn.acinfo;if(e.extensions){this.extensions=e.extensions.map((function(e){return new d(f.serialize(e))}))}};t.prototype.parseAttributes=function(){var e=this.asn.acinfo;if(e.attributes){this.attributes=e.attributes.map((function(e){return new Be(f.serialize(e))}))}};t.prototype.getThumbprint=function(e){if(e===void 0){e="SHA-1"}return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,O(e,this.raw)];case 1:t=r.sent();this.thumbprints[e["name"]||e]=s.Convert.ToHex(t);return[3,3];case 2:i=r.sent();console.error("Error thumbprint get:",i);return[3,3];case 3:return[2]}}))}))};t.prototype.exportAsBase64=function(){return s.Convert.ToBase64(this.raw)};t.prototype.exportAsHexFormatted=function(){return H(s.Convert.ToHex(this.raw))};t.prototype.exportAsPemFormatted=function(){return"-----BEGIN ATTRIBUTE CERTIFICATE-----\n"+R(this.exportAsBase64())+"\n-----END ATTRIBUTE CERTIFICATE-----"};Object.defineProperty(t.prototype,"commonName",{get:function(){return"attribute-certificate-"+this.thumbprints["SHA-1"]},enumerable:false,configurable:true});return t}(a);
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var
|
|
30
|
+
*/var qe=function(e){__extends(t,e);function t(t){var i=e.call(this,E(t),V)||this;i.thumbprints={};i.type="PKCS#10 Certificate Request";var r=i.asn.certificationRequestInfo;i.subject=new B(r.subject).toJSON();i.version=r.version;return i}Object.defineProperty(t.prototype,"publicKey",{get:function(){var e=this.asn.certificationRequestInfo.subjectPKInfo,t=e.subjectPublicKey,i=e.algorithm;var r;if(i.algorithm===G&&i.parameters){r=f.parse(i.parameters,q)}if(i.algorithm===F){r=f.parse(t,M)}var n=f.serialize(this.asn.certificationRequestInfo.subjectPKInfo);return{params:r,value:n,algorithm:i.algorithm}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"signature",{get:function(){var e=this.asn,t=e.signature,i=e.signatureAlgorithm;return{value:t,algorithm:i.algorithm}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"commonName",{get:function(){if(!this.subject){return""}for(var e=0;e<this.subject.length;e+=1){var t=this.subject[e];if(t.shortName==="CN"||t.shortName==="E"||t.shortName==="O"){return t.value}}return""},enumerable:false,configurable:true});t.prototype.getThumbprint=function(e){if(e===void 0){e="SHA-1"}return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,O(e,this.raw)];case 1:t=r.sent();this.thumbprints[e["name"]||e]=s.Convert.ToHex(t);return[3,3];case 2:i=r.sent();console.error("Error thumbprint get:",i);return[3,3];case 3:return[2]}}))}))};t.prototype.parseAttributes=function(){var e=this.asn.certificationRequestInfo;if(e.attributes){this.attributes=e.attributes.map((function(e){return new Be(f.serialize(e))}))}};t.prototype.exportAsBase64=function(){return s.Convert.ToBase64(this.raw)};t.prototype.exportAsHexFormatted=function(){return H(s.Convert.ToHex(this.raw))};t.prototype.exportAsPemFormatted=function(){return"-----BEGIN CERTIFICATE REQUEST-----\n"+R(this.exportAsBase64())+"\n-----END CERTIFICATE REQUEST-----"};return t}(a);
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/function
|
|
37
|
+
*/function Fe(e){var t=U[e];if(t){return t+" ("+e+")"}return e}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/function
|
|
44
|
+
*/function Me(e){return e.indexOf("http")===0}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var
|
|
51
|
+
*/var Ue=function(e){var i=e.value;if(!i){return null}return t("tr",{class:"title"},t("td",{colSpan:2},t("peculiar-typography",{type:"h6"},i)))};var Ye=function(e){var i=e.name,r=e.value,n=e.monospace,a=e.collapse,o=e.href,s=e.extraValue;if(!i){return null}if(r===undefined||r===null){return null}var c;if(a){c=t("peculiar-text-hider",null,r)}else{c=r}var l=!!r.toString();return t("tr",null,t("td",{colSpan:l?1:2},t("peculiar-typography",{color:"grey_5"},i,l?":":"")),l&&t("td",{class:{monospace:n}},Me(r.toString())||o?t("peculiar-link",{href:o||r.toString()},r):t("peculiar-typography",{monospace:n},c,s)))};
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var
|
|
58
|
+
*/var Qe=function(e){var i=e.signature;if(!i){return null}return[t(Ue,{value:Oe.getString("signature")}),t(Ye,{name:Oe.getString("algorithm"),value:Fe(i.algorithm)}),t(Ye,{name:Oe.getString("value"),value:s.Convert.ToHex(i.value),monospace:true,collapse:true})]};
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var
|
|
65
|
+
*/var Xe=function(e,i){var r=e.attribute;return[t(Ye,{name:"Name",value:Fe(r.asn.type)}),i,t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the MIT license found in the
|
|
71
71
|
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var
|
|
72
|
+
*/var Je=function(e){var i=e.name;if(!i){return null}return i.map((function(e){return e.map((function(e){return t(Ye,{name:U[e.type]||e.type,value:e.value.toString()})}))}))};
|
|
73
73
|
/**
|
|
74
74
|
* @license
|
|
75
75
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
79
|
+
*/var We=function(e){var i=e.attribute;return t(Xe,{attribute:i},t(Je,{name:i.value}))};
|
|
80
80
|
/**
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
86
|
+
*/var Ze={otherName:"Other Name",rfc822Name:"RFC 822 Name",dNSName:"DNS Name",x400Address:"X400 Address",directoryName:"Directory Name",ediPartyName:"Edi Party Name ",uniformResourceIdentifier:"URI",iPAddress:"IP Address",registeredID:"Registered ID"};var $e=function(e){var i=e.generalName,r=e.getDNSNameLink,n=e.getIPAddressLink;if(!i){return null}return Object.keys(i).map((function(e){var a=i[e];if(a instanceof Y){return[t(Ye,{name:Ze[e]||e,value:""}),a.map((function(e){return e.map((function(e){return t(Ye,{name:U[e.type]||e.type,value:e.value.toString()})}))}))]}if(a instanceof Q){try{var o=l.parse(a.value,X);return t(Ye,{name:U[a.typeId]||a.typeId,value:o.toString()})}catch(c){}try{var o=l.parse(a.value,J);if(o.explicitText){return t(Ye,{name:U[a.typeId]||a.typeId,value:o.explicitText.toString()})}}catch(c){}return t(Ye,{name:U[a.typeId]||a.typeId,value:s.Convert.ToHex(a.value),monospace:true})}if(s.BufferSourceConverter.isBufferSource(a)){return t(Ye,{name:Ze[e]||e,value:s.Convert.ToString(a)})}if(a instanceof W){return t(Ye,{name:Ze[e]||e,value:s.Convert.ToString(a.partyName)})}if(e==="dNSName"){return t(Ye,{name:Ze[e]||e,value:a,href:r(a)})}if(e==="iPAddress"){return t(Ye,{name:Ze[e]||e,value:a,href:n(a)})}return t(Ye,{name:Ze[e]||e,value:a})}))};
|
|
87
87
|
/**
|
|
88
88
|
* @license
|
|
89
89
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the MIT license found in the
|
|
92
92
|
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var
|
|
93
|
+
*/var et=function(e){var i=e.attribute;return t(Xe,{attribute:i},t(Ye,{name:"Code Authority",value:""}),t($e,{generalName:i.value.codeAuthority,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}}),t(Ye,{name:"Code Id",value:""}),t($e,{generalName:i.value.codeId,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}}),t(Ye,{name:"Short Name",value:i.value.shortName}),t(Ye,{name:"Short Description",value:i.value.shortDescription}))};
|
|
94
94
|
/**
|
|
95
95
|
* @license
|
|
96
96
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the MIT license found in the
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/var
|
|
100
|
+
*/var tt=function(e){var i=e.attribute;return t(Xe,{attribute:i},t(Ye,{name:"Assessment Authority",value:""}),t($e,{generalName:i.value.assessmentAuthority,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}}),t(Ye,{name:"Assessment Location",value:""}),t($e,{generalName:i.value.assessmentLocation,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}}),t(Ye,{name:"Assessment Ref",value:""}),t($e,{generalName:i.value.assessmentRef,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}}),t(Ye,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),t(Ye,{name:"Description",value:i.value.description}))};
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the MIT license found in the
|
|
106
106
|
* LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/var
|
|
107
|
+
*/var it=function(e){var i=e.attribute;var r=i.value.base+" * 10^"+i.value.degree+" "+i.value.location;return t(Xe,{attribute:i},t(Ye,{name:"Value",value:r}))};
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
111
111
|
*
|
|
112
112
|
* This source code is licensed under the MIT license found in the
|
|
113
113
|
* LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/var
|
|
114
|
+
*/var rt=function(e){var i=e.attribute;return t(Xe,{attribute:i},Object.keys(i.value).map((function(e){return t(Ye,{name:e,value:i.value[e].toNumber()?"YES":"NO"})})))};
|
|
115
115
|
/**
|
|
116
116
|
* @license
|
|
117
117
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the MIT license found in the
|
|
120
120
|
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/var
|
|
121
|
+
*/var nt=function(e){var t=1;if(e/100>1){t=100}else if(e/10>1){t=10}return e+"/"+5*t};var at=function(e){var i=e.attribute;var r=Object.keys(i.value).map((function(e){return[nt(i.value[e]),t("br",null)]}));return t(Xe,{attribute:i},t(Ye,{name:"Value",value:r}))};
|
|
122
122
|
/**
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
125
125
|
*
|
|
126
126
|
* This source code is licensed under the MIT license found in the
|
|
127
127
|
* LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/var
|
|
128
|
+
*/var ot=function(e){var i=e.attribute;return t(Xe,{attribute:i},t(Ye,{name:"Value",value:i.value,monospace:true}))};
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
131
131
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the MIT license found in the
|
|
134
134
|
* LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/var
|
|
135
|
+
*/var st=function(e){var i=e.attribute;return t(Xe,{attribute:i},t(Ye,{name:"Value",value:i.value.utf8String}))};
|
|
136
136
|
/**
|
|
137
137
|
* @license
|
|
138
138
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
139
139
|
*
|
|
140
140
|
* This source code is licensed under the MIT license found in the
|
|
141
141
|
* LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/var
|
|
142
|
+
*/var ct=function(e){var i=e.attribute;return t(Xe,{attribute:i},t(Ye,{name:"Value",value:i.value.toString()}))};
|
|
143
143
|
/**
|
|
144
144
|
* @license
|
|
145
145
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
146
146
|
*
|
|
147
147
|
* This source code is licensed under the MIT license found in the
|
|
148
148
|
* LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/var
|
|
149
|
+
*/var lt=function(e){var i=e.attributes;if(!i||!i.length){return null}return[t(Ue,{value:"Attributes"}),i.map((function(e){try{if(e.value instanceof Y){return t(We,{attribute:e})}if(e.value instanceof _){return t(et,{attribute:e})}if(e.value instanceof k){return t(tt,{attribute:e})}if(e.value instanceof y){return t(it,{attribute:e})}if(e.value instanceof C){return t(rt,{attribute:e})}if(e.value instanceof m){return t(at,{attribute:e})}if(e.value instanceof b){return t(st,{attribute:e})}if(e.value instanceof g){return t(ct,{attribute:e})}if(typeof e.value==="string"){return t(ot,{attribute:e})}return t(Xe,{attribute:e})}catch(i){console.error("Error render attribute:",e.asn.type);return null}}))]};
|
|
150
150
|
/**
|
|
151
151
|
* @license
|
|
152
152
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the MIT license found in the
|
|
155
155
|
* LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/var
|
|
156
|
+
*/var ut=function(e){var i=e.thumbprints;if(!i){return null}var r=Object.keys(i);if(!r.length){return null}return[t(Ue,{value:Oe.getString("fingerprints")}),r.map((function(e){return t(Ye,{name:e,value:i[e],monospace:true})}))]};
|
|
157
157
|
/**
|
|
158
158
|
* @license
|
|
159
159
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
160
160
|
*
|
|
161
161
|
* This source code is licensed under the MIT license found in the
|
|
162
162
|
* LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/var
|
|
163
|
+
*/var dt=function(e,i){var r=e.extension;return[t(Ye,{name:"Name",value:Fe(r.asn.extnID)}),t(Ye,{name:"Critical",value:r.asn.critical?"YES":"NO"}),i,t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]};
|
|
164
164
|
/**
|
|
165
165
|
* @license
|
|
166
166
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
167
167
|
*
|
|
168
168
|
* This source code is licensed under the MIT license found in the
|
|
169
169
|
* LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/var
|
|
170
|
+
*/var ft=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Usage",value:i.value.toJSON().join(", ")}))};
|
|
171
171
|
/**
|
|
172
172
|
* @license
|
|
173
173
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
174
174
|
*
|
|
175
175
|
* This source code is licensed under the MIT license found in the
|
|
176
176
|
* LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/var
|
|
177
|
+
*/var pt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Certificate Authority",value:i.value.cA?"YES":"NO"}),t(Ye,{name:"Path Length Constraint",value:i.value.pathLenConstraint}))};
|
|
178
178
|
/**
|
|
179
179
|
* @license
|
|
180
180
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
181
181
|
*
|
|
182
182
|
* This source code is licensed under the MIT license found in the
|
|
183
183
|
* LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/var
|
|
184
|
+
*/var bt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){return t(Ye,{name:"Purpose #"+(i+1),value:Fe(e)})})))};
|
|
185
185
|
/**
|
|
186
186
|
* @license
|
|
187
187
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the MIT license found in the
|
|
190
190
|
* LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/var
|
|
191
|
+
*/var ht=function(e){var i=e.extension,r=e.getSubjectKeyIdChildrenLink,n=e.getSubjectKeyIdSiblingsLink;var a=s.Convert.ToHex(i.value.buffer);var o=r(a);var c=n(a);return t(dt,{extension:i},t(Ye,{name:"Key ID",value:a,monospace:true,extraValue:[o&&t("span",null," [",t("peculiar-link",{href:o},"children"),"]"),c&&t("span",null," [",t("peculiar-link",{href:c},"siblings"),"]")]}))};
|
|
192
192
|
/**
|
|
193
193
|
* @license
|
|
194
194
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
195
195
|
*
|
|
196
196
|
* This source code is licensed under the MIT license found in the
|
|
197
197
|
* LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/var
|
|
198
|
+
*/var gt=function(e){var i=e.extension,r=e.getAuthKeyIdParentLink,n=e.getAuthKeyIdSiblingsLink;var a=s.Convert.ToHex(i.value.keyIdentifier.buffer);var o=r(a);var c=n(a);return t(dt,{extension:i},t(Ye,{name:"Key ID",value:a,monospace:true,extraValue:[o&&t("span",null," [",t("peculiar-link",{href:o},"parents"),"]"),c&&t("span",null," [",t("peculiar-link",{href:c},"siblings"),"]")]}))};
|
|
199
199
|
/**
|
|
200
200
|
* @license
|
|
201
201
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
202
202
|
*
|
|
203
203
|
* This source code is licensed under the MIT license found in the
|
|
204
204
|
* LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/var
|
|
205
|
+
*/var vt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(i){var r,n;return[(r=i.distributionPoint)===null||r===void 0?void 0:r.fullName.map((function(i){return t($e,Object.assign({generalName:i},e))})),(n=i.cRLIssuer)===null||n===void 0?void 0:n.map((function(i){return t($e,Object.assign({generalName:i},e))}))]})))};
|
|
206
206
|
/**
|
|
207
207
|
* @license
|
|
208
208
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
209
209
|
*
|
|
210
210
|
* This source code is licensed under the MIT license found in the
|
|
211
211
|
* LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/var
|
|
212
|
+
*/var mt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(i,r){return[t(Ye,{name:"Description #"+(r+1),value:""}),t(Ye,{name:"Method",value:Fe(i.accessMethod)}),t($e,Object.assign({generalName:i.accessLocation},e))]})))};
|
|
213
213
|
/**
|
|
214
214
|
* @license
|
|
215
215
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
216
216
|
*
|
|
217
217
|
* This source code is licensed under the MIT license found in the
|
|
218
218
|
* LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/var
|
|
219
|
+
*/var xt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(i){return t($e,Object.assign({generalName:i},e))})))};
|
|
220
220
|
/**
|
|
221
221
|
* @license
|
|
222
222
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the MIT license found in the
|
|
225
225
|
* LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/var
|
|
226
|
+
*/var yt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){var r;return[t(Ye,{name:"Policy #"+(i+1),value:""}),t(Ye,{name:"ID",value:Fe(e.policyIdentifier)}),(r=e.policyQualifiers)===null||r===void 0?void 0:r.map((function(e,r){var n=[t(Ye,{name:"Qualifier #"+(i+1)+"."+(r+1),value:""}),t(Ye,{name:"ID",value:Fe(e.policyQualifierId)})];if(e.policyQualifierId==="1.3.6.1.5.5.7.2.1"){var a=l.parse(e.qualifier,X);n.push(t(Ye,{name:"Value",value:a.toString()}))}if(e.policyQualifierId==="1.3.6.1.5.5.7.2.2"){var a=l.parse(e.qualifier,J);if(a.explicitText){n.push(t(Ye,{name:"Value",value:a.explicitText.toString()}))}}return n}))]})))};
|
|
227
227
|
/**
|
|
228
228
|
* @license
|
|
229
229
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
230
230
|
*
|
|
231
231
|
* This source code is licensed under the MIT license found in the
|
|
232
232
|
* LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/var
|
|
233
|
+
*/var wt={"9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5":"Akamai CT","39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9":"Alpha CT",a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638:"CNNIC CT",cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900:"Certly.IO","1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4":"Cloudflare “Nimbus2017”",db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64:"Cloudflare “Nimbus2018”","747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56":"Cloudflare “Nimbus2019”","5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558":"Cloudflare “Nimbus2020”","4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8":"Cloudflare “Nimbus2021”","41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6":"Cloudflare “Nimbus2022”","7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52":"Cloudflare “Nimbus2023”","6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5":"DigiCert Nessie2018",fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c:"DigiCert Nessie2019",c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565:"DigiCert Nessie2020",eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9:"DigiCert Nessie2021","51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5":"DigiCert Nessie2022",b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a:"DigiCert Nessie2023","5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd":"DigiCert Server","8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f":"DigiCert Server 2",c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360:"DigiCert Yeti2018",e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe:"DigiCert Yeti2019",f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273:"DigiCert Yeti2020","5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca":"DigiCert Yeti2021","2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02":"DigiCert Yeti2022","35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c":"DigiCert Yeti2023","717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668":"GDCA 1","14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a":"GDCA 2",c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa:"GDCA CT #1","924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01":"GDCA CT #2",fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28:"Google “Argon2017”",a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25:"Google “Argon2018”","63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d":"Google “Argon2019”",b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e:"Google “Argon2020”",f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3:"Google “Argon2021”","2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784":"Google “Argon2022”","68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4":"Google “Aviator”",c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6:"Google “Crucible”","1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb":"Google “Daedalus”","293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478":"Google “Icarus”",a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10:"Google “Pilot”",ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb:"Google “Rocketeer”",bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185:"Google “Skydiver”","52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03":"Google “Solera2018”","0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00":"Google “Solera2019”","1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7":"Google “Solera2020”",a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7:"Google “Solera2021”","697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3":"Google “Solera2022”",a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681:"Google “Submariner”",b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77:"Google “Testtube”",b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e:"Google “Xenon2018”","084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0":"Google “Xenon2019”","07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c":"Google “Xenon2020”","7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7":"Google “Xenon2021”","46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47":"Google “Xenon2022”","7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3":"Izenpe","8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566":"Izenpe “Argi”","296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd":"Let“s Encrypt ”Clicky”","537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440":"Nordu “flimsy”",aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd:"Nordu “plausible”",e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273:"PuChuangSiDa CT",cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6:"SHECA CT 1","32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623":"SHECA CT 2",db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98:"Sectigo (Comodo) “Dodo” CT","6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913":"Sectigo (Comodo) “Mammoth” CT","5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c":"Sectigo (Comodo) “Sabre” CT","34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef":"StartCom",ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc:"Symantec",a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2:"Symantec Deneb","15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f":"Symantec “Sirius”",bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5:"Symantec “Vega”",b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b:"Up In The Air “Behind the Sofa”",ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d:"Venafi","03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b":"Venafi Gen2 CT","41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263":"WoSign","63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7":"WoSign 2","9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b":"WoSign CT #1"};
|
|
234
234
|
/**
|
|
235
235
|
* @license
|
|
236
236
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
237
237
|
*
|
|
238
238
|
* This source code is licensed under the MIT license found in the
|
|
239
239
|
* LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/var
|
|
240
|
+
*/var kt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.toJSON().map((function(e,i){return[t(Ye,{name:"SCT #"+(i+1),value:""}),t(Ye,{name:"Version",value:e.version+1}),t(Ye,{name:"Log Operator",value:wt[e.logId]||e.logId}),t(Ye,{name:"Log Key ID",value:e.logId,monospace:true}),t(Ye,{name:"Timestamp",value:He(e.timestamp)}),t(Ye,{name:"Signature Algorithm",value:(e.hashAlgorithm+" "+e.signatureAlgorithm).toUpperCase()}),t(Ye,{name:"Signature",value:e.signature,monospace:true})]})))};
|
|
241
241
|
/**
|
|
242
242
|
* @license
|
|
243
243
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
244
244
|
*
|
|
245
245
|
* This source code is licensed under the MIT license found in the
|
|
246
246
|
* LICENSE file in the root directory of this source tree.
|
|
247
|
-
*/var
|
|
247
|
+
*/var St=function(e){var i,r;var n=e.extension;return t(dt,{extension:n},(i=n.value.excludedSubtrees)===null||i===void 0?void 0:i.map((function(i){return t($e,Object.assign({generalName:i.base},e))})),(r=n.value.permittedSubtrees)===null||r===void 0?void 0:r.map((function(i){return t($e,Object.assign({generalName:i.base},e))})))};
|
|
248
248
|
/**
|
|
249
249
|
* @license
|
|
250
250
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
251
251
|
*
|
|
252
252
|
* This source code is licensed under the MIT license found in the
|
|
253
253
|
* LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/var
|
|
254
|
+
*/var _t=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Template ID",value:i.value.templateID}),t(Ye,{name:"Template Major Version",value:i.value.templateMajorVersion}),t(Ye,{name:"Template Minor Version",value:i.value.templateMinorVersion}))};
|
|
255
255
|
/**
|
|
256
256
|
* @license
|
|
257
257
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
258
258
|
*
|
|
259
259
|
* This source code is licensed under the MIT license found in the
|
|
260
260
|
* LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/var
|
|
261
|
+
*/var It=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Name",value:i.value.toString()}))};
|
|
262
262
|
/**
|
|
263
263
|
* @license
|
|
264
264
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
265
265
|
*
|
|
266
266
|
* This source code is licensed under the MIT license found in the
|
|
267
267
|
* LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/var
|
|
268
|
+
*/var Ct=function(e){var i=e.extension;var r=i.value.getVersion();return t(dt,{extension:i},t(Ye,{name:"Certificate Index",value:r.certificateIndex}),t(Ye,{name:"Key Index",value:r.keyIndex}))};
|
|
269
269
|
/**
|
|
270
270
|
* @license
|
|
271
271
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
272
272
|
*
|
|
273
273
|
* This source code is licensed under the MIT license found in the
|
|
274
274
|
* LICENSE file in the root directory of this source tree.
|
|
275
|
-
*/var
|
|
275
|
+
*/var Dt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){return[t(Ye,{name:"Statement #"+(i+1),value:""}),t(Ye,{name:"ID",value:Fe(e.statementId)}),t(Ye,{name:"Info",value:e.statementInfo.byteLength?s.Convert.ToHex(e.statementInfo):null,monospace:true})]})))};
|
|
276
276
|
/**
|
|
277
277
|
* @license
|
|
278
278
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
279
279
|
*
|
|
280
280
|
* This source code is licensed under the MIT license found in the
|
|
281
281
|
* LICENSE file in the root directory of this source tree.
|
|
282
|
-
*/var
|
|
282
|
+
*/var At=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Comment",value:i.value.value}))};
|
|
283
283
|
/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the MIT license found in the
|
|
288
288
|
* LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/var
|
|
289
|
+
*/var Lt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Type",value:i.value.toJSON().join(", ")}))};
|
|
290
290
|
/**
|
|
291
291
|
* @license
|
|
292
292
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
293
293
|
*
|
|
294
294
|
* This source code is licensed under the MIT license found in the
|
|
295
295
|
* LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/var
|
|
296
|
+
*/var Nt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Role",value:i.value.text}))};
|
|
297
297
|
/**
|
|
298
298
|
* @license
|
|
299
299
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
300
300
|
*
|
|
301
301
|
* This source code is licensed under the MIT license found in the
|
|
302
302
|
* LICENSE file in the root directory of this source tree.
|
|
303
|
-
*/var
|
|
303
|
+
*/var zt=function(e){var i=e.extension,r=e.getLEILink;return t(dt,{extension:i},t(Ye,{name:"Identifier",value:i.value.text,href:r(i.value.text)}))};
|
|
304
304
|
/**
|
|
305
305
|
* @license
|
|
306
306
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
307
307
|
*
|
|
308
308
|
* This source code is licensed under the MIT license found in the
|
|
309
309
|
* LICENSE file in the root directory of this source tree.
|
|
310
|
-
*/var
|
|
310
|
+
*/var jt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Version",value:i.value.version}),t($e,Object.assign({generalName:i.value.location},e)),t(Ye,{name:"Requires Auth",value:i.value.requiresAuth?"YES":"NO"}))};
|
|
311
311
|
/**
|
|
312
312
|
* @license
|
|
313
313
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
314
314
|
*
|
|
315
315
|
* This source code is licensed under the MIT license found in the
|
|
316
316
|
* LICENSE file in the root directory of this source tree.
|
|
317
|
-
*/var
|
|
317
|
+
*/var Pt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Version",value:i.value.version}))};
|
|
318
318
|
/**
|
|
319
319
|
* @license
|
|
320
320
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
321
321
|
*
|
|
322
322
|
* This source code is licensed under the MIT license found in the
|
|
323
323
|
* LICENSE file in the root directory of this source tree.
|
|
324
|
-
*/var
|
|
324
|
+
*/var Tt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Reason",value:i.value.toJSON()}))};
|
|
325
325
|
/**
|
|
326
326
|
* @license
|
|
327
327
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
328
328
|
*
|
|
329
329
|
* This source code is licensed under the MIT license found in the
|
|
330
330
|
* LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/function
|
|
331
|
+
*/function Et(e){return s.Convert.ToString(e.values[0])}
|
|
332
332
|
/**
|
|
333
333
|
* @license
|
|
334
334
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
335
335
|
*
|
|
336
336
|
* This source code is licensed under the MIT license found in the
|
|
337
337
|
* LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/var
|
|
338
|
+
*/var Kt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){return[t(Ye,{name:"Attribute #"+(i+1),value:""}),t(Ye,{name:"Type",value:Fe(e.type)}),t(Ye,{name:"Value",value:Et(e)})]})))};
|
|
339
339
|
/**
|
|
340
340
|
* @license
|
|
341
341
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
342
342
|
*
|
|
343
343
|
* This source code is licensed under the MIT license found in the
|
|
344
344
|
* LICENSE file in the root directory of this source tree.
|
|
345
|
-
*/var
|
|
345
|
+
*/var Ot=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Value",value:i.value,monospace:true}))};
|
|
346
346
|
/**
|
|
347
347
|
* @license
|
|
348
348
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
349
349
|
*
|
|
350
350
|
* This source code is licensed under the MIT license found in the
|
|
351
351
|
* LICENSE file in the root directory of this source tree.
|
|
352
|
-
*/var
|
|
352
|
+
*/var Ht=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Not Before",value:He(i.value.notBefore)}),t(Ye,{name:"Not After",value:He(i.value.notAfter)}))};
|
|
353
353
|
/**
|
|
354
354
|
* @license
|
|
355
355
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
356
356
|
*
|
|
357
357
|
* This source code is licensed under the MIT license found in the
|
|
358
358
|
* LICENSE file in the root directory of this source tree.
|
|
359
|
-
*/var
|
|
359
|
+
*/var Rt=function(e){var i=e.extension;return t(dt,{extension:i},t(Ye,{name:"Version",value:i.value.entrustVers}),t(Ye,{name:"Info Flags",value:i.value.entrustInfoFlags.toJSON().join(", ")}))};
|
|
360
360
|
/**
|
|
361
361
|
* @license
|
|
362
362
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
363
363
|
*
|
|
364
364
|
* This source code is licensed under the MIT license found in the
|
|
365
365
|
* LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/var
|
|
366
|
+
*/var Vt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){return[t(Ye,{name:"Biometric #"+(i+1),value:""}),t(Ye,{name:"OID",value:Fe(e.typeOfBiometricData.biometricDataOid)}),t(Ye,{name:"Type",value:e.typeOfBiometricData.predefinedBiometricType}),t(Ye,{name:"Algorithm",value:Fe(e.hashAlgorithm.algorithm)}),t(Ye,{name:"Hash",value:s.Convert.ToHex(e.biometricDataHash.buffer),monospace:true}),t(Ye,{name:"Source Uri",value:e.sourceDataUri})]})))};
|
|
367
367
|
/**
|
|
368
368
|
* @license
|
|
369
369
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
370
370
|
*
|
|
371
371
|
* This source code is licensed under the MIT license found in the
|
|
372
372
|
* LICENSE file in the root directory of this source tree.
|
|
373
|
-
*/var
|
|
373
|
+
*/var Bt=function(e){var i=e.extension;var r=function(e){if(!e){return null}return e.map((function(e){var i=e.imageDetails;return[t(Ye,{name:"Image Type",value:i.mediaType}),t(Ye,{name:"Image Hash",value:s.Convert.ToHex(i.logotypeHash[0].hashValue),monospace:true}),t(Ye,{name:"Image URL",value:i.logotypeURI[0],monospace:true,collapse:true}),t(Ye,{name:"Image Hash Algorithm",value:Fe(i.logotypeHash[0].hashAlg.algorithm)})]}))};var n=function(e){if(!e){return null}return e.map((function(e){var i=e.audioDetails;return[t(Ye,{name:"Audio Type",value:i.mediaType}),t(Ye,{name:"Audio Hash",value:s.Convert.ToHex(i.logotypeHash[0].hashValue),monospace:true}),t(Ye,{name:"Audio URL",value:i.logotypeURI[0],monospace:true,collapse:true}),t(Ye,{name:"Audio Hash Algorithm",value:Fe(i.logotypeHash[0].hashAlg.algorithm)})]}))};var a=function(e,i){if(!i||!i.direct){return null}var a=i.direct,o=a.image,s=a.audio;return[t(Ye,{name:"Type",value:e}),r(o),n(s),t("tr",null,t("td",null),t("td",null))]};return t(dt,{extension:i},a("Subject",i.value.subjectLogo),a("Issuer",i.value.issuerLogo))};
|
|
374
374
|
/**
|
|
375
375
|
* @license
|
|
376
376
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
377
377
|
*
|
|
378
378
|
* This source code is licensed under the MIT license found in the
|
|
379
379
|
* LICENSE file in the root directory of this source tree.
|
|
380
|
-
*/var
|
|
380
|
+
*/var Gt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){return[t(Ye,{name:"Entry #"+(i+1),value:""}),t(Ye,{name:"SPC",value:e.spc}),t(Ye,{name:"Range",value:e.range?"start="+e.range.start+" count=="+e.range.count:null}),t(Ye,{name:"One",value:e.one})]})))};
|
|
381
381
|
/**
|
|
382
382
|
* @license
|
|
383
383
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
384
384
|
*
|
|
385
385
|
* This source code is licensed under the MIT license found in the
|
|
386
386
|
* LICENSE file in the root directory of this source tree.
|
|
387
|
-
*/var
|
|
387
|
+
*/var qt=function(e){var i=e.extension;return t(dt,{extension:i},i.value.requireExplicitPolicy&&t(Ye,{name:"Require Explicit Policy",value:Z.toASN(i.value.requireExplicitPolicy).valueBlock.toString()}),i.value.inhibitPolicyMapping&&t(Ye,{name:"Inhibit Policy Mapping",value:Z.toASN(i.value.inhibitPolicyMapping).valueBlock.toString()}))};
|
|
388
388
|
/**
|
|
389
389
|
* @license
|
|
390
390
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
391
391
|
*
|
|
392
392
|
* This source code is licensed under the MIT license found in the
|
|
393
393
|
* LICENSE file in the root directory of this source tree.
|
|
394
|
-
*/var
|
|
394
|
+
*/var Ft=function(e){var i=e.extension;return t(dt,{extension:i},i.value.map((function(e,i){return[t(Ye,{name:"Policy #"+(i+1),value:""}),t(Ye,{name:"Issuer Domain",value:Fe(e.issuerDomainPolicy)}),t(Ye,{name:"Subject Domain",value:Fe(e.subjectDomainPolicy)})]})))};
|
|
395
395
|
/**
|
|
396
396
|
* @license
|
|
397
397
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
398
398
|
*
|
|
399
399
|
* This source code is licensed under the MIT license found in the
|
|
400
400
|
* LICENSE file in the root directory of this source tree.
|
|
401
|
-
*/function
|
|
401
|
+
*/var Mt=function(e){var i=e.extensions,r=e.title;if(!i||!i.length){return null}return[t(Ue,{value:r||"Extensions"}),i.map((function(i){try{if(i.value instanceof $){return t(ft,{extension:i})}if(i.value instanceof ee){return t(pt,{extension:i})}if(i.value instanceof te){return t(bt,{extension:i})}if(i.value instanceof ie){return t(ht,Object.assign({extension:i},e))}if(i.value instanceof re){return t(gt,Object.assign({extension:i},e))}if(i.value instanceof ne){return t(vt,Object.assign({extension:i},e))}if(i.value instanceof ae||i.value instanceof oe){return t(mt,Object.assign({extension:i},e))}if(i.value instanceof se){return t(xt,Object.assign({extension:i},e))}if(i.value instanceof ce){return t(yt,{extension:i})}if(i.value instanceof le){return t(kt,{extension:i})}if(i.value instanceof ue){return t(St,Object.assign({extension:i},e))}if(i.value instanceof de){return t(_t,{extension:i})}if(i.value instanceof fe){return t(It,{extension:i})}if(i.value instanceof pe){return t(Ct,{extension:i})}if(i.value instanceof be){return t(Dt,{extension:i})}if(i.value instanceof he){return t(At,{extension:i})}if(i.value instanceof ge){return t(Lt,{extension:i})}if(i.value instanceof ve){return t(Nt,{extension:i})}if(i.value instanceof me){return t(zt,Object.assign({extension:i},e))}if(i.value instanceof xe){return t(jt,Object.assign({extension:i},e))}if(i.value instanceof ye){return t(Pt,{extension:i})}if(i.value instanceof we){return t(Tt,{extension:i})}if(i.value instanceof ke){return t(Kt,{extension:i})}if(i.value instanceof Se){return t(Ht,{extension:i})}if(i.value instanceof _e){return t(Rt,{extension:i})}if(i.value instanceof Ie){return t(Vt,{extension:i})}if(i.value instanceof Ce){return t(Bt,{extension:i})}if(i.value instanceof De){return t(Gt,{extension:i})}if(i.value instanceof Ae){return t(qt,{extension:i})}if(i.value instanceof Le){return t(Ft,{extension:i})}if(typeof i.value==="string"){return t(Ot,{extension:i})}return t(dt,{extension:i})}catch(r){console.error("Error render extension:",i.asn.extnID);return null}}))]};
|
|
402
402
|
/**
|
|
403
403
|
* @license
|
|
404
404
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
405
405
|
*
|
|
406
406
|
* This source code is licensed under the MIT license found in the
|
|
407
407
|
* LICENSE file in the root directory of this source tree.
|
|
408
|
-
*/var
|
|
408
|
+
*/var Ut=function(e){var i=e.serialNumber,r=e.version,n=e.validity,a=e.notBefore,o=e.notAfter,s=e.type;return[t(Ue,{value:Oe.getString("basicInformation")}),t(Ye,{name:Oe.getString("type"),value:s}),t(Ye,{name:Oe.getString("serialNumber"),value:i,monospace:true}),t(Ye,{name:Oe.getString("version"),value:r}),t(Ye,{name:Oe.getString("validity"),value:n}),t(Ye,{name:Oe.getString("issued"),value:a?He(a):undefined}),t(Ye,{name:Oe.getString("expired"),value:o?He(o):undefined})]};
|
|
409
409
|
/**
|
|
410
410
|
* @license
|
|
411
411
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
412
412
|
*
|
|
413
413
|
* This source code is licensed under the MIT license found in the
|
|
414
414
|
* LICENSE file in the root directory of this source tree.
|
|
415
|
-
*/var
|
|
415
|
+
*/function Yt(e){if(e instanceof qe){Ne.certificateRequest.asPEM(e.exportAsPemFormatted(),e.commonName)}else{Ne.certificate.asPEM(e.exportAsPemFormatted(),e.commonName)}}function Qt(e){if(e instanceof qe){Ne.certificateRequest.asDER(e.exportAsHexFormatted(),e.commonName)}else{Ne.certificate.asDER(e.exportAsHexFormatted(),e.commonName)}}var Xt=function(e){var i=e.certificate;return[t(Ue,{value:Oe.getString("miscellaneous")}),t("tr",null,t("td",{class:"vertical_align_middle"},t("peculiar-typography",{color:"grey_5"},Oe.getString("download"),":")),t("td",null,t("peculiar-button-split",{onClick:Yt.bind(undefined,i),actions:[{text:Oe.getString("download.der"),onClick:Qt.bind(undefined,i)}]},Oe.getString("download.pem"))))]};
|
|
416
416
|
/**
|
|
417
417
|
* @license
|
|
418
418
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
419
419
|
*
|
|
420
420
|
* This source code is licensed under the MIT license found in the
|
|
421
421
|
* LICENSE file in the root directory of this source tree.
|
|
422
|
-
*/var Qt=function(e){var i=e.holder;if(!i){return null}var r=i.baseCertificateID,n=i.objectDigestInfo;return[t(Be,{value:Ke.getString("holder")}),r&&[r.issuer.map((function(e){return t(Xe,{generalName:e,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}})})),t("tr",null,t("td",null),t("td",null)),t(qe,{name:Ke.getString("serialNumber"),value:s.Convert.ToHex(r.serial),monospace:true}),t("tr",null,t("td",null),t("td",null))],n&&[t(qe,{name:Ke.getString("digestInfo"),value:""}),t(qe,{name:Ke.getString("algorithm"),value:Ve(n.digestAlgorithm.algorithm)}),t(qe,{name:Ke.getString("value"),value:s.Convert.ToHex(n.objectDigest),monospace:true}),t(qe,{name:Ke.getString("type"),value:n.digestedObjectType})]]};var Xt=":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}";var Jt=e("peculiar_attribute_certificate_viewer",function(){function e(e){var t=this;i(this,e);this.isDecodeInProcess=true;this.getAuthKeyIdParentLink=function(e){var i;return(i=t.authKeyIdParentLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getAuthKeyIdSiblingsLink=function(e){var i;return(i=t.authKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getSubjectKeyIdChildrenLink=function(e){var i;return(i=t.subjectKeyIdChildrenLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)};this.getSubjectKeyIdSiblingsLink=function(e){var i;return(i=t.subjectKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)}}e.prototype.componentWillLoad=function(){this.decodeCertificate(this.certificate)};e.prototype.decodeCertificate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:this.isDecodeInProcess=true;i.label=1;case 1:i.trys.push([1,4,,5]);if(e instanceof He){this.certificateDecoded=e}else if(typeof e==="string"){this.certificateDecoded=new He(e)}else{return[2]}this.certificateDecoded.parseExtensions();this.certificateDecoded.parseAttributes();return[4,this.certificateDecoded.getThumbprint("SHA-1")];case 2:i.sent();return[4,this.certificateDecoded.getThumbprint("SHA-256")];case 3:i.sent();return[3,5];case 4:t=i.sent();this.certificateDecodeError=t;console.error("Error certificate parse:",t);return[3,5];case 5:this.isDecodeInProcess=false;return[2]}}))}))};e.prototype.watchCertificateAndDecode=function(e,t){if(typeof e==="string"&&typeof t==="string"){if(e!==t){this.decodeCertificate(e)}return}if(e instanceof He&&t instanceof He){if(e.serialNumber!==t.serialNumber){this.decodeCertificate(e)}}};e.prototype.renderErrorState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))};e.prototype.renderEmptyState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))};e.prototype.render=function(){if(this.certificateDecodeError){return this.renderErrorState()}if(!this.certificateDecoded){return this.renderEmptyState()}return t(r,null,t("table",null,t(Vt,Object.assign({},this.certificateDecoded)),t(Yt,{issuer:this.certificateDecoded.issuer}),t(Qt,{holder:this.certificateDecoded.holder}),t(Fe,{signature:this.certificateDecoded.signature}),t(ot,{thumbprints:this.certificateDecoded.thumbprints}),t(at,{attributes:this.certificateDecoded.attributes,getLEILink:Ft,getDNSNameLink:Ut,getIPAddressLink:Mt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(Rt,{extensions:this.certificateDecoded.extensions,getLEILink:Ft,getDNSNameLink:Ut,getIPAddressLink:Mt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(qt,{certificate:this.certificateDecoded})))};Object.defineProperty(e,"watchers",{get:function(){return{certificate:["watchCertificateAndDecode"]}},enumerable:false,configurable:true});return e}());Jt.style=Xt;var Wt=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;width:auto;cursor:pointer;position:relative;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;border-style:solid;border-width:1px;font-weight:400;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;cursor:inherit;height:30px;line-height:30px;border-radius:2px;padding:0 5px;padding:0 var(--pv-button-padding-end) 0 var(--pv-button-padding-start)}.button::-moz-focus-inner{border:0}.button:focus{outline:none;-webkit-box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1);box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1)}.button[disabled]{opacity:0.5;cursor:not-allowed}.button_stroke{border-color:rgba(53, 132, 247, 0.3);border-color:rgba(var(--pv-color-primary-rgb), 0.3);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);background-color:transparent}.button_fill{border-color:#3584f7;border-color:rgba(var(--pv-color-primary-rgb), 1);background-color:#3584f7;background-color:rgba(var(--pv-color-primary-rgb), 1);color:white;color:rgba(var(--pv-color-light-rgb), 1)}.button_label{-webkit-transition:opacity 200ms;transition:opacity 200ms}.button:hover .button_label{opacity:0.7}';var Zt=e("peculiar_button",function(){function e(e){var t=this;i(this,e);this.fill="stroke";this.handleClick=function(e){if(t.disabled){e.preventDefault();e.stopPropagation();return}if(t.onClick){t.onClick(e)}}}e.prototype.render=function(){var e=!!this.href;var i=e?"a":"button";return t(i,{class:{button:true,button_stroke:this.fill==="stroke",button_fill:this.fill==="fill",button_disabled:this.disabled},disabled:this.disabled,type:!e&&"button",href:e&&this.href,target:e&&this.target?this.target:null,rel:e&&"noreferrer noopener",onClick:this.handleClick,part:"base"},t("span",{part:"label",class:"button_label"},t("slot",null)))};return e}());Zt.style=Wt;var $t=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:""}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}';var ei=e("peculiar_button_split",function(){function e(e){var t=this;i(this,e);this.fill="stroke";this.actions=[];this.open=false;this.onClickSplitButton=function(e){e.stopPropagation();t.open=!t.open}}e.prototype.onClickActiveButton=function(e,t){this.open=false;e(t)};e.prototype.renderActiveSplitState=function(){var e=this;if(!this.open){return null}return t("div",{class:"button_split_container"},this.actions.map((function(i){return t("peculiar-button",{fill:"fill",class:"button_split_action",onClick:e.onClickActiveButton.bind(e,i.onClick)},i.text)})))};e.prototype.render=function(){return t("div",{class:{button_split:true}},t("peculiar-button",{fill:this.fill,onClick:this.onClick},t("slot",null)),t("peculiar-button",{fill:this.fill,onClick:this.onClickSplitButton,class:{button_split_with_icon:true,m_open:this.open}},t("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"button_split_icon"},t("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))),this.renderActiveSplitState())};return e}());ei.style=$t;var ti=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block;width:100%;font-size:0}.textarea{min-height:300px;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:14px;font-family:monospace;resize:vertical;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);font-size:14px;font-size:var(--pv-font-size-h7)}.controls{margin-top:10px}.button{position:relative}.button:not(:first-child){margin-left:10px}.viewer{margin-top:64px}.input_file{opacity:0;width:100%;height:100%;top:0;left:0;display:block;position:absolute}";var ii=e("peculiar_certificate_decoder",function(){function e(e){var t=this;i(this,e);this.onClickDecode=function(){var e=t.inputPaste.value;if(e){t.decode(e)}};this.onClickExample=function(){t.decode(t.certificateExample)};this.onClickClear=function(){t.clearValue()};this.onChangeInputFile=function(e){return __awaiter(t,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:t=e.target;if(!t.files)return[3,2];return[4,Pe(t.files[0])];case 1:i=r.sent();if(typeof i.value==="string"){this.decode(i.value)}t.value="";r.label=2;case 2:return[2]}}))}))};this.onDropFile=function(e){return __awaiter(t,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:e.stopPropagation();e.preventDefault();t=e.dataTransfer;if(!t.files)return[3,2];return[4,Pe(t.files[0])];case 1:i=r.sent();if(typeof i.value==="string"){this.decode(i.value)}r.label=2;case 2:return[2]}}))}))}}e.prototype.componentDidLoad=function(){var e=this;var t=Ee.parseHash(window.location.search);if(t.cert){setTimeout((function(){return e.decode(t.cert)}),100)}};e.prototype.clearValue=function(){this.inputPaste.value="";this.certificateDecoded=null;Ee.replace({search:""})};e.prototype.setValue=function(e){this.certificateDecoded=e;this.inputPaste.value=e.exportAsPemFormatted();Ee.replace({search:Ee.queryStringify({cert:e.exportAsBase64()})})};e.prototype.decode=function(e){var t=De(e);var i=Ae(e);var r=Le(e);var n=ze(e);var a;var o;if(t&&!(i||n||r)){this.clearValue();alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.");return}try{if(i){a=new Ne(e)}if(n){a=new He(e)}if(r){a=new Re(e)}}catch(s){o=s}if(!a){try{a=new Ne(e)}catch(s){o=s}}if(!a){try{a=new He(e)}catch(s){o=s}}if(!a){try{a=new Re(e)}catch(s){o=s}}if(!a){this.clearValue();console.log(o);alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest.")}else{this.setValue(a)}};e.prototype.render=function(){var e=this;return t(r,null,t("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:function(t){e.inputPaste=t},onDrop:this.onDropFile}),t("div",{class:"controls"},t("peculiar-button",{fill:"fill",class:"button",onClick:this.onClickDecode},"Decode"),t("peculiar-button",{class:"button"},"Choose file",t("input",{type:"file",class:"input_file",accept:"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,.csr,.req",onChange:this.onChangeInputFile,value:""})),t("peculiar-button",{class:"button",onClick:this.onClickClear},"Clear"),this.certificateExample&&t("peculiar-button",{class:"button",onClick:this.onClickExample},"Example")),this.certificateDecoded instanceof Ne&&t("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:true}),this.certificateDecoded instanceof He&&t("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:true}),this.certificateDecoded instanceof Re&&t("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:true}))};return e}());ii.style=ti;
|
|
422
|
+
*/var Jt=function(e){return"https://search.gleif.org/#/record/"+e};var Wt=function(e){return"https://search.censys.io/search?resource=hosts&q=dns.names%3A"+e};var Zt=function(e){return"https://search.censys.io/search?resource=hosts&q=ip%3A"+e};
|
|
423
423
|
/**
|
|
424
424
|
* @license
|
|
425
425
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
426
426
|
*
|
|
427
427
|
* This source code is licensed under the MIT license found in the
|
|
428
428
|
* LICENSE file in the root directory of this source tree.
|
|
429
|
-
*/
|
|
429
|
+
*/var $t=function(e){var i=e.issuer;if(!i){return null}return[t(Ue,{value:Oe.getString("issuer")}),i.map((function(e){return t($e,{generalName:e,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}})}))]};
|
|
430
430
|
/**
|
|
431
431
|
* @license
|
|
432
432
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
433
433
|
*
|
|
434
434
|
* This source code is licensed under the MIT license found in the
|
|
435
435
|
* LICENSE file in the root directory of this source tree.
|
|
436
|
-
*/var oi=function(e){var i=e.name;return[t(Be,{value:Ke.getString("subjectName")}),i.map((function(e){return t(qe,{name:e.name||e.type,value:e.value})}))]};
|
|
436
|
+
*/var ei=function(e){var i=e.holder;if(!i){return null}var r=i.baseCertificateID,n=i.objectDigestInfo;return[t(Ue,{value:Oe.getString("holder")}),r&&[r.issuer.map((function(e){return t($e,{generalName:e,getDNSNameLink:function(){return""},getIPAddressLink:function(){return""}})})),t("tr",null,t("td",null),t("td",null)),t(Ye,{name:Oe.getString("serialNumber"),value:s.Convert.ToHex(r.serial),monospace:true}),t("tr",null,t("td",null),t("td",null))],n&&[t(Ye,{name:Oe.getString("digestInfo"),value:""}),t(Ye,{name:Oe.getString("algorithm"),value:Fe(n.digestAlgorithm.algorithm)}),t(Ye,{name:Oe.getString("value"),value:s.Convert.ToHex(n.objectDigest),monospace:true}),t(Ye,{name:Oe.getString("type"),value:n.digestedObjectType})]]};var ti=":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}";var ii=e("peculiar_attribute_certificate_viewer",function(){function e(e){var t=this;i(this,e);this.isDecodeInProcess=true;this.getAuthKeyIdParentLink=function(e){var i;return(i=t.authKeyIdParentLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getAuthKeyIdSiblingsLink=function(e){var i;return(i=t.authKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getSubjectKeyIdChildrenLink=function(e){var i;return(i=t.subjectKeyIdChildrenLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)};this.getSubjectKeyIdSiblingsLink=function(e){var i;return(i=t.subjectKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)}}e.prototype.componentWillLoad=function(){this.decodeCertificate(this.certificate)};e.prototype.decodeCertificate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:this.isDecodeInProcess=true;i.label=1;case 1:i.trys.push([1,4,,5]);if(e instanceof Ge){this.certificateDecoded=e}else if(typeof e==="string"){this.certificateDecoded=new Ge(e)}else{return[2]}this.certificateDecoded.parseExtensions();this.certificateDecoded.parseAttributes();return[4,this.certificateDecoded.getThumbprint("SHA-1")];case 2:i.sent();return[4,this.certificateDecoded.getThumbprint("SHA-256")];case 3:i.sent();return[3,5];case 4:t=i.sent();this.certificateDecodeError=t;console.error("Error certificate parse:",t);return[3,5];case 5:this.isDecodeInProcess=false;return[2]}}))}))};e.prototype.watchCertificateAndDecode=function(e,t){if(typeof e==="string"&&typeof t==="string"){if(e!==t){this.decodeCertificate(e)}return}if(e instanceof Ge&&t instanceof Ge){if(e.serialNumber!==t.serialNumber){this.decodeCertificate(e)}}};e.prototype.renderErrorState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))};e.prototype.renderEmptyState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))};e.prototype.render=function(){if(this.certificateDecodeError){return this.renderErrorState()}if(!this.certificateDecoded){return this.renderEmptyState()}return t(r,null,t("table",null,t(Ut,Object.assign({},this.certificateDecoded)),t($t,{issuer:this.certificateDecoded.issuer}),t(ei,{holder:this.certificateDecoded.holder}),t(Qe,{signature:this.certificateDecoded.signature}),t(ut,{thumbprints:this.certificateDecoded.thumbprints}),t(lt,{attributes:this.certificateDecoded.attributes,getLEILink:Jt,getDNSNameLink:Wt,getIPAddressLink:Zt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(Mt,{extensions:this.certificateDecoded.extensions,getLEILink:Jt,getDNSNameLink:Wt,getIPAddressLink:Zt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(Xt,{certificate:this.certificateDecoded})))};Object.defineProperty(e,"watchers",{get:function(){return{certificate:["watchCertificateAndDecode"]}},enumerable:false,configurable:true});return e}());ii.style=ti;var ri=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;width:auto;cursor:pointer;position:relative;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;border-style:solid;border-width:1px;font-weight:400;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;cursor:inherit;height:30px;line-height:30px;border-radius:2px;padding:0 5px;padding:0 var(--pv-button-padding-end) 0 var(--pv-button-padding-start)}.button::-moz-focus-inner{border:0}.button:focus{outline:none;-webkit-box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1);box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1)}.button[disabled]{opacity:0.5;cursor:not-allowed}.button_stroke{border-color:rgba(53, 132, 247, 0.3);border-color:rgba(var(--pv-color-primary-rgb), 0.3);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);background-color:transparent}.button_fill{border-color:#3584f7;border-color:rgba(var(--pv-color-primary-rgb), 1);background-color:#3584f7;background-color:rgba(var(--pv-color-primary-rgb), 1);color:white;color:rgba(var(--pv-color-light-rgb), 1)}.button_label{-webkit-transition:opacity 200ms;transition:opacity 200ms}.button:hover .button_label{opacity:0.7}';var ni=e("peculiar_button",function(){function e(e){var t=this;i(this,e);this.fill="stroke";this.handleClick=function(e){if(t.disabled){e.preventDefault();e.stopPropagation();return}if(t.onClick){t.onClick(e)}}}e.prototype.render=function(){var e=!!this.href;var i=e?"a":"button";return t(i,{class:{button:true,button_stroke:this.fill==="stroke",button_fill:this.fill==="fill",button_disabled:this.disabled},disabled:this.disabled,type:!e&&"button",href:e&&this.href,target:e&&this.target?this.target:null,rel:e&&"noreferrer noopener",onClick:this.handleClick,part:"base"},t("span",{part:"label",class:"button_label"},t("slot",null)))};return e}());ni.style=ri;var ai=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:""}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}';var oi=e("peculiar_button_split",function(){function e(e){var t=this;i(this,e);this.fill="stroke";this.actions=[];this.open=false;this.onClickSplitButton=function(e){e.stopPropagation();t.open=!t.open}}e.prototype.onClickActiveButton=function(e,t){this.open=false;e(t)};e.prototype.renderActiveSplitState=function(){var e=this;if(!this.open){return null}return t("div",{class:"button_split_container"},this.actions.map((function(i){return t("peculiar-button",{fill:"fill",class:"button_split_action",onClick:e.onClickActiveButton.bind(e,i.onClick)},i.text)})))};e.prototype.render=function(){return t("div",{class:{button_split:true}},t("peculiar-button",{fill:this.fill,onClick:this.onClick},t("slot",null)),t("peculiar-button",{fill:this.fill,onClick:this.onClickSplitButton,class:{button_split_with_icon:true,m_open:this.open}},t("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"button_split_icon"},t("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))),this.renderActiveSplitState())};return e}());oi.style=ai;var si=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block;width:100%;font-size:0}.textarea{min-height:300px;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:14px;font-family:monospace;resize:vertical;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);font-size:14px;font-size:var(--pv-font-size-h7)}.controls{margin-top:10px}.button{position:relative}.button:not(:first-child){margin-left:10px}.viewer{margin-top:64px}.input_file{opacity:0;width:100%;height:100%;top:0;left:0;display:block;position:absolute}";var ci=e("peculiar_certificate_decoder",function(){function e(e){var t=this;i(this,e);this.onClickDecode=function(){var e=t.inputPaste.value;if(e){t.decode(e)}};this.onClickExample=function(){t.decode(t.certificateExample)};this.onClickClear=function(){t.clearValue()};this.onChangeInputFile=function(e){return __awaiter(t,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:t=e.target;if(!t.files)return[3,2];return[4,Ve(t.files[0])];case 1:i=r.sent();if(typeof i.value==="string"){this.decode(i.value)}t.value="";r.label=2;case 2:return[2]}}))}))};this.onDropFile=function(e){return __awaiter(t,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:e.stopPropagation();e.preventDefault();t=e.dataTransfer;if(!t.files)return[3,2];return[4,Ve(t.files[0])];case 1:i=r.sent();if(typeof i.value==="string"){this.decode(i.value)}r.label=2;case 2:return[2]}}))}))}}e.prototype.componentDidLoad=function(){var e=this;var t=Re.parseHash(window.location.search);if(t.cert){setTimeout((function(){return e.decode(t.cert)}),100)}};e.prototype.clearValue=function(){this.inputPaste.value="";this.certificateDecoded=null;Re.replace({search:""})};e.prototype.setValue=function(e){this.certificateDecoded=e;this.inputPaste.value=e.exportAsPemFormatted();Re.replace({search:Re.queryStringify({cert:e.exportAsBase64()})})};e.prototype.decode=function(e){var t=ze(e);var i=je(e);var r=Pe(e);var n=Te(e);var a;var o;if(t&&!(i||n||r)){this.clearValue();alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.");return}try{if(i){a=new Ee(e)}if(n){a=new Ge(e)}if(r){a=new qe(e)}}catch(s){o=s}if(!a){try{a=new Ee(e)}catch(s){o=s}}if(!a){try{a=new Ge(e)}catch(s){o=s}}if(!a){try{a=new qe(e)}catch(s){o=s}}if(!a){this.clearValue();console.log(o);alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest.")}else{this.setValue(a)}};e.prototype.render=function(){var e=this;return t(r,null,t("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:function(t){e.inputPaste=t},onDrop:this.onDropFile}),t("div",{class:"controls"},t("peculiar-button",{fill:"fill",class:"button",onClick:this.onClickDecode},"Decode"),t("peculiar-button",{class:"button"},"Choose file",t("input",{type:"file",class:"input_file",accept:"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,.csr,.req",onChange:this.onChangeInputFile,value:""})),t("peculiar-button",{class:"button",onClick:this.onClickClear},"Clear"),this.certificateExample&&t("peculiar-button",{class:"button",onClick:this.onClickExample},"Example")),this.certificateDecoded instanceof Ee&&t("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:true}),this.certificateDecoded instanceof Ge&&t("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:true}),this.certificateDecoded instanceof qe&&t("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:true}))};return e}());ci.style=si;
|
|
437
437
|
/**
|
|
438
438
|
* @license
|
|
439
439
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
440
440
|
*
|
|
441
441
|
* This source code is licensed under the MIT license found in the
|
|
442
442
|
* LICENSE file in the root directory of this source tree.
|
|
443
|
-
*/var si=function(e){var i=e.name,r=e.issuerDnLink;var n=Ke.getString("issuerName");return[t(Be,{value:r?t("peculiar-link",{href:r,type:"h6"},n):n}),i.map((function(e){return t(qe,{name:e.name||e.type,value:e.value})}))]};var ci=":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}";var li=e("peculiar_certificate_viewer",function(){function e(e){var t=this;i(this,e);this.isDecodeInProcess=true;this.getAuthKeyIdParentLink=function(e){var i;return(i=t.authKeyIdParentLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getAuthKeyIdSiblingsLink=function(e){var i;return(i=t.authKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getSubjectKeyIdChildrenLink=function(e){var i;return(i=t.subjectKeyIdChildrenLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)};this.getSubjectKeyIdSiblingsLink=function(e){var i;return(i=t.subjectKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)}}e.prototype.componentWillLoad=function(){this.decodeCertificate(this.certificate)};e.prototype.decodeCertificate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:this.isDecodeInProcess=true;i.label=1;case 1:i.trys.push([1,4,,5]);if(e instanceof Ne){this.certificateDecoded=e}else if(typeof e==="string"){this.certificateDecoded=new Ne(e)}else{return[2]}this.certificateDecoded.parseExtensions();return[4,this.certificateDecoded.getThumbprint("SHA-1")];case 2:i.sent();return[4,this.certificateDecoded.getThumbprint("SHA-256")];case 3:i.sent();return[3,5];case 4:t=i.sent();this.certificateDecodeError=t;console.error("Error certificate parse:",t);return[3,5];case 5:this.isDecodeInProcess=false;return[2]}}))}))};e.prototype.watchCertificateAndDecode=function(e,t){if(typeof e==="string"&&typeof t==="string"){if(e!==t){this.decodeCertificate(e)}return}if(e instanceof Ne&&t instanceof Ne){if(e.serialNumber!==t.serialNumber){this.decodeCertificate(e)}}};e.prototype.getIssuerDnLink=function(){return this.issuerDnLink};e.prototype.renderErrorState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))};e.prototype.renderEmptyState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))};e.prototype.render=function(){if(this.certificateDecodeError){return this.renderErrorState()}if(!this.certificateDecoded){return this.renderEmptyState()}return t(r,{"data-view":this.view},t("table",null,t(Vt,Object.assign({},this.certificateDecoded)),t(oi,{name:this.certificateDecoded.subject}),t(si,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),t(ai,{publicKey:this.certificateDecoded.publicKey}),t(Fe,{signature:this.certificateDecoded.signature}),t(ot,{thumbprints:this.certificateDecoded.thumbprints}),t(Rt,{extensions:this.certificateDecoded.extensions,getLEILink:Ft,getDNSNameLink:Ut,getIPAddressLink:Mt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(qt,{certificate:this.certificateDecoded})))};Object.defineProperty(e,"watchers",{get:function(){return{certificate:["watchCertificateAndDecode"]}},enumerable:false,configurable:true});return e}());li.style=ci;var ui=":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}";var di=e("peculiar_csr_viewer",function(){function e(e){var t=this;i(this,e);this.isDecodeInProcess=true;this.getAuthKeyIdParentLink=function(e){return e};this.getAuthKeyIdSiblingsLink=function(e){return e};this.getSubjectKeyIdChildrenLink=function(e){var i;return(i=t.subjectKeyIdChildrenLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)};this.getSubjectKeyIdSiblingsLink=function(e){var i;return(i=t.subjectKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)}}e.prototype.componentWillLoad=function(){this.decodeCertificate(this.certificate)};e.prototype.decodeCertificate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:this.isDecodeInProcess=true;i.label=1;case 1:i.trys.push([1,4,,5]);if(e instanceof Re){this.certificateDecoded=e}else if(typeof e==="string"){this.certificateDecoded=new Re(e)}else{return[2]}this.certificateDecoded.parseAttributes();return[4,this.certificateDecoded.getThumbprint("SHA-1")];case 2:i.sent();return[4,this.certificateDecoded.getThumbprint("SHA-256")];case 3:i.sent();return[3,5];case 4:t=i.sent();this.certificateDecodeError=t;console.error("Error certificate parse:",t);return[3,5];case 5:this.isDecodeInProcess=false;return[2]}}))}))};e.prototype.watchCertificateAndDecode=function(e,t){if(typeof e==="string"&&typeof t==="string"){if(e!==t){this.decodeCertificate(e)}return}if(e instanceof Re&&t instanceof Re){if(e.commonName!==t.commonName){this.decodeCertificate(e)}}};e.prototype.renderErrorState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))};e.prototype.renderEmptyState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))};e.prototype.getExtensionRequestAttribute=function(){if(!this.certificateDecoded){return undefined}return this.certificateDecoded.attributes.find((function(e){return e.asn.type==="1.2.840.113549.1.9.14"}))};e.prototype.render=function(){if(this.certificateDecodeError){return this.renderErrorState()}if(!this.certificateDecoded){return this.renderEmptyState()}var e=this.getExtensionRequestAttribute();return t(r,{"data-view":this.view},t("table",null,t(Vt,Object.assign({},this.certificateDecoded)),t(oi,{name:this.certificateDecoded.subject}),t(ai,{publicKey:this.certificateDecoded.publicKey}),t(Fe,{signature:this.certificateDecoded.signature}),t(ot,{thumbprints:this.certificateDecoded.thumbprints}),t(at,{attributes:this.certificateDecoded.attributes,getLEILink:Ft,getDNSNameLink:Ut,getIPAddressLink:Mt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(Rt,{extensions:e===null||e===void 0?void 0:e.value,title:"Extension Request",getLEILink:Ft,getDNSNameLink:Ut,getIPAddressLink:Mt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(qt,{certificate:this.certificateDecoded})))};Object.defineProperty(e,"watchers",{get:function(){return{certificate:["watchCertificateAndDecode"]}},enumerable:false,configurable:true});return e}());di.style=ui;var fi=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:inline-block}.link{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}';var bi=e("peculiar_link",function(){function e(e){i(this,e);this.type="b3"}e.prototype.render=function(){var e;return t("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:(e={link:true},e["link_type_"+(this.type||"b3")]=true,e)},t("slot",null))};return e}());bi.style=fi;var pi=":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%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";var hi=e("peculiar_text_hider",function(){function e(e){i(this,e);this.textExpand=n(this,"textExpand",7);this.opened=false}e.prototype.textExpandHandler=function(){this.opened=!this.opened};e.prototype.render=function(){return t(r,null,t("div",{class:"root"},t("div",{class:{text:true,m_opened:this.opened}},t("slot",null)),t("div",{class:"action"},t("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:true,m_opened:this.opened},fill:this.opened?"fill":"stroke"},t("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))))))};return e}());hi.style=pi;var gi=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block}.typography{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}';var vi=e("peculiar_typography",function(){function e(e){i(this,e);this.type="b3";this.color="dark"}e.prototype.render=function(){var e;var i=this.type&&this.type.includes("h")?this.type:"p";return t(i,{class:(e={typography:true},e["typography_type_"+(this.type||"b3")]=true,e["typography_color_"+(this.color||"dark")]=true,e["typography_align_"+this.align]=!!this.align,e.typography_ellipsis=this.ellipsis,e.typography_monospace=this.monospace,e)},t("slot",null))};return e}());vi.style=gi}}}));
|
|
443
|
+
*/function li(e){var t;if((t=e.params)===null||t===void 0?void 0:t["modulus"]){var i=e.params["modulus"].byteLength;if(i%2){i-=1}return i*8}return null}function ui(e){var t;if((t=e.params)===null||t===void 0?void 0:t["publicExponent"]){return e.params["publicExponent"].byteLength===3?65537:3}return null}var di=function(e){var i;var r=e.publicKey;if(!r){return null}return[t(Ue,{value:Oe.getString("publicKeyInfo")}),t(Ye,{name:Oe.getString("algorithm"),value:Fe(r.algorithm)}),t(Ye,{name:Oe.getString("namedCurve"),value:Fe((i=r.params)===null||i===void 0?void 0:i["namedCurve"])}),t(Ye,{name:Oe.getString("exponent"),value:ui(r)}),t(Ye,{name:Oe.getString("modulus"),value:li(r)}),t(Ye,{name:Oe.getString("value"),value:s.Convert.ToHex(r.value),monospace:true,collapse:true})]};
|
|
444
|
+
/**
|
|
445
|
+
* @license
|
|
446
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
447
|
+
*
|
|
448
|
+
* This source code is licensed under the MIT license found in the
|
|
449
|
+
* LICENSE file in the root directory of this source tree.
|
|
450
|
+
*/var fi=function(e){var i=e.name;return[t(Ue,{value:Oe.getString("subjectName")}),i.map((function(e){return t(Ye,{name:e.name||e.type,value:e.value})}))]};
|
|
451
|
+
/**
|
|
452
|
+
* @license
|
|
453
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
454
|
+
*
|
|
455
|
+
* This source code is licensed under the MIT license found in the
|
|
456
|
+
* LICENSE file in the root directory of this source tree.
|
|
457
|
+
*/var pi=function(e){var i=e.name,r=e.issuerDnLink;var n=Oe.getString("issuerName");return[t(Ue,{value:r?t("peculiar-link",{href:r,type:"h6"},n):n}),i.map((function(e){return t(Ye,{name:e.name||e.type,value:e.value})}))]};var bi=":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}";var hi=e("peculiar_certificate_viewer",function(){function e(e){var t=this;i(this,e);this.isDecodeInProcess=true;this.getAuthKeyIdParentLink=function(e){var i;return(i=t.authKeyIdParentLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getAuthKeyIdSiblingsLink=function(e){var i;return(i=t.authKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{authKeyId}}",e)};this.getSubjectKeyIdChildrenLink=function(e){var i;return(i=t.subjectKeyIdChildrenLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)};this.getSubjectKeyIdSiblingsLink=function(e){var i;return(i=t.subjectKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)}}e.prototype.componentWillLoad=function(){this.decodeCertificate(this.certificate)};e.prototype.decodeCertificate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:this.isDecodeInProcess=true;i.label=1;case 1:i.trys.push([1,4,,5]);if(e instanceof Ee){this.certificateDecoded=e}else if(typeof e==="string"){this.certificateDecoded=new Ee(e)}else{return[2]}this.certificateDecoded.parseExtensions();return[4,this.certificateDecoded.getThumbprint("SHA-1")];case 2:i.sent();return[4,this.certificateDecoded.getThumbprint("SHA-256")];case 3:i.sent();return[3,5];case 4:t=i.sent();this.certificateDecodeError=t;console.error("Error certificate parse:",t);return[3,5];case 5:this.isDecodeInProcess=false;return[2]}}))}))};e.prototype.watchCertificateAndDecode=function(e,t){if(typeof e==="string"&&typeof t==="string"){if(e!==t){this.decodeCertificate(e)}return}if(e instanceof Ee&&t instanceof Ee){if(e.serialNumber!==t.serialNumber){this.decodeCertificate(e)}}};e.prototype.getIssuerDnLink=function(){return this.issuerDnLink};e.prototype.renderErrorState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))};e.prototype.renderEmptyState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))};e.prototype.render=function(){if(this.certificateDecodeError){return this.renderErrorState()}if(!this.certificateDecoded){return this.renderEmptyState()}return t(r,{"data-view":this.view},t("table",null,t(Ut,Object.assign({},this.certificateDecoded)),t(fi,{name:this.certificateDecoded.subject}),t(pi,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),t(di,{publicKey:this.certificateDecoded.publicKey}),t(Qe,{signature:this.certificateDecoded.signature}),t(ut,{thumbprints:this.certificateDecoded.thumbprints}),t(Mt,{extensions:this.certificateDecoded.extensions,getLEILink:Jt,getDNSNameLink:Wt,getIPAddressLink:Zt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(Xt,{certificate:this.certificateDecoded})))};Object.defineProperty(e,"watchers",{get:function(){return{certificate:["watchCertificateAndDecode"]}},enumerable:false,configurable:true});return e}());hi.style=bi;var gi=":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}";var vi=e("peculiar_csr_viewer",function(){function e(e){var t=this;i(this,e);this.isDecodeInProcess=true;this.getAuthKeyIdParentLink=function(e){return e};this.getAuthKeyIdSiblingsLink=function(e){return e};this.getSubjectKeyIdChildrenLink=function(e){var i;return(i=t.subjectKeyIdChildrenLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)};this.getSubjectKeyIdSiblingsLink=function(e){var i;return(i=t.subjectKeyIdSiblingsLink)===null||i===void 0?void 0:i.replace("{{subjectKeyId}}",e)}}e.prototype.componentWillLoad=function(){this.decodeCertificate(this.certificate)};e.prototype.decodeCertificate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:this.isDecodeInProcess=true;i.label=1;case 1:i.trys.push([1,4,,5]);if(e instanceof qe){this.certificateDecoded=e}else if(typeof e==="string"){this.certificateDecoded=new qe(e)}else{return[2]}this.certificateDecoded.parseAttributes();return[4,this.certificateDecoded.getThumbprint("SHA-1")];case 2:i.sent();return[4,this.certificateDecoded.getThumbprint("SHA-256")];case 3:i.sent();return[3,5];case 4:t=i.sent();this.certificateDecodeError=t;console.error("Error certificate parse:",t);return[3,5];case 5:this.isDecodeInProcess=false;return[2]}}))}))};e.prototype.watchCertificateAndDecode=function(e,t){if(typeof e==="string"&&typeof t==="string"){if(e!==t){this.decodeCertificate(e)}return}if(e instanceof qe&&t instanceof qe){if(e.commonName!==t.commonName){this.decodeCertificate(e)}}};e.prototype.renderErrorState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))};e.prototype.renderEmptyState=function(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))};e.prototype.getExtensionRequestAttribute=function(){if(!this.certificateDecoded){return undefined}return this.certificateDecoded.attributes.find((function(e){return e.asn.type==="1.2.840.113549.1.9.14"}))};e.prototype.render=function(){if(this.certificateDecodeError){return this.renderErrorState()}if(!this.certificateDecoded){return this.renderEmptyState()}var e=this.getExtensionRequestAttribute();return t(r,{"data-view":this.view},t("table",null,t(Ut,Object.assign({},this.certificateDecoded)),t(fi,{name:this.certificateDecoded.subject}),t(di,{publicKey:this.certificateDecoded.publicKey}),t(Qe,{signature:this.certificateDecoded.signature}),t(ut,{thumbprints:this.certificateDecoded.thumbprints}),t(lt,{attributes:this.certificateDecoded.attributes,getLEILink:Jt,getDNSNameLink:Wt,getIPAddressLink:Zt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(Mt,{extensions:e===null||e===void 0?void 0:e.value,title:"Extension Request",getLEILink:Jt,getDNSNameLink:Wt,getIPAddressLink:Zt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(Xt,{certificate:this.certificateDecoded})))};Object.defineProperty(e,"watchers",{get:function(){return{certificate:["watchCertificateAndDecode"]}},enumerable:false,configurable:true});return e}());vi.style=gi;var mi=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:inline-block}.link{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}';var xi=e("peculiar_link",function(){function e(e){i(this,e);this.type="b3"}e.prototype.render=function(){var e;return t("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:(e={link:true},e["link_type_"+(this.type||"b3")]=true,e)},t("slot",null))};return e}());xi.style=mi;var yi=":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%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";var wi=e("peculiar_text_hider",function(){function e(e){i(this,e);this.textExpand=n(this,"textExpand",7);this.opened=false}e.prototype.textExpandHandler=function(){this.opened=!this.opened};e.prototype.render=function(){return t(r,null,t("div",{class:"root"},t("div",{class:{text:true,m_opened:this.opened}},t("slot",null)),t("div",{class:"action"},t("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:true,m_opened:this.opened},fill:this.opened?"fill":"stroke"},t("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))))))};return e}());wi.style=yi;var ki=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block}.typography{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}';var Si=e("peculiar_typography",function(){function e(e){i(this,e);this.type="b3";this.color="dark"}e.prototype.render=function(){var e;var i=this.type&&this.type.includes("h")?this.type:"p";return t(i,{class:(e={typography:true},e["typography_type_"+(this.type||"b3")]=true,e["typography_color_"+(this.color||"dark")]=true,e["typography_align_"+this.align]=!!this.align,e.typography_ellipsis=this.ellipsis,e.typography_monospace=this.monospace,e)},t("slot",null))};return e}());Si.style=ki}}}));
|