@peculiar/certificates-viewer 4.1.0 → 4.2.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.
Files changed (662) hide show
  1. package/components/actions.js +3 -3
  2. package/components/actions.js.map +1 -1
  3. package/components/arrow_top.js +6 -6
  4. package/components/arrow_top.js.map +1 -1
  5. package/components/attribute-certificate-viewer.js +222 -220
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/button-menu.js +36 -35
  8. package/components/button-menu.js.map +1 -1
  9. package/components/button.js +42 -42
  10. package/components/button.js.map +1 -1
  11. package/components/certificate-viewer.js +250 -249
  12. package/components/certificate-viewer.js.map +1 -1
  13. package/components/circular-progress.js +34 -33
  14. package/components/circular-progress.js.map +1 -1
  15. package/components/crl-viewer.js +214 -213
  16. package/components/crl-viewer.js.map +1 -1
  17. package/components/cross.js +9 -9
  18. package/components/cross.js.map +1 -1
  19. package/components/csr-viewer.js +200 -202
  20. package/components/csr-viewer.js.map +1 -1
  21. package/components/download.js +56 -56
  22. package/components/download.js.map +1 -1
  23. package/components/highlight-words.js +45 -44
  24. package/components/highlight-words.js.map +1 -1
  25. package/components/index2.js +146 -156
  26. package/components/index2.js.map +1 -1
  27. package/components/issuer_name.js +6 -6
  28. package/components/issuer_name.js.map +1 -1
  29. package/components/miscellaneous.js +4049 -4037
  30. package/components/miscellaneous.js.map +1 -1
  31. package/components/peculiar-attribute-certificate-viewer.d.ts +2 -2
  32. package/components/peculiar-button-menu.d.ts +2 -2
  33. package/components/peculiar-certificate-decoder.d.ts +2 -2
  34. package/components/peculiar-certificate-decoder.js +183 -182
  35. package/components/peculiar-certificate-decoder.js.map +1 -1
  36. package/components/peculiar-certificate-viewer.d.ts +2 -2
  37. package/components/peculiar-certificates-viewer.d.ts +2 -2
  38. package/components/peculiar-certificates-viewer.js +297 -296
  39. package/components/peculiar-certificates-viewer.js.map +1 -1
  40. package/components/peculiar-circular-progress.d.ts +2 -2
  41. package/components/peculiar-crl-viewer.d.ts +2 -2
  42. package/components/peculiar-csr-viewer.d.ts +2 -2
  43. package/components/peculiar-highlight-words.d.ts +2 -2
  44. package/components/peculiar-text-hider.d.ts +2 -2
  45. package/components/peculiar-text-hider.js +23 -22
  46. package/components/peculiar-text-hider.js.map +1 -1
  47. package/components/subject_name.js +35 -35
  48. package/components/subject_name.js.map +1 -1
  49. package/dist/cjs/actions-789906f5.js +23 -0
  50. package/dist/cjs/{actions-19013d4a.js.map → actions-789906f5.js.map} +1 -1
  51. package/dist/cjs/app-globals-c20ffa41.js +10 -0
  52. package/dist/cjs/app-globals-c20ffa41.js.map +1 -0
  53. package/dist/cjs/arrow_top-76e4261e.js +37 -0
  54. package/dist/cjs/{arrow_top-834fb7ec.js.map → arrow_top-76e4261e.js.map} +1 -1
  55. package/dist/cjs/button-87086210.js +77 -0
  56. package/dist/cjs/{button-14e2b73f.js.map → button-87086210.js.map} +1 -1
  57. package/dist/cjs/{certification_request-bf416170.js → certification_request-b0d72620.js} +3326 -3331
  58. package/dist/cjs/certification_request-b0d72620.js.map +1 -0
  59. package/dist/cjs/crl-812dd7a1.js +312 -0
  60. package/dist/cjs/crl-812dd7a1.js.map +1 -0
  61. package/dist/cjs/cross-bd099933.js +51 -0
  62. package/dist/cjs/{cross-9872c473.js.map → cross-bd099933.js.map} +1 -1
  63. package/dist/cjs/{download-0fa5b33c.js → download-6f550549.js} +50 -50
  64. package/dist/cjs/download-6f550549.js.map +1 -0
  65. package/dist/cjs/download-820d66ba.js +23 -0
  66. package/dist/cjs/{download-254ddc57.js.map → download-820d66ba.js.map} +1 -1
  67. package/dist/cjs/{index-efd561e9.js → index-e2ae280a.js} +398 -145
  68. package/dist/cjs/index-e2ae280a.js.map +1 -0
  69. package/dist/cjs/index.cjs.js +8 -8
  70. package/dist/cjs/link-a3d3799d.js +25 -0
  71. package/dist/cjs/{link-6aea0be4.js.map → link-a3d3799d.js.map} +1 -1
  72. package/dist/cjs/loader.cjs.js +4 -2
  73. package/dist/cjs/loader.cjs.js.map +1 -1
  74. package/dist/cjs/miscellaneous-dcb93a5b.js +1419 -0
  75. package/dist/cjs/miscellaneous-dcb93a5b.js.map +1 -0
  76. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +481 -480
  77. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  78. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +72 -69
  79. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
  80. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +151 -150
  81. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
  82. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +107 -106
  83. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
  84. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +258 -257
  85. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
  86. package/dist/cjs/peculiar-text-hider.cjs.entry.js +12 -11
  87. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -1
  88. package/dist/cjs/peculiar.cjs.js +5 -3
  89. package/dist/cjs/peculiar.cjs.js.map +1 -1
  90. package/dist/cjs/x509_certificate-ebf4cbd4.js +160 -0
  91. package/dist/cjs/x509_certificate-ebf4cbd4.js.map +1 -0
  92. package/dist/collection/collection-manifest.json +2 -2
  93. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +259 -259
  94. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -1
  95. package/dist/collection/components/button/button.js +9 -9
  96. package/dist/collection/components/button/button.js.map +1 -1
  97. package/dist/collection/components/button-menu/button-menu.js +60 -60
  98. package/dist/collection/components/button-menu/button-menu.js.map +1 -1
  99. package/dist/collection/components/certificate-decoder/certificate-decoder.js +211 -211
  100. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
  101. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +4 -3
  102. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -1
  103. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +2 -2
  104. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -1
  105. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +6 -6
  106. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -1
  107. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +2 -2
  108. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -1
  109. package/dist/collection/components/certificate-details-parts/attributes/index.js +42 -42
  110. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
  111. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +3 -3
  112. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -1
  113. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +2 -2
  114. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -1
  115. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +5 -5
  116. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -1
  117. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +2 -2
  118. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -1
  119. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +2 -2
  120. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -1
  121. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +14 -14
  122. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -1
  123. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +4 -3
  124. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -1
  125. package/dist/collection/components/certificate-details-parts/basic_information.js +12 -12
  126. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -1
  127. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +2 -2
  128. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -1
  129. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +2 -2
  130. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -1
  131. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +1 -1
  132. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -1
  133. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +8 -8
  134. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -1
  135. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +2 -2
  136. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -1
  137. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +7 -7
  138. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -1
  139. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +5 -5
  140. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -1
  141. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +3 -3
  142. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -1
  143. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js +19 -0
  144. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js.map +1 -0
  145. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +23 -23
  146. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -1
  147. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +2 -2
  148. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -1
  149. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +5 -5
  150. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
  151. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +8 -8
  152. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -1
  153. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +2 -2
  154. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -1
  155. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +2 -2
  156. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -1
  157. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +2 -2
  158. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -1
  159. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +2 -2
  160. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -1
  161. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +5 -5
  162. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -1
  163. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +52 -52
  164. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -1
  165. package/dist/collection/components/certificate-details-parts/extensions/index.js +123 -118
  166. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  167. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +5 -5
  168. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -1
  169. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +4 -4
  170. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -1
  171. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +58 -58
  172. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -1
  173. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +2 -2
  174. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -1
  175. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +2 -2
  176. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -1
  177. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +2 -2
  178. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -1
  179. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +42 -42
  180. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -1
  181. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +5 -5
  182. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -1
  183. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +2 -2
  184. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -1
  185. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +2 -2
  186. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -1
  187. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +2 -2
  188. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -1
  189. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +6 -7
  190. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -1
  191. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +2 -2
  192. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -1
  193. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +29 -29
  194. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
  195. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +2 -2
  196. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -1
  197. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +5 -5
  198. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -1
  199. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +8 -8
  200. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -1
  201. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +2 -2
  202. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -1
  203. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +6 -8
  204. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -1
  205. package/dist/collection/components/certificate-details-parts/holder.js +19 -21
  206. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -1
  207. package/dist/collection/components/certificate-details-parts/issuer.js +8 -8
  208. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -1
  209. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -6
  210. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -1
  211. package/dist/collection/components/certificate-details-parts/miscellaneous.js +6 -6
  212. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -1
  213. package/dist/collection/components/certificate-details-parts/public_key.js +29 -29
  214. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -1
  215. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +30 -30
  216. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -1
  217. package/dist/collection/components/certificate-details-parts/row.js +26 -26
  218. package/dist/collection/components/certificate-details-parts/row.js.map +1 -1
  219. package/dist/collection/components/certificate-details-parts/signature.js +13 -13
  220. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -1
  221. package/dist/collection/components/certificate-details-parts/subject_name.js +5 -5
  222. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -1
  223. package/dist/collection/components/certificate-details-parts/thumbprints.js +12 -12
  224. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -1
  225. package/dist/collection/components/certificate-summary/certificate-summary.js +3 -3
  226. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -1
  227. package/dist/collection/components/certificate-viewer/certificate-viewer.js +278 -278
  228. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -1
  229. package/dist/collection/components/certificates-viewer/certificates-viewer.js +374 -374
  230. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
  231. package/dist/collection/components/circular-progress/circular-progress.js +67 -67
  232. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -1
  233. package/dist/collection/components/crl-viewer/crl-viewer.js +229 -229
  234. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -1
  235. package/dist/collection/components/csr-viewer/csr-viewer.js +211 -219
  236. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
  237. package/dist/collection/components/highlight-words/highlight-words.js +60 -60
  238. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -1
  239. package/dist/collection/components/icons/actions.js +2 -2
  240. package/dist/collection/components/icons/actions.js.map +1 -1
  241. package/dist/collection/components/icons/arrow_bottom.js +2 -2
  242. package/dist/collection/components/icons/arrow_bottom.js.map +1 -1
  243. package/dist/collection/components/icons/arrow_top.js +2 -2
  244. package/dist/collection/components/icons/arrow_top.js.map +1 -1
  245. package/dist/collection/components/icons/cross.js +2 -2
  246. package/dist/collection/components/icons/cross.js.map +1 -1
  247. package/dist/collection/components/icons/details.js +2 -2
  248. package/dist/collection/components/icons/details.js.map +1 -1
  249. package/dist/collection/components/icons/download.js +2 -2
  250. package/dist/collection/components/icons/download.js.map +1 -1
  251. package/dist/collection/components/icons/link.js +2 -2
  252. package/dist/collection/components/icons/link.js.map +1 -1
  253. package/dist/collection/components/link/link.js +4 -4
  254. package/dist/collection/components/link/link.js.map +1 -1
  255. package/dist/collection/components/text-hider/text-hider.js +23 -23
  256. package/dist/collection/components/text-hider/text-hider.js.map +1 -1
  257. package/dist/collection/components/typography/typography.js +32 -32
  258. package/dist/collection/components/typography/typography.js.map +1 -1
  259. package/dist/collection/constants/logs.js +77 -76
  260. package/dist/collection/constants/logs.js.map +1 -1
  261. package/dist/collection/constants/oids.js +2334 -2314
  262. package/dist/collection/constants/oids.js.map +1 -1
  263. package/dist/collection/crypto/asn_data.js +31 -31
  264. package/dist/collection/crypto/asn_data.js.map +1 -1
  265. package/dist/collection/crypto/attribute.js +35 -51
  266. package/dist/collection/crypto/attribute.js.map +1 -1
  267. package/dist/collection/crypto/crl.js +66 -66
  268. package/dist/collection/crypto/crl.js.map +1 -1
  269. package/dist/collection/crypto/csr.js +76 -69
  270. package/dist/collection/crypto/csr.js.map +1 -1
  271. package/dist/collection/crypto/extension.js +64 -135
  272. package/dist/collection/crypto/extension.js.map +1 -1
  273. package/dist/collection/crypto/extensions/cabforganization_identifier.js +54 -0
  274. package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -0
  275. package/dist/collection/crypto/extensions/index.js +5 -0
  276. package/dist/collection/crypto/extensions/index.js.map +1 -0
  277. package/dist/collection/crypto/name.js +31 -31
  278. package/dist/collection/crypto/name.js.map +1 -1
  279. package/dist/collection/crypto/provider.js +26 -26
  280. package/dist/collection/crypto/provider.js.map +1 -1
  281. package/dist/collection/crypto/utils.js +23 -23
  282. package/dist/collection/crypto/utils.js.map +1 -1
  283. package/dist/collection/crypto/x509_attribute_certificate.js +66 -66
  284. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -1
  285. package/dist/collection/crypto/x509_certificate.js +139 -139
  286. package/dist/collection/crypto/x509_certificate.js.map +1 -1
  287. package/dist/collection/utils/camel_case_to_words.js +2 -2
  288. package/dist/collection/utils/camel_case_to_words.js.map +1 -1
  289. package/dist/collection/utils/date_formatter.js +6 -6
  290. package/dist/collection/utils/date_formatter.js.map +1 -1
  291. package/dist/collection/utils/download.js +24 -24
  292. package/dist/collection/utils/download.js.map +1 -1
  293. package/dist/collection/utils/download_from_buffer.js +25 -25
  294. package/dist/collection/utils/download_from_buffer.js.map +1 -1
  295. package/dist/collection/utils/get_string_by_oid.js +5 -5
  296. package/dist/collection/utils/get_string_by_oid.js.map +1 -1
  297. package/dist/collection/utils/is_link.js +1 -1
  298. package/dist/collection/utils/is_link.js.map +1 -1
  299. package/dist/collection/utils/l10n.js +25 -25
  300. package/dist/collection/utils/l10n.js.map +1 -1
  301. package/dist/collection/utils/read_file.js +40 -40
  302. package/dist/collection/utils/read_file.js.map +1 -1
  303. package/dist/collection/utils/validator.js +13 -13
  304. package/dist/collection/utils/validator.js.map +1 -1
  305. package/dist/esm/actions-aebcbc9d.js +21 -0
  306. package/dist/esm/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +1 -1
  307. package/dist/esm/app-globals-5e9b67e0.js +8 -0
  308. package/dist/esm/app-globals-5e9b67e0.js.map +1 -0
  309. package/dist/esm/arrow_top-aee1ee02.js +34 -0
  310. package/dist/esm/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +1 -1
  311. package/dist/esm/button-a2fabf9a.js +74 -0
  312. package/dist/esm/{button-35146bdd.js.map → button-a2fabf9a.js.map} +1 -1
  313. package/dist/esm/{certification_request-c9dc8e9c.js → certification_request-2c054ece.js} +3325 -3331
  314. package/dist/esm/certification_request-2c054ece.js.map +1 -0
  315. package/dist/esm/crl-a7318483.js +308 -0
  316. package/dist/esm/crl-a7318483.js.map +1 -0
  317. package/dist/esm/cross-1377606f.js +47 -0
  318. package/dist/esm/{cross-9ec9a759.js.map → cross-1377606f.js.map} +1 -1
  319. package/dist/esm/download-14dc1047.js +21 -0
  320. package/dist/esm/{download-0cc3077a.js.map → download-14dc1047.js.map} +1 -1
  321. package/dist/esm/{download-aacb6eff.js → download-8c128e2e.js} +50 -50
  322. package/dist/esm/download-8c128e2e.js.map +1 -0
  323. package/dist/esm/{index-4079bbb5.js → index-ae188432.js} +398 -145
  324. package/dist/esm/index-ae188432.js.map +1 -0
  325. package/dist/esm/index.js +8 -8
  326. package/dist/esm/link-7e4e9060.js +23 -0
  327. package/dist/esm/{link-ad24c3be.js.map → link-7e4e9060.js.map} +1 -1
  328. package/dist/esm/loader.js +5 -3
  329. package/dist/esm/loader.js.map +1 -1
  330. package/dist/esm/miscellaneous-0e98b5bc.js +1401 -0
  331. package/dist/esm/miscellaneous-0e98b5bc.js.map +1 -0
  332. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +481 -480
  333. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  334. package/dist/esm/peculiar-button-menu_3.entry.js +72 -69
  335. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
  336. package/dist/esm/peculiar-certificate-decoder.entry.js +151 -150
  337. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
  338. package/dist/esm/peculiar-certificate-viewer.entry.js +107 -106
  339. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  340. package/dist/esm/peculiar-certificates-viewer.entry.js +258 -257
  341. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  342. package/dist/esm/peculiar-text-hider.entry.js +12 -11
  343. package/dist/esm/peculiar-text-hider.entry.js.map +1 -1
  344. package/dist/esm/peculiar.js +6 -4
  345. package/dist/esm/peculiar.js.map +1 -1
  346. package/dist/esm/x509_certificate-ad568d3a.js +158 -0
  347. package/dist/esm/x509_certificate-ad568d3a.js.map +1 -0
  348. package/dist/esm-es5/{actions-8d745b2a.js → actions-aebcbc9d.js} +2 -2
  349. package/dist/esm-es5/app-globals-5e9b67e0.js +5 -0
  350. package/dist/esm-es5/app-globals-5e9b67e0.js.map +1 -0
  351. package/dist/esm-es5/{arrow_top-fc298828.js → arrow_top-aee1ee02.js} +2 -2
  352. package/dist/esm-es5/button-a2fabf9a.js +19 -0
  353. package/dist/esm-es5/certification_request-2c054ece.js +97 -0
  354. package/dist/esm-es5/certification_request-2c054ece.js.map +1 -0
  355. package/dist/esm-es5/crl-a7318483.js +33 -0
  356. package/dist/esm-es5/crl-a7318483.js.map +1 -0
  357. package/dist/esm-es5/{cross-9ec9a759.js → cross-1377606f.js} +2 -2
  358. package/dist/esm-es5/{download-0cc3077a.js → download-14dc1047.js} +2 -2
  359. package/dist/esm-es5/{download-aacb6eff.js → download-8c128e2e.js} +3 -3
  360. package/dist/esm-es5/{download-aacb6eff.js.map → download-8c128e2e.js.map} +1 -1
  361. package/dist/esm-es5/index-ae188432.js +6 -0
  362. package/dist/esm-es5/index-ae188432.js.map +1 -0
  363. package/dist/esm-es5/index.js +1 -1
  364. package/dist/esm-es5/{link-ad24c3be.js → link-7e4e9060.js} +3 -3
  365. package/dist/esm-es5/loader.js +2 -2
  366. package/dist/esm-es5/loader.js.map +1 -1
  367. package/dist/esm-es5/miscellaneous-0e98b5bc.js +369 -0
  368. package/dist/esm-es5/miscellaneous-0e98b5bc.js.map +1 -0
  369. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +17 -17
  370. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  371. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
  372. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  373. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +3 -3
  374. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
  375. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
  376. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  377. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +3 -3
  378. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  379. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  380. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
  381. package/dist/esm-es5/peculiar.js +2 -2
  382. package/dist/esm-es5/peculiar.js.map +1 -1
  383. package/dist/esm-es5/x509_certificate-ad568d3a.js +12 -0
  384. package/dist/esm-es5/{x509_certificate-8cf268d1.js.map → x509_certificate-ad568d3a.js.map} +1 -1
  385. package/dist/peculiar/index.esm.js +1 -1
  386. package/dist/peculiar/{p-5e49b881.system.entry.js → p-00302a20.system.entry.js} +3 -3
  387. package/dist/peculiar/p-00302a20.system.entry.js.map +1 -0
  388. package/dist/peculiar/p-0dbc8238.system.js +13 -0
  389. package/dist/peculiar/{p-cfca7dae.system.js.map → p-0dbc8238.system.js.map} +1 -1
  390. package/dist/peculiar/{p-1ef997ee.js → p-1302bd67.js} +11 -11
  391. package/dist/peculiar/p-1302bd67.js.map +1 -0
  392. package/dist/peculiar/{p-59e5ac12.js → p-1f766dd5.js} +1 -1
  393. package/dist/peculiar/p-243244af.system.js +13 -0
  394. package/dist/peculiar/{p-0fc2e2b4.js → p-27ca6743.js} +2 -2
  395. package/dist/peculiar/p-3cb79cd9.js +6 -0
  396. package/dist/peculiar/p-3cb79cd9.js.map +1 -0
  397. package/dist/peculiar/{p-72f53d81.js → p-3d44cbd2.js} +3 -3
  398. package/dist/peculiar/p-3f9af5f5.system.js +97 -0
  399. package/dist/peculiar/p-3f9af5f5.system.js.map +1 -0
  400. package/dist/peculiar/{p-0bd7c6bc.system.entry.js → p-496449cf.system.entry.js} +10 -10
  401. package/dist/peculiar/p-496449cf.system.entry.js.map +1 -0
  402. package/dist/peculiar/p-4bc5ddbe.js +19 -0
  403. package/dist/peculiar/{p-025b3cfb.entry.js → p-54b37ef9.entry.js} +2 -2
  404. package/dist/peculiar/p-54b37ef9.entry.js.map +1 -0
  405. package/dist/peculiar/p-5a662d6f.system.js +13 -0
  406. package/dist/peculiar/{p-e5b18cd1.entry.js → p-5c6f9a14.entry.js} +3 -3
  407. package/dist/peculiar/p-5c6f9a14.entry.js.map +1 -0
  408. package/dist/peculiar/p-5cf4562f.system.entry.js +111 -0
  409. package/dist/peculiar/p-5cf4562f.system.entry.js.map +1 -0
  410. package/dist/peculiar/{p-2f48fe70.entry.js → p-5f3b0fc7.entry.js} +3 -3
  411. package/dist/peculiar/p-5f3b0fc7.entry.js.map +1 -0
  412. package/dist/peculiar/{p-24050d82.system.entry.js → p-6680f277.system.entry.js} +10 -10
  413. package/dist/peculiar/p-6680f277.system.entry.js.map +1 -0
  414. package/dist/peculiar/p-713563fb.entry.js +5 -0
  415. package/dist/peculiar/p-713563fb.entry.js.map +1 -0
  416. package/dist/peculiar/{p-ca02a823.js → p-75166532.js} +60 -53
  417. package/dist/peculiar/p-75166532.js.map +1 -0
  418. package/dist/peculiar/p-821bdcdc.system.js +6 -0
  419. package/dist/peculiar/p-821bdcdc.system.js.map +1 -0
  420. package/dist/peculiar/p-8393399a.system.js +5 -0
  421. package/dist/peculiar/p-8393399a.system.js.map +1 -0
  422. package/dist/peculiar/p-8bbee8f4.system.js +13 -0
  423. package/dist/peculiar/p-924790f5.js +33 -0
  424. package/dist/peculiar/p-924790f5.js.map +1 -0
  425. package/dist/peculiar/p-9712b827.system.js +20 -0
  426. package/dist/peculiar/{p-2fcad8cb.system.js.map → p-9712b827.system.js.map} +1 -1
  427. package/dist/peculiar/{p-370cee20.js → p-99efefea.js} +2 -2
  428. package/dist/peculiar/{p-1ceb0fe3.js → p-a9487007.js} +2 -2
  429. package/dist/peculiar/{p-17e3c47b.js → p-ae91d778.js} +2 -2
  430. package/dist/peculiar/p-afbd1c8e.entry.js +5 -0
  431. package/dist/peculiar/p-afbd1c8e.entry.js.map +1 -0
  432. package/dist/peculiar/p-b2890eb8.system.js +5 -0
  433. package/dist/peculiar/p-b5389885.system.entry.js +5 -0
  434. package/dist/peculiar/p-b5389885.system.entry.js.map +1 -0
  435. package/dist/peculiar/p-c156b495.system.js +33 -0
  436. package/dist/peculiar/p-c156b495.system.js.map +1 -0
  437. package/dist/peculiar/p-c23fd001.entry.js +110 -0
  438. package/dist/peculiar/p-c23fd001.entry.js.map +1 -0
  439. package/dist/peculiar/p-c241e4ba.system.js +20 -0
  440. package/dist/peculiar/{p-c99507d4.system.js.map → p-c241e4ba.system.js.map} +1 -1
  441. package/dist/peculiar/p-c2995a63.system.js +5 -0
  442. package/dist/peculiar/p-c2995a63.system.js.map +1 -0
  443. package/dist/peculiar/p-dac867e8.js +5 -0
  444. package/dist/peculiar/p-dac867e8.js.map +1 -0
  445. package/dist/peculiar/p-dde511c8.system.js +43 -0
  446. package/dist/{cjs/download-0fa5b33c.js.map → peculiar/p-dde511c8.system.js.map} +1 -1
  447. package/dist/peculiar/p-e4ad4f13.system.entry.js +5 -0
  448. package/dist/peculiar/p-e4ad4f13.system.entry.js.map +1 -0
  449. package/dist/peculiar/p-e6a6e602.js +12 -0
  450. package/dist/peculiar/p-eea904d7.system.js +27 -0
  451. package/dist/peculiar/{p-ddae2f8e.system.js.map → p-eea904d7.system.js.map} +1 -1
  452. package/dist/peculiar/p-ff3ced3c.system.js +369 -0
  453. package/dist/peculiar/p-ff3ced3c.system.js.map +1 -0
  454. package/dist/peculiar/peculiar.esm.js +1 -1
  455. package/dist/peculiar/peculiar.esm.js.map +1 -1
  456. package/dist/peculiar/peculiar.js +15 -15
  457. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +68 -68
  458. package/dist/types/components/button/button.d.ts +4 -4
  459. package/dist/types/components/button-menu/button-menu.d.ts +7 -7
  460. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +31 -31
  461. package/dist/types/components/certificate-details-parts/attributes/activity_description_attribute.d.ts +1 -1
  462. package/dist/types/components/certificate-details-parts/attributes/as_string_attribute.d.ts +1 -1
  463. package/dist/types/components/certificate-details-parts/attributes/basic_attribute.d.ts +1 -1
  464. package/dist/types/components/certificate-details-parts/attributes/challenge_password_attribute.d.ts +1 -1
  465. package/dist/types/components/certificate-details-parts/attributes/index.d.ts +1 -1
  466. package/dist/types/components/certificate-details-parts/attributes/insurance_value_attribute.d.ts +1 -1
  467. package/dist/types/components/certificate-details-parts/attributes/name_attribute.d.ts +1 -1
  468. package/dist/types/components/certificate-details-parts/attributes/name_part.d.ts +1 -1
  469. package/dist/types/components/certificate-details-parts/attributes/type_relationship_attribute.d.ts +1 -1
  470. package/dist/types/components/certificate-details-parts/attributes/unstructured_name_attribute.d.ts +1 -1
  471. package/dist/types/components/certificate-details-parts/attributes/valuation_ranking_attribute.d.ts +1 -1
  472. package/dist/types/components/certificate-details-parts/attributes/web_gdpr_attribute.d.ts +1 -1
  473. package/dist/types/components/certificate-details-parts/basic_information.d.ts +8 -8
  474. package/dist/types/components/certificate-details-parts/extensions/archive_rev_info_extension.d.ts +1 -1
  475. package/dist/types/components/certificate-details-parts/extensions/as_string_extension.d.ts +1 -1
  476. package/dist/types/components/certificate-details-parts/extensions/authority_key_identifier_extension.d.ts +1 -1
  477. package/dist/types/components/certificate-details-parts/extensions/basic_constraints_extension.d.ts +1 -1
  478. package/dist/types/components/certificate-details-parts/extensions/basic_extension.d.ts +1 -1
  479. package/dist/types/components/certificate-details-parts/extensions/biometric_syntax_extension.d.ts +1 -1
  480. package/dist/types/components/certificate-details-parts/extensions/ca_version_extension.d.ts +1 -1
  481. package/dist/types/components/certificate-details-parts/extensions/cabforganization_identifier_extension.d.ts +15 -0
  482. package/dist/types/components/certificate-details-parts/extensions/certificate_policies_extension.d.ts +1 -1
  483. package/dist/types/components/certificate-details-parts/extensions/certificate_template_extension.d.ts +1 -1
  484. package/dist/types/components/certificate-details-parts/extensions/certificate_transparency_extension.d.ts +1 -1
  485. package/dist/types/components/certificate-details-parts/extensions/crl_distribution_points_extension.d.ts +1 -1
  486. package/dist/types/components/certificate-details-parts/extensions/crl_number_extension.d.ts +1 -1
  487. package/dist/types/components/certificate-details-parts/extensions/crl_reason_extension.d.ts +1 -1
  488. package/dist/types/components/certificate-details-parts/extensions/enroll_cert_type_extension.d.ts +1 -1
  489. package/dist/types/components/certificate-details-parts/extensions/entrust_version_info_extension.d.ts +1 -1
  490. package/dist/types/components/certificate-details-parts/extensions/extended_key_usage_extension.d.ts +1 -1
  491. package/dist/types/components/certificate-details-parts/extensions/general_name_part.d.ts +1 -1
  492. package/dist/types/components/certificate-details-parts/extensions/index.d.ts +2 -2
  493. package/dist/types/components/certificate-details-parts/extensions/info_access_syntax_extension.d.ts +1 -1
  494. package/dist/types/components/certificate-details-parts/extensions/issuing_distribution_point_extension.d.ts +1 -1
  495. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +1 -1
  496. package/dist/types/components/certificate-details-parts/extensions/key_usage_extension.d.ts +1 -1
  497. package/dist/types/components/certificate-details-parts/extensions/lei_extension.d.ts +1 -1
  498. package/dist/types/components/certificate-details-parts/extensions/lei_role_extennsion.d.ts +1 -1
  499. package/dist/types/components/certificate-details-parts/extensions/logotype_extension.d.ts +1 -1
  500. package/dist/types/components/certificate-details-parts/extensions/name_constraints_extension.d.ts +1 -1
  501. package/dist/types/components/certificate-details-parts/extensions/netscape_cert_type_extension.d.ts +1 -1
  502. package/dist/types/components/certificate-details-parts/extensions/netscape_comment_extension.d.ts +1 -1
  503. package/dist/types/components/certificate-details-parts/extensions/policy_constraints_extension.d.ts +1 -1
  504. package/dist/types/components/certificate-details-parts/extensions/policy_mappings_extension.d.ts +1 -1
  505. package/dist/types/components/certificate-details-parts/extensions/private_key_usage_period_extension.d.ts +1 -1
  506. package/dist/types/components/certificate-details-parts/extensions/qc_statements_extension.d.ts +1 -1
  507. package/dist/types/components/certificate-details-parts/extensions/subject_alternative_name_extension.d.ts +1 -1
  508. package/dist/types/components/certificate-details-parts/extensions/subject_directory_attributes_extension.d.ts +1 -1
  509. package/dist/types/components/certificate-details-parts/extensions/subject_key_identifier_extension.d.ts +1 -1
  510. package/dist/types/components/certificate-details-parts/extensions/timestamp_extension.d.ts +1 -1
  511. package/dist/types/components/certificate-details-parts/extensions/tn_auth_list_extension.d.ts +1 -1
  512. package/dist/types/components/certificate-details-parts/holder.d.ts +1 -1
  513. package/dist/types/components/certificate-details-parts/issuer.d.ts +1 -1
  514. package/dist/types/components/certificate-details-parts/issuer_name.d.ts +2 -2
  515. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +1 -1
  516. package/dist/types/components/certificate-details-parts/public_key.d.ts +1 -1
  517. package/dist/types/components/certificate-details-parts/revoked_certificates.d.ts +1 -1
  518. package/dist/types/components/certificate-details-parts/row.d.ts +7 -7
  519. package/dist/types/components/certificate-details-parts/signature.d.ts +1 -1
  520. package/dist/types/components/certificate-details-parts/subject_name.d.ts +1 -1
  521. package/dist/types/components/certificate-details-parts/thumbprints.d.ts +1 -1
  522. package/dist/types/components/certificate-summary/certificate-summary.d.ts +2 -2
  523. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +74 -74
  524. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +75 -75
  525. package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
  526. package/dist/types/components/crl-viewer/crl-viewer.d.ts +56 -56
  527. package/dist/types/components/csr-viewer/csr-viewer.d.ts +52 -53
  528. package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
  529. package/dist/types/components/icons/actions.d.ts +1 -1
  530. package/dist/types/components/icons/arrow_bottom.d.ts +1 -1
  531. package/dist/types/components/icons/arrow_top.d.ts +1 -1
  532. package/dist/types/components/icons/cross.d.ts +1 -1
  533. package/dist/types/components/icons/details.d.ts +1 -1
  534. package/dist/types/components/icons/download.d.ts +1 -1
  535. package/dist/types/components/icons/link.d.ts +1 -1
  536. package/dist/types/components/link/link.d.ts +2 -2
  537. package/dist/types/components/text-hider/text-hider.d.ts +2 -2
  538. package/dist/types/components/typography/typography.d.ts +4 -4
  539. package/dist/types/components.d.ts +24 -0
  540. package/dist/types/constants/logs.d.ts +77 -76
  541. package/dist/types/constants/oids.d.ts +2326 -2307
  542. package/dist/types/crypto/asn_data.d.ts +6 -6
  543. package/dist/types/crypto/attribute.d.ts +21 -6
  544. package/dist/types/crypto/crl.d.ts +23 -23
  545. package/dist/types/crypto/csr.d.ts +23 -21
  546. package/dist/types/crypto/extension.d.ts +52 -5
  547. package/dist/types/crypto/extensions/cabforganization_identifier.d.ts +23 -0
  548. package/dist/types/crypto/extensions/index.d.ts +1 -0
  549. package/dist/types/crypto/name.d.ts +7 -7
  550. package/dist/types/crypto/provider.d.ts +15 -15
  551. package/dist/types/crypto/x509_attribute_certificate.d.ts +24 -24
  552. package/dist/types/crypto/x509_certificate.d.ts +33 -33
  553. package/dist/types/stencil-public-runtime.d.ts +29 -0
  554. package/dist/types/utils/download.d.ts +16 -16
  555. package/dist/types/utils/l10n.d.ts +56 -56
  556. package/dist/types/utils/read_file.d.ts +7 -7
  557. package/hydrate/index.d.ts +2 -2
  558. package/hydrate/index.js +12072 -10170
  559. package/package.json +21 -13
  560. package/dist/cjs/actions-19013d4a.js +0 -23
  561. package/dist/cjs/arrow_top-834fb7ec.js +0 -37
  562. package/dist/cjs/button-14e2b73f.js +0 -77
  563. package/dist/cjs/certification_request-bf416170.js.map +0 -1
  564. package/dist/cjs/crl-d9591b95.js +0 -322
  565. package/dist/cjs/crl-d9591b95.js.map +0 -1
  566. package/dist/cjs/cross-9872c473.js +0 -51
  567. package/dist/cjs/download-254ddc57.js +0 -23
  568. package/dist/cjs/index-efd561e9.js.map +0 -1
  569. package/dist/cjs/link-6aea0be4.js +0 -25
  570. package/dist/cjs/miscellaneous-6e800553.js +0 -1400
  571. package/dist/cjs/miscellaneous-6e800553.js.map +0 -1
  572. package/dist/cjs/x509_certificate-53feebd3.js +0 -160
  573. package/dist/cjs/x509_certificate-53feebd3.js.map +0 -1
  574. package/dist/esm/actions-8d745b2a.js +0 -21
  575. package/dist/esm/arrow_top-fc298828.js +0 -34
  576. package/dist/esm/button-35146bdd.js +0 -74
  577. package/dist/esm/certification_request-c9dc8e9c.js.map +0 -1
  578. package/dist/esm/crl-70e85374.js +0 -318
  579. package/dist/esm/crl-70e85374.js.map +0 -1
  580. package/dist/esm/cross-9ec9a759.js +0 -47
  581. package/dist/esm/download-0cc3077a.js +0 -21
  582. package/dist/esm/download-aacb6eff.js.map +0 -1
  583. package/dist/esm/index-4079bbb5.js.map +0 -1
  584. package/dist/esm/link-ad24c3be.js +0 -23
  585. package/dist/esm/miscellaneous-0763f98e.js +0 -1383
  586. package/dist/esm/miscellaneous-0763f98e.js.map +0 -1
  587. package/dist/esm/x509_certificate-8cf268d1.js +0 -158
  588. package/dist/esm/x509_certificate-8cf268d1.js.map +0 -1
  589. package/dist/esm-es5/button-35146bdd.js +0 -19
  590. package/dist/esm-es5/certification_request-c9dc8e9c.js +0 -97
  591. package/dist/esm-es5/certification_request-c9dc8e9c.js.map +0 -1
  592. package/dist/esm-es5/crl-70e85374.js +0 -33
  593. package/dist/esm-es5/crl-70e85374.js.map +0 -1
  594. package/dist/esm-es5/index-4079bbb5.js +0 -6
  595. package/dist/esm-es5/index-4079bbb5.js.map +0 -1
  596. package/dist/esm-es5/miscellaneous-0763f98e.js +0 -362
  597. package/dist/esm-es5/miscellaneous-0763f98e.js.map +0 -1
  598. package/dist/esm-es5/x509_certificate-8cf268d1.js +0 -12
  599. package/dist/peculiar/p-025b3cfb.entry.js.map +0 -1
  600. package/dist/peculiar/p-0b356bb5.js +0 -6
  601. package/dist/peculiar/p-0b356bb5.js.map +0 -1
  602. package/dist/peculiar/p-0bd7c6bc.system.entry.js.map +0 -1
  603. package/dist/peculiar/p-10d2d400.system.js +0 -34
  604. package/dist/peculiar/p-10d2d400.system.js.map +0 -1
  605. package/dist/peculiar/p-14f281b0.system.js +0 -43
  606. package/dist/peculiar/p-14f281b0.system.js.map +0 -1
  607. package/dist/peculiar/p-15cb92b5.system.js +0 -97
  608. package/dist/peculiar/p-15cb92b5.system.js.map +0 -1
  609. package/dist/peculiar/p-1ef997ee.js.map +0 -1
  610. package/dist/peculiar/p-24050d82.system.entry.js.map +0 -1
  611. package/dist/peculiar/p-2f48fe70.entry.js.map +0 -1
  612. package/dist/peculiar/p-2fcad8cb.system.js +0 -20
  613. package/dist/peculiar/p-31b60224.system.js +0 -362
  614. package/dist/peculiar/p-31b60224.system.js.map +0 -1
  615. package/dist/peculiar/p-33196289.entry.js +0 -5
  616. package/dist/peculiar/p-33196289.entry.js.map +0 -1
  617. package/dist/peculiar/p-4ab9673f.system.entry.js +0 -111
  618. package/dist/peculiar/p-4ab9673f.system.entry.js.map +0 -1
  619. package/dist/peculiar/p-5151cb6f.system.entry.js +0 -5
  620. package/dist/peculiar/p-5151cb6f.system.entry.js.map +0 -1
  621. package/dist/peculiar/p-53784f15.system.entry.js +0 -5
  622. package/dist/peculiar/p-53784f15.system.entry.js.map +0 -1
  623. package/dist/peculiar/p-542412ae.js +0 -33
  624. package/dist/peculiar/p-542412ae.js.map +0 -1
  625. package/dist/peculiar/p-5aabeba7.system.js +0 -6
  626. package/dist/peculiar/p-5aabeba7.system.js.map +0 -1
  627. package/dist/peculiar/p-5ab007e9.entry.js +0 -5
  628. package/dist/peculiar/p-5ab007e9.entry.js.map +0 -1
  629. package/dist/peculiar/p-5e49b881.system.entry.js.map +0 -1
  630. package/dist/peculiar/p-6cb88fd6.system.js +0 -13
  631. package/dist/peculiar/p-7f9beaa8.js +0 -19
  632. package/dist/peculiar/p-80832207.system.js +0 -5
  633. package/dist/peculiar/p-80832207.system.js.map +0 -1
  634. package/dist/peculiar/p-94a453d7.js +0 -12
  635. package/dist/peculiar/p-9c91dd68.entry.js +0 -110
  636. package/dist/peculiar/p-9c91dd68.entry.js.map +0 -1
  637. package/dist/peculiar/p-a3eeb94b.system.js +0 -5
  638. package/dist/peculiar/p-b313be9e.system.js +0 -13
  639. package/dist/peculiar/p-c99507d4.system.js +0 -20
  640. package/dist/peculiar/p-ca02a823.js.map +0 -1
  641. package/dist/peculiar/p-cfca7dae.system.js +0 -13
  642. package/dist/peculiar/p-ddae2f8e.system.js +0 -27
  643. package/dist/peculiar/p-e5b18cd1.entry.js.map +0 -1
  644. package/dist/peculiar/p-e6a3b4d4.system.js +0 -13
  645. /package/dist/esm-es5/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +0 -0
  646. /package/dist/esm-es5/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +0 -0
  647. /package/dist/esm-es5/{button-35146bdd.js.map → button-a2fabf9a.js.map} +0 -0
  648. /package/dist/esm-es5/{cross-9ec9a759.js.map → cross-1377606f.js.map} +0 -0
  649. /package/dist/esm-es5/{download-0cc3077a.js.map → download-14dc1047.js.map} +0 -0
  650. /package/dist/esm-es5/{link-ad24c3be.js.map → link-7e4e9060.js.map} +0 -0
  651. /package/dist/peculiar/{p-59e5ac12.js.map → p-1f766dd5.js.map} +0 -0
  652. /package/dist/peculiar/{p-6cb88fd6.system.js.map → p-243244af.system.js.map} +0 -0
  653. /package/dist/peculiar/{p-0fc2e2b4.js.map → p-27ca6743.js.map} +0 -0
  654. /package/dist/peculiar/{p-72f53d81.js.map → p-3d44cbd2.js.map} +0 -0
  655. /package/dist/peculiar/{p-7f9beaa8.js.map → p-4bc5ddbe.js.map} +0 -0
  656. /package/dist/peculiar/{p-b313be9e.system.js.map → p-5a662d6f.system.js.map} +0 -0
  657. /package/dist/peculiar/{p-e6a3b4d4.system.js.map → p-8bbee8f4.system.js.map} +0 -0
  658. /package/dist/peculiar/{p-370cee20.js.map → p-99efefea.js.map} +0 -0
  659. /package/dist/peculiar/{p-1ceb0fe3.js.map → p-a9487007.js.map} +0 -0
  660. /package/dist/peculiar/{p-17e3c47b.js.map → p-ae91d778.js.map} +0 -0
  661. /package/dist/peculiar/{p-a3eeb94b.system.js.map → p-b2890eb8.system.js.map} +0 -0
  662. /package/dist/peculiar/{p-94a453d7.js.map → p-e6a6e602.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["readAsBinaryString","file","Promise","resolve","reject","reader","FileReader","onload","value","result","fileName","name","fileSize","size","sourceMime","type","onerror","error","certificateDecoderCss","CertificateDecoder","exports","this","handleClickDecode","_this","inputPaste","decode","handleClickClear","clearValue","handleChangeInputFile","event","__awaiter","element","target","files","_b","sent","handleChangeExample","handleDropFile","stopPropagation","preventDefault","dataTransfer","class_1","prototype","componentDidLoad","defaultCertificate","setTimeout","certificateDecoded","clearCertificate","emit","setValue","exportAsPemFormatted","successParse","exportAsBase64","certificate","isPem","validator.isPem","isX509Pem","validator.isX509Pem","isPkcs10Pem","validator.isPkcs10Pem","isX509AttributePem","validator.isX509AttributePem","isX509CRLPem","validator.isX509CRLPem","decoded","decodeError","alert","X509Certificate","X509AttributeCertificate","CSR","CRL","console","log","render","h","Host","placeholder","class","ref","el","onDrop","Typography","variant","color","accept","onChange","_a","certificateExamples","length","map","example","title","Button","onClick","download"],"sources":["src/utils/read_file.ts","src/components/certificate-decoder/certificate-decoder.scss?tag=peculiar-certificate-decoder&encapsulation=shadow","src/components/certificate-decoder/certificate-decoder.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport type FileValue = string | ArrayBuffer | null;\nexport interface IFileDataType extends Blob {\n name?: string;\n mimeType?: string;\n lastModified?: number;\n}\nexport interface IReadFileResult {\n value: FileValue;\n fileName: string | undefined;\n fileSize: number | undefined;\n sourceMime: string | undefined;\n}\n\n/**\n * Read file as Binary string\n *\n * @example\n * ```js\n * const file = new File(['file'], 'file.pdf', { type: 'text/plain' });\n * readAsBinaryString(file)\n * .then(result => console.log('Readed success', result))\n * .catch(err => console.log('An error occured when reading file', err));\n * ```\n */\n\nexport function readAsBinaryString(file: IFileDataType): Promise<IReadFileResult> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.onload = () => resolve({\n value: reader.result,\n fileName: file.name,\n fileSize: file.size,\n sourceMime: file.type,\n });\n\n reader.onerror = () => reject(reader.error);\n\n reader.readAsBinaryString(file);\n });\n}\n\n/**\n * Read file as ArrayBuffer\n *\n * @example\n * ```js\n * const file = new File(['file'], 'file.pdf', { type: 'text/plain' });\n * readAsArrayBuffer(file)\n * .then(result => console.log('Readed success', result))\n * .catch(err => console.log('An error occured when reading file', err));\n * ```\n */\n\nexport function readAsArrayBuffer(file: IFileDataType): Promise<IReadFileResult> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.onload = () => resolve({\n value: reader.result,\n fileName: file.name,\n fileSize: file.size,\n sourceMime: file.type,\n });\n\n reader.onerror = () => reject(reader.error);\n\n reader.readAsArrayBuffer(file);\n });\n}\n\n/**\n * Read file as Data URL\n *\n * @example\n * ```js\n * const file = new File(['file'], 'file.pdf', { type: 'text/plain' });\n * readAsDataUrl(file)\n * .then(result => console.log('Readed success', result))\n * .catch(err => console.log('An error occured when reading file', err));\n * ```\n */\n\nexport function readAsDataUrl(file: IFileDataType): Promise<IReadFileResult> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.onload = () => resolve({\n value: reader.result,\n fileName: file.name,\n fileSize: file.size,\n sourceMime: file.type,\n });\n\n reader.onerror = () => reject(reader.error);\n\n reader.readAsDataURL(file);\n });\n}\n\n/**\n * Read file as Text\n *\n * @example\n * ```js\n * const file = new File(['file'], 'file.pdf', { type: 'text/plain' });\n * readAsText(file)\n * .then(result => console.log('Readed success', result))\n * .catch(err => console.log('An error occured when reading file', err));\n * ```\n */\n\nexport function readAsText(file: IFileDataType, options?: string): Promise<IReadFileResult> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.onload = () => resolve({\n value: reader.result,\n fileName: file.name,\n fileSize: file.size,\n sourceMime: file.type,\n });\n\n reader.onerror = () => reject(reader.error);\n\n reader.readAsText(file, options);\n });\n}\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n}\n\n.textarea {\n min-height: 300px;\n width: 100%;\n border-radius: 4px;\n border: 1px solid var(--pv-color-gray-5);;\n padding: 14px;\n font-family: monospace;\n resize: vertical;\n}\n\n.viewer {\n margin-top: var(--pv-size-base-12);\n}\n\n.controls {\n margin-top: var(--pv-size-base-2);\n display: flex;\n flex-direction: column;\n gap: var(--pv-size-base-2);\n}\n\n.control_row {\n display: flex;\n align-items: center;\n gap: var(--pv-size-base);\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n} from '@stencil/core';\n\nimport { validator, readAsBinaryString } from '../../utils';\nimport {\n X509Certificate,\n X509AttributeCertificate,\n CSR,\n CRL,\n} from '../../crypto';\nimport { Button } from '../button';\nimport { Typography } from '../typography';\n\n@Component({\n tag: 'peculiar-certificate-decoder',\n styleUrl: 'certificate-decoder.scss',\n shadow: true,\n})\nexport class CertificateDecoder {\n private inputPaste?: HTMLTextAreaElement;\n\n /**\n * The example certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() certificateExamples?: {\n title: string;\n value: string;\n }[];\n\n /**\n * The default certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() defaultCertificate?: string;\n\n @State() certificateDecoded: X509Certificate | X509AttributeCertificate | CSR | CRL;\n\n /**\n * Emitted when the certificate has been successfully parsed.\n */\n @Event() successParse!: EventEmitter<string>;\n\n /**\n * Emitted when the certificate has been removed.\n */\n @Event() clearCertificate!: EventEmitter<void>;\n\n componentDidLoad() {\n if (this.defaultCertificate) {\n /**\n * Prevent Stencil warning about re-render\n */\n setTimeout(() => this.decode(this.defaultCertificate), 100);\n }\n }\n\n private handleClickDecode = () => {\n const { value } = this.inputPaste;\n\n if (value) {\n this.decode(value);\n }\n };\n\n private handleClickClear = () => {\n this.clearValue();\n };\n\n private handleChangeInputFile = async (event: any) => {\n const element = event.target;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n\n element.value = '';\n }\n };\n\n private handleChangeExample = (event: any) => {\n if (event.target.value) {\n this.decode(event.target.value);\n } else {\n this.clearValue();\n }\n };\n\n private handleDropFile = async (event: any) => {\n event.stopPropagation();\n event.preventDefault();\n\n const element = event.dataTransfer;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n }\n };\n\n clearValue() {\n this.inputPaste.value = '';\n this.certificateDecoded = null;\n this.clearCertificate.emit();\n }\n\n setValue(value: X509Certificate | X509AttributeCertificate | CSR | CRL) {\n this.certificateDecoded = value;\n this.inputPaste.value = value.exportAsPemFormatted();\n this.successParse.emit(value.exportAsBase64());\n }\n\n decode(certificate: string) {\n const isPem = validator.isPem(certificate);\n const isX509Pem = validator.isX509Pem(certificate);\n const isPkcs10Pem = validator.isPkcs10Pem(certificate);\n const isX509AttributePem = validator.isX509AttributePem(certificate);\n const isX509CRLPem = validator.isX509CRLPem(certificate);\n let decoded: X509Certificate | X509AttributeCertificate | CSR | CRL;\n let decodeError: Error;\n\n if (isPem && !(isX509Pem || isX509AttributePem || isPkcs10Pem || isX509CRLPem)) {\n this.clearValue();\n\n alert('Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.');\n\n return;\n }\n\n try {\n if (isX509Pem) {\n decoded = new X509Certificate(certificate);\n }\n\n if (isX509AttributePem) {\n decoded = new X509AttributeCertificate(certificate);\n }\n\n if (isPkcs10Pem) {\n decoded = new CSR(certificate);\n }\n\n if (isX509CRLPem) {\n decoded = new CRL(certificate);\n }\n } catch (error) {\n decodeError = error;\n }\n\n if (!decoded) {\n try {\n decoded = new X509Certificate(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new X509AttributeCertificate(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new CSR(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new CRL(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n this.clearValue();\n\n console.log(decodeError);\n alert('Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.');\n } else {\n this.setValue(decoded);\n }\n }\n\n render() {\n return (\n <Host>\n <textarea\n placeholder=\"Certificate DER or PEM\"\n class=\"textarea t-b2 c-black\"\n ref={(el) => { this.inputPaste = el; }}\n onDrop={this.handleDropFile}\n />\n <div class=\"controls\">\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Drag or load file:\n </Typography>\n <input\n type=\"file\"\n accept=\"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,application/pkix-crl,.csr,.req,.crl\"\n onChange={this.handleChangeInputFile}\n value=\"\"\n />\n </div>\n {this.certificateExamples?.length && (\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Load examples:\n </Typography>\n <select onChange={this.handleChangeExample}>\n <option value=\"\">None</option>\n {this.certificateExamples.map((example) => (\n <option value={example.value}>\n {example.title}\n </option>\n ))}\n </select>\n </div>\n )}\n <div class=\"control_row\">\n <Button\n onClick={this.handleClickDecode}\n >\n Decode\n </Button>\n <Button\n onClick={this.handleClickClear}\n >\n Clear\n </Button>\n </div>\n </div>\n {this.certificateDecoded instanceof X509Certificate && (\n <peculiar-certificate-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof X509AttributeCertificate && (\n <peculiar-attribute-certificate-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof CSR && (\n <peculiar-csr-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof CRL && (\n <peculiar-crl-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n </Host>\n );\n }\n}\n"],"mappings":";;;;;;;;;;;SAiCgBA,EAAmBC,GACjC,OAAO,IAAIC,SAAQ,SAACC,EAASC,GAC3B,IAAMC,EAAS,IAAIC,WAEnBD,EAAOE,OAAS,WAAM,OAAAJ,EAAQ,CAC5BK,MAAOH,EAAOI,OACdC,SAAUT,EAAKU,KACfC,SAAUX,EAAKY,KACfC,WAAYb,EAAKc,MAJG,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Y,yBACZC,MAAM,wBACNC,IAAK,SAACC,GAASxD,EAAKC,WAAauD,CAAG,EACpCC,OAAQ3D,KAAKgB,iBAEfqC,EAAA,OAAKG,MAAM,YACTH,EAAA,OAAKG,MAAM,eACTH,EAACO,EAAU,CACTC,QAAQ,KACRC,MAAM,oBAAkB,sBAI1BT,EAAA,SACE3D,KAAK,OACLqE,OAAO,uIACPC,SAAUhE,KAAKO,sBACfpB,MAAM,QAGT8E,EAAAjE,KAAKkE,uBAAmB,MAAAD,SAAA,SAAAA,EAAEE,SACzBd,EAAA,OAAKG,MAAM,eACTH,EAACO,EAAU,CACTC,QAAQ,KACRC,MAAM,oBAAkB,kBAI1BT,EAAA,UAAQW,SAAUhE,KAAKe,qBACrBsC,EAAA,UAAQlE,MAAM,IAAE,QACfa,KAAKkE,oBAAoBE,KAAI,SAACC,GAAO,OACpChB,EAAA,UAAQlE,MAAOkF,EAAQlF,OACpBkF,EAAQC,MAFyB,MAQ5CjB,EAAA,OAAKG,MAAM,eACTH,EAACkB,EAAM,CACLC,QAASxE,KAAKC,mBAAiB,UAIjCoD,EAACkB,EAAM,CACLC,QAASxE,KAAKK,kBAAgB,WAMnCL,KAAKyB,8BAA8BqB,GAClCO,EAAA,+BACErB,YAAahC,KAAKyB,mBAClB+B,MAAM,SACNiB,SAAQ,OAGXzE,KAAKyB,8BAA8BsB,GAClCM,EAAA,yCACErB,YAAahC,KAAKyB,mBAClB+B,MAAM,SACNiB,SAAQ,OAGXzE,KAAKyB,8BAA8BuB,GAClCK,EAAA,uBACErB,YAAahC,KAAKyB,mBAClB+B,MAAM,SACNiB,SAAQ,OAGXzE,KAAKyB,8BAA8BwB,GAClCI,EAAA,uBACErB,YAAahC,KAAKyB,mBAClB+B,MAAM,SACNiB,SAAQ,O,WAjQW,I"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["CertificateSummary","props","certificate","showIssuer","renderRow","name","value","h","Typography","variant","color","l10n","getString","subjectToString","issuerToString","serialNumber","version","validity","dateShort","notBefore","notAfter","certificatesViewerCss","CertificatesViewer","this","isHasRoots","handleClickDetails","certificateSelectedForDetails","detailsOpen","emit","handleModalClose","undefined","detailsClose","handleSearch","event","search","target","trim","handleMediaQueryChange","mobileScreenView","matches","componentWillLoad","certificatesDecodeAndSet","mobileMediaQuery","window","matchMedia","mobileMediaQueryString","addEventListener","bind","disconnectedCallback","removeEventListener","watchCertificates","newValue","oldValue","JSON","stringify","hasRoots","Array","isArray","certificates","data","decoded","X509Certificate","getThumbprint","push","body","tests","isRoot","error","console","isDecodeInProcess","certificatesDecoded","handleClickDownloadAsPem","downloadAsPEM","commonName","handleClickDownloadAsDer","downloadAsDER","handleClickRow","index","isExpandedRowClicked","expandedRow","getMaxColSpanValue","colSpan","renderCertificateButtonActions","isHasTestURLs","expired","revoked","valid","class","groups","title","options","text","startIcon","DetailsIcon","onClick","DownloadIcon","_a","href","LinkIcon","_b","_c","renderExpandedRow","renderCertificatesRows","searchHighlight","highlightWithSearch","content","forEach","isExpandedRow","publicKeyValue","OIDs","signature","algorithm","filterWithSearch","certificateStringForSearch","issuerCommonName","thumbprints","join","toLowerCase","indexOf","certificate_row","m_expanded","key","Button","ArrowTopIcon","ArrowBottomIcon","renderCertificateDetailsModal","role","part","CrossIcon","renderSearch","onInput","type","disabled","length","placeholder","renderEmptyState","renderEmptySearchState","renderLoadingState","renderTableBody","certificatesRows","render","Host","String"],"sources":["src/components/certificate-summary/certificate-summary.tsx","src/components/certificates-viewer/certificates-viewer.scss?tag=peculiar-certificates-viewer&encapsulation=shadow","src/components/certificates-viewer/certificates-viewer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { X509Certificate } from '../../crypto';\nimport { dateShort, l10n } from '../../utils';\nimport { Typography } from '../typography';\n\ninterface CertificateSummaryProps {\n certificate: X509Certificate;\n showIssuer?: boolean;\n}\n\nexport const CertificateSummary: FunctionalComponent<CertificateSummaryProps> = (props) => {\n const {\n certificate,\n showIssuer,\n } = props;\n\n const renderRow = (name: string | string[], value: string | number) => (\n <tr>\n <td>\n <Typography\n variant=\"b2\"\n color=\"gray-9\"\n >\n {name}\n </Typography>\n </td>\n <td>\n <Typography\n variant=\"b2\"\n color=\"black\"\n >\n {value}\n </Typography>\n </td>\n </tr>\n );\n\n return (\n <table>\n <tbody>\n {renderRow(\n l10n.getString('subjectName'),\n certificate.subjectToString(),\n )}\n {showIssuer && renderRow(\n l10n.getString('issuerName'),\n certificate.issuerToString(),\n )}\n\n {renderRow(\n l10n.getString('serialNumber'),\n certificate.serialNumber,\n )}\n {renderRow(\n l10n.getString('version'),\n certificate.version,\n )}\n {renderRow(\n l10n.getString('validity'),\n certificate.validity,\n )}\n {renderRow(\n l10n.getString('issued'),\n dateShort(certificate.notBefore),\n )}\n {renderRow(\n l10n.getString('expired'),\n dateShort(certificate.notAfter),\n )}\n </tbody>\n </table>\n );\n};\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n word-wrap: break-word;\n min-width: 280px;\n overflow: auto;\n position: relative;\n}\n\n.search_section {\n padding: var(--pv-size-base-4);\n border-bottom: 1px solid var(--pv-color-gray-4);\n}\n\n.input_search {\n height: var(--pv-size-base-8);\n width: 100%;\n outline: none;\n background-color: var(--pv-color-gray-1);\n padding: 0 var(--pv-size-base-2);\n border: 1px solid var(--pv-color-gray-7);\n border-radius: 4px;\n transition: background-color 200ms ease 0s, color 200ms ease 0s, border-color 200ms ease 0s;\n &::placeholder {\n color: var(--pv-color-gray-9);\n }\n}\n\ntable {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n border-spacing: 0;\n\n td, th {\n border-bottom: 1px solid var(--pv-color-gray-4);\n vertical-align: top;\n text-align: left;\n\n &:first-child {\n padding-right: 0;\n width: var(--pv-size-base-10);\n }\n &:last-child {\n padding-left: 0;\n width: var(--pv-size-base-10);\n }\n }\n\n th {\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n\n &.col_action {\n padding: 0;\n }\n }\n\n td {\n padding: var(--pv-size-base-4);\n }\n\n tr {\n &.m_expanded {\n background: var(--pv-color-gray-1);\n\n > td {\n border-bottom: none;\n }\n }\n\n &.expanded_summary {\n background: var(--pv-color-gray-1);\n\n table {\n table-layout: initial;\n\n td {\n border-bottom: none;\n padding: var(--pv-size-base-2);\n\n &:first-child {\n width: 200px;\n }\n\n &:last-child {\n width: auto;\n }\n }\n }\n }\n }\n}\n\n.button_table_cell {\n margin-top: -3px;\n}\n\n.status_wrapper {\n text-align: center;\n height: var(--pv-size-base-16);\n vertical-align: middle;\n}\n\n.modal_wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n animation: fadeIn 200ms;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.modal_backdrop {\n background: var(--pv-color-black);\n z-index: -1;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0.5;\n}\n\n.modal_container {\n background: var(--pv-color-white);\n width: 100%;\n display: flex;\n max-height: calc(100% - 60px);\n flex-direction: column;\n margin: var(--pv-size-base-6);\n position: relative;\n outline: none;\n box-shadow: var(--pv-shadow-dark-hight);\n overflow: hidden;\n border: 0px;\n padding: 0px;\n max-width: 640px;\n border-radius: 4px;\n}\n\n.modal_header {\n padding: var(--pv-size-base-3) var(--pv-size-base-4);\n display: flex;\n flex: 0 0 auto;\n -webkit-box-pack: justify;\n justify-content: space-between;\n gap: var(--pv-size-base-2);\n border-bottom: 1px solid var(--pv-color-gray-5);\n}\n\n.modal_content {\n flex: 1 1 auto;\n overflow: auto;\n}\n\n:host([data-mobile-screen-view=\"true\"]) {\n table, tbody, tr, td {\n display: block;\n width: 100% !important;\n padding: 0;\n border: none;\n }\n\n thead {\n display: none;\n }\n\n table {\n tr {\n padding: var(--pv-size-base-2) 0;\n }\n\n .expanded_summary {\n padding: 0;\n }\n\n .certificate_row {\n border-bottom: 1px solid var(--pv-color-gray-5);\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n }\n\n .certificate_row_actions {\n padding-top: var(--pv-size-base-6);\n\n td {\n display: flex;\n justify-content: right;\n gap: var(--pv-size-base-4);\n }\n }\n }\n\n .button_table_cell {\n margin-top: 0;\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n h,\n Prop,\n State,\n Watch,\n Host,\n Event,\n EventEmitter,\n Build,\n} from '@stencil/core';\n\nimport { X509Certificate } from '../../crypto';\nimport { OIDs } from '../../constants/oids';\nimport { l10n } from '../../utils';\nimport { Typography } from '../typography';\nimport { CertificateSummary } from '../certificate-summary';\nimport { Button } from '../button';\nimport {\n DownloadIcon,\n LinkIcon,\n DetailsIcon,\n ArrowBottomIcon,\n ArrowTopIcon,\n CrossIcon,\n} from '../icons';\n\nexport interface ICertificate {\n value: string;\n name?: string;\n tests?: {\n valid?: string;\n revoked?: string;\n expired?: string;\n };\n}\n\ninterface ICertificateDecoded {\n body: X509Certificate;\n tests?: ICertificate['tests'];\n name?: string;\n}\n\n@Component({\n tag: 'peculiar-certificates-viewer',\n styleUrl: 'certificates-viewer.scss',\n shadow: true,\n})\nexport class CertificatesViewer {\n private isHasRoots: boolean = false;\n\n private mobileMediaQuery: MediaQueryList;\n\n /**\n * List of certificates values for decode and show in the list.\n * <br />\n * **NOTE**: If you do not provide a `name` value when\n * invocing the component it will take the first Subject CN value.\n * <br />\n * **NOTE**: If you do not provide a `tests` this column will be ommited from the rendered page.\n * <br />\n * **NOTE**: If the supplied certificates are self-signed the issuer column will be ommited.\n */\n @Prop() certificates: ICertificate[] = [];\n\n /**\n * Use filter in the list when search is changed.\n */\n @Prop() filterWithSearch: boolean = true;\n\n /**\n * Use highlight chapters in the list when search is changed.\n */\n @Prop() highlightWithSearch: boolean = true;\n\n /**\n * Mobile media query string to control screen view change.\n * <br />\n * **NOTE**: Based on https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia.\n * @example\n * (max-width: 900px)\n */\n @Prop({ reflect: false }) mobileMediaQueryString?: string = '(max-width: 900px)';\n\n /**\n * Emitted when the user open certificate details modal.\n */\n @Event() detailsOpen!: EventEmitter<X509Certificate>;\n\n /**\n * Emitted when the user close certificate details modal.\n */\n @Event() detailsClose!: EventEmitter<void>;\n\n @State() mobileScreenView: boolean = false;\n\n @State() search: string = '';\n\n @State() certificatesDecoded: ICertificateDecoded[] = [];\n\n @State() expandedRow?: number;\n\n @State() certificateSelectedForDetails?: X509Certificate;\n\n @State() isDecodeInProcess: boolean = true;\n\n private handleMediaQueryChange(event: MediaQueryListEvent) {\n this.mobileScreenView = event.matches;\n }\n\n componentWillLoad() {\n this.certificatesDecodeAndSet();\n\n if (Build.isBrowser) {\n this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);\n this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));\n this.mobileScreenView = this.mobileMediaQuery.matches;\n }\n }\n\n disconnectedCallback() {\n this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));\n }\n\n @Watch('certificates')\n watchCertificates(newValue: ICertificate[], oldValue: ICertificate[]) {\n /**\n * Prevent rerender after set the same `certificates` prop.\n */\n if (JSON.stringify(newValue) !== JSON.stringify(oldValue)) {\n this.certificatesDecodeAndSet();\n }\n }\n\n async certificatesDecodeAndSet() {\n let hasRoots = false;\n\n if (!Array.isArray(this.certificates)) {\n return;\n }\n\n const data: ICertificateDecoded[] = [];\n\n // eslint-disable-next-line no-restricted-syntax\n for (const certificate of this.certificates) {\n try {\n const decoded = new X509Certificate(certificate.value);\n\n await decoded.getThumbprint('SHA-1');\n\n data.push({\n body: decoded,\n tests: certificate.tests,\n name: certificate.name,\n });\n\n if (!hasRoots && decoded.isRoot) {\n hasRoots = true;\n }\n } catch (error) {\n console.error('Error certificate parse:', error);\n }\n }\n\n this.isHasRoots = hasRoots;\n this.isDecodeInProcess = false;\n this.certificatesDecoded = data;\n }\n\n // eslint-disable-next-line class-methods-use-this\n private handleClickDownloadAsPem(certificate: ICertificateDecoded) {\n certificate.body.downloadAsPEM(certificate.name || certificate.body.commonName);\n }\n\n // eslint-disable-next-line class-methods-use-this\n private handleClickDownloadAsDer(certificate: ICertificateDecoded) {\n certificate.body.downloadAsDER(certificate.name || certificate.body.commonName);\n }\n\n private handleClickDetails = (certificate: X509Certificate) => {\n this.certificateSelectedForDetails = certificate;\n this.detailsOpen.emit(certificate);\n };\n\n private handleModalClose = () => {\n this.certificateSelectedForDetails = undefined;\n\n this.detailsClose.emit();\n };\n\n private handleClickRow(index: number) {\n const isExpandedRowClicked = this.expandedRow === index;\n\n this.expandedRow = isExpandedRowClicked\n ? undefined\n : index;\n }\n\n private handleSearch = (event: any) => {\n this.search = event.target.value.trim();\n };\n\n private getMaxColSpanValue() {\n let colSpan = 5;\n\n if (!this.isHasRoots) {\n colSpan += 1;\n }\n\n return colSpan;\n }\n\n private renderCertificateButtonActions(certificate: ICertificateDecoded) {\n const isHasTestURLs = certificate.tests\n && (certificate.tests.expired || certificate.tests.revoked || certificate.tests.valid);\n\n return (\n <peculiar-button-menu\n class=\"button_table_cell\"\n groups={[\n {\n title: l10n.getString('previewCertificate'),\n options: [\n {\n text: l10n.getString('viewDetails'),\n startIcon: <DetailsIcon />,\n onClick: () => this.handleClickDetails(certificate.body),\n },\n ],\n },\n {\n title: l10n.getString('downloadOptions'),\n options: [\n {\n text: l10n.getString('download.pem'),\n startIcon: <DownloadIcon />,\n onClick: () => this.handleClickDownloadAsPem(certificate),\n },\n {\n text: l10n.getString('download.der'),\n startIcon: <DownloadIcon />,\n onClick: () => this.handleClickDownloadAsDer(certificate),\n },\n ],\n },\n ...(isHasTestURLs ? [{\n title: l10n.getString('testURLs'),\n options: [\n ...(certificate.tests?.valid ? [{\n text: l10n.getString('valid'),\n href: certificate.tests.valid,\n startIcon: <LinkIcon />,\n }] : []),\n ...(certificate.tests?.revoked ? [{\n text: l10n.getString('revoked'),\n href: certificate.tests.revoked,\n startIcon: <LinkIcon />,\n }] : []),\n ...(certificate.tests?.expired ? [{\n text: l10n.getString('expired'),\n href: certificate.tests.expired,\n startIcon: <LinkIcon />,\n }] : []),\n ],\n }] : []),\n ]}\n />\n );\n }\n\n private renderExpandedRow(certificate: X509Certificate) {\n const colSpan = this.getMaxColSpanValue() - 2;\n\n return (\n <tr class=\"expanded_summary\">\n <td />\n <td colSpan={colSpan}>\n <CertificateSummary\n certificate={certificate}\n showIssuer={!certificate.isRoot}\n />\n </td>\n <td />\n </tr>\n );\n }\n\n private renderCertificatesRows() {\n const searchHighlight = this.highlightWithSearch\n ? this.search\n : '';\n const content = [];\n\n this.certificatesDecoded.forEach((certificate, index) => {\n const isExpandedRow = index === this.expandedRow;\n const publicKeyValue = OIDs[certificate.body.signature.algorithm]\n || certificate.body.signature.algorithm;\n\n if (this.filterWithSearch && this.search) {\n const certificateStringForSearch = [\n publicKeyValue,\n certificate.body.issuerCommonName,\n certificate.name,\n certificate.body.commonName,\n certificate.body.thumbprints['SHA-1'],\n ]\n .join(' ')\n .toLowerCase();\n\n if (certificateStringForSearch.indexOf(this.search.toLowerCase()) === -1) {\n return;\n }\n }\n\n if (this.mobileScreenView) {\n content.push([\n <tr\n class={{\n certificate_row: true,\n m_expanded: isExpandedRow,\n }}\n key={certificate.body.thumbprints['SHA-1']}\n >\n <td>\n <table>\n <tbody>\n {!this.isHasRoots && (\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('issuer')}\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.issuerCommonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n )}\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('name')}\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.name || certificate.body.commonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('publicKey')}\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {publicKeyValue}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('fingerprint')}\n &nbsp; (SHA-1)\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.thumbprints['SHA-1']}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n {isExpandedRow && this.renderExpandedRow(certificate.body)}\n <tr class=\"certificate_row_actions\">\n <td>\n {this.renderCertificateButtonActions(certificate)}\n <Button\n // eslint-disable-next-line react/jsx-no-bind\n onClick={this.handleClickRow.bind(this, index)}\n startIcon={isExpandedRow ? <ArrowTopIcon /> : <ArrowBottomIcon />}\n />\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>,\n ]);\n\n return;\n }\n\n content.push([\n <tr\n class={{\n m_expanded: isExpandedRow,\n }}\n key={certificate.body.thumbprints['SHA-1']}\n >\n <td>\n <Button\n class=\"button_table_cell\"\n // eslint-disable-next-line react/jsx-no-bind\n onClick={this.handleClickRow.bind(this, index)}\n startIcon={isExpandedRow ? <ArrowTopIcon /> : <ArrowBottomIcon />}\n />\n </td>\n {!this.isHasRoots && (\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.issuerCommonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n )}\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.name || certificate.body.commonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {publicKeyValue}\n </peculiar-highlight-words>\n </Typography>\n </td>\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.thumbprints['SHA-1']}\n </peculiar-highlight-words>\n </Typography>\n </td>\n <td>\n {this.renderCertificateButtonActions(certificate)}\n </td>\n </tr>,\n isExpandedRow && this.renderExpandedRow(certificate.body),\n ]);\n });\n\n return content;\n }\n\n private renderCertificateDetailsModal() {\n if (!this.certificateSelectedForDetails) {\n return null;\n }\n\n return (\n <div\n class=\"modal_wrapper\"\n role=\"presentation\"\n aria-hidden=\"false\"\n part=\"presentation\"\n >\n <div\n class=\"modal_backdrop\"\n onClick={this.handleModalClose}\n aria-hidden=\"true\"\n />\n <div\n class=\"modal_container\"\n role=\"dialog\"\n part=\"presentation_container\"\n >\n <header class=\"modal_header\">\n <Typography\n variant=\"h4\"\n >\n {l10n.getString('certificateDetails')}\n </Typography>\n <Button\n onClick={this.handleModalClose}\n startIcon={<CrossIcon />}\n />\n </header>\n <div class=\"modal_content\">\n <peculiar-certificate-viewer\n certificate={this.certificateSelectedForDetails}\n mobileMediaQueryString={this.mobileMediaQueryString}\n />\n </div>\n </div>\n </div>\n );\n }\n\n private renderSearch() {\n if (!this.filterWithSearch && !this.highlightWithSearch) {\n return null;\n }\n\n return (\n <div class=\"search_section\">\n <input\n onInput={this.handleSearch}\n type=\"search\"\n value=\"\"\n class=\"input_search t-b3 c-black\"\n disabled={!this.certificatesDecoded.length}\n placeholder=\"Search\"\n />\n </div>\n );\n }\n\n private renderEmptyState() {\n const colSpan = this.getMaxColSpanValue();\n\n return (\n <tr>\n <td\n class=\"status_wrapper\"\n colSpan={colSpan}\n >\n <Typography\n variant=\"b1\"\n >\n There are no certificates available.\n </Typography>\n </td>\n </tr>\n );\n }\n\n private renderEmptySearchState() {\n const colSpan = this.getMaxColSpanValue();\n\n return (\n <tr>\n <td\n class=\"status_wrapper\"\n colSpan={colSpan}\n >\n <Typography\n variant=\"b1\"\n >\n No results found for &ldquo;\n {this.search}\n &ldquo;\n </Typography>\n </td>\n </tr>\n );\n }\n\n // eslint-disable-next-line class-methods-use-this\n private renderLoadingState() {\n return (\n <div class=\"loading_container\">\n <peculiar-circular-progress />\n </div>\n );\n }\n\n private renderTableBody() {\n if (this.isDecodeInProcess) {\n return null;\n }\n\n if (!this.certificatesDecoded.length) {\n return this.renderEmptyState();\n }\n\n const certificatesRows = this.renderCertificatesRows();\n\n if (this.search && !certificatesRows.length) {\n return this.renderEmptySearchState();\n }\n\n return certificatesRows;\n }\n\n render() {\n return (\n <Host\n data-mobile-screen-view={String(this.mobileScreenView)}\n >\n {this.renderSearch()}\n <table>\n {!this.mobileScreenView && (\n <thead>\n <tr>\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <th />\n {!this.isHasRoots && (\n <th class=\"col_issuer\">\n <Typography variant=\"s2\">\n {l10n.getString('issuer')}\n </Typography>\n </th>\n )}\n <th class=\"col_name\">\n <Typography variant=\"s2\">\n {l10n.getString('name')}\n </Typography>\n </th>\n <th class=\"col_public_key\">\n <Typography variant=\"s2\">\n {l10n.getString('publicKey')}\n </Typography>\n </th>\n <th class=\"col_fingerprint\">\n <Typography variant=\"s2\">\n {l10n.getString('fingerprint')}\n &nbsp; (SHA-1)\n </Typography>\n </th>\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <th />\n </tr>\n </thead>\n )}\n <tbody>\n {this.renderTableBody()}\n </tbody>\n </table>\n\n {this.renderCertificateDetailsModal()}\n {this.isDecodeInProcess && this.renderLoadingState()}\n </Host>\n );\n }\n}\n"],"mappings":";;;;;;;;;;GAkBO,MAAMA,EAAoEC,IAC/E,MAAMC,YACJA,EAAWC,WACXA,GACEF,EAEJ,MAAMG,EAAY,CAACC,EAAyBC,IAC1CC,EAAA,UACEA,EAAA,UACEA,EAACC,EAAU,CACTC,QAAQ,KACRC,MAAM,UAELL,IAGLE,EAAA,UACEA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B,GAAI/E,KAAKW,SAAWyG,EAAiBN,OAAQ,CAC3C,OAAO9G,KAAKiH,wB,CAGd,OAAOG,C,CAGT,MAAAC,GACE,OACErI,EAACsI,EAAI,2BACsBC,OAAOvH,KAAKe,mBAEpCf,KAAK0G,eACN1H,EAAA,cACIgB,KAAKe,kBACL/B,EAAA,aACEA,EAAA,UAEEA,EAAA,YACEgB,KAAKC,YACLjB,EAAA,MAAIgF,MAAM,cACRhF,EAACC,EAAU,CAACC,QAAQ,MACjBE,EAAKC,UAAU,YAItBL,EAAA,MAAIgF,MAAM,YACRhF,EAACC,EAAU,CAACC,QAAQ,MACjBE,EAAKC,UAAU,UAGpBL,EAAA,MAAIgF,MAAM,kBACRhF,EAACC,EAAU,CAACC,QAAQ,MACjBE,EAAKC,UAAU,eAGpBL,EAAA,MAAIgF,MAAM,mBACRhF,EAACC,EAAU,CAACC,QAAQ,MACjBE,EAAKC,UAAU,eAAc,cAKlCL,EAAA,aAINA,EAAA,aACGgB,KAAKmH,oBAITnH,KAAKsG,gCACLtG,KAAK8C,mBAAqB9C,KAAKkH,qB"}
@@ -1,20 +0,0 @@
1
- /*!
2
- * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
- */
4
- System.register(["./p-5aabeba7.system.js"],(function(t){"use strict";var n;return{setters:[function(t){n=t.h}],execute:function(){
5
- /**
6
- * @license
7
- * Copyright (c) Peculiar Ventures, LLC.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var r=undefined&&undefined.__rest||function(t,n){var r={};for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0)r[e]=t[e];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,e=Object.getOwnPropertySymbols(t);o<e.length;o++){if(n.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o]))r[e[o]]=t[e[o]]}return r};var e={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",s1:"h6",s2:"h6",b1:"p",b2:"p",b3:"p",btn1:"span",btn2:"span",c1:"p",c2:"p"};var o=t("T",(function(t,o){var a;var c=t.component,s=t.variant,l=s===void 0?"b2":s,p=t.color,i=p===void 0?"black":p,u=t.class,b=r(t,["component","variant","color","class"]);var f=c||e[l]||"p";return n(f,Object.assign({},b,{class:(a={typography:true},a["t-".concat(l)]=true,a["c-".concat(i)]=true,a[u]=Boolean(u),a)}),o)}));
13
- /**
14
- * @license
15
- * Copyright (c) Peculiar Ventures, LLC.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */var a=t("B",(function(t,r){var e;var a=t.href,c=t.class,s=t.startIcon,l=t.onClick;var p=!!a;var i=p?"a":"button";return n(i,{type:!p&&"button",href:p&&a,target:p&&"_blank",rel:p&&"noreferrer noopener",onClick:l,class:(e={button:true,m_no_padding:r.length===0},e[c]=Boolean(c),e)},s,r.length>0&&n(o,{variant:"b3",color:"black",component:"span"},r))}))}}}));
20
- //# sourceMappingURL=p-2fcad8cb.system.js.map
@@ -1,362 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(a,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n))e[n]=a[n]};return e(a,n)};return function(a,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(a,n);function t(){this.constructor=a}a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();
2
- /*!
3
- * © Peculiar Ventures https://peculiarventures.com/ - MIT License
4
- */System.register(["./p-5aabeba7.system.js","./p-15cb92b5.system.js","./p-14f281b0.system.js","./p-6cb88fd6.system.js","./p-2fcad8cb.system.js","./p-e6a3b4d4.system.js"],(function(e){"use strict";var a,n,t,r,i,u,o,c,l,f,s,v,d,b,m,g,p,y,x,h,S,C,I,A,N,D,T,j,O,P,k,L,G,V,B,R,H,E,_,U,q,w,M,K,Q,J,X,Y,F,z,W,$,Z,ee,ae,ne,te,re,ie,ue,oe,ce;return{setters:[function(e){a=e.h},function(e){n=e.a1;t=e.$;r=e.a0;i=e.a2;u=e.a6;o=e.v;c=e.a7;l=e.a8;f=e.a9;s=e.aa;v=e.ab;d=e.ac;b=e.ad;m=e.ae;g=e.af;p=e.ag;y=e.ah;x=e.ai;h=e.aj;S=e.ak;C=e.al;I=e.am;A=e.an;N=e.ao;D=e.ap;T=e.aq;j=e.ar;O=e.as;P=e.at;k=e.au;L=e.av;G=e.aw;V=e.ax;B=e.ay;R=e.az;H=e.aA;E=e.aB;_=e.aC;U=e.aD;q=e.aE;w=e.aF;M=e.aG;K=e.aH;Q=e.a3;J=e.aI;X=e.aJ;Y=e.aK;F=e.aL;z=e.aM;W=e.aN;$=e.aO;Z=e.aP;ee=e.aQ;ae=e.aR;ne=e.aS},function(e){te=e.C;re=e.B},function(e){ie=e.L},function(e){ue=e.T;oe=e.B},function(e){ce=e.D}],execute:function(){e("g",le);
5
- /**
6
- * @license
7
- * Copyright (c) Peculiar Ventures, LLC.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */function le(e){var a=n[e];if(a){return"".concat(a," (").concat(e,")")}return e}
12
- /**
13
- * @license
14
- * Copyright (c) Peculiar Ventures, LLC.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */function fe(e){var a=e.replace(/([A-Z])/g," $1");return a.charAt(0).toUpperCase()+a.slice(1)}
19
- /**
20
- * @license
21
- * Copyright (c) Peculiar Ventures, LLC.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var se=e("c",(function(e){return"https://search.gleif.org/#/record/".concat(e)}));var ve=e("d",(function(e){return"https://search.censys.io/search?resource=hosts&q=dns.names%3A".concat(e)}));var de=e("e",(function(e){return"https://search.censys.io/search?resource=hosts&q=ip%3A".concat(e)}));
26
- /**
27
- * @license
28
- * Copyright (c) Peculiar Ventures, LLC.
29
- *
30
- * This source code is licensed under the MIT license found in the
31
- * LICENSE file in the root directory of this source tree.
32
- */function be(e){return e.indexOf("http")===0}
33
- /**
34
- * @license
35
- * Copyright (c) Peculiar Ventures, LLC.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */var me=e("T",(function(e,n){return a("tr",null,a("td",{colSpan:2},a("table",null,n)))}));var ge=e("a",(function(e){var n=e.value;if(!n){return null}return[a("tr",{class:"title"},a("td",{colSpan:2},a(ue,{variant:"s1",color:"black"},n))),a("tr",null,a("td",{colSpan:2,class:"divider"},a("span",null)))]}));var pe=e("R",(function(e){var n=e.name,t=e.value,r=e.monospace,i=e.collapse,u=e.href,o=e.extraValue;if(!n){return null}if(t===undefined||t===null){return null}var c;if(i){c=a("peculiar-text-hider",null,t)}else{c=t}var l=!!t.toString();return a("tr",null,a("td",{colSpan:l?1:2},a(ue,{variant:"b2",color:"gray-9"},n)),l&&a("td",{class:{monospace:r}},be(t.toString())||u?a(ie,{variant:"b2",href:u||t.toString()},t):a(ue,{variant:"b2",color:"black"},c,o)))}));
40
- /**
41
- * @license
42
- * Copyright (c) Peculiar Ventures, LLC.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */var ye=e("B",(function(e){var n=e.serialNumber,i=e.version,u=e.validity,o=e.notBefore,c=e.notAfter,l=e.lastUpdate,f=e.nextUpdate,s=e.type;return[a(ge,{value:t.getString("basicInformation")}),a(pe,{name:t.getString("type"),value:s}),a(pe,{name:t.getString("serialNumber"),value:n,monospace:true}),a(pe,{name:t.getString("version"),value:i}),a(pe,{name:t.getString("validity"),value:u}),a(pe,{name:t.getString("issued"),value:o?r(o):undefined}),a(pe,{name:t.getString("expired"),value:c?r(c):undefined}),a(pe,{name:t.getString("lastUpdate"),value:l?r(l):undefined}),a(pe,{name:t.getString("nextUpdate"),value:f?r(f):undefined})]}));
47
- /**
48
- * @license
49
- * Copyright (c) Peculiar Ventures, LLC.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */function xe(e){if(e.params&&"modulus"in e.params){var a=e.params.modulus.byteLength;if(a%2){a-=1}return a*8}return null}function he(e){if(e.params&&"publicExponent"in e.params){return e.params.publicExponent.byteLength===3?65537:3}return null}var Se=e("P",(function(e){var n=e.publicKey;if(!n){return null}function r(e){return[a(pe,{name:t.getString("algorithm"),value:le(e.algorithm)}),a(pe,{name:t.getString("namedCurve"),value:le(e.params&&"namedCurve"in e.params?e.params.namedCurve:undefined)}),a(pe,{name:t.getString("exponent"),value:he(e)}),a(pe,{name:t.getString("modulus"),value:xe(e)}),a(pe,{name:t.getString("value"),value:te.ToHex(e.value),monospace:true,collapse:true})]}return[a(ge,{value:t.getString("publicKeyInfo")}),r(n),Array.isArray(n.params)&&n.params.length&&n.params.map((function(e){return a(me,null,r(e))}))]}));
54
- /**
55
- * @license
56
- * Copyright (c) Peculiar Ventures, LLC.
57
- *
58
- * This source code is licensed under the MIT license found in the
59
- * LICENSE file in the root directory of this source tree.
60
- */var Ce=e("f",(function(e){var n=e.name;return[a(ge,{value:t.getString("subjectName")}),n.map((function(e){return a(pe,{name:e.name||e.type,value:e.value})}))]}));
61
- /**
62
- * @license
63
- * Copyright (c) Peculiar Ventures, LLC.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */var Ie=e("I",(function(e){var n=e.name,r=e.issuerDnLink;var i=t.getString("issuerName");return[a(ge,{value:r?a(ie,{href:r},i):i}),n.map((function(e){return a(pe,{name:e.name||e.type,value:e.value})}))]}));
68
- /**
69
- * @license
70
- * Copyright (c) Peculiar Ventures, LLC.
71
- *
72
- * This source code is licensed under the MIT license found in the
73
- * LICENSE file in the root directory of this source tree.
74
- */var Ae=e("S",(function(e){var n=e.signature;if(!n){return null}function r(e){return[a(pe,{name:t.getString("algorithm"),value:le(e.algorithm)}),a(pe,{name:t.getString("value"),value:te.ToHex(e.value),monospace:true,collapse:true})]}return[a(ge,{value:t.getString("signature")}),r(n),n.params&&n.params.length&&n.params.map((function(e){return a(me,null,r(e))}))]}));
75
- /**
76
- * @license
77
- * Copyright (c) Peculiar Ventures, LLC.
78
- *
79
- * This source code is licensed under the MIT license found in the
80
- * LICENSE file in the root directory of this source tree.
81
- */var Ne=e("b",(function(e){var n=e.thumbprints;if(!n){return null}var r=Object.keys(n);if(!r.length){return null}return[a(ge,{value:t.getString("fingerprints")}),r.map((function(e){return a(pe,{name:e,value:n[e],monospace:true})}))]}));
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
- */var De=function(e,n){var r=e.extension;return[a(pe,{name:"Name",value:le(r.asn.extnID)}),a(pe,{name:"Critical",value:r.asn.critical?t.getString("yes"):t.getString("no")}),n,a("tr",null,a("td",{colSpan:2,class:"divider"},a("span",null)))]};
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
- */var Te=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Usage",value:n.value.toJSON().join(", ")}))};
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
- */var je=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Certificate Authority",value:n.value.cA?t.getString("yes"):t.getString("no")}),a(pe,{name:"Path Length Constraint",value:n.value.pathLenConstraint}))};
103
- /**
104
- * @license
105
- * Copyright (c) Peculiar Ventures, LLC.
106
- *
107
- * This source code is licensed under the MIT license found in the
108
- * LICENSE file in the root directory of this source tree.
109
- */var Oe=function(e){var n=e.extension;return a(De,{extension:n},Boolean(n.value.length)&&[a(pe,{name:"Purposes",value:""}),n.value.map((function(e){return a(me,null,a(pe,{name:"Purpose",value:le(e)}))}))])};
110
- /**
111
- * @license
112
- * Copyright (c) Peculiar Ventures, LLC.
113
- *
114
- * This source code is licensed under the MIT license found in the
115
- * LICENSE file in the root directory of this source tree.
116
- */var Pe=function(e){var n=e.extension,t=e.getSubjectKeyIdChildrenLink,r=e.getSubjectKeyIdSiblingsLink;var i=te.ToHex(n.value.buffer);var u=t(i);var o=r(i);return a(De,{extension:n},a(pe,{name:"Key ID",value:i,monospace:true,extraValue:[u&&a("span",null," [",a(ie,{href:u},"children"),"]"),o&&a("span",null," [",a(ie,{href:o},"siblings"),"]")]}))};
117
- /**
118
- * @license
119
- * Copyright (c) Peculiar Ventures, LLC.
120
- *
121
- * This source code is licensed under the MIT license found in the
122
- * LICENSE file in the root directory of this source tree.
123
- */var ke=function(e){var n=e.extension,t=e.getAuthKeyIdParentLink,r=e.getAuthKeyIdSiblingsLink;var i=te.ToHex(n.value.keyIdentifier.buffer);var u=t(i);var o=r(i);return a(De,{extension:n},a(pe,{name:"Key ID",value:i,monospace:true,extraValue:[u&&a("span",null," [",a(ie,{href:u},"parents"),"]"),o&&a("span",null," [",a(ie,{href:o},"siblings"),"]")]}))};
124
- /**
125
- * @license
126
- * Copyright (c) Peculiar Ventures, LLC.
127
- *
128
- * This source code is licensed under the MIT license found in the
129
- * LICENSE file in the root directory of this source tree.
130
- */var Le={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 Ge=e("G",(function(e){var t=e.generalName,r=e.getDNSNameLink,s=e.getIPAddressLink;if(!t){return null}return Object.keys(t).map((function(e){var v=t[e];if(v instanceof i){return[a(pe,{name:Le[e]||e,value:""}),a(me,null,v.map((function(e){return e.map((function(e){return a(pe,{name:n[e.type]||e.type,value:e.value.toString()})}))})))]}if(v instanceof u){try{var d=o.parse(v.value,c);return a(pe,{name:n[v.typeId]||v.typeId,value:d.toString()})}catch(e){}try{var d=o.parse(v.value,l);if(d.explicitText){return a(pe,{name:n[v.typeId]||v.typeId,value:d.explicitText.toString()})}}catch(e){}return a(pe,{name:n[v.typeId]||v.typeId,value:te.ToHex(v.value),monospace:true})}if(re.isBufferSource(v)){return a(pe,{name:Le[e]||e,value:te.ToString(v)})}if(v instanceof f){return a(pe,{name:Le[e]||e,value:v.partyName.toString()})}if(e==="dNSName"){return a(pe,{name:Le[e]||e,value:v,href:r(v)})}if(e==="iPAddress"){return a(pe,{name:Le[e]||e,value:v,href:s(v)})}return a(pe,{name:Le[e]||e,value:v})}))}));
131
- /**
132
- * @license
133
- * Copyright (c) Peculiar Ventures, LLC.
134
- *
135
- * This source code is licensed under the MIT license found in the
136
- * LICENSE file in the root directory of this source tree.
137
- */var Ve=function(e){var n=e.extension;return a(De,{extension:n},n.value.map((function(n){var t,r;return[(t=n.distributionPoint)===null||t===void 0?void 0:t.fullName.map((function(n){return a(Ge,Object.assign({generalName:n},e))})),(r=n.cRLIssuer)===null||r===void 0?void 0:r.map((function(n){return a(Ge,Object.assign({generalName:n},e))}))]})))};
138
- /**
139
- * @license
140
- * Copyright (c) Peculiar Ventures, LLC.
141
- *
142
- * This source code is licensed under the MIT license found in the
143
- * LICENSE file in the root directory of this source tree.
144
- */var Be=function(e){var n=e.extension;return a(De,{extension:n},Boolean(n.value.length)&&[a(pe,{name:"Descriptions",value:""}),n.value.map((function(n){return a(me,null,a(pe,{name:"Method",value:le(n.accessMethod)}),a(Ge,Object.assign({generalName:n.accessLocation},e)))}))])};
145
- /**
146
- * @license
147
- * Copyright (c) Peculiar Ventures, LLC.
148
- *
149
- * This source code is licensed under the MIT license found in the
150
- * LICENSE file in the root directory of this source tree.
151
- */var Re=function(e){var n=e.extension;return a(De,{extension:n},n.value.map((function(n){return a(Ge,Object.assign({generalName:n},e))})))};
152
- /**
153
- * @license
154
- * Copyright (c) Peculiar Ventures, LLC.
155
- *
156
- * This source code is licensed under the MIT license found in the
157
- * LICENSE file in the root directory of this source tree.
158
- */var He=function(e){var n=e.extension;return a(De,{extension:n},Boolean(n.value.length)&&[a(pe,{name:"Policies",value:""}),n.value.map((function(e){return a(me,null,a(pe,{name:"Policy ID",value:le(e.policyIdentifier)}),e.policyQualifiers&&Boolean(e.policyQualifiers.length)&&[a(pe,{name:"Qualifiers",value:""}),e.policyQualifiers.map((function(e){var n=[a(pe,{name:"Qualifier ID",value:le(e.policyQualifierId)})];if(e.policyQualifierId==="1.3.6.1.5.5.7.2.1"){var t=o.parse(e.qualifier,c);n.push(a(pe,{name:"Value",value:t.toString()}))}if(e.policyQualifierId==="1.3.6.1.5.5.7.2.2"){var t=o.parse(e.qualifier,l);if(t.explicitText){n.push(a(pe,{name:"Value",value:t.explicitText.toString()}))}}return a(me,null,n)}))])}))])};
159
- /**
160
- * @license
161
- * Copyright (c) Peculiar Ventures, LLC.
162
- *
163
- * This source code is licensed under the MIT license found in the
164
- * LICENSE file in the root directory of this source tree.
165
- */var Ee={"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"};
166
- /**
167
- * @license
168
- * Copyright (c) Peculiar Ventures, LLC.
169
- *
170
- * This source code is licensed under the MIT license found in the
171
- * LICENSE file in the root directory of this source tree.
172
- */var _e=function(e){var n=e.extension;return a(De,{extension:n},Boolean(n.value.items.length)&&[a(pe,{name:"Signed Certificate Timestamps",value:""}),n.value.toJSON().map((function(e){return a(me,null,a(pe,{name:"Version",value:e.version+1}),a(pe,{name:"Log Operator",value:Ee[e.logId]||e.logId}),a(pe,{name:"Log Key ID",value:e.logId,monospace:true}),a(pe,{name:"Timestamp",value:r(e.timestamp)}),a(pe,{name:"Signature Algorithm",value:"".concat(e.hashAlgorithm," ").concat(e.signatureAlgorithm).toUpperCase()}),a(pe,{name:"Signature",value:e.signature,monospace:true}))}))])};
173
- /**
174
- * @license
175
- * Copyright (c) Peculiar Ventures, LLC.
176
- *
177
- * This source code is licensed under the MIT license found in the
178
- * LICENSE file in the root directory of this source tree.
179
- */var Ue=function(e){var n,t;var r=e.extension;return a(De,{extension:r},(n=r.value.excludedSubtrees)===null||n===void 0?void 0:n.map((function(n){return a(Ge,Object.assign({generalName:n.base},e))})),(t=r.value.permittedSubtrees)===null||t===void 0?void 0:t.map((function(n){return a(Ge,Object.assign({generalName:n.base},e))})))};
180
- /**
181
- * @license
182
- * Copyright (c) Peculiar Ventures, LLC.
183
- *
184
- * This source code is licensed under the MIT license found in the
185
- * LICENSE file in the root directory of this source tree.
186
- */var qe=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Template ID",value:n.value.templateID}),a(pe,{name:"Template Major Version",value:n.value.templateMajorVersion}),a(pe,{name:"Template Minor Version",value:n.value.templateMinorVersion}))};
187
- /**
188
- * @license
189
- * Copyright (c) Peculiar Ventures, LLC.
190
- *
191
- * This source code is licensed under the MIT license found in the
192
- * LICENSE file in the root directory of this source tree.
193
- */var we=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Name",value:n.value.toString()}))};
194
- /**
195
- * @license
196
- * Copyright (c) Peculiar Ventures, LLC.
197
- *
198
- * This source code is licensed under the MIT license found in the
199
- * LICENSE file in the root directory of this source tree.
200
- */var Me=function(e){var n=e.extension;var t=n.value.getVersion();return a(De,{extension:n},a(pe,{name:"Certificate Index",value:t.certificateIndex}),a(pe,{name:"Key Index",value:t.keyIndex}))};var Ke,Qe,Je,Xe;var Ye=function(){function e(e){if(typeof e==="string"){this.alphabetic=e}else if(typeof e==="number"){this.numeric=e}}return e}();s([v({type:d.PrintableString})],Ye.prototype,"alphabetic",void 0);s([v({type:d.PrintableString})],Ye.prototype,"numeric",void 0);Ye=s([b({type:m.Choice})],Ye);var Fe=function(){function e(e){if(e===void 0){e={}}this.currency=new Ye;this.amount=0;this.exponent=0;Object.assign(this,e)}return e}();s([v({type:Ye})],Fe.prototype,"currency",void 0);s([v({type:d.Integer})],Fe.prototype,"amount",void 0);s([v({type:d.Integer})],Fe.prototype,"exponent",void 0);var ze=function(e){__extends(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return a}(Fe);ze=s([b({type:m.Sequence})],ze);var We=function(){function e(e){if(e===void 0){e=0}this.value=e}return e}();s([v({type:d.Integer})],We.prototype,"value",void 0);We=s([b({type:m.Choice})],We);var $e=function(){function e(e){if(e===void 0){e={}}this.url="";this.language="";Object.assign(this,e)}return e}();s([v({type:d.IA5String})],$e.prototype,"url",void 0);s([v({type:d.PrintableString})],$e.prototype,"language",void 0);$e=s([b({type:m.Sequence})],$e);var Ze=Ke=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,Ke.prototype);return n}return a}(g);Ze=Ke=s([b({type:m.Sequence,itemType:$e})],Ze);var ea=Qe=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,Qe.prototype);return n}return a}(Ze);ea=Qe=s([b({type:m.Sequence,itemType:$e})],ea);var aa=Je=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,Je.prototype);return n}return a}(g);aa=Je=s([b({type:m.Sequence,itemType:d.ObjectIdentifier})],aa);var na=Xe=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,Xe.prototype);return n}return a}(g);na=Xe=s([b({type:m.Sequence,itemType:d.PrintableString})],na);var ta="0.4.0.1862.1";var ra="".concat(ta,".3");var ia="".concat(ta,".5");var ua="".concat(ta,".6");
201
- /**
202
- * @license
203
- * Copyright (c) Peculiar Ventures, LLC.
204
- *
205
- * This source code is licensed under the MIT license found in the
206
- * LICENSE file in the root directory of this source tree.
207
- */var oa=function(e){var n=e.extension;function t(e,n){if(!n.byteLength){return null}if(e===p){var t=o.parse(n,y);return a(pe,{name:"Semantics Identifier",value:le(t.semanticsIdentifier)})}if(e===ua){var r=o.parse(n,aa);return a(pe,{name:"QC Types",value:r.map((function(e){return le(e)})).join(", ")})}if(e===ra){var i=o.parse(n,We);return a(pe,{name:"Retention Period",value:"".concat(i.value," years")})}if(e===ia){var u=o.parse(n,Ze);return[a(pe,{name:"PDS Locations",value:""}),u.map((function(e){return a(me,null,a(pe,{name:"URL",value:e.url}),a(pe,{name:"Language",value:e.language}))}))]}return a(pe,{name:"Info",value:te.ToHex(n),monospace:true})}return a(De,{extension:n},Boolean(n.value.length)&&[a(pe,{name:"Statements",value:""}),n.value.map((function(e){return a(me,null,a(pe,{name:"Statement ID",value:le(e.statementId)}),t(e.statementId,e.statementInfo))}))])};
208
- /**
209
- * @license
210
- * Copyright (c) Peculiar Ventures, LLC.
211
- *
212
- * This source code is licensed under the MIT license found in the
213
- * LICENSE file in the root directory of this source tree.
214
- */var ca=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Comment",value:n.value.value}))};
215
- /**
216
- * @license
217
- * Copyright (c) Peculiar Ventures, LLC.
218
- *
219
- * This source code is licensed under the MIT license found in the
220
- * LICENSE file in the root directory of this source tree.
221
- */var la=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Type",value:n.value.toJSON().join(", ")}))};
222
- /**
223
- * @license
224
- * Copyright (c) Peculiar Ventures, LLC.
225
- *
226
- * This source code is licensed under the MIT license found in the
227
- * LICENSE file in the root directory of this source tree.
228
- */var fa=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Role",value:n.value.text}))};
229
- /**
230
- * @license
231
- * Copyright (c) Peculiar Ventures, LLC.
232
- *
233
- * This source code is licensed under the MIT license found in the
234
- * LICENSE file in the root directory of this source tree.
235
- */var sa=function(e){var n=e.extension,t=e.getLEILink;return a(De,{extension:n},a(pe,{name:"Identifier",value:n.value.text,href:t(n.value.text)}))};
236
- /**
237
- * @license
238
- * Copyright (c) Peculiar Ventures, LLC.
239
- *
240
- * This source code is licensed under the MIT license found in the
241
- * LICENSE file in the root directory of this source tree.
242
- */var va=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Version",value:n.value.version}),a(Ge,Object.assign({generalName:n.value.location},e)),a(pe,{name:"Requires Auth",value:n.value.requiresAuth?t.getString("yes"):t.getString("no")}))};
243
- /**
244
- * @license
245
- * Copyright (c) Peculiar Ventures, LLC.
246
- *
247
- * This source code is licensed under the MIT license found in the
248
- * LICENSE file in the root directory of this source tree.
249
- */var da=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Version",value:n.value.version}))};
250
- /**
251
- * @license
252
- * Copyright (c) Peculiar Ventures, LLC.
253
- *
254
- * This source code is licensed under the MIT license found in the
255
- * LICENSE file in the root directory of this source tree.
256
- */var ba=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Reason",value:n.value.toJSON()}))};
257
- /**
258
- * @license
259
- * Copyright (c) Peculiar Ventures, LLC.
260
- *
261
- * This source code is licensed under the MIT license found in the
262
- * LICENSE file in the root directory of this source tree.
263
- */function ma(e){return te.ToString(e.values[0])}
264
- /**
265
- * @license
266
- * Copyright (c) Peculiar Ventures, LLC.
267
- *
268
- * This source code is licensed under the MIT license found in the
269
- * LICENSE file in the root directory of this source tree.
270
- */var ga=function(e){var n=e.extension;return a(De,{extension:n},Boolean(n.value.length)&&[a(pe,{name:"Attributes",value:""}),n.value.map((function(e){return a(me,null,a(pe,{name:"Type",value:le(e.type)}),a(pe,{name:"Value",value:ma(e)}))}))])};
271
- /**
272
- * @license
273
- * Copyright (c) Peculiar Ventures, LLC.
274
- *
275
- * This source code is licensed under the MIT license found in the
276
- * LICENSE file in the root directory of this source tree.
277
- */var pa=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Value",value:n.value,monospace:true}))};
278
- /**
279
- * @license
280
- * Copyright (c) Peculiar Ventures, LLC.
281
- *
282
- * This source code is licensed under the MIT license found in the
283
- * LICENSE file in the root directory of this source tree.
284
- */var ya=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Not Before",value:r(n.value.notBefore)}),a(pe,{name:"Not After",value:r(n.value.notAfter)}))};
285
- /**
286
- * @license
287
- * Copyright (c) Peculiar Ventures, LLC.
288
- *
289
- * This source code is licensed under the MIT license found in the
290
- * LICENSE file in the root directory of this source tree.
291
- */var xa=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:"Version",value:n.value.entrustVers}),a(pe,{name:"Info Flags",value:n.value.entrustInfoFlags.toJSON().join(", ")}))};
292
- /**
293
- * @license
294
- * Copyright (c) Peculiar Ventures, LLC.
295
- *
296
- * This source code is licensed under the MIT license found in the
297
- * LICENSE file in the root directory of this source tree.
298
- */var ha=function(e){var n=e.extension;return a(De,{extension:n},Boolean(n.value.length)&&[a(pe,{name:"Biometrics",value:""}),n.value.map((function(e){return a(me,null,a(pe,{name:"OID",value:le(e.typeOfBiometricData.biometricDataOid)}),a(pe,{name:"Type",value:e.typeOfBiometricData.predefinedBiometricType}),a(pe,{name:"Algorithm",value:le(e.hashAlgorithm.algorithm)}),a(pe,{name:"Hash",value:te.ToHex(e.biometricDataHash.buffer),monospace:true}),a(pe,{name:"Source Uri",value:e.sourceDataUri}))}))])};
299
- /**
300
- * @license
301
- * Copyright (c) Peculiar Ventures, LLC.
302
- *
303
- * This source code is licensed under the MIT license found in the
304
- * LICENSE file in the root directory of this source tree.
305
- */var Sa=function(e){var n=e.extension;var t=function(e){if(!e){return null}return e.map((function(e){var n=e.imageDetails;return[a(pe,{name:"Image Type",value:n.mediaType}),a(pe,{name:"Image Hash",value:te.ToHex(n.logotypeHash[0].hashValue),monospace:true}),a(pe,{name:"Image URL",value:n.logotypeURI[0],monospace:true,collapse:true}),a(pe,{name:"Image Hash Algorithm",value:le(n.logotypeHash[0].hashAlg.algorithm)})]}))};var r=function(e){if(!e){return null}return e.map((function(e){var n=e.audioDetails;return[a(pe,{name:"Audio Type",value:n.mediaType}),a(pe,{name:"Audio Hash",value:te.ToHex(n.logotypeHash[0].hashValue),monospace:true}),a(pe,{name:"Audio URL",value:n.logotypeURI[0],monospace:true,collapse:true}),a(pe,{name:"Audio Hash Algorithm",value:le(n.logotypeHash[0].hashAlg.algorithm)})]}))};var i=function(e,n){if(!n||!n.direct){return null}var i=n.direct,u=i.image,o=i.audio;return[a(pe,{name:"Type",value:e}),t(u),r(o),a("tr",null,a("td",null),a("td",null))]};return a(De,{extension:n},i("Subject",n.value.subjectLogo),i("Issuer",n.value.issuerLogo))};
306
- /**
307
- * @license
308
- * Copyright (c) Peculiar Ventures, LLC.
309
- *
310
- * This source code is licensed under the MIT license found in the
311
- * LICENSE file in the root directory of this source tree.
312
- */var Ca=function(e){var n=e.extension;return a(De,{extension:n},n.value.map((function(e,n){return[a(pe,{name:"Entry #".concat(n+1),value:""}),a(pe,{name:"SPC",value:e.spc}),a(pe,{name:"Range",value:e.range?"start=".concat(e.range.start," count==").concat(e.range.count):null}),a(pe,{name:"One",value:e.one})]})))};
313
- /**
314
- * @license
315
- * Copyright (c) Peculiar Ventures, LLC.
316
- *
317
- * This source code is licensed under the MIT license found in the
318
- * LICENSE file in the root directory of this source tree.
319
- */var Ia=function(e){var n=e.extension;return a(De,{extension:n},n.value.requireExplicitPolicy&&a(pe,{name:"Require Explicit Policy",value:x.toASN(n.value.requireExplicitPolicy).valueBlock.toString()}),n.value.inhibitPolicyMapping&&a(pe,{name:"Inhibit Policy Mapping",value:x.toASN(n.value.inhibitPolicyMapping).valueBlock.toString()}))};
320
- /**
321
- * @license
322
- * Copyright (c) Peculiar Ventures, LLC.
323
- *
324
- * This source code is licensed under the MIT license found in the
325
- * LICENSE file in the root directory of this source tree.
326
- */var Aa=function(e){var n=e.extension;return a(De,{extension:n},n.value.map((function(e,n){return[a(pe,{name:"Policy #".concat(n+1),value:""}),a(pe,{name:"Issuer Domain",value:le(e.issuerDomainPolicy)}),a(pe,{name:"Subject Domain",value:le(e.subjectDomainPolicy)})]})))};
327
- /**
328
- * @license
329
- * Copyright (c) Peculiar Ventures, LLC.
330
- *
331
- * This source code is licensed under the MIT license found in the
332
- * LICENSE file in the root directory of this source tree.
333
- */var Na=function(e){var n=e.extension;return a(De,{extension:n},a(pe,{name:t.getString("value"),value:n.value.value}))};
334
- /**
335
- * @license
336
- * Copyright (c) Peculiar Ventures, LLC.
337
- *
338
- * This source code is licensed under the MIT license found in the
339
- * LICENSE file in the root directory of this source tree.
340
- */var Da=function(e){var n;var r=e.extension;return a(De,{extension:r},(n=r.value.distributionPoint)===null||n===void 0?void 0:n.fullName.map((function(n){return a(Ge,Object.assign({generalName:n},e))})),r.value.onlySomeReasons&&a(pe,{name:t.getString("onlyReasons"),value:r.value.onlySomeReasons.toJSON().join(", ")}),r.value.indirectCRL&&a(pe,{name:t.getString("indirectCRL"),value:t.getString("yes")}),r.value.onlyContainsUserCerts&&a(pe,{name:t.getString("onlyUserCertificates"),value:t.getString("yes")}),r.value.onlyContainsAttributeCerts&&a(pe,{name:t.getString("onlyAttributeCertificates"),value:t.getString("yes")}),r.value.onlyContainsCACerts&&a(pe,{name:t.getString("onlyCACertificates"),value:t.getString("yes")}))};
341
- /**
342
- * @license
343
- * Copyright (c) Peculiar Ventures, LLC.
344
- *
345
- * This source code is licensed under the MIT license found in the
346
- * LICENSE file in the root directory of this source tree.
347
- */var Ta=function(e){var n=e.extension;var r=function(e){return Object.keys(e).map((function(n){var i=e[n];var u="";switch(true){case typeof i==="string"||typeof i==="number":u=i;break;case i instanceof C:u=i.join(", ");break;case typeof i==="boolean":u=i?t.getString("yes"):t.getString("no");break;case Object.is(i,null):u="NULL";break;case i instanceof S:return[a(pe,{name:fe(n),value:""}),a(me,null,r(i))];case re.isBufferSource(i):if(n==="attestationApplicationId"){try{var c=o.parse(i,h);if(c.packageInfos.length||c.signatureDigests.length){return[a(pe,{name:fe(n),value:""}),Boolean(c.packageInfos)&&a(me,null,a(pe,{name:fe("packageInfos"),value:""}),c.packageInfos.map((function(e){return a(me,null,r(e))})))]}}catch(e){}}try{u=te.ToString(i)}catch(e){u=te.ToHex(i)}break}return a(pe,{name:fe(n),value:u})}))};var i=function(e,n){if(n.length===0){return null}return[a(pe,{name:e,value:""}),a(me,null,n.map(r))]};return a(De,{extension:n},a(pe,{name:fe("attestationVersion"),value:n.value.attestationVersion}),a(pe,{name:fe("attestationSecurityLevel"),value:n.value.attestationSecurityLevel}),a(pe,{name:fe("keymasterVersion"),value:n.value.keymasterVersion}),a(pe,{name:fe("keymasterSecurityLevel"),value:n.value.keymasterSecurityLevel}),a(pe,{name:fe("attestationChallenge"),value:te.ToString(n.value.attestationChallenge)}),a(pe,{name:fe("uniqueId"),value:te.ToString(n.value.uniqueId)||undefined}),i(fe("softwareEnforced"),n.value.softwareEnforced),i(fe("teeEnforced"),n.value.teeEnforced))};
348
- /**
349
- * @license
350
- * Copyright (c) Peculiar Ventures, LLC.
351
- *
352
- * This source code is licensed under the MIT license found in the
353
- * LICENSE file in the root directory of this source tree.
354
- */var ja=e("E",(function(e){var n=e.extensions,t=e.title;if(!n||!n.length){return null}return[a(ge,{value:t||"Extensions"}),n.map((function(n){try{if(n.value instanceof I){return a(Te,{extension:n})}if(n.value instanceof A){return a(je,{extension:n})}if(n.value instanceof N){return a(Oe,{extension:n})}if(n.value instanceof D){return a(Pe,Object.assign({extension:n},e))}if(n.value instanceof T){return a(ke,Object.assign({extension:n},e))}if(n.value instanceof j){return a(Ve,Object.assign({extension:n},e))}if(n.value instanceof O||n.value instanceof P){return a(Be,Object.assign({extension:n},e))}if(n.value instanceof k){return a(Re,Object.assign({extension:n},e))}if(n.value instanceof L){return a(He,{extension:n})}if(n.value instanceof G){return a(_e,{extension:n})}if(n.value instanceof V){return a(Ue,Object.assign({extension:n},e))}if(n.value instanceof B){return a(qe,{extension:n})}if(n.value instanceof R){return a(we,{extension:n})}if(n.value instanceof H){return a(Me,{extension:n})}if(n.value instanceof E){return a(oa,{extension:n})}if(n.value instanceof _){return a(ca,{extension:n})}if(n.value instanceof U){return a(la,{extension:n})}if(n.value instanceof q){return a(fa,{extension:n})}if(n.value instanceof w){return a(sa,Object.assign({extension:n},e))}if(n.value instanceof M){return a(va,Object.assign({extension:n},e))}if(n.value instanceof K){return a(da,{extension:n})}if(n.value instanceof Q){return a(ba,{extension:n})}if(n.value instanceof J){return a(ga,{extension:n})}if(n.value instanceof X){return a(ya,{extension:n})}if(n.value instanceof Y){return a(xa,{extension:n})}if(n.value instanceof F){return a(ha,{extension:n})}if(n.value instanceof z){return a(Sa,{extension:n})}if(n.value instanceof W){return a(Ca,{extension:n})}if(n.value instanceof $){return a(Ia,{extension:n})}if(n.value instanceof Z){return a(Aa,{extension:n})}if(n.value instanceof ee){return a(Na,{extension:n})}if(n.value instanceof ae){return a(Da,Object.assign({extension:n},e))}if(n.value instanceof ne){return a(Ta,Object.assign({extension:n},e))}if(typeof n.value==="string"){return a(pa,{extension:n})}return a(De,{extension:n})}catch(e){console.error("Error render extension:",n.asn.extnID);return null}}))]}));
355
- /**
356
- * @license
357
- * Copyright (c) Peculiar Ventures, LLC.
358
- *
359
- * This source code is licensed under the MIT license found in the
360
- * LICENSE file in the root directory of this source tree.
361
- */var Oa=e("M",(function(e){var n=e.certificate;return[a(ge,{value:t.getString("miscellaneous")}),a("tr",null,a("td",null,a(oe,{onClick:function(){return n.downloadAsPEM()},startIcon:a(ce,null)},t.getString("download.pem")))),a("tr",null,a("td",null,a(oe,{onClick:function(){return n.downloadAsDER()},startIcon:a(ce,null)},t.getString("download.der"))))]}))}}}));
362
- //# sourceMappingURL=p-31b60224.system.js.map