@peculiar/certificates-viewer 1.17.5 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cjs/{download-1cf6585c.js → download-dd491e0e.js} +2 -0
  2. package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +32 -42
  3. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +1 -1
  4. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +3 -14
  5. package/dist/collection/components/certificate-viewer/certificate-viewer.js +2 -13
  6. package/dist/collection/components/certificate-viewer/extensions/general_name_part.js +18 -3
  7. package/dist/collection/components/csr-viewer/csr-viewer.js +3 -14
  8. package/dist/collection/constants/oids.js +2 -0
  9. package/dist/collection/utils/third_party_links.js +10 -0
  10. package/dist/esm/{download-dea7e15e.js → download-8756bae5.js} +3 -1
  11. package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +32 -42
  12. package/dist/esm/peculiar-certificates-viewer.entry.js +1 -1
  13. package/dist/esm-es5/{download-dea7e15e.js → download-8756bae5.js} +3 -1
  14. package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +31 -42
  15. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
  16. package/dist/peculiar/{p-6b2a8d50.js → p-35030746.js} +2 -2
  17. package/dist/peculiar/p-4f48056d.entry.js +110 -0
  18. package/dist/peculiar/p-557d912f.system.js +1 -1
  19. package/dist/peculiar/{p-590831d1.system.js → p-724513d0.system.js} +2 -2
  20. package/dist/peculiar/{p-704409ca.system.entry.js → p-7aad398f.system.entry.js} +1 -1
  21. package/dist/peculiar/{p-73a580ff.entry.js → p-d85fb3e7.entry.js} +1 -1
  22. package/dist/peculiar/{p-659feaec.system.entry.js → p-dd80ee96.system.entry.js} +40 -33
  23. package/dist/peculiar/peculiar.esm.js +1 -1
  24. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +0 -3
  25. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +0 -3
  26. package/dist/types/components/csr-viewer/csr-viewer.d.ts +0 -3
  27. package/dist/types/constants/oids.d.ts +2 -0
  28. package/dist/types/utils/third_party_links.d.ts +10 -0
  29. package/package.json +2 -2
  30. package/dist/peculiar/p-f3062b63.entry.js +0 -103
@@ -0,0 +1,110 @@
1
+ import{h as e,r as t,H as a,c as i}from"./p-bd949790.js";import{A as n,a as o,i as r,b as s,c as l,E as c,d,e as b,f as p,U as h,g as u,C as f,h as g,V as m,j as v,I as x,k as y,W as w,l as k,m as _,n as C,T as z,o as A,D as S,p as I,q as N,r as L,s as D,t as j,u as E,v as T,w as K,x as P,y as O,z as G,B as R,N as V,F as H,G as $,H as q,R as B,O as F,J as U,K as Y,L as M,M as X,P as W,Q,S as J,X as Z,Y as ee,Z as te,_ as ae,$ as ie,a0 as ne,a1 as oe,a2 as re,a3 as se,a4 as le,a5 as ce,a6 as de,a7 as be,a8 as pe,a9 as he,aa as ue,ab as fe,ac as ge,ad as me,ae as ve,af as xe,ag as ye,ah as we,ai as ke,aj as _e,ak as Ce,al as ze,am as Ae,an as Se,ao as Ie,ap as Ne,aq as Le}from"./p-35030746.js";import{d as De,l as je,a as Ee,h as Te}from"./p-79bbe633.js";
2
+ /**
3
+ * @license
4
+ * Copyright (c) Peculiar Ventures, LLC.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */function Ke(e){return new Promise((t,a)=>{const i=new FileReader;i.onload=()=>t({value:i.result,fileName:e.name,fileSize:e.size,sourceMime:e.type}),i.onerror=()=>a(i.error),i.readAsBinaryString(e)})}
9
+ /**
10
+ * @license
11
+ * Copyright (c) Peculiar Ventures, LLC.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */class Pe extends n{constructor(e){super(e,o);const t=this.getAsnExtnValue();switch(this.asn.type){case j:this.value=l.parse(t,E);break;case L:this.value=l.parse(t,D);break;case I:this.value=l.parse(t,N);break;case A:this.value=l.parse(t,S);break;case C:this.value=l.parse(t,z);break;case k:this.value=l.parse(t,_);break;case y:this.value=l.parse(t,w);break;case v:this.value=l.parse(t,x);break;case g:this.value=l.parse(t,m);break;case u:this.value=l.parse(t,f);break;case p:this.value=l.parse(t,h);break;case s:{const e=l.parse(t,c);this.value=e.map(e=>new d(b.serialize(e)));break}default:this.value=r.Convert.ToHex(t)}}getAsnExtnValue(){return this.asn.values[0]}}
16
+ /**
17
+ * @license
18
+ * Copyright (c) Peculiar Ventures, LLC.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */class Oe extends n{constructor(e){var t;super(T(e),K),this.thumbprints={},this.type="X.509 Attribute Certificate";const{acinfo:a}=this.asn;this.serialNumber=r.Convert.ToHex(a.serialNumber),this.version=a.version;const i=a.attrCertValidityPeriod.notBeforeTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;const n=a.attrCertValidityPeriod.notAfterTime;if(!n)throw new Error("Cannot get 'notAfter' value");this.notAfter=n,this.validity=De(this.notBefore,this.notAfter),this.issuer=a.issuer.v1Form||(null===(t=a.issuer.v2Form)||void 0===t?void 0:t.issuerName),this.holder=a.holder}get signature(){const{signatureValue:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}parseExtensions(){const{acinfo:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new d(b.serialize(e))))}parseAttributes(){const{acinfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Pe(b.serialize(e))))}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN ATTRIBUTE CERTIFICATE-----\n${G(this.exportAsBase64())}\n-----END ATTRIBUTE CERTIFICATE-----`}get commonName(){return"attribute-certificate-"+this.thumbprints["SHA-1"]}}
23
+ /**
24
+ * @license
25
+ * Copyright (c) Peculiar Ventures, LLC.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */class Ge extends n{constructor(e){super(T(e),R),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:t}=this.asn;this.subject=new V(t.subject).toJSON(),this.version=t.version}get publicKey(){const{subjectPublicKey:e,algorithm:t}=this.asn.certificationRequestInfo.subjectPKInfo;let a;return t.algorithm===H&&t.parameters&&(a=b.parse(t.parameters,$)),t.algorithm===q&&(a=b.parse(e,B)),{params:a,value:b.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:t.algorithm}}get signature(){const{signature:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}get commonName(){if(!this.subject)return"";for(let e=0;e<this.subject.length;e+=1){const t=this.subject[e];if("CN"===t.shortName||"E"===t.shortName||"O"===t.shortName)return t.value}return""}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Pe(b.serialize(e))))}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${G(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}}
30
+ /**
31
+ * @license
32
+ * Copyright (c) Peculiar Ventures, LLC.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */function Re(e){const t=F[e];return t?`${t} (${e})`:e}
37
+ /**
38
+ * @license
39
+ * Copyright (c) Peculiar Ventures, LLC.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ /**
45
+ * @license
46
+ * Copyright (c) Peculiar Ventures, LLC.
47
+ *
48
+ * This source code is licensed under the MIT license found in the
49
+ * LICENSE file in the root directory of this source tree.
50
+ */
51
+ const Ve=t=>{const{value:a}=t;return a?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},a))):null},He=t=>{const{name:a,value:i,monospace:n,collapse:o,href:r,extraValue:s}=t;if(!a)return null;if(null==i)return null;let l;l=o?e("peculiar-text-hider",null,i):i;const c=!!i.toString();return e("tr",null,e("td",{colSpan:c?1:2},e("peculiar-typography",{color:"grey_5"},a,c?":":"")),c&&e("td",{class:{monospace:n}},function(e){return 0===e.indexOf("http")}(i.toString())||r?e("peculiar-link",{href:r||i.toString()},i):e("peculiar-typography",{monospace:n},l,s)))},$e=t=>{const{signature:a}=t;return a?[e(Ve,{value:je.getString("signature")}),e(He,{name:je.getString("algorithm"),value:Re(a.algorithm)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(a.value),monospace:!0,collapse:!0})]:null},qe=(t,a)=>{const{attribute:i}=t;return[e(He,{name:"Name",value:Re(i.asn.type)}),a,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Be=t=>{const{name:a}=t;return a?a.map(t=>t.map(t=>e(He,{name:F[t.type]||t.type,value:t.value.toString()}))):null},Fe=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(Be,{name:a.value}))},Ue={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"},Ye=t=>{const{generalName:a,getDNSNameLink:i,getIPAddressLink:n}=t;return a?Object.keys(a).map(t=>{const o=a[t];if(o instanceof U)return[e(He,{name:Ue[t]||t,value:""}),o.map(t=>t.map(t=>e(He,{name:F[t.type]||t.type,value:t.value.toString()})))];if(o instanceof Y){try{const t=l.parse(o.value,M);return e(He,{name:F[o.typeId]||o.typeId,value:t.toString()})}catch(s){}try{const t=l.parse(o.value,X);if(t.explicitText)return e(He,{name:F[o.typeId]||o.typeId,value:t.explicitText.toString()})}catch(s){}return e(He,{name:F[o.typeId]||o.typeId,value:r.Convert.ToHex(o.value),monospace:!0})}return r.BufferSourceConverter.isBufferSource(o)?e(He,{name:Ue[t]||t,value:r.Convert.ToString(o)}):e(He,o instanceof W?{name:Ue[t]||t,value:r.Convert.ToString(o.partyName)}:"dNSName"===t?{name:Ue[t]||t,value:o,href:i(o)}:"iPAddress"===t?{name:Ue[t]||t,value:o,href:n(o)}:{name:Ue[t]||t,value:o})}):null},Me=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(He,{name:"Code Authority",value:""}),e(Ye,{generalName:a.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Code Id",value:""}),e(Ye,{generalName:a.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Short Name",value:a.value.shortName}),e(He,{name:"Short Description",value:a.value.shortDescription}))},Xe=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(He,{name:"Assessment Authority",value:""}),e(Ye,{generalName:a.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Assessment Location",value:""}),e(Ye,{generalName:a.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Assessment Ref",value:""}),e(Ye,{generalName:a.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Data Storage Territory",value:a.value.dataStorageTerritory}),e(He,{name:"Description",value:a.value.description}))},We=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(He,{name:"Value",value:`${a.value.base} * 10^${a.value.degree} ${a.value.location}`}))},Qe=t=>{const{attribute:a}=t;return e(qe,{attribute:a},Object.keys(a.value).map(t=>e(He,{name:t,value:a.value[t].toNumber()?"YES":"NO"})))},Je=e=>{let t=1;return e/100>1?t=100:e/10>1&&(t=10),`${e}/${5*t}`},Ze=t=>{const{attribute:a}=t,i=Object.keys(a.value).map(t=>[Je(a.value[t]),e("br",null)]);return e(qe,{attribute:a},e(He,{name:"Value",value:i}))},et=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(He,{name:"Value",value:a.value,monospace:!0}))},tt=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(He,{name:"Value",value:a.value.utf8String}))},at=t=>{const{attribute:a}=t;return e(qe,{attribute:a},e(He,{name:"Value",value:a.value.toString()}))},it=t=>{const{attributes:a}=t;return a&&a.length?[e(Ve,{value:"Attributes"}),a.map(t=>{try{return e(t.value instanceof U?Fe:t.value instanceof _?Me:t.value instanceof w?Xe:t.value instanceof x?We:t.value instanceof z?Qe:t.value instanceof m?Ze:t.value instanceof h?tt:t.value instanceof f?at:"string"==typeof t.value?et:qe,{attribute:t})}catch(a){return console.error("Error render attribute:",t.asn.type),null}})]:null},nt=t=>{const{thumbprints:a}=t;if(!a)return null;const i=Object.keys(a);return i.length?[e(Ve,{value:je.getString("fingerprints")}),i.map(t=>e(He,{name:t,value:a[t],monospace:!0}))]:null},ot=(t,a)=>{const{extension:i}=t;return[e(He,{name:"Name",value:Re(i.asn.extnID)}),e(He,{name:"Critical",value:i.asn.critical?"YES":"NO"}),a,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},rt=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Usage",value:a.value.toJSON().join(", ")}))},st=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Certificate Authority",value:a.value.cA?"YES":"NO"}),e(He,{name:"Path Length Constraint",value:a.value.pathLenConstraint}))},lt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((t,a)=>e(He,{name:"Purpose #"+(a+1),value:Re(t)})))},ct=t=>{const{extension:a,getSubjectKeyIdChildrenLink:i,getSubjectKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(a.value.buffer),s=i(o),l=n(o);return e(ot,{extension:a},e(He,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"children"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},dt=t=>{const{extension:a,getAuthKeyIdParentLink:i,getAuthKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(a.value.keyIdentifier.buffer),s=i(o),l=n(o);return e(ot,{extension:a},e(He,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"parents"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},bt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map(a=>{var i;return null===(i=null==a?void 0:a.distributionPoint)||void 0===i?void 0:i.fullName.map(a=>e(Ye,Object.assign({generalName:a},t)))}))},pt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((a,i)=>[e(He,{name:"Description #"+(i+1),value:""}),e(He,{name:"Method",value:Re(a.accessMethod)}),e(Ye,Object.assign({generalName:a.accessLocation},t))]))},ht=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map(a=>e(Ye,Object.assign({generalName:a},t))))},ut=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((t,a)=>{var i;return[e(He,{name:"Policy #"+(a+1),value:""}),e(He,{name:"ID",value:Re(t.policyIdentifier)}),null===(i=t.policyQualifiers)||void 0===i?void 0:i.map((t,i)=>{const n=[e(He,{name:`Qualifier #${a+1}.${i+1}`,value:""}),e(He,{name:"ID",value:Re(t.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===t.policyQualifierId){const a=l.parse(t.qualifier,M);n.push(e(He,{name:"Value",value:a.toString()}))}if("1.3.6.1.5.5.7.2.2"===t.policyQualifierId){const a=l.parse(t.qualifier,X);a.explicitText&&n.push(e(He,{name:"Value",value:a.explicitText.toString()}))}return n})]}))},ft={"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"},gt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.toJSON().map((t,a)=>[e(He,{name:"SCT #"+(a+1),value:""}),e(He,{name:"Version",value:t.version+1}),e(He,{name:"Log Operator",value:ft[t.logId]||t.logId}),e(He,{name:"Log Key ID",value:t.logId,monospace:!0}),e(He,{name:"Timestamp",value:Ee(t.timestamp)}),e(He,{name:"Signature Algorithm",value:`${t.hashAlgorithm} ${t.signatureAlgorithm}`.toUpperCase()}),e(He,{name:"Signature",value:t.signature,monospace:!0})]))},mt=t=>{var a,i;const{extension:n}=t;return e(ot,{extension:n},null===(a=n.value.excludedSubtrees)||void 0===a?void 0:a.map(a=>e(Ye,Object.assign({generalName:a.base},t))),null===(i=n.value.permittedSubtrees)||void 0===i?void 0:i.map(a=>e(Ye,Object.assign({generalName:a.base},t))))},vt=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Template ID",value:a.value.templateID}),e(He,{name:"Template Major Version",value:a.value.templateMajorVersion}),e(He,{name:"Template Minor Version",value:a.value.templateMinorVersion}))},xt=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Name",value:a.value.toString()}))},yt=t=>{const{extension:a}=t,i=a.value.getVersion();return e(ot,{extension:a},e(He,{name:"Certificate Index",value:i.certificateIndex}),e(He,{name:"Key Index",value:i.keyIndex}))},wt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((t,a)=>[e(He,{name:"Statement #"+(a+1),value:""}),e(He,{name:"ID",value:Re(t.statementId)}),e(He,{name:"Info",value:t.statementInfo.byteLength?r.Convert.ToHex(t.statementInfo):null,monospace:!0})]))},kt=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Comment",value:a.value.value}))},_t=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Type",value:a.value.toJSON().join(", ")}))},Ct=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Role",value:a.value.text}))},zt=t=>{const{extension:a,getLEILink:i}=t;return e(ot,{extension:a},e(He,{name:"Identifier",value:a.value.text,href:i(a.value.text)}))},At=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Version",value:a.value.version}),e(Ye,Object.assign({generalName:a.value.location},t)),e(He,{name:"Requires Auth",value:a.value.requiresAuth?"YES":"NO"}))},St=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Version",value:a.value.version}))},It=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Reason",value:a.value.toJSON()}))};
52
+ /**
53
+ * @license
54
+ * Copyright (c) Peculiar Ventures, LLC.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE file in the root directory of this source tree.
58
+ */
59
+ function Nt(e){return r.Convert.ToString(e.values[0])}
60
+ /**
61
+ * @license
62
+ * Copyright (c) Peculiar Ventures, LLC.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE file in the root directory of this source tree.
66
+ */const Lt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((t,a)=>[e(He,{name:"Attribute #"+(a+1),value:""}),e(He,{name:"Type",value:Re(t.type)}),e(He,{name:"Value",value:Nt(t)})]))},Dt=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Value",value:a.value,monospace:!0}))},jt=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Not Before",value:Ee(a.value.notBefore)}),e(He,{name:"Not After",value:Ee(a.value.notAfter)}))},Et=t=>{const{extension:a}=t;return e(ot,{extension:a},e(He,{name:"Version",value:a.value.entrustVers}),e(He,{name:"Info Flags",value:a.value.entrustInfoFlags.toJSON().join(", ")}))},Tt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((t,a)=>[e(He,{name:"Biometric #"+(a+1),value:""}),e(He,{name:"OID",value:Re(t.typeOfBiometricData.biometricDataOid)}),e(He,{name:"Type",value:t.typeOfBiometricData.predefinedBiometricType}),e(He,{name:"Algorithm",value:Re(t.hashAlgorithm.algorithm)}),e(He,{name:"Hash",value:r.Convert.ToHex(t.biometricDataHash.buffer),monospace:!0}),e(He,{name:"Source Uri",value:t.sourceDataUri})]))},Kt=t=>{const{extension:a}=t,i=t=>t?t.map(t=>{const{imageDetails:a}=t;return[e(He,{name:"Image Type",value:a.mediaType}),e(He,{name:"Image Hash",value:r.Convert.ToHex(a.logotypeHash[0].hashValue),monospace:!0}),e(He,{name:"Image URL",value:a.logotypeURI[0],monospace:!0,collapse:!0}),e(He,{name:"Image Hash Algorithm",value:Re(a.logotypeHash[0].hashAlg.algorithm)})]}):null,n=t=>t?t.map(t=>{const{audioDetails:a}=t;return[e(He,{name:"Audio Type",value:a.mediaType}),e(He,{name:"Audio Hash",value:r.Convert.ToHex(a.logotypeHash[0].hashValue),monospace:!0}),e(He,{name:"Audio URL",value:a.logotypeURI[0],monospace:!0,collapse:!0}),e(He,{name:"Audio Hash Algorithm",value:Re(a.logotypeHash[0].hashAlg.algorithm)})]}):null,o=(t,a)=>{if(!a||!a.direct)return null;const{image:o,audio:r}=a.direct;return[e(He,{name:"Type",value:t}),i(o),n(r),e("tr",null,e("td",null),e("td",null))]};return e(ot,{extension:a},o("Subject",a.value.subjectLogo),o("Issuer",a.value.issuerLogo))},Pt=t=>{const{extension:a}=t;return e(ot,{extension:a},a.value.map((t,a)=>[e(He,{name:"Entry #"+(a+1),value:""}),e(He,{name:"SPC",value:t.spc}),e(He,{name:"Range",value:t.range?`start=${t.range.start} count==${t.range.count}`:null}),e(He,{name:"One",value:t.one})]))},Ot=t=>{const{extensions:a,title:i}=t;return a&&a.length?[e(Ve,{value:i||"Extensions"}),a.map(a=>{try{return a.value instanceof Q?e(rt,{extension:a}):a.value instanceof J?e(st,{extension:a}):a.value instanceof Z?e(lt,{extension:a}):a.value instanceof ee?e(ct,Object.assign({extension:a},t)):a.value instanceof te?e(dt,Object.assign({extension:a},t)):a.value instanceof ae?e(bt,Object.assign({extension:a},t)):a.value instanceof ie?e(pt,Object.assign({extension:a},t)):a.value instanceof ne?e(ht,Object.assign({extension:a},t)):a.value instanceof oe?e(ut,{extension:a}):a.value instanceof re?e(gt,{extension:a}):a.value instanceof se?e(mt,Object.assign({extension:a},t)):a.value instanceof le?e(vt,{extension:a}):a.value instanceof ce?e(xt,{extension:a}):a.value instanceof de?e(yt,{extension:a}):a.value instanceof be?e(wt,{extension:a}):a.value instanceof pe?e(kt,{extension:a}):a.value instanceof he?e(_t,{extension:a}):a.value instanceof ue?e(Ct,{extension:a}):a.value instanceof fe?e(zt,Object.assign({extension:a},t)):a.value instanceof ge?e(At,Object.assign({extension:a},t)):e(a.value instanceof me?St:a.value instanceof ve?It:a.value instanceof xe?Lt:a.value instanceof ye?jt:a.value instanceof we?Et:a.value instanceof ke?Tt:a.value instanceof _e?Kt:a.value instanceof Ce?Pt:"string"==typeof a.value?Dt:ot,{extension:a})}catch(i){return console.error("Error render extension:",a.asn.extnID),null}})]:null},Gt=t=>{const{serialNumber:a,version:i,validity:n,notBefore:o,notAfter:r,type:s}=t;return[e(Ve,{value:je.getString("basicInformation")}),e(He,{name:je.getString("type"),value:s}),e(He,{name:je.getString("serialNumber"),value:a,monospace:!0}),e(He,{name:je.getString("version"),value:i}),e(He,{name:je.getString("validity"),value:n}),e(He,{name:je.getString("issued"),value:o?Ee(o):void 0}),e(He,{name:je.getString("expired"),value:r?Ee(r):void 0})]};
67
+ /**
68
+ * @license
69
+ * Copyright (c) Peculiar Ventures, LLC.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE file in the root directory of this source tree.
73
+ */
74
+ /**
75
+ * @license
76
+ * Copyright (c) Peculiar Ventures, LLC.
77
+ *
78
+ * This source code is licensed under the MIT license found in the
79
+ * LICENSE file in the root directory of this source tree.
80
+ */
81
+ function Rt(e){e instanceof Ge?ze.certificateRequest.asPEM(e.exportAsPemFormatted(),e.commonName):ze.certificate.asPEM(e.exportAsPemFormatted(),e.commonName)}function Vt(e){e instanceof Ge?ze.certificateRequest.asDER(e.exportAsHexFormatted(),e.commonName):ze.certificate.asDER(e.exportAsHexFormatted(),e.commonName)}const Ht=t=>{const{certificate:a}=t;return[e(Ve,{value:je.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},je.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:Rt.bind(void 0,a),actions:[{text:je.getString("download.der"),onClick:Vt.bind(void 0,a)}]},je.getString("download.pem"))))]},$t=e=>"https://search.gleif.org/#/record/"+e,qt=e=>"https://search.censys.io/search?resource=hosts&q=dns.names%3A"+e,Bt=e=>"https://search.censys.io/search?resource=hosts&q=ip%3A"
82
+ /**
83
+ * @license
84
+ * Copyright (c) Peculiar Ventures, LLC.
85
+ *
86
+ * This source code is licensed under the MIT license found in the
87
+ * LICENSE file in the root directory of this source tree.
88
+ */+e,Ft=t=>{const{issuer:a}=t;return a?[e(Ve,{value:je.getString("issuer")}),a.map(t=>e(Ye,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))]:null},Ut=t=>{const{holder:a}=t;if(!a)return null;const{baseCertificateID:i,objectDigestInfo:n}=a;return[e(Ve,{value:je.getString("holder")}),i&&[i.issuer.map(t=>e(Ye,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""})),e("tr",null,e("td",null),e("td",null)),e(He,{name:je.getString("serialNumber"),value:r.Convert.ToHex(i.serial),monospace:!0}),e("tr",null,e("td",null),e("td",null))],n&&[e(He,{name:je.getString("digestInfo"),value:""}),e(He,{name:je.getString("algorithm"),value:Re(n.digestAlgorithm.algorithm)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(n.objectDigest),monospace:!0}),e(He,{name:je.getString("type"),value:n.digestedObjectType})]]},Yt=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Oe)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Oe(e)}this.certificateDecoded.parseExtensions(),this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Oe&&t instanceof Oe&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(a,null,e("table",null,e(Gt,Object.assign({},this.certificateDecoded)),e(Ft,{issuer:this.certificateDecoded.issuer}),e(Ut,{holder:this.certificateDecoded.holder}),e($e,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(it,{attributes:this.certificateDecoded.attributes,getLEILink:$t,getDNSNameLink:qt,getIPAddressLink:Bt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Ot,{extensions:this.certificateDecoded.extensions,getLEILink:$t,getDNSNameLink:qt,getIPAddressLink:Bt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
89
+ /**
90
+ * @license
91
+ * Copyright (c) Peculiar Ventures, LLC.
92
+ *
93
+ * This source code is licensed under the MIT license found in the
94
+ * LICENSE file in the root directory of this source tree.
95
+ */Yt.style=":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}";const Mt=class{constructor(e){t(this,e),this.fill="stroke",this.handleClick=e=>{if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.onClick&&this.onClick(e)}}render(){const t=!!this.href;return e(t?"a":"button",{class:{button:!0,button_stroke:"stroke"===this.fill,button_fill:"fill"===this.fill,button_disabled:this.disabled},disabled:this.disabled,type:!t&&"button",href:t&&this.href,target:t&&this.target?this.target:null,rel:t&&"noreferrer noopener",onClick:this.handleClick,part:"base"},e("span",{part:"label",class:"button_label"},e("slot",null)))}};Mt.style=':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}';const Xt=class{constructor(e){t(this,e),this.fill="stroke",this.actions=[],this.open=!1,this.onClickSplitButton=e=>{e.stopPropagation(),this.open=!this.open}}onClickActiveButton(e,t){this.open=!1,e(t)}renderActiveSplitState(){return this.open?e("div",{class:"button_split_container"},this.actions.map(t=>e("peculiar-button",{fill:"fill",class:"button_split_action",onClick:this.onClickActiveButton.bind(this,t.onClick)},t.text))):null}render(){return e("div",{class:{button_split:!0}},e("peculiar-button",{fill:this.fill,onClick:this.onClick},e("slot",null)),e("peculiar-button",{fill:this.fill,onClick:this.onClickSplitButton,class:{button_split_with_icon:!0,m_open:this.open}},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"button_split_icon"},e("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())}};Xt.style=':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}';const Wt=class{constructor(e){t(this,e),this.onClickDecode=()=>{const{value:e}=this.inputPaste;e&&this.decode(e)},this.onClickExample=()=>{this.decode(this.certificateExample)},this.onClickClear=()=>{this.clearValue()},this.onChangeInputFile=async e=>{const t=e.target;if(t.files){const e=await Ke(t.files[0]);"string"==typeof e.value&&this.decode(e.value),t.value=""}},this.onDropFile=async e=>{e.stopPropagation(),e.preventDefault();const t=e.dataTransfer;if(t.files){const e=await Ke(t.files[0]);"string"==typeof e.value&&this.decode(e.value)}}}componentDidLoad(){const e=Te.parseHash(window.location.search);e.cert&&setTimeout(()=>this.decode(e.cert),100)}clearValue(){this.inputPaste.value="",this.certificateDecoded=null,Te.replace({search:""})}setValue(e){this.certificateDecoded=e,this.inputPaste.value=e.exportAsPemFormatted(),Te.replace({search:Te.queryStringify({cert:e.exportAsBase64()})})}decode(e){const t=Ae(e),a=Se(e),i=Ie(e),n=Ne(e);let o,r;if(t&&!(a||n||i))return this.clearValue(),void alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.");try{a&&(o=new Le(e)),n&&(o=new Oe(e)),i&&(o=new Ge(e))}catch(s){r=s}if(!o)try{o=new Le(e)}catch(s){r=s}if(!o)try{o=new Oe(e)}catch(s){r=s}if(!o)try{o=new Ge(e)}catch(s){r=s}o?this.setValue(o):(this.clearValue(),console.log(r),alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest."))}render(){return e(a,null,e("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:e=>{this.inputPaste=e},onDrop:this.onDropFile}),e("div",{class:"controls"},e("peculiar-button",{fill:"fill",class:"button",onClick:this.onClickDecode},"Decode"),e("peculiar-button",{class:"button"},"Choose file",e("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:""})),e("peculiar-button",{class:"button",onClick:this.onClickClear},"Clear"),this.certificateExample&&e("peculiar-button",{class:"button",onClick:this.onClickExample},"Example")),this.certificateDecoded instanceof Le&&e("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof Oe&&e("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof Ge&&e("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}))}};
96
+ /**
97
+ * @license
98
+ * Copyright (c) Peculiar Ventures, LLC.
99
+ *
100
+ * This source code is licensed under the MIT license found in the
101
+ * LICENSE file in the root directory of this source tree.
102
+ */
103
+ function Qt(e){var t;if(null===(t=e.params)||void 0===t?void 0:t.modulus){let t=e.params.modulus.byteLength;return t%2&&(t-=1),8*t}return null}function Jt(e){var t;return(null===(t=e.params)||void 0===t?void 0:t.publicExponent)?3===e.params.publicExponent.byteLength?65537:3:null}Wt.style=":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}";const Zt=t=>{var a;const{publicKey:i}=t;return i?[e(Ve,{value:je.getString("publicKeyInfo")}),e(He,{name:je.getString("algorithm"),value:Re(i.algorithm)}),e(He,{name:je.getString("namedCurve"),value:Re(null===(a=i.params)||void 0===a?void 0:a.namedCurve)}),e(He,{name:je.getString("exponent"),value:Jt(i)}),e(He,{name:je.getString("modulus"),value:Qt(i)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(i.value),monospace:!0,collapse:!0})]:null},ea=t=>{const{name:a}=t;return[e(Ve,{value:je.getString("subjectName")}),a.map(t=>e(He,{name:t.name||t.type,value:t.value}))]},ta=t=>{const{name:a,issuerDnLink:i}=t,n=je.getString("issuerName");return[e(Ve,{value:i?e("peculiar-link",{href:i,type:"h6"},n):n}),a.map(t=>e(He,{name:t.name||t.type,value:t.value}))]},aa=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Le)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Le(e)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Le&&t instanceof Le&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(a,{"data-view":this.view},e("table",null,e(Gt,Object.assign({},this.certificateDecoded)),e(ea,{name:this.certificateDecoded.subject}),e(ta,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),e(Zt,{publicKey:this.certificateDecoded.publicKey}),e($e,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(Ot,{extensions:this.certificateDecoded.extensions,getLEILink:$t,getDNSNameLink:qt,getIPAddressLink:Bt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
104
+ /**
105
+ * @license
106
+ * Copyright (c) Peculiar Ventures, LLC.
107
+ *
108
+ * This source code is licensed under the MIT license found in the
109
+ * LICENSE file in the root directory of this source tree.
110
+ */aa.style=":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}";const ia=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>e,this.getAuthKeyIdSiblingsLink=e=>e,this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Ge)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Ge(e)}this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Ge&&t instanceof Ge&&e.commonName!==t.commonName&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find(e=>"1.2.840.113549.1.9.14"===e.asn.type)}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const t=this.getExtensionRequestAttribute();return e(a,{"data-view":this.view},e("table",null,e(Gt,Object.assign({},this.certificateDecoded)),e(ea,{name:this.certificateDecoded.subject}),e(Zt,{publicKey:this.certificateDecoded.publicKey}),e($e,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(it,{attributes:this.certificateDecoded.attributes,getLEILink:$t,getDNSNameLink:qt,getIPAddressLink:Bt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Ot,{extensions:null==t?void 0:t.value,title:"Extension Request",getLEILink:$t,getDNSNameLink:qt,getIPAddressLink:Bt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};ia.style=":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}";const na=class{constructor(e){t(this,e),this.type="b3"}render(){return e("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:{link:!0,["link_type_"+(this.type||"b3")]:!0}},e("slot",null))}};na.style=':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}';const oa=class{constructor(e){t(this,e),this.textExpand=i(this,"textExpand",7),this.opened=!1}textExpandHandler(){this.opened=!this.opened}render(){return e(a,null,e("div",{class:"root"},e("div",{class:{text:!0,m_opened:this.opened}},e("slot",null)),e("div",{class:"action"},e("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:!0,m_opened:this.opened},fill:this.opened?"fill":"stroke"},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},e("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"}))))))}};oa.style=":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)}";const ra=class{constructor(e){t(this,e),this.type="b3",this.color="dark"}render(){const t=this.type&&this.type.includes("h")?this.type:"p";return e(t,{class:{typography:!0,["typography_type_"+(this.type||"b3")]:!0,["typography_color_"+(this.color||"dark")]:!0,["typography_align_"+this.align]:!!this.align,typography_ellipsis:this.ellipsis,typography_monospace:this.monospace}},e("slot",null))}};ra.style=':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}';export{Yt as peculiar_attribute_certificate_viewer,Mt as peculiar_button,Xt as peculiar_button_split,Wt as peculiar_certificate_decoder,aa as peculiar_certificate_viewer,ia as peculiar_csr_viewer,na as peculiar_link,oa as peculiar_text_hider,ra as peculiar_typography}
@@ -1 +1 @@
1
- System.register(["./p-9f815f76.system.js","./p-aa0a9b36.system.js"],(function(){"use strict";var e,i;return{setters:[function(i){e=i.b},function(e){i=e.p}],execute:function(){i().then((function(i){return e([["p-659feaec.system",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],certificateDecoded:[32]}],[1,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],isDecodeInProcess:[32]}],[1,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{href:[513],type:[513]}],[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}],[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["p-150d1ad1.system",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]],["p-704409ca.system",[[1,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]}]]]],i)}))}}}));
1
+ System.register(["./p-9f815f76.system.js","./p-aa0a9b36.system.js"],(function(){"use strict";var e,i;return{setters:[function(i){e=i.b},function(e){i=e.p}],execute:function(){i().then((function(i){return e([["p-dd80ee96.system",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],certificateDecoded:[32]}],[1,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],isDecodeInProcess:[32]}],[1,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{href:[513],type:[513]}],[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}],[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["p-150d1ad1.system",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]],["p-7aad398f.system",[[1,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]}]]]],i)}))}}}));