@react-pdf-kit/viewer 2.7.0 → 2.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnnotationLayer-D6BfL976.js → AnnotationLayer-C6UTOVmc.js} +1 -1
- package/dist/{Button-jStpvb3T.js → Button-DBu3SaMk.js} +3 -3
- package/dist/{Checkbox-Brta-YKG.js → Checkbox-CSIEUyO8.js} +4 -4
- package/dist/{Combination-DqNkTtir.js → Combination-11kyhTGt.js} +15 -15
- package/dist/Container-BuamPhw4.js +18 -0
- package/dist/{DocumentDialog-DHAWcYIz.js → DocumentDialog-cRr9sSSH.js} +10 -10
- package/dist/{DropDown-DikL-krI.js → DropDown-CM6xEwZC.js} +2 -2
- package/dist/{Input-DGJSVFE8.js → Input-Dpo1Xfxe.js} +5 -5
- package/dist/{LoaderIcon-D9YjinGf.js → LoaderIcon-B3ddfd0D.js} +1 -1
- package/dist/{LoadingIndicator-DiWoWs4Y.js → LoadingIndicator-Bzzf28Xv.js} +1 -1
- package/dist/{MenuItem-BJDWfzAw.js → MenuItem-9kCH_GQ0.js} +2 -2
- package/dist/{MenuSeparator-D1H5l8Ej.js → MenuSeparator-CaFxd8b5.js} +1 -1
- package/dist/{PaginationContext--n91mIJ4.js → PaginationContext-C5CJiEW-.js} +76 -66
- package/dist/{PasswordModal-CA6x2l7v.js → PasswordModal-BeLyLUsu.js} +12 -11
- package/dist/{RPDropFileZone-D1C3ouep.js → RPDropFileZone-Bq1bzWmO.js} +1 -1
- package/dist/{RPPage-BuSGUFzw.js → RPPage-BsDixmqF.js} +1 -1
- package/dist/{RPPages-CQsmCbyj.js → RPPages-Cf-FDd0a.js} +12 -12
- package/dist/{RPTooltip-ZZoFqP7C.js → RPTooltip-CXBVXusS.js} +4 -4
- package/dist/{SkipLink-Bvbn3miT.js → SkipLink-CdcjClGB.js} +1 -1
- package/dist/{Thumbnail-Dwo2-4Ki.js → Thumbnail-BO3QHzxR.js} +3 -3
- package/dist/{Thumbnails-ComClyJJ.js → Thumbnails-DyeBsQJT.js} +2 -2
- package/dist/assets/Button.css +1 -1
- package/dist/assets/DocumentDialog.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PasswordModal.css +1 -1
- package/dist/assets/SkipLink.css +1 -1
- package/dist/assets/style.js +1 -1
- package/dist/{clsx-B7LyVm5O.js → clsx-DSGuh5YW.js} +1 -1
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/icons/LoaderIcon.js +1 -1
- package/dist/components/layout/Container.js +1 -1
- package/dist/components/layout/LayoutContainer.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +3 -3
- package/dist/components/layout/RPLayout.js +3 -3
- package/dist/components/layout/SkipLink.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +3 -3
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
- package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/MenuItem.js +1 -1
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +5 -5
- package/dist/components/layout/toolbar/OtherTool.js +6 -6
- package/dist/components/layout/toolbar/Paginate.js +4 -4
- package/dist/components/layout/toolbar/PrintTool.js +3 -3
- package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
- package/dist/components/layout/toolbar/RPMoreOptions.js +6 -6
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +4 -4
- package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
- package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
- package/dist/components/layout/toolbar/SearchTool.js +7 -6
- package/dist/components/layout/toolbar/SelectionModeTool.js +4 -4
- package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
- package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
- package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
- package/dist/components/layout/toolbar/ViewModeTool.js +4 -4
- package/dist/components/layout/toolbar/ZoomTool.js +7 -7
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +3 -3
- package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/InputPageTool.js +4 -3
- package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/NextPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +6 -6
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +5 -5
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +4 -4
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/DualPage.js +2 -2
- package/dist/components/page/DualPageWithCover.js +2 -2
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +2 -2
- package/dist/components/ui/Button.js +1 -1
- package/dist/components/ui/Checkbox.js +1 -1
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/Input.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/PasswordModal.js +1 -1
- package/dist/components/ui/RPTooltip.js +1 -1
- package/dist/contexts/ElementThumbnailContext.js +1 -1
- package/dist/contexts/LoaderContext.js +1 -1
- package/dist/contexts/LocalizationContext.js +12 -6
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +1 -1
- package/dist/{dist-7FA4Do6I.js → dist-B2hwhF6G.js} +7 -7
- package/dist/{dist-BRVqFn7R.js → dist-BfuBBQ14.js} +6 -6
- package/dist/{dist-C3WNMuW2.js → dist-CNbFpoT1.js} +2 -2
- package/dist/{dist-bK-AHWLF.js → dist-CgoP608h.js} +7 -7
- package/dist/{dist-CKteKPPA.js → dist-VbpVNBs6.js} +7 -7
- package/dist/icons.js +1 -1
- package/dist/{lib-BiapEtK1.js → lib-CSInlR9T.js} +142 -237
- package/dist/{main-CHO5p1qM.js → main-0RC2E65p.js} +3 -3
- package/dist/main.js +5 -5
- package/dist/style-BPQRJJJ7.js +5 -0
- package/dist/types/utils/types.d.ts +1 -0
- package/dist/utils/hooks/useLicense.js +2 -2
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/package.json +1 -1
- package/dist/Container-DTWaZzc7.js +0 -16
- package/dist/style-DKH7g1Kh.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
//#region node_modules
|
|
2
|
+
//#region node_modules/node-forge/lib/forge.js
|
|
3
3
|
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
4
|
t.exports = { options: { usePureJavaScript: !1 } };
|
|
5
5
|
})), n = /* @__PURE__ */ e(((e, t) => {
|
|
@@ -1216,7 +1216,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
1216
1216
|
function o(e, t) {
|
|
1217
1217
|
i[e] = t;
|
|
1218
1218
|
}
|
|
1219
|
-
a("1.2.840.113549.1.1.1", "rsaEncryption"), a("1.2.840.113549.1.1.4", "md5WithRSAEncryption"), a("1.2.840.113549.1.1.5", "sha1WithRSAEncryption"), a("1.2.840.113549.1.1.7", "RSAES-OAEP"), a("1.2.840.113549.1.1.8", "mgf1"), a("1.2.840.113549.1.1.9", "pSpecified"), a("1.2.840.113549.1.1.10", "RSASSA-PSS"), a("1.2.840.113549.1.1.11", "sha256WithRSAEncryption"), a("1.2.840.113549.1.1.12", "sha384WithRSAEncryption"), a("1.2.840.113549.1.1.13", "sha512WithRSAEncryption"), a("1.3.101.112", "EdDSA25519"), a("1.2.840.10040.4.3", "dsa-with-sha1"), a("1.3.14.3.2.7", "desCBC"), a("1.3.14.3.2.26", "sha1"), a("1.3.14.3.2.29", "sha1WithRSASignature"), a("2.16.840.1.101.3.4.2.1", "sha256"), a("2.16.840.1.101.3.4.2.2", "sha384"), a("2.16.840.1.101.3.4.2.3", "sha512"), a("2.16.840.1.101.3.4.2.4", "sha224"), a("2.16.840.1.101.3.4.2.5", "sha512-224"), a("2.16.840.1.101.3.4.2.6", "sha512-256"), a("1.2.840.113549.2.2", "md2"), a("1.2.840.113549.2.5", "md5"), a("1.2.840.113549.1.7.1", "data"), a("1.2.840.113549.1.7.2", "signedData"), a("1.2.840.113549.1.7.3", "envelopedData"), a("1.2.840.113549.1.7.4", "signedAndEnvelopedData"), a("1.2.840.113549.1.7.5", "digestedData"), a("1.2.840.113549.1.7.6", "encryptedData"), a("1.2.840.113549.1.9.1", "emailAddress"), a("1.2.840.113549.1.9.2", "unstructuredName"), a("1.2.840.113549.1.9.3", "contentType"), a("1.2.840.113549.1.9.4", "messageDigest"), a("1.2.840.113549.1.9.5", "signingTime"), a("1.2.840.113549.1.9.6", "counterSignature"), a("1.2.840.113549.1.9.7", "challengePassword"), a("1.2.840.113549.1.9.8", "unstructuredAddress"), a("1.2.840.113549.1.9.14", "extensionRequest"), a("1.2.840.113549.1.9.20", "friendlyName"), a("1.2.840.113549.1.9.21", "localKeyId"), a("1.2.840.113549.1.9.22.1", "x509Certificate"), a("1.2.840.113549.1.12.10.1.1", "keyBag"), a("1.2.840.113549.1.12.10.1.2", "pkcs8ShroudedKeyBag"), a("1.2.840.113549.1.12.10.1.3", "certBag"), a("1.2.840.113549.1.12.10.1.4", "crlBag"), a("1.2.840.113549.1.12.10.1.5", "secretBag"), a("1.2.840.113549.1.12.10.1.6", "safeContentsBag"), a("1.2.840.113549.1.5.13", "pkcs5PBES2"), a("1.2.840.113549.1.5.12", "pkcs5PBKDF2"), a("1.2.840.113549.1.12.1.1", "pbeWithSHAAnd128BitRC4"), a("1.2.840.113549.1.12.1.2", "pbeWithSHAAnd40BitRC4"), a("1.2.840.113549.1.12.1.3", "pbeWithSHAAnd3-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.4", "pbeWithSHAAnd2-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.5", "pbeWithSHAAnd128BitRC2-CBC"), a("1.2.840.113549.1.12.1.6", "pbewithSHAAnd40BitRC2-CBC"), a("1.2.840.113549.2.7", "hmacWithSHA1"), a("1.2.840.113549.2.8", "hmacWithSHA224"), a("1.2.840.113549.2.9", "hmacWithSHA256"), a("1.2.840.113549.2.10", "hmacWithSHA384"), a("1.2.840.113549.2.11", "hmacWithSHA512"), a("1.2.840.113549.3.7", "des-EDE3-CBC"), a("2.16.840.1.101.3.4.1.2", "aes128-CBC"), a("2.16.840.1.101.3.4.1.22", "aes192-CBC"), a("2.16.840.1.101.3.4.1.42", "aes256-CBC"), a("2.5.4.3", "commonName"), a("2.5.4.4", "surname"), a("2.5.4.5", "serialNumber"), a("2.5.4.6", "countryName"), a("2.5.4.7", "localityName"), a("2.5.4.8", "stateOrProvinceName"), a("2.5.4.9", "streetAddress"), a("2.5.4.10", "organizationName"), a("2.5.4.11", "organizationalUnitName"), a("2.5.4.12", "title"), a("2.5.4.13", "description"), a("2.5.4.15", "businessCategory"), a("2.5.4.17", "postalCode"), a("2.5.4.42", "givenName"), a("
|
|
1219
|
+
a("1.2.840.113549.1.1.1", "rsaEncryption"), a("1.2.840.113549.1.1.4", "md5WithRSAEncryption"), a("1.2.840.113549.1.1.5", "sha1WithRSAEncryption"), a("1.2.840.113549.1.1.7", "RSAES-OAEP"), a("1.2.840.113549.1.1.8", "mgf1"), a("1.2.840.113549.1.1.9", "pSpecified"), a("1.2.840.113549.1.1.10", "RSASSA-PSS"), a("1.2.840.113549.1.1.11", "sha256WithRSAEncryption"), a("1.2.840.113549.1.1.12", "sha384WithRSAEncryption"), a("1.2.840.113549.1.1.13", "sha512WithRSAEncryption"), a("1.3.101.112", "EdDSA25519"), a("1.2.840.10040.4.3", "dsa-with-sha1"), a("1.3.14.3.2.7", "desCBC"), a("1.3.14.3.2.26", "sha1"), a("1.3.14.3.2.29", "sha1WithRSASignature"), a("2.16.840.1.101.3.4.2.1", "sha256"), a("2.16.840.1.101.3.4.2.2", "sha384"), a("2.16.840.1.101.3.4.2.3", "sha512"), a("2.16.840.1.101.3.4.2.4", "sha224"), a("2.16.840.1.101.3.4.2.5", "sha512-224"), a("2.16.840.1.101.3.4.2.6", "sha512-256"), a("1.2.840.113549.2.2", "md2"), a("1.2.840.113549.2.5", "md5"), a("1.2.840.113549.1.7.1", "data"), a("1.2.840.113549.1.7.2", "signedData"), a("1.2.840.113549.1.7.3", "envelopedData"), a("1.2.840.113549.1.7.4", "signedAndEnvelopedData"), a("1.2.840.113549.1.7.5", "digestedData"), a("1.2.840.113549.1.7.6", "encryptedData"), a("1.2.840.113549.1.9.1", "emailAddress"), a("1.2.840.113549.1.9.2", "unstructuredName"), a("1.2.840.113549.1.9.3", "contentType"), a("1.2.840.113549.1.9.4", "messageDigest"), a("1.2.840.113549.1.9.5", "signingTime"), a("1.2.840.113549.1.9.6", "counterSignature"), a("1.2.840.113549.1.9.7", "challengePassword"), a("1.2.840.113549.1.9.8", "unstructuredAddress"), a("1.2.840.113549.1.9.14", "extensionRequest"), a("1.2.840.113549.1.9.20", "friendlyName"), a("1.2.840.113549.1.9.21", "localKeyId"), a("1.2.840.113549.1.9.22.1", "x509Certificate"), a("1.2.840.113549.1.12.10.1.1", "keyBag"), a("1.2.840.113549.1.12.10.1.2", "pkcs8ShroudedKeyBag"), a("1.2.840.113549.1.12.10.1.3", "certBag"), a("1.2.840.113549.1.12.10.1.4", "crlBag"), a("1.2.840.113549.1.12.10.1.5", "secretBag"), a("1.2.840.113549.1.12.10.1.6", "safeContentsBag"), a("1.2.840.113549.1.5.13", "pkcs5PBES2"), a("1.2.840.113549.1.5.12", "pkcs5PBKDF2"), a("1.2.840.113549.1.12.1.1", "pbeWithSHAAnd128BitRC4"), a("1.2.840.113549.1.12.1.2", "pbeWithSHAAnd40BitRC4"), a("1.2.840.113549.1.12.1.3", "pbeWithSHAAnd3-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.4", "pbeWithSHAAnd2-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.5", "pbeWithSHAAnd128BitRC2-CBC"), a("1.2.840.113549.1.12.1.6", "pbewithSHAAnd40BitRC2-CBC"), a("1.2.840.113549.2.7", "hmacWithSHA1"), a("1.2.840.113549.2.8", "hmacWithSHA224"), a("1.2.840.113549.2.9", "hmacWithSHA256"), a("1.2.840.113549.2.10", "hmacWithSHA384"), a("1.2.840.113549.2.11", "hmacWithSHA512"), a("1.2.840.113549.3.7", "des-EDE3-CBC"), a("2.16.840.1.101.3.4.1.2", "aes128-CBC"), a("2.16.840.1.101.3.4.1.22", "aes192-CBC"), a("2.16.840.1.101.3.4.1.42", "aes256-CBC"), a("2.5.4.3", "commonName"), a("2.5.4.4", "surname"), a("2.5.4.5", "serialNumber"), a("2.5.4.6", "countryName"), a("2.5.4.7", "localityName"), a("2.5.4.8", "stateOrProvinceName"), a("2.5.4.9", "streetAddress"), a("2.5.4.10", "organizationName"), a("2.5.4.11", "organizationalUnitName"), a("2.5.4.12", "title"), a("2.5.4.13", "description"), a("2.5.4.15", "businessCategory"), a("2.5.4.17", "postalCode"), a("2.5.4.42", "givenName"), a("1.3.6.1.4.1.311.60.2.1.2", "jurisdictionOfIncorporationStateOrProvinceName"), a("1.3.6.1.4.1.311.60.2.1.3", "jurisdictionOfIncorporationCountryName"), a("2.16.840.1.113730.1.1", "nsCertType"), a("2.16.840.1.113730.1.13", "nsComment"), o("2.5.29.1", "authorityKeyIdentifier"), o("2.5.29.2", "keyAttributes"), o("2.5.29.3", "certificatePolicies"), o("2.5.29.4", "keyUsageRestriction"), o("2.5.29.5", "policyMapping"), o("2.5.29.6", "subtreesConstraint"), o("2.5.29.7", "subjectAltName"), o("2.5.29.8", "issuerAltName"), o("2.5.29.9", "subjectDirectoryAttributes"), o("2.5.29.10", "basicConstraints"), o("2.5.29.11", "nameConstraints"), o("2.5.29.12", "policyConstraints"), o("2.5.29.13", "basicConstraints"), a("2.5.29.14", "subjectKeyIdentifier"), a("2.5.29.15", "keyUsage"), o("2.5.29.16", "privateKeyUsagePeriod"), a("2.5.29.17", "subjectAltName"), a("2.5.29.18", "issuerAltName"), a("2.5.29.19", "basicConstraints"), o("2.5.29.20", "cRLNumber"), o("2.5.29.21", "cRLReason"), o("2.5.29.22", "expirationDate"), o("2.5.29.23", "instructionCode"), o("2.5.29.24", "invalidityDate"), o("2.5.29.25", "cRLDistributionPoints"), o("2.5.29.26", "issuingDistributionPoint"), o("2.5.29.27", "deltaCRLIndicator"), o("2.5.29.28", "issuingDistributionPoint"), o("2.5.29.29", "certificateIssuer"), o("2.5.29.30", "nameConstraints"), a("2.5.29.31", "cRLDistributionPoints"), a("2.5.29.32", "certificatePolicies"), o("2.5.29.33", "policyMappings"), o("2.5.29.34", "policyConstraints"), a("2.5.29.35", "authorityKeyIdentifier"), o("2.5.29.36", "policyConstraints"), a("2.5.29.37", "extKeyUsage"), o("2.5.29.46", "freshestCRL"), o("2.5.29.54", "inhibitAnyPolicy"), a("1.3.6.1.4.1.11129.2.4.2", "timestampList"), a("1.3.6.1.5.5.7.1.1", "authorityInfoAccess"), a("1.3.6.1.5.5.7.3.1", "serverAuth"), a("1.3.6.1.5.5.7.3.2", "clientAuth"), a("1.3.6.1.5.5.7.3.3", "codeSigning"), a("1.3.6.1.5.5.7.3.4", "emailProtection"), a("1.3.6.1.5.5.7.3.8", "timeStamping");
|
|
1220
1220
|
})), c = /* @__PURE__ */ e(((e, n) => {
|
|
1221
1221
|
var i = t();
|
|
1222
1222
|
r(), s();
|
|
@@ -3763,7 +3763,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
3763
3763
|
function Z() {
|
|
3764
3764
|
return (this.t > 0 ? this.data[0] & 1 : this.s) == 0;
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function Q(e, t) {
|
|
3767
3767
|
if (e > 4294967295 || e < 1) return o.ONE;
|
|
3768
3768
|
var n = s(), r = s(), i = t.convert(this), a = D(e) - 1;
|
|
3769
3769
|
for (i.copyTo(n); --a >= 0;) if (t.sqrTo(n, r), (e & 1 << a) > 0) t.mulTo(r, i, n);
|
|
@@ -3773,11 +3773,11 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
3773
3773
|
}
|
|
3774
3774
|
return t.revert(n);
|
|
3775
3775
|
}
|
|
3776
|
-
function
|
|
3776
|
+
function ee(e, t) {
|
|
3777
3777
|
var n = e < 256 || t.isEven() ? new R(t) : new G(t);
|
|
3778
3778
|
return this.exp(e, n);
|
|
3779
3779
|
}
|
|
3780
|
-
o.prototype.copyTo = v, o.prototype.fromInt = y, o.prototype.fromString = x, o.prototype.clamp = S, o.prototype.dlShiftTo = k, o.prototype.drShiftTo = A, o.prototype.lShiftTo = j, o.prototype.rShiftTo = M, o.prototype.subTo = N, o.prototype.multiplyTo = P, o.prototype.squareTo = F, o.prototype.divRemTo = I, o.prototype.invDigit = W, o.prototype.isEven = Z, o.prototype.exp =
|
|
3780
|
+
o.prototype.copyTo = v, o.prototype.fromInt = y, o.prototype.fromString = x, o.prototype.clamp = S, o.prototype.dlShiftTo = k, o.prototype.drShiftTo = A, o.prototype.lShiftTo = j, o.prototype.rShiftTo = M, o.prototype.subTo = N, o.prototype.multiplyTo = P, o.prototype.squareTo = F, o.prototype.divRemTo = I, o.prototype.invDigit = W, o.prototype.isEven = Z, o.prototype.exp = Q, o.prototype.toString = C, o.prototype.negate = w, o.prototype.abs = T, o.prototype.compareTo = E, o.prototype.bitLength = O, o.prototype.mod = L, o.prototype.modPowInt = ee, o.ZERO = b(0), o.ONE = b(1);
|
|
3781
3781
|
function te() {
|
|
3782
3782
|
var e = s();
|
|
3783
3783
|
return this.copyTo(e), e;
|
|
@@ -3953,46 +3953,42 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
3953
3953
|
var t = s();
|
|
3954
3954
|
return this.multiplyTo(e, t), t;
|
|
3955
3955
|
}
|
|
3956
|
-
function ze() {
|
|
3957
|
-
var e = s();
|
|
3958
|
-
return this.squareTo(e), e;
|
|
3959
|
-
}
|
|
3960
|
-
function Be(e) {
|
|
3956
|
+
function ze(e) {
|
|
3961
3957
|
var t = s();
|
|
3962
3958
|
return this.divRemTo(e, t, null), t;
|
|
3963
3959
|
}
|
|
3964
|
-
function
|
|
3960
|
+
function Be(e) {
|
|
3965
3961
|
var t = s();
|
|
3966
3962
|
return this.divRemTo(e, null, t), t;
|
|
3967
3963
|
}
|
|
3968
|
-
function
|
|
3964
|
+
function Ve(e) {
|
|
3969
3965
|
var t = s(), n = s();
|
|
3970
3966
|
return this.divRemTo(e, t, n), [t, n];
|
|
3971
3967
|
}
|
|
3972
|
-
function
|
|
3968
|
+
function He(e) {
|
|
3973
3969
|
this.data[this.t] = this.am(0, e - 1, this, 0, 0, this.t), ++this.t, this.clamp();
|
|
3974
3970
|
}
|
|
3975
|
-
function
|
|
3971
|
+
function Ue(e, t) {
|
|
3976
3972
|
if (e != 0) {
|
|
3977
3973
|
for (; this.t <= t;) this.data[this.t++] = 0;
|
|
3978
3974
|
for (this.data[t] += e; this.data[t] >= this.DV;) this.data[t] -= this.DV, ++t >= this.t && (this.data[this.t++] = 0), ++this.data[t];
|
|
3979
3975
|
}
|
|
3980
3976
|
}
|
|
3981
|
-
function
|
|
3982
|
-
function
|
|
3977
|
+
function We() {}
|
|
3978
|
+
function Ge(e) {
|
|
3983
3979
|
return e;
|
|
3984
3980
|
}
|
|
3985
|
-
function
|
|
3981
|
+
function Ke(e, t, n) {
|
|
3986
3982
|
e.multiplyTo(t, n);
|
|
3987
3983
|
}
|
|
3988
|
-
function
|
|
3984
|
+
function qe(e, t) {
|
|
3989
3985
|
e.squareTo(t);
|
|
3990
3986
|
}
|
|
3991
|
-
|
|
3992
|
-
function
|
|
3993
|
-
return this.exp(e, new
|
|
3987
|
+
We.prototype.convert = Ge, We.prototype.revert = Ge, We.prototype.mulTo = Ke, We.prototype.sqrTo = qe;
|
|
3988
|
+
function Je(e) {
|
|
3989
|
+
return this.exp(e, new We());
|
|
3994
3990
|
}
|
|
3995
|
-
function
|
|
3991
|
+
function Ye(e, t, n) {
|
|
3996
3992
|
var r = Math.min(this.t + e.t, t);
|
|
3997
3993
|
for (n.s = 0, n.t = r; r > 0;) n.data[--r] = 0;
|
|
3998
3994
|
var i;
|
|
@@ -4000,40 +3996,40 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4000
3996
|
for (i = Math.min(e.t, t); r < i; ++r) this.am(0, e.data[r], n, r, 0, t - r);
|
|
4001
3997
|
n.clamp();
|
|
4002
3998
|
}
|
|
4003
|
-
function
|
|
3999
|
+
function Xe(e, t, n) {
|
|
4004
4000
|
--t;
|
|
4005
4001
|
var r = n.t = this.t + e.t - t;
|
|
4006
4002
|
for (n.s = 0; --r >= 0;) n.data[r] = 0;
|
|
4007
4003
|
for (r = Math.max(t - this.t, 0); r < e.t; ++r) n.data[this.t + r - t] = this.am(t - r, e.data[r], n, 0, 0, this.t + r - t);
|
|
4008
4004
|
n.clamp(), n.drShiftTo(1, n);
|
|
4009
4005
|
}
|
|
4010
|
-
function
|
|
4006
|
+
function Ze(e) {
|
|
4011
4007
|
this.r2 = s(), this.q3 = s(), o.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e), this.m = e;
|
|
4012
4008
|
}
|
|
4013
|
-
function
|
|
4009
|
+
function Qe(e) {
|
|
4014
4010
|
if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
|
|
4015
4011
|
if (e.compareTo(this.m) < 0) return e;
|
|
4016
4012
|
var t = s();
|
|
4017
4013
|
return e.copyTo(t), this.reduce(t), t;
|
|
4018
4014
|
}
|
|
4019
|
-
function
|
|
4015
|
+
function $e(e) {
|
|
4020
4016
|
return e;
|
|
4021
4017
|
}
|
|
4022
|
-
function
|
|
4018
|
+
function et(e) {
|
|
4023
4019
|
for (e.drShiftTo(this.m.t - 1, this.r2), e.t > this.m.t + 1 && (e.t = this.m.t + 1, e.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); e.compareTo(this.r2) < 0;) e.dAddOffset(1, this.m.t + 1);
|
|
4024
4020
|
for (e.subTo(this.r2, e); e.compareTo(this.m) >= 0;) e.subTo(this.m, e);
|
|
4025
4021
|
}
|
|
4026
|
-
function
|
|
4022
|
+
function tt(e, t) {
|
|
4027
4023
|
e.squareTo(t), this.reduce(t);
|
|
4028
4024
|
}
|
|
4029
|
-
function
|
|
4025
|
+
function nt(e, t, n) {
|
|
4030
4026
|
e.multiplyTo(t, n), this.reduce(n);
|
|
4031
4027
|
}
|
|
4032
|
-
|
|
4033
|
-
function
|
|
4028
|
+
Ze.prototype.convert = Qe, Ze.prototype.revert = $e, Ze.prototype.reduce = et, Ze.prototype.mulTo = nt, Ze.prototype.sqrTo = tt;
|
|
4029
|
+
function rt(e, t) {
|
|
4034
4030
|
var n = e.bitLength(), r, i = b(1), a;
|
|
4035
4031
|
if (n <= 0) return i;
|
|
4036
|
-
r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new R(t) : t.isEven() ? new
|
|
4032
|
+
r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new R(t) : t.isEven() ? new Ze(t) : new G(t);
|
|
4037
4033
|
var o = [], c = 3, l = r - 1, u = (1 << r) - 1;
|
|
4038
4034
|
if (o[1] = a.convert(this), r > 1) {
|
|
4039
4035
|
var d = s();
|
|
@@ -4051,7 +4047,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4051
4047
|
}
|
|
4052
4048
|
return a.revert(i);
|
|
4053
4049
|
}
|
|
4054
|
-
function
|
|
4050
|
+
function it(e) {
|
|
4055
4051
|
var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
|
|
4056
4052
|
if (t.compareTo(n) < 0) {
|
|
4057
4053
|
var r = t;
|
|
@@ -4062,15 +4058,14 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4062
4058
|
for (i < a && (a = i), a > 0 && (t.rShiftTo(a, t), n.rShiftTo(a, n)); t.signum() > 0;) (i = t.getLowestSetBit()) > 0 && t.rShiftTo(i, t), (i = n.getLowestSetBit()) > 0 && n.rShiftTo(i, n), t.compareTo(n) >= 0 ? (t.subTo(n, t), t.rShiftTo(1, t)) : (n.subTo(t, n), n.rShiftTo(1, n));
|
|
4063
4059
|
return a > 0 && n.lShiftTo(a, n), n;
|
|
4064
4060
|
}
|
|
4065
|
-
function
|
|
4061
|
+
function at(e) {
|
|
4066
4062
|
if (e <= 0) return 0;
|
|
4067
4063
|
var t = this.DV % e, n = this.s < 0 ? e - 1 : 0;
|
|
4068
4064
|
if (this.t > 0) if (t == 0) n = this.data[0] % e;
|
|
4069
4065
|
else for (var r = this.t - 1; r >= 0; --r) n = (t * n + this.data[r]) % e;
|
|
4070
4066
|
return n;
|
|
4071
4067
|
}
|
|
4072
|
-
function
|
|
4073
|
-
if (this.signum() == 0) return o.ZERO;
|
|
4068
|
+
function ot(e) {
|
|
4074
4069
|
var t = e.isEven();
|
|
4075
4070
|
if (this.isEven() && t || e.signum() == 0) return o.ZERO;
|
|
4076
4071
|
for (var n = e.clone(), r = this.clone(), i = b(1), a = b(0), s = b(0), c = b(1); n.signum() != 0;) {
|
|
@@ -4181,80 +4176,9 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4181
4176
|
491,
|
|
4182
4177
|
499,
|
|
4183
4178
|
503,
|
|
4184
|
-
509
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
541,
|
|
4188
|
-
547,
|
|
4189
|
-
557,
|
|
4190
|
-
563,
|
|
4191
|
-
569,
|
|
4192
|
-
571,
|
|
4193
|
-
577,
|
|
4194
|
-
587,
|
|
4195
|
-
593,
|
|
4196
|
-
599,
|
|
4197
|
-
601,
|
|
4198
|
-
607,
|
|
4199
|
-
613,
|
|
4200
|
-
617,
|
|
4201
|
-
619,
|
|
4202
|
-
631,
|
|
4203
|
-
641,
|
|
4204
|
-
643,
|
|
4205
|
-
647,
|
|
4206
|
-
653,
|
|
4207
|
-
659,
|
|
4208
|
-
661,
|
|
4209
|
-
673,
|
|
4210
|
-
677,
|
|
4211
|
-
683,
|
|
4212
|
-
691,
|
|
4213
|
-
701,
|
|
4214
|
-
709,
|
|
4215
|
-
719,
|
|
4216
|
-
727,
|
|
4217
|
-
733,
|
|
4218
|
-
739,
|
|
4219
|
-
743,
|
|
4220
|
-
751,
|
|
4221
|
-
757,
|
|
4222
|
-
761,
|
|
4223
|
-
769,
|
|
4224
|
-
773,
|
|
4225
|
-
787,
|
|
4226
|
-
797,
|
|
4227
|
-
809,
|
|
4228
|
-
811,
|
|
4229
|
-
821,
|
|
4230
|
-
823,
|
|
4231
|
-
827,
|
|
4232
|
-
829,
|
|
4233
|
-
839,
|
|
4234
|
-
853,
|
|
4235
|
-
857,
|
|
4236
|
-
859,
|
|
4237
|
-
863,
|
|
4238
|
-
877,
|
|
4239
|
-
881,
|
|
4240
|
-
883,
|
|
4241
|
-
887,
|
|
4242
|
-
907,
|
|
4243
|
-
911,
|
|
4244
|
-
919,
|
|
4245
|
-
929,
|
|
4246
|
-
937,
|
|
4247
|
-
941,
|
|
4248
|
-
947,
|
|
4249
|
-
953,
|
|
4250
|
-
967,
|
|
4251
|
-
971,
|
|
4252
|
-
977,
|
|
4253
|
-
983,
|
|
4254
|
-
991,
|
|
4255
|
-
997
|
|
4256
|
-
], ct = (1 << 26) / $[$.length - 1];
|
|
4257
|
-
function lt(e) {
|
|
4179
|
+
509
|
|
4180
|
+
], st = (1 << 26) / $[$.length - 1];
|
|
4181
|
+
function ct(e) {
|
|
4258
4182
|
var t, n = this.abs();
|
|
4259
4183
|
if (n.t == 1 && n.data[0] <= $[$.length - 1]) {
|
|
4260
4184
|
for (t = 0; t < $.length; ++t) if (n.data[0] == $[t]) return !0;
|
|
@@ -4262,15 +4186,15 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4262
4186
|
}
|
|
4263
4187
|
if (n.isEven()) return !1;
|
|
4264
4188
|
for (t = 1; t < $.length;) {
|
|
4265
|
-
for (var r = $[t], i = t + 1; i < $.length && r <
|
|
4189
|
+
for (var r = $[t], i = t + 1; i < $.length && r < st;) r *= $[i++];
|
|
4266
4190
|
for (r = n.modInt(r); t < i;) if (r % $[t++] == 0) return !1;
|
|
4267
4191
|
}
|
|
4268
4192
|
return n.millerRabin(e);
|
|
4269
4193
|
}
|
|
4270
|
-
function
|
|
4194
|
+
function lt(e) {
|
|
4271
4195
|
var t = this.subtract(o.ONE), n = t.getLowestSetBit();
|
|
4272
4196
|
if (n <= 0) return !1;
|
|
4273
|
-
for (var r = t.shiftRight(n), i =
|
|
4197
|
+
for (var r = t.shiftRight(n), i = ut(), a, s = 0; s < e; ++s) {
|
|
4274
4198
|
do
|
|
4275
4199
|
a = new o(this.bitLength(), i);
|
|
4276
4200
|
while (a.compareTo(o.ONE) <= 0 || a.compareTo(t) >= 0);
|
|
@@ -4282,12 +4206,12 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4282
4206
|
}
|
|
4283
4207
|
return !0;
|
|
4284
4208
|
}
|
|
4285
|
-
function
|
|
4209
|
+
function ut() {
|
|
4286
4210
|
return { nextBytes: function(e) {
|
|
4287
4211
|
for (var t = 0; t < e.length; ++t) e[t] = Math.floor(Math.random() * 256);
|
|
4288
4212
|
} };
|
|
4289
4213
|
}
|
|
4290
|
-
o.prototype.chunkSize = ae, o.prototype.toRadix = se, o.prototype.fromRadix = ce, o.prototype.fromNumber = le, o.prototype.bitwiseTo = me, o.prototype.changeBit = je, o.prototype.addTo = Fe, o.prototype.dMultiply =
|
|
4214
|
+
o.prototype.chunkSize = ae, o.prototype.toRadix = se, o.prototype.fromRadix = ce, o.prototype.fromNumber = le, o.prototype.bitwiseTo = me, o.prototype.changeBit = je, o.prototype.addTo = Fe, o.prototype.dMultiply = He, o.prototype.dAddOffset = Ue, o.prototype.multiplyLowerTo = Ye, o.prototype.multiplyUpperTo = Xe, o.prototype.modInt = at, o.prototype.millerRabin = lt, o.prototype.clone = te, o.prototype.intValue = ne, o.prototype.byteValue = re, o.prototype.shortValue = ie, o.prototype.signum = oe, o.prototype.toByteArray = ue, o.prototype.equals = de, o.prototype.min = fe, o.prototype.max = pe, o.prototype.and = ge, o.prototype.or = ve, o.prototype.xor = be, o.prototype.andNot = Se, o.prototype.not = Ce, o.prototype.shiftLeft = we, o.prototype.shiftRight = Te, o.prototype.getLowestSetBit = De, o.prototype.bitCount = ke, o.prototype.testBit = Ae, o.prototype.setBit = Me, o.prototype.clearBit = Ne, o.prototype.flipBit = Pe, o.prototype.add = Ie, o.prototype.subtract = Le, o.prototype.multiply = Re, o.prototype.divide = ze, o.prototype.remainder = Be, o.prototype.divideAndRemainder = Ve, o.prototype.modPow = rt, o.prototype.modInverse = ot, o.prototype.pow = Je, o.prototype.gcd = it, o.prototype.isProbablePrime = ct;
|
|
4291
4215
|
})), x = /* @__PURE__ */ e(((e, n) => {
|
|
4292
4216
|
var i = t();
|
|
4293
4217
|
l(), r();
|
|
@@ -4880,13 +4804,10 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4880
4804
|
var a = t.encode(e, n, !0);
|
|
4881
4805
|
return d.rsa.encrypt(a, n, !0);
|
|
4882
4806
|
}, n.verify = function(e, t, r, a) {
|
|
4883
|
-
typeof r == "string" ? r = r.toUpperCase() : r === void 0 && (r = "RSASSA-PKCS1-V1_5"), a === void 0 && (a = {
|
|
4884
|
-
|
|
4885
|
-
_skipPaddingChecks: !1
|
|
4886
|
-
}), "_parseAllDigestBytes" in a || (a._parseAllDigestBytes = !0), "_skipPaddingChecks" in a || (a._skipPaddingChecks = !1), r === "RSASSA-PKCS1-V1_5" ? r = { verify: function(e, t) {
|
|
4887
|
-
t = E(t, n, !0, void 0, a);
|
|
4807
|
+
typeof r == "string" ? r = r.toUpperCase() : r === void 0 && (r = "RSASSA-PKCS1-V1_5"), a === void 0 && (a = { _parseAllDigestBytes: !0 }), "_parseAllDigestBytes" in a || (a._parseAllDigestBytes = !0), r === "RSASSA-PKCS1-V1_5" ? r = { verify: function(e, t) {
|
|
4808
|
+
t = E(t, n, !0);
|
|
4888
4809
|
var r = l.fromDer(t, { parseAllBytes: a._parseAllDigestBytes }), o = {}, s = [];
|
|
4889
|
-
if (!l.validate(r, y, o, s)
|
|
4810
|
+
if (!l.validate(r, y, o, s)) {
|
|
4890
4811
|
var c = /* @__PURE__ */ Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");
|
|
4891
4812
|
throw c.errors = s, c;
|
|
4892
4813
|
}
|
|
@@ -4898,7 +4819,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4898
4819
|
if ((u === i.oids.md2 || u === i.oids.md5) && !("parameters" in o)) throw Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");
|
|
4899
4820
|
return e === o.digest;
|
|
4900
4821
|
} } : (r === "NONE" || r === "NULL" || r === null) && (r = { verify: function(e, t) {
|
|
4901
|
-
return t = E(t, n, !0
|
|
4822
|
+
return t = E(t, n, !0), e === t;
|
|
4902
4823
|
} });
|
|
4903
4824
|
var o = d.rsa.decrypt(t, n, !0, !1);
|
|
4904
4825
|
return r.verify(e, o, n.n.bitLength());
|
|
@@ -5003,34 +4924,29 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
5003
4924
|
}
|
|
5004
4925
|
return r.putByte(0), r.putBytes(e), r;
|
|
5005
4926
|
}
|
|
5006
|
-
function E(e, t, n, r
|
|
5007
|
-
var
|
|
5008
|
-
if (
|
|
5009
|
-
var
|
|
5010
|
-
if (
|
|
5011
|
-
|
|
5012
|
-
for (var
|
|
5013
|
-
} else if (
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
break;
|
|
5018
|
-
}
|
|
5019
|
-
++u;
|
|
4927
|
+
function E(e, t, n, r) {
|
|
4928
|
+
var a = Math.ceil(t.n.bitLength() / 8), o = i.util.createBuffer(e), s = o.getByte(), c = o.getByte();
|
|
4929
|
+
if (s !== 0 || n && c !== 0 && c !== 1 || !n && c != 2 || n && c === 0 && r === void 0) throw Error("Encryption block is invalid.");
|
|
4930
|
+
var l = 0;
|
|
4931
|
+
if (c === 0) {
|
|
4932
|
+
l = a - 3 - r;
|
|
4933
|
+
for (var u = 0; u < l; ++u) if (o.getByte() !== 0) throw Error("Encryption block is invalid.");
|
|
4934
|
+
} else if (c === 1) for (l = 0; o.length() > 1;) {
|
|
4935
|
+
if (o.getByte() !== 255) {
|
|
4936
|
+
--o.read;
|
|
4937
|
+
break;
|
|
5020
4938
|
}
|
|
5021
|
-
|
|
5022
|
-
}
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
}
|
|
5028
|
-
++u;
|
|
4939
|
+
++l;
|
|
4940
|
+
}
|
|
4941
|
+
else if (c === 2) for (l = 0; o.length() > 1;) {
|
|
4942
|
+
if (o.getByte() === 0) {
|
|
4943
|
+
--o.read;
|
|
4944
|
+
break;
|
|
5029
4945
|
}
|
|
5030
|
-
|
|
4946
|
+
++l;
|
|
5031
4947
|
}
|
|
5032
|
-
if (
|
|
5033
|
-
return
|
|
4948
|
+
if (o.getByte() !== 0 || l !== a - 3 - o.length()) throw Error("Encryption block is invalid.");
|
|
4949
|
+
return o.getBytes();
|
|
5034
4950
|
}
|
|
5035
4951
|
function D(e, t, n) {
|
|
5036
4952
|
typeof t == "function" && (n = t, t = {}), t ||= {};
|
|
@@ -6882,9 +6798,6 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
6882
6798
|
y !== null && (!y.keyCertSign || v === null) && (s = {
|
|
6883
6799
|
message: "Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",
|
|
6884
6800
|
error: u.certificateError.bad_certificate
|
|
6885
|
-
}), s === null && v === null && (s = {
|
|
6886
|
-
message: "Certificate is missing basicConstraints extension and cannot be used as a CA.",
|
|
6887
|
-
error: u.certificateError.bad_certificate
|
|
6888
6801
|
}), s === null && v !== null && !v.cA && (s = {
|
|
6889
6802
|
message: "Certificate basicConstraints indicates the certificate is not a CA.",
|
|
6890
6803
|
error: u.certificateError.bad_certificate
|
|
@@ -8268,7 +8181,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
8268
8181
|
F
|
|
8269
8182
|
]
|
|
8270
8183
|
];
|
|
8271
|
-
var X = h.handleClientHello, Z = h.handleClientKeyExchange,
|
|
8184
|
+
var X = h.handleClientHello, Z = h.handleClientKeyExchange, Q = h.handleCertificateVerify;
|
|
8272
8185
|
Y[h.ConnectionEnd.server] = [
|
|
8273
8186
|
[
|
|
8274
8187
|
F,
|
|
@@ -8355,7 +8268,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
8355
8268
|
F,
|
|
8356
8269
|
F,
|
|
8357
8270
|
F,
|
|
8358
|
-
|
|
8271
|
+
Q,
|
|
8359
8272
|
F,
|
|
8360
8273
|
F,
|
|
8361
8274
|
F,
|
|
@@ -8713,7 +8626,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
8713
8626
|
}
|
|
8714
8627
|
return e.records = [], e.tlsDataReady(e);
|
|
8715
8628
|
};
|
|
8716
|
-
var
|
|
8629
|
+
var ee = function(e) {
|
|
8717
8630
|
switch (e) {
|
|
8718
8631
|
case !0: return !0;
|
|
8719
8632
|
case i.pki.certificateError.bad_certificate: return h.Alert.Description.bad_certificate;
|
|
@@ -8741,7 +8654,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
8741
8654
|
var n = {};
|
|
8742
8655
|
for (var r in e.verifyOptions) n[r] = e.verifyOptions[r];
|
|
8743
8656
|
n.verify = function(t, n, r) {
|
|
8744
|
-
|
|
8657
|
+
ee(t);
|
|
8745
8658
|
var a = e.verify(e, t, n, r);
|
|
8746
8659
|
if (a !== !0) {
|
|
8747
8660
|
if (typeof a == "object" && !i.util.isArray(a)) {
|
|
@@ -8761,11 +8674,11 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
8761
8674
|
send: !0,
|
|
8762
8675
|
alert: {
|
|
8763
8676
|
level: h.Alert.Level.fatal,
|
|
8764
|
-
description:
|
|
8677
|
+
description: ee(t)
|
|
8765
8678
|
}
|
|
8766
8679
|
}), "send" in a || (a.send = !0), "alert" in a || (a.alert = {
|
|
8767
8680
|
level: h.Alert.Level.fatal,
|
|
8768
|
-
description:
|
|
8681
|
+
description: ee(a.error)
|
|
8769
8682
|
}), e.error(e, a);
|
|
8770
8683
|
}
|
|
8771
8684
|
return !e.fail;
|
|
@@ -9364,7 +9277,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9364
9277
|
for (var r = new u(t.length()), i = 0; i < r.length; ++i) r[i] = t.at(i);
|
|
9365
9278
|
return r;
|
|
9366
9279
|
}
|
|
9367
|
-
var p =
|
|
9280
|
+
var p = J(), m = J([1]), h = J([
|
|
9368
9281
|
30883,
|
|
9369
9282
|
4953,
|
|
9370
9283
|
19914,
|
|
@@ -9381,7 +9294,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9381
9294
|
11119,
|
|
9382
9295
|
27886,
|
|
9383
9296
|
20995
|
|
9384
|
-
]), g =
|
|
9297
|
+
]), g = J([
|
|
9385
9298
|
61785,
|
|
9386
9299
|
9906,
|
|
9387
9300
|
39828,
|
|
@@ -9398,7 +9311,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9398
9311
|
22239,
|
|
9399
9312
|
55772,
|
|
9400
9313
|
9222
|
|
9401
|
-
]), _ =
|
|
9314
|
+
]), _ = J([
|
|
9402
9315
|
54554,
|
|
9403
9316
|
36645,
|
|
9404
9317
|
11616,
|
|
@@ -9415,7 +9328,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9415
9328
|
52590,
|
|
9416
9329
|
14035,
|
|
9417
9330
|
8553
|
|
9418
|
-
]), y =
|
|
9331
|
+
]), y = J([
|
|
9419
9332
|
26200,
|
|
9420
9333
|
26214,
|
|
9421
9334
|
26214,
|
|
@@ -9465,7 +9378,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9465
9378
|
0,
|
|
9466
9379
|
0,
|
|
9467
9380
|
16
|
|
9468
|
-
]), S =
|
|
9381
|
+
]), S = J([
|
|
9469
9382
|
41136,
|
|
9470
9383
|
18958,
|
|
9471
9384
|
6951,
|
|
@@ -9493,50 +9406,50 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9493
9406
|
}
|
|
9494
9407
|
function w(e, t) {
|
|
9495
9408
|
var n = [
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9409
|
+
J(),
|
|
9410
|
+
J(),
|
|
9411
|
+
J(),
|
|
9412
|
+
J()
|
|
9500
9413
|
], r, i = C(t, 32);
|
|
9501
|
-
for (i[0] &= 248, i[31] &= 127, i[31] |= 64,
|
|
9414
|
+
for (i[0] &= 248, i[31] &= 127, i[31] |= 64, U(n, i), j(e, n), r = 0; r < 32; ++r) t[r + 32] = e[r];
|
|
9502
9415
|
return 0;
|
|
9503
9416
|
}
|
|
9504
9417
|
function T(e, t, n, r) {
|
|
9505
9418
|
var i, a, o = new Float64Array(64), s = [
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9419
|
+
J(),
|
|
9420
|
+
J(),
|
|
9421
|
+
J(),
|
|
9422
|
+
J()
|
|
9510
9423
|
], c = C(r, 32);
|
|
9511
9424
|
c[0] &= 248, c[31] &= 127, c[31] |= 64;
|
|
9512
9425
|
var l = n + 64;
|
|
9513
9426
|
for (i = 0; i < n; ++i) e[64 + i] = t[i];
|
|
9514
9427
|
for (i = 0; i < 32; ++i) e[32 + i] = c[32 + i];
|
|
9515
9428
|
var u = C(e.subarray(32), n + 32);
|
|
9516
|
-
for (
|
|
9429
|
+
for (O(u), U(s, u), j(e, s), i = 32; i < 64; ++i) e[i] = r[i];
|
|
9517
9430
|
var d = C(e, n + 64);
|
|
9518
|
-
for (
|
|
9431
|
+
for (O(d), i = 32; i < 64; ++i) o[i] = 0;
|
|
9519
9432
|
for (i = 0; i < 32; ++i) o[i] = u[i];
|
|
9520
9433
|
for (i = 0; i < 32; ++i) for (a = 0; a < 32; a++) o[i + a] += d[i] * c[a];
|
|
9521
|
-
return
|
|
9434
|
+
return D(e.subarray(32), o), l;
|
|
9522
9435
|
}
|
|
9523
9436
|
function E(e, t, n, r) {
|
|
9524
9437
|
var i, a, o = new u(32), s = [
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9438
|
+
J(),
|
|
9439
|
+
J(),
|
|
9440
|
+
J(),
|
|
9441
|
+
J()
|
|
9529
9442
|
], c = [
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9443
|
+
J(),
|
|
9444
|
+
J(),
|
|
9445
|
+
J(),
|
|
9446
|
+
J()
|
|
9534
9447
|
];
|
|
9535
|
-
if (a = -1, n < 64 ||
|
|
9448
|
+
if (a = -1, n < 64 || N(c, r)) return -1;
|
|
9536
9449
|
for (i = 0; i < n; ++i) e[i] = t[i];
|
|
9537
9450
|
for (i = 0; i < 32; ++i) e[i + 32] = r[i];
|
|
9538
9451
|
var l = C(e, n);
|
|
9539
|
-
if (
|
|
9452
|
+
if (O(l), H(s, c, l), U(c, t.subarray(32)), k(s, c), j(o, s), n -= 64, z(t, 0, o, 0)) {
|
|
9540
9453
|
for (i = 0; i < n; ++i) e[i] = 0;
|
|
9541
9454
|
return -1;
|
|
9542
9455
|
}
|
|
@@ -9544,14 +9457,6 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9544
9457
|
return a = n, a;
|
|
9545
9458
|
}
|
|
9546
9459
|
function D(e, t) {
|
|
9547
|
-
var n;
|
|
9548
|
-
for (n = 31; n >= 0; --n) {
|
|
9549
|
-
if (e[t + n] < x[n]) return !0;
|
|
9550
|
-
if (e[t + n] > x[n]) return !1;
|
|
9551
|
-
}
|
|
9552
|
-
return !1;
|
|
9553
|
-
}
|
|
9554
|
-
function O(e, t) {
|
|
9555
9460
|
var n, r, i, a;
|
|
9556
9461
|
for (r = 63; r >= 32; --r) {
|
|
9557
9462
|
for (n = 0, i = r - 32, a = r - 12; i < a; ++i) t[i] += n - 16 * t[r] * x[i - (r - 32)], n = t[i] + 128 >> 8, t[i] -= n * 256;
|
|
@@ -9561,104 +9466,104 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
9561
9466
|
for (i = 0; i < 32; ++i) t[i] -= n * x[i];
|
|
9562
9467
|
for (r = 0; r < 32; ++r) t[r + 1] += t[r] >> 8, e[r] = t[r] & 255;
|
|
9563
9468
|
}
|
|
9564
|
-
function
|
|
9469
|
+
function O(e) {
|
|
9565
9470
|
for (var t = new Float64Array(64), n = 0; n < 64; ++n) t[n] = e[n], e[n] = 0;
|
|
9566
|
-
|
|
9471
|
+
D(e, t);
|
|
9567
9472
|
}
|
|
9568
|
-
function
|
|
9569
|
-
var n =
|
|
9570
|
-
|
|
9473
|
+
function k(e, t) {
|
|
9474
|
+
var n = J(), r = J(), i = J(), a = J(), o = J(), s = J(), c = J(), l = J(), u = J();
|
|
9475
|
+
X(n, e[1], e[0]), X(u, t[1], t[0]), Q(n, n, u), Y(r, e[0], e[1]), Y(u, t[0], t[1]), Q(r, r, u), Q(i, e[3], t[3]), Q(i, i, g), Q(a, e[2], t[2]), Y(a, a, a), X(o, r, n), X(s, a, i), Y(c, a, i), Y(l, r, n), Q(e[0], o, s), Q(e[1], l, c), Q(e[2], c, s), Q(e[3], o, l);
|
|
9571
9476
|
}
|
|
9572
|
-
function
|
|
9573
|
-
for (var r = 0; r < 4; ++r)
|
|
9477
|
+
function A(e, t, n) {
|
|
9478
|
+
for (var r = 0; r < 4; ++r) q(e[r], t[r], n);
|
|
9574
9479
|
}
|
|
9575
|
-
function
|
|
9576
|
-
var n =
|
|
9577
|
-
|
|
9480
|
+
function j(e, t) {
|
|
9481
|
+
var n = J(), r = J(), i = J();
|
|
9482
|
+
G(i, t[2]), Q(n, t[0], i), Q(r, t[1], i), M(e, r), e[31] ^= V(n) << 7;
|
|
9578
9483
|
}
|
|
9579
|
-
function
|
|
9580
|
-
var n, r, i, a =
|
|
9484
|
+
function M(e, t) {
|
|
9485
|
+
var n, r, i, a = J(), o = J();
|
|
9581
9486
|
for (n = 0; n < 16; ++n) o[n] = t[n];
|
|
9582
|
-
for (
|
|
9487
|
+
for (K(o), K(o), K(o), r = 0; r < 2; ++r) {
|
|
9583
9488
|
for (a[0] = o[0] - 65517, n = 1; n < 15; ++n) a[n] = o[n] - 65535 - (a[n - 1] >> 16 & 1), a[n - 1] &= 65535;
|
|
9584
|
-
a[15] = o[15] - 32767 - (a[14] >> 16 & 1), i = a[15] >> 16 & 1, a[14] &= 65535,
|
|
9489
|
+
a[15] = o[15] - 32767 - (a[14] >> 16 & 1), i = a[15] >> 16 & 1, a[14] &= 65535, q(o, a, 1 - i);
|
|
9585
9490
|
}
|
|
9586
9491
|
for (n = 0; n < 16; n++) e[2 * n] = o[n] & 255, e[2 * n + 1] = o[n] >> 8;
|
|
9587
9492
|
}
|
|
9588
|
-
function
|
|
9589
|
-
var n =
|
|
9590
|
-
return
|
|
9493
|
+
function N(e, t) {
|
|
9494
|
+
var n = J(), r = J(), i = J(), a = J(), o = J(), s = J(), c = J();
|
|
9495
|
+
return W(e[2], m), P(e[1], t), Z(i, e[1]), Q(a, i, h), X(i, i, e[2]), Y(a, e[2], a), Z(o, a), Z(s, o), Q(c, s, o), Q(n, c, i), Q(n, n, a), L(n, n), Q(n, n, i), Q(n, n, a), Q(n, n, a), Q(e[0], n, a), Z(r, e[0]), Q(r, r, a), R(r, i) && Q(e[0], e[0], S), Z(r, e[0]), Q(r, r, a), R(r, i) ? -1 : (V(e[0]) === t[31] >> 7 && X(e[0], p, e[0]), Q(e[3], e[0], e[1]), 0);
|
|
9591
9496
|
}
|
|
9592
|
-
function
|
|
9497
|
+
function P(e, t) {
|
|
9593
9498
|
var n;
|
|
9594
9499
|
for (n = 0; n < 16; ++n) e[n] = t[2 * n] + (t[2 * n + 1] << 8);
|
|
9595
9500
|
e[15] &= 32767;
|
|
9596
9501
|
}
|
|
9597
|
-
function
|
|
9598
|
-
var n =
|
|
9502
|
+
function L(e, t) {
|
|
9503
|
+
var n = J(), r;
|
|
9599
9504
|
for (r = 0; r < 16; ++r) n[r] = t[r];
|
|
9600
|
-
for (r = 250; r >= 0; --r)
|
|
9505
|
+
for (r = 250; r >= 0; --r) Z(n, n), r !== 1 && Q(n, n, t);
|
|
9601
9506
|
for (r = 0; r < 16; ++r) e[r] = n[r];
|
|
9602
9507
|
}
|
|
9603
|
-
function
|
|
9508
|
+
function R(e, t) {
|
|
9604
9509
|
var n = new u(32), r = new u(32);
|
|
9605
|
-
return
|
|
9510
|
+
return M(n, e), M(r, t), z(n, 0, r, 0);
|
|
9606
9511
|
}
|
|
9607
|
-
function
|
|
9608
|
-
return
|
|
9512
|
+
function z(e, t, n, r) {
|
|
9513
|
+
return B(e, t, n, r, 32);
|
|
9609
9514
|
}
|
|
9610
|
-
function
|
|
9515
|
+
function B(e, t, n, r, i) {
|
|
9611
9516
|
var a, o = 0;
|
|
9612
9517
|
for (a = 0; a < i; ++a) o |= e[t + a] ^ n[r + a];
|
|
9613
9518
|
return (1 & o - 1 >>> 8) - 1;
|
|
9614
9519
|
}
|
|
9615
|
-
function
|
|
9520
|
+
function V(e) {
|
|
9616
9521
|
var t = new u(32);
|
|
9617
|
-
return
|
|
9522
|
+
return M(t, e), t[0] & 1;
|
|
9618
9523
|
}
|
|
9619
|
-
function
|
|
9524
|
+
function H(e, t, n) {
|
|
9620
9525
|
var r, i;
|
|
9621
|
-
for (
|
|
9526
|
+
for (W(e[0], p), W(e[1], m), W(e[2], m), W(e[3], p), i = 255; i >= 0; --i) r = n[i / 8 | 0] >> (i & 7) & 1, A(e, t, r), k(t, e), k(e, e), A(e, t, r);
|
|
9622
9527
|
}
|
|
9623
|
-
function
|
|
9528
|
+
function U(e, t) {
|
|
9624
9529
|
var n = [
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9530
|
+
J(),
|
|
9531
|
+
J(),
|
|
9532
|
+
J(),
|
|
9533
|
+
J()
|
|
9629
9534
|
];
|
|
9630
|
-
|
|
9535
|
+
W(n[0], _), W(n[1], y), W(n[2], m), Q(n[3], _, y), H(e, n, t);
|
|
9631
9536
|
}
|
|
9632
|
-
function
|
|
9537
|
+
function W(e, t) {
|
|
9633
9538
|
var n;
|
|
9634
9539
|
for (n = 0; n < 16; n++) e[n] = t[n] | 0;
|
|
9635
9540
|
}
|
|
9636
|
-
function
|
|
9637
|
-
var n =
|
|
9541
|
+
function G(e, t) {
|
|
9542
|
+
var n = J(), r;
|
|
9638
9543
|
for (r = 0; r < 16; ++r) n[r] = t[r];
|
|
9639
|
-
for (r = 253; r >= 0; --r)
|
|
9544
|
+
for (r = 253; r >= 0; --r) Z(n, n), r !== 2 && r !== 4 && Q(n, n, t);
|
|
9640
9545
|
for (r = 0; r < 16; ++r) e[r] = n[r];
|
|
9641
9546
|
}
|
|
9642
|
-
function
|
|
9547
|
+
function K(e) {
|
|
9643
9548
|
var t, n, r = 1;
|
|
9644
9549
|
for (t = 0; t < 16; ++t) n = e[t] + r + 65535, r = Math.floor(n / 65536), e[t] = n - r * 65536;
|
|
9645
9550
|
e[0] += r - 1 + 37 * (r - 1);
|
|
9646
9551
|
}
|
|
9647
|
-
function
|
|
9552
|
+
function q(e, t, n) {
|
|
9648
9553
|
for (var r, i = ~(n - 1), a = 0; a < 16; ++a) r = i & (e[a] ^ t[a]), e[a] ^= r, t[a] ^= r;
|
|
9649
9554
|
}
|
|
9650
|
-
function
|
|
9555
|
+
function J(e) {
|
|
9651
9556
|
var t, n = new Float64Array(16);
|
|
9652
9557
|
if (e) for (t = 0; t < e.length; ++t) n[t] = e[t];
|
|
9653
9558
|
return n;
|
|
9654
9559
|
}
|
|
9655
|
-
function
|
|
9560
|
+
function Y(e, t, n) {
|
|
9656
9561
|
for (var r = 0; r < 16; ++r) e[r] = t[r] + n[r];
|
|
9657
9562
|
}
|
|
9658
|
-
function
|
|
9563
|
+
function X(e, t, n) {
|
|
9659
9564
|
for (var r = 0; r < 16; ++r) e[r] = t[r] - n[r];
|
|
9660
9565
|
}
|
|
9661
|
-
function
|
|
9566
|
+
function Z(e, t) {
|
|
9662
9567
|
Q(e, t, t);
|
|
9663
9568
|
}
|
|
9664
9569
|
function Q(e, t, n) {
|